@chocolatey-software/docs 2.1.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/docs.css +1155 -270
- package/dist/css/docs.min.css +2 -2
- package/dist/scripts/docs.js +12677 -3219
- package/dist/scripts/docs.min.js +117 -16
- package/package.json +29 -33
package/dist/scripts/docs.min.js
CHANGED
|
@@ -1,22 +1,122 @@
|
|
|
1
|
-
(()=>{(()=>{var Cu=Object.create,fo=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,po=Object.getOwnPropertyNames,ju=Object.getPrototypeOf,Iu=Object.prototype.hasOwnProperty,Mr=(t,n)=>function(){return n||(0,t[po(t)[0]])((n={exports:{}}).exports,n),n.exports},Pu=(t,n,r,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of po(n))!Iu.call(t,s)&&s!==r&&fo(t,s,{get:()=>n[s],enumerable:!(o=Tu(n,s))||o.enumerable});return t},Hr=(t,n,r)=>(r=t!=null?Cu(ju(t)):{},Pu(n||!t||!t.__esModule?fo(r,"default",{value:t,enumerable:!0}):r,t)),Du=Mr({"src/scripts/lib/prism.js"(t,n){var r=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{},o=(function(s){var l=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,h=0,d={},m={manual:s.Prism&&s.Prism.manual,disableWorkerMessageHandler:s.Prism&&s.Prism.disableWorkerMessageHandler,util:{encode:function w(E){return E instanceof y?new y(E.type,w(E.content),E.alias):Array.isArray(E)?E.map(w):E.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++h}),w.__id},clone:function w(E,L){L=L||{};var M,B;switch(m.util.type(E)){case"Object":if(B=m.util.objId(E),L[B])return L[B];M={},L[B]=M;for(var u in E)E.hasOwnProperty(u)&&(M[u]=w(E[u],L));return M;case"Array":return B=m.util.objId(E),L[B]?L[B]:(M=[],L[B]=M,E.forEach(function(W,F){M[F]=w(W,L)}),M);default:return E}},getLanguage:function(w){for(;w;){var E=l.exec(w.className);if(E)return E[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,E){w.className=w.className.replace(RegExp(l,"gi"),""),w.classList.add("language-"+E)},currentScript:function(){if(typeof document=="undefined")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(M){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(M.stack)||[])[1];if(w){var E=document.getElementsByTagName("script");for(var L in E)if(E[L].src==w)return E[L]}return null}},isActive:function(w,E,L){for(var M="no-"+E;w;){var B=w.classList;if(B.contains(E))return!0;if(B.contains(M))return!1;w=w.parentElement}return!!L}},languages:{plain:d,plaintext:d,text:d,txt:d,extend:function(w,E){var L=m.util.clone(m.languages[w]);for(var M in E)L[M]=E[M];return L},insertBefore:function(w,E,L,M){M=M||m.languages;var B=M[w],u={};for(var W in B)if(B.hasOwnProperty(W)){if(W==E)for(var F in L)L.hasOwnProperty(F)&&(u[F]=L[F]);L.hasOwnProperty(W)||(u[W]=B[W])}var X=M[w];return M[w]=u,m.languages.DFS(m.languages,function(oe,Ae){Ae===X&&oe!=w&&(this[oe]=u)}),u},DFS:function w(E,L,M,B){B=B||{};var u=m.util.objId;for(var W in E)if(E.hasOwnProperty(W)){L.call(E,W,E[W],M||W);var F=E[W],X=m.util.type(F);X==="Object"&&!B[u(F)]?(B[u(F)]=!0,w(F,L,null,B)):X==="Array"&&!B[u(F)]&&(B[u(F)]=!0,w(F,L,W,B))}}},plugins:{},highlightAll:function(w,E){m.highlightAllUnder(document,w,E)},highlightAllUnder:function(w,E,L){var M={callback:L,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};m.hooks.run("before-highlightall",M),M.elements=Array.prototype.slice.apply(M.container.querySelectorAll(M.selector)),m.hooks.run("before-all-elements-highlight",M);for(var B=0,u;u=M.elements[B++];)m.highlightElement(u,E===!0,M.callback)},highlightElement:function(w,E,L){var M=m.util.getLanguage(w),B=m.languages[M];m.util.setLanguage(w,M);var u=w.parentElement;u&&u.nodeName.toLowerCase()==="pre"&&m.util.setLanguage(u,M);var W=w.textContent,F={element:w,language:M,grammar:B,code:W};function X(Ae){F.highlightedCode=Ae,m.hooks.run("before-insert",F),F.element.innerHTML=F.highlightedCode,m.hooks.run("after-highlight",F),m.hooks.run("complete",F),L&&L.call(F.element)}if(m.hooks.run("before-sanity-check",F),u=F.element.parentElement,u&&u.nodeName.toLowerCase()==="pre"&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!F.code){m.hooks.run("complete",F),L&&L.call(F.element);return}if(m.hooks.run("before-highlight",F),!F.grammar){X(m.util.encode(F.code));return}if(E&&s.Worker){var oe=new Worker(m.filename);oe.onmessage=function(Ae){X(Ae.data)},oe.postMessage(JSON.stringify({language:F.language,code:F.code,immediateClose:!0}))}else X(m.highlight(F.code,F.grammar,F.language))},highlight:function(w,E,L){var M={code:w,grammar:E,language:L};if(m.hooks.run("before-tokenize",M),!M.grammar)throw new Error('The language "'+M.language+'" has no grammar.');return M.tokens=m.tokenize(M.code,M.grammar),m.hooks.run("after-tokenize",M),y.stringify(m.util.encode(M.tokens),M.language)},tokenize:function(w,E){var L=E.rest;if(L){for(var M in L)E[M]=L[M];delete E.rest}var B=new _;return O(B,B.head,w),v(w,B,E,B.head,0),k(B)},hooks:{all:{},add:function(w,E){var L=m.hooks.all;L[w]=L[w]||[],L[w].push(E)},run:function(w,E){var L=m.hooks.all[w];if(!(!L||!L.length))for(var M=0,B;B=L[M++];)B(E)}},Token:y};s.Prism=m;function y(w,E,L,M){this.type=w,this.content=E,this.alias=L,this.length=(M||"").length|0}y.stringify=function w(E,L){if(typeof E=="string")return E;if(Array.isArray(E)){var M="";return E.forEach(function(X){M+=w(X,L)}),M}var B={type:E.type,content:w(E.content,L),tag:"span",classes:["token",E.type],attributes:{},language:L},u=E.alias;u&&(Array.isArray(u)?Array.prototype.push.apply(B.classes,u):B.classes.push(u)),m.hooks.run("wrap",B);var W="";for(var F in B.attributes)W+=" "+F+'="'+(B.attributes[F]||"").replace(/"/g,""")+'"';return"<"+B.tag+' class="'+B.classes.join(" ")+'"'+W+">"+B.content+"</"+B.tag+">"};function S(w,E,L,M){w.lastIndex=E;var B=w.exec(L);if(B&&M&&B[1]){var u=B[1].length;B.index+=u,B[0]=B[0].slice(u)}return B}function v(w,E,L,M,B,u){for(var W in L)if(!(!L.hasOwnProperty(W)||!L[W])){var F=L[W];F=Array.isArray(F)?F:[F];for(var X=0;X<F.length;++X){if(u&&u.cause==W+","+X)return;var oe=F[X],Ae=oe.inside,re=!!oe.lookbehind,xe=!!oe.greedy,Q=oe.alias;if(xe&&!oe.pattern.global){var K=oe.pattern.toString().match(/[imsuy]*$/)[0];oe.pattern=RegExp(oe.pattern.source,K+"g")}for(var G=oe.pattern||oe,ie=M.next,Z=B;ie!==E.tail&&!(u&&Z>=u.reach);Z+=ie.value.length,ie=ie.next){var pe=ie.value;if(E.length>w.length)return;if(!(pe instanceof y)){var ne=1,V;if(xe){if(V=S(G,Z,w,re),!V||V.index>=w.length)break;var le=V.index,Y=V.index+V[0].length,ee=Z;for(ee+=ie.value.length;le>=ee;)ie=ie.next,ee+=ie.value.length;if(ee-=ie.value.length,Z=ee,ie.value instanceof y)continue;for(var ce=ie;ce!==E.tail&&(ee<Y||typeof ce.value=="string");ce=ce.next)ne++,ee+=ce.value.length;ne--,pe=w.slice(Z,ee),V.index-=Z}else if(V=S(G,0,pe,re),!V)continue;var le=V.index,Ue=V[0],Ye=pe.slice(0,le),gt=pe.slice(le+Ue.length),$e=Z+pe.length;u&&$e>u.reach&&(u.reach=$e);var _t=ie.prev;Ye&&(_t=O(E,_t,Ye),Z+=Ye.length),D(E,_t,ne);var nt=new y(W,Ae?m.tokenize(Ue,Ae):Ue,Q,Ue);if(ie=O(E,_t,nt),gt&&O(E,ie,gt),ne>1){var At={cause:W+","+X,reach:$e};v(w,E,L,ie.prev,Z,At),u&&At.reach>u.reach&&(u.reach=At.reach)}}}}}}function _(){var w={value:null,prev:null,next:null},E={value:null,prev:w,next:null};w.next=E,this.head=w,this.tail=E,this.length=0}function O(w,E,L){var M=E.next,B={value:L,prev:E,next:M};return E.next=B,M.prev=B,w.length++,B}function D(w,E,L){for(var M=E.next,B=0;B<L&&M!==w.tail;B++)M=M.next;E.next=M,M.prev=E,w.length-=B}function k(w){for(var E=[],L=w.head.next;L!==w.tail;)E.push(L.value),L=L.next;return E}if(!s.document)return s.addEventListener&&(m.disableWorkerMessageHandler||s.addEventListener("message",function(w){var E=JSON.parse(w.data),L=E.language,M=E.code,B=E.immediateClose;s.postMessage(m.highlight(M,m.languages[L],L)),B&&s.close()},!1)),m;var A=m.util.currentScript();A&&(m.filename=A.src,A.hasAttribute("data-manual")&&(m.manual=!0));function P(){m.manual||m.highlightAll()}if(!m.manual){var j=document.readyState;j==="loading"||j==="interactive"&&A&&A.defer?document.addEventListener("DOMContentLoaded",P):window.requestAnimationFrame?window.requestAnimationFrame(P):window.setTimeout(P,16)}return m})(r);typeof n!="undefined"&&n.exports&&(n.exports=o),typeof global!="undefined"&&(global.Prism=o),o.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},o.languages.markup.tag.inside["attr-value"].inside.entity=o.languages.markup.entity,o.languages.markup.doctype.inside["internal-subset"].inside=o.languages.markup,o.hooks.add("wrap",function(s){s.type==="entity"&&(s.attributes.title=s.content.replace(/&/,"&"))}),Object.defineProperty(o.languages.markup.tag,"addInlined",{value:function(l,h){var d={};d["language-"+h]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:o.languages[h]},d.cdata=/^<!\[CDATA\[|\]\]>$/i;var m={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:d}};m["language-"+h]={pattern:/[\s\S]+/,inside:o.languages[h]};var y={};y[l]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return l}),"i"),lookbehind:!0,greedy:!0,inside:m},o.languages.insertBefore("markup","cdata",y)}}),Object.defineProperty(o.languages.markup.tag,"addAttribute",{value:function(s,l){o.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+s+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[l,"language-"+l],inside:o.languages[l]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),o.languages.html=o.languages.markup,o.languages.mathml=o.languages.markup,o.languages.svg=o.languages.markup,o.languages.xml=o.languages.extend("markup",{}),o.languages.ssml=o.languages.xml,o.languages.atom=o.languages.xml,o.languages.rss=o.languages.xml,(function(s){var l=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;s.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+l.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+l.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+l.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+l.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:l,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},s.languages.css.atrule.inside.rest=s.languages.css;var h=s.languages.markup;h&&(h.tag.addInlined("style","css"),h.tag.addAttribute("style","css"))})(o),o.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},o.languages.javascript=o.languages.extend("clike",{"class-name":[o.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),o.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,o.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:o.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:o.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:o.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:o.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:o.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),o.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:o.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),o.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),o.languages.markup&&(o.languages.markup.tag.addInlined("script","javascript"),o.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),o.languages.js=o.languages.javascript,(function(s){var l="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",h={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},d={bash:h,environment:{pattern:RegExp("\\$"+l),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+l),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};s.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+l),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:d},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:h}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:d},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:d.entity}}],environment:{pattern:RegExp("\\$?"+l),alias:"constant"},variable:d.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},h.inside=s.languages.bash;for(var m=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],y=d.variable[1].inside,S=0;S<m.length;S++)y[m[S]]=s.languages.bash[m[S]];s.languages.sh=s.languages.bash,s.languages.shell=s.languages.bash})(o),(function(s){function l(V,Y){return V.replace(/<<(\d+)>>/g,function(ee,ce){return"(?:"+Y[+ce]+")"})}function h(V,Y,ee){return RegExp(l(V,Y),ee||"")}function d(V,Y){for(var ee=0;ee<Y;ee++)V=V.replace(/<<self>>/g,function(){return"(?:"+V+")"});return V.replace(/<<self>>/g,"[^\\s\\S]")}var m={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function y(V){return"\\b(?:"+V.trim().replace(/ /g,"|")+")\\b"}var S=y(m.typeDeclaration),v=RegExp(y(m.type+" "+m.typeDeclaration+" "+m.contextual+" "+m.other)),_=y(m.typeDeclaration+" "+m.contextual+" "+m.other),O=y(m.type+" "+m.typeDeclaration+" "+m.other),D=d(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),k=d(/\((?:[^()]|<<self>>)*\)/.source,2),A=/@?\b[A-Za-z_]\w*\b/.source,P=l(/<<0>>(?:\s*<<1>>)?/.source,[A,D]),j=l(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[_,P]),w=/\[\s*(?:,\s*)*\]/.source,E=l(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[j,w]),L=l(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[D,k,w]),M=l(/\(<<0>>+(?:,<<0>>+)+\)/.source,[L]),B=l(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[M,j,w]),u={keyword:v,punctuation:/[<>()?,.:[\]]/},W=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,X=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;s.languages.csharp=s.languages.extend("clike",{string:[{pattern:h(/(^|[^$\\])<<0>>/.source,[X]),lookbehind:!0,greedy:!0},{pattern:h(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:h(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[j]),lookbehind:!0,inside:u},{pattern:h(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[A,B]),lookbehind:!0,inside:u},{pattern:h(/(\busing\s+)<<0>>(?=\s*=)/.source,[A]),lookbehind:!0},{pattern:h(/(\b<<0>>\s+)<<1>>/.source,[S,P]),lookbehind:!0,inside:u},{pattern:h(/(\bcatch\s*\(\s*)<<0>>/.source,[j]),lookbehind:!0,inside:u},{pattern:h(/(\bwhere\s+)<<0>>/.source,[A]),lookbehind:!0},{pattern:h(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:u},{pattern:h(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[B,O,A]),inside:u}],keyword:v,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),s.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),s.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:h(/([(,]\s*)<<0>>(?=\s*:)/.source,[A]),lookbehind:!0,alias:"punctuation"}}),s.languages.insertBefore("csharp","class-name",{namespace:{pattern:h(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[A]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:h(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[k]),lookbehind:!0,alias:"class-name",inside:u},"return-type":{pattern:h(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[B,j]),inside:u,alias:"class-name"},"constructor-invocation":{pattern:h(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[B]),lookbehind:!0,inside:u,alias:"class-name"},"generic-method":{pattern:h(/<<0>>\s*<<1>>(?=\s*\()/.source,[A,D]),inside:{function:h(/^<<0>>/.source,[A]),generic:{pattern:RegExp(D),alias:"class-name",inside:u}}},"type-list":{pattern:h(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[S,P,A,B,v.source,k,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:h(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[P,k]),lookbehind:!0,greedy:!0,inside:s.languages.csharp},keyword:v,"class-name":{pattern:RegExp(B),greedy:!0,inside:u},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var oe=F+"|"+W,Ae=l(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[oe]),re=d(l(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Ae]),2),xe=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Q=l(/<<0>>(?:\s*\(<<1>>*\))?/.source,[j,re]);s.languages.insertBefore("csharp","class-name",{attribute:{pattern:h(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[xe,Q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:h(/^<<0>>(?=\s*:)/.source,[xe]),alias:"keyword"},"attribute-arguments":{pattern:h(/\(<<0>>*\)/.source,[re]),inside:s.languages.csharp},"class-name":{pattern:RegExp(j),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var K=/:[^}\r\n]+/.source,G=d(l(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Ae]),2),ie=l(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[G,K]),Z=d(l(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[oe]),2),pe=l(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,K]);function ne(V,Y){return{interpolation:{pattern:h(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[V]),lookbehind:!0,inside:{"format-string":{pattern:h(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Y,K]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:s.languages.csharp}}},string:/[\s\S]+/}}s.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:h(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ie]),lookbehind:!0,greedy:!0,inside:ne(ie,G)},{pattern:h(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[pe]),lookbehind:!0,greedy:!0,inside:ne(pe,Z)}],char:{pattern:RegExp(W),greedy:!0}}),s.languages.dotnet=s.languages.cs=s.languages.csharp})(o),(function(s){s.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var l={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(l).forEach(function(h){var d=l[h],m=[];/^\w+$/.test(h)||m.push(/\w+/.exec(h)[0]),h==="diff"&&m.push("bold"),s.languages.diff[h]={pattern:RegExp("^(?:["+d+`].*(?:\r
|
|
1
|
+
(()=>{(()=>{var Bh=Object.create,$c=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,Zc=Object.getOwnPropertyNames,jh=Object.getPrototypeOf,Nh=Object.prototype.hasOwnProperty,vi=(e,t)=>function(){return t||(0,e[Zc(e)[0]])((t={exports:{}}).exports,t),t.exports},Rh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Zc(t))!Nh.call(e,u)&&u!==n&&$c(e,u,{get:()=>t[u],enumerable:!(r=Ph(t,u))||r.enumerable});return e},mi=(e,t,n)=>(n=e!=null?Bh(jh(e)):{},Rh(t||!e||!e.__esModule?$c(n,"default",{value:e,enumerable:!0}):n,e)),zh=vi({"src/scripts/lib/prism.js"(e,t){var n=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{},r=(function(u){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},c={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function x(S){return S instanceof l?new l(S.type,x(S.content),S.alias):Array.isArray(S)?S.map(x):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++i}),x.__id},clone:function x(S,T){T=T||{};var I,B;switch(c.util.type(S)){case"Object":if(B=c.util.objId(S),T[B])return T[B];I={},T[B]=I;for(var d in S)S.hasOwnProperty(d)&&(I[d]=x(S[d],T));return I;case"Array":return B=c.util.objId(S),T[B]?T[B]:(I=[],T[B]=I,S.forEach(function(H,R){I[R]=x(H,T)}),I);default:return S}},getLanguage:function(x){for(;x;){var S=a.exec(x.className);if(S)return S[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,S){x.className=x.className.replace(RegExp(a,"gi"),""),x.classList.add("language-"+S)},currentScript:function(){if(typeof document=="undefined")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(I){var x=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(I.stack)||[])[1];if(x){var S=document.getElementsByTagName("script");for(var T in S)if(S[T].src==x)return S[T]}return null}},isActive:function(x,S,T){for(var I="no-"+S;x;){var B=x.classList;if(B.contains(S))return!0;if(B.contains(I))return!1;x=x.parentElement}return!!T}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(x,S){var T=c.util.clone(c.languages[x]);for(var I in S)T[I]=S[I];return T},insertBefore:function(x,S,T,I){I=I||c.languages;var B=I[x],d={};for(var H in B)if(B.hasOwnProperty(H)){if(H==S)for(var R in T)T.hasOwnProperty(R)&&(d[R]=T[R]);T.hasOwnProperty(H)||(d[H]=B[H])}var Z=I[x];return I[x]=d,c.languages.DFS(c.languages,function(q,G){G===Z&&q!=x&&(this[q]=d)}),d},DFS:function x(S,T,I,B){B=B||{};var d=c.util.objId;for(var H in S)if(S.hasOwnProperty(H)){T.call(S,H,S[H],I||H);var R=S[H],Z=c.util.type(R);Z==="Object"&&!B[d(R)]?(B[d(R)]=!0,x(R,T,null,B)):Z==="Array"&&!B[d(R)]&&(B[d(R)]=!0,x(R,T,H,B))}}},plugins:{},highlightAll:function(x,S){c.highlightAllUnder(document,x,S)},highlightAllUnder:function(x,S,T){var I={callback:T,container:x,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",I),I.elements=Array.prototype.slice.apply(I.container.querySelectorAll(I.selector)),c.hooks.run("before-all-elements-highlight",I);for(var B=0,d;d=I.elements[B++];)c.highlightElement(d,S===!0,I.callback)},highlightElement:function(x,S,T){var I=c.util.getLanguage(x),B=c.languages[I];c.util.setLanguage(x,I);var d=x.parentElement;d&&d.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(d,I);var H=x.textContent,R={element:x,language:I,grammar:B,code:H};function Z(G){R.highlightedCode=G,c.hooks.run("before-insert",R),R.element.innerHTML=R.highlightedCode,c.hooks.run("after-highlight",R),c.hooks.run("complete",R),T&&T.call(R.element)}if(c.hooks.run("before-sanity-check",R),d=R.element.parentElement,d&&d.nodeName.toLowerCase()==="pre"&&!d.hasAttribute("tabindex")&&d.setAttribute("tabindex","0"),!R.code){c.hooks.run("complete",R),T&&T.call(R.element);return}if(c.hooks.run("before-highlight",R),!R.grammar){Z(c.util.encode(R.code));return}if(S&&u.Worker){var q=new Worker(c.filename);q.onmessage=function(G){Z(G.data)},q.postMessage(JSON.stringify({language:R.language,code:R.code,immediateClose:!0}))}else Z(c.highlight(R.code,R.grammar,R.language))},highlight:function(x,S,T){var I={code:x,grammar:S,language:T};if(c.hooks.run("before-tokenize",I),!I.grammar)throw new Error('The language "'+I.language+'" has no grammar.');return I.tokens=c.tokenize(I.code,I.grammar),c.hooks.run("after-tokenize",I),l.stringify(c.util.encode(I.tokens),I.language)},tokenize:function(x,S){var T=S.rest;if(T){for(var I in T)S[I]=T[I];delete S.rest}var B=new v;return y(B,B.head,x),m(x,B,S,B.head,0),D(B)},hooks:{all:{},add:function(x,S){var T=c.hooks.all;T[x]=T[x]||[],T[x].push(S)},run:function(x,S){var T=c.hooks.all[x];if(!(!T||!T.length))for(var I=0,B;B=T[I++];)B(S)}},Token:l};u.Prism=c;function l(x,S,T,I){this.type=x,this.content=S,this.alias=T,this.length=(I||"").length|0}l.stringify=function x(S,T){if(typeof S=="string")return S;if(Array.isArray(S)){var I="";return S.forEach(function(Z){I+=x(Z,T)}),I}var B={type:S.type,content:x(S.content,T),tag:"span",classes:["token",S.type],attributes:{},language:T},d=S.alias;d&&(Array.isArray(d)?Array.prototype.push.apply(B.classes,d):B.classes.push(d)),c.hooks.run("wrap",B);var H="";for(var R in B.attributes)H+=" "+R+'="'+(B.attributes[R]||"").replace(/"/g,""")+'"';return"<"+B.tag+' class="'+B.classes.join(" ")+'"'+H+">"+B.content+"</"+B.tag+">"};function p(x,S,T,I){x.lastIndex=S;var B=x.exec(T);if(B&&I&&B[1]){var d=B[1].length;B.index+=d,B[0]=B[0].slice(d)}return B}function m(x,S,T,I,B,d){for(var H in T)if(!(!T.hasOwnProperty(H)||!T[H])){var R=T[H];R=Array.isArray(R)?R:[R];for(var Z=0;Z<R.length;++Z){if(d&&d.cause==H+","+Z)return;var q=R[Z],G=q.inside,L=!!q.lookbehind,ne=!!q.greedy,Q=q.alias;if(ne&&!q.pattern.global){var $=q.pattern.toString().match(/[imsuy]*$/)[0];q.pattern=RegExp(q.pattern.source,$+"g")}for(var Y=q.pattern||q,re=I.next,me=B;re!==S.tail&&!(d&&me>=d.reach);me+=re.value.length,re=re.next){var se=re.value;if(S.length>x.length)return;if(!(se instanceof l)){var K=1,V;if(ne){if(V=p(Y,me,x,L),!V||V.index>=x.length)break;var ee=V.index,ue=V.index+V[0].length,oe=me;for(oe+=re.value.length;ee>=oe;)re=re.next,oe+=re.value.length;if(oe-=re.value.length,me=oe,re.value instanceof l)continue;for(var ce=re;ce!==S.tail&&(oe<ue||typeof ce.value=="string");ce=ce.next)K++,oe+=ce.value.length;K--,se=x.slice(me,oe),V.index-=me}else if(V=p(Y,0,se,L),!V)continue;var ee=V.index,he=V[0],Ce=se.slice(0,ee),Re=se.slice(ee+he.length),ge=me+se.length;d&&ge>d.reach&&(d.reach=ge);var Te=re.prev;Ce&&(Te=y(S,Te,Ce),me+=Ce.length),F(S,Te,K);var He=new l(H,G?c.tokenize(he,G):he,Q,he);if(re=y(S,Te,He),Re&&y(S,re,Re),K>1){var nt={cause:H+","+Z,reach:ge};m(x,S,T,re.prev,me,nt),d&&nt.reach>d.reach&&(d.reach=nt.reach)}}}}}}function v(){var x={value:null,prev:null,next:null},S={value:null,prev:x,next:null};x.next=S,this.head=x,this.tail=S,this.length=0}function y(x,S,T){var I=S.next,B={value:T,prev:S,next:I};return S.next=B,I.prev=B,x.length++,B}function F(x,S,T){for(var I=S.next,B=0;B<T&&I!==x.tail;B++)I=I.next;S.next=I,I.prev=S,x.length-=B}function D(x){for(var S=[],T=x.head.next;T!==x.tail;)S.push(T.value),T=T.next;return S}if(!u.document)return u.addEventListener&&(c.disableWorkerMessageHandler||u.addEventListener("message",function(x){var S=JSON.parse(x.data),T=S.language,I=S.code,B=S.immediateClose;u.postMessage(c.highlight(I,c.languages[T],T)),B&&u.close()},!1)),c;var _=c.util.currentScript();_&&(c.filename=_.src,_.hasAttribute("data-manual")&&(c.manual=!0));function O(){c.manual||c.highlightAll()}if(!c.manual){var w=document.readyState;w==="loading"||w==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",O):window.requestAnimationFrame?window.requestAnimationFrame(O):window.setTimeout(O,16)}return c})(n);typeof t!="undefined"&&t.exports&&(t.exports=r),typeof global!="undefined"&&(global.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(a,i){var o={};o["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[i]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var c={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};c["language-"+i]={pattern:/[\s\S]+/,inside:r.languages[i]};var l={};l[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:c},r.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(u,a){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:r.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,(function(u){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var i=u.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,(function(u){var a="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:i,environment:{pattern:RegExp("\\$"+a),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+a),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};u.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+a),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+a),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=u.languages.bash;for(var c=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=o.variable[1].inside,p=0;p<c.length;p++)l[c[p]]=u.languages.bash[c[p]];u.languages.sh=u.languages.bash,u.languages.shell=u.languages.bash})(r),(function(u){function a(V,ue){return V.replace(/<<(\d+)>>/g,function(oe,ce){return"(?:"+ue[+ce]+")"})}function i(V,ue,oe){return RegExp(a(V,ue),oe||"")}function o(V,ue){for(var oe=0;oe<ue;oe++)V=V.replace(/<<self>>/g,function(){return"(?:"+V+")"});return V.replace(/<<self>>/g,"[^\\s\\S]")}var c={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function l(V){return"\\b(?:"+V.trim().replace(/ /g,"|")+")\\b"}var p=l(c.typeDeclaration),m=RegExp(l(c.type+" "+c.typeDeclaration+" "+c.contextual+" "+c.other)),v=l(c.typeDeclaration+" "+c.contextual+" "+c.other),y=l(c.type+" "+c.typeDeclaration+" "+c.other),F=o(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),D=o(/\((?:[^()]|<<self>>)*\)/.source,2),_=/@?\b[A-Za-z_]\w*\b/.source,O=a(/<<0>>(?:\s*<<1>>)?/.source,[_,F]),w=a(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[v,O]),x=/\[\s*(?:,\s*)*\]/.source,S=a(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[w,x]),T=a(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[F,D,x]),I=a(/\(<<0>>+(?:,<<0>>+)+\)/.source,[T]),B=a(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[I,w,x]),d={keyword:m,punctuation:/[<>()?,.:[\]]/},H=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,Z=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;u.languages.csharp=u.languages.extend("clike",{string:[{pattern:i(/(^|[^$\\])<<0>>/.source,[Z]),lookbehind:!0,greedy:!0},{pattern:i(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:i(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[w]),lookbehind:!0,inside:d},{pattern:i(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[_,B]),lookbehind:!0,inside:d},{pattern:i(/(\busing\s+)<<0>>(?=\s*=)/.source,[_]),lookbehind:!0},{pattern:i(/(\b<<0>>\s+)<<1>>/.source,[p,O]),lookbehind:!0,inside:d},{pattern:i(/(\bcatch\s*\(\s*)<<0>>/.source,[w]),lookbehind:!0,inside:d},{pattern:i(/(\bwhere\s+)<<0>>/.source,[_]),lookbehind:!0},{pattern:i(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[S]),lookbehind:!0,inside:d},{pattern:i(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[B,y,_]),inside:d}],keyword:m,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),u.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),u.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:i(/([(,]\s*)<<0>>(?=\s*:)/.source,[_]),lookbehind:!0,alias:"punctuation"}}),u.languages.insertBefore("csharp","class-name",{namespace:{pattern:i(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[_]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:i(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[D]),lookbehind:!0,alias:"class-name",inside:d},"return-type":{pattern:i(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[B,w]),inside:d,alias:"class-name"},"constructor-invocation":{pattern:i(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[B]),lookbehind:!0,inside:d,alias:"class-name"},"generic-method":{pattern:i(/<<0>>\s*<<1>>(?=\s*\()/.source,[_,F]),inside:{function:i(/^<<0>>/.source,[_]),generic:{pattern:RegExp(F),alias:"class-name",inside:d}}},"type-list":{pattern:i(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[p,O,_,B,m.source,D,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:i(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[O,D]),lookbehind:!0,greedy:!0,inside:u.languages.csharp},keyword:m,"class-name":{pattern:RegExp(B),greedy:!0,inside:d},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var q=R+"|"+H,G=a(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[q]),L=o(a(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[G]),2),ne=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Q=a(/<<0>>(?:\s*\(<<1>>*\))?/.source,[w,L]);u.languages.insertBefore("csharp","class-name",{attribute:{pattern:i(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[ne,Q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:i(/^<<0>>(?=\s*:)/.source,[ne]),alias:"keyword"},"attribute-arguments":{pattern:i(/\(<<0>>*\)/.source,[L]),inside:u.languages.csharp},"class-name":{pattern:RegExp(w),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var $=/:[^}\r\n]+/.source,Y=o(a(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[G]),2),re=a(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Y,$]),me=o(a(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[q]),2),se=a(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[me,$]);function K(V,ue){return{interpolation:{pattern:i(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[V]),lookbehind:!0,inside:{"format-string":{pattern:i(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ue,$]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:u.languages.csharp}}},string:/[\s\S]+/}}u.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:i(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[re]),lookbehind:!0,greedy:!0,inside:K(re,Y)},{pattern:i(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[se]),lookbehind:!0,greedy:!0,inside:K(se,me)}],char:{pattern:RegExp(H),greedy:!0}}),u.languages.dotnet=u.languages.cs=u.languages.csharp})(r),(function(u){u.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var a={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(a).forEach(function(i){var o=a[i],c=[];/^\w+$/.test(i)||c.push(/\w+/.exec(i)[0]),i==="diff"&&c.push("bold"),u.languages.diff[i]={pattern:RegExp("^(?:["+o+`].*(?:\r
|
|
2
2
|
?|
|
|
3
|
-
|(?![\\s\\S])))+`,"m"),alias:m,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(h)[0]}}}}),Object.defineProperty(s.languages.diff,"PREFIXES",{value:l})})(o),o.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},o.languages.webmanifest=o.languages.json,(function(s){var l=s.languages.powershell={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:{function:{pattern:/(^|[^`])\$\((?:\$\(.*?\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:{}},"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};l.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:l},boolean:l.boolean,variable:l.variable}})(o),(function(s){s.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var l=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:s.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];s.languages.puppet.heredoc[0].inside.interpolation=l,s.languages.puppet.string.inside["double-quoted"].inside.interpolation=l})(o),o.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},o.languages.python["string-interpolation"].inside.interpolation.inside.rest=o.languages.python,o.languages.py=o.languages.python,(function(s){s.languages.ruby=s.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),s.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var l={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:s.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete s.languages.ruby.function;var h="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",d=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;s.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+h+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:l,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:l,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+d),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+d+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),s.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+h),greedy:!0,inside:{interpolation:l,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:l,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:l,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+h),greedy:!0,inside:{interpolation:l,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:l,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete s.languages.ruby.string,s.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),s.languages.rb=s.languages.ruby})(o),o.languages.scss=o.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),o.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),o.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),o.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),o.languages.scss.atrule.inside.rest=o.languages.scss,(function(s){var l=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");s.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return l}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:s.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},s.languages["sh-session"]=s.languages.shellsession=s.languages["shell-session"]})(o),(function(s){function l(y,S){s.languages[y]&&s.languages.insertBefore(y,"comment",{"doc-comment":S})}var h=s.languages.markup.tag,d={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:h}},m={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:h}};l("csharp",d),l("fsharp",d),l("vbnet",m)})(o),(function(s){var l=/[*&][^\s[\]{},]+/,h=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,d="(?:"+h.source+"(?:[ ]+"+l.source+")?|"+l.source+"(?:[ ]+"+h.source+")?)",m=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),y=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function S(v,_){_=(_||"").replace(/m/g,"")+"m";var O=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return d}).replace(/<<value>>/g,function(){return v});return RegExp(O,_)}s.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return d})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return d}).replace(/<<key>>/g,function(){return"(?:"+m+"|"+y+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:S(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:S(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:S(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:S(y),lookbehind:!0,greedy:!0},number:{pattern:S(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:h,important:l,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},s.languages.yml=s.languages.yaml})(o),(function(s){var l={pattern:/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i,alias:"constant"};s.languages["log-file"]={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},verbose:[{pattern:/\b(Trace)\b:/i,greedy:!0},{pattern:/\[(verbose|verb|vrb|vb|v)\]/i,greedy:!0}],debug:[{pattern:/\b(DEBUG|Debug)\b|\b(debug)\:/i,greedy:!0},{pattern:/\[(debug|dbug|dbg|de|d)\]/i,greedy:!0}],info:[{pattern:/\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\b | \b(^[^\.\.]+$)\b | \b(info|information)\:/,greedy:!0},{pattern:/\[(information|info|inf|in|i)\]/i,greedy:!0}],warning:[{pattern:/\b(WARNING|WARN|Warn|WW)\b|\b(warning)\:/i,greedy:!0},{pattern:/\[(warning|warn|wrn|wn|w)\]/i,greedy:!0}],error:[{pattern:/\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\b|\b(error)\:/i,greedy:!0},{pattern:/\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\]/i,greedy:!0}],date:[{pattern:/\b\d{4}-\d{2}-\d{2}(T|\b)/i,greedy:!0},{pattern:/\b\d{2}[^\w\s]\d{2}[^\w\s]\d{4}\b/i,greedy:!0},{pattern:/\d{1,2}:\d{2}(:\d{2}([.,]\d{1,})?)?(Z| ?[+-]\d{1,2}:\d{2})?\b/i,greedy:!0}],guid:l,"text-string":[{pattern:/[a-zA-Z]'[a-zA-Z]/i,greedy:!0},{pattern:/[a-zA-Z]\('[a-zA-Z]/i,greedy:!0}],string:[{pattern:/"[^"]*"/i,greedy:!0,inside:{"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'[^']*'/i,greedy:!0}],exceptiontype:{pattern:/\b([a-zA-Z.]*Exception)\b/i,greedy:!0},"text-constant":{pattern:/(\\[\w-]+.\w+)/i,greedy:!0},constant:[{pattern:/\b([0-9]+|true|false|null)\b/i,greedy:!0},{pattern:/\b(http|https|ftp|file):\/\S+\b\/?/i,greedy:!0},{pattern:/([\w-]+\.)+([\w-])+(?![\w/\\])/i,greedy:!0}]},s.languages.log=s.languages["log-file"]})(o),(function(){if(typeof o=="undefined"||typeof document=="undefined")return;var s="line-numbers",l=/\n(?!$)/g,h=o.plugins.lineNumbers={getLine:function(S,v){if(!(S.tagName!=="PRE"||!S.classList.contains(s))){var _=S.querySelector(".line-numbers-rows");if(_){var O=parseInt(S.getAttribute("data-start"),10)||1,D=O+(_.children.length-1);v<O&&(v=O),v>D&&(v=D);var k=v-O;return _.children[k]}}},resize:function(S){d([S])},assumeViewportIndependence:!0};function d(S){if(S=S.filter(function(_){var O=m(_),D=O["white-space"];return D==="pre-wrap"||D==="pre-line"}),S.length!=0){var v=S.map(function(_){var O=_.querySelector("code"),D=_.querySelector(".line-numbers-rows");if(!(!O||!D)){var k=_.querySelector(".line-numbers-sizer"),A=O.textContent.split(l);k||(k=document.createElement("span"),k.className="line-numbers-sizer",O.appendChild(k)),k.innerHTML="0",k.style.display="block";var P=k.getBoundingClientRect().height;return k.innerHTML="",{element:_,lines:A,lineHeights:[],oneLinerHeight:P,sizer:k}}}).filter(Boolean);v.forEach(function(_){var O=_.sizer,D=_.lines,k=_.lineHeights,A=_.oneLinerHeight;k[D.length-1]=void 0,D.forEach(function(P,j){if(P&&P.length>1){var w=O.appendChild(document.createElement("span"));w.style.display="block",w.textContent=P}else k[j]=A})}),v.forEach(function(_){for(var O=_.sizer,D=_.lineHeights,k=0,A=0;A<D.length;A++)D[A]===void 0&&(D[A]=O.children[k++].getBoundingClientRect().height)}),v.forEach(function(_){var O=_.sizer,D=_.element.querySelector(".line-numbers-rows");O.style.display="none",O.innerHTML="",_.lineHeights.forEach(function(k,A){D.children[A].style.height=k+"px"})})}}function m(S){return S?window.getComputedStyle?getComputedStyle(S):S.currentStyle||null:null}var y=void 0;window.addEventListener("resize",function(){h.assumeViewportIndependence&&y===window.innerWidth||(y=window.innerWidth,d(Array.prototype.slice.call(document.querySelectorAll("pre."+s))))}),o.hooks.add("complete",function(S){if(S.code){var v=S.element,_=v.parentNode;if(!(!_||!/pre/i.test(_.nodeName))&&!v.querySelector(".line-numbers-rows")&&o.util.isActive(v,s)){v.classList.remove(s),_.classList.add(s);var O=S.code.match(l),D=O?O.length+1:1,k,A=new Array(D+1).join("<span></span>");k=document.createElement("span"),k.setAttribute("aria-hidden","true"),k.className="line-numbers-rows",k.innerHTML=A,_.hasAttribute("data-start")&&(_.style.counterReset="linenumber "+(parseInt(_.getAttribute("data-start"),10)-1)),S.element.appendChild(k),d([_]),o.hooks.run("line-numbers",S)}}}),o.hooks.add("line-numbers",function(S){S.plugins=S.plugins||{},S.plugins.lineNumbers=!0})})(),(function(){if(typeof o=="undefined"||typeof document=="undefined")return;var s=[],l={},h=function(){};o.plugins.toolbar={};var d=o.plugins.toolbar.registerButton=function(S,v){var _;if(typeof v=="function"?_=v:_=function(O){var D;return typeof v.onClick=="function"?(D=document.createElement("button"),D.type="button",D.addEventListener("click",function(){v.onClick.call(this,O)})):typeof v.url=="string"?(D=document.createElement("a"),D.href=v.url):D=document.createElement("span"),v.className&&D.classList.add(v.className),D.textContent=v.text,D},S in l){console.warn('There is a button with the key "'+S+'" registered already.');return}s.push(l[S]=_)};function m(S){for(;S;){var v=S.getAttribute("data-toolbar-order");if(v!=null)return v=v.trim(),v.length?v.split(/\s*,\s*/g):[];S=S.parentElement}}var y=o.plugins.toolbar.hook=function(S){var v=S.element.parentNode;if(!(!v||!/pre/i.test(v.nodeName))&&!v.parentNode.classList.contains("code-toolbar")){var _=document.createElement("div");_.classList.add("code-toolbar"),v.parentNode.insertBefore(_,v),_.appendChild(v);var O=document.createElement("div");O.classList.add("toolbar");var D=s,k=m(S.element);k&&(D=k.map(function(A){return l[A]||h})),D.forEach(function(A){var P=A(S);if(P){var j=document.createElement("div");j.classList.add("toolbar-item"),j.appendChild(P),O.appendChild(j)}}),_.appendChild(O)}};d("label",function(S){var v=S.element.parentNode;if(!(!v||!/pre/i.test(v.nodeName))&&v.hasAttribute("data-label")){var _,O,D=v.getAttribute("data-label");try{O=document.querySelector("template#"+D)}catch(k){}return O?_=O.content:(v.hasAttribute("data-url")?(_=document.createElement("a"),_.href=v.getAttribute("data-url")):_=document.createElement("span"),_.textContent=D),_}}),o.hooks.add("complete",y)})(),(function(){if(typeof o=="undefined"||typeof document=="undefined")return;if(!o.plugins.toolbar){console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.");return}function s(y,S){y.addEventListener("click",function(){h(S)})}function l(y){var S=document.createElement("textarea");S.value=y.getText(),S.style.top="0",S.style.left="0",S.style.position="fixed",document.body.appendChild(S),S.focus(),S.select();try{var v=document.execCommand("copy");setTimeout(function(){v?y.success():y.error()},1)}catch(_){setTimeout(function(){y.error(_)},1)}document.body.removeChild(S)}function h(y){navigator.clipboard?navigator.clipboard.writeText(y.getText()).then(y.success,function(){l(y)}):l(y)}function d(y){window.getSelection().selectAllChildren(y)}function m(y){var S={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3},v="data-prismjs-";for(var _ in S){for(var O=v+_,D=y;D&&!D.hasAttribute(O);)D=D.parentElement;D&&(S[_]=D.getAttribute(O))}return S}o.plugins.toolbar.registerButton("copy-to-clipboard",function(y){var S=y.element,v=m(S),_=document.createElement("button");_.className="copy-to-clipboard-button",_.setAttribute("type","button");var O=document.createElement("span");return _.appendChild(O),k("copy"),s(_,{getText:function(){return S.textContent},success:function(){k("copy-success"),D()},error:function(){k("copy-error"),setTimeout(function(){d(S)},1),D()}}),_;function D(){setTimeout(function(){k("copy")},v["copy-timeout"])}function k(A){O.textContent=v[A],_.setAttribute("data-copy-state",A)}})})(),(function(){if(typeof o!="undefined"){var s=/^diff-([\w-]+)/i,l=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/g,h=RegExp(/(?:__|[^\r\n<])*(?:\r\n?|\n|(?:__|[^\r\n<])(?![^\r\n]))/.source.replace(/__/g,function(){return l.source}),"gi"),d=!1;o.hooks.add("before-sanity-check",function(m){var y=m.language;s.test(y)&&!m.grammar&&(m.grammar=o.languages[y]=o.languages.diff)}),o.hooks.add("before-tokenize",function(m){!d&&!o.languages.diff&&!o.plugins.autoloader&&(d=!0,console.warn("Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin."));var y=m.language;s.test(y)&&!o.languages[y]&&(o.languages[y]=o.languages.diff)}),o.hooks.add("wrap",function(m){var y,S;if(m.language!=="diff"){var v=s.exec(m.language);if(!v)return;y=v[1],S=o.languages[y]}var _=o.languages.diff&&o.languages.diff.PREFIXES;if(_&&m.type in _){var O=m.content.replace(l,""),D=O.replace(/</g,"<").replace(/&/g,"&"),k=D.replace(/(^|[\r\n])./g,"$1"),A;S?A=o.highlight(k,S,y):A=o.util.encode(k);var P=new o.Token("prefix",_[m.type],[/\w+/.exec(m.type)[0]]),j=o.Token.stringify(P,m.language),w=[],E;for(h.lastIndex=0;E=h.exec(A);)w.push(j+E[0]);/(?:^|[\r\n]).$/.test(D)&&w.push(j),m.content=w.join(""),S&&m.classes.push("language-"+y)}})}})()}}),Nu=Mr({"node_modules/clipboard/dist/clipboard.js"(t,n){(function(o,s){typeof t=="object"&&typeof n=="object"?n.exports=s():typeof define=="function"&&define.amd?define([],s):typeof t=="object"?t.ClipboardJS=s():o.ClipboardJS=s()})(t,function(){return(function(){var r={686:(function(l,h,d){"use strict";d.d(h,{default:function(){return pe}});var m=d(279),y=d.n(m),S=d(370),v=d.n(S),_=d(817),O=d.n(_);function D(ne){try{return document.execCommand(ne)}catch(V){return!1}}var k=function(V){var Y=O()(V);return D("cut"),Y},A=k;function P(ne){var V=document.documentElement.getAttribute("dir")==="rtl",Y=document.createElement("textarea");Y.style.fontSize="12pt",Y.style.border="0",Y.style.padding="0",Y.style.margin="0",Y.style.position="absolute",Y.style[V?"right":"left"]="-9999px";var ee=window.pageYOffset||document.documentElement.scrollTop;return Y.style.top="".concat(ee,"px"),Y.setAttribute("readonly",""),Y.value=ne,Y}var j=function(V,Y){var ee=P(V);Y.container.appendChild(ee);var ce=O()(ee);return D("copy"),ee.remove(),ce},w=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ee="";return typeof V=="string"?ee=j(V,Y):V instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(V==null?void 0:V.type)?ee=j(V.value,Y):(ee=O()(V),D("copy")),ee},E=w;function L(ne){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L=function(Y){return typeof Y}:L=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},L(ne)}var M=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Y=V.action,ee=Y===void 0?"copy":Y,ce=V.container,le=V.target,Ue=V.text;if(ee!=="copy"&&ee!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(le!==void 0)if(le&&L(le)==="object"&&le.nodeType===1){if(ee==="copy"&&le.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ee==="cut"&&(le.hasAttribute("readonly")||le.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ue)return E(Ue,{container:ce});if(le)return ee==="cut"?A(le):E(le,{container:ce})},B=M;function u(ne){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(Y){return typeof Y}:u=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},u(ne)}function W(ne,V){if(!(ne instanceof V))throw new TypeError("Cannot call a class as a function")}function F(ne,V){for(var Y=0;Y<V.length;Y++){var ee=V[Y];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(ne,ee.key,ee)}}function X(ne,V,Y){return V&&F(ne.prototype,V),Y&&F(ne,Y),ne}function oe(ne,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(V&&V.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),V&&Ae(ne,V)}function Ae(ne,V){return Ae=Object.setPrototypeOf||function(ee,ce){return ee.__proto__=ce,ee},Ae(ne,V)}function re(ne){var V=K();return function(){var ee=G(ne),ce;if(V){var le=G(this).constructor;ce=Reflect.construct(ee,arguments,le)}else ce=ee.apply(this,arguments);return xe(this,ce)}}function xe(ne,V){return V&&(u(V)==="object"||typeof V=="function")?V:Q(ne)}function Q(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function K(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function G(ne){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},G(ne)}function ie(ne,V){var Y="data-clipboard-".concat(ne);if(V.hasAttribute(Y))return V.getAttribute(Y)}var Z=(function(ne){oe(Y,ne);var V=re(Y);function Y(ee,ce){var le;return W(this,Y),le=V.call(this),le.resolveOptions(ce),le.listenClick(ee),le}return X(Y,[{key:"resolveOptions",value:function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ce.action=="function"?ce.action:this.defaultAction,this.target=typeof ce.target=="function"?ce.target:this.defaultTarget,this.text=typeof ce.text=="function"?ce.text:this.defaultText,this.container=u(ce.container)==="object"?ce.container:document.body}},{key:"listenClick",value:function(ce){var le=this;this.listener=v()(ce,"click",function(Ue){return le.onClick(Ue)})}},{key:"onClick",value:function(ce){var le=ce.delegateTarget||ce.currentTarget,Ue=this.action(le)||"copy",Ye=B({action:Ue,container:this.container,target:this.target(le),text:this.text(le)});this.emit(Ye?"success":"error",{action:Ue,text:Ye,trigger:le,clearSelection:function(){le&&le.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ce){return ie("action",ce)}},{key:"defaultTarget",value:function(ce){var le=ie("target",ce);if(le)return document.querySelector(le)}},{key:"defaultText",value:function(ce){return ie("text",ce)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ce){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return E(ce,le)}},{key:"cut",value:function(ce){return A(ce)}},{key:"isSupported",value:function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],le=typeof ce=="string"?[ce]:ce,Ue=!!document.queryCommandSupported;return le.forEach(function(Ye){Ue=Ue&&!!document.queryCommandSupported(Ye)}),Ue}}]),Y})(y()),pe=Z}),828:(function(l){var h=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var d=Element.prototype;d.matches=d.matchesSelector||d.mozMatchesSelector||d.msMatchesSelector||d.oMatchesSelector||d.webkitMatchesSelector}function m(y,S){for(;y&&y.nodeType!==h;){if(typeof y.matches=="function"&&y.matches(S))return y;y=y.parentNode}}l.exports=m}),438:(function(l,h,d){var m=d(828);function y(_,O,D,k,A){var P=v.apply(this,arguments);return _.addEventListener(D,P,A),{destroy:function(){_.removeEventListener(D,P,A)}}}function S(_,O,D,k,A){return typeof _.addEventListener=="function"?y.apply(null,arguments):typeof D=="function"?y.bind(null,document).apply(null,arguments):(typeof _=="string"&&(_=document.querySelectorAll(_)),Array.prototype.map.call(_,function(P){return y(P,O,D,k,A)}))}function v(_,O,D,k){return function(A){A.delegateTarget=m(A.target,O),A.delegateTarget&&k.call(_,A)}}l.exports=S}),879:(function(l,h){h.node=function(d){return d!==void 0&&d instanceof HTMLElement&&d.nodeType===1},h.nodeList=function(d){var m=Object.prototype.toString.call(d);return d!==void 0&&(m==="[object NodeList]"||m==="[object HTMLCollection]")&&"length"in d&&(d.length===0||h.node(d[0]))},h.string=function(d){return typeof d=="string"||d instanceof String},h.fn=function(d){var m=Object.prototype.toString.call(d);return m==="[object Function]"}}),370:(function(l,h,d){var m=d(879),y=d(438);function S(D,k,A){if(!D&&!k&&!A)throw new Error("Missing required arguments");if(!m.string(k))throw new TypeError("Second argument must be a String");if(!m.fn(A))throw new TypeError("Third argument must be a Function");if(m.node(D))return v(D,k,A);if(m.nodeList(D))return _(D,k,A);if(m.string(D))return O(D,k,A);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function v(D,k,A){return D.addEventListener(k,A),{destroy:function(){D.removeEventListener(k,A)}}}function _(D,k,A){return Array.prototype.forEach.call(D,function(P){P.addEventListener(k,A)}),{destroy:function(){Array.prototype.forEach.call(D,function(P){P.removeEventListener(k,A)})}}}function O(D,k,A){return y(document.body,D,k,A)}l.exports=S}),817:(function(l){function h(d){var m;if(d.nodeName==="SELECT")d.focus(),m=d.value;else if(d.nodeName==="INPUT"||d.nodeName==="TEXTAREA"){var y=d.hasAttribute("readonly");y||d.setAttribute("readonly",""),d.select(),d.setSelectionRange(0,d.value.length),y||d.removeAttribute("readonly"),m=d.value}else{d.hasAttribute("contenteditable")&&d.focus();var S=window.getSelection(),v=document.createRange();v.selectNodeContents(d),S.removeAllRanges(),S.addRange(v),m=S.toString()}return m}l.exports=h}),279:(function(l){function h(){}h.prototype={on:function(d,m,y){var S=this.e||(this.e={});return(S[d]||(S[d]=[])).push({fn:m,ctx:y}),this},once:function(d,m,y){var S=this;function v(){S.off(d,v),m.apply(y,arguments)}return v._=m,this.on(d,v,y)},emit:function(d){var m=[].slice.call(arguments,1),y=((this.e||(this.e={}))[d]||[]).slice(),S=0,v=y.length;for(S;S<v;S++)y[S].fn.apply(y[S].ctx,m);return this},off:function(d,m){var y=this.e||(this.e={}),S=y[d],v=[];if(S&&m)for(var _=0,O=S.length;_<O;_++)S[_].fn!==m&&S[_].fn._!==m&&v.push(S[_]);return v.length?y[d]=v:delete y[d],this}},l.exports=h,l.exports.TinyEmitter=h})},o={};function s(l){if(o[l])return o[l].exports;var h=o[l]={exports:{}};return r[l](h,h.exports,s),h.exports}return(function(){s.n=function(l){var h=l&&l.__esModule?(function(){return l.default}):(function(){return l});return s.d(h,{a:h}),h}})(),(function(){s.d=function(l,h){for(var d in h)s.o(h,d)&&!s.o(l,d)&&Object.defineProperty(l,d,{enumerable:!0,get:h[d]})}})(),(function(){s.o=function(l,h){return Object.prototype.hasOwnProperty.call(l,h)}})(),s(686)})().default})}}),Lu=Mr({"node_modules/anchor-js/anchor.js"(t,n){(function(r,o){"use strict";typeof define=="function"&&define.amd?define([],o):typeof n=="object"&&n.exports?n.exports=o():(r.AnchorJS=o(),r.anchors=new r.AnchorJS)})(globalThis,function(){"use strict";function r(o){this.options=o||{},this.elements=[];function s(d){d.icon=Object.prototype.hasOwnProperty.call(d,"icon")?d.icon:"\uE9CB",d.visible=Object.prototype.hasOwnProperty.call(d,"visible")?d.visible:"hover",d.placement=Object.prototype.hasOwnProperty.call(d,"placement")?d.placement:"right",d.ariaLabel=Object.prototype.hasOwnProperty.call(d,"ariaLabel")?d.ariaLabel:"Anchor",d.class=Object.prototype.hasOwnProperty.call(d,"class")?d.class:"",d.base=Object.prototype.hasOwnProperty.call(d,"base")?d.base:"",d.truncate=Object.prototype.hasOwnProperty.call(d,"truncate")?Math.floor(d.truncate):64,d.titleText=Object.prototype.hasOwnProperty.call(d,"titleText")?d.titleText:""}s(this.options),this.add=function(d){var m,y,S,v,_,O,D,k,A,P,j,w=[];if(s(this.options),d||(d="h2, h3, h4, h5, h6"),m=l(d),m.length===0)return this;for(h(),y=document.querySelectorAll("[id]"),S=[].map.call(y,function(E){return E.id}),_=0;_<m.length;_++){if(this.hasAnchorJSLink(m[_])){w.push(_);continue}if(m[_].hasAttribute("id"))v=m[_].getAttribute("id");else if(m[_].hasAttribute("data-anchor-id"))v=m[_].getAttribute("data-anchor-id");else{k=this.urlify(m[_].textContent),A=k,D=0;do O!==void 0&&(A=k+"-"+D),O=S.indexOf(A),D+=1;while(O!==-1);O=void 0,S.push(A),m[_].setAttribute("id",A),v=A}P=document.createElement("a"),P.className="anchorjs-link "+this.options.class,P.setAttribute("aria-label",this.options.ariaLabel),P.setAttribute("data-anchorjs-icon",this.options.icon),this.options.titleText&&(P.title=this.options.titleText),j=document.querySelector("base")?window.location.pathname+window.location.search:"",j=this.options.base||j,P.href=j+"#"+v,this.options.visible==="always"&&(P.style.opacity="1"),this.options.icon==="\uE9CB"&&(P.style.font="1em/1 anchorjs-icons",this.options.placement==="left"&&(P.style.lineHeight="inherit")),this.options.placement==="left"?(P.style.position="absolute",P.style.marginLeft="-1.25em",P.style.paddingRight=".25em",P.style.paddingLeft=".25em",m[_].insertBefore(P,m[_].firstChild)):(P.style.marginLeft=".1875em",P.style.paddingRight=".1875em",P.style.paddingLeft=".1875em",m[_].appendChild(P))}for(_=0;_<w.length;_++)m.splice(w[_]-_,1);return this.elements=this.elements.concat(m),this},this.remove=function(d){for(var m,y,S=l(d),v=0;v<S.length;v++)y=S[v].querySelector(".anchorjs-link"),y&&(m=this.elements.indexOf(S[v]),m!==-1&&this.elements.splice(m,1),S[v].removeChild(y));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(d){var m=document.createElement("textarea");m.innerHTML=d,d=m.value;var y=/[& +$,:;=?@"#{}|^~[`%!'<>\]./()*\\\n\t\b\v\u00A0]/g;return this.options.truncate||s(this.options),d.trim().replace(/'/gi,"").replace(y,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(d){var m=d.firstChild&&(" "+d.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,y=d.lastChild&&(" "+d.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return m||y||!1};function l(d){var m;if(typeof d=="string"||d instanceof String)m=[].slice.call(document.querySelectorAll(d));else if(Array.isArray(d)||d instanceof NodeList)m=[].slice.call(d);else throw new TypeError("The selector provided to AnchorJS was invalid.");return m}function h(){if(document.head.querySelector("style.anchorjs")===null){var d=document.createElement("style"),m=".anchorjs-link{opacity:0;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",y=":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",S='@font-face{font-family:anchorjs-icons;src:url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',v="[data-anchorjs-icon]::after{content:attr(data-anchorjs-icon)}",_;d.className="anchorjs",d.appendChild(document.createTextNode("")),_=document.head.querySelector('[rel="stylesheet"],style'),_===void 0?document.head.appendChild(d):document.head.insertBefore(d,_),d.sheet.insertRule(m,d.sheet.cssRules.length),d.sheet.insertRule(y,d.sheet.cssRules.length),d.sheet.insertRule(v,d.sheet.cssRules.length),d.sheet.insertRule(S,d.sheet.cssRules.length)}}}return r})}}),Ru=Mr({"node_modules/jquery/dist/jquery.js"(t,n){(function(r,o){"use strict";typeof n=="object"&&typeof n.exports=="object"?n.exports=r.document?o(r,!0):function(s){if(!s.document)throw new Error("jQuery requires a window with a document");return o(s)}:o(r)})(typeof window!="undefined"?window:t,function(r,o){"use strict";var s=[],l=Object.getPrototypeOf,h=s.slice,d=s.flat?function(e){return s.flat.call(e)}:function(e){return s.concat.apply([],e)},m=s.push,y=s.indexOf,S={},v=S.toString,_=S.hasOwnProperty,O=_.toString,D=O.call(Object),k={},A=function(i){return typeof i=="function"&&typeof i.nodeType!="number"&&typeof i.item!="function"},P=function(i){return i!=null&&i===i.window},j=r.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function E(e,i,a){a=a||j;var c,f,p=a.createElement("script");if(p.text=e,i)for(c in w)f=i[c]||i.getAttribute&&i.getAttribute(c),f&&p.setAttribute(c,f);a.head.appendChild(p).parentNode.removeChild(p)}function L(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?S[v.call(e)]||"object":typeof e}var M="3.7.1",B=/HTML$/i,u=function(e,i){return new u.fn.init(e,i)};u.fn=u.prototype={jquery:M,constructor:u,length:0,toArray:function(){return h.call(this)},get:function(e){return e==null?h.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var i=u.merge(this.constructor(),e);return i.prevObject=this,i},each:function(e){return u.each(this,e)},map:function(e){return this.pushStack(u.map(this,function(i,a){return e.call(i,a,i)}))},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(u.grep(this,function(e,i){return(i+1)%2}))},odd:function(){return this.pushStack(u.grep(this,function(e,i){return i%2}))},eq:function(e){var i=this.length,a=+e+(e<0?i:0);return this.pushStack(a>=0&&a<i?[this[a]]:[])},end:function(){return this.prevObject||this.constructor()},push:m,sort:s.sort,splice:s.splice},u.extend=u.fn.extend=function(){var e,i,a,c,f,p,g=arguments[0]||{},C=1,x=arguments.length,N=!1;for(typeof g=="boolean"&&(N=g,g=arguments[C]||{},C++),typeof g!="object"&&!A(g)&&(g={}),C===x&&(g=this,C--);C<x;C++)if((e=arguments[C])!=null)for(i in e)c=e[i],!(i==="__proto__"||g===c)&&(N&&c&&(u.isPlainObject(c)||(f=Array.isArray(c)))?(a=g[i],f&&!Array.isArray(a)?p=[]:!f&&!u.isPlainObject(a)?p={}:p=a,f=!1,g[i]=u.extend(N,p,c)):c!==void 0&&(g[i]=c));return g},u.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var i,a;return!e||v.call(e)!=="[object Object]"?!1:(i=l(e),i?(a=_.call(i,"constructor")&&i.constructor,typeof a=="function"&&O.call(a)===D):!0)},isEmptyObject:function(e){var i;for(i in e)return!1;return!0},globalEval:function(e,i,a){E(e,{nonce:i&&i.nonce},a)},each:function(e,i){var a,c=0;if(W(e))for(a=e.length;c<a&&i.call(e[c],c,e[c])!==!1;c++);else for(c in e)if(i.call(e[c],c,e[c])===!1)break;return e},text:function(e){var i,a="",c=0,f=e.nodeType;if(!f)for(;i=e[c++];)a+=u.text(i);return f===1||f===11?e.textContent:f===9?e.documentElement.textContent:f===3||f===4?e.nodeValue:a},makeArray:function(e,i){var a=i||[];return e!=null&&(W(Object(e))?u.merge(a,typeof e=="string"?[e]:e):m.call(a,e)),a},inArray:function(e,i,a){return i==null?-1:y.call(i,e,a)},isXMLDoc:function(e){var i=e&&e.namespaceURI,a=e&&(e.ownerDocument||e).documentElement;return!B.test(i||a&&a.nodeName||"HTML")},merge:function(e,i){for(var a=+i.length,c=0,f=e.length;c<a;c++)e[f++]=i[c];return e.length=f,e},grep:function(e,i,a){for(var c,f=[],p=0,g=e.length,C=!a;p<g;p++)c=!i(e[p],p),c!==C&&f.push(e[p]);return f},map:function(e,i,a){var c,f,p=0,g=[];if(W(e))for(c=e.length;p<c;p++)f=i(e[p],p,a),f!=null&&g.push(f);else for(p in e)f=i(e[p],p,a),f!=null&&g.push(f);return d(g)},guid:1,support:k}),typeof Symbol=="function"&&(u.fn[Symbol.iterator]=s[Symbol.iterator]),u.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,i){S["[object "+i+"]"]=i.toLowerCase()});function W(e){var i=!!e&&"length"in e&&e.length,a=L(e);return A(e)||P(e)?!1:a==="array"||i===0||typeof i=="number"&&i>0&&i-1 in e}function F(e,i){return e.nodeName&&e.nodeName.toLowerCase()===i.toLowerCase()}var X=s.pop,oe=s.sort,Ae=s.splice,re="[\\x20\\t\\r\\n\\f]",xe=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g");u.contains=function(e,i){var a=i&&i.parentNode;return e===a||!!(a&&a.nodeType===1&&(e.contains?e.contains(a):e.compareDocumentPosition&&e.compareDocumentPosition(a)&16))};var Q=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function K(e,i){return i?e==="\0"?"\uFFFD":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}u.escapeSelector=function(e){return(e+"").replace(Q,K)};var G=j,ie=m;(function(){var e,i,a,c,f,p=ie,g,C,x,N,$,z=u.expando,q=0,J=0,ye=fi(),Ie=fi(),we=fi(),it=fi(),Ze=function(b,I){return b===I&&(f=!0),0},Ht="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Ft="(?:\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Te="\\["+re+"*("+Ft+")(?:"+re+"*([*^$|!~]?=)"+re+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Ft+"))|)"+re+"*\\]",An=":("+Ft+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Te+")*)|.*)\\)|)",Pe=new RegExp(re+"+","g"),Qe=new RegExp("^"+re+"*,"+re+"*"),Lr=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),io=new RegExp(re+"|>"),$t=new RegExp(An),Rr=new RegExp("^"+Ft+"$"),Bt={ID:new RegExp("^#("+Ft+")"),CLASS:new RegExp("^\\.("+Ft+")"),TAG:new RegExp("^("+Ft+"|[*])"),ATTR:new RegExp("^"+Te),PSEUDO:new RegExp("^"+An),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:new RegExp("^(?:"+Ht+")$","i"),needsContext:new RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},an=/^(?:input|select|textarea|button)$/i,un=/^h\d$/i,Ot=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,oo=/[+~]/,Yt=new RegExp("\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\([^\\r\\n\\f])","g"),Xt=function(b,I){var R="0x"+b.slice(1)-65536;return I||(R<0?String.fromCharCode(R+65536):String.fromCharCode(R>>10|55296,R&1023|56320))},ul=function(){sn()},sl=di(function(b){return b.disabled===!0&&F(b,"fieldset")},{dir:"parentNode",next:"legend"});function cl(){try{return g.activeElement}catch(b){}}try{p.apply(s=h.call(G.childNodes),G.childNodes),s[G.childNodes.length].nodeType}catch(b){p={apply:function(I,R){ie.apply(I,h.call(R))},call:function(I){ie.apply(I,h.call(arguments,1))}}}function Le(b,I,R,H){var U,te,ae,fe,ue,Oe,ve,be=I&&I.ownerDocument,ke=I?I.nodeType:9;if(R=R||[],typeof b!="string"||!b||ke!==1&&ke!==9&&ke!==11)return R;if(!H&&(sn(I),I=I||g,x)){if(ke!==11&&(ue=Ot.exec(b)))if(U=ue[1]){if(ke===9)if(ae=I.getElementById(U)){if(ae.id===U)return p.call(R,ae),R}else return R;else if(be&&(ae=be.getElementById(U))&&Le.contains(I,ae)&&ae.id===U)return p.call(R,ae),R}else{if(ue[2])return p.apply(R,I.getElementsByTagName(b)),R;if((U=ue[3])&&I.getElementsByClassName)return p.apply(R,I.getElementsByClassName(U)),R}if(!it[b+" "]&&(!N||!N.test(b))){if(ve=b,be=I,ke===1&&(io.test(b)||Lr.test(b))){for(be=oo.test(b)&&ao(I.parentNode)||I,(be!=I||!k.scope)&&((fe=I.getAttribute("id"))?fe=u.escapeSelector(fe):I.setAttribute("id",fe=z)),Oe=qr(b),te=Oe.length;te--;)Oe[te]=(fe?"#"+fe:":scope")+" "+pi(Oe[te]);ve=Oe.join(",")}try{return p.apply(R,be.querySelectorAll(ve)),R}catch(he){it(b,!0)}finally{fe===z&&I.removeAttribute("id")}}}return ku(b.replace(xe,"$1"),I,R,H)}function fi(){var b=[];function I(R,H){return b.push(R+" ")>i.cacheLength&&delete I[b.shift()],I[R+" "]=H}return I}function Dt(b){return b[z]=!0,b}function Un(b){var I=g.createElement("fieldset");try{return!!b(I)}catch(R){return!1}finally{I.parentNode&&I.parentNode.removeChild(I),I=null}}function ll(b){return function(I){return F(I,"input")&&I.type===b}}function fl(b){return function(I){return(F(I,"input")||F(I,"button"))&&I.type===b}}function xu(b){return function(I){return"form"in I?I.parentNode&&I.disabled===!1?"label"in I?"label"in I.parentNode?I.parentNode.disabled===b:I.disabled===b:I.isDisabled===b||I.isDisabled!==!b&&sl(I)===b:I.disabled===b:"label"in I?I.disabled===b:!1}}function wn(b){return Dt(function(I){return I=+I,Dt(function(R,H){for(var U,te=b([],R.length,I),ae=te.length;ae--;)R[U=te[ae]]&&(R[U]=!(H[U]=R[U]))})})}function ao(b){return b&&typeof b.getElementsByTagName!="undefined"&&b}function sn(b){var I,R=b?b.ownerDocument||b:G;return R==g||R.nodeType!==9||!R.documentElement||(g=R,C=g.documentElement,x=!u.isXMLDoc(g),$=C.matches||C.webkitMatchesSelector||C.msMatchesSelector,C.msMatchesSelector&&G!=g&&(I=g.defaultView)&&I.top!==I&&I.addEventListener("unload",ul),k.getById=Un(function(H){return C.appendChild(H).id=u.expando,!g.getElementsByName||!g.getElementsByName(u.expando).length}),k.disconnectedMatch=Un(function(H){return $.call(H,"*")}),k.scope=Un(function(){return g.querySelectorAll(":scope")}),k.cssHas=Un(function(){try{return g.querySelector(":has(*,:jqfake)"),!1}catch(H){return!0}}),k.getById?(i.filter.ID=function(H){var U=H.replace(Yt,Xt);return function(te){return te.getAttribute("id")===U}},i.find.ID=function(H,U){if(typeof U.getElementById!="undefined"&&x){var te=U.getElementById(H);return te?[te]:[]}}):(i.filter.ID=function(H){var U=H.replace(Yt,Xt);return function(te){var ae=typeof te.getAttributeNode!="undefined"&&te.getAttributeNode("id");return ae&&ae.value===U}},i.find.ID=function(H,U){if(typeof U.getElementById!="undefined"&&x){var te,ae,fe,ue=U.getElementById(H);if(ue){if(te=ue.getAttributeNode("id"),te&&te.value===H)return[ue];for(fe=U.getElementsByName(H),ae=0;ue=fe[ae++];)if(te=ue.getAttributeNode("id"),te&&te.value===H)return[ue]}return[]}}),i.find.TAG=function(H,U){return typeof U.getElementsByTagName!="undefined"?U.getElementsByTagName(H):U.querySelectorAll(H)},i.find.CLASS=function(H,U){if(typeof U.getElementsByClassName!="undefined"&&x)return U.getElementsByClassName(H)},N=[],Un(function(H){var U;C.appendChild(H).innerHTML="<a id='"+z+"' href='' disabled='disabled'></a><select id='"+z+"-\r\\' disabled='disabled'><option selected=''></option></select>",H.querySelectorAll("[selected]").length||N.push("\\["+re+"*(?:value|"+Ht+")"),H.querySelectorAll("[id~="+z+"-]").length||N.push("~="),H.querySelectorAll("a#"+z+"+*").length||N.push(".#.+[+~]"),H.querySelectorAll(":checked").length||N.push(":checked"),U=g.createElement("input"),U.setAttribute("type","hidden"),H.appendChild(U).setAttribute("name","D"),C.appendChild(H).disabled=!0,H.querySelectorAll(":disabled").length!==2&&N.push(":enabled",":disabled"),U=g.createElement("input"),U.setAttribute("name",""),H.appendChild(U),H.querySelectorAll("[name='']").length||N.push("\\["+re+"*name"+re+"*="+re+`*(?:''|"")`)}),k.cssHas||N.push(":has"),N=N.length&&new RegExp(N.join("|")),Ze=function(H,U){if(H===U)return f=!0,0;var te=!H.compareDocumentPosition-!U.compareDocumentPosition;return te||(te=(H.ownerDocument||H)==(U.ownerDocument||U)?H.compareDocumentPosition(U):1,te&1||!k.sortDetached&&U.compareDocumentPosition(H)===te?H===g||H.ownerDocument==G&&Le.contains(G,H)?-1:U===g||U.ownerDocument==G&&Le.contains(G,U)?1:c?y.call(c,H)-y.call(c,U):0:te&4?-1:1)}),g}Le.matches=function(b,I){return Le(b,null,null,I)},Le.matchesSelector=function(b,I){if(sn(b),x&&!it[I+" "]&&(!N||!N.test(I)))try{var R=$.call(b,I);if(R||k.disconnectedMatch||b.document&&b.document.nodeType!==11)return R}catch(H){it(I,!0)}return Le(I,g,null,[b]).length>0},Le.contains=function(b,I){return(b.ownerDocument||b)!=g&&sn(b),u.contains(b,I)},Le.attr=function(b,I){(b.ownerDocument||b)!=g&&sn(b);var R=i.attrHandle[I.toLowerCase()],H=R&&_.call(i.attrHandle,I.toLowerCase())?R(b,I,!x):void 0;return H!==void 0?H:b.getAttribute(I)},Le.error=function(b){throw new Error("Syntax error, unrecognized expression: "+b)},u.uniqueSort=function(b){var I,R=[],H=0,U=0;if(f=!k.sortStable,c=!k.sortStable&&h.call(b,0),oe.call(b,Ze),f){for(;I=b[U++];)I===b[U]&&(H=R.push(U));for(;H--;)Ae.call(b,R[H],1)}return c=null,b},u.fn.uniqueSort=function(){return this.pushStack(u.uniqueSort(h.apply(this)))},i=u.expr={cacheLength:50,createPseudo:Dt,match:Bt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(b){return b[1]=b[1].replace(Yt,Xt),b[3]=(b[3]||b[4]||b[5]||"").replace(Yt,Xt),b[2]==="~="&&(b[3]=" "+b[3]+" "),b.slice(0,4)},CHILD:function(b){return b[1]=b[1].toLowerCase(),b[1].slice(0,3)==="nth"?(b[3]||Le.error(b[0]),b[4]=+(b[4]?b[5]+(b[6]||1):2*(b[3]==="even"||b[3]==="odd")),b[5]=+(b[7]+b[8]||b[3]==="odd")):b[3]&&Le.error(b[0]),b},PSEUDO:function(b){var I,R=!b[6]&&b[2];return Bt.CHILD.test(b[0])?null:(b[3]?b[2]=b[4]||b[5]||"":R&&$t.test(R)&&(I=qr(R,!0))&&(I=R.indexOf(")",R.length-I)-R.length)&&(b[0]=b[0].slice(0,I),b[2]=R.slice(0,I)),b.slice(0,3))}},filter:{TAG:function(b){var I=b.replace(Yt,Xt).toLowerCase();return b==="*"?function(){return!0}:function(R){return F(R,I)}},CLASS:function(b){var I=ye[b+" "];return I||(I=new RegExp("(^|"+re+")"+b+"("+re+"|$)"))&&ye(b,function(R){return I.test(typeof R.className=="string"&&R.className||typeof R.getAttribute!="undefined"&&R.getAttribute("class")||"")})},ATTR:function(b,I,R){return function(H){var U=Le.attr(H,b);return U==null?I==="!=":I?(U+="",I==="="?U===R:I==="!="?U!==R:I==="^="?R&&U.indexOf(R)===0:I==="*="?R&&U.indexOf(R)>-1:I==="$="?R&&U.slice(-R.length)===R:I==="~="?(" "+U.replace(Pe," ")+" ").indexOf(R)>-1:I==="|="?U===R||U.slice(0,R.length+1)===R+"-":!1):!0}},CHILD:function(b,I,R,H,U){var te=b.slice(0,3)!=="nth",ae=b.slice(-4)!=="last",fe=I==="of-type";return H===1&&U===0?(function(ue){return!!ue.parentNode}):function(ue,Oe,ve){var be,ke,he,He,bt,ct=te!==ae?"nextSibling":"previousSibling",kt=ue.parentNode,Ut=fe&&ue.nodeName.toLowerCase(),zn=!ve&&!fe,dt=!1;if(kt){if(te){for(;ct;){for(he=ue;he=he[ct];)if(fe?F(he,Ut):he.nodeType===1)return!1;bt=ct=b==="only"&&!bt&&"nextSibling"}return!0}if(bt=[ae?kt.firstChild:kt.lastChild],ae&&zn){for(ke=kt[z]||(kt[z]={}),be=ke[b]||[],He=be[0]===q&&be[1],dt=He&&be[2],he=He&&kt.childNodes[He];he=++He&&he&&he[ct]||(dt=He=0)||bt.pop();)if(he.nodeType===1&&++dt&&he===ue){ke[b]=[q,He,dt];break}}else if(zn&&(ke=ue[z]||(ue[z]={}),be=ke[b]||[],He=be[0]===q&&be[1],dt=He),dt===!1)for(;(he=++He&&he&&he[ct]||(dt=He=0)||bt.pop())&&!((fe?F(he,Ut):he.nodeType===1)&&++dt&&(zn&&(ke=he[z]||(he[z]={}),ke[b]=[q,dt]),he===ue)););return dt-=U,dt===H||dt%H===0&&dt/H>=0}}},PSEUDO:function(b,I){var R,H=i.pseudos[b]||i.setFilters[b.toLowerCase()]||Le.error("unsupported pseudo: "+b);return H[z]?H(I):H.length>1?(R=[b,b,"",I],i.setFilters.hasOwnProperty(b.toLowerCase())?Dt(function(U,te){for(var ae,fe=H(U,I),ue=fe.length;ue--;)ae=y.call(U,fe[ue]),U[ae]=!(te[ae]=fe[ue])}):function(U){return H(U,0,R)}):H}},pseudos:{not:Dt(function(b){var I=[],R=[],H=lo(b.replace(xe,"$1"));return H[z]?Dt(function(U,te,ae,fe){for(var ue,Oe=H(U,null,fe,[]),ve=U.length;ve--;)(ue=Oe[ve])&&(U[ve]=!(te[ve]=ue))}):function(U,te,ae){return I[0]=U,H(I,null,ae,R),I[0]=null,!R.pop()}}),has:Dt(function(b){return function(I){return Le(b,I).length>0}}),contains:Dt(function(b){return b=b.replace(Yt,Xt),function(I){return(I.textContent||u.text(I)).indexOf(b)>-1}}),lang:Dt(function(b){return Rr.test(b||"")||Le.error("unsupported lang: "+b),b=b.replace(Yt,Xt).toLowerCase(),function(I){var R;do if(R=x?I.lang:I.getAttribute("xml:lang")||I.getAttribute("lang"))return R=R.toLowerCase(),R===b||R.indexOf(b+"-")===0;while((I=I.parentNode)&&I.nodeType===1);return!1}}),target:function(b){var I=r.location&&r.location.hash;return I&&I.slice(1)===b.id},root:function(b){return b===C},focus:function(b){return b===cl()&&g.hasFocus()&&!!(b.type||b.href||~b.tabIndex)},enabled:xu(!1),disabled:xu(!0),checked:function(b){return F(b,"input")&&!!b.checked||F(b,"option")&&!!b.selected},selected:function(b){return b.parentNode&&b.parentNode.selectedIndex,b.selected===!0},empty:function(b){for(b=b.firstChild;b;b=b.nextSibling)if(b.nodeType<6)return!1;return!0},parent:function(b){return!i.pseudos.empty(b)},header:function(b){return un.test(b.nodeName)},input:function(b){return an.test(b.nodeName)},button:function(b){return F(b,"input")&&b.type==="button"||F(b,"button")},text:function(b){var I;return F(b,"input")&&b.type==="text"&&((I=b.getAttribute("type"))==null||I.toLowerCase()==="text")},first:wn(function(){return[0]}),last:wn(function(b,I){return[I-1]}),eq:wn(function(b,I,R){return[R<0?R+I:R]}),even:wn(function(b,I){for(var R=0;R<I;R+=2)b.push(R);return b}),odd:wn(function(b,I){for(var R=1;R<I;R+=2)b.push(R);return b}),lt:wn(function(b,I,R){var H;for(R<0?H=R+I:R>I?H=I:H=R;--H>=0;)b.push(H);return b}),gt:wn(function(b,I,R){for(var H=R<0?R+I:R;++H<I;)b.push(H);return b})}},i.pseudos.nth=i.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=ll(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=fl(e);function Ou(){}Ou.prototype=i.filters=i.pseudos,i.setFilters=new Ou;function qr(b,I){var R,H,U,te,ae,fe,ue,Oe=Ie[b+" "];if(Oe)return I?0:Oe.slice(0);for(ae=b,fe=[],ue=i.preFilter;ae;){(!R||(H=Qe.exec(ae)))&&(H&&(ae=ae.slice(H[0].length)||ae),fe.push(U=[])),R=!1,(H=Lr.exec(ae))&&(R=H.shift(),U.push({value:R,type:H[0].replace(xe," ")}),ae=ae.slice(R.length));for(te in i.filter)(H=Bt[te].exec(ae))&&(!ue[te]||(H=ue[te](H)))&&(R=H.shift(),U.push({value:R,type:te,matches:H}),ae=ae.slice(R.length));if(!R)break}return I?ae.length:ae?Le.error(b):Ie(b,fe).slice(0)}function pi(b){for(var I=0,R=b.length,H="";I<R;I++)H+=b[I].value;return H}function di(b,I,R){var H=I.dir,U=I.next,te=U||H,ae=R&&te==="parentNode",fe=J++;return I.first?(function(ue,Oe,ve){for(;ue=ue[H];)if(ue.nodeType===1||ae)return b(ue,Oe,ve);return!1}):(function(ue,Oe,ve){var be,ke,he=[q,fe];if(ve){for(;ue=ue[H];)if((ue.nodeType===1||ae)&&b(ue,Oe,ve))return!0}else for(;ue=ue[H];)if(ue.nodeType===1||ae)if(ke=ue[z]||(ue[z]={}),U&&F(ue,U))ue=ue[H]||ue;else{if((be=ke[te])&&be[0]===q&&be[1]===fe)return he[2]=be[2];if(ke[te]=he,he[2]=b(ue,Oe,ve))return!0}return!1})}function uo(b){return b.length>1?function(I,R,H){for(var U=b.length;U--;)if(!b[U](I,R,H))return!1;return!0}:b[0]}function pl(b,I,R){for(var H=0,U=I.length;H<U;H++)Le(b,I[H],R);return R}function hi(b,I,R,H,U){for(var te,ae=[],fe=0,ue=b.length,Oe=I!=null;fe<ue;fe++)(te=b[fe])&&(!R||R(te,H,U))&&(ae.push(te),Oe&&I.push(fe));return ae}function so(b,I,R,H,U,te){return H&&!H[z]&&(H=so(H)),U&&!U[z]&&(U=so(U,te)),Dt(function(ae,fe,ue,Oe){var ve,be,ke,he,He=[],bt=[],ct=fe.length,kt=ae||pl(I||"*",ue.nodeType?[ue]:ue,[]),Ut=b&&(ae||!I)?hi(kt,He,b,ue,Oe):kt;if(R?(he=U||(ae?b:ct||H)?[]:fe,R(Ut,he,ue,Oe)):he=Ut,H)for(ve=hi(he,bt),H(ve,[],ue,Oe),be=ve.length;be--;)(ke=ve[be])&&(he[bt[be]]=!(Ut[bt[be]]=ke));if(ae){if(U||b){if(U){for(ve=[],be=he.length;be--;)(ke=he[be])&&ve.push(Ut[be]=ke);U(null,he=[],ve,Oe)}for(be=he.length;be--;)(ke=he[be])&&(ve=U?y.call(ae,ke):He[be])>-1&&(ae[ve]=!(fe[ve]=ke))}}else he=hi(he===fe?he.splice(ct,he.length):he),U?U(null,fe,he,Oe):p.apply(fe,he)})}function co(b){for(var I,R,H,U=b.length,te=i.relative[b[0].type],ae=te||i.relative[" "],fe=te?1:0,ue=di(function(be){return be===I},ae,!0),Oe=di(function(be){return y.call(I,be)>-1},ae,!0),ve=[function(be,ke,he){var He=!te&&(he||ke!=a)||((I=ke).nodeType?ue(be,ke,he):Oe(be,ke,he));return I=null,He}];fe<U;fe++)if(R=i.relative[b[fe].type])ve=[di(uo(ve),R)];else{if(R=i.filter[b[fe].type].apply(null,b[fe].matches),R[z]){for(H=++fe;H<U&&!i.relative[b[H].type];H++);return so(fe>1&&uo(ve),fe>1&&pi(b.slice(0,fe-1).concat({value:b[fe-2].type===" "?"*":""})).replace(xe,"$1"),R,fe<H&&co(b.slice(fe,H)),H<U&&co(b=b.slice(H)),H<U&&pi(b))}ve.push(R)}return uo(ve)}function dl(b,I){var R=I.length>0,H=b.length>0,U=function(te,ae,fe,ue,Oe){var ve,be,ke,he=0,He="0",bt=te&&[],ct=[],kt=a,Ut=te||H&&i.find.TAG("*",Oe),zn=q+=kt==null?1:Math.random()||.1,dt=Ut.length;for(Oe&&(a=ae==g||ae||Oe);He!==dt&&(ve=Ut[He])!=null;He++){if(H&&ve){for(be=0,!ae&&ve.ownerDocument!=g&&(sn(ve),fe=!x);ke=b[be++];)if(ke(ve,ae||g,fe)){p.call(ue,ve);break}Oe&&(q=zn)}R&&((ve=!ke&&ve)&&he--,te&&bt.push(ve))}if(he+=He,R&&He!==he){for(be=0;ke=I[be++];)ke(bt,ct,ae,fe);if(te){if(he>0)for(;He--;)bt[He]||ct[He]||(ct[He]=X.call(ue));ct=hi(ct)}p.apply(ue,ct),Oe&&!te&&ct.length>0&&he+I.length>1&&u.uniqueSort(ue)}return Oe&&(q=zn,a=kt),bt};return R?Dt(U):U}function lo(b,I){var R,H=[],U=[],te=we[b+" "];if(!te){for(I||(I=qr(b)),R=I.length;R--;)te=co(I[R]),te[z]?H.push(te):U.push(te);te=we(b,dl(U,H)),te.selector=b}return te}function ku(b,I,R,H){var U,te,ae,fe,ue,Oe=typeof b=="function"&&b,ve=!H&&qr(b=Oe.selector||b);if(R=R||[],ve.length===1){if(te=ve[0]=ve[0].slice(0),te.length>2&&(ae=te[0]).type==="ID"&&I.nodeType===9&&x&&i.relative[te[1].type]){if(I=(i.find.ID(ae.matches[0].replace(Yt,Xt),I)||[])[0],I)Oe&&(I=I.parentNode);else return R;b=b.slice(te.shift().value.length)}for(U=Bt.needsContext.test(b)?0:te.length;U--&&(ae=te[U],!i.relative[fe=ae.type]);)if((ue=i.find[fe])&&(H=ue(ae.matches[0].replace(Yt,Xt),oo.test(te[0].type)&&ao(I.parentNode)||I))){if(te.splice(U,1),b=H.length&&pi(te),!b)return p.apply(R,H),R;break}}return(Oe||lo(b,ve))(H,I,!x,R,!I||oo.test(b)&&ao(I.parentNode)||I),R}k.sortStable=z.split("").sort(Ze).join("")===z,sn(),k.sortDetached=Un(function(b){return b.compareDocumentPosition(g.createElement("fieldset"))&1}),u.find=Le,u.expr[":"]=u.expr.pseudos,u.unique=u.uniqueSort,Le.compile=lo,Le.select=ku,Le.setDocument=sn,Le.tokenize=qr,Le.escape=u.escapeSelector,Le.getText=u.text,Le.isXML=u.isXMLDoc,Le.selectors=u.expr,Le.support=u.support,Le.uniqueSort=u.uniqueSort})();var Z=function(e,i,a){for(var c=[],f=a!==void 0;(e=e[i])&&e.nodeType!==9;)if(e.nodeType===1){if(f&&u(e).is(a))break;c.push(e)}return c},pe=function(e,i){for(var a=[];e;e=e.nextSibling)e.nodeType===1&&e!==i&&a.push(e);return a},ne=u.expr.match.needsContext,V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Y(e,i,a){return A(i)?u.grep(e,function(c,f){return!!i.call(c,f,c)!==a}):i.nodeType?u.grep(e,function(c){return c===i!==a}):typeof i!="string"?u.grep(e,function(c){return y.call(i,c)>-1!==a}):u.filter(i,e,a)}u.filter=function(e,i,a){var c=i[0];return a&&(e=":not("+e+")"),i.length===1&&c.nodeType===1?u.find.matchesSelector(c,e)?[c]:[]:u.find.matches(e,u.grep(i,function(f){return f.nodeType===1}))},u.fn.extend({find:function(e){var i,a,c=this.length,f=this;if(typeof e!="string")return this.pushStack(u(e).filter(function(){for(i=0;i<c;i++)if(u.contains(f[i],this))return!0}));for(a=this.pushStack([]),i=0;i<c;i++)u.find(e,f[i],a);return c>1?u.uniqueSort(a):a},filter:function(e){return this.pushStack(Y(this,e||[],!1))},not:function(e){return this.pushStack(Y(this,e||[],!0))},is:function(e){return!!Y(this,typeof e=="string"&&ne.test(e)?u(e):e||[],!1).length}});var ee,ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,le=u.fn.init=function(e,i,a){var c,f;if(!e)return this;if(a=a||ee,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?c=[null,e,null]:c=ce.exec(e),c&&(c[1]||!i))if(c[1]){if(i=i instanceof u?i[0]:i,u.merge(this,u.parseHTML(c[1],i&&i.nodeType?i.ownerDocument||i:j,!0)),V.test(c[1])&&u.isPlainObject(i))for(c in i)A(this[c])?this[c](i[c]):this.attr(c,i[c]);return this}else return f=j.getElementById(c[2]),f&&(this[0]=f,this.length=1),this;else return!i||i.jquery?(i||a).find(e):this.constructor(i).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(A(e))return a.ready!==void 0?a.ready(e):e(u)}return u.makeArray(e,this)};le.prototype=u.fn,ee=u(j);var Ue=/^(?:parents|prev(?:Until|All))/,Ye={children:!0,contents:!0,next:!0,prev:!0};u.fn.extend({has:function(e){var i=u(e,this),a=i.length;return this.filter(function(){for(var c=0;c<a;c++)if(u.contains(this,i[c]))return!0})},closest:function(e,i){var a,c=0,f=this.length,p=[],g=typeof e!="string"&&u(e);if(!ne.test(e)){for(;c<f;c++)for(a=this[c];a&&a!==i;a=a.parentNode)if(a.nodeType<11&&(g?g.index(a)>-1:a.nodeType===1&&u.find.matchesSelector(a,e))){p.push(a);break}}return this.pushStack(p.length>1?u.uniqueSort(p):p)},index:function(e){return e?typeof e=="string"?y.call(u(e),this[0]):y.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,i){return this.pushStack(u.uniqueSort(u.merge(this.get(),u(e,i))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function gt(e,i){for(;(e=e[i])&&e.nodeType!==1;);return e}u.each({parent:function(e){var i=e.parentNode;return i&&i.nodeType!==11?i:null},parents:function(e){return Z(e,"parentNode")},parentsUntil:function(e,i,a){return Z(e,"parentNode",a)},next:function(e){return gt(e,"nextSibling")},prev:function(e){return gt(e,"previousSibling")},nextAll:function(e){return Z(e,"nextSibling")},prevAll:function(e){return Z(e,"previousSibling")},nextUntil:function(e,i,a){return Z(e,"nextSibling",a)},prevUntil:function(e,i,a){return Z(e,"previousSibling",a)},siblings:function(e){return pe((e.parentNode||{}).firstChild,e)},children:function(e){return pe(e.firstChild)},contents:function(e){return e.contentDocument!=null&&l(e.contentDocument)?e.contentDocument:(F(e,"template")&&(e=e.content||e),u.merge([],e.childNodes))}},function(e,i){u.fn[e]=function(a,c){var f=u.map(this,i,a);return e.slice(-5)!=="Until"&&(c=a),c&&typeof c=="string"&&(f=u.filter(c,f)),this.length>1&&(Ye[e]||u.uniqueSort(f),Ue.test(e)&&f.reverse()),this.pushStack(f)}});var $e=/[^\x20\t\r\n\f]+/g;function _t(e){var i={};return u.each(e.match($e)||[],function(a,c){i[c]=!0}),i}u.Callbacks=function(e){e=typeof e=="string"?_t(e):u.extend({},e);var i,a,c,f,p=[],g=[],C=-1,x=function(){for(f=f||e.once,c=i=!0;g.length;C=-1)for(a=g.shift();++C<p.length;)p[C].apply(a[0],a[1])===!1&&e.stopOnFalse&&(C=p.length,a=!1);e.memory||(a=!1),i=!1,f&&(a?p=[]:p="")},N={add:function(){return p&&(a&&!i&&(C=p.length-1,g.push(a)),(function $(z){u.each(z,function(q,J){A(J)?(!e.unique||!N.has(J))&&p.push(J):J&&J.length&&L(J)!=="string"&&$(J)})})(arguments),a&&!i&&x()),this},remove:function(){return u.each(arguments,function($,z){for(var q;(q=u.inArray(z,p,q))>-1;)p.splice(q,1),q<=C&&C--}),this},has:function($){return $?u.inArray($,p)>-1:p.length>0},empty:function(){return p&&(p=[]),this},disable:function(){return f=g=[],p=a="",this},disabled:function(){return!p},lock:function(){return f=g=[],!a&&!i&&(p=a=""),this},locked:function(){return!!f},fireWith:function($,z){return f||(z=z||[],z=[$,z.slice?z.slice():z],g.push(z),i||x()),this},fire:function(){return N.fireWith(this,arguments),this},fired:function(){return!!c}};return N};function nt(e){return e}function At(e){throw e}function oi(e,i,a,c){var f;try{e&&A(f=e.promise)?f.call(e).done(i).fail(a):e&&A(f=e.then)?f.call(e,i,a):i.apply(void 0,[e].slice(c))}catch(p){a.apply(void 0,[p])}}u.extend({Deferred:function(e){var i=[["notify","progress",u.Callbacks("memory"),u.Callbacks("memory"),2],["resolve","done",u.Callbacks("once memory"),u.Callbacks("once memory"),0,"resolved"],["reject","fail",u.Callbacks("once memory"),u.Callbacks("once memory"),1,"rejected"]],a="pending",c={state:function(){return a},always:function(){return f.done(arguments).fail(arguments),this},catch:function(p){return c.then(null,p)},pipe:function(){var p=arguments;return u.Deferred(function(g){u.each(i,function(C,x){var N=A(p[x[4]])&&p[x[4]];f[x[1]](function(){var $=N&&N.apply(this,arguments);$&&A($.promise)?$.promise().progress(g.notify).done(g.resolve).fail(g.reject):g[x[0]+"With"](this,N?[$]:arguments)})}),p=null}).promise()},then:function(p,g,C){var x=0;function N($,z,q,J){return function(){var ye=this,Ie=arguments,we=function(){var Ze,Ht;if(!($<x)){if(Ze=q.apply(ye,Ie),Ze===z.promise())throw new TypeError("Thenable self-resolution");Ht=Ze&&(typeof Ze=="object"||typeof Ze=="function")&&Ze.then,A(Ht)?J?Ht.call(Ze,N(x,z,nt,J),N(x,z,At,J)):(x++,Ht.call(Ze,N(x,z,nt,J),N(x,z,At,J),N(x,z,nt,z.notifyWith))):(q!==nt&&(ye=void 0,Ie=[Ze]),(J||z.resolveWith)(ye,Ie))}},it=J?we:function(){try{we()}catch(Ze){u.Deferred.exceptionHook&&u.Deferred.exceptionHook(Ze,it.error),$+1>=x&&(q!==At&&(ye=void 0,Ie=[Ze]),z.rejectWith(ye,Ie))}};$?it():(u.Deferred.getErrorHook?it.error=u.Deferred.getErrorHook():u.Deferred.getStackHook&&(it.error=u.Deferred.getStackHook()),r.setTimeout(it))}}return u.Deferred(function($){i[0][3].add(N(0,$,A(C)?C:nt,$.notifyWith)),i[1][3].add(N(0,$,A(p)?p:nt)),i[2][3].add(N(0,$,A(g)?g:At))}).promise()},promise:function(p){return p!=null?u.extend(p,c):c}},f={};return u.each(i,function(p,g){var C=g[2],x=g[5];c[g[1]]=C.add,x&&C.add(function(){a=x},i[3-p][2].disable,i[3-p][3].disable,i[0][2].lock,i[0][3].lock),C.add(g[3].fire),f[g[0]]=function(){return f[g[0]+"With"](this===f?void 0:this,arguments),this},f[g[0]+"With"]=C.fireWith}),c.promise(f),e&&e.call(f,f),f},when:function(e){var i=arguments.length,a=i,c=Array(a),f=h.call(arguments),p=u.Deferred(),g=function(C){return function(x){c[C]=this,f[C]=arguments.length>1?h.call(arguments):x,--i||p.resolveWith(c,f)}};if(i<=1&&(oi(e,p.done(g(a)).resolve,p.reject,!i),p.state()==="pending"||A(f[a]&&f[a].then)))return p.then();for(;a--;)oi(f[a],g(a),p.reject);return p.promise()}});var ai=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;u.Deferred.exceptionHook=function(e,i){r.console&&r.console.warn&&e&&ai.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},u.readyException=function(e){r.setTimeout(function(){throw e})};var _e=u.Deferred();u.fn.ready=function(e){return _e.then(e).catch(function(i){u.readyException(i)}),this},u.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--u.readyWait:u.isReady)||(u.isReady=!0,!(e!==!0&&--u.readyWait>0)&&_e.resolveWith(j,[u]))}}),u.ready.then=_e.then;function je(){j.removeEventListener("DOMContentLoaded",je),r.removeEventListener("load",je),u.ready()}j.readyState==="complete"||j.readyState!=="loading"&&!j.documentElement.doScroll?r.setTimeout(u.ready):(j.addEventListener("DOMContentLoaded",je),r.addEventListener("load",je));var Me=function(e,i,a,c,f,p,g){var C=0,x=e.length,N=a==null;if(L(a)==="object"){f=!0;for(C in a)Me(e,i,C,a[C],!0,p,g)}else if(c!==void 0&&(f=!0,A(c)||(g=!0),N&&(g?(i.call(e,c),i=null):(N=i,i=function($,z,q){return N.call(u($),q)})),i))for(;C<x;C++)i(e[C],a,g?c:c.call(e[C],C,i(e[C],a)));return f?e:N?i.call(e):x?i(e[0],a):p},at=/^-ms-/,lt=/-([a-z])/g;function mt(e,i){return i.toUpperCase()}function me(e){return e.replace(at,"ms-").replace(lt,mt)}var qe=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function Ne(){this.expando=u.expando+Ne.uid++}Ne.uid=1,Ne.prototype={cache:function(e){var i=e[this.expando];return i||(i={},qe(e)&&(e.nodeType?e[this.expando]=i:Object.defineProperty(e,this.expando,{value:i,configurable:!0}))),i},set:function(e,i,a){var c,f=this.cache(e);if(typeof i=="string")f[me(i)]=a;else for(c in i)f[me(c)]=i[c];return f},get:function(e,i){return i===void 0?this.cache(e):e[this.expando]&&e[this.expando][me(i)]},access:function(e,i,a){return i===void 0||i&&typeof i=="string"&&a===void 0?this.get(e,i):(this.set(e,i,a),a!==void 0?a:i)},remove:function(e,i){var a,c=e[this.expando];if(c!==void 0){if(i!==void 0)for(Array.isArray(i)?i=i.map(me):(i=me(i),i=i in c?[i]:i.match($e)||[]),a=i.length;a--;)delete c[i[a]];(i===void 0||u.isEmptyObject(c))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var i=e[this.expando];return i!==void 0&&!u.isEmptyObject(i)}};var se=new Ne,Ve=new Ne,Et=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,wt=/[A-Z]/g;function ut(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:Et.test(e)?JSON.parse(e):e}function de(e,i,a){var c;if(a===void 0&&e.nodeType===1)if(c="data-"+i.replace(wt,"-$&").toLowerCase(),a=e.getAttribute(c),typeof a=="string"){try{a=ut(a)}catch(f){}Ve.set(e,i,a)}else a=void 0;return a}u.extend({hasData:function(e){return Ve.hasData(e)||se.hasData(e)},data:function(e,i,a){return Ve.access(e,i,a)},removeData:function(e,i){Ve.remove(e,i)},_data:function(e,i,a){return se.access(e,i,a)},_removeData:function(e,i){se.remove(e,i)}}),u.fn.extend({data:function(e,i){var a,c,f,p=this[0],g=p&&p.attributes;if(e===void 0){if(this.length&&(f=Ve.get(p),p.nodeType===1&&!se.get(p,"hasDataAttrs"))){for(a=g.length;a--;)g[a]&&(c=g[a].name,c.indexOf("data-")===0&&(c=me(c.slice(5)),de(p,c,f[c])));se.set(p,"hasDataAttrs",!0)}return f}return typeof e=="object"?this.each(function(){Ve.set(this,e)}):Me(this,function(C){var x;if(p&&C===void 0)return x=Ve.get(p,e),x!==void 0||(x=de(p,e),x!==void 0)?x:void 0;this.each(function(){Ve.set(this,e,C)})},null,i,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ve.remove(this,e)})}}),u.extend({queue:function(e,i,a){var c;if(e)return i=(i||"fx")+"queue",c=se.get(e,i),a&&(!c||Array.isArray(a)?c=se.access(e,i,u.makeArray(a)):c.push(a)),c||[]},dequeue:function(e,i){i=i||"fx";var a=u.queue(e,i),c=a.length,f=a.shift(),p=u._queueHooks(e,i),g=function(){u.dequeue(e,i)};f==="inprogress"&&(f=a.shift(),c--),f&&(i==="fx"&&a.unshift("inprogress"),delete p.stop,f.call(e,g,p)),!c&&p&&p.empty.fire()},_queueHooks:function(e,i){var a=i+"queueHooks";return se.get(e,a)||se.access(e,a,{empty:u.Callbacks("once memory").add(function(){se.remove(e,[i+"queue",a])})})}}),u.fn.extend({queue:function(e,i){var a=2;return typeof e!="string"&&(i=e,e="fx",a--),arguments.length<a?u.queue(this[0],e):i===void 0?this:this.each(function(){var c=u.queue(this,e,i);u._queueHooks(this,e),e==="fx"&&c[0]!=="inprogress"&&u.dequeue(this,e)})},dequeue:function(e){return this.each(function(){u.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,i){var a,c=1,f=u.Deferred(),p=this,g=this.length,C=function(){--c||f.resolveWith(p,[p])};for(typeof e!="string"&&(i=e,e=void 0),e=e||"fx";g--;)a=se.get(p[g],e+"queueHooks"),a&&a.empty&&(c++,a.empty.add(C));return C(),f.promise(i)}});var Re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ze=new RegExp("^(?:([+-])=|)("+Re+")([a-z%]*)$","i"),Ge=["Top","Right","Bottom","Left"],et=j.documentElement,ft=function(e){return u.contains(e.ownerDocument,e)},Gt={composed:!0};et.getRootNode&&(ft=function(e){return u.contains(e.ownerDocument,e)||e.getRootNode(Gt)===e.ownerDocument});var mn=function(e,i){return e=i||e,e.style.display==="none"||e.style.display===""&&ft(e)&&u.css(e,"display")==="none"};function wr(e,i,a,c){var f,p,g=20,C=c?function(){return c.cur()}:function(){return u.css(e,i,"")},x=C(),N=a&&a[3]||(u.cssNumber[i]?"":"px"),$=e.nodeType&&(u.cssNumber[i]||N!=="px"&&+x)&&ze.exec(u.css(e,i));if($&&$[3]!==N){for(x=x/2,N=N||$[3],$=+x||1;g--;)u.style(e,i,$+N),(1-p)*(1-(p=C()/x||.5))<=0&&(g=0),$=$/p;$=$*2,u.style(e,i,$+N),a=a||[]}return a&&($=+$||+x||0,f=a[1]?$+(a[1]+1)*a[2]:+a[2],c&&(c.unit=N,c.start=$,c.end=f)),f}var Zt={};function Sr(e){var i,a=e.ownerDocument,c=e.nodeName,f=Zt[c];return f||(i=a.body.appendChild(a.createElement(c)),f=u.css(i,"display"),i.parentNode.removeChild(i),f==="none"&&(f="block"),Zt[c]=f,f)}function en(e,i){for(var a,c,f=[],p=0,g=e.length;p<g;p++)c=e[p],c.style&&(a=c.style.display,i?(a==="none"&&(f[p]=se.get(c,"display")||null,f[p]||(c.style.display="")),c.style.display===""&&mn(c)&&(f[p]=Sr(c))):a!=="none"&&(f[p]="none",se.set(c,"display",a)));for(p=0;p<g;p++)f[p]!=null&&(e[p].style.display=f[p]);return e}u.fn.extend({show:function(){return en(this,!0)},hide:function(){return en(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){mn(this)?u(this).show():u(this).hide()})}});var tn=/^(?:checkbox|radio)$/i,Er=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,qn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=j.createDocumentFragment(),i=e.appendChild(j.createElement("div")),a=j.createElement("input");a.setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),i.appendChild(a),k.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,i.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!i.cloneNode(!0).lastChild.defaultValue,i.innerHTML="<option></option>",k.option=!!i.lastChild})();var Be={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,"",""]};Be.tbody=Be.tfoot=Be.colgroup=Be.caption=Be.thead,Be.th=Be.td,k.option||(Be.optgroup=Be.option=[1,"<select multiple='multiple'>","</select>"]);function De(e,i){var a;return typeof e.getElementsByTagName!="undefined"?a=e.getElementsByTagName(i||"*"):typeof e.querySelectorAll!="undefined"?a=e.querySelectorAll(i||"*"):a=[],i===void 0||i&&F(e,i)?u.merge([e],a):a}function Ke(e,i){for(var a=0,c=e.length;a<c;a++)se.set(e[a],"globalEval",!i||se.get(i[a],"globalEval"))}var Tt=/<|&#?\w+;/;function Xe(e,i,a,c,f){for(var p,g,C,x,N,$,z=i.createDocumentFragment(),q=[],J=0,ye=e.length;J<ye;J++)if(p=e[J],p||p===0)if(L(p)==="object")u.merge(q,p.nodeType?[p]:p);else if(!Tt.test(p))q.push(i.createTextNode(p));else{for(g=g||z.appendChild(i.createElement("div")),C=(Er.exec(p)||["",""])[1].toLowerCase(),x=Be[C]||Be._default,g.innerHTML=x[1]+u.htmlPrefilter(p)+x[2],$=x[0];$--;)g=g.lastChild;u.merge(q,g.childNodes),g=z.firstChild,g.textContent=""}for(z.textContent="",J=0;p=q[J++];){if(c&&u.inArray(p,c)>-1){f&&f.push(p);continue}if(N=ft(p),g=De(z.appendChild(p),"script"),N&&Ke(g),a)for($=0;p=g[$++];)qn.test(p.type||"")&&a.push(p)}return z}var rt=/^([^.]*)(?:\.(.+)|)/;function pt(){return!0}function st(){return!1}function Je(e,i,a,c,f,p){var g,C;if(typeof i=="object"){typeof a!="string"&&(c=c||a,a=void 0);for(C in i)Je(e,C,a,c,i[C],p);return e}if(c==null&&f==null?(f=a,c=a=void 0):f==null&&(typeof a=="string"?(f=c,c=void 0):(f=c,c=a,a=void 0)),f===!1)f=st;else if(!f)return e;return p===1&&(g=f,f=function(x){return u().off(x),g.apply(this,arguments)},f.guid=g.guid||(g.guid=u.guid++)),e.each(function(){u.event.add(this,i,f,c,a)})}u.event={global:{},add:function(e,i,a,c,f){var p,g,C,x,N,$,z,q,J,ye,Ie,we=se.get(e);if(qe(e))for(a.handler&&(p=a,a=p.handler,f=p.selector),f&&u.find.matchesSelector(et,f),a.guid||(a.guid=u.guid++),(x=we.events)||(x=we.events=Object.create(null)),(g=we.handle)||(g=we.handle=function(it){return typeof u!="undefined"&&u.event.triggered!==it.type?u.event.dispatch.apply(e,arguments):void 0}),i=(i||"").match($e)||[""],N=i.length;N--;)C=rt.exec(i[N])||[],J=Ie=C[1],ye=(C[2]||"").split(".").sort(),J&&(z=u.event.special[J]||{},J=(f?z.delegateType:z.bindType)||J,z=u.event.special[J]||{},$=u.extend({type:J,origType:Ie,data:c,handler:a,guid:a.guid,selector:f,needsContext:f&&u.expr.match.needsContext.test(f),namespace:ye.join(".")},p),(q=x[J])||(q=x[J]=[],q.delegateCount=0,(!z.setup||z.setup.call(e,c,ye,g)===!1)&&e.addEventListener&&e.addEventListener(J,g)),z.add&&(z.add.call(e,$),$.handler.guid||($.handler.guid=a.guid)),f?q.splice(q.delegateCount++,0,$):q.push($),u.event.global[J]=!0)},remove:function(e,i,a,c,f){var p,g,C,x,N,$,z,q,J,ye,Ie,we=se.hasData(e)&&se.get(e);if(!(!we||!(x=we.events))){for(i=(i||"").match($e)||[""],N=i.length;N--;){if(C=rt.exec(i[N])||[],J=Ie=C[1],ye=(C[2]||"").split(".").sort(),!J){for(J in x)u.event.remove(e,J+i[N],a,c,!0);continue}for(z=u.event.special[J]||{},J=(c?z.delegateType:z.bindType)||J,q=x[J]||[],C=C[2]&&new RegExp("(^|\\.)"+ye.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=p=q.length;p--;)$=q[p],(f||Ie===$.origType)&&(!a||a.guid===$.guid)&&(!C||C.test($.namespace))&&(!c||c===$.selector||c==="**"&&$.selector)&&(q.splice(p,1),$.selector&&q.delegateCount--,z.remove&&z.remove.call(e,$));g&&!q.length&&((!z.teardown||z.teardown.call(e,ye,we.handle)===!1)&&u.removeEvent(e,J,we.handle),delete x[J])}u.isEmptyObject(x)&&se.remove(e,"handle events")}},dispatch:function(e){var i,a,c,f,p,g,C=new Array(arguments.length),x=u.event.fix(e),N=(se.get(this,"events")||Object.create(null))[x.type]||[],$=u.event.special[x.type]||{};for(C[0]=x,i=1;i<arguments.length;i++)C[i]=arguments[i];if(x.delegateTarget=this,!($.preDispatch&&$.preDispatch.call(this,x)===!1)){for(g=u.event.handlers.call(this,x,N),i=0;(f=g[i++])&&!x.isPropagationStopped();)for(x.currentTarget=f.elem,a=0;(p=f.handlers[a++])&&!x.isImmediatePropagationStopped();)(!x.rnamespace||p.namespace===!1||x.rnamespace.test(p.namespace))&&(x.handleObj=p,x.data=p.data,c=((u.event.special[p.origType]||{}).handle||p.handler).apply(f.elem,C),c!==void 0&&(x.result=c)===!1&&(x.preventDefault(),x.stopPropagation()));return $.postDispatch&&$.postDispatch.call(this,x),x.result}},handlers:function(e,i){var a,c,f,p,g,C=[],x=i.delegateCount,N=e.target;if(x&&N.nodeType&&!(e.type==="click"&&e.button>=1)){for(;N!==this;N=N.parentNode||this)if(N.nodeType===1&&!(e.type==="click"&&N.disabled===!0)){for(p=[],g={},a=0;a<x;a++)c=i[a],f=c.selector+" ",g[f]===void 0&&(g[f]=c.needsContext?u(f,this).index(N)>-1:u.find(f,this,null,[N]).length),g[f]&&p.push(c);p.length&&C.push({elem:N,handlers:p})}}return N=this,x<i.length&&C.push({elem:N,handlers:i.slice(x)}),C},addProp:function(e,i){Object.defineProperty(u.Event.prototype,e,{enumerable:!0,configurable:!0,get:A(i)?function(){if(this.originalEvent)return i(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(a){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:a})}})},fix:function(e){return e[u.expando]?e:new u.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var i=this||e;return tn.test(i.type)&&i.click&&F(i,"input")&&jt(i,"click",!0),!1},trigger:function(e){var i=this||e;return tn.test(i.type)&&i.click&&F(i,"input")&&jt(i,"click"),!0},_default:function(e){var i=e.target;return tn.test(i.type)&&i.click&&F(i,"input")&&se.get(i,"click")||F(i,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}};function jt(e,i,a){if(!a){se.get(e,i)===void 0&&u.event.add(e,i,pt);return}se.set(e,i,!1),u.event.add(e,i,{namespace:!1,handler:function(c){var f,p=se.get(this,i);if(c.isTrigger&1&&this[i]){if(p)(u.event.special[i]||{}).delegateType&&c.stopPropagation();else if(p=h.call(arguments),se.set(this,i,p),this[i](),f=se.get(this,i),se.set(this,i,!1),p!==f)return c.stopImmediatePropagation(),c.preventDefault(),f}else p&&(se.set(this,i,u.event.trigger(p[0],p.slice(1),this)),c.stopPropagation(),c.isImmediatePropagationStopped=pt)}})}u.removeEvent=function(e,i,a){e.removeEventListener&&e.removeEventListener(i,a)},u.Event=function(e,i){if(!(this instanceof u.Event))return new u.Event(e,i);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?pt:st,this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,i&&u.extend(this,i),this.timeStamp=e&&e.timeStamp||Date.now(),this[u.expando]=!0},u.Event.prototype={constructor:u.Event,isDefaultPrevented:st,isPropagationStopped:st,isImmediatePropagationStopped:st,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=pt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=pt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=pt,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},u.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},u.event.addProp),u.each({focus:"focusin",blur:"focusout"},function(e,i){function a(c){if(j.documentMode){var f=se.get(this,"handle"),p=u.event.fix(c);p.type=c.type==="focusin"?"focus":"blur",p.isSimulated=!0,f(c),p.target===p.currentTarget&&f(p)}else u.event.simulate(i,c.target,u.event.fix(c))}u.event.special[e]={setup:function(){var c;if(jt(this,e,!0),j.documentMode)c=se.get(this,i),c||this.addEventListener(i,a),se.set(this,i,(c||0)+1);else return!1},trigger:function(){return jt(this,e),!0},teardown:function(){var c;if(j.documentMode)c=se.get(this,i)-1,c?se.set(this,i,c):(this.removeEventListener(i,a),se.remove(this,i));else return!1},_default:function(c){return se.get(c.target,e)},delegateType:i},u.event.special[i]={setup:function(){var c=this.ownerDocument||this.document||this,f=j.documentMode?this:c,p=se.get(f,i);p||(j.documentMode?this.addEventListener(i,a):c.addEventListener(e,a,!0)),se.set(f,i,(p||0)+1)},teardown:function(){var c=this.ownerDocument||this.document||this,f=j.documentMode?this:c,p=se.get(f,i)-1;p?se.set(f,i,p):(j.documentMode?this.removeEventListener(i,a):c.removeEventListener(e,a,!0),se.remove(f,i))}}}),u.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){u.event.special[e]={delegateType:i,bindType:i,handle:function(a){var c,f=this,p=a.relatedTarget,g=a.handleObj;return(!p||p!==f&&!u.contains(f,p))&&(a.type=g.origType,c=g.handler.apply(this,arguments),a.type=i),c}}}),u.fn.extend({on:function(e,i,a,c){return Je(this,e,i,a,c)},one:function(e,i,a,c){return Je(this,e,i,a,c,1)},off:function(e,i,a){var c,f;if(e&&e.preventDefault&&e.handleObj)return c=e.handleObj,u(e.delegateTarget).off(c.namespace?c.origType+"."+c.namespace:c.origType,c.selector,c.handler),this;if(typeof e=="object"){for(f in e)this.off(f,i,e[f]);return this}return(i===!1||typeof i=="function")&&(a=i,i=void 0),a===!1&&(a=st),this.each(function(){u.event.remove(this,e,a,i)})}});var xr=/<script|<style|<link/i,Kt=/checked\s*(?:[^=]|=\s*.checked.)/i,Mn=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Hn(e,i){return F(e,"table")&&F(i.nodeType!==11?i:i.firstChild,"tr")&&u(e).children("tbody")[0]||e}function ui(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function Or(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fn(e,i){var a,c,f,p,g,C,x;if(i.nodeType===1){if(se.hasData(e)&&(p=se.get(e),x=p.events,x)){se.remove(i,"handle events");for(f in x)for(a=0,c=x[f].length;a<c;a++)u.event.add(i,f,x[f][a])}Ve.hasData(e)&&(g=Ve.access(e),C=u.extend({},g),Ve.set(i,C))}}function nn(e,i){var a=i.nodeName.toLowerCase();a==="input"&&tn.test(e.type)?i.checked=e.checked:(a==="input"||a==="textarea")&&(i.defaultValue=e.defaultValue)}function xt(e,i,a,c){i=d(i);var f,p,g,C,x,N,$=0,z=e.length,q=z-1,J=i[0],ye=A(J);if(ye||z>1&&typeof J=="string"&&!k.checkClone&&Kt.test(J))return e.each(function(Ie){var we=e.eq(Ie);ye&&(i[0]=J.call(this,Ie,we.html())),xt(we,i,a,c)});if(z&&(f=Xe(i,e[0].ownerDocument,!1,e,c),p=f.firstChild,f.childNodes.length===1&&(f=p),p||c)){for(g=u.map(De(f,"script"),ui),C=g.length;$<z;$++)x=f,$!==q&&(x=u.clone(x,!0,!0),C&&u.merge(g,De(x,"script"))),a.call(e[$],x,$);if(C)for(N=g[g.length-1].ownerDocument,u.map(g,Or),$=0;$<C;$++)x=g[$],qn.test(x.type||"")&&!se.access(x,"globalEval")&&u.contains(N,x)&&(x.src&&(x.type||"").toLowerCase()!=="module"?u._evalUrl&&!x.noModule&&u._evalUrl(x.src,{nonce:x.nonce||x.getAttribute("nonce")},N):E(x.textContent.replace(Mn,""),x,N))}return e}function kr(e,i,a){for(var c,f=i?u.filter(i,e):e,p=0;(c=f[p])!=null;p++)!a&&c.nodeType===1&&u.cleanData(De(c)),c.parentNode&&(a&&ft(c)&&Ke(De(c,"script")),c.parentNode.removeChild(c));return e}u.extend({htmlPrefilter:function(e){return e},clone:function(e,i,a){var c,f,p,g,C=e.cloneNode(!0),x=ft(e);if(!k.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!u.isXMLDoc(e))for(g=De(C),p=De(e),c=0,f=p.length;c<f;c++)nn(p[c],g[c]);if(i)if(a)for(p=p||De(e),g=g||De(C),c=0,f=p.length;c<f;c++)Fn(p[c],g[c]);else Fn(e,C);return g=De(C,"script"),g.length>0&&Ke(g,!x&&De(e,"script")),C},cleanData:function(e){for(var i,a,c,f=u.event.special,p=0;(a=e[p])!==void 0;p++)if(qe(a)){if(i=a[se.expando]){if(i.events)for(c in i.events)f[c]?u.event.remove(a,c):u.removeEvent(a,c,i.handle);a[se.expando]=void 0}a[Ve.expando]&&(a[Ve.expando]=void 0)}}}),u.fn.extend({detach:function(e){return kr(this,e,!0)},remove:function(e){return kr(this,e)},text:function(e){return Me(this,function(i){return i===void 0?u.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=i)})},null,e,arguments.length)},append:function(){return xt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var i=Hn(this,e);i.appendChild(e)}})},prepend:function(){return xt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var i=Hn(this,e);i.insertBefore(e,i.firstChild)}})},before:function(){return xt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return xt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,i=0;(e=this[i])!=null;i++)e.nodeType===1&&(u.cleanData(De(e,!1)),e.textContent="");return this},clone:function(e,i){return e=e==null?!1:e,i=i==null?e:i,this.map(function(){return u.clone(this,e,i)})},html:function(e){return Me(this,function(i){var a=this[0]||{},c=0,f=this.length;if(i===void 0&&a.nodeType===1)return a.innerHTML;if(typeof i=="string"&&!xr.test(i)&&!Be[(Er.exec(i)||["",""])[1].toLowerCase()]){i=u.htmlPrefilter(i);try{for(;c<f;c++)a=this[c]||{},a.nodeType===1&&(u.cleanData(De(a,!1)),a.innerHTML=i);a=0}catch(p){}}a&&this.empty().append(i)},null,e,arguments.length)},replaceWith:function(){var e=[];return xt(this,arguments,function(i){var a=this.parentNode;u.inArray(this,e)<0&&(u.cleanData(De(this)),a&&a.replaceChild(i,this))},e)}}),u.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,i){u.fn[e]=function(a){for(var c,f=[],p=u(a),g=p.length-1,C=0;C<=g;C++)c=C===g?this:this.clone(!0),u(p[C])[i](c),m.apply(f,c.get());return this.pushStack(f)}});var rn=new RegExp("^("+Re+")(?!px)[a-z%]+$","i"),vn=/^--/,Mt=function(e){var i=e.ownerDocument.defaultView;return(!i||!i.opener)&&(i=r),i.getComputedStyle(e)},yn=function(e,i,a){var c,f,p={};for(f in i)p[f]=e.style[f],e.style[f]=i[f];c=a.call(e);for(f in i)e.style[f]=p[f];return c},Cr=new RegExp(Ge.join("|"),"i");(function(){function e(){if(N){x.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",N.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",et.appendChild(x).appendChild(N);var $=r.getComputedStyle(N);a=$.top!=="1%",C=i($.marginLeft)===12,N.style.right="60%",p=i($.right)===36,c=i($.width)===36,N.style.position="absolute",f=i(N.offsetWidth/3)===12,et.removeChild(x),N=null}}function i($){return Math.round(parseFloat($))}var a,c,f,p,g,C,x=j.createElement("div"),N=j.createElement("div");N.style&&(N.style.backgroundClip="content-box",N.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle=N.style.backgroundClip==="content-box",u.extend(k,{boxSizingReliable:function(){return e(),c},pixelBoxStyles:function(){return e(),p},pixelPosition:function(){return e(),a},reliableMarginLeft:function(){return e(),C},scrollboxSize:function(){return e(),f},reliableTrDimensions:function(){var $,z,q,J;return g==null&&($=j.createElement("table"),z=j.createElement("tr"),q=j.createElement("div"),$.style.cssText="position:absolute;left:-11111px;border-collapse:separate",z.style.cssText="box-sizing:content-box;border:1px solid",z.style.height="1px",q.style.height="9px",q.style.display="block",et.appendChild($).appendChild(z).appendChild(q),J=r.getComputedStyle(z),g=parseInt(J.height,10)+parseInt(J.borderTopWidth,10)+parseInt(J.borderBottomWidth,10)===z.offsetHeight,et.removeChild($)),g}}))})();function Qt(e,i,a){var c,f,p,g,C=vn.test(i),x=e.style;return a=a||Mt(e),a&&(g=a.getPropertyValue(i)||a[i],C&&g&&(g=g.replace(xe,"$1")||void 0),g===""&&!ft(e)&&(g=u.style(e,i)),!k.pixelBoxStyles()&&rn.test(g)&&Cr.test(i)&&(c=x.width,f=x.minWidth,p=x.maxWidth,x.minWidth=x.maxWidth=x.width=g,g=a.width,x.width=c,x.minWidth=f,x.maxWidth=p)),g!==void 0?g+"":g}function It(e,i){return{get:function(){if(e()){delete this.get;return}return(this.get=i).apply(this,arguments)}}}var Tr=["Webkit","Moz","ms"],vt=j.createElement("div").style,jr={};function Ir(e){for(var i=e[0].toUpperCase()+e.slice(1),a=Tr.length;a--;)if(e=Tr[a]+i,e in vt)return e}function on(e){var i=u.cssProps[e]||jr[e];return i||(e in vt?e:jr[e]=Ir(e)||e)}var $n=/^(none|table(?!-c[ea]).+)/,si={position:"absolute",visibility:"hidden",display:"block"},lu={letterSpacing:"0",fontWeight:"400"};function fu(e,i,a){var c=ze.exec(i);return c?Math.max(0,c[2]-(a||0))+(c[3]||"px"):i}function Qi(e,i,a,c,f,p){var g=i==="width"?1:0,C=0,x=0,N=0;if(a===(c?"border":"content"))return 0;for(;g<4;g+=2)a==="margin"&&(N+=u.css(e,a+Ge[g],!0,f)),c?(a==="content"&&(x-=u.css(e,"padding"+Ge[g],!0,f)),a!=="margin"&&(x-=u.css(e,"border"+Ge[g]+"Width",!0,f))):(x+=u.css(e,"padding"+Ge[g],!0,f),a!=="padding"?x+=u.css(e,"border"+Ge[g]+"Width",!0,f):C+=u.css(e,"border"+Ge[g]+"Width",!0,f));return!c&&p>=0&&(x+=Math.max(0,Math.ceil(e["offset"+i[0].toUpperCase()+i.slice(1)]-p-x-C-.5))||0),x+N}function pu(e,i,a){var c=Mt(e),f=!k.boxSizingReliable()||a,p=f&&u.css(e,"boxSizing",!1,c)==="border-box",g=p,C=Qt(e,i,c),x="offset"+i[0].toUpperCase()+i.slice(1);if(rn.test(C)){if(!a)return C;C="auto"}return(!k.boxSizingReliable()&&p||!k.reliableTrDimensions()&&F(e,"tr")||C==="auto"||!parseFloat(C)&&u.css(e,"display",!1,c)==="inline")&&e.getClientRects().length&&(p=u.css(e,"boxSizing",!1,c)==="border-box",g=x in e,g&&(C=e[x])),C=parseFloat(C)||0,C+Qi(e,i,a||(p?"border":"content"),g,c,C)+"px"}u.extend({cssHooks:{opacity:{get:function(e,i){if(i){var a=Qt(e,"opacity");return a===""?"1":a}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,i,a,c){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var f,p,g,C=me(i),x=vn.test(i),N=e.style;if(x||(i=on(C)),g=u.cssHooks[i]||u.cssHooks[C],a!==void 0){if(p=typeof a,p==="string"&&(f=ze.exec(a))&&f[1]&&(a=wr(e,i,f),p="number"),a==null||a!==a)return;p==="number"&&!x&&(a+=f&&f[3]||(u.cssNumber[C]?"":"px")),!k.clearCloneStyle&&a===""&&i.indexOf("background")===0&&(N[i]="inherit"),(!g||!("set"in g)||(a=g.set(e,a,c))!==void 0)&&(x?N.setProperty(i,a):N[i]=a)}else return g&&"get"in g&&(f=g.get(e,!1,c))!==void 0?f:N[i]}},css:function(e,i,a,c){var f,p,g,C=me(i),x=vn.test(i);return x||(i=on(C)),g=u.cssHooks[i]||u.cssHooks[C],g&&"get"in g&&(f=g.get(e,!0,a)),f===void 0&&(f=Qt(e,i,c)),f==="normal"&&i in lu&&(f=lu[i]),a===""||a?(p=parseFloat(f),a===!0||isFinite(p)?p||0:f):f}}),u.each(["height","width"],function(e,i){u.cssHooks[i]={get:function(a,c,f){if(c)return $n.test(u.css(a,"display"))&&(!a.getClientRects().length||!a.getBoundingClientRect().width)?yn(a,si,function(){return pu(a,i,f)}):pu(a,i,f)},set:function(a,c,f){var p,g=Mt(a),C=!k.scrollboxSize()&&g.position==="absolute",x=C||f,N=x&&u.css(a,"boxSizing",!1,g)==="border-box",$=f?Qi(a,i,f,N,g):0;return N&&C&&($-=Math.ceil(a["offset"+i[0].toUpperCase()+i.slice(1)]-parseFloat(g[i])-Qi(a,i,"border",!1,g)-.5)),$&&(p=ze.exec(c))&&(p[3]||"px")!=="px"&&(a.style[i]=c,c=u.css(a,i)),fu(a,c,$)}}}),u.cssHooks.marginLeft=It(k.reliableMarginLeft,function(e,i){if(i)return(parseFloat(Qt(e,"marginLeft"))||e.getBoundingClientRect().left-yn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),u.each({margin:"",padding:"",border:"Width"},function(e,i){u.cssHooks[e+i]={expand:function(a){for(var c=0,f={},p=typeof a=="string"?a.split(" "):[a];c<4;c++)f[e+Ge[c]+i]=p[c]||p[c-2]||p[0];return f}},e!=="margin"&&(u.cssHooks[e+i].set=fu)}),u.fn.extend({css:function(e,i){return Me(this,function(a,c,f){var p,g,C={},x=0;if(Array.isArray(c)){for(p=Mt(a),g=c.length;x<g;x++)C[c[x]]=u.css(a,c[x],!1,p);return C}return f!==void 0?u.style(a,c,f):u.css(a,c)},e,i,arguments.length>1)}});function yt(e,i,a,c,f){return new yt.prototype.init(e,i,a,c,f)}u.Tween=yt,yt.prototype={constructor:yt,init:function(e,i,a,c,f,p){this.elem=e,this.prop=a,this.easing=f||u.easing._default,this.options=i,this.start=this.now=this.cur(),this.end=c,this.unit=p||(u.cssNumber[a]?"":"px")},cur:function(){var e=yt.propHooks[this.prop];return e&&e.get?e.get(this):yt.propHooks._default.get(this)},run:function(e){var i,a=yt.propHooks[this.prop];return this.options.duration?this.pos=i=u.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=i=e,this.now=(this.end-this.start)*i+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),a&&a.set?a.set(this):yt.propHooks._default.set(this),this}},yt.prototype.init.prototype=yt.prototype,yt.propHooks={_default:{get:function(e){var i;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(i=u.css(e.elem,e.prop,""),!i||i==="auto"?0:i)},set:function(e){u.fx.step[e.prop]?u.fx.step[e.prop](e):e.elem.nodeType===1&&(u.cssHooks[e.prop]||e.elem.style[on(e.prop)]!=null)?u.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},yt.propHooks.scrollTop=yt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},u.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},u.fx=yt.prototype.init,u.fx.step={};var Bn,ci,Mc=/^(?:toggle|show|hide)$/,Hc=/queueHooks$/;function Yi(){ci&&(j.hidden===!1&&r.requestAnimationFrame?r.requestAnimationFrame(Yi):r.setTimeout(Yi,u.fx.interval),u.fx.tick())}function du(){return r.setTimeout(function(){Bn=void 0}),Bn=Date.now()}function li(e,i){var a,c=0,f={height:e};for(i=i?1:0;c<4;c+=2-i)a=Ge[c],f["margin"+a]=f["padding"+a]=e;return i&&(f.opacity=f.width=e),f}function hu(e,i,a){for(var c,f=(Pt.tweeners[i]||[]).concat(Pt.tweeners["*"]),p=0,g=f.length;p<g;p++)if(c=f[p].call(a,i,e))return c}function Fc(e,i,a){var c,f,p,g,C,x,N,$,z="width"in i||"height"in i,q=this,J={},ye=e.style,Ie=e.nodeType&&mn(e),we=se.get(e,"fxshow");a.queue||(g=u._queueHooks(e,"fx"),g.unqueued==null&&(g.unqueued=0,C=g.empty.fire,g.empty.fire=function(){g.unqueued||C()}),g.unqueued++,q.always(function(){q.always(function(){g.unqueued--,u.queue(e,"fx").length||g.empty.fire()})}));for(c in i)if(f=i[c],Mc.test(f)){if(delete i[c],p=p||f==="toggle",f===(Ie?"hide":"show"))if(f==="show"&&we&&we[c]!==void 0)Ie=!0;else continue;J[c]=we&&we[c]||u.style(e,c)}if(x=!u.isEmptyObject(i),!(!x&&u.isEmptyObject(J))){z&&e.nodeType===1&&(a.overflow=[ye.overflow,ye.overflowX,ye.overflowY],N=we&&we.display,N==null&&(N=se.get(e,"display")),$=u.css(e,"display"),$==="none"&&(N?$=N:(en([e],!0),N=e.style.display||N,$=u.css(e,"display"),en([e]))),($==="inline"||$==="inline-block"&&N!=null)&&u.css(e,"float")==="none"&&(x||(q.done(function(){ye.display=N}),N==null&&($=ye.display,N=$==="none"?"":$)),ye.display="inline-block")),a.overflow&&(ye.overflow="hidden",q.always(function(){ye.overflow=a.overflow[0],ye.overflowX=a.overflow[1],ye.overflowY=a.overflow[2]})),x=!1;for(c in J)x||(we?"hidden"in we&&(Ie=we.hidden):we=se.access(e,"fxshow",{display:N}),p&&(we.hidden=!Ie),Ie&&en([e],!0),q.done(function(){Ie||en([e]),se.remove(e,"fxshow");for(c in J)u.style(e,c,J[c])})),x=hu(Ie?we[c]:0,c,q),c in we||(we[c]=x.start,Ie&&(x.end=x.start,x.start=0))}}function $c(e,i){var a,c,f,p,g;for(a in e)if(c=me(a),f=i[c],p=e[a],Array.isArray(p)&&(f=p[1],p=e[a]=p[0]),a!==c&&(e[c]=p,delete e[a]),g=u.cssHooks[c],g&&"expand"in g){p=g.expand(p),delete e[c];for(a in p)a in e||(e[a]=p[a],i[a]=f)}else i[c]=f}function Pt(e,i,a){var c,f,p=0,g=Pt.prefilters.length,C=u.Deferred().always(function(){delete x.elem}),x=function(){if(f)return!1;for(var z=Bn||du(),q=Math.max(0,N.startTime+N.duration-z),J=q/N.duration||0,ye=1-J,Ie=0,we=N.tweens.length;Ie<we;Ie++)N.tweens[Ie].run(ye);return C.notifyWith(e,[N,ye,q]),ye<1&&we?q:(we||C.notifyWith(e,[N,1,0]),C.resolveWith(e,[N]),!1)},N=C.promise({elem:e,props:u.extend({},i),opts:u.extend(!0,{specialEasing:{},easing:u.easing._default},a),originalProperties:i,originalOptions:a,startTime:Bn||du(),duration:a.duration,tweens:[],createTween:function(z,q){var J=u.Tween(e,N.opts,z,q,N.opts.specialEasing[z]||N.opts.easing);return N.tweens.push(J),J},stop:function(z){var q=0,J=z?N.tweens.length:0;if(f)return this;for(f=!0;q<J;q++)N.tweens[q].run(1);return z?(C.notifyWith(e,[N,1,0]),C.resolveWith(e,[N,z])):C.rejectWith(e,[N,z]),this}}),$=N.props;for($c($,N.opts.specialEasing);p<g;p++)if(c=Pt.prefilters[p].call(N,e,$,N.opts),c)return A(c.stop)&&(u._queueHooks(N.elem,N.opts.queue).stop=c.stop.bind(c)),c;return u.map($,hu,N),A(N.opts.start)&&N.opts.start.call(e,N),N.progress(N.opts.progress).done(N.opts.done,N.opts.complete).fail(N.opts.fail).always(N.opts.always),u.fx.timer(u.extend(x,{elem:e,anim:N,queue:N.opts.queue})),N}u.Animation=u.extend(Pt,{tweeners:{"*":[function(e,i){var a=this.createTween(e,i);return wr(a.elem,e,ze.exec(i),a),a}]},tweener:function(e,i){A(e)?(i=e,e=["*"]):e=e.match($e);for(var a,c=0,f=e.length;c<f;c++)a=e[c],Pt.tweeners[a]=Pt.tweeners[a]||[],Pt.tweeners[a].unshift(i)},prefilters:[Fc],prefilter:function(e,i){i?Pt.prefilters.unshift(e):Pt.prefilters.push(e)}}),u.speed=function(e,i,a){var c=e&&typeof e=="object"?u.extend({},e):{complete:a||!a&&i||A(e)&&e,duration:e,easing:a&&i||i&&!A(i)&&i};return u.fx.off?c.duration=0:typeof c.duration!="number"&&(c.duration in u.fx.speeds?c.duration=u.fx.speeds[c.duration]:c.duration=u.fx.speeds._default),(c.queue==null||c.queue===!0)&&(c.queue="fx"),c.old=c.complete,c.complete=function(){A(c.old)&&c.old.call(this),c.queue&&u.dequeue(this,c.queue)},c},u.fn.extend({fadeTo:function(e,i,a,c){return this.filter(mn).css("opacity",0).show().end().animate({opacity:i},e,a,c)},animate:function(e,i,a,c){var f=u.isEmptyObject(e),p=u.speed(i,a,c),g=function(){var C=Pt(this,u.extend({},e),p);(f||se.get(this,"finish"))&&C.stop(!0)};return g.finish=g,f||p.queue===!1?this.each(g):this.queue(p.queue,g)},stop:function(e,i,a){var c=function(f){var p=f.stop;delete f.stop,p(a)};return typeof e!="string"&&(a=i,i=e,e=void 0),i&&this.queue(e||"fx",[]),this.each(function(){var f=!0,p=e!=null&&e+"queueHooks",g=u.timers,C=se.get(this);if(p)C[p]&&C[p].stop&&c(C[p]);else for(p in C)C[p]&&C[p].stop&&Hc.test(p)&&c(C[p]);for(p=g.length;p--;)g[p].elem===this&&(e==null||g[p].queue===e)&&(g[p].anim.stop(a),f=!1,g.splice(p,1));(f||!a)&&u.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var i,a=se.get(this),c=a[e+"queue"],f=a[e+"queueHooks"],p=u.timers,g=c?c.length:0;for(a.finish=!0,u.queue(this,e,[]),f&&f.stop&&f.stop.call(this,!0),i=p.length;i--;)p[i].elem===this&&p[i].queue===e&&(p[i].anim.stop(!0),p.splice(i,1));for(i=0;i<g;i++)c[i]&&c[i].finish&&c[i].finish.call(this);delete a.finish})}}),u.each(["toggle","show","hide"],function(e,i){var a=u.fn[i];u.fn[i]=function(c,f,p){return c==null||typeof c=="boolean"?a.apply(this,arguments):this.animate(li(i,!0),c,f,p)}}),u.each({slideDown:li("show"),slideUp:li("hide"),slideToggle:li("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){u.fn[e]=function(a,c,f){return this.animate(i,a,c,f)}}),u.timers=[],u.fx.tick=function(){var e,i=0,a=u.timers;for(Bn=Date.now();i<a.length;i++)e=a[i],!e()&&a[i]===e&&a.splice(i--,1);a.length||u.fx.stop(),Bn=void 0},u.fx.timer=function(e){u.timers.push(e),u.fx.start()},u.fx.interval=13,u.fx.start=function(){ci||(ci=!0,Yi())},u.fx.stop=function(){ci=null},u.fx.speeds={slow:600,fast:200,_default:400},u.fn.delay=function(e,i){return e=u.fx&&u.fx.speeds[e]||e,i=i||"fx",this.queue(i,function(a,c){var f=r.setTimeout(a,e);c.stop=function(){r.clearTimeout(f)}})},(function(){var e=j.createElement("input"),i=j.createElement("select"),a=i.appendChild(j.createElement("option"));e.type="checkbox",k.checkOn=e.value!=="",k.optSelected=a.selected,e=j.createElement("input"),e.value="t",e.type="radio",k.radioValue=e.value==="t"})();var gu,Pr=u.expr.attrHandle;u.fn.extend({attr:function(e,i){return Me(this,u.attr,e,i,arguments.length>1)},removeAttr:function(e){return this.each(function(){u.removeAttr(this,e)})}}),u.extend({attr:function(e,i,a){var c,f,p=e.nodeType;if(!(p===3||p===8||p===2)){if(typeof e.getAttribute=="undefined")return u.prop(e,i,a);if((p!==1||!u.isXMLDoc(e))&&(f=u.attrHooks[i.toLowerCase()]||(u.expr.match.bool.test(i)?gu:void 0)),a!==void 0){if(a===null){u.removeAttr(e,i);return}return f&&"set"in f&&(c=f.set(e,a,i))!==void 0?c:(e.setAttribute(i,a+""),a)}return f&&"get"in f&&(c=f.get(e,i))!==null?c:(c=u.find.attr(e,i),c==null?void 0:c)}},attrHooks:{type:{set:function(e,i){if(!k.radioValue&&i==="radio"&&F(e,"input")){var a=e.value;return e.setAttribute("type",i),a&&(e.value=a),i}}}},removeAttr:function(e,i){var a,c=0,f=i&&i.match($e);if(f&&e.nodeType===1)for(;a=f[c++];)e.removeAttribute(a)}}),gu={set:function(e,i,a){return i===!1?u.removeAttr(e,a):e.setAttribute(a,a),a}},u.each(u.expr.match.bool.source.match(/\w+/g),function(e,i){var a=Pr[i]||u.find.attr;Pr[i]=function(c,f,p){var g,C,x=f.toLowerCase();return p||(C=Pr[x],Pr[x]=g,g=a(c,f,p)!=null?x:null,Pr[x]=C),g}});var Bc=/^(?:input|select|textarea|button)$/i,Uc=/^(?:a|area)$/i;u.fn.extend({prop:function(e,i){return Me(this,u.prop,e,i,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[u.propFix[e]||e]})}}),u.extend({prop:function(e,i,a){var c,f,p=e.nodeType;if(!(p===3||p===8||p===2))return(p!==1||!u.isXMLDoc(e))&&(i=u.propFix[i]||i,f=u.propHooks[i]),a!==void 0?f&&"set"in f&&(c=f.set(e,a,i))!==void 0?c:e[i]=a:f&&"get"in f&&(c=f.get(e,i))!==null?c:e[i]},propHooks:{tabIndex:{get:function(e){var i=u.find.attr(e,"tabindex");return i?parseInt(i,10):Bc.test(e.nodeName)||Uc.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),k.optSelected||(u.propHooks.selected={get:function(e){var i=e.parentNode;return i&&i.parentNode&&i.parentNode.selectedIndex,null},set:function(e){var i=e.parentNode;i&&(i.selectedIndex,i.parentNode&&i.parentNode.selectedIndex)}}),u.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){u.propFix[this.toLowerCase()]=this});function bn(e){var i=e.match($e)||[];return i.join(" ")}function _n(e){return e.getAttribute&&e.getAttribute("class")||""}function Xi(e){return Array.isArray(e)?e:typeof e=="string"?e.match($e)||[]:[]}u.fn.extend({addClass:function(e){var i,a,c,f,p,g;return A(e)?this.each(function(C){u(this).addClass(e.call(this,C,_n(this)))}):(i=Xi(e),i.length?this.each(function(){if(c=_n(this),a=this.nodeType===1&&" "+bn(c)+" ",a){for(p=0;p<i.length;p++)f=i[p],a.indexOf(" "+f+" ")<0&&(a+=f+" ");g=bn(a),c!==g&&this.setAttribute("class",g)}}):this)},removeClass:function(e){var i,a,c,f,p,g;return A(e)?this.each(function(C){u(this).removeClass(e.call(this,C,_n(this)))}):arguments.length?(i=Xi(e),i.length?this.each(function(){if(c=_n(this),a=this.nodeType===1&&" "+bn(c)+" ",a){for(p=0;p<i.length;p++)for(f=i[p];a.indexOf(" "+f+" ")>-1;)a=a.replace(" "+f+" "," ");g=bn(a),c!==g&&this.setAttribute("class",g)}}):this):this.attr("class","")},toggleClass:function(e,i){var a,c,f,p,g=typeof e,C=g==="string"||Array.isArray(e);return A(e)?this.each(function(x){u(this).toggleClass(e.call(this,x,_n(this),i),i)}):typeof i=="boolean"&&C?i?this.addClass(e):this.removeClass(e):(a=Xi(e),this.each(function(){if(C)for(p=u(this),f=0;f<a.length;f++)c=a[f],p.hasClass(c)?p.removeClass(c):p.addClass(c);else(e===void 0||g==="boolean")&&(c=_n(this),c&&se.set(this,"__className__",c),this.setAttribute&&this.setAttribute("class",c||e===!1?"":se.get(this,"__className__")||""))}))},hasClass:function(e){var i,a,c=0;for(i=" "+e+" ";a=this[c++];)if(a.nodeType===1&&(" "+bn(_n(a))+" ").indexOf(i)>-1)return!0;return!1}});var zc=/\r/g;u.fn.extend({val:function(e){var i,a,c,f=this[0];return arguments.length?(c=A(e),this.each(function(p){var g;this.nodeType===1&&(c?g=e.call(this,p,u(this).val()):g=e,g==null?g="":typeof g=="number"?g+="":Array.isArray(g)&&(g=u.map(g,function(C){return C==null?"":C+""})),i=u.valHooks[this.type]||u.valHooks[this.nodeName.toLowerCase()],(!i||!("set"in i)||i.set(this,g,"value")===void 0)&&(this.value=g))})):f?(i=u.valHooks[f.type]||u.valHooks[f.nodeName.toLowerCase()],i&&"get"in i&&(a=i.get(f,"value"))!==void 0?a:(a=f.value,typeof a=="string"?a.replace(zc,""):a==null?"":a)):void 0}}),u.extend({valHooks:{option:{get:function(e){var i=u.find.attr(e,"value");return i!=null?i:bn(u.text(e))}},select:{get:function(e){var i,a,c,f=e.options,p=e.selectedIndex,g=e.type==="select-one",C=g?null:[],x=g?p+1:f.length;for(p<0?c=x:c=g?p:0;c<x;c++)if(a=f[c],(a.selected||c===p)&&!a.disabled&&(!a.parentNode.disabled||!F(a.parentNode,"optgroup"))){if(i=u(a).val(),g)return i;C.push(i)}return C},set:function(e,i){for(var a,c,f=e.options,p=u.makeArray(i),g=f.length;g--;)c=f[g],(c.selected=u.inArray(u.valHooks.option.get(c),p)>-1)&&(a=!0);return a||(e.selectedIndex=-1),p}}}}),u.each(["radio","checkbox"],function(){u.valHooks[this]={set:function(e,i){if(Array.isArray(i))return e.checked=u.inArray(u(e).val(),i)>-1}},k.checkOn||(u.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var Dr=r.location,mu={guid:Date.now()},Ji=/\?/;u.parseXML=function(e){var i,a;if(!e||typeof e!="string")return null;try{i=new r.DOMParser().parseFromString(e,"text/xml")}catch(c){}return a=i&&i.getElementsByTagName("parsererror")[0],(!i||a)&&u.error("Invalid XML: "+(a?u.map(a.childNodes,function(c){return c.textContent}).join(`
|
|
4
|
-
`):
|
|
5
|
-
`)}}):{name:
|
|
6
|
-
`)}}).get()}});var Kc=/%20/g,Qc=/#.*$/,Yc=/([?&])_=[^&]*/,Xc=/^(.*?):[ \t]*([^\r\n]*)$/mg,Jc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Zc=/^(?:GET|HEAD)$/,el=/^\/\//,_u={},eo={},Au="*/".concat("*"),to=j.createElement("a");to.href=Dr.href;function wu(e){return function(i,a){typeof i!="string"&&(a=i,i="*");var c,f=0,p=i.toLowerCase().match($e)||[];if(A(a))for(;c=p[f++];)c[0]==="+"?(c=c.slice(1)||"*",(e[c]=e[c]||[]).unshift(a)):(e[c]=e[c]||[]).push(a)}}function Su(e,i,a,c){var f={},p=e===eo;function g(C){var x;return f[C]=!0,u.each(e[C]||[],function(N,$){var z=$(i,a,c);if(typeof z=="string"&&!p&&!f[z])return i.dataTypes.unshift(z),g(z),!1;if(p)return!(x=z)}),x}return g(i.dataTypes[0])||!f["*"]&&g("*")}function no(e,i){var a,c,f=u.ajaxSettings.flatOptions||{};for(a in i)i[a]!==void 0&&((f[a]?e:c||(c={}))[a]=i[a]);return c&&u.extend(!0,e,c),e}function tl(e,i,a){for(var c,f,p,g,C=e.contents,x=e.dataTypes;x[0]==="*";)x.shift(),c===void 0&&(c=e.mimeType||i.getResponseHeader("Content-Type"));if(c){for(f in C)if(C[f]&&C[f].test(c)){x.unshift(f);break}}if(x[0]in a)p=x[0];else{for(f in a){if(!x[0]||e.converters[f+" "+x[0]]){p=f;break}g||(g=f)}p=p||g}if(p)return p!==x[0]&&x.unshift(p),a[p]}function nl(e,i,a,c){var f,p,g,C,x,N={},$=e.dataTypes.slice();if($[1])for(g in e.converters)N[g.toLowerCase()]=e.converters[g];for(p=$.shift();p;)if(e.responseFields[p]&&(a[e.responseFields[p]]=i),!x&&c&&e.dataFilter&&(i=e.dataFilter(i,e.dataType)),x=p,p=$.shift(),p){if(p==="*")p=x;else if(x!=="*"&&x!==p){if(g=N[x+" "+p]||N["* "+p],!g){for(f in N)if(C=f.split(" "),C[1]===p&&(g=N[x+" "+C[0]]||N["* "+C[0]],g)){g===!0?g=N[f]:N[f]!==!0&&(p=C[0],$.unshift(C[1]));break}}if(g!==!0)if(g&&e.throws)i=g(i);else try{i=g(i)}catch(z){return{state:"parsererror",error:g?z:"No conversion from "+x+" to "+p}}}}return{state:"success",data:i}}u.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dr.href,type:"GET",isLocal:Jc.test(Dr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Au,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":u.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,i){return i?no(no(e,u.ajaxSettings),i):no(u.ajaxSettings,e)},ajaxPrefilter:wu(_u),ajaxTransport:wu(eo),ajax:function(e,i){typeof e=="object"&&(i=e,e=void 0),i=i||{};var a,c,f,p,g,C,x,N,$,z,q=u.ajaxSetup({},i),J=q.context||q,ye=q.context&&(J.nodeType||J.jquery)?u(J):u.event,Ie=u.Deferred(),we=u.Callbacks("once memory"),it=q.statusCode||{},Ze={},Ht={},Ft="canceled",Te={readyState:0,getResponseHeader:function(Pe){var Qe;if(x){if(!p)for(p={};Qe=Xc.exec(f);)p[Qe[1].toLowerCase()+" "]=(p[Qe[1].toLowerCase()+" "]||[]).concat(Qe[2]);Qe=p[Pe.toLowerCase()+" "]}return Qe==null?null:Qe.join(", ")},getAllResponseHeaders:function(){return x?f:null},setRequestHeader:function(Pe,Qe){return x==null&&(Pe=Ht[Pe.toLowerCase()]=Ht[Pe.toLowerCase()]||Pe,Ze[Pe]=Qe),this},overrideMimeType:function(Pe){return x==null&&(q.mimeType=Pe),this},statusCode:function(Pe){var Qe;if(Pe)if(x)Te.always(Pe[Te.status]);else for(Qe in Pe)it[Qe]=[it[Qe],Pe[Qe]];return this},abort:function(Pe){var Qe=Pe||Ft;return a&&a.abort(Qe),An(0,Qe),this}};if(Ie.promise(Te),q.url=((e||q.url||Dr.href)+"").replace(el,Dr.protocol+"//"),q.type=i.method||i.type||q.method||q.type,q.dataTypes=(q.dataType||"*").toLowerCase().match($e)||[""],q.crossDomain==null){C=j.createElement("a");try{C.href=q.url,C.href=C.href,q.crossDomain=to.protocol+"//"+to.host!=C.protocol+"//"+C.host}catch(Pe){q.crossDomain=!0}}if(q.data&&q.processData&&typeof q.data!="string"&&(q.data=u.param(q.data,q.traditional)),Su(_u,q,i,Te),x)return Te;N=u.event&&q.global,N&&u.active++===0&&u.event.trigger("ajaxStart"),q.type=q.type.toUpperCase(),q.hasContent=!Zc.test(q.type),c=q.url.replace(Qc,""),q.hasContent?q.data&&q.processData&&(q.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(q.data=q.data.replace(Kc,"+")):(z=q.url.slice(c.length),q.data&&(q.processData||typeof q.data=="string")&&(c+=(Ji.test(c)?"&":"?")+q.data,delete q.data),q.cache===!1&&(c=c.replace(Yc,"$1"),z=(Ji.test(c)?"&":"?")+"_="+mu.guid+++z),q.url=c+z),q.ifModified&&(u.lastModified[c]&&Te.setRequestHeader("If-Modified-Since",u.lastModified[c]),u.etag[c]&&Te.setRequestHeader("If-None-Match",u.etag[c])),(q.data&&q.hasContent&&q.contentType!==!1||i.contentType)&&Te.setRequestHeader("Content-Type",q.contentType),Te.setRequestHeader("Accept",q.dataTypes[0]&&q.accepts[q.dataTypes[0]]?q.accepts[q.dataTypes[0]]+(q.dataTypes[0]!=="*"?", "+Au+"; q=0.01":""):q.accepts["*"]);for($ in q.headers)Te.setRequestHeader($,q.headers[$]);if(q.beforeSend&&(q.beforeSend.call(J,Te,q)===!1||x))return Te.abort();if(Ft="abort",we.add(q.complete),Te.done(q.success),Te.fail(q.error),a=Su(eo,q,i,Te),!a)An(-1,"No Transport");else{if(Te.readyState=1,N&&ye.trigger("ajaxSend",[Te,q]),x)return Te;q.async&&q.timeout>0&&(g=r.setTimeout(function(){Te.abort("timeout")},q.timeout));try{x=!1,a.send(Ze,An)}catch(Pe){if(x)throw Pe;An(-1,Pe)}}function An(Pe,Qe,Lr,io){var $t,Rr,Bt,an,un,Ot=Qe;x||(x=!0,g&&r.clearTimeout(g),a=void 0,f=io||"",Te.readyState=Pe>0?4:0,$t=Pe>=200&&Pe<300||Pe===304,Lr&&(an=tl(q,Te,Lr)),!$t&&u.inArray("script",q.dataTypes)>-1&&u.inArray("json",q.dataTypes)<0&&(q.converters["text script"]=function(){}),an=nl(q,an,Te,$t),$t?(q.ifModified&&(un=Te.getResponseHeader("Last-Modified"),un&&(u.lastModified[c]=un),un=Te.getResponseHeader("etag"),un&&(u.etag[c]=un)),Pe===204||q.type==="HEAD"?Ot="nocontent":Pe===304?Ot="notmodified":(Ot=an.state,Rr=an.data,Bt=an.error,$t=!Bt)):(Bt=Ot,(Pe||!Ot)&&(Ot="error",Pe<0&&(Pe=0))),Te.status=Pe,Te.statusText=(Qe||Ot)+"",$t?Ie.resolveWith(J,[Rr,Ot,Te]):Ie.rejectWith(J,[Te,Ot,Bt]),Te.statusCode(it),it=void 0,N&&ye.trigger($t?"ajaxSuccess":"ajaxError",[Te,q,$t?Rr:Bt]),we.fireWith(J,[Te,Ot]),N&&(ye.trigger("ajaxComplete",[Te,q]),--u.active||u.event.trigger("ajaxStop")))}return Te},getJSON:function(e,i,a){return u.get(e,i,a,"json")},getScript:function(e,i){return u.get(e,void 0,i,"script")}}),u.each(["get","post"],function(e,i){u[i]=function(a,c,f,p){return A(c)&&(p=p||f,f=c,c=void 0),u.ajax(u.extend({url:a,type:i,dataType:p,data:c,success:f},u.isPlainObject(a)&&a))}}),u.ajaxPrefilter(function(e){var i;for(i in e.headers)i.toLowerCase()==="content-type"&&(e.contentType=e.headers[i]||"")}),u._evalUrl=function(e,i,a){return u.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(c){u.globalEval(c,i,a)}})},u.fn.extend({wrapAll:function(e){var i;return this[0]&&(A(e)&&(e=e.call(this[0])),i=u(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&i.insertBefore(this[0]),i.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(e){return A(e)?this.each(function(i){u(this).wrapInner(e.call(this,i))}):this.each(function(){var i=u(this),a=i.contents();a.length?a.wrapAll(e):i.append(e)})},wrap:function(e){var i=A(e);return this.each(function(a){u(this).wrapAll(i?e.call(this,a):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){u(this).replaceWith(this.childNodes)}),this}}),u.expr.pseudos.hidden=function(e){return!u.expr.pseudos.visible(e)},u.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},u.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var rl={0:200,1223:204},Nr=u.ajaxSettings.xhr();k.cors=!!Nr&&"withCredentials"in Nr,k.ajax=Nr=!!Nr,u.ajaxTransport(function(e){var i,a;if(k.cors||Nr&&!e.crossDomain)return{send:function(c,f){var p,g=e.xhr();if(g.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(p in e.xhrFields)g[p]=e.xhrFields[p];e.mimeType&&g.overrideMimeType&&g.overrideMimeType(e.mimeType),!e.crossDomain&&!c["X-Requested-With"]&&(c["X-Requested-With"]="XMLHttpRequest");for(p in c)g.setRequestHeader(p,c[p]);i=function(C){return function(){i&&(i=a=g.onload=g.onerror=g.onabort=g.ontimeout=g.onreadystatechange=null,C==="abort"?g.abort():C==="error"?typeof g.status!="number"?f(0,"error"):f(g.status,g.statusText):f(rl[g.status]||g.status,g.statusText,(g.responseType||"text")!=="text"||typeof g.responseText!="string"?{binary:g.response}:{text:g.responseText},g.getAllResponseHeaders()))}},g.onload=i(),a=g.onerror=g.ontimeout=i("error"),g.onabort!==void 0?g.onabort=a:g.onreadystatechange=function(){g.readyState===4&&r.setTimeout(function(){i&&a()})},i=i("abort");try{g.send(e.hasContent&&e.data||null)}catch(C){if(i)throw C}},abort:function(){i&&i()}}}),u.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),u.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return u.globalEval(e),e}}}),u.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),u.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var i,a;return{send:function(c,f){i=u("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",a=function(p){i.remove(),a=null,p&&f(p.type==="error"?404:200,p.type)}),j.head.appendChild(i[0])},abort:function(){a&&a()}}}});var Eu=[],ro=/(=)\?(?=&|$)|\?\?/;u.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Eu.pop()||u.expando+"_"+mu.guid++;return this[e]=!0,e}}),u.ajaxPrefilter("json jsonp",function(e,i,a){var c,f,p,g=e.jsonp!==!1&&(ro.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ro.test(e.data)&&"data");if(g||e.dataTypes[0]==="jsonp")return c=e.jsonpCallback=A(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,g?e[g]=e[g].replace(ro,"$1"+c):e.jsonp!==!1&&(e.url+=(Ji.test(e.url)?"&":"?")+e.jsonp+"="+c),e.converters["script json"]=function(){return p||u.error(c+" was not called"),p[0]},e.dataTypes[0]="json",f=r[c],r[c]=function(){p=arguments},a.always(function(){f===void 0?u(r).removeProp(c):r[c]=f,e[c]&&(e.jsonpCallback=i.jsonpCallback,Eu.push(c)),p&&A(f)&&f(p[0]),p=f=void 0}),"script"}),k.createHTMLDocument=(function(){var e=j.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",e.childNodes.length===2})(),u.parseHTML=function(e,i,a){if(typeof e!="string")return[];typeof i=="boolean"&&(a=i,i=!1);var c,f,p;return i||(k.createHTMLDocument?(i=j.implementation.createHTMLDocument(""),c=i.createElement("base"),c.href=j.location.href,i.head.appendChild(c)):i=j),f=V.exec(e),p=!a&&[],f?[i.createElement(f[1])]:(f=Xe([e],i,p),p&&p.length&&u(p).remove(),u.merge([],f.childNodes))},u.fn.load=function(e,i,a){var c,f,p,g=this,C=e.indexOf(" ");return C>-1&&(c=bn(e.slice(C)),e=e.slice(0,C)),A(i)?(a=i,i=void 0):i&&typeof i=="object"&&(f="POST"),g.length>0&&u.ajax({url:e,type:f||"GET",dataType:"html",data:i}).done(function(x){p=arguments,g.html(c?u("<div>").append(u.parseHTML(x)).find(c):x)}).always(a&&function(x,N){g.each(function(){a.apply(this,p||[x.responseText,N,x])})}),this},u.expr.pseudos.animated=function(e){return u.grep(u.timers,function(i){return e===i.elem}).length},u.offset={setOffset:function(e,i,a){var c,f,p,g,C,x,N,$=u.css(e,"position"),z=u(e),q={};$==="static"&&(e.style.position="relative"),C=z.offset(),p=u.css(e,"top"),x=u.css(e,"left"),N=($==="absolute"||$==="fixed")&&(p+x).indexOf("auto")>-1,N?(c=z.position(),g=c.top,f=c.left):(g=parseFloat(p)||0,f=parseFloat(x)||0),A(i)&&(i=i.call(e,a,u.extend({},C))),i.top!=null&&(q.top=i.top-C.top+g),i.left!=null&&(q.left=i.left-C.left+f),"using"in i?i.using.call(e,q):z.css(q)}},u.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(f){u.offset.setOffset(this,e,f)});var i,a,c=this[0];if(c)return c.getClientRects().length?(i=c.getBoundingClientRect(),a=c.ownerDocument.defaultView,{top:i.top+a.pageYOffset,left:i.left+a.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,i,a,c=this[0],f={top:0,left:0};if(u.css(c,"position")==="fixed")i=c.getBoundingClientRect();else{for(i=this.offset(),a=c.ownerDocument,e=c.offsetParent||a.documentElement;e&&(e===a.body||e===a.documentElement)&&u.css(e,"position")==="static";)e=e.parentNode;e&&e!==c&&e.nodeType===1&&(f=u(e).offset(),f.top+=u.css(e,"borderTopWidth",!0),f.left+=u.css(e,"borderLeftWidth",!0))}return{top:i.top-f.top-u.css(c,"marginTop",!0),left:i.left-f.left-u.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&u.css(e,"position")==="static";)e=e.offsetParent;return e||et})}}),u.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var a=i==="pageYOffset";u.fn[e]=function(c){return Me(this,function(f,p,g){var C;if(P(f)?C=f:f.nodeType===9&&(C=f.defaultView),g===void 0)return C?C[i]:f[p];C?C.scrollTo(a?C.pageXOffset:g,a?g:C.pageYOffset):f[p]=g},e,c,arguments.length)}}),u.each(["top","left"],function(e,i){u.cssHooks[i]=It(k.pixelPosition,function(a,c){if(c)return c=Qt(a,i),rn.test(c)?u(a).position()[i]+"px":c})}),u.each({Height:"height",Width:"width"},function(e,i){u.each({padding:"inner"+e,content:i,"":"outer"+e},function(a,c){u.fn[c]=function(f,p){var g=arguments.length&&(a||typeof f!="boolean"),C=a||(f===!0||p===!0?"margin":"border");return Me(this,function(x,N,$){var z;return P(x)?c.indexOf("outer")===0?x["inner"+e]:x.document.documentElement["client"+e]:x.nodeType===9?(z=x.documentElement,Math.max(x.body["scroll"+e],z["scroll"+e],x.body["offset"+e],z["offset"+e],z["client"+e])):$===void 0?u.css(x,N,C):u.style(x,N,$,C)},i,g?f:void 0,g)}})}),u.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,i){u.fn[i]=function(a){return this.on(i,a)}}),u.fn.extend({bind:function(e,i,a){return this.on(e,null,i,a)},unbind:function(e,i){return this.off(e,null,i)},delegate:function(e,i,a,c){return this.on(i,e,a,c)},undelegate:function(e,i,a){return arguments.length===1?this.off(e,"**"):this.off(i,e||"**",a)},hover:function(e,i){return this.on("mouseenter",e).on("mouseleave",i||e)}}),u.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){u.fn[i]=function(a,c){return arguments.length>0?this.on(i,null,a,c):this.trigger(i)}});var il=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;u.proxy=function(e,i){var a,c,f;if(typeof i=="string"&&(a=e[i],i=e,e=a),!!A(e))return c=h.call(arguments,2),f=function(){return e.apply(i||this,c.concat(h.call(arguments)))},f.guid=e.guid=e.guid||u.guid++,f},u.holdReady=function(e){e?u.readyWait++:u.ready(!0)},u.isArray=Array.isArray,u.parseJSON=JSON.parse,u.nodeName=F,u.isFunction=A,u.isWindow=P,u.camelCase=me,u.type=L,u.now=Date.now,u.isNumeric=function(e){var i=u.type(e);return(i==="number"||i==="string")&&!isNaN(e-parseFloat(e))},u.trim=function(e){return e==null?"":(e+"").replace(il,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return u});var ol=r.jQuery,al=r.$;return u.noConflict=function(e){return r.$===u&&(r.$=al),e&&r.jQuery===u&&(r.jQuery=ol),u},typeof o=="undefined"&&(r.jQuery=r.$=u),u})}}),hl=Hr(Du()),Wn=t=>t.getBoundingClientRect().height,ho=()=>{let t=window.innerHeight*.01;document.querySelector("html").setAttribute("style",`--vh:${t}px;`);let n=document.querySelector("header"),r=document.querySelector("footer");if(!n||!r)return;let o=window.innerHeight-Wn(n)-Wn(r);document.querySelector("main").setAttribute("style",`--mh:${o}px;`)};ho(),window.onresize=ho;var Fr=()=>{let t=new Date;return t.setTime(t.getTime()+100*365*24*60*60*1e3),`expires=${t.toUTCString()};`},gi=t=>{let n=RegExp(`${t}=.[^;]*`),r=document.cookie.match(n);if(r){let o=r[0].split("=");return decodeURIComponent(o[1])}return!1};(()=>{let t=document.getElementById("topNoticeAlert"),n=window.sessionStorage.getItem("notice"),r=document.getElementById("cookieNoticeAlert"),o="chocolatey_hide_cookies_notice";t&&(n?t.remove():t.classList.remove("d-none"),t.querySelector("button").addEventListener("click",()=>sessionStorage.setItem("notice","true"),!1)),r&&(gi(o)?r.remove():r.classList.remove("d-none"),r.querySelectorAll("button").forEach(s=>{s.addEventListener("click",()=>{~location.hostname.indexOf("chocolatey.org")?document.cookie=`${o}=true; ${Fr()}path=/; domain=chocolatey.org;`:document.cookie=`${o}=true; ${Fr()}path=/;`},!1)}))})(),(()=>{let t=document.querySelectorAll(".callout"),n=document.querySelectorAll("blockquote"),r=o=>{o.forEach(s=>{let l=s.querySelector(".callout-header");if(s.nodeName==="BLOCKQUOTE"&&s.querySelector("p:first-child")&&s.querySelector("p:first-child").textContent.includes(":choco-")&&(l=s.querySelector("p:first-child")),l){let h="",d="",m=l.textContent;s.classList.contains("callout-success")||m.includes(":choco-success:")?(d="success",h="check",s.classList.add("callout-success")):s.classList.contains("callout-danger")||m.includes(":choco-danger:")?(d="danger",h="xmark",s.classList.add("callout-danger")):s.classList.contains("callout-warning")||m.includes(":choco-warning:")?(d="warning",h="triangle-exclamation",s.classList.add("callout-warning")):s.classList.contains("callout-tip")||m.includes(":choco-tip:")?(d="tip",h="lightbulb",s.classList.add("callout-tip")):(d="info",h="info",s.classList.add("callout-info")),m.includes(":choco-")&&(m=m.replace(/:.+?:/,"").trim());let y=`<div class="callout-header d-flex align-items-center"><span class="flex-shrink-0 text-bg-${d} h-px-30 w-px-30 d-flex align-items-center justify-content-center rounded me-3"><span class="fa-solid fa-${h}"></span></span><p class="lead"><strong>${m}</strong></p></div>`;l.outerHTML=y}})};r(t),r(n)})();var qu=Hr(Nu());(()=>{let t=new qu.default(".btn-copy"),n=document.querySelectorAll(".user-select-all");t.on("success",r=>{if(r.trigger.classList.contains("copy-to-clipboard-button"))r.trigger.textContent="Copied!",setTimeout(()=>{r.trigger.blur(),setTimeout(()=>{r.trigger.textContent="Copy"},200)},2e3);else{let o=new bootstrap.Button(r.trigger);setTimeout(()=>{o.toggle()},2e3)}r.clearSelection()}),n&&n.forEach(r=>r.addEventListener("click",()=>r.select(),!1))})();var Mu=t=>{t.innerHTML=t.innerHTML.trim()};(()=>{let t=document.querySelectorAll("code"),n=document.querySelectorAll("pre");t.forEach(Mu),(()=>{let o=window.location.href;if(["en-us/choco/commands/","en-us/create/commands/"].some(l=>o.includes(l))){let l=document.querySelectorAll("h2");for(let h of l){let d=h.textContent.trim();if(d==="Examples"||d==="Usage"){let m=h.nextElementSibling;for(;m&&m.tagName!=="H2";){if(m.tagName==="PRE"&&m.firstElementChild&&m.firstElementChild.tagName==="CODE"){let y=m.firstElementChild,v=y.textContent.split(`
|
|
7
|
-
`).map(
|
|
8
|
-
`)}m=m.nextElementSibling}}}}})();for(let o of n)!o.classList.contains("highlight-delay")&&!o.classList.contains("d-format-none")&&(o.classList.add("line-numbers","language-none"),Prism.highlightAll())})();var Vn=t=>t.replace(/[.]/g,"\\$&"),go=t=>{let n=[],r=t;for(;r!=document;)n.push(r.parentNode),r=r.parentNode;return n};(()=>{let t=()=>{if(location.hash){let s=document.querySelector(Vn(location.hash));if(s){let l=s,h=go(s).filter(d=>d!=document&&d.classList.contains("collapse"));h.length==0&&s.classList.contains("collapse")&&h.push(s),h.reverse().forEach((d,m,y)=>{d=document.getElementById(Vn(d.id)),bootstrap.Collapse.getOrCreateInstance(d,{toggle:!1}).show(),d.addEventListener("shown.bs.collapse",v=>{v.stopImmediatePropagation(),m===y.length-1&&l.scrollIntoView()})})}}},n=()=>{if(location.hash){let s=document.querySelector(`[data-bs-toggle="tab"][href="${Vn(location.hash)}"]`);if(s){let l=s,h=go(s).filter(d=>d!=document&&d.classList.contains("tab-pane"));h.push(s),h.reverse().forEach((d,m,y)=>{d.id.includes("-tab")||(d=document.getElementById(`${Vn(d.id)}-tab`)),bootstrap.Tab.getOrCreateInstance(d,{toggle:!1}).show(),d.addEventListener("shown.bs.tab",v=>{v.stopImmediatePropagation(),m===y.length-1&&l.scrollIntoView()})})}}};t(),n(),window.addEventListener("hashchange",t,!1),window.addEventListener("hashchange",n,!1);let r=document.querySelectorAll(".btn-collapse-target");r&&r.forEach(s=>{s.addEventListener("click",()=>{let l=document.querySelector(s.getAttribute("data-collapse-target"));bootstrap.Collapse.getOrCreateInstance(l,{toggle:!1}).show()},!1)});let o=s=>{s.addEventListener("click",l=>{history.pushState(null,null,l.target.hash)})};document.querySelectorAll('[data-bs-toggle="tab"]:not(.d-hash-none)').forEach(s=>o(s)),document.querySelectorAll('[data-bs-toggle="collapse"]:not(.d-hash-none)').forEach(s=>o(s))})(),(()=>{let t=document.querySelector(".collapse-lg");if(t){let n=window.matchMedia("(max-width: 1199px)"),r=bootstrap.Collapse.getOrCreateInstance(t,{toggle:!1});t.querySelectorAll("a").forEach(s=>{s.addEventListener("click",()=>{n.matches&&(s.classList.add("active-scroll"),r.hide())},!1)}),t.addEventListener("hidden.bs.collapse",()=>{let s=t.querySelector(".active-scroll");s&&(document.querySelector(Vn(s.getAttribute("href"))).scrollIntoView(),s.classList.remove("active-scroll"))});let o=s=>{s.matches?r.hide():r.show()};o(n),n.addEventListener("change",()=>o(n))}})(),(()=>{let t=document.querySelector(".collapse-y-height"),n=document.getElementById("mainContent"),r=o=>{let s=o.getBoundingClientRect();return{left:s.left+window.scrollX,top:s.top+window.scrollY}};if(t&&n){let o=()=>{if(window.innerWidth>=768)if(r(n).top+Wn(n)<window.innerHeight){let l=window.innerHeight-Wn(document.querySelector("header"))-Wn(document.querySelector("footer"));t.style.height=`${l}px`}else t.style.height="";else t.style.height=""};o(),new ResizeObserver(()=>o()).observe(document.body),window.onresize=o}})(),(()=>{let t=document.querySelector("h2.title-child");t&&(document.querySelectorAll("h2")[0].classList.contains("title-child")||t.classList.remove("d-none"))})();function mi(){return mi=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},mi.apply(null,arguments)}function ge(t){return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ge(t)}var Gn,Se,mo,cn,vo,yo,vi,bo,yi,bi,_i,_o,Kn={},Ao=[],Hu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,$r=Array.isArray;function zt(t,n){for(var r in n)t[r]=n[r];return t}function Ai(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Nt(t,n,r){var o,s,l,h={};for(l in n)l=="key"?o=n[l]:l=="ref"?s=n[l]:h[l]=n[l];if(arguments.length>2&&(h.children=arguments.length>3?Gn.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)h[l]===void 0&&(h[l]=t.defaultProps[l]);return Qn(t,h,o,s,null)}function Qn(t,n,r,o,s){var l={type:t,props:n,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s==null?++mo:s,__i:-1,__u:0};return s==null&&Se.vnode!=null&&Se.vnode(l),l}function Wt(t){return t.children}function Lt(t,n){this.props=t,this.context=n}function Sn(t,n){if(n==null)return t.__?Sn(t.__,t.__i+1):null;for(var r;n<t.__k.length;n++)if((r=t.__k[n])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Sn(t):null}function wo(t){var n,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if((r=t.__k[n])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return wo(t)}}function wi(t){(!t.__d&&(t.__d=!0)&&cn.push(t)&&!Br.__r++||vo!==Se.debounceRendering)&&((vo=Se.debounceRendering)||yo)(Br)}function Br(){var t,n,r,o,s,l,h,d;for(cn.sort(vi);t=cn.shift();)t.__d&&(n=cn.length,o=void 0,l=(s=(r=t).__v).__e,h=[],d=[],r.__P&&((o=zt({},s)).__v=s.__v+1,Se.vnode&&Se.vnode(o),Si(r.__P,o,s,r.__n,r.__P.namespaceURI,32&s.__u?[l]:null,h,l==null?Sn(s):l,!!(32&s.__u),d),o.__v=s.__v,o.__.__k[o.__i]=o,ko(h,o,d),o.__e!=l&&wo(o)),cn.length>n&&cn.sort(vi));Br.__r=0}function So(t,n,r,o,s,l,h,d,m,y,S){var v,_,O,D,k,A,P=o&&o.__k||Ao,j=n.length;for(m=(function(w,E,L,M,B){var u,W,F,X,oe,Ae=L.length,re=Ae,xe=0;for(w.__k=new Array(B),u=0;u<B;u++)(W=E[u])!=null&&typeof W!="boolean"&&typeof W!="function"?(X=u+xe,(W=w.__k[u]=typeof W=="string"||typeof W=="number"||typeof W=="bigint"||W.constructor==String?Qn(null,W,null,null,null):$r(W)?Qn(Wt,{children:W},null,null,null):W.constructor===void 0&&W.__b>0?Qn(W.type,W.props,W.key,W.ref?W.ref:null,W.__v):W).__=w,W.__b=w.__b+1,F=null,(oe=W.__i=Fu(W,L,X,re))!==-1&&(re--,(F=L[oe])&&(F.__u|=2)),F==null||F.__v===null?(oe==-1&&xe--,typeof W.type!="function"&&(W.__u|=4)):oe!=X&&(oe==X-1?xe--:oe==X+1?xe++:(oe>X?xe--:xe++,W.__u|=4))):w.__k[u]=null;if(re)for(u=0;u<Ae;u++)(F=L[u])!=null&&!(2&F.__u)&&(F.__e==M&&(M=Sn(F)),Co(F,F));return M})(r,n,P,m,j),v=0;v<j;v++)(O=r.__k[v])!=null&&(_=O.__i===-1?Kn:P[O.__i]||Kn,O.__i=v,A=Si(t,O,_,s,l,h,d,m,y,S),D=O.__e,O.ref&&_.ref!=O.ref&&(_.ref&&Ei(_.ref,null,O),S.push(O.ref,O.__c||D,O)),k==null&&D!=null&&(k=D),4&O.__u||_.__k===O.__k?m=Eo(O,m,t):typeof O.type=="function"&&A!==void 0?m=A:D&&(m=D.nextSibling),O.__u&=-7);return r.__e=k,m}function Eo(t,n,r){var o,s;if(typeof t.type=="function"){for(o=t.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=t,n=Eo(o[s],n,r));return n}t.__e!=n&&(n&&t.type&&!r.contains(n)&&(n=Sn(t)),r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function Vt(t,n){return n=n||[],t==null||typeof t=="boolean"||($r(t)?t.some((function(r){Vt(r,n)})):n.push(t)),n}function Fu(t,n,r,o){var s,l,h=t.key,d=t.type,m=n[r];if(m===null||m&&h==m.key&&d===m.type&&!(2&m.__u))return r;if(o>(m==null||2&m.__u?0:1))for(s=r-1,l=r+1;s>=0||l<n.length;){if(s>=0){if((m=n[s])&&!(2&m.__u)&&h==m.key&&d===m.type)return s;s--}if(l<n.length){if((m=n[l])&&!(2&m.__u)&&h==m.key&&d===m.type)return l;l++}}return-1}function xo(t,n,r){n[0]=="-"?t.setProperty(n,r==null?"":r):t[n]=r==null?"":typeof r!="number"||Hu.test(n)?r:r+"px"}function Ur(t,n,r,o,s){var l;e:if(n=="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof o=="string"&&(t.style.cssText=o=""),o)for(n in o)r&&n in r||xo(t.style,n,"");if(r)for(n in r)o&&r[n]===o[n]||xo(t.style,n,r[n])}else if(n[0]=="o"&&n[1]=="n")l=n!=(n=n.replace(bo,"$1")),n=n.toLowerCase()in t||n=="onFocusOut"||n=="onFocusIn"?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+l]=r,r?o?r.u=o.u:(r.u=yi,t.addEventListener(n,l?_i:bi,l)):t.removeEventListener(n,l?_i:bi,l);else{if(s=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in t)try{t[n]=r==null?"":r;break e}catch(h){}typeof r=="function"||(r==null||r===!1&&n[4]!="-"?t.removeAttribute(n):t.setAttribute(n,n=="popover"&&r==1?"":r))}}function Oo(t){return function(n){if(this.l){var r=this.l[n.type+t];if(n.t==null)n.t=yi++;else if(n.t<r.u)return;return r(Se.event?Se.event(n):n)}}}function Si(t,n,r,o,s,l,h,d,m,y){var S,v,_,O,D,k,A,P,j,w,E,L,M,B,u,W,F,X=n.type;if(n.constructor!==void 0)return null;128&r.__u&&(m=!!(32&r.__u),l=[d=n.__e=r.__e]),(S=Se.__b)&&S(n);e:if(typeof X=="function")try{if(P=n.props,j="prototype"in X&&X.prototype.render,w=(S=X.contextType)&&o[S.__c],E=S?w?w.props.value:S.__:o,r.__c?A=(v=n.__c=r.__c).__=v.__E:(j?n.__c=v=new X(P,E):(n.__c=v=new Lt(P,E),v.constructor=X,v.render=Bu),w&&w.sub(v),v.props=P,v.state||(v.state={}),v.context=E,v.__n=o,_=v.__d=!0,v.__h=[],v._sb=[]),j&&v.__s==null&&(v.__s=v.state),j&&X.getDerivedStateFromProps!=null&&(v.__s==v.state&&(v.__s=zt({},v.__s)),zt(v.__s,X.getDerivedStateFromProps(P,v.__s))),O=v.props,D=v.state,v.__v=n,_)j&&X.getDerivedStateFromProps==null&&v.componentWillMount!=null&&v.componentWillMount(),j&&v.componentDidMount!=null&&v.__h.push(v.componentDidMount);else{if(j&&X.getDerivedStateFromProps==null&&P!==O&&v.componentWillReceiveProps!=null&&v.componentWillReceiveProps(P,E),!v.__e&&(v.shouldComponentUpdate!=null&&v.shouldComponentUpdate(P,v.__s,E)===!1||n.__v==r.__v)){for(n.__v!=r.__v&&(v.props=P,v.state=v.__s,v.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some((function(oe){oe&&(oe.__=n)})),L=0;L<v._sb.length;L++)v.__h.push(v._sb[L]);v._sb=[],v.__h.length&&h.push(v);break e}v.componentWillUpdate!=null&&v.componentWillUpdate(P,v.__s,E),j&&v.componentDidUpdate!=null&&v.__h.push((function(){v.componentDidUpdate(O,D,k)}))}if(v.context=E,v.props=P,v.__P=t,v.__e=!1,M=Se.__r,B=0,j){for(v.state=v.__s,v.__d=!1,M&&M(n),S=v.render(v.props,v.state,v.context),u=0;u<v._sb.length;u++)v.__h.push(v._sb[u]);v._sb=[]}else do v.__d=!1,M&&M(n),S=v.render(v.props,v.state,v.context),v.state=v.__s;while(v.__d&&++B<25);v.state=v.__s,v.getChildContext!=null&&(o=zt(zt({},o),v.getChildContext())),j&&!_&&v.getSnapshotBeforeUpdate!=null&&(k=v.getSnapshotBeforeUpdate(O,D)),d=So(t,$r(W=S!=null&&S.type===Wt&&S.key==null?S.props.children:S)?W:[W],n,r,o,s,l,h,d,m,y),v.base=n.__e,n.__u&=-161,v.__h.length&&h.push(v),A&&(v.__E=v.__=null)}catch(oe){if(n.__v=null,m||l!=null)if(oe.then){for(n.__u|=m?160:128;d&&d.nodeType==8&&d.nextSibling;)d=d.nextSibling;l[l.indexOf(d)]=null,n.__e=d}else for(F=l.length;F--;)Ai(l[F]);else n.__e=r.__e,n.__k=r.__k;Se.__e(oe,n,r)}else l==null&&n.__v==r.__v?(n.__k=r.__k,n.__e=r.__e):d=n.__e=$u(r.__e,n,r,o,s,l,h,m,y);return(S=Se.diffed)&&S(n),128&n.__u?void 0:d}function ko(t,n,r){for(var o=0;o<r.length;o++)Ei(r[o],r[++o],r[++o]);Se.__c&&Se.__c(n,t),t.some((function(s){try{t=s.__h,s.__h=[],t.some((function(l){l.call(s)}))}catch(l){Se.__e(l,s.__v)}}))}function $u(t,n,r,o,s,l,h,d,m){var y,S,v,_,O,D,k,A=r.props,P=n.props,j=n.type;if(j=="svg"?s="http://www.w3.org/2000/svg":j=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),l!=null){for(y=0;y<l.length;y++)if((O=l[y])&&"setAttribute"in O==!!j&&(j?O.localName==j:O.nodeType==3)){t=O,l[y]=null;break}}if(t==null){if(j==null)return document.createTextNode(P);t=document.createElementNS(s,j,P.is&&P),d&&(Se.__m&&Se.__m(n,l),d=!1),l=null}if(j===null)A===P||d&&t.data===P||(t.data=P);else{if(l=l&&Gn.call(t.childNodes),A=r.props||Kn,!d&&l!=null)for(A={},y=0;y<t.attributes.length;y++)A[(O=t.attributes[y]).name]=O.value;for(y in A)if(O=A[y],y!="children"){if(y=="dangerouslySetInnerHTML")v=O;else if(!(y in P)){if(y=="value"&&"defaultValue"in P||y=="checked"&&"defaultChecked"in P)continue;Ur(t,y,null,O,s)}}for(y in P)O=P[y],y=="children"?_=O:y=="dangerouslySetInnerHTML"?S=O:y=="value"?D=O:y=="checked"?k=O:d&&typeof O!="function"||A[y]===O||Ur(t,y,O,A[y],s);if(S)d||v&&(S.__html===v.__html||S.__html===t.innerHTML)||(t.innerHTML=S.__html),n.__k=[];else if(v&&(t.innerHTML=""),So(t,$r(_)?_:[_],n,r,o,j=="foreignObject"?"http://www.w3.org/1999/xhtml":s,l,h,l?l[0]:r.__k&&Sn(r,0),d,m),l!=null)for(y=l.length;y--;)Ai(l[y]);d||(y="value",j=="progress"&&D==null?t.removeAttribute("value"):D!==void 0&&(D!==t[y]||j=="progress"&&!D||j=="option"&&D!==A[y])&&Ur(t,y,D,A[y],s),y="checked",k!==void 0&&k!==t[y]&&Ur(t,y,k,A[y],s))}return t}function Ei(t,n,r){try{if(typeof t=="function"){var o=typeof t.__u=="function";o&&t.__u(),o&&n==null||(t.__u=t(n))}else t.current=n}catch(s){Se.__e(s,r)}}function Co(t,n,r){var o,s;if(Se.unmount&&Se.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||Ei(o,null,n)),(o=t.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(l){Se.__e(l,n)}o.base=o.__P=null}if(o=t.__k)for(s=0;s<o.length;s++)o[s]&&Co(o[s],n,r||typeof t.type!="function");r||Ai(t.__e),t.__c=t.__=t.__e=void 0}function Bu(t,n,r){return this.constructor(t,r)}function Yn(t,n,r){var o,s,l,h;n==document&&(n=document.documentElement),Se.__&&Se.__(t,n),s=(o=typeof r=="function")?null:r&&r.__k||n.__k,l=[],h=[],Si(n,t=(!o&&r||n).__k=Nt(Wt,null,[t]),s||Kn,Kn,n.namespaceURI,!o&&r?[r]:s?null:n.firstChild?Gn.call(n.childNodes):null,l,!o&&r?r:s?s.__e:n.firstChild,o,h),ko(l,t,h)}function To(t,n){Yn(t,n,To)}function Uu(t,n,r){var o,s,l,h,d=zt({},t.props);for(l in t.type&&t.type.defaultProps&&(h=t.type.defaultProps),n)l=="key"?o=n[l]:l=="ref"?s=n[l]:d[l]=n[l]===void 0&&h!==void 0?h[l]:n[l];return arguments.length>2&&(d.children=arguments.length>3?Gn.call(arguments,2):r),Qn(t.type,d,o||t.key,s||t.ref,null)}Gn=Ao.slice,Se={__e:function(t,n,r,o){for(var s,l,h;n=n.__;)if((s=n.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(t)),h=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,o||{}),h=s.__d),h)return s.__E=s}catch(d){t=d}throw t}},mo=0,Lt.prototype.setState=function(t,n){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=zt({},this.state),typeof t=="function"&&(t=t(zt({},r),this.props)),t&&zt(r,t),t!=null&&this.__v&&(n&&this._sb.push(n),wi(this))},Lt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),wi(this))},Lt.prototype.render=Wt,cn=[],yo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,vi=function(t,n){return t.__v.__b-n.__v.__b},Br.__r=0,bo=/(PointerCapture)$|Capture$/i,yi=0,bi=Oo(!1),_i=Oo(!0),_o=0;var Jt,Fe,xi,jo,En=0,Io=[],We=Se,Po=We.__b,Do=We.__r,No=We.diffed,Lo=We.__c,Ro=We.unmount,qo=We.__;function xn(t,n){We.__h&&We.__h(Fe,t,En||n),En=0;var r=Fe.__H||(Fe.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Xn(t){return En=1,Oi(Wo,t)}function Oi(t,n,r){var o=xn(Jt++,2);if(o.t=t,!o.__c&&(o.__=[r?r(n):Wo(void 0,n),function(d){var m=o.__N?o.__N[0]:o.__[0],y=o.t(m,d);m!==y&&(o.__N=[y,o.__[1]],o.__c.setState({}))}],o.__c=Fe,!Fe.u)){var s=function(d,m,y){if(!o.__c.__H)return!0;var S=o.__c.__H.__.filter((function(_){return!!_.__c}));if(S.every((function(_){return!_.__N})))return!l||l.call(this,d,m,y);var v=o.__c.props!==d;return S.forEach((function(_){if(_.__N){var O=_.__[0];_.__=_.__N,_.__N=void 0,O!==_.__[0]&&(v=!0)}})),l&&l.call(this,d,m,y)||v};Fe.u=!0;var l=Fe.shouldComponentUpdate,h=Fe.componentWillUpdate;Fe.componentWillUpdate=function(d,m,y){if(this.__e){var S=l;l=void 0,s(d,m,y),l=S}h&&h.call(this,d,m,y)},Fe.shouldComponentUpdate=s}return o.__N||o.__}function Jn(t,n){var r=xn(Jt++,3);!We.__s&&Ci(r.__H,n)&&(r.__=t,r.i=n,Fe.__H.__h.push(r))}function Zn(t,n){var r=xn(Jt++,4);!We.__s&&Ci(r.__H,n)&&(r.__=t,r.i=n,Fe.__h.push(r))}function Mo(t){return En=5,zr((function(){return{current:t}}),[])}function Ho(t,n,r){En=6,Zn((function(){return typeof t=="function"?(t(n()),function(){return t(null)}):t?(t.current=n(),function(){return t.current=null}):void 0}),r==null?r:r.concat(t))}function zr(t,n){var r=xn(Jt++,7);return Ci(r.__H,n)&&(r.__=t(),r.__H=n,r.__h=t),r.__}function Fo(t,n){return En=8,zr((function(){return t}),n)}function $o(t){var n=Fe.context[t.__c],r=xn(Jt++,9);return r.c=t,n?(r.__==null&&(r.__=!0,n.sub(Fe)),n.props.value):t.__}function Bo(t,n){We.useDebugValue&&We.useDebugValue(n?n(t):t)}function Uo(){var t=xn(Jt++,11);if(!t.__){for(var n=Fe.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;var r=n.__m||(n.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function zu(){for(var t;t=Io.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Wr),t.__H.__h.forEach(ki),t.__H.__h=[]}catch(n){t.__H.__h=[],We.__e(n,t.__v)}}We.__b=function(t){Fe=null,Po&&Po(t)},We.__=function(t,n){t&&n.__k&&n.__k.__m&&(t.__m=n.__k.__m),qo&&qo(t,n)},We.__r=function(t){Do&&Do(t),Jt=0;var n=(Fe=t.__c).__H;n&&(xi===Fe?(n.__h=[],Fe.__h=[],n.__.forEach((function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0}))):(n.__h.forEach(Wr),n.__h.forEach(ki),n.__h=[],Jt=0)),xi=Fe},We.diffed=function(t){No&&No(t);var n=t.__c;n&&n.__H&&(n.__H.__h.length&&(Io.push(n)!==1&&jo===We.requestAnimationFrame||((jo=We.requestAnimationFrame)||Wu)(zu)),n.__H.__.forEach((function(r){r.i&&(r.__H=r.i),r.i=void 0}))),xi=Fe=null},We.__c=function(t,n){n.some((function(r){try{r.__h.forEach(Wr),r.__h=r.__h.filter((function(o){return!o.__||ki(o)}))}catch(o){n.some((function(s){s.__h&&(s.__h=[])})),n=[],We.__e(o,r.__v)}})),Lo&&Lo(t,n)},We.unmount=function(t){Ro&&Ro(t);var n,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(o){try{Wr(o)}catch(s){n=s}})),r.__H=void 0,n&&We.__e(n,r.__v))};var zo=typeof requestAnimationFrame=="function";function Wu(t){var n,r=function(){clearTimeout(o),zo&&cancelAnimationFrame(n),setTimeout(t)},o=setTimeout(r,100);zo&&(n=requestAnimationFrame(r))}function Wr(t){var n=Fe,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Fe=n}function ki(t){var n=Fe;t.__c=t.__(),Fe=n}function Ci(t,n){return!t||t.length!==n.length||n.some((function(r,o){return r!==t[o]}))}function Wo(t,n){return typeof n=="function"?n(t):n}function Vo(t,n){for(var r in n)t[r]=n[r];return t}function Ti(t,n){for(var r in t)if(r!=="__source"&&!(r in n))return!0;for(var o in n)if(o!=="__source"&&t[o]!==n[o])return!0;return!1}function Go(t,n){var r=n(),o=Xn({t:{__:r,u:n}}),s=o[0].t,l=o[1];return Zn((function(){s.__=r,s.u=n,ji(s)&&l({t:s})}),[t,r,n]),Jn((function(){return ji(s)&&l({t:s}),t((function(){ji(s)&&l({t:s})}))}),[t]),r}function ji(t){var n,r,o=t.u,s=t.__;try{var l=o();return!((n=s)===(r=l)&&(n!==0||1/n==1/r)||n!=n&&r!=r)}catch(h){return!0}}function Ko(t){t()}function Qo(t){return t}function Yo(){return[!1,Ko]}var Xo=Zn;function Ii(t,n){this.props=t,this.context=n}(Ii.prototype=new Lt).isPureReactComponent=!0,Ii.prototype.shouldComponentUpdate=function(t,n){return Ti(this.props,t)||Ti(this.state,n)};var Jo=Se.__b;Se.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Jo&&Jo(t)};var Vu=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Zo=function(t,n){return t==null?null:Vt(Vt(t).map(n))},Gu={map:Zo,forEach:Zo,count:function(t){return t?Vt(t).length:0},only:function(t){var n=Vt(t);if(n.length!==1)throw"Children.only";return n[0]},toArray:Vt},Ku=Se.__e;Se.__e=function(t,n,r,o){if(t.then){for(var s,l=n;l=l.__;)if((s=l.__c)&&s.__c)return n.__e==null&&(n.__e=r.__e,n.__k=r.__k),s.__c(t,n)}Ku(t,n,r,o)};var ea=Se.unmount;function ta(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(o){typeof o.__c=="function"&&o.__c()})),t.__c.__H=null),(t=Vo({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(o){return ta(o,n,r)}))),t}function na(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(o){return na(o,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function Vr(){this.__u=0,this.o=null,this.__b=null}function ra(t){var n=t.__.__c;return n&&n.__a&&n.__a(t)}function er(){this.i=null,this.l=null}Se.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&32&t.__u&&(t.type=null),ea&&ea(t)},(Vr.prototype=new Lt).__c=function(t,n){var r=n.__c,o=this;o.o==null&&(o.o=[]),o.o.push(r);var s=ra(o.__v),l=!1,h=function(){l||(l=!0,r.__R=null,s?s(d):d())};r.__R=h;var d=function(){if(!--o.__u){if(o.state.__a){var m=o.state.__a;o.__v.__k[0]=na(m,m.__c.__P,m.__c.__O)}var y;for(o.setState({__a:o.__b=null});y=o.o.pop();)y.forceUpdate()}};o.__u++||32&n.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(h,h)},Vr.prototype.componentWillUnmount=function(){this.o=[]},Vr.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=ta(this.__b,r,o.__O=o.__P)}this.__b=null}var s=n.__a&&Nt(Wt,null,t.fallback);return s&&(s.__u&=-33),[Nt(Wt,null,n.__a?null:t.children),s]};var ia=function(t,n,r){if(++r[1]===r[0]&&t.l.delete(n),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};function Qu(t){return this.getChildContext=function(){return t.context},t.children}function Yu(t){var n=this,r=t.h;n.componentWillUnmount=function(){Yn(null,n.v),n.v=null,n.h=null},n.h&&n.h!==r&&n.componentWillUnmount(),n.v||(n.h=r,n.v={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(o){this.childNodes.push(o),n.h.appendChild(o)},insertBefore:function(o,s){this.childNodes.push(o),n.h.insertBefore(o,s)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),n.h.removeChild(o)}}),Yn(Nt(Qu,{context:n.context},t.__v),n.v)}function oa(t,n){var r=Nt(Yu,{__v:t,h:n});return r.containerInfo=n,r}(er.prototype=new Lt).__a=function(t){var n=this,r=ra(n.__v),o=n.l.get(t);return o[0]++,function(s){var l=function(){n.props.revealOrder?(o.push(s),ia(n,t,o)):s()};r?r(l):l()}},er.prototype.render=function(t){this.i=null,this.l=new Map;var n=Vt(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&n.reverse();for(var r=n.length;r--;)this.l.set(n[r],this.i=[1,0,this.i]);return t.children},er.prototype.componentDidUpdate=er.prototype.componentDidMount=function(){var t=this;this.l.forEach((function(n,r){ia(t,r,n)}))};var aa=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Xu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ju=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zu=/[A-Z0-9]/g,es=typeof document!="undefined",ts=function(t){return(typeof Symbol!="undefined"&&ge(Symbol())=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function ua(t,n,r){return n.__k==null&&(n.textContent=""),Yn(t,n),typeof r=="function"&&r(),t?t.__c:null}Lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(Lt.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}));var sa=Se.event;function ns(){}function rs(){return this.cancelBubble}function is(){return this.defaultPrevented}Se.event=function(t){return sa&&(t=sa(t)),t.persist=ns,t.isPropagationStopped=rs,t.isDefaultPrevented=is,t.nativeEvent=t};var Pi,os={enumerable:!1,configurable:!0,get:function(){return this.class}},ca=Se.vnode;Se.vnode=function(t){typeof t.type=="string"&&(function(n){var r=n.props,o=n.type,s={},l=o.indexOf("-")===-1;for(var h in r){var d=r[h];if(!(h==="value"&&"defaultValue"in r&&d==null||es&&h==="children"&&o==="noscript"||h==="class"||h==="className")){var m=h.toLowerCase();h==="defaultValue"&&"value"in r&&r.value==null?h="value":h==="download"&&d===!0?d="":m==="translate"&&d==="no"?d=!1:m[0]==="o"&&m[1]==="n"?m==="ondoubleclick"?h="ondblclick":m!=="onchange"||o!=="input"&&o!=="textarea"||ts(r.type)?m==="onfocus"?h="onfocusin":m==="onblur"?h="onfocusout":Ju.test(h)&&(h=m):m=h="oninput":l&&Xu.test(h)?h=h.replace(Zu,"-$&").toLowerCase():d===null&&(d=void 0),m==="oninput"&&s[h=m]&&(h="oninputCapture"),s[h]=d}}o=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=Vt(r.children).forEach((function(y){y.props.selected=s.value.indexOf(y.props.value)!=-1}))),o=="select"&&s.defaultValue!=null&&(s.value=Vt(r.children).forEach((function(y){y.props.selected=s.multiple?s.defaultValue.indexOf(y.props.value)!=-1:s.defaultValue==y.props.value}))),r.class&&!r.className?(s.class=r.class,Object.defineProperty(s,"className",os)):(r.className&&!r.class||r.class&&r.className)&&(s.class=s.className=r.className),n.props=s})(t),t.$$typeof=aa,ca&&ca(t)};var la=Se.__r;Se.__r=function(t){la&&la(t),Pi=t.__c};var fa=Se.diffed;Se.diffed=function(t){fa&&fa(t);var n=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in n&&n.value!==r.value&&(r.value=n.value==null?"":n.value),Pi=null};var as={ReactCurrentDispatcher:{current:{readContext:function(t){return Pi.__n[t.__c].props.value},useCallback:Fo,useContext:$o,useDebugValue:Bo,useDeferredValue:Qo,useEffect:Jn,useId:Uo,useImperativeHandle:Ho,useInsertionEffect:Xo,useLayoutEffect:Zn,useMemo:zr,useReducer:Oi,useRef:Mo,useState:Xn,useSyncExternalStore:Go,useTransition:Yo}}};function Gr(t){return!!t&&t.$$typeof===aa}var T={useState:Xn,useId:Uo,useReducer:Oi,useEffect:Jn,useLayoutEffect:Zn,useInsertionEffect:Xo,useTransition:Yo,useDeferredValue:Qo,useSyncExternalStore:Go,startTransition:Ko,useRef:Mo,useImperativeHandle:Ho,useMemo:zr,useCallback:Fo,useContext:$o,useDebugValue:Bo,version:"18.3.1",Children:Gu,render:ua,hydrate:function(t,n,r){return To(t,n),typeof r=="function"&&r(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(Yn(null,t),!0)},createPortal:oa,createElement:Nt,createContext:function(t,n){var r={__c:n="__cC"+_o++,__:t,Consumer:function(o,s){return o.children(s)},Provider:function(o){var s,l;return this.getChildContext||(s=new Set,(l={})[n]=this,this.getChildContext=function(){return l},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(h){this.props.value!==h.value&&s.forEach((function(d){d.__e=!0,wi(d)}))},this.sub=function(h){s.add(h);var d=h.componentWillUnmount;h.componentWillUnmount=function(){s&&s.delete(h),d&&d.call(h)}}),o.children}};return r.Provider.__=r.Consumer.contextType=r},createFactory:function(t){return Nt.bind(null,t)},cloneElement:function(t){return Gr(t)?Uu.apply(null,arguments):t},createRef:function(){return{current:null}},Fragment:Wt,isValidElement:Gr,isElement:Gr,isFragment:function(t){return Gr(t)&&t.type===Wt},isMemo:function(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")},findDOMNode:function(t){return t&&(t.base||t.nodeType===1&&t)||null},Component:Lt,PureComponent:Ii,memo:function(t,n){function r(s){var l=this.props.ref,h=l==s.ref;return!h&&l&&(l.call?l(null):l.current=null),n?!n(this.props,s)||!h:Ti(this.props,s)}function o(s){return this.shouldComponentUpdate=r,Nt(t,s)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o},forwardRef:function(t){function n(r){var o=Vo({},r);return delete o.ref,t(o,r.ref||null)}return n.$$typeof=Vu,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n},flushSync:function(t,n){return t(n)},unstable_batchedUpdates:function(t,n){return t(n)},StrictMode:Wt,Suspense:Vr,SuspenseList:er,lazy:function(t){var n,r,o;function s(l){if(n||(n=t()).then((function(h){r=h.default||h}),(function(h){o=h})),o)throw o;if(!r)throw n;return Nt(r,l)}return s.displayName="Lazy",s.__f=!0,s},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:as};function Di(t,n){(n==null||n>t.length)&&(n=t.length);for(var r=0,o=Array(n);r<n;r++)o[r]=t[r];return o}function pa(t,n,r,o,s,l,h){try{var d=t[l](h),m=d.value}catch(y){return void r(y)}d.done?n(m):Promise.resolve(m).then(o,s)}function Ni(t){return function(){var n=this,r=arguments;return new Promise((function(o,s){var l=t.apply(n,r);function h(m){pa(l,o,s,h,d,"next",m)}function d(m){pa(l,o,s,h,d,"throw",m)}h(void 0)}))}}function On(t,n,r){return n=tr(n),(function(o,s){if(s&&(ge(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l})(o)})(t,Li()?Reflect.construct(n,r||[],tr(t).constructor):n.apply(t,r))}function kn(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Cn(t,n,r){return Object.defineProperty(t,"prototype",{writable:!1}),t}function Tn(t,n,r){return(n=(function(o){var s=(function(l){if(ge(l)!="object"||!l)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(ge(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return ge(s)=="symbol"?s:s+""})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function ot(){return ot=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ot.apply(null,arguments)}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tr(t)}function jn(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&nr(t,n)}function Li(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(Li=function(){return!!t})()}function da(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function Ee(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?da(Object(r),!0).forEach((function(o){Tn(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):da(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function Rt(t,n){if(t==null)return{};var r,o,s=(function(h,d){if(h==null)return{};var m={};for(var y in h)if({}.hasOwnProperty.call(h,y)){if(d.includes(y))continue;m[y]=h[y]}return m})(t,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)r=l[o],n.includes(r)||{}.propertyIsEnumerable.call(t,r)&&(s[r]=t[r])}return s}function ln(){ln=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,s=Object.defineProperty||function(Q,K,G){Q[K]=G.value},l=typeof Symbol=="function"?Symbol:{},h=l.iterator||"@@iterator",d=l.asyncIterator||"@@asyncIterator",m=l.toStringTag||"@@toStringTag";function y(Q,K,G){return Object.defineProperty(Q,K,{value:G,enumerable:!0,configurable:!0,writable:!0}),Q[K]}try{y({},"")}catch(Q){y=function(K,G,ie){return K[G]=ie}}function S(Q,K,G,ie){var Z=K&&K.prototype instanceof P?K:P,pe=Object.create(Z.prototype),ne=new re(ie||[]);return s(pe,"_invoke",{value:F(Q,G,ne)}),pe}function v(Q,K,G){try{return{type:"normal",arg:Q.call(K,G)}}catch(ie){return{type:"throw",arg:ie}}}n.wrap=S;var _="suspendedStart",O="suspendedYield",D="executing",k="completed",A={};function P(){}function j(){}function w(){}var E={};y(E,h,(function(){return this}));var L=Object.getPrototypeOf,M=L&&L(L(xe([])));M&&M!==r&&o.call(M,h)&&(E=M);var B=w.prototype=P.prototype=Object.create(E);function u(Q){["next","throw","return"].forEach((function(K){y(Q,K,(function(G){return this._invoke(K,G)}))}))}function W(Q,K){function G(Z,pe,ne,V){var Y=v(Q[Z],Q,pe);if(Y.type!=="throw"){var ee=Y.arg,ce=ee.value;return ce&&ge(ce)=="object"&&o.call(ce,"__await")?K.resolve(ce.__await).then((function(le){G("next",le,ne,V)}),(function(le){G("throw",le,ne,V)})):K.resolve(ce).then((function(le){ee.value=le,ne(ee)}),(function(le){return G("throw",le,ne,V)}))}V(Y.arg)}var ie;s(this,"_invoke",{value:function(Z,pe){function ne(){return new K((function(V,Y){G(Z,pe,V,Y)}))}return ie=ie?ie.then(ne,ne):ne()}})}function F(Q,K,G){var ie=_;return function(Z,pe){if(ie===D)throw Error("Generator is already running");if(ie===k){if(Z==="throw")throw pe;return{value:t,done:!0}}for(G.method=Z,G.arg=pe;;){var ne=G.delegate;if(ne){var V=X(ne,G);if(V){if(V===A)continue;return V}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(ie===_)throw ie=k,G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);ie=D;var Y=v(Q,K,G);if(Y.type==="normal"){if(ie=G.done?k:O,Y.arg===A)continue;return{value:Y.arg,done:G.done}}Y.type==="throw"&&(ie=k,G.method="throw",G.arg=Y.arg)}}}function X(Q,K){var G=K.method,ie=Q.iterator[G];if(ie===t)return K.delegate=null,G==="throw"&&Q.iterator.return&&(K.method="return",K.arg=t,X(Q,K),K.method==="throw")||G!=="return"&&(K.method="throw",K.arg=new TypeError("The iterator does not provide a '"+G+"' method")),A;var Z=v(ie,Q.iterator,K.arg);if(Z.type==="throw")return K.method="throw",K.arg=Z.arg,K.delegate=null,A;var pe=Z.arg;return pe?pe.done?(K[Q.resultName]=pe.value,K.next=Q.nextLoc,K.method!=="return"&&(K.method="next",K.arg=t),K.delegate=null,A):pe:(K.method="throw",K.arg=new TypeError("iterator result is not an object"),K.delegate=null,A)}function oe(Q){var K={tryLoc:Q[0]};1 in Q&&(K.catchLoc=Q[1]),2 in Q&&(K.finallyLoc=Q[2],K.afterLoc=Q[3]),this.tryEntries.push(K)}function Ae(Q){var K=Q.completion||{};K.type="normal",delete K.arg,Q.completion=K}function re(Q){this.tryEntries=[{tryLoc:"root"}],Q.forEach(oe,this),this.reset(!0)}function xe(Q){if(Q||Q===""){var K=Q[h];if(K)return K.call(Q);if(typeof Q.next=="function")return Q;if(!isNaN(Q.length)){var G=-1,ie=function Z(){for(;++G<Q.length;)if(o.call(Q,G))return Z.value=Q[G],Z.done=!1,Z;return Z.value=t,Z.done=!0,Z};return ie.next=ie}}throw new TypeError(ge(Q)+" is not iterable")}return j.prototype=w,s(B,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:j,configurable:!0}),j.displayName=y(w,m,"GeneratorFunction"),n.isGeneratorFunction=function(Q){var K=typeof Q=="function"&&Q.constructor;return!!K&&(K===j||(K.displayName||K.name)==="GeneratorFunction")},n.mark=function(Q){return Object.setPrototypeOf?Object.setPrototypeOf(Q,w):(Q.__proto__=w,y(Q,m,"GeneratorFunction")),Q.prototype=Object.create(B),Q},n.awrap=function(Q){return{__await:Q}},u(W.prototype),y(W.prototype,d,(function(){return this})),n.AsyncIterator=W,n.async=function(Q,K,G,ie,Z){Z===void 0&&(Z=Promise);var pe=new W(S(Q,K,G,ie),Z);return n.isGeneratorFunction(K)?pe:pe.next().then((function(ne){return ne.done?ne.value:pe.next()}))},u(B),y(B,m,"Generator"),y(B,h,(function(){return this})),y(B,"toString",(function(){return"[object Generator]"})),n.keys=function(Q){var K=Object(Q),G=[];for(var ie in K)G.push(ie);return G.reverse(),function Z(){for(;G.length;){var pe=G.pop();if(pe in K)return Z.value=pe,Z.done=!1,Z}return Z.done=!0,Z}},n.values=xe,re.prototype={constructor:re,reset:function(Q){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(Ae),!Q)for(var K in this)K.charAt(0)==="t"&&o.call(this,K)&&!isNaN(+K.slice(1))&&(this[K]=t)},stop:function(){this.done=!0;var Q=this.tryEntries[0].completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(Q){if(this.done)throw Q;var K=this;function G(Y,ee){return pe.type="throw",pe.arg=Q,K.next=Y,ee&&(K.method="next",K.arg=t),!!ee}for(var ie=this.tryEntries.length-1;ie>=0;--ie){var Z=this.tryEntries[ie],pe=Z.completion;if(Z.tryLoc==="root")return G("end");if(Z.tryLoc<=this.prev){var ne=o.call(Z,"catchLoc"),V=o.call(Z,"finallyLoc");if(ne&&V){if(this.prev<Z.catchLoc)return G(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return G(Z.finallyLoc)}else if(ne){if(this.prev<Z.catchLoc)return G(Z.catchLoc,!0)}else{if(!V)throw Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return G(Z.finallyLoc)}}}},abrupt:function(Q,K){for(var G=this.tryEntries.length-1;G>=0;--G){var ie=this.tryEntries[G];if(ie.tryLoc<=this.prev&&o.call(ie,"finallyLoc")&&this.prev<ie.finallyLoc){var Z=ie;break}}Z&&(Q==="break"||Q==="continue")&&Z.tryLoc<=K&&K<=Z.finallyLoc&&(Z=null);var pe=Z?Z.completion:{};return pe.type=Q,pe.arg=K,Z?(this.method="next",this.next=Z.finallyLoc,A):this.complete(pe)},complete:function(Q,K){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&K&&(this.next=K),A},finish:function(Q){for(var K=this.tryEntries.length-1;K>=0;--K){var G=this.tryEntries[K];if(G.finallyLoc===Q)return this.complete(G.completion,G.afterLoc),Ae(G),A}},catch:function(Q){for(var K=this.tryEntries.length-1;K>=0;--K){var G=this.tryEntries[K];if(G.tryLoc===Q){var ie=G.completion;if(ie.type==="throw"){var Z=ie.arg;Ae(G)}return Z}}throw Error("illegal catch attempt")},delegateYield:function(Q,K,G){return this.delegate={iterator:xe(Q),resultName:K,nextLoc:G},this.method==="next"&&(this.arg=t),A}},n}function nr(t,n){return nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},nr(t,n)}function ht(t,n){return(function(r){if(Array.isArray(r))return r})(t)||(function(r,o){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var l,h,d,m,y=[],S=!0,v=!1;try{if(d=(s=s.call(r)).next,o===0){if(Object(s)!==s)return;S=!1}else for(;!(S=(l=d.call(s)).done)&&(y.push(l.value),y.length!==o);S=!0);}catch(_){v=!0,h=_}finally{try{if(!S&&s.return!=null&&(m=s.return(),Object(m)!==m))return}finally{if(v)throw h}}return y}})(t,n)||ha(t,n)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function
|
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Hi(t,n){(n==null||n>t.length)&&(n=t.length);for(var r=0,o=new Array(n);r<n;r++)o[r]=t[r];return o}function wa(t,n){if(t==null)return{};var r,o,s=(function(h,d){if(h==null)return{};var m,y,S={},v=Object.keys(h);for(y=0;y<v.length;y++)m=v[y],d.indexOf(m)>=0||(S[m]=h[m]);return S})(t,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)r=l[o],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(s[r]=t[r])}return s}function Sa(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function In(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Sa(Object(r),!0).forEach((function(o){hs(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sa(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function hs(t,n,r){return(n=(function(o){var s=(function(l){if(or(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(or(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return or(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function Yr(t){return t.map((function(n){var r=n.items,o=wa(n,ps);return In(In({},o),{},{objectIDs:(r==null?void 0:r.map((function(s){return s.objectID})))||o.objectIDs})}))}function gs(t){var n=t.items.reduce((function(r,o){var s;return r[o.__autocomplete_indexName]=((s=r[o.__autocomplete_indexName])!==null&&s!==void 0?s:[]).concat(o),r}),{});return Object.keys(n).map((function(r){return{index:r,items:n[r],algoliaSource:["autocomplete"]}}))}function ar(t){return t.objectID&&t.__autocomplete_indexName&&t.__autocomplete_queryID}function ur(t){return ur=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},ur(t)}function Pn(t){return(function(n){if(Array.isArray(n))return Fi(n)})(t)||(function(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(t)||(function(n,r){if(n){if(typeof n=="string")return Fi(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Fi(n,r):void 0}})(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})((_.version||"").split(".").map(Number)),D=O[0],k=O[1],D>=3||D===2&&k>=4||D===1&&k>=10);function P(j,w,E){if(A&&E!==void 0){var L=E[0].__autocomplete_algoliaCredentials,M={"X-Algolia-Application-Id":L.appId,"X-Algolia-API-Key":L.apiKey};_.apply(void 0,[j].concat(Qr(w),[{headers:M}]))}else _.apply(void 0,[j].concat(Qr(w)))}return{init:function(j,w){_("init",{appId:j,apiKey:w})},setAuthenticatedUserToken:function(j){_("setAuthenticatedUserToken",j)},setUserToken:function(j){_("setUserToken",j)},clickedObjectIDsAfterSearch:function(){for(var j=arguments.length,w=new Array(j),E=0;E<j;E++)w[E]=arguments[E];w.length>0&&P("clickedObjectIDsAfterSearch",Yr(w),w[0].items)},clickedObjectIDs:function(){for(var j=arguments.length,w=new Array(j),E=0;E<j;E++)w[E]=arguments[E];w.length>0&&P("clickedObjectIDs",Yr(w),w[0].items)},clickedFilters:function(){for(var j=arguments.length,w=new Array(j),E=0;E<j;E++)w[E]=arguments[E];w.length>0&&_.apply(void 0,["clickedFilters"].concat(w))},convertedObjectIDsAfterSearch:function(){for(var j=arguments.length,w=new Array(j),E=0;E<j;E++)w[E]=arguments[E];w.length>0&&P("convertedObjectIDsAfterSearch",Yr(w),w[0].items)},convertedObjectIDs:function(){for(var j=arguments.length,w=new Array(j),E=0;E<j;E++)w[E]=arguments[E];w.length>0&&P("convertedObjectIDs",Yr(w),w[0].items)},convertedFilters:function(){for(var j=arguments.length,w=new Array(j),E=0;E<j;E++)w[E]=arguments[E];w.length>0&&_.apply(void 0,["convertedFilters"].concat(w))},viewedObjectIDs:function(){for(var j=arguments.length,w=new Array(j),E=0;E<j;E++)w[E]=arguments[E];w.length>0&&w.reduce((function(L,M){var B=M.items,u=wa(M,ds);return[].concat(Qr(L),Qr((function(W){for(var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,X=[],oe=0;oe<W.objectIDs.length;oe+=F)X.push(In(In({},W),{},{objectIDs:W.objectIDs.slice(oe,oe+F)}));return X})(In(In({},u),{},{objectIDs:(B==null?void 0:B.map((function(W){return W.objectID})))||u.objectIDs})).map((function(W){return{items:B,payload:W}}))))}),[]).forEach((function(L){var M=L.items;return P("viewedObjectIDs",[L.payload],M)}))},viewedFilters:function(){for(var j=arguments.length,w=new Array(j),E=0;E<j;E++)w[E]=arguments[E];w.length>0&&_.apply(void 0,["viewedFilters"].concat(w))}}})(m),S={current:[]},v=va((function(_){var O=_.state;if(O.isOpen){var D=O.collections.reduce((function(k,A){return[].concat(Pn(k),Pn(A.items))}),[]).filter(ar);ba(S.current.map((function(k){return k.objectID})),D.map((function(k){return k.objectID})))||(S.current=D,D.length>0&&ys({onItemsChange:s,items:D,insights:y,state:O}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(_){var O=_.setContext,D=_.onSelect,k=_.onActive;function A(P){O({algoliaInsightsPlugin:{__algoliaSearchParameters:Ct(Ct({},d?{clickAnalytics:!0}:{}),P?{userToken:bs(P)}:{}),insights:y}})}m("addAlgoliaAgent","insights-plugin"),A(),m("onUserTokenChange",(function(P){A(P)})),m("getUserToken",null,(function(P,j){A(j)})),D((function(P){var j=P.item,w=P.state,E=P.event,L=P.source;ar(j)&&l({state:w,event:E,insights:y,item:j,insightsEvents:[Ct({eventName:"Item Selected"},_a({item:j,items:L.getItems().filter(ar)}))]})})),k((function(P){var j=P.item,w=P.source,E=P.state,L=P.event;ar(j)&&h({state:E,event:L,insights:y,item:j,insightsEvents:[Ct({eventName:"Item Active"},_a({item:j,items:w.getItems().filter(ar)}))]})}))},onStateChange:function(_){var O=_.state;v({state:O})},__autocomplete_pluginOptions:t}}function ka(){var t,n=arguments.length>1?arguments[1]:void 0;return[].concat(Pn(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]),["autocomplete-internal"],Pn((t=n.algoliaInsightsPlugin)!==null&&t!==void 0&&t.__automaticInsights?["autocomplete-automatic"]:[]))}function bs(t){return typeof t=="number"?t.toString():t}function Xr(t,n){var r=n;return{then:function(o,s){return Xr(t.then(Jr(o,r,t),Jr(s,r,t)),r)},catch:function(o){return Xr(t.catch(Jr(o,r,t)),r)},finally:function(o){return o&&r.onCancelList.push(o),Xr(t.finally(Jr(o&&function(){return r.onCancelList=[],o()},r,t)),r)},cancel:function(){r.isCanceled=!0;var o=r.onCancelList;r.onCancelList=[],o.forEach((function(s){s()}))},isCanceled:function(){return r.isCanceled===!0}}}function Ca(t){return Xr(t,{isCanceled:!1,onCancelList:[]})}function Jr(t,n,r){return t?function(o){return n.isCanceled?o:t(o)}:r}function Ta(t,n,r,o){if(!r)return null;if(t<0&&(n===null||o!==null&&n===0))return r+t;var s=(n===null?-1:n)+t;return s<=-1||s>=r?o===null?null:0:s}function ja(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function Ia(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?ja(Object(r),!0).forEach((function(o){_s(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ja(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function _s(t,n,r){return(n=(function(o){var s=(function(l){if(sr(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(sr(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return sr(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function sr(t){return sr=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},sr(t)}function fn(t){var n=(function(s){var l=s.collections.map((function(h){return h.items.length})).reduce((function(h,d,m){var y=(h[m-1]||0)+d;return h.push(y),h}),[]).reduce((function(h,d){return d<=s.activeItemId?h+1:h}),0);return s.collections[l]})(t);if(!n)return null;var r=n.items[(function(s){for(var l=s.state,h=s.collection,d=!1,m=0,y=0;d===!1;){var S=l.collections[m];if(S===h){d=!0;break}y+=S.items.length,m++}return l.activeItemId-y})({state:t,collection:n})],o=n.source;return{item:r,itemInputValue:o.getItemInputValue({item:r,state:t}),itemUrl:o.getItemUrl({item:r,state:t}),source:o}}function St(t,n,r){return[t,r==null?void 0:r.sourceId,n].filter(Boolean).join("-").replace(/\s/g,"")}var As=/((gt|sm)-|galaxy nexus)|samsung[- ]|samsungbrowser/i;function Pa(t){return t.nativeEvent||t}function cr(t){return cr=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},cr(t)}function Da(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function ws(t,n,r){return(n=(function(o){var s=(function(l){if(cr(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(cr(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return cr(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function lr(t){return lr=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},lr(t)}function Na(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function Zr(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Na(Object(r),!0).forEach((function(o){Ss(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Na(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function Ss(t,n,r){return(n=(function(o){var s=(function(l){if(lr(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(lr(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return lr(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function fr(t){return fr=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},fr(t)}function $i(t,n){(n==null||n>t.length)&&(n=t.length);for(var r=0,o=new Array(n);r<n;r++)o[r]=t[r];return o}function La(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function Dn(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?La(Object(r),!0).forEach((function(o){Es(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):La(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function Es(t,n,r){return(n=(function(o){var s=(function(l){if(fr(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(fr(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return fr(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function pr(t){return pr=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},pr(t)}function Ra(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function ei(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Ra(Object(r),!0).forEach((function(o){qa(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ra(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function qa(t,n,r){return(n=(function(o){var s=(function(l){if(pr(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(pr(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return pr(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function dr(t){return dr=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},dr(t)}function Ma(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function Nn(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Ma(Object(r),!0).forEach((function(o){xs(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ma(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function xs(t,n,r){return(n=(function(o){var s=(function(l){if(dr(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(dr(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return dr(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function Ha(t){return(function(n){if(Array.isArray(n))return Bi(n)})(t)||(function(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(t)||(function(n,r){if(n){if(typeof n=="string")return Bi(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Bi(n,r):void 0}})(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function
|
|
3
|
+
|(?![\\s\\S])))+`,"m"),alias:c,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(i)[0]}}}}),Object.defineProperty(u.languages.diff,"PREFIXES",{value:a})})(r),r.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},r.languages.webmanifest=r.languages.json,(function(u){var a=u.languages.powershell={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:{function:{pattern:/(^|[^`])\$\((?:\$\(.*?\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:{}},"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};a.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:a},boolean:a.boolean,variable:a.variable}})(r),(function(u){u.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var a=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:u.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];u.languages.puppet.heredoc[0].inside.interpolation=a,u.languages.puppet.string.inside["double-quoted"].inside.interpolation=a})(r),r.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},r.languages.python["string-interpolation"].inside.interpolation.inside.rest=r.languages.python,r.languages.py=r.languages.python,(function(u){u.languages.ruby=u.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),u.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var a={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:u.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete u.languages.ruby.function;var i="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;u.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+i+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:a,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:a,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),u.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+i),greedy:!0,inside:{interpolation:a,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:a,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:a,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+i),greedy:!0,inside:{interpolation:a,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:a,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete u.languages.ruby.string,u.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),u.languages.rb=u.languages.ruby})(r),r.languages.scss=r.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),r.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),r.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),r.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),r.languages.scss.atrule.inside.rest=r.languages.scss,(function(u){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");u.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:u.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},u.languages["sh-session"]=u.languages.shellsession=u.languages["shell-session"]})(r),(function(u){function a(l,p){u.languages[l]&&u.languages.insertBefore(l,"comment",{"doc-comment":p})}var i=u.languages.markup.tag,o={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:i}},c={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:i}};a("csharp",o),a("fsharp",o),a("vbnet",c)})(r),(function(u){var a=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+i.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+i.source+")?)",c=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(m,v){v=(v||"").replace(/m/g,"")+"m";var y=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return m});return RegExp(y,v)}u.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+c+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(l),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},u.languages.yml=u.languages.yaml})(r),(function(u){var a={pattern:/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i,alias:"constant"};u.languages["log-file"]={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},verbose:[{pattern:/\b(Trace)\b:/i,greedy:!0},{pattern:/\[(verbose|verb|vrb|vb|v)\]/i,greedy:!0}],debug:[{pattern:/\b(DEBUG|Debug)\b|\b(debug)\:/i,greedy:!0},{pattern:/\[(debug|dbug|dbg|de|d)\]/i,greedy:!0}],info:[{pattern:/\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\b | \b(^[^\.\.]+$)\b | \b(info|information)\:/,greedy:!0},{pattern:/\[(information|info|inf|in|i)\]/i,greedy:!0}],warning:[{pattern:/\b(WARNING|WARN|Warn|WW)\b|\b(warning)\:/i,greedy:!0},{pattern:/\[(warning|warn|wrn|wn|w)\]/i,greedy:!0}],error:[{pattern:/\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\b|\b(error)\:/i,greedy:!0},{pattern:/\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\]/i,greedy:!0}],date:[{pattern:/\b\d{4}-\d{2}-\d{2}(T|\b)/i,greedy:!0},{pattern:/\b\d{2}[^\w\s]\d{2}[^\w\s]\d{4}\b/i,greedy:!0},{pattern:/\d{1,2}:\d{2}(:\d{2}([.,]\d{1,})?)?(Z| ?[+-]\d{1,2}:\d{2})?\b/i,greedy:!0}],guid:a,"text-string":[{pattern:/[a-zA-Z]'[a-zA-Z]/i,greedy:!0},{pattern:/[a-zA-Z]\('[a-zA-Z]/i,greedy:!0}],string:[{pattern:/"[^"]*"/i,greedy:!0,inside:{"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'[^']*'/i,greedy:!0}],exceptiontype:{pattern:/\b([a-zA-Z.]*Exception)\b/i,greedy:!0},"text-constant":{pattern:/(\\[\w-]+.\w+)/i,greedy:!0},constant:[{pattern:/\b([0-9]+|true|false|null)\b/i,greedy:!0},{pattern:/\b(http|https|ftp|file):\/\S+\b\/?/i,greedy:!0},{pattern:/([\w-]+\.)+([\w-])+(?![\w/\\])/i,greedy:!0}]},u.languages.log=u.languages["log-file"]})(r),(function(){if(typeof r=="undefined"||typeof document=="undefined")return;var u="line-numbers",a=/\n(?!$)/g,i=r.plugins.lineNumbers={getLine:function(p,m){if(!(p.tagName!=="PRE"||!p.classList.contains(u))){var v=p.querySelector(".line-numbers-rows");if(v){var y=parseInt(p.getAttribute("data-start"),10)||1,F=y+(v.children.length-1);m<y&&(m=y),m>F&&(m=F);var D=m-y;return v.children[D]}}},resize:function(p){o([p])},assumeViewportIndependence:!0};function o(p){if(p=p.filter(function(v){var y=c(v),F=y["white-space"];return F==="pre-wrap"||F==="pre-line"}),p.length!=0){var m=p.map(function(v){var y=v.querySelector("code"),F=v.querySelector(".line-numbers-rows");if(!(!y||!F)){var D=v.querySelector(".line-numbers-sizer"),_=y.textContent.split(a);D||(D=document.createElement("span"),D.className="line-numbers-sizer",y.appendChild(D)),D.innerHTML="0",D.style.display="block";var O=D.getBoundingClientRect().height;return D.innerHTML="",{element:v,lines:_,lineHeights:[],oneLinerHeight:O,sizer:D}}}).filter(Boolean);m.forEach(function(v){var y=v.sizer,F=v.lines,D=v.lineHeights,_=v.oneLinerHeight;D[F.length-1]=void 0,F.forEach(function(O,w){if(O&&O.length>1){var x=y.appendChild(document.createElement("span"));x.style.display="block",x.textContent=O}else D[w]=_})}),m.forEach(function(v){for(var y=v.sizer,F=v.lineHeights,D=0,_=0;_<F.length;_++)F[_]===void 0&&(F[_]=y.children[D++].getBoundingClientRect().height)}),m.forEach(function(v){var y=v.sizer,F=v.element.querySelector(".line-numbers-rows");y.style.display="none",y.innerHTML="",v.lineHeights.forEach(function(D,_){F.children[_].style.height=D+"px"})})}}function c(p){return p?window.getComputedStyle?getComputedStyle(p):p.currentStyle||null:null}var l=void 0;window.addEventListener("resize",function(){i.assumeViewportIndependence&&l===window.innerWidth||(l=window.innerWidth,o(Array.prototype.slice.call(document.querySelectorAll("pre."+u))))}),r.hooks.add("complete",function(p){if(p.code){var m=p.element,v=m.parentNode;if(!(!v||!/pre/i.test(v.nodeName))&&!m.querySelector(".line-numbers-rows")&&r.util.isActive(m,u)){m.classList.remove(u),v.classList.add(u);var y=p.code.match(a),F=y?y.length+1:1,D,_=new Array(F+1).join("<span></span>");D=document.createElement("span"),D.setAttribute("aria-hidden","true"),D.className="line-numbers-rows",D.innerHTML=_,v.hasAttribute("data-start")&&(v.style.counterReset="linenumber "+(parseInt(v.getAttribute("data-start"),10)-1)),p.element.appendChild(D),o([v]),r.hooks.run("line-numbers",p)}}}),r.hooks.add("line-numbers",function(p){p.plugins=p.plugins||{},p.plugins.lineNumbers=!0})})(),(function(){if(typeof r=="undefined"||typeof document=="undefined")return;var u=[],a={},i=function(){};r.plugins.toolbar={};var o=r.plugins.toolbar.registerButton=function(p,m){var v;if(typeof m=="function"?v=m:v=function(y){var F;return typeof m.onClick=="function"?(F=document.createElement("button"),F.type="button",F.addEventListener("click",function(){m.onClick.call(this,y)})):typeof m.url=="string"?(F=document.createElement("a"),F.href=m.url):F=document.createElement("span"),m.className&&F.classList.add(m.className),F.textContent=m.text,F},p in a){console.warn('There is a button with the key "'+p+'" registered already.');return}u.push(a[p]=v)};function c(p){for(;p;){var m=p.getAttribute("data-toolbar-order");if(m!=null)return m=m.trim(),m.length?m.split(/\s*,\s*/g):[];p=p.parentElement}}var l=r.plugins.toolbar.hook=function(p){var m=p.element.parentNode;if(!(!m||!/pre/i.test(m.nodeName))&&!m.parentNode.classList.contains("code-toolbar")){var v=document.createElement("div");v.classList.add("code-toolbar"),m.parentNode.insertBefore(v,m),v.appendChild(m);var y=document.createElement("div");y.classList.add("toolbar");var F=u,D=c(p.element);D&&(F=D.map(function(_){return a[_]||i})),F.forEach(function(_){var O=_(p);if(O){var w=document.createElement("div");w.classList.add("toolbar-item"),w.appendChild(O),y.appendChild(w)}}),v.appendChild(y)}};o("label",function(p){var m=p.element.parentNode;if(!(!m||!/pre/i.test(m.nodeName))&&m.hasAttribute("data-label")){var v,y,F=m.getAttribute("data-label");try{y=document.querySelector("template#"+F)}catch(D){}return y?v=y.content:(m.hasAttribute("data-url")?(v=document.createElement("a"),v.href=m.getAttribute("data-url")):v=document.createElement("span"),v.textContent=F),v}}),r.hooks.add("complete",l)})(),(function(){if(typeof r=="undefined"||typeof document=="undefined")return;if(!r.plugins.toolbar){console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.");return}function u(l,p){l.addEventListener("click",function(){i(p)})}function a(l){var p=document.createElement("textarea");p.value=l.getText(),p.style.top="0",p.style.left="0",p.style.position="fixed",document.body.appendChild(p),p.focus(),p.select();try{var m=document.execCommand("copy");setTimeout(function(){m?l.success():l.error()},1)}catch(v){setTimeout(function(){l.error(v)},1)}document.body.removeChild(p)}function i(l){navigator.clipboard?navigator.clipboard.writeText(l.getText()).then(l.success,function(){a(l)}):a(l)}function o(l){window.getSelection().selectAllChildren(l)}function c(l){var p={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3},m="data-prismjs-";for(var v in p){for(var y=m+v,F=l;F&&!F.hasAttribute(y);)F=F.parentElement;F&&(p[v]=F.getAttribute(y))}return p}r.plugins.toolbar.registerButton("copy-to-clipboard",function(l){var p=l.element,m=c(p),v=document.createElement("button");v.className="copy-to-clipboard-button",v.setAttribute("type","button");var y=document.createElement("span");return v.appendChild(y),D("copy"),u(v,{getText:function(){return p.textContent},success:function(){D("copy-success"),F()},error:function(){D("copy-error"),setTimeout(function(){o(p)},1),F()}}),v;function F(){setTimeout(function(){D("copy")},m["copy-timeout"])}function D(_){y.textContent=m[_],v.setAttribute("data-copy-state",_)}})})(),(function(){if(typeof r!="undefined"){var u=/^diff-([\w-]+)/i,a=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/g,i=RegExp(/(?:__|[^\r\n<])*(?:\r\n?|\n|(?:__|[^\r\n<])(?![^\r\n]))/.source.replace(/__/g,function(){return a.source}),"gi"),o=!1;r.hooks.add("before-sanity-check",function(c){var l=c.language;u.test(l)&&!c.grammar&&(c.grammar=r.languages[l]=r.languages.diff)}),r.hooks.add("before-tokenize",function(c){!o&&!r.languages.diff&&!r.plugins.autoloader&&(o=!0,console.warn("Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin."));var l=c.language;u.test(l)&&!r.languages[l]&&(r.languages[l]=r.languages.diff)}),r.hooks.add("wrap",function(c){var l,p;if(c.language!=="diff"){var m=u.exec(c.language);if(!m)return;l=m[1],p=r.languages[l]}var v=r.languages.diff&&r.languages.diff.PREFIXES;if(v&&c.type in v){var y=c.content.replace(a,""),F=y.replace(/</g,"<").replace(/&/g,"&"),D=F.replace(/(^|[\r\n])./g,"$1"),_;p?_=r.highlight(D,p,l):_=r.util.encode(D);var O=new r.Token("prefix",v[c.type],[/\w+/.exec(c.type)[0]]),w=r.Token.stringify(O,c.language),x=[],S;for(i.lastIndex=0;S=i.exec(_);)x.push(w+S[0]);/(?:^|[\r\n]).$/.test(F)&&x.push(w),c.content=x.join(""),p&&c.classes.push("language-"+l)}})}})()}}),Lh=vi({"node_modules/clipboard/dist/clipboard.js"(e,t){(function(r,u){typeof e=="object"&&typeof t=="object"?t.exports=u():typeof define=="function"&&define.amd?define([],u):typeof e=="object"?e.ClipboardJS=u():r.ClipboardJS=u()})(e,function(){return(function(){var n={686:(function(a,i,o){"use strict";o.d(i,{default:function(){return se}});var c=o(279),l=o.n(c),p=o(370),m=o.n(p),v=o(817),y=o.n(v);function F(K){try{return document.execCommand(K)}catch(V){return!1}}var D=function(V){var ue=y()(V);return F("cut"),ue},_=D;function O(K){var V=document.documentElement.getAttribute("dir")==="rtl",ue=document.createElement("textarea");ue.style.fontSize="12pt",ue.style.border="0",ue.style.padding="0",ue.style.margin="0",ue.style.position="absolute",ue.style[V?"right":"left"]="-9999px";var oe=window.pageYOffset||document.documentElement.scrollTop;return ue.style.top="".concat(oe,"px"),ue.setAttribute("readonly",""),ue.value=K,ue}var w=function(V,ue){var oe=O(V);ue.container.appendChild(oe);var ce=y()(oe);return F("copy"),oe.remove(),ce},x=function(V){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},oe="";return typeof V=="string"?oe=w(V,ue):V instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(V==null?void 0:V.type)?oe=w(V.value,ue):(oe=y()(V),F("copy")),oe},S=x;function T(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(ue){return typeof ue}:T=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},T(K)}var I=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=V.action,oe=ue===void 0?"copy":ue,ce=V.container,ee=V.target,he=V.text;if(oe!=="copy"&&oe!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(ee!==void 0)if(ee&&T(ee)==="object"&&ee.nodeType===1){if(oe==="copy"&&ee.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(oe==="cut"&&(ee.hasAttribute("readonly")||ee.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(he)return S(he,{container:ce});if(ee)return oe==="cut"?_(ee):S(ee,{container:ce})},B=I;function d(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(ue){return typeof ue}:d=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},d(K)}function H(K,V){if(!(K instanceof V))throw new TypeError("Cannot call a class as a function")}function R(K,V){for(var ue=0;ue<V.length;ue++){var oe=V[ue];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(K,oe.key,oe)}}function Z(K,V,ue){return V&&R(K.prototype,V),ue&&R(K,ue),K}function q(K,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");K.prototype=Object.create(V&&V.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),V&&G(K,V)}function G(K,V){return G=Object.setPrototypeOf||function(oe,ce){return oe.__proto__=ce,oe},G(K,V)}function L(K){var V=$();return function(){var oe=Y(K),ce;if(V){var ee=Y(this).constructor;ce=Reflect.construct(oe,arguments,ee)}else ce=oe.apply(this,arguments);return ne(this,ce)}}function ne(K,V){return V&&(d(V)==="object"||typeof V=="function")?V:Q(K)}function Q(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function $(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(K){return!1}}function Y(K){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},Y(K)}function re(K,V){var ue="data-clipboard-".concat(K);if(V.hasAttribute(ue))return V.getAttribute(ue)}var me=(function(K){q(ue,K);var V=L(ue);function ue(oe,ce){var ee;return H(this,ue),ee=V.call(this),ee.resolveOptions(ce),ee.listenClick(oe),ee}return Z(ue,[{key:"resolveOptions",value:function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ce.action=="function"?ce.action:this.defaultAction,this.target=typeof ce.target=="function"?ce.target:this.defaultTarget,this.text=typeof ce.text=="function"?ce.text:this.defaultText,this.container=d(ce.container)==="object"?ce.container:document.body}},{key:"listenClick",value:function(ce){var ee=this;this.listener=m()(ce,"click",function(he){return ee.onClick(he)})}},{key:"onClick",value:function(ce){var ee=ce.delegateTarget||ce.currentTarget,he=this.action(ee)||"copy",Ce=B({action:he,container:this.container,target:this.target(ee),text:this.text(ee)});this.emit(Ce?"success":"error",{action:he,text:Ce,trigger:ee,clearSelection:function(){ee&&ee.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ce){return re("action",ce)}},{key:"defaultTarget",value:function(ce){var ee=re("target",ce);if(ee)return document.querySelector(ee)}},{key:"defaultText",value:function(ce){return re("text",ce)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ce){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(ce,ee)}},{key:"cut",value:function(ce){return _(ce)}},{key:"isSupported",value:function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ee=typeof ce=="string"?[ce]:ce,he=!!document.queryCommandSupported;return ee.forEach(function(Ce){he=he&&!!document.queryCommandSupported(Ce)}),he}}]),ue})(l()),se=me}),828:(function(a){var i=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}function c(l,p){for(;l&&l.nodeType!==i;){if(typeof l.matches=="function"&&l.matches(p))return l;l=l.parentNode}}a.exports=c}),438:(function(a,i,o){var c=o(828);function l(v,y,F,D,_){var O=m.apply(this,arguments);return v.addEventListener(F,O,_),{destroy:function(){v.removeEventListener(F,O,_)}}}function p(v,y,F,D,_){return typeof v.addEventListener=="function"?l.apply(null,arguments):typeof F=="function"?l.bind(null,document).apply(null,arguments):(typeof v=="string"&&(v=document.querySelectorAll(v)),Array.prototype.map.call(v,function(O){return l(O,y,F,D,_)}))}function m(v,y,F,D){return function(_){_.delegateTarget=c(_.target,y),_.delegateTarget&&D.call(v,_)}}a.exports=p}),879:(function(a,i){i.node=function(o){return o!==void 0&&o instanceof HTMLElement&&o.nodeType===1},i.nodeList=function(o){var c=Object.prototype.toString.call(o);return o!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in o&&(o.length===0||i.node(o[0]))},i.string=function(o){return typeof o=="string"||o instanceof String},i.fn=function(o){var c=Object.prototype.toString.call(o);return c==="[object Function]"}}),370:(function(a,i,o){var c=o(879),l=o(438);function p(F,D,_){if(!F&&!D&&!_)throw new Error("Missing required arguments");if(!c.string(D))throw new TypeError("Second argument must be a String");if(!c.fn(_))throw new TypeError("Third argument must be a Function");if(c.node(F))return m(F,D,_);if(c.nodeList(F))return v(F,D,_);if(c.string(F))return y(F,D,_);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function m(F,D,_){return F.addEventListener(D,_),{destroy:function(){F.removeEventListener(D,_)}}}function v(F,D,_){return Array.prototype.forEach.call(F,function(O){O.addEventListener(D,_)}),{destroy:function(){Array.prototype.forEach.call(F,function(O){O.removeEventListener(D,_)})}}}function y(F,D,_){return l(document.body,F,D,_)}a.exports=p}),817:(function(a){function i(o){var c;if(o.nodeName==="SELECT")o.focus(),c=o.value;else if(o.nodeName==="INPUT"||o.nodeName==="TEXTAREA"){var l=o.hasAttribute("readonly");l||o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,o.value.length),l||o.removeAttribute("readonly"),c=o.value}else{o.hasAttribute("contenteditable")&&o.focus();var p=window.getSelection(),m=document.createRange();m.selectNodeContents(o),p.removeAllRanges(),p.addRange(m),c=p.toString()}return c}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(o,c,l){var p=this.e||(this.e={});return(p[o]||(p[o]=[])).push({fn:c,ctx:l}),this},once:function(o,c,l){var p=this;function m(){p.off(o,m),c.apply(l,arguments)}return m._=c,this.on(o,m,l)},emit:function(o){var c=[].slice.call(arguments,1),l=((this.e||(this.e={}))[o]||[]).slice(),p=0,m=l.length;for(p;p<m;p++)l[p].fn.apply(l[p].ctx,c);return this},off:function(o,c){var l=this.e||(this.e={}),p=l[o],m=[];if(p&&c)for(var v=0,y=p.length;v<y;v++)p[v].fn!==c&&p[v].fn._!==c&&m.push(p[v]);return m.length?l[o]=m:delete l[o],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function u(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,u),i.exports}return(function(){u.n=function(a){var i=a&&a.__esModule?(function(){return a.default}):(function(){return a});return u.d(i,{a:i}),i}})(),(function(){u.d=function(a,i){for(var o in i)u.o(i,o)&&!u.o(a,o)&&Object.defineProperty(a,o,{enumerable:!0,get:i[o]})}})(),(function(){u.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),u(686)})().default})}}),Mh=vi({"node_modules/anchor-js/anchor.js"(e,t){(function(n,r){"use strict";typeof define=="function"&&define.amd?define([],r):typeof t=="object"&&t.exports?t.exports=r():(n.AnchorJS=r(),n.anchors=new n.AnchorJS)})(globalThis,function(){"use strict";function n(r){this.options=r||{},this.elements=[];function u(o){o.icon=Object.prototype.hasOwnProperty.call(o,"icon")?o.icon:"\uE9CB",o.visible=Object.prototype.hasOwnProperty.call(o,"visible")?o.visible:"hover",o.placement=Object.prototype.hasOwnProperty.call(o,"placement")?o.placement:"right",o.ariaLabel=Object.prototype.hasOwnProperty.call(o,"ariaLabel")?o.ariaLabel:"Anchor",o.class=Object.prototype.hasOwnProperty.call(o,"class")?o.class:"",o.base=Object.prototype.hasOwnProperty.call(o,"base")?o.base:"",o.truncate=Object.prototype.hasOwnProperty.call(o,"truncate")?Math.floor(o.truncate):64,o.titleText=Object.prototype.hasOwnProperty.call(o,"titleText")?o.titleText:""}u(this.options),this.add=function(o){var c,l,p,m,v,y,F,D,_,O,w,x=[];if(u(this.options),o||(o="h2, h3, h4, h5, h6"),c=a(o),c.length===0)return this;for(i(),l=document.querySelectorAll("[id]"),p=[].map.call(l,function(S){return S.id}),v=0;v<c.length;v++){if(this.hasAnchorJSLink(c[v])){x.push(v);continue}if(c[v].hasAttribute("id"))m=c[v].getAttribute("id");else if(c[v].hasAttribute("data-anchor-id"))m=c[v].getAttribute("data-anchor-id");else{D=this.urlify(c[v].textContent),_=D,F=0;do y!==void 0&&(_=D+"-"+F),y=p.indexOf(_),F+=1;while(y!==-1);y=void 0,p.push(_),c[v].setAttribute("id",_),m=_}O=document.createElement("a"),O.className="anchorjs-link "+this.options.class,O.setAttribute("aria-label",this.options.ariaLabel),O.setAttribute("data-anchorjs-icon",this.options.icon),this.options.titleText&&(O.title=this.options.titleText),w=document.querySelector("base")?window.location.pathname+window.location.search:"",w=this.options.base||w,O.href=w+"#"+m,this.options.visible==="always"&&(O.style.opacity="1"),this.options.icon==="\uE9CB"&&(O.style.font="1em/1 anchorjs-icons",this.options.placement==="left"&&(O.style.lineHeight="inherit")),this.options.placement==="left"?(O.style.position="absolute",O.style.marginLeft="-1.25em",O.style.paddingRight=".25em",O.style.paddingLeft=".25em",c[v].insertBefore(O,c[v].firstChild)):(O.style.marginLeft=".1875em",O.style.paddingRight=".1875em",O.style.paddingLeft=".1875em",c[v].appendChild(O))}for(v=0;v<x.length;v++)c.splice(x[v]-v,1);return this.elements=this.elements.concat(c),this},this.remove=function(o){for(var c,l,p=a(o),m=0;m<p.length;m++)l=p[m].querySelector(".anchorjs-link"),l&&(c=this.elements.indexOf(p[m]),c!==-1&&this.elements.splice(c,1),p[m].removeChild(l));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(o){var c=document.createElement("textarea");c.innerHTML=o,o=c.value;var l=/[& +$,:;=?@"#{}|^~[`%!'<>\]./()*\\\n\t\b\v\u00A0]/g;return this.options.truncate||u(this.options),o.trim().replace(/'/gi,"").replace(l,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(o){var c=o.firstChild&&(" "+o.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,l=o.lastChild&&(" "+o.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return c||l||!1};function a(o){var c;if(typeof o=="string"||o instanceof String)c=[].slice.call(document.querySelectorAll(o));else if(Array.isArray(o)||o instanceof NodeList)c=[].slice.call(o);else throw new TypeError("The selector provided to AnchorJS was invalid.");return c}function i(){if(document.head.querySelector("style.anchorjs")===null){var o=document.createElement("style"),c=".anchorjs-link{opacity:0;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",l=":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",p='@font-face{font-family:anchorjs-icons;src:url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',m="[data-anchorjs-icon]::after{content:attr(data-anchorjs-icon)}",v;o.className="anchorjs",o.appendChild(document.createTextNode("")),v=document.head.querySelector('[rel="stylesheet"],style'),v===void 0?document.head.appendChild(o):document.head.insertBefore(o,v),o.sheet.insertRule(c,o.sheet.cssRules.length),o.sheet.insertRule(l,o.sheet.cssRules.length),o.sheet.insertRule(m,o.sheet.cssRules.length),o.sheet.insertRule(p,o.sheet.cssRules.length)}}}return n})}}),$h=vi({"node_modules/jquery/dist/jquery.js"(e,t){(function(n,r){"use strict";typeof t=="object"&&typeof t.exports=="object"?t.exports=n.document?r(n,!0):function(u){if(!u.document)throw new Error("jQuery requires a window with a document");return r(u)}:r(n)})(typeof window!="undefined"?window:e,function(n,r){"use strict";var u=[],a=Object.getPrototypeOf,i=u.slice,o=u.flat?function(s){return u.flat.call(s)}:function(s){return u.concat.apply([],s)},c=u.push,l=u.indexOf,p={},m=p.toString,v=p.hasOwnProperty,y=v.toString,F=y.call(Object),D={},_=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},O=function(f){return f!=null&&f===f.window},w=n.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function S(s,f,h){h=h||w;var g,A,E=h.createElement("script");if(E.text=s,f)for(g in x)A=f[g]||f.getAttribute&&f.getAttribute(g),A&&E.setAttribute(g,A);h.head.appendChild(E).parentNode.removeChild(E)}function T(s){return s==null?s+"":typeof s=="object"||typeof s=="function"?p[m.call(s)]||"object":typeof s}var I="3.7.1",B=/HTML$/i,d=function(s,f){return new d.fn.init(s,f)};d.fn=d.prototype={jquery:I,constructor:d,length:0,toArray:function(){return i.call(this)},get:function(s){return s==null?i.call(this):s<0?this[s+this.length]:this[s]},pushStack:function(s){var f=d.merge(this.constructor(),s);return f.prevObject=this,f},each:function(s){return d.each(this,s)},map:function(s){return this.pushStack(d.map(this,function(f,h){return s.call(f,h,f)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(s,f){return(f+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(s,f){return f%2}))},eq:function(s){var f=this.length,h=+s+(s<0?f:0);return this.pushStack(h>=0&&h<f?[this[h]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:u.sort,splice:u.splice},d.extend=d.fn.extend=function(){var s,f,h,g,A,E,k=arguments[0]||{},N=1,j=arguments.length,M=!1;for(typeof k=="boolean"&&(M=k,k=arguments[N]||{},N++),typeof k!="object"&&!_(k)&&(k={}),N===j&&(k=this,N--);N<j;N++)if((s=arguments[N])!=null)for(f in s)g=s[f],!(f==="__proto__"||k===g)&&(M&&g&&(d.isPlainObject(g)||(A=Array.isArray(g)))?(h=k[f],A&&!Array.isArray(h)?E=[]:!A&&!d.isPlainObject(h)?E={}:E=h,A=!1,k[f]=d.extend(M,E,g)):g!==void 0&&(k[f]=g));return k},d.extend({expando:"jQuery"+(I+Math.random()).replace(/\D/g,""),isReady:!0,error:function(s){throw new Error(s)},noop:function(){},isPlainObject:function(s){var f,h;return!s||m.call(s)!=="[object Object]"?!1:(f=a(s),f?(h=v.call(f,"constructor")&&f.constructor,typeof h=="function"&&y.call(h)===F):!0)},isEmptyObject:function(s){var f;for(f in s)return!1;return!0},globalEval:function(s,f,h){S(s,{nonce:f&&f.nonce},h)},each:function(s,f){var h,g=0;if(H(s))for(h=s.length;g<h&&f.call(s[g],g,s[g])!==!1;g++);else for(g in s)if(f.call(s[g],g,s[g])===!1)break;return s},text:function(s){var f,h="",g=0,A=s.nodeType;if(!A)for(;f=s[g++];)h+=d.text(f);return A===1||A===11?s.textContent:A===9?s.documentElement.textContent:A===3||A===4?s.nodeValue:h},makeArray:function(s,f){var h=f||[];return s!=null&&(H(Object(s))?d.merge(h,typeof s=="string"?[s]:s):c.call(h,s)),h},inArray:function(s,f,h){return f==null?-1:l.call(f,s,h)},isXMLDoc:function(s){var f=s&&s.namespaceURI,h=s&&(s.ownerDocument||s).documentElement;return!B.test(f||h&&h.nodeName||"HTML")},merge:function(s,f){for(var h=+f.length,g=0,A=s.length;g<h;g++)s[A++]=f[g];return s.length=A,s},grep:function(s,f,h){for(var g,A=[],E=0,k=s.length,N=!h;E<k;E++)g=!f(s[E],E),g!==N&&A.push(s[E]);return A},map:function(s,f,h){var g,A,E=0,k=[];if(H(s))for(g=s.length;E<g;E++)A=f(s[E],E,h),A!=null&&k.push(A);else for(E in s)A=f(s[E],E,h),A!=null&&k.push(A);return o(k)},guid:1,support:D}),typeof Symbol=="function"&&(d.fn[Symbol.iterator]=u[Symbol.iterator]),d.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(s,f){p["[object "+f+"]"]=f.toLowerCase()});function H(s){var f=!!s&&"length"in s&&s.length,h=T(s);return _(s)||O(s)?!1:h==="array"||f===0||typeof f=="number"&&f>0&&f-1 in s}function R(s,f){return s.nodeName&&s.nodeName.toLowerCase()===f.toLowerCase()}var Z=u.pop,q=u.sort,G=u.splice,L="[\\x20\\t\\r\\n\\f]",ne=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");d.contains=function(s,f){var h=f&&f.parentNode;return s===h||!!(h&&h.nodeType===1&&(s.contains?s.contains(h):s.compareDocumentPosition&&s.compareDocumentPosition(h)&16))};var Q=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function $(s,f){return f?s==="\0"?"\uFFFD":s.slice(0,-1)+"\\"+s.charCodeAt(s.length-1).toString(16)+" ":"\\"+s}d.escapeSelector=function(s){return(s+"").replace(Q,$)};var Y=w,re=c;(function(){var s,f,h,g,A,E=re,k,N,j,M,X,ie=d.expando,W=0,fe=0,Ue=To(),ft=To(),Je=To(),cn=To(),rn=function(P,z){return P===z&&(A=!0),0},mr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",gr="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ct="\\["+L+"*("+gr+")(?:"+L+"*([*^$|!~]?=)"+L+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+gr+"))|)"+L+"*\\]",Cu=":("+gr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ct+")*)|.*)\\)|)",ht=new RegExp(L+"+","g"),Vt=new RegExp("^"+L+"*,"+L+"*"),di=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),Pc=new RegExp(L+"|>"),yr=new RegExp(Cu),pi=new RegExp("^"+gr+"$"),Dr={ID:new RegExp("^#("+gr+")"),CLASS:new RegExp("^\\.("+gr+")"),TAG:new RegExp("^("+gr+"|[*])"),ATTR:new RegExp("^"+ct),PSEUDO:new RegExp("^"+Cu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+mr+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},nu=/^(?:input|select|textarea|button)$/i,ru=/^h\d$/i,zn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,jc=/[+~]/,Pr=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),jr=function(P,z){var U="0x"+P.slice(1)-65536;return z||(U<0?String.fromCharCode(U+65536):String.fromCharCode(U>>10|55296,U&1023|56320))},BA=function(){uu()},PA=Io(function(P){return P.disabled===!0&&R(P,"fieldset")},{dir:"parentNode",next:"legend"});function jA(){try{return k.activeElement}catch(P){}}try{E.apply(u=i.call(Y.childNodes),Y.childNodes),u[Y.childNodes.length].nodeType}catch(P){E={apply:function(z,U){re.apply(z,i.call(U))},call:function(z){re.apply(z,i.call(arguments,1))}}}function Ft(P,z,U,J){var ae,De,Fe,Ne,_e,it,qe,We=z&&z.ownerDocument,ot=z?z.nodeType:9;if(U=U||[],typeof P!="string"||!P||ot!==1&&ot!==9&&ot!==11)return U;if(!J&&(uu(z),z=z||k,j)){if(ot!==11&&(_e=zn.exec(P)))if(ae=_e[1]){if(ot===9)if(Fe=z.getElementById(ae)){if(Fe.id===ae)return E.call(U,Fe),U}else return U;else if(We&&(Fe=We.getElementById(ae))&&Ft.contains(z,Fe)&&Fe.id===ae)return E.call(U,Fe),U}else{if(_e[2])return E.apply(U,z.getElementsByTagName(P)),U;if((ae=_e[3])&&z.getElementsByClassName)return E.apply(U,z.getElementsByClassName(ae)),U}if(!cn[P+" "]&&(!M||!M.test(P))){if(qe=P,We=z,ot===1&&(Pc.test(P)||di.test(P))){for(We=jc.test(P)&&Nc(z.parentNode)||z,(We!=z||!D.scope)&&((Ne=z.getAttribute("id"))?Ne=d.escapeSelector(Ne):z.setAttribute("id",Ne=ie)),it=hi(P),De=it.length;De--;)it[De]=(Ne?"#"+Ne:":scope")+" "+Oo(it[De]);qe=it.join(",")}try{return E.apply(U,We.querySelectorAll(qe)),U}catch(Le){cn(P,!0)}finally{Ne===ie&&z.removeAttribute("id")}}}return Ih(P.replace(ne,"$1"),z,U,J)}function To(){var P=[];function z(U,J){return P.push(U+" ")>f.cacheLength&&delete z[P.shift()],z[U+" "]=J}return z}function er(P){return P[ie]=!0,P}function na(P){var z=k.createElement("fieldset");try{return!!P(z)}catch(U){return!1}finally{z.parentNode&&z.parentNode.removeChild(z),z=null}}function NA(P){return function(z){return R(z,"input")&&z.type===P}}function RA(P){return function(z){return(R(z,"input")||R(z,"button"))&&z.type===P}}function Th(P){return function(z){return"form"in z?z.parentNode&&z.disabled===!1?"label"in z?"label"in z.parentNode?z.parentNode.disabled===P:z.disabled===P:z.isDisabled===P||z.isDisabled!==!P&&PA(z)===P:z.disabled===P:"label"in z?z.disabled===P:!1}}function ku(P){return er(function(z){return z=+z,er(function(U,J){for(var ae,De=P([],U.length,z),Fe=De.length;Fe--;)U[ae=De[Fe]]&&(U[ae]=!(J[ae]=U[ae]))})})}function Nc(P){return P&&typeof P.getElementsByTagName!="undefined"&&P}function uu(P){var z,U=P?P.ownerDocument||P:Y;return U==k||U.nodeType!==9||!U.documentElement||(k=U,N=k.documentElement,j=!d.isXMLDoc(k),X=N.matches||N.webkitMatchesSelector||N.msMatchesSelector,N.msMatchesSelector&&Y!=k&&(z=k.defaultView)&&z.top!==z&&z.addEventListener("unload",BA),D.getById=na(function(J){return N.appendChild(J).id=d.expando,!k.getElementsByName||!k.getElementsByName(d.expando).length}),D.disconnectedMatch=na(function(J){return X.call(J,"*")}),D.scope=na(function(){return k.querySelectorAll(":scope")}),D.cssHas=na(function(){try{return k.querySelector(":has(*,:jqfake)"),!1}catch(J){return!0}}),D.getById?(f.filter.ID=function(J){var ae=J.replace(Pr,jr);return function(De){return De.getAttribute("id")===ae}},f.find.ID=function(J,ae){if(typeof ae.getElementById!="undefined"&&j){var De=ae.getElementById(J);return De?[De]:[]}}):(f.filter.ID=function(J){var ae=J.replace(Pr,jr);return function(De){var Fe=typeof De.getAttributeNode!="undefined"&&De.getAttributeNode("id");return Fe&&Fe.value===ae}},f.find.ID=function(J,ae){if(typeof ae.getElementById!="undefined"&&j){var De,Fe,Ne,_e=ae.getElementById(J);if(_e){if(De=_e.getAttributeNode("id"),De&&De.value===J)return[_e];for(Ne=ae.getElementsByName(J),Fe=0;_e=Ne[Fe++];)if(De=_e.getAttributeNode("id"),De&&De.value===J)return[_e]}return[]}}),f.find.TAG=function(J,ae){return typeof ae.getElementsByTagName!="undefined"?ae.getElementsByTagName(J):ae.querySelectorAll(J)},f.find.CLASS=function(J,ae){if(typeof ae.getElementsByClassName!="undefined"&&j)return ae.getElementsByClassName(J)},M=[],na(function(J){var ae;N.appendChild(J).innerHTML="<a id='"+ie+"' href='' disabled='disabled'></a><select id='"+ie+"-\r\\' disabled='disabled'><option selected=''></option></select>",J.querySelectorAll("[selected]").length||M.push("\\["+L+"*(?:value|"+mr+")"),J.querySelectorAll("[id~="+ie+"-]").length||M.push("~="),J.querySelectorAll("a#"+ie+"+*").length||M.push(".#.+[+~]"),J.querySelectorAll(":checked").length||M.push(":checked"),ae=k.createElement("input"),ae.setAttribute("type","hidden"),J.appendChild(ae).setAttribute("name","D"),N.appendChild(J).disabled=!0,J.querySelectorAll(":disabled").length!==2&&M.push(":enabled",":disabled"),ae=k.createElement("input"),ae.setAttribute("name",""),J.appendChild(ae),J.querySelectorAll("[name='']").length||M.push("\\["+L+"*name"+L+"*="+L+`*(?:''|"")`)}),D.cssHas||M.push(":has"),M=M.length&&new RegExp(M.join("|")),rn=function(J,ae){if(J===ae)return A=!0,0;var De=!J.compareDocumentPosition-!ae.compareDocumentPosition;return De||(De=(J.ownerDocument||J)==(ae.ownerDocument||ae)?J.compareDocumentPosition(ae):1,De&1||!D.sortDetached&&ae.compareDocumentPosition(J)===De?J===k||J.ownerDocument==Y&&Ft.contains(Y,J)?-1:ae===k||ae.ownerDocument==Y&&Ft.contains(Y,ae)?1:g?l.call(g,J)-l.call(g,ae):0:De&4?-1:1)}),k}Ft.matches=function(P,z){return Ft(P,null,null,z)},Ft.matchesSelector=function(P,z){if(uu(P),j&&!cn[z+" "]&&(!M||!M.test(z)))try{var U=X.call(P,z);if(U||D.disconnectedMatch||P.document&&P.document.nodeType!==11)return U}catch(J){cn(z,!0)}return Ft(z,k,null,[P]).length>0},Ft.contains=function(P,z){return(P.ownerDocument||P)!=k&&uu(P),d.contains(P,z)},Ft.attr=function(P,z){(P.ownerDocument||P)!=k&&uu(P);var U=f.attrHandle[z.toLowerCase()],J=U&&v.call(f.attrHandle,z.toLowerCase())?U(P,z,!j):void 0;return J!==void 0?J:P.getAttribute(z)},Ft.error=function(P){throw new Error("Syntax error, unrecognized expression: "+P)},d.uniqueSort=function(P){var z,U=[],J=0,ae=0;if(A=!D.sortStable,g=!D.sortStable&&i.call(P,0),q.call(P,rn),A){for(;z=P[ae++];)z===P[ae]&&(J=U.push(ae));for(;J--;)G.call(P,U[J],1)}return g=null,P},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort(i.apply(this)))},f=d.expr={cacheLength:50,createPseudo:er,match:Dr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(P){return P[1]=P[1].replace(Pr,jr),P[3]=(P[3]||P[4]||P[5]||"").replace(Pr,jr),P[2]==="~="&&(P[3]=" "+P[3]+" "),P.slice(0,4)},CHILD:function(P){return P[1]=P[1].toLowerCase(),P[1].slice(0,3)==="nth"?(P[3]||Ft.error(P[0]),P[4]=+(P[4]?P[5]+(P[6]||1):2*(P[3]==="even"||P[3]==="odd")),P[5]=+(P[7]+P[8]||P[3]==="odd")):P[3]&&Ft.error(P[0]),P},PSEUDO:function(P){var z,U=!P[6]&&P[2];return Dr.CHILD.test(P[0])?null:(P[3]?P[2]=P[4]||P[5]||"":U&&yr.test(U)&&(z=hi(U,!0))&&(z=U.indexOf(")",U.length-z)-U.length)&&(P[0]=P[0].slice(0,z),P[2]=U.slice(0,z)),P.slice(0,3))}},filter:{TAG:function(P){var z=P.replace(Pr,jr).toLowerCase();return P==="*"?function(){return!0}:function(U){return R(U,z)}},CLASS:function(P){var z=Ue[P+" "];return z||(z=new RegExp("(^|"+L+")"+P+"("+L+"|$)"))&&Ue(P,function(U){return z.test(typeof U.className=="string"&&U.className||typeof U.getAttribute!="undefined"&&U.getAttribute("class")||"")})},ATTR:function(P,z,U){return function(J){var ae=Ft.attr(J,P);return ae==null?z==="!=":z?(ae+="",z==="="?ae===U:z==="!="?ae!==U:z==="^="?U&&ae.indexOf(U)===0:z==="*="?U&&ae.indexOf(U)>-1:z==="$="?U&&ae.slice(-U.length)===U:z==="~="?(" "+ae.replace(ht," ")+" ").indexOf(U)>-1:z==="|="?ae===U||ae.slice(0,U.length+1)===U+"-":!1):!0}},CHILD:function(P,z,U,J,ae){var De=P.slice(0,3)!=="nth",Fe=P.slice(-4)!=="last",Ne=z==="of-type";return J===1&&ae===0?(function(_e){return!!_e.parentNode}):function(_e,it,qe){var We,ot,Le,St,_n,dn=De!==Fe?"nextSibling":"previousSibling",Ln=_e.parentNode,br=Ne&&_e.nodeName.toLowerCase(),ra=!qe&&!Ne,bn=!1;if(Ln){if(De){for(;dn;){for(Le=_e;Le=Le[dn];)if(Ne?R(Le,br):Le.nodeType===1)return!1;_n=dn=P==="only"&&!_n&&"nextSibling"}return!0}if(_n=[Fe?Ln.firstChild:Ln.lastChild],Fe&&ra){for(ot=Ln[ie]||(Ln[ie]={}),We=ot[P]||[],St=We[0]===W&&We[1],bn=St&&We[2],Le=St&&Ln.childNodes[St];Le=++St&&Le&&Le[dn]||(bn=St=0)||_n.pop();)if(Le.nodeType===1&&++bn&&Le===_e){ot[P]=[W,St,bn];break}}else if(ra&&(ot=_e[ie]||(_e[ie]={}),We=ot[P]||[],St=We[0]===W&&We[1],bn=St),bn===!1)for(;(Le=++St&&Le&&Le[dn]||(bn=St=0)||_n.pop())&&!((Ne?R(Le,br):Le.nodeType===1)&&++bn&&(ra&&(ot=Le[ie]||(Le[ie]={}),ot[P]=[W,bn]),Le===_e)););return bn-=ae,bn===J||bn%J===0&&bn/J>=0}}},PSEUDO:function(P,z){var U,J=f.pseudos[P]||f.setFilters[P.toLowerCase()]||Ft.error("unsupported pseudo: "+P);return J[ie]?J(z):J.length>1?(U=[P,P,"",z],f.setFilters.hasOwnProperty(P.toLowerCase())?er(function(ae,De){for(var Fe,Ne=J(ae,z),_e=Ne.length;_e--;)Fe=l.call(ae,Ne[_e]),ae[Fe]=!(De[Fe]=Ne[_e])}):function(ae){return J(ae,0,U)}):J}},pseudos:{not:er(function(P){var z=[],U=[],J=Mc(P.replace(ne,"$1"));return J[ie]?er(function(ae,De,Fe,Ne){for(var _e,it=J(ae,null,Ne,[]),qe=ae.length;qe--;)(_e=it[qe])&&(ae[qe]=!(De[qe]=_e))}):function(ae,De,Fe){return z[0]=ae,J(z,null,Fe,U),z[0]=null,!U.pop()}}),has:er(function(P){return function(z){return Ft(P,z).length>0}}),contains:er(function(P){return P=P.replace(Pr,jr),function(z){return(z.textContent||d.text(z)).indexOf(P)>-1}}),lang:er(function(P){return pi.test(P||"")||Ft.error("unsupported lang: "+P),P=P.replace(Pr,jr).toLowerCase(),function(z){var U;do if(U=j?z.lang:z.getAttribute("xml:lang")||z.getAttribute("lang"))return U=U.toLowerCase(),U===P||U.indexOf(P+"-")===0;while((z=z.parentNode)&&z.nodeType===1);return!1}}),target:function(P){var z=n.location&&n.location.hash;return z&&z.slice(1)===P.id},root:function(P){return P===N},focus:function(P){return P===jA()&&k.hasFocus()&&!!(P.type||P.href||~P.tabIndex)},enabled:Th(!1),disabled:Th(!0),checked:function(P){return R(P,"input")&&!!P.checked||R(P,"option")&&!!P.selected},selected:function(P){return P.parentNode&&P.parentNode.selectedIndex,P.selected===!0},empty:function(P){for(P=P.firstChild;P;P=P.nextSibling)if(P.nodeType<6)return!1;return!0},parent:function(P){return!f.pseudos.empty(P)},header:function(P){return ru.test(P.nodeName)},input:function(P){return nu.test(P.nodeName)},button:function(P){return R(P,"input")&&P.type==="button"||R(P,"button")},text:function(P){var z;return R(P,"input")&&P.type==="text"&&((z=P.getAttribute("type"))==null||z.toLowerCase()==="text")},first:ku(function(){return[0]}),last:ku(function(P,z){return[z-1]}),eq:ku(function(P,z,U){return[U<0?U+z:U]}),even:ku(function(P,z){for(var U=0;U<z;U+=2)P.push(U);return P}),odd:ku(function(P,z){for(var U=1;U<z;U+=2)P.push(U);return P}),lt:ku(function(P,z,U){var J;for(U<0?J=U+z:U>z?J=z:J=U;--J>=0;)P.push(J);return P}),gt:ku(function(P,z,U){for(var J=U<0?U+z:U;++J<z;)P.push(J);return P})}},f.pseudos.nth=f.pseudos.eq;for(s in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})f.pseudos[s]=NA(s);for(s in{submit:!0,reset:!0})f.pseudos[s]=RA(s);function Oh(){}Oh.prototype=f.filters=f.pseudos,f.setFilters=new Oh;function hi(P,z){var U,J,ae,De,Fe,Ne,_e,it=ft[P+" "];if(it)return z?0:it.slice(0);for(Fe=P,Ne=[],_e=f.preFilter;Fe;){(!U||(J=Vt.exec(Fe)))&&(J&&(Fe=Fe.slice(J[0].length)||Fe),Ne.push(ae=[])),U=!1,(J=di.exec(Fe))&&(U=J.shift(),ae.push({value:U,type:J[0].replace(ne," ")}),Fe=Fe.slice(U.length));for(De in f.filter)(J=Dr[De].exec(Fe))&&(!_e[De]||(J=_e[De](J)))&&(U=J.shift(),ae.push({value:U,type:De,matches:J}),Fe=Fe.slice(U.length));if(!U)break}return z?Fe.length:Fe?Ft.error(P):ft(P,Ne).slice(0)}function Oo(P){for(var z=0,U=P.length,J="";z<U;z++)J+=P[z].value;return J}function Io(P,z,U){var J=z.dir,ae=z.next,De=ae||J,Fe=U&&De==="parentNode",Ne=fe++;return z.first?(function(_e,it,qe){for(;_e=_e[J];)if(_e.nodeType===1||Fe)return P(_e,it,qe);return!1}):(function(_e,it,qe){var We,ot,Le=[W,Ne];if(qe){for(;_e=_e[J];)if((_e.nodeType===1||Fe)&&P(_e,it,qe))return!0}else for(;_e=_e[J];)if(_e.nodeType===1||Fe)if(ot=_e[ie]||(_e[ie]={}),ae&&R(_e,ae))_e=_e[J]||_e;else{if((We=ot[De])&&We[0]===W&&We[1]===Ne)return Le[2]=We[2];if(ot[De]=Le,Le[2]=P(_e,it,qe))return!0}return!1})}function Rc(P){return P.length>1?function(z,U,J){for(var ae=P.length;ae--;)if(!P[ae](z,U,J))return!1;return!0}:P[0]}function zA(P,z,U){for(var J=0,ae=z.length;J<ae;J++)Ft(P,z[J],U);return U}function Bo(P,z,U,J,ae){for(var De,Fe=[],Ne=0,_e=P.length,it=z!=null;Ne<_e;Ne++)(De=P[Ne])&&(!U||U(De,J,ae))&&(Fe.push(De),it&&z.push(Ne));return Fe}function zc(P,z,U,J,ae,De){return J&&!J[ie]&&(J=zc(J)),ae&&!ae[ie]&&(ae=zc(ae,De)),er(function(Fe,Ne,_e,it){var qe,We,ot,Le,St=[],_n=[],dn=Ne.length,Ln=Fe||zA(z||"*",_e.nodeType?[_e]:_e,[]),br=P&&(Fe||!z)?Bo(Ln,St,P,_e,it):Ln;if(U?(Le=ae||(Fe?P:dn||J)?[]:Ne,U(br,Le,_e,it)):Le=br,J)for(qe=Bo(Le,_n),J(qe,[],_e,it),We=qe.length;We--;)(ot=qe[We])&&(Le[_n[We]]=!(br[_n[We]]=ot));if(Fe){if(ae||P){if(ae){for(qe=[],We=Le.length;We--;)(ot=Le[We])&&qe.push(br[We]=ot);ae(null,Le=[],qe,it)}for(We=Le.length;We--;)(ot=Le[We])&&(qe=ae?l.call(Fe,ot):St[We])>-1&&(Fe[qe]=!(Ne[qe]=ot))}}else Le=Bo(Le===Ne?Le.splice(dn,Le.length):Le),ae?ae(null,Ne,Le,it):E.apply(Ne,Le)})}function Lc(P){for(var z,U,J,ae=P.length,De=f.relative[P[0].type],Fe=De||f.relative[" "],Ne=De?1:0,_e=Io(function(We){return We===z},Fe,!0),it=Io(function(We){return l.call(z,We)>-1},Fe,!0),qe=[function(We,ot,Le){var St=!De&&(Le||ot!=h)||((z=ot).nodeType?_e(We,ot,Le):it(We,ot,Le));return z=null,St}];Ne<ae;Ne++)if(U=f.relative[P[Ne].type])qe=[Io(Rc(qe),U)];else{if(U=f.filter[P[Ne].type].apply(null,P[Ne].matches),U[ie]){for(J=++Ne;J<ae&&!f.relative[P[J].type];J++);return zc(Ne>1&&Rc(qe),Ne>1&&Oo(P.slice(0,Ne-1).concat({value:P[Ne-2].type===" "?"*":""})).replace(ne,"$1"),U,Ne<J&&Lc(P.slice(Ne,J)),J<ae&&Lc(P=P.slice(J)),J<ae&&Oo(P))}qe.push(U)}return Rc(qe)}function LA(P,z){var U=z.length>0,J=P.length>0,ae=function(De,Fe,Ne,_e,it){var qe,We,ot,Le=0,St="0",_n=De&&[],dn=[],Ln=h,br=De||J&&f.find.TAG("*",it),ra=W+=Ln==null?1:Math.random()||.1,bn=br.length;for(it&&(h=Fe==k||Fe||it);St!==bn&&(qe=br[St])!=null;St++){if(J&&qe){for(We=0,!Fe&&qe.ownerDocument!=k&&(uu(qe),Ne=!j);ot=P[We++];)if(ot(qe,Fe||k,Ne)){E.call(_e,qe);break}it&&(W=ra)}U&&((qe=!ot&&qe)&&Le--,De&&_n.push(qe))}if(Le+=St,U&&St!==Le){for(We=0;ot=z[We++];)ot(_n,dn,Fe,Ne);if(De){if(Le>0)for(;St--;)_n[St]||dn[St]||(dn[St]=Z.call(_e));dn=Bo(dn)}E.apply(_e,dn),it&&!De&&dn.length>0&&Le+z.length>1&&d.uniqueSort(_e)}return it&&(W=ra,h=Ln),_n};return U?er(ae):ae}function Mc(P,z){var U,J=[],ae=[],De=Je[P+" "];if(!De){for(z||(z=hi(P)),U=z.length;U--;)De=Lc(z[U]),De[ie]?J.push(De):ae.push(De);De=Je(P,LA(ae,J)),De.selector=P}return De}function Ih(P,z,U,J){var ae,De,Fe,Ne,_e,it=typeof P=="function"&&P,qe=!J&&hi(P=it.selector||P);if(U=U||[],qe.length===1){if(De=qe[0]=qe[0].slice(0),De.length>2&&(Fe=De[0]).type==="ID"&&z.nodeType===9&&j&&f.relative[De[1].type]){if(z=(f.find.ID(Fe.matches[0].replace(Pr,jr),z)||[])[0],z)it&&(z=z.parentNode);else return U;P=P.slice(De.shift().value.length)}for(ae=Dr.needsContext.test(P)?0:De.length;ae--&&(Fe=De[ae],!f.relative[Ne=Fe.type]);)if((_e=f.find[Ne])&&(J=_e(Fe.matches[0].replace(Pr,jr),jc.test(De[0].type)&&Nc(z.parentNode)||z))){if(De.splice(ae,1),P=J.length&&Oo(De),!P)return E.apply(U,J),U;break}}return(it||Mc(P,qe))(J,z,!j,U,!z||jc.test(P)&&Nc(z.parentNode)||z),U}D.sortStable=ie.split("").sort(rn).join("")===ie,uu(),D.sortDetached=na(function(P){return P.compareDocumentPosition(k.createElement("fieldset"))&1}),d.find=Ft,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,Ft.compile=Mc,Ft.select=Ih,Ft.setDocument=uu,Ft.tokenize=hi,Ft.escape=d.escapeSelector,Ft.getText=d.text,Ft.isXML=d.isXMLDoc,Ft.selectors=d.expr,Ft.support=d.support,Ft.uniqueSort=d.uniqueSort})();var me=function(s,f,h){for(var g=[],A=h!==void 0;(s=s[f])&&s.nodeType!==9;)if(s.nodeType===1){if(A&&d(s).is(h))break;g.push(s)}return g},se=function(s,f){for(var h=[];s;s=s.nextSibling)s.nodeType===1&&s!==f&&h.push(s);return h},K=d.expr.match.needsContext,V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ue(s,f,h){return _(f)?d.grep(s,function(g,A){return!!f.call(g,A,g)!==h}):f.nodeType?d.grep(s,function(g){return g===f!==h}):typeof f!="string"?d.grep(s,function(g){return l.call(f,g)>-1!==h}):d.filter(f,s,h)}d.filter=function(s,f,h){var g=f[0];return h&&(s=":not("+s+")"),f.length===1&&g.nodeType===1?d.find.matchesSelector(g,s)?[g]:[]:d.find.matches(s,d.grep(f,function(A){return A.nodeType===1}))},d.fn.extend({find:function(s){var f,h,g=this.length,A=this;if(typeof s!="string")return this.pushStack(d(s).filter(function(){for(f=0;f<g;f++)if(d.contains(A[f],this))return!0}));for(h=this.pushStack([]),f=0;f<g;f++)d.find(s,A[f],h);return g>1?d.uniqueSort(h):h},filter:function(s){return this.pushStack(ue(this,s||[],!1))},not:function(s){return this.pushStack(ue(this,s||[],!0))},is:function(s){return!!ue(this,typeof s=="string"&&K.test(s)?d(s):s||[],!1).length}});var oe,ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ee=d.fn.init=function(s,f,h){var g,A;if(!s)return this;if(h=h||oe,typeof s=="string")if(s[0]==="<"&&s[s.length-1]===">"&&s.length>=3?g=[null,s,null]:g=ce.exec(s),g&&(g[1]||!f))if(g[1]){if(f=f instanceof d?f[0]:f,d.merge(this,d.parseHTML(g[1],f&&f.nodeType?f.ownerDocument||f:w,!0)),V.test(g[1])&&d.isPlainObject(f))for(g in f)_(this[g])?this[g](f[g]):this.attr(g,f[g]);return this}else return A=w.getElementById(g[2]),A&&(this[0]=A,this.length=1),this;else return!f||f.jquery?(f||h).find(s):this.constructor(f).find(s);else{if(s.nodeType)return this[0]=s,this.length=1,this;if(_(s))return h.ready!==void 0?h.ready(s):s(d)}return d.makeArray(s,this)};ee.prototype=d.fn,oe=d(w);var he=/^(?:parents|prev(?:Until|All))/,Ce={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(s){var f=d(s,this),h=f.length;return this.filter(function(){for(var g=0;g<h;g++)if(d.contains(this,f[g]))return!0})},closest:function(s,f){var h,g=0,A=this.length,E=[],k=typeof s!="string"&&d(s);if(!K.test(s)){for(;g<A;g++)for(h=this[g];h&&h!==f;h=h.parentNode)if(h.nodeType<11&&(k?k.index(h)>-1:h.nodeType===1&&d.find.matchesSelector(h,s))){E.push(h);break}}return this.pushStack(E.length>1?d.uniqueSort(E):E)},index:function(s){return s?typeof s=="string"?l.call(d(s),this[0]):l.call(this,s.jquery?s[0]:s):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(s,f){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(s,f))))},addBack:function(s){return this.add(s==null?this.prevObject:this.prevObject.filter(s))}});function Re(s,f){for(;(s=s[f])&&s.nodeType!==1;);return s}d.each({parent:function(s){var f=s.parentNode;return f&&f.nodeType!==11?f:null},parents:function(s){return me(s,"parentNode")},parentsUntil:function(s,f,h){return me(s,"parentNode",h)},next:function(s){return Re(s,"nextSibling")},prev:function(s){return Re(s,"previousSibling")},nextAll:function(s){return me(s,"nextSibling")},prevAll:function(s){return me(s,"previousSibling")},nextUntil:function(s,f,h){return me(s,"nextSibling",h)},prevUntil:function(s,f,h){return me(s,"previousSibling",h)},siblings:function(s){return se((s.parentNode||{}).firstChild,s)},children:function(s){return se(s.firstChild)},contents:function(s){return s.contentDocument!=null&&a(s.contentDocument)?s.contentDocument:(R(s,"template")&&(s=s.content||s),d.merge([],s.childNodes))}},function(s,f){d.fn[s]=function(h,g){var A=d.map(this,f,h);return s.slice(-5)!=="Until"&&(g=h),g&&typeof g=="string"&&(A=d.filter(g,A)),this.length>1&&(Ce[s]||d.uniqueSort(A),he.test(s)&&A.reverse()),this.pushStack(A)}});var ge=/[^\x20\t\r\n\f]+/g;function Te(s){var f={};return d.each(s.match(ge)||[],function(h,g){f[g]=!0}),f}d.Callbacks=function(s){s=typeof s=="string"?Te(s):d.extend({},s);var f,h,g,A,E=[],k=[],N=-1,j=function(){for(A=A||s.once,g=f=!0;k.length;N=-1)for(h=k.shift();++N<E.length;)E[N].apply(h[0],h[1])===!1&&s.stopOnFalse&&(N=E.length,h=!1);s.memory||(h=!1),f=!1,A&&(h?E=[]:E="")},M={add:function(){return E&&(h&&!f&&(N=E.length-1,k.push(h)),(function X(ie){d.each(ie,function(W,fe){_(fe)?(!s.unique||!M.has(fe))&&E.push(fe):fe&&fe.length&&T(fe)!=="string"&&X(fe)})})(arguments),h&&!f&&j()),this},remove:function(){return d.each(arguments,function(X,ie){for(var W;(W=d.inArray(ie,E,W))>-1;)E.splice(W,1),W<=N&&N--}),this},has:function(X){return X?d.inArray(X,E)>-1:E.length>0},empty:function(){return E&&(E=[]),this},disable:function(){return A=k=[],E=h="",this},disabled:function(){return!E},lock:function(){return A=k=[],!h&&!f&&(E=h=""),this},locked:function(){return!!A},fireWith:function(X,ie){return A||(ie=ie||[],ie=[X,ie.slice?ie.slice():ie],k.push(ie),f||j()),this},fire:function(){return M.fireWith(this,arguments),this},fired:function(){return!!g}};return M};function He(s){return s}function nt(s){throw s}function Ge(s,f,h,g){var A;try{s&&_(A=s.promise)?A.call(s).done(f).fail(h):s&&_(A=s.then)?A.call(s,f,h):f.apply(void 0,[s].slice(g))}catch(E){h.apply(void 0,[E])}}d.extend({Deferred:function(s){var f=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],h="pending",g={state:function(){return h},always:function(){return A.done(arguments).fail(arguments),this},catch:function(E){return g.then(null,E)},pipe:function(){var E=arguments;return d.Deferred(function(k){d.each(f,function(N,j){var M=_(E[j[4]])&&E[j[4]];A[j[1]](function(){var X=M&&M.apply(this,arguments);X&&_(X.promise)?X.promise().progress(k.notify).done(k.resolve).fail(k.reject):k[j[0]+"With"](this,M?[X]:arguments)})}),E=null}).promise()},then:function(E,k,N){var j=0;function M(X,ie,W,fe){return function(){var Ue=this,ft=arguments,Je=function(){var rn,mr;if(!(X<j)){if(rn=W.apply(Ue,ft),rn===ie.promise())throw new TypeError("Thenable self-resolution");mr=rn&&(typeof rn=="object"||typeof rn=="function")&&rn.then,_(mr)?fe?mr.call(rn,M(j,ie,He,fe),M(j,ie,nt,fe)):(j++,mr.call(rn,M(j,ie,He,fe),M(j,ie,nt,fe),M(j,ie,He,ie.notifyWith))):(W!==He&&(Ue=void 0,ft=[rn]),(fe||ie.resolveWith)(Ue,ft))}},cn=fe?Je:function(){try{Je()}catch(rn){d.Deferred.exceptionHook&&d.Deferred.exceptionHook(rn,cn.error),X+1>=j&&(W!==nt&&(Ue=void 0,ft=[rn]),ie.rejectWith(Ue,ft))}};X?cn():(d.Deferred.getErrorHook?cn.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&(cn.error=d.Deferred.getStackHook()),n.setTimeout(cn))}}return d.Deferred(function(X){f[0][3].add(M(0,X,_(N)?N:He,X.notifyWith)),f[1][3].add(M(0,X,_(E)?E:He)),f[2][3].add(M(0,X,_(k)?k:nt))}).promise()},promise:function(E){return E!=null?d.extend(E,g):g}},A={};return d.each(f,function(E,k){var N=k[2],j=k[5];g[k[1]]=N.add,j&&N.add(function(){h=j},f[3-E][2].disable,f[3-E][3].disable,f[0][2].lock,f[0][3].lock),N.add(k[3].fire),A[k[0]]=function(){return A[k[0]+"With"](this===A?void 0:this,arguments),this},A[k[0]+"With"]=N.fireWith}),g.promise(A),s&&s.call(A,A),A},when:function(s){var f=arguments.length,h=f,g=Array(h),A=i.call(arguments),E=d.Deferred(),k=function(N){return function(j){g[N]=this,A[N]=arguments.length>1?i.call(arguments):j,--f||E.resolveWith(g,A)}};if(f<=1&&(Ge(s,E.done(k(h)).resolve,E.reject,!f),E.state()==="pending"||_(A[h]&&A[h].then)))return E.then();for(;h--;)Ge(A[h],k(h),E.reject);return E.promise()}});var yt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(s,f){n.console&&n.console.warn&&s&&yt.test(s.name)&&n.console.warn("jQuery.Deferred exception: "+s.message,s.stack,f)},d.readyException=function(s){n.setTimeout(function(){throw s})};var Dt=d.Deferred();d.fn.ready=function(s){return Dt.then(s).catch(function(f){d.readyException(f)}),this},d.extend({isReady:!1,readyWait:1,ready:function(s){(s===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(s!==!0&&--d.readyWait>0)&&Dt.resolveWith(w,[d]))}}),d.ready.then=Dt.then;function mn(){w.removeEventListener("DOMContentLoaded",mn),n.removeEventListener("load",mn),d.ready()}w.readyState==="complete"||w.readyState!=="loading"&&!w.documentElement.doScroll?n.setTimeout(d.ready):(w.addEventListener("DOMContentLoaded",mn),n.addEventListener("load",mn));var Xt=function(s,f,h,g,A,E,k){var N=0,j=s.length,M=h==null;if(T(h)==="object"){A=!0;for(N in h)Xt(s,f,N,h[N],!0,E,k)}else if(g!==void 0&&(A=!0,_(g)||(k=!0),M&&(k?(f.call(s,g),f=null):(M=f,f=function(X,ie,W){return M.call(d(X),W)})),f))for(;N<j;N++)f(s[N],h,k?g:g.call(s[N],N,f(s[N],h)));return A?s:M?f.call(s):j?f(s[0],h):E},un=/^-ms-/,Gn=/-([a-z])/g;function Mt(s,f){return f.toUpperCase()}function Gt(s){return s.replace(un,"ms-").replace(Gn,Mt)}var Jt=function(s){return s.nodeType===1||s.nodeType===9||!+s.nodeType};function en(){this.expando=d.expando+en.uid++}en.uid=1,en.prototype={cache:function(s){var f=s[this.expando];return f||(f={},Jt(s)&&(s.nodeType?s[this.expando]=f:Object.defineProperty(s,this.expando,{value:f,configurable:!0}))),f},set:function(s,f,h){var g,A=this.cache(s);if(typeof f=="string")A[Gt(f)]=h;else for(g in f)A[Gt(g)]=f[g];return A},get:function(s,f){return f===void 0?this.cache(s):s[this.expando]&&s[this.expando][Gt(f)]},access:function(s,f,h){return f===void 0||f&&typeof f=="string"&&h===void 0?this.get(s,f):(this.set(s,f,h),h!==void 0?h:f)},remove:function(s,f){var h,g=s[this.expando];if(g!==void 0){if(f!==void 0)for(Array.isArray(f)?f=f.map(Gt):(f=Gt(f),f=f in g?[f]:f.match(ge)||[]),h=f.length;h--;)delete g[f[h]];(f===void 0||d.isEmptyObject(g))&&(s.nodeType?s[this.expando]=void 0:delete s[this.expando])}},hasData:function(s){var f=s[this.expando];return f!==void 0&&!d.isEmptyObject(f)}};var ke=new en,Ut=new en,Bt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,sr=/[A-Z]/g;function cr(s){return s==="true"?!0:s==="false"?!1:s==="null"?null:s===+s+""?+s:Bt.test(s)?JSON.parse(s):s}function Jr(s,f,h){var g;if(h===void 0&&s.nodeType===1)if(g="data-"+f.replace(sr,"-$&").toLowerCase(),h=s.getAttribute(g),typeof h=="string"){try{h=cr(h)}catch(A){}Ut.set(s,f,h)}else h=void 0;return h}d.extend({hasData:function(s){return Ut.hasData(s)||ke.hasData(s)},data:function(s,f,h){return Ut.access(s,f,h)},removeData:function(s,f){Ut.remove(s,f)},_data:function(s,f,h){return ke.access(s,f,h)},_removeData:function(s,f){ke.remove(s,f)}}),d.fn.extend({data:function(s,f){var h,g,A,E=this[0],k=E&&E.attributes;if(s===void 0){if(this.length&&(A=Ut.get(E),E.nodeType===1&&!ke.get(E,"hasDataAttrs"))){for(h=k.length;h--;)k[h]&&(g=k[h].name,g.indexOf("data-")===0&&(g=Gt(g.slice(5)),Jr(E,g,A[g])));ke.set(E,"hasDataAttrs",!0)}return A}return typeof s=="object"?this.each(function(){Ut.set(this,s)}):Xt(this,function(N){var j;if(E&&N===void 0)return j=Ut.get(E,s),j!==void 0||(j=Jr(E,s),j!==void 0)?j:void 0;this.each(function(){Ut.set(this,s,N)})},null,f,arguments.length>1,null,!0)},removeData:function(s){return this.each(function(){Ut.remove(this,s)})}}),d.extend({queue:function(s,f,h){var g;if(s)return f=(f||"fx")+"queue",g=ke.get(s,f),h&&(!g||Array.isArray(h)?g=ke.access(s,f,d.makeArray(h)):g.push(h)),g||[]},dequeue:function(s,f){f=f||"fx";var h=d.queue(s,f),g=h.length,A=h.shift(),E=d._queueHooks(s,f),k=function(){d.dequeue(s,f)};A==="inprogress"&&(A=h.shift(),g--),A&&(f==="fx"&&h.unshift("inprogress"),delete E.stop,A.call(s,k,E)),!g&&E&&E.empty.fire()},_queueHooks:function(s,f){var h=f+"queueHooks";return ke.get(s,h)||ke.access(s,h,{empty:d.Callbacks("once memory").add(function(){ke.remove(s,[f+"queue",h])})})}}),d.fn.extend({queue:function(s,f){var h=2;return typeof s!="string"&&(f=s,s="fx",h--),arguments.length<h?d.queue(this[0],s):f===void 0?this:this.each(function(){var g=d.queue(this,s,f);d._queueHooks(this,s),s==="fx"&&g[0]!=="inprogress"&&d.dequeue(this,s)})},dequeue:function(s){return this.each(function(){d.dequeue(this,s)})},clearQueue:function(s){return this.queue(s||"fx",[])},promise:function(s,f){var h,g=1,A=d.Deferred(),E=this,k=this.length,N=function(){--g||A.resolveWith(E,[E])};for(typeof s!="string"&&(f=s,s=void 0),s=s||"fx";k--;)h=ke.get(E[k],s+"queueHooks"),h&&h.empty&&(g++,h.empty.add(N));return N(),A.promise(f)}});var Qr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Fn=new RegExp("^(?:([+-])=|)("+Qr+")([a-z%]*)$","i"),$t=["Top","Right","Bottom","Left"],Jn=w.documentElement,Nn=function(s){return d.contains(s.ownerDocument,s)},lr={composed:!0};Jn.getRootNode&&(Nn=function(s){return d.contains(s.ownerDocument,s)||s.getRootNode(lr)===s.ownerDocument});var xn=function(s,f){return s=f||s,s.style.display==="none"||s.style.display===""&&Nn(s)&&d.css(s,"display")==="none"};function fr(s,f,h,g){var A,E,k=20,N=g?function(){return g.cur()}:function(){return d.css(s,f,"")},j=N(),M=h&&h[3]||(d.cssNumber[f]?"":"px"),X=s.nodeType&&(d.cssNumber[f]||M!=="px"&&+j)&&Fn.exec(d.css(s,f));if(X&&X[3]!==M){for(j=j/2,M=M||X[3],X=+j||1;k--;)d.style(s,f,X+M),(1-E)*(1-(E=N()/j||.5))<=0&&(k=0),X=X/E;X=X*2,d.style(s,f,X+M),h=h||[]}return h&&(X=+X||+j||0,A=h[1]?X+(h[1]+1)*h[2]:+h[2],g&&(g.unit=M,g.start=X,g.end=A)),A}var Qn={};function kr(s){var f,h=s.ownerDocument,g=s.nodeName,A=Qn[g];return A||(f=h.body.appendChild(h.createElement(g)),A=d.css(f,"display"),f.parentNode.removeChild(f),A==="none"&&(A="block"),Qn[g]=A,A)}function rt(s,f){for(var h,g,A=[],E=0,k=s.length;E<k;E++)g=s[E],g.style&&(h=g.style.display,f?(h==="none"&&(A[E]=ke.get(g,"display")||null,A[E]||(g.style.display="")),g.style.display===""&&xn(g)&&(A[E]=kr(g))):h!=="none"&&(A[E]="none",ke.set(g,"display",h)));for(E=0;E<k;E++)A[E]!=null&&(s[E].style.display=A[E]);return s}d.fn.extend({show:function(){return rt(this,!0)},hide:function(){return rt(this)},toggle:function(s){return typeof s=="boolean"?s?this.show():this.hide():this.each(function(){xn(this)?d(this).show():d(this).hide()})}});var gn=/^(?:checkbox|radio)$/i,ui=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,dr=/^$|^module$|\/(?:java|ecma)script/i;(function(){var s=w.createDocumentFragment(),f=s.appendChild(w.createElement("div")),h=w.createElement("input");h.setAttribute("type","radio"),h.setAttribute("checked","checked"),h.setAttribute("name","t"),f.appendChild(h),D.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked,f.innerHTML="<textarea>x</textarea>",D.noCloneChecked=!!f.cloneNode(!0).lastChild.defaultValue,f.innerHTML="<option></option>",D.option=!!f.lastChild})();var tn={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,"",""]};tn.tbody=tn.tfoot=tn.colgroup=tn.caption=tn.thead,tn.th=tn.td,D.option||(tn.optgroup=tn.option=[1,"<select multiple='multiple'>","</select>"]);function Zt(s,f){var h;return typeof s.getElementsByTagName!="undefined"?h=s.getElementsByTagName(f||"*"):typeof s.querySelectorAll!="undefined"?h=s.querySelectorAll(f||"*"):h=[],f===void 0||f&&R(s,f)?d.merge([s],h):h}function wr(s,f){for(var h=0,g=s.length;h<g;h++)ke.set(s[h],"globalEval",!f||ke.get(f[h],"globalEval"))}var Fo=/<|&#?\w+;/;function _o(s,f,h,g,A){for(var E,k,N,j,M,X,ie=f.createDocumentFragment(),W=[],fe=0,Ue=s.length;fe<Ue;fe++)if(E=s[fe],E||E===0)if(T(E)==="object")d.merge(W,E.nodeType?[E]:E);else if(!Fo.test(E))W.push(f.createTextNode(E));else{for(k=k||ie.appendChild(f.createElement("div")),N=(ui.exec(E)||["",""])[1].toLowerCase(),j=tn[N]||tn._default,k.innerHTML=j[1]+d.htmlPrefilter(E)+j[2],X=j[0];X--;)k=k.lastChild;d.merge(W,k.childNodes),k=ie.firstChild,k.textContent=""}for(ie.textContent="",fe=0;E=W[fe++];){if(g&&d.inArray(E,g)>-1){A&&A.push(E);continue}if(M=Nn(E),k=Zt(ie.appendChild(E),"script"),M&&wr(k),h)for(X=0;E=k[X++];)dr.test(E.type||"")&&h.push(E)}return ie}var Au=/^([^.]*)(?:\.(.+)|)/;function Sr(){return!0}function xr(){return!1}function ai(s,f,h,g,A,E){var k,N;if(typeof f=="object"){typeof h!="string"&&(g=g||h,h=void 0);for(N in f)ai(s,N,h,g,f[N],E);return s}if(g==null&&A==null?(A=h,g=h=void 0):A==null&&(typeof h=="string"?(A=g,g=void 0):(A=g,g=h,h=void 0)),A===!1)A=xr;else if(!A)return s;return E===1&&(k=A,A=function(j){return d().off(j),k.apply(this,arguments)},A.guid=k.guid||(k.guid=d.guid++)),s.each(function(){d.event.add(this,f,A,g,h)})}d.event={global:{},add:function(s,f,h,g,A){var E,k,N,j,M,X,ie,W,fe,Ue,ft,Je=ke.get(s);if(Jt(s))for(h.handler&&(E=h,h=E.handler,A=E.selector),A&&d.find.matchesSelector(Jn,A),h.guid||(h.guid=d.guid++),(j=Je.events)||(j=Je.events=Object.create(null)),(k=Je.handle)||(k=Je.handle=function(cn){return typeof d!="undefined"&&d.event.triggered!==cn.type?d.event.dispatch.apply(s,arguments):void 0}),f=(f||"").match(ge)||[""],M=f.length;M--;)N=Au.exec(f[M])||[],fe=ft=N[1],Ue=(N[2]||"").split(".").sort(),fe&&(ie=d.event.special[fe]||{},fe=(A?ie.delegateType:ie.bindType)||fe,ie=d.event.special[fe]||{},X=d.extend({type:fe,origType:ft,data:g,handler:h,guid:h.guid,selector:A,needsContext:A&&d.expr.match.needsContext.test(A),namespace:Ue.join(".")},E),(W=j[fe])||(W=j[fe]=[],W.delegateCount=0,(!ie.setup||ie.setup.call(s,g,Ue,k)===!1)&&s.addEventListener&&s.addEventListener(fe,k)),ie.add&&(ie.add.call(s,X),X.handler.guid||(X.handler.guid=h.guid)),A?W.splice(W.delegateCount++,0,X):W.push(X),d.event.global[fe]=!0)},remove:function(s,f,h,g,A){var E,k,N,j,M,X,ie,W,fe,Ue,ft,Je=ke.hasData(s)&&ke.get(s);if(!(!Je||!(j=Je.events))){for(f=(f||"").match(ge)||[""],M=f.length;M--;){if(N=Au.exec(f[M])||[],fe=ft=N[1],Ue=(N[2]||"").split(".").sort(),!fe){for(fe in j)d.event.remove(s,fe+f[M],h,g,!0);continue}for(ie=d.event.special[fe]||{},fe=(g?ie.delegateType:ie.bindType)||fe,W=j[fe]||[],N=N[2]&&new RegExp("(^|\\.)"+Ue.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=E=W.length;E--;)X=W[E],(A||ft===X.origType)&&(!h||h.guid===X.guid)&&(!N||N.test(X.namespace))&&(!g||g===X.selector||g==="**"&&X.selector)&&(W.splice(E,1),X.selector&&W.delegateCount--,ie.remove&&ie.remove.call(s,X));k&&!W.length&&((!ie.teardown||ie.teardown.call(s,Ue,Je.handle)===!1)&&d.removeEvent(s,fe,Je.handle),delete j[fe])}d.isEmptyObject(j)&&ke.remove(s,"handle events")}},dispatch:function(s){var f,h,g,A,E,k,N=new Array(arguments.length),j=d.event.fix(s),M=(ke.get(this,"events")||Object.create(null))[j.type]||[],X=d.event.special[j.type]||{};for(N[0]=j,f=1;f<arguments.length;f++)N[f]=arguments[f];if(j.delegateTarget=this,!(X.preDispatch&&X.preDispatch.call(this,j)===!1)){for(k=d.event.handlers.call(this,j,M),f=0;(A=k[f++])&&!j.isPropagationStopped();)for(j.currentTarget=A.elem,h=0;(E=A.handlers[h++])&&!j.isImmediatePropagationStopped();)(!j.rnamespace||E.namespace===!1||j.rnamespace.test(E.namespace))&&(j.handleObj=E,j.data=E.data,g=((d.event.special[E.origType]||{}).handle||E.handler).apply(A.elem,N),g!==void 0&&(j.result=g)===!1&&(j.preventDefault(),j.stopPropagation()));return X.postDispatch&&X.postDispatch.call(this,j),j.result}},handlers:function(s,f){var h,g,A,E,k,N=[],j=f.delegateCount,M=s.target;if(j&&M.nodeType&&!(s.type==="click"&&s.button>=1)){for(;M!==this;M=M.parentNode||this)if(M.nodeType===1&&!(s.type==="click"&&M.disabled===!0)){for(E=[],k={},h=0;h<j;h++)g=f[h],A=g.selector+" ",k[A]===void 0&&(k[A]=g.needsContext?d(A,this).index(M)>-1:d.find(A,this,null,[M]).length),k[A]&&E.push(g);E.length&&N.push({elem:M,handlers:E})}}return M=this,j<f.length&&N.push({elem:M,handlers:f.slice(j)}),N},addProp:function(s,f){Object.defineProperty(d.Event.prototype,s,{enumerable:!0,configurable:!0,get:_(f)?function(){if(this.originalEvent)return f(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[s]},set:function(h){Object.defineProperty(this,s,{enumerable:!0,configurable:!0,writable:!0,value:h})}})},fix:function(s){return s[d.expando]?s:new d.Event(s)},special:{load:{noBubble:!0},click:{setup:function(s){var f=this||s;return gn.test(f.type)&&f.click&&R(f,"input")&&Eu(f,"click",!0),!1},trigger:function(s){var f=this||s;return gn.test(f.type)&&f.click&&R(f,"input")&&Eu(f,"click"),!0},_default:function(s){var f=s.target;return gn.test(f.type)&&f.click&&R(f,"input")&&ke.get(f,"click")||R(f,"a")}},beforeunload:{postDispatch:function(s){s.result!==void 0&&s.originalEvent&&(s.originalEvent.returnValue=s.result)}}}};function Eu(s,f,h){if(!h){ke.get(s,f)===void 0&&d.event.add(s,f,Sr);return}ke.set(s,f,!1),d.event.add(s,f,{namespace:!1,handler:function(g){var A,E=ke.get(this,f);if(g.isTrigger&1&&this[f]){if(E)(d.event.special[f]||{}).delegateType&&g.stopPropagation();else if(E=i.call(arguments),ke.set(this,f,E),this[f](),A=ke.get(this,f),ke.set(this,f,!1),E!==A)return g.stopImmediatePropagation(),g.preventDefault(),A}else E&&(ke.set(this,f,d.event.trigger(E[0],E.slice(1),this)),g.stopPropagation(),g.isImmediatePropagationStopped=Sr)}})}d.removeEvent=function(s,f,h){s.removeEventListener&&s.removeEventListener(f,h)},d.Event=function(s,f){if(!(this instanceof d.Event))return new d.Event(s,f);s&&s.type?(this.originalEvent=s,this.type=s.type,this.isDefaultPrevented=s.defaultPrevented||s.defaultPrevented===void 0&&s.returnValue===!1?Sr:xr,this.target=s.target&&s.target.nodeType===3?s.target.parentNode:s.target,this.currentTarget=s.currentTarget,this.relatedTarget=s.relatedTarget):this.type=s,f&&d.extend(this,f),this.timeStamp=s&&s.timeStamp||Date.now(),this[d.expando]=!0},d.Event.prototype={constructor:d.Event,isDefaultPrevented:xr,isPropagationStopped:xr,isImmediatePropagationStopped:xr,isSimulated:!1,preventDefault:function(){var s=this.originalEvent;this.isDefaultPrevented=Sr,s&&!this.isSimulated&&s.preventDefault()},stopPropagation:function(){var s=this.originalEvent;this.isPropagationStopped=Sr,s&&!this.isSimulated&&s.stopPropagation()},stopImmediatePropagation:function(){var s=this.originalEvent;this.isImmediatePropagationStopped=Sr,s&&!this.isSimulated&&s.stopImmediatePropagation(),this.stopPropagation()}},d.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},d.event.addProp),d.each({focus:"focusin",blur:"focusout"},function(s,f){function h(g){if(w.documentMode){var A=ke.get(this,"handle"),E=d.event.fix(g);E.type=g.type==="focusin"?"focus":"blur",E.isSimulated=!0,A(g),E.target===E.currentTarget&&A(E)}else d.event.simulate(f,g.target,d.event.fix(g))}d.event.special[s]={setup:function(){var g;if(Eu(this,s,!0),w.documentMode)g=ke.get(this,f),g||this.addEventListener(f,h),ke.set(this,f,(g||0)+1);else return!1},trigger:function(){return Eu(this,s),!0},teardown:function(){var g;if(w.documentMode)g=ke.get(this,f)-1,g?ke.set(this,f,g):(this.removeEventListener(f,h),ke.remove(this,f));else return!1},_default:function(g){return ke.get(g.target,s)},delegateType:f},d.event.special[f]={setup:function(){var g=this.ownerDocument||this.document||this,A=w.documentMode?this:g,E=ke.get(A,f);E||(w.documentMode?this.addEventListener(f,h):g.addEventListener(s,h,!0)),ke.set(A,f,(E||0)+1)},teardown:function(){var g=this.ownerDocument||this.document||this,A=w.documentMode?this:g,E=ke.get(A,f)-1;E?ke.set(A,f,E):(w.documentMode?this.removeEventListener(f,h):g.removeEventListener(s,h,!0),ke.remove(A,f))}}}),d.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(s,f){d.event.special[s]={delegateType:f,bindType:f,handle:function(h){var g,A=this,E=h.relatedTarget,k=h.handleObj;return(!E||E!==A&&!d.contains(A,E))&&(h.type=k.origType,g=k.handler.apply(this,arguments),h.type=f),g}}}),d.fn.extend({on:function(s,f,h,g){return ai(this,s,f,h,g)},one:function(s,f,h,g){return ai(this,s,f,h,g,1)},off:function(s,f,h){var g,A;if(s&&s.preventDefault&&s.handleObj)return g=s.handleObj,d(s.delegateTarget).off(g.namespace?g.origType+"."+g.namespace:g.origType,g.selector,g.handler),this;if(typeof s=="object"){for(A in s)this.off(A,f,s[A]);return this}return(f===!1||typeof f=="function")&&(h=f,f=void 0),h===!1&&(h=xr),this.each(function(){d.event.remove(this,s,h,f)})}});var ii=/<script|<style|<link/i,kc=/checked\s*(?:[^=]|=\s*.checked.)/i,Yn=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Yr(s,f){return R(s,"table")&&R(f.nodeType!==11?f:f.firstChild,"tr")&&d(s).children("tbody")[0]||s}function wc(s){return s.type=(s.getAttribute("type")!==null)+"/"+s.type,s}function Co(s){return(s.type||"").slice(0,5)==="true/"?s.type=s.type.slice(5):s.removeAttribute("type"),s}function Tr(s,f){var h,g,A,E,k,N,j;if(f.nodeType===1){if(ke.hasData(s)&&(E=ke.get(s),j=E.events,j)){ke.remove(f,"handle events");for(A in j)for(h=0,g=j[A].length;h<g;h++)d.event.add(f,A,j[A][h])}Ut.hasData(s)&&(k=Ut.access(s),N=d.extend({},k),Ut.set(f,N))}}function Or(s,f){var h=f.nodeName.toLowerCase();h==="input"&&gn.test(s.type)?f.checked=s.checked:(h==="input"||h==="textarea")&&(f.defaultValue=s.defaultValue)}function Xr(s,f,h,g){f=o(f);var A,E,k,N,j,M,X=0,ie=s.length,W=ie-1,fe=f[0],Ue=_(fe);if(Ue||ie>1&&typeof fe=="string"&&!D.checkClone&&kc.test(fe))return s.each(function(ft){var Je=s.eq(ft);Ue&&(f[0]=fe.call(this,ft,Je.html())),Xr(Je,f,h,g)});if(ie&&(A=_o(f,s[0].ownerDocument,!1,s,g),E=A.firstChild,A.childNodes.length===1&&(A=E),E||g)){for(k=d.map(Zt(A,"script"),wc),N=k.length;X<ie;X++)j=A,X!==W&&(j=d.clone(j,!0,!0),N&&d.merge(k,Zt(j,"script"))),h.call(s[X],j,X);if(N)for(M=k[k.length-1].ownerDocument,d.map(k,Co),X=0;X<N;X++)j=k[X],dr.test(j.type||"")&&!ke.access(j,"globalEval")&&d.contains(M,j)&&(j.src&&(j.type||"").toLowerCase()!=="module"?d._evalUrl&&!j.noModule&&d._evalUrl(j.src,{nonce:j.nonce||j.getAttribute("nonce")},M):S(j.textContent.replace(Yn,""),j,M))}return s}function ko(s,f,h){for(var g,A=f?d.filter(f,s):s,E=0;(g=A[E])!=null;E++)!h&&g.nodeType===1&&d.cleanData(Zt(g)),g.parentNode&&(h&&Nn(g)&&wr(Zt(g,"script")),g.parentNode.removeChild(g));return s}d.extend({htmlPrefilter:function(s){return s},clone:function(s,f,h){var g,A,E,k,N=s.cloneNode(!0),j=Nn(s);if(!D.noCloneChecked&&(s.nodeType===1||s.nodeType===11)&&!d.isXMLDoc(s))for(k=Zt(N),E=Zt(s),g=0,A=E.length;g<A;g++)Or(E[g],k[g]);if(f)if(h)for(E=E||Zt(s),k=k||Zt(N),g=0,A=E.length;g<A;g++)Tr(E[g],k[g]);else Tr(s,N);return k=Zt(N,"script"),k.length>0&&wr(k,!j&&Zt(s,"script")),N},cleanData:function(s){for(var f,h,g,A=d.event.special,E=0;(h=s[E])!==void 0;E++)if(Jt(h)){if(f=h[ke.expando]){if(f.events)for(g in f.events)A[g]?d.event.remove(h,g):d.removeEvent(h,g,f.handle);h[ke.expando]=void 0}h[Ut.expando]&&(h[Ut.expando]=void 0)}}}),d.fn.extend({detach:function(s){return ko(this,s,!0)},remove:function(s){return ko(this,s)},text:function(s){return Xt(this,function(f){return f===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=f)})},null,s,arguments.length)},append:function(){return Xr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Yr(this,s);f.appendChild(s)}})},prepend:function(){return Xr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Yr(this,s);f.insertBefore(s,f.firstChild)}})},before:function(){return Xr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this)})},after:function(){return Xr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling)})},empty:function(){for(var s,f=0;(s=this[f])!=null;f++)s.nodeType===1&&(d.cleanData(Zt(s,!1)),s.textContent="");return this},clone:function(s,f){return s=s==null?!1:s,f=f==null?s:f,this.map(function(){return d.clone(this,s,f)})},html:function(s){return Xt(this,function(f){var h=this[0]||{},g=0,A=this.length;if(f===void 0&&h.nodeType===1)return h.innerHTML;if(typeof f=="string"&&!ii.test(f)&&!tn[(ui.exec(f)||["",""])[1].toLowerCase()]){f=d.htmlPrefilter(f);try{for(;g<A;g++)h=this[g]||{},h.nodeType===1&&(d.cleanData(Zt(h,!1)),h.innerHTML=f);h=0}catch(E){}}h&&this.empty().append(f)},null,s,arguments.length)},replaceWith:function(){var s=[];return Xr(this,arguments,function(f){var h=this.parentNode;d.inArray(this,s)<0&&(d.cleanData(Zt(this)),h&&h.replaceChild(f,this))},s)}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,f){d.fn[s]=function(h){for(var g,A=[],E=d(h),k=E.length-1,N=0;N<=k;N++)g=N===k?this:this.clone(!0),d(E[N])[f](g),c.apply(A,g.get());return this.pushStack(A)}});var ea=new RegExp("^("+Qr+")(?!px)[a-z%]+$","i"),oi=/^--/,Fu=function(s){var f=s.ownerDocument.defaultView;return(!f||!f.opener)&&(f=n),f.getComputedStyle(s)},si=function(s,f,h){var g,A,E={};for(A in f)E[A]=s.style[A],s.style[A]=f[A];g=h.call(s);for(A in f)s.style[A]=E[A];return g},wo=new RegExp($t.join("|"),"i");(function(){function s(){if(M){j.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",M.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Jn.appendChild(j).appendChild(M);var X=n.getComputedStyle(M);h=X.top!=="1%",N=f(X.marginLeft)===12,M.style.right="60%",E=f(X.right)===36,g=f(X.width)===36,M.style.position="absolute",A=f(M.offsetWidth/3)===12,Jn.removeChild(j),M=null}}function f(X){return Math.round(parseFloat(X))}var h,g,A,E,k,N,j=w.createElement("div"),M=w.createElement("div");M.style&&(M.style.backgroundClip="content-box",M.cloneNode(!0).style.backgroundClip="",D.clearCloneStyle=M.style.backgroundClip==="content-box",d.extend(D,{boxSizingReliable:function(){return s(),g},pixelBoxStyles:function(){return s(),E},pixelPosition:function(){return s(),h},reliableMarginLeft:function(){return s(),N},scrollboxSize:function(){return s(),A},reliableTrDimensions:function(){var X,ie,W,fe;return k==null&&(X=w.createElement("table"),ie=w.createElement("tr"),W=w.createElement("div"),X.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ie.style.cssText="box-sizing:content-box;border:1px solid",ie.style.height="1px",W.style.height="9px",W.style.display="block",Jn.appendChild(X).appendChild(ie).appendChild(W),fe=n.getComputedStyle(ie),k=parseInt(fe.height,10)+parseInt(fe.borderTopWidth,10)+parseInt(fe.borderBottomWidth,10)===ie.offsetHeight,Jn.removeChild(X)),k}}))})();function le(s,f,h){var g,A,E,k,N=oi.test(f),j=s.style;return h=h||Fu(s),h&&(k=h.getPropertyValue(f)||h[f],N&&k&&(k=k.replace(ne,"$1")||void 0),k===""&&!Nn(s)&&(k=d.style(s,f)),!D.pixelBoxStyles()&&ea.test(k)&&wo.test(f)&&(g=j.width,A=j.minWidth,E=j.maxWidth,j.minWidth=j.maxWidth=j.width=k,k=h.width,j.width=g,j.minWidth=A,j.maxWidth=E)),k!==void 0?k+"":k}function Ie(s,f){return{get:function(){if(s()){delete this.get;return}return(this.get=f).apply(this,arguments)}}}var Ve=["Webkit","Moz","ms"],Ct=w.createElement("div").style,At={};function ln(s){for(var f=s[0].toUpperCase()+s.slice(1),h=Ve.length;h--;)if(s=Ve[h]+f,s in Ct)return s}function yn(s){var f=d.cssProps[s]||At[s];return f||(s in Ct?s:At[s]=ln(s)||s)}var Dn=/^(none|table(?!-c[ea]).+)/,Ir={position:"absolute",visibility:"hidden",display:"block"},eu={letterSpacing:"0",fontWeight:"400"};function qt(s,f,h){var g=Fn.exec(f);return g?Math.max(0,g[2]-(h||0))+(g[3]||"px"):f}function Ht(s,f,h,g,A,E){var k=f==="width"?1:0,N=0,j=0,M=0;if(h===(g?"border":"content"))return 0;for(;k<4;k+=2)h==="margin"&&(M+=d.css(s,h+$t[k],!0,A)),g?(h==="content"&&(j-=d.css(s,"padding"+$t[k],!0,A)),h!=="margin"&&(j-=d.css(s,"border"+$t[k]+"Width",!0,A))):(j+=d.css(s,"padding"+$t[k],!0,A),h!=="padding"?j+=d.css(s,"border"+$t[k]+"Width",!0,A):N+=d.css(s,"border"+$t[k]+"Width",!0,A));return!g&&E>=0&&(j+=Math.max(0,Math.ceil(s["offset"+f[0].toUpperCase()+f.slice(1)]-E-j-N-.5))||0),j+M}function Br(s,f,h){var g=Fu(s),A=!D.boxSizingReliable()||h,E=A&&d.css(s,"boxSizing",!1,g)==="border-box",k=E,N=le(s,f,g),j="offset"+f[0].toUpperCase()+f.slice(1);if(ea.test(N)){if(!h)return N;N="auto"}return(!D.boxSizingReliable()&&E||!D.reliableTrDimensions()&&R(s,"tr")||N==="auto"||!parseFloat(N)&&d.css(s,"display",!1,g)==="inline")&&s.getClientRects().length&&(E=d.css(s,"boxSizing",!1,g)==="border-box",k=j in s,k&&(N=s[j])),N=parseFloat(N)||0,N+Ht(s,f,h||(E?"border":"content"),k,g,N)+"px"}d.extend({cssHooks:{opacity:{get:function(s,f){if(f){var h=le(s,"opacity");return h===""?"1":h}}}},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(s,f,h,g){if(!(!s||s.nodeType===3||s.nodeType===8||!s.style)){var A,E,k,N=Gt(f),j=oi.test(f),M=s.style;if(j||(f=yn(N)),k=d.cssHooks[f]||d.cssHooks[N],h!==void 0){if(E=typeof h,E==="string"&&(A=Fn.exec(h))&&A[1]&&(h=fr(s,f,A),E="number"),h==null||h!==h)return;E==="number"&&!j&&(h+=A&&A[3]||(d.cssNumber[N]?"":"px")),!D.clearCloneStyle&&h===""&&f.indexOf("background")===0&&(M[f]="inherit"),(!k||!("set"in k)||(h=k.set(s,h,g))!==void 0)&&(j?M.setProperty(f,h):M[f]=h)}else return k&&"get"in k&&(A=k.get(s,!1,g))!==void 0?A:M[f]}},css:function(s,f,h,g){var A,E,k,N=Gt(f),j=oi.test(f);return j||(f=yn(N)),k=d.cssHooks[f]||d.cssHooks[N],k&&"get"in k&&(A=k.get(s,!0,h)),A===void 0&&(A=le(s,f,g)),A==="normal"&&f in eu&&(A=eu[f]),h===""||h?(E=parseFloat(A),h===!0||isFinite(E)?E||0:A):A}}),d.each(["height","width"],function(s,f){d.cssHooks[f]={get:function(h,g,A){if(g)return Dn.test(d.css(h,"display"))&&(!h.getClientRects().length||!h.getBoundingClientRect().width)?si(h,Ir,function(){return Br(h,f,A)}):Br(h,f,A)},set:function(h,g,A){var E,k=Fu(h),N=!D.scrollboxSize()&&k.position==="absolute",j=N||A,M=j&&d.css(h,"boxSizing",!1,k)==="border-box",X=A?Ht(h,f,A,M,k):0;return M&&N&&(X-=Math.ceil(h["offset"+f[0].toUpperCase()+f.slice(1)]-parseFloat(k[f])-Ht(h,f,"border",!1,k)-.5)),X&&(E=Fn.exec(g))&&(E[3]||"px")!=="px"&&(h.style[f]=g,g=d.css(h,f)),qt(h,g,X)}}}),d.cssHooks.marginLeft=Ie(D.reliableMarginLeft,function(s,f){if(f)return(parseFloat(le(s,"marginLeft"))||s.getBoundingClientRect().left-si(s,{marginLeft:0},function(){return s.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(s,f){d.cssHooks[s+f]={expand:function(h){for(var g=0,A={},E=typeof h=="string"?h.split(" "):[h];g<4;g++)A[s+$t[g]+f]=E[g]||E[g-2]||E[0];return A}},s!=="margin"&&(d.cssHooks[s+f].set=qt)}),d.fn.extend({css:function(s,f){return Xt(this,function(h,g,A){var E,k,N={},j=0;if(Array.isArray(g)){for(E=Fu(h),k=g.length;j<k;j++)N[g[j]]=d.css(h,g[j],!1,E);return N}return A!==void 0?d.style(h,g,A):d.css(h,g)},s,f,arguments.length>1)}});function Nt(s,f,h,g,A){return new Nt.prototype.init(s,f,h,g,A)}d.Tween=Nt,Nt.prototype={constructor:Nt,init:function(s,f,h,g,A,E){this.elem=s,this.prop=h,this.easing=A||d.easing._default,this.options=f,this.start=this.now=this.cur(),this.end=g,this.unit=E||(d.cssNumber[h]?"":"px")},cur:function(){var s=Nt.propHooks[this.prop];return s&&s.get?s.get(this):Nt.propHooks._default.get(this)},run:function(s){var f,h=Nt.propHooks[this.prop];return this.options.duration?this.pos=f=d.easing[this.easing](s,this.options.duration*s,0,1,this.options.duration):this.pos=f=s,this.now=(this.end-this.start)*f+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),h&&h.set?h.set(this):Nt.propHooks._default.set(this),this}},Nt.prototype.init.prototype=Nt.prototype,Nt.propHooks={_default:{get:function(s){var f;return s.elem.nodeType!==1||s.elem[s.prop]!=null&&s.elem.style[s.prop]==null?s.elem[s.prop]:(f=d.css(s.elem,s.prop,""),!f||f==="auto"?0:f)},set:function(s){d.fx.step[s.prop]?d.fx.step[s.prop](s):s.elem.nodeType===1&&(d.cssHooks[s.prop]||s.elem.style[yn(s.prop)]!=null)?d.style(s.elem,s.prop,s.now+s.unit):s.elem[s.prop]=s.now}}},Nt.propHooks.scrollTop=Nt.propHooks.scrollLeft={set:function(s){s.elem.nodeType&&s.elem.parentNode&&(s.elem[s.prop]=s.now)}},d.easing={linear:function(s){return s},swing:function(s){return .5-Math.cos(s*Math.PI)/2},_default:"swing"},d.fx=Nt.prototype.init,d.fx.step={};var fn,nn,_u=/^(?:toggle|show|hide)$/,pr=/queueHooks$/;function ci(){nn&&(w.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ci):n.setTimeout(ci,d.fx.interval),d.fx.tick())}function So(){return n.setTimeout(function(){fn=void 0}),fn=Date.now()}function ta(s,f){var h,g=0,A={height:s};for(f=f?1:0;g<4;g+=2-f)h=$t[g],A["margin"+h]=A["padding"+h]=s;return f&&(A.opacity=A.width=s),A}function xo(s,f,h){for(var g,A=(ut.tweeners[f]||[]).concat(ut.tweeners["*"]),E=0,k=A.length;E<k;E++)if(g=A[E].call(h,f,s))return g}function Sc(s,f,h){var g,A,E,k,N,j,M,X,ie="width"in f||"height"in f,W=this,fe={},Ue=s.style,ft=s.nodeType&&xn(s),Je=ke.get(s,"fxshow");h.queue||(k=d._queueHooks(s,"fx"),k.unqueued==null&&(k.unqueued=0,N=k.empty.fire,k.empty.fire=function(){k.unqueued||N()}),k.unqueued++,W.always(function(){W.always(function(){k.unqueued--,d.queue(s,"fx").length||k.empty.fire()})}));for(g in f)if(A=f[g],_u.test(A)){if(delete f[g],E=E||A==="toggle",A===(ft?"hide":"show"))if(A==="show"&&Je&&Je[g]!==void 0)ft=!0;else continue;fe[g]=Je&&Je[g]||d.style(s,g)}if(j=!d.isEmptyObject(f),!(!j&&d.isEmptyObject(fe))){ie&&s.nodeType===1&&(h.overflow=[Ue.overflow,Ue.overflowX,Ue.overflowY],M=Je&&Je.display,M==null&&(M=ke.get(s,"display")),X=d.css(s,"display"),X==="none"&&(M?X=M:(rt([s],!0),M=s.style.display||M,X=d.css(s,"display"),rt([s]))),(X==="inline"||X==="inline-block"&&M!=null)&&d.css(s,"float")==="none"&&(j||(W.done(function(){Ue.display=M}),M==null&&(X=Ue.display,M=X==="none"?"":X)),Ue.display="inline-block")),h.overflow&&(Ue.overflow="hidden",W.always(function(){Ue.overflow=h.overflow[0],Ue.overflowX=h.overflow[1],Ue.overflowY=h.overflow[2]})),j=!1;for(g in fe)j||(Je?"hidden"in Je&&(ft=Je.hidden):Je=ke.access(s,"fxshow",{display:M}),E&&(Je.hidden=!ft),ft&&rt([s],!0),W.done(function(){ft||rt([s]),ke.remove(s,"fxshow");for(g in fe)d.style(s,g,fe[g])})),j=xo(ft?Je[g]:0,g,W),g in Je||(Je[g]=j.start,ft&&(j.end=j.start,j.start=0))}}function kt(s,f){var h,g,A,E,k;for(h in s)if(g=Gt(h),A=f[g],E=s[h],Array.isArray(E)&&(A=E[1],E=s[h]=E[0]),h!==g&&(s[g]=E,delete s[h]),k=d.cssHooks[g],k&&"expand"in k){E=k.expand(E),delete s[g];for(h in E)h in s||(s[h]=E[h],f[h]=A)}else f[g]=A}function ut(s,f,h){var g,A,E=0,k=ut.prefilters.length,N=d.Deferred().always(function(){delete j.elem}),j=function(){if(A)return!1;for(var ie=fn||So(),W=Math.max(0,M.startTime+M.duration-ie),fe=W/M.duration||0,Ue=1-fe,ft=0,Je=M.tweens.length;ft<Je;ft++)M.tweens[ft].run(Ue);return N.notifyWith(s,[M,Ue,W]),Ue<1&&Je?W:(Je||N.notifyWith(s,[M,1,0]),N.resolveWith(s,[M]),!1)},M=N.promise({elem:s,props:d.extend({},f),opts:d.extend(!0,{specialEasing:{},easing:d.easing._default},h),originalProperties:f,originalOptions:h,startTime:fn||So(),duration:h.duration,tweens:[],createTween:function(ie,W){var fe=d.Tween(s,M.opts,ie,W,M.opts.specialEasing[ie]||M.opts.easing);return M.tweens.push(fe),fe},stop:function(ie){var W=0,fe=ie?M.tweens.length:0;if(A)return this;for(A=!0;W<fe;W++)M.tweens[W].run(1);return ie?(N.notifyWith(s,[M,1,0]),N.resolveWith(s,[M,ie])):N.rejectWith(s,[M,ie]),this}}),X=M.props;for(kt(X,M.opts.specialEasing);E<k;E++)if(g=ut.prefilters[E].call(M,s,X,M.opts),g)return _(g.stop)&&(d._queueHooks(M.elem,M.opts.queue).stop=g.stop.bind(g)),g;return d.map(X,xo,M),_(M.opts.start)&&M.opts.start.call(s,M),M.progress(M.opts.progress).done(M.opts.done,M.opts.complete).fail(M.opts.fail).always(M.opts.always),d.fx.timer(d.extend(j,{elem:s,anim:M,queue:M.opts.queue})),M}d.Animation=d.extend(ut,{tweeners:{"*":[function(s,f){var h=this.createTween(s,f);return fr(h.elem,s,Fn.exec(f),h),h}]},tweener:function(s,f){_(s)?(f=s,s=["*"]):s=s.match(ge);for(var h,g=0,A=s.length;g<A;g++)h=s[g],ut.tweeners[h]=ut.tweeners[h]||[],ut.tweeners[h].unshift(f)},prefilters:[Sc],prefilter:function(s,f){f?ut.prefilters.unshift(s):ut.prefilters.push(s)}}),d.speed=function(s,f,h){var g=s&&typeof s=="object"?d.extend({},s):{complete:h||!h&&f||_(s)&&s,duration:s,easing:h&&f||f&&!_(f)&&f};return d.fx.off?g.duration=0:typeof g.duration!="number"&&(g.duration in d.fx.speeds?g.duration=d.fx.speeds[g.duration]:g.duration=d.fx.speeds._default),(g.queue==null||g.queue===!0)&&(g.queue="fx"),g.old=g.complete,g.complete=function(){_(g.old)&&g.old.call(this),g.queue&&d.dequeue(this,g.queue)},g},d.fn.extend({fadeTo:function(s,f,h,g){return this.filter(xn).css("opacity",0).show().end().animate({opacity:f},s,h,g)},animate:function(s,f,h,g){var A=d.isEmptyObject(s),E=d.speed(f,h,g),k=function(){var N=ut(this,d.extend({},s),E);(A||ke.get(this,"finish"))&&N.stop(!0)};return k.finish=k,A||E.queue===!1?this.each(k):this.queue(E.queue,k)},stop:function(s,f,h){var g=function(A){var E=A.stop;delete A.stop,E(h)};return typeof s!="string"&&(h=f,f=s,s=void 0),f&&this.queue(s||"fx",[]),this.each(function(){var A=!0,E=s!=null&&s+"queueHooks",k=d.timers,N=ke.get(this);if(E)N[E]&&N[E].stop&&g(N[E]);else for(E in N)N[E]&&N[E].stop&&pr.test(E)&&g(N[E]);for(E=k.length;E--;)k[E].elem===this&&(s==null||k[E].queue===s)&&(k[E].anim.stop(h),A=!1,k.splice(E,1));(A||!h)&&d.dequeue(this,s)})},finish:function(s){return s!==!1&&(s=s||"fx"),this.each(function(){var f,h=ke.get(this),g=h[s+"queue"],A=h[s+"queueHooks"],E=d.timers,k=g?g.length:0;for(h.finish=!0,d.queue(this,s,[]),A&&A.stop&&A.stop.call(this,!0),f=E.length;f--;)E[f].elem===this&&E[f].queue===s&&(E[f].anim.stop(!0),E.splice(f,1));for(f=0;f<k;f++)g[f]&&g[f].finish&&g[f].finish.call(this);delete h.finish})}}),d.each(["toggle","show","hide"],function(s,f){var h=d.fn[f];d.fn[f]=function(g,A,E){return g==null||typeof g=="boolean"?h.apply(this,arguments):this.animate(ta(f,!0),g,A,E)}}),d.each({slideDown:ta("show"),slideUp:ta("hide"),slideToggle:ta("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(s,f){d.fn[s]=function(h,g,A){return this.animate(f,h,g,A)}}),d.timers=[],d.fx.tick=function(){var s,f=0,h=d.timers;for(fn=Date.now();f<h.length;f++)s=h[f],!s()&&h[f]===s&&h.splice(f--,1);h.length||d.fx.stop(),fn=void 0},d.fx.timer=function(s){d.timers.push(s),d.fx.start()},d.fx.interval=13,d.fx.start=function(){nn||(nn=!0,ci())},d.fx.stop=function(){nn=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(s,f){return s=d.fx&&d.fx.speeds[s]||s,f=f||"fx",this.queue(f,function(h,g){var A=n.setTimeout(h,s);g.stop=function(){n.clearTimeout(A)}})},(function(){var s=w.createElement("input"),f=w.createElement("select"),h=f.appendChild(w.createElement("option"));s.type="checkbox",D.checkOn=s.value!=="",D.optSelected=h.selected,s=w.createElement("input"),s.value="t",s.type="radio",D.radioValue=s.value==="t"})();var wt,Wt=d.expr.attrHandle;d.fn.extend({attr:function(s,f){return Xt(this,d.attr,s,f,arguments.length>1)},removeAttr:function(s){return this.each(function(){d.removeAttr(this,s)})}}),d.extend({attr:function(s,f,h){var g,A,E=s.nodeType;if(!(E===3||E===8||E===2)){if(typeof s.getAttribute=="undefined")return d.prop(s,f,h);if((E!==1||!d.isXMLDoc(s))&&(A=d.attrHooks[f.toLowerCase()]||(d.expr.match.bool.test(f)?wt:void 0)),h!==void 0){if(h===null){d.removeAttr(s,f);return}return A&&"set"in A&&(g=A.set(s,h,f))!==void 0?g:(s.setAttribute(f,h+""),h)}return A&&"get"in A&&(g=A.get(s,f))!==null?g:(g=d.find.attr(s,f),g==null?void 0:g)}},attrHooks:{type:{set:function(s,f){if(!D.radioValue&&f==="radio"&&R(s,"input")){var h=s.value;return s.setAttribute("type",f),h&&(s.value=h),f}}}},removeAttr:function(s,f){var h,g=0,A=f&&f.match(ge);if(A&&s.nodeType===1)for(;h=A[g++];)s.removeAttribute(h)}}),wt={set:function(s,f,h){return f===!1?d.removeAttr(s,h):s.setAttribute(h,h),h}},d.each(d.expr.match.bool.source.match(/\w+/g),function(s,f){var h=Wt[f]||d.find.attr;Wt[f]=function(g,A,E){var k,N,j=A.toLowerCase();return E||(N=Wt[j],Wt[j]=k,k=h(g,A,E)!=null?j:null,Wt[j]=N),k}});var Et=/^(?:input|select|textarea|button)$/i,at=/^(?:a|area)$/i;d.fn.extend({prop:function(s,f){return Xt(this,d.prop,s,f,arguments.length>1)},removeProp:function(s){return this.each(function(){delete this[d.propFix[s]||s]})}}),d.extend({prop:function(s,f,h){var g,A,E=s.nodeType;if(!(E===3||E===8||E===2))return(E!==1||!d.isXMLDoc(s))&&(f=d.propFix[f]||f,A=d.propHooks[f]),h!==void 0?A&&"set"in A&&(g=A.set(s,h,f))!==void 0?g:s[f]=h:A&&"get"in A&&(g=A.get(s,f))!==null?g:s[f]},propHooks:{tabIndex:{get:function(s){var f=d.find.attr(s,"tabindex");return f?parseInt(f,10):Et.test(s.nodeName)||at.test(s.nodeName)&&s.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),D.optSelected||(d.propHooks.selected={get:function(s){var f=s.parentNode;return f&&f.parentNode&&f.parentNode.selectedIndex,null},set:function(s){var f=s.parentNode;f&&(f.selectedIndex,f.parentNode&&f.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function Tn(s){var f=s.match(ge)||[];return f.join(" ")}function Rn(s){return s.getAttribute&&s.getAttribute("class")||""}function tu(s){return Array.isArray(s)?s:typeof s=="string"?s.match(ge)||[]:[]}d.fn.extend({addClass:function(s){var f,h,g,A,E,k;return _(s)?this.each(function(N){d(this).addClass(s.call(this,N,Rn(this)))}):(f=tu(s),f.length?this.each(function(){if(g=Rn(this),h=this.nodeType===1&&" "+Tn(g)+" ",h){for(E=0;E<f.length;E++)A=f[E],h.indexOf(" "+A+" ")<0&&(h+=A+" ");k=Tn(h),g!==k&&this.setAttribute("class",k)}}):this)},removeClass:function(s){var f,h,g,A,E,k;return _(s)?this.each(function(N){d(this).removeClass(s.call(this,N,Rn(this)))}):arguments.length?(f=tu(s),f.length?this.each(function(){if(g=Rn(this),h=this.nodeType===1&&" "+Tn(g)+" ",h){for(E=0;E<f.length;E++)for(A=f[E];h.indexOf(" "+A+" ")>-1;)h=h.replace(" "+A+" "," ");k=Tn(h),g!==k&&this.setAttribute("class",k)}}):this):this.attr("class","")},toggleClass:function(s,f){var h,g,A,E,k=typeof s,N=k==="string"||Array.isArray(s);return _(s)?this.each(function(j){d(this).toggleClass(s.call(this,j,Rn(this),f),f)}):typeof f=="boolean"&&N?f?this.addClass(s):this.removeClass(s):(h=tu(s),this.each(function(){if(N)for(E=d(this),A=0;A<h.length;A++)g=h[A],E.hasClass(g)?E.removeClass(g):E.addClass(g);else(s===void 0||k==="boolean")&&(g=Rn(this),g&&ke.set(this,"__className__",g),this.setAttribute&&this.setAttribute("class",g||s===!1?"":ke.get(this,"__className__")||""))}))},hasClass:function(s){var f,h,g=0;for(f=" "+s+" ";h=this[g++];)if(h.nodeType===1&&(" "+Tn(Rn(h))+" ").indexOf(f)>-1)return!0;return!1}});var li=/\r/g;d.fn.extend({val:function(s){var f,h,g,A=this[0];return arguments.length?(g=_(s),this.each(function(E){var k;this.nodeType===1&&(g?k=s.call(this,E,d(this).val()):k=s,k==null?k="":typeof k=="number"?k+="":Array.isArray(k)&&(k=d.map(k,function(N){return N==null?"":N+""})),f=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!f||!("set"in f)||f.set(this,k,"value")===void 0)&&(this.value=k))})):A?(f=d.valHooks[A.type]||d.valHooks[A.nodeName.toLowerCase()],f&&"get"in f&&(h=f.get(A,"value"))!==void 0?h:(h=A.value,typeof h=="string"?h.replace(li,""):h==null?"":h)):void 0}}),d.extend({valHooks:{option:{get:function(s){var f=d.find.attr(s,"value");return f!=null?f:Tn(d.text(s))}},select:{get:function(s){var f,h,g,A=s.options,E=s.selectedIndex,k=s.type==="select-one",N=k?null:[],j=k?E+1:A.length;for(E<0?g=j:g=k?E:0;g<j;g++)if(h=A[g],(h.selected||g===E)&&!h.disabled&&(!h.parentNode.disabled||!R(h.parentNode,"optgroup"))){if(f=d(h).val(),k)return f;N.push(f)}return N},set:function(s,f){for(var h,g,A=s.options,E=d.makeArray(f),k=A.length;k--;)g=A[k],(g.selected=d.inArray(d.valHooks.option.get(g),E)>-1)&&(h=!0);return h||(s.selectedIndex=-1),E}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(s,f){if(Array.isArray(f))return s.checked=d.inArray(d(s).val(),f)>-1}},D.checkOn||(d.valHooks[this].get=function(s){return s.getAttribute("value")===null?"on":s.value})});var Xn=n.location,hr={guid:Date.now()},vr=/\?/;d.parseXML=function(s){var f,h;if(!s||typeof s!="string")return null;try{f=new n.DOMParser().parseFromString(s,"text/xml")}catch(g){}return h=f&&f.getElementsByTagName("parsererror")[0],(!f||h)&&d.error("Invalid XML: "+(h?d.map(h.childNodes,function(g){return g.textContent}).join(`
|
|
4
|
+
`):s)),f};var Eh=/^(?:focusinfocus|focusoutblur)$/,Fh=function(s){s.stopPropagation()};d.extend(d.event,{trigger:function(s,f,h,g){var A,E,k,N,j,M,X,ie,W=[h||w],fe=v.call(s,"type")?s.type:s,Ue=v.call(s,"namespace")?s.namespace.split("."):[];if(E=ie=k=h=h||w,!(h.nodeType===3||h.nodeType===8)&&!Eh.test(fe+d.event.triggered)&&(fe.indexOf(".")>-1&&(Ue=fe.split("."),fe=Ue.shift(),Ue.sort()),j=fe.indexOf(":")<0&&"on"+fe,s=s[d.expando]?s:new d.Event(fe,typeof s=="object"&&s),s.isTrigger=g?2:3,s.namespace=Ue.join("."),s.rnamespace=s.namespace?new RegExp("(^|\\.)"+Ue.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,s.result=void 0,s.target||(s.target=h),f=f==null?[s]:d.makeArray(f,[s]),X=d.event.special[fe]||{},!(!g&&X.trigger&&X.trigger.apply(h,f)===!1))){if(!g&&!X.noBubble&&!O(h)){for(N=X.delegateType||fe,Eh.test(N+fe)||(E=E.parentNode);E;E=E.parentNode)W.push(E),k=E;k===(h.ownerDocument||w)&&W.push(k.defaultView||k.parentWindow||n)}for(A=0;(E=W[A++])&&!s.isPropagationStopped();)ie=E,s.type=A>1?N:X.bindType||fe,M=(ke.get(E,"events")||Object.create(null))[s.type]&&ke.get(E,"handle"),M&&M.apply(E,f),M=j&&E[j],M&&M.apply&&Jt(E)&&(s.result=M.apply(E,f),s.result===!1&&s.preventDefault());return s.type=fe,!g&&!s.isDefaultPrevented()&&(!X._default||X._default.apply(W.pop(),f)===!1)&&Jt(h)&&j&&_(h[fe])&&!O(h)&&(k=h[j],k&&(h[j]=null),d.event.triggered=fe,s.isPropagationStopped()&&ie.addEventListener(fe,Fh),h[fe](),s.isPropagationStopped()&&ie.removeEventListener(fe,Fh),d.event.triggered=void 0,k&&(h[j]=k)),s.result}},simulate:function(s,f,h){var g=d.extend(new d.Event,h,{type:s,isSimulated:!0});d.event.trigger(g,null,f)}}),d.fn.extend({trigger:function(s,f){return this.each(function(){d.event.trigger(s,f,this)})},triggerHandler:function(s,f){var h=this[0];if(h)return d.event.trigger(s,f,h,!0)}});var gA=/\[\]$/,_h=/\r?\n/g,yA=/^(?:submit|button|image|reset|file)$/i,DA=/^(?:input|select|textarea|keygen)/i;function xc(s,f,h,g){var A;if(Array.isArray(f))d.each(f,function(E,k){h||gA.test(s)?g(s,k):xc(s+"["+(typeof k=="object"&&k!=null?E:"")+"]",k,h,g)});else if(!h&&T(f)==="object")for(A in f)xc(s+"["+A+"]",f[A],h,g);else g(s,f)}d.param=function(s,f){var h,g=[],A=function(E,k){var N=_(k)?k():k;g[g.length]=encodeURIComponent(E)+"="+encodeURIComponent(N==null?"":N)};if(s==null)return"";if(Array.isArray(s)||s.jquery&&!d.isPlainObject(s))d.each(s,function(){A(this.name,this.value)});else for(h in s)xc(h,s[h],f,A);return g.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var s=d.prop(this,"elements");return s?d.makeArray(s):this}).filter(function(){var s=this.type;return this.name&&!d(this).is(":disabled")&&DA.test(this.nodeName)&&!yA.test(s)&&(this.checked||!gn.test(s))}).map(function(s,f){var h=d(this).val();return h==null?null:Array.isArray(h)?d.map(h,function(g){return{name:f.name,value:g.replace(_h,`\r
|
|
5
|
+
`)}}):{name:f.name,value:h.replace(_h,`\r
|
|
6
|
+
`)}}).get()}});var bA=/%20/g,AA=/#.*$/,EA=/([?&])_=[^&]*/,FA=/^(.*?):[ \t]*([^\r\n]*)$/mg,_A=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,CA=/^(?:GET|HEAD)$/,kA=/^\/\//,Ch={},Tc={},kh="*/".concat("*"),Oc=w.createElement("a");Oc.href=Xn.href;function wh(s){return function(f,h){typeof f!="string"&&(h=f,f="*");var g,A=0,E=f.toLowerCase().match(ge)||[];if(_(h))for(;g=E[A++];)g[0]==="+"?(g=g.slice(1)||"*",(s[g]=s[g]||[]).unshift(h)):(s[g]=s[g]||[]).push(h)}}function Sh(s,f,h,g){var A={},E=s===Tc;function k(N){var j;return A[N]=!0,d.each(s[N]||[],function(M,X){var ie=X(f,h,g);if(typeof ie=="string"&&!E&&!A[ie])return f.dataTypes.unshift(ie),k(ie),!1;if(E)return!(j=ie)}),j}return k(f.dataTypes[0])||!A["*"]&&k("*")}function Ic(s,f){var h,g,A=d.ajaxSettings.flatOptions||{};for(h in f)f[h]!==void 0&&((A[h]?s:g||(g={}))[h]=f[h]);return g&&d.extend(!0,s,g),s}function wA(s,f,h){for(var g,A,E,k,N=s.contents,j=s.dataTypes;j[0]==="*";)j.shift(),g===void 0&&(g=s.mimeType||f.getResponseHeader("Content-Type"));if(g){for(A in N)if(N[A]&&N[A].test(g)){j.unshift(A);break}}if(j[0]in h)E=j[0];else{for(A in h){if(!j[0]||s.converters[A+" "+j[0]]){E=A;break}k||(k=A)}E=E||k}if(E)return E!==j[0]&&j.unshift(E),h[E]}function SA(s,f,h,g){var A,E,k,N,j,M={},X=s.dataTypes.slice();if(X[1])for(k in s.converters)M[k.toLowerCase()]=s.converters[k];for(E=X.shift();E;)if(s.responseFields[E]&&(h[s.responseFields[E]]=f),!j&&g&&s.dataFilter&&(f=s.dataFilter(f,s.dataType)),j=E,E=X.shift(),E){if(E==="*")E=j;else if(j!=="*"&&j!==E){if(k=M[j+" "+E]||M["* "+E],!k){for(A in M)if(N=A.split(" "),N[1]===E&&(k=M[j+" "+N[0]]||M["* "+N[0]],k)){k===!0?k=M[A]:M[A]!==!0&&(E=N[0],X.unshift(N[1]));break}}if(k!==!0)if(k&&s.throws)f=k(f);else try{f=k(f)}catch(ie){return{state:"parsererror",error:k?ie:"No conversion from "+j+" to "+E}}}}return{state:"success",data:f}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Xn.href,type:"GET",isLocal:_A.test(Xn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kh,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":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(s,f){return f?Ic(Ic(s,d.ajaxSettings),f):Ic(d.ajaxSettings,s)},ajaxPrefilter:wh(Ch),ajaxTransport:wh(Tc),ajax:function(s,f){typeof s=="object"&&(f=s,s=void 0),f=f||{};var h,g,A,E,k,N,j,M,X,ie,W=d.ajaxSetup({},f),fe=W.context||W,Ue=W.context&&(fe.nodeType||fe.jquery)?d(fe):d.event,ft=d.Deferred(),Je=d.Callbacks("once memory"),cn=W.statusCode||{},rn={},mr={},gr="canceled",ct={readyState:0,getResponseHeader:function(ht){var Vt;if(j){if(!E)for(E={};Vt=FA.exec(A);)E[Vt[1].toLowerCase()+" "]=(E[Vt[1].toLowerCase()+" "]||[]).concat(Vt[2]);Vt=E[ht.toLowerCase()+" "]}return Vt==null?null:Vt.join(", ")},getAllResponseHeaders:function(){return j?A:null},setRequestHeader:function(ht,Vt){return j==null&&(ht=mr[ht.toLowerCase()]=mr[ht.toLowerCase()]||ht,rn[ht]=Vt),this},overrideMimeType:function(ht){return j==null&&(W.mimeType=ht),this},statusCode:function(ht){var Vt;if(ht)if(j)ct.always(ht[ct.status]);else for(Vt in ht)cn[Vt]=[cn[Vt],ht[Vt]];return this},abort:function(ht){var Vt=ht||gr;return h&&h.abort(Vt),Cu(0,Vt),this}};if(ft.promise(ct),W.url=((s||W.url||Xn.href)+"").replace(kA,Xn.protocol+"//"),W.type=f.method||f.type||W.method||W.type,W.dataTypes=(W.dataType||"*").toLowerCase().match(ge)||[""],W.crossDomain==null){N=w.createElement("a");try{N.href=W.url,N.href=N.href,W.crossDomain=Oc.protocol+"//"+Oc.host!=N.protocol+"//"+N.host}catch(ht){W.crossDomain=!0}}if(W.data&&W.processData&&typeof W.data!="string"&&(W.data=d.param(W.data,W.traditional)),Sh(Ch,W,f,ct),j)return ct;M=d.event&&W.global,M&&d.active++===0&&d.event.trigger("ajaxStart"),W.type=W.type.toUpperCase(),W.hasContent=!CA.test(W.type),g=W.url.replace(AA,""),W.hasContent?W.data&&W.processData&&(W.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(W.data=W.data.replace(bA,"+")):(ie=W.url.slice(g.length),W.data&&(W.processData||typeof W.data=="string")&&(g+=(vr.test(g)?"&":"?")+W.data,delete W.data),W.cache===!1&&(g=g.replace(EA,"$1"),ie=(vr.test(g)?"&":"?")+"_="+hr.guid+++ie),W.url=g+ie),W.ifModified&&(d.lastModified[g]&&ct.setRequestHeader("If-Modified-Since",d.lastModified[g]),d.etag[g]&&ct.setRequestHeader("If-None-Match",d.etag[g])),(W.data&&W.hasContent&&W.contentType!==!1||f.contentType)&&ct.setRequestHeader("Content-Type",W.contentType),ct.setRequestHeader("Accept",W.dataTypes[0]&&W.accepts[W.dataTypes[0]]?W.accepts[W.dataTypes[0]]+(W.dataTypes[0]!=="*"?", "+kh+"; q=0.01":""):W.accepts["*"]);for(X in W.headers)ct.setRequestHeader(X,W.headers[X]);if(W.beforeSend&&(W.beforeSend.call(fe,ct,W)===!1||j))return ct.abort();if(gr="abort",Je.add(W.complete),ct.done(W.success),ct.fail(W.error),h=Sh(Tc,W,f,ct),!h)Cu(-1,"No Transport");else{if(ct.readyState=1,M&&Ue.trigger("ajaxSend",[ct,W]),j)return ct;W.async&&W.timeout>0&&(k=n.setTimeout(function(){ct.abort("timeout")},W.timeout));try{j=!1,h.send(rn,Cu)}catch(ht){if(j)throw ht;Cu(-1,ht)}}function Cu(ht,Vt,di,Pc){var yr,pi,Dr,nu,ru,zn=Vt;j||(j=!0,k&&n.clearTimeout(k),h=void 0,A=Pc||"",ct.readyState=ht>0?4:0,yr=ht>=200&&ht<300||ht===304,di&&(nu=wA(W,ct,di)),!yr&&d.inArray("script",W.dataTypes)>-1&&d.inArray("json",W.dataTypes)<0&&(W.converters["text script"]=function(){}),nu=SA(W,nu,ct,yr),yr?(W.ifModified&&(ru=ct.getResponseHeader("Last-Modified"),ru&&(d.lastModified[g]=ru),ru=ct.getResponseHeader("etag"),ru&&(d.etag[g]=ru)),ht===204||W.type==="HEAD"?zn="nocontent":ht===304?zn="notmodified":(zn=nu.state,pi=nu.data,Dr=nu.error,yr=!Dr)):(Dr=zn,(ht||!zn)&&(zn="error",ht<0&&(ht=0))),ct.status=ht,ct.statusText=(Vt||zn)+"",yr?ft.resolveWith(fe,[pi,zn,ct]):ft.rejectWith(fe,[ct,zn,Dr]),ct.statusCode(cn),cn=void 0,M&&Ue.trigger(yr?"ajaxSuccess":"ajaxError",[ct,W,yr?pi:Dr]),Je.fireWith(fe,[ct,zn]),M&&(Ue.trigger("ajaxComplete",[ct,W]),--d.active||d.event.trigger("ajaxStop")))}return ct},getJSON:function(s,f,h){return d.get(s,f,h,"json")},getScript:function(s,f){return d.get(s,void 0,f,"script")}}),d.each(["get","post"],function(s,f){d[f]=function(h,g,A,E){return _(g)&&(E=E||A,A=g,g=void 0),d.ajax(d.extend({url:h,type:f,dataType:E,data:g,success:A},d.isPlainObject(h)&&h))}}),d.ajaxPrefilter(function(s){var f;for(f in s.headers)f.toLowerCase()==="content-type"&&(s.contentType=s.headers[f]||"")}),d._evalUrl=function(s,f,h){return d.ajax({url:s,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(g){d.globalEval(g,f,h)}})},d.fn.extend({wrapAll:function(s){var f;return this[0]&&(_(s)&&(s=s.call(this[0])),f=d(s,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var h=this;h.firstElementChild;)h=h.firstElementChild;return h}).append(this)),this},wrapInner:function(s){return _(s)?this.each(function(f){d(this).wrapInner(s.call(this,f))}):this.each(function(){var f=d(this),h=f.contents();h.length?h.wrapAll(s):f.append(s)})},wrap:function(s){var f=_(s);return this.each(function(h){d(this).wrapAll(f?s.call(this,h):s)})},unwrap:function(s){return this.parent(s).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(s){return!d.expr.pseudos.visible(s)},d.expr.pseudos.visible=function(s){return!!(s.offsetWidth||s.offsetHeight||s.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(s){}};var xA={0:200,1223:204},fi=d.ajaxSettings.xhr();D.cors=!!fi&&"withCredentials"in fi,D.ajax=fi=!!fi,d.ajaxTransport(function(s){var f,h;if(D.cors||fi&&!s.crossDomain)return{send:function(g,A){var E,k=s.xhr();if(k.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(E in s.xhrFields)k[E]=s.xhrFields[E];s.mimeType&&k.overrideMimeType&&k.overrideMimeType(s.mimeType),!s.crossDomain&&!g["X-Requested-With"]&&(g["X-Requested-With"]="XMLHttpRequest");for(E in g)k.setRequestHeader(E,g[E]);f=function(N){return function(){f&&(f=h=k.onload=k.onerror=k.onabort=k.ontimeout=k.onreadystatechange=null,N==="abort"?k.abort():N==="error"?typeof k.status!="number"?A(0,"error"):A(k.status,k.statusText):A(xA[k.status]||k.status,k.statusText,(k.responseType||"text")!=="text"||typeof k.responseText!="string"?{binary:k.response}:{text:k.responseText},k.getAllResponseHeaders()))}},k.onload=f(),h=k.onerror=k.ontimeout=f("error"),k.onabort!==void 0?k.onabort=h:k.onreadystatechange=function(){k.readyState===4&&n.setTimeout(function(){f&&h()})},f=f("abort");try{k.send(s.hasContent&&s.data||null)}catch(N){if(f)throw N}},abort:function(){f&&f()}}}),d.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(s){return d.globalEval(s),s}}}),d.ajaxPrefilter("script",function(s){s.cache===void 0&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),d.ajaxTransport("script",function(s){if(s.crossDomain||s.scriptAttrs){var f,h;return{send:function(g,A){f=d("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",h=function(E){f.remove(),h=null,E&&A(E.type==="error"?404:200,E.type)}),w.head.appendChild(f[0])},abort:function(){h&&h()}}}});var xh=[],Bc=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var s=xh.pop()||d.expando+"_"+hr.guid++;return this[s]=!0,s}}),d.ajaxPrefilter("json jsonp",function(s,f,h){var g,A,E,k=s.jsonp!==!1&&(Bc.test(s.url)?"url":typeof s.data=="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Bc.test(s.data)&&"data");if(k||s.dataTypes[0]==="jsonp")return g=s.jsonpCallback=_(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,k?s[k]=s[k].replace(Bc,"$1"+g):s.jsonp!==!1&&(s.url+=(vr.test(s.url)?"&":"?")+s.jsonp+"="+g),s.converters["script json"]=function(){return E||d.error(g+" was not called"),E[0]},s.dataTypes[0]="json",A=n[g],n[g]=function(){E=arguments},h.always(function(){A===void 0?d(n).removeProp(g):n[g]=A,s[g]&&(s.jsonpCallback=f.jsonpCallback,xh.push(g)),E&&_(A)&&A(E[0]),E=A=void 0}),"script"}),D.createHTMLDocument=(function(){var s=w.implementation.createHTMLDocument("").body;return s.innerHTML="<form></form><form></form>",s.childNodes.length===2})(),d.parseHTML=function(s,f,h){if(typeof s!="string")return[];typeof f=="boolean"&&(h=f,f=!1);var g,A,E;return f||(D.createHTMLDocument?(f=w.implementation.createHTMLDocument(""),g=f.createElement("base"),g.href=w.location.href,f.head.appendChild(g)):f=w),A=V.exec(s),E=!h&&[],A?[f.createElement(A[1])]:(A=_o([s],f,E),E&&E.length&&d(E).remove(),d.merge([],A.childNodes))},d.fn.load=function(s,f,h){var g,A,E,k=this,N=s.indexOf(" ");return N>-1&&(g=Tn(s.slice(N)),s=s.slice(0,N)),_(f)?(h=f,f=void 0):f&&typeof f=="object"&&(A="POST"),k.length>0&&d.ajax({url:s,type:A||"GET",dataType:"html",data:f}).done(function(j){E=arguments,k.html(g?d("<div>").append(d.parseHTML(j)).find(g):j)}).always(h&&function(j,M){k.each(function(){h.apply(this,E||[j.responseText,M,j])})}),this},d.expr.pseudos.animated=function(s){return d.grep(d.timers,function(f){return s===f.elem}).length},d.offset={setOffset:function(s,f,h){var g,A,E,k,N,j,M,X=d.css(s,"position"),ie=d(s),W={};X==="static"&&(s.style.position="relative"),N=ie.offset(),E=d.css(s,"top"),j=d.css(s,"left"),M=(X==="absolute"||X==="fixed")&&(E+j).indexOf("auto")>-1,M?(g=ie.position(),k=g.top,A=g.left):(k=parseFloat(E)||0,A=parseFloat(j)||0),_(f)&&(f=f.call(s,h,d.extend({},N))),f.top!=null&&(W.top=f.top-N.top+k),f.left!=null&&(W.left=f.left-N.left+A),"using"in f?f.using.call(s,W):ie.css(W)}},d.fn.extend({offset:function(s){if(arguments.length)return s===void 0?this:this.each(function(A){d.offset.setOffset(this,s,A)});var f,h,g=this[0];if(g)return g.getClientRects().length?(f=g.getBoundingClientRect(),h=g.ownerDocument.defaultView,{top:f.top+h.pageYOffset,left:f.left+h.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var s,f,h,g=this[0],A={top:0,left:0};if(d.css(g,"position")==="fixed")f=g.getBoundingClientRect();else{for(f=this.offset(),h=g.ownerDocument,s=g.offsetParent||h.documentElement;s&&(s===h.body||s===h.documentElement)&&d.css(s,"position")==="static";)s=s.parentNode;s&&s!==g&&s.nodeType===1&&(A=d(s).offset(),A.top+=d.css(s,"borderTopWidth",!0),A.left+=d.css(s,"borderLeftWidth",!0))}return{top:f.top-A.top-d.css(g,"marginTop",!0),left:f.left-A.left-d.css(g,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var s=this.offsetParent;s&&d.css(s,"position")==="static";)s=s.offsetParent;return s||Jn})}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(s,f){var h=f==="pageYOffset";d.fn[s]=function(g){return Xt(this,function(A,E,k){var N;if(O(A)?N=A:A.nodeType===9&&(N=A.defaultView),k===void 0)return N?N[f]:A[E];N?N.scrollTo(h?N.pageXOffset:k,h?k:N.pageYOffset):A[E]=k},s,g,arguments.length)}}),d.each(["top","left"],function(s,f){d.cssHooks[f]=Ie(D.pixelPosition,function(h,g){if(g)return g=le(h,f),ea.test(g)?d(h).position()[f]+"px":g})}),d.each({Height:"height",Width:"width"},function(s,f){d.each({padding:"inner"+s,content:f,"":"outer"+s},function(h,g){d.fn[g]=function(A,E){var k=arguments.length&&(h||typeof A!="boolean"),N=h||(A===!0||E===!0?"margin":"border");return Xt(this,function(j,M,X){var ie;return O(j)?g.indexOf("outer")===0?j["inner"+s]:j.document.documentElement["client"+s]:j.nodeType===9?(ie=j.documentElement,Math.max(j.body["scroll"+s],ie["scroll"+s],j.body["offset"+s],ie["offset"+s],ie["client"+s])):X===void 0?d.css(j,M,N):d.style(j,M,X,N)},f,k?A:void 0,k)}})}),d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(s,f){d.fn[f]=function(h){return this.on(f,h)}}),d.fn.extend({bind:function(s,f,h){return this.on(s,null,f,h)},unbind:function(s,f){return this.off(s,null,f)},delegate:function(s,f,h,g){return this.on(f,s,h,g)},undelegate:function(s,f,h){return arguments.length===1?this.off(s,"**"):this.off(f,s||"**",h)},hover:function(s,f){return this.on("mouseenter",s).on("mouseleave",f||s)}}),d.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(s,f){d.fn[f]=function(h,g){return arguments.length>0?this.on(f,null,h,g):this.trigger(f)}});var TA=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;d.proxy=function(s,f){var h,g,A;if(typeof f=="string"&&(h=s[f],f=s,s=h),!!_(s))return g=i.call(arguments,2),A=function(){return s.apply(f||this,g.concat(i.call(arguments)))},A.guid=s.guid=s.guid||d.guid++,A},d.holdReady=function(s){s?d.readyWait++:d.ready(!0)},d.isArray=Array.isArray,d.parseJSON=JSON.parse,d.nodeName=R,d.isFunction=_,d.isWindow=O,d.camelCase=Gt,d.type=T,d.now=Date.now,d.isNumeric=function(s){var f=d.type(s);return(f==="number"||f==="string")&&!isNaN(s-parseFloat(s))},d.trim=function(s){return s==null?"":(s+"").replace(TA,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return d});var OA=n.jQuery,IA=n.$;return d.noConflict=function(s){return n.$===d&&(n.$=IA),s&&n.jQuery===d&&(n.jQuery=OA),d},typeof r=="undefined"&&(n.jQuery=n.$=d),d})}}),MA=mi(zh()),ua=e=>e.getBoundingClientRect().height,qc=()=>{let e=window.innerHeight*.01;document.querySelector("html").setAttribute("style",`--vh:${e}px;`);let t=document.querySelector("header"),n=document.querySelector("footer");if(!t||!n)return;let r=window.innerHeight-ua(t)-ua(n);document.querySelector("main").setAttribute("style",`--mh:${r}px;`)};qc(),window.onresize=qc;var gi=()=>{let e=new Date;return e.setTime(e.getTime()+100*365*24*60*60*1e3),`expires=${e.toUTCString()};`},Po=e=>{let t=RegExp(`${e}=.[^;]*`),n=document.cookie.match(t);if(n){let r=n[0].split("=");return decodeURIComponent(r[1])}return!1};(()=>{let e=document.getElementById("topNoticeAlert"),t=window.sessionStorage.getItem("notice"),n=document.getElementById("cookieNoticeAlert"),r="chocolatey_hide_cookies_notice";e&&(t?e.remove():e.classList.remove("d-none"),e.querySelector("button").addEventListener("click",()=>sessionStorage.setItem("notice","true"),!1)),n&&(Po(r)?n.remove():n.classList.remove("d-none"),n.querySelectorAll("button").forEach(u=>{u.addEventListener("click",()=>{~location.hostname.indexOf("chocolatey.org")?document.cookie=`${r}=true; ${gi()}path=/; domain=chocolatey.org;`:document.cookie=`${r}=true; ${gi()}path=/;`},!1)}))})(),(()=>{let e=document.querySelectorAll(".callout"),t=document.querySelectorAll("blockquote"),n=r=>{r.forEach(u=>{let a=u.querySelector(".callout-header");if(u.nodeName==="BLOCKQUOTE"&&u.querySelector("p:first-child")&&u.querySelector("p:first-child").textContent.includes(":choco-")&&(a=u.querySelector("p:first-child")),a){let i="",o="",c=a.textContent;u.classList.contains("callout-success")||c.includes(":choco-success:")?(o="success",i="check",u.classList.add("callout-success")):u.classList.contains("callout-danger")||c.includes(":choco-danger:")?(o="danger",i="xmark",u.classList.add("callout-danger")):u.classList.contains("callout-warning")||c.includes(":choco-warning:")?(o="warning",i="triangle-exclamation",u.classList.add("callout-warning")):u.classList.contains("callout-tip")||c.includes(":choco-tip:")?(o="tip",i="lightbulb",u.classList.add("callout-tip")):(o="info",i="info",u.classList.add("callout-info")),c.includes(":choco-")&&(c=c.replace(/:.+?:/,"").trim());let l=`<div class="callout-header d-flex align-items-center"><span class="flex-shrink-0 text-bg-${o} h-px-30 w-px-30 d-flex align-items-center justify-content-center rounded me-3"><span class="fa-solid fa-${i}"></span></span><p class="lead"><strong>${c}</strong></p></div>`;a.outerHTML=l}})};n(e),n(t)})();var Zh=mi(Lh());(()=>{let e=new Zh.default(".btn-copy"),t=document.querySelectorAll(".user-select-all");e.on("success",n=>{if(n.trigger.classList.contains("copy-to-clipboard-button"))n.trigger.textContent="Copied!",setTimeout(()=>{n.trigger.blur(),setTimeout(()=>{n.trigger.textContent="Copy"},200)},2e3);else{let r=new bootstrap.Button(n.trigger);setTimeout(()=>{r.toggle()},2e3)}n.clearSelection()}),t&&t.forEach(n=>n.addEventListener("click",()=>n.select(),!1))})();var qh=e=>{e.innerHTML=e.innerHTML.trim()};(()=>{let e=document.querySelectorAll("code"),t=document.querySelectorAll("pre");e.forEach(qh),(()=>{let r=window.location.href;if(["en-us/choco/commands/","en-us/create/commands/"].some(a=>r.includes(a))){let a=document.querySelectorAll("h2");for(let i of a){let o=i.textContent.trim();if(o==="Examples"||o==="Usage"){let c=i.nextElementSibling;for(;c&&c.tagName!=="H2";){if(c.tagName==="PRE"&&c.firstElementChild&&c.firstElementChild.tagName==="CODE"){let l=c.firstElementChild,m=l.textContent.split(`
|
|
7
|
+
`).map(v=>v.trim());l.textContent=m.join(`
|
|
8
|
+
`)}c=c.nextElementSibling}}}}})();for(let r of t)!r.classList.contains("highlight-delay")&&!r.classList.contains("d-format-none")&&(r.classList.add("line-numbers","language-none"),Prism.highlightAll())})();var aa=e=>e.replace(/[.]/g,"\\$&"),Hc=e=>{let t=[],n=e;for(;n!=document;)t.push(n.parentNode),n=n.parentNode;return t};(()=>{let e=()=>{if(location.hash){let u=document.querySelector(aa(location.hash));if(u){let a=u,i=Hc(u).filter(o=>o!=document&&o.classList.contains("collapse"));i.length==0&&u.classList.contains("collapse")&&i.push(u),i.reverse().forEach((o,c,l)=>{o=document.getElementById(aa(o.id)),bootstrap.Collapse.getOrCreateInstance(o,{toggle:!1}).show(),o.addEventListener("shown.bs.collapse",m=>{m.stopImmediatePropagation(),c===l.length-1&&a.scrollIntoView()})})}}},t=()=>{if(location.hash){let u=document.querySelector(`[data-bs-toggle="tab"][href="${aa(location.hash)}"]`);if(u){let a=u,i=Hc(u).filter(o=>o!=document&&o.classList.contains("tab-pane"));i.push(u),i.reverse().forEach((o,c,l)=>{o.id.includes("-tab")||(o=document.getElementById(`${aa(o.id)}-tab`)),bootstrap.Tab.getOrCreateInstance(o,{toggle:!1}).show(),o.addEventListener("shown.bs.tab",m=>{m.stopImmediatePropagation(),c===l.length-1&&a.scrollIntoView()})})}}};e(),t(),window.addEventListener("hashchange",e,!1),window.addEventListener("hashchange",t,!1);let n=document.querySelectorAll(".btn-collapse-target");n&&n.forEach(u=>{u.addEventListener("click",()=>{let a=document.querySelector(u.getAttribute("data-collapse-target"));bootstrap.Collapse.getOrCreateInstance(a,{toggle:!1}).show()},!1)});let r=u=>{u.addEventListener("click",a=>{history.pushState(null,null,a.target.hash)})};document.querySelectorAll('[data-bs-toggle="tab"]:not(.d-hash-none)').forEach(u=>r(u)),document.querySelectorAll('[data-bs-toggle="collapse"]:not(.d-hash-none)').forEach(u=>r(u))})(),(()=>{let e=document.querySelector(".collapse-lg");if(e){let t=window.matchMedia("(max-width: 1199px)"),n=bootstrap.Collapse.getOrCreateInstance(e,{toggle:!1});e.querySelectorAll("a").forEach(u=>{u.addEventListener("click",()=>{t.matches&&(u.classList.add("active-scroll"),n.hide())},!1)}),e.addEventListener("hidden.bs.collapse",()=>{let u=e.querySelector(".active-scroll");u&&(document.querySelector(aa(u.getAttribute("href"))).scrollIntoView(),u.classList.remove("active-scroll"))});let r=u=>{u.matches?n.hide():n.show()};r(t),t.addEventListener("change",()=>r(t))}})(),(()=>{let e=document.querySelector(".collapse-y-height"),t=document.getElementById("mainContent"),n=r=>{let u=r.getBoundingClientRect();return{left:u.left+window.scrollX,top:u.top+window.scrollY}};if(e&&t){let r=()=>{if(window.innerWidth>=768)if(n(t).top+ua(t)<window.innerHeight){let a=window.innerHeight-ua(document.querySelector("header"))-ua(document.querySelector("footer"));e.style.height=`${a}px`}else e.style.height="";else e.style.height=""};r(),new ResizeObserver(()=>r()).observe(document.body),window.onresize=r}})(),(()=>{let e=document.querySelector("h2.title-child");e&&(document.querySelectorAll("h2")[0].classList.contains("title-child")||e.classList.remove("d-none"))})();function jo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uc(e,t,n,r,u,a,i){try{var o=e[a](i),c=o.value}catch(l){return void n(l)}o.done?t(c):Promise.resolve(c).then(r,u)}function vt(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var a=e.apply(t,n);function i(c){Uc(a,r,u,i,o,"next",c)}function o(c){Uc(a,r,u,i,o,"throw",c)}i(void 0)})}}function au(e,t,n){return t=ia(t),(function(r,u){if(u&&(typeof u=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wu(r)})(e,No()?Reflect.construct(t,n||[],ia(e).constructor):t.apply(e,n))}function Mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kc(r.key),r)}}function $n(e,t,n){return t&&Wc(e.prototype,t),n&&Wc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Su(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zo(e))||t){n&&(e=n);var r=0,u=function(){};return{s:u,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){o=!0,a=c},f:function(){try{i||n.return==null||n.return()}finally{if(o)throw a}}}}function Zn(e,t,n){return(t=Kc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ia(e)}function iu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oa(e,t)}function No(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(No=function(){return!!e})()}function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vc(Object(n),!0).forEach(function(r){Zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nr(e,t){if(e==null)return{};var n,r,u=(function(i,o){if(i==null)return{};var c={};for(var l in i)if({}.hasOwnProperty.call(i,l)){if(o.indexOf(l)!==-1)continue;c[l]=i[l]}return c})(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function Oe(){var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function a(y,F,D,_){var O=F&&F.prototype instanceof o?F:o,w=Object.create(O.prototype);return Cn(w,"_invoke",(function(x,S,T){var I,B,d,H=0,R=T||[],Z=!1,q={p:0,n:0,v:e,a:G,f:G.bind(e,4),d:function(L,ne){return I=L,B=0,d=e,q.n=ne,i}};function G(L,ne){for(B=L,d=ne,t=0;!Z&&H&&!Q&&t<R.length;t++){var Q,$=R[t],Y=q.p,re=$[2];L>3?(Q=re===ne)&&(d=$[(B=$[4])?5:(B=3,3)],$[4]=$[5]=e):$[0]<=Y&&((Q=L<2&&Y<$[1])?(B=0,q.v=ne,q.n=$[1]):Y<re&&(Q=L<3||$[0]>ne||ne>re)&&($[4]=L,$[5]=ne,q.n=re,B=0))}if(Q||L>1)return i;throw Z=!0,ne}return function(L,ne,Q){if(H>1)throw TypeError("Generator is already running");for(Z&&ne===1&&G(ne,Q),B=ne,d=Q;(t=B<2?e:d)||!Z;){I||(B?B<3?(B>1&&(q.n=-1),G(B,d)):q.n=d:q.v=d);try{if(H=2,I){if(B||(L="next"),t=I[L]){if(!(t=t.call(I,d)))throw TypeError("iterator result is not an object");if(!t.done)return t;d=t.value,B<2&&(B=0)}else B===1&&(t=I.return)&&t.call(I),B<2&&(d=TypeError("The iterator does not provide a '"+L+"' method"),B=1);I=e}else if((t=(Z=q.n<0)?d:x.call(S,q))!==i)break}catch($){I=e,B=1,d=$}finally{H=1}}return{value:t,done:Z}}})(y,D,_),!0),w}var i={};function o(){}function c(){}function l(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(Cn(t={},r,function(){return this}),t),m=l.prototype=o.prototype=Object.create(p);function v(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,l):(y.__proto__=l,Cn(y,u,"GeneratorFunction")),y.prototype=Object.create(m),y}return c.prototype=l,Cn(m,"constructor",l),Cn(l,"constructor",c),c.displayName="GeneratorFunction",Cn(l,u,"GeneratorFunction"),Cn(m),Cn(m,u,"Generator"),Cn(m,r,function(){return this}),Cn(m,"toString",function(){return"[object Generator]"}),(Oe=function(){return{w:a,m:v}})()}function Cn(e,t,n,r){var u=Object.defineProperty;try{u({},"",{})}catch(a){u=0}Cn=function(a,i,o,c){function l(p,m){Cn(a,p,function(v){return this._invoke(p,m,v)})}i?u?u(a,i,{value:o,enumerable:!c,configurable:!c,writable:!c}):a[i]=o:(l("next",0),l("throw",1),l("return",2))},Cn(e,t,n,r)}function oa(e,t){return oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},oa(e,t)}function Ro(e,t){return(function(n){if(Array.isArray(n))return n})(e)||(function(n,r){var u=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(u!=null){var a,i,o,c,l=[],p=!0,m=!1;try{if(o=(u=u.call(n)).next,r!==0)for(;!(p=(a=o.call(u)).done)&&(l.push(a.value),l.length!==r);p=!0);}catch(v){m=!0,i=v}finally{try{if(!p&&u.return!=null&&(c=u.return(),Object(c)!==c))return}finally{if(m)throw i}}return l}})(e,t)||zo(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Qe(e){return(function(t){if(Array.isArray(t))return jo(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||zo(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Kc(e){var t=(function(n,r){if(typeof n!="object"||!n)return n;var u=n[Symbol.toPrimitive];if(u!==void 0){var a=u.call(n,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)})(e,"string");return typeof t=="symbol"?t:t+""}function we(e){return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(e)}function zo(e,t){if(e){if(typeof e=="string")return jo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jo(e,t):void 0}}function Lo(e){var t=typeof Map=="function"?new Map:void 0;return Lo=function(n){if(n===null||!(function(u){try{return Function.toString.call(u).indexOf("[native code]")!==-1}catch(a){return typeof u=="function"}})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return(function(u,a,i){if(No())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,a);var c=new(u.bind.apply(u,o));return i&&oa(c,i.prototype),c})(n,arguments,ia(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),oa(r,n)},Lo(e)}var et,Gc,ou,Jc,yi,Qc,Yc,Mo,$o,Zo,Xc,sa={},el=[],ca=Array.isArray,Di=el.slice,Ar=Object.assign;function qo(e){e&&e.parentNode&&e.remove()}function kn(e,t,n){var r,u,a,i={};for(a in t)a=="key"?r=t[a]:a=="ref"&&typeof e!="function"?u=t[a]:i[a]=t[a];return arguments.length>2&&(i.children=arguments.length>3?Di.call(arguments,2):n),la(e,i,r,u,null)}function la(e,t,n,r,u){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:u==null?++Gc:u,__i:-1,__u:0};return u==null&&et.vnode!=null&&et.vnode(a),a}function Hh(){return{current:null}}function tr(e){return e.children}function Er(e,t){this.props=e,this.context=t,this.__g=0}function xu(e,t){if(t==null)return e.__?xu(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?xu(e):null}function tl(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return tl(e)}}function Ho(e){(8&e.__g||!(e.__g|=8)||!ou.push(e)||yi++)&&Jc==et.debounceRendering||((Jc=et.debounceRendering)||queueMicrotask)(Uh)}function Uh(){for(var e,t,n,r,u,a,i,o,c=1;ou.length;)ou.length>c&&ou.sort(Qc),e=ou.shift(),c=ou.length,8&e.__g&&(n=void 0,u=(r=(t=e).__v).__e,a=[],i=[],(o=t.__P)&&((n=Ar({},r)).__v=r.__v+1,et.vnode&&et.vnode(n),Uo(o,n,r,t.__n,o.namespaceURI,32&r.__u?[u]:null,a,u==null?xu(r):u,!!(32&r.__u),i,o.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,il(a,n,i),n.__e!=u&&tl(n)));yi=0}function nl(e,t,n,r,u,a,i,o,c,l,p,m){var v,y,F,D,_,O,w,x=r&&r.__k||el,S=t.length;for(c=(function(T,I,B,d,H){var R,Z,q,G,L,ne=B.length,Q=ne,$=0;for(T.__k=new Array(H),R=0;R<H;R++)(Z=I[R])!=null&&typeof Z!="boolean"&&typeof Z!="function"?(G=R+$,(Z=T.__k[R]=typeof Z=="string"||typeof Z=="number"||typeof Z=="bigint"||Z.constructor==String?la(null,Z,null,null,null):ca(Z)?la(tr,{children:Z},null,null,null):Z.constructor==null&&Z.__b>0?la(Z.type,Z.props,Z.key,Z.ref?Z.ref:null,Z.__v):Z).__=T,Z.__b=T.__b+1,q=null,(L=Z.__i=Wh(Z,B,G,Q))!=-1&&(Q--,(q=B[L])&&(q.__u|=2)),q==null||q.__v==null?(L==-1&&(H>ne?$--:H<ne&&$++),typeof Z.type!="function"&&(Z.__u|=4)):L!=G&&(L==G-1?$--:L==G+1?$++:(L>G?$--:$++,Z.__u|=4))):T.__k[R]=null;if(Q)for(R=0;R<ne;R++)(q=B[R])!=null&&!(2&q.__u)&&(q.__e==d&&(d=xu(q)),sl(q,q));return d})(n,t,x,c,S),v=0;v<S;v++)(F=n.__k[v])!=null&&(y=F.__i==-1?sa:x[F.__i]||sa,F.__i=v,O=Uo(e,F,y,u,a,i,o,c,l,p,m),D=F.__e,F.ref&&y.ref!=F.ref&&(y.ref&&Vo(y.ref,null,F),p.push(F.ref,F.__c||D,F)),_==null&&D!=null&&(_=D),(w=!!(4&F.__u))||y.__k===F.__k?c=rl(F,c,e,w):typeof F.type=="function"&&O!==void 0?c=O:D&&(c=D.nextSibling),F.__u&=-7);return n.__e=_,c}function rl(e,t,n,r){var u,a;if(typeof e.type=="function"){for(u=e.__k,a=0;u&&a<u.length;a++)u[a]&&(u[a].__=e,t=rl(u[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=xu(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Rr(e,t){return t=t||[],e==null||typeof e=="boolean"||(ca(e)?e.some(function(n){Rr(n,t)}):t.push(e)),t}function Wh(e,t,n,r){var u,a,i,o=e.key,c=e.type,l=t[n],p=l!=null&&!(2&l.__u);if(l===null&&e.key==null||p&&o==l.key&&c==l.type)return n;if(r>(p?1:0)){for(u=n-1,a=n+1;u>=0||a<t.length;)if((l=t[i=u>=0?u--:a++])!=null&&!(2&l.__u)&&o==l.key&&c==l.type)return i}return-1}function ul(e,t,n){t[0]=="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":n}function bi(e,t,n,r,u){var a;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ul(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||ul(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(Yc,"$1")),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||(e.__l={}),e.__l[t+a]=n,n?r?n.l=r.l:(n.l=Mo,e.addEventListener(t,a?Zo:$o,a)):e.removeEventListener(t,a?Zo:$o,a);else{if(u=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n==null?"":n;break e}catch(i){}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function al(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=Mo++;else if(t.u<n.l)return;return n(et.event?et.event(t):t)}}}function Uo(e,t,n,r,u,a,i,o,c,l,p){var m,v,y,F,D,_,O,w,x,S,T,I,B,d,H,R,Z,q,G,L,ne,Q=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(o=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(m=et.__b)&&m(t);e:if(typeof Q=="function")try{if(w=t.props,x="prototype"in Q&&Q.prototype.render,S=(m=Q.contextType)&&r[m.__c],T=m?S?S.props.value:m.__:r,n.__c?2&(v=t.__c=n.__c).__g&&(v.__g|=1,O=!0):(x?t.__c=v=new Q(w,T):(t.__c=v=new Er(w,T),v.constructor=Q,v.render=Vh),S&&S.sub(v),v.props=w,v.state||(v.state={}),v.context=T,v.__n=r,y=!0,v.__g|=8,v.__h=[],v._sb=[]),x&&v.__s==null&&(v.__s=v.state),x&&Q.getDerivedStateFromProps!=null&&(v.__s==v.state&&(v.__s=Ar({},v.__s)),Ar(v.__s,Q.getDerivedStateFromProps(w,v.__s))),F=v.props,D=v.state,v.__v=t,y)x&&Q.getDerivedStateFromProps==null&&v.componentWillMount!=null&&v.componentWillMount(),x&&v.componentDidMount!=null&&v.__h.push(v.componentDidMount);else{if(x&&Q.getDerivedStateFromProps==null&&w!==F&&v.componentWillReceiveProps!=null&&v.componentWillReceiveProps(w,T),!(4&v.__g)&&v.shouldComponentUpdate!=null&&v.shouldComponentUpdate(w,v.__s,T)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(v.props=w,v.state=v.__s,v.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function($){$&&($.__=t)}),I=0;I<v._sb.length;I++)v.__h.push(v._sb[I]);v._sb=[],v.__h.length&&i.push(v);break e}v.componentWillUpdate!=null&&v.componentWillUpdate(w,v.__s,T),x&&v.componentDidUpdate!=null&&v.__h.push(function(){v.componentDidUpdate(F,D,_)})}if(v.context=T,v.props=w,v.__P=e,v.__g&=-5,B=et.__r,d=0,x){for(v.state=v.__s,v.__g&=-9,B&&B(t),m=v.render(v.props,v.state,v.context),H=0;H<v._sb.length;H++)v.__h.push(v._sb[H]);v._sb=[]}else do v.__g&=-9,B&&B(t),m=v.render(v.props,v.state,v.context),v.state=v.__s;while(8&v.__g&&++d<25);v.state=v.__s,v.getChildContext!=null&&(r=Ar({},r,v.getChildContext())),x&&!y&&v.getSnapshotBeforeUpdate!=null&&(_=v.getSnapshotBeforeUpdate(F,D)),R=m,m!=null&&m.type===tr&&m.key==null&&(R=ol(m.props.children)),o=nl(e,ca(R)?R:[R],t,n,r,u,a,i,o,c,l,p),t.__u&=-161,v.__h.length&&i.push(v),O&&(v.__g&=-4)}catch($){if(t.__v=null,c||a!=null)if($.then){for(Z=0,q=!1,t.__u|=c?160:128,t.__c.__z=[],G=0;G<a.length;G++)(L=a[G])==null||q||(L.nodeType==8&&L.data=="$s"?(Z>0&&t.__c.__z.push(L),Z++,a[G]=null):L.nodeType==8&&L.data=="/$s"?(--Z>0&&t.__c.__z.push(L),q=Z===0,o=a[G],a[G]=null):Z>0&&(t.__c.__z.push(L),a[G]=null));if(!q){for(;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;a[a.indexOf(o)]=null,t.__c.__z=[o]}t.__e=o}else{for(ne=a.length;ne--;)qo(a[ne]);Wo(t)}else t.__e=n.__e,t.__k=n.__k,$.then||Wo(t);et.__e($,t,n)}else o=t.__e=(function($,Y,re,me,se,K,V,ue,oe,ce){var ee,he,Ce,Re,ge,Te,He,nt,Ge=re.props,yt=Y.props,Dt=Y.type;if(Dt=="svg"?se="http://www.w3.org/2000/svg":Dt=="math"?se="http://www.w3.org/1998/Math/MathML":se||(se="http://www.w3.org/1999/xhtml"),K!=null){for(ee=0;ee<K.length;ee++)if((ge=K[ee])&&"setAttribute"in ge==!!Dt&&(Dt?ge.localName==Dt:ge.nodeType==3)){$=ge,K[ee]=null;break}}if($==null){if(Dt==null)return ce.createTextNode(yt);$=ce.createElementNS(se,Dt,yt.is&&yt),ue&&(et.__m&&et.__m(Y,K),ue=!1),K=null}if(Dt==null)Ge===yt||ue&&$.data==yt||($.data=yt);else{if(K=K&&Di.call($.childNodes),Ge=re.props||sa,!ue&&K!=null)for(Ge={},ee=0;ee<$.attributes.length;ee++)Ge[(ge=$.attributes[ee]).name]=ge.value;for(ee in Ge)if(ge=Ge[ee],ee!="children"){if(ee=="dangerouslySetInnerHTML")Ce=ge;else if(!(ee in yt)){if(ee=="value"&&"defaultValue"in yt||ee=="checked"&&"defaultChecked"in yt)continue;bi($,ee,null,ge,se)}}for(ee in nt=1&re.__u,yt)ge=yt[ee],ee=="children"?Re=ge:ee=="dangerouslySetInnerHTML"?he=ge:ee=="value"?Te=ge:ee=="checked"?He=ge:ue&&typeof ge!="function"||Ge[ee]===ge&&!nt||bi($,ee,ge,Ge[ee],se);if(he)ue||Ce&&(he.__html==Ce.__html||he.__html==$.innerHTML)||($.innerHTML=he.__html),Y.__k=[];else if(Ce&&($.innerHTML=""),nl(Dt=="template"?$.content:$,ca(Re)?Re:[Re],Y,re,me,Dt=="foreignObject"?"http://www.w3.org/1999/xhtml":se,K,V,K?K[0]:re.__k&&xu(re,0),ue,oe,ce),K!=null)for(ee=K.length;ee--;)qo(K[ee]);ue||(ee="value",Dt=="progress"&&Te==null?$.removeAttribute("value"):Te==null||Te===$[ee]&&(Dt!=="progress"||Te)||bi($,ee,Te,Ge[ee],se),ee="checked",He!=null&&He!=$[ee]&&bi($,ee,He,Ge[ee],se))}return $})(n.__e,t,n,r,u,a,i,c,l,p);return(m=et.diffed)&&m(t),128&t.__u?void 0:o}function Wo(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(Wo)}function il(e,t,n){for(var r=0;r<n.length;r++)Vo(n[r],n[++r],n[++r]);et.__c&&et.__c(t,e),e.some(function(u){try{e=u.__h,u.__h=[],e.some(function(a){a.call(u)})}catch(a){et.__e(a,u.__v)}})}function ol(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:ca(e)?e.map(ol):Ar({},e)}function Vo(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(u){et.__e(u,n)}}function sl(e,t,n){var r,u;if(et.unmount&&et.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Vo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){et.__e(a,t)}r.__P=null}if(r=e.__k)for(u=0;u<r.length;u++)r[u]&&sl(r[u],t,n||typeof e.type!="function");n||qo(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function Vh(e,t,n){return this.constructor(e,n)}function fa(e,t){var n,r,u,a;t==document&&(t=document.documentElement),et.__&&et.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=kn(tr,null,[e]),u=[],a=[],Uo(t,e,r||sa,sa,t.namespaceURI,r?null:t.firstChild?Di.call(t.childNodes):null,u,r?r.__e:t.firstChild,n,a,t.ownerDocument),il(u,e,a)}function Kh(e,t,n){var r,u,a,i=Ar({},e.props);for(a in t)a=="key"?r=t[a]:a=="ref"&&typeof e.type!="function"?u=t[a]:i[a]=t[a];return arguments.length>2&&(i.children=arguments.length>3?Di.call(arguments,2):n),la(e.type,i,r||e.key,u||e.ref,null)}et={__e:function(e,t,n,r){for(var u,a,i;t=t.__;)if((u=t.__c)&&!(1&u.__g)){u.__g|=4;try{if((a=u.constructor)&&a.getDerivedStateFromError!=null&&(u.setState(a.getDerivedStateFromError(e)),i=8&u.__g),u.componentDidCatch!=null&&(u.componentDidCatch(e,r||{}),i=8&u.__g),i)return void(u.__g|=2)}catch(o){e=o}}throw yi=0,e}},Gc=0,Er.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ar({},this.state),typeof e=="function"&&(e=e(Ar({},n),this.props)),e&&Ar(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ho(this))},Er.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),Ho(this))},Er.prototype.render=tr,ou=[],yi=0,Qc=function(e,t){return e.__v.__b-t.__v.__b},Yc=/(PointerCapture)$|Capture$/i,Mo=0,$o=al(!1),Zo=al(!0),Xc=0;var zr,xt,Ko,cl,Go=Object.is,Tu=0,ll=[],Rt=et,fl=Rt.__b,dl=Rt.__r,pl=Rt.diffed,hl=Rt.__c,vl=Rt.unmount,ml=Rt.__;function Ou(e,t){Rt.__h&&Rt.__h(xt,e,Tu||t),Tu=0;var n=xt.__H||(xt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function su(e){return Tu=1,Jo(El,e)}function Jo(e,t,n){var r=Ou(zr++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):El(void 0,t),function(o){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,o);Go(c,l)||(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=xt,!xt.__f)){var u=function(o,c,l){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(v){return!!v.__c});if(p.every(function(v){return!v.__N}))return!a||a.call(this,o,c,l);var m=r.__c.props!==o;return p.forEach(function(v){if(v.__N){var y=v.__[0];v.__=v.__N,v.__N=void 0,Go(y,v.__[0])||(m=!0)}}),a&&a.call(this,o,c,l)||m};xt.__f=!0;var a=xt.shouldComponentUpdate,i=xt.componentWillUpdate;xt.componentWillUpdate=function(o,c,l){if(4&this.__g){var p=a;a=void 0,u(o,c,l),a=p}i&&i.call(this,o,c,l)},xt.shouldComponentUpdate=u}return r.__N||r.__}function qn(e,t){var n=Ou(zr++,3);!Rt.__s&&Yo(n.__H,t)&&(n.__=e,n.u=t,xt.__H.__h.push(n))}function da(e,t){var n=Ou(zr++,4);!Rt.__s&&Yo(n.__H,t)&&(n.__=e,n.u=t,xt.__h.push(n))}function Iu(e){return Tu=5,On(function(){return{current:e}},[])}function gl(e,t,n){Tu=6,da(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function On(e,t){var n=Ou(zr++,7);return Yo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function pa(e,t){return Tu=8,On(function(){return e},t)}function yl(e){var t=xt.context[e.__c],n=Ou(zr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(xt)),t.props.value):e.__}function Dl(e,t){Rt.useDebugValue&&Rt.useDebugValue(t?t(e):e)}function bl(){var e=Ou(zr++,11);if(!e.__){for(var t=xt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Gh(){for(var e;e=ll.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ai),e.__H.__h.forEach(Qo),e.__H.__h=[]}catch(t){e.__H.__h=[],Rt.__e(t,e.__v)}}Rt.__b=function(e){xt=null,fl&&fl(e)},Rt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ml&&ml(e,t)},Rt.__r=function(e){dl&&dl(e),zr=0;var t=(xt=e.__c).__H;t&&(Ko===xt?(t.__h=[],xt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Ai),t.__h.forEach(Qo),t.__h=[],zr=0)),Ko=xt},Rt.diffed=function(e){pl&&pl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ll.push(t)!==1&&cl===Rt.requestAnimationFrame||((cl=Rt.requestAnimationFrame)||Jh)(Gh)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ko=xt=null},Rt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ai),n.__h=n.__h.filter(function(r){return!r.__||Qo(r)})}catch(r){t.some(function(u){u.__h&&(u.__h=[])}),t=[],Rt.__e(r,n.__v)}}),hl&&hl(e,t)},Rt.unmount=function(e){vl&&vl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ai(r)}catch(u){t=u}}),n.__H=void 0,t&&Rt.__e(t,n.__v))};var Al=typeof requestAnimationFrame=="function";function Jh(e){var t,n=function(){clearTimeout(r),Al&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Al&&(t=requestAnimationFrame(n))}function Ai(e){var t=xt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),xt=t}function Qo(e){var t=xt;e.__c=e.__(),xt=t}function Yo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return!Go(n,e[r])})}function El(e,t){return typeof t=="function"?t(e):t}function ha(e,t){var n=t(),r=su({t:{__:n,u:t}}),u=r[0].t,a=r[1];return da(function(){u.__=n,u.u=t,Xo(u)&&a({t:u})},[e,n,t]),qn(function(){return Xo(u)&&a({t:u}),e(function(){Xo(u)&&a({t:u})})},[e]),n}function Xo(e){var t=e.u,n=e.__;try{var r=t();return!Object.is(n,r)}catch(u){return!0}}function Fl(e){e()}function _l(e){return e}function Cl(){return[!1,Fl]}var kl=da,es=Object.assign;function ts(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}var Qh=/^(-|f[lo].*[^se]$|g.{5,}[^ps]$|z|o[pr]|(W.{5})?[lL]i.*(t|mp)$|an|(bo|s).{4}Im|sca|m.{6}[ds]|ta|c.*[st]$|wido|ini)/;function ns(e,t){this.props=e,this.context=t}function wl(e,t){function n(u){var a=this.props.ref,i=a==u.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,u)||!i:ts(this.props,u)}function r(u){return this.shouldComponentUpdate=n,kn(e,u)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.type=e,r}(ns.prototype=new Er).isPureReactComponent=!0,ns.prototype.shouldComponentUpdate=function(e,t){return ts(this.props,e)||ts(this.state,t)};var Yh=Symbol.for("react.forward_ref"),Sl=function(e,t,n){return e==null?null:Rr(Rr(e).map(t.bind(n)))},Xh={map:Sl,forEach:Sl,count:function(e){return e?Rr(e).length:0},only:function(e){var t=Rr(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Rr},ev=et.__e;et.__e=function(e,t,n,r){if(e.then){for(var u,a=t;a=a.__;)if((u=a.__c)&&u.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),u.__c(e,t)}ev(e,t,n,r)};var xl=et.unmount;function Tl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=es({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__g|=4,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Tl(r,t,n)})),e}function Ol(e,t,n){return e&&n&&(typeof e.type=="string"&&(e.__u|=1),e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ol(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__g|=4,e.__c.__P=n)),e}function Ei(){this.__u=0,this.o=null,this.__b=null}function tv(e){return this.getChildContext=function(){return e.context},e.children}function nv(e){var t=this,n=e.i;if(t.componentWillUnmount=function(){fa(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),!t.l){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},ownerDocument:n.ownerDocument,insertBefore:function(u,a){this.childNodes.push(u),t.i.insertBefore(u,a)}}}fa(kn(tv,{context:t.context},e.__v),t.l)}function Il(e,t){var n=kn(nv,{__v:e,i:t});return n.containerInfo=t,n}et.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),xl&&xl(e)},(Ei.prototype=new Er).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var u=!1,a=function(){u||(u=!0,n.__R=null,i())};n.__R=a;var i=function(){if(!--r.__u){if(r.state.__a){var o=r.state.__a;r.__v.__k[0]=Ol(o,o.__c.__P,o.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Ei.prototype.componentWillUnmount=function(){this.o=[]},Ei.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Tl(this.__b,n,r.__O=r.__P)}this.__b=null}return[kn(tr,null,t.__a?null:e.children),t.__a&&kn(tr,null,e.fallback)]};var Bl=Symbol.for("react.element"),rv=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,uv=/[A-Z0-9]/g,av=typeof document!="undefined",iv=function(e){return/fil|che|rad/.test(e)};function Pl(e,t,n){return t.__k==null&&(t.textContent=""),fa(e,t),typeof n=="function"&&n(),e?e.__c:null}Er.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Er.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var jl=et.event;function ov(){}function sv(){return this.cancelBubble}function cv(){return this.defaultPrevented}et.event=function(e){return jl&&(e=jl(e)),e.persist=ov,e.isPropagationStopped=sv,e.isDefaultPrevented=cv,e.nativeEvent=e};var rs,lv={enumerable:!1,configurable:!0,get:function(){return this.class}},Nl=et.vnode;et.vnode=function(e){if(typeof e.type=="string")(function(r){var u=r.props,a=r.type,i={},o=a.indexOf("-")===-1;for(var c in u){var l=u[c];if(!(c==="value"&&"defaultValue"in u&&l==null||av&&c==="children"&&a==="noscript"||c==="class"||c==="className")){if(c==="style"&&typeof l=="object")for(var p in l)typeof l[p]!="number"||Qh.test(p)||(l[p]+="px");else if(c==="defaultValue"&&"value"in u&&u.value==null)c="value";else if(c==="download"&&l===!0)l="";else if(c==="translate"&&l==="no")l=!1;else if(c[0]==="o"&&c[1]==="n"){var m=c.toLowerCase();m==="ondoubleclick"?c="ondblclick":m!=="onchange"||a!=="input"&&a!=="textarea"||iv(u.type)?m==="onfocus"?c="onfocusin":m==="onblur"&&(c="onfocusout"):m=c="oninput",m==="oninput"&&i[c=m]&&(c="oninputCapture")}else o&&rv.test(c)?c=c.replace(uv,"-$&").toLowerCase():l===null&&(l=void 0);i[c]=l}}a=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Rr(u.children).forEach(function(v){v.props.selected=i.value.indexOf(v.props.value)!=-1})),a=="select"&&i.defaultValue!=null&&(i.value=Rr(u.children).forEach(function(v){v.props.selected=i.multiple?i.defaultValue.indexOf(v.props.value)!=-1:i.defaultValue==v.props.value})),u.class&&!u.className?(i.class=u.class,Object.defineProperty(i,"className",lv)):(u.className&&!u.class||u.class&&u.className)&&(i.class=i.className=u.className),r.props=i})(e);else if(typeof e.type=="function"&&("ref"in e.props&&"prototype"in e.type&&e.type.prototype.render&&(e.ref=e.props.ref,delete e.props.ref),e.type.defaultProps)){var t=es({},e.props);for(var n in e.type.defaultProps)t[n]===void 0&&(t[n]=e.type.defaultProps[n]);e.props=t}e.$$typeof=Bl,Nl&&Nl(e)};var Rl=et.__r;et.__r=function(e){Rl&&Rl(e),rs=e.__c};var zl=et.diffed;et.diffed=function(e){zl&&zl(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),rs=null};var fv={ReactCurrentDispatcher:{current:{readContext:function(e){return rs.__n[e.__c].props.value},useCallback:pa,useContext:yl,useDebugValue:Dl,useDeferredValue:_l,useEffect:qn,useId:bl,useImperativeHandle:gl,useInsertionEffect:kl,useLayoutEffect:da,useMemo:On,useReducer:Jo,useRef:Iu,useState:su,useSyncExternalStore:ha,useTransition:Cl}}};function va(e){return!!e&&e.$$typeof===Bl}function Ll(e){return!!e.__k&&(fa(null,e),!0)}var b={useState:su,useId:bl,useReducer:Jo,useEffect:qn,useLayoutEffect:da,useInsertionEffect:kl,useTransition:Cl,useDeferredValue:_l,useSyncExternalStore:ha,startTransition:Fl,useRef:Iu,useImperativeHandle:gl,useMemo:On,useCallback:pa,useContext:yl,useDebugValue:Dl,version:"18.3.1",Children:Xh,render:Pl,hydrate:function(e,t,n){return(function(r,u){r.__u|=32,fa(r,u)})(e,t),typeof n=="function"&&n(),e?e.__c:null},unmountComponentAtNode:Ll,createPortal:Il,createElement:kn,createContext:function(e){function t(n){var r,u;return this.getChildContext||(r=new Set,(u={})[t.__c]=this,this.getChildContext=function(){return u},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(a){this.props.value!=a.value&&r.forEach(function(i){i.__g|=4,Ho(i)})},this.sub=function(a){r.add(a);var i=a.componentWillUnmount;a.componentWillUnmount=function(){r&&r.delete(a),i&&i.call(a)}}),n.children}return t.__c="__cC"+Xc++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t},createFactory:function(e){return kn.bind(null,e)},cloneElement:function(e){return va(e)?Kh.apply(null,arguments):e},createRef:Hh,Fragment:tr,isValidElement:va,isElement:va,isFragment:function(e){return va(e)&&e.type===tr},isMemo:function(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.__v&&e.__v.__e||e.nodeType===1&&e)||null},Component:Er,PureComponent:ns,memo:wl,forwardRef:function(e){function t(n){var r=es({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Yh,t.render=e,t.prototype.isReactComponent=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:tr,Suspense:Ei,lazy:function(e){var t,n,r;function u(a){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return kn(n,a)}return u.displayName="Lazy",u},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fv};function Ml(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dv(e,t,n){return(t=(function(r){var u=(function(a){if(we(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(we(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return we(u)=="symbol"?u:u+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$l(Object(n),!0).forEach(function(r){dv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ma(e,t){return(function(n){if(Array.isArray(n))return n})(e)||(function(n,r){var u=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(u!=null){var a,i,o,c,l=[],p=!0,m=!1;try{if(o=(u=u.call(n)).next,r!==0)for(;!(p=(a=o.call(u)).done)&&(l.push(a.value),l.length!==r);p=!0);}catch(v){m=!0,i=v}finally{try{if(!p&&u.return!=null&&(c=u.return(),Object(c)!==c))return}finally{if(m)throw i}}return l}})(e,t)||(function(n,r){if(n){if(typeof n=="string")return Ml(n,r);var u={}.toString.call(n).slice(8,-1);return u==="Object"&&n.constructor&&(u=n.constructor.name),u==="Map"||u==="Set"?Array.from(n):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Ml(n,r):void 0}})(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}var ql={"Ctrl/Cmd+K":!0,"/":!0,"Ctrl/Cmd+I":!0};function pv(e){return Zl(Zl({},ql),e)}function hv(e){var t=e.isOpen,n=e.isAskAiActive,r=e.onAskAiToggle,u=e.onClose,a=e.onOpen,i=e.keyboardShortcuts,o=i===void 0?ql:i;b.useEffect(function(){function c(l){var p;if(t&&l.code==="Escape"&&n)r(!1);else{var m=o["Ctrl/Cmd+K"]&&((p=l.key)===null||p===void 0?void 0:p.toLowerCase())==="k"&&(l.metaKey||l.ctrlKey),v=o["/"]&&l.key==="/";(l.code==="Escape"&&t||m||!(function(y){var F=y.composedPath()[0],D=F.tagName;return F.isContentEditable||D==="INPUT"||D==="SELECT"||D==="TEXTAREA"})(l)&&v&&!t)&&(l.preventDefault(),t?u():document.body.classList.contains("DocSearch--active")||a())}}return window.addEventListener("keydown",c),function(){window.removeEventListener("keydown",c)}},[t,n,o,a,u,r])}var vv=["children","theme","onReady","onOpen","onClose","onSidepanelOpen","onSidepanelClose"],us=b.createContext(void 0);us.displayName="DocSearchContext";var Hl=b.forwardRef(function(e,t){var n=e.children,r=e.theme,u=e.onReady,a=e.onOpen,i=e.onClose,o=e.onSidepanelOpen,c=e.onSidepanelClose,l=(function(se,K){if(se==null)return{};var V,ue,oe=(function(ee,he){if(ee==null)return{};var Ce={};for(var Re in ee)if({}.hasOwnProperty.call(ee,Re)){if(he.indexOf(Re)!==-1)continue;Ce[Re]=ee[Re]}return Ce})(se,K);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(se);for(ue=0;ue<ce.length;ue++)V=ce[ue],K.indexOf(V)===-1&&{}.propertyIsEnumerable.call(se,V)&&(oe[V]=se[V])}return oe})(e,vv),p=ma(b.useState("ready"),2),m=p[0],v=p[1],y=ma(b.useState(l.initialQuery||""),2),F=y[0],D=y[1],_=b.useRef(null),O=pv(l.keyboardShortcuts),w=ma(b.useState(),2),x=w[0],S=w[1],T=ma(b.useState(function(){return new Set}),2),I=T[0],B=T[1],d=(function(){var se=ma(b.useState(!1),2),K=se[0],V=se[1];return b.useEffect(function(){var ue=function(){var oe=window.matchMedia("(max-width: 768px)");V(oe.matches)};return ue(),window.addEventListener("resize",ue),function(){window.removeEventListener("resize",ue)}},[]),K})(),H=b.useRef("ready"),R=["modal-search","modal-askai"].includes(m),Z=m==="modal-askai",q=!d&&I.has("sidepanel"),G=m==="sidepanel";b.useEffect(function(){u==null||u()},[u]),b.useEffect(function(){var se=H.current,K=m;K!=="modal-search"&&K!=="modal-askai"||se==="modal-search"||se==="modal-askai"||a==null||a(),K!=="ready"||se!=="modal-search"&&se!=="modal-askai"||i==null||i(),K==="sidepanel"&&se!=="sidepanel"&&(o==null||o()),K!=="sidepanel"&&se==="sidepanel"&&(c==null||c()),H.current=K},[m,a,i,o,c]);var L=b.useCallback(function(){v("modal-search")},[]),ne=b.useCallback(function(){var se,K;v("ready"),(se=_.current)===null||se===void 0||se.focus(),D((K=l.initialQuery)!==null&&K!==void 0?K:"")},[v,l.initialQuery]),Q=b.useCallback(function(se,K){if(!d&&se&&q)return S(K),void v("sidepanel");v(se?"modal-askai":"modal-search")},[v,d,q]),$=b.useCallback(function(se){I.has("sidepanel")&&(S(se),v("sidepanel"))},[v,I]),Y=b.useCallback(function(se){v("modal-search"),D(se.key)},[v,D]),re=b.useCallback(function(se){I.has(se)||B(function(K){var V=new Set(K);return V.add(se),V})},[I]);b.useImperativeHandle(t,function(){return{open:L,close:ne,openAskAi:function(se){return Q(!0,se)},openSidepanel:$,get isReady(){return!0},get isOpen(){return R},get isSidepanelOpen(){return G},get isSidepanelSupported(){return q}}},[L,ne,Q,$,R,G,q]),(function(se){var K=se.theme;qn(function(){if(K){var V=document.documentElement.dataset.theme;if(K!==V)return document.documentElement.dataset.theme=K,function(){V===void 0?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=V}}},[K])})({theme:r}),hv({isOpen:R,onOpen:L,onClose:ne,onAskAiToggle:Q,onInput:Y,isAskAiActive:Z,searchButtonRef:_,keyboardShortcuts:O});var me=b.useMemo(function(){return{docsearchState:m,setDocsearchState:v,searchButtonRef:_,initialQuery:F,keyboardShortcuts:O,openModal:L,closeModal:ne,isAskAiActive:Z,isModalActive:R,onAskAiToggle:Q,initialAskAiMessage:x,registerView:re,isHybridModeSupported:q}},[m,_,F,O,L,ne,Z,R,Q,x,re,q]);return b.createElement(us.Provider,{value:me},n)});Hl.displayName="DocSearch";var mv=["type"],gv=["type"],yv=["additionalProperties"],Dv=["abortSignal"],bv=["messageId"],Av=["messages"],Ev=["experimental_throttle","resume"];function as(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ul(e,t,n,r,u,a,i){try{var o=e[a](i),c=o.value}catch(l){return void n(l)}o.done?t(c):Promise.resolve(c).then(r,u)}function Xe(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var a=e.apply(t,n);function i(c){Ul(a,r,u,i,o,"next",c)}function o(c){Ul(a,r,u,i,o,"throw",c)}i(void 0)})}}function $e(e,t,n){return t=ga(t),(function(r,u){if(u&&(we(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a})(r)})(e,is()?Reflect.construct(t,n||[],ga(e).constructor):t.apply(e,n))}function Be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wl(e,t,n){if(is())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var u=new(e.bind.apply(e,r));return n&&Bu(u,n.prototype),u}function Vl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gl(r.key),r)}}function Pe(e,t,n){return t&&Vl(e.prototype,t),n&&Vl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ye(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=os(e))||t){n&&(e=n);var r=0,u=function(){};return{s:u,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){o=!0,a=c},f:function(){try{i||n.return==null||n.return()}finally{if(o)throw a}}}}function lt(e,t,n){return(t=Gl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(null,arguments)}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ga(e)}function Me(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bu(e,t)}function is(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(is=function(){return!!e})()}function Kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kl(Object(n),!0).forEach(function(r){lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function an(e,t){if(e==null)return{};var n,r,u=(function(i,o){if(i==null)return{};var c={};for(var l in i)if({}.hasOwnProperty.call(i,l)){if(o.indexOf(l)!==-1)continue;c[l]=i[l]}return c})(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function Ae(){var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function a(y,F,D,_){var O=F&&F.prototype instanceof o?F:o,w=Object.create(O.prototype);return wn(w,"_invoke",(function(x,S,T){var I,B,d,H=0,R=T||[],Z=!1,q={p:0,n:0,v:e,a:G,f:G.bind(e,4),d:function(L,ne){return I=L,B=0,d=e,q.n=ne,i}};function G(L,ne){for(B=L,d=ne,t=0;!Z&&H&&!Q&&t<R.length;t++){var Q,$=R[t],Y=q.p,re=$[2];L>3?(Q=re===ne)&&(d=$[(B=$[4])?5:(B=3,3)],$[4]=$[5]=e):$[0]<=Y&&((Q=L<2&&Y<$[1])?(B=0,q.v=ne,q.n=$[1]):Y<re&&(Q=L<3||$[0]>ne||ne>re)&&($[4]=L,$[5]=ne,q.n=re,B=0))}if(Q||L>1)return i;throw Z=!0,ne}return function(L,ne,Q){if(H>1)throw TypeError("Generator is already running");for(Z&&ne===1&&G(ne,Q),B=ne,d=Q;(t=B<2?e:d)||!Z;){I||(B?B<3?(B>1&&(q.n=-1),G(B,d)):q.n=d:q.v=d);try{if(H=2,I){if(B||(L="next"),t=I[L]){if(!(t=t.call(I,d)))throw TypeError("iterator result is not an object");if(!t.done)return t;d=t.value,B<2&&(B=0)}else B===1&&(t=I.return)&&t.call(I),B<2&&(d=TypeError("The iterator does not provide a '"+L+"' method"),B=1);I=e}else if((t=(Z=q.n<0)?d:x.call(S,q))!==i)break}catch($){I=e,B=1,d=$}finally{H=1}}return{value:t,done:Z}}})(y,D,_),!0),w}var i={};function o(){}function c(){}function l(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(wn(t={},r,function(){return this}),t),m=l.prototype=o.prototype=Object.create(p);function v(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,l):(y.__proto__=l,wn(y,u,"GeneratorFunction")),y.prototype=Object.create(m),y}return c.prototype=l,wn(m,"constructor",l),wn(l,"constructor",c),c.displayName="GeneratorFunction",wn(l,u,"GeneratorFunction"),wn(m),wn(m,u,"Generator"),wn(m,r,function(){return this}),wn(m,"toString",function(){return"[object Generator]"}),(Ae=function(){return{w:a,m:v}})()}function wn(e,t,n,r){var u=Object.defineProperty;try{u({},"",{})}catch(a){u=0}wn=function(a,i,o,c){function l(p,m){wn(a,p,function(v){return this._invoke(p,m,v)})}i?u?u(a,i,{value:o,enumerable:!c,configurable:!c,writable:!c}):a[i]=o:(l("next",0),l("throw",1),l("return",2))},wn(e,t,n,r)}function Bu(e,t){return Bu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bu(e,t)}function dt(e,t){return(function(n){if(Array.isArray(n))return n})(e)||(function(n,r){var u=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(u!=null){var a,i,o,c,l=[],p=!0,m=!1;try{if(o=(u=u.call(n)).next,r===0){if(Object(u)!==u)return;p=!1}else for(;!(p=(a=o.call(u)).done)&&(l.push(a.value),l.length!==r);p=!0);}catch(v){m=!0,i=v}finally{try{if(!p&&u.return!=null&&(c=u.return(),Object(c)!==c))return}finally{if(m)throw i}}return l}})(e,t)||os(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function be(e){return(function(t){if(Array.isArray(t))return as(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||os(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Gl(e){var t=(function(n){if(we(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var u=r.call(n,"string");if(we(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)})(e);return we(t)=="symbol"?t:t+""}function Qt(e){return Qt=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Qt(e)}function os(e,t){if(e){if(typeof e=="string")return as(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?as(e,t):void 0}}function Lr(e){var t=typeof Map=="function"?new Map:void 0;return Lr=function(n){if(n===null||!(function(u){try{return Function.toString.call(u).indexOf("[native code]")!==-1}catch(a){return typeof u=="function"}})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Wl(n,arguments,ga(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Bu(r,n)},Lr(e)}function Fi(){Fi=function(u,a){return new n(u,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(u,a,i){var o=RegExp(u,a);return t.set(o,i||t.get(u)),Bu(o,n.prototype)}function r(u,a){var i=t.get(a);return Object.keys(i).reduce(function(o,c){var l=i[c];if(typeof l=="number")o[c]=u[l];else{for(var p=0;u[l[p]]===void 0&&p+1<l.length;)p++;o[c]=u[l[p]]}return o},Object.create(null))}return Me(n,RegExp),n.prototype.exec=function(u){var a=e.exec.call(this,u);if(a){a.groups=r(a,this);var i=a.indices;i&&(i.groups=r(i,this))}return a},n.prototype[Symbol.replace]=function(u,a){if(typeof a=="string"){var i=t.get(this);return e[Symbol.replace].call(this,u,a.replace(/\$<([^>]+)(>|$)/g,function(c,l,p){if(p==="")return c;var m=i[l];return Array.isArray(m)?"$"+m.join("$"):typeof m=="number"?"$"+m:""}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,u,function(){var c=arguments;return we(c[c.length-1])!="object"&&(c=[].slice.call(c)).push(r(c,o)),a.apply(this,c)})}return e[Symbol.replace].call(this,u,a)},Fi.apply(this,arguments)}var Jl=function(e){var t=e.theme;qn(function(){if(t){var n=document.documentElement.dataset.theme;if(t!==n)return document.documentElement.dataset.theme=t,function(){n===void 0?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=n}}},[t])},Fv={"Ctrl/Cmd+K":!0,"/":!0};function ya(e){var t=e.size,n=t===void 0?20:t,r=e.color,u=r===void 0?"currentColor":r;return b.createElement("svg",{width:n,height:n,className:"DocSearch-Search-Icon",viewBox:"0 0 24 24","aria-hidden":"true"},b.createElement("circle",{cx:"11",cy:"11",r:"8",stroke:u,fill:"none",strokeWidth:"1.4"}),b.createElement("path",{d:"m21 21-4.3-4.3",stroke:u,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}))}function Ql(e,t,n){return e.reduce(function(r,u){var a=t(u);return r.hasOwnProperty(a)||(r[a]=[]),r[a].length<(n||5)&&r[a].push(u),r},{})}function ss(e){return e}function _i(e){return e.button===1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}var cs="Ctrl";function _v(){}var Yl=/(<mark>|<\/mark>)/g,Cv=RegExp(Yl.source);function Xl(e){var t,n,r=e;if(!r.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var u=r.__docsearch_parent?(t=r.__docsearch_parent)===null||t===void 0||(t=t._highlightResult)===null||t===void 0||(t=t.hierarchy)===null||t===void 0?void 0:t.lvl0:(n=e._highlightResult)===null||n===void 0||(n=n.hierarchy)===null||n===void 0?void 0:n.lvl0;return u?u.value&&Cv.test(u.value)?u.value.replace(Yl,""):u.value:e.hierarchy.lvl0}var kv=["translations","keyboardShortcuts"],wv=b.forwardRef(function(e,t){var n=e.translations,r=n===void 0?{}:n,u=e.keyboardShortcuts,a=an(e,kv),i=r.buttonText,o=i===void 0?"Search":i,c=r.buttonAriaLabel,l=c===void 0?"Search":c,p=(function(S){return C(C({},Fv),S)})(u),m=dt(su(null),2),v=m[0],y=m[1];Jl({theme:a.theme}),qn(function(){typeof navigator!="undefined"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?y("\u2318"):y(cs))},[]);var F=dt(v===cs?[cs,"Control","Ctrl"]:["Meta","Meta","\u2318"],3),D=F[0],_=F[1],O=F[2],w=p["Ctrl/Cmd+K"],x="".concat(_,"+k");return b.createElement("button",Tt({type:"button",className:"DocSearch DocSearch-Button","aria-label":w?"".concat(l," (").concat(x,")"):l,"aria-keyshortcuts":w?x:void 0},a,{ref:t}),b.createElement("span",{className:"DocSearch-Button-Container"},b.createElement(ya,null),b.createElement("span",{className:"DocSearch-Button-Placeholder"},o)),b.createElement("span",{className:"DocSearch-Button-Keys"},v!==null&&w&&b.createElement(b.Fragment,null,b.createElement(ef,{reactsToKey:D},O),b.createElement(ef,{reactsToKey:"k"},"K"))))});function ef(e){var t=e.reactsToKey,n=e.children,r=dt(su(!1),2),u=r[0],a=r[1];return qn(function(){if(t)return window.addEventListener("keydown",i),window.addEventListener("keyup",o),function(){window.removeEventListener("keydown",i),window.removeEventListener("keyup",o)};function i(c){c.key===t&&a(!0)}function o(c){c.key!==t&&c.key!=="Meta"||a(!1)}},[t]),b.createElement("kbd",{className:u?"DocSearch-Button-Key DocSearch-Button-Key--pressed":"DocSearch-Button-Key"+(t==="Ctrl"?" DocSearch-Button-Key--ctrl":"")},n)}function tf(e,t){var n=void 0;return function(){for(var r=arguments.length,u=new Array(r),a=0;a<r;a++)u[a]=arguments[a];n&&clearTimeout(n),n=setTimeout(function(){return e.apply(void 0,u)},t)}}function Da(e){return e.reduce(function(t,n){return t.concat(n)},[])}var Sv=0;function ls(e){return e.collections.length===0?0:e.collections.reduce(function(t,n){return t+n.items.length},0)}function nf(e){return e!==Object(e)}function rf(e,t){if(e===t)return!0;if(nf(e)||nf(t)||typeof e=="function"||typeof t=="function")return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=0,r=Object.keys(e);n<r.length;n++){var u=r[n];if(!(u in t)||!rf(e[u],t[u]))return!1}return!0}var Ci=function(){},xv=[{segment:"autocomplete-core",version:"1.19.2"}];function uf(e){var t=e.item,n=e.items,r=n===void 0?[]:n;return{index:t.__autocomplete_indexName,items:[t],positions:[1+r.findIndex(function(u){return u.objectID===t.objectID})],queryID:t.__autocomplete_queryID,algoliaSource:["autocomplete"]}}function af(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Tv=["items"],Ov=["items"];function ba(e){return ba=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},ba(e)}function ki(e){return(function(t){if(Array.isArray(t))return fs(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||(function(t,n){if(t){if(typeof t=="string")return fs(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fs(t,n):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function fs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function of(e,t){if(e==null)return{};var n,r,u=(function(i,o){if(i==null)return{};var c,l,p={},m=Object.keys(i);for(l=0;l<m.length;l++)c=m[l],o.indexOf(c)>=0||(p[c]=i[c]);return p})(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Pu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sf(Object(n),!0).forEach(function(r){Iv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iv(e,t,n){return(t=(function(r){var u=(function(a){if(ba(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(ba(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return ba(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(e){return e.map(function(t){var n=t.items,r=of(t,Tv);return Pu(Pu({},r),{},{objectIDs:(n==null?void 0:n.map(function(u){return u.objectID}))||r.objectIDs})})}function Bv(e){var t,n,r,u=(t=(function(i,o){return(function(c){if(Array.isArray(c))return c})(i)||(function(c,l){var p=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(p!=null){var m,v,y,F,D=[],_=!0,O=!1;try{if(y=(p=p.call(c)).next,l!==0)for(;!(_=(m=y.call(p)).done)&&(D.push(m.value),D.length!==l);_=!0);}catch(w){O=!0,v=w}finally{try{if(!_&&p.return!=null&&(F=p.return(),Object(F)!==F))return}finally{if(O)throw v}}return D}})(i,o)||(function(c,l){if(c){if(typeof c=="string")return af(c,l);var p=Object.prototype.toString.call(c).slice(8,-1);return p==="Object"&&c.constructor&&(p=c.constructor.name),p==="Map"||p==="Set"?Array.from(c):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?af(c,l):void 0}})(i,o)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})((e.version||"").split(".").map(Number),2),n=t[0],r=t[1],n>=3||n===2&&r>=4||n===1&&r>=10);function a(i,o,c){if(u&&c!==void 0){var l=c[0].__autocomplete_algoliaCredentials,p={"X-Algolia-Application-Id":l.appId,"X-Algolia-API-Key":l.apiKey};e.apply(void 0,[i].concat(ki(o),[{headers:p}]))}else e.apply(void 0,[i].concat(ki(o)))}return{init:function(i,o){e("init",{appId:i,apiKey:o})},setAuthenticatedUserToken:function(i){e("setAuthenticatedUserToken",i)},setUserToken:function(i){e("setUserToken",i)},clickedObjectIDsAfterSearch:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&a("clickedObjectIDsAfterSearch",wi(o),o[0].items)},clickedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&a("clickedObjectIDs",wi(o),o[0].items)},clickedFilters:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&e.apply(void 0,["clickedFilters"].concat(o))},convertedObjectIDsAfterSearch:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&a("convertedObjectIDsAfterSearch",wi(o),o[0].items)},convertedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&a("convertedObjectIDs",wi(o),o[0].items)},convertedFilters:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&e.apply(void 0,["convertedFilters"].concat(o))},viewedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&o.reduce(function(l,p){var m=p.items,v=of(p,Ov);return[].concat(ki(l),ki((function(y){for(var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,D=[],_=0;_<y.objectIDs.length;_+=F)D.push(Pu(Pu({},y),{},{objectIDs:y.objectIDs.slice(_,_+F)}));return D})(Pu(Pu({},v),{},{objectIDs:(m==null?void 0:m.map(function(y){return y.objectID}))||v.objectIDs})).map(function(y){return{items:m,payload:y}})))},[]).forEach(function(l){var p=l.items;return a("viewedObjectIDs",[l.payload],p)})},viewedFilters:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&e.apply(void 0,["viewedFilters"].concat(o))}}}function Pv(e){var t=e.items.reduce(function(n,r){var u;return n[r.__autocomplete_indexName]=((u=n[r.__autocomplete_indexName])!==null&&u!==void 0?u:[]).concat(r),n},{});return Object.keys(t).map(function(n){return{index:n,items:t[n],algoliaSource:["autocomplete"]}})}function Aa(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function Ea(e){return Ea=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Ea(e)}function ju(e){return(function(t){if(Array.isArray(t))return ds(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||(function(t,n){if(t){if(typeof t=="string")return ds(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ds(t,n):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function ds(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cf(Object(n),!0).forEach(function(r){jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jv(e,t,n){return(t=(function(r){var u=(function(a){if(Ea(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ea(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ea(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lf="2.15.0",Nv="https://cdn.jsdelivr.net/npm/search-insights@".concat(lf,"/dist/search-insights.min.js"),Rv=tf(function(e){var t=e.onItemsChange,n=e.items,r=e.insights,u=e.state;t({insights:r,insightsEvents:Pv({items:n}).map(function(a){return Hn({eventName:"Items Viewed"},a)}),state:u})},400);function ff(e){var t=(function(v){return Hn({onItemsChange:function(y){var F=y.insights,D=y.insightsEvents,_=y.state;F.viewedObjectIDs.apply(F,ju(D.map(function(O){return Hn(Hn({},O),{},{algoliaSource:df(O.algoliaSource,_.context)})})))},onSelect:function(y){var F=y.insights,D=y.insightsEvents,_=y.state;F.clickedObjectIDsAfterSearch.apply(F,ju(D.map(function(O){return Hn(Hn({},O),{},{algoliaSource:df(O.algoliaSource,_.context)})})))},onActive:Ci,__autocomplete_clickAnalytics:!0},v)})(e),n=t.insightsClient,r=t.insightsInitParams,u=t.onItemsChange,a=t.onSelect,i=t.onActive,o=t.__autocomplete_clickAnalytics,c=n;if(n||typeof window!="undefined"&&(function(v){var y=v.window,F=y.AlgoliaAnalyticsObject||"aa";typeof F=="string"&&(c=y[F]),c||(y.AlgoliaAnalyticsObject=F,y[F]||(y[F]=function(){y[F].queue||(y[F].queue=[]);for(var D=arguments.length,_=new Array(D),O=0;O<D;O++)_[O]=arguments[O];y[F].queue.push(_)}),y[F].version=lf,c=y[F],(function(D){var _="[Autocomplete]: Could not load search-insights.js. Please load it manually following https://alg.li/insights-autocomplete";try{var O=D.document.createElement("script");O.async=!0,O.src=Nv,O.onerror=function(){console.error(_)},document.body.appendChild(O)}catch(w){console.error(_)}})(y))})({window}),!c)return{};r&&c("init",Hn({partial:!0},r));var l=Bv(c),p={current:[]},m=tf(function(v){var y=v.state;if(y.isOpen){var F=y.collections.reduce(function(D,_){return[].concat(ju(D),ju(_.items))},[]).filter(Aa);rf(p.current.map(function(D){return D.objectID}),F.map(function(D){return D.objectID}))||(p.current=F,F.length>0&&Rv({onItemsChange:u,items:F,insights:l,state:y}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(v){var y=v.setContext,F=v.onSelect,D=v.onActive;function _(O){y({algoliaInsightsPlugin:{__algoliaSearchParameters:Hn(Hn({},o?{clickAnalytics:!0}:{}),O?{userToken:zv(O)}:{}),insights:l}})}c("addAlgoliaAgent","insights-plugin"),_(),c("onUserTokenChange",function(O){_(O)}),c("getUserToken",null,function(O,w){_(w)}),F(function(O){var w=O.item,x=O.state,S=O.event,T=O.source;Aa(w)&&a({state:x,event:S,insights:l,item:w,insightsEvents:[Hn({eventName:"Item Selected"},uf({item:w,items:T.getItems().filter(Aa)}))]})}),D(function(O){var w=O.item,x=O.source,S=O.state,T=O.event;Aa(w)&&i({state:S,event:T,insights:l,item:w,insightsEvents:[Hn({eventName:"Item Active"},uf({item:w,items:x.getItems().filter(Aa)}))]})})},onStateChange:function(v){var y=v.state;m({state:y})},__autocomplete_pluginOptions:e}}function df(){var e,t=arguments.length>1?arguments[1]:void 0;return[].concat(ju(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]),["autocomplete-internal"],ju((e=t.algoliaInsightsPlugin)!==null&&e!==void 0&&e.__automaticInsights?["autocomplete-automatic"]:[]))}function zv(e){return typeof e=="number"?e.toString():e}function Si(e,t){var n=t;return{then:function(r,u){return Si(e.then(xi(r,n,e),xi(u,n,e)),n)},catch:function(r){return Si(e.catch(xi(r,n,e)),n)},finally:function(r){return r&&n.onCancelList.push(r),Si(e.finally(xi(r&&function(){return n.onCancelList=[],r()},n,e)),n)},cancel:function(){n.isCanceled=!0;var r=n.onCancelList;n.onCancelList=[],r.forEach(function(u){u()})},isCanceled:function(){return n.isCanceled===!0}}}function pf(e){return Si(e,{isCanceled:!1,onCancelList:[]})}function xi(e,t,n){return e?function(r){return t.isCanceled?r:e(r)}:n}var ps,hs=!0;function hf(e,t,n,r){if(!n)return null;if(e<0&&(t===null||r!==null&&t===0))return n+e;var u=(t===null?-1:t)+e;return u<=-1||u>=n?r===null?null:0:u}function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function mf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vf(Object(n),!0).forEach(function(r){Lv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lv(e,t,n){return(t=(function(r){var u=(function(a){if(Fa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Fa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Fa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(e){return Fa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Fa(e)}function gf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yf=function(e,t){var n,r=!1,u=[],a=(function(p,m){var v=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(!v){if(Array.isArray(p)||(v=(function(w,x){if(w){if(typeof w=="string")return gf(w,x);var S=Object.prototype.toString.call(w).slice(8,-1);return S==="Object"&&w.constructor&&(S=w.constructor.name),S==="Map"||S==="Set"?Array.from(w):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?gf(w,x):void 0}})(p))||m){v&&(p=v);var y=0,F=function(){};return{s:F,n:function(){return y>=p.length?{done:!0}:{done:!1,value:p[y++]}},e:function(w){throw w},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D,_=!0,O=!1;return{s:function(){v=v.call(p)},n:function(){var w=v.next();return _=w.done,w},e:function(w){O=!0,D=w},f:function(){try{_||v.return==null||v.return()}finally{if(O)throw D}}}})(e);try{for(a.s();!(n=a.n()).done;){var i,o,c,l=(i=n.value.__autocomplete_pluginOptions)===null||i===void 0||(o=(c=i).awaitSubmit)===null||o===void 0?void 0:o.call(c);if(typeof l=="number")u.push(l);else if(l===!0){r=!0;break}}}catch(p){a.e(p)}finally{a.f()}return r?t.wait():u.length>0?t.wait(Math.max.apply(Math,u)):void 0};function cu(e){var t=(function(u){var a=u.collections.map(function(i){return i.items.length}).reduce(function(i,o,c){var l=(i[c-1]||0)+o;return i.push(l),i},[]).reduce(function(i,o){return o<=u.activeItemId?i+1:i},0);return u.collections[a]})(e);if(!t)return null;var n=t.items[(function(u){for(var a=u.state,i=u.collection,o=!1,c=0,l=0;o===!1;){var p=a.collections[c];if(p===i){o=!0;break}l+=p.items.length,c++}return a.activeItemId-l})({state:e,collection:t})],r=t.source;return{item:n,itemInputValue:r.getItemInputValue({item:n,state:e}),itemUrl:r.getItemUrl({item:n,state:e}),source:r}}function In(e,t,n){return[e,n==null?void 0:n.sourceId,t].filter(Boolean).join("-").replace(/\s/g,"")}var Mv=/((gt|sm)-|galaxy nexus)|samsung[- ]|samsungbrowser/i;function Df(e){return e.nativeEvent||e}function _a(e){return _a=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},_a(e)}function bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function $v(e,t,n){return(t=(function(r){var u=(function(a){if(_a(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(_a(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return _a(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e){return Ca=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Ca(e)}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Af(Object(n),!0).forEach(function(r){Zv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zv(e,t,n){return(t=(function(r){var u=(function(a){if(Ca(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ca(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ca(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ka(e){return ka=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},ka(e)}function vs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ef(Object(n),!0).forEach(function(r){qv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qv(e,t,n){return(t=(function(r){var u=(function(a){if(ka(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(ka(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return ka(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hv(e,t){var n,r=typeof window!="undefined"?window:{},u=e.plugins||[];return Nu(Nu({debug:!1,openOnFocus:!1,enterKeyHint:void 0,ignoreCompositionEvents:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:void 0,environment:r,shouldPanelOpen:function(a){return ls(a.state)>0},reshape:function(a){return a.sources}},e),{},{id:(n=e.id)!==null&&n!==void 0?n:"autocomplete-".concat(Sv++),plugins:u,initialState:Nu({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(a){var i;(i=e.onStateChange)===null||i===void 0||i.call(e,a),u.forEach(function(o){var c;return(c=o.onStateChange)===null||c===void 0?void 0:c.call(o,a)})},onSubmit:function(a){var i;(i=e.onSubmit)===null||i===void 0||i.call(e,a),u.forEach(function(o){var c;return(c=o.onSubmit)===null||c===void 0?void 0:c.call(o,a)})},onReset:function(a){var i;(i=e.onReset)===null||i===void 0||i.call(e,a),u.forEach(function(o){var c;return(c=o.onReset)===null||c===void 0?void 0:c.call(o,a)})},getSources:function(a){return Promise.all([].concat((function(i){return(function(o){if(Array.isArray(o))return vs(o)})(i)||(function(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)})(i)||(function(o,c){if(o){if(typeof o=="string")return vs(o,c);var l=Object.prototype.toString.call(o).slice(8,-1);return l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set"?Array.from(o):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?vs(o,c):void 0}})(i)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(u.map(function(i){return i.getSources})),[e.getSources]).filter(Boolean).map(function(i){return(function(o,c){var l=[];return Promise.resolve(o(c)).then(function(p){return Promise.all(p.filter(function(m){return!!m}).map(function(m){if(m.sourceId,l.includes(m.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(m.sourceId)," is not unique."));l.push(m.sourceId);var v={getItemInputValue:function(F){return F.state.query},getItemUrl:function(){},onSelect:function(F){(0,F.setIsOpen)(!1)},onActive:Ci,onResolve:Ci};Object.keys(v).forEach(function(F){v[F].__default=!0});var y=mf(mf({},v),m);return Promise.resolve(y)}))})})(i,a)})).then(function(i){return Da(i)}).then(function(i){return i.map(function(o){return Nu(Nu({},o),{},{onSelect:function(c){o.onSelect(c),t.forEach(function(l){var p;return(p=l.onSelect)===null||p===void 0?void 0:p.call(l,c)})},onActive:function(c){o.onActive(c),t.forEach(function(l){var p;return(p=l.onActive)===null||p===void 0?void 0:p.call(l,c)})},onResolve:function(c){o.onResolve(c),t.forEach(function(l){var p;return(p=l.onResolve)===null||p===void 0?void 0:p.call(l,c)})}})})})},navigator:Nu({navigate:function(a){var i=a.itemUrl;r.location.assign(i)},navigateNewTab:function(a){var i=a.itemUrl,o=r.open(i,"_blank","noopener");o==null||o.focus()},navigateNewWindow:function(a){var i=a.itemUrl;r.open(i,"_blank","noopener")}},e.navigator)})}function wa(e){return wa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},wa(e)}function Ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ff(Object(n),!0).forEach(function(r){_f(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _f(e,t,n){return(t=(function(r){var u=(function(a){if(wa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(wa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return wa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sa(e){return Sa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Sa(e)}function Cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Ru(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cf(Object(n),!0).forEach(function(r){Uv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uv(e,t,n){return(t=(function(r){var u=(function(a){if(Sa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Sa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Sa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kf(e){return(function(t){if(Array.isArray(t))return ms(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||(function(t,n){if(t){if(typeof t=="string")return ms(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ms(t,n):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function ms(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ii(e){return!!e.execute}function Wv(e){var t=e.reduce(function(n,r){if(!Ii(r))return n.push(r),n;var u=r.searchClient,a=r.execute,i=r.requesterId,o=r.requests,c=n.find(function(m){return Ii(r)&&Ii(m)&&m.searchClient===u&&!!i&&m.requesterId===i});if(c){var l;(l=c.items).push.apply(l,kf(o))}else{var p={execute:a,requesterId:i,items:o,searchClient:u};n.push(p)}return n},[]).map(function(n){if(!Ii(n))return Promise.resolve(n);var r=n,u=r.execute,a=r.items;return u({searchClient:r.searchClient,requests:a})});return Promise.all(t).then(function(n){return Da(n)})}function xa(e){return xa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},xa(e)}var Vv=["event","nextState","props","query","refresh","store"];function wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wf(Object(n),!0).forEach(function(r){Kv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kv(e,t,n){return(t=(function(r){var u=(function(a){if(xa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(xa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return xa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sf,gs,Bi,Ta=null,xf=(Sf=-1,gs=-1,Bi=void 0,function(e){var t=++Sf;return Promise.resolve(e).then(function(n){return Bi&&t<gs?Bi:(gs=t,Bi=n,n)})});function fu(e){var t=e.event,n=e.nextState,r=n===void 0?{}:n,u=e.props,a=e.query,i=e.refresh,o=e.store,c=(function(x,S){if(x==null)return{};var T,I,B=(function(H,R){if(H==null)return{};var Z,q,G={},L=Object.keys(H);for(q=0;q<L.length;q++)Z=L[q],R.indexOf(Z)>=0||(G[Z]=H[Z]);return G})(x,S);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(x);for(I=0;I<d.length;I++)T=d[I],S.indexOf(T)>=0||Object.prototype.propertyIsEnumerable.call(x,T)&&(B[T]=x[T])}return B})(e,Vv);Ta&&u.environment.clearTimeout(Ta);var l=c.setCollections,p=c.setIsOpen,m=c.setQuery,v=c.setActiveItemId,y=c.setStatus,F=c.setContext;if(m(a),v(u.defaultActiveItemId),!a&&u.openOnFocus===!1){var D,_=o.getState().collections.map(function(x){return lu(lu({},x),{},{items:[]})});y("idle"),l(_),p((D=r.isOpen)!==null&&D!==void 0?D:u.shouldPanelOpen({state:o.getState()}));var O=pf(xf(_).then(function(){return Promise.resolve()}));return o.pendingRequests.add(O)}y("loading"),Ta=u.environment.setTimeout(function(){y("stalled")},u.stallThreshold);var w=pf(xf(u.getSources(lu({query:a,refresh:i,state:o.getState()},c)).then(function(x){return Promise.all(x.map(function(S){return Promise.resolve(S.getItems(lu({query:a,refresh:i,state:o.getState()},c))).then(function(T){return(function(I,B,d){if(R=I,!!(R!=null&&R.execute)){var H=I.requesterId==="algolia"?Object.assign.apply(Object,[{}].concat(kf(Object.keys(d.context).map(function(Z){var q;return(q=d.context[Z])===null||q===void 0?void 0:q.__algoliaSearchParameters})))):{};return Ru(Ru({},I),{},{requests:I.queries.map(function(Z){return{query:I.requesterId==="algolia"?Ru(Ru({},Z),{},{params:Ru(Ru({},H),Z.params)}):Z,sourceId:B,transformResponse:I.transformResponse}})})}var R;return{items:I,sourceId:B}})(T,S.sourceId,o.getState())})})).then(Wv).then(function(S){var T,I=S.some(function(B){return(function(d){return!Array.isArray(d)&&!!(d!=null&&d._automaticInsights)})(B.items)});return I&&F({algoliaInsightsPlugin:lu(lu({},((T=o.getState().context)===null||T===void 0?void 0:T.algoliaInsightsPlugin)||{}),{},{__automaticInsights:I})}),(function(B,d,H){return d.map(function(R){var Z,q=B.filter(function(Q){return Q.sourceId===R.sourceId}),G=q.map(function(Q){return Q.items}),L=q[0].transformResponse,ne=L?L({results:Z=G,hits:Z.map(function(Q){return Q.hits}).filter(Boolean),facetHits:Z.map(function(Q){var $;return($=Q.facetHits)===null||$===void 0?void 0:$.map(function(Y){return{label:Y.value,count:Y.count,_highlightResult:{label:{value:Y.highlighted}}}})}).filter(Boolean)}):G;return R.onResolve({source:R,results:G,items:ne,state:H.getState()}),ne.every(Boolean),'The `getItems` function from source "'.concat(R.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),`.
|
|
15
22
|
|
|
16
23
|
Did you forget to return items?
|
|
17
24
|
|
|
18
|
-
See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:F,items:xe}}))})(E,w,d)})).then((function(E){return(function(L){var M=L.props,B=L.state,u=L.collections.reduce((function(F,X){return ei(ei({},F),{},qa({},X.source.sourceId,ei(ei({},X.source),{},{getItems:function(){return ir(X.items)}})))}),{}),W=M.plugins.reduce((function(F,X){return X.reshape?X.reshape(F):F}),{sourcesBySourceId:u,state:B}).sourcesBySourceId;return ir(M.reshape({sourcesBySourceId:W,sources:Object.values(W),state:B})).filter(Boolean).map((function(F){return{source:F,items:F.getItems()}}))})({collections:E,props:s,state:d.getState()})}))})))).then((function(w){var E;O("idle"),y(w);var L=s.shouldPanelOpen({state:d.getState()});S((E=o.isOpen)!==null&&E!==void 0?E:s.openOnFocus&&!l&&L||L);var M=fn(d.getState());if(d.getState().activeItemId!==null&&M){var B=M.item,u=M.itemInputValue,W=M.itemUrl,F=M.source;F.onActive(pn({event:n,item:B,itemInputValue:u,itemUrl:W,refresh:h,source:F,state:d.getState()},m))}})).finally((function(){O("idle"),gr&&s.environment.clearTimeout(gr)}));return d.pendingRequests.add(j)}function mr(t){return mr=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},mr(t)}var Ts=["event","props","refresh","store"];function Ua(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function hn(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Ua(Object(r),!0).forEach((function(o){js(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ua(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function js(t,n,r){return(n=(function(o){var s=(function(l){if(mr(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(mr(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return mr(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function vr(t){return vr=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},vr(t)}var Is=["props","refresh","store"],Ps=["inputElement","formElement","panelElement"],Ds=["inputElement"],Ns=["inputElement","maxLength"],Ls=["source"],Rs=["item","source"];function za(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function tt(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?za(Object(r),!0).forEach((function(o){qs(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):za(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function qs(t,n,r){return(n=(function(o){var s=(function(l){if(vr(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(vr(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return vr(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function Ln(t,n){if(t==null)return{};var r,o,s=(function(h,d){if(h==null)return{};var m,y,S={},v=Object.keys(h);for(y=0;y<v.length;y++)m=v[y],d.indexOf(m)>=0||(S[m]=h[m]);return S})(t,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)r=l[o],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(s[r]=t[r])}return s}function yr(t){return yr=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},yr(t)}function Wa(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function Ms(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Wa(Object(r),!0).forEach((function(o){Va(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wa(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function Va(t,n,r){return(n=(function(o){var s=(function(l){if(yr(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(yr(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return yr(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function Hs(t){var n,r,o,s,l=t.plugins,h=t.options,d=(n=(((r=h.__autocomplete_metadata)===null||r===void 0?void 0:r.userAgents)||[])[0])===null||n===void 0?void 0:n.segment,m=d?Va({},d,Object.keys(((o=h.__autocomplete_metadata)===null||o===void 0?void 0:o.options)||{})):{};return{plugins:l.map((function(y){return{name:y.name,options:Object.keys(y.__autocomplete_pluginOptions||[])}})),options:Ms({"autocomplete-core":Object.keys(h)},m),ua:fs.concat(((s=h.__autocomplete_metadata)===null||s===void 0?void 0:s.userAgents)||[])}}function Ga(t){var n,r=t.state;return r.isOpen===!1||r.activeItemId===null?null:((n=fn(r))===null||n===void 0?void 0:n.itemInputValue)||null}function br(t){return br=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},br(t)}function Ka(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function Ce(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Ka(Object(r),!0).forEach((function(o){Fs(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function Fs(t,n,r){return(n=(function(o){var s=(function(l){if(br(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(br(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return br(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var $s=function(t,n){switch(n.type){case"setActiveItemId":case"mousemove":return Ce(Ce({},t),{},{activeItemId:n.payload});case"setQuery":return Ce(Ce({},t),{},{query:n.payload,completion:null});case"setCollections":return Ce(Ce({},t),{},{collections:n.payload});case"setIsOpen":return Ce(Ce({},t),{},{isOpen:n.payload});case"setStatus":return Ce(Ce({},t),{},{status:n.payload});case"setContext":return Ce(Ce({},t),{},{context:Ce(Ce({},t.context),n.payload)});case"ArrowDown":var r=Ce(Ce({},t),{},{activeItemId:n.payload.hasOwnProperty("nextActiveItemId")?n.payload.nextActiveItemId:Ta(1,t.activeItemId,Mi(t),n.props.defaultActiveItemId)});return Ce(Ce({},r),{},{completion:Ga({state:r})});case"ArrowUp":var o=Ce(Ce({},t),{},{activeItemId:Ta(-1,t.activeItemId,Mi(t),n.props.defaultActiveItemId)});return Ce(Ce({},o),{},{completion:Ga({state:o})});case"Escape":return t.isOpen?Ce(Ce({},t),{},{activeItemId:null,isOpen:!1,completion:null}):Ce(Ce({},t),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return Ce(Ce({},t),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return Ce(Ce({},t),{},{activeItemId:n.props.openOnFocus===!0?n.props.defaultActiveItemId:null,status:"idle",completion:null,query:""});case"focus":return Ce(Ce({},t),{},{activeItemId:n.props.defaultActiveItemId,isOpen:(n.props.openOnFocus||!!t.query)&&n.props.shouldPanelOpen({state:t})});case"blur":return n.props.debug?t:Ce(Ce({},t),{},{isOpen:!1,activeItemId:null});case"mouseleave":return Ce(Ce({},t),{},{activeItemId:n.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(n.type)," is not supported."),t}};function _r(t){return _r=typeof Symbol=="function"&&ge(Symbol.iterator)=="symbol"?function(n){return ge(n)}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":ge(n)},_r(t)}function Qa(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),r.push.apply(r,o)}return r}function gn(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Qa(Object(r),!0).forEach((function(o){Bs(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qa(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}function Bs(t,n,r){return(n=(function(o){var s=(function(l){if(_r(l)!=="object"||l===null)return l;var h=l[Symbol.toPrimitive];if(h!==void 0){var d=h.call(l,"string");if(_r(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(o);return _r(s)==="symbol"?s:String(s)})(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function Us(t){var n=[],r=(function(S,v){var _,O=typeof window!="undefined"?window:{},D=S.plugins||[];return Dn(Dn({debug:!1,openOnFocus:!1,enterKeyHint:void 0,ignoreCompositionEvents:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:void 0,environment:O,shouldPanelOpen:function(k){return Mi(k.state)>0},reshape:function(k){return k.sources}},S),{},{id:(_=S.id)!==null&&_!==void 0?_:"autocomplete-".concat(ls++),plugins:D,initialState:Dn({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},S.initialState),onStateChange:function(k){var A;(A=S.onStateChange)===null||A===void 0||A.call(S,k),D.forEach((function(P){var j;return(j=P.onStateChange)===null||j===void 0?void 0:j.call(P,k)}))},onSubmit:function(k){var A;(A=S.onSubmit)===null||A===void 0||A.call(S,k),D.forEach((function(P){var j;return(j=P.onSubmit)===null||j===void 0?void 0:j.call(P,k)}))},onReset:function(k){var A;(A=S.onReset)===null||A===void 0||A.call(S,k),D.forEach((function(P){var j;return(j=P.onReset)===null||j===void 0?void 0:j.call(P,k)}))},getSources:function(k){return Promise.all([].concat((function(A){return(function(P){if(Array.isArray(P))return $i(P)})(A)||(function(P){if(typeof Symbol!="undefined"&&P[Symbol.iterator]!=null||P["@@iterator"]!=null)return Array.from(P)})(A)||(function(P,j){if(P){if(typeof P=="string")return $i(P,j);var w=Object.prototype.toString.call(P).slice(8,-1);return w==="Object"&&P.constructor&&(w=P.constructor.name),w==="Map"||w==="Set"?Array.from(P):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?$i(P,j):void 0}})(A)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(D.map((function(A){return A.getSources}))),[S.getSources]).filter(Boolean).map((function(A){return(function(P,j){var w=[];return Promise.resolve(P(j)).then((function(E){return Promise.all(E.filter((function(L){return!!L})).map((function(L){if(L.sourceId,w.includes(L.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(L.sourceId)," is not unique."));w.push(L.sourceId);var M={getItemInputValue:function(u){return u.state.query},getItemUrl:function(){},onSelect:function(u){(0,u.setIsOpen)(!1)},onActive:Kr,onResolve:Kr};Object.keys(M).forEach((function(u){M[u].__default=!0}));var B=Ia(Ia({},M),L);return Promise.resolve(B)})))}))})(A,k)}))).then((function(A){return ir(A)})).then((function(A){return A.map((function(P){return Dn(Dn({},P),{},{onSelect:function(j){P.onSelect(j),v.forEach((function(w){var E;return(E=w.onSelect)===null||E===void 0?void 0:E.call(w,j)}))},onActive:function(j){P.onActive(j),v.forEach((function(w){var E;return(E=w.onActive)===null||E===void 0?void 0:E.call(w,j)}))},onResolve:function(j){P.onResolve(j),v.forEach((function(w){var E;return(E=w.onResolve)===null||E===void 0?void 0:E.call(w,j)}))}})}))}))},navigator:Dn({navigate:function(k){var A=k.itemUrl;O.location.assign(A)},navigateNewTab:function(k){var A=k.itemUrl,P=O.open(A,"_blank","noopener");P==null||P.focus()},navigateNewWindow:function(k){var A=k.itemUrl;O.open(A,"_blank","noopener")}},S.navigator)})})(t,n),o=(function(S,v,_){var O,D=v.initialState;return{getState:function(){return D},dispatch:function(k,A){var P=(function(j){for(var w=1;w<arguments.length;w++){var E=arguments[w]!=null?arguments[w]:{};w%2?Da(Object(E),!0).forEach((function(L){ws(j,L,E[L])})):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(E)):Da(Object(E)).forEach((function(L){Object.defineProperty(j,L,Object.getOwnPropertyDescriptor(E,L))}))}return j})({},D);D=S(D,{type:k,props:v,payload:A}),_({state:D,prevState:P})},pendingRequests:(O=[],{add:function(k){return O.push(k),k.finally((function(){O=O.filter((function(A){return A!==k}))}))},cancelAll:function(){O.forEach((function(k){return k.cancel()}))},isEmpty:function(){return O.length===0}})}})($s,r,(function(S){var v,_,O=S.prevState,D=S.state;if(r.onStateChange(gn({prevState:O,state:D,refresh:h,navigator:r.navigator},s)),!m()&&(v=D.context)!==null&&v!==void 0&&(_=v.algoliaInsightsPlugin)!==null&&_!==void 0&&_.__automaticInsights&&r.insights!==!1){var k=Oa({__autocomplete_clickAnalytics:!1});r.plugins.push(k),d([k])}})),s=(function(S){var v=S.store;return{setActiveItemId:function(_){v.dispatch("setActiveItemId",_)},setQuery:function(_){v.dispatch("setQuery",_)},setCollections:function(_){var O=0,D=_.map((function(k){return Zr(Zr({},k),{},{items:ir(k.items).map((function(A){return Zr(Zr({},A),{},{__autocomplete_id:O++})}))})}));v.dispatch("setCollections",D)},setIsOpen:function(_){v.dispatch("setIsOpen",_)},setStatus:function(_){v.dispatch("setStatus",_)},setContext:function(_){v.dispatch("setContext",_)}}})({store:o}),l=(function(S){var v=S.props,_=S.refresh,O=S.store,D=Ln(S,Is);return{getEnvironmentProps:function(k){var A=k.inputElement,P=k.formElement,j=k.panelElement;function w(E){!O.getState().isOpen&&O.pendingRequests.isEmpty()||E.target===A||[P,j].some((function(L){return(M=L)===(B=E.target)||M.contains(B);var M,B}))===!1&&(O.dispatch("blur",null),v.debug||O.pendingRequests.cancelAll())}return tt({onTouchStart:w,onMouseDown:w,onTouchMove:function(E){O.getState().isOpen!==!1&&A===v.environment.document.activeElement&&E.target!==A&&A.blur()}},Ln(k,Ps))},getRootProps:function(k){return tt({role:"combobox","aria-expanded":O.getState().isOpen,"aria-haspopup":"listbox","aria-controls":O.getState().isOpen?O.getState().collections.map((function(A){var P=A.source;return St(v.id,"list",P)})).join(" "):void 0,"aria-labelledby":St(v.id,"label")},k)},getFormProps:function(k){return k.inputElement,tt({action:"",noValidate:!0,role:"search",onSubmit:function(A){var P;A.preventDefault(),v.onSubmit(tt({event:A,refresh:_,state:O.getState()},D)),O.dispatch("submit",null),(P=k.inputElement)===null||P===void 0||P.blur()},onReset:function(A){var P;A.preventDefault(),v.onReset(tt({event:A,refresh:_,state:O.getState()},D)),O.dispatch("reset",null),(P=k.inputElement)===null||P===void 0||P.focus()}},Ln(k,Ds))},getLabelProps:function(k){return tt({htmlFor:St(v.id,"input"),id:St(v.id,"label")},k)},getInputProps:function(k){var A;function P(W){(v.openOnFocus||O.getState().query)&&dn(tt({event:W,props:v,query:O.getState().completion||O.getState().query,refresh:_,store:O},D)),O.dispatch("focus",null)}var j=k||{};j.inputElement;var w=j.maxLength,E=w===void 0?512:w,L=Ln(j,Ns),M=fn(O.getState()),B=(function(W){return!!(W&&W.match(As))})(((A=v.environment.navigator)===null||A===void 0?void 0:A.userAgent)||""),u=v.enterKeyHint||(M!=null&&M.itemUrl&&!B?"go":"search");return tt({"aria-autocomplete":"both","aria-activedescendant":O.getState().isOpen&&O.getState().activeItemId!==null?St(v.id,"item-".concat(O.getState().activeItemId),M==null?void 0:M.source):void 0,"aria-controls":O.getState().isOpen?O.getState().collections.map((function(W){var F=W.source;return St(v.id,"list",F)})).join(" "):void 0,"aria-labelledby":St(v.id,"label"),value:O.getState().completion||O.getState().query,id:St(v.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:u,spellCheck:"false",autoFocus:v.autoFocus,placeholder:v.placeholder,maxLength:E,type:"search",onChange:function(W){var F=W.currentTarget.value;v.ignoreCompositionEvents&&Pa(W).isComposing?D.setQuery(F):dn(tt({event:W,props:v,query:F.slice(0,E),refresh:_,store:O},D))},onCompositionEnd:function(W){dn(tt({event:W,props:v,query:W.currentTarget.value.slice(0,E),refresh:_,store:O},D))},onKeyDown:function(W){Pa(W).isComposing||(function(F){var X=F.event,oe=F.props,Ae=F.refresh,re=F.store,xe=(function(V,Y){if(V==null)return{};var ee,ce,le=(function(Ye,gt){if(Ye==null)return{};var $e,_t,nt={},At=Object.keys(Ye);for(_t=0;_t<At.length;_t++)$e=At[_t],gt.indexOf($e)>=0||(nt[$e]=Ye[$e]);return nt})(V,Y);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(V);for(ce=0;ce<Ue.length;ce++)ee=Ue[ce],Y.indexOf(ee)>=0||Object.prototype.propertyIsEnumerable.call(V,ee)&&(le[ee]=V[ee])}return le})(F,Ts);if(X.key==="ArrowUp"||X.key==="ArrowDown"){var Q=function(){var V=fn(re.getState()),Y=oe.environment.document.getElementById(St(oe.id,"item-".concat(re.getState().activeItemId),V==null?void 0:V.source));Y&&(Y.scrollIntoViewIfNeeded?Y.scrollIntoViewIfNeeded(!1):Y.scrollIntoView(!1))},K=function(){var V=fn(re.getState());if(re.getState().activeItemId!==null&&V){var Y=V.item,ee=V.itemInputValue,ce=V.itemUrl,le=V.source;le.onActive(hn({event:X,item:Y,itemInputValue:ee,itemUrl:ce,refresh:Ae,source:le,state:re.getState()},xe))}};X.preventDefault(),re.getState().isOpen===!1&&(oe.openOnFocus||re.getState().query)?dn(hn({event:X,props:oe,query:re.getState().query,refresh:Ae,store:re},xe)).then((function(){re.dispatch(X.key,{nextActiveItemId:oe.defaultActiveItemId}),K(),setTimeout(Q,0)})):(re.dispatch(X.key,{}),K(),Q())}else if(X.key==="Escape")X.preventDefault(),re.dispatch(X.key,null),re.pendingRequests.cancelAll();else if(X.key==="Tab")re.dispatch("blur",null),re.pendingRequests.cancelAll();else if(X.key==="Enter"){if(re.getState().activeItemId===null||re.getState().collections.every((function(V){return V.items.length===0})))return void(oe.debug||re.pendingRequests.cancelAll());X.preventDefault();var G=fn(re.getState()),ie=G.item,Z=G.itemInputValue,pe=G.itemUrl,ne=G.source;if(X.metaKey||X.ctrlKey)pe!==void 0&&(ne.onSelect(hn({event:X,item:ie,itemInputValue:Z,itemUrl:pe,refresh:Ae,source:ne,state:re.getState()},xe)),oe.navigator.navigateNewTab({itemUrl:pe,item:ie,state:re.getState()}));else if(X.shiftKey)pe!==void 0&&(ne.onSelect(hn({event:X,item:ie,itemInputValue:Z,itemUrl:pe,refresh:Ae,source:ne,state:re.getState()},xe)),oe.navigator.navigateNewWindow({itemUrl:pe,item:ie,state:re.getState()}));else if(!X.altKey){if(pe!==void 0)return ne.onSelect(hn({event:X,item:ie,itemInputValue:Z,itemUrl:pe,refresh:Ae,source:ne,state:re.getState()},xe)),void oe.navigator.navigate({itemUrl:pe,item:ie,state:re.getState()});dn(hn({event:X,nextState:{isOpen:!1},props:oe,query:Z,refresh:Ae,store:re},xe)).then((function(){ne.onSelect(hn({event:X,item:ie,itemInputValue:Z,itemUrl:pe,refresh:Ae,source:ne,state:re.getState()},xe))}))}}})(tt({event:W,props:v,refresh:_,store:O},D))},onFocus:P,onBlur:Kr,onClick:function(W){k.inputElement!==v.environment.document.activeElement||O.getState().isOpen||P(W)}},L)},getPanelProps:function(k){return tt({onMouseDown:function(A){A.preventDefault()},onMouseLeave:function(){O.dispatch("mouseleave",null)}},k)},getListProps:function(k){var A=k||{},P=A.source,j=Ln(A,Ls);return tt({role:"listbox","aria-labelledby":St(v.id,"label"),id:St(v.id,"list",P)},j)},getItemProps:function(k){var A=k.item,P=k.source,j=Ln(k,Rs);return tt({id:St(v.id,"item-".concat(A.__autocomplete_id),P),role:"option","aria-selected":O.getState().activeItemId===A.__autocomplete_id,onMouseMove:function(w){if(A.__autocomplete_id!==O.getState().activeItemId){O.dispatch("mousemove",A.__autocomplete_id);var E=fn(O.getState());if(O.getState().activeItemId!==null&&E){var L=E.item,M=E.itemInputValue,B=E.itemUrl,u=E.source;u.onActive(tt({event:w,item:L,itemInputValue:M,itemUrl:B,refresh:_,source:u,state:O.getState()},D))}}},onMouseDown:function(w){w.preventDefault()},onClick:function(w){var E=P.getItemInputValue({item:A,state:O.getState()}),L=P.getItemUrl({item:A,state:O.getState()});(L?Promise.resolve():dn(tt({event:w,nextState:{isOpen:!1},props:v,query:E,refresh:_,store:O},D))).then((function(){P.onSelect(tt({event:w,item:A,itemInputValue:E,itemUrl:L,refresh:_,source:P,state:O.getState()},D))}))}},j)}}})(gn({props:r,refresh:h,store:o,navigator:r.navigator},s));function h(){return dn(gn({event:new Event("input"),nextState:{isOpen:o.getState().isOpen},props:r,navigator:r.navigator,query:o.getState().query,refresh:h,store:o},s))}function d(S){S.forEach((function(v){var _;return(_=v.subscribe)===null||_===void 0?void 0:_.call(v,gn(gn({},s),{},{navigator:r.navigator,refresh:h,onSelect:function(O){n.push({onSelect:O})},onActive:function(O){n.push({onActive:O})},onResolve:function(O){n.push({onResolve:O})}}))}))}function m(){return r.plugins.some((function(S){return S.name==="aa.algoliaInsightsPlugin"}))}if(r.insights&&!m()){var y=typeof r.insights=="boolean"?{}:r.insights;r.plugins.push(Oa(y))}return d(r.plugins),(function(S){var v,_,O=S.metadata,D=S.environment;if(!((v=D.navigator)===null||v===void 0||(_=v.userAgent)===null||_===void 0)&&_.includes("Algolia Crawler")){var k=D.document.createElement("meta"),A=D.document.querySelector("head");k.name="algolia:metadata",setTimeout((function(){k.content=JSON.stringify(O),A.appendChild(k)}),0)}})({metadata:Hs({plugins:r.plugins,options:t}),environment:r.environment}),gn(gn({refresh:h,navigator:r.navigator},l),s)}function zs(t){var n=t.translations,r=(n===void 0?{}:n).searchByText,o=r===void 0?"Search by":r;return T.createElement("a",{href:"https://www.algolia.com/ref/docsearch/?utm_source=".concat(window.location.hostname,"&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch"),target:"_blank",rel:"noopener noreferrer"},T.createElement("span",{className:"DocSearch-Label"},o),T.createElement("svg",{width:"77",height:"19","aria-label":"Algolia",role:"img",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2196.2 500"},T.createElement("defs",null,T.createElement("style",null,".cls-1,.cls-2{fill:#003dff;}.cls-2{fill-rule:evenodd;}")),T.createElement("path",{className:"cls-2",d:"M1070.38,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),T.createElement("rect",{className:"cls-1",x:"1845.88",y:"104.73",width:"62.58",height:"277.9",rx:"5.9",ry:"5.9"}),T.createElement("path",{className:"cls-2",d:"M1851.78,71.38h50.77c3.26,0,5.9-2.64,5.9-5.9V5.9c0-3.62-3.24-6.39-6.82-5.83l-50.77,7.95c-2.87,.45-4.99,2.92-4.99,5.83v51.62c0,3.26,2.64,5.9,5.9,5.9Z"}),T.createElement("path",{className:"cls-2",d:"M1764.03,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),T.createElement("path",{className:"cls-2",d:"M1631.95,142.72c-11.14-12.25-24.83-21.65-40.78-28.31-15.92-6.53-33.26-9.85-52.07-9.85-18.78,0-36.15,3.17-51.92,9.85-15.59,6.66-29.29,16.05-40.76,28.31-11.47,12.23-20.38,26.87-26.76,44.03-6.38,17.17-9.24,37.37-9.24,58.36,0,20.99,3.19,36.87,9.55,54.21,6.38,17.32,15.14,32.11,26.45,44.36,11.29,12.23,24.83,21.62,40.6,28.46,15.77,6.83,40.12,10.33,52.4,10.48,12.25,0,36.78-3.82,52.7-10.48,15.92-6.68,29.46-16.23,40.78-28.46,11.29-12.25,20.05-27.04,26.25-44.36,6.22-17.34,9.24-33.22,9.24-54.21,0-20.99-3.34-41.19-10.03-58.36-6.38-17.17-15.14-31.8-26.43-44.03Zm-44.43,163.75c-11.47,15.75-27.56,23.7-48.09,23.7-20.55,0-36.63-7.8-48.1-23.7-11.47-15.75-17.21-34.01-17.21-61.2,0-26.89,5.59-49.14,17.06-64.87,11.45-15.75,27.54-23.52,48.07-23.52,20.55,0,36.63,7.78,48.09,23.52,11.47,15.57,17.36,37.98,17.36,64.87,0,27.19-5.72,45.3-17.19,61.2Z"}),T.createElement("path",{className:"cls-2",d:"M894.42,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),T.createElement("path",{className:"cls-2",d:"M2133.97,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),T.createElement("path",{className:"cls-2",d:"M1314.05,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-11.79,18.34-19.6,39.64-22.11,62.59-.58,5.3-.88,10.68-.88,16.14s.31,11.15,.93,16.59c4.28,38.09,23.14,71.61,50.66,94.52,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47h0c17.99,0,34.61-5.93,48.16-15.97,16.29-11.58,28.88-28.54,34.48-47.75v50.26h-.11v11.08c0,21.84-5.71,38.27-17.34,49.36-11.61,11.08-31.04,16.63-58.25,16.63-11.12,0-28.79-.59-46.6-2.41-2.83-.29-5.46,1.5-6.27,4.22l-12.78,43.11c-1.02,3.46,1.27,7.02,4.83,7.53,21.52,3.08,42.52,4.68,54.65,4.68,48.91,0,85.16-10.75,108.89-32.21,21.48-19.41,33.15-48.89,35.2-88.52V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,64.1s.65,139.13,0,143.36c-12.08,9.77-27.11,13.59-43.49,14.7-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-1.32,0-2.63-.03-3.94-.1-40.41-2.11-74.52-37.26-74.52-79.38,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33Z"}),T.createElement("path",{className:"cls-1",d:"M249.83,0C113.3,0,2,110.09,.03,246.16c-2,138.19,110.12,252.7,248.33,253.5,42.68,.25,83.79-10.19,120.3-30.03,3.56-1.93,4.11-6.83,1.08-9.51l-23.38-20.72c-4.75-4.21-11.51-5.4-17.36-2.92-25.48,10.84-53.17,16.38-81.71,16.03-111.68-1.37-201.91-94.29-200.13-205.96,1.76-110.26,92-199.41,202.67-199.41h202.69V407.41l-115-102.18c-3.72-3.31-9.42-2.66-12.42,1.31-18.46,24.44-48.53,39.64-81.93,37.34-46.33-3.2-83.87-40.5-87.34-86.81-4.15-55.24,39.63-101.52,94-101.52,49.18,0,89.68,37.85,93.91,85.95,.38,4.28,2.31,8.27,5.52,11.12l29.95,26.55c3.4,3.01,8.79,1.17,9.63-3.3,2.16-11.55,2.92-23.58,2.07-35.92-4.82-70.34-61.8-126.93-132.17-131.26-80.68-4.97-148.13,58.14-150.27,137.25-2.09,77.1,61.08,143.56,138.19,145.26,32.19,.71,62.03-9.41,86.14-26.95l150.26,133.2c6.44,5.71,16.61,1.14,16.61-7.47V9.48C499.66,4.25,495.42,0,490.18,0H249.83Z"})))}function ri(t){return T.createElement("svg",{width:"15",height:"15","aria-label":t.ariaLabel,role:"img"},T.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"},t.children))}function Ws(t){var n=t.translations,r=n===void 0?{}:n,o=r.selectText,s=o===void 0?"to select":o,l=r.selectKeyAriaLabel,h=l===void 0?"Enter key":l,d=r.navigateText,m=d===void 0?"to navigate":d,y=r.navigateUpKeyAriaLabel,S=y===void 0?"Arrow up":y,v=r.navigateDownKeyAriaLabel,_=v===void 0?"Arrow down":v,O=r.closeText,D=O===void 0?"to close":O,k=r.closeKeyAriaLabel,A=k===void 0?"Escape key":k,P=r.searchByText,j=P===void 0?"Search by":P;return T.createElement(T.Fragment,null,T.createElement("div",{className:"DocSearch-Logo"},T.createElement(zs,{translations:{searchByText:j}})),T.createElement("ul",{className:"DocSearch-Commands"},T.createElement("li",null,T.createElement("kbd",{className:"DocSearch-Commands-Key"},T.createElement(ri,{ariaLabel:h},T.createElement("path",{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}))),T.createElement("span",{className:"DocSearch-Label"},s)),T.createElement("li",null,T.createElement("kbd",{className:"DocSearch-Commands-Key"},T.createElement(ri,{ariaLabel:_},T.createElement("path",{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}))),T.createElement("kbd",{className:"DocSearch-Commands-Key"},T.createElement(ri,{ariaLabel:S},T.createElement("path",{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}))),T.createElement("span",{className:"DocSearch-Label"},m)),T.createElement("li",null,T.createElement("kbd",{className:"DocSearch-Commands-Key"},T.createElement(ri,{ariaLabel:A},T.createElement("path",{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"}))),T.createElement("span",{className:"DocSearch-Label"},D))))}function Vs(t){var n=t.hit,r=t.children;return T.createElement("a",{href:n.url},r)}function Gs(){return T.createElement("svg",{viewBox:"0 0 38 38",stroke:"currentColor",strokeOpacity:".5"},T.createElement("g",{fill:"none",fillRule:"evenodd"},T.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},T.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),T.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},T.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function Ks(){return T.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},T.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},T.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),T.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function zi(){return T.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},T.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function Qs(){return T.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},T.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},T.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),T.createElement("path",{d:"M8 17l-6-6 6-6"})))}var Ys=function(){return T.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},T.createElement("path",{d:"M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))};function Xs(t){switch(t.type){case"lvl1":return T.createElement(Ys,null);case"content":return T.createElement(Zs,null);default:return T.createElement(Js,null)}}function Js(){return T.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},T.createElement("path",{d:"M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function Zs(){return T.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},T.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Ya(){return T.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},T.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function ec(){return T.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},T.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function tc(){return T.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},T.createElement("path",{d:"M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"}))}function nc(t){var n=t.translations,r=n===void 0?{}:n,o=r.titleText,s=o===void 0?"Unable to fetch results":o,l=r.helpText,h=l===void 0?"You might want to check your network connection.":l;return T.createElement("div",{className:"DocSearch-ErrorScreen"},T.createElement("div",{className:"DocSearch-Screen-Icon"},T.createElement(ec,null)),T.createElement("p",{className:"DocSearch-Title"},s),T.createElement("p",{className:"DocSearch-Help"},h))}var rc=["translations"];function ic(t){var n=t.translations,r=n===void 0?{}:n,o=Rt(t,rc),s=r.noResultsText,l=s===void 0?"No results for":s,h=r.suggestedQueryText,d=h===void 0?"Try searching for":h,m=r.reportMissingResultsText,y=m===void 0?"Believe this query should return results?":m,S=r.reportMissingResultsLinkText,v=S===void 0?"Let us know.":S,_=o.state.context.searchSuggestions;return T.createElement("div",{className:"DocSearch-NoResults"},T.createElement("div",{className:"DocSearch-Screen-Icon"},T.createElement(tc,null)),T.createElement("p",{className:"DocSearch-Title"},l,' "',T.createElement("strong",null,o.state.query),'"'),_&&_.length>0&&T.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},T.createElement("p",{className:"DocSearch-Help"},d,":"),T.createElement("ul",null,_.slice(0,3).reduce((function(O,D){return[].concat(rr(O),[T.createElement("li",{key:D},T.createElement("button",{className:"DocSearch-Prefill",key:D,type:"button",onClick:function(){o.setQuery(D.toLowerCase()+" "),o.refresh(),o.inputRef.current.focus()}},D))])}),[]))),o.getMissingResultsUrl&&T.createElement("p",{className:"DocSearch-Help"},"".concat(y," "),T.createElement("a",{href:o.getMissingResultsUrl({query:o.state.query}),target:"_blank",rel:"noopener noreferrer"},v)))}var oc=["hit","attribute","tagName"];function Xa(t,n){return n.split(".").reduce((function(r,o){return r!=null&&r[o]?r[o]:null}),t)}function Rn(t){var n=t.hit,r=t.attribute,o=t.tagName;return Nt(o===void 0?"span":o,Ee(Ee({},Rt(t,oc)),{},{dangerouslySetInnerHTML:{__html:Xa(n,"_snippetResult.".concat(r,".value"))||Xa(n,r)}}))}function Wi(t){return t.collection&&t.collection.items.length!==0?T.createElement("section",{className:"DocSearch-Hits"},T.createElement("div",{className:"DocSearch-Hit-source"},t.title),T.createElement("ul",t.getListProps(),t.collection.items.map((function(n,r){return T.createElement(ac,ot({key:[t.title,n.objectID].join(":"),item:n,index:r},t))})))):null}function ac(t){var n=t.item,r=t.index,o=t.renderIcon,s=t.renderAction,l=t.getItemProps,h=t.onItemClick,d=t.collection,m=t.hitComponent,y=ht(T.useState(!1),2),S=y[0],v=y[1],_=ht(T.useState(!1),2),O=_[0],D=_[1],k=T.useRef(null),A=m;return T.createElement("li",ot({className:["DocSearch-Hit",n.__docsearch_parent&&"DocSearch-Hit--Child",S&&"DocSearch-Hit--deleting",O&&"DocSearch-Hit--favoriting"].filter(Boolean).join(" "),onTransitionEnd:function(){k.current&&k.current()}},l({item:n,source:d.source,onClick:function(P){h(n,P)}})),T.createElement(A,{hit:n},T.createElement("div",{className:"DocSearch-Hit-Container"},o({item:n,index:r}),n.hierarchy[n.type]&&n.type==="lvl1"&&T.createElement("div",{className:"DocSearch-Hit-content-wrapper"},T.createElement(Rn,{className:"DocSearch-Hit-title",hit:n,attribute:"hierarchy.lvl1"}),n.content&&T.createElement(Rn,{className:"DocSearch-Hit-path",hit:n,attribute:"content"})),n.hierarchy[n.type]&&(n.type==="lvl2"||n.type==="lvl3"||n.type==="lvl4"||n.type==="lvl5"||n.type==="lvl6")&&T.createElement("div",{className:"DocSearch-Hit-content-wrapper"},T.createElement(Rn,{className:"DocSearch-Hit-title",hit:n,attribute:"hierarchy.".concat(n.type)}),T.createElement(Rn,{className:"DocSearch-Hit-path",hit:n,attribute:"hierarchy.lvl1"})),n.type==="content"&&T.createElement("div",{className:"DocSearch-Hit-content-wrapper"},T.createElement(Rn,{className:"DocSearch-Hit-title",hit:n,attribute:"content"}),T.createElement(Rn,{className:"DocSearch-Hit-path",hit:n,attribute:"hierarchy.lvl1"})),s({item:n,runDeleteTransition:function(P){v(!0),k.current=P},runFavoriteTransition:function(P){D(!0),k.current=P}}))))}function Ja(t,n,r){return t.reduce((function(o,s){var l=n(s);return o.hasOwnProperty(l)||(o[l]=[]),o[l].length<(r||5)&&o[l].push(s),o}),{})}function Za(t){return t}function ii(t){return t.button===1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}function uc(){}var eu=/(<mark>|<\/mark>)/g,sc=RegExp(eu.source);function tu(t){var n,r,o=t;if(!o.__docsearch_parent&&!t._highlightResult)return t.hierarchy.lvl0;var s=o.__docsearch_parent?(n=o.__docsearch_parent)===null||n===void 0||(n=n._highlightResult)===null||n===void 0||(n=n.hierarchy)===null||n===void 0?void 0:n.lvl0:(r=t._highlightResult)===null||r===void 0||(r=r.hierarchy)===null||r===void 0?void 0:r.lvl0;return s?s.value&&sc.test(s.value)?s.value.replace(eu,""):s.value:t.hierarchy.lvl0}function cc(t){return T.createElement("div",{className:"DocSearch-Dropdown-Container"},t.state.collections.map((function(n){if(n.items.length===0)return null;var r=tu(n.items[0]);return T.createElement(Wi,ot({},t,{key:n.source.sourceId,title:r,collection:n,renderIcon:function(o){var s,l=o.item,h=o.index;return T.createElement(T.Fragment,null,l.__docsearch_parent&&T.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},T.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},l.__docsearch_parent!==((s=n.items[h+1])===null||s===void 0?void 0:s.__docsearch_parent)?T.createElement("path",{d:"M8 6v21M20 27H8.3"}):T.createElement("path",{d:"M8 6v42M20 27H8.3"}))),T.createElement("div",{className:"DocSearch-Hit-icon"},T.createElement(Xs,{type:l.type})))},renderAction:function(){return T.createElement("div",{className:"DocSearch-Hit-action"},T.createElement(Qs,null))}}))})),t.resultsFooterComponent&&T.createElement("section",{className:"DocSearch-HitsFooter"},T.createElement(t.resultsFooterComponent,{state:t.state})))}var lc=["translations"];function fc(t){var n=t.translations,r=n===void 0?{}:n,o=Rt(t,lc),s=r.recentSearchesTitle,l=s===void 0?"Recent":s,h=r.noRecentSearchesText,d=h===void 0?"No recent searches":h,m=r.saveRecentSearchButtonTitle,y=m===void 0?"Save this search":m,S=r.removeRecentSearchButtonTitle,v=S===void 0?"Remove this search from history":S,_=r.favoriteSearchesTitle,O=_===void 0?"Favorite":_,D=r.removeFavoriteSearchButtonTitle,k=D===void 0?"Remove this search from favorites":D;return o.state.status==="idle"&&o.hasCollections===!1?o.disableUserPersonalization?null:T.createElement("div",{className:"DocSearch-StartScreen"},T.createElement("p",{className:"DocSearch-Help"},d)):o.hasCollections===!1?null:T.createElement("div",{className:"DocSearch-Dropdown-Container"},T.createElement(Wi,ot({},o,{title:l,collection:o.state.collections[0],renderIcon:function(){return T.createElement("div",{className:"DocSearch-Hit-icon"},T.createElement(Ks,null))},renderAction:function(A){var P=A.item,j=A.runFavoriteTransition,w=A.runDeleteTransition;return T.createElement(T.Fragment,null,T.createElement("div",{className:"DocSearch-Hit-action"},T.createElement("button",{className:"DocSearch-Hit-action-button",title:y,type:"submit",onClick:function(E){E.preventDefault(),E.stopPropagation(),j((function(){o.favoriteSearches.add(P),o.recentSearches.remove(P),o.refresh()}))}},T.createElement(Ya,null))),T.createElement("div",{className:"DocSearch-Hit-action"},T.createElement("button",{className:"DocSearch-Hit-action-button",title:v,type:"submit",onClick:function(E){E.preventDefault(),E.stopPropagation(),w((function(){o.recentSearches.remove(P),o.refresh()}))}},T.createElement(zi,null))))}})),T.createElement(Wi,ot({},o,{title:O,collection:o.state.collections[1],renderIcon:function(){return T.createElement("div",{className:"DocSearch-Hit-icon"},T.createElement(Ya,null))},renderAction:function(A){var P=A.item,j=A.runDeleteTransition;return T.createElement("div",{className:"DocSearch-Hit-action"},T.createElement("button",{className:"DocSearch-Hit-action-button",title:k,type:"submit",onClick:function(w){w.preventDefault(),w.stopPropagation(),j((function(){o.favoriteSearches.remove(P),o.refresh()}))}},T.createElement(zi,null)))}})))}var pc=["translations"],dc=T.memo((function(t){var n=t.translations,r=n===void 0?{}:n,o=Rt(t,pc);if(o.state.status==="error")return T.createElement(nc,{translations:r==null?void 0:r.errorScreen});var s=o.state.collections.some((function(l){return l.items.length>0}));return o.state.query?s===!1?T.createElement(ic,ot({},o,{translations:r==null?void 0:r.noResultsScreen})):T.createElement(cc,o):T.createElement(fc,ot({},o,{hasCollections:s,translations:r==null?void 0:r.startScreen}))}),(function(t,n){return n.state.status==="loading"||n.state.status==="stalled"})),hc=["translations"];function gc(t){var n=t.translations,r=n===void 0?{}:n,o=Rt(t,hc),s=r.resetButtonTitle,l=s===void 0?"Clear the query":s,h=r.resetButtonAriaLabel,d=h===void 0?"Clear the query":h,m=r.cancelButtonText,y=m===void 0?"Cancel":m,S=r.cancelButtonAriaLabel,v=S===void 0?"Cancel":S,_=r.searchInputLabel,O=_===void 0?"Search":_,D=o.getFormProps({inputElement:o.inputRef.current}).onReset;return T.useEffect((function(){o.autoFocus&&o.inputRef.current&&o.inputRef.current.focus()}),[o.autoFocus,o.inputRef]),T.useEffect((function(){o.isFromSelection&&o.inputRef.current&&o.inputRef.current.select()}),[o.isFromSelection,o.inputRef]),T.createElement(T.Fragment,null,T.createElement("form",{className:"DocSearch-Form",onSubmit:function(k){k.preventDefault()},onReset:D},T.createElement("label",ot({className:"DocSearch-MagnifierLabel"},o.getLabelProps()),T.createElement(ga,null),T.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},O)),T.createElement("div",{className:"DocSearch-LoadingIndicator"},T.createElement(Gs,null)),T.createElement("input",ot({className:"DocSearch-Input",ref:o.inputRef},o.getInputProps({inputElement:o.inputRef.current,autoFocus:o.autoFocus,maxLength:64}))),T.createElement("button",{type:"reset",title:l,className:"DocSearch-Reset","aria-label":d,hidden:!o.state.query},T.createElement(zi,null))),T.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":v,onClick:o.onClose},y))}var mc=["_highlightResult","_snippetResult"];function nu(t){var n=t.key,r=t.limit,o=r===void 0?5:r,s=(function(h){return(function(){var d="__TEST_KEY__";try{return localStorage.setItem(d,""),localStorage.removeItem(d),!0}catch(m){return!1}})()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(d){return window.localStorage.setItem(h,JSON.stringify(d))},getItem:function(){var d=window.localStorage.getItem(h);return d?JSON.parse(d):[]}}})(n),l=s.getItem().slice(0,o);return{add:function(h){var d=h;d._highlightResult,d._snippetResult;var m=Rt(d,mc),y=l.findIndex((function(S){return S.objectID===m.objectID}));y>-1&&l.splice(y,1),l.unshift(m),l=l.slice(0,o),s.setItem(l)},remove:function(h){l=l.filter((function(d){return d.objectID!==h.objectID})),s.setItem(l)},getAll:function(){return l}}}function vc(t){var n,r="algolia-client-js-".concat(t.key);function o(){return n===void 0&&(n=t.localStorage||window.localStorage),n}function s(){return JSON.parse(o().getItem(r)||"{}")}function l(h){o().setItem(r,JSON.stringify(h))}return{get:function(h,d){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var y,S,v;return y=t.timeToLive?1e3*t.timeToLive:null,S=s(),l(v=Object.fromEntries(Object.entries(S).filter((function(_){return ht(_,2)[1].timestamp!==void 0})))),y&&l(Object.fromEntries(Object.entries(v).filter((function(_){var O=ht(_,2)[1],D=new Date().getTime();return!(O.timestamp+y<D)})))),s()[JSON.stringify(h)]})).then((function(y){return Promise.all([y?y.value:d(),y!==void 0])})).then((function(y){var S=ht(y,2),v=S[0],_=S[1];return Promise.all([v,_||m.miss(v)])})).then((function(y){return ht(y,1)[0]}))},set:function(h,d){return Promise.resolve().then((function(){var m=s();return m[JSON.stringify(h)]={timestamp:new Date().getTime(),value:d},o().setItem(r,JSON.stringify(m)),d}))},delete:function(h){return Promise.resolve().then((function(){var d=s();delete d[JSON.stringify(h)],o().setItem(r,JSON.stringify(d))}))},clear:function(){return Promise.resolve().then((function(){o().removeItem(r)}))}}}function Ar(t){var n=rr(t.caches),r=n.shift();return r===void 0?{get:function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return s().then((function(h){return Promise.all([h,l.miss(h)])})).then((function(h){return ht(h,1)[0]}))},set:function(o,s){return Promise.resolve(s)},delete:function(o){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(o,s,l).catch((function(){return Ar({caches:n}).get(o,s,l)}))},set:function(o,s){return r.set(o,s).catch((function(){return Ar({caches:n}).set(o,s)}))},delete:function(o){return r.delete(o).catch((function(){return Ar({caches:n}).delete(o)}))},clear:function(){return r.clear().catch((function(){return Ar({caches:n}).clear()}))}}}function Vi(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},n={};return{get:function(r,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},l=JSON.stringify(r);if(l in n)return Promise.resolve(t.serializable?JSON.parse(n[l]):n[l]);var h=o();return h.then((function(d){return s.miss(d)})).then((function(){return h}))},set:function(r,o){return n[JSON.stringify(r)]=t.serializable?JSON.stringify(o):o,Promise.resolve(o)},delete:function(r){return delete n[JSON.stringify(r)],Promise.resolve()},clear:function(){return n={},Promise.resolve()}}}function yc(t){var n=t.algoliaAgents,r=t.client,o=t.version,s=(function(l){var h={value:"Algolia for JavaScript (".concat(l,")"),add:function(d){var m="; ".concat(d.segment).concat(d.version!==void 0?" (".concat(d.version,")"):"");return h.value.indexOf(m)===-1&&(h.value="".concat(h.value).concat(m)),h}};return h})(o).add({segment:r,version:o});return n.forEach((function(l){return s.add(l)})),s}var ru=12e4;function iu(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"up",r=Date.now();return Ee(Ee({},t),{},{status:n,lastUpdate:r,isUp:function(){return n==="up"||Date.now()-r>ru},isTimedOut:function(){return n==="timed out"&&Date.now()-r<=ru}})}var ou=(function(){function t(n,r){var o;return kn(this,t),Tn(o=On(this,t,[n]),"name","AlgoliaError"),r&&(o.name=r),o}return jn(t,Ri(Error)),Cn(t)})(),au=(function(){function t(n,r,o){var s;return kn(this,t),Tn(s=On(this,t,[n,o]),"stackTrace",void 0),s.stackTrace=r,s}return jn(t,ou),Cn(t)})(),bc=(function(){function t(n){return kn(this,t),On(this,t,["Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",n,"RetryError"])}return jn(t,au),Cn(t)})(),Gi=(function(){function t(n,r,o){var s,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"ApiError";return kn(this,t),Tn(s=On(this,t,[n,o,l]),"status",void 0),s.status=r,s}return jn(t,au),Cn(t)})(),_c=(function(){function t(n,r){var o;return kn(this,t),Tn(o=On(this,t,[n,"DeserializationError"]),"response",void 0),o.response=r,o}return jn(t,ou),Cn(t)})(),Ac=(function(){function t(n,r,o,s){var l;return kn(this,t),Tn(l=On(this,t,[n,r,s,"DetailedApiError"]),"error",void 0),l.error=o,l}return jn(t,Gi),Cn(t)})();function wc(t,n,r){var o,s=(o=r,Object.keys(o).filter((function(h){return o[h]!==void 0})).sort().map((function(h){return"".concat(h,"=").concat(encodeURIComponent(Object.prototype.toString.call(o[h])==="[object Array]"?o[h].join(","):o[h]).replace(/\+/g,"%20"))})).join("&")),l="".concat(t.protocol,"://").concat(t.url).concat(t.port?":".concat(t.port):"","/").concat(n.charAt(0)==="/"?n.substring(1):n);return s.length&&(l+="?".concat(s)),l}function Sc(t,n){if(t.method!=="GET"&&(t.data!==void 0||n.data!==void 0)){var r=Array.isArray(t.data)?t.data:Ee(Ee({},t.data),n.data);return JSON.stringify(r)}}function Ec(t,n,r){var o=Ee(Ee(Ee({Accept:"application/json"},t),n),r),s={};return Object.keys(o).forEach((function(l){var h=o[l];s[l.toLowerCase()]=h})),s}function xc(t){try{return JSON.parse(t.content)}catch(n){throw new _c(n.message,t)}}function Oc(t,n){var r=t.content,o=t.status;try{var s=JSON.parse(r);return"error"in s?new Ac(s.message,o,s.error,n):new Gi(s.message,o,n)}catch(l){}return new Gi(r,o,n)}function kc(t){return t.map((function(n){return uu(n)}))}function uu(t){var n=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return Ee(Ee({},t),{},{request:Ee(Ee({},t.request),{},{headers:Ee(Ee({},t.request.headers),n)})})}var Cc=["appId","apiKey","authMode","algoliaAgents"],Tc=["params"],su="5.19.0";function jc(t){return[{url:"".concat(t,"-dsn.algolia.net"),accept:"read",protocol:"https"},{url:"".concat(t,".algolia.net"),accept:"write",protocol:"https"}].concat((function(n){for(var r=n,o=n.length-1;o>0;o--){var s=Math.floor(Math.random()*(o+1)),l=n[o];r[o]=n[s],r[s]=l}return r})([{url:"".concat(t,"-1.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(t,"-2.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(t,"-3.algolianet.com"),accept:"readWrite",protocol:"https"}]))}var Ki="3.9.0",Ic=["footer","searchBox"];function Pc(t){var n=t.appId,r=t.apiKey,o=t.indexName,s=t.placeholder,l=s===void 0?"Search docs":s,h=t.searchParameters,d=t.maxResultsPerGroup,m=t.onClose,y=m===void 0?uc:m,S=t.transformItems,v=S===void 0?Za:S,_=t.hitComponent,O=_===void 0?Vs:_,D=t.resultsFooterComponent,k=D===void 0?function(){return null}:D,A=t.navigator,P=t.initialScrollY,j=P===void 0?0:P,w=t.transformSearchClient,E=w===void 0?Za:w,L=t.disableUserPersonalization,M=L!==void 0&&L,B=t.initialQuery,u=B===void 0?"":B,W=t.translations,F=W===void 0?{}:W,X=t.getMissingResultsUrl,oe=t.insights,Ae=oe!==void 0&&oe,re=F.footer,xe=F.searchBox,Q=Rt(F,Ic),K=ht(T.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),G=K[0],ie=K[1],Z=T.useRef(null),pe=T.useRef(null),ne=T.useRef(null),V=T.useRef(null),Y=T.useRef(null),ee=T.useRef(10),ce=T.useRef(typeof window!="undefined"?window.getSelection().toString().slice(0,64):"").current,le=T.useRef(u||ce).current,Ue=(function(_e,je,Me){return T.useMemo((function(){var at=(function(lt,mt){if(!lt||typeof lt!="string")throw new Error("`appId` is missing.");if(!mt||typeof mt!="string")throw new Error("`apiKey` is missing.");return(function(me){var qe=me.appId,Ne=me.apiKey,se=me.authMode,Ve=me.algoliaAgents,Et=Rt(me,Cc),wt=(function(de,Re){var ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"WithinHeaders",Ge={"x-algolia-api-key":Re,"x-algolia-application-id":de};return{headers:function(){return ze==="WithinHeaders"?Ge:{}},queryParameters:function(){return ze==="WithinQueryParameters"?Ge:{}}}})(qe,Ne,se),ut=(function(de){var Re=de.hosts,ze=de.hostsCache,Ge=de.baseHeaders,et=de.logger,ft=de.baseQueryParameters,Gt=de.algoliaAgent,mn=de.timeouts,wr=de.requester,Zt=de.requestsCache,Sr=de.responsesCache;function en(Be){return tn.apply(this,arguments)}function tn(){return(tn=Ni(ln().mark((function Be(De){var Ke,Tt,Xe,rt,pt;return ln().wrap((function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,Promise.all(De.map((function(Je){return ze.get(Je,(function(){return Promise.resolve(iu(Je))}))})));case 2:return Ke=st.sent,Tt=Ke.filter((function(Je){return Je.isUp()})),Xe=Ke.filter((function(Je){return Je.isTimedOut()})),rt=[].concat(rr(Tt),rr(Xe)),pt=rt.length>0?rt:De,st.abrupt("return",{hosts:pt,getTimeout:function(Je,jt){return(Xe.length===0&&Je===0?1:Xe.length+3+Je)*jt}});case 8:case"end":return st.stop()}}),Be)})))).apply(this,arguments)}function Er(Be,De){return qn.apply(this,arguments)}function qn(){return qn=Ni(ln().mark((function Be(De,Ke){var Tt,Xe,rt,pt,st,Je,jt,xr,Kt,Mn,Hn,ui,Or,Fn=arguments;return ln().wrap((function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(Tt=!(Fn.length>2&&Fn[2]!==void 0)||Fn[2],Xe=[],rt=Sc(De,Ke),pt=Ec(Ge,De.headers,Ke.headers),st=De.method==="GET"?Ee(Ee({},De.data),Ke.data):{},Je=Ee(Ee(Ee({},ft),De.queryParameters),st),Gt.value&&(Je["x-algolia-agent"]=Gt.value),Ke&&Ke.queryParameters)for(jt=0,xr=Object.keys(Ke.queryParameters);jt<xr.length;jt++)Kt=xr[jt],Ke.queryParameters[Kt]&&Object.prototype.toString.call(Ke.queryParameters[Kt])!=="[object Object]"?Je[Kt]=Ke.queryParameters[Kt].toString():Je[Kt]=Ke.queryParameters[Kt];return Mn=0,Hn=(function(){var xt=Ni(ln().mark((function kr(rn,vn){var Mt,yn,Cr,Qt,It,Tr;return ln().wrap((function(vt){for(;;)switch(vt.prev=vt.next){case 0:if((Mt=rn.pop())!==void 0){vt.next=3;break}throw new bc(kc(Xe));case 3:return yn=Ee(Ee({},mn),Ke.timeouts),Cr={data:rt,headers:pt,method:De.method,url:wc(Mt,De.path,Je),connectTimeout:vn(Mn,yn.connect),responseTimeout:vn(Mn,Tt?yn.read:yn.write)},Qt=function($n){var si={request:Cr,response:$n,host:Mt,triesLeft:rn.length};return Xe.push(si),si},vt.next=8,wr.send(Cr);case 8:if(Ir=(jr=It=vt.sent).isTimedOut,on=jr.status,!(Ir||(function($n){return!$n.isTimedOut&&!~~$n.status})({isTimedOut:Ir,status:on})||~~(on/100)!=2&&~~(on/100)!=4)){vt.next=16;break}return Tr=Qt(It),It.isTimedOut&&Mn++,et.info("Retryable failure",uu(Tr)),vt.next=15,ze.set(Mt,iu(Mt,It.isTimedOut?"timed out":"down"));case 15:return vt.abrupt("return",Hn(rn,vn));case 16:if(~~(It.status/100)!=2){vt.next=18;break}return vt.abrupt("return",xc(It));case 18:throw Qt(It),Oc(It,Xe);case 20:case"end":return vt.stop()}var jr,Ir,on}),kr)})));return function(kr,rn){return xt.apply(this,arguments)}})(),ui=Re.filter((function(xt){return xt.accept==="readWrite"||(Tt?xt.accept==="read":xt.accept==="write")})),nn.next=13,en(ui);case 13:return Or=nn.sent,nn.abrupt("return",Hn(rr(Or.hosts).reverse(),Or.getTimeout));case 15:case"end":return nn.stop()}}),Be)}))),qn.apply(this,arguments)}return{hostsCache:ze,requester:wr,timeouts:mn,logger:et,algoliaAgent:Gt,baseHeaders:Ge,baseQueryParameters:ft,hosts:Re,request:function(Be){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ke=Be.useReadTransporter||Be.method==="GET";if(!Ke)return Er(Be,De,Ke);var Tt=function(){return Er(Be,De)};if((De.cacheable||Be.cacheable)!==!0)return Tt();var Xe={request:Be,requestOptions:De,transporter:{queryParameters:ft,headers:Ge}};return Sr.get(Xe,(function(){return Zt.get(Xe,(function(){return Zt.set(Xe,Tt()).then((function(rt){return Promise.all([Zt.delete(Xe),rt])}),(function(rt){return Promise.all([Zt.delete(Xe),Promise.reject(rt)])})).then((function(rt){var pt=ht(rt,2);return pt[0],pt[1]}))}))}),{miss:function(rt){return Sr.set(Xe,rt)}})},requestsCache:Zt,responsesCache:Sr}})(Ee(Ee({hosts:jc(qe)},Et),{},{algoliaAgent:yc({algoliaAgents:Ve,client:"Lite",version:su}),baseHeaders:Ee(Ee({"content-type":"text/plain"},wt.headers()),Et.baseHeaders),baseQueryParameters:Ee(Ee({},wt.queryParameters()),Et.baseQueryParameters)}));return{transporter:ut,appId:qe,apiKey:Ne,clearCache:function(){return Promise.all([ut.requestsCache.clear(),ut.responsesCache.clear()]).then((function(){}))},get _ua(){return ut.algoliaAgent.value},addAlgoliaAgent:function(de,Re){ut.algoliaAgent.add({segment:de,version:Re})},setClientApiKey:function(de){var Re=de.apiKey;se&&se!=="WithinHeaders"?ut.baseQueryParameters["x-algolia-api-key"]=Re:ut.baseHeaders["x-algolia-api-key"]=Re},searchForHits:function(de,Re){return this.search(de,Re)},searchForFacets:function(de,Re){return this.search(de,Re)},customPost:function(de,Re){var ze=de.path,Ge=de.parameters,et=de.body;if(!ze)throw new Error("Parameter `path` is required when calling `customPost`.");var ft={method:"POST",path:"/{path}".replace("{path}",ze),queryParameters:Ge||{},headers:{},data:et||{}};return ut.request(ft,Re)},getRecommendations:function(de,Re){if(de&&Array.isArray(de)&&(de={requests:de}),!de)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!de.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");var ze={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:de,useReadTransporter:!0,cacheable:!0};return ut.request(ze,Re)},search:function(de,Re){if(de&&Array.isArray(de)){var ze={requests:de.map((function(et){var ft=et.params,Gt=Rt(et,Tc);return Gt.type==="facet"?Ee(Ee(Ee({},Gt),ft),{},{type:"facet"}):Ee(Ee(Ee({},Gt),ft),{},{facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}))};de=ze}if(!de)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!de.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");var Ge={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:de,useReadTransporter:!0,cacheable:!0};return ut.request(Ge,Re)}}})(Ee({appId:lt,apiKey:mt,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:function(me,qe){return Promise.resolve()},info:function(me,qe){return Promise.resolve()},error:function(me,qe){return Promise.resolve()}},requester:{send:function(me){return new Promise((function(qe){var Ne=new XMLHttpRequest;Ne.open(me.method,me.url,!0),Object.keys(me.headers).forEach((function(wt){return Ne.setRequestHeader(wt,me.headers[wt])}));var se,Ve=function(wt,ut){return setTimeout((function(){Ne.abort(),qe({status:0,content:ut,isTimedOut:!0})}),wt)},Et=Ve(me.connectTimeout,"Connection timeout");Ne.onreadystatechange=function(){Ne.readyState>Ne.OPENED&&se===void 0&&(clearTimeout(Et),se=Ve(me.responseTimeout,"Socket timeout"))},Ne.onerror=function(){Ne.status===0&&(clearTimeout(Et),clearTimeout(se),qe({content:Ne.responseText||"Network request failed",status:Ne.status,isTimedOut:!1}))},Ne.onload=function(){clearTimeout(Et),clearTimeout(se),qe({content:Ne.responseText,status:Ne.status,isTimedOut:!1})},Ne.send(me.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:Vi(),requestsCache:Vi({serializable:!1}),hostsCache:Ar({caches:[vc({key:"".concat(su,"-").concat(lt)}),Vi()]})},void 0))})(_e,je);return at.addAlgoliaAgent("docsearch",Ki),/docsearch.js \(.*\)/.test(at.transporter.algoliaAgent.value)===!1&&at.addAlgoliaAgent("docsearch-react",Ki),Me(at)}),[_e,je,Me])})(n,r,E),Ye=T.useRef(nu({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(o),limit:10})).current,gt=T.useRef(nu({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(o),limit:Ye.getAll().length===0?7:4})).current,$e=T.useCallback((function(_e){if(!M){var je=_e.type==="content"?_e.__docsearch_parent:_e;je&&Ye.getAll().findIndex((function(Me){return Me.objectID===je.objectID}))===-1&>.add(je)}}),[Ye,gt,M]),_t=T.useCallback((function(_e){if(G.context.algoliaInsightsPlugin&&_e.__autocomplete_id){var je=_e,Me={eventName:"Item Selected",index:je.__autocomplete_indexName,items:[je],positions:[_e.__autocomplete_id],queryID:je.__autocomplete_queryID};G.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch(Me)}}),[G.context.algoliaInsightsPlugin]),nt=T.useMemo((function(){return Us({id:"docsearch",defaultActiveItemId:0,placeholder:l,openOnFocus:!0,initialState:{query:le,context:{searchSuggestions:[]}},insights:Ae,navigator:A,onStateChange:function(_e){ie(_e.state)},getSources:function(_e){var je=_e.query,Me=_e.state,at=_e.setContext,lt=_e.setStatus;if(!je)return M?[]:[{sourceId:"recentSearches",onSelect:function(me){var qe=me.item,Ne=me.event;$e(qe),ii(Ne)||y()},getItemUrl:function(me){return me.item.url},getItems:function(){return gt.getAll()}},{sourceId:"favoriteSearches",onSelect:function(me){var qe=me.item,Ne=me.event;$e(qe),ii(Ne)||y()},getItemUrl:function(me){return me.item.url},getItems:function(){return Ye.getAll()}}];var mt=!!Ae;return Ue.search({requests:[Ee({query:je,indexName:o,attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(ee.current),"hierarchy.lvl2:".concat(ee.current),"hierarchy.lvl3:".concat(ee.current),"hierarchy.lvl4:".concat(ee.current),"hierarchy.lvl5:".concat(ee.current),"hierarchy.lvl6:".concat(ee.current),"content:".concat(ee.current)],snippetEllipsisText:"\u2026",highlightPreTag:"<mark>",highlightPostTag:"</mark>",hitsPerPage:20,clickAnalytics:mt},h)]}).catch((function(me){throw me.name==="RetryError"&<("error"),me})).then((function(me){var qe=me.results[0],Ne=qe.hits,se=qe.nbHits,Ve=Ja(Ne,(function(wt){return tu(wt)}),d);Me.context.searchSuggestions.length<Object.keys(Ve).length&&at({searchSuggestions:Object.keys(Ve)}),at({nbHits:se});var Et={};return mt&&(Et={__autocomplete_indexName:o,__autocomplete_queryID:qe.queryID,__autocomplete_algoliaCredentials:{appId:n,apiKey:r}}),Object.values(Ve).map((function(wt,ut){return{sourceId:"hits".concat(ut),onSelect:function(de){var Re=de.item,ze=de.event;$e(Re),ii(ze)||y()},getItemUrl:function(de){return de.item.url},getItems:function(){return Object.values(Ja(wt,(function(de){return de.hierarchy.lvl1}),d)).map(v).map((function(de){return de.map((function(Re){var ze=null,Ge=de.find((function(et){return et.type==="lvl1"&&et.hierarchy.lvl1===Re.hierarchy.lvl1}));return Re.type!=="lvl1"&&Ge&&(ze=Ge),Ee(Ee({},Re),{},{__docsearch_parent:ze},Et)}))})).flat()}}}))}))}})}),[o,h,d,Ue,y,gt,Ye,$e,le,l,A,v,M,Ae,n,r]),At=nt.getEnvironmentProps,oi=nt.getRootProps,ai=nt.refresh;return(function(_e){var je=_e.getEnvironmentProps,Me=_e.panelElement,at=_e.formElement,lt=_e.inputElement;T.useEffect((function(){if(Me&&at&<){var mt=je({panelElement:Me,formElement:at,inputElement:lt}),me=mt.onTouchStart,qe=mt.onTouchMove;return window.addEventListener("touchstart",me),window.addEventListener("touchmove",qe),function(){window.removeEventListener("touchstart",me),window.removeEventListener("touchmove",qe)}}}),[je,Me,at,lt])})({getEnvironmentProps:At,panelElement:V.current,formElement:ne.current,inputElement:Y.current}),(function(_e){var je=_e.container;T.useEffect((function(){if(je){var Me=je.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),at=Me[0],lt=Me[Me.length-1];return je.addEventListener("keydown",mt),function(){je.removeEventListener("keydown",mt)}}function mt(me){me.key==="Tab"&&(me.shiftKey?document.activeElement===at&&(me.preventDefault(),lt.focus()):document.activeElement===lt&&(me.preventDefault(),at.focus()))}}),[je])})({container:Z.current}),T.useEffect((function(){return document.body.classList.add("DocSearch--active"),function(){var _e,je;document.body.classList.remove("DocSearch--active"),(_e=(je=window).scrollTo)===null||_e===void 0||_e.call(je,0,j)}}),[]),T.useLayoutEffect((function(){var _e=window.innerWidth-document.body.clientWidth;return document.body.style.marginRight="".concat(_e,"px"),function(){document.body.style.marginRight="0px"}}),[]),T.useEffect((function(){window.matchMedia("(max-width: 768px)").matches&&(ee.current=5)}),[]),T.useEffect((function(){V.current&&(V.current.scrollTop=0)}),[G.query]),T.useEffect((function(){le.length>0&&(ai(),Y.current&&Y.current.focus())}),[le,ai]),T.useEffect((function(){function _e(){if(pe.current){var je=.01*window.innerHeight;pe.current.style.setProperty("--docsearch-vh","".concat(je,"px"))}}return _e(),window.addEventListener("resize",_e),function(){window.removeEventListener("resize",_e)}}),[]),T.createElement("div",ot({ref:Z},oi({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",G.status==="stalled"&&"DocSearch-Container--Stalled",G.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(_e){_e.target===_e.currentTarget&&y()}}),T.createElement("div",{className:"DocSearch-Modal",ref:pe},T.createElement("header",{className:"DocSearch-SearchBar",ref:ne},T.createElement(gc,ot({},nt,{state:G,autoFocus:le.length===0,inputRef:Y,isFromSelection:!!le&&le===ce,translations:xe,onClose:y}))),T.createElement("div",{className:"DocSearch-Dropdown",ref:V},T.createElement(dc,ot({},nt,{indexName:o,state:G,hitComponent:O,resultsFooterComponent:k,disableUserPersonalization:M,recentSearches:gt,favoriteSearches:Ye,inputRef:Y,translations:Q,getMissingResultsUrl:X,onItemClick:function(_e,je){_t(_e),$e(_e),ii(je)||y()}}))),T.createElement("footer",{className:"DocSearch-Footer"},T.createElement(Ws,{translations:re}))))}function Dc(t){var n,r,o=T.useRef(null),s=ht(T.useState(!1),2),l=s[0],h=s[1],d=ht(T.useState((t==null?void 0:t.initialQuery)||void 0),2),m=d[0],y=d[1],S=T.useCallback((function(){h(!0)}),[h]),v=T.useCallback((function(){h(!1),y(t==null?void 0:t.initialQuery)}),[h,t.initialQuery]);return(function(_){var O=_.isOpen,D=_.onOpen,k=_.onClose,A=_.onInput,P=_.searchButtonRef;T.useEffect((function(){function j(w){var E;if(w.code==="Escape"&&O||((E=w.key)===null||E===void 0?void 0:E.toLowerCase())==="k"&&(w.metaKey||w.ctrlKey)||!(function(L){var M=L.target,B=M.tagName;return M.isContentEditable||B==="INPUT"||B==="SELECT"||B==="TEXTAREA"})(w)&&w.key==="/"&&!O)return w.preventDefault(),void(O?k():document.body.classList.contains("DocSearch--active")||D());P&&P.current===document.activeElement&&A&&/[a-zA-Z0-9]/.test(String.fromCharCode(w.keyCode))&&A(w)}return window.addEventListener("keydown",j),function(){window.removeEventListener("keydown",j)}}),[O,D,k,A,P])})({isOpen:l,onOpen:S,onClose:v,onInput:T.useCallback((function(_){h(!0),y(_.key)}),[h,y]),searchButtonRef:o}),T.createElement(T.Fragment,null,T.createElement(cs,{ref:o,translations:t==null||(n=t.translations)===null||n===void 0?void 0:n.button,onClick:S}),l&&oa(T.createElement(Pc,ot({},t,{initialScrollY:window.scrollY,initialQuery:m,translations:t==null||(r=t.translations)===null||r===void 0?void 0:r.modal,onClose:v})),document.body))}function Nc(t){ua(T.createElement(Dc,mi({},t,{transformSearchClient:function(n){return n.addAlgoliaAgent("docsearch.js",Ki),t.transformSearchClient?t.transformSearchClient(n):n}})),(function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;return typeof n=="string"?r.document.querySelector(n):n})(t.container,t.environment))}Nc({appId:"S4T2OSB07R",apiKey:"ea6ae2e0546ad6007f7f464a296b67de",indexName:"chocolatey",container:"#docsearchResults"}),(()=>{let t=document.querySelectorAll('.task-list-item [type="checkbox"]');t&&t.forEach(n=>{n.classList.add("form-check-input"),n.outerHTML=`<div class="form-check">${n.outerHTML}<label class="form-check-label"></label></div>`})})();var Lc=Hr(Lu());window.addEventListener("DOMContentLoaded",()=>{if(document.querySelector(".anchorjs-container")){for(let n of document.querySelectorAll("li")){let r=n.firstChild,o=n.classList.contains("task-list-item"),s;switch(o?s=r.nextElementSibling:s=r,s.nodeName){case"STRONG":case"CODE":s.classList.add("d-anchor");break;default:break}}let t=new Lc.default;t.options.placement="left",t.add(".anchorjs-container h2:not(.d-anchor-none), .anchorjs-container h3:not(.d-anchor-none), .anchorjs-container h4:not(.d-anchor-none), .anchorjs-container h5:not(.d-anchor-none), .anchorjs-container h6:not(.d-anchor-none), .anchorjs-container li .d-anchor")}});var qt=Hr(Ru());(0,qt.default)(".nav-scrollspy .nav-link").each((t,n)=>{let r=(0,qt.default)(n).attr("href"),o=s=>{if(s==="#"){(0,qt.default)(n).parent().remove();return}~s.indexOf(".")&&(s=s.replace(/\./g,"\\.")),(0,qt.default)(s).length&&((0,qt.default)(window).scrollTop()>(0,qt.default)(s).offset().top-30&&(0,qt.default)(s).is(":visible")?((0,qt.default)(`a[href="${s}"].nav-link`).addClass("active active-page"),(0,qt.default)(`a[href="${s}"].nav-link`).parent().prev().find("a.active").removeClass("active active-page")):(0,qt.default)(`a[href="${s}"].nav-link`).removeClass("active active-page"))};o(r),window.addEventListener("scroll",()=>{o(r)})}),window.addEventListener("DOMContentLoaded",()=>{let t="data-choco-tab-multi",n=document.querySelectorAll(`[${t}]`),r=new Set;if(n&&n.length>0){for(let o of n){let s=o.getAttribute(t).replace(/\s/g,""),l=null;if(s){try{l=JSON.parse(s!=null?s:"")}catch(h){return}for(let h in l)Object.prototype.hasOwnProperty.call(l,h)&&r.add(h);o.addEventListener("click",()=>{let h=o.getAttribute(t).replace(/\s/g,"");for(let m of n){let y=m.getAttribute(t).replace(/\s/g,"");y!=null&&y.includes(h!=null?h:"")&&window.bootstrap.Tab.getOrCreateInstance(m).show()}let d=~location.hostname.indexOf("chocolatey.org")?"domain=chocolatey.org;":"";for(let m in l)if(Object.prototype.hasOwnProperty.call(l,m)){let y=l[m];document.cookie=`${m}=${y}; ${Fr()}path=/; ${d}`}})}}for(let o of r){let s=gi(o);if(s)for(let l of n){let h=l.getAttribute(t).replace(/\s/g,"");h!=null&&h.includes(o)&&(h!=null&&h.includes(s))&&window.bootstrap.Tab.getOrCreateInstance(l).show()}}}}),(()=>{let t=document.querySelectorAll("table");t&&t.forEach(n=>{n.classList.add("table","table-bordered","table-striped"),n.outerHTML=`<div class="table-responsive">${n.outerHTML}</div>`})})(),document.querySelectorAll(".dropdown-theme").forEach(n=>{n.querySelectorAll(".dropdown-toggle").forEach(r=>{r.addEventListener("hide.bs.dropdown",()=>{document.querySelectorAll("main").forEach(o=>{o.classList.remove("z-0")})}),r.addEventListener("show.bs.dropdown",()=>{document.querySelectorAll("main").forEach(o=>{o.classList.add("z-0")})})})});var Rc=()=>{document.querySelectorAll(".copy-command").forEach(t=>{let n=t.querySelector("code").getAttribute("class").split(" "),r=t.querySelector("button");r&&(r.classList.add("btn-copy"),r.setAttribute("data-clipboard-target",`.${n[0]}`))})},qc=t=>t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),cu=(t,n,r,o)=>{let s;if(r==="never")s=Fr();else if(r==="expired")s="expires=Thu, 01 Jan 1970 00:00:00 UTC";else{let h=new Date;h.setTime(h.getTime()+r*24*60*60*1e3),s=`expires=${h.toUTCString()}`}let l=o||"";document.cookie=`${t}=${encodeURIComponent(n)};${s};path=/;${l};`};document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelectorAll(".dynamic-code-block-container"),n=document.querySelectorAll(".dynamic-code-block-input"),r=document.querySelectorAll(".dynamic-code-block-validation"),o=(l,h,d,m)=>{let y=document.querySelectorAll(`.${h}`),S=m||l.value;if(l.value||m)for(let v of y)v.textContent=S,cu(h,S,"never"),m&&m!==d&&(l.value=m);else for(let v of y)v.textContent=d,cu(h,d,"never")},s=()=>{r.forEach(l=>{let h=l.getAttribute("data-input-names").split(","),d=!0;for(let m of h){let y=document.querySelector(`.dynamic-code-block-input[name="${m}"]`);y.value?y.classList.remove("is-invalid"):(d=!1,y.classList.add("is-invalid"))}d?(l.classList.remove("show"),setTimeout(()=>{l.classList.add("d-none")},150)):(l.classList.remove("d-none"),l.classList.add("show"))})};n.forEach(l=>{let h=l.name,d=l.getAttribute("data-default-value"),m=gi(h),y=new RegExp(`\\b${h}\\b`,"g");for(let S of t){let _=qc(m||d);S.innerHTML=S.innerHTML.replaceAll(y,`<span class="${h}">${_}</span>`)}o(l,h,d,m),s(),l.addEventListener("keyup",()=>{o(l,h,d),s()})}),Rc()})})();})();
|
|
25
|
+
See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:R,items:ne}})})(S,x,o)}).then(function(S){return(function(T){var I=T.props,B=T.state,d=T.collections.reduce(function(R,Z){return Oi(Oi({},R),{},_f({},Z.source.sourceId,Oi(Oi({},Z.source),{},{getItems:function(){return Da(Z.items)}})))},{}),H=I.plugins.reduce(function(R,Z){return Z.reshape?Z.reshape(R):R},{sourcesBySourceId:d,state:B}).sourcesBySourceId;return Da(I.reshape({sourcesBySourceId:H,sources:Object.values(H),state:B})).filter(Boolean).map(function(R){return{source:R,items:R.getItems()}})})({collections:S,props:u,state:o.getState()})})}))).then(function(x){var S;y("idle"),l(x);var T=u.shouldPanelOpen({state:o.getState()});p((S=r.isOpen)!==null&&S!==void 0?S:u.openOnFocus&&!a&&T||T);var I=cu(o.getState());if(o.getState().activeItemId!==null&&I){var B=I.item,d=I.itemInputValue,H=I.itemUrl,R=I.source;R.onActive(lu({event:t,item:B,itemInputValue:d,itemUrl:H,refresh:i,source:R,state:o.getState()},c))}}).finally(function(){y("idle"),Ta&&u.environment.clearTimeout(Ta)});return o.pendingRequests.add(w)}function Oa(e){return Oa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Oa(e)}var Gv=["event","props","refresh","store"];function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(n),!0).forEach(function(r){Jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jv(e,t,n){return(t=(function(r){var u=(function(a){if(Oa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Oa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Oa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(e){return Ia=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Ia(e)}var Qv=["props","refresh","store"],Yv=["inputElement","formElement","panelElement"],Xv=["inputElement"],em=["inputElement","maxLength"],tm=["source"],nm=["item","source"];function Of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Of(Object(n),!0).forEach(function(r){rm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rm(e,t,n){return(t=(function(r){var u=(function(a){if(Ia(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ia(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ia(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(e,t){if(e==null)return{};var n,r,u=(function(i,o){if(i==null)return{};var c,l,p={},m=Object.keys(i);for(l=0;l<m.length;l++)c=m[l],o.indexOf(c)>=0||(p[c]=i[c]);return p})(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function um(e){var t=e.props,n=e.refresh,r=e.store,u=zu(e,Qv);return{getEnvironmentProps:function(a){var i=a.inputElement,o=a.formElement,c=a.panelElement;function l(p){!r.getState().isOpen&&r.pendingRequests.isEmpty()||p.target===i||[o,c].some(function(m){return(v=m)===(y=p.target)||v.contains(y);var v,y})===!1&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return on({onTouchStart:l,onMouseDown:l,onTouchMove:function(p){r.getState().isOpen!==!1&&i===t.environment.document.activeElement&&p.target!==i&&i.blur()}},zu(a,Yv))},getRootProps:function(a){return on({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-controls":r.getState().isOpen?r.getState().collections.map(function(i){var o=i.source;return In(t.id,"list",o)}).join(" "):void 0,"aria-labelledby":In(t.id,"label")},a)},getFormProps:function(a){a.inputElement;var i=zu(a,Xv),o=function(c){var l;t.onSubmit(on({event:c,refresh:n,state:r.getState()},u)),r.dispatch("submit",null),(l=a.inputElement)===null||l===void 0||l.blur()};return on({action:"",noValidate:!0,role:"search",onSubmit:function(c){c.preventDefault();var l=yf(t.plugins,r.pendingRequests);l!==void 0?l.then(function(){return o(c)}):o(c)},onReset:function(c){var l;c.preventDefault(),t.onReset(on({event:c,refresh:n,state:r.getState()},u)),r.dispatch("reset",null),(l=a.inputElement)===null||l===void 0||l.focus()}},i)},getLabelProps:function(a){return on({htmlFor:In(t.id,"input"),id:In(t.id,"label")},a)},getInputProps:function(a){var i;function o(D){(t.openOnFocus||r.getState().query)&&fu(on({event:D,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},u)),r.dispatch("focus",null)}var c=a||{};c.inputElement;var l=c.maxLength,p=l===void 0?512:l,m=zu(c,em),v=cu(r.getState()),y=(function(D){return!!(D&&D.match(Mv))})(((i=t.environment.navigator)===null||i===void 0?void 0:i.userAgent)||""),F=t.enterKeyHint||(v!=null&&v.itemUrl&&!y?"go":"search");return on({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&r.getState().activeItemId!==null?In(t.id,"item-".concat(r.getState().activeItemId),v==null?void 0:v.source):void 0,"aria-controls":r.getState().isOpen?r.getState().collections.filter(function(D){return D.items.length>0}).map(function(D){var _=D.source;return In(t.id,"list",_)}).join(" "):void 0,"aria-labelledby":In(t.id,"label"),value:r.getState().completion||r.getState().query,id:In(t.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:F,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:p,type:"search",onChange:function(D){var _=D.currentTarget.value;t.ignoreCompositionEvents&&Df(D).isComposing?u.setQuery(_):fu(on({event:D,props:t,query:_.slice(0,p),refresh:n,store:r},u))},onCompositionEnd:function(D){fu(on({event:D,props:t,query:D.currentTarget.value.slice(0,p),refresh:n,store:r},u))},onKeyDown:function(D){Df(D).isComposing||(function(_){var O=_.event,w=_.props,x=_.refresh,S=_.store,T=(function(L,ne){if(L==null)return{};var Q,$,Y=(function(me,se){if(me==null)return{};var K,V,ue={},oe=Object.keys(me);for(V=0;V<oe.length;V++)K=oe[V],se.indexOf(K)>=0||(ue[K]=me[K]);return ue})(L,ne);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(L);for($=0;$<re.length;$++)Q=re[$],ne.indexOf(Q)>=0||Object.prototype.propertyIsEnumerable.call(L,Q)&&(Y[Q]=L[Q])}return Y})(_,Gv);if(O.key==="ArrowUp"||O.key==="ArrowDown"){var I=function(){var L=cu(S.getState()),ne=w.environment.document.getElementById(In(w.id,"item-".concat(S.getState().activeItemId),L==null?void 0:L.source));ne&&(ne.scrollIntoViewIfNeeded?ne.scrollIntoViewIfNeeded(!1):ne.scrollIntoView(!1))},B=function(){var L=cu(S.getState());if(S.getState().activeItemId!==null&&L){var ne=L.item,Q=L.itemInputValue,$=L.itemUrl,Y=L.source;Y.onActive(du({event:O,item:ne,itemInputValue:Q,itemUrl:$,refresh:x,source:Y,state:S.getState()},T))}};O.preventDefault(),S.getState().isOpen===!1&&(w.openOnFocus||S.getState().query)?fu(du({event:O,props:w,query:S.getState().query,refresh:x,store:S},T)).then(function(){S.dispatch(O.key,{nextActiveItemId:w.defaultActiveItemId}),B(),setTimeout(I,0)}):(S.dispatch(O.key,{}),B(),I())}else if(O.key==="Escape")O.preventDefault(),S.dispatch(O.key,null),S.pendingRequests.cancelAll();else if(O.key==="Tab")S.dispatch("blur",null),S.pendingRequests.cancelAll();else if(O.key==="Enter"){if(S.getState().activeItemId===null||S.getState().collections.every(function(L){return L.items.length===0})){var d=yf(w.plugins,S.pendingRequests);return void(d!==void 0?d.then(S.pendingRequests.cancelAll):w.debug||S.pendingRequests.cancelAll())}O.preventDefault();var H=cu(S.getState()),R=H.item,Z=H.itemInputValue,q=H.itemUrl,G=H.source;if(O.metaKey||O.ctrlKey)q!==void 0&&(G.onSelect(du({event:O,item:R,itemInputValue:Z,itemUrl:q,refresh:x,source:G,state:S.getState()},T)),w.navigator.navigateNewTab({itemUrl:q,item:R,state:S.getState()}));else if(O.shiftKey)q!==void 0&&(G.onSelect(du({event:O,item:R,itemInputValue:Z,itemUrl:q,refresh:x,source:G,state:S.getState()},T)),w.navigator.navigateNewWindow({itemUrl:q,item:R,state:S.getState()}));else if(!O.altKey){if(q!==void 0)return G.onSelect(du({event:O,item:R,itemInputValue:Z,itemUrl:q,refresh:x,source:G,state:S.getState()},T)),void w.navigator.navigate({itemUrl:q,item:R,state:S.getState()});fu(du({event:O,nextState:{isOpen:!1},props:w,query:Z,refresh:x,store:S},T)).then(function(){G.onSelect(du({event:O,item:R,itemInputValue:Z,itemUrl:q,refresh:x,source:G,state:S.getState()},T))})}}})(on({event:D,props:t,refresh:n,store:r},u))},onFocus:o,onBlur:Ci,onClick:function(D){a.inputElement!==t.environment.document.activeElement||r.getState().isOpen||o(D)}},m)},getPanelProps:function(a){return on({onMouseDown:function(i){i.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},a)},getListProps:function(a){var i=a||{},o=i.source,c=zu(i,tm);return on({role:"listbox","aria-labelledby":In(t.id,"label"),id:In(t.id,"list",o)},c)},getItemProps:function(a){var i=a.item,o=a.source,c=zu(a,nm);return on({id:In(t.id,"item-".concat(i.__autocomplete_id),o),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(l){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);var p=cu(r.getState());if(r.getState().activeItemId!==null&&p){var m=p.item,v=p.itemInputValue,y=p.itemUrl,F=p.source;F.onActive(on({event:l,item:m,itemInputValue:v,itemUrl:y,refresh:n,source:F,state:r.getState()},u))}}},onMouseDown:function(l){l.preventDefault()},onClick:function(l){var p=o.getItemInputValue({item:i,state:r.getState()}),m=o.getItemUrl({item:i,state:r.getState()});(m?Promise.resolve():fu(on({event:l,nextState:{isOpen:!1},props:t,query:p,refresh:n,store:r},u))).then(function(){o.onSelect(on({event:l,item:i,itemInputValue:p,itemUrl:m,refresh:n,source:o,state:r.getState()},u))})}},c)}}}function Ba(e){return Ba=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Ba(e)}function If(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function am(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?If(Object(n),!0).forEach(function(r){Bf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bf(e,t,n){return(t=(function(r){var u=(function(a){if(Ba(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ba(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ba(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function im(e){var t,n,r,u,a=e.plugins,i=e.options,o=(t=(((n=i.__autocomplete_metadata)===null||n===void 0?void 0:n.userAgents)||[])[0])===null||t===void 0?void 0:t.segment,c=o?Bf({},o,Object.keys(((r=i.__autocomplete_metadata)===null||r===void 0?void 0:r.options)||{})):{};return{plugins:a.map(function(l){return{name:l.name,options:Object.keys(l.__autocomplete_pluginOptions||[])}}),options:am({"autocomplete-core":Object.keys(i)},c),ua:xv.concat(((u=i.__autocomplete_metadata)===null||u===void 0?void 0:u.userAgents)||[])}}function Pf(e){var t,n=e.state;return n.isOpen===!1||n.activeItemId===null?null:((t=cu(n))===null||t===void 0?void 0:t.itemInputValue)||null}function Pa(e){return Pa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Pa(e)}function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jf(Object(n),!0).forEach(function(r){om(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function om(e,t,n){return(t=(function(r){var u=(function(a){if(Pa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Pa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Pa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sm=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return st(st({},e),{},{activeItemId:t.payload});case"setQuery":return st(st({},e),{},{query:t.payload,completion:null});case"setCollections":return st(st({},e),{},{collections:t.payload});case"setIsOpen":return st(st({},e),{},{isOpen:t.payload});case"setStatus":return st(st({},e),{},{status:t.payload});case"setContext":return st(st({},e),{},{context:st(st({},e.context),t.payload)});case"ArrowDown":var n=st(st({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:hf(1,e.activeItemId,ls(e),t.props.defaultActiveItemId)});return st(st({},n),{},{completion:Pf({state:n})});case"ArrowUp":var r=st(st({},e),{},{activeItemId:hf(-1,e.activeItemId,ls(e),t.props.defaultActiveItemId)});return st(st({},r),{},{completion:Pf({state:r})});case"Escape":return e.isOpen?st(st({},e),{},{activeItemId:null,isOpen:!1,completion:null}):st(st({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return st(st({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return st(st({},e),{},{activeItemId:t.props.openOnFocus===!0?t.props.defaultActiveItemId:null,status:"idle",completion:null,query:""});case"focus":return st(st({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||!!e.query)&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:st(st({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return st(st({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function ja(e){return ja=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},ja(e)}function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function pu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nf(Object(n),!0).forEach(function(r){cm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cm(e,t,n){return(t=(function(r){var u=(function(a){if(ja(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(ja(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return ja(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lm(e){var t=[],n=Hv(e,t),r=(function(p,m,v){var y,F=m.initialState;return{getState:function(){return F},dispatch:function(D,_){var O=(function(w){for(var x=1;x<arguments.length;x++){var S=arguments[x]!=null?arguments[x]:{};x%2?bf(Object(S),!0).forEach(function(T){$v(w,T,S[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(S)):bf(Object(S)).forEach(function(T){Object.defineProperty(w,T,Object.getOwnPropertyDescriptor(S,T))})}return w})({},F);F=p(F,{type:D,props:m,payload:_}),v({state:F,prevState:O})},pendingRequests:(y=[],{add:function(D){return y.push(D),D.finally(function(){y=y.filter(function(_){return _!==D})})},cancelAll:function(){y.forEach(function(D){return D.cancel()})},isEmpty:function(){return y.length===0},wait:function(D){return hs?(hs=!1,ps=D?Promise.race([Promise.all(y),new Promise(function(_){return setTimeout(_,D)})]):Promise.all(y),ps.then(function(){hs=!0})):ps}})}})(sm,n,function(p){var m,v,y=p.prevState,F=p.state;if(n.onStateChange(pu({prevState:y,state:F,refresh:i,navigator:n.navigator},u)),!c()&&(m=F.context)!==null&&m!==void 0&&(v=m.algoliaInsightsPlugin)!==null&&v!==void 0&&v.__automaticInsights&&n.insights!==!1){var D=ff({__autocomplete_clickAnalytics:!1});n.plugins.push(D),o([D])}}),u=(function(p){var m=p.store;return{setActiveItemId:function(v){m.dispatch("setActiveItemId",v)},setQuery:function(v){m.dispatch("setQuery",v)},setCollections:function(v){var y=0,F=v.map(function(D){return Ti(Ti({},D),{},{items:Da(D.items).map(function(_){return Ti(Ti({},_),{},{__autocomplete_id:y++})})})});m.dispatch("setCollections",F)},setIsOpen:function(v){m.dispatch("setIsOpen",v)},setStatus:function(v){m.dispatch("setStatus",v)},setContext:function(v){m.dispatch("setContext",v)}}})({store:r}),a=um(pu({props:n,refresh:i,store:r,navigator:n.navigator},u));function i(){return fu(pu({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,navigator:n.navigator,query:r.getState().query,refresh:i,store:r},u))}function o(p){p.forEach(function(m){var v;return(v=m.subscribe)===null||v===void 0?void 0:v.call(m,pu(pu({},u),{},{navigator:n.navigator,refresh:i,onSelect:function(y){t.push({onSelect:y})},onActive:function(y){t.push({onActive:y})},onResolve:function(y){t.push({onResolve:y})}}))})}function c(){return n.plugins.some(function(p){return p.name==="aa.algoliaInsightsPlugin"})}if(n.insights&&!c()){var l=typeof n.insights=="boolean"?{}:n.insights;n.plugins.push(ff(l))}return o(n.plugins),(function(p){var m,v,y=p.metadata,F=p.environment;if(!((m=F.navigator)===null||m===void 0||(v=m.userAgent)===null||v===void 0)&&v.includes("Algolia Crawler")){var D=F.document.createElement("meta"),_=F.document.querySelector("head");D.name="algolia:metadata",setTimeout(function(){D.content=JSON.stringify(y),_.appendChild(D)},0)}})({metadata:im({plugins:n.plugins,options:e}),environment:n.environment}),pu(pu({refresh:i,navigator:n.navigator},a),u)}var ys="https://askai.algolia.com/chat",Ds="https://beta-chat-askai.algolia.com";function fm(e){var t=e.translations,n=(t===void 0?{}:t).poweredByText,r=n===void 0?"Powered by":n;return b.createElement("a",{href:"https://www.algolia.com/ref/docsearch/?utm_source=".concat(window.location.hostname,"&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch"),target:"_blank",rel:"noopener noreferrer"},b.createElement("span",{className:"DocSearch-Label"},r),b.createElement("svg",{width:"80",height:"24","aria-label":"Algolia",role:"img",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2196.2 500"},b.createElement("defs",null,b.createElement("style",null,".cls-1,.cls-2{fill:#003dff;}.cls-2{fill-rule:evenodd;}")),b.createElement("path",{className:"cls-2",d:"M1070.38,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),b.createElement("rect",{className:"cls-1",x:"1845.88",y:"104.73",width:"62.58",height:"277.9",rx:"5.9",ry:"5.9"}),b.createElement("path",{className:"cls-2",d:"M1851.78,71.38h50.77c3.26,0,5.9-2.64,5.9-5.9V5.9c0-3.62-3.24-6.39-6.82-5.83l-50.77,7.95c-2.87,.45-4.99,2.92-4.99,5.83v51.62c0,3.26,2.64,5.9,5.9,5.9Z"}),b.createElement("path",{className:"cls-2",d:"M1764.03,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),b.createElement("path",{className:"cls-2",d:"M1631.95,142.72c-11.14-12.25-24.83-21.65-40.78-28.31-15.92-6.53-33.26-9.85-52.07-9.85-18.78,0-36.15,3.17-51.92,9.85-15.59,6.66-29.29,16.05-40.76,28.31-11.47,12.23-20.38,26.87-26.76,44.03-6.38,17.17-9.24,37.37-9.24,58.36,0,20.99,3.19,36.87,9.55,54.21,6.38,17.32,15.14,32.11,26.45,44.36,11.29,12.23,24.83,21.62,40.6,28.46,15.77,6.83,40.12,10.33,52.4,10.48,12.25,0,36.78-3.82,52.7-10.48,15.92-6.68,29.46-16.23,40.78-28.46,11.29-12.25,20.05-27.04,26.25-44.36,6.22-17.34,9.24-33.22,9.24-54.21,0-20.99-3.34-41.19-10.03-58.36-6.38-17.17-15.14-31.8-26.43-44.03Zm-44.43,163.75c-11.47,15.75-27.56,23.7-48.09,23.7-20.55,0-36.63-7.8-48.1-23.7-11.47-15.75-17.21-34.01-17.21-61.2,0-26.89,5.59-49.14,17.06-64.87,11.45-15.75,27.54-23.52,48.07-23.52,20.55,0,36.63,7.78,48.09,23.52,11.47,15.57,17.36,37.98,17.36,64.87,0,27.19-5.72,45.3-17.19,61.2Z"}),b.createElement("path",{className:"cls-2",d:"M894.42,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),b.createElement("path",{className:"cls-2",d:"M2133.97,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),b.createElement("path",{className:"cls-2",d:"M1314.05,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-11.79,18.34-19.6,39.64-22.11,62.59-.58,5.3-.88,10.68-.88,16.14s.31,11.15,.93,16.59c4.28,38.09,23.14,71.61,50.66,94.52,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47h0c17.99,0,34.61-5.93,48.16-15.97,16.29-11.58,28.88-28.54,34.48-47.75v50.26h-.11v11.08c0,21.84-5.71,38.27-17.34,49.36-11.61,11.08-31.04,16.63-58.25,16.63-11.12,0-28.79-.59-46.6-2.41-2.83-.29-5.46,1.5-6.27,4.22l-12.78,43.11c-1.02,3.46,1.27,7.02,4.83,7.53,21.52,3.08,42.52,4.68,54.65,4.68,48.91,0,85.16-10.75,108.89-32.21,21.48-19.41,33.15-48.89,35.2-88.52V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,64.1s.65,139.13,0,143.36c-12.08,9.77-27.11,13.59-43.49,14.7-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-1.32,0-2.63-.03-3.94-.1-40.41-2.11-74.52-37.26-74.52-79.38,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33Z"}),b.createElement("path",{className:"cls-1",d:"M249.83,0C113.3,0,2,110.09,.03,246.16c-2,138.19,110.12,252.7,248.33,253.5,42.68,.25,83.79-10.19,120.3-30.03,3.56-1.93,4.11-6.83,1.08-9.51l-23.38-20.72c-4.75-4.21-11.51-5.4-17.36-2.92-25.48,10.84-53.17,16.38-81.71,16.03-111.68-1.37-201.91-94.29-200.13-205.96,1.76-110.26,92-199.41,202.67-199.41h202.69V407.41l-115-102.18c-3.72-3.31-9.42-2.66-12.42,1.31-18.46,24.44-48.53,39.64-81.93,37.34-46.33-3.2-83.87-40.5-87.34-86.81-4.15-55.24,39.63-101.52,94-101.52,49.18,0,89.68,37.85,93.91,85.95,.38,4.28,2.31,8.27,5.52,11.12l29.95,26.55c3.4,3.01,8.79,1.17,9.63-3.3,2.16-11.55,2.92-23.58,2.07-35.92-4.82-70.34-61.8-126.93-132.17-131.26-80.68-4.97-148.13,58.14-150.27,137.25-2.09,77.1,61.08,143.56,138.19,145.26,32.19,.71,62.03-9.41,86.14-26.95l150.26,133.2c6.44,5.71,16.61,1.14,16.61-7.47V9.48C499.66,4.25,495.42,0,490.18,0H249.83Z"})))}function bs(e){return b.createElement("svg",{width:"20",height:"20","aria-label":e.ariaLabel,viewBox:"0 0 24 24",role:"img"},b.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.4"},e.children))}function dm(e){var t=e.translations,n=t===void 0?{}:t,r=e.isAskAiActive,u=r!==void 0&&r,a=n.selectText,i=a===void 0?"Select":a,o=n.selectKeyAriaLabel,c=o===void 0?"Enter key":o,l=n.submitQuestionText,p=l===void 0?"Submit question":l,m=n.navigateText,v=m===void 0?"Navigate":m,y=n.navigateUpKeyAriaLabel,F=y===void 0?"Arrow up":y,D=n.navigateDownKeyAriaLabel,_=D===void 0?"Arrow down":D,O=n.closeText,w=O===void 0?"Close":O,x=n.backToSearchText,S=x===void 0?"Back to search":x,T=n.closeKeyAriaLabel,I=T===void 0?"Escape key":T,B=n.poweredByText,d=B===void 0?"Powered by":B;return b.createElement(b.Fragment,null,b.createElement("div",{className:"DocSearch-Logo"},b.createElement(fm,{translations:{poweredByText:d}})),b.createElement("ul",{className:"DocSearch-Commands"},b.createElement("li",null,b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement(bs,{ariaLabel:_},b.createElement("path",{d:"M12 5v14"}),b.createElement("path",{d:"m19 12-7 7-7-7"}))),b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement(bs,{ariaLabel:F},b.createElement("path",{d:"m5 12 7-7 7 7"}),b.createElement("path",{d:"M12 19V5"}))),b.createElement("span",{className:"DocSearch-Label"},v)),b.createElement("li",null,b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement(bs,{ariaLabel:c},b.createElement("polyline",{points:"9 10 4 15 9 20"}),b.createElement("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"}))),b.createElement("span",{className:"DocSearch-Label"},u?p:i)),b.createElement("li",null,b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement("span",{className:"DocSearch-Escape-Key"},"ESC")),b.createElement("span",{className:"DocSearch-Label","aria-label":I},u?S:w))))}function pm(e){var t=e.hit,n=e.children;return b.createElement("a",{href:t.url},n)}function Na(e){var t=e.className;return b.createElement("svg",{viewBox:"0 0 38 38",className:t,stroke:"currentColor",strokeOpacity:".5"},b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},b.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),b.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},b.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function As(e){var t=e.className,n=t===void 0?"":t;return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",className:"DocSearch-Hit-icon-sparkles ".concat(n)},b.createElement("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}),b.createElement("path",{d:"M20 3v4"}),b.createElement("path",{d:"M22 5h-4"}),b.createElement("path",{d:"M4 17v2"}),b.createElement("path",{d:"M5 18H3"}))}function hm(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),b.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function Ra(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function vm(){return b.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-triangle-alert-icon lucide-triangle-alert"},b.createElement("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),b.createElement("path",{d:"M12 9v4"}),b.createElement("path",{d:"M12 17h.01"}))}function mm(){return b.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),b.createElement("path",{d:"M8 17l-6-6 6-6"})))}var gm=function(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),b.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),b.createElement("path",{d:"M10 9H8"}),b.createElement("path",{d:"M16 13H8"}),b.createElement("path",{d:"M16 17H8"}))};function ym(e){switch(e.type){case"lvl1":return b.createElement(gm,null);case"content":return b.createElement(bm,null);default:return b.createElement(Dm,null)}}function Dm(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),b.createElement("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),b.createElement("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),b.createElement("line",{x1:"16",x2:"14",y1:"3",y2:"21"}))}function bm(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Rf(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Am(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"none"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99984 1.29102C4.74264 1.29102 1.2915 4.74215 1.2915 8.99935C1.2915 13.2565 4.74264 16.7077 8.99984 16.7077C13.257 16.7077 16.7082 13.2565 16.7082 8.99935C16.7082 4.74215 13.257 1.29102 8.99984 1.29102ZM0.0415039 8.99935C0.0415039 4.0518 4.05229 0.0410156 8.99984 0.0410156C13.9474 0.0410156 17.9582 4.0518 17.9582 8.99935C17.9582 13.9469 13.9474 17.9577 8.99984 17.9577C4.05229 17.9577 0.0415039 13.9469 0.0415039 8.99935ZM5.87484 6.49935C5.87484 6.15417 6.15466 5.87435 6.49984 5.87435H11.4998C11.845 5.87435 12.1248 6.15417 12.1248 6.49935V11.4993C12.1248 11.8445 11.845 12.1243 11.4998 12.1243H6.49984C6.15466 12.1243 5.87484 11.8445 5.87484 11.4993V6.49935ZM7.12484 7.12435V10.8743H10.8748V7.12435H7.12484Z",fill:"currentcolor"}))}function Em(){return b.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function Fm(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"#5a5e9a",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"m13.5 8.5-5 5"}),b.createElement("path",{d:"m8.5 8.5 5 5"}),b.createElement("circle",{cx:"11",cy:"11",r:"8"}),b.createElement("path",{d:"m21 21-4.3-4.3"}))}function _m(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:4,height:16,viewBox:"0 0 4 16",fill:"none"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.99984 1.95898C1.88478 1.95898 1.7915 2.05226 1.7915 2.16732C1.7915 2.28238 1.88478 2.37565 1.99984 2.37565C2.1149 2.37565 2.20817 2.28238 2.20817 2.16732C2.20817 2.05226 2.1149 1.95898 1.99984 1.95898ZM0.541504 2.16732C0.541504 1.3619 1.19442 0.708984 1.99984 0.708984C2.80525 0.708984 3.45817 1.3619 3.45817 2.16732C3.45817 2.97273 2.80525 3.62565 1.99984 3.62565C1.19442 3.62565 0.541504 2.97273 0.541504 2.16732ZM1.99984 7.79232C1.88478 7.79232 1.7915 7.88559 1.7915 8.00065C1.7915 8.11571 1.88478 8.20898 1.99984 8.20898C2.1149 8.20898 2.20817 8.11571 2.20817 8.00065C2.20817 7.88559 2.1149 7.79232 1.99984 7.79232ZM0.541504 8.00065C0.541504 7.19524 1.19442 6.54232 1.99984 6.54232C2.80525 6.54232 3.45817 7.19524 3.45817 8.00065C3.45817 8.80607 2.80525 9.45898 1.99984 9.45898C1.19442 9.45898 0.541504 8.80607 0.541504 8.00065ZM1.99984 13.6257C1.88478 13.6257 1.7915 13.7189 1.7915 13.834C1.7915 13.949 1.88478 14.0423 1.99984 14.0423C2.1149 14.0423 2.20817 13.949 2.20817 13.834C2.20817 13.7189 2.1149 13.6257 1.99984 13.6257ZM0.541504 13.834C0.541504 13.0286 1.19442 12.3757 1.99984 12.3757C2.80525 12.3757 3.45817 13.0286 3.45817 13.834C3.45817 14.6394 2.80525 15.2923 1.99984 15.2923C1.19442 15.2923 0.541504 14.6394 0.541504 13.834Z",fill:"currentcolor"}))}function Cm(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},b.createElement("path",{d:"M9 0.875C10.6068 0.875 12.1776 1.35149 13.5137 2.24414C14.8498 3.13693 15.8919 4.40598 16.5068 5.89062C17.1218 7.37522 17.2822 9.00892 16.9688 10.585C16.6552 12.1611 15.8814 13.6088 14.7451 14.7451C13.6088 15.8814 12.1611 16.6552 10.585 16.9688C9.00892 17.2822 7.37523 17.1218 5.89062 16.5068C4.40598 15.8919 3.13693 14.8498 2.24414 13.5137C1.35149 12.1776 0.875 10.6068 0.875 9C0.875 8.65482 1.15482 8.375 1.5 8.375C1.84518 8.375 2.125 8.65482 2.125 9C2.125 10.3596 2.52792 11.6888 3.2832 12.8193C4.03864 13.9499 5.1129 14.8312 6.36914 15.3516C7.62523 15.8718 9.00736 16.0083 10.3408 15.7432C11.6744 15.4779 12.8998 14.8228 13.8613 13.8613C14.8228 12.8998 15.4779 11.6744 15.7432 10.3408C16.0083 9.00736 15.8718 7.62523 15.3516 6.36914C14.8312 5.1129 13.9499 4.03864 12.8193 3.2832C11.6888 2.52792 10.3596 2.125 9 2.125C7.06829 2.125 5.21604 2.89096 3.82129 4.22949L3.00879 5.04199H5.66699C6.01202 5.04217 6.29199 5.32192 6.29199 5.66699C6.29182 6.01191 6.01191 6.29182 5.66699 6.29199H1.5C1.45939 6.29199 1.41889 6.28716 1.37891 6.2793C1.36148 6.27587 1.345 6.26949 1.32812 6.26465C1.267 6.24714 1.20782 6.22205 1.15332 6.18555C1.08536 6.14005 1.02604 6.08256 0.980469 6.01465C0.970244 5.99942 0.962841 5.98268 0.954102 5.9668C0.904937 5.87756 0.875056 5.77606 0.875 5.66699V1.5C0.875 1.15482 1.15482 0.875002 1.5 0.875C1.84518 0.875 2.125 1.15482 2.125 1.5V4.15723L2.94141 3.3418L2.9502 3.33301C4.57158 1.77433 6.73388 0.875 9 0.875ZM9.33301 4.20801C9.67808 4.20801 9.95783 4.48798 9.95801 4.83301V9.44727L12.9463 10.9414C13.2548 11.0958 13.3798 11.4707 13.2256 11.7793C13.0712 12.088 12.6955 12.213 12.3867 12.0586L9.05371 10.3926C8.84198 10.2867 8.70801 10.0697 8.70801 9.83301V4.83301C8.70818 4.48809 8.98809 4.20819 9.33301 4.20801Z",fill:"currentcolor"}))}function km(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.712717 3.38039C1.14249 2.95062 1.72538 2.70917 2.33317 2.70917H8.1665C8.51168 2.70917 8.7915 2.989 8.7915 3.33417C8.7915 3.67935 8.51168 3.95917 8.1665 3.95917H2.33317C2.0569 3.95917 1.79195 4.06892 1.5966 4.26427C1.40125 4.45962 1.2915 4.72457 1.2915 5.00084V16.6675C1.2915 16.9438 1.40125 17.2087 1.5966 17.4041C1.79195 17.5994 2.0569 17.7092 2.33317 17.7092H13.9998C14.2761 17.7092 14.5411 17.5994 14.7364 17.4041C14.9318 17.2087 15.0415 16.9438 15.0415 16.6675V10.8342C15.0415 10.489 15.3213 10.2092 15.6665 10.2092C16.0117 10.2092 16.2915 10.489 16.2915 10.8342V16.6675C16.2915 17.2753 16.0501 17.8582 15.6203 18.288C15.1905 18.7177 14.6076 18.9592 13.9998 18.9592H2.33317C1.72538 18.9592 1.14249 18.7177 0.712717 18.288C0.282947 17.8582 0.0415039 17.2753 0.0415039 16.6675V5.00084C0.0415039 4.39305 0.282947 3.81016 0.712717 3.38039Z",fill:"currentcolor"}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6665 2.19141C15.3634 2.19141 15.0728 2.3118 14.8584 2.52611L7.06419 10.3204L6.52548 12.4752L8.68031 11.9365L16.4746 4.14223C16.6889 3.92792 16.8093 3.63725 16.8093 3.33417C16.8093 3.03109 16.6889 2.74043 16.4746 2.52611C16.2603 2.3118 15.9696 2.19141 15.6665 2.19141ZM13.9746 1.64223C14.4233 1.1935 15.0319 0.941406 15.6665 0.941406C16.3011 0.941406 16.9097 1.1935 17.3584 1.64223C17.8072 2.09096 18.0593 2.69957 18.0593 3.33417C18.0593 3.96877 17.8072 4.57738 17.3584 5.02611L9.44178 12.9428C9.36168 13.0229 9.26132 13.0797 9.15142 13.1072L5.81809 13.9405C5.6051 13.9938 5.3798 13.9314 5.22456 13.7761C5.06932 13.6209 5.00692 13.3956 5.06016 13.1826L5.8935 9.84925C5.92097 9.73936 5.9778 9.639 6.0579 9.5589L13.9746 1.64223Z",fill:"currentcolor"}))}var Pi,wm={before:"Searched for ",separator:", ",lastSeparator:" and ",after:""};function Sm(e){var t=e.queries,n=e.translations,r=e.onSearchQueryClick;if(t.length===0)return null;if(typeof n.aggregatedToolCallNode=="function")return b.createElement(b.Fragment,null,n.aggregatedToolCallNode(t,r));var u=(n.aggregatedToolCallText?n.aggregatedToolCallText(t):wm)||{},a=u.before,i=a===void 0?"":a,o=u.separator,c=o===void 0?", ":o,l=u.lastSeparator,p=l===void 0?" and ":l,m=u.after,v=m===void 0?"":m;return b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--AggregatedResult"},b.createElement(ya,{size:18}),b.createElement("span",null,i&&b.createElement("span",null,i),t.map(function(y,F){return b.createElement(tr,{key:y+F},b.createElement("span",{role:"button",tabIndex:0,className:"DocSearch-AskAiScreen-MessageContent-Tool-Query",onKeyDown:function(D){D.key!=="enter"&&D.key!==" "||(D.preventDefault(),r(y))},onClick:function(){return r(y)}},'"',y,'"'),F<t.length-2&&c,F===t.length-2&&p)}),v&&b.createElement("span",null,v)))}var hu={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function zf(e){hu=e}var za={exec:function(){return null}};function mt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=typeof e=="string"?e:e.source,r={replace:function(u,a){var i=typeof a=="string"?a:a.source;return i=i.replace(pn.caret,"$1"),n=n.replace(u,i),r},getRegex:function(){return new RegExp(n,t)}};return r}var xm=(function(){try{return!!new RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),pn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])/,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:function(e){return new RegExp("^( {0,3}".concat(e,")((?:[ ][^\\n]*)?(?:\\n|$))"))},nextBulletRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))"))},hrRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"))},fencesBeginRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:```|~~~)"))},headingBeginRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}#"))},htmlBeginRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}<(?:[a-z].*>|!--)"),"i")}},La=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Es=/(?:[*+-]|\d{1,9}[.)])/,Lf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mf=mt(Lf).replace(/bull/g,Es).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Tm=mt(Lf).replace(/bull/g,Es).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Fs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_s=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Om=mt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_s).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Im=mt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Es).getRegex(),ji="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Cs=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Bm=mt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Cs).replace("tag",ji).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$f=mt(Fs).replace("hr",La).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ji).getRegex(),ks={blockquote:mt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$f).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Om,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:La,html:Bm,lheading:Mf,list:Im,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$f,table:za,text:/^[^\n]+/},Zf=mt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",La).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ji).getRegex(),Pm=C(C({},ks),{},{lheading:Tm,table:Zf,paragraph:mt(Fs).replace("hr",La).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Zf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ji).getRegex()}),jm=C(C({},ks),{},{html:mt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Cs).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:za,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:mt(Fs).replace("hr",La).replace("heading",` *#{1,6} *[^
|
|
26
|
+
]`).replace("lheading",Mf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),qf=/^( {2,}|\\)\n(?!\s*$)/,Ni=/(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,ws=/(?:[\t-\r -\/:-@\[-`\{-~\xA0-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2000-\u200A\u2010-\u2029\u202F-\u205F\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,Hf=/(?:[\0-\x08\x0E-\x1F0-9A-Za-z\x7F-\x9F\xAA\xAD\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u037D\u037F-\u0383\u0386\u0388-\u03F5\u03F7-\u0481\u0483-\u0559\u0560-\u0588\u058B\u058C\u0590-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0605\u0610-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF\u070E-\u07F5\u07FA-\u07FD\u0800-\u082F\u083F-\u085D\u085F-\u0887\u0889-\u0963\u0966-\u096F\u0971-\u09F1\u09F4-\u09F9\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C76\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0D4E\u0D50-\u0D78\u0D7A-\u0DF3\u0DF5-\u0E3E\u0E40-\u0E4E\u0E50-\u0E59\u0E5C-\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F84\u0F86-\u0FBD\u0FC6\u0FCD\u0FDB-\u1049\u1050-\u109D\u10A0-\u10FA\u10FC-\u135F\u1369-\u138F\u139A-\u13FF\u1401-\u166C\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DC-\u17FF\u180B-\u193F\u1941-\u1943\u1946-\u19DD\u1A00-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u2079\u207F-\u2089\u208F-\u209F\u20C2-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u242A-\u243F\u244B-\u249B\u24EA-\u24FF\u2776-\u2793\u2B74\u2B75\u2C00-\u2CE4\u2CEB-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E5E-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3040-\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u318F\u3192-\u3195\u31A0-\u31BF\u31E6-\u31EE\u31F0-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAA76\uAA7A-\uAADD\uAAE0-\uAAEF\uAAF2-\uAB5A\uAB5C-\uAB69\uAB6C-\uABEA\uABEC-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDD0-\uFDFB\uFE00-\uFE0F\uFE1A-\uFE2F\uFE53\uFE67\uFE6C-\uFEFE\uFF00\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDC76\uDC79-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEC7\uDEC9-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDD8D\uDD90-\uDEAC\uDEAE-\uDECF\uDED9-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF40-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFD4\uDFF2-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD832\uD837\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF40-\uDF43\uDF46-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D\uDC9E\uDCA0-\uDFFF]|\uD833[\uDCF0-\uDCF9\uDCFD-\uDCFF\uDEB4-\uDEB9\uDED1-\uDEDF\uDEF1-\uDF4F\uDFC4-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDEB-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE8C-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED9-\uDEDB\uDEED-\uDEEF\uDEFD-\uDEFF\uDFDA-\uDFDF\uDFEC-\uDFEF\uDFF1-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDE58-\uDE5F\uDE6E\uDE6F\uDE7D-\uDE7F\uDE8B-\uDE8D\uDEC7\uDEC9-\uDECC\uDEDD\uDEDE\uDEEB-\uDEEE\uDEF9-\uDEFF\uDF93\uDFF0-\uDFF9\uDFFB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Nm=mt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ws).getRegex(),Uf=/(?!~)(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,Rm=mt(/link|precode-code|html/,"g").replace("link",Fi(/\[(?:[^\[\]`]|(`+)[^`]+\1(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/,{a:1})).replace("precode-",xm?"(?<!`)()":"(^^|[^`])").replace("code",Fi(/(`+)[^`]+\1(?!`)/,{b:1})).replace("html",/<(?! )[^<>]*?>/).getRegex(),Wf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,zm=mt(Wf,"u").replace(/punct/g,Ni).getRegex(),Lm=mt(Wf,"u").replace(/punct/g,Uf).getRegex(),Vf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Mm=mt(Vf,"gu").replace(/notPunctSpace/g,Hf).replace(/punctSpace/g,ws).replace(/punct/g,Ni).getRegex(),$m=mt(Vf,"gu").replace(/notPunctSpace/g,/(?:(?:[\0-\x08\x0E-\x1F0-9A-Za-z\x7F-\x9F\xAA\xAD\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u037D\u037F-\u0383\u0386\u0388-\u03F5\u03F7-\u0481\u0483-\u0559\u0560-\u0588\u058B\u058C\u0590-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0605\u0610-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF\u070E-\u07F5\u07FA-\u07FD\u0800-\u082F\u083F-\u085D\u085F-\u0887\u0889-\u0963\u0966-\u096F\u0971-\u09F1\u09F4-\u09F9\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C76\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0D4E\u0D50-\u0D78\u0D7A-\u0DF3\u0DF5-\u0E3E\u0E40-\u0E4E\u0E50-\u0E59\u0E5C-\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F84\u0F86-\u0FBD\u0FC6\u0FCD\u0FDB-\u1049\u1050-\u109D\u10A0-\u10FA\u10FC-\u135F\u1369-\u138F\u139A-\u13FF\u1401-\u166C\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DC-\u17FF\u180B-\u193F\u1941-\u1943\u1946-\u19DD\u1A00-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u2079\u207F-\u2089\u208F-\u209F\u20C2-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u242A-\u243F\u244B-\u249B\u24EA-\u24FF\u2776-\u2793\u2B74\u2B75\u2C00-\u2CE4\u2CEB-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E5E-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3040-\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u318F\u3192-\u3195\u31A0-\u31BF\u31E6-\u31EE\u31F0-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAA76\uAA7A-\uAADD\uAAE0-\uAAEF\uAAF2-\uAB5A\uAB5C-\uAB69\uAB6C-\uABEA\uABEC-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDD0-\uFDFB\uFE00-\uFE0F\uFE1A-\uFE2F\uFE53\uFE67\uFE6C-\uFEFE\uFF00\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDC76\uDC79-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEC7\uDEC9-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDD8D\uDD90-\uDEAC\uDEAE-\uDECF\uDED9-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF40-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFD4\uDFF2-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD832\uD837\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF40-\uDF43\uDF46-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D\uDC9E\uDCA0-\uDFFF]|\uD833[\uDCF0-\uDCF9\uDCFD-\uDCFF\uDEB4-\uDEB9\uDED1-\uDEDF\uDEF1-\uDF4F\uDFC4-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDEB-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE8C-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED9-\uDEDB\uDEED-\uDEEF\uDEFD-\uDEFF\uDFDA-\uDFDF\uDFEC-\uDFEF\uDFF1-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDE58-\uDE5F\uDE6E\uDE6F\uDE7D-\uDE7F\uDE8B-\uDE8D\uDEC7\uDEC9-\uDECC\uDEDD\uDEDE\uDEEB-\uDEEE\uDEF9-\uDEFF\uDF93\uDFF0-\uDFF9\uDFFB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|~)/).replace(/punctSpace/g,/(?!~)(?:[\t-\r -\/:-@\[-`\{-~\xA0-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2000-\u200A\u2010-\u2029\u202F-\u205F\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/).replace(/punct/g,Uf).getRegex(),Zm=mt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Hf).replace(/punctSpace/g,ws).replace(/punct/g,Ni).getRegex(),qm=mt(/\\(punct)/,"gu").replace(/punct/g,Ni).getRegex(),Hm=mt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Um=mt(Cs).replace("(?:-->|$)","-->").getRegex(),Wm=mt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Um).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ri=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Vm=mt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ri).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Kf=mt(/^!?\[(label)\]\[(ref)\]/).replace("label",Ri).replace("ref",_s).getRegex(),Gf=mt(/^!?\[(ref)\](?:\[\])?/).replace("ref",_s).getRegex(),Jf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ss={_backpedal:za,anyPunctuation:qm,autolink:Hm,blockSkip:Rm,br:qf,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:za,emStrongLDelim:zm,emStrongRDelimAst:Mm,emStrongRDelimUnd:Zm,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Vm,nolink:Gf,punctuation:Nm,reflink:Kf,reflinkSearch:mt("reflink|nolink(?!\\()","g").replace("reflink",Kf).replace("nolink",Gf).getRegex(),tag:Wm,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:za},Km=C(C({},Ss),{},{link:mt(/^!?\[(label)\]\((.*?)\)/).replace("label",Ri).getRegex(),reflink:mt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ri).getRegex()}),xs=C(C({},Ss),{},{emStrongRDelimAst:$m,emStrongLDelim:Lm,url:mt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Jf).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:mt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Jf).getRegex()}),Gm=C(C({},xs),{},{br:mt(qf).replace("{2,}","*").getRegex(),text:mt(xs.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),zi={normal:ks,gfm:Pm,pedantic:jm},Ma={normal:Ss,gfm:xs,breaks:Gm,pedantic:Km},Jm={"&":"&","<":"<",">":">",'"':""","'":"'"},Qf=function(e){return Jm[e]};function nr(e,t){if(t){if(pn.escapeTest.test(e))return e.replace(pn.escapeReplace,Qf)}else if(pn.escapeTestNoEncode.test(e))return e.replace(pn.escapeReplaceNoEncode,Qf);return e}function Yf(e){try{e=encodeURI(e).replace(pn.percentDecode,"%")}catch(t){return null}return e}function Xf(e,t){var n,r=e.replace(pn.findPipe,function(a,i,o){for(var c=!1,l=i;--l>=0&&o[l]==="\\";)c=!c;return c?"|":" |"}).split(pn.splitPipe),u=0;if(r[0].trim()||r.shift(),r.length>0&&!((n=r.at(-1))!==null&&n!==void 0&&n.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;u<r.length;u++)r[u]=r[u].trim().replace(pn.slashPipe,"|");return r}function $a(e,t,n){var r=e.length;if(r===0)return"";for(var u=0;u<r&&e.charAt(r-u-1)===t;)u++;return e.slice(0,r-u)}function ed(e,t,n,r,u){var a=t.href,i=t.title||null,o=e[1].replace(u.other.outputLinkReplace,"$1");r.state.inLink=!0;var c={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,c}var Li=Pe(function e(t){Be(this,e),lt(this,"options",void 0),lt(this,"rules",void 0),lt(this,"lexer",void 0),this.options=t||hu},[{key:"space",value:function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$a(n,`
|
|
27
|
+
`)}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=(function(u,a,i){var o=u.match(i.other.indentCodeCompensation);if(o===null)return a;var c=o[1];return a.split(`
|
|
28
|
+
`).map(function(l){var p=l.match(i.other.beginningSpace);return p===null?l:dt(p,1)[0].length>=c.length?l.slice(c.length):l}).join(`
|
|
29
|
+
`)})(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(this.rules.other.endingHash.test(n)){var r=$a(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:$a(t[0],`
|
|
30
|
+
`)}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){for(var n=$a(t[0],`
|
|
31
|
+
`).split(`
|
|
32
|
+
`),r="",u="",a=[];n.length>0;){var i=!1,o=[],c=void 0;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))o.push(n[c]),i=!0;else{if(i)break;o.push(n[c])}n=n.slice(c);var l=o.join(`
|
|
33
|
+
`),p=l.replace(this.rules.other.blockquoteSetextReplace,`
|
|
34
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?"".concat(r,`
|
|
35
|
+
`).concat(l):l,u=u?"".concat(u,`
|
|
36
|
+
`).concat(p):p;var m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,a,!0),this.lexer.state.top=m,n.length===0)break;var v=a.at(-1);if((v==null?void 0:v.type)==="code")break;if((v==null?void 0:v.type)==="blockquote"){var y=v,F=y.raw+`
|
|
37
|
+
`+n.join(`
|
|
38
|
+
`),D=this.blockquote(F);a[a.length-1]=D,r=r.substring(0,r.length-y.raw.length)+D.raw,u=u.substring(0,u.length-y.text.length)+D.text;break}if((v==null?void 0:v.type)==="list"){var _=v,O=_.raw+`
|
|
39
|
+
`+n.join(`
|
|
40
|
+
`),w=this.list(O);a[a.length-1]=w,r=r.substring(0,r.length-v.raw.length)+w.raw,u=u.substring(0,u.length-_.raw.length)+w.raw,n=O.substring(a.at(-1).raw.length).split(`
|
|
41
|
+
`)}}return{type:"blockquote",raw:r,tokens:a,text:u}}}},{key:"list",value:function(e){var t=this,n=this.rules.block.list.exec(e);if(n){var r=n[1].trim(),u=r.length>1,a={type:"list",raw:"",ordered:u,start:u?+r.slice(0,-1):"",loose:!1,items:[]};r=u?"\\d{1,9}\\".concat(r.slice(-1)):"\\".concat(r),this.options.pedantic&&(r=u?r:"[*+-]");for(var i=this.rules.other.listItemRegex(r),o=!1;e;){var c=!1,l="",p="";if(!(n=i.exec(e))||this.rules.block.hr.test(e))break;l=n[0],e=e.substring(l.length);var m=n[2].split(`
|
|
42
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,function(G){return" ".repeat(3*G.length)}),v=e.split(`
|
|
43
|
+
`,1)[0],y=!m.trim(),F=0;if(this.options.pedantic?(F=2,p=m.trimStart()):y?F=n[1].length+1:(F=(F=n[2].search(this.rules.other.nonSpaceChar))>4?1:F,p=m.slice(F),F+=n[1].length),y&&this.rules.other.blankLine.test(v)&&(l+=v+`
|
|
44
|
+
`,e=e.substring(v.length+1),c=!0),!c)for(var D=this.rules.other.nextBulletRegex(F),_=this.rules.other.hrRegex(F),O=this.rules.other.fencesBeginRegex(F),w=this.rules.other.headingBeginRegex(F),x=this.rules.other.htmlBeginRegex(F);e;){var S=e.split(`
|
|
45
|
+
`,1)[0],T=void 0;if(v=S,T=this.options.pedantic?v=v.replace(this.rules.other.listReplaceNesting," "):v.replace(this.rules.other.tabCharGlobal," "),O.test(v)||w.test(v)||x.test(v)||D.test(v)||_.test(v))break;if(T.search(this.rules.other.nonSpaceChar)>=F||!v.trim())p+=`
|
|
46
|
+
`+T.slice(F);else{if(y||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(m)||w.test(m)||_.test(m))break;p+=`
|
|
47
|
+
`+v}!y&&!v.trim()&&(y=!0),l+=S+`
|
|
48
|
+
`,e=e.substring(S.length+1),m=T.slice(F)}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(o=!0));var I=null,B=void 0;this.options.gfm&&(I=this.rules.other.listIsTask.exec(p))&&(B=I[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,"")),a.items.push({type:"list_item",raw:l,task:!!I,checked:B,loose:!1,text:p,tokens:[]}),a.raw+=l}var d=a.items.at(-1);if(!d)return;d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd(),a.raw=a.raw.trimEnd();for(var H=0;H<a.items.length;H++)if(this.lexer.state.top=!1,a.items[H].tokens=this.lexer.blockTokens(a.items[H].text,[]),!a.loose){var R=a.items[H].tokens.filter(function(G){return G.type==="space"}),Z=R.length>0&&R.some(function(G){return t.rules.other.anyLine.test(G.raw)});a.loose=Z}if(a.loose)for(var q=0;q<a.items.length;q++)a.items[q].loose=!0;return a}}},{key:"html",value:function(e){var t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}},{key:"def",value:function(e){var t=this.rules.block.def.exec(e);if(t){var n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:u}}}},{key:"table",value:function(e){var t,n=this,r=this.rules.block.table.exec(e);if(r&&this.rules.other.tableDelimiter.test(r[2])){var u=Xf(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(t=r[3])!==null&&t!==void 0&&t.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
49
|
+
`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(u.length===a.length){var c,l=ye(a);try{for(l.s();!(c=l.n()).done;){var p=c.value;this.rules.other.tableAlignRight.test(p)?o.align.push("right"):this.rules.other.tableAlignCenter.test(p)?o.align.push("center"):this.rules.other.tableAlignLeft.test(p)?o.align.push("left"):o.align.push(null)}}catch(D){l.e(D)}finally{l.f()}for(var m=0;m<u.length;m++)o.header.push({text:u[m],tokens:this.lexer.inline(u[m]),header:!0,align:o.align[m]});var v,y=ye(i);try{for(y.s();!(v=y.n()).done;){var F=v.value;o.rows.push(Xf(F,o.header.length).map(function(D,_){return{text:D,tokens:n.lexer.inline(D),header:!1,align:o.align[_]}}))}}catch(D){y.e(D)}finally{y.f()}return o}}}},{key:"lheading",value:function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}},{key:"paragraph",value:function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n=t[1].charAt(t[1].length-1)===`
|
|
50
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}},{key:"text",value:function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}},{key:"escape",value:function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}},{key:"tag",value:function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;var r=$a(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var u=(function(l,p){if(l.indexOf(p[1])===-1)return-1;for(var m=0,v=0;v<l.length;v++)if(l[v]==="\\")v++;else if(l[v]===p[0])m++;else if(l[v]===p[1]&&--m<0)return v;return m>0?-2:-1})(t[2],"()");if(u===-2)return;if(u>-1){var a=(t[0].indexOf("!")===0?5:4)+t[1].length+u;t[2]=t[2].substring(0,u),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var i=t[2],o="";if(this.options.pedantic){var c=this.rules.other.pedanticHrefTitle.exec(i);c&&(i=c[1],o=c[3])}else o=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i.slice(1):i.slice(1,-1)),ed(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!r){var u=n[0].charAt(0);return{type:"text",raw:u,text:u}}return ed(n,r,n[0],this.lexer,this.rules)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){var u,a,i=be(r[0]).length-1,o=i,c=0,l=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!=null;)if(u=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(a=be(u).length,r[3]||r[4])o+=a;else if(!((r[5]||r[6])&&i%3)||(i+a)%3){if(!((o-=a)>0)){a=Math.min(a,a+o+c);var p=be(r[0])[0].length,m=e.slice(0,i+r.index+p+a);if(Math.min(i,a)%2){var v=m.slice(1,-1);return{type:"em",raw:m,text:v,tokens:this.lexer.inlineTokens(v)}}var y=m.slice(2,-2);return{type:"strong",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}}else c+=a}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),u=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&u&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}},{key:"autolink",value:function(e){var t,n,r=this.rules.inline.autolink.exec(e);if(r)return n=r[2]==="@"?"mailto:"+(t=r[1]):t=r[1],{type:"link",raw:r[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}},{key:"url",value:function(e){var t;if(t=this.rules.inline.url.exec(e)){var n,r;if(t[2]==="@")r="mailto:"+(n=t[0]);else{var u;do{var a,i;u=t[0],t[0]=(a=(i=this.rules.inline._backpedal.exec(t[0]))===null||i===void 0?void 0:i[0])!==null&&a!==void 0?a:""}while(u!==t[0]);n=t[0],r=t[1]==="www."?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}},{key:"inlineText",value:function(e){var t=this.rules.inline.text.exec(e);if(t){var n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}}]),Un=(function(){function e(t){Be(this,e),lt(this,"tokens",void 0),lt(this,"options",void 0),lt(this,"state",void 0),lt(this,"tokenizer",void 0),lt(this,"inlineQueue",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||hu,this.options.tokenizer=this.options.tokenizer||new Li,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={other:pn,block:zi.normal,inline:Ma.normal};this.options.pedantic?(n.block=zi.pedantic,n.inline=Ma.pedantic):this.options.gfm&&(n.block=zi.gfm,this.options.breaks?n.inline=Ma.breaks:n.inline=Ma.gfm),this.tokenizer.rules=n}return Pe(e,[{key:"lex",value:function(t){t=t.replace(pn.carriageReturn,`
|
|
51
|
+
`),this.blockTokens(t,this.tokens);for(var n=0;n<this.inlineQueue.length;n++){var r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}},{key:"blockTokens",value:function(t){var n,r=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=function(){var o,c,l;if((o=r.options.extensions)!==null&&o!==void 0&&(o=o.block)!==null&&o!==void 0&&o.some(function(S){return!!(l=S.call({lexer:r},t,u))&&(t=t.substring(l.raw.length),u.push(l),!0)}))return 0;if(l=r.tokenizer.space(t)){t=t.substring(l.raw.length);var p=u.at(-1);return l.raw.length===1&&p!==void 0?p.raw+=`
|
|
52
|
+
`:u.push(l),0}if(l=r.tokenizer.code(t)){t=t.substring(l.raw.length);var m=u.at(-1);return(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
53
|
+
`)?"":`
|
|
54
|
+
`)+l.raw,m.text+=`
|
|
55
|
+
`+l.text,r.inlineQueue.at(-1).src=m.text):u.push(l),0}if((l=r.tokenizer.fences(t))||(l=r.tokenizer.heading(t))||(l=r.tokenizer.hr(t))||(l=r.tokenizer.blockquote(t))||(l=r.tokenizer.list(t))||(l=r.tokenizer.html(t)))return t=t.substring(l.raw.length),u.push(l),0;if(l=r.tokenizer.def(t)){t=t.substring(l.raw.length);var v=u.at(-1);return(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
|
|
56
|
+
`)?"":`
|
|
57
|
+
`)+l.raw,v.text+=`
|
|
58
|
+
`+l.raw,r.inlineQueue.at(-1).src=v.text):r.tokens.links[l.tag]||(r.tokens.links[l.tag]={href:l.href,title:l.title},u.push(l)),0}if((l=r.tokenizer.table(t))||(l=r.tokenizer.lheading(t)))return t=t.substring(l.raw.length),u.push(l),0;var y=t;if((c=r.options.extensions)!==null&&c!==void 0&&c.startBlock){var F,D=1/0,_=t.slice(1);r.options.extensions.startBlock.forEach(function(S){typeof(F=S.call({lexer:r},_))=="number"&&F>=0&&(D=Math.min(D,F))}),D<1/0&&D>=0&&(y=t.substring(0,D+1))}if(r.state.top&&(l=r.tokenizer.paragraph(y))){var O=u.at(-1);return a&&(O==null?void 0:O.type)==="paragraph"?(O.raw+=(O.raw.endsWith(`
|
|
59
|
+
`)?"":`
|
|
60
|
+
`)+l.raw,O.text+=`
|
|
61
|
+
`+l.text,r.inlineQueue.pop(),r.inlineQueue.at(-1).src=O.text):u.push(l),a=y.length!==t.length,t=t.substring(l.raw.length),0}if(l=r.tokenizer.text(t)){t=t.substring(l.raw.length);var w=u.at(-1);return(w==null?void 0:w.type)==="text"?(w.raw+=(w.raw.endsWith(`
|
|
62
|
+
`)?"":`
|
|
63
|
+
`)+l.raw,w.text+=`
|
|
64
|
+
`+l.text,r.inlineQueue.pop(),r.inlineQueue.at(-1).src=w.text):u.push(l),0}if(t){var x="Infinite loop on byte: "+t.charCodeAt(0);if(r.options.silent)return console.error(x),1;throw new Error(x)}};for(this.options.pedantic&&(t=t.replace(pn.tabCharGlobal," ").replace(pn.spaceLine,""));t&&((n=i())===0||n!==1););return this.state.top=!0,u}},{key:"inline",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return this.inlineQueue.push({src:t,tokens:n}),n}},{key:"inlineTokens",value:function(t){var n,r,u,a=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=t,c=null;if(this.tokens.links){var l=Object.keys(this.tokens.links);if(l.length>0)for(;(c=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)l.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,c.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(c=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)u=c[2]?c[2].length:0,o=o.slice(0,c.index+u)+"["+"a".repeat(c[0].length-u-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);o=(n=(r=this.options.hooks)===null||r===void 0||(r=r.emStrongMask)===null||r===void 0?void 0:r.call({lexer:this},o))!==null&&n!==void 0?n:o;for(var p,m=!1,v="",y=function(){var F,D,_;if(m||(v=""),m=!1,(F=a.options.extensions)!==null&&F!==void 0&&(F=F.inline)!==null&&F!==void 0&&F.some(function(d){return!!(_=d.call({lexer:a},t,i))&&(t=t.substring(_.raw.length),i.push(_),!0)}))return 0;if((_=a.tokenizer.escape(t))||(_=a.tokenizer.tag(t))||(_=a.tokenizer.link(t)))return t=t.substring(_.raw.length),i.push(_),0;if(_=a.tokenizer.reflink(t,a.tokens.links)){t=t.substring(_.raw.length);var O=i.at(-1);return _.type==="text"&&(O==null?void 0:O.type)==="text"?(O.raw+=_.raw,O.text+=_.text):i.push(_),0}if((_=a.tokenizer.emStrong(t,o,v))||(_=a.tokenizer.codespan(t))||(_=a.tokenizer.br(t))||(_=a.tokenizer.del(t))||(_=a.tokenizer.autolink(t))||!a.state.inLink&&(_=a.tokenizer.url(t)))return t=t.substring(_.raw.length),i.push(_),0;var w=t;if((D=a.options.extensions)!==null&&D!==void 0&&D.startInline){var x,S=1/0,T=t.slice(1);a.options.extensions.startInline.forEach(function(d){typeof(x=d.call({lexer:a},T))=="number"&&x>=0&&(S=Math.min(S,x))}),S<1/0&&S>=0&&(w=t.substring(0,S+1))}if(_=a.tokenizer.inlineText(w)){t=t.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(v=_.raw.slice(-1)),m=!0;var I=i.at(-1);return(I==null?void 0:I.type)==="text"?(I.raw+=_.raw,I.text+=_.text):i.push(_),0}if(t){var B="Infinite loop on byte: "+t.charCodeAt(0);if(a.options.silent)return console.error(B),1;throw new Error(B)}};t&&((p=y())===0||p!==1););return i}}],[{key:"rules",get:function(){return{block:zi,inline:Ma}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}])})(),Mi=Pe(function e(t){Be(this,e),lt(this,"options",void 0),lt(this,"parser",void 0),this.options=t||hu},[{key:"space",value:function(e){return""}},{key:"code",value:function(e){var t,n=e.text,r=e.lang,u=e.escaped,a=(t=(r||"").match(pn.notSpaceStart))===null||t===void 0?void 0:t[0],i=n.replace(pn.endingNewline,"")+`
|
|
65
|
+
`;return a?'<pre><code class="language-'+nr(a)+'">'+(u?i:nr(i,!0))+`</code></pre>
|
|
66
|
+
`:"<pre><code>"+(u?i:nr(i,!0))+`</code></pre>
|
|
67
|
+
`}},{key:"blockquote",value:function(e){var t=e.tokens;return`<blockquote>
|
|
68
|
+
`.concat(this.parser.parse(t),`</blockquote>
|
|
69
|
+
`)}},{key:"html",value:function(e){return e.text}},{key:"def",value:function(e){return""}},{key:"heading",value:function(e){var t=e.tokens,n=e.depth;return"<h".concat(n,">").concat(this.parser.parseInline(t),"</h").concat(n,`>
|
|
70
|
+
`)}},{key:"hr",value:function(e){return`<hr>
|
|
71
|
+
`}},{key:"list",value:function(e){for(var t=e.ordered,n=e.start,r="",u=0;u<e.items.length;u++){var a=e.items[u];r+=this.listitem(a)}var i=t?"ol":"ul";return"<"+i+(t&&n!==1?' start="'+n+'"':"")+`>
|
|
72
|
+
`+r+"</"+i+`>
|
|
73
|
+
`}},{key:"listitem",value:function(e){var t="";if(e.task){var n,r=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])===null||n===void 0?void 0:n.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+nr(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),"<li>".concat(t,`</li>
|
|
74
|
+
`)}},{key:"checkbox",value:function(e){return"<input "+(e.checked?'checked="" ':"")+'disabled="" type="checkbox">'}},{key:"paragraph",value:function(e){var t=e.tokens;return"<p>".concat(this.parser.parseInline(t),`</p>
|
|
75
|
+
`)}},{key:"table",value:function(e){for(var t="",n="",r=0;r<e.header.length;r++)n+=this.tablecell(e.header[r]);t+=this.tablerow({text:n});for(var u="",a=0;a<e.rows.length;a++){var i=e.rows[a];n="";for(var o=0;o<i.length;o++)n+=this.tablecell(i[o]);u+=this.tablerow({text:n})}return u&&(u="<tbody>".concat(u,"</tbody>")),`<table>
|
|
76
|
+
<thead>
|
|
77
|
+
`+t+`</thead>
|
|
78
|
+
`+u+`</table>
|
|
79
|
+
`}},{key:"tablerow",value:function(e){var t=e.text;return`<tr>
|
|
80
|
+
`.concat(t,`</tr>
|
|
81
|
+
`)}},{key:"tablecell",value:function(e){var t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"</".concat(n,`>
|
|
82
|
+
`)}},{key:"strong",value:function(e){var t=e.tokens;return"<strong>".concat(this.parser.parseInline(t),"</strong>")}},{key:"em",value:function(e){var t=e.tokens;return"<em>".concat(this.parser.parseInline(t),"</em>")}},{key:"codespan",value:function(e){var t=e.text;return"<code>".concat(nr(t,!0),"</code>")}},{key:"br",value:function(e){return"<br>"}},{key:"del",value:function(e){var t=e.tokens;return"<del>".concat(this.parser.parseInline(t),"</del>")}},{key:"link",value:function(e){var t=e.href,n=e.title,r=e.tokens,u=this.parser.parseInline(r),a=Yf(t);if(a===null)return u;var i='<a href="'+(t=a)+'"';return n&&(i+=' title="'+nr(n)+'"'),i+">"+u+"</a>"}},{key:"image",value:function(e){var t=e.href,n=e.title,r=e.text,u=e.tokens;u&&(r=this.parser.parseInline(u,this.parser.textRenderer));var a=Yf(t);if(a===null)return nr(r);var i='<img src="'.concat(t=a,'" alt="').concat(r,'"');return n&&(i+=' title="'.concat(nr(n),'"')),i+">"}},{key:"text",value:function(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:nr(e.text)}}]),Ts=Pe(function e(){Be(this,e)},[{key:"strong",value:function(e){return e.text}},{key:"em",value:function(e){return e.text}},{key:"codespan",value:function(e){return e.text}},{key:"del",value:function(e){return e.text}},{key:"html",value:function(e){return e.text}},{key:"text",value:function(e){return e.text}},{key:"link",value:function(e){return""+e.text}},{key:"image",value:function(e){return""+e.text}},{key:"br",value:function(){return""}}]),Wn=(function(){function e(t){Be(this,e),lt(this,"options",void 0),lt(this,"renderer",void 0),lt(this,"textRenderer",void 0),this.options=t||hu,this.options.renderer=this.options.renderer||new Mi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ts}return Pe(e,[{key:"parse",value:function(t){for(var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r="",u=0;u<t.length;u++){var a,i=t[u];if((a=this.options.extensions)!==null&&a!==void 0&&(a=a.renderers)!==null&&a!==void 0&&a[i.type]){var o=i,c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){r+=c||"";continue}}var l=i;switch(l.type){case"space":r+=this.renderer.space(l);continue;case"hr":r+=this.renderer.hr(l);continue;case"heading":r+=this.renderer.heading(l);continue;case"code":r+=this.renderer.code(l);continue;case"table":r+=this.renderer.table(l);continue;case"blockquote":r+=this.renderer.blockquote(l);continue;case"list":r+=this.renderer.list(l);continue;case"html":r+=this.renderer.html(l);continue;case"def":r+=this.renderer.def(l);continue;case"paragraph":r+=this.renderer.paragraph(l);continue;case"text":for(var p=l,m=this.renderer.text(p);u+1<t.length&&t[u+1].type==="text";)p=t[++u],m+=`
|
|
83
|
+
`+this.renderer.text(p);r+=n?this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):m;continue;default:var v='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}return r}},{key:"parseInline",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.renderer,r="",u=0;u<t.length;u++){var a,i=t[u];if((a=this.options.extensions)!==null&&a!==void 0&&(a=a.renderers)!==null&&a!==void 0&&a[i.type]){var o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=o||"";continue}}var c=i;switch(c.type){case"escape":case"text":r+=n.text(c);break;case"html":r+=n.html(c);break;case"link":r+=n.link(c);break;case"image":r+=n.image(c);break;case"strong":r+=n.strong(c);break;case"em":r+=n.em(c);break;case"codespan":r+=n.codespan(c);break;case"br":r+=n.br(c);break;case"del":r+=n.del(c);break;default:var l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}return r}}],[{key:"parse",value:function(t,n){return new e(n).parse(t)}},{key:"parseInline",value:function(t,n){return new e(n).parseInline(t)}}])})(),Za=(Pi=Pe(function e(t){Be(this,e),lt(this,"options",void 0),lt(this,"block",void 0),this.options=t||hu},[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}},{key:"processAllTokens",value:function(e){return e}},{key:"emStrongMask",value:function(e){return e}},{key:"provideLexer",value:function(){return this.block?Un.lex:Un.lexInline}},{key:"provideParser",value:function(){return this.block?Wn.parse:Wn.parseInline}}]),lt(Pi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),lt(Pi,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Pi),Qm=Pe(function e(){Be(this,e),lt(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),lt(this,"options",this.setOptions),lt(this,"parse",this.parseMarkdown(!0)),lt(this,"parseInline",this.parseMarkdown(!1)),lt(this,"Parser",Wn),lt(this,"Renderer",Mi),lt(this,"TextRenderer",Ts),lt(this,"Lexer",Un),lt(this,"Tokenizer",Li),lt(this,"Hooks",Za),this.use.apply(this,arguments)},[{key:"walkTokens",value:function(e,t){var n,r=this,u=[],a=ye(e);try{var i=function(){var o=n.value;switch(u=u.concat(t.call(r,o)),o.type){case"table":var c,l=o,p=ye(l.header);try{for(p.s();!(c=p.n()).done;){var m=c.value;u=u.concat(r.walkTokens(m.tokens,t))}}catch(S){p.e(S)}finally{p.f()}var v,y=ye(l.rows);try{for(y.s();!(v=y.n()).done;){var F,D=ye(v.value);try{for(D.s();!(F=D.n()).done;){var _=F.value;u=u.concat(r.walkTokens(_.tokens,t))}}catch(S){D.e(S)}finally{D.f()}}}catch(S){y.e(S)}finally{y.f()}break;case"list":var O=o;u=u.concat(r.walkTokens(O.items,t));break;default:var w,x=o;(w=r.defaults.extensions)!==null&&w!==void 0&&(w=w.childTokens)!==null&&w!==void 0&&w[x.type]?r.defaults.extensions.childTokens[x.type].forEach(function(S){var T=x[S].flat(1/0);u=u.concat(r.walkTokens(T,t))}):x.tokens&&(u=u.concat(r.walkTokens(x.tokens,t)))}};for(a.s();!(n=a.n()).done;)i()}catch(o){a.e(o)}finally{a.f()}return u}},{key:"use",value:function(){for(var e=this,t=this.defaults.extensions||{renderers:{},childTokens:{}},n=arguments.length,r=new Array(n),u=0;u<n;u++)r[u]=arguments[u];return r.forEach(function(a){var i=C({},a);if(i.async=e.defaults.async||i.async||!1,a.extensions&&(a.extensions.forEach(function(w){if(!w.name)throw new Error("extension name required");if("renderer"in w){var x=t.renderers[w.name];t.renderers[w.name]=x?function(){for(var T=arguments.length,I=new Array(T),B=0;B<T;B++)I[B]=arguments[B];var d=w.renderer.apply(this,I);return d===!1&&(d=x.apply(this,I)),d}:w.renderer}if("tokenizer"in w){if(!w.level||w.level!=="block"&&w.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");var S=t[w.level];S?S.unshift(w.tokenizer):t[w.level]=[w.tokenizer],w.start&&(w.level==="block"?t.startBlock?t.startBlock.push(w.start):t.startBlock=[w.start]:w.level==="inline"&&(t.startInline?t.startInline.push(w.start):t.startInline=[w.start]))}"childTokens"in w&&w.childTokens&&(t.childTokens[w.name]=w.childTokens)}),i.extensions=t),a.renderer){var o=e.defaults.renderer||new Mi(e.defaults),c=function(){if(!(l in o))throw new Error("renderer '".concat(l,"' does not exist"));if(["options","parser"].includes(l))return 1;var w=l,x=a.renderer[w],S=o[w];o[w]=function(){for(var T=arguments.length,I=new Array(T),B=0;B<T;B++)I[B]=arguments[B];var d=x.apply(o,I);return d===!1&&(d=S.apply(o,I)),d||""}};for(var l in a.renderer)c();i.renderer=o}if(a.tokenizer){var p=e.defaults.tokenizer||new Li(e.defaults),m=function(){if(!(v in p))throw new Error("tokenizer '".concat(v,"' does not exist"));if(["options","rules","lexer"].includes(v))return 1;var w=v,x=a.tokenizer[w],S=p[w];p[w]=function(){for(var T=arguments.length,I=new Array(T),B=0;B<T;B++)I[B]=arguments[B];var d=x.apply(p,I);return d===!1&&(d=S.apply(p,I)),d}};for(var v in a.tokenizer)m();i.tokenizer=p}if(a.hooks){var y=e.defaults.hooks||new Za,F=function(w){if(!(w in y))throw new Error("hook '".concat(w,"' does not exist"));if(["options","block"].includes(w))return 1;var x=w,S=a.hooks[x],T=y[x];Za.passThroughHooks.has(w)?y[x]=function(I){if(e.defaults.async&&Za.passThroughHooksRespectAsync.has(w))return Xe(Ae().m(function d(){var H;return Ae().w(function(R){for(;;)switch(R.n){case 0:return R.n=1,S.call(y,I);case 1:return H=R.v,R.a(2,T.call(y,H))}},d)}))();var B=S.call(y,I);return T.call(y,B)}:y[x]=function(){for(var I=arguments.length,B=new Array(I),d=0;d<I;d++)B[d]=arguments[d];if(e.defaults.async)return Xe(Ae().m(function R(){var Z;return Ae().w(function(q){for(;;)switch(q.n){case 0:return q.n=1,S.apply(y,B);case 1:if((Z=q.v)!==!1){q.n=3;break}return q.n=2,T.apply(y,B);case 2:Z=q.v;case 3:return q.a(2,Z)}},R)}))();var H=S.apply(y,B);return H===!1&&(H=T.apply(y,B)),H}};for(var D in a.hooks)F(D);i.hooks=y}if(a.walkTokens){var _=e.defaults.walkTokens,O=a.walkTokens;i.walkTokens=function(w){var x=[];return x.push(O.call(this,w)),_&&(x=x.concat(_.call(this,w))),x}}e.defaults=C(C({},e.defaults),i)}),this}},{key:"setOptions",value:function(e){return this.defaults=C(C({},this.defaults),e),this}},{key:"lexer",value:function(e,t){return Un.lex(e,t!=null?t:this.defaults)}},{key:"parser",value:function(e,t){return Wn.parse(e,t!=null?t:this.defaults)}},{key:"parseMarkdown",value:function(e){var t=this;return function(n,r){var u=C({},r),a=C(C({},t.defaults),u),i=t.onError(!!a.silent,!!a.async);if(t.defaults.async===!0&&u.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(Qt(n)>"u"||n===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return Xe(Ae().m(function l(){var p,m,v,y,F,D,_,O,w,x,S;return Ae().w(function(T){for(;;)switch(T.n){case 0:if(!a.hooks){T.n=2;break}return T.n=1,a.hooks.preprocess(n);case 1:F=T.v,T.n=3;break;case 2:F=n;case 3:if(p=F,!a.hooks){T.n=5;break}return T.n=4,a.hooks.provideLexer();case 4:D=T.v,T.n=6;break;case 5:D=e?Un.lex:Un.lexInline;case 6:return _=D,T.n=7,_(p,a);case 7:if(m=T.v,!a.hooks){T.n=9;break}return T.n=8,a.hooks.processAllTokens(m);case 8:O=T.v,T.n=10;break;case 9:O=m;case 10:if(v=O,!a.walkTokens){T.n=11;break}return T.n=11,Promise.all(t.walkTokens(v,a.walkTokens));case 11:if(!a.hooks){T.n=13;break}return T.n=12,a.hooks.provideParser();case 12:w=T.v,T.n=14;break;case 13:w=e?Wn.parse:Wn.parseInline;case 14:return x=w,T.n=15,x(v,a);case 15:if(y=T.v,!a.hooks){T.n=17;break}return T.n=16,a.hooks.postprocess(y);case 16:S=T.v,T.n=18;break;case 17:S=y;case 18:return T.a(2,S)}},l)}))().catch(i);try{a.hooks&&(n=a.hooks.preprocess(n));var o=(a.hooks?a.hooks.provideLexer():e?Un.lex:Un.lexInline)(n,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&t.walkTokens(o,a.walkTokens);var c=(a.hooks?a.hooks.provideParser():e?Wn.parse:Wn.parseInline)(o,a);return a.hooks&&(c=a.hooks.postprocess(c)),c}catch(l){return i(l)}}}},{key:"onError",value:function(e,t){return function(n){if(n.message+=`
|
|
84
|
+
Please report this to https://github.com/markedjs/marked.`,e){var r="<p>An error occurred:</p><pre>"+nr(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}}]),Mr=new Qm;function bt(e,t){return Mr.parse(e,t)}function $i(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}bt.options=bt.setOptions=function(e){return Mr.setOptions(e),bt.defaults=Mr.defaults,zf(bt.defaults),bt},bt.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},bt.defaults=hu,bt.use=function(){return Mr.use.apply(Mr,arguments),bt.defaults=Mr.defaults,zf(bt.defaults),bt},bt.walkTokens=function(e,t){return Mr.walkTokens(e,t)},bt.parseInline=Mr.parseInline,bt.Parser=Wn,bt.parser=Wn.parse,bt.Renderer=Mi,bt.TextRenderer=Ts,bt.Lexer=Un,bt.lexer=Un.lex,bt.Tokenizer=Li,bt.Hooks=Za,bt.parse=bt,bt.options,bt.setOptions,bt.use,bt.walkTokens,bt.parseInline,Wn.parse,Un.lex;var Os=new bt.Renderer;Os.code=function(e){var t=e.text,n=e.lang,r=n===void 0?"":n,u=e.escaped,a=r?"language-".concat(r):"",i=u?t:$i(t),o=encodeURIComponent(t);return`
|
|
85
|
+
<div class="DocSearch-CodeSnippet">
|
|
86
|
+
<button class="DocSearch-CodeSnippet-CopyButton" data-code="`.concat(o,'" aria-label="copy code">').concat('<svg class="DocSearch-CodeSnippet-CopyIcon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" /><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></svg>').concat('<svg class="DocSearch-CodeSnippet-CheckIcon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5" /></svg>',`<span class="DocSearch-CodeSnippet-CopyButton-Label"></span></button>
|
|
87
|
+
<pre><code class="`).concat(a,'">').concat(i,`</code></pre>
|
|
88
|
+
</div>
|
|
89
|
+
`)},Os.link=function(e){var t=e.href,n=e.title,r=e.text,u=n?' title="'.concat($i(n),'"'):"",a=t?$i(t):"",i=$i(r);return'<a href="'.concat(a,'"').concat(u,' target="_blank" rel="noopener noreferrer">').concat(i,"</a>")};var Zi=wl(function(e){var t=e.content,n=e.copyButtonText,r=e.copyButtonCopiedText,u=e.isStreaming,a=On(function(){return bt.parse(t,{gfm:!0,breaks:!0,renderer:Os})},[t]),i=Iu(null);return qn(function(){var o=i.current;if(o)return Array.from(o.querySelectorAll(".DocSearch-CodeSnippet-CopyButton")).forEach(function(l){var p=l.querySelector(".DocSearch-CodeSnippet-CopyButton-Label");p&&(p.textContent=n),l.classList.remove("DocSearch-CodeSnippet-CopyButton--copied")}),o.addEventListener("click",c),function(){o.removeEventListener("click",c)};function c(l){var p,m=l.target.closest(".DocSearch-CodeSnippet-CopyButton");if(m){var v=(p=m.getAttribute("data-code"))!==null&&p!==void 0?p:"";navigator.clipboard.writeText(decodeURIComponent(v)).catch(function(){});var y=m.querySelector(".DocSearch-CodeSnippet-CopyButton-Label");if(y){m.classList.add("DocSearch-CodeSnippet-CopyButton--copied");var F=n;y.textContent=r,setTimeout(function(){m.classList.remove("DocSearch-CodeSnippet-CopyButton--copied"),y.textContent=F},1500)}}}},[a,n,r]),b.createElement("div",{ref:i,className:"DocSearch-Markdown-Content ".concat(u?"DocSearch-Markdown-Content--streaming":""),dangerouslySetInnerHTML:{__html:a}})});function Ym(e){var t=e.part,n=e.translations,r=e.onSearchQueryClick,u=n.searchingText,a=n.preToolCallText,i=n.toolCallResultText;switch(t.state){case"input-streaming":return b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--PartialCall shimmer"},b.createElement(Na,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}),b.createElement("span",null,u));case"input-available":return b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--Call shimmer"},b.createElement(Na,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}),b.createElement("span",null,a," ",'"'.concat(t.input.query||"",'" ...')));case"output-available":var o,c=t.type==="tool-searchIndex"?t.output.query:t.input.query,l=t.type==="tool-searchIndex"?(o=t.output.hits)===null||o===void 0?void 0:o.length:t.output.nbHits;return b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--Result"},b.createElement(ya,null),b.createElement("span",null,i," ",r?b.createElement("span",{role:"button",tabIndex:0,className:"DocSearch-AskAiScreen-MessageContent-Tool-Query",onKeyDown:function(p){p.key!=="Enter"&&p.key!==" "||(p.preventDefault(),r(c||""))},onClick:function(){return r(c||"")}}," ",'"',c||"",'"'):b.createElement("span",{className:"DocSearch-AskAiScreen-MessageContent-Tool-Query"},' "',c||"",'"')," ","found ",l||0," results"));default:return null}}function td(e){return e.replace(/<[^>]*>/g,"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}Zi.displayName="MemoizedMarkdown";var Xm=function(e,t){var n=t[0].parts.find(function(u){return u.type==="text"}),r=n!=null&&n.text?td(n.text):"";return{query:e,objectID:r,messages:t,type:"askAI",anchor:"stored",content:null,hierarchy:{lvl0:"askAI",lvl1:r,lvl2:null,lvl3:null,lvl4:null,lvl5:null,lvl6:null},url:"",url_without_anchor:""}},nd=function(e){return e==null?void 0:e.parts.find(function(t){return t.type==="text"})};function Is(e){var t;return e&&((t=e.message)===null||t===void 0?void 0:t.includes("AI-217"))||!1}var e0=["translations"];function t0(e){var t=e.disclaimerText;return b.createElement("p",{className:"DocSearch-AskAiScreen-Disclaimer"},t)}function n0(e){var t,n,r,u=e.exchange,a=e.askAiError,i=e.isLastExchange,o=e.loadingStatus,c=e.onSearchQueryClick,l=e.translations,p=e.conversations,m=e.onFeedback,v=e.agentStudio,y=u.userMessage,F=u.assistantMessage,D=l.stoppedStreamingText,_=D===void 0?"You stopped this response":D,O=l.errorTitleText,w=O===void 0?"Chat error":O,x=l.preToolCallText,S=x===void 0?"Searching...":x,T=l.afterToolCallText,I=T===void 0?"Searched for":T,B=l.duringToolCallText,d=B===void 0?"Searching...":B,H=Is(a),R=On(function(){return nd(F)},[F]),Z=On(function(){return nd(y)},[y]),q=b.useMemo(function(){return $=F,Y=[],re=new Set,$?($.parts.forEach(function(me){if(me.type==="text"&&me.text.length!==0){var se,K=me.text.replace(/```[\s\S]*?```/g,"").replace(/`[^`]*`/g,""),V=ye(K.matchAll(/\[([^\]]*)\]\(([^)]+)\)/g));try{for(V.s();!(se=V.n()).done;){var ue=se.value,oe=ue[1].trim(),ce=ue[2];re.has(ce)||(re.add(ce),Y.push({url:ce,title:oe||void 0}))}}catch(Re){V.e(Re)}finally{V.f()}var ee,he=ye(K.matchAll(new RegExp('(?<!\\]\\()https?:\\/\\/[^\\s<>"{}|\\\\^`[\\]]+',"g")));try{for(he.s();!(ee=he.n()).done;){var Ce=ee.value[0].replace(/[.,;:!?]+$/,"");re.has(Ce)||(re.add(Ce),Y.push({url:Ce}))}}catch(Re){he.e(Re)}finally{he.f()}}}),Y):[];var $,Y,re},[F]),G=b.useMemo(function(){return(function($){for(var Y=[],re=0;re<$.length;re++){var me=$[re];if(me.type==="tool-searchIndex"&&me.state==="output-available"){for(var se=[],K=re;K<$.length;){var V=$[K];if(V.type!=="tool-searchIndex"||V.state!=="output-available")break;var ue,oe,ce=((ue=(oe=V.output)===null||oe===void 0?void 0:oe.query)!==null&&ue!==void 0?ue:"").trim();ce&&ce.length>0&&se.push(ce),K++}se.length>1?Y.push({type:"aggregated-tool-call",queries:se}):se.length===1&&Y.push(me),re=K-1}else Y.push(me)}return Y})((F==null?void 0:F.parts)||[])},[F]),L=((t=y.metadata)===null||t===void 0?void 0:t.stopped)||(F==null||(n=F.metadata)===null||n===void 0?void 0:n.stopped),ne=!L&&(!i||i&&o==="ready"&&!!F),Q=["submitted","streaming"].includes(o)&&i&&!G.some(function($){return $.type!=="step-start"});return b.createElement("div",{className:"DocSearch-AskAiScreen-Response-Container"},b.createElement("div",{className:"DocSearch-AskAiScreen-Response"},b.createElement("div",{className:"DocSearch-AskAiScreen-Message DocSearch-AskAiScreen-Message--user"},b.createElement("p",{className:"DocSearch-AskAiScreen-Query"},(r=Z==null?void 0:Z.text)!==null&&r!==void 0?r:"")),b.createElement("div",{className:"DocSearch-AskAiScreen-Message DocSearch-AskAiScreen-Message--assistant"},b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent"},o==="error"&&a&&i&&!H&&b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent DocSearch-AskAiScreen-Error"},b.createElement(vm,null),b.createElement("div",{className:"DocSearch-AskAiScreen-Error-Content"},b.createElement("h4",{className:"DocSearch-AskAiScreen-Error-Title"},w),b.createElement(Zi,{content:a.message,copyButtonText:"",copyButtonCopiedText:"",isStreaming:!1}))),Q&&b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Reasoning"},b.createElement("span",{className:"shimmer"},l.thinkingText||"Thinking...")),G.map(function($,Y){var re=Y;return typeof $=="string"?b.createElement(Zi,{key:re,content:$,copyButtonText:l.copyButtonText||"Copy",copyButtonCopiedText:l.copyButtonCopiedText||"Copied!",isStreaming:o==="streaming"}):$.type==="aggregated-tool-call"?b.createElement(Sm,{key:re,queries:$.queries,translations:l,onSearchQueryClick:c}):$.type==="reasoning"&&$.state==="streaming"?b.createElement("div",{key:re,className:"DocSearch-AskAiScreen-MessageContent-Reasoning shimmer"},b.createElement(Na,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}),b.createElement("span",{className:"shimmer"},"Reasoning...")):$.type==="text"?b.createElement(Zi,{key:re,content:$.text,copyButtonText:l.copyButtonText||"Copy",copyButtonCopiedText:l.copyButtonCopiedText||"Copied!",isStreaming:$.state==="streaming"}):$.type==="tool-searchIndex"||$.type==="tool-algolia_search_index"?b.createElement(Ym,{key:re,translations:{preToolCallText:S,searchingText:d,toolCallResultText:I},part:$,onSearchQueryClick:c}):null})),L&&b.createElement("p",{className:"DocSearck-AskAiScreen-MessageContent-Stopped"},_)),b.createElement("div",{className:"DocSearch-AskAiScreen-Answer-Footer"},b.createElement(r0,{id:(y==null?void 0:y.id)||u.id,showActions:ne,latestAssistantMessageContent:(R==null?void 0:R.text)||null,translations:l,conversations:p,agentStudio:v,onFeedback:m}))),q.length>0?b.createElement(u0,{urlsToDisplay:q,relatedSourcesText:l.relatedSourcesText}):null)}function r0(e){var t=e.id,n=e.showActions,r=e.latestAssistantMessageContent,u=e.translations,a=e.conversations,i=e.onFeedback,o=e.agentStudio,c=b.useMemo(function(){var H,R,Z=(H=a.getOne)===null||H===void 0?void 0:H.call(a,t);return(R=Z==null?void 0:Z.feedback)!==null&&R!==void 0?R:null},[a,t]),l=dt(b.useState(c),2),p=l[0],m=l[1],v=dt(b.useState(!1),2),y=v[0],F=v[1],D=dt(b.useState(null),2),_=D[0],O=D[1],w=(function(){var H=Xe(Ae().m(function R(Z){var q;return Ae().w(function(G){for(;;)switch(G.p=G.n){case 0:if(!y){G.n=1;break}return G.a(2);case 1:return O(null),F(!0),G.p=2,G.n=3,i==null?void 0:i(t,Z==="like"?1:0);case 3:m(Z),G.n=5;break;case 4:G.p=4,q=G.v,O(q);case 5:return G.p=5,F(!1),G.f(5);case 6:return G.a(2)}},R,null,[[2,4,5,6]])}));return function(R){return H.apply(this,arguments)}})(),x=u.likeButtonTitle,S=x===void 0?"Like":x,T=u.dislikeButtonTitle,I=T===void 0?"Dislike":T,B=u.thanksForFeedbackText,d=B===void 0?"Thanks for your feedback!":B;return n&&r?b.createElement("div",{className:"DocSearch-AskAiScreen-Actions"},!o&&(p===null?b.createElement(b.Fragment,null,y?b.createElement(Na,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}):b.createElement(b.Fragment,null,b.createElement(s0,{title:S,onClick:function(){return w("like")}}),b.createElement(c0,{title:I,onClick:function(){return w("dislike")}})),_&&b.createElement("p",{className:"DocSearch-AskAiScreen-FeedbackText"},_.message||"An error occured")):b.createElement("p",{className:"DocSearch-AskAiScreen-FeedbackText DocSearch-AskAiScreen-FeedbackText--visible"},d)),b.createElement(o0,{translations:u,onClick:function(){return navigator.clipboard.writeText(r)}})):null}function u0(e){var t=e.urlsToDisplay,n=e.relatedSourcesText;return b.createElement("div",{className:"DocSearch-AskAiScreen-RelatedSources"},b.createElement("p",{className:"DocSearch-AskAiScreen-RelatedSources-Title"},n||"Related sources"),b.createElement("div",{className:"DocSearch-AskAiScreen-RelatedSources-List"},t.length>0&&t.map(function(r){return b.createElement("a",{key:r.url,href:r.url,className:"DocSearch-AskAiScreen-RelatedSources-Item-Link",target:"_blank",rel:"noopener noreferrer"},b.createElement(i0,null),b.createElement("span",null,r.title||r.url))})))}function a0(e){var t=e.translations,n=t===void 0?{}:t,r=an(e,e0),u=n.disclaimerText,a=u===void 0?"Answers are generated with AI which can make mistakes. Verify responses.":u,i=n.threadDepthExceededMessage,o=i===void 0?"This conversation is now closed to keep responses accurate.":i,c=n.startNewConversationButtonText,l=c===void 0?"Start a new conversation":c,p=r.messages,m=r.askAiError,v=r.status,y=On(function(){return v==="error"&&Is(m)},[v,m]),F=On(function(){for(var O=[],w=0;w<p.length;w++)if(p[w].role==="user"){var x,S=p[w],T=((x=p[w+1])===null||x===void 0?void 0:x.role)==="assistant"?p[w+1]:null;O.push({id:S.id,userMessage:S,assistantMessage:T}),T&&w++}return y&&O.length>0&&(O[O.length-1].assistantMessage||O.pop()),O},[p,y]),D=function(O){r.onAskAiToggle(!1),r.setQuery(O)},_=y&&p.some(function(O){return O.role==="assistant"});return b.createElement("div",{className:"DocSearch-AskAiScreen DocSearch-AskAiScreen-Container"},_&&b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent DocSearch-AskAiScreen-Error DocSearch-AskAiScreen-Error--ThreadDepth"},b.createElement("div",{className:"DocSearch-AskAiScreen-Error-Content"},b.createElement("p",null,o," ",b.createElement("button",{type:"button",className:"DocSearch-ThreadDepthError-Link",onClick:r.onNewConversation},l)," ","to continue."))),b.createElement(t0,{disclaimerText:a}),b.createElement("div",{className:"DocSearch-AskAiScreen-Body"},b.createElement("div",{className:"DocSearch-AskAiScreen-ExchangesList"},F.slice().reverse().map(function(O,w){return b.createElement(n0,{key:O.id,exchange:O,askAiError:r.askAiError,isLastExchange:w===0,loadingStatus:r.status,translations:n,conversations:r.conversations,agentStudio:r.agentStudio,onSearchQueryClick:D,onFeedback:r.onFeedback})}))))}function i0(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),b.createElement("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),b.createElement("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),b.createElement("line",{x1:"16",x2:"14",y1:"3",y2:"21"}))}function o0(e){var t=e.onClick,n=e.translations,r=n.copyButtonTitle,u=r===void 0?"Copy":r,a=n.copyButtonCopiedText,i=a===void 0?"Copied!":a,o=dt(su(!1),2),c=o[0],l=o[1];return qn(function(){if(c){var p=setTimeout(function(){l(!1)},1500);return function(){return clearTimeout(p)}}},[c]),b.createElement("button",{type:"button",className:"DocSearch-AskAiScreen-ActionButton DocSearch-AskAiScreen-CopyButton ".concat(c?"DocSearch-AskAiScreen-CopyButton--copied":""),disabled:c,title:c?i:u,onClick:function(){t(),l(!0)}},c?b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-check-icon lucide-check"},b.createElement("path",{d:"M20 6 9 17l-5-5"})):b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-copy-icon lucide-copy"},b.createElement("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),b.createElement("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})))}function s0(e){var t=e.title,n=e.onClick;return b.createElement("button",{type:"button",className:"DocSearch-AskAiScreen-ActionButton DocSearch-AskAiScreen-LikeButton",title:t,onClick:n},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-thumbs-up-icon lucide-thumbs-up"},b.createElement("path",{d:"M7 10v12"}),b.createElement("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"})))}function c0(e){var t=e.title,n=e.onClick;return b.createElement("button",{type:"button",className:"DocSearch-AskAiScreen-ActionButton DocSearch-AskAiScreen-DislikeButton",title:t,onClick:n},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-thumbs-down-icon lucide-thumbs-down"},b.createElement("path",{d:"M17 14V2"}),b.createElement("path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"})))}var l0=["hit","attribute","tagName"];function rd(e,t){return t.split(".").reduce(function(n,r){return n!=null&&n[r]?n[r]:null},e)}function Lu(e){var t=e.hit,n=e.attribute,r=e.tagName;return kn(r===void 0?"span":r,C(C({},an(e,l0)),{},{dangerouslySetInnerHTML:{__html:rd(t,"_snippetResult.".concat(n,".value"))||rd(t,n)}}))}var f0=["item","getItemProps","onItemClick","translations","collection"];function qa(e){var t=b.useMemo(function(){return e.title?e.title.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):null},[e.title]);return e.collection&&e.collection.items.length!==0?e.collection.source.sourceId==="askAI"?b.createElement("section",{className:"DocSearch-AskAi-Section"},b.createElement("ul",e.getListProps({source:e.collection.source}),b.createElement(p0,Tt({item:e.collection.items[0],translations:e.translations},e)))):(e.collection.source.sourceId,b.createElement("section",{className:"DocSearch-Hits"},b.createElement("div",{className:"DocSearch-Hit-source"},t),b.createElement("ul",e.getListProps({source:e.collection.source}),e.collection.items.map(function(n,r){return b.createElement(d0,Tt({key:[e.title,n.objectID].join(":"),item:n,index:r},e))})))):null}function d0(e){var t=e.item,n=e.index,r=e.renderIcon,u=e.renderAction,a=e.getItemProps,i=e.onItemClick,o=e.collection,c=e.hitComponent;return b.createElement("li",Tt({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child"].filter(Boolean).join(" ")},a({item:t,source:o.source,onClick:function(l){i(t,l)}})),b.createElement(c,{hit:t},b.createElement("div",{className:"DocSearch-Hit-Container"},r({item:t,index:n}),t.hierarchy[t.type]&&t.type==="lvl1"&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(Lu,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&b.createElement(Lu,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t.type==="askAI"&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement("span",{className:"DocSearch-Hit-title"},td(t.hierarchy.lvl1||""))),t.hierarchy[t.type]&&(t.type==="lvl2"||t.type==="lvl3"||t.type==="lvl4"||t.type==="lvl5"||t.type==="lvl6")&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(Lu,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),b.createElement(Lu,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),t.type==="content"&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(Lu,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),b.createElement(Lu,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),u({item:t}))))}function p0(e){var t=e.item,n=e.getItemProps,r=e.onItemClick,u=e.translations,a=e.collection,i=an(e,f0),o=u||{},c=o.askAiPlaceholder,l=c===void 0?"Ask AI: ":c,p=o.noResultsAskAiPlaceholder,m=p===void 0?"Didn't find it in the docs? Ask AI to help: ":p,v=i.state.collections.length===1?m:l;return b.createElement("li",Tt({className:"DocSearch-Hit"},n({item:t,source:a.source,onClick:function(y){r(t,y)}})),b.createElement("div",{className:"DocSearch-Hit--AskAI"},b.createElement("div",{className:"DocSearch-Hit-AskAIButton DocSearch-Hit-Container"},b.createElement("div",{className:" DocSearch-Hit-AskAIButton-icon DocSearch-Hit-icon"},b.createElement(As,null)),b.createElement("div",{className:"DocSearch-Hit-AskAIButton-title"},b.createElement("span",{className:"DocSearch-Hit-AskAIButton-title-highlight"},v),b.createElement("mark",{className:"DocSearch-Hit-AskAIButton-title-query"},String(t.query||""))))))}var h0=["onAskAiToggle"];function v0(e){var t=e.onAskAiToggle,n=an(e,h0),r=b.useMemo(function(){return n.state.collections[2]},[n.state]);return b.useEffect(function(){r&&r.items.length!==0||t(!0)},[r,t]),b.createElement("div",{className:"DocSearch-Dropdown-Container DocSearch-Conversation-History"},b.createElement(qa,Tt({},n,{key:r.source.sourceId,title:"",translations:n.translations,collection:r,renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(As,null))},renderAction:function(u){var a=u.item;return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{type:"button",className:"DocSearch-Hit-action-button",onClick:function(i){i.preventDefault(),i.stopPropagation(),n.conversations.remove(a),n.refresh()}},b.createElement(Ra,null)))}})))}function m0(e){var t=e.translations,n=t===void 0?{}:t,r=n.titleText,u=r===void 0?"Unable to fetch results":r,a=n.helpText,i=a===void 0?"You might want to check your network connection.":a;return b.createElement("div",{className:"DocSearch-ErrorScreen"},b.createElement("div",{className:"DocSearch-Screen-Icon"},b.createElement(Em,null)),b.createElement("p",{className:"DocSearch-Title"},u),b.createElement("p",{className:"DocSearch-Help"},i))}function g0(e){var t=e.translations,n=t===void 0?{}:t,r=e.suggestedQuestions,u=r===void 0?[]:r,a=e.selectSuggestedQuestion,i=n.newConversationTitle,o=i===void 0?"How can I help you today?":i,c=n.newConversationDescription,l=c===void 0?"I search through your documentation to help you find setup guides, feature details and troubleshooting tips, fast.":c;return b.createElement("div",{className:"DocSearch-NewConversationScreen"},b.createElement("h3",{className:"DocSearch-NewConversationScreen-Title"},o),b.createElement("p",{className:"DocSearch-NewConversationScreen-Description"},l),b.createElement("div",{className:"DocSearch-NewConversationScreen-SuggestedQuestions"},u.map(function(p){return b.createElement("button",{key:p.objectID,type:"button",className:"DocSearch-NewConversationScreen-SuggestedQuestion",onClick:function(){return a(p)}},p.question)})))}var y0=["translations"];function ud(e){var t=e.translations,n=t===void 0?{}:t,r=an(e,y0),u=n.noResultsText,a=u===void 0?"No results found for":u,i=n.suggestedQueryText,o=i===void 0?"Try searching for":i,c=n.reportMissingResultsText,l=c===void 0?"Believe this query should return results?":c,p=n.reportMissingResultsLinkText,m=p===void 0?"Let us know.":p,v=r.state.context.searchSuggestions;return b.createElement("div",{className:"DocSearch-NoResults ".concat(r.canHandleAskAi?"DocSearch-NoResults--withAskAi":"")},b.createElement("div",{className:"DocSearch-Screen-Icon"},b.createElement(Fm,null)),b.createElement("p",{className:"DocSearch-Title"},a,' "',b.createElement("strong",null,r.state.query),'"'),v&&v.length>0&&b.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},b.createElement("p",{className:"DocSearch-Help"},o,":"),b.createElement("div",{className:"DocSearch-NoResults-Prefill-List-Items"},v.slice(0,3).reduce(function(y,F){return[].concat(be(y),[b.createElement("p",{key:F},b.createElement(ya,{size:16}),b.createElement("button",{className:"DocSearch-Prefill",key:F,type:"button",onClick:function(){r.setQuery(F.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},F))])},[]))),r.getMissingResultsUrl&&b.createElement("p",{className:"DocSearch-Help"},"".concat(l," "),b.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},m)))}var D0=["translations"];function b0(e){var t=e.translations,n=t===void 0?{}:t,r=an(e,D0);return b.createElement("div",{className:"DocSearch-Dropdown-Container"},r.state.collections.map(function(u){if(u.items.length===0)return null;var a=Xl(u.items[0]);return b.createElement(qa,Tt({},r,{key:u.source.sourceId,translations:n,title:a,collection:u,renderIcon:function(i){var o,c=i.item,l=i.index;return b.createElement(b.Fragment,null,c.__docsearch_parent&&b.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},b.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},c.__docsearch_parent!==((o=u.items[l+1])===null||o===void 0?void 0:o.__docsearch_parent)?b.createElement("path",{d:"M8 6v21M20 27H8.3"}):b.createElement("path",{d:"M8 6v42M20 27H8.3"}))),b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(ym,{type:c.type})))},renderAction:function(){return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement(mm,null))}}))}),r.resultsFooterComponent&&b.createElement("section",{className:"DocSearch-HitsFooter"},b.createElement(r.resultsFooterComponent,{state:r.state})))}var A0=["translations"];function E0(e){var t=e.translations,n=t===void 0?{}:t,r=an(e,A0),u=n.recentSearchesTitle,a=u===void 0?"Recent":u,i=n.saveRecentSearchButtonTitle,o=i===void 0?"Save this search":i,c=n.removeRecentSearchButtonTitle,l=c===void 0?"Remove this search from history":c,p=n.favoriteSearchesTitle,m=p===void 0?"Favorite":p,v=n.removeFavoriteSearchButtonTitle,y=v===void 0?"Remove this search from favorites":v,F=n.recentConversationsTitle,D=F===void 0?"Recent conversations":F,_=n.removeRecentConversationButtonTitle,O=_===void 0?"Remove this conversation from history":_;return b.createElement("div",{className:"DocSearch-Dropdown-Container"},b.createElement(qa,Tt({},r,{title:a,collection:r.state.collections[0],renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(hm,null))},renderAction:function(w){var x=w.item;return b.createElement(b.Fragment,null,b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:o,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),r.favoriteSearches.add(x),r.recentSearches.remove(x),r.refresh()}},b.createElement(Rf,null))),b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:l,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),r.recentSearches.remove(x),r.refresh()}},b.createElement(Ra,null))))}})),b.createElement(qa,Tt({},r,{title:m,collection:r.state.collections[1],renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(Rf,null))},renderAction:function(w){var x=w.item;return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:y,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),r.favoriteSearches.remove(x),r.refresh()}},b.createElement(Ra,null)))}})),b.createElement(qa,Tt({},r,{title:D,collection:r.state.collections[2],renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(As,null))},renderAction:function(w){var x=w.item;return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:O,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),r.conversations.remove(x),r.refresh()}},b.createElement(Ra,null)))}})))}var F0=["translations"],_0=b.memo(function(e){var t,n=e.translations,r=n===void 0?{}:n,u=an(e,F0);return u.canHandleAskAi&&u.isAskAiActive&&u.askAiState==="conversation-history"?b.createElement(v0,u):u.canHandleAskAi&&u.isAskAiActive&&u.askAiState==="new-conversation"?b.createElement(g0,{translations:r==null?void 0:r.newConversation,selectSuggestedQuestion:u.selectSuggestedQuestion,suggestedQuestions:u.suggestedQuestions}):u.isAskAiActive&&u.canHandleAskAi?b.createElement(a0,Tt({},u,{messages:u.messages,status:u.status,askAiError:u.askAiError,translations:r==null?void 0:r.askAiScreen,agentStudio:u.agentStudio})):((t=u.state)===null||t===void 0?void 0:t.status)==="error"?b.createElement(m0,{translations:r==null?void 0:r.errorScreen}):u.state.query?u.hasCollections||u.canHandleAskAi?b.createElement(b.Fragment,null,b.createElement(b0,Tt({},u,{translations:r==null?void 0:r.resultsScreen})),u.canHandleAskAi&&u.state.collections.length===1&&b.createElement(ud,Tt({},u,{translations:r==null?void 0:r.noResultsScreen}))):b.createElement(ud,Tt({},u,{translations:r==null?void 0:r.noResultsScreen})):b.createElement(E0,Tt({},u,{hasCollections:u.hasCollections,translations:r==null?void 0:r.startScreen}))},function(e,t){return t.state.status==="loading"||t.state.status==="stalled"});function C0(e){var t=e.size,n=t===void 0?20:t,r=e.color,u=r===void 0?"currentColor":r;return b.createElement("svg",{width:n,height:n,className:"DocSearch-Back-Icon",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},b.createElement("path",{d:"m12 19-7-7 7-7"}),b.createElement("path",{d:"M19 12H5"}))}var k0=["children","className","onClick"],qi=b.createContext({open:!1,setOpen:function(e){}});function $r(e){var t=e.children,n=dt(b.useState(!1),2),r=n[0],u=n[1],a=b.useRef(null);return b.useEffect(function(){function i(o){var c;(c=a.current)!==null&&c!==void 0&&c.contains(o.target)||u(!1)}return r&&window.addEventListener("click",i),function(){window.removeEventListener("click",i)}},[r]),b.createElement(qi.Provider,{value:{open:r,setOpen:u}},b.createElement("div",{ref:a,className:"DocSearch-Menu"},t))}function w0(e){var t=e.heading,n=e.shimmer,r=n!==void 0&&n;return b.createElement("span",{className:"DocSearch-Modal-heading".concat(r?" shimmer":"")},t)}$r.Trigger=function(e){var t=e.children,n=e.className,r=n===void 0?"":n,u=e.disabled,a=b.useContext(qi),i=a.open,o=a.setOpen;return b.createElement("button",{type:"button",className:"DocSearch-Menu-trigger ".concat(r).concat(u?" disabled":""),"aria-disabled":u,onClick:function(){u||o(!i)}},t)},$r.Content=function(e){var t=e.children,n=b.useContext(qi).open;return b.createElement("div",{className:"DocSearch-Menu-content".concat(n?" open":"")},t)},$r.Item=function(e){var t=e.children,n=e.className,r=n===void 0?"":n,u=e.onClick,a=an(e,k0),i=b.useContext(qi).setOpen;return b.createElement("button",Tt({type:"button",className:"DocSearch-Menu-item ".concat(r),onClick:function(o){u&&(u(o),i(!1))}},a),t)};var S0=["translations","askAiState","onAskAiToggle","setAskAiState"];function x0(e){var t=e.translations,n=t===void 0?{}:t,r=e.askAiState,u=e.onAskAiToggle,a=e.setAskAiState,i=an(e,S0),o=n.clearButtonTitle,c=o===void 0?"Clear":o,l=n.clearButtonAriaLabel,p=l===void 0?"Clear the query":l,m=n.closeButtonText,v=m===void 0?"Close":m,y=n.closeButtonAriaLabel,F=y===void 0?"Close":y,D=n.searchInputLabel,_=D===void 0?"Search":D,O=n.backToKeywordSearchButtonText,w=O===void 0?"Back to keyword search":O,x=n.backToKeywordSearchButtonAriaLabel,S=x===void 0?"Back to keyword search":x,T=n.placeholderTextAskAiStreaming,I=T===void 0?"Answering...":T,B=n.newConversationPlaceholder,d=B===void 0?"Ask a question":B,H=n.conversationHistoryTitle,R=H===void 0?"My conversation history":H,Z=n.startNewConversationText,q=Z===void 0?"Start a new conversation":Z,G=n.viewConversationHistoryText,L=G===void 0?"Conversation history":G,ne=n.threadDepthErrorPlaceholder,Q=ne===void 0?"Conversation limit reached":ne,$=i.getFormProps({inputElement:i.inputRef.current}).onReset;b.useEffect(function(){i.autoFocus&&i.inputRef.current&&i.inputRef.current.focus()},[i.autoFocus,i.inputRef]),b.useEffect(function(){i.isFromSelection&&i.inputRef.current&&i.inputRef.current.select()},[i.isFromSelection,i.inputRef]);var Y=b.useMemo(function(){var ge=i.state.collections[2];return!!ge&&ge.items.length>0},[i.state.collections]),re=i.getInputProps({inputElement:i.inputRef.current,autoFocus:i.autoFocus,maxLength:512}),me=new Set(["ArrowUp","ArrowDown","Enter"]),se=re.onKeyDown,K=re.onChange,V=i.askAiStatus==="streaming"||i.askAiStatus==="submitted",ue=i.state.status==="stalled",oe=i.isAskAiActive&&r!=="conversation-history",ce=i.isThreadDepthError||!1,ee=i.placeholder;r==="new-conversation"&&(ee=d),ce&&i.isAskAiActive&&(ee=Q);var he=null;V&&(he=I),r==="conversation-history"&&(he=R),b.useEffect(function(){i.askAiStatus!=="streaming"&&i.askAiStatus!=="submitted"&&i.inputRef.current&&i.inputRef.current.focus()},[i.askAiStatus,i.inputRef]);var Ce=C(C({},re),{},{enterKeyHint:i.isAskAiActive?"enter":"search",onKeyDown:function(ge){if(i.isAskAiActive&&me.has(ge.key))return ge.key==="Enter"&&!V&&i.state.query&&i.onAskAgain(i.state.query),ge.preventDefault(),void ge.stopPropagation();se==null||se(ge)},onChange:function(ge){if(i.isAskAiActive)return i.setQuery(ge.currentTarget.value),ge.preventDefault(),void ge.stopPropagation();K==null||K(ge)},disabled:V||ce&&i.isAskAiActive}),Re=b.useCallback(function(){if(!ce)return r==="conversation-history"?(u(!0),void a("initial")):void u(!1);i.onNewConversation()},[r,ce,u,a,i]);return b.createElement(b.Fragment,null,b.createElement("form",{className:"DocSearch-Form",onSubmit:function(ge){ge.preventDefault()},onReset:$},i.isAskAiActive?b.createElement(b.Fragment,null,b.createElement("button",{type:"button",tabIndex:0,className:"DocSearch-Action DocSearch-AskAi-Return",title:w,"aria-label":S,onClick:Re},b.createElement(C0,null))):b.createElement(b.Fragment,null,ue&&b.createElement("div",{className:"DocSearch-LoadingIndicator"},b.createElement(Na,null)),!ue&&b.createElement("label",Tt({className:"DocSearch-MagnifierLabel"},i.getLabelProps()),b.createElement(ya,null),b.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},_))),he&&b.createElement(w0,{heading:he,shimmer:V}),b.createElement("input",Tt({className:"DocSearch-Input",ref:i.inputRef},Ce,{placeholder:ee,hidden:!!he})),b.createElement("div",{className:"DocSearch-Actions"},b.createElement("button",{className:"DocSearch-Clear",type:"reset","aria-label":p,hidden:!i.state.query,tabIndex:i.state.query?0:-1,"aria-hidden":i.state.query?"false":"true"},c),i.state.query&&b.createElement("div",{className:"DocSearch-Divider"}),V&&b.createElement(b.Fragment,null,b.createElement("button",{type:"button",className:"DocSearch-Action DocSearch-StopStreaming",onClick:i.onStopAskAiStreaming},b.createElement(Am,null)),b.createElement("div",{className:"DocSearch-Divider"})),oe&&b.createElement(b.Fragment,null,b.createElement($r,null,b.createElement($r.Trigger,{className:"DocSearch-Action"},b.createElement(_m,null)),b.createElement($r.Content,null,b.createElement($r.Item,{onClick:i.onNewConversation},b.createElement(km,null),q),Y&&b.createElement($r.Item,{onClick:i.onViewConversationHistory},b.createElement(Cm,null),L))),b.createElement("div",{className:"DocSearch-Divider"})),b.createElement("button",{type:"button",title:v,className:"DocSearch-Action DocSearch-Close","aria-label":F,onClick:i.onClose},b.createElement(Ra,null)))))}function ad(){if(typeof window!="undefined"&&window.localStorage){var e=[];for(var t in window.localStorage)if(t.includes("__DOCSEARCH_")){var n=window.localStorage[t];e.push({key:t,size:n.length+t.length})}e.sort(function(a,i){return i.size-a.size});for(var r=Math.ceil(e.length/2),u=0;u<r&&u<e.length;u++)try{window.localStorage.removeItem(e[u].key)}catch(a){}}}function id(e){return(function(){if(typeof window=="undefined"||!("localStorage"in window))return!1;var t="__TEST_KEY__";try{return window.localStorage.setItem(t,""),window.localStorage.removeItem(t),!0}catch(n){return!1}})()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){(function(n,r){try{window.localStorage.setItem(n,JSON.stringify(r))}catch(u){if(u instanceof DOMException&&u.name==="QuotaExceededError")try{ad(),window.localStorage.setItem(n,JSON.stringify(r))}catch(a){}}})(e,t)},getItem:function(){var t=window.localStorage.getItem(e);if(t===null)return[];try{var n=JSON.parse(t);return Array.isArray(n)?n:[]}catch(r){return window.localStorage.removeItem(e),[]}}}}var T0=["_highlightResult","_snippetResult"];function od(e){var t=e.key,n=e.limit,r=n===void 0?5:n,u=id(t),a=u.getItem().slice(0,r);return{add:function(i){var o=i;o._highlightResult,o._snippetResult;var c=an(o,T0),l=a.findIndex(function(p){return p.objectID===c.objectID});l>-1&&a.splice(l,1),a.unshift(c),a=a.slice(0,r),u.setItem(a)},remove:function(i){a=a.filter(function(o){return o.objectID!==i.objectID}),u.setItem(a)},getAll:function(){return a}}}function sd(e){var t=e.key,n=e.limit,r=n===void 0?5:n,u=id(t),a=u.getItem().slice(0,r);return{add:function(i){var o=i.objectID,c=i.query,l=a.findIndex(function(p){return p.objectID===o||p.query===c});l>-1?a[l]=i:(a.unshift(i),a=a.slice(0,r)),u.setItem(a)},addFeedback:function(i,o){var c=a.find(function(p){var m;return(m=p.messages)===null||m===void 0?void 0:m.some(function(v){return v.id===i})});if(c&&c.messages){var l=c.messages.find(function(p){return p.id===i});l&&(l.feedback=o,u.setItem(a))}},getOne:function(i){var o,c=a.find(function(l){var p;return(p=l.messages)===null||p===void 0?void 0:p.some(function(m){return m.id===i})});return c==null||(o=c.messages)===null||o===void 0?void 0:o.find(function(l){return l.id===i})},getAll:function(){return a},remove:function(i){a=a.filter(function(o){return o.objectID!==i.objectID}),u.setItem(a)},getConversation:function(i){var o=a.find(function(c){var l;return(l=c.messages)===null||l===void 0?void 0:l.some(function(p){return p.id===i})});if(o&&o.messages)return o}}}var cd,ld="vercel.ai.error",O0=Symbol.for(ld),I0=(function(){function e(t){var n,r=t.name,u=t.message,a=t.cause;return Mn(this,e),(n=au(this,e,[u]))[cd]=!0,n.name=r,n.cause=a,n}return iu(e,Lo(Error)),$n(e,null,[{key:"isInstance",value:function(t){return e.hasMarker(t,ld)}},{key:"hasMarker",value:function(t,n){var r=Symbol.for(n);return t!=null&&we(t)=="object"&&r in t&&typeof t[r]=="boolean"&&t[r]===!0}}])})();cd=O0;var Zr=I0;function fd(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var dd,pd="AI_InvalidArgumentError",hd="vercel.ai.error.".concat(pd),B0=Symbol.for(hd),P0=(function(){function e(t){var n,r=t.message,u=t.cause,a=t.argument;return Mn(this,e),(n=au(this,e,[{name:pd,message:r,cause:u}]))[dd]=!0,n.argument=a,n}return iu(e,Zr),$n(e,null,[{key:"isInstance",value:function(t){return Zr.hasMarker(t,hd)}}])})();dd=B0;var vd,md="AI_JSONParseError",gd="vercel.ai.error.".concat(md),j0=Symbol.for(gd),yd=(function(){function e(t){var n,r=t.text,u=t.cause;return Mn(this,e),(n=au(this,e,[{name:md,message:"JSON parsing failed: Text: ".concat(r,`.
|
|
90
|
+
Error message: `).concat(fd(u)),cause:u}]))[vd]=!0,n.text=r,n}return iu(e,Zr),$n(e,null,[{key:"isInstance",value:function(t){return Zr.hasMarker(t,gd)}}])})();vd=j0;var Dd,bd="AI_TypeValidationError",Ad="vercel.ai.error.".concat(bd),N0=Symbol.for(Ad);Dd=N0;var Hi=(function(){function e(t){var n,r=t.value,u=t.cause;return Mn(this,e),(n=au(this,e,[{name:bd,message:"Type validation failed: Value: ".concat(JSON.stringify(r),`.
|
|
91
|
+
Error message: `).concat(fd(u)),cause:u}]))[Dd]=!0,n.value=r,n}return iu(e,Zr),$n(e,null,[{key:"isInstance",value:function(t){return Zr.hasMarker(t,Ad)}},{key:"wrap",value:function(t){var n=t.value,r=t.cause;return e.isInstance(r)&&r.value===n?r:new e({value:n,cause:r})}}])})(),Ed=(function(){function e(t,n){var r;return Be(this,e),(r=$e(this,e,[t])).name="ParseError",r.type=n.type,r.field=n.field,r.value=n.value,r.line=n.line,r}return Me(e,Lr(Error)),Pe(e)})();function Bs(e){}var R0=(function(){function e(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.onError,u=n.onRetry,a=n.onComment;return Be(this,e),$e(this,e,[{start:function(i){t=(function(o){if(typeof o=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");var c,l=o.onEvent,p=l===void 0?Bs:l,m=o.onError,v=m===void 0?Bs:m,y=o.onRetry,F=y===void 0?Bs:y,D=o.onComment,_="",O=!0,w="",x="";function S(I){if(I==="")return w.length>0&&p({id:c,event:x||void 0,data:w.endsWith(`
|
|
92
|
+
`)?w.slice(0,-1):w}),c=void 0,w="",void(x="");if(I.startsWith(":"))D&&D(I.slice(I.startsWith(": ")?2:1));else{var B=I.indexOf(":");if(B===-1)T(I,"",I);else{var d=I.slice(0,B),H=I[B+1]===" "?2:1;T(d,I.slice(B+H),I)}}}function T(I,B,d){switch(I){case"event":x=B;break;case"data":w="".concat(w).concat(B,`
|
|
93
|
+
`);break;case"id":c=B.includes("\0")?void 0:B;break;case"retry":/^\d+$/.test(B)?F(parseInt(B,10)):v(new Ed('Invalid `retry` value: "'.concat(B,'"'),{type:"invalid-retry",value:B,line:d}));break;default:v(new Ed('Unknown field "'.concat(I.length>20?"".concat(I.slice(0,20),"\u2026"):I,'"'),{type:"unknown-field",field:I,value:B,line:d}))}}return{feed:function(I){var B,d=O?I.replace(/^\xEF\xBB\xBF/,""):I,H=(function(L){for(var ne=[],Q="",$=0;$<L.length;){var Y=L.indexOf("\r",$),re=L.indexOf(`
|
|
94
|
+
`,$),me=-1;if(Y!==-1&&re!==-1?me=Math.min(Y,re):Y!==-1?me=Y===L.length-1?-1:Y:re!==-1&&(me=re),me===-1){Q=L.slice($);break}var se=L.slice($,me);ne.push(se),L[($=me+1)-1]==="\r"&&L[$]===`
|
|
95
|
+
`&&$++}return[ne,Q]})("".concat(_).concat(d)),R=dt(H,2),Z=R[0],q=R[1],G=ye(Z);try{for(G.s();!(B=G.n()).done;)S(B.value)}catch(L){G.e(L)}finally{G.f()}_=q,O=!1},reset:function(){_&&(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).consume&&S(_),O=!0,c=void 0,w="",x="",_=""}}})({onEvent:function(o){i.enqueue(o)},onError:function(o){r==="terminate"?i.error(o):typeof r=="function"&&r(o)},onRetry:u,onComment:a})},transform:function(i){t.feed(i)}}])}return Me(e,Lr(TransformStream)),Pe(e)})();function te(e,t,n){var r;function u(o,c){var l,p,m;for(var v in Object.defineProperty(o,"_zod",{value:(l=o._zod)!==null&&l!==void 0?l:{},enumerable:!1}),(p=(m=o._zod).traits)!==null&&p!==void 0||(m.traits=new Set),o._zod.traits.add(e),t(o,c),i.prototype)v in o||Object.defineProperty(o,v,{value:i.prototype[v].bind(o)});o._zod.constr=i,o._zod.def=c}var a=(function(o){function c(){return Be(this,c),$e(this,c,arguments)}return Me(c,o),Pe(c)})((r=n==null?void 0:n.Parent)!==null&&r!==void 0?r:Object);function i(o){var c,l,p=n!=null&&n.Parent?new a:this;u(p,o),(c=(l=p._zod).deferred)!==null&&c!==void 0||(l.deferred=[]);var m,v=ye(p._zod.deferred);try{for(v.s();!(m=v.n()).done;)(0,m.value)()}catch(y){v.e(y)}finally{v.f()}return p}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(i,"init",{value:u}),Object.defineProperty(i,Symbol.hasInstance,{value:function(o){var c;return!!(n!=null&&n.Parent&&o instanceof n.Parent)||(o==null||(c=o._zod)===null||c===void 0||(c=c.traits)===null||c===void 0?void 0:c.has(e))}}),Object.defineProperty(i,"name",{value:e}),i}var Mu=(function(){function e(){return Be(this,e),$e(this,e,["Encountered Promise during synchronous parse. Use .parseAsync() instead."])}return Me(e,Lr(Error)),Pe(e)})(),Fd=(function(){function e(t){var n;return Be(this,e),(n=$e(this,e,["Encountered unidirectional transform during encode: ".concat(t)])).name="ZodEncodeError",n}return Me(e,Lr(Error)),Pe(e)})(),_d={};function qr(e){return _d}function Cd(e){var t=Object.values(e).filter(function(r){return typeof r=="number"}),n=Object.entries(e).filter(function(r){var u=dt(r,2),a=u[0];return u[1],t.indexOf(+a)===-1}).map(function(r){var u=dt(r,2);return u[0],u[1]});return n}function Ps(e,t){return typeof t=="bigint"?t.toString():t}function Ui(e){return{get value(){var t=e();return Object.defineProperty(this,"value",{value:t}),t}}}function $u(e){return e==null}function js(e){var t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}var kd=Symbol("evaluating");function gt(e,t,n){var r=void 0;Object.defineProperty(e,t,{get:function(){if(r!==kd)return r===void 0&&(r=kd,r=n()),r},set:function(u){Object.defineProperty(e,t,{value:u})},configurable:!0})}function vu(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function mu(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var u=0,a=n;u<a.length;u++){var i=a[u],o=Object.getOwnPropertyDescriptors(i);Object.assign(e,o)}return Object.defineProperties({},e)}function wd(e){return JSON.stringify(e)}var Sd="captureStackTrace"in Error?Error.captureStackTrace:function(){};function Ha(e){return Qt(e)==="object"&&e!==null&&!Array.isArray(e)}var z0=Ui(function(){var e;if(typeof navigator!="undefined"&&(e=navigator)!==null&&e!==void 0&&(e=e.userAgent)!==null&&e!==void 0&&e.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(t){return!1}});function Zu(e){if(Ha(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return Ha(n)!==!1&&Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")!==!1}function xd(e){return Zu(e)?C({},e):Array.isArray(e)?be(e):e}var L0=new Set(["string","number","symbol"]);function qu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Hr(e,t,n){var r=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function xe(e){var t=e;if(!t)return{};if(typeof t=="string")return{error:function(){return t}};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?C(C({},t),{},{error:function(){return t.error}}):t}var M0={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.aborted===!0)return!0;for(var n=t;n<e.issues.length;n++){var r;if(((r=e.issues[n])===null||r===void 0?void 0:r.continue)!==!0)return!0}return!1}function gu(e,t){return t.map(function(n){var r,u;return(r=(u=n).path)!==null&&r!==void 0||(u.path=[]),n.path.unshift(e),n})}function Wi(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ur(e,t,n){var r,u=C(C({},e),{},{path:(r=e.path)!==null&&r!==void 0?r:[]});if(!e.message){var a,i,o,c,l,p,m,v,y,F=(a=(i=(o=(c=Wi((l=e.inst)===null||l===void 0||(l=l._zod.def)===null||l===void 0||(p=l.error)===null||p===void 0?void 0:p.call(l,e)))!==null&&c!==void 0?c:Wi(t==null||(m=t.error)===null||m===void 0?void 0:m.call(t,e)))!==null&&o!==void 0?o:Wi((v=n.customError)===null||v===void 0?void 0:v.call(n,e)))!==null&&i!==void 0?i:Wi((y=n.localeError)===null||y===void 0?void 0:y.call(n,e)))!==null&&a!==void 0?a:"Invalid input";u.message=F}return delete u.inst,delete u.continue,t!=null&&t.reportInput||delete u.input,u}function Ns(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Rs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ua(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],u=t[1],a=t[2];return typeof r=="string"?{message:r,code:"custom",input:u,inst:a}:C({},r)}var Td=function(e,t){e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ps,2),Object.defineProperty(e,"toString",{value:function(){return e.message},enumerable:!1})},Od=te("$ZodError",Td),Id=te("$ZodError",Td,{Parent:Error}),zs=function(e){return function(t,n,r,u){var a=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Mu;if(i.issues.length){var o,c=new((o=u==null?void 0:u.Err)!==null&&o!==void 0?o:e)(i.issues.map(function(l){return Ur(l,a,qr())}));throw Sd(c,u==null?void 0:u.callee),c}return i.value}},Ls=function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a,i){var o,c,l,p;return Ae().w(function(m){for(;;)switch(m.n){case 0:if(o=a?Object.assign(a,{async:!0}):{async:!0},!((c=r._zod.run({value:u,issues:[]},o))instanceof Promise)){m.n=2;break}return m.n=1,c;case 1:c=m.v;case 2:if(!c.issues.length){m.n=3;break}throw p=new((l=i==null?void 0:i.Err)!==null&&l!==void 0?l:e)(c.issues.map(function(v){return Ur(v,o,qr())})),Sd(p,i==null?void 0:i.callee),p;case 3:return m.a(2,c.value)}},n)}));return function(n,r,u,a){return t.apply(this,arguments)}})()},Vi=function(e){return function(t,n,r){var u=r?C(C({},r),{},{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},u);if(a instanceof Promise)throw new Mu;return a.issues.length?{success:!1,error:new(e!=null?e:Od)(a.issues.map(function(i){return Ur(i,u,qr())}))}:{success:!0,data:a.value}}},$0=Vi(Id),Ki=function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){var i,o;return Ae().w(function(c){for(;;)switch(c.n){case 0:if(i=a?Object.assign(a,{async:!0}):{async:!0},!((o=r._zod.run({value:u,issues:[]},i))instanceof Promise)){c.n=2;break}return c.n=1,o;case 1:o=c.v;case 2:return c.a(2,o.issues.length?{success:!1,error:new e(o.issues.map(function(l){return Ur(l,i,qr())}))}:{success:!0,data:o.value})}},n)}));return function(n,r,u){return t.apply(this,arguments)}})()},Z0=Ki(Id),q0=/^[cC][^\s-]{8,}$/,H0=/^[0-9a-z]+$/,U0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,W0=/^[0-9a-vA-V]{20}$/,V0=/^[A-Za-z0-9]{27}$/,K0=/^[a-zA-Z0-9_-]{21}$/,G0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,J0=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Bd=function(e){return e?new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-".concat(e,"[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$")):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/},Q0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Y0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,X0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,eg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,tg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ng=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pd=/^[A-Za-z0-9_-]*$/,rg=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ug=/^\+(?:[0-9]){6,14}[0-9]$/,jd="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ag=new RegExp("^".concat(jd,"$"));function Nd(e){var t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?"".concat(t):e.precision===0?"".concat(t,":[0-5]\\d"):"".concat(t,":[0-5]\\d\\.\\d{").concat(e.precision,"}"):"".concat(t,"(?::[0-5]\\d(?:\\.\\d+)?)?")}var ig=/^-?\d+$/,og=/^-?\d+(?:\.\d+)?/,sg=/^(?:true|false)$/i,cg=/^null$/i,lg=/^[^A-Z]*$/,fg=/^[^a-z]*$/,Yt=te("$ZodCheck",function(e,t){var n,r,u;(n=e._zod)!==null&&n!==void 0||(e._zod={}),e._zod.def=t,(r=(u=e._zod).onattach)!==null&&r!==void 0||(u.onattach=[])}),Rd={number:"number",bigint:"bigint",object:"date"},zd=te("$ZodCheckLessThan",function(e,t){Yt.init(e,t);var n=Rd[Qt(t.value)];e._zod.onattach.push(function(r){var u,a=r._zod.bag,i=(u=t.inclusive?a.maximum:a.exclusiveMaximum)!==null&&u!==void 0?u:Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=function(r){(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ld=te("$ZodCheckGreaterThan",function(e,t){Yt.init(e,t);var n=Rd[Qt(t.value)];e._zod.onattach.push(function(r){var u,a=r._zod.bag,i=(u=t.inclusive?a.minimum:a.exclusiveMinimum)!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=function(r){(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),dg=te("$ZodCheckMultipleOf",function(e,t){Yt.init(e,t),e._zod.onattach.push(function(n){var r,u;(r=(u=n._zod.bag).multipleOf)!==null&&r!==void 0||(u.multipleOf=t.value)}),e._zod.check=function(n){if(Qt(n.value)!==Qt(t.value))throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):(function(r,u){var a=(r.toString().split(".")[1]||"").length,i=u.toString(),o=(i.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(i)){var c=i.match(/\d?e-(\d?)/);c!=null&&c[1]&&(o=Number.parseInt(c[1]))}var l=a>o?a:o;return Number.parseInt(r.toFixed(l).replace(".",""))%Number.parseInt(u.toFixed(l).replace(".",""))/Math.pow(10,l)})(n.value,t.value)===0)||n.issues.push({origin:Qt(n.value),code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),pg=te("$ZodCheckNumberFormat",function(e,t){var n;Yt.init(e,t),t.format=t.format||"float64";var r=(n=t.format)===null||n===void 0?void 0:n.includes("int"),u=r?"int":"number",a=dt(M0[t.format],2),i=a[0],o=a[1];e._zod.onattach.push(function(c){var l=c._zod.bag;l.format=t.format,l.minimum=i,l.maximum=o,r&&(l.pattern=ig)}),e._zod.check=function(c){var l=c.value;if(r){if(!Number.isInteger(l))return void c.issues.push({expected:u,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});if(!Number.isSafeInteger(l))return void(l>0?c.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:u,continue:!t.abort}):c.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:u,continue:!t.abort}))}l<i&&c.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),l>o&&c.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:e})}}),hg=te("$ZodCheckMaxSize",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.size!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.maximum)!==null&&a!==void 0?a:Number.POSITIVE_INFINITY;t.maximum<i&&(u._zod.bag.maximum=t.maximum)}),e._zod.check=function(u){var a=u.value;a.size<=t.maximum||u.issues.push({origin:Ns(a),code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),vg=te("$ZodCheckMinSize",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.size!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.minimum)!==null&&a!==void 0?a:Number.NEGATIVE_INFINITY;t.minimum>i&&(u._zod.bag.minimum=t.minimum)}),e._zod.check=function(u){var a=u.value;a.size>=t.minimum||u.issues.push({origin:Ns(a),code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),mg=te("$ZodCheckSizeEquals",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.size!==void 0}),e._zod.onattach.push(function(u){var a=u._zod.bag;a.minimum=t.size,a.maximum=t.size,a.size=t.size}),e._zod.check=function(u){var a=u.value,i=a.size;if(i!==t.size){var o=i>t.size;u.issues.push(C(C({origin:Ns(a)},o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size}),{},{inclusive:!0,exact:!0,input:u.value,inst:e,continue:!t.abort}))}}}),gg=te("$ZodCheckMaxLength",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.length!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.maximum)!==null&&a!==void 0?a:Number.POSITIVE_INFINITY;t.maximum<i&&(u._zod.bag.maximum=t.maximum)}),e._zod.check=function(u){var a=u.value;if(!(a.length<=t.maximum)){var i=Rs(a);u.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}}),yg=te("$ZodCheckMinLength",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.length!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.minimum)!==null&&a!==void 0?a:Number.NEGATIVE_INFINITY;t.minimum>i&&(u._zod.bag.minimum=t.minimum)}),e._zod.check=function(u){var a=u.value;if(!(a.length>=t.minimum)){var i=Rs(a);u.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}}),Dg=te("$ZodCheckLengthEquals",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.length!==void 0}),e._zod.onattach.push(function(u){var a=u._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=function(u){var a=u.value,i=a.length;if(i!==t.length){var o=Rs(a),c=i>t.length;u.issues.push(C(C({origin:o},c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}),{},{inclusive:!0,exact:!0,input:u.value,inst:e,continue:!t.abort}))}}}),Gi=te("$ZodCheckStringFormat",function(e,t){var n,r,u,a;Yt.init(e,t),e._zod.onattach.push(function(i){var o,c=i._zod.bag;c.format=t.format,t.pattern&&((o=c.patterns)!==null&&o!==void 0||(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(n=(u=e._zod).check)!==null&&n!==void 0||(u.check=function(i){t.pattern.lastIndex=0,t.pattern.test(i.value)||i.issues.push(C(C({origin:"string",code:"invalid_format",format:t.format,input:i.value},t.pattern?{pattern:t.pattern.toString()}:{}),{},{inst:e,continue:!t.abort}))}):(r=(a=e._zod).check)!==null&&r!==void 0||(a.check=function(){})}),bg=te("$ZodCheckRegex",function(e,t){Gi.init(e,t),e._zod.check=function(n){t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ag=te("$ZodCheckLowerCase",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=lg),Gi.init(e,t)}),Eg=te("$ZodCheckUpperCase",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=fg),Gi.init(e,t)}),Fg=te("$ZodCheckIncludes",function(e,t){Yt.init(e,t);var n=qu(t.includes),r=new RegExp(typeof t.position=="number"?"^.{".concat(t.position,"}").concat(n):n);t.pattern=r,e._zod.onattach.push(function(u){var a,i=u._zod.bag;(a=i.patterns)!==null&&a!==void 0||(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=function(u){u.value.includes(t.includes,t.position)||u.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:u.value,inst:e,continue:!t.abort})}}),_g=te("$ZodCheckStartsWith",function(e,t){var n;Yt.init(e,t);var r=new RegExp("^".concat(qu(t.prefix),".*"));(n=t.pattern)!==null&&n!==void 0||(t.pattern=r),e._zod.onattach.push(function(u){var a,i=u._zod.bag;(a=i.patterns)!==null&&a!==void 0||(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=function(u){u.value.startsWith(t.prefix)||u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:u.value,inst:e,continue:!t.abort})}}),Cg=te("$ZodCheckEndsWith",function(e,t){var n;Yt.init(e,t);var r=new RegExp(".*".concat(qu(t.suffix),"$"));(n=t.pattern)!==null&&n!==void 0||(t.pattern=r),e._zod.onattach.push(function(u){var a,i=u._zod.bag;(a=i.patterns)!==null&&a!==void 0||(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=function(u){u.value.endsWith(t.suffix)||u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:u.value,inst:e,continue:!t.abort})}});function Md(e,t,n){var r;e.issues.length&&(r=t.issues).push.apply(r,be(gu(n,e.issues)))}var kg=te("$ZodCheckProperty",function(e,t){Yt.init(e,t),e._zod.check=function(n){var r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(function(u){return Md(u,n,t.property)});Md(r,n,t.property)}}),wg=te("$ZodCheckMimeType",function(e,t){Yt.init(e,t);var n=new Set(t.mime);e._zod.onattach.push(function(r){r._zod.bag.mime=t.mime}),e._zod.check=function(r){n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Sg=te("$ZodCheckOverwrite",function(e,t){Yt.init(e,t),e._zod.check=function(n){n.value=t.tx(n.value)}}),xg=Pe(function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Be(this,e),this.content=[],this.indent=0,this&&(this.args=t)},[{key:"indented",value:function(e){this.indent+=1,e(this),this.indent-=1}},{key:"write",value:function(e){var t=this;if(typeof e=="function")return e(this,{execution:"sync"}),void e(this,{execution:"async"});var n,r=e.split(`
|
|
96
|
+
`).filter(function(c){return c}),u=Math.min.apply(Math,be(r.map(function(c){return c.length-c.trimStart().length}))),a=r.map(function(c){return c.slice(u)}).map(function(c){return" ".repeat(2*t.indent)+c}),i=ye(a);try{for(i.s();!(n=i.n()).done;){var o=n.value;this.content.push(o)}}catch(c){i.e(c)}finally{i.f()}}},{key:"compile",value:function(){var e,t=Function,n=this==null?void 0:this.args,r=be(((e=this==null?void 0:this.content)!==null&&e!==void 0?e:[""]).map(function(u){return" ".concat(u)}));return Wl(t,be(n).concat([r.join(`
|
|
97
|
+
`)]))}}]),Tg={major:4,minor:1,patch:12},Ot=te("$ZodType",function(e,t){var n,r;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Tg;var u=be((n=e._zod.def.checks)!==null&&n!==void 0?n:[]);e._zod.traits.has("$ZodCheck")&&u.unshift(e);var a,i=ye(u);try{for(i.s();!(a=i.n()).done;){var o,c=ye(a.value._zod.onattach);try{for(c.s();!(o=c.n()).done;)(0,o.value)(e)}catch(y){c.e(y)}finally{c.f()}}}catch(y){i.e(y)}finally{i.f()}if(u.length===0){var l,p;(l=(r=e._zod).deferred)!==null&&l!==void 0||(r.deferred=[]),(p=e._zod.deferred)===null||p===void 0||p.push(function(){e._zod.run=e._zod.parse})}else{var m=function(y,F,D){var _,O,w=Hu(y),x=ye(F);try{var S=function(){var T=O.value;if(T._zod.def.when){if(!T._zod.def.when(y))return 0}else if(w)return 0;var I=y.issues.length,B=T._zod.check(y);if(B instanceof Promise&&(D==null?void 0:D.async)===!1)throw new Mu;if(_||B instanceof Promise)_=(_!=null?_:Promise.resolve()).then(Xe(Ae().m(function d(){return Ae().w(function(H){for(;;)switch(H.n){case 0:return H.n=1,B;case 1:if(y.issues.length!==I){H.n=2;break}return H.a(2);case 2:w||(w=Hu(y,I));case 3:return H.a(2)}},d)})));else{if(y.issues.length===I)return 0;w||(w=Hu(y,I))}};for(x.s();!(O=x.n()).done;)S()}catch(T){x.e(T)}finally{x.f()}return _?_.then(function(){return y}):y},v=function(y,F,D){if(Hu(y))return y.aborted=!0,y;var _=m(F,u,D);if(_ instanceof Promise){if(D.async===!1)throw new Mu;return _.then(function(O){return e._zod.parse(O,D)})}return e._zod.parse(_,D)};e._zod.run=function(y,F){if(F.skipChecks)return e._zod.parse(y,F);if(F.direction==="backward"){var D=e._zod.parse({value:y.value,issues:[]},C(C({},F),{},{skipChecks:!0}));return D instanceof Promise?D.then(function(O){return v(O,y,F)}):v(D,y,F)}var _=e._zod.parse(y,F);if(_ instanceof Promise){if(F.async===!1)throw new Mu;return _.then(function(O){return m(O,u,F)})}return m(_,u,F)}}e["~standard"]={validate:function(y){try{var F,D=$0(e,y);return D.success?{value:D.data}:{issues:(F=D.error)===null||F===void 0?void 0:F.issues}}catch(_){return Z0(e,y).then(function(O){var w;return O.success?{value:O.data}:{issues:(w=O.error)===null||w===void 0?void 0:w.issues}})}},vendor:"zod",version:1}}),Ms=te("$ZodString",function(e,t){var n,r,u;Ot.init(e,t),e._zod.pattern=(n=be((r=e==null||(u=e._zod.bag)===null||u===void 0?void 0:u.patterns)!==null&&r!==void 0?r:[]).pop())!==null&&n!==void 0?n:(function(a){var i,o,c=a?"[\\s\\S]{".concat((i=a==null?void 0:a.minimum)!==null&&i!==void 0?i:0,",").concat((o=a==null?void 0:a.maximum)!==null&&o!==void 0?o:"","}"):"[\\s\\S]*";return new RegExp("^".concat(c,"$"))})(e._zod.bag),e._zod.parse=function(a,i){if(t.coerce)try{a.value=String(a.value)}catch(o){}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Pt=te("$ZodStringFormat",function(e,t){Gi.init(e,t),Ms.init(e,t)}),Og=te("$ZodGUID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=J0),Pt.init(e,t)}),Ig=te("$ZodUUID",function(e,t){var n;if(t.version){var r,u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(u===void 0)throw new Error('Invalid UUID version: "'.concat(t.version,'"'));(r=t.pattern)!==null&&r!==void 0||(t.pattern=Bd(u))}else(n=t.pattern)!==null&&n!==void 0||(t.pattern=Bd());Pt.init(e,t)}),Bg=te("$ZodEmail",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Q0),Pt.init(e,t)}),Pg=te("$ZodURL",function(e,t){Pt.init(e,t),e._zod.check=function(n){try{var r=n.value.trim(),u=new URL(r);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(u.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:rg.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=u.href:n.value=r)}catch(a){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),jg=te("$ZodEmoji",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Pt.init(e,t)}),Ng=te("$ZodNanoID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=K0),Pt.init(e,t)}),Rg=te("$ZodCUID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=q0),Pt.init(e,t)}),zg=te("$ZodCUID2",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=H0),Pt.init(e,t)}),Lg=te("$ZodULID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=U0),Pt.init(e,t)}),Mg=te("$ZodXID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=W0),Pt.init(e,t)}),$g=te("$ZodKSUID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=V0),Pt.init(e,t)}),Zg=te("$ZodISODateTime",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=(function(r){var u=Nd({precision:r.precision}),a=["Z"];r.local&&a.push(""),r.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");var i="".concat(u,"(?:").concat(a.join("|"),")");return new RegExp("^".concat(jd,"T(?:").concat(i,")$"))})(t)),Pt.init(e,t)}),qg=te("$ZodISODate",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=ag),Pt.init(e,t)}),Hg=te("$ZodISOTime",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=new RegExp("^".concat(Nd(t),"$"))),Pt.init(e,t)}),Ug=te("$ZodISODuration",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=G0),Pt.init(e,t)}),Wg=te("$ZodIPv4",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Y0),Pt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.format="ipv4"})}),Vg=te("$ZodIPv6",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=X0),Pt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.format="ipv6"}),e._zod.check=function(r){try{new URL("http://[".concat(r.value,"]"))}catch(u){r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Kg=te("$ZodCIDRv4",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=eg),Pt.init(e,t)}),Gg=te("$ZodCIDRv6",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=tg),Pt.init(e,t),e._zod.check=function(r){var u=r.value.split("/");try{if(u.length!==2)throw new Error;var a=dt(u,2),i=a[0],o=a[1];if(!o)throw new Error;var c=Number(o);if("".concat(c)!==o)throw new Error;if(c<0||c>128)throw new Error;new URL("http://[".concat(i,"]"))}catch(l){r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function $d(e){if(e==="")return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch(t){return!1}}var Jg=te("$ZodBase64",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=ng),Pt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.contentEncoding="base64"}),e._zod.check=function(r){$d(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),Qg=te("$ZodBase64URL",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Pd),Pt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.contentEncoding="base64url"}),e._zod.check=function(r){(function(u){if(!Pd.test(u))return!1;var a=u.replace(/[-_]/g,function(i){return i==="-"?"+":"/"});return $d(a.padEnd(4*Math.ceil(a.length/4),"="))})(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Yg=te("$ZodE164",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=ug),Pt.init(e,t)}),Xg=te("$ZodJWT",function(e,t){Pt.init(e,t),e._zod.check=function(n){(function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var a=r.split(".");if(a.length!==3)return!1;var i=dt(a,1)[0];if(!i)return!1;var o=JSON.parse(atob(i));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||u&&(!("alg"in o)||o.alg!==u))}catch(c){return!1}})(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Zd=te("$ZodNumber",function(e,t){var n;Ot.init(e,t),e._zod.pattern=(n=e._zod.bag.pattern)!==null&&n!==void 0?n:og,e._zod.parse=function(r,u){if(t.coerce)try{r.value=Number(r.value)}catch(o){}var a=r.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return r;var i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return r.issues.push(C({expected:"number",code:"invalid_type",input:a,inst:e},i?{received:i}:{})),r}}),ey=te("$ZodNumber",function(e,t){pg.init(e,t),Zd.init(e,t)}),ty=te("$ZodBoolean",function(e,t){Ot.init(e,t),e._zod.pattern=sg,e._zod.parse=function(n,r){if(t.coerce)try{n.value=!!n.value}catch(a){}var u=n.value;return typeof u=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:e}),n}}),ny=te("$ZodNull",function(e,t){Ot.init(e,t),e._zod.pattern=cg,e._zod.values=new Set([null]),e._zod.parse=function(n,r){var u=n.value;return u===null||n.issues.push({expected:"null",code:"invalid_type",input:u,inst:e}),n}}),ry=te("$ZodUnknown",function(e,t){Ot.init(e,t),e._zod.parse=function(n){return n}}),uy=te("$ZodNever",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){return n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n}});function qd(e,t,n){var r;e.issues.length&&(r=t.issues).push.apply(r,be(gu(n,e.issues))),t.value[n]=e.value}var ay=te("$ZodArray",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){var u=n.value;if(!Array.isArray(u))return n.issues.push({expected:"array",code:"invalid_type",input:u,inst:e}),n;n.value=Array(u.length);for(var a=[],i=function(c){var l=u[c],p=t.element._zod.run({value:l,issues:[]},r);p instanceof Promise?a.push(p.then(function(m){return qd(m,n,c)})):qd(p,n,c)},o=0;o<u.length;o++)i(o);return a.length?Promise.all(a).then(function(){return n}):n}});function Ji(e,t,n,r){var u;e.issues.length&&(u=t.issues).push.apply(u,be(gu(n,e.issues))),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Hd(e){for(var t=Object.keys(e.shape),n=0,r=t;n<r.length;n++){var u,a=r[n];if((u=e.shape)===null||u===void 0||(u=u[a])===null||u===void 0||(u=u._zod)===null||u===void 0||(u=u.traits)===null||u===void 0||!u.has("$ZodType"))throw new Error('Invalid element at key "'.concat(a,'": expected a Zod schema'))}var i,o=(i=e.shape,Object.keys(i).filter(function(c){return i[c]._zod.optin==="optional"&&i[c]._zod.optout==="optional"}));return C(C({},e),{},{keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)})}function Ud(e,t,n,r,u,a){for(var i=[],o=u.keySet,c=u.catchall._zod,l=c.def.type,p=function(){var y=v[m];if(o.has(y))return 0;if(l==="never")return i.push(y),0;var F=c.run({value:t[y],issues:[]},r);F instanceof Promise?e.push(F.then(function(D){return Ji(D,n,y,t)})):Ji(F,n,y,t)},m=0,v=Object.keys(t);m<v.length;m++)p();return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(function(){return n}):n}var iy=te("$ZodObject",function(e,t){Ot.init(e,t);var n=Object.getOwnPropertyDescriptor(t,"shape");if(n==null||!n.get){var r=t.shape;Object.defineProperty(t,"shape",{get:function(){var c=C({},r);return Object.defineProperty(t,"shape",{value:c}),c}})}var u=Ui(function(){return Hd(t)});gt(e._zod,"propValues",function(){var c=t.shape,l={};for(var p in c){var m=c[p]._zod;if(m.values){var v;(v=l[p])!==null&&v!==void 0||(l[p]=new Set);var y,F=ye(m.values);try{for(F.s();!(y=F.n()).done;){var D=y.value;l[p].add(D)}}catch(_){F.e(_)}finally{F.f()}}}return l});var a,i=Ha,o=t.catchall;e._zod.parse=function(c,l){a!=null||(a=u.value);var p=c.value;if(!i(p))return c.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),c;c.value={};var m,v=[],y=a.shape,F=ye(a.keys);try{var D=function(){var _=m.value,O=y[_]._zod.run({value:p[_],issues:[]},l);O instanceof Promise?v.push(O.then(function(w){return Ji(w,c,_,p)})):Ji(O,c,_,p)};for(F.s();!(m=F.n()).done;)D()}catch(_){F.e(_)}finally{F.f()}return o?Ud(v,p,c,l,u.value,e):v.length?Promise.all(v).then(function(){return c}):c}}),oy=te("$ZodObjectJIT",function(e,t){iy.init(e,t);var n,r,u=e._zod.parse,a=Ui(function(){return Hd(t)}),i=Ha,o=!_d.jitless,c=o&&z0.value,l=t.catchall;e._zod.parse=function(p,m){r!=null||(r=a.value);var v=p.value;return i(v)?o&&c&&(m==null?void 0:m.async)===!1&&m.jitless!==!0?(n||(n=(function(y){var F=new xg(["shape","payload","ctx"]),D=a.value,_=function(Z){var q=wd(Z);return"shape[".concat(q,"]._zod.run({ value: input[").concat(q,"], issues: [] }, ctx)")};F.write("const input = payload.value;");var O,w=Object.create(null),x=0,S=ye(D.keys);try{for(S.s();!(O=S.n()).done;)w[O.value]="key_".concat(x++)}catch(Z){S.e(Z)}finally{S.f()}F.write("const newResult = {};");var T,I=ye(D.keys);try{for(I.s();!(T=I.n()).done;){var B=T.value,d=w[B],H=wd(B);F.write("const ".concat(d," = ").concat(_(B),";")),F.write(`
|
|
98
|
+
if (`.concat(d,`.issues.length) {
|
|
99
|
+
payload.issues = payload.issues.concat(`).concat(d,`.issues.map(iss => ({
|
|
100
|
+
...iss,
|
|
101
|
+
path: iss.path ? [`).concat(H,", ...iss.path] : [").concat(H,`]
|
|
102
|
+
})));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
if (`).concat(d,`.value === undefined) {
|
|
107
|
+
if (`).concat(H,` in input) {
|
|
108
|
+
newResult[`).concat(H,`] = undefined;
|
|
109
|
+
}
|
|
110
|
+
} else {
|
|
111
|
+
newResult[`).concat(H,"] = ").concat(d,`.value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
`))}}catch(Z){I.e(Z)}finally{I.f()}F.write("payload.value = newResult;"),F.write("return payload;");var R=F.compile();return function(Z,q){return R(y,Z,q)}})(t.shape)),p=n(p,m),l?Ud([],v,p,m,r,e):p):u(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),p)}});function Wd(e,t,n,r){var u,a=ye(e);try{for(a.s();!(u=a.n()).done;){var i=u.value;if(i.issues.length===0)return t.value=i.value,t}}catch(c){a.e(c)}finally{a.f()}var o=e.filter(function(c){return!Hu(c)});return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(function(c){return c.issues.map(function(l){return Ur(l,r,qr())})})}),t)}var Vd=te("$ZodUnion",function(e,t){Ot.init(e,t),gt(e._zod,"optin",function(){return t.options.some(function(u){return u._zod.optin==="optional"})?"optional":void 0}),gt(e._zod,"optout",function(){return t.options.some(function(u){return u._zod.optout==="optional"})?"optional":void 0}),gt(e._zod,"values",function(){if(t.options.every(function(u){return u._zod.values}))return new Set(t.options.flatMap(function(u){return Array.from(u._zod.values)}))}),gt(e._zod,"pattern",function(){if(t.options.every(function(a){return a._zod.pattern})){var u=t.options.map(function(a){return a._zod.pattern});return new RegExp("^(".concat(u.map(function(a){return js(a.source)}).join("|"),")$"))}});var n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=function(u,a){if(n)return r(u,a);var i,o=!1,c=[],l=ye(t.options);try{for(l.s();!(i=l.n()).done;){var p=i.value._zod.run({value:u.value,issues:[]},a);if(p instanceof Promise)c.push(p),o=!0;else{if(p.issues.length===0)return p;c.push(p)}}}catch(m){l.e(m)}finally{l.f()}return o?Promise.all(c).then(function(m){return Wd(m,u,e,a)}):Wd(c,u,e,a)}}),sy=te("$ZodDiscriminatedUnion",function(e,t){Vd.init(e,t);var n=e._zod.parse;gt(e._zod,"propValues",function(){var u,a={},i=ye(t.options);try{for(i.s();!(u=i.n()).done;){var o=u.value,c=o._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(o),'"'));for(var l=0,p=Object.entries(c);l<p.length;l++){var m=dt(p[l],2),v=m[0],y=m[1];a[v]||(a[v]=new Set);var F,D=ye(y);try{for(D.s();!(F=D.n()).done;){var _=F.value;a[v].add(_)}}catch(O){D.e(O)}finally{D.f()}}}}catch(O){i.e(O)}finally{i.f()}return a});var r=Ui(function(){var u,a=t.options,i=new Map,o=ye(a);try{for(o.s();!(u=o.n()).done;){var c,l=u.value,p=(c=l._zod.propValues)===null||c===void 0?void 0:c[t.discriminator];if(!p||p.size===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(l),'"'));var m,v=ye(p);try{for(v.s();!(m=v.n()).done;){var y=m.value;if(i.has(y))throw new Error('Duplicate discriminator value "'.concat(String(y),'"'));i.set(y,l)}}catch(F){v.e(F)}finally{v.f()}}}catch(F){o.e(F)}finally{o.f()}return i});e._zod.parse=function(u,a){var i=u.value;if(!Ha(i))return u.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),u;var o=r.value.get(i==null?void 0:i[t.discriminator]);return o?o._zod.run(u,a):t.unionFallback?n(u,a):(u.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),u)}}),cy=te("$ZodIntersection",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){var u=n.value,a=t.left._zod.run({value:u,issues:[]},r),i=t.right._zod.run({value:u,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(function(o){var c=dt(o,2),l=c[0],p=c[1];return Kd(n,l,p)}):Kd(n,a,i)}});function $s(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Zu(e)&&Zu(t)){var n,r=Object.keys(t),u=Object.keys(e).filter(function(v){return r.indexOf(v)!==-1}),a=C(C({},e),t),i=ye(u);try{for(i.s();!(n=i.n()).done;){var o=n.value,c=$s(e[o],t[o]);if(!c.valid)return{valid:!1,mergeErrorPath:[o].concat(be(c.mergeErrorPath))};a[o]=c.data}}catch(v){i.e(v)}finally{i.f()}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};for(var l=[],p=0;p<e.length;p++){var m=$s(e[p],t[p]);if(!m.valid)return{valid:!1,mergeErrorPath:[p].concat(be(m.mergeErrorPath))};l.push(m.data)}return{valid:!0,data:l}}return{valid:!1,mergeErrorPath:[]}}function Kd(e,t,n){var r,u;if(t.issues.length&&(r=e.issues).push.apply(r,be(t.issues)),n.issues.length&&(u=e.issues).push.apply(u,be(n.issues)),Hu(e))return e;var a=$s(t.value,n.value);if(!a.valid)throw new Error("Unmergable intersection. Error path: "+"".concat(JSON.stringify(a.mergeErrorPath)));return e.value=a.data,e}var ly=te("$ZodRecord",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){var u=n.value;if(!Zu(u))return n.issues.push({expected:"record",code:"invalid_type",input:u,inst:e}),n;var a=[];if(t.keyType._zod.values){var i=t.keyType._zod.values;n.value={};var o,c,l=ye(i);try{var p=function(){var D=o.value;if(typeof D=="string"||typeof D=="number"||Qt(D)==="symbol"){var _,O=t.valueType._zod.run({value:u[D],issues:[]},r);O instanceof Promise?a.push(O.then(function(w){var x;w.issues.length&&(x=n.issues).push.apply(x,be(gu(D,w.issues))),n.value[D]=w.value})):(O.issues.length&&(_=n.issues).push.apply(_,be(gu(D,O.issues))),n.value[D]=O.value)}};for(l.s();!(o=l.n()).done;)p()}catch(D){l.e(D)}finally{l.f()}for(var m in u)i.has(m)||(c=c!=null?c:[]).push(m);c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:c})}else{n.value={};var v,y=ye(Reflect.ownKeys(u));try{var F=function(){var D=v.value;if(D==="__proto__")return 0;var _=t.keyType._zod.run({value:D,issues:[]},r);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(_.issues.length)return n.issues.push({code:"invalid_key",origin:"record",issues:_.issues.map(function(x){return Ur(x,r,qr())}),input:D,path:[D],inst:e}),n.value[_.value]=_.value,0;var O,w=t.valueType._zod.run({value:u[D],issues:[]},r);w instanceof Promise?a.push(w.then(function(x){var S;x.issues.length&&(S=n.issues).push.apply(S,be(gu(D,x.issues))),n.value[_.value]=x.value})):(w.issues.length&&(O=n.issues).push.apply(O,be(gu(D,w.issues))),n.value[_.value]=w.value)};for(y.s();!(v=y.n()).done;)F()}catch(D){y.e(D)}finally{y.f()}}return a.length?Promise.all(a).then(function(){return n}):n}}),fy=te("$ZodEnum",function(e,t){Ot.init(e,t);var n=Cd(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp("^(".concat(n.filter(function(u){return L0.has(Qt(u))}).map(function(u){return typeof u=="string"?qu(u):u.toString()}).join("|"),")$")),e._zod.parse=function(u,a){var i=u.value;return r.has(i)||u.issues.push({code:"invalid_value",values:n,input:i,inst:e}),u}}),dy=te("$ZodLiteral",function(e,t){if(Ot.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp("^(".concat(t.values.map(function(n){return typeof n=="string"?qu(n):n?qu(n.toString()):String(n)}).join("|"),")$")),e._zod.parse=function(n,r){var u=n.value;return e._zod.values.has(u)||n.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),n}}),py=te("$ZodTransform",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){if(r.direction==="backward")throw new Fd(e.constructor.name);var u=t.transform(n.value,n);if(r.async)return(u instanceof Promise?u:Promise.resolve(u)).then(function(a){return n.value=a,n});if(u instanceof Promise)throw new Mu;return n.value=u,n}});function Gd(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var hy=te("$ZodOptional",function(e,t){Ot.init(e,t),e._zod.optin="optional",e._zod.optout="optional",gt(e._zod,"values",function(){return t.innerType._zod.values?new Set([].concat(be(t.innerType._zod.values),[void 0])):void 0}),gt(e._zod,"pattern",function(){var n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(js(n.source),")?$")):void 0}),e._zod.parse=function(n,r){if(t.innerType._zod.optin==="optional"){var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return Gd(a,n.value)}):Gd(u,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),vy=te("$ZodNullable",function(e,t){Ot.init(e,t),gt(e._zod,"optin",function(){return t.innerType._zod.optin}),gt(e._zod,"optout",function(){return t.innerType._zod.optout}),gt(e._zod,"pattern",function(){var n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(js(n.source),"|null)$")):void 0}),gt(e._zod,"values",function(){return t.innerType._zod.values?new Set([].concat(be(t.innerType._zod.values),[null])):void 0}),e._zod.parse=function(n,r){return n.value===null?n:t.innerType._zod.run(n,r)}}),my=te("$ZodDefault",function(e,t){Ot.init(e,t),e._zod.optin="optional",gt(e._zod,"values",function(){return t.innerType._zod.values}),e._zod.parse=function(n,r){if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return Jd(a,t)}):Jd(u,t)}});function Jd(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var gy=te("$ZodPrefault",function(e,t){Ot.init(e,t),e._zod.optin="optional",gt(e._zod,"values",function(){return t.innerType._zod.values}),e._zod.parse=function(n,r){return r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r)}}),yy=te("$ZodNonOptional",function(e,t){Ot.init(e,t),gt(e._zod,"values",function(){var n=t.innerType._zod.values;return n?new Set(be(n).filter(function(r){return r!==void 0})):void 0}),e._zod.parse=function(n,r){var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return Qd(a,e)}):Qd(u,e)}});function Qd(e,t){return e.issues.length||e.value!==void 0||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Dy=te("$ZodCatch",function(e,t){Ot.init(e,t),gt(e._zod,"optin",function(){return t.innerType._zod.optin}),gt(e._zod,"optout",function(){return t.innerType._zod.optout}),gt(e._zod,"values",function(){return t.innerType._zod.values}),e._zod.parse=function(n,r){if(r.direction==="backward")return t.innerType._zod.run(n,r);var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return n.value=a.value,a.issues.length&&(n.value=t.catchValue(C(C({},n),{},{error:{issues:a.issues.map(function(i){return Ur(i,r,qr())})},input:n.value})),n.issues=[]),n}):(n.value=u.value,u.issues.length&&(n.value=t.catchValue(C(C({},n),{},{error:{issues:u.issues.map(function(a){return Ur(a,r,qr())})},input:n.value})),n.issues=[]),n)}}),by=te("$ZodPipe",function(e,t){Ot.init(e,t),gt(e._zod,"values",function(){return t.in._zod.values}),gt(e._zod,"optin",function(){return t.in._zod.optin}),gt(e._zod,"optout",function(){return t.out._zod.optout}),gt(e._zod,"propValues",function(){return t.in._zod.propValues}),e._zod.parse=function(n,r){if(r.direction==="backward"){var u=t.out._zod.run(n,r);return u instanceof Promise?u.then(function(i){return Qi(i,t.in,r)}):Qi(u,t.in,r)}var a=t.in._zod.run(n,r);return a instanceof Promise?a.then(function(i){return Qi(i,t.out,r)}):Qi(a,t.out,r)}});function Qi(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Ay=te("$ZodReadonly",function(e,t){Ot.init(e,t),gt(e._zod,"propValues",function(){return t.innerType._zod.propValues}),gt(e._zod,"values",function(){return t.innerType._zod.values}),gt(e._zod,"optin",function(){return t.innerType._zod.optin}),gt(e._zod,"optout",function(){return t.innerType._zod.optout}),e._zod.parse=function(n,r){if(r.direction==="backward")return t.innerType._zod.run(n,r);var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(Yd):Yd(u)}});function Yd(e){return e.value=Object.freeze(e.value),e}var Ey=te("$ZodLazy",function(e,t){Ot.init(e,t),gt(e._zod,"innerType",function(){return t.getter()}),gt(e._zod,"pattern",function(){return e._zod.innerType._zod.pattern}),gt(e._zod,"propValues",function(){return e._zod.innerType._zod.propValues}),gt(e._zod,"optin",function(){var n;return(n=e._zod.innerType._zod.optin)!==null&&n!==void 0?n:void 0}),gt(e._zod,"optout",function(){var n;return(n=e._zod.innerType._zod.optout)!==null&&n!==void 0?n:void 0}),e._zod.parse=function(n,r){return e._zod.innerType._zod.run(n,r)}}),Fy=te("$ZodCustom",function(e,t){Yt.init(e,t),Ot.init(e,t),e._zod.parse=function(n,r){return n},e._zod.check=function(n){var r=n.value,u=t.fn(r);if(u instanceof Promise)return u.then(function(a){return Xd(a,n,r,e)});Xd(u,n,r,e)}});function Xd(e,t,n,r){if(!e){var u,a={code:"custom",input:n,inst:r,path:be((u=r._zod.def.path)!==null&&u!==void 0?u:[]),continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(Ua(a))}}var ep=Pe(function e(){Be(this,e),this._map=new WeakMap,this._idmap=new Map},[{key:"add",value:function(e){var t=arguments.length<=1?void 0:arguments[1];if(this._map.set(e,t),t&&Qt(t)==="object"&&"id"in t){if(this._idmap.has(t.id))throw new Error("ID ".concat(t.id," already exists in the registry"));this._idmap.set(t.id,e)}return this}},{key:"clear",value:function(){return this._map=new WeakMap,this._idmap=new Map,this}},{key:"remove",value:function(e){var t=this._map.get(e);return t&&Qt(t)==="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}},{key:"get",value:function(e){var t=e._zod.parent;if(t){var n,r=C({},(n=this.get(t))!==null&&n!==void 0?n:{});delete r.id;var u=C(C({},r),this._map.get(e));return Object.keys(u).length?u:void 0}return this._map.get(e)}},{key:"has",value:function(e){return this._map.has(e)}}]),Wa=new ep;function tp(e,t){return new e(C({type:"string",format:"guid",check:"string_format",abort:!1},xe(t)))}function Yi(e,t){return new zd(C(C({check:"less_than"},xe(t)),{},{value:e,inclusive:!1}))}function Va(e,t){return new zd(C(C({check:"less_than"},xe(t)),{},{value:e,inclusive:!0}))}function Xi(e,t){return new Ld(C(C({check:"greater_than"},xe(t)),{},{value:e,inclusive:!1}))}function Ka(e,t){return new Ld(C(C({check:"greater_than"},xe(t)),{},{value:e,inclusive:!0}))}function Zs(e,t){return new dg(C(C({check:"multiple_of"},xe(t)),{},{value:e}))}function qs(e,t){return new gg(C(C({check:"max_length"},xe(t)),{},{maximum:e}))}function Ga(e,t){return new yg(C(C({check:"min_length"},xe(t)),{},{minimum:e}))}function Hs(e,t){return new Dg(C(C({check:"length_equals"},xe(t)),{},{length:e}))}function np(e,t){return new bg(C(C({check:"string_format",format:"regex"},xe(t)),{},{pattern:e}))}function rp(e){return new Ag(C({check:"string_format",format:"lowercase"},xe(e)))}function up(e){return new Eg(C({check:"string_format",format:"uppercase"},xe(e)))}function ap(e,t){return new Fg(C(C({check:"string_format",format:"includes"},xe(t)),{},{includes:e}))}function ip(e,t){return new _g(C(C({check:"string_format",format:"starts_with"},xe(t)),{},{prefix:e}))}function op(e,t){return new Cg(C(C({check:"string_format",format:"ends_with"},xe(t)),{},{suffix:e}))}function Uu(e){return new Sg({check:"overwrite",tx:e})}function sp(e){return Uu(function(t){return t.normalize(e)})}function cp(){return Uu(function(e){return e.trim()})}function lp(){return Uu(function(e){return e.toLowerCase()})}function fp(){return Uu(function(e){return e.toUpperCase()})}var dp=Pe(function e(t){var n,r,u,a,i;Be(this,e),this.counter=0,this.metadataRegistry=(n=t==null?void 0:t.metadata)!==null&&n!==void 0?n:Wa,this.target=(r=t==null?void 0:t.target)!==null&&r!==void 0?r:"draft-2020-12",this.unrepresentable=(u=t==null?void 0:t.unrepresentable)!==null&&u!==void 0?u:"throw",this.override=(a=t==null?void 0:t.override)!==null&&a!==void 0?a:function(){},this.io=(i=t==null?void 0:t.io)!==null&&i!==void 0?i:"output",this.seen=new Map},[{key:"process",value:function(e){var t,n,r,u,a=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:[],schemaPath:[]},o=e._zod.def,c=this.seen.get(e);if(c)return c.count++,i.schemaPath.includes(e)&&(c.cycle=i.path),c.schema;var l={schema:{},count:1,cycle:void 0,path:i.path};this.seen.set(e,l);var p=(t=(n=e._zod).toJSONSchema)===null||t===void 0?void 0:t.call(n);if(p)l.schema=p;else{var m=C(C({},i),{},{schemaPath:[].concat(be(i.schemaPath),[e]),path:i.path}),v=e._zod.parent;if(v)l.ref=v,this.process(v,m),this.seen.get(v).isParent=!0;else{var y=l.schema;switch(o.type){case"string":var F=y;F.type="string";var D,_=e._zod.bag,O=_.minimum,w=_.maximum,x=_.format,S=_.patterns,T=_.contentEncoding;if(typeof O=="number"&&(F.minLength=O),typeof w=="number"&&(F.maxLength=w),x&&(F.format=(D={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""}[x])!==null&&D!==void 0?D:x,F.format===""&&delete F.format),T&&(F.contentEncoding=T),S&&S.size>0){var I=be(S);I.length===1?F.pattern=I[0].source:I.length>1&&(l.schema.allOf=be(I.map(function(rt){return C(C({},a.target==="draft-7"||a.target==="draft-4"||a.target==="openapi-3.0"?{type:"string"}:{}),{},{pattern:rt.source})})))}break;case"number":var B=y,d=e._zod.bag,H=d.minimum,R=d.maximum,Z=d.format,q=d.multipleOf,G=d.exclusiveMaximum,L=d.exclusiveMinimum;typeof Z=="string"&&Z.includes("int")?B.type="integer":B.type="number",typeof L=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(B.minimum=L,B.exclusiveMinimum=!0):B.exclusiveMinimum=L),typeof H=="number"&&(B.minimum=H,typeof L=="number"&&this.target!=="draft-4"&&(L>=H?delete B.minimum:delete B.exclusiveMinimum)),typeof G=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(B.maximum=G,B.exclusiveMaximum=!0):B.exclusiveMaximum=G),typeof R=="number"&&(B.maximum=R,typeof G=="number"&&this.target!=="draft-4"&&(G<=R?delete B.maximum:delete B.exclusiveMaximum)),typeof q=="number"&&(B.multipleOf=q);break;case"boolean":case"success":y.type="boolean";break;case"bigint":if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break;case"symbol":if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break;case"null":this.target==="openapi-3.0"?(y.type="string",y.nullable=!0,y.enum=[null]):y.type="null";break;case"any":case"unknown":break;case"undefined":if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break;case"void":if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break;case"never":y.not={};break;case"date":if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break;case"array":var ne=y,Q=e._zod.bag,$=Q.minimum,Y=Q.maximum;typeof $=="number"&&(ne.minItems=$),typeof Y=="number"&&(ne.maxItems=Y),ne.type="array",ne.items=this.process(o.element,C(C({},m),{},{path:[].concat(be(m.path),["items"])}));break;case"object":var re,me=y;me.type="object",me.properties={};var se=o.shape;for(var K in se)me.properties[K]=this.process(se[K],C(C({},m),{},{path:[].concat(be(m.path),["properties",K])}));var V=new Set(Object.keys(se)),ue=new Set(be(V).filter(function(rt){var gn=o.shape[rt]._zod;return a.io==="input"?gn.optin===void 0:gn.optout===void 0}));ue.size>0&&(me.required=Array.from(ue)),((re=o.catchall)===null||re===void 0?void 0:re._zod.def.type)==="never"?me.additionalProperties=!1:o.catchall?o.catchall&&(me.additionalProperties=this.process(o.catchall,C(C({},m),{},{path:[].concat(be(m.path),["additionalProperties"])}))):this.io==="output"&&(me.additionalProperties=!1);break;case"union":var oe=y,ce=o.options.map(function(rt,gn){return a.process(rt,C(C({},m),{},{path:[].concat(be(m.path),["anyOf",gn])}))});oe.anyOf=ce;break;case"intersection":var ee=y,he=this.process(o.left,C(C({},m),{},{path:[].concat(be(m.path),["allOf",0])})),Ce=this.process(o.right,C(C({},m),{},{path:[].concat(be(m.path),["allOf",1])})),Re=function(rt){return"allOf"in rt&&Object.keys(rt).length===1},ge=[].concat(be(Re(he)?he.allOf:[he]),be(Re(Ce)?Ce.allOf:[Ce]));ee.allOf=ge;break;case"tuple":var Te=y;Te.type="array";var He=this.target==="draft-2020-12"?"prefixItems":"items",nt=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",Ge=o.items.map(function(rt,gn){return a.process(rt,C(C({},m),{},{path:[].concat(be(m.path),[He,gn])}))}),yt=o.rest?this.process(o.rest,C(C({},m),{},{path:[].concat(be(m.path),[nt],be(this.target==="openapi-3.0"?[o.items.length]:[]))})):null;this.target==="draft-2020-12"?(Te.prefixItems=Ge,yt&&(Te.items=yt)):this.target==="openapi-3.0"?(Te.items={anyOf:Ge},yt&&Te.items.anyOf.push(yt),Te.minItems=Ge.length,yt||(Te.maxItems=Ge.length)):(Te.items=Ge,yt&&(Te.additionalItems=yt));var Dt=e._zod.bag,mn=Dt.minimum,Xt=Dt.maximum;typeof mn=="number"&&(Te.minItems=mn),typeof Xt=="number"&&(Te.maxItems=Xt);break;case"record":var un=y;un.type="object",this.target!=="draft-7"&&this.target!=="draft-2020-12"||(un.propertyNames=this.process(o.keyType,C(C({},m),{},{path:[].concat(be(m.path),["propertyNames"])}))),un.additionalProperties=this.process(o.valueType,C(C({},m),{},{path:[].concat(be(m.path),["additionalProperties"])}));break;case"map":if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break;case"set":if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break;case"enum":var Gn=y,Mt=Cd(o.entries);Mt.every(function(rt){return typeof rt=="number"})&&(Gn.type="number"),Mt.every(function(rt){return typeof rt=="string"})&&(Gn.type="string"),Gn.enum=Mt;break;case"literal":var Gt,Jt=y,en=[],ke=ye(o.values);try{for(ke.s();!(Gt=ke.n()).done;){var Ut=Gt.value;if(Ut===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Ut=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");en.push(Number(Ut))}else en.push(Ut)}}catch(rt){ke.e(rt)}finally{ke.f()}if(en.length!==0)if(en.length===1){var Bt=en[0];Jt.type=Bt===null?"null":Qt(Bt),this.target==="draft-4"||this.target==="openapi-3.0"?Jt.enum=[Bt]:Jt.const=Bt}else en.every(function(rt){return typeof rt=="number"})&&(Jt.type="number"),en.every(function(rt){return typeof rt=="string"})&&(Jt.type="string"),en.every(function(rt){return typeof rt=="boolean"})&&(Jt.type="string"),en.every(function(rt){return rt===null})&&(Jt.type="null"),Jt.enum=en;break;case"file":var sr=y,cr={type:"string",format:"binary",contentEncoding:"binary"},Jr=e._zod.bag,Qr=Jr.minimum,Fn=Jr.maximum,$t=Jr.mime;Qr!==void 0&&(cr.minLength=Qr),Fn!==void 0&&(cr.maxLength=Fn),$t?$t.length===1?(cr.contentMediaType=$t[0],Object.assign(sr,cr)):sr.anyOf=$t.map(function(rt){return C(C({},cr),{},{contentMediaType:rt})}):Object.assign(sr,cr);break;case"transform":if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break;case"nullable":var Jn=this.process(o.innerType,m);this.target==="openapi-3.0"?(l.ref=o.innerType,y.nullable=!0):y.anyOf=[Jn,{type:"null"}];break;case"nonoptional":case"promise":case"optional":this.process(o.innerType,m),l.ref=o.innerType;break;case"default":this.process(o.innerType,m),l.ref=o.innerType,y.default=JSON.parse(JSON.stringify(o.defaultValue));break;case"prefault":this.process(o.innerType,m),l.ref=o.innerType,this.io==="input"&&(y._prefault=JSON.parse(JSON.stringify(o.defaultValue)));break;case"catch":var Nn;this.process(o.innerType,m),l.ref=o.innerType;try{Nn=o.catchValue(void 0)}catch(rt){throw new Error("Dynamic catch values are not supported in JSON Schema")}y.default=Nn;break;case"nan":if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break;case"template_literal":var lr=y,xn=e._zod.pattern;if(!xn)throw new Error("Pattern not found in template literal");lr.type="string",lr.pattern=xn.source;break;case"pipe":var fr=this.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;this.process(fr,m),l.ref=fr;break;case"readonly":this.process(o.innerType,m),l.ref=o.innerType,y.readOnly=!0;break;case"lazy":var Qn=e._zod.innerType;this.process(Qn,m),l.ref=Qn;break;case"custom":if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break;case"function":if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")}}}var kr=this.metadataRegistry.get(e);return kr&&Object.assign(l.schema,kr),this.io==="input"&&hn(e)&&(delete l.schema.examples,delete l.schema.default),this.io==="input"&&l.schema._prefault&&((r=(u=l.schema).default)!==null&&r!==void 0||(u.default=l.schema._prefault)),delete l.schema._prefault,this.seen.get(e).schema}},{key:"emit",value:function(e,t){var n,r,u,a,i,o,c=this,l={cycles:(n=t==null?void 0:t.cycles)!==null&&n!==void 0?n:"ref",reused:(r=t==null?void 0:t.reused)!==null&&r!==void 0?r:"inline",external:(u=t==null?void 0:t.external)!==null&&u!==void 0?u:void 0},p=this.seen.get(e);if(!p)throw new Error("Unprocessed schema. This is a bug in Zod.");var m=function(Y){if(!Y[1].schema.$ref){var re=Y[1],me=(function(oe){var ce,ee=c.target==="draft-2020-12"?"$defs":"definitions";if(l.external){var he,Ce,Re,ge,Te=(he=l.external.registry.get(oe[0]))===null||he===void 0?void 0:he.id,He=(Ce=l.external.uri)!==null&&Ce!==void 0?Ce:function(Dt){return Dt};if(Te)return{ref:He(Te)};var nt=(Re=(ge=oe[1].defId)!==null&&ge!==void 0?ge:oe[1].schema.id)!==null&&Re!==void 0?Re:"schema".concat(c.counter++);return oe[1].defId=nt,{defId:nt,ref:"".concat(He("__shared"),"#/").concat(ee,"/").concat(nt)}}if(oe[1]===p)return{ref:"#"};var Ge="".concat("#","/").concat(ee,"/"),yt=(ce=oe[1].schema.id)!==null&&ce!==void 0?ce:"__schema".concat(c.counter++);return{defId:yt,ref:Ge+yt}})(Y),se=me.ref,K=me.defId;re.def=C({},re.schema),K&&(re.defId=K);var V=re.schema;for(var ue in V)delete V[ue];V.$ref=se}};if(l.cycles==="throw"){var v,y=ye(this.seen.entries());try{for(y.s();!(v=y.n()).done;){var F,D=v.value[1];if(D.cycle)throw new Error("Cycle detected: "+"#/".concat((F=D.cycle)===null||F===void 0?void 0:F.join("/"),"/<root>")+'\n\nSet the `cycles` parameter to `"ref"` to resolve cyclical schemas with defs.')}}catch(Y){y.e(Y)}finally{y.f()}}var _,O=ye(this.seen.entries());try{for(O.s();!(_=O.n()).done;){var w,x=_.value,S=x[1];if(e!==x[0]){if(l.external){var T,I=(T=l.external.registry.get(x[0]))===null||T===void 0?void 0:T.id;if(e!==x[0]&&I){m(x);continue}}(!((w=this.metadataRegistry.get(x[0]))===null||w===void 0)&&w.id||S.cycle||S.count>1&&l.reused==="ref")&&m(x)}else m(x)}}catch(Y){O.e(Y)}finally{O.f()}var B,d=function(Y,re){var me,se,K=c.seen.get(Y),V=(me=K.def)!==null&&me!==void 0?me:K.schema,ue=C({},V);if(K.ref!==null){var oe=K.ref;if(K.ref=null,oe){d(oe,re);var ce,ee=c.seen.get(oe).schema;!ee.$ref||re.target!=="draft-7"&&re.target!=="draft-4"&&re.target!=="openapi-3.0"?(Object.assign(V,ee),Object.assign(V,ue)):(V.allOf=(ce=V.allOf)!==null&&ce!==void 0?ce:[],V.allOf.push(ee))}K.isParent||c.override({zodSchema:Y,jsonSchema:V,path:(se=K.path)!==null&&se!==void 0?se:[]})}},H=ye(be(this.seen.entries()).reverse());try{for(H.s();!(B=H.n()).done;){var R=B.value;d(R[0],{target:this.target})}}catch(Y){H.e(Y)}finally{H.f()}var Z={};if(this.target==="draft-2020-12"?Z.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?Z.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?Z.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn("Invalid target: ".concat(this.target)),(a=l.external)!==null&&a!==void 0&&a.uri){var q,G=(q=l.external.registry.get(e))===null||q===void 0?void 0:q.id;if(!G)throw new Error("Schema is missing an `id` property");Z.$id=l.external.uri(G)}Object.assign(Z,p.def);var L,ne=(i=(o=l.external)===null||o===void 0?void 0:o.defs)!==null&&i!==void 0?i:{},Q=ye(this.seen.entries());try{for(Q.s();!(L=Q.n()).done;){var $=L.value[1];$.def&&$.defId&&(ne[$.defId]=$.def)}}catch(Y){Q.e(Y)}finally{Q.f()}l.external||Object.keys(ne).length>0&&(this.target==="draft-2020-12"?Z.$defs=ne:Z.definitions=ne);try{return JSON.parse(JSON.stringify(Z))}catch(Y){throw new Error("Error converting schema to JSON.")}}}]);function hn(e,t){var n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);var r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":case"custom":case"success":case"catch":case"function":return!1;case"array":return hn(r.element,n);case"object":for(var u in r.shape)if(hn(r.shape[u],n))return!0;return!1;case"union":var a,i=ye(r.options);try{for(i.s();!(a=i.n()).done;)if(hn(a.value,n))return!0}catch(l){i.e(l)}finally{i.f()}return!1;case"intersection":return hn(r.left,n)||hn(r.right,n);case"tuple":var o,c=ye(r.items);try{for(c.s();!(o=c.n()).done;)if(hn(o.value,n))return!0}catch(l){c.e(l)}finally{c.f()}return!(!r.rest||!hn(r.rest,n));case"record":case"map":return hn(r.keyType,n)||hn(r.valueType,n);case"set":return hn(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":case"default":case"prefault":return hn(r.innerType,n);case"lazy":return hn(r.getter(),n);case"transform":return!0;case"pipe":return hn(r.in,n)||hn(r.out,n)}throw new Error("Unknown schema type: ".concat(r.type))}var Fr=Object.freeze({__proto__:null,endsWith:op,gt:Xi,gte:Ka,includes:ap,length:Hs,lowercase:rp,lt:Yi,lte:Va,maxLength:qs,maxSize:function(e,t){return new hg(C(C({check:"max_size"},xe(t)),{},{maximum:e}))},mime:function(e,t){return new wg(C({check:"mime_type",mime:e},xe(t)))},minLength:Ga,minSize:function(e,t){return new vg(C(C({check:"min_size"},xe(t)),{},{minimum:e}))},multipleOf:Zs,negative:function(e){return Yi(0,e)},nonnegative:function(e){return Ka(0,e)},nonpositive:function(e){return Va(0,e)},normalize:sp,overwrite:Uu,positive:function(e){return Xi(0,e)},property:function(e,t,n){return new kg(C({check:"property",property:e,schema:t},xe(n)))},regex:np,size:function(e,t){return new mg(C(C({check:"size_equals"},xe(t)),{},{size:e}))},startsWith:ip,toLowerCase:lp,toUpperCase:fp,trim:cp,uppercase:up}),_y=te("ZodISODateTime",function(e,t){Zg.init(e,t),zt.init(e,t)}),Cy=te("ZodISODate",function(e,t){qg.init(e,t),zt.init(e,t)}),ky=te("ZodISOTime",function(e,t){Hg.init(e,t),zt.init(e,t)}),wy=te("ZodISODuration",function(e,t){Ug.init(e,t),zt.init(e,t)}),Bn=te("ZodError",function(e,t){Od.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:function(n){return(function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(o){return o.message},a={_errors:[]},i=function(o){var c,l=ye(o.issues);try{for(l.s();!(c=l.n()).done;){var p=c.value;if(p.code==="invalid_union"&&p.errors.length)p.errors.map(function(F){return i({issues:F})});else if(p.code==="invalid_key")i({issues:p.issues});else if(p.code==="invalid_element")i({issues:p.issues});else if(p.path.length===0)a._errors.push(u(p));else for(var m=a,v=0;v<p.path.length;){var y=p.path[v];v===p.path.length-1?(m[y]=m[y]||{_errors:[]},m[y]._errors.push(u(p))):m[y]=m[y]||{_errors:[]},m=m[y],v++}}}catch(F){l.e(F)}finally{l.f()}};return i(r),a})(e,n)}},flatten:{value:function(n){return(function(r){var u,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(p){return p.message},i={},o=[],c=ye(r.issues);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.path.length>0?(i[l.path[0]]=i[l.path[0]]||[],i[l.path[0]].push(a(l))):o.push(a(l))}}catch(p){c.e(p)}finally{c.f()}return{formErrors:o,fieldErrors:i}})(e,n)}},addIssue:{value:function(n){e.issues.push(n),e.message=JSON.stringify(e.issues,Ps,2)}},addIssues:{value:function(n){var r;(r=e.issues).push.apply(r,be(n)),e.message=JSON.stringify(e.issues,Ps,2)}},isEmpty:{get:function(){return e.issues.length===0}}})},{Parent:Error}),Sy=zs(Bn),xy=Ls(Bn),Ty=Vi(Bn),pp=Ki(Bn),Oy=(function(e){return function(t,n,r){var u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return zs(e)(t,n,u)}})(Bn),Iy=(function(e){return function(t,n,r){return zs(e)(t,n,r)}})(Bn),By=(function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){var i;return Ae().w(function(o){for(;;)if(o.n===0)return i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"},o.a(2,Ls(e)(r,u,i))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(Bn),Py=(function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,Ls(e)(r,u,a))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(Bn),jy=(function(e){return function(t,n,r){var u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Vi(e)(t,n,u)}})(Bn),Ny=(function(e){return function(t,n,r){return Vi(e)(t,n,r)}})(Bn),Ry=(function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){var i;return Ae().w(function(o){for(;;)if(o.n===0)return i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"},o.a(2,Ki(e)(r,u,i))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(Bn),zy=(function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,Ki(e)(r,u,a))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(Bn),jt=te("ZodType",function(e,t){return Ot.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=function(){for(var n,r=arguments.length,u=new Array(r),a=0;a<r;a++)u[a]=arguments[a];return e.clone(mu(t,{checks:[].concat(be((n=t.checks)!==null&&n!==void 0?n:[]),be(u.map(function(i){return typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i})))}))},e.clone=function(n,r){return Hr(e,n,r)},e.brand=function(){return e},e.register=function(n,r){return n.add(e,r),e},e.parse=function(n,r){return Sy(e,n,r,{callee:e.parse})},e.safeParse=function(n,r){return Ty(e,n,r)},e.parseAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,xy(e,u,a,{callee:e.parseAsync}))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.safeParseAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,pp(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.spa=e.safeParseAsync,e.encode=function(n,r){return Oy(e,n,r)},e.decode=function(n,r){return Iy(e,n,r)},e.encodeAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,By(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.decodeAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,Py(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.safeEncode=function(n,r){return jy(e,n,r)},e.safeDecode=function(n,r){return Ny(e,n,r)},e.safeEncodeAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,Ry(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.safeDecodeAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,zy(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.refine=function(n,r){return e.check((function(u){return(function(a,i,o){return new Vs(C({type:"custom",check:"custom",fn:i},xe(o)))})(0,u,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})})(n,r))},e.superRefine=function(n){return e.check((function(r){var u=(function(a){var i=new Yt(C({check:"custom"},xe(void 0)));return i._zod.check=a,i})(function(a){return a.addIssue=function(i){if(typeof i=="string")a.issues.push(Ua(i,a.value,u._zod.def));else{var o,c,l,p,m=i;m.fatal&&(m.continue=!1),(o=m.code)!==null&&o!==void 0||(m.code="custom"),(c=m.input)!==null&&c!==void 0||(m.input=a.value),(l=m.inst)!==null&&l!==void 0||(m.inst=u),(p=m.continue)!==null&&p!==void 0||(m.continue=!u._zod.def.abort),a.issues.push(Ua(m))}},r(a.value,a)});return u})(n))},e.overwrite=function(n){return e.check(Uu(n))},e.optional=function(){return Fp(e)},e.nullable=function(){return _p(e)},e.nullish=function(){return Fp(_p(e))},e.nonoptional=function(n){return(function(r,u){return new Cp(C({type:"nonoptional",innerType:r},xe(u)))})(e,n)},e.array=function(){return Wu(e)},e.or=function(n){return Pn([e,n])},e.and=function(n){return new dD({type:"intersection",left:e,right:n})},e.transform=function(n){return kp(e,new vD({type:"transform",transform:n}))},e.default=function(n){return r=n,new gD({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():xd(r)}});var r},e.prefault=function(n){return r=n,new yD({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():xd(r)}});var r},e.catch=function(n){return new DD({type:"catch",innerType:e,catchValue:typeof(r=n)=="function"?r:function(){return r}});var r},e.pipe=function(n){return kp(e,n)},e.readonly=function(){return new AD({type:"readonly",innerType:e})},e.describe=function(n){var r=e.clone();return Wa.add(r,{description:n}),r},Object.defineProperty(e,"description",{get:function(){var n;return(n=Wa.get(e))===null||n===void 0?void 0:n.description},configurable:!0}),e.meta=function(){if(arguments.length===0)return Wa.get(e);var n=e.clone();return Wa.add(n,arguments.length<=0?void 0:arguments[0]),n},e.isOptional=function(){return e.safeParse(void 0).success},e.isNullable=function(){return e.safeParse(null).success},e}),hp=te("_ZodString",function(e,t){var n,r,u;Ms.init(e,t),jt.init(e,t);var a=e._zod.bag;e.format=(n=a.format)!==null&&n!==void 0?n:null,e.minLength=(r=a.minimum)!==null&&r!==void 0?r:null,e.maxLength=(u=a.maximum)!==null&&u!==void 0?u:null,e.regex=function(){return e.check(np.apply(Fr,arguments))},e.includes=function(){return e.check(ap.apply(Fr,arguments))},e.startsWith=function(){return e.check(ip.apply(Fr,arguments))},e.endsWith=function(){return e.check(op.apply(Fr,arguments))},e.min=function(){return e.check(Ga.apply(Fr,arguments))},e.max=function(){return e.check(qs.apply(Fr,arguments))},e.length=function(){return e.check(Hs.apply(Fr,arguments))},e.nonempty=function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];return e.check(Ga.apply(Fr,[1].concat(o)))},e.lowercase=function(i){return e.check(rp(i))},e.uppercase=function(i){return e.check(up(i))},e.trim=function(){return e.check(cp())},e.normalize=function(){return e.check(sp.apply(Fr,arguments))},e.toLowerCase=function(){return e.check(lp())},e.toUpperCase=function(){return e.check(fp())}}),Ly=te("ZodString",function(e,t){Ms.init(e,t),hp.init(e,t),e.email=function(n){return e.check((function(r,u){return new My(C({type:"string",format:"email",check:"string_format",abort:!1},xe(u)))})(0,n))},e.url=function(n){return e.check((function(r,u){return new $y(C({type:"string",format:"url",check:"string_format",abort:!1},xe(u)))})(0,n))},e.jwt=function(n){return e.check((function(r,u){return new nD(C({type:"string",format:"jwt",check:"string_format",abort:!1},xe(u)))})(0,n))},e.emoji=function(n){return e.check((function(r,u){return new Zy(C({type:"string",format:"emoji",check:"string_format",abort:!1},xe(u)))})(0,n))},e.guid=function(n){return e.check(tp(vp,n))},e.uuid=function(n){return e.check((function(r,u){return new eo(C({type:"string",format:"uuid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.uuidv4=function(n){return e.check((function(r,u){return new eo(C({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},xe(u)))})(0,n))},e.uuidv6=function(n){return e.check((function(r,u){return new eo(C({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},xe(u)))})(0,n))},e.uuidv7=function(n){return e.check((function(r,u){return new eo(C({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},xe(u)))})(0,n))},e.nanoid=function(n){return e.check((function(r,u){return new qy(C({type:"string",format:"nanoid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.guid=function(n){return e.check(tp(vp,n))},e.cuid=function(n){return e.check((function(r,u){return new Hy(C({type:"string",format:"cuid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.cuid2=function(n){return e.check((function(r,u){return new Uy(C({type:"string",format:"cuid2",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ulid=function(n){return e.check((function(r,u){return new Wy(C({type:"string",format:"ulid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.base64=function(n){return e.check((function(r,u){return new Xy(C({type:"string",format:"base64",check:"string_format",abort:!1},xe(u)))})(0,n))},e.base64url=function(n){return e.check((function(r,u){return new eD(C({type:"string",format:"base64url",check:"string_format",abort:!1},xe(u)))})(0,n))},e.xid=function(n){return e.check((function(r,u){return new Vy(C({type:"string",format:"xid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ksuid=function(n){return e.check((function(r,u){return new Ky(C({type:"string",format:"ksuid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ipv4=function(n){return e.check((function(r,u){return new Gy(C({type:"string",format:"ipv4",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ipv6=function(n){return e.check((function(r,u){return new Jy(C({type:"string",format:"ipv6",check:"string_format",abort:!1},xe(u)))})(0,n))},e.cidrv4=function(n){return e.check((function(r,u){return new Qy(C({type:"string",format:"cidrv4",check:"string_format",abort:!1},xe(u)))})(0,n))},e.cidrv6=function(n){return e.check((function(r,u){return new Yy(C({type:"string",format:"cidrv6",check:"string_format",abort:!1},xe(u)))})(0,n))},e.e164=function(n){return e.check((function(r,u){return new tD(C({type:"string",format:"e164",check:"string_format",abort:!1},xe(u)))})(0,n))},e.datetime=function(n){return e.check((function(r){return(function(u,a){return new _y(C({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},xe(a)))})(0,r)})(n))},e.date=function(n){return e.check((function(r){return(function(u,a){return new Cy(C({type:"string",format:"date",check:"string_format"},xe(a)))})(0,r)})(n))},e.time=function(n){return e.check((function(r){return(function(u,a){return new ky(C({type:"string",format:"time",check:"string_format",precision:null},xe(a)))})(0,r)})(n))},e.duration=function(n){return e.check((function(r){return(function(u,a){return new wy(C({type:"string",format:"duration",check:"string_format"},xe(a)))})(0,r)})(n))}});function ze(e){return(function(t,n){return new Ly(C({type:"string"},xe(n)))})(0,e)}var zt=te("ZodStringFormat",function(e,t){Pt.init(e,t),hp.init(e,t)}),My=te("ZodEmail",function(e,t){Bg.init(e,t),zt.init(e,t)}),vp=te("ZodGUID",function(e,t){Og.init(e,t),zt.init(e,t)}),eo=te("ZodUUID",function(e,t){Ig.init(e,t),zt.init(e,t)}),$y=te("ZodURL",function(e,t){Pg.init(e,t),zt.init(e,t)}),Zy=te("ZodEmoji",function(e,t){jg.init(e,t),zt.init(e,t)}),qy=te("ZodNanoID",function(e,t){Ng.init(e,t),zt.init(e,t)}),Hy=te("ZodCUID",function(e,t){Rg.init(e,t),zt.init(e,t)}),Uy=te("ZodCUID2",function(e,t){zg.init(e,t),zt.init(e,t)}),Wy=te("ZodULID",function(e,t){Lg.init(e,t),zt.init(e,t)}),Vy=te("ZodXID",function(e,t){Mg.init(e,t),zt.init(e,t)}),Ky=te("ZodKSUID",function(e,t){$g.init(e,t),zt.init(e,t)}),Gy=te("ZodIPv4",function(e,t){Wg.init(e,t),zt.init(e,t)}),Jy=te("ZodIPv6",function(e,t){Vg.init(e,t),zt.init(e,t)}),Qy=te("ZodCIDRv4",function(e,t){Kg.init(e,t),zt.init(e,t)}),Yy=te("ZodCIDRv6",function(e,t){Gg.init(e,t),zt.init(e,t)}),Xy=te("ZodBase64",function(e,t){Jg.init(e,t),zt.init(e,t)}),eD=te("ZodBase64URL",function(e,t){Qg.init(e,t),zt.init(e,t)}),tD=te("ZodE164",function(e,t){Yg.init(e,t),zt.init(e,t)}),nD=te("ZodJWT",function(e,t){Xg.init(e,t),zt.init(e,t)}),mp=te("ZodNumber",function(e,t){var n,r,u,a,i,o,c,l,p;Zd.init(e,t),jt.init(e,t),e.gt=function(v,y){return e.check(Xi(v,y))},e.gte=function(v,y){return e.check(Ka(v,y))},e.min=function(v,y){return e.check(Ka(v,y))},e.lt=function(v,y){return e.check(Yi(v,y))},e.lte=function(v,y){return e.check(Va(v,y))},e.max=function(v,y){return e.check(Va(v,y))},e.int=function(v){return e.check(gp(v))},e.safe=function(v){return e.check(gp(v))},e.positive=function(v){return e.check(Xi(0,v))},e.nonnegative=function(v){return e.check(Ka(0,v))},e.negative=function(v){return e.check(Yi(0,v))},e.nonpositive=function(v){return e.check(Va(0,v))},e.multipleOf=function(v,y){return e.check(Zs(v,y))},e.step=function(v,y){return e.check(Zs(v,y))},e.finite=function(){return e};var m=e._zod.bag;e.minValue=(n=Math.max((r=m.minimum)!==null&&r!==void 0?r:Number.NEGATIVE_INFINITY,(u=m.exclusiveMinimum)!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY))!==null&&n!==void 0?n:null,e.maxValue=(a=Math.min((i=m.maximum)!==null&&i!==void 0?i:Number.POSITIVE_INFINITY,(o=m.exclusiveMaximum)!==null&&o!==void 0?o:Number.POSITIVE_INFINITY))!==null&&a!==void 0?a:null,e.isInt=((c=m.format)!==null&&c!==void 0?c:"").includes("int")||Number.isSafeInteger((l=m.multipleOf)!==null&&l!==void 0?l:.5),e.isFinite=!0,e.format=(p=m.format)!==null&&p!==void 0?p:null});function rD(e){return(function(t,n){return new mp(C({type:"number",checks:[]},xe(n)))})(0,e)}var uD=te("ZodNumberFormat",function(e,t){ey.init(e,t),mp.init(e,t)});function gp(e){return(function(t,n){return new uD(C({type:"number",check:"number_format",abort:!1,format:"safeint"},xe(n)))})(0,e)}var aD=te("ZodBoolean",function(e,t){ty.init(e,t),jt.init(e,t)});function An(e){return(function(t,n){return new aD(C({type:"boolean"},xe(n)))})(0,e)}var iD=te("ZodNull",function(e,t){ny.init(e,t),jt.init(e,t)});function oD(e){return(function(t,n){return new iD(C({type:"null"},xe(n)))})(0,e)}var sD=te("ZodUnknown",function(e,t){ry.init(e,t),jt.init(e,t)});function rr(){return new sD({type:"unknown"})}var cD=te("ZodNever",function(e,t){uy.init(e,t),jt.init(e,t)});function yp(e){return(function(t,n){return new cD(C({type:"never"},xe(n)))})(0,e)}var lD=te("ZodArray",function(e,t){ay.init(e,t),jt.init(e,t),e.element=t.element,e.min=function(n,r){return e.check(Ga(n,r))},e.nonempty=function(n){return e.check(Ga(1,n))},e.max=function(n,r){return e.check(qs(n,r))},e.length=function(n,r){return e.check(Hs(n,r))},e.unwrap=function(){return e.element}});function Wu(e,t){return(function(n,r,u){return new lD(C({type:"array",element:r},xe(u)))})(0,e,t)}var Dp=te("ZodObject",function(e,t){oy.init(e,t),jt.init(e,t),gt(e,"shape",function(){return t.shape}),e.keyof=function(){return Ap(Object.keys(e._zod.def.shape))},e.catchall=function(n){return e.clone(C(C({},e._zod.def),{},{catchall:n}))},e.passthrough=function(){return e.clone(C(C({},e._zod.def),{},{catchall:rr()}))},e.loose=function(){return e.clone(C(C({},e._zod.def),{},{catchall:rr()}))},e.strict=function(){return e.clone(C(C({},e._zod.def),{},{catchall:yp()}))},e.strip=function(){return e.clone(C(C({},e._zod.def),{},{catchall:void 0}))},e.extend=function(n){return(function(r,u){if(!Zu(u))throw new Error("Invalid input to extend: expected a plain object");var a=r._zod.def.checks;if(a&&a.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");var i=mu(r._zod.def,{get shape(){var o=C(C({},r._zod.def.shape),u);return vu(this,"shape",o),o},checks:[]});return Hr(r,i)})(e,n)},e.safeExtend=function(n){return(function(r,u){if(!Zu(u))throw new Error("Invalid input to safeExtend: expected a plain object");var a=C(C({},r._zod.def),{},{get shape(){var i=C(C({},r._zod.def.shape),u);return vu(this,"shape",i),i},checks:r._zod.def.checks});return Hr(r,a)})(e,n)},e.merge=function(n){return(function(r,u){var a=mu(r._zod.def,{get shape(){var i=C(C({},r._zod.def.shape),u._zod.def.shape);return vu(this,"shape",i),i},get catchall(){return u._zod.def.catchall},checks:[]});return Hr(r,a)})(e,n)},e.pick=function(n){return(function(r,u){var a=r._zod.def;return Hr(r,mu(r._zod.def,{get shape(){var i={};for(var o in u){if(!(o in a.shape))throw new Error('Unrecognized key: "'.concat(o,'"'));u[o]&&(i[o]=a.shape[o])}return vu(this,"shape",i),i},checks:[]}))})(e,n)},e.omit=function(n){return(function(r,u){var a=r._zod.def,i=mu(r._zod.def,{get shape(){var o=C({},r._zod.def.shape);for(var c in u){if(!(c in a.shape))throw new Error('Unrecognized key: "'.concat(c,'"'));u[c]&&delete o[c]}return vu(this,"shape",o),o},checks:[]});return Hr(r,i)})(e,n)},e.partial=function(){return(function(n,r,u){var a=mu(r._zod.def,{get shape(){var i=r._zod.def.shape,o=C({},i);if(u)for(var c in u){if(!(c in i))throw new Error('Unrecognized key: "'.concat(c,'"'));u[c]&&(o[c]=new n({type:"optional",innerType:i[c]}))}else for(var l in i)o[l]=new n({type:"optional",innerType:i[l]});return vu(this,"shape",o),o},checks:[]});return Hr(r,a)})(Ep,e,arguments.length<=0?void 0:arguments[0])},e.required=function(){return(function(n,r,u){var a=mu(r._zod.def,{get shape(){var i=r._zod.def.shape,o=C({},i);if(u)for(var c in u){if(!(c in o))throw new Error('Unrecognized key: "'.concat(c,'"'));u[c]&&(o[c]=new n({type:"nonoptional",innerType:i[c]}))}else for(var l in i)o[l]=new n({type:"nonoptional",innerType:i[l]});return vu(this,"shape",o),o},checks:[]});return Hr(r,a)})(Cp,e,arguments.length<=0?void 0:arguments[0])}});function sn(e,t){var n=C({type:"object",shape:e!=null?e:{}},xe(t));return new Dp(n)}function Lt(e,t){return new Dp(C({type:"object",shape:e,catchall:yp()},xe(t)))}var bp=te("ZodUnion",function(e,t){Vd.init(e,t),jt.init(e,t),e.options=t.options});function Pn(e,t){return new bp(C({type:"union",options:e},xe(t)))}var fD=te("ZodDiscriminatedUnion",function(e,t){bp.init(e,t),sy.init(e,t)}),dD=te("ZodIntersection",function(e,t){cy.init(e,t),jt.init(e,t)}),pD=te("ZodRecord",function(e,t){ly.init(e,t),jt.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Us(e,t,n){return new pD(C({type:"record",keyType:e,valueType:t},xe(n)))}var Ws=te("ZodEnum",function(e,t){fy.init(e,t),jt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);var n=new Set(Object.keys(t.entries));e.extract=function(r,u){var a,i={},o=ye(r);try{for(o.s();!(a=o.n()).done;){var c=a.value;if(!n.has(c))throw new Error("Key ".concat(c," not found in enum"));i[c]=t.entries[c]}}catch(l){o.e(l)}finally{o.f()}return new Ws(C(C(C({},t),{},{checks:[]},xe(u)),{},{entries:i}))},e.exclude=function(r,u){var a,i=C({},t.entries),o=ye(r);try{for(o.s();!(a=o.n()).done;){var c=a.value;if(!n.has(c))throw new Error("Key ".concat(c," not found in enum"));delete i[c]}}catch(l){o.e(l)}finally{o.f()}return new Ws(C(C(C({},t),{},{checks:[]},xe(u)),{},{entries:i}))}});function Ap(e,t){var n=Array.isArray(e)?Object.fromEntries(e.map(function(r){return[r,r]})):e;return new Ws(C({type:"enum",entries:n},xe(t)))}var hD=te("ZodLiteral",function(e,t){dy.init(e,t),jt.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get:function(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Ye(e,t){return new hD(C({type:"literal",values:Array.isArray(e)?e:[e]},xe(t)))}var vD=te("ZodTransform",function(e,t){py.init(e,t),jt.init(e,t),e._zod.parse=function(n,r){if(r.direction==="backward")throw new Fd(e.constructor.name);n.addIssue=function(a){if(typeof a=="string")n.issues.push(Ua(a,n.value,t));else{var i,o,c,l=a;l.fatal&&(l.continue=!1),(i=l.code)!==null&&i!==void 0||(l.code="custom"),(o=l.input)!==null&&o!==void 0||(l.input=n.value),(c=l.inst)!==null&&c!==void 0||(l.inst=e),n.issues.push(Ua(l))}};var u=t.transform(n.value,n);return u instanceof Promise?u.then(function(a){return n.value=a,n}):(n.value=u,n)}}),Ep=te("ZodOptional",function(e,t){hy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}});function Fp(e){return new Ep({type:"optional",innerType:e})}var mD=te("ZodNullable",function(e,t){vy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}});function _p(e){return new mD({type:"nullable",innerType:e})}var gD=te("ZodDefault",function(e,t){my.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType},e.removeDefault=e.unwrap}),yD=te("ZodPrefault",function(e,t){gy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}}),Cp=te("ZodNonOptional",function(e,t){yy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}}),DD=te("ZodCatch",function(e,t){Dy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType},e.removeCatch=e.unwrap}),bD=te("ZodPipe",function(e,t){by.init(e,t),jt.init(e,t),e.in=t.in,e.out=t.out});function kp(e,t){return new bD({type:"pipe",in:e,out:t})}var pt,wp,AD=te("ZodReadonly",function(e,t){Ay.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}}),ED=te("ZodLazy",function(e,t){Ey.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.getter()}}),Vs=te("ZodCustom",function(e,t){Fy.init(e,t),jt.init(e,t)});function Sp(e,t){return(function(n,r,u){var a,i=xe(u);return(a=i.abort)!==null&&a!==void 0||(i.abort=!0),new n(C({type:"custom",check:"custom",fn:r},i))})(Vs,e!=null?e:function(){return!0},t)}function to(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{error:"Input not instance of ".concat(e.name)},n=new Vs(C({type:"custom",check:"custom",fn:function(r){return r instanceof e},abort:!0},xe(t)));return n._zod.bag.Class=e,n}(function(e){e.assertEqual=function(t){},e.assertIs=function(t){},e.assertNever=function(t){throw new Error},e.arrayToEnum=function(t){var n,r={},u=ye(t);try{for(u.s();!(n=u.n()).done;){var a=n.value;r[a]=a}}catch(i){u.e(i)}finally{u.f()}return r},e.getValidEnumValues=function(t){var n,r={},u=ye(e.objectKeys(t).filter(function(i){return typeof t[t[i]]!="number"}));try{for(u.s();!(n=u.n()).done;){var a=n.value;r[a]=t[a]}}catch(i){u.e(i)}finally{u.f()}return e.objectValues(r)},e.objectValues=function(t){return e.objectKeys(t).map(function(n){return t[n]})},e.objectKeys=typeof Object.keys=="function"?function(t){return Object.keys(t)}:function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.push(r);return n},e.find=function(t,n){var r,u=ye(t);try{for(u.s();!(r=u.n()).done;){var a=r.value;if(n(a))return a}}catch(i){u.e(i)}finally{u.f()}},e.isInteger=typeof Number.isInteger=="function"?function(t){return Number.isInteger(t)}:function(t){return typeof t=="number"&&Number.isFinite(t)&&Math.floor(t)===t},e.joinValues=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" | ";return t.map(function(r){return typeof r=="string"?"'".concat(r,"'"):r}).join(n)},e.jsonStringifyReplacer=function(t,n){return typeof n=="bigint"?n.toString():n}})(pt||(pt={})),(wp||(wp={})).mergeShapes=function(e,t){return C(C({},e),t)};var Se=pt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wr=function(e){switch(Qt(e)){case"undefined":return Se.undefined;case"string":return Se.string;case"number":return Number.isNaN(e)?Se.nan:Se.number;case"boolean":return Se.boolean;case"function":return Se.function;case"bigint":return Se.bigint;case"symbol":return Se.symbol;case"object":return Array.isArray(e)?Se.array:e===null?Se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Se.promise:typeof Map!="undefined"&&e instanceof Map?Se.map:typeof Set!="undefined"&&e instanceof Set?Se.set:typeof Date!="undefined"&&e instanceof Date?Se.date:Se.object;default:return Se.unknown}},de=pt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),ur=(function(){function e(t){var n;Be(this,e),(n=$e(this,e)).issues=[],n.addIssue=function(u){n.issues=[].concat(be(n.issues),[u])},n.addIssues=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n.issues=[].concat(be(n.issues),be(u))};var r=(this instanceof e?this.constructor:void 0).prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r,n.name="ZodError",n.issues=t,n}return Me(e,Lr(Error)),Pe(e,[{key:"errors",get:function(){return this.issues}},{key:"format",value:function(t){var n=t||function(a){return a.message},r={_errors:[]},u=function(a){var i,o=ye(a.issues);try{for(o.s();!(i=o.n()).done;){var c=i.value;if(c.code==="invalid_union")c.unionErrors.map(u);else if(c.code==="invalid_return_type")u(c.returnTypeError);else if(c.code==="invalid_arguments")u(c.argumentsError);else if(c.path.length===0)r._errors.push(n(c));else for(var l=r,p=0;p<c.path.length;){var m=c.path[p];p===c.path.length-1?(l[m]=l[m]||{_errors:[]},l[m]._errors.push(n(c))):l[m]=l[m]||{_errors:[]},l=l[m],p++}}}catch(v){o.e(v)}finally{o.f()}};return u(this),r}},{key:"toString",value:function(){return this.message}},{key:"message",get:function(){return JSON.stringify(this.issues,pt.jsonStringifyReplacer,2)}},{key:"isEmpty",get:function(){return this.issues.length===0}},{key:"flatten",value:function(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c.message},r=Object.create(null),u=[],a=ye(this.issues);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(i.path.length>0){var o=i.path[0];r[o]=r[o]||[],r[o].push(n(i))}else u.push(n(i))}}catch(c){a.e(c)}finally{a.f()}return{formErrors:u,fieldErrors:r}}},{key:"formErrors",get:function(){return this.flatten()}}],[{key:"assert",value:function(t){if(!(t instanceof e))throw new Error("Not a ZodError: ".concat(t))}}])})();ur.create=function(e){return new ur(e)};var Ja=function(e,t){var n;switch(e.code){case de.invalid_type:n=e.received===Se.undefined?"Required":"Expected ".concat(e.expected,", received ").concat(e.received);break;case de.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(e.expected,pt.jsonStringifyReplacer));break;case de.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(pt.joinValues(e.keys,", "));break;case de.invalid_union:n="Invalid input";break;case de.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(pt.joinValues(e.options));break;case de.invalid_enum_value:n="Invalid enum value. Expected ".concat(pt.joinValues(e.options),", received '").concat(e.received,"'");break;case de.invalid_arguments:n="Invalid function arguments";break;case de.invalid_return_type:n="Invalid function return type";break;case de.invalid_date:n="Invalid date";break;case de.invalid_string:Qt(e.validation)==="object"?"includes"in e.validation?(n='Invalid input: must include "'.concat(e.validation.includes,'"'),typeof e.validation.position=="number"&&(n="".concat(n," at one or more positions greater than or equal to ").concat(e.validation.position))):"startsWith"in e.validation?n='Invalid input: must start with "'.concat(e.validation.startsWith,'"'):"endsWith"in e.validation?n='Invalid input: must end with "'.concat(e.validation.endsWith,'"'):pt.assertNever(e.validation):n=e.validation!=="regex"?"Invalid ".concat(e.validation):"Invalid";break;case de.too_small:n=e.type==="array"?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)"):e.type==="string"?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)"):e.type==="number"||e.type==="bigint"?"Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum):e.type==="date"?"Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum))):"Invalid input";break;case de.too_big:n=e.type==="array"?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)"):e.type==="string"?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)"):e.type==="number"?"Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):e.type==="bigint"?"BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):e.type==="date"?"Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum))):"Invalid input";break;case de.custom:n="Invalid input";break;case de.invalid_intersection_types:n="Intersection results could not be merged";break;case de.not_multiple_of:n="Number must be a multiple of ".concat(e.multipleOf);break;case de.not_finite:n="Number must be finite";break;default:n=t.defaultError,pt.assertNever(e)}return{message:n}},FD=Ja;function Ks(){return FD}var Gs=function(e){var t=e.data,n=e.path,r=e.errorMaps,u=e.issueData,a=[].concat(be(n),be(u.path||[])),i=C(C({},u),{},{path:a});if(u.message!==void 0)return C(C({},u),{},{path:a,message:u.message});var o,c="",l=r.filter(function(m){return!!m}).slice().reverse(),p=ye(l);try{for(p.s();!(o=p.n()).done;)c=(0,o.value)(i,{data:t,defaultError:c}).message}catch(m){p.e(m)}finally{p.f()}return C(C({},u),{},{path:a,message:c})};function Ee(e,t){var n=Ks(),r=Gs({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ja?void 0:Ja].filter(function(u){return!!u})});e.common.issues.push(r)}var je,Sn=(function(){function e(){Be(this,e),this.value="valid"}return Pe(e,[{key:"dirty",value:function(){this.value==="valid"&&(this.value="dirty")}},{key:"abort",value:function(){this.value!=="aborted"&&(this.value="aborted")}}],[{key:"mergeArray",value:function(n,r){var u,a=[],i=ye(r);try{for(i.s();!(u=i.n()).done;){var o=u.value;if(o.status==="aborted")return Ze;o.status==="dirty"&&n.dirty(),a.push(o.value)}}catch(c){i.e(c)}finally{i.f()}return{status:n.value,value:a}}},{key:"mergeObjectAsync",value:(t=Xe(Ae().m(function n(r,u){var a,i,o,c,l,p,m;return Ae().w(function(v){for(;;)switch(v.p=v.n){case 0:a=[],i=ye(u),v.p=1,i.s();case 2:if((o=i.n()).done){v.n=6;break}return c=o.value,v.n=3,c.key;case 3:return l=v.v,v.n=4,c.value;case 4:p=v.v,a.push({key:l,value:p});case 5:v.n=2;break;case 6:v.n=8;break;case 7:v.p=7,m=v.v,i.e(m);case 8:return v.p=8,i.f(),v.f(8);case 9:return v.a(2,e.mergeObjectSync(r,a))}},n,null,[[1,7,8,9]])})),function(n,r){return t.apply(this,arguments)})},{key:"mergeObjectSync",value:function(n,r){var u,a={},i=ye(r);try{for(i.s();!(u=i.n()).done;){var o=u.value,c=o.key,l=o.value;if(c.status==="aborted"||l.status==="aborted")return Ze;c.status==="dirty"&&n.dirty(),l.status==="dirty"&&n.dirty(),c.value==="__proto__"||l.value===void 0&&!o.alwaysSet||(a[c.value]=l.value)}}catch(p){i.e(p)}finally{i.f()}return{status:n.value,value:a}}}]);var t})(),Ze=Object.freeze({status:"aborted"}),no=function(e){return{status:"dirty",value:e}},En=function(e){return{status:"valid",value:e}},xp=function(e){return e.status==="aborted"},Tp=function(e){return e.status==="dirty"},Vu=function(e){return e.status==="valid"},ro=function(e){return typeof Promise!="undefined"&&e instanceof Promise};(function(e){e.errToObj=function(t){return typeof t=="string"?{message:t}:t||{}},e.toString=function(t){return typeof t=="string"?t:t==null?void 0:t.message}})(je||(je={}));var ar=Pe(function e(t,n,r,u){Be(this,e),this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=u},[{key:"path",get:function(){var e,t;return this._cachedPath.length||(Array.isArray(this._key)?(e=this._cachedPath).push.apply(e,be(this._path).concat(be(this._key))):(t=this._cachedPath).push.apply(t,be(this._path).concat([this._key]))),this._cachedPath}}]),Op=function(e,t){if(Vu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;var n=new ur(e.common.issues);return this._error=n,this._error}}};function Ke(e){if(!e)return{};var t=e.errorMap,n=e.invalid_type_error,r=e.required_error,u=e.description;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:u}:{errorMap:function(a,i){var o,c,l=e.message;return a.code==="invalid_enum_value"?{message:l!=null?l:i.defaultError}:i.data===void 0?{message:(c=l!=null?l:r)!==null&&c!==void 0?c:i.defaultError}:a.code!=="invalid_type"?{message:i.defaultError}:{message:(o=l!=null?l:n)!==null&&o!==void 0?o:i.defaultError}},description:u}}var Js,tt=(function(){return Pe(function t(n){var r=this;Be(this,t),this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:function(u){return r["~validate"](u)}}},[{key:"description",get:function(){return this._def.description}},{key:"_getType",value:function(t){return Wr(t.data)}},{key:"_getOrReturnCtx",value:function(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}},{key:"_processInputParams",value:function(t){return{status:new Sn,ctx:{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}},{key:"_parseSync",value:function(t){var n=this._parse(t);if(ro(n))throw new Error("Synchronous parse encountered promise.");return n}},{key:"_parseAsync",value:function(t){var n=this._parse(t);return Promise.resolve(n)}},{key:"parse",value:function(t,n){var r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}},{key:"safeParse",value:function(t,n){var r,u={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0&&r,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)},a=this._parseSync({data:t,path:u.path,parent:u});return Op(u,a)}},{key:"~validate",value:function(t){var n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)};if(!this["~standard"].async)try{var r=this._parseSync({data:t,path:[],parent:n});return Vu(r)?{value:r.value}:{issues:n.common.issues}}catch(a){var u;a!=null&&(u=a.message)!==null&&u!==void 0&&(u=u.toLowerCase())!==null&&u!==void 0&&u.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(function(a){return Vu(a)?{value:a.value}:{issues:n.common.issues}})}},{key:"parseAsync",value:(e=Xe(Ae().m(function t(n,r){var u;return Ae().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,this.safeParseAsync(n,r);case 1:if(!(u=a.v).success){a.n=2;break}return a.a(2,u.data);case 2:throw u.error;case 3:return a.a(2)}},t,this)})),function(t,n){return e.apply(this,arguments)})},{key:"safeParseAsync",value:(function(){var t=Xe(Ae().m(function n(r,u){var a,i,o;return Ae().w(function(c){for(;;)switch(c.n){case 0:return a={common:{issues:[],contextualErrorMap:u==null?void 0:u.errorMap,async:!0},path:(u==null?void 0:u.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Wr(r)},i=this._parse({data:r,path:a.path,parent:a}),c.n=1,ro(i)?i:Promise.resolve(i);case 1:return o=c.v,c.a(2,Op(a,o))}},n,this)}));return function(n,r){return t.apply(this,arguments)}})()},{key:"refine",value:function(t,n){return this._refinement(function(r,u){var a=t(r),i=function(){return u.addIssue(C({code:de.custom},(function(o){return typeof n=="string"||n===void 0?{message:n}:typeof n=="function"?n(o):n})(r)))};return typeof Promise!="undefined"&&a instanceof Promise?a.then(function(o){return!!o||(i(),!1)}):!!a||(i(),!1)})}},{key:"refinement",value:function(t,n){return this._refinement(function(r,u){return!!t(r)||(u.addIssue(typeof n=="function"?n(r,u):n),!1)})}},{key:"_refinement",value:function(t){return new _r({schema:this,typeName:ve.ZodEffects,effect:{type:"refinement",refinement:t}})}},{key:"superRefine",value:function(t){return this._refinement(t)}},{key:"optional",value:function(){return Cr.create(this,this._def)}},{key:"nullable",value:function(){return Du.create(this,this._def)}},{key:"nullish",value:function(){return this.nullable().optional()}},{key:"array",value:function(){return Gu.create(this)}},{key:"promise",value:function(){return Qa.create(this,this._def)}},{key:"or",value:function(t){return oo.create([this,t],this._def)}},{key:"and",value:function(t){return so.create(this,t,this._def)}},{key:"transform",value:function(t){return new _r(C(C({},Ke(this._def)),{},{schema:this,typeName:ve.ZodEffects,effect:{type:"transform",transform:t}}))}},{key:"default",value:function(t){var n=typeof t=="function"?t:function(){return t};return new ho(C(C({},Ke(this._def)),{},{innerType:this,defaultValue:n,typeName:ve.ZodDefault}))}},{key:"brand",value:function(){return new jp(C({typeName:ve.ZodBranded,type:this},Ke(this._def)))}},{key:"catch",value:function(t){var n=typeof t=="function"?t:function(){return t};return new vo(C(C({},Ke(this._def)),{},{innerType:this,catchValue:n,typeName:ve.ZodCatch}))}},{key:"describe",value:function(t){return new this.constructor(C(C({},this._def),{},{description:t}))}},{key:"pipe",value:function(t){return Np.create(this,t)}},{key:"readonly",value:function(){return mo.create(this)}},{key:"isOptional",value:function(){return this.safeParse(void 0).success}},{key:"isNullable",value:function(){return this.safeParse(null).success}}]);var e})(),_D=/^c[^\s-]{8,}$/i,CD=/^[0-9a-z]+$/,kD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wD=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,SD=/^[a-z0-9_-]{21}$/i,xD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,TD=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,OD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ID=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,BD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,PD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,jD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ND=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,RD=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ip="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zD=new RegExp("^".concat(Ip,"$"));function Bp(e){var t="[0-5]\\d";e.precision?t="".concat(t,"\\.\\d{").concat(e.precision,"}"):e.precision==null&&(t="".concat(t,"(\\.\\d+)?"));var n=e.precision?"+":"?";return"([01]\\d|2[0-3]):[0-5]\\d(:".concat(t,")").concat(n)}function LD(e){return new RegExp("^".concat(Bp(e),"$"))}function MD(e){var t="".concat(Ip,"T").concat(Bp(e)),n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t="".concat(t,"(").concat(n.join("|"),")"),new RegExp("^".concat(t,"$"))}function $D(e,t){return!(t!=="v4"&&t||!ID.test(e))||!(t!=="v6"&&t||!PD.test(e))}function ZD(e,t){if(!xD.test(e))return!1;try{var n=dt(e.split("."),1)[0];if(!n)return!1;var r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),u=JSON.parse(atob(r));return!(Qt(u)!=="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||t&&u.alg!==t)}catch(a){return!1}}function qD(e,t){return!(t!=="v4"&&t||!BD.test(e))||!(t!=="v6"&&t||!jD.test(e))}var uo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Se.string){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.string,received:n.parsedType}),Ze}var r,u=new Sn,a=void 0,i=ye(this._def.checks);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o.kind==="min")t.data.length<o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:de.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),u.dirty());else if(o.kind==="max")t.data.length>o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:de.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),u.dirty());else if(o.kind==="length"){var c=t.data.length>o.value,l=t.data.length<o.value;(c||l)&&(a=this._getOrReturnCtx(t,a),c?Ee(a,{code:de.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&Ee(a,{code:de.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),u.dirty())}else if(o.kind==="email")OD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"email",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="emoji")Js||(Js=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Js.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"emoji",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="uuid")wD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"uuid",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="nanoid")SD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"nanoid",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="cuid")_D.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"cuid",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="cuid2")CD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"cuid2",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="ulid")kD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"ulid",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="url")try{new URL(t.data)}catch(p){Ee(a=this._getOrReturnCtx(t,a),{validation:"url",code:de.invalid_string,message:o.message}),u.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"regex",code:de.invalid_string,message:o.message}),u.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),u.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:{startsWith:o.value},message:o.message}),u.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:{endsWith:o.value},message:o.message}),u.dirty()):o.kind==="datetime"?MD(o).test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:"datetime",message:o.message}),u.dirty()):o.kind==="date"?zD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:"date",message:o.message}),u.dirty()):o.kind==="time"?LD(o).test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:"time",message:o.message}),u.dirty()):o.kind==="duration"?TD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"duration",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="ip"?$D(t.data,o.version)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"ip",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="jwt"?ZD(t.data,o.alg)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"jwt",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="cidr"?qD(t.data,o.version)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"cidr",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="base64"?ND.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"base64",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="base64url"?RD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"base64url",code:de.invalid_string,message:o.message}),u.dirty()):pt.assertNever(o)}}catch(p){i.e(p)}finally{i.f()}return{status:u.value,value:t.data}}},{key:"_regex",value:function(t,n,r){return this.refinement(function(u){return t.test(u)},C({validation:n,code:de.invalid_string},je.errToObj(r)))}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[t])}))}},{key:"email",value:function(t){return this._addCheck(C({kind:"email"},je.errToObj(t)))}},{key:"url",value:function(t){return this._addCheck(C({kind:"url"},je.errToObj(t)))}},{key:"emoji",value:function(t){return this._addCheck(C({kind:"emoji"},je.errToObj(t)))}},{key:"uuid",value:function(t){return this._addCheck(C({kind:"uuid"},je.errToObj(t)))}},{key:"nanoid",value:function(t){return this._addCheck(C({kind:"nanoid"},je.errToObj(t)))}},{key:"cuid",value:function(t){return this._addCheck(C({kind:"cuid"},je.errToObj(t)))}},{key:"cuid2",value:function(t){return this._addCheck(C({kind:"cuid2"},je.errToObj(t)))}},{key:"ulid",value:function(t){return this._addCheck(C({kind:"ulid"},je.errToObj(t)))}},{key:"base64",value:function(t){return this._addCheck(C({kind:"base64"},je.errToObj(t)))}},{key:"base64url",value:function(t){return this._addCheck(C({kind:"base64url"},je.errToObj(t)))}},{key:"jwt",value:function(t){return this._addCheck(C({kind:"jwt"},je.errToObj(t)))}},{key:"ip",value:function(t){return this._addCheck(C({kind:"ip"},je.errToObj(t)))}},{key:"cidr",value:function(t){return this._addCheck(C({kind:"cidr"},je.errToObj(t)))}},{key:"datetime",value:function(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck(C({kind:"datetime",precision:(t==null?void 0:t.precision)===void 0?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0&&n,local:(r=t==null?void 0:t.local)!==null&&r!==void 0&&r},je.errToObj(t==null?void 0:t.message)))}},{key:"date",value:function(t){return this._addCheck({kind:"date",message:t})}},{key:"time",value:function(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck(C({kind:"time",precision:(t==null?void 0:t.precision)===void 0?null:t==null?void 0:t.precision},je.errToObj(t==null?void 0:t.message)))}},{key:"duration",value:function(t){return this._addCheck(C({kind:"duration"},je.errToObj(t)))}},{key:"regex",value:function(t,n){return this._addCheck(C({kind:"regex",regex:t},je.errToObj(n)))}},{key:"includes",value:function(t,n){return this._addCheck(C({kind:"includes",value:t,position:n==null?void 0:n.position},je.errToObj(n==null?void 0:n.message)))}},{key:"startsWith",value:function(t,n){return this._addCheck(C({kind:"startsWith",value:t},je.errToObj(n)))}},{key:"endsWith",value:function(t,n){return this._addCheck(C({kind:"endsWith",value:t},je.errToObj(n)))}},{key:"min",value:function(t,n){return this._addCheck(C({kind:"min",value:t},je.errToObj(n)))}},{key:"max",value:function(t,n){return this._addCheck(C({kind:"max",value:t},je.errToObj(n)))}},{key:"length",value:function(t,n){return this._addCheck(C({kind:"length",value:t},je.errToObj(n)))}},{key:"nonempty",value:function(t){return this.min(1,je.errToObj(t))}},{key:"trim",value:function(){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:"trim"}])}))}},{key:"toLowerCase",value:function(){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:"toLowerCase"}])}))}},{key:"toUpperCase",value:function(){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:"toUpperCase"}])}))}},{key:"isDatetime",get:function(){return!!this._def.checks.find(function(t){return t.kind==="datetime"})}},{key:"isDate",get:function(){return!!this._def.checks.find(function(t){return t.kind==="date"})}},{key:"isTime",get:function(){return!!this._def.checks.find(function(t){return t.kind==="time"})}},{key:"isDuration",get:function(){return!!this._def.checks.find(function(t){return t.kind==="duration"})}},{key:"isEmail",get:function(){return!!this._def.checks.find(function(t){return t.kind==="email"})}},{key:"isURL",get:function(){return!!this._def.checks.find(function(t){return t.kind==="url"})}},{key:"isEmoji",get:function(){return!!this._def.checks.find(function(t){return t.kind==="emoji"})}},{key:"isUUID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="uuid"})}},{key:"isNANOID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="nanoid"})}},{key:"isCUID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="cuid"})}},{key:"isCUID2",get:function(){return!!this._def.checks.find(function(t){return t.kind==="cuid2"})}},{key:"isULID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="ulid"})}},{key:"isIP",get:function(){return!!this._def.checks.find(function(t){return t.kind==="ip"})}},{key:"isCIDR",get:function(){return!!this._def.checks.find(function(t){return t.kind==="cidr"})}},{key:"isBase64",get:function(){return!!this._def.checks.find(function(t){return t.kind==="base64"})}},{key:"isBase64url",get:function(){return!!this._def.checks.find(function(t){return t.kind==="base64url"})}},{key:"minLength",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"maxLength",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}}])})();function HD(e,t){var n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,u=n>r?n:r;return Number.parseInt(e.toFixed(u).replace(".",""))%Number.parseInt(t.toFixed(u).replace(".",""))/Math.pow(10,u)}uo.create=function(e){var t;return new uo(C({checks:[],typeName:ve.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0&&t},Ke(e)))};var Qs=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments)).min=t.gte,t.max=t.lte,t.step=t.multipleOf,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Se.number){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.number,received:n.parsedType}),Ze}var r,u=void 0,a=new Sn,i=ye(this._def.checks);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.kind==="int"?pt.isInteger(t.data)||(Ee(u=this._getOrReturnCtx(t,u),{code:de.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(Ee(u=this._getOrReturnCtx(t,u),{code:de.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(Ee(u=this._getOrReturnCtx(t,u),{code:de.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?HD(t.data,o.value)!==0&&(Ee(u=this._getOrReturnCtx(t,u),{code:de.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(Ee(u=this._getOrReturnCtx(t,u),{code:de.not_finite,message:o.message}),a.dirty()):pt.assertNever(o)}}catch(c){i.e(c)}finally{i.f()}return{status:a.value,value:t.data}}},{key:"gte",value:function(t,n){return this.setLimit("min",t,!0,je.toString(n))}},{key:"gt",value:function(t,n){return this.setLimit("min",t,!1,je.toString(n))}},{key:"lte",value:function(t,n){return this.setLimit("max",t,!0,je.toString(n))}},{key:"lt",value:function(t,n){return this.setLimit("max",t,!1,je.toString(n))}},{key:"setLimit",value:function(t,n,r,u){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:t,value:n,inclusive:r,message:je.toString(u)}])}))}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[t])}))}},{key:"int",value:function(t){return this._addCheck({kind:"int",message:je.toString(t)})}},{key:"positive",value:function(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:je.toString(t)})}},{key:"negative",value:function(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:je.toString(t)})}},{key:"nonpositive",value:function(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:je.toString(t)})}},{key:"nonnegative",value:function(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:je.toString(t)})}},{key:"multipleOf",value:function(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}},{key:"finite",value:function(t){return this._addCheck({kind:"finite",message:je.toString(t)})}},{key:"safe",value:function(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:je.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:je.toString(t)})}},{key:"minValue",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"maxValue",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"isInt",get:function(){return!!this._def.checks.find(function(t){return t.kind==="int"||t.kind==="multipleOf"&&pt.isInteger(t.value)})}},{key:"isFinite",get:function(){var t,n=null,r=null,u=ye(this._def.checks);try{for(u.s();!(t=u.n()).done;){var a=t.value;if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(n===null||a.value<n)&&(n=a.value)}}catch(i){u.e(i)}finally{u.f()}return Number.isFinite(r)&&Number.isFinite(n)}}])})();Qs.create=function(e){return new Qs(C({checks:[],typeName:ve.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1},Ke(e)))};var Ys=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments)).min=t.gte,t.max=t.lte,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch(o){return this._getInvalidInput(t)}if(this._getType(t)!==Se.bigint)return this._getInvalidInput(t);var n,r=void 0,u=new Sn,a=ye(this._def.checks);try{for(a.s();!(n=a.n()).done;){var i=n.value;i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(Ee(r=this._getOrReturnCtx(t,r),{code:de.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),u.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(Ee(r=this._getOrReturnCtx(t,r),{code:de.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),u.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(Ee(r=this._getOrReturnCtx(t,r),{code:de.not_multiple_of,multipleOf:i.value,message:i.message}),u.dirty()):pt.assertNever(i)}}catch(o){a.e(o)}finally{a.f()}return{status:u.value,value:t.data}}},{key:"_getInvalidInput",value:function(t){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.bigint,received:n.parsedType}),Ze}},{key:"gte",value:function(t,n){return this.setLimit("min",t,!0,je.toString(n))}},{key:"gt",value:function(t,n){return this.setLimit("min",t,!1,je.toString(n))}},{key:"lte",value:function(t,n){return this.setLimit("max",t,!0,je.toString(n))}},{key:"lt",value:function(t,n){return this.setLimit("max",t,!1,je.toString(n))}},{key:"setLimit",value:function(t,n,r,u){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:t,value:n,inclusive:r,message:je.toString(u)}])}))}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[t])}))}},{key:"positive",value:function(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:je.toString(t)})}},{key:"negative",value:function(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:je.toString(t)})}},{key:"nonpositive",value:function(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:je.toString(t)})}},{key:"nonnegative",value:function(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:je.toString(t)})}},{key:"multipleOf",value:function(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}},{key:"minValue",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"maxValue",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}}])})();Ys.create=function(e){var t;return new Ys(C({checks:[],typeName:ve.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0&&t},Ke(e)))};var Xs=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Se.boolean){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.boolean,received:n.parsedType}),Ze}return En(t.data)}}])})();Xs.create=function(e){return new Xs(C({typeName:ve.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1},Ke(e)))};var ec=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Se.date){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.date,received:n.parsedType}),Ze}if(Number.isNaN(t.data.getTime()))return Ee(this._getOrReturnCtx(t),{code:de.invalid_date}),Ze;var r,u=new Sn,a=void 0,i=ye(this._def.checks);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.kind==="min"?t.data.getTime()<o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:de.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),u.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:de.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),u.dirty()):pt.assertNever(o)}}catch(c){i.e(c)}finally{i.f()}return{status:u.value,value:new Date(t.data.getTime())}}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[t])}))}},{key:"min",value:function(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:je.toString(n)})}},{key:"max",value:function(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:je.toString(n)})}},{key:"minDate",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n!=null?new Date(n):null}},{key:"maxDate",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n!=null?new Date(n):null}}])})();ec.create=function(e){return new ec(C({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ve.ZodDate},Ke(e)))};var tc=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.symbol){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.symbol,received:n.parsedType}),Ze}return En(t.data)}}])})();tc.create=function(e){return new tc(C({typeName:ve.ZodSymbol},Ke(e)))};var ao=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.undefined){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.undefined,received:n.parsedType}),Ze}return En(t.data)}}])})();ao.create=function(e){return new ao(C({typeName:ve.ZodUndefined},Ke(e)))};var io=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.null){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.null,received:n.parsedType}),Ze}return En(t.data)}}])})();io.create=function(e){return new io(C({typeName:ve.ZodNull},Ke(e)))};var nc=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments))._any=!0,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){return En(t.data)}}])})();nc.create=function(e){return new nc(C({typeName:ve.ZodAny},Ke(e)))};var Ku=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments))._unknown=!0,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){return En(t.data)}}])})();Ku.create=function(e){return new Ku(C({typeName:ve.ZodUnknown},Ke(e)))};var Vr=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.never,received:n.parsedType}),Ze}}])})();Vr.create=function(e){return new Vr(C({typeName:ve.ZodNever},Ke(e)))};var rc=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.undefined){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.void,received:n.parsedType}),Ze}return En(t.data)}}])})();rc.create=function(e){return new rc(C({typeName:ve.ZodVoid},Ke(e)))};var Gu=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.ctx,u=n.status,a=this._def;if(r.parsedType!==Se.array)return Ee(r,{code:de.invalid_type,expected:Se.array,received:r.parsedType}),Ze;if(a.exactLength!==null){var i=r.data.length>a.exactLength.value,o=r.data.length<a.exactLength.value;(i||o)&&(Ee(r,{code:i?de.too_big:de.too_small,minimum:o?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),u.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(Ee(r,{code:de.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),u.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(Ee(r,{code:de.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),u.dirty()),r.common.async)return Promise.all(be(r.data).map(function(l,p){return a.type._parseAsync(new ar(r,l,r.path,p))})).then(function(l){return Sn.mergeArray(u,l)});var c=be(r.data).map(function(l,p){return a.type._parseSync(new ar(r,l,r.path,p))});return Sn.mergeArray(u,c)}},{key:"element",get:function(){return this._def.type}},{key:"min",value:function(t,n){return new e(C(C({},this._def),{},{minLength:{value:t,message:je.toString(n)}}))}},{key:"max",value:function(t,n){return new e(C(C({},this._def),{},{maxLength:{value:t,message:je.toString(n)}}))}},{key:"length",value:function(t,n){return new e(C(C({},this._def),{},{exactLength:{value:t,message:je.toString(n)}}))}},{key:"nonempty",value:function(t){return this.min(1,t)}}])})();function Ju(e){if(e instanceof Vn){var t={};for(var n in e.shape){var r=e.shape[n];t[n]=Cr.create(Ju(r))}return new Vn(C(C({},e._def),{},{shape:function(){return t}}))}return e instanceof Gu?new Gu(C(C({},e._def),{},{type:Ju(e.element)})):e instanceof Cr?Cr.create(Ju(e.unwrap())):e instanceof Du?Du.create(Ju(e.unwrap())):e instanceof yu?yu.create(e.items.map(function(u){return Ju(u)})):e}Gu.create=function(e,t){return new Gu(C({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ve.ZodArray},Ke(t)))};var Vn=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments))._cached=null,t.nonstrict=t.passthrough,t.augment=t.extend,t}return Me(e,tt),Pe(e,[{key:"_getCached",value:function(){if(this._cached!==null)return this._cached;var t=this._def.shape(),n=pt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}},{key:"_parse",value:function(t){if(this._getType(t)!==Se.object){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.object,received:n.parsedType}),Ze}var r=this._processInputParams(t),u=r.status,a=r.ctx,i=this._getCached(),o=i.shape,c=i.keys,l=[];if(!(this._def.catchall instanceof Vr&&this._def.unknownKeys==="strip"))for(var p in a.data)c.includes(p)||l.push(p);var m,v=[],y=ye(c);try{for(y.s();!(m=y.n()).done;){var F=m.value,D=o[F],_=a.data[F];v.push({key:{status:"valid",value:F},value:D._parse(new ar(a,_,a.path,F)),alwaysSet:F in a.data})}}catch(R){y.e(R)}finally{y.f()}if(this._def.catchall instanceof Vr){var O=this._def.unknownKeys;if(O==="passthrough"){var w,x=ye(l);try{for(x.s();!(w=x.n()).done;){var S=w.value;v.push({key:{status:"valid",value:S},value:{status:"valid",value:a.data[S]}})}}catch(R){x.e(R)}finally{x.f()}}else if(O==="strict")l.length>0&&(Ee(a,{code:de.unrecognized_keys,keys:l}),u.dirty());else if(O!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{var T,I=this._def.catchall,B=ye(l);try{for(B.s();!(T=B.n()).done;){var d=T.value,H=a.data[d];v.push({key:{status:"valid",value:d},value:I._parse(new ar(a,H,a.path,d)),alwaysSet:d in a.data})}}catch(R){B.e(R)}finally{B.f()}}return a.common.async?Promise.resolve().then(Xe(Ae().m(function R(){var Z,q,G,L,ne,Q,$;return Ae().w(function(Y){for(;;)switch(Y.p=Y.n){case 0:Z=[],q=ye(v),Y.p=1,q.s();case 2:if((G=q.n()).done){Y.n=6;break}return L=G.value,Y.n=3,L.key;case 3:return ne=Y.v,Y.n=4,L.value;case 4:Q=Y.v,Z.push({key:ne,value:Q,alwaysSet:L.alwaysSet});case 5:Y.n=2;break;case 6:Y.n=8;break;case 7:Y.p=7,$=Y.v,q.e($);case 8:return Y.p=8,q.f(),Y.f(8);case 9:return Y.a(2,Z)}},R,null,[[1,7,8,9]])}))).then(function(R){return Sn.mergeObjectSync(u,R)}):Sn.mergeObjectSync(u,v)}},{key:"shape",get:function(){return this._def.shape()}},{key:"strict",value:function(t){var n=this;return je.errToObj,new e(C(C({},this._def),{},{unknownKeys:"strict"},t!==void 0?{errorMap:function(r,u){var a,i,o,c,l=(a=(i=(o=n._def).errorMap)===null||i===void 0?void 0:i.call(o,r,u).message)!==null&&a!==void 0?a:u.defaultError;return r.code==="unrecognized_keys"?{message:(c=je.errToObj(t).message)!==null&&c!==void 0?c:l}:{message:l}}}:{}))}},{key:"strip",value:function(){return new e(C(C({},this._def),{},{unknownKeys:"strip"}))}},{key:"passthrough",value:function(){return new e(C(C({},this._def),{},{unknownKeys:"passthrough"}))}},{key:"extend",value:function(t){var n=this;return new e(C(C({},this._def),{},{shape:function(){return C(C({},n._def.shape()),t)}}))}},{key:"merge",value:function(t){var n=this;return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:function(){return C(C({},n._def.shape()),t._def.shape())},typeName:ve.ZodObject})}},{key:"setKey",value:function(t,n){return this.augment(lt({},t,n))}},{key:"catchall",value:function(t){return new e(C(C({},this._def),{},{catchall:t}))}},{key:"pick",value:function(t){var n,r={},u=ye(pt.objectKeys(t));try{for(u.s();!(n=u.n()).done;){var a=n.value;t[a]&&this.shape[a]&&(r[a]=this.shape[a])}}catch(i){u.e(i)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"omit",value:function(t){var n,r={},u=ye(pt.objectKeys(this.shape));try{for(u.s();!(n=u.n()).done;){var a=n.value;t[a]||(r[a]=this.shape[a])}}catch(i){u.e(i)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"deepPartial",value:function(){return Ju(this)}},{key:"partial",value:function(t){var n,r={},u=ye(pt.objectKeys(this.shape));try{for(u.s();!(n=u.n()).done;){var a=n.value,i=this.shape[a];t&&!t[a]?r[a]=i:r[a]=i.optional()}}catch(o){u.e(o)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"required",value:function(t){var n,r={},u=ye(pt.objectKeys(this.shape));try{for(u.s();!(n=u.n()).done;){var a=n.value;if(t&&!t[a])r[a]=this.shape[a];else{for(var i=this.shape[a];i instanceof Cr;)i=i._def.innerType;r[a]=i}}}catch(o){u.e(o)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"keyof",value:function(){return Pp(pt.objectKeys(this.shape))}}])})();Vn.create=function(e,t){return new Vn(C({shape:function(){return e},unknownKeys:"strip",catchall:Vr.create(),typeName:ve.ZodObject},Ke(t)))},Vn.strictCreate=function(e,t){return new Vn(C({shape:function(){return e},unknownKeys:"strict",catchall:Vr.create(),typeName:ve.ZodObject},Ke(t)))},Vn.lazycreate=function(e,t){return new Vn(C({shape:e,unknownKeys:"strip",catchall:Vr.create(),typeName:ve.ZodObject},Ke(t)))};var oo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx,r=this._def.options;if(n.common.async)return Promise.all(r.map((function(){var y=Xe(Ae().m(function F(D){var _,O,w;return Ae().w(function(x){for(;;)switch(x.n){case 0:return _=C(C({},n),{},{common:C(C({},n.common),{},{issues:[]}),parent:null}),x.n=1,D._parseAsync({data:n.data,path:n.path,parent:_});case 1:return O=x.v,w=_,x.a(2,{result:O,ctx:w})}},F)}));return function(F){return y.apply(this,arguments)}})())).then(function(y){var F,D=ye(y);try{for(D.s();!(F=D.n()).done;){var _=F.value;if(_.result.status==="valid")return _.result}}catch(I){D.e(I)}finally{D.f()}var O,w=ye(y);try{for(w.s();!(O=w.n()).done;){var x,S=O.value;if(S.result.status==="dirty")return(x=n.common.issues).push.apply(x,be(S.ctx.common.issues)),S.result}}catch(I){w.e(I)}finally{w.f()}var T=y.map(function(I){return new ur(I.ctx.common.issues)});return Ee(n,{code:de.invalid_union,unionErrors:T}),Ze});var u,a,i=void 0,o=[],c=ye(r);try{for(c.s();!(u=c.n()).done;){var l=u.value,p=C(C({},n),{},{common:C(C({},n.common),{},{issues:[]}),parent:null}),m=l._parseSync({data:n.data,path:n.path,parent:p});if(m.status==="valid")return m;m.status!=="dirty"||i||(i={result:m,ctx:p}),p.common.issues.length&&o.push(p.common.issues)}}catch(y){c.e(y)}finally{c.f()}if(i)return(a=n.common.issues).push.apply(a,be(i.ctx.common.issues)),i.result;var v=o.map(function(y){return new ur(y)});return Ee(n,{code:de.invalid_union,unionErrors:v}),Ze}},{key:"options",get:function(){return this._def.options}}])})();oo.create=function(e,t){return new oo(C({options:e,typeName:ve.ZodUnion},Ke(t)))};var Kr=function(e){return e instanceof co?Kr(e.schema):e instanceof _r?Kr(e.innerType()):e instanceof lo?[e.value]:e instanceof fo?e.options:e instanceof po?pt.objectValues(e.enum):e instanceof ho?Kr(e._def.innerType):e instanceof ao?[void 0]:e instanceof io?[null]:e instanceof Cr?[void 0].concat(be(Kr(e.unwrap()))):e instanceof Du?[null].concat(be(Kr(e.unwrap()))):e instanceof jp||e instanceof mo?Kr(e.unwrap()):e instanceof vo?Kr(e._def.innerType):[]},UD=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx;if(n.parsedType!==Se.object)return Ee(n,{code:de.invalid_type,expected:Se.object,received:n.parsedType}),Ze;var r=this.discriminator,u=n.data[r],a=this.optionsMap.get(u);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(Ee(n,{code:de.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ze)}},{key:"discriminator",get:function(){return this._def.discriminator}},{key:"options",get:function(){return this._def.options}},{key:"optionsMap",get:function(){return this._def.optionsMap}}],[{key:"create",value:function(t,n,r){var u,a=new Map,i=ye(n);try{for(i.s();!(u=i.n()).done;){var o=u.value,c=Kr(o.shape[t]);if(!c.length)throw new Error("A discriminator value for key `".concat(t,"` could not be extracted from all schema options"));var l,p=ye(c);try{for(p.s();!(l=p.n()).done;){var m=l.value;if(a.has(m))throw new Error("Discriminator property ".concat(String(t)," has duplicate value ").concat(String(m)));a.set(m,o)}}catch(v){p.e(v)}finally{p.f()}}}catch(v){i.e(v)}finally{i.f()}return new e(C({typeName:ve.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a},Ke(r)))}}])})();function uc(e,t){var n=Wr(e),r=Wr(t);if(e===t)return{valid:!0,data:e};if(n===Se.object&&r===Se.object){var u,a=pt.objectKeys(t),i=pt.objectKeys(e).filter(function(F){return a.indexOf(F)!==-1}),o=C(C({},e),t),c=ye(i);try{for(c.s();!(u=c.n()).done;){var l=u.value,p=uc(e[l],t[l]);if(!p.valid)return{valid:!1};o[l]=p.data}}catch(F){c.e(F)}finally{c.f()}return{valid:!0,data:o}}if(n===Se.array&&r===Se.array){if(e.length!==t.length)return{valid:!1};for(var m=[],v=0;v<e.length;v++){var y=uc(e[v],t[v]);if(!y.valid)return{valid:!1};m.push(y.data)}return{valid:!0,data:m}}return n===Se.date&&r===Se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var so=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx,a=function(i,o){if(xp(i)||xp(o))return Ze;var c=uc(i.value,o.value);return c.valid?((Tp(i)||Tp(o))&&r.dirty(),{status:r.value,value:c.data}):(Ee(u,{code:de.invalid_intersection_types}),Ze)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(function(i){var o=dt(i,2),c=o[0],l=o[1];return a(c,l)}):a(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}])})();so.create=function(e,t,n){return new so(C({left:e,right:t,typeName:ve.ZodIntersection},Ke(n)))};var yu=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t),u=r.status,a=r.ctx;if(a.parsedType!==Se.array)return Ee(a,{code:de.invalid_type,expected:Se.array,received:a.parsedType}),Ze;if(a.data.length<this._def.items.length)return Ee(a,{code:de.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ze;!this._def.rest&&a.data.length>this._def.items.length&&(Ee(a,{code:de.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u.dirty());var i=be(a.data).map(function(o,c){var l=n._def.items[c]||n._def.rest;return l?l._parse(new ar(a,o,a.path,c)):null}).filter(function(o){return!!o});return a.common.async?Promise.all(i).then(function(o){return Sn.mergeArray(u,o)}):Sn.mergeArray(u,i)}},{key:"items",get:function(){return this._def.items}},{key:"rest",value:function(t){return new e(C(C({},this._def),{},{rest:t}))}}])})();yu.create=function(e,t){if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yu(C({items:e,typeName:ve.ZodTuple,rest:null},Ke(t)))};var WD=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}},{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx;if(u.parsedType!==Se.object)return Ee(u,{code:de.invalid_type,expected:Se.object,received:u.parsedType}),Ze;var a=[],i=this._def.keyType,o=this._def.valueType;for(var c in u.data)a.push({key:i._parse(new ar(u,c,u.path,c)),value:o._parse(new ar(u,u.data[c],u.path,c)),alwaysSet:c in u.data});return u.common.async?Sn.mergeObjectAsync(r,a):Sn.mergeObjectSync(r,a)}},{key:"element",get:function(){return this._def.valueType}}],[{key:"create",value:function(t,n,r){return new e(n instanceof tt?C({keyType:t,valueType:n,typeName:ve.ZodRecord},Ke(r)):C({keyType:uo.create(),valueType:t,typeName:ve.ZodRecord},Ke(n)))}}])})(),ac=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}},{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx;if(u.parsedType!==Se.map)return Ee(u,{code:de.invalid_type,expected:Se.map,received:u.parsedType}),Ze;var a=this._def.keyType,i=this._def.valueType,o=be(u.data.entries()).map(function(D,_){var O=dt(D,2),w=O[0],x=O[1];return{key:a._parse(new ar(u,w,u.path,[_,"key"])),value:i._parse(new ar(u,x,u.path,[_,"value"]))}});if(u.common.async){var c=new Map;return Promise.resolve().then(Xe(Ae().m(function D(){var _,O,w,x,S,T;return Ae().w(function(I){for(;;)switch(I.p=I.n){case 0:_=ye(o),I.p=1,_.s();case 2:if((O=_.n()).done){I.n=7;break}return w=O.value,I.n=3,w.key;case 3:return x=I.v,I.n=4,w.value;case 4:if(S=I.v,x.status!=="aborted"&&S.status!=="aborted"){I.n=5;break}return I.a(2,Ze);case 5:x.status!=="dirty"&&S.status!=="dirty"||r.dirty(),c.set(x.value,S.value);case 6:I.n=2;break;case 7:I.n=9;break;case 8:I.p=8,T=I.v,_.e(T);case 9:return I.p=9,_.f(),I.f(9);case 10:return I.a(2,{status:r.value,value:c})}},D,null,[[1,8,9,10]])})))}var l,p=new Map,m=ye(o);try{for(m.s();!(l=m.n()).done;){var v=l.value,y=v.key,F=v.value;if(y.status==="aborted"||F.status==="aborted")return Ze;y.status!=="dirty"&&F.status!=="dirty"||r.dirty(),p.set(y.value,F.value)}}catch(D){m.e(D)}finally{m.f()}return{status:r.value,value:p}}}])})();ac.create=function(e,t,n){return new ac(C({valueType:t,keyType:e,typeName:ve.ZodMap},Ke(n)))};var ic=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx;if(u.parsedType!==Se.set)return Ee(u,{code:de.invalid_type,expected:Se.set,received:u.parsedType}),Ze;var a=this._def;a.minSize!==null&&u.data.size<a.minSize.value&&(Ee(u,{code:de.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&u.data.size>a.maxSize.value&&(Ee(u,{code:de.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());var i=this._def.valueType;function o(l){var p,m=new Set,v=ye(l);try{for(v.s();!(p=v.n()).done;){var y=p.value;if(y.status==="aborted")return Ze;y.status==="dirty"&&r.dirty(),m.add(y.value)}}catch(F){v.e(F)}finally{v.f()}return{status:r.value,value:m}}var c=be(u.data.values()).map(function(l,p){return i._parse(new ar(u,l,u.path,p))});return u.common.async?Promise.all(c).then(function(l){return o(l)}):o(c)}},{key:"min",value:function(t,n){return new e(C(C({},this._def),{},{minSize:{value:t,message:je.toString(n)}}))}},{key:"max",value:function(t,n){return new e(C(C({},this._def),{},{maxSize:{value:t,message:je.toString(n)}}))}},{key:"size",value:function(t,n){return this.min(t,n).max(t,n)}},{key:"nonempty",value:function(t){return this.min(1,t)}}])})();ic.create=function(e,t){return new ic(C({valueType:e,minSize:null,maxSize:null,typeName:ve.ZodSet},Ke(t)))};var VD=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments)).validate=t.implement,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx;if(n.parsedType!==Se.function)return Ee(n,{code:de.invalid_type,expected:Se.function,received:n.parsedType}),Ze;function r(l,p){return Gs({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ks(),Ja].filter(function(m){return!!m}),issueData:{code:de.invalid_arguments,argumentsError:p}})}function u(l,p){return Gs({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ks(),Ja].filter(function(m){return!!m}),issueData:{code:de.invalid_return_type,returnTypeError:p}})}var a={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Qa){var o=this;return En(Xe(Ae().m(function l(){var p,m,v,y,F,D,_,O=arguments;return Ae().w(function(w){for(;;)switch(w.n){case 0:for(p=O.length,m=new Array(p),v=0;v<p;v++)m[v]=O[v];return y=new ur([]),w.n=1,o._def.args.parseAsync(m,a).catch(function(x){throw y.addIssue(r(m,x)),y});case 1:return F=w.v,w.n=2,Reflect.apply(i,this,F);case 2:return D=w.v,w.n=3,o._def.returns._def.type.parseAsync(D,a).catch(function(x){throw y.addIssue(u(D,x)),y});case 3:return _=w.v,w.a(2,_)}},l,this)})))}var c=this;return En(function(){for(var l=arguments.length,p=new Array(l),m=0;m<l;m++)p[m]=arguments[m];var v=c._def.args.safeParse(p,a);if(!v.success)throw new ur([r(p,v.error)]);var y=Reflect.apply(i,this,v.data),F=c._def.returns.safeParse(y,a);if(!F.success)throw new ur([u(y,F.error)]);return F.data})}},{key:"parameters",value:function(){return this._def.args}},{key:"returnType",value:function(){return this._def.returns}},{key:"args",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new e(C(C({},this._def),{},{args:yu.create(n).rest(Ku.create())}))}},{key:"returns",value:function(t){return new e(C(C({},this._def),{},{returns:t}))}},{key:"implement",value:function(t){return this.parse(t)}},{key:"strictImplement",value:function(t){return this.parse(t)}}],[{key:"create",value:function(t,n,r){return new e(C({args:t||yu.create([]).rest(Ku.create()),returns:n||Ku.create(),typeName:ve.ZodFunction},Ke(r)))}}])})(),co=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"schema",get:function(){return this._def.getter()}},{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx;return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}])})();co.create=function(e,t){return new co(C({getter:e,typeName:ve.ZodLazy},Ke(t)))};var lo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(t.data!==this._def.value){var n=this._getOrReturnCtx(t);return Ee(n,{received:n.data,code:de.invalid_literal,expected:this._def.value}),Ze}return{status:"valid",value:t.data}}},{key:"value",get:function(){return this._def.value}}])})();function Pp(e,t){return new fo(C({values:e,typeName:ve.ZodEnum},Ke(t)))}lo.create=function(e,t){return new lo(C({value:e,typeName:ve.ZodLiteral},Ke(t)))};var fo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(typeof t.data!="string"){var n=this._getOrReturnCtx(t),r=this._def.values;return Ee(n,{expected:pt.joinValues(r),received:n.parsedType,code:de.invalid_type}),Ze}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){var u=this._getOrReturnCtx(t),a=this._def.values;return Ee(u,{received:u.data,code:de.invalid_enum_value,options:a}),Ze}return En(t.data)}},{key:"options",get:function(){return this._def.values}},{key:"enum",get:function(){var t,n={},r=ye(this._def.values);try{for(r.s();!(t=r.n()).done;){var u=t.value;n[u]=u}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"Values",get:function(){var t,n={},r=ye(this._def.values);try{for(r.s();!(t=r.n()).done;){var u=t.value;n[u]=u}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"Enum",get:function(){var t,n={},r=ye(this._def.values);try{for(r.s();!(t=r.n()).done;){var u=t.value;n[u]=u}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"extract",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._def;return e.create(t,C(C({},this._def),n))}},{key:"exclude",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._def;return e.create(this.options.filter(function(r){return!t.includes(r)}),C(C({},this._def),n))}}])})();fo.create=Pp;var po=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=pt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Se.string&&r.parsedType!==Se.number){var u=pt.objectValues(n);return Ee(r,{expected:pt.joinValues(u),received:r.parsedType,code:de.invalid_type}),Ze}if(this._cache||(this._cache=new Set(pt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){var a=pt.objectValues(n);return Ee(r,{received:r.data,code:de.invalid_enum_value,options:a}),Ze}return En(t.data)}},{key:"enum",get:function(){return this._def.values}}])})();po.create=function(e,t){return new po(C({values:e,typeName:ve.ZodNativeEnum},Ke(t)))};var Qa=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"unwrap",value:function(){return this._def.type}},{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t).ctx;if(r.parsedType!==Se.promise&&r.common.async===!1)return Ee(r,{code:de.invalid_type,expected:Se.promise,received:r.parsedType}),Ze;var u=r.parsedType===Se.promise?r.data:Promise.resolve(r.data);return En(u.then(function(a){return n._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})}))}}])})();Qa.create=function(e,t){return new Qa(C({type:e,typeName:ve.ZodPromise},Ke(t)))};var _r=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"innerType",value:function(){return this._def.schema}},{key:"sourceType",value:function(){return this._def.schema._def.typeName===ve.ZodEffects?this._def.schema.sourceType():this._def.schema}},{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t),u=r.status,a=r.ctx,i=this._def.effect||null,o={addIssue:function(F){Ee(a,F),F.fatal?u.abort():u.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){var c=i.transform(a.data,o);if(a.common.async)return Promise.resolve(c).then((function(){var F=Xe(Ae().m(function D(_){var O;return Ae().w(function(w){for(;;)switch(w.n){case 0:if(u.value!=="aborted"){w.n=1;break}return w.a(2,Ze);case 1:return w.n=2,n._def.schema._parseAsync({data:_,path:a.path,parent:a});case 2:if((O=w.v).status!=="aborted"){w.n=3;break}return w.a(2,Ze);case 3:if(O.status!=="dirty"){w.n=4;break}return w.a(2,no(O.value));case 4:if(u.value!=="dirty"){w.n=5;break}return w.a(2,no(O.value));case 5:return w.a(2,O)}},D)}));return function(D){return F.apply(this,arguments)}})());if(u.value==="aborted")return Ze;var l=this._def.schema._parseSync({data:c,path:a.path,parent:a});return l.status==="aborted"?Ze:l.status==="dirty"||u.value==="dirty"?no(l.value):l}if(i.type==="refinement"){var p=function(F){var D=i.refinement(F,o);if(a.common.async)return Promise.resolve(D);if(D instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return F};if(a.common.async===!1){var m=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return m.status==="aborted"?Ze:(m.status==="dirty"&&u.dirty(),p(m.value),{status:u.value,value:m.value})}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(function(F){return F.status==="aborted"?Ze:(F.status==="dirty"&&u.dirty(),p(F.value).then(function(){return{status:u.value,value:F.value}}))})}if(i.type==="transform"){if(a.common.async===!1){var v=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Vu(v))return Ze;var y=i.transform(v.value,o);if(y instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:u.value,value:y}}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(function(F){return Vu(F)?Promise.resolve(i.transform(F.value,o)).then(function(D){return{status:u.value,value:D}}):Ze})}pt.assertNever(i)}}])})();_r.create=function(e,t,n){return new _r(C({schema:e,typeName:ve.ZodEffects,effect:t},Ke(n)))},_r.createWithPreprocess=function(e,t,n){return new _r(C({schema:t,effect:{type:"preprocess",transform:e},typeName:ve.ZodEffects},Ke(n)))};var Cr=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){return this._getType(t)===Se.undefined?En(void 0):this._def.innerType._parse(t)}},{key:"unwrap",value:function(){return this._def.innerType}}])})();Cr.create=function(e,t){return new Cr(C({innerType:e,typeName:ve.ZodOptional},Ke(t)))};var Du=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){return this._getType(t)===Se.null?En(null):this._def.innerType._parse(t)}},{key:"unwrap",value:function(){return this._def.innerType}}])})();Du.create=function(e,t){return new Du(C({innerType:e,typeName:ve.ZodNullable},Ke(t)))};var ho=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx,r=n.data;return n.parsedType===Se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}},{key:"removeDefault",value:function(){return this._def.innerType}}])})();ho.create=function(e,t){return new ho(C({innerType:e,typeName:ve.ZodDefault,defaultValue:typeof t.default=="function"?t.default:function(){return t.default}},Ke(t)))};var vo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t).ctx,u=C(C({},r),{},{common:C(C({},r.common),{},{issues:[]})}),a=this._def.innerType._parse({data:u.data,path:u.path,parent:C({},u)});return ro(a)?a.then(function(i){return{status:"valid",value:i.status==="valid"?i.value:n._def.catchValue({get error(){return new ur(u.common.issues)},input:u.data})}}):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ur(u.common.issues)},input:u.data})}}},{key:"removeCatch",value:function(){return this._def.innerType}}])})();vo.create=function(e,t){return new vo(C({innerType:e,typeName:ve.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:function(){return t.catch}},Ke(t)))};var oc=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.nan){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.nan,received:n.parsedType}),Ze}return{status:"valid",value:t.data}}}])})();oc.create=function(e){return new oc(C({typeName:ve.ZodNaN},Ke(e)))};var ve,jp=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx,r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}},{key:"unwrap",value:function(){return this._def.type}}])})(),Np=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t),u=r.status,a=r.ctx;if(a.common.async){var i=(function(){var c=Xe(Ae().m(function l(){var p;return Ae().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,n._def.in._parseAsync({data:a.data,path:a.path,parent:a});case 1:if((p=m.v).status!=="aborted"){m.n=2;break}return m.a(2,Ze);case 2:if(p.status!=="dirty"){m.n=3;break}return u.dirty(),m.a(2,no(p.value));case 3:return m.a(2,n._def.out._parseAsync({data:p.value,path:a.path,parent:a}));case 4:return m.a(2)}},l)}));return function(){return c.apply(this,arguments)}})();return i()}var o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?Ze:o.status==="dirty"?(u.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}],[{key:"create",value:function(t,n){return new e({in:t,out:n,typeName:ve.ZodPipeline})}}])})(),mo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._def.innerType._parse(t),r=function(u){return Vu(u)&&(u.value=Object.freeze(u.value)),u};return ro(n)?n.then(function(u){return r(u)}):r(n)}},{key:"unwrap",value:function(){return this._def.innerType}}])})();mo.create=function(e,t){return new mo(C({innerType:e,typeName:ve.ZodReadonly},Ke(t)))},Vn.lazycreate,(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ve||(ve={})),uo.create,Qs.create,oc.create,Ys.create,Xs.create,ec.create,tc.create,ao.create,io.create,nc.create,Ku.create,Vr.create,rc.create,Gu.create,Vn.create,Vn.strictCreate,oo.create,UD.create,so.create,yu.create,WD.create,ac.create,ic.create,VD.create,co.create,lo.create,fo.create,po.create,Qa.create,_r.create,Cr.create,Du.create,_r.createWithPreprocess,Np.create;var Ya=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.prefix,n=e.size,r=n===void 0?16:n,u=e.alphabet,a=u===void 0?"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz":u,i=e.separator,o=i===void 0?"-":i,c=function(){for(var l=a.length,p=new Array(r),m=0;m<r;m++)p[m]=a[Math.random()*l|0];return p.join("")};if(t==null)return c;if(a.includes(o))throw new P0({argument:"separator",message:'The separator "'.concat(o,'" must not be part of the alphabet "').concat(a,'".')});return function(){return"".concat(t).concat(o).concat(c())}},KD=Ya();function Rp(){var e,t,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:globalThis;return r.window?"runtime/browser":(e=r.navigator)!=null&&e.userAgent?"runtime/".concat(r.navigator.userAgent.toLowerCase()):(n=(t=r.process)==null?void 0:t.versions)!=null&&n.node?"runtime/node.js/".concat(r.process.version.substring(0)):r.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function bu(e){if(e==null)return{};var t={};if(e instanceof Headers)e.forEach(function(o,c){t[c.toLowerCase()]=o});else{Array.isArray(e)||(e=Object.entries(e));var n,r=Su(e);try{for(r.s();!(n=r.n()).done;){var u=Ro(n.value,2),a=u[0],i=u[1];i!=null&&(t[a.toLowerCase()]=i)}}catch(o){r.e(o)}finally{r.f()}}return t}function zp(e){for(var t=new Headers(bu(e)),n=t.get("user-agent")||"",r=arguments.length,u=new Array(r>1?r-1:0),a=1;a<r;a++)u[a-1]=arguments[a];return t.set("user-agent",[n].concat(u).filter(Boolean).join(" ")),Object.fromEntries(t.entries())}var GD=/"__proto__"\s*:/,JD=/"constructor"\s*:/;function Lp(e){var t=JSON.parse(e);return t===null||we(t)!="object"||GD.test(e)===!1&&JD.test(e)===!1?t:(function(n){for(var r=[n];r.length;){var u=r;r=[];var a,i=Su(u);try{for(i.s();!(a=i.n()).done;){var o=a.value;if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(var c in o){var l=o[c];l&&we(l)=="object"&&r.push(l)}}}catch(p){i.e(p)}finally{i.f()}}return n})(t)}var go=Symbol.for("vercel.ai.validator");function QD(e){return(function(r){return we(r)=="object"&&r!==null&&go in r&&r[go]===!0&&"validate"in r})(e)?e:typeof e=="function"?e():(t=e,n=(function(){var r=vt(Oe().m(function u(a){var i;return Oe().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,t["~standard"].validate(a);case 1:return i=o.v,o.a(2,i.issues==null?{success:!0,value:i.value}:{success:!1,error:new Hi({value:a,cause:i.issues})})}},u)}));return function(u){return r.apply(this,arguments)}})(),Zn(Zn({},go,!0),"validate",n));var t,n}function Mp(e){return sc.apply(this,arguments)}function sc(){return sc=vt(Oe().m(function e(t){var n,r,u;return Oe().w(function(a){for(;;)switch(a.n){case 0:return n=t.value,r=t.schema,a.n=1,cc({value:n,schema:r});case 1:if((u=a.v).success){a.n=2;break}throw Hi.wrap({value:n,cause:u.error});case 2:return a.a(2,u.value)}},e)})),sc.apply(this,arguments)}function cc(e){return lc.apply(this,arguments)}function lc(){return lc=vt(Oe().m(function e(t){var n,r,u,a,i;return Oe().w(function(o){for(;;)switch(o.p=o.n){case 0:if(n=t.value,r=t.schema,u=QD(r),o.p=1,u.validate!=null){o.n=2;break}return o.a(2,{success:!0,value:n,rawValue:n});case 2:return o.n=3,u.validate(n);case 3:return a=o.v,o.a(2,a.success?{success:!0,value:a.value,rawValue:n}:{success:!1,error:Hi.wrap({value:n,cause:a.error}),rawValue:n});case 4:return o.p=4,i=o.v,o.a(2,{success:!1,error:Hi.wrap({value:n,cause:i}),rawValue:n})}},e,null,[[1,4]])})),lc.apply(this,arguments)}function yo(e){return fc.apply(this,arguments)}function fc(){return fc=vt(Oe().m(function e(t){var n,r,u,a,i;return Oe().w(function(o){for(;;)switch(o.p=o.n){case 0:if(n=t.text,r=t.schema,o.p=1,u=(function(c){var l=Error.stackTraceLimit;try{Error.stackTraceLimit=0}catch(p){return Lp(c)}try{return Lp(c)}finally{Error.stackTraceLimit=l}})(n),r!=null){o.n=2;break}a={success:!0,value:u,rawValue:u},o.n=4;break;case 2:return o.n=3,cc({value:u,schema:r});case 3:a=o.v;case 4:return o.a(2,a);case 5:return o.p=5,i=o.v,o.a(2,{success:!1,error:yd.isInstance(i)?i:new yd({text:n,cause:i}),rawValue:void 0})}},e,null,[[1,5]])})),fc.apply(this,arguments)}function Qu(e){return dc.apply(this,arguments)}function dc(){return dc=vt(Oe().m(function e(t){return Oe().w(function(n){for(;;)if(n.n===0)return n.a(2,(typeof t=="function"&&(t=t()),Promise.resolve(t)))},e)})),dc.apply(this,arguments)}var YD=function(e,t){for(var n=0;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString()].concat(Qe(t.slice(n))).join("/")},XD=Symbol("Let zodToJsonSchema decide on which parser to use"),$p={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function Zp(e,t){return _t(e.type._def,t)}function qp(e,t,n){var r=n!=null?n:t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map(function(u,a){return qp(e,t,u)})};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return eb(e)}}var eb=function(e){var t,n={type:"integer",format:"unix-time"},r=Su(e.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;switch(u.kind){case"min":n.minimum=u.value;break;case"max":n.maximum=u.value}}}catch(a){r.e(a)}finally{r.f()}return n},pc=void 0,tb=/^[cC][^\s-]{8,}$/,nb=/^[0-9a-z]+$/,rb=/^[0-9A-HJKMNP-TV-Z]{26}$/,ub=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,ab=function(){return pc===void 0&&(pc=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),pc},ib=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ob=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,cb=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,lb=/^[a-zA-Z0-9_-]{21}$/,fb=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function Hp(e,t){var n={type:"string"};if(e.checks){var r,u=Su(e.checks);try{for(u.s();!(r=u.n()).done;){var a=r.value;switch(a.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"email":switch(t.emailStrategy){case"format:email":Kn(n,"email",a.message,t);break;case"format:idn-email":Kn(n,"idn-email",a.message,t);break;case"pattern:zod":vn(n,ub,a.message,t)}break;case"url":Kn(n,"uri",a.message,t);break;case"uuid":Kn(n,"uuid",a.message,t);break;case"regex":vn(n,a.regex,a.message,t);break;case"cuid":vn(n,tb,a.message,t);break;case"cuid2":vn(n,nb,a.message,t);break;case"startsWith":vn(n,RegExp("^".concat(hc(a.value,t))),a.message,t);break;case"endsWith":vn(n,RegExp("".concat(hc(a.value,t),"$")),a.message,t);break;case"datetime":Kn(n,"date-time",a.message,t);break;case"date":Kn(n,"date",a.message,t);break;case"time":Kn(n,"time",a.message,t);break;case"duration":Kn(n,"duration",a.message,t);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"includes":vn(n,RegExp(hc(a.value,t)),a.message,t);break;case"ip":a.version!=="v6"&&Kn(n,"ipv4",a.message,t),a.version!=="v4"&&Kn(n,"ipv6",a.message,t);break;case"base64url":vn(n,cb,a.message,t);break;case"jwt":vn(n,fb,a.message,t);break;case"cidr":a.version!=="v6"&&vn(n,ib,a.message,t),a.version!=="v4"&&vn(n,ob,a.message,t);break;case"emoji":vn(n,ab(),a.message,t);break;case"ulid":vn(n,rb,a.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":Kn(n,"binary",a.message,t);break;case"contentEncoding:base64":n.contentEncoding="base64";break;case"pattern:zod":vn(n,sb,a.message,t)}break;case"nanoid":vn(n,lb,a.message,t)}}}catch(i){u.e(i)}finally{u.f()}}return n}function hc(e,t){return t.patternStrategy==="escape"?(function(n){for(var r="",u=0;u<n.length;u++)db.has(n[u])||(r+="\\"),r+=n[u];return r})(e):e}var db=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Kn(e,t,n,r){var u;e.format||(u=e.anyOf)!=null&&u.some(function(a){return a.format})?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push(pe({format:t},n&&r.errorMessages&&{errorMessage:{format:n}}))):e.format=t}function vn(e,t,n,r){var u;e.pattern||(u=e.allOf)!=null&&u.some(function(a){return a.pattern})?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push(pe({pattern:Up(t,r)},n&&r.errorMessages&&{errorMessage:{pattern:n}}))):e.pattern=Up(t,r)}function Up(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;for(var r=e.flags.includes("i"),u=e.flags.includes("m"),a=e.flags.includes("s"),i=r?e.source.toLowerCase():e.source,o="",c=!1,l=!1,p=!1,m=0;m<i.length;m++)if(c)o+=i[m],c=!1;else{if(r){if(l){if(i[m].match(/[a-z]/)){p?(o+=i[m],o+="".concat(i[m-2],"-").concat(i[m]).toUpperCase(),p=!1):i[m+1]==="-"&&((n=i[m+2])!=null&&n.match(/[a-z]/))?(o+=i[m],p=!0):o+="".concat(i[m]).concat(i[m].toUpperCase());continue}}else if(i[m].match(/[a-z]/)){o+="[".concat(i[m]).concat(i[m].toUpperCase(),"]");continue}}if(u){if(i[m]==="^"){o+=`(^|(?<=[\r
|
|
115
|
+
]))`;continue}if(i[m]==="$"){o+=`($|(?=[\r
|
|
116
|
+
]))`;continue}}a&&i[m]==="."?o+=l?"".concat(i[m],`\r
|
|
117
|
+
`):"[".concat(i[m],`\r
|
|
118
|
+
]`):(o+=i[m],i[m]==="\\"?c=!0:l&&i[m]==="]"?l=!1:l||i[m]!=="["||(l=!0))}try{new RegExp(o)}catch(v){return console.warn("Could not convert regex pattern at ".concat(t.currentPath.join("/")," to a flag-independent form! Falling back to the flag-ignorant source")),e.source}return o}function Wp(e,t){var n,r,u,a,i,o,c={type:"object",additionalProperties:(n=_t(e.valueType._def,pe(pe({},t),{},{currentPath:[].concat(Qe(t.currentPath),["additionalProperties"])})))!=null?n:t.allowedAdditionalProperties};if(((r=e.keyType)==null?void 0:r._def.typeName)===ve.ZodString&&((u=e.keyType._def.checks)!=null&&u.length)){var l=Hp(e.keyType._def,t);l.type;var p=Nr(l,mv);return pe(pe({},c),{},{propertyNames:p})}if(((a=e.keyType)==null?void 0:a._def.typeName)===ve.ZodEnum)return pe(pe({},c),{},{propertyNames:{enum:e.keyType._def.values}});if(((i=e.keyType)==null?void 0:i._def.typeName)===ve.ZodBranded&&e.keyType._def.type._def.typeName===ve.ZodString&&((o=e.keyType._def.type._def.checks)!=null&&o.length)){var m=Zp(e.keyType._def,t);m.type;var v=Nr(m,gv);return pe(pe({},c),{},{propertyNames:v})}return c}var vc={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function pb(e){try{return e.isOptional()}catch(t){return!0}}var hb=function(e,t,n){switch(t){case ve.ZodString:return Hp(e,n);case ve.ZodNumber:return(function(r){var u={type:"number"};if(!r.checks)return u;var a,i=Su(r.checks);try{for(i.s();!(a=i.n()).done;){var o=a.value;switch(o.kind){case"int":u.type="integer";break;case"min":o.inclusive?u.minimum=o.value:u.exclusiveMinimum=o.value;break;case"max":o.inclusive?u.maximum=o.value:u.exclusiveMaximum=o.value;break;case"multipleOf":u.multipleOf=o.value}}}catch(c){i.e(c)}finally{i.f()}return u})(e);case ve.ZodObject:return(function(r,u){var a={type:"object",properties:{}},i=[],o=r.shape();for(var c in o){var l=o[c];if(l!==void 0&&l._def!==void 0){var p=pb(l),m=_t(l._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["properties",c]),propertyPath:[].concat(Qe(u.currentPath),["properties",c])}));m!==void 0&&(a.properties[c]=m,p||i.push(c))}}i.length&&(a.required=i);var v=(function(y,F){if(y.catchall._def.typeName!=="ZodNever")return _t(y.catchall._def,pe(pe({},F),{},{currentPath:[].concat(Qe(F.currentPath),["additionalProperties"])}));switch(y.unknownKeys){case"passthrough":return F.allowedAdditionalProperties;case"strict":return F.rejectedAdditionalProperties;case"strip":return F.removeAdditionalStrategy==="strict"?F.allowedAdditionalProperties:F.rejectedAdditionalProperties}})(r,u);return v!==void 0&&(a.additionalProperties=v),a})(e,n);case ve.ZodBigInt:return(function(r){var u={type:"integer",format:"int64"};if(!r.checks)return u;var a,i=Su(r.checks);try{for(i.s();!(a=i.n()).done;){var o=a.value;switch(o.kind){case"min":o.inclusive?u.minimum=o.value:u.exclusiveMinimum=o.value;break;case"max":o.inclusive?u.maximum=o.value:u.exclusiveMaximum=o.value;break;case"multipleOf":u.multipleOf=o.value}}}catch(c){i.e(c)}finally{i.f()}return u})(e);case ve.ZodBoolean:return{type:"boolean"};case ve.ZodDate:return qp(e,n);case ve.ZodUndefined:return{not:{}};case ve.ZodNull:return{type:"null"};case ve.ZodArray:return(function(r,u){var a,i,o,c={type:"array"};return(a=r.type)!=null&&a._def&&((o=(i=r.type)==null?void 0:i._def)==null?void 0:o.typeName)!==ve.ZodAny&&(c.items=_t(r.type._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items"])}))),r.minLength&&(c.minItems=r.minLength.value),r.maxLength&&(c.maxItems=r.maxLength.value),r.exactLength&&(c.minItems=r.exactLength.value,c.maxItems=r.exactLength.value),c})(e,n);case ve.ZodUnion:case ve.ZodDiscriminatedUnion:return(function(r,u){var a=r.options instanceof Map?Array.from(r.options.values()):r.options;if(a.every(function(l){return l._def.typeName in vc&&(!l._def.checks||!l._def.checks.length)})){var i=a.reduce(function(l,p){var m=vc[p._def.typeName];return m&&!l.includes(m)?[].concat(Qe(l),[m]):l},[]);return{type:i.length>1?i:i[0]}}if(a.every(function(l){return l._def.typeName==="ZodLiteral"&&!l.description})){var o=a.reduce(function(l,p){var m=we(p._def.value);switch(m){case"string":case"number":case"boolean":return[].concat(Qe(l),[m]);case"bigint":return[].concat(Qe(l),["integer"]);case"object":if(p._def.value===null)return[].concat(Qe(l),["null"]);default:return l}},[]);if(o.length===a.length){var c=o.filter(function(l,p,m){return m.indexOf(l)===p});return{type:c.length>1?c:c[0],enum:a.reduce(function(l,p){return l.includes(p._def.value)?l:[].concat(Qe(l),[p._def.value])},[])}}}else if(a.every(function(l){return l._def.typeName==="ZodEnum"}))return{type:"string",enum:a.reduce(function(l,p){return[].concat(Qe(l),Qe(p._def.values.filter(function(m){return!l.includes(m)})))},[])};return(function(l,p){var m=(l.options instanceof Map?Array.from(l.options.values()):l.options).map(function(v,y){return _t(v._def,pe(pe({},p),{},{currentPath:[].concat(Qe(p.currentPath),["anyOf","".concat(y)])}))}).filter(function(v){return!!v&&(!p.strictUnions||we(v)=="object"&&Object.keys(v).length>0)});return m.length?{anyOf:m}:void 0})(r,u)})(e,n);case ve.ZodIntersection:return(function(r,u){var a=[_t(r.left._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["allOf","0"])})),_t(r.right._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["allOf","1"])}))].filter(function(o){return!!o}),i=[];return a.forEach(function(o){if("type"in(l=o)&&l.type==="string"||!("allOf"in l)){var c=o;"additionalProperties"in o&&o.additionalProperties===!1&&(o.additionalProperties,c=Nr(o,yv)),i.push(c)}else i.push.apply(i,Qe(o.allOf));var l}),i.length?{allOf:i}:void 0})(e,n);case ve.ZodTuple:return(function(r,u){return r.rest?{type:"array",minItems:r.items.length,items:r.items.map(function(a,i){return _t(a._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items","".concat(i)])}))}).reduce(function(a,i){return i===void 0?a:[].concat(Qe(a),[i])},[]),additionalItems:_t(r.rest._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["additionalItems"])}))}:{type:"array",minItems:r.items.length,maxItems:r.items.length,items:r.items.map(function(a,i){return _t(a._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items","".concat(i)])}))}).reduce(function(a,i){return i===void 0?a:[].concat(Qe(a),[i])},[])}})(e,n);case ve.ZodRecord:return Wp(e,n);case ve.ZodLiteral:return(function(r){var u=we(r.value);return u!=="bigint"&&u!=="number"&&u!=="boolean"&&u!=="string"?{type:Array.isArray(r.value)?"array":"object"}:{type:u==="bigint"?"integer":u,const:r.value}})(e);case ve.ZodEnum:return(function(r){return{type:"string",enum:Array.from(r.values)}})(e);case ve.ZodNativeEnum:return(function(r){var u=r.values,a=Object.keys(r.values).filter(function(o){return typeof u[u[o]]!="number"}).map(function(o){return u[o]}),i=Array.from(new Set(a.map(function(o){return we(o)})));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:a}})(e);case ve.ZodNullable:return(function(r,u){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(r.innerType._def.typeName)&&(!r.innerType._def.checks||!r.innerType._def.checks.length))return{type:[vc[r.innerType._def.typeName],"null"]};var a=_t(r.innerType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["anyOf","0"])}));return a&&{anyOf:[a,{type:"null"}]}})(e,n);case ve.ZodOptional:return(function(r,u){var a;if(u.currentPath.toString()===((a=u.propertyPath)==null?void 0:a.toString()))return _t(r.innerType._def,u);var i=_t(r.innerType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["anyOf","1"])}));return i?{anyOf:[{not:{}},i]}:{}})(e,n);case ve.ZodMap:return(function(r,u){return u.mapStrategy==="record"?Wp(r,u):{type:"array",maxItems:125,items:{type:"array",items:[_t(r.keyType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items","items","0"])}))||{},_t(r.valueType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items","items","1"])}))||{}],minItems:2,maxItems:2}}})(e,n);case ve.ZodSet:return(function(r,u){var a={type:"array",uniqueItems:!0,items:_t(r.valueType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items"])}))};return r.minSize&&(a.minItems=r.minSize.value),r.maxSize&&(a.maxItems=r.maxSize.value),a})(e,n);case ve.ZodLazy:return function(){return e.getter()._def};case ve.ZodPromise:return(function(r,u){return _t(r.type._def,u)})(e,n);case ve.ZodNaN:case ve.ZodNever:return{not:{}};case ve.ZodEffects:return(function(r,u){return u.effectStrategy==="input"?_t(r.schema._def,u):{}})(e,n);case ve.ZodAny:case ve.ZodUnknown:return{};case ve.ZodDefault:return(function(r,u){return pe(pe({},_t(r.innerType._def,u)),{},{default:r.defaultValue()})})(e,n);case ve.ZodBranded:return Zp(e,n);case ve.ZodReadonly:case ve.ZodCatch:return(function(r,u){return _t(r.innerType._def,u)})(e,n);case ve.ZodPipeline:return(function(r,u){if(u.pipeStrategy==="input")return _t(r.in._def,u);if(u.pipeStrategy==="output")return _t(r.out._def,u);var a=_t(r.in._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["allOf","0"])}));return{allOf:[a,_t(r.out._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["allOf",a?"1":"0"])}))].filter(function(i){return i!==void 0})}})(e,n);case ve.ZodFunction:case ve.ZodVoid:case ve.ZodSymbol:default:return}};function _t(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],u=t.seen.get(e);if(t.override){var a=(n=t.override)==null?void 0:n.call(t,e,t,u,r);if(a!==XD)return a}if(u&&!r){var i=vb(u,t);if(i!==void 0)return i}var o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);var c=hb(e,e.typeName,t),l=typeof c=="function"?_t(c(),t):c;if(l&&mb(e,t,l),t.postProcess){var p=t.postProcess(l,e,t);return o.jsonSchema=l,p}return o.jsonSchema=l,l}var vb=function(e,t){switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:YD(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(function(n,r){return t.currentPath[r]===n})?(console.warn("Recursive reference detected at ".concat(t.currentPath.join("/"),"! Defaulting to any")),{}):t.$refStrategy==="seen"?{}:void 0}},mb=function(e,t,n){return e.description&&(n.description=e.description),n},gb=function(e,t){var n,r=(function(l){var p=(function(v){return typeof v=="string"?pe(pe({},$p),{},{name:v}):pe(pe({},$p),v)})(l),m=p.name!==void 0?[].concat(Qe(p.basePath),[p.definitionPath,p.name]):p.basePath;return pe(pe({},p),{},{currentPath:m,propertyPath:void 0,seen:new Map(Object.entries(p.definitions).map(function(v){var y=Ro(v,2),F=y[0],D=y[1];return[D._def,{def:D._def,path:[].concat(Qe(p.basePath),[p.definitionPath,F]),jsonSchema:void 0}]}))})})(t),u=we(t)=="object"&&t.definitions?Object.entries(t.definitions).reduce(function(l,p){var m,v=Ro(p,2),y=v[0],F=v[1];return pe(pe({},l),{},Zn({},y,(m=_t(F._def,pe(pe({},r),{},{currentPath:[].concat(Qe(r.basePath),[r.definitionPath,y])}),!0))!=null?m:{}))},{}):void 0,a=typeof t=="string"?t:(t==null?void 0:t.nameStrategy)==="title"||t==null?void 0:t.name,i=(n=_t(e._def,a===void 0?r:pe(pe({},r),{},{currentPath:[].concat(Qe(r.basePath),[r.definitionPath,a])}),!1))!=null?n:{},o=we(t)=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;o!==void 0&&(i.title=o);var c=a===void 0?u?pe(pe({},i),{},Zn({},r.definitionPath,u)):i:Zn({$ref:[].concat(Qe(r.$refStrategy==="relative"?[]:r.basePath),[r.definitionPath,a]).join("/")},r.definitionPath,pe(pe({},u),{},Zn({},a,i)));return c.$schema="http://json-schema.org/draft-07/schema#",c};function Vp(e,t){return(function(n){return"_zod"in n})(e)?(function(n){return gc(function(){return(function(u,a){if(u instanceof ep){var i,o=new dp(a),c={},l=ye(u._idmap.entries());try{for(l.s();!(i=l.n()).done;){var p=dt(i.value,2),m=(p[0],p[1]);o.process(m)}}catch(T){l.e(T)}finally{l.f()}var v,y={},F={registry:u,uri:a==null?void 0:a.uri,defs:c},D=ye(u._idmap.entries());try{for(D.s();!(v=D.n()).done;){var _=dt(v.value,2),O=_[0],w=_[1];y[O]=o.emit(w,C(C({},a),{},{external:F}))}}catch(T){D.e(T)}finally{D.f()}if(Object.keys(c).length>0){var x=o.target==="draft-2020-12"?"$defs":"definitions";y.__shared=lt({},x,c)}return{schemas:y}}var S=new dp(a);return S.process(u),S.emit(u,a)})(n,{target:"draft-7",io:"output",reused:"inline"})},{validate:(r=vt(Oe().m(function u(a){var i;return Oe().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,pp(n,a);case 1:return i=o.v,o.a(2,i.success?{success:!0,value:i.data}:{success:!1,error:i.error})}},u)})),function(u){return r.apply(this,arguments)})});var r})(e):(function(n){return gc(function(){return gb(n,{$refStrategy:"none"})},{validate:(r=vt(Oe().m(function u(a){var i;return Oe().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,n.safeParseAsync(a);case 1:return i=o.v,o.a(2,i.success?{success:!0,value:i.data}:{success:!1,error:i.error})}},u)})),function(u){return r.apply(this,arguments)})});var r})(e)}var mc=Symbol.for("vercel.ai.schema");function gc(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).validate;return Zn((function(n,r,u,a){var i={configurable:!0,enumerable:!0};return i[n]=a,Object.defineProperty(r,u,i)})("get",Zn(Zn(Zn({},mc,!0),"_type",void 0),go,!0),"jsonSchema",function(){return typeof e=="function"&&(e=e()),e}),"validate",t)}var Kp,yb=Object.defineProperty,Gp="AI_NoObjectGeneratedError",Jp="vercel.ai.error.".concat(Gp),Db=Symbol.for(Jp),Qp=(function(){function e(t){var n,r=t.message,u=r===void 0?"No object generated.":r,a=t.cause,i=t.text,o=t.response,c=t.usage,l=t.finishReason;return Mn(this,e),(n=au(this,e,[{name:Gp,message:u,cause:a}]))[Kp]=!0,n.text=i,n.response=o,n.usage=c,n.finishReason=l,n}return iu(e,Zr),$n(e,null,[{key:"isInstance",value:function(t){return Zr.hasMarker(t,Jp)}}])})();Kp=Db;var Yp="5.0.93",Xp=Pn([ze(),to(Uint8Array),to(ArrayBuffer),Sp(function(e){var t,n;return(n=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null&&n},{message:"Must be a Buffer"})]),Xa=new ED({type:"lazy",getter:function(){return Pn([oD(),ze(),rD(),An(),Us(ze(),Xa),Wu(Xa)])}}),Kt=Us(ze(),Us(ze(),Xa)),eh=sn({type:Ye("text"),text:ze(),providerOptions:Kt.optional()}),bb=sn({type:Ye("image"),image:Pn([Xp,to(URL)]),mediaType:ze().optional(),providerOptions:Kt.optional()}),th=sn({type:Ye("file"),data:Pn([Xp,to(URL)]),filename:ze().optional(),mediaType:ze(),providerOptions:Kt.optional()}),Ab=sn({type:Ye("reasoning"),text:ze(),providerOptions:Kt.optional()}),Eb=sn({type:Ye("tool-call"),toolCallId:ze(),toolName:ze(),input:rr(),providerOptions:Kt.optional(),providerExecuted:An().optional()}),Fb=new fD(C({type:"union",options:[sn({type:Ye("text"),value:ze()}),sn({type:Ye("json"),value:Xa}),sn({type:Ye("error-text"),value:ze()}),sn({type:Ye("error-json"),value:Xa}),sn({type:Ye("content"),value:Wu(Pn([sn({type:Ye("text"),text:ze()}),sn({type:Ye("media"),data:ze(),mediaType:ze()})]))})],discriminator:"type"},xe(void 0))),nh=sn({type:Ye("tool-result"),toolCallId:ze(),toolName:ze(),output:Fb,providerOptions:Kt.optional()}),_b=sn({role:Ye("system"),content:ze(),providerOptions:Kt.optional()}),Cb=sn({role:Ye("user"),content:Pn([ze(),Wu(Pn([eh,bb,th]))]),providerOptions:Kt.optional()}),kb=sn({role:Ye("assistant"),content:Pn([ze(),Wu(Pn([eh,th,Ab,Eb,nh]))]),providerOptions:Kt.optional()});Pn([_b,Cb,kb,sn({role:Ye("tool"),content:Wu(nh),providerOptions:Kt.optional()})]),Ya({prefix:"aitxt",size:24}),TransformStream;var wb=(function(){var e;return function(){return e==null&&(e=Vp(Pn([Lt({type:Ye("text-start"),id:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("text-delta"),id:ze(),delta:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("text-end"),id:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("error"),errorText:ze()}),Lt({type:Ye("tool-input-start"),toolCallId:ze(),toolName:ze(),providerExecuted:An().optional(),dynamic:An().optional()}),Lt({type:Ye("tool-input-delta"),toolCallId:ze(),inputTextDelta:ze()}),Lt({type:Ye("tool-input-available"),toolCallId:ze(),toolName:ze(),input:rr(),providerExecuted:An().optional(),providerMetadata:Kt.optional(),dynamic:An().optional()}),Lt({type:Ye("tool-input-error"),toolCallId:ze(),toolName:ze(),input:rr(),providerExecuted:An().optional(),providerMetadata:Kt.optional(),dynamic:An().optional(),errorText:ze()}),Lt({type:Ye("tool-output-available"),toolCallId:ze(),output:rr(),providerExecuted:An().optional(),dynamic:An().optional(),preliminary:An().optional()}),Lt({type:Ye("tool-output-error"),toolCallId:ze(),errorText:ze(),providerExecuted:An().optional(),dynamic:An().optional()}),Lt({type:Ye("reasoning-start"),id:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("reasoning-delta"),id:ze(),delta:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("reasoning-end"),id:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("source-url"),sourceId:ze(),url:ze(),title:ze().optional(),providerMetadata:Kt.optional()}),Lt({type:Ye("source-document"),sourceId:ze(),mediaType:ze(),title:ze(),filename:ze().optional(),providerMetadata:Kt.optional()}),Lt({type:Ye("file"),url:ze(),mediaType:ze(),providerMetadata:Kt.optional()}),Lt({type:Sp(function(t){return typeof t=="string"&&t.startsWith("data-")},{message:'Type must start with "data-"'}),id:ze().optional(),data:rr(),transient:An().optional()}),Lt({type:Ye("start-step")}),Lt({type:Ye("finish-step")}),Lt({type:Ye("start"),messageId:ze().optional(),messageMetadata:rr().optional()}),Lt({type:Ye("finish"),finishReason:Ap(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:rr().optional()}),Lt({type:Ye("abort")}),Lt({type:Ye("message-metadata"),messageMetadata:rr()})]))),e}})();function rh(e,t){if(e!==void 0||t!==void 0){if(e===void 0)return t;if(t===void 0)return e;var n=pe({},e);for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var u=t[r];if(u===void 0)continue;var a=r in e?e[r]:void 0,i=!(u===null||we(u)!="object"||Array.isArray(u)||u instanceof Date||u instanceof RegExp),o=!(a==null||we(a)!="object"||Array.isArray(a)||a instanceof Date||a instanceof RegExp);n[r]=i&&o?rh(a,u):u}return n}}function Sb(e){var t=["ROOT"],n=-1,r=null;function u(y,F,D){switch(y){case'"':n=F,t.pop(),t.push(D),t.push("INSIDE_STRING");break;case"f":case"t":case"n":n=F,r=F,t.pop(),t.push(D),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(D),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=F,t.pop(),t.push(D),t.push("INSIDE_NUMBER");break;case"{":n=F,t.pop(),t.push(D),t.push("INSIDE_OBJECT_START");break;case"[":n=F,t.pop(),t.push(D),t.push("INSIDE_ARRAY_START")}}function a(y,F){switch(y){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":n=F,t.pop()}}function i(y,F){switch(y){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=F,t.pop()}}for(var o=0;o<e.length;o++){var c=e[o];switch(t[t.length-1]){case"ROOT":u(c,o,"FINISH");break;case"INSIDE_OBJECT_START":switch(c){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":n=o,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":c==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":c==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":c===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":u(c,o,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":a(c,o);break;case"INSIDE_STRING":switch(c){case'"':t.pop(),n=o;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:n=o}break;case"INSIDE_ARRAY_START":c==="]"?(n=o,t.pop()):(n=o,u(c,o,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(c){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=o,t.pop();break;default:n=o}break;case"INSIDE_ARRAY_AFTER_COMMA":u(c,o,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),n=o;break;case"INSIDE_NUMBER":switch(c){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=o;break;case"e":case"E":case"-":case".":break;case",":t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(c,o),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,o);break;case"}":t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,o);break;case"]":t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(c,o);break;default:t.pop()}break;case"INSIDE_LITERAL":var l=e.substring(r,o+1);"false".startsWith(l)||"true".startsWith(l)||"null".startsWith(l)?n=o:(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?a(c,o):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(c,o))}}for(var p=e.slice(0,n+1),m=t.length-1;m>=0;m--)switch(t[m]){case"INSIDE_STRING":p+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":p+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":p+="]";break;case"INSIDE_LITERAL":var v=e.substring(r,e.length);"true".startsWith(v)?p+="true".slice(v.length):"false".startsWith(v)?p+="false".slice(v.length):"null".startsWith(v)&&(p+="null".slice(v.length))}return p}function uh(e){return yc.apply(this,arguments)}function yc(){return yc=vt(Oe().m(function e(t){var n,r;return Oe().w(function(u){for(;;)switch(u.n){case 0:if(t!==void 0){u.n=1;break}return u.a(2,{value:void 0,state:"undefined-input"});case 1:return u.n=2,yo({text:t});case 2:if(!(n=u.v).success){u.n=3;break}r={value:n.value,state:"successful-parse"},u.n=5;break;case 3:return u.n=4,yo({text:Sb(t)});case 4:n=u.v,r=n.success?{value:n.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"};case 5:return u.a(2,r)}},e)})),yc.apply(this,arguments)}function Do(e){return e.type.startsWith("tool-")}function Dc(e){return Do(e)||(function(t){return t.type==="dynamic-tool"})(e)}function ah(e){return e.type.split("-").slice(1).join("-")}function xb(e){var t=e.lastMessage,n=e.messageId;return{message:(t==null?void 0:t.role)==="assistant"?t:{id:n,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function Tb(e){var t=e.stream,n=e.messageMetadataSchema,r=e.dataPartSchemas,u=e.runUpdateMessageJob,a=e.onError,i=e.onToolCall,o=e.onData;return t.pipeThrough(new TransformStream({transform:function(c,l){return vt(Oe().m(function p(){return Oe().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,u((function(){var v=vt(Oe().m(function y(F){var D,_,O,w,x,S,T,I,B,d,H,R,Z,q,G,L,ne,Q,$,Y,re,me,se,K,V,ue,oe,ce,ee;return Oe().w(function(he){for(;;)switch(he.n){case 0:R=function(){return R=vt(Oe().m(function Ce(Re){var ge;return Oe().w(function(Te){for(;;)switch(Te.n){case 0:if(Re==null){Te.n=2;break}if(ge=D.message.metadata!=null?rh(D.message.metadata,Re):Re,n==null){Te.n=1;break}return Te.n=1,Mp({value:ge,schema:n});case 1:D.message.metadata=ge;case 2:return Te.a(2)}},Ce)})),R.apply(this,arguments)},H=function(Ce){return R.apply(this,arguments)},d=function(Ce){var Re,ge,Te=D.message.parts.find(function(Ge){return Ge.type==="dynamic-tool"&&Ge.toolCallId===Ce.toolCallId}),He=Ce,nt=Te;Te!=null?(Te.state=Ce.state,nt.toolName=Ce.toolName,nt.input=He.input,nt.output=He.output,nt.errorText=He.errorText,nt.rawInput=(Re=He.rawInput)!=null?Re:nt.rawInput,nt.preliminary=He.preliminary,nt.providerExecuted=(ge=He.providerExecuted)!=null?ge:Te.providerExecuted,He.providerMetadata!=null&&Te.state==="input-available"&&(Te.callProviderMetadata=He.providerMetadata)):D.message.parts.push(pe({type:"dynamic-tool",toolName:Ce.toolName,toolCallId:Ce.toolCallId,state:Ce.state,input:He.input,output:He.output,errorText:He.errorText,preliminary:He.preliminary,providerExecuted:He.providerExecuted},He.providerMetadata!=null?{callProviderMetadata:He.providerMetadata}:{}))},B=function(Ce){var Re,ge=D.message.parts.find(function(nt){return Do(nt)&&nt.toolCallId===Ce.toolCallId}),Te=Ce,He=ge;ge!=null?(ge.state=Ce.state,He.input=Te.input,He.output=Te.output,He.errorText=Te.errorText,He.rawInput=Te.rawInput,He.preliminary=Te.preliminary,He.providerExecuted=(Re=Te.providerExecuted)!=null?Re:ge.providerExecuted,Te.providerMetadata!=null&&ge.state==="input-available"&&(ge.callProviderMetadata=Te.providerMetadata)):D.message.parts.push(pe({type:"tool-".concat(Ce.toolName),toolCallId:Ce.toolCallId,state:Ce.state,input:Te.input,output:Te.output,rawInput:Te.rawInput,errorText:Te.errorText,providerExecuted:Te.providerExecuted,preliminary:Te.preliminary},Te.providerMetadata!=null?{callProviderMetadata:Te.providerMetadata}:{}))},I=function(Ce){var Re=D.message.parts.filter(function(ge){return ge.type==="dynamic-tool"}).find(function(ge){return ge.toolCallId===Ce});if(Re==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return Re},T=function(Ce){var Re=D.message.parts.filter(Do).find(function(ge){return ge.toolCallId===Ce});if(Re==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return Re},D=F.state,_=F.write,ee=c.type,he.n=ee==="text-start"?1:ee==="text-delta"?2:ee==="text-end"?3:ee==="reasoning-start"?4:ee==="reasoning-delta"?5:ee==="reasoning-end"?6:ee==="file"?7:ee==="source-url"?8:ee==="source-document"?9:ee==="tool-input-start"?10:ee==="tool-input-delta"?11:ee==="tool-input-available"?13:ee==="tool-input-error"?15:ee==="tool-output-available"?16:ee==="tool-output-error"?17:ee==="start-step"?18:ee==="finish-step"?19:ee==="start"?20:ee==="finish"?22:ee==="message-metadata"?24:ee==="error"?26:27;break;case 1:return Z={type:"text",text:"",providerMetadata:c.providerMetadata,state:"streaming"},D.activeTextParts[c.id]=Z,D.message.parts.push(Z),_(),he.a(3,30);case 2:return(q=D.activeTextParts[c.id]).text+=c.delta,q.providerMetadata=(O=c.providerMetadata)!=null?O:q.providerMetadata,_(),he.a(3,30);case 3:return(G=D.activeTextParts[c.id]).state="done",G.providerMetadata=(w=c.providerMetadata)!=null?w:G.providerMetadata,delete D.activeTextParts[c.id],_(),he.a(3,30);case 4:return L={type:"reasoning",text:"",providerMetadata:c.providerMetadata,state:"streaming"},D.activeReasoningParts[c.id]=L,D.message.parts.push(L),_(),he.a(3,30);case 5:return(ne=D.activeReasoningParts[c.id]).text+=c.delta,ne.providerMetadata=(x=c.providerMetadata)!=null?x:ne.providerMetadata,_(),he.a(3,30);case 6:return(Q=D.activeReasoningParts[c.id]).providerMetadata=(S=c.providerMetadata)!=null?S:Q.providerMetadata,Q.state="done",delete D.activeReasoningParts[c.id],_(),he.a(3,30);case 7:return D.message.parts.push({type:"file",mediaType:c.mediaType,url:c.url}),_(),he.a(3,30);case 8:return D.message.parts.push({type:"source-url",sourceId:c.sourceId,url:c.url,title:c.title,providerMetadata:c.providerMetadata}),_(),he.a(3,30);case 9:return D.message.parts.push({type:"source-document",sourceId:c.sourceId,mediaType:c.mediaType,title:c.title,filename:c.filename,providerMetadata:c.providerMetadata}),_(),he.a(3,30);case 10:return $=D.message.parts.filter(Do),D.partialToolCalls[c.toolCallId]={text:"",toolName:c.toolName,index:$.length,dynamic:c.dynamic},c.dynamic?d({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-streaming",input:void 0,providerExecuted:c.providerExecuted}):B({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-streaming",input:void 0,providerExecuted:c.providerExecuted}),_(),he.a(3,30);case 11:return(Y=D.partialToolCalls[c.toolCallId]).text+=c.inputTextDelta,he.n=12,uh(Y.text);case 12:return re=he.v,me=re.value,Y.dynamic?d({toolCallId:c.toolCallId,toolName:Y.toolName,state:"input-streaming",input:me}):B({toolCallId:c.toolCallId,toolName:Y.toolName,state:"input-streaming",input:me}),_(),he.a(3,30);case 13:if(c.dynamic?d({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-available",input:c.input,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}):B({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-available",input:c.input,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}),_(),!(i&&!c.providerExecuted)){he.n=14;break}return he.n=14,i({toolCall:c});case 14:return he.a(3,30);case 15:return c.dynamic?d({toolCallId:c.toolCallId,toolName:c.toolName,state:"output-error",input:c.input,errorText:c.errorText,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}):B({toolCallId:c.toolCallId,toolName:c.toolName,state:"output-error",input:void 0,rawInput:c.input,errorText:c.errorText,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}),_(),he.a(3,30);case 16:return c.dynamic?(se=I(c.toolCallId),d({toolCallId:c.toolCallId,toolName:se.toolName,state:"output-available",input:se.input,output:c.output,preliminary:c.preliminary})):(K=T(c.toolCallId),B({toolCallId:c.toolCallId,toolName:ah(K),state:"output-available",input:K.input,output:c.output,providerExecuted:c.providerExecuted,preliminary:c.preliminary})),_(),he.a(3,30);case 17:return c.dynamic?(V=I(c.toolCallId),d({toolCallId:c.toolCallId,toolName:V.toolName,state:"output-error",input:V.input,errorText:c.errorText,providerExecuted:c.providerExecuted})):(ue=T(c.toolCallId),B({toolCallId:c.toolCallId,toolName:ah(ue),state:"output-error",input:ue.input,rawInput:ue.rawInput,errorText:c.errorText,providerExecuted:c.providerExecuted})),_(),he.a(3,30);case 18:return D.message.parts.push({type:"step-start"}),he.a(3,30);case 19:return D.activeTextParts={},D.activeReasoningParts={},he.a(3,30);case 20:return c.messageId!=null&&(D.message.id=c.messageId),he.n=21,H(c.messageMetadata);case 21:return c.messageId==null&&c.messageMetadata==null||_(),he.a(3,30);case 22:return c.finishReason!=null&&(D.finishReason=c.finishReason),he.n=23,H(c.messageMetadata);case 23:return c.messageMetadata!=null&&_(),he.a(3,30);case 24:return he.n=25,H(c.messageMetadata);case 25:return c.messageMetadata!=null&&_(),he.a(3,30);case 26:return a==null||a(new Error(c.errorText)),he.a(3,30);case 27:if(!(function(Ce){return Ce.type.startsWith("data-")})(c)){he.n=30;break}if((r==null?void 0:r[c.type])==null){he.n=28;break}return he.n=28,Mp({value:c.data,schema:r[c.type]});case 28:if(!(oe=c).transient){he.n=29;break}return o==null||o(oe),he.a(3,30);case 29:ce=oe.id!=null?D.message.parts.find(function(Ce){return oe.type===Ce.type&&oe.id===Ce.id}):void 0,ce!=null?ce.data=oe.data:D.message.parts.push(oe),o==null||o(oe),_();case 30:l.enqueue(c);case 31:return he.a(2)}},y)}));return function(y){return v.apply(this,arguments)}})());case 1:return m.a(2)}},p)}))()}}))}Ya({prefix:"aitxt",size:24}),Ya({prefix:"aiobj",size:24});var Ob=(function(){return $n(function n(){Mn(this,n),this.queue=[],this.isProcessing=!1},[{key:"processQueue",value:(t=vt(Oe().m(function n(){return Oe().w(function(r){for(;;)switch(r.n){case 0:if(this.isProcessing){r.n=5;break}this.isProcessing=!0;case 1:if(!(this.queue.length>0)){r.n=4;break}return r.n=2,this.queue[0]();case 2:this.queue.shift();case 3:r.n=1;break;case 4:this.isProcessing=!1;case 5:return r.a(2)}},n,this)})),function(){return t.apply(this,arguments)})},{key:"run",value:(e=vt(Oe().m(function n(r){var u=this;return Oe().w(function(a){for(;;)if(a.n===0)return a.a(2,new Promise(function(i,o){u.queue.push(vt(Oe().m(function c(){var l;return Oe().w(function(p){for(;;)switch(p.p=p.n){case 0:return p.p=0,p.n=1,r();case 1:i(),p.n=3;break;case 2:p.p=2,l=p.v,o(l);case 3:return p.a(2)}},c,null,[[0,2]])}))),u.processQueue()}))},n)})),function(n){return e.apply(this,arguments)})}]);var e,t})();Ya({prefix:"aiobj",size:24}),(function(e,t){for(var n in t)yb(e,n,{get:t[n],enumerable:!0})})({},{object:function(){return Bb},text:function(){return Ib}});var ih,oh,Ib=function(){return{type:"text",responseFormat:{type:"text"},parsePartial:(t=vt(Oe().m(function n(r){var u;return Oe().w(function(a){for(;;)if(a.n===0)return u=r.text,a.a(2,{partial:u})},n)})),function(n){return t.apply(this,arguments)}),parseOutput:(e=vt(Oe().m(function n(r){var u;return Oe().w(function(a){for(;;)if(a.n===0)return u=r.text,a.a(2,u)},n)})),function(n){return e.apply(this,arguments)})};var e,t},Bb=function(e){var t=(function(n){return n==null?gc({properties:{},additionalProperties:!1}):we(r=n)=="object"&&r!==null&&mc in r&&r[mc]===!0&&"jsonSchema"in r&&"validate"in r?n:typeof n=="function"?n():Vp(n);var r})(e.schema);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},parsePartial:function(n){return vt(Oe().m(function r(){var u,a,i,o;return Oe().w(function(c){for(;;)switch(c.n){case 0:return u=n.text,c.n=1,uh(u);case 1:a=c.v,o=a.state,c.n=o==="failed-parse"||o==="undefined-input"?2:o==="repaired-parse"||o==="successful-parse"?3:4;break;case 2:case 5:return c.a(2);case 3:return c.a(2,{partial:a.value});case 4:throw i=a.state,new Error("Unsupported parse state: ".concat(i))}},r)}))()},parseOutput:function(n,r){return vt(Oe().m(function u(){var a,i,o;return Oe().w(function(c){for(;;)switch(c.n){case 0:return a=n.text,c.n=1,yo({text:a});case 1:if((i=c.v).success){c.n=2;break}throw new Qp({message:"No object generated: could not parse the response.",cause:i.error,text:a,response:r.response,usage:r.usage,finishReason:r.finishReason});case 2:return c.n=3,cc({value:i.value,schema:t});case 3:if((o=c.v).success){c.n=4;break}throw new Qp({message:"No object generated: response did not match schema.",cause:o.error,text:a,response:r.response,usage:r.usage,finishReason:r.finishReason});case 4:return c.a(2,o.value)}},u)}))()}}},Pb=(function(){return $n(function n(r){var u=r.api,a=u===void 0?"/api/chat":u,i=r.credentials,o=r.headers,c=r.body,l=r.fetch,p=r.prepareSendMessagesRequest,m=r.prepareReconnectToStreamRequest;Mn(this,n),this.api=a,this.credentials=i,this.headers=o,this.body=c,this.fetch=l,this.prepareSendMessagesRequest=p,this.prepareReconnectToStreamRequest=m},[{key:"sendMessages",value:(t=vt(Oe().m(function n(r){var u,a,i,o,c,l,p,m,v,y,F,D,_,O,w,x,S,T,I,B;return Oe().w(function(d){for(;;)switch(d.n){case 0:return u=r.abortSignal,a=Nr(r,Dv),d.n=1,Qu(this.body);case 1:return m=d.v,d.n=2,Qu(this.headers);case 2:return v=d.v,d.n=3,Qu(this.credentials);case 3:return y=d.v,F=pe(pe({},bu(v)),bu(a.headers)),d.n=4,(i=this.prepareSendMessagesRequest)==null?void 0:i.call(this,{api:this.api,id:a.chatId,messages:a.messages,body:pe(pe({},m),a.body),headers:F,credentials:y,requestMetadata:a.metadata,trigger:a.trigger,messageId:a.messageId});case 4:return D=d.v,_=(o=D==null?void 0:D.api)!=null?o:this.api,O=(D==null?void 0:D.headers)!==void 0?bu(D.headers):F,w=(D==null?void 0:D.body)!==void 0?D.body:pe(pe(pe({},m),a.body),{},{id:a.chatId,messages:a.messages,trigger:a.trigger,messageId:a.messageId}),x=(c=D==null?void 0:D.credentials)!=null?c:y,S=(l=this.fetch)!=null?l:globalThis.fetch,d.n=5,S(_,{method:"POST",headers:zp(pe({"Content-Type":"application/json"},O),"ai-sdk/".concat(Yp),Rp()),body:JSON.stringify(w),credentials:x,signal:u});case 5:if((T=d.v).ok){d.n=9;break}return I=Error,d.n=6,T.text();case 6:if((p=d.v)==null){d.n=7;break}B=p,d.n=8;break;case 7:B="Failed to fetch the chat response.";case 8:throw new I(B);case 9:if(T.body){d.n=10;break}throw new Error("The response body is empty.");case 10:return d.a(2,this.processResponseStream(T.body))}},n,this)})),function(n){return t.apply(this,arguments)})},{key:"reconnectToStream",value:(e=vt(Oe().m(function n(r){var u,a,i,o,c,l,p,m,v,y,F,D,_,O,w,x,S;return Oe().w(function(T){for(;;)switch(T.n){case 0:return T.n=1,Qu(this.body);case 1:return l=T.v,T.n=2,Qu(this.headers);case 2:return p=T.v,T.n=3,Qu(this.credentials);case 3:return m=T.v,v=pe(pe({},bu(p)),bu(r.headers)),T.n=4,(u=this.prepareReconnectToStreamRequest)==null?void 0:u.call(this,{api:this.api,id:r.chatId,body:pe(pe({},l),r.body),headers:v,credentials:m,requestMetadata:r.metadata});case 4:return y=T.v,F=(a=y==null?void 0:y.api)!=null?a:"".concat(this.api,"/").concat(r.chatId,"/stream"),D=(y==null?void 0:y.headers)!==void 0?bu(y.headers):v,_=(i=y==null?void 0:y.credentials)!=null?i:m,O=(o=this.fetch)!=null?o:globalThis.fetch,T.n=5,O(F,{method:"GET",headers:zp(D,"ai-sdk/".concat(Yp),Rp()),credentials:_});case 5:if((w=T.v).status!==204){T.n=6;break}return T.a(2,null);case 6:if(w.ok){T.n=10;break}return x=Error,T.n=7,w.text();case 7:if((c=T.v)==null){T.n=8;break}S=c,T.n=9;break;case 8:S="Failed to fetch the chat response.";case 9:throw new x(S);case 10:if(w.body){T.n=11;break}throw new Error("The response body is empty.");case 11:return T.a(2,this.processResponseStream(w.body))}},n,this)})),function(n){return e.apply(this,arguments)})}]);var e,t})(),bc=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Mn(this,e),au(this,e,[t])}return iu(e,Pb),$n(e,[{key:"processResponseStream",value:function(t){return(function(n){var r=n.schema;return n.stream.pipeThrough(new TextDecoderStream).pipeThrough(new R0).pipeThrough(new TransformStream({transform:function(u,a){return vt(Oe().m(function i(){var o,c;return Oe().w(function(l){for(;;)switch(l.n){case 0:if(o=u.data,o==="[DONE]"){l.n=2;break}return c=a,l.n=1,yo({text:o,schema:r});case 1:c.enqueue.call(c,l.v);case 2:return l.a(2)}},i)}))()}}))})({stream:t,schema:wb}).pipeThrough(new TransformStream({transform:function(n,r){return vt(Oe().m(function u(){return Oe().w(function(a){for(;;)switch(a.n){case 0:if(n.success){a.n=1;break}throw n.error;case 1:r.enqueue(n.value);case 2:return a.a(2)}},u)}))()}}))}}])})(),jb=(function(){return $n(function t(n){var r=this,u=n.generateId,a=u===void 0?KD:u,i=n.id,o=i===void 0?a():i,c=n.transport,l=c===void 0?new bc:c,p=n.messageMetadataSchema,m=n.dataPartSchemas,v=n.state,y=n.onError,F=n.onToolCall,D=n.onFinish,_=n.onData,O=n.sendAutomaticallyWhen;Mn(this,t),this.activeResponse=void 0,this.jobExecutor=new Ob,this.sendMessage=(function(){var w=vt(Oe().m(function x(S,T){var I,B,d,H,R,Z,q;return Oe().w(function(G){for(;;)switch(G.n){case 0:if(S!=null){G.n=2;break}return G.n=1,r.makeRequest(pe({trigger:"submit-message",messageId:(I=r.lastMessage)==null?void 0:I.id},T));case 1:return G.a(2,void G.v);case 2:if(!("text"in S)&&!("files"in S)){G.n=6;break}if(!Array.isArray(S.files)){G.n=3;break}q=S.files,G.n=5;break;case 3:return G.n=4,(function(){var L=vt(Oe().m(function ne(Q){return Oe().w(function($){for(;;)switch($.n){case 0:if(Q!=null){$.n=1;break}return $.a(2,[]);case 1:if(globalThis.FileList&&Q instanceof globalThis.FileList){$.n=2;break}throw new Error("FileList is not supported in the current environment");case 2:return $.a(2,Promise.all(Array.from(Q).map((function(){var Y=vt(Oe().m(function re(me){var se,K,V,ue,oe;return Oe().w(function(ce){for(;;)switch(ce.n){case 0:return se=me.name,K=me.type,V=K,ue=se,ce.n=1,new Promise(function(ee,he){var Ce=new FileReader;Ce.onload=function(Re){var ge;ee((ge=Re.target)==null?void 0:ge.result)},Ce.onerror=function(Re){return he(Re)},Ce.readAsDataURL(me)});case 1:return oe=ce.v,ce.a(2,{type:"file",mediaType:V,filename:ue,url:oe})}},re)}));return function(re){return Y.apply(this,arguments)}})())))}},ne)}));return function(ne){return L.apply(this,arguments)}})()(S.files);case 4:q=G.v;case 5:R={parts:[].concat(Qe(q),Qe("text"in S&&S.text!=null?[{type:"text",text:S.text}]:[]))},G.n=7;break;case 6:R=S;case 7:if(S.messageId==null){G.n=10;break}if(Z=r.state.messages.findIndex(function(L){return L.id===S.messageId}),Z!==-1){G.n=8;break}throw new Error("message with id ".concat(S.messageId," not found"));case 8:if(r.state.messages[Z].role==="user"){G.n=9;break}throw new Error("message with id ".concat(S.messageId," is not a user message"));case 9:r.state.messages=r.state.messages.slice(0,Z+1),r.state.replaceMessage(Z,pe(pe({},R),{},{id:S.messageId,role:(B=R.role)!=null?B:"user",metadata:S.metadata})),G.n=11;break;case 10:r.state.pushMessage(pe(pe({},R),{},{id:(d=R.id)!=null?d:r.generateId(),role:(H=R.role)!=null?H:"user",metadata:S.metadata}));case 11:return G.n=12,r.makeRequest(pe({trigger:"submit-message",messageId:S.messageId},T));case 12:return G.a(2)}},x)}));return function(x,S){return w.apply(this,arguments)}})(),this.regenerate=vt(Oe().m(function w(){var x,S,T,I,B=arguments;return Oe().w(function(d){for(;;)switch(d.n){case 0:if(S=(x=B.length>0&&B[0]!==void 0?B[0]:{}).messageId,T=Nr(x,bv),I=S==null?r.state.messages.length-1:r.state.messages.findIndex(function(H){return H.id===S}),I!==-1){d.n=1;break}throw new Error("message ".concat(S," not found"));case 1:return r.state.messages=r.state.messages.slice(0,r.messages[I].role==="assistant"?I:I+1),d.n=2,r.makeRequest(pe({trigger:"regenerate-message",messageId:S},T));case 2:return d.a(2)}},w)})),this.resumeStream=vt(Oe().m(function w(){var x,S=arguments;return Oe().w(function(T){for(;;)switch(T.n){case 0:return x=S.length>0&&S[0]!==void 0?S[0]:{},T.n=1,r.makeRequest(pe({trigger:"resume-stream"},x));case 1:return T.a(2)}},w)})),this.clearError=function(){r.status==="error"&&(r.state.error=void 0,r.setStatus({status:"ready"}))},this.addToolOutput=(function(){var w=vt(Oe().m(function x(S){var T,I,B,d,H;return Oe().w(function(R){for(;;)if(R.n===0)return T=S.state,I=T===void 0?"output-available":T,S.tool,B=S.toolCallId,d=S.output,H=S.errorText,R.a(2,r.jobExecutor.run(vt(Oe().m(function Z(){var q,G,L,ne;return Oe().w(function(Q){for(;;)switch(Q.n){case 0:L=r.state.messages,ne=L[L.length-1],r.state.replaceMessage(L.length-1,pe(pe({},ne),{},{parts:ne.parts.map(function($){return Dc($)&&$.toolCallId===B?pe(pe({},$),{},{state:I,output:d,errorText:H}):$})})),r.activeResponse&&(r.activeResponse.state.message.parts=r.activeResponse.state.message.parts.map(function($){return Dc($)&&$.toolCallId===B?pe(pe({},$),{},{state:I,output:d,errorText:H}):$})),r.status!=="streaming"&&r.status!=="submitted"&&((q=r.sendAutomaticallyWhen)!=null&&q.call(r,{messages:r.state.messages}))&&r.makeRequest({trigger:"submit-message",messageId:(G=r.lastMessage)==null?void 0:G.id});case 1:return Q.a(2)}},Z)}))))},x)}));return function(x){return w.apply(this,arguments)}})(),this.addToolResult=this.addToolOutput,this.stop=vt(Oe().m(function w(){var x;return Oe().w(function(S){for(;;)switch(S.n){case 0:r.status!=="streaming"&&r.status!=="submitted"||(x=r.activeResponse)!=null&&x.abortController&&r.activeResponse.abortController.abort();case 1:return S.a(2)}},w)})),this.id=o,this.transport=l,this.generateId=a,this.messageMetadataSchema=p,this.dataPartSchemas=m,this.state=v,this.onError=y,this.onToolCall=F,this.onFinish=D,this.onData=_,this.sendAutomaticallyWhen=O},[{key:"status",get:function(){return this.state.status}},{key:"setStatus",value:function(t){var n=t.status,r=t.error;this.status!==n&&(this.state.status=n,this.state.error=r)}},{key:"error",get:function(){return this.state.error}},{key:"messages",get:function(){return this.state.messages},set:function(t){this.state.messages=t}},{key:"lastMessage",get:function(){return this.state.messages[this.state.messages.length-1]}},{key:"makeRequest",value:(e=vt(Oe().m(function t(n){var r,u,a,i,o,c,l,p,m,v,y,F,D,_,O,w,x,S,T=this;return Oe().w(function(I){for(;;)switch(I.p=I.n){case 0:if(r=n.trigger,u=n.metadata,a=n.headers,i=n.body,o=n.messageId,this.setStatus({status:"submitted",error:void 0}),v=this.lastMessage,y=!1,F=!1,D=!1,I.p=1,(_={state:xb({lastMessage:this.state.snapshot(v),messageId:this.generateId()}),abortController:new AbortController}).abortController.signal.addEventListener("abort",function(){y=!0}),this.activeResponse=_,r!=="resume-stream"){I.n=4;break}return I.n=2,this.transport.reconnectToStream({chatId:this.id,metadata:u,headers:a,body:i});case 2:if((w=I.v)!=null){I.n=3;break}return I.a(2,void this.setStatus({status:"ready"}));case 3:O=w,I.n=6;break;case 4:return I.n=5,this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:_.abortController.signal,metadata:u,headers:a,body:i,trigger:r,messageId:o});case 5:O=I.v;case 6:return x=function(B){return T.jobExecutor.run(function(){return B({state:_.state,write:function(){var d;T.setStatus({status:"streaming"}),_.state.message.id===((d=T.lastMessage)==null?void 0:d.id)?T.state.replaceMessage(T.state.messages.length-1,_.state.message):T.state.pushMessage(_.state.message)}})})},I.n=7,(function(){var B=vt(Oe().m(function d(H){var R,Z,q,G;return Oe().w(function(L){for(;;)switch(L.p=L.n){case 0:R=H.stream,Z=H.onError,q=R.getReader(),L.p=1;case 2:return L.n=3,q.read();case 3:if(!L.v.done){L.n=4;break}return L.a(3,5);case 4:L.n=2;break;case 5:L.n=7;break;case 6:L.p=6,G=L.v,Z==null||Z(G);case 7:return L.p=7,q.releaseLock(),L.f(7);case 8:return L.a(2)}},d,null,[[1,6,7,8]])}));return function(d){return B.apply(this,arguments)}})()({stream:Tb({stream:O,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:x,onError:function(B){throw B}}),onError:function(B){throw B}});case 7:this.setStatus({status:"ready"}),I.n=10;break;case 8:if(I.p=8,S=I.v,!y&&S.name!=="AbortError"){I.n=9;break}return I.a(2,(y=!0,this.setStatus({status:"ready"}),null));case 9:D=!0,S instanceof TypeError&&(S.message.toLowerCase().includes("fetch")||S.message.toLowerCase().includes("network"))&&(F=!0),this.onError&&S instanceof Error&&this.onError(S),this.setStatus({status:"error",error:S});case 10:I.p=10;try{(l=this.onFinish)==null||l.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:y,isDisconnect:F,isError:D,finishReason:(c=this.activeResponse)==null?void 0:c.state.finishReason})}catch(B){console.error(B)}return this.activeResponse=void 0,I.f(10);case 11:if(!((p=this.sendAutomaticallyWhen)!=null&&p.call(this,{messages:this.state.messages}))||D){I.n=12;break}return I.n=12,this.makeRequest({trigger:"submit-message",messageId:(m=this.lastMessage)==null?void 0:m.id,metadata:u,headers:a,body:i});case 12:return I.a(2)}},t,this,[[1,8,10,11]])})),function(t){return e.apply(this,arguments)})}]);var e})();function Nb(e){var t=e.messages,n=t[t.length-1];if(!n||n.role!=="assistant")return!1;var r=n.parts.reduce(function(a,i,o){return i.type==="step-start"?o:a},-1),u=n.parts.slice(r+1).filter(Dc).filter(function(a){return!a.providerExecuted});return u.length>0&&u.every(function(a){return a.state==="output-available"||a.state==="output-error"})}var jn,bo,Ao,ei,ti,ni,Yu,Ac,Ec,Xu,Rb=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})((oh||(oh=1,ih=function(e,t){if(typeof e!="function")throw new TypeError("Expected the first argument to be a `function`, got `".concat(Qt(e),"`."));var n,r=0;return function(){for(var u=this,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];clearTimeout(n);var c=Date.now(),l=t-(c-r);l<=0?(r=c,e.apply(this,i)):n=setTimeout(function(){r=Date.now(),e.apply(u,i)},l)}}),ih)),sh=function(e,t,n){if(!t.has(e))throw TypeError("Cannot "+n)},It=function(e,t,n){return sh(e,t,"read from private field"),n?n.call(e):t.get(e)},ir=function(e,t,n){if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Gr=function(e,t,n,r){return sh(e,t,"write to private field"),t.set(e,n),n},zb=(function(){return $n(function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Mn(this,e),ir(this,jn,void 0),ir(this,bo,"ready"),ir(this,Ao,void 0),ir(this,ei,new Set),ir(this,ti,new Set),ir(this,ni,new Set),this.pushMessage=function(r){Gr(t,jn,It(t,jn).concat(r)),It(t,Yu).call(t)},this.popMessage=function(){Gr(t,jn,It(t,jn).slice(0,-1)),It(t,Yu).call(t)},this.replaceMessage=function(r,u){Gr(t,jn,[].concat(Qe(It(t,jn).slice(0,r)),[t.snapshot(u)],Qe(It(t,jn).slice(r+1)))),It(t,Yu).call(t)},this.snapshot=function(r){return structuredClone(r)},this["~registerMessagesCallback"]=function(r,u){var a,i,o=u?(a=r,(i=u)!=null?Rb(a,i):a):r;return It(t,ei).add(o),function(){It(t,ei).delete(o)}},this["~registerStatusCallback"]=function(r){return It(t,ti).add(r),function(){It(t,ti).delete(r)}},this["~registerErrorCallback"]=function(r){return It(t,ni).add(r),function(){It(t,ni).delete(r)}},ir(this,Yu,function(){It(t,ei).forEach(function(r){return r()})}),ir(this,Ac,function(){It(t,ti).forEach(function(r){return r()})}),ir(this,Ec,function(){It(t,ni).forEach(function(r){return r()})}),Gr(this,jn,n)},[{key:"status",get:function(){return It(this,bo)},set:function(e){Gr(this,bo,e),It(this,Ac).call(this)}},{key:"error",get:function(){return It(this,Ao)},set:function(e){Gr(this,Ao,e),It(this,Ec).call(this)}},{key:"messages",get:function(){return It(this,jn)},set:function(e){Gr(this,jn,Qe(e)),It(this,Yu).call(this)}}])})();jn=new WeakMap,bo=new WeakMap,Ao=new WeakMap,ei=new WeakMap,ti=new WeakMap,ni=new WeakMap,Yu=new WeakMap,Ac=new WeakMap,Ec=new WeakMap;var ch=(function(){function e(t){var n,r=t.messages,u=Nr(t,Av);Mn(this,e);var a=new zb(r);return n=au(this,e,[pe(pe({},u),{},{state:a})]),ir(wu(n),Xu,void 0),n["~registerMessagesCallback"]=function(i,o){return It(wu(n),Xu)["~registerMessagesCallback"](i,o)},n["~registerStatusCallback"]=function(i){return It(wu(n),Xu)["~registerStatusCallback"](i)},n["~registerErrorCallback"]=function(i){return It(wu(n),Xu)["~registerErrorCallback"](i)},Gr(wu(n),Xu,a),n}return iu(e,jb),$n(e)})();Xu=new WeakMap;var lh="askai_token",Lb=function(e){if(!e)return!0;try{var t=(function(r){var u=dt(r.split("."),1)[0];return JSON.parse(atob(u))})(e),n=t.exp;return Date.now()/1e3>n-30}catch(r){return!0}},Eo=null,fh=(function(){var e=Xe(Ae().m(function t(n){var r,u,a,i,o,c;return Ae().w(function(l){for(;;)switch(l.n){case 0:if(r=n.assistantId,u=n.abortSignal,a=n.useStagingEnv,i=a!==void 0&&a,o=sessionStorage.getItem(lh),Lb(o)){l.n=1;break}return l.a(2,o);case 1:return c=i?Ds:ys,Eo||(Eo=fetch("".concat(c,"/token"),{method:"POST",headers:{"x-algolia-assistant-id":r,"content-type":"application/json"},signal:u}).then(function(p){return p.json()}).then(function(p){var m=p.token,v=p.success,y=p.message;if(!v&&y)throw new Error(y);return sessionStorage.setItem(lh,m),m}).finally(function(){return Eo=null})),l.a(2,Eo)}},t)}));return function(t){return e.apply(this,arguments)}})(),Mb=(function(){var e=Xe(Ae().m(function t(n){var r,u,a,i,o,c,l,p,m,v;return Ae().w(function(y){for(;;)switch(y.n){case 0:return r=n.assistantId,u=n.thumbs,a=n.messageId,i=n.appId,o=n.abortSignal,c=n.useStagingEnv,l=c!==void 0&&c,(p=new Headers).set("x-algolia-assistant-id",r),p.set("content-type","application/json"),y.n=1,fh({assistantId:r,abortSignal:o,useStagingEnv:l});case 1:return m=y.v,p.set("authorization","TOKEN ".concat(m)),v=l?Ds:ys,y.a(2,fetch("".concat(v,"/feedback"),{method:"POST",body:JSON.stringify({appId:i,messageId:a,thumbs:u}),headers:p}))}},t)}));return function(t){return e.apply(this,arguments)}})(),$b=["assistantId","apiKey","appId","indexName","useStagingEnv"];function Zb(e){var t,n="algolia-client-js-".concat(e.key);function r(){return t===void 0&&(t=e.localStorage||window.localStorage),t}function u(){return JSON.parse(r().getItem(n)||"{}")}function a(i){r().setItem(n,JSON.stringify(i))}return{get:function(i,o){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var l,p,m;return l=e.timeToLive?1e3*e.timeToLive:null,p=u(),a(m=Object.fromEntries(Object.entries(p).filter(function(v){return dt(v,2)[1].timestamp!==void 0}))),l&&a(Object.fromEntries(Object.entries(m).filter(function(v){var y=dt(v,2)[1],F=new Date().getTime();return!(y.timestamp+l<F)}))),u()[JSON.stringify(i)]}).then(function(l){return Promise.all([l?l.value:o(),l!==void 0])}).then(function(l){var p=dt(l,2),m=p[0],v=p[1];return Promise.all([m,v||c.miss(m)])}).then(function(l){return dt(l,1)[0]})},set:function(i,o){return Promise.resolve().then(function(){var c=u();return c[JSON.stringify(i)]={timestamp:new Date().getTime(),value:o},r().setItem(n,JSON.stringify(c)),o})},delete:function(i){return Promise.resolve().then(function(){var o=u();delete o[JSON.stringify(i)],r().setItem(n,JSON.stringify(o))})},clear:function(){return Promise.resolve().then(function(){r().removeItem(n)})}}}function ri(e){var t=be(e.caches),n=t.shift();return n===void 0?{get:function(r,u){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return u().then(function(i){return Promise.all([i,a.miss(i)])}).then(function(i){return dt(i,1)[0]})},set:function(r,u){return Promise.resolve(u)},delete:function(r){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(r,u){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(r,u,a).catch(function(){return ri({caches:t}).get(r,u,a)})},set:function(r,u){return n.set(r,u).catch(function(){return ri({caches:t}).set(r,u)})},delete:function(r){return n.delete(r).catch(function(){return ri({caches:t}).delete(r)})},clear:function(){return n.clear().catch(function(){return ri({caches:t}).clear()})}}}function Fc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var i=r();return i.then(function(o){return u.miss(o)}).then(function(){return i})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(n){return delete t[JSON.stringify(n)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function qb(e){var t=e.algoliaAgents,n=e.client,r=e.version,u=(function(a){var i={value:"Algolia for JavaScript (".concat(a,")"),add:function(o){var c="; ".concat(o.segment).concat(o.version!==void 0?" (".concat(o.version,")"):"");return i.value.indexOf(c)===-1&&(i.value="".concat(i.value).concat(c)),i}};return i})(r).add({segment:n,version:r});return t.forEach(function(a){return u.add(a)}),u}var dh=12e4;function ph(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"up",n=Date.now();return C(C({},e),{},{status:t,lastUpdate:n,isUp:function(){return t==="up"||Date.now()-n>dh},isTimedOut:function(){return t==="timed out"&&Date.now()-n<=dh}})}var hh=(function(){function e(t,n){var r;return Be(this,e),lt(r=$e(this,e,[t]),"name","AlgoliaError"),n&&(r.name=n),r}return Me(e,Lr(Error)),Pe(e)})(),vh=(function(){function e(t,n,r){var u;return Be(this,e),lt(u=$e(this,e,[t,r]),"stackTrace",void 0),u.stackTrace=n,u}return Me(e,hh),Pe(e)})(),Hb=(function(){function e(t){return Be(this,e),$e(this,e,["Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",t,"RetryError"])}return Me(e,vh),Pe(e)})(),_c=(function(){function e(t,n,r){var u,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"ApiError";return Be(this,e),lt(u=$e(this,e,[t,r,a]),"status",void 0),u.status=n,u}return Me(e,vh),Pe(e)})(),Ub=(function(){function e(t,n){var r;return Be(this,e),lt(r=$e(this,e,[t,"DeserializationError"]),"response",void 0),r.response=n,r}return Me(e,hh),Pe(e)})(),Wb=(function(){function e(t,n,r,u){var a;return Be(this,e),lt(a=$e(this,e,[t,n,u,"DetailedApiError"]),"error",void 0),a.error=r,a}return Me(e,_c),Pe(e)})();function Vb(e,t,n){var r,u=(r=n,Object.keys(r).filter(function(i){return r[i]!==void 0}).sort().map(function(i){return"".concat(i,"=").concat(encodeURIComponent(Object.prototype.toString.call(r[i])==="[object Array]"?r[i].join(","):r[i]).replace(/\+/g,"%20"))}).join("&")),a="".concat(e.protocol,"://").concat(e.url).concat(e.port?":".concat(e.port):"","/").concat(t.charAt(0)==="/"?t.substring(1):t);return u.length&&(a+="?".concat(u)),a}function Kb(e,t){if(e.method!=="GET"&&(e.data!==void 0||t.data!==void 0)){var n=Array.isArray(e.data)?e.data:C(C({},e.data),t.data);return JSON.stringify(n)}}function Gb(e,t,n){var r=C(C(C({Accept:"application/json"},e),t),n),u={};return Object.keys(r).forEach(function(a){var i=r[a];u[a.toLowerCase()]=i}),u}function Jb(e){try{return JSON.parse(e.content)}catch(t){throw new Ub(t.message,e)}}function Qb(e,t){var n=e.content,r=e.status;try{var u=JSON.parse(n);return"error"in u?new Wb(u.message,r,u.error,t):new _c(u.message,r,t)}catch(a){}return new _c(n,r,t)}function Yb(e){var t=e.isTimedOut,n=e.status;return t||(function(r){return!r.isTimedOut&&~~r.status===0})({isTimedOut:t,status:n})||~~(n/100)!=2&&~~(n/100)!=4}function Xb(e){return~~(e.status/100)==2}function eA(e){return e.map(function(t){return mh(t)})}function mh(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return C(C({},e),{},{request:C(C({},e.request),{},{headers:C(C({},e.request.headers),t)})})}var tA=["appId","apiKey","authMode","algoliaAgents"],nA=["params"],gh="5.43.0";function rA(e){return[{url:"".concat(e,"-dsn.algolia.net"),accept:"read",protocol:"https"},{url:"".concat(e,".algolia.net"),accept:"write",protocol:"https"}].concat((function(t){for(var n=t,r=t.length-1;r>0;r--){var u=Math.floor(Math.random()*(r+1)),a=t[r];n[r]=t[u],n[u]=a}return n})([{url:"".concat(e,"-1.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(e,"-2.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(e,"-3.algolianet.com"),accept:"readWrite",protocol:"https"}]))}var Cc="4.5.4";function uA(e,t,n){var r=b.useMemo(function(){var u=(function(a,i){if(!a||typeof a!="string")throw new Error("`appId` is missing.");if(!i||typeof i!="string")throw new Error("`apiKey` is missing.");return(function(o){var c=o.appId,l=o.apiKey,p=o.authMode,m=o.algoliaAgents,v=an(o,tA),y=(function(D,_){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"WithinHeaders",w={"x-algolia-api-key":_,"x-algolia-application-id":D};return{headers:function(){return O==="WithinHeaders"?w:{}},queryParameters:function(){return O==="WithinQueryParameters"?w:{}}}})(c,l,p),F=(function(D){var _=D.hosts,O=D.hostsCache,w=D.baseHeaders,x=D.logger,S=D.baseQueryParameters,T=D.algoliaAgent,I=D.timeouts,B=D.requester,d=D.requestsCache,H=D.responsesCache;function R(L){return Z.apply(this,arguments)}function Z(){return(Z=Xe(Ae().m(function L(ne){var Q,$,Y,re,me;return Ae().w(function(se){for(;;)switch(se.n){case 0:return se.n=1,Promise.all(ne.map(function(K){return O.get(K,function(){return Promise.resolve(ph(K))})}));case 1:return Q=se.v,$=Q.filter(function(K){return K.isUp()}),Y=Q.filter(function(K){return K.isTimedOut()}),re=[].concat(be($),be(Y)),me=re.length>0?re:ne,se.a(2,{hosts:me,getTimeout:function(K,V){return(Y.length===0&&K===0?1:Y.length+3+K)*V}})}},L)}))).apply(this,arguments)}function q(L,ne){return G.apply(this,arguments)}function G(){return G=Xe(Ae().m(function L(ne,Q){var $,Y,re,me,se,K,V,ue,oe,ce,ee,he,Ce,Re=arguments;return Ae().w(function(ge){for(;;)switch(ge.n){case 0:if($=!(Re.length>2&&Re[2]!==void 0)||Re[2],Y=[],re=Kb(ne,Q),me=Gb(w,ne.headers,Q.headers),se=ne.method==="GET"?C(C({},ne.data),Q.data):{},K=C(C(C({},S),ne.queryParameters),se),T.value&&(K["x-algolia-agent"]=T.value),Q&&Q.queryParameters)for(V=0,ue=Object.keys(Q.queryParameters);V<ue.length;V++)oe=ue[V],Q.queryParameters[oe]&&Object.prototype.toString.call(Q.queryParameters[oe])!=="[object Object]"?K[oe]=Q.queryParameters[oe].toString():K[oe]=Q.queryParameters[oe];return ce=0,ee=(function(){var Te=Xe(Ae().m(function He(nt,Ge){var yt,Dt,mn,Xt,un,Gn;return Ae().w(function(Mt){for(;;)switch(Mt.n){case 0:if((yt=nt.pop())!==void 0){Mt.n=1;break}throw new Hb(eA(Y));case 1:return Dt=C(C({},I),Q.timeouts),mn={data:re,headers:me,method:ne.method,url:Vb(yt,ne.path,K),connectTimeout:Ge(ce,Dt.connect),responseTimeout:Ge(ce,$?Dt.read:Dt.write)},Xt=function(Gt){var Jt={request:mn,response:Gt,host:yt,triesLeft:nt.length};return Y.push(Jt),Jt},Mt.n=2,B.send(mn);case 2:if(!Yb(un=Mt.v)){Mt.n=4;break}return Gn=Xt(un),un.isTimedOut&&ce++,x.info("Retryable failure",mh(Gn)),Mt.n=3,O.set(yt,ph(yt,un.isTimedOut?"timed out":"down"));case 3:return Mt.a(2,ee(nt,Ge));case 4:if(!Xb(un)){Mt.n=5;break}return Mt.a(2,Jb(un));case 5:throw Xt(un),Qb(un,Y);case 6:return Mt.a(2)}},He)}));return function(He,nt){return Te.apply(this,arguments)}})(),he=_.filter(function(Te){return Te.accept==="readWrite"||($?Te.accept==="read":Te.accept==="write")}),ge.n=1,R(he);case 1:return Ce=ge.v,ge.a(2,ee(be(Ce.hosts).reverse(),Ce.getTimeout))}},L)})),G.apply(this,arguments)}return{hostsCache:O,requester:B,timeouts:I,logger:x,algoliaAgent:T,baseHeaders:w,baseQueryParameters:S,hosts:_,request:function(L){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=L.useReadTransporter||L.method==="GET";if(!Q)return q(L,ne,Q);var $=function(){return q(L,ne)};if((ne.cacheable||L.cacheable)!==!0)return $();var Y={request:L,requestOptions:ne,transporter:{queryParameters:S,headers:w}};return H.get(Y,function(){return d.get(Y,function(){return d.set(Y,$()).then(function(re){return Promise.all([d.delete(Y),re])},function(re){return Promise.all([d.delete(Y),Promise.reject(re)])}).then(function(re){var me=dt(re,2);return me[0],me[1]})})},{miss:function(re){return H.set(Y,re)}})},requestsCache:d,responsesCache:H}})(C(C({hosts:rA(c)},v),{},{algoliaAgent:qb({algoliaAgents:m,client:"Lite",version:gh}),baseHeaders:C(C({"content-type":"text/plain"},y.headers()),v.baseHeaders),baseQueryParameters:C(C({},y.queryParameters()),v.baseQueryParameters)}));return{transporter:F,appId:c,apiKey:l,clearCache:function(){return Promise.all([F.requestsCache.clear(),F.responsesCache.clear()]).then(function(){})},get _ua(){return F.algoliaAgent.value},addAlgoliaAgent:function(D,_){F.algoliaAgent.add({segment:D,version:_})},setClientApiKey:function(D){var _=D.apiKey;p&&p!=="WithinHeaders"?F.baseQueryParameters["x-algolia-api-key"]=_:F.baseHeaders["x-algolia-api-key"]=_},searchForHits:function(D,_){return this.search(D,_)},searchForFacets:function(D,_){return this.search(D,_)},customPost:function(D,_){var O=D.path,w=D.parameters,x=D.body;if(!O)throw new Error("Parameter `path` is required when calling `customPost`.");var S={method:"POST",path:"/{path}".replace("{path}",O),queryParameters:w||{},headers:{},data:x||{}};return F.request(S,_)},getRecommendations:function(D,_){if(D&&Array.isArray(D)&&(D={requests:D}),!D)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!D.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");var O={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:D,useReadTransporter:!0,cacheable:!0};return F.request(O,_)},search:function(D,_){if(D&&Array.isArray(D)){var O={requests:D.map(function(x){var S=x.params,T=an(x,nA);return T.type==="facet"?C(C(C({},T),S),{},{type:"facet"}):C(C(C({},T),S),{},{facet:void 0,maxFacetHits:void 0,facetQuery:void 0})})};D=O}if(!D)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!D.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");var w={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:D,useReadTransporter:!0,cacheable:!0};return F.request(w,_)}}})(C({appId:a,apiKey:i,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:function(o,c){return Promise.resolve()},info:function(o,c){return Promise.resolve()},error:function(o,c){return Promise.resolve()}},requester:{send:function(o){return new Promise(function(c){var l=new XMLHttpRequest;l.open(o.method,o.url,!0),Object.keys(o.headers).forEach(function(y){return l.setRequestHeader(y,o.headers[y])});var p,m=function(y,F){return setTimeout(function(){l.abort(),c({status:0,content:F,isTimedOut:!0})},y)},v=m(o.connectTimeout,"Connection timeout");l.onreadystatechange=function(){l.readyState>l.OPENED&&p===void 0&&(clearTimeout(v),p=m(o.responseTimeout,"Socket timeout"))},l.onerror=function(){l.status===0&&(clearTimeout(v),clearTimeout(p),c({content:l.responseText||"Network request failed",status:l.status,isTimedOut:!1}))},l.onload=function(){clearTimeout(v),clearTimeout(p),c({content:l.responseText,status:l.status,isTimedOut:!1})},l.send(o.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:Fc(),requestsCache:Fc({serializable:!1}),hostsCache:ri({caches:[Zb({key:"".concat(gh,"-").concat(a)}),Fc()]})},void 0))})(e,t);return u.addAlgoliaAgent("docsearch",Cc),/docsearch.js \(.*\)/.test(u.transporter.algoliaAgent.value)===!1&&u.addAlgoliaAgent("docsearch-react",Cc),n(u)},[e,t,n]);return r}var aA=["appId","apiKey","askAi","maxResultsPerGroup","theme","onClose","transformItems","hitComponent","resultsFooterComponent","navigator","initialScrollY","transformSearchClient","disableUserPersonalization","initialQuery","translations","getMissingResultsUrl","insights","onAskAiToggle","interceptAskAiEvent","isAskAiActive","recentSearchesLimit","recentSearchesWithFavoritesLimit","indices","indexName","searchParameters","isHybridModeSupported"],iA=["footer","searchBox"],oA=(function(){var e=Xe(Ae().m(function t(n){var r,u,a,i,o,c,l,p,m,v,y,F,D,_,O,w,x,S,T;return Ae().w(function(I){for(;;)switch(I.p=I.n){case 0:return r=n.query,u=n.state,a=n.setContext,i=n.setStatus,o=n.searchClient,c=n.indexes,l=n.snippetLength,p=n.insights,m=n.appId,v=n.apiKey,y=n.maxResultsPerGroup,F=n.transformItems,D=F===void 0?ss:F,_=n.saveRecentSearch,O=n.onClose,w=p,I.p=1,I.n=2,o.search({requests:c.map(function(B){var d,H,R,Z,q,G,L,ne=typeof B=="string"?B:B.name,Q=typeof B=="string"?{}:B.searchParameters;return C({query:r,indexName:ne,attributesToRetrieve:(d=Q==null?void 0:Q.attributesToRetrieve)!==null&&d!==void 0?d:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:(H=Q==null?void 0:Q.attributesToSnippet)!==null&&H!==void 0?H:["hierarchy.lvl1:".concat(l.current),"hierarchy.lvl2:".concat(l.current),"hierarchy.lvl3:".concat(l.current),"hierarchy.lvl4:".concat(l.current),"hierarchy.lvl5:".concat(l.current),"hierarchy.lvl6:".concat(l.current),"content:".concat(l.current)],snippetEllipsisText:(R=Q==null?void 0:Q.snippetEllipsisText)!==null&&R!==void 0?R:"\u2026",highlightPreTag:(Z=Q==null?void 0:Q.highlightPreTag)!==null&&Z!==void 0?Z:"<mark>",highlightPostTag:(q=Q==null?void 0:Q.highlightPostTag)!==null&&q!==void 0?q:"</mark>",hitsPerPage:(G=Q==null?void 0:Q.hitsPerPage)!==null&&G!==void 0?G:20,clickAnalytics:(L=Q==null?void 0:Q.clickAnalytics)!==null&&L!==void 0?L:w},Q!=null?Q:{})})});case 2:return x=I.v,S=x.results,I.a(2,S.flatMap(function(B){var d,H=B,R=H.hits,Z=H.nbHits,q=Ql(D(R),function(ne){return Xl(ne)},y);if(u.context.searchSuggestions.length<Object.keys(q).length&&a({searchSuggestions:C(C({},(d=u.context.searchSuggestions)!==null&&d!==void 0?d:[]),Object.keys(q))}),Z){var G=u.context.nbHits;a({nbHits:(G!=null?G:0)+Z})}var L={};return w&&(L={__autocomplete_indexName:H.index,__autocomplete_queryID:H.queryID,__autocomplete_algoliaCredentials:{appId:m,apiKey:v}}),Object.values(q).map(function(ne,Q){return{sourceId:"hits_".concat(H.index,"_").concat(Q),onSelect:function($){var Y=$.item,re=$.event;_(Y),_i(re)||O()},getItemUrl:function($){return $.item.url},getItems:function(){return Object.values(Ql(ne,function($){return $.hierarchy.lvl1},y)).map(function($){return $.map(function(Y){var re=null,me=$.find(function(se){return se.type==="lvl1"&&se.hierarchy.lvl1===Y.hierarchy.lvl1});return Y.type!=="lvl1"&&me&&(re=me),C(C({},Y),{},{__docsearch_parent:re},L)})}).flat()}}})}));case 3:throw I.p=3,(T=I.v).name==="RetryError"&&i("error"),T;case 4:return I.a(2)}},t,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}})();function sA(e){var t,n,r,u,a=e.appId,i=e.apiKey,o=e.askAi,c=e.maxResultsPerGroup,l=e.theme,p=e.onClose,m=p===void 0?_v:p,v=e.transformItems,y=v===void 0?ss:v,F=e.hitComponent,D=F===void 0?pm:F,_=e.resultsFooterComponent,O=_===void 0?function(){return null}:_,w=e.navigator,x=e.initialScrollY,S=x===void 0?0:x,T=e.transformSearchClient,I=T===void 0?ss:T,B=e.disableUserPersonalization,d=B!==void 0&&B,H=e.initialQuery,R=H===void 0?"":H,Z=e.translations,q=Z===void 0?{}:Z,G=e.getMissingResultsUrl,L=e.insights,ne=L!==void 0&&L,Q=e.onAskAiToggle,$=e.interceptAskAiEvent,Y=e.isAskAiActive,re=Y!==void 0&&Y,me=e.recentSearchesLimit,se=me===void 0?7:me,K=e.recentSearchesWithFavoritesLimit,V=K===void 0?4:K,ue=e.indices,oe=ue===void 0?[]:ue,ce=e.indexName,ee=e.searchParameters,he=e.isHybridModeSupported,Ce=he!==void 0&&he,Re=an(e,aA),ge=q.footer,Te=q.searchBox,He=an(q,iA),nt=dt(b.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),Ge=nt[0],yt=nt[1],Dt=!!o,mn=(q==null||(t=q.searchBox)===null||t===void 0?void 0:t.placeholderText)||Re.placeholder||"Search docs";Dt&&(mn=(q==null||(r=q.searchBox)===null||r===void 0?void 0:r.placeholderText)||"Search docs or ask AI a question"),re&&(mn=(q==null||(u=q.searchBox)===null||u===void 0?void 0:u.placeholderTextAskAi)||"Ask another question...");var Xt=b.useRef(null),un=b.useRef(null),Gn=b.useRef(null),Mt=b.useRef(null),Gt=b.useRef(null),Jt=b.useRef(15),en=b.useRef(typeof window!="undefined"?window.getSelection().toString().slice(0,512):"").current,ke=b.useRef(R||en).current,Ut=uA(a,i,I),Bt=Qt(o)==="object"?o:null,sr=typeof o=="string"?o:(Bt==null?void 0:Bt.assistantId)||null,cr=Bt==null?void 0:Bt.searchParameters,Jr=(Bt==null?void 0:Bt.useStagingEnv)||!1,Qr=dt(b.useState("initial"),2),Fn=Qr[0],$t=Qr[1],Jn=(function(le){var Ie=le.assistantId,Ve=le.searchClient,Ct=le.suggestedQuestionsEnabled,At=Ct!==void 0&&Ct,ln=dt(su([]),2),yn=ln[0],Dn=ln[1];return qn(function(){var Ir=(function(){var eu=Xe(Ae().m(function qt(){var Ht,Br,Nt;return Ae().w(function(fn){for(;;)switch(fn.n){case 0:return fn.n=1,Ve.search({requests:[{indexName:"algolia_ask_ai_suggested_questions",filters:"state:published AND assistantId:".concat(Ie),hitsPerPage:3}]});case 1:Ht=fn.v,Br=Ht.results,Nt=Br[0],Dn(Nt.hits);case 2:return fn.a(2)}},qt)}));return function(){return eu.apply(this,arguments)}})();At&&Ie&&Ie!==""&&Ir()},[At,Ie,Ve]),yn})({assistantId:sr,searchClient:Ut,suggestedQuestionsEnabled:Bt==null?void 0:Bt.suggestedQuestions}),Nn=(n=Bt==null?void 0:Bt.agentStudio)!==null&&n!==void 0&&n,lr=[];if(ce&&ce!==""&&lr.push({name:ce,searchParameters:ee}),oe.length>0&&oe.forEach(function(le){lr.push(typeof le=="string"?{name:le}:le)}),lr.length<1)throw new Error("Must supply either `indexName` or `indices` for DocSearch to work");var xn=lr[0].name,fr=b.useRef(sd({key:"__DOCSEARCH_ASKAI_CONVERSATIONS__".concat((Bt==null?void 0:Bt.indexName)||xn),limit:10})).current,Qn=b.useRef(od({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(xn),limit:10})).current,kr=b.useRef(od({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(xn),limit:Qn.getAll().length===0?se:V})).current,rt=dt(b.useState(!1),2),gn=rt[0],ui=rt[1],dr=(function(le){var Ie=le.assistantId,Ve=le.apiKey,Ct=le.appId,At=le.indexName,ln=le.useStagingEnv,yn=ln!==void 0&&ln,Dn=an(le,$b),Ir=Iu(new AbortController),eu=On(function(){return Dn.agentStudio?(function(kt){var ut=kt.appId,wt=kt.apiKey,Wt=kt.assistantId,Et=kt.searchParameters;return new bc({api:"https://".concat(ut,".algolia.net/agent-studio/1/agents/").concat(Wt,"/completions?stream=true&compatibilityMode=ai-sdk-5"),headers:{"x-algolia-application-id":ut,"x-algolia-api-key":wt},body:Et?{algolia:{searchParameters:Et}}:{}})})({apiKey:Ve,appId:Ct,assistantId:Ie!=null?Ie:"",searchParameters:Dn.searchParameters}):(function(kt){var ut,wt=kt.assistantId,Wt=kt.apiKey,Et=kt.indexName,at=kt.searchParameters,Tn=kt.appId,Rn=kt.abortController,tu=kt.useStagingEnv;return new bc({api:tu?Ds:ys,headers:(ut=Xe(Ae().m(function li(){var Xn;return Ae().w(function(hr){for(;;)switch(hr.n){case 0:if(wt){hr.n=1;break}throw new Error("Ask AI assistant ID is required");case 1:return hr.n=2,fh({assistantId:wt,abortSignal:Rn.signal,useStagingEnv:tu});case 2:return Xn=hr.v,hr.a(2,C(C({},Xn?{authorization:"TOKEN ".concat(Xn)}:{}),{},{"X-Algolia-API-Key":Wt,"X-Algolia-Application-Id":Tn,"X-Algolia-Index-Name":Et,"X-Algolia-Assistant-Id":wt||"","X-AI-SDK-Version":"v5"}))}},li)})),function(){return ut.apply(this,arguments)}),body:at?{searchParameters:at}:{}})})({assistantId:Ie!=null?Ie:"",apiKey:Ve,appId:Ct,indexName:At,searchParameters:Dn.searchParameters,abortController:Ir.current,useStagingEnv:yn})},[Ve,Ct,Ie,At,yn,Dn]),qt=(function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ut=kt.experimental_throttle,wt=kt.resume,Wt=wt!==void 0&&wt,Et=Nr(kt,Ev),at=Iu("chat"in Et?Et.chat:new ch(Et));("chat"in Et&&Et.chat!==at.current||"id"in Et&&at.current.id!==Et.id)&&(at.current="chat"in Et?Et.chat:new ch(Et));var Tn="id"in Et?Et.id:null,Rn=pa(function(vr){return at.current["~registerMessagesCallback"](vr,ut)},[ut,Tn]),tu=ha(Rn,function(){return at.current.messages}),li=ha(at.current["~registerStatusCallback"],function(){return at.current.status}),Xn=ha(at.current["~registerErrorCallback"],function(){return at.current.error}),hr=pa(function(vr){typeof vr=="function"&&(vr=vr(at.current.messages)),at.current.messages=vr},[at]);return qn(function(){Wt&&at.current.resumeStream()},[Wt,at]),{id:at.current.id,messages:tu,setMessages:hr,sendMessage:at.current.sendMessage,regenerate:at.current.regenerate,clearError:at.current.clearError,stop:at.current.stop,error:Xn,resumeStream:at.current.resumeStream,status:li,addToolResult:at.current.addToolOutput,addToolOutput:at.current.addToolOutput}})({sendAutomaticallyWhen:Nb,transport:eu}),Ht=qt.messages,Br=qt.sendMessage,Nt=qt.status,fn=qt.setMessages,nn=qt.error,_u=qt.stop,pr=Iu(sd({key:"__DOCSEARCH_ASKAI_CONVERSATIONS__".concat(At),limit:10})).current,ci=pa((function(){var kt=Xe(Ae().m(function ut(wt,Wt){var Et;return Ae().w(function(at){for(;;)switch(at.n){case 0:if(Ie){at.n=1;break}return at.a(2);case 1:return at.n=2,Mb({assistantId:Ie,thumbs:Wt,messageId:wt,appId:Ct,abortSignal:Ir.current.signal,useStagingEnv:yn});case 2:if(!(at.v.status>=300)){at.n=3;break}throw new Error("Failed, try again later.");case 3:(Et=pr.addFeedback)===null||Et===void 0||Et.call(pr,wt,Wt===1?"like":"dislike");case 4:return at.a(2)}},ut)}));return function(ut,wt){return kt.apply(this,arguments)}})(),[Ie,Ct,pr,yn]),So=(function(){var kt=Xe(Ae().m(function ut(){return Ae().w(function(wt){for(;;)switch(wt.n){case 0:return Ir.current.abort(),wt.n=1,_u();case 1:return wt.a(2)}},ut)}));return function(){return kt.apply(this,arguments)}})(),ta=On(function(){for(var kt=[],ut=0;ut<Ht.length;ut++)if(Ht[ut].role==="user"){var wt,Wt=Ht[ut],Et=((wt=Ht[ut+1])===null||wt===void 0?void 0:wt.role)==="assistant"?Ht[ut+1]:null;kt.push({id:Wt.id,userMessage:Wt,assistantMessage:Et}),Et&&ut++}return kt},[Ht]),xo=Nt==="streaming"||Nt==="submitted",Sc=On(function(){if(nn)return Dn.agentStudio?(function(kt){var ut=kt.message;try{var wt=JSON.parse(kt.message);if(wt.name==="ValidationError"){var Wt=wt;if(Wt.detail&&Wt.detail.length>0){var Et=Wt.detail[0],at=Et.msg,Tn=Et.loc.at(-1);ut="".concat(at,": ").concat(Tn)}}else ut=wt.message}catch(Rn){}return new Error(ut)})(nn):nn},[nn,Dn.agentStudio]);return{messages:Ht,sendMessage:Br,status:Nt,setMessages:fn,askAiError:Sc,stopAskAiStreaming:So,isStreaming:xo,exchanges:ta,conversations:pr,sendFeedback:ci}})({assistantId:sr,apiKey:(Bt==null?void 0:Bt.apiKey)||i,appId:(Bt==null?void 0:Bt.appId)||a,indexName:(Bt==null?void 0:Bt.indexName)||xn,searchParameters:cr,useStagingEnv:Jr,agentStudio:Nn}),tn=dr.messages,Zt=dr.status,wr=dr.setMessages,Fo=dr.sendMessage,_o=dr.stopAskAiStreaming,Au=dr.askAiError,Sr=dr.sendFeedback,xr=b.useRef(Zt);b.useEffect(function(){if(!d){if(xr.current==="streaming"&&Zt==="ready"){gn&&tn.at(-1)&&(tn.at(-1).metadata={stopped:!0});var le,Ie=ye(tn[0].parts);try{for(Ie.s();!(le=Ie.n()).done;){var Ve=le.value;Ve.type==="text"&&fr.add(Xm(Ve.text,tn))}}catch(Ct){Ie.e(Ct)}finally{Ie.f()}}xr.current=Zt}},[Zt,tn,fr,d,gn]);var ai=b.useMemo(function(){return Zt==="error"&&Is(Au)},[Zt,Au]),Eu=b.useCallback(function(le){var Ie=le.hierarchy,Ve=["lvl6","lvl5","lvl4","lvl3","lvl2","lvl1","lvl0"].find(function(Ct){return Ie[Ct]});return C(C({},le),{},{type:Ve||"lvl0",content:null})},[]),ii=b.useCallback(function(le){if(!d){var Ie=le.type==="content"?le.__docsearch_parent||Eu(le):le;Ie&&Qn.getAll().findIndex(function(Ve){return Ve.objectID===Ie.objectID})===-1&&kr.add(Ie)}},[Qn,kr,d,Eu]),kc=b.useCallback(function(le){if(Ge.context.algoliaInsightsPlugin&&le.__autocomplete_id){var Ie=le,Ve={eventName:"Item Selected",index:Ie.__autocomplete_indexName,items:[Ie],positions:[le.__autocomplete_id],queryID:Ie.__autocomplete_queryID};Ge.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch(Ve)}},[Ge.context.algoliaInsightsPlugin]),Yn=b.useRef(void 0),Yr=b.useCallback(function(le,Ie){var Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(le){var Ct={query:Ie,suggestedQuestionId:Ve==null?void 0:Ve.objectID};if($!=null&&$(Ct))return void(Yn.current&&Yn.current.setQuery(""))}if(le&&Fn==="new-conversation"&&$t("initial"),Q(le,{query:Ie,suggestedQuestionId:Ve==null?void 0:Ve.objectID}),!Ce){ui(!1);var At={};if(Ve&&(At.body={suggestedQuestionId:Ve.objectID}),Fo({role:"user",parts:[{type:"text",text:Ie}]},At),Mt.current){var ln=Mt.current;typeof ln.scrollTo=="function"?ln.scrollTo({top:0,behavior:"smooth"}):ln.scrollTop=0}Yn.current&&Yn.current.setQuery("")}},[Q,$,Fo,Fn,$t,Ce]),wc=b.useCallback((function(){var le=Xe(Ae().m(function Ie(Ve,Ct){return Ae().w(function(At){for(;;)switch(At.n){case 0:if(sr&&a){At.n=1;break}return At.a(2);case 1:return At.n=2,Sr(Ve,Ct);case 2:return At.a(2)}},Ie)}));return function(Ie,Ve){return le.apply(this,arguments)}})(),[sr,a,Sr]);Yn.current||(Yn.current=lm({id:"docsearch",defaultActiveItemId:0,openOnFocus:!0,initialState:{query:ke,context:{searchSuggestions:[]}},insights:!!ne,navigator:w,onStateChange:function(le){yt(le.state)},getSources:function(le){var Ie=le.query,Ve=le.state,Ct=le.setContext,At=le.setStatus;if(!Ie){var ln=(function(qt){var Ht=qt.recentSearches,Br=qt.favoriteSearches,Nt=qt.saveRecentSearch,fn=qt.onClose;return qt.disableUserPersonalization?[]:[{sourceId:"recentSearches",onSelect:function(nn){var _u=nn.item,pr=nn.event;Nt(_u),_i(pr)||fn()},getItemUrl:function(nn){return nn.item.url},getItems:function(){return Ht.getAll()}},{sourceId:"favoriteSearches",onSelect:function(nn){var _u=nn.item,pr=nn.event;Nt(_u),_i(pr)||fn()},getItemUrl:function(nn){return nn.item.url},getItems:function(){return Br.getAll()}}]})({recentSearches:kr,favoriteSearches:Qn,saveRecentSearch:ii,onClose:m,disableUserPersonalization:d,canHandleAskAi:Dt}),yn=Dt?[{sourceId:"recentConversations",getItems:function(){return d?[]:fr.getAll()},onSelect:function(qt){var Ht=qt.item;Ht.messages&&(wr(Ht.messages),Q(!0))}}]:[];return[].concat(be(ln),yn)}var Dn={context:Ve.context},Ir=oA({query:Ie,state:Dn,setContext:Ct,setStatus:At,searchClient:Ut,indexes:lr,snippetLength:Jt,insights:!!ne,appId:a,apiKey:i,maxResultsPerGroup:c,transformItems:y,saveRecentSearch:ii,onClose:m}),eu=Dt?[{sourceId:"askAI",getItems:function(){return[{type:"askAI",query:Ie,url_without_anchor:"",objectID:"ask-ai-button",content:null,url:"",anchor:null,hierarchy:{lvl0:"Ask AI",lvl1:Ie,lvl2:null,lvl3:null,lvl4:null,lvl5:null,lvl6:null},_highlightResult:{},_snippetResult:{},__docsearch_parent:null}]},onSelect:function(qt){var Ht=qt.item;Ht.type==="askAI"&&Ht.query&&Yr(!0,Ht.query)}}]:[];return Ir.then(function(qt){return[].concat(eu,be(qt))})}}));var Co,Tr,Or=Yn.current,Xr=Or.getEnvironmentProps,ko=Or.getRootProps,ea=Or.refresh;(function(le){var Ie=le.getEnvironmentProps,Ve=le.panelElement,Ct=le.formElement,At=le.inputElement;b.useEffect(function(){if(Ve&&Ct&&At){var ln=Ie({panelElement:Ve,formElement:Ct,inputElement:At}),yn=ln.onTouchStart,Dn=ln.onTouchMove;return window.addEventListener("touchstart",yn),window.addEventListener("touchmove",Dn),function(){window.removeEventListener("touchstart",yn),window.removeEventListener("touchmove",Dn)}}},[Ie,Ve,Ct,At])})({getEnvironmentProps:Xr,panelElement:Mt.current,formElement:Gn.current,inputElement:Gt.current}),Co={container:Xt.current},Tr=Co.container,b.useEffect(function(){if(Tr){var le=Tr.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),Ie=le[0],Ve=le[le.length-1];return Tr.addEventListener("keydown",Ct),function(){Tr.removeEventListener("keydown",Ct)}}function Ct(At){At.key==="Tab"&&(At.shiftKey?document.activeElement===Ie&&(At.preventDefault(),Ve.focus()):document.activeElement===Ve&&(At.preventDefault(),Ie.focus()))}},[Tr]),Jl({theme:l}),b.useEffect(function(){return document.body.classList.add("DocSearch--active"),function(){var le,Ie;document.body.classList.remove("DocSearch--active"),(le=(Ie=window).scrollTo)===null||le===void 0||le.call(Ie,0,S)}},[]),b.useEffect(function(){typeof window!="undefined"&&window.localStorage&&(function(){if(typeof window=="undefined"||!window.localStorage)return 0;var le=0;for(var Ie in window.localStorage)window.localStorage.hasOwnProperty(Ie)&&(le+=window.localStorage[Ie].length+Ie.length);return le})()>4194304&&ad()},[]),b.useLayoutEffect(function(){var le=window.innerWidth-document.body.clientWidth;return document.body.style.marginInlineEnd="".concat(le,"px"),function(){document.body.style.marginInlineEnd="0px"}},[]),b.useEffect(function(){window.matchMedia("(max-width: 768px)").matches&&(Jt.current=5)},[]),b.useEffect(function(){var le;Mt.current&&!re&&(typeof(le=Mt.current).scrollTo=="function"?le.scrollTo({top:0,behavior:"smooth"}):le.scrollTop=0)},[Ge.query,re]),b.useEffect(function(){ke.length>0&&(ea(),Gt.current&&Gt.current.focus())},[ke,ea]),b.useEffect(function(){function le(){if(un.current){var Ie=.01*window.innerHeight;un.current.style.setProperty("--docsearch-vh","".concat(Ie,"px"))}}return le(),window.addEventListener("resize",le),function(){window.removeEventListener("resize",le)}},[]),b.useEffect(function(){re||(Or.refresh(),wr([]))},[re,Or,wr]),b.useEffect(function(){$t("initial")},[re,$t]);var oi=(function(){var le=Xe(Ae().m(function Ie(){return Ae().w(function(Ve){for(;;)switch(Ve.n){case 0:return ui(!0),Ve.n=1,_o();case 1:return Ve.a(2)}},Ie)}));return function(){return le.apply(this,arguments)}})(),Fu=function(){wr([]),$t("new-conversation")},si=!0,wo=Ge.collections.some(function(le){return le.items.length>0});return Ge.status!=="idle"||wo!==!1||Ge.query.length!==0||re||(si=!1),b.createElement("div",Tt({ref:Xt},ko({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",Ge.status==="stalled"&&"DocSearch-Container--Stalled",Ge.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(le){le.target===le.currentTarget&&m()}}),b.createElement("div",{className:"DocSearch-Modal",ref:un},b.createElement("header",{className:"DocSearch-SearchBar",ref:Gn},b.createElement(x0,Tt({},Or,{state:Ge,placeholder:mn||"Search docs",autoFocus:ke.length===0,inputRef:Gt,isFromSelection:!!ke&&ke===en,translations:Te,isAskAiActive:re,askAiStatus:Zt,askAiError:Au,askAiState:Fn,setAskAiState:$t,isThreadDepthError:ai&&Fn!=="new-conversation",onClose:m,onAskAiToggle:Q,onAskAgain:function(le){Yr(!0,le)},onStopAskAiStreaming:oi,onNewConversation:Fu,onViewConversationHistory:function(){$t("conversation-history")}}))),si&&b.createElement("div",{className:"DocSearch-Dropdown",ref:Mt},b.createElement(_0,Tt({},Or,{indexName:xn,state:Ge,hitComponent:D,resultsFooterComponent:O,disableUserPersonalization:d,recentSearches:kr,favoriteSearches:Qn,conversations:fr,inputRef:Gt,translations:He,getMissingResultsUrl:G,isAskAiActive:re,canHandleAskAi:Dt,messages:tn,askAiError:Au,status:Zt,hasCollections:wo,askAiState:Fn,selectAskAiQuestion:Yr,suggestedQuestions:Jn,selectSuggestedQuestion:function(le){Yr(!0,le.question,le)},agentStudio:Nn,onAskAiToggle:Q,onNewConversation:Fu,onItemClick:function(le,Ie){if(le.type==="askAI"&&le.query){if(le.anchor==="stored"&&"messages"in le){wr(le.messages);var Ve={query:le.query,messageId:le.messages[0].id};if($!=null&&$(Ve))return Yn.current&&Yn.current.setQuery(""),void Ie.preventDefault();Q(!0,Ve)}else Yr(!0,le.query);return $t("initial"),void Ie.preventDefault()}kc(le),ii(le),_i(Ie)||m()},onFeedback:wc}))),b.createElement("footer",{className:"DocSearch-Footer"},b.createElement(dm,{translations:ge,isAskAiActive:re}))))}var cA=b.forwardRef(function(e,t){return b.createElement(Hl,Tt({},e,{ref:t}),b.createElement(lA,e))});function lA(e){var t,n,r,u=(function(){var y=b.useContext(us);if(y===void 0)throw new Error("`useDocSearch` must be used within the `DocSearch` provider");return y})(),a=u.searchButtonRef,i=u.keyboardShortcuts,o=u.isModalActive,c=u.isAskAiActive,l=u.initialQuery,p=u.onAskAiToggle,m=u.openModal,v=u.closeModal;return b.createElement(b.Fragment,null,b.createElement(wv,{keyboardShortcuts:i,ref:a,translations:(t=e.translations)===null||t===void 0?void 0:t.button,onClick:m}),o&&Il(b.createElement(sA,Tt({},e,{initialScrollY:window.scrollY,initialQuery:l,translations:e==null||(n=e.translations)===null||n===void 0?void 0:n.modal,isAskAiActive:c,onAskAiToggle:p,onClose:v})),(r=e.portalContainer)!==null&&r!==void 0?r:document.body))}var yh=function(e,t,n,r){var u;t[0]=0;for(var a=1;a<t.length;a++){var i=t[a++],o=t[a]?(t[0]|=i?1:2,n[t[a++]]):t[++a];i===3?r[0]=o:i===4?r[1]=Object.assign(r[1]||{},o):i===5?(r[1]=r[1]||{})[t[++a]]=o:i===6?r[1][t[++a]]+=o+"":i?(u=e.apply(o,yh(e,o,n,["",null])),r.push(u),o[0]?t[0]|=2:(t[a-2]=0,t[a]=u)):r.push(o)}return r},Dh=new Map,fA=["container","environment","transformSearchClient","hitComponent","resultsFooterComponent"],dA=function(e){var t=Dh.get(this);return t||(t=new Map,Dh.set(this,t)),(t=yh(this,t.get(e)||(t.set(e,t=(function(n){for(var r,u,a=1,i="",o="",c=[0],l=function(v){a===1&&(v||(i=i.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(0,v,i):a===3&&(v||i)?(c.push(3,v,i),a=2):a===2&&i==="..."&&v?c.push(4,v,0):a===2&&i&&!v?c.push(5,0,!0,i):a>=5&&((i||!v&&a===5)&&(c.push(a,0,i,u),a=6),v&&(c.push(a,v,0,u),a=6)),i=""},p=0;p<n.length;p++){p&&(a===1&&l(),l(p));for(var m=0;m<n[p].length;m++)r=n[p][m],a===1?r==="<"?(l(),c=[c],a=3):i+=r:a===4?i==="--"&&r===">"?(a=1,i=""):i=r+i[0]:o?r===o?o="":i+=r:r==='"'||r==="'"?o=r:r===">"?(l(),a=1):a&&(r==="="?(a=5,u=i,i=""):r==="/"&&(a<5||n[p][m+1]===">")?(l(),a===3&&(c=c[0]),a=c,(c=c[0]).push(2,0,a),a=0):r===" "||r===" "||r===`
|
|
119
|
+
`||r==="\r"?(l(),a=2):i+=r),a===3&&i==="!--"&&(a=4,c=c[0])}return l(),c})(e)),t),arguments,[])).length>1?t:t[0]}.bind(kn);function bh(e){if(e)return function(t){var n=e(t,{html:dA});return va(n)?n:typeof n=="function"?n(t):typeof n=="string"?kn("span",null,n):n}}function pA(e){var t=e.container,n=e.environment,r=e.transformSearchClient,u=e.hitComponent,a=e.resultsFooterComponent,i=Nr(e,fA),o=(function(m,v){if(typeof m!="string")return m;if(!v)throw new Error("Cannot resolve a selector without a browser environment.");var y=v.document.querySelector(m);if(!y)throw new Error('Container selector did not match any element: "'.concat(m,'"'));return y})(t,n||(typeof window!="undefined"?window:void 0)),c={current:null},l=!1,p=pe(pe({},i),{},{ref:c,hitComponent:bh(u),resultsFooterComponent:bh(a),transformSearchClient:function(m){return m!=null&&m.addAlgoliaAgent&&m.addAlgoliaAgent("docsearch.js",Cc),typeof r=="function"?r(m):m}});return Pl(kn(cA,p),o),l=!0,{open:function(){var m;(m=c.current)===null||m===void 0||m.open()},close:function(){var m;(m=c.current)===null||m===void 0||m.close()},openAskAi:function(m){var v;(v=c.current)===null||v===void 0||v.openAskAi(m)},get isReady(){return l},get isOpen(){var m,v;return(m=(v=c.current)===null||v===void 0?void 0:v.isOpen)!==null&&m!==void 0&&m},destroy:function(){Ll(o),l=!1}}}pA({appId:"S4T2OSB07R",apiKey:"ea6ae2e0546ad6007f7f464a296b67de",indexName:"chocolatey",container:"#docsearchResults"}),(()=>{let e=document.querySelectorAll('.task-list-item [type="checkbox"]');e&&e.forEach(t=>{t.classList.add("form-check-input"),t.outerHTML=`<div class="form-check">${t.outerHTML}<label class="form-check-label"></label></div>`})})();var hA=mi(Mh());window.addEventListener("DOMContentLoaded",()=>{if(document.querySelector(".anchorjs-container")){for(let t of document.querySelectorAll("li")){let n=t.firstChild,r=t.classList.contains("task-list-item"),u;switch(r?u=n.nextElementSibling:u=n,u.nodeName){case"STRONG":case"CODE":u.classList.add("d-anchor");break;default:break}}let e=new hA.default;e.options.placement="left",e.add(".anchorjs-container h2:not(.d-anchor-none), .anchorjs-container h3:not(.d-anchor-none), .anchorjs-container h4:not(.d-anchor-none), .anchorjs-container h5:not(.d-anchor-none), .anchorjs-container h6:not(.d-anchor-none), .anchorjs-container li .d-anchor")}});var or=mi($h());(0,or.default)(".nav-scrollspy .nav-link").each((e,t)=>{let n=(0,or.default)(t).attr("href"),r=u=>{if(u==="#"){(0,or.default)(t).parent().remove();return}~u.indexOf(".")&&(u=u.replace(/\./g,"\\.")),(0,or.default)(u).length&&((0,or.default)(window).scrollTop()>(0,or.default)(u).offset().top-30&&(0,or.default)(u).is(":visible")?((0,or.default)(`a[href="${u}"].nav-link`).addClass("active active-page"),(0,or.default)(`a[href="${u}"].nav-link`).parent().prev().find("a.active").removeClass("active active-page")):(0,or.default)(`a[href="${u}"].nav-link`).removeClass("active active-page"))};r(n),window.addEventListener("scroll",()=>{r(n)})}),window.addEventListener("DOMContentLoaded",()=>{let e="data-choco-tab-multi",t=document.querySelectorAll(`[${e}]`),n=new Set;if(t&&t.length>0){for(let r of t){let u=r.getAttribute(e).replace(/\s/g,""),a=null;if(u){try{a=JSON.parse(u!=null?u:"")}catch(i){return}for(let i in a)Object.prototype.hasOwnProperty.call(a,i)&&n.add(i);r.addEventListener("click",()=>{let i=r.getAttribute(e).replace(/\s/g,"");for(let c of t){let l=c.getAttribute(e).replace(/\s/g,"");l!=null&&l.includes(i!=null?i:"")&&window.bootstrap.Tab.getOrCreateInstance(c).show()}let o=~location.hostname.indexOf("chocolatey.org")?"domain=chocolatey.org;":"";for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)){let l=a[c];document.cookie=`${c}=${l}; ${gi()}path=/; ${o}`}})}}for(let r of n){let u=Po(r);if(u)for(let a of t){let i=a.getAttribute(e).replace(/\s/g,"");i!=null&&i.includes(r)&&(i!=null&&i.includes(u))&&window.bootstrap.Tab.getOrCreateInstance(a).show()}}}}),(()=>{let e=document.querySelectorAll("table");e&&e.forEach(t=>{t.classList.add("table","table-bordered","table-striped"),t.outerHTML=`<div class="table-responsive">${t.outerHTML}</div>`})})(),document.querySelectorAll(".dropdown-theme").forEach(t=>{t.querySelectorAll(".dropdown-toggle").forEach(n=>{n.addEventListener("hide.bs.dropdown",()=>{document.querySelectorAll("main").forEach(r=>{r.classList.remove("z-0")})}),n.addEventListener("show.bs.dropdown",()=>{document.querySelectorAll("main").forEach(r=>{r.classList.add("z-0")})})})});var vA=()=>{document.querySelectorAll(".copy-command").forEach(e=>{let t=e.querySelector("code").getAttribute("class").split(" "),n=e.querySelector("button");n&&(n.classList.add("btn-copy"),n.setAttribute("data-clipboard-target",`.${t[0]}`))})},mA=e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),Ah=(e,t,n,r)=>{let u;if(n==="never")u=gi();else if(n==="expired")u="expires=Thu, 01 Jan 1970 00:00:00 UTC";else{let i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),u=`expires=${i.toUTCString()}`}let a=r||"";document.cookie=`${e}=${encodeURIComponent(t)};${u};path=/;${a};`};document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelectorAll(".dynamic-code-block-container"),t=document.querySelectorAll(".dynamic-code-block-input"),n=document.querySelectorAll(".dynamic-code-block-validation"),r=(a,i,o,c)=>{let l=document.querySelectorAll(`.${i}`),p=c||a.value;if(a.value||c)for(let m of l)m.textContent=p,Ah(i,p,"never"),c&&c!==o&&(a.value=c);else for(let m of l)m.textContent=o,Ah(i,o,"never")},u=()=>{n.forEach(a=>{let i=a.getAttribute("data-input-names").split(","),o=!0;for(let c of i){let l=document.querySelector(`.dynamic-code-block-input[name="${c}"]`);l.value?l.classList.remove("is-invalid"):(o=!1,l.classList.add("is-invalid"))}o?(a.classList.remove("show"),setTimeout(()=>{a.classList.add("d-none")},150)):(a.classList.remove("d-none"),a.classList.add("show"))})};t.forEach(a=>{let i=a.name,o=a.getAttribute("data-default-value"),c=Po(i),l=new RegExp(`\\b${i}\\b`,"g");for(let p of e){let v=mA(c||o);p.innerHTML=p.innerHTML.replaceAll(l,`<span class="${i}">${v}</span>`)}r(a,i,o,c),u(),a.addEventListener("keyup",()=>{r(a,i,o),u()})}),vA()})})();})();
|
|
20
120
|
/**
|
|
21
121
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
22
122
|
*
|
|
@@ -48,5 +148,6 @@ jquery/dist/jquery.js:
|
|
|
48
148
|
*)
|
|
49
149
|
|
|
50
150
|
@docsearch/js/dist/esm/index.js:
|
|
51
|
-
(*! @docsearch/js
|
|
151
|
+
(*! @docsearch/js 4.5.4 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com *)
|
|
152
|
+
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
|
|
52
153
|
*/
|