/*! 
   *
    __  __      _            _       _              _                       
   |  \/  | ___| |_ __ _  __| | __ _| |_ __ _ _ __ | | __ _ _   _  ___ _ __ 
   | |\/| |/ _ \ __/ _` |/ _` |/ _` | __/ _` | '_ \| |/ _` | | | |/ _ \ '__|
   | |  | |  __/ || (_| | (_| | (_| | || (_| | |_) | | (_| | |_| |  __/ |   
   |_|  |_|\___|\__\__,_|\__,_|\__,_|\__\__,_| .__/|_|\__,_|\__, |\___|_|   
                                             |_|            |___/         
   
   *  Copyright 2010-2024 Institut de Recherche et d'Innovation 
   *  contributor(s) : Karim Hamidou, Samuel Huron, Raphael Velt, Thibaut Cavalie, Yves-Marie Haussonne, Nicolas Durand, Olivier Aubert
   *   
   *  contact@iri.centrepompidou.fr
   *  http://www.iri.centrepompidou.fr 
   *   
   *  This software is a computer program whose purpose is to show and add annotations on a video .
   *  This software is governed by the CeCILL-C license under French law and
   *  abiding by the rules of distribution of free software. You can  use, 
   *  modify and/ or redistribute the software under the terms of the CeCILL-C
   *  license as circulated by CEA, CNRS and INRIA at the following URL
   *  "http://www.cecill.info". 
   *  
   *  The fact that you are presently reading this means that you have had
   *  knowledge of the CeCILL-C license and that you accept its terms.
   *  metadataplayer - version 0.3
  */
(function(n,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(n=typeof globalThis<"u"?globalThis:n||self,n.MetadataPlayer=e())})(this,function(){"use strict";var Rm=Object.defineProperty;var Lm=(n,e,o)=>e in n?Rm(n,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[e]=o;var Or=(n,e,o)=>Lm(n,typeof e!="symbol"?e+"":e,o);const style$1={},global$1=globalThis||void 0||self;var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function getAugmentedNamespace(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var o=function l(){return this instanceof l?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};o.prototype=e.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(l){var t=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(o,l,t.get?t:{enumerable:!0,get:function(){return n[l]}})}),o}var jquery={exports:{}};/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */(function(n){(function(e,o){n.exports=e.document?o(e,!0):function(l){if(!l.document)throw new Error("jQuery requires a window with a document");return o(l)}})(typeof window<"u"?window:commonjsGlobal$1,function(e,o){var l=[],t=Object.getPrototypeOf,u=l.slice,h=l.flat?function(Y){return l.flat.call(Y)}:function(Y){return l.concat.apply([],Y)},v=l.push,w=l.indexOf,A={},E=A.toString,C=A.hasOwnProperty,M=C.toString,P=M.call(Object),I={},j=function(ne){return typeof ne=="function"&&typeof ne.nodeType!="number"&&typeof ne.item!="function"},B=function(ne){return ne!=null&&ne===ne.window},F=e.document,N={type:!0,src:!0,nonce:!0,noModule:!0};function ee(Y,ne,ke){ke=ke||F;var Le,He,Ve=ke.createElement("script");if(Ve.text=Y,ne)for(Le in N)He=ne[Le]||ne.getAttribute&&ne.getAttribute(Le),He&&Ve.setAttribute(Le,He);ke.head.appendChild(Ve).parentNode.removeChild(Ve)}function Z(Y){return Y==null?Y+"":typeof Y=="object"||typeof Y=="function"?A[E.call(Y)]||"object":typeof Y}var re="3.7.1",fe=/HTML$/i,V=function(Y,ne){return new V.fn.init(Y,ne)};V.fn=V.prototype={jquery:re,constructor:V,length:0,toArray:function(){return u.call(this)},get:function(Y){return Y==null?u.call(this):Y<0?this[Y+this.length]:this[Y]},pushStack:function(Y){var ne=V.merge(this.constructor(),Y);return ne.prevObject=this,ne},each:function(Y){return V.each(this,Y)},map:function(Y){return this.pushStack(V.map(this,function(ne,ke){return Y.call(ne,ke,ne)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(V.grep(this,function(Y,ne){return(ne+1)%2}))},odd:function(){return this.pushStack(V.grep(this,function(Y,ne){return ne%2}))},eq:function(Y){var ne=this.length,ke=+Y+(Y<0?ne:0);return this.pushStack(ke>=0&&ke<ne?[this[ke]]:[])},end:function(){return this.prevObject||this.constructor()},push:v,sort:l.sort,splice:l.splice},V.extend=V.fn.extend=function(){var Y,ne,ke,Le,He,Ve,nt=arguments[0]||{},Ot=1,At=arguments.length,Vt=!1;for(typeof nt=="boolean"&&(Vt=nt,nt=arguments[Ot]||{},Ot++),typeof nt!="object"&&!j(nt)&&(nt={}),Ot===At&&(nt=this,Ot--);Ot<At;Ot++)if((Y=arguments[Ot])!=null)for(ne in Y)Le=Y[ne],!(ne==="__proto__"||nt===Le)&&(Vt&&Le&&(V.isPlainObject(Le)||(He=Array.isArray(Le)))?(ke=nt[ne],He&&!Array.isArray(ke)?Ve=[]:!He&&!V.isPlainObject(ke)?Ve={}:Ve=ke,He=!1,nt[ne]=V.extend(Vt,Ve,Le)):Le!==void 0&&(nt[ne]=Le));return nt},V.extend({expando:"jQuery"+(re+Math.random()).replace(/\D/g,""),isReady:!0,error:function(Y){throw new Error(Y)},noop:function(){},isPlainObject:function(Y){var ne,ke;return!Y||E.call(Y)!=="[object Object]"?!1:(ne=t(Y),ne?(ke=C.call(ne,"constructor")&&ne.constructor,typeof ke=="function"&&M.call(ke)===P):!0)},isEmptyObject:function(Y){var ne;for(ne in Y)return!1;return!0},globalEval:function(Y,ne,ke){ee(Y,{nonce:ne&&ne.nonce},ke)},each:function(Y,ne){var ke,Le=0;if(le(Y))for(ke=Y.length;Le<ke&&ne.call(Y[Le],Le,Y[Le])!==!1;Le++);else for(Le in Y)if(ne.call(Y[Le],Le,Y[Le])===!1)break;return Y},text:function(Y){var ne,ke="",Le=0,He=Y.nodeType;if(!He)for(;ne=Y[Le++];)ke+=V.text(ne);return He===1||He===11?Y.textContent:He===9?Y.documentElement.textContent:He===3||He===4?Y.nodeValue:ke},makeArray:function(Y,ne){var ke=ne||[];return Y!=null&&(le(Object(Y))?V.merge(ke,typeof Y=="string"?[Y]:Y):v.call(ke,Y)),ke},inArray:function(Y,ne,ke){return ne==null?-1:w.call(ne,Y,ke)},isXMLDoc:function(Y){var ne=Y&&Y.namespaceURI,ke=Y&&(Y.ownerDocument||Y).documentElement;return!fe.test(ne||ke&&ke.nodeName||"HTML")},merge:function(Y,ne){for(var ke=+ne.length,Le=0,He=Y.length;Le<ke;Le++)Y[He++]=ne[Le];return Y.length=He,Y},grep:function(Y,ne,ke){for(var Le,He=[],Ve=0,nt=Y.length,Ot=!ke;Ve<nt;Ve++)Le=!ne(Y[Ve],Ve),Le!==Ot&&He.push(Y[Ve]);return He},map:function(Y,ne,ke){var Le,He,Ve=0,nt=[];if(le(Y))for(Le=Y.length;Ve<Le;Ve++)He=ne(Y[Ve],Ve,ke),He!=null&&nt.push(He);else for(Ve in Y)He=ne(Y[Ve],Ve,ke),He!=null&&nt.push(He);return h(nt)},guid:1,support:I}),typeof Symbol=="function"&&(V.fn[Symbol.iterator]=l[Symbol.iterator]),V.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(Y,ne){A["[object "+ne+"]"]=ne.toLowerCase()});function le(Y){var ne=!!Y&&"length"in Y&&Y.length,ke=Z(Y);return j(Y)||B(Y)?!1:ke==="array"||ne===0||typeof ne=="number"&&ne>0&&ne-1 in Y}function he(Y,ne){return Y.nodeName&&Y.nodeName.toLowerCase()===ne.toLowerCase()}var ye=l.pop,L=l.sort,p=l.splice,y="[\\x20\\t\\r\\n\\f]",S=new RegExp("^"+y+"+|((?:^|[^\\\\])(?:\\\\.)*)"+y+"+$","g");V.contains=function(Y,ne){var ke=ne&&ne.parentNode;return Y===ke||!!(ke&&ke.nodeType===1&&(Y.contains?Y.contains(ke):Y.compareDocumentPosition&&Y.compareDocumentPosition(ke)&16))};var c=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function m(Y,ne){return ne?Y==="\0"?"�":Y.slice(0,-1)+"\\"+Y.charCodeAt(Y.length-1).toString(16)+" ":"\\"+Y}V.escapeSelector=function(Y){return(Y+"").replace(c,m)};var x=F,T=v;(function(){var Y,ne,ke,Le,He,Ve=T,nt,Ot,At,Vt,or,yr=V.expando,er=0,$r=0,Kr=ia(),hi=ia(),ci=ia(),ji=ia(),Pi=function(oe,Ee){return oe===Ee&&(He=!0),0},pn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",mn="(?:\\\\[\\da-fA-F]{1,6}"+y+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",di="\\["+y+"*("+mn+")(?:"+y+"*([*^$|!~]?=)"+y+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+mn+"))|)"+y+"*\\]",en=":("+mn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+di+")*)|.*)\\)|)",vi=new RegExp(y+"+","g"),Ai=new RegExp("^"+y+"*,"+y+"*"),Kn=new RegExp("^"+y+"*([>+~]|"+y+")"+y+"*"),ta=new RegExp(y+"|>"),tn=new RegExp(en),Ln=new RegExp("^"+mn+"$"),Wi={ID:new RegExp("^#("+mn+")"),CLASS:new RegExp("^\\.("+mn+")"),TAG:new RegExp("^("+mn+"|[*])"),ATTR:new RegExp("^"+di),PSEUDO:new RegExp("^"+en),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+y+"*(even|odd|(([+-]|)(\\d*)n|)"+y+"*(?:([+-]|)"+y+"*(\\d+)|))"+y+"*\\)|)","i"),bool:new RegExp("^(?:"+pn+")$","i"),needsContext:new RegExp("^"+y+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+y+"*((?:-\\d)?\\d*)"+y+"*\\)|)(?=[^-]|$)","i")},gn=/^(?:input|select|textarea|button)$/i,En=/^h\d$/i,$i=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Bn=/[+~]/,kn=new RegExp("\\\\[\\da-fA-F]{1,6}"+y+"?|\\\\([^\\r\\n\\f])","g"),vn=function(oe,Ee){var Ce="0x"+oe.slice(1)-65536;return Ee||(Ce<0?String.fromCharCode(Ce+65536):String.fromCharCode(Ce>>10|55296,Ce&1023|56320))},Qi=function(){An()},wa=Un(function(oe){return oe.disabled===!0&&he(oe,"fieldset")},{dir:"parentNode",next:"legend"});function ra(){try{return nt.activeElement}catch{}}try{Ve.apply(l=u.call(x.childNodes),x.childNodes),l[x.childNodes.length].nodeType}catch{Ve={apply:function(Ee,Ce){T.apply(Ee,u.call(Ce))},call:function(Ee){T.apply(Ee,u.call(arguments,1))}}}function wi(oe,Ee,Ce,Ue){var Oe,Ze,Ke,gt,It,ir,cr,Zt=Ee&&Ee.ownerDocument,qr=Ee?Ee.nodeType:9;if(Ce=Ce||[],typeof oe!="string"||!oe||qr!==1&&qr!==9&&qr!==11)return Ce;if(!Ue&&(An(Ee),Ee=Ee||nt,At)){if(qr!==11&&(It=$i.exec(oe)))if(Oe=It[1]){if(qr===9)if(Ke=Ee.getElementById(Oe)){if(Ke.id===Oe)return Ve.call(Ce,Ke),Ce}else return Ce;else if(Zt&&(Ke=Zt.getElementById(Oe))&&wi.contains(Ee,Ke)&&Ke.id===Oe)return Ve.call(Ce,Ke),Ce}else{if(It[2])return Ve.apply(Ce,Ee.getElementsByTagName(oe)),Ce;if((Oe=It[3])&&Ee.getElementsByClassName)return Ve.apply(Ce,Ee.getElementsByClassName(Oe)),Ce}if(!ji[oe+" "]&&(!Vt||!Vt.test(oe))){if(cr=oe,Zt=Ee,qr===1&&(ta.test(oe)||Kn.test(oe))){for(Zt=Bn.test(oe)&&Sa(Ee.parentNode)||Ee,(Zt!=Ee||!I.scope)&&((gt=Ee.getAttribute("id"))?gt=V.escapeSelector(gt):Ee.setAttribute("id",gt=yr)),ir=Qn(oe),Ze=ir.length;Ze--;)ir[Ze]=(gt?"#"+gt:":scope")+" "+fn(ir[Ze]);cr=ir.join(",")}try{return Ve.apply(Ce,Zt.querySelectorAll(cr)),Ce}catch{ji(oe,!0)}finally{gt===yr&&Ee.removeAttribute("id")}}}return Se(oe.replace(S,"$1"),Ee,Ce,Ue)}function ia(){var oe=[];function Ee(Ce,Ue){return oe.push(Ce+" ")>ne.cacheLength&&delete Ee[oe.shift()],Ee[Ce+" "]=Ue}return Ee}function un(oe){return oe[yr]=!0,oe}function ln(oe){var Ee=nt.createElement("fieldset");try{return!!oe(Ee)}catch{return!1}finally{Ee.parentNode&&Ee.parentNode.removeChild(Ee),Ee=null}}function Ei(oe){return function(Ee){return he(Ee,"input")&&Ee.type===oe}}function zn(oe){return function(Ee){return(he(Ee,"input")||he(Ee,"button"))&&Ee.type===oe}}function Ni(oe){return function(Ee){return"form"in Ee?Ee.parentNode&&Ee.disabled===!1?"label"in Ee?"label"in Ee.parentNode?Ee.parentNode.disabled===oe:Ee.disabled===oe:Ee.isDisabled===oe||Ee.isDisabled!==!oe&&wa(Ee)===oe:Ee.disabled===oe:"label"in Ee?Ee.disabled===oe:!1}}function Di(oe){return un(function(Ee){return Ee=+Ee,un(function(Ce,Ue){for(var Oe,Ze=oe([],Ce.length,Ee),Ke=Ze.length;Ke--;)Ce[Oe=Ze[Ke]]&&(Ce[Oe]=!(Ue[Oe]=Ce[Oe]))})})}function Sa(oe){return oe&&typeof oe.getElementsByTagName<"u"&&oe}function An(oe){var Ee,Ce=oe?oe.ownerDocument||oe:x;return Ce==nt||Ce.nodeType!==9||!Ce.documentElement||(nt=Ce,Ot=nt.documentElement,At=!V.isXMLDoc(nt),or=Ot.matches||Ot.webkitMatchesSelector||Ot.msMatchesSelector,Ot.msMatchesSelector&&x!=nt&&(Ee=nt.defaultView)&&Ee.top!==Ee&&Ee.addEventListener("unload",Qi),I.getById=ln(function(Ue){return Ot.appendChild(Ue).id=V.expando,!nt.getElementsByName||!nt.getElementsByName(V.expando).length}),I.disconnectedMatch=ln(function(Ue){return or.call(Ue,"*")}),I.scope=ln(function(){return nt.querySelectorAll(":scope")}),I.cssHas=ln(function(){try{return nt.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),I.getById?(ne.filter.ID=function(Ue){var Oe=Ue.replace(kn,vn);return function(Ze){return Ze.getAttribute("id")===Oe}},ne.find.ID=function(Ue,Oe){if(typeof Oe.getElementById<"u"&&At){var Ze=Oe.getElementById(Ue);return Ze?[Ze]:[]}}):(ne.filter.ID=function(Ue){var Oe=Ue.replace(kn,vn);return function(Ze){var Ke=typeof Ze.getAttributeNode<"u"&&Ze.getAttributeNode("id");return Ke&&Ke.value===Oe}},ne.find.ID=function(Ue,Oe){if(typeof Oe.getElementById<"u"&&At){var Ze,Ke,gt,It=Oe.getElementById(Ue);if(It){if(Ze=It.getAttributeNode("id"),Ze&&Ze.value===Ue)return[It];for(gt=Oe.getElementsByName(Ue),Ke=0;It=gt[Ke++];)if(Ze=It.getAttributeNode("id"),Ze&&Ze.value===Ue)return[It]}return[]}}),ne.find.TAG=function(Ue,Oe){return typeof Oe.getElementsByTagName<"u"?Oe.getElementsByTagName(Ue):Oe.querySelectorAll(Ue)},ne.find.CLASS=function(Ue,Oe){if(typeof Oe.getElementsByClassName<"u"&&At)return Oe.getElementsByClassName(Ue)},Vt=[],ln(function(Ue){var Oe;Ot.appendChild(Ue).innerHTML="<a id='"+yr+"' href='' disabled='disabled'></a><select id='"+yr+"-\r\\' disabled='disabled'><option selected=''></option></select>",Ue.querySelectorAll("[selected]").length||Vt.push("\\["+y+"*(?:value|"+pn+")"),Ue.querySelectorAll("[id~="+yr+"-]").length||Vt.push("~="),Ue.querySelectorAll("a#"+yr+"+*").length||Vt.push(".#.+[+~]"),Ue.querySelectorAll(":checked").length||Vt.push(":checked"),Oe=nt.createElement("input"),Oe.setAttribute("type","hidden"),Ue.appendChild(Oe).setAttribute("name","D"),Ot.appendChild(Ue).disabled=!0,Ue.querySelectorAll(":disabled").length!==2&&Vt.push(":enabled",":disabled"),Oe=nt.createElement("input"),Oe.setAttribute("name",""),Ue.appendChild(Oe),Ue.querySelectorAll("[name='']").length||Vt.push("\\["+y+"*name"+y+"*="+y+`*(?:''|"")`)}),I.cssHas||Vt.push(":has"),Vt=Vt.length&&new RegExp(Vt.join("|")),Pi=function(Ue,Oe){if(Ue===Oe)return He=!0,0;var Ze=!Ue.compareDocumentPosition-!Oe.compareDocumentPosition;return Ze||(Ze=(Ue.ownerDocument||Ue)==(Oe.ownerDocument||Oe)?Ue.compareDocumentPosition(Oe):1,Ze&1||!I.sortDetached&&Oe.compareDocumentPosition(Ue)===Ze?Ue===nt||Ue.ownerDocument==x&&wi.contains(x,Ue)?-1:Oe===nt||Oe.ownerDocument==x&&wi.contains(x,Oe)?1:Le?w.call(Le,Ue)-w.call(Le,Oe):0:Ze&4?-1:1)}),nt}wi.matches=function(oe,Ee){return wi(oe,null,null,Ee)},wi.matchesSelector=function(oe,Ee){if(An(oe),At&&!ji[Ee+" "]&&(!Vt||!Vt.test(Ee)))try{var Ce=or.call(oe,Ee);if(Ce||I.disconnectedMatch||oe.document&&oe.document.nodeType!==11)return Ce}catch{ji(Ee,!0)}return wi(Ee,nt,null,[oe]).length>0},wi.contains=function(oe,Ee){return(oe.ownerDocument||oe)!=nt&&An(oe),V.contains(oe,Ee)},wi.attr=function(oe,Ee){(oe.ownerDocument||oe)!=nt&&An(oe);var Ce=ne.attrHandle[Ee.toLowerCase()],Ue=Ce&&C.call(ne.attrHandle,Ee.toLowerCase())?Ce(oe,Ee,!At):void 0;return Ue!==void 0?Ue:oe.getAttribute(Ee)},wi.error=function(oe){throw new Error("Syntax error, unrecognized expression: "+oe)},V.uniqueSort=function(oe){var Ee,Ce=[],Ue=0,Oe=0;if(He=!I.sortStable,Le=!I.sortStable&&u.call(oe,0),L.call(oe,Pi),He){for(;Ee=oe[Oe++];)Ee===oe[Oe]&&(Ue=Ce.push(Oe));for(;Ue--;)p.call(oe,Ce[Ue],1)}return Le=null,oe},V.fn.uniqueSort=function(){return this.pushStack(V.uniqueSort(u.apply(this)))},ne=V.expr={cacheLength:50,createPseudo:un,match:Wi,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(oe){return oe[1]=oe[1].replace(kn,vn),oe[3]=(oe[3]||oe[4]||oe[5]||"").replace(kn,vn),oe[2]==="~="&&(oe[3]=" "+oe[3]+" "),oe.slice(0,4)},CHILD:function(oe){return oe[1]=oe[1].toLowerCase(),oe[1].slice(0,3)==="nth"?(oe[3]||wi.error(oe[0]),oe[4]=+(oe[4]?oe[5]+(oe[6]||1):2*(oe[3]==="even"||oe[3]==="odd")),oe[5]=+(oe[7]+oe[8]||oe[3]==="odd")):oe[3]&&wi.error(oe[0]),oe},PSEUDO:function(oe){var Ee,Ce=!oe[6]&&oe[2];return Wi.CHILD.test(oe[0])?null:(oe[3]?oe[2]=oe[4]||oe[5]||"":Ce&&tn.test(Ce)&&(Ee=Qn(Ce,!0))&&(Ee=Ce.indexOf(")",Ce.length-Ee)-Ce.length)&&(oe[0]=oe[0].slice(0,Ee),oe[2]=Ce.slice(0,Ee)),oe.slice(0,3))}},filter:{TAG:function(oe){var Ee=oe.replace(kn,vn).toLowerCase();return oe==="*"?function(){return!0}:function(Ce){return he(Ce,Ee)}},CLASS:function(oe){var Ee=Kr[oe+" "];return Ee||(Ee=new RegExp("(^|"+y+")"+oe+"("+y+"|$)"))&&Kr(oe,function(Ce){return Ee.test(typeof Ce.className=="string"&&Ce.className||typeof Ce.getAttribute<"u"&&Ce.getAttribute("class")||"")})},ATTR:function(oe,Ee,Ce){return function(Ue){var Oe=wi.attr(Ue,oe);return Oe==null?Ee==="!=":Ee?(Oe+="",Ee==="="?Oe===Ce:Ee==="!="?Oe!==Ce:Ee==="^="?Ce&&Oe.indexOf(Ce)===0:Ee==="*="?Ce&&Oe.indexOf(Ce)>-1:Ee==="$="?Ce&&Oe.slice(-Ce.length)===Ce:Ee==="~="?(" "+Oe.replace(vi," ")+" ").indexOf(Ce)>-1:Ee==="|="?Oe===Ce||Oe.slice(0,Ce.length+1)===Ce+"-":!1):!0}},CHILD:function(oe,Ee,Ce,Ue,Oe){var Ze=oe.slice(0,3)!=="nth",Ke=oe.slice(-4)!=="last",gt=Ee==="of-type";return Ue===1&&Oe===0?function(It){return!!It.parentNode}:function(It,ir,cr){var Zt,qr,Gr,ii,Mi,Li=Ze!==Ke?"nextSibling":"previousSibling",Bi=It.parentNode,Vi=gt&&It.nodeName.toLowerCase(),yn=!cr&&!gt,ui=!1;if(Bi){if(Ze){for(;Li;){for(Gr=It;Gr=Gr[Li];)if(gt?he(Gr,Vi):Gr.nodeType===1)return!1;Mi=Li=oe==="only"&&!Mi&&"nextSibling"}return!0}if(Mi=[Ke?Bi.firstChild:Bi.lastChild],Ke&&yn){for(qr=Bi[yr]||(Bi[yr]={}),Zt=qr[oe]||[],ii=Zt[0]===er&&Zt[1],ui=ii&&Zt[2],Gr=ii&&Bi.childNodes[ii];Gr=++ii&&Gr&&Gr[Li]||(ui=ii=0)||Mi.pop();)if(Gr.nodeType===1&&++ui&&Gr===It){qr[oe]=[er,ii,ui];break}}else if(yn&&(qr=It[yr]||(It[yr]={}),Zt=qr[oe]||[],ii=Zt[0]===er&&Zt[1],ui=ii),ui===!1)for(;(Gr=++ii&&Gr&&Gr[Li]||(ui=ii=0)||Mi.pop())&&!((gt?he(Gr,Vi):Gr.nodeType===1)&&++ui&&(yn&&(qr=Gr[yr]||(Gr[yr]={}),qr[oe]=[er,ui]),Gr===It)););return ui-=Oe,ui===Ue||ui%Ue===0&&ui/Ue>=0}}},PSEUDO:function(oe,Ee){var Ce,Ue=ne.pseudos[oe]||ne.setFilters[oe.toLowerCase()]||wi.error("unsupported pseudo: "+oe);return Ue[yr]?Ue(Ee):Ue.length>1?(Ce=[oe,oe,"",Ee],ne.setFilters.hasOwnProperty(oe.toLowerCase())?un(function(Oe,Ze){for(var Ke,gt=Ue(Oe,Ee),It=gt.length;It--;)Ke=w.call(Oe,gt[It]),Oe[Ke]=!(Ze[Ke]=gt[It])}):function(Oe){return Ue(Oe,0,Ce)}):Ue}},pseudos:{not:un(function(oe){var Ee=[],Ce=[],Ue=Te(oe.replace(S,"$1"));return Ue[yr]?un(function(Oe,Ze,Ke,gt){for(var It,ir=Ue(Oe,null,gt,[]),cr=Oe.length;cr--;)(It=ir[cr])&&(Oe[cr]=!(Ze[cr]=It))}):function(Oe,Ze,Ke){return Ee[0]=Oe,Ue(Ee,null,Ke,Ce),Ee[0]=null,!Ce.pop()}}),has:un(function(oe){return function(Ee){return wi(oe,Ee).length>0}}),contains:un(function(oe){return oe=oe.replace(kn,vn),function(Ee){return(Ee.textContent||V.text(Ee)).indexOf(oe)>-1}}),lang:un(function(oe){return Ln.test(oe||"")||wi.error("unsupported lang: "+oe),oe=oe.replace(kn,vn).toLowerCase(),function(Ee){var Ce;do if(Ce=At?Ee.lang:Ee.getAttribute("xml:lang")||Ee.getAttribute("lang"))return Ce=Ce.toLowerCase(),Ce===oe||Ce.indexOf(oe+"-")===0;while((Ee=Ee.parentNode)&&Ee.nodeType===1);return!1}}),target:function(oe){var Ee=e.location&&e.location.hash;return Ee&&Ee.slice(1)===oe.id},root:function(oe){return oe===Ot},focus:function(oe){return oe===ra()&&nt.hasFocus()&&!!(oe.type||oe.href||~oe.tabIndex)},enabled:Ni(!1),disabled:Ni(!0),checked:function(oe){return he(oe,"input")&&!!oe.checked||he(oe,"option")&&!!oe.selected},selected:function(oe){return oe.parentNode&&oe.parentNode.selectedIndex,oe.selected===!0},empty:function(oe){for(oe=oe.firstChild;oe;oe=oe.nextSibling)if(oe.nodeType<6)return!1;return!0},parent:function(oe){return!ne.pseudos.empty(oe)},header:function(oe){return En.test(oe.nodeName)},input:function(oe){return gn.test(oe.nodeName)},button:function(oe){return he(oe,"input")&&oe.type==="button"||he(oe,"button")},text:function(oe){var Ee;return he(oe,"input")&&oe.type==="text"&&((Ee=oe.getAttribute("type"))==null||Ee.toLowerCase()==="text")},first:Di(function(){return[0]}),last:Di(function(oe,Ee){return[Ee-1]}),eq:Di(function(oe,Ee,Ce){return[Ce<0?Ce+Ee:Ce]}),even:Di(function(oe,Ee){for(var Ce=0;Ce<Ee;Ce+=2)oe.push(Ce);return oe}),odd:Di(function(oe,Ee){for(var Ce=1;Ce<Ee;Ce+=2)oe.push(Ce);return oe}),lt:Di(function(oe,Ee,Ce){var Ue;for(Ce<0?Ue=Ce+Ee:Ce>Ee?Ue=Ee:Ue=Ce;--Ue>=0;)oe.push(Ue);return oe}),gt:Di(function(oe,Ee,Ce){for(var Ue=Ce<0?Ce+Ee:Ce;++Ue<Ee;)oe.push(Ue);return oe})}},ne.pseudos.nth=ne.pseudos.eq;for(Y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})ne.pseudos[Y]=Ei(Y);for(Y in{submit:!0,reset:!0})ne.pseudos[Y]=zn(Y);function pa(){}pa.prototype=ne.filters=ne.pseudos,ne.setFilters=new pa;function Qn(oe,Ee){var Ce,Ue,Oe,Ze,Ke,gt,It,ir=hi[oe+" "];if(ir)return Ee?0:ir.slice(0);for(Ke=oe,gt=[],It=ne.preFilter;Ke;){(!Ce||(Ue=Ai.exec(Ke)))&&(Ue&&(Ke=Ke.slice(Ue[0].length)||Ke),gt.push(Oe=[])),Ce=!1,(Ue=Kn.exec(Ke))&&(Ce=Ue.shift(),Oe.push({value:Ce,type:Ue[0].replace(S," ")}),Ke=Ke.slice(Ce.length));for(Ze in ne.filter)(Ue=Wi[Ze].exec(Ke))&&(!It[Ze]||(Ue=It[Ze](Ue)))&&(Ce=Ue.shift(),Oe.push({value:Ce,type:Ze,matches:Ue}),Ke=Ke.slice(Ce.length));if(!Ce)break}return Ee?Ke.length:Ke?wi.error(oe):hi(oe,gt).slice(0)}function fn(oe){for(var Ee=0,Ce=oe.length,Ue="";Ee<Ce;Ee++)Ue+=oe[Ee].value;return Ue}function Un(oe,Ee,Ce){var Ue=Ee.dir,Oe=Ee.next,Ze=Oe||Ue,Ke=Ce&&Ze==="parentNode",gt=$r++;return Ee.first?function(It,ir,cr){for(;It=It[Ue];)if(It.nodeType===1||Ke)return oe(It,ir,cr);return!1}:function(It,ir,cr){var Zt,qr,Gr=[er,gt];if(cr){for(;It=It[Ue];)if((It.nodeType===1||Ke)&&oe(It,ir,cr))return!0}else for(;It=It[Ue];)if(It.nodeType===1||Ke)if(qr=It[yr]||(It[yr]={}),Oe&&he(It,Oe))It=It[Ue]||It;else{if((Zt=qr[Ze])&&Zt[0]===er&&Zt[1]===gt)return Gr[2]=Zt[2];if(qr[Ze]=Gr,Gr[2]=oe(It,ir,cr))return!0}return!1}}function Ta(oe){return oe.length>1?function(Ee,Ce,Ue){for(var Oe=oe.length;Oe--;)if(!oe[Oe](Ee,Ce,Ue))return!1;return!0}:oe[0]}function za(oe,Ee,Ce){for(var Ue=0,Oe=Ee.length;Ue<Oe;Ue++)wi(oe,Ee[Ue],Ce);return Ce}function ma(oe,Ee,Ce,Ue,Oe){for(var Ze,Ke=[],gt=0,It=oe.length,ir=Ee!=null;gt<It;gt++)(Ze=oe[gt])&&(!Ce||Ce(Ze,Ue,Oe))&&(Ke.push(Ze),ir&&Ee.push(gt));return Ke}function Cn(oe,Ee,Ce,Ue,Oe,Ze){return Ue&&!Ue[yr]&&(Ue=Cn(Ue)),Oe&&!Oe[yr]&&(Oe=Cn(Oe,Ze)),un(function(Ke,gt,It,ir){var cr,Zt,qr,Gr,ii=[],Mi=[],Li=gt.length,Bi=Ke||za(Ee||"*",It.nodeType?[It]:It,[]),Vi=oe&&(Ke||!Ee)?ma(Bi,ii,oe,It,ir):Bi;if(Ce?(Gr=Oe||(Ke?oe:Li||Ue)?[]:gt,Ce(Vi,Gr,It,ir)):Gr=Vi,Ue)for(cr=ma(Gr,Mi),Ue(cr,[],It,ir),Zt=cr.length;Zt--;)(qr=cr[Zt])&&(Gr[Mi[Zt]]=!(Vi[Mi[Zt]]=qr));if(Ke){if(Oe||oe){if(Oe){for(cr=[],Zt=Gr.length;Zt--;)(qr=Gr[Zt])&&cr.push(Vi[Zt]=qr);Oe(null,Gr=[],cr,ir)}for(Zt=Gr.length;Zt--;)(qr=Gr[Zt])&&(cr=Oe?w.call(Ke,qr):ii[Zt])>-1&&(Ke[cr]=!(gt[cr]=qr))}}else Gr=ma(Gr===gt?Gr.splice(Li,Gr.length):Gr),Oe?Oe(null,gt,Gr,ir):Ve.apply(gt,Gr)})}function it(oe){for(var Ee,Ce,Ue,Oe=oe.length,Ze=ne.relative[oe[0].type],Ke=Ze||ne.relative[" "],gt=Ze?1:0,It=Un(function(Zt){return Zt===Ee},Ke,!0),ir=Un(function(Zt){return w.call(Ee,Zt)>-1},Ke,!0),cr=[function(Zt,qr,Gr){var ii=!Ze&&(Gr||qr!=ke)||((Ee=qr).nodeType?It(Zt,qr,Gr):ir(Zt,qr,Gr));return Ee=null,ii}];gt<Oe;gt++)if(Ce=ne.relative[oe[gt].type])cr=[Un(Ta(cr),Ce)];else{if(Ce=ne.filter[oe[gt].type].apply(null,oe[gt].matches),Ce[yr]){for(Ue=++gt;Ue<Oe&&!ne.relative[oe[Ue].type];Ue++);return Cn(gt>1&&Ta(cr),gt>1&&fn(oe.slice(0,gt-1).concat({value:oe[gt-2].type===" "?"*":""})).replace(S,"$1"),Ce,gt<Ue&&it(oe.slice(gt,Ue)),Ue<Oe&&it(oe=oe.slice(Ue)),Ue<Oe&&fn(oe))}cr.push(Ce)}return Ta(cr)}function ue(oe,Ee){var Ce=Ee.length>0,Ue=oe.length>0,Oe=function(Ze,Ke,gt,It,ir){var cr,Zt,qr,Gr=0,ii="0",Mi=Ze&&[],Li=[],Bi=ke,Vi=Ze||Ue&&ne.find.TAG("*",ir),yn=er+=Bi==null?1:Math.random()||.1,ui=Vi.length;for(ir&&(ke=Ke==nt||Ke||ir);ii!==ui&&(cr=Vi[ii])!=null;ii++){if(Ue&&cr){for(Zt=0,!Ke&&cr.ownerDocument!=nt&&(An(cr),gt=!At);qr=oe[Zt++];)if(qr(cr,Ke||nt,gt)){Ve.call(It,cr);break}ir&&(er=yn)}Ce&&((cr=!qr&&cr)&&Gr--,Ze&&Mi.push(cr))}if(Gr+=ii,Ce&&ii!==Gr){for(Zt=0;qr=Ee[Zt++];)qr(Mi,Li,Ke,gt);if(Ze){if(Gr>0)for(;ii--;)Mi[ii]||Li[ii]||(Li[ii]=ye.call(It));Li=ma(Li)}Ve.apply(It,Li),ir&&!Ze&&Li.length>0&&Gr+Ee.length>1&&V.uniqueSort(It)}return ir&&(er=yn,ke=Bi),Mi};return Ce?un(Oe):Oe}function Te(oe,Ee){var Ce,Ue=[],Oe=[],Ze=ci[oe+" "];if(!Ze){for(Ee||(Ee=Qn(oe)),Ce=Ee.length;Ce--;)Ze=it(Ee[Ce]),Ze[yr]?Ue.push(Ze):Oe.push(Ze);Ze=ci(oe,ue(Oe,Ue)),Ze.selector=oe}return Ze}function Se(oe,Ee,Ce,Ue){var Oe,Ze,Ke,gt,It,ir=typeof oe=="function"&&oe,cr=!Ue&&Qn(oe=ir.selector||oe);if(Ce=Ce||[],cr.length===1){if(Ze=cr[0]=cr[0].slice(0),Ze.length>2&&(Ke=Ze[0]).type==="ID"&&Ee.nodeType===9&&At&&ne.relative[Ze[1].type]){if(Ee=(ne.find.ID(Ke.matches[0].replace(kn,vn),Ee)||[])[0],Ee)ir&&(Ee=Ee.parentNode);else return Ce;oe=oe.slice(Ze.shift().value.length)}for(Oe=Wi.needsContext.test(oe)?0:Ze.length;Oe--&&(Ke=Ze[Oe],!ne.relative[gt=Ke.type]);)if((It=ne.find[gt])&&(Ue=It(Ke.matches[0].replace(kn,vn),Bn.test(Ze[0].type)&&Sa(Ee.parentNode)||Ee))){if(Ze.splice(Oe,1),oe=Ue.length&&fn(Ze),!oe)return Ve.apply(Ce,Ue),Ce;break}}return(ir||Te(oe,cr))(Ue,Ee,!At,Ce,!Ee||Bn.test(oe)&&Sa(Ee.parentNode)||Ee),Ce}I.sortStable=yr.split("").sort(Pi).join("")===yr,An(),I.sortDetached=ln(function(oe){return oe.compareDocumentPosition(nt.createElement("fieldset"))&1}),V.find=wi,V.expr[":"]=V.expr.pseudos,V.unique=V.uniqueSort,wi.compile=Te,wi.select=Se,wi.setDocument=An,wi.tokenize=Qn,wi.escape=V.escapeSelector,wi.getText=V.text,wi.isXML=V.isXMLDoc,wi.selectors=V.expr,wi.support=V.support,wi.uniqueSort=V.uniqueSort})();var b=function(Y,ne,ke){for(var Le=[],He=ke!==void 0;(Y=Y[ne])&&Y.nodeType!==9;)if(Y.nodeType===1){if(He&&V(Y).is(ke))break;Le.push(Y)}return Le},d=function(Y,ne){for(var ke=[];Y;Y=Y.nextSibling)Y.nodeType===1&&Y!==ne&&ke.push(Y);return ke},k=V.expr.match.needsContext,D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(Y,ne,ke){return j(ne)?V.grep(Y,function(Le,He){return!!ne.call(Le,He,Le)!==ke}):ne.nodeType?V.grep(Y,function(Le){return Le===ne!==ke}):typeof ne!="string"?V.grep(Y,function(Le){return w.call(ne,Le)>-1!==ke}):V.filter(ne,Y,ke)}V.filter=function(Y,ne,ke){var Le=ne[0];return ke&&(Y=":not("+Y+")"),ne.length===1&&Le.nodeType===1?V.find.matchesSelector(Le,Y)?[Le]:[]:V.find.matches(Y,V.grep(ne,function(He){return He.nodeType===1}))},V.fn.extend({find:function(Y){var ne,ke,Le=this.length,He=this;if(typeof Y!="string")return this.pushStack(V(Y).filter(function(){for(ne=0;ne<Le;ne++)if(V.contains(He[ne],this))return!0}));for(ke=this.pushStack([]),ne=0;ne<Le;ne++)V.find(Y,He[ne],ke);return Le>1?V.uniqueSort(ke):ke},filter:function(Y){return this.pushStack(O(this,Y||[],!1))},not:function(Y){return this.pushStack(O(this,Y||[],!0))},is:function(Y){return!!O(this,typeof Y=="string"&&k.test(Y)?V(Y):Y||[],!1).length}});var Q,J=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,X=V.fn.init=function(Y,ne,ke){var Le,He;if(!Y)return this;if(ke=ke||Q,typeof Y=="string")if(Y[0]==="<"&&Y[Y.length-1]===">"&&Y.length>=3?Le=[null,Y,null]:Le=J.exec(Y),Le&&(Le[1]||!ne))if(Le[1]){if(ne=ne instanceof V?ne[0]:ne,V.merge(this,V.parseHTML(Le[1],ne&&ne.nodeType?ne.ownerDocument||ne:F,!0)),D.test(Le[1])&&V.isPlainObject(ne))for(Le in ne)j(this[Le])?this[Le](ne[Le]):this.attr(Le,ne[Le]);return this}else return He=F.getElementById(Le[2]),He&&(this[0]=He,this.length=1),this;else return!ne||ne.jquery?(ne||ke).find(Y):this.constructor(ne).find(Y);else{if(Y.nodeType)return this[0]=Y,this.length=1,this;if(j(Y))return ke.ready!==void 0?ke.ready(Y):Y(V)}return V.makeArray(Y,this)};X.prototype=V.fn,Q=V(F);var U=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};V.fn.extend({has:function(Y){var ne=V(Y,this),ke=ne.length;return this.filter(function(){for(var Le=0;Le<ke;Le++)if(V.contains(this,ne[Le]))return!0})},closest:function(Y,ne){var ke,Le=0,He=this.length,Ve=[],nt=typeof Y!="string"&&V(Y);if(!k.test(Y)){for(;Le<He;Le++)for(ke=this[Le];ke&&ke!==ne;ke=ke.parentNode)if(ke.nodeType<11&&(nt?nt.index(ke)>-1:ke.nodeType===1&&V.find.matchesSelector(ke,Y))){Ve.push(ke);break}}return this.pushStack(Ve.length>1?V.uniqueSort(Ve):Ve)},index:function(Y){return Y?typeof Y=="string"?w.call(V(Y),this[0]):w.call(this,Y.jquery?Y[0]:Y):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(Y,ne){return this.pushStack(V.uniqueSort(V.merge(this.get(),V(Y,ne))))},addBack:function(Y){return this.add(Y==null?this.prevObject:this.prevObject.filter(Y))}});function ie(Y,ne){for(;(Y=Y[ne])&&Y.nodeType!==1;);return Y}V.each({parent:function(Y){var ne=Y.parentNode;return ne&&ne.nodeType!==11?ne:null},parents:function(Y){return b(Y,"parentNode")},parentsUntil:function(Y,ne,ke){return b(Y,"parentNode",ke)},next:function(Y){return ie(Y,"nextSibling")},prev:function(Y){return ie(Y,"previousSibling")},nextAll:function(Y){return b(Y,"nextSibling")},prevAll:function(Y){return b(Y,"previousSibling")},nextUntil:function(Y,ne,ke){return b(Y,"nextSibling",ke)},prevUntil:function(Y,ne,ke){return b(Y,"previousSibling",ke)},siblings:function(Y){return d((Y.parentNode||{}).firstChild,Y)},children:function(Y){return d(Y.firstChild)},contents:function(Y){return Y.contentDocument!=null&&t(Y.contentDocument)?Y.contentDocument:(he(Y,"template")&&(Y=Y.content||Y),V.merge([],Y.childNodes))}},function(Y,ne){V.fn[Y]=function(ke,Le){var He=V.map(this,ne,ke);return Y.slice(-5)!=="Until"&&(Le=ke),Le&&typeof Le=="string"&&(He=V.filter(Le,He)),this.length>1&&(z[Y]||V.uniqueSort(He),U.test(Y)&&He.reverse()),this.pushStack(He)}});var de=/[^\x20\t\r\n\f]+/g;function me(Y){var ne={};return V.each(Y.match(de)||[],function(ke,Le){ne[Le]=!0}),ne}V.Callbacks=function(Y){Y=typeof Y=="string"?me(Y):V.extend({},Y);var ne,ke,Le,He,Ve=[],nt=[],Ot=-1,At=function(){for(He=He||Y.once,Le=ne=!0;nt.length;Ot=-1)for(ke=nt.shift();++Ot<Ve.length;)Ve[Ot].apply(ke[0],ke[1])===!1&&Y.stopOnFalse&&(Ot=Ve.length,ke=!1);Y.memory||(ke=!1),ne=!1,He&&(ke?Ve=[]:Ve="")},Vt={add:function(){return Ve&&(ke&&!ne&&(Ot=Ve.length-1,nt.push(ke)),function or(yr){V.each(yr,function(er,$r){j($r)?(!Y.unique||!Vt.has($r))&&Ve.push($r):$r&&$r.length&&Z($r)!=="string"&&or($r)})}(arguments),ke&&!ne&&At()),this},remove:function(){return V.each(arguments,function(or,yr){for(var er;(er=V.inArray(yr,Ve,er))>-1;)Ve.splice(er,1),er<=Ot&&Ot--}),this},has:function(or){return or?V.inArray(or,Ve)>-1:Ve.length>0},empty:function(){return Ve&&(Ve=[]),this},disable:function(){return He=nt=[],Ve=ke="",this},disabled:function(){return!Ve},lock:function(){return He=nt=[],!ke&&!ne&&(Ve=ke=""),this},locked:function(){return!!He},fireWith:function(or,yr){return He||(yr=yr||[],yr=[or,yr.slice?yr.slice():yr],nt.push(yr),ne||At()),this},fire:function(){return Vt.fireWith(this,arguments),this},fired:function(){return!!Le}};return Vt};function pe(Y){return Y}function qe(Y){throw Y}function mt(Y,ne,ke,Le){var He;try{Y&&j(He=Y.promise)?He.call(Y).done(ne).fail(ke):Y&&j(He=Y.then)?He.call(Y,ne,ke):ne.apply(void 0,[Y].slice(Le))}catch(Ve){ke.apply(void 0,[Ve])}}V.extend({Deferred:function(Y){var ne=[["notify","progress",V.Callbacks("memory"),V.Callbacks("memory"),2],["resolve","done",V.Callbacks("once memory"),V.Callbacks("once memory"),0,"resolved"],["reject","fail",V.Callbacks("once memory"),V.Callbacks("once memory"),1,"rejected"]],ke="pending",Le={state:function(){return ke},always:function(){return He.done(arguments).fail(arguments),this},catch:function(Ve){return Le.then(null,Ve)},pipe:function(){var Ve=arguments;return V.Deferred(function(nt){V.each(ne,function(Ot,At){var Vt=j(Ve[At[4]])&&Ve[At[4]];He[At[1]](function(){var or=Vt&&Vt.apply(this,arguments);or&&j(or.promise)?or.promise().progress(nt.notify).done(nt.resolve).fail(nt.reject):nt[At[0]+"With"](this,Vt?[or]:arguments)})}),Ve=null}).promise()},then:function(Ve,nt,Ot){var At=0;function Vt(or,yr,er,$r){return function(){var Kr=this,hi=arguments,ci=function(){var Pi,pn;if(!(or<At)){if(Pi=er.apply(Kr,hi),Pi===yr.promise())throw new TypeError("Thenable self-resolution");pn=Pi&&(typeof Pi=="object"||typeof Pi=="function")&&Pi.then,j(pn)?$r?pn.call(Pi,Vt(At,yr,pe,$r),Vt(At,yr,qe,$r)):(At++,pn.call(Pi,Vt(At,yr,pe,$r),Vt(At,yr,qe,$r),Vt(At,yr,pe,yr.notifyWith))):(er!==pe&&(Kr=void 0,hi=[Pi]),($r||yr.resolveWith)(Kr,hi))}},ji=$r?ci:function(){try{ci()}catch(Pi){V.Deferred.exceptionHook&&V.Deferred.exceptionHook(Pi,ji.error),or+1>=At&&(er!==qe&&(Kr=void 0,hi=[Pi]),yr.rejectWith(Kr,hi))}};or?ji():(V.Deferred.getErrorHook?ji.error=V.Deferred.getErrorHook():V.Deferred.getStackHook&&(ji.error=V.Deferred.getStackHook()),e.setTimeout(ji))}}return V.Deferred(function(or){ne[0][3].add(Vt(0,or,j(Ot)?Ot:pe,or.notifyWith)),ne[1][3].add(Vt(0,or,j(Ve)?Ve:pe)),ne[2][3].add(Vt(0,or,j(nt)?nt:qe))}).promise()},promise:function(Ve){return Ve!=null?V.extend(Ve,Le):Le}},He={};return V.each(ne,function(Ve,nt){var Ot=nt[2],At=nt[5];Le[nt[1]]=Ot.add,At&&Ot.add(function(){ke=At},ne[3-Ve][2].disable,ne[3-Ve][3].disable,ne[0][2].lock,ne[0][3].lock),Ot.add(nt[3].fire),He[nt[0]]=function(){return He[nt[0]+"With"](this===He?void 0:this,arguments),this},He[nt[0]+"With"]=Ot.fireWith}),Le.promise(He),Y&&Y.call(He,He),He},when:function(Y){var ne=arguments.length,ke=ne,Le=Array(ke),He=u.call(arguments),Ve=V.Deferred(),nt=function(Ot){return function(At){Le[Ot]=this,He[Ot]=arguments.length>1?u.call(arguments):At,--ne||Ve.resolveWith(Le,He)}};if(ne<=1&&(mt(Y,Ve.done(nt(ke)).resolve,Ve.reject,!ne),Ve.state()==="pending"||j(He[ke]&&He[ke].then)))return Ve.then();for(;ke--;)mt(He[ke],nt(ke),Ve.reject);return Ve.promise()}});var st=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;V.Deferred.exceptionHook=function(Y,ne){e.console&&e.console.warn&&Y&&st.test(Y.name)&&e.console.warn("jQuery.Deferred exception: "+Y.message,Y.stack,ne)},V.readyException=function(Y){e.setTimeout(function(){throw Y})};var dt=V.Deferred();V.fn.ready=function(Y){return dt.then(Y).catch(function(ne){V.readyException(ne)}),this},V.extend({isReady:!1,readyWait:1,ready:function(Y){(Y===!0?--V.readyWait:V.isReady)||(V.isReady=!0,!(Y!==!0&&--V.readyWait>0)&&dt.resolveWith(F,[V]))}}),V.ready.then=dt.then;function Tt(){F.removeEventListener("DOMContentLoaded",Tt),e.removeEventListener("load",Tt),V.ready()}F.readyState==="complete"||F.readyState!=="loading"&&!F.documentElement.doScroll?e.setTimeout(V.ready):(F.addEventListener("DOMContentLoaded",Tt),e.addEventListener("load",Tt));var lt=function(Y,ne,ke,Le,He,Ve,nt){var Ot=0,At=Y.length,Vt=ke==null;if(Z(ke)==="object"){He=!0;for(Ot in ke)lt(Y,ne,Ot,ke[Ot],!0,Ve,nt)}else if(Le!==void 0&&(He=!0,j(Le)||(nt=!0),Vt&&(nt?(ne.call(Y,Le),ne=null):(Vt=ne,ne=function(or,yr,er){return Vt.call(V(or),er)})),ne))for(;Ot<At;Ot++)ne(Y[Ot],ke,nt?Le:Le.call(Y[Ot],Ot,ne(Y[Ot],ke)));return He?Y:Vt?ne.call(Y):At?ne(Y[0],ke):Ve},Je=/^-ms-/,ht=/-([a-z])/g;function at(Y,ne){return ne.toUpperCase()}function bt(Y){return Y.replace(Je,"ms-").replace(ht,at)}var jt=function(Y){return Y.nodeType===1||Y.nodeType===9||!+Y.nodeType};function Ge(){this.expando=V.expando+Ge.uid++}Ge.uid=1,Ge.prototype={cache:function(Y){var ne=Y[this.expando];return ne||(ne={},jt(Y)&&(Y.nodeType?Y[this.expando]=ne:Object.defineProperty(Y,this.expando,{value:ne,configurable:!0}))),ne},set:function(Y,ne,ke){var Le,He=this.cache(Y);if(typeof ne=="string")He[bt(ne)]=ke;else for(Le in ne)He[bt(Le)]=ne[Le];return He},get:function(Y,ne){return ne===void 0?this.cache(Y):Y[this.expando]&&Y[this.expando][bt(ne)]},access:function(Y,ne,ke){return ne===void 0||ne&&typeof ne=="string"&&ke===void 0?this.get(Y,ne):(this.set(Y,ne,ke),ke!==void 0?ke:ne)},remove:function(Y,ne){var ke,Le=Y[this.expando];if(Le!==void 0){if(ne!==void 0)for(Array.isArray(ne)?ne=ne.map(bt):(ne=bt(ne),ne=ne in Le?[ne]:ne.match(de)||[]),ke=ne.length;ke--;)delete Le[ne[ke]];(ne===void 0||V.isEmptyObject(Le))&&(Y.nodeType?Y[this.expando]=void 0:delete Y[this.expando])}},hasData:function(Y){var ne=Y[this.expando];return ne!==void 0&&!V.isEmptyObject(ne)}};var Qe=new Ge,Wt=new Ge,Et=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ct=/[A-Z]/g;function Kt(Y){return Y==="true"?!0:Y==="false"?!1:Y==="null"?null:Y===+Y+""?+Y:Et.test(Y)?JSON.parse(Y):Y}function Me(Y,ne,ke){var Le;if(ke===void 0&&Y.nodeType===1)if(Le="data-"+ne.replace(Ct,"-$&").toLowerCase(),ke=Y.getAttribute(Le),typeof ke=="string"){try{ke=Kt(ke)}catch{}Wt.set(Y,ne,ke)}else ke=void 0;return ke}V.extend({hasData:function(Y){return Wt.hasData(Y)||Qe.hasData(Y)},data:function(Y,ne,ke){return Wt.access(Y,ne,ke)},removeData:function(Y,ne){Wt.remove(Y,ne)},_data:function(Y,ne,ke){return Qe.access(Y,ne,ke)},_removeData:function(Y,ne){Qe.remove(Y,ne)}}),V.fn.extend({data:function(Y,ne){var ke,Le,He,Ve=this[0],nt=Ve&&Ve.attributes;if(Y===void 0){if(this.length&&(He=Wt.get(Ve),Ve.nodeType===1&&!Qe.get(Ve,"hasDataAttrs"))){for(ke=nt.length;ke--;)nt[ke]&&(Le=nt[ke].name,Le.indexOf("data-")===0&&(Le=bt(Le.slice(5)),Me(Ve,Le,He[Le])));Qe.set(Ve,"hasDataAttrs",!0)}return He}return typeof Y=="object"?this.each(function(){Wt.set(this,Y)}):lt(this,function(Ot){var At;if(Ve&&Ot===void 0)return At=Wt.get(Ve,Y),At!==void 0||(At=Me(Ve,Y),At!==void 0)?At:void 0;this.each(function(){Wt.set(this,Y,Ot)})},null,ne,arguments.length>1,null,!0)},removeData:function(Y){return this.each(function(){Wt.remove(this,Y)})}}),V.extend({queue:function(Y,ne,ke){var Le;if(Y)return ne=(ne||"fx")+"queue",Le=Qe.get(Y,ne),ke&&(!Le||Array.isArray(ke)?Le=Qe.access(Y,ne,V.makeArray(ke)):Le.push(ke)),Le||[]},dequeue:function(Y,ne){ne=ne||"fx";var ke=V.queue(Y,ne),Le=ke.length,He=ke.shift(),Ve=V._queueHooks(Y,ne),nt=function(){V.dequeue(Y,ne)};He==="inprogress"&&(He=ke.shift(),Le--),He&&(ne==="fx"&&ke.unshift("inprogress"),delete Ve.stop,He.call(Y,nt,Ve)),!Le&&Ve&&Ve.empty.fire()},_queueHooks:function(Y,ne){var ke=ne+"queueHooks";return Qe.get(Y,ke)||Qe.access(Y,ke,{empty:V.Callbacks("once memory").add(function(){Qe.remove(Y,[ne+"queue",ke])})})}}),V.fn.extend({queue:function(Y,ne){var ke=2;return typeof Y!="string"&&(ne=Y,Y="fx",ke--),arguments.length<ke?V.queue(this[0],Y):ne===void 0?this:this.each(function(){var Le=V.queue(this,Y,ne);V._queueHooks(this,Y),Y==="fx"&&Le[0]!=="inprogress"&&V.dequeue(this,Y)})},dequeue:function(Y){return this.each(function(){V.dequeue(this,Y)})},clearQueue:function(Y){return this.queue(Y||"fx",[])},promise:function(Y,ne){var ke,Le=1,He=V.Deferred(),Ve=this,nt=this.length,Ot=function(){--Le||He.resolveWith(Ve,[Ve])};for(typeof Y!="string"&&(ne=Y,Y=void 0),Y=Y||"fx";nt--;)ke=Qe.get(Ve[nt],Y+"queueHooks"),ke&&ke.empty&&(Le++,ke.empty.add(Ot));return Ot(),He.promise(ne)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_e=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),je=["Top","Right","Bottom","Left"],We=F.documentElement,et=function(Y){return V.contains(Y.ownerDocument,Y)},Ye={composed:!0};We.getRootNode&&(et=function(Y){return V.contains(Y.ownerDocument,Y)||Y.getRootNode(Ye)===Y.ownerDocument});var De=function(Y,ne){return Y=ne||Y,Y.style.display==="none"||Y.style.display===""&&et(Y)&&V.css(Y,"display")==="none"};function Ht(Y,ne,ke,Le){var He,Ve,nt=20,Ot=Le?function(){return Le.cur()}:function(){return V.css(Y,ne,"")},At=Ot(),Vt=ke&&ke[3]||(V.cssNumber[ne]?"":"px"),or=Y.nodeType&&(V.cssNumber[ne]||Vt!=="px"&&+At)&&_e.exec(V.css(Y,ne));if(or&&or[3]!==Vt){for(At=At/2,Vt=Vt||or[3],or=+At||1;nt--;)V.style(Y,ne,or+Vt),(1-Ve)*(1-(Ve=Ot()/At||.5))<=0&&(nt=0),or=or/Ve;or=or*2,V.style(Y,ne,or+Vt),ke=ke||[]}return ke&&(or=+or||+At||0,He=ke[1]?or+(ke[1]+1)*ke[2]:+ke[2],Le&&(Le.unit=Vt,Le.start=or,Le.end=He)),He}var Mt={};function ge(Y){var ne,ke=Y.ownerDocument,Le=Y.nodeName,He=Mt[Le];return He||(ne=ke.body.appendChild(ke.createElement(Le)),He=V.css(ne,"display"),ne.parentNode.removeChild(ne),He==="none"&&(He="block"),Mt[Le]=He,He)}function Dt(Y,ne){for(var ke,Le,He=[],Ve=0,nt=Y.length;Ve<nt;Ve++)Le=Y[Ve],Le.style&&(ke=Le.style.display,ne?(ke==="none"&&(He[Ve]=Qe.get(Le,"display")||null,He[Ve]||(Le.style.display="")),Le.style.display===""&&De(Le)&&(He[Ve]=ge(Le))):ke!=="none"&&(He[Ve]="none",Qe.set(Le,"display",ke)));for(Ve=0;Ve<nt;Ve++)He[Ve]!=null&&(Y[Ve].style.display=He[Ve]);return Y}V.fn.extend({show:function(){return Dt(this,!0)},hide:function(){return Dt(this)},toggle:function(Y){return typeof Y=="boolean"?Y?this.show():this.hide():this.each(function(){De(this)?V(this).show():V(this).hide()})}});var yt=/^(?:checkbox|radio)$/i,Ne=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i;(function(){var Y=F.createDocumentFragment(),ne=Y.appendChild(F.createElement("div")),ke=F.createElement("input");ke.setAttribute("type","radio"),ke.setAttribute("checked","checked"),ke.setAttribute("name","t"),ne.appendChild(ke),I.checkClone=ne.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.innerHTML="<textarea>x</textarea>",I.noCloneChecked=!!ne.cloneNode(!0).lastChild.defaultValue,ne.innerHTML="<option></option>",I.option=!!ne.lastChild})();var pt={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,"",""]};pt.tbody=pt.tfoot=pt.colgroup=pt.caption=pt.thead,pt.th=pt.td,I.option||(pt.optgroup=pt.option=[1,"<select multiple='multiple'>","</select>"]);function Bt(Y,ne){var ke;return typeof Y.getElementsByTagName<"u"?ke=Y.getElementsByTagName(ne||"*"):typeof Y.querySelectorAll<"u"?ke=Y.querySelectorAll(ne||"*"):ke=[],ne===void 0||ne&&he(Y,ne)?V.merge([Y],ke):ke}function ur(Y,ne){for(var ke=0,Le=Y.length;ke<Le;ke++)Qe.set(Y[ke],"globalEval",!ne||Qe.get(ne[ke],"globalEval"))}var kt=/<|&#?\w+;/;function Ut(Y,ne,ke,Le,He){for(var Ve,nt,Ot,At,Vt,or,yr=ne.createDocumentFragment(),er=[],$r=0,Kr=Y.length;$r<Kr;$r++)if(Ve=Y[$r],Ve||Ve===0)if(Z(Ve)==="object")V.merge(er,Ve.nodeType?[Ve]:Ve);else if(!kt.test(Ve))er.push(ne.createTextNode(Ve));else{for(nt=nt||yr.appendChild(ne.createElement("div")),Ot=(Ne.exec(Ve)||["",""])[1].toLowerCase(),At=pt[Ot]||pt._default,nt.innerHTML=At[1]+V.htmlPrefilter(Ve)+At[2],or=At[0];or--;)nt=nt.lastChild;V.merge(er,nt.childNodes),nt=yr.firstChild,nt.textContent=""}for(yr.textContent="",$r=0;Ve=er[$r++];){if(Le&&V.inArray(Ve,Le)>-1){He&&He.push(Ve);continue}if(Vt=et(Ve),nt=Bt(yr.appendChild(Ve),"script"),Vt&&ur(nt),ke)for(or=0;Ve=nt[or++];)_t.test(Ve.type||"")&&ke.push(Ve)}return yr}var Wr=/^([^.]*)(?:\.(.+)|)/;function zt(){return!0}function Qt(){return!1}function $e(Y,ne,ke,Le,He,Ve){var nt,Ot;if(typeof ne=="object"){typeof ke!="string"&&(Le=Le||ke,ke=void 0);for(Ot in ne)$e(Y,Ot,ke,Le,ne[Ot],Ve);return Y}if(Le==null&&He==null?(He=ke,Le=ke=void 0):He==null&&(typeof ke=="string"?(He=Le,Le=void 0):(He=Le,Le=ke,ke=void 0)),He===!1)He=Qt;else if(!He)return Y;return Ve===1&&(nt=He,He=function(At){return V().off(At),nt.apply(this,arguments)},He.guid=nt.guid||(nt.guid=V.guid++)),Y.each(function(){V.event.add(this,ne,He,Le,ke)})}V.event={global:{},add:function(Y,ne,ke,Le,He){var Ve,nt,Ot,At,Vt,or,yr,er,$r,Kr,hi,ci=Qe.get(Y);if(jt(Y))for(ke.handler&&(Ve=ke,ke=Ve.handler,He=Ve.selector),He&&V.find.matchesSelector(We,He),ke.guid||(ke.guid=V.guid++),(At=ci.events)||(At=ci.events=Object.create(null)),(nt=ci.handle)||(nt=ci.handle=function(ji){return typeof V<"u"&&V.event.triggered!==ji.type?V.event.dispatch.apply(Y,arguments):void 0}),ne=(ne||"").match(de)||[""],Vt=ne.length;Vt--;)Ot=Wr.exec(ne[Vt])||[],$r=hi=Ot[1],Kr=(Ot[2]||"").split(".").sort(),$r&&(yr=V.event.special[$r]||{},$r=(He?yr.delegateType:yr.bindType)||$r,yr=V.event.special[$r]||{},or=V.extend({type:$r,origType:hi,data:Le,handler:ke,guid:ke.guid,selector:He,needsContext:He&&V.expr.match.needsContext.test(He),namespace:Kr.join(".")},Ve),(er=At[$r])||(er=At[$r]=[],er.delegateCount=0,(!yr.setup||yr.setup.call(Y,Le,Kr,nt)===!1)&&Y.addEventListener&&Y.addEventListener($r,nt)),yr.add&&(yr.add.call(Y,or),or.handler.guid||(or.handler.guid=ke.guid)),He?er.splice(er.delegateCount++,0,or):er.push(or),V.event.global[$r]=!0)},remove:function(Y,ne,ke,Le,He){var Ve,nt,Ot,At,Vt,or,yr,er,$r,Kr,hi,ci=Qe.hasData(Y)&&Qe.get(Y);if(!(!ci||!(At=ci.events))){for(ne=(ne||"").match(de)||[""],Vt=ne.length;Vt--;){if(Ot=Wr.exec(ne[Vt])||[],$r=hi=Ot[1],Kr=(Ot[2]||"").split(".").sort(),!$r){for($r in At)V.event.remove(Y,$r+ne[Vt],ke,Le,!0);continue}for(yr=V.event.special[$r]||{},$r=(Le?yr.delegateType:yr.bindType)||$r,er=At[$r]||[],Ot=Ot[2]&&new RegExp("(^|\\.)"+Kr.join("\\.(?:.*\\.|)")+"(\\.|$)"),nt=Ve=er.length;Ve--;)or=er[Ve],(He||hi===or.origType)&&(!ke||ke.guid===or.guid)&&(!Ot||Ot.test(or.namespace))&&(!Le||Le===or.selector||Le==="**"&&or.selector)&&(er.splice(Ve,1),or.selector&&er.delegateCount--,yr.remove&&yr.remove.call(Y,or));nt&&!er.length&&((!yr.teardown||yr.teardown.call(Y,Kr,ci.handle)===!1)&&V.removeEvent(Y,$r,ci.handle),delete At[$r])}V.isEmptyObject(At)&&Qe.remove(Y,"handle events")}},dispatch:function(Y){var ne,ke,Le,He,Ve,nt,Ot=new Array(arguments.length),At=V.event.fix(Y),Vt=(Qe.get(this,"events")||Object.create(null))[At.type]||[],or=V.event.special[At.type]||{};for(Ot[0]=At,ne=1;ne<arguments.length;ne++)Ot[ne]=arguments[ne];if(At.delegateTarget=this,!(or.preDispatch&&or.preDispatch.call(this,At)===!1)){for(nt=V.event.handlers.call(this,At,Vt),ne=0;(He=nt[ne++])&&!At.isPropagationStopped();)for(At.currentTarget=He.elem,ke=0;(Ve=He.handlers[ke++])&&!At.isImmediatePropagationStopped();)(!At.rnamespace||Ve.namespace===!1||At.rnamespace.test(Ve.namespace))&&(At.handleObj=Ve,At.data=Ve.data,Le=((V.event.special[Ve.origType]||{}).handle||Ve.handler).apply(He.elem,Ot),Le!==void 0&&(At.result=Le)===!1&&(At.preventDefault(),At.stopPropagation()));return or.postDispatch&&or.postDispatch.call(this,At),At.result}},handlers:function(Y,ne){var ke,Le,He,Ve,nt,Ot=[],At=ne.delegateCount,Vt=Y.target;if(At&&Vt.nodeType&&!(Y.type==="click"&&Y.button>=1)){for(;Vt!==this;Vt=Vt.parentNode||this)if(Vt.nodeType===1&&!(Y.type==="click"&&Vt.disabled===!0)){for(Ve=[],nt={},ke=0;ke<At;ke++)Le=ne[ke],He=Le.selector+" ",nt[He]===void 0&&(nt[He]=Le.needsContext?V(He,this).index(Vt)>-1:V.find(He,this,null,[Vt]).length),nt[He]&&Ve.push(Le);Ve.length&&Ot.push({elem:Vt,handlers:Ve})}}return Vt=this,At<ne.length&&Ot.push({elem:Vt,handlers:ne.slice(At)}),Ot},addProp:function(Y,ne){Object.defineProperty(V.Event.prototype,Y,{enumerable:!0,configurable:!0,get:j(ne)?function(){if(this.originalEvent)return ne(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[Y]},set:function(ke){Object.defineProperty(this,Y,{enumerable:!0,configurable:!0,writable:!0,value:ke})}})},fix:function(Y){return Y[V.expando]?Y:new V.Event(Y)},special:{load:{noBubble:!0},click:{setup:function(Y){var ne=this||Y;return yt.test(ne.type)&&ne.click&&he(ne,"input")&&be(ne,"click",!0),!1},trigger:function(Y){var ne=this||Y;return yt.test(ne.type)&&ne.click&&he(ne,"input")&&be(ne,"click"),!0},_default:function(Y){var ne=Y.target;return yt.test(ne.type)&&ne.click&&he(ne,"input")&&Qe.get(ne,"click")||he(ne,"a")}},beforeunload:{postDispatch:function(Y){Y.result!==void 0&&Y.originalEvent&&(Y.originalEvent.returnValue=Y.result)}}}};function be(Y,ne,ke){if(!ke){Qe.get(Y,ne)===void 0&&V.event.add(Y,ne,zt);return}Qe.set(Y,ne,!1),V.event.add(Y,ne,{namespace:!1,handler:function(Le){var He,Ve=Qe.get(this,ne);if(Le.isTrigger&1&&this[ne]){if(Ve)(V.event.special[ne]||{}).delegateType&&Le.stopPropagation();else if(Ve=u.call(arguments),Qe.set(this,ne,Ve),this[ne](),He=Qe.get(this,ne),Qe.set(this,ne,!1),Ve!==He)return Le.stopImmediatePropagation(),Le.preventDefault(),He}else Ve&&(Qe.set(this,ne,V.event.trigger(Ve[0],Ve.slice(1),this)),Le.stopPropagation(),Le.isImmediatePropagationStopped=zt)}})}V.removeEvent=function(Y,ne,ke){Y.removeEventListener&&Y.removeEventListener(ne,ke)},V.Event=function(Y,ne){if(!(this instanceof V.Event))return new V.Event(Y,ne);Y&&Y.type?(this.originalEvent=Y,this.type=Y.type,this.isDefaultPrevented=Y.defaultPrevented||Y.defaultPrevented===void 0&&Y.returnValue===!1?zt:Qt,this.target=Y.target&&Y.target.nodeType===3?Y.target.parentNode:Y.target,this.currentTarget=Y.currentTarget,this.relatedTarget=Y.relatedTarget):this.type=Y,ne&&V.extend(this,ne),this.timeStamp=Y&&Y.timeStamp||Date.now(),this[V.expando]=!0},V.Event.prototype={constructor:V.Event,isDefaultPrevented:Qt,isPropagationStopped:Qt,isImmediatePropagationStopped:Qt,isSimulated:!1,preventDefault:function(){var Y=this.originalEvent;this.isDefaultPrevented=zt,Y&&!this.isSimulated&&Y.preventDefault()},stopPropagation:function(){var Y=this.originalEvent;this.isPropagationStopped=zt,Y&&!this.isSimulated&&Y.stopPropagation()},stopImmediatePropagation:function(){var Y=this.originalEvent;this.isImmediatePropagationStopped=zt,Y&&!this.isSimulated&&Y.stopImmediatePropagation(),this.stopPropagation()}},V.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},V.event.addProp),V.each({focus:"focusin",blur:"focusout"},function(Y,ne){function ke(Le){if(F.documentMode){var He=Qe.get(this,"handle"),Ve=V.event.fix(Le);Ve.type=Le.type==="focusin"?"focus":"blur",Ve.isSimulated=!0,He(Le),Ve.target===Ve.currentTarget&&He(Ve)}else V.event.simulate(ne,Le.target,V.event.fix(Le))}V.event.special[Y]={setup:function(){var Le;if(be(this,Y,!0),F.documentMode)Le=Qe.get(this,ne),Le||this.addEventListener(ne,ke),Qe.set(this,ne,(Le||0)+1);else return!1},trigger:function(){return be(this,Y),!0},teardown:function(){var Le;if(F.documentMode)Le=Qe.get(this,ne)-1,Le?Qe.set(this,ne,Le):(this.removeEventListener(ne,ke),Qe.remove(this,ne));else return!1},_default:function(Le){return Qe.get(Le.target,Y)},delegateType:ne},V.event.special[ne]={setup:function(){var Le=this.ownerDocument||this.document||this,He=F.documentMode?this:Le,Ve=Qe.get(He,ne);Ve||(F.documentMode?this.addEventListener(ne,ke):Le.addEventListener(Y,ke,!0)),Qe.set(He,ne,(Ve||0)+1)},teardown:function(){var Le=this.ownerDocument||this.document||this,He=F.documentMode?this:Le,Ve=Qe.get(He,ne)-1;Ve?Qe.set(He,ne,Ve):(F.documentMode?this.removeEventListener(ne,ke):Le.removeEventListener(Y,ke,!0),Qe.remove(He,ne))}}}),V.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(Y,ne){V.event.special[Y]={delegateType:ne,bindType:ne,handle:function(ke){var Le,He=this,Ve=ke.relatedTarget,nt=ke.handleObj;return(!Ve||Ve!==He&&!V.contains(He,Ve))&&(ke.type=nt.origType,Le=nt.handler.apply(this,arguments),ke.type=ne),Le}}}),V.fn.extend({on:function(Y,ne,ke,Le){return $e(this,Y,ne,ke,Le)},one:function(Y,ne,ke,Le){return $e(this,Y,ne,ke,Le,1)},off:function(Y,ne,ke){var Le,He;if(Y&&Y.preventDefault&&Y.handleObj)return Le=Y.handleObj,V(Y.delegateTarget).off(Le.namespace?Le.origType+"."+Le.namespace:Le.origType,Le.selector,Le.handler),this;if(typeof Y=="object"){for(He in Y)this.off(He,ne,Y[He]);return this}return(ne===!1||typeof ne=="function")&&(ke=ne,ne=void 0),ke===!1&&(ke=Qt),this.each(function(){V.event.remove(this,Y,ke,ne)})}});var ve=/<script|<style|<link/i,se=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ze(Y,ne){return he(Y,"table")&&he(ne.nodeType!==11?ne:ne.firstChild,"tr")&&V(Y).children("tbody")[0]||Y}function xt(Y){return Y.type=(Y.getAttribute("type")!==null)+"/"+Y.type,Y}function ot(Y){return(Y.type||"").slice(0,5)==="true/"?Y.type=Y.type.slice(5):Y.removeAttribute("type"),Y}function wt(Y,ne){var ke,Le,He,Ve,nt,Ot,At;if(ne.nodeType===1){if(Qe.hasData(Y)&&(Ve=Qe.get(Y),At=Ve.events,At)){Qe.remove(ne,"handle events");for(He in At)for(ke=0,Le=At[He].length;ke<Le;ke++)V.event.add(ne,He,At[He][ke])}Wt.hasData(Y)&&(nt=Wt.access(Y),Ot=V.extend({},nt),Wt.set(ne,Ot))}}function Yt(Y,ne){var ke=ne.nodeName.toLowerCase();ke==="input"&&yt.test(Y.type)?ne.checked=Y.checked:(ke==="input"||ke==="textarea")&&(ne.defaultValue=Y.defaultValue)}function Jt(Y,ne,ke,Le){ne=h(ne);var He,Ve,nt,Ot,At,Vt,or=0,yr=Y.length,er=yr-1,$r=ne[0],Kr=j($r);if(Kr||yr>1&&typeof $r=="string"&&!I.checkClone&&se.test($r))return Y.each(function(hi){var ci=Y.eq(hi);Kr&&(ne[0]=$r.call(this,hi,ci.html())),Jt(ci,ne,ke,Le)});if(yr&&(He=Ut(ne,Y[0].ownerDocument,!1,Y,Le),Ve=He.firstChild,He.childNodes.length===1&&(He=Ve),Ve||Le)){for(nt=V.map(Bt(He,"script"),xt),Ot=nt.length;or<yr;or++)At=He,or!==er&&(At=V.clone(At,!0,!0),Ot&&V.merge(nt,Bt(At,"script"))),ke.call(Y[or],At,or);if(Ot)for(Vt=nt[nt.length-1].ownerDocument,V.map(nt,ot),or=0;or<Ot;or++)At=nt[or],_t.test(At.type||"")&&!Qe.access(At,"globalEval")&&V.contains(Vt,At)&&(At.src&&(At.type||"").toLowerCase()!=="module"?V._evalUrl&&!At.noModule&&V._evalUrl(At.src,{nonce:At.nonce||At.getAttribute("nonce")},Vt):ee(At.textContent.replace(Pe,""),At,Vt))}return Y}function wr(Y,ne,ke){for(var Le,He=ne?V.filter(ne,Y):Y,Ve=0;(Le=He[Ve])!=null;Ve++)!ke&&Le.nodeType===1&&V.cleanData(Bt(Le)),Le.parentNode&&(ke&&et(Le)&&ur(Bt(Le,"script")),Le.parentNode.removeChild(Le));return Y}V.extend({htmlPrefilter:function(Y){return Y},clone:function(Y,ne,ke){var Le,He,Ve,nt,Ot=Y.cloneNode(!0),At=et(Y);if(!I.noCloneChecked&&(Y.nodeType===1||Y.nodeType===11)&&!V.isXMLDoc(Y))for(nt=Bt(Ot),Ve=Bt(Y),Le=0,He=Ve.length;Le<He;Le++)Yt(Ve[Le],nt[Le]);if(ne)if(ke)for(Ve=Ve||Bt(Y),nt=nt||Bt(Ot),Le=0,He=Ve.length;Le<He;Le++)wt(Ve[Le],nt[Le]);else wt(Y,Ot);return nt=Bt(Ot,"script"),nt.length>0&&ur(nt,!At&&Bt(Y,"script")),Ot},cleanData:function(Y){for(var ne,ke,Le,He=V.event.special,Ve=0;(ke=Y[Ve])!==void 0;Ve++)if(jt(ke)){if(ne=ke[Qe.expando]){if(ne.events)for(Le in ne.events)He[Le]?V.event.remove(ke,Le):V.removeEvent(ke,Le,ne.handle);ke[Qe.expando]=void 0}ke[Wt.expando]&&(ke[Wt.expando]=void 0)}}}),V.fn.extend({detach:function(Y){return wr(this,Y,!0)},remove:function(Y){return wr(this,Y)},text:function(Y){return lt(this,function(ne){return ne===void 0?V.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=ne)})},null,Y,arguments.length)},append:function(){return Jt(this,arguments,function(Y){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ne=ze(this,Y);ne.appendChild(Y)}})},prepend:function(){return Jt(this,arguments,function(Y){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ne=ze(this,Y);ne.insertBefore(Y,ne.firstChild)}})},before:function(){return Jt(this,arguments,function(Y){this.parentNode&&this.parentNode.insertBefore(Y,this)})},after:function(){return Jt(this,arguments,function(Y){this.parentNode&&this.parentNode.insertBefore(Y,this.nextSibling)})},empty:function(){for(var Y,ne=0;(Y=this[ne])!=null;ne++)Y.nodeType===1&&(V.cleanData(Bt(Y,!1)),Y.textContent="");return this},clone:function(Y,ne){return Y=Y??!1,ne=ne??Y,this.map(function(){return V.clone(this,Y,ne)})},html:function(Y){return lt(this,function(ne){var ke=this[0]||{},Le=0,He=this.length;if(ne===void 0&&ke.nodeType===1)return ke.innerHTML;if(typeof ne=="string"&&!ve.test(ne)&&!pt[(Ne.exec(ne)||["",""])[1].toLowerCase()]){ne=V.htmlPrefilter(ne);try{for(;Le<He;Le++)ke=this[Le]||{},ke.nodeType===1&&(V.cleanData(Bt(ke,!1)),ke.innerHTML=ne);ke=0}catch{}}ke&&this.empty().append(ne)},null,Y,arguments.length)},replaceWith:function(){var Y=[];return Jt(this,arguments,function(ne){var ke=this.parentNode;V.inArray(this,Y)<0&&(V.cleanData(Bt(this)),ke&&ke.replaceChild(ne,this))},Y)}}),V.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(Y,ne){V.fn[Y]=function(ke){for(var Le,He=[],Ve=V(ke),nt=Ve.length-1,Ot=0;Ot<=nt;Ot++)Le=Ot===nt?this:this.clone(!0),V(Ve[Ot])[ne](Le),v.apply(He,Le.get());return this.pushStack(He)}});var lr=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),Rr=/^--/,vr=function(Y){var ne=Y.ownerDocument.defaultView;return(!ne||!ne.opener)&&(ne=e),ne.getComputedStyle(Y)},dr=function(Y,ne,ke){var Le,He,Ve={};for(He in ne)Ve[He]=Y.style[He],Y.style[He]=ne[He];Le=ke.call(Y);for(He in ne)Y.style[He]=Ve[He];return Le},Ir=new RegExp(je.join("|"),"i");(function(){function Y(){if(Vt){At.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Vt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",We.appendChild(At).appendChild(Vt);var or=e.getComputedStyle(Vt);ke=or.top!=="1%",Ot=ne(or.marginLeft)===12,Vt.style.right="60%",Ve=ne(or.right)===36,Le=ne(or.width)===36,Vt.style.position="absolute",He=ne(Vt.offsetWidth/3)===12,We.removeChild(At),Vt=null}}function ne(or){return Math.round(parseFloat(or))}var ke,Le,He,Ve,nt,Ot,At=F.createElement("div"),Vt=F.createElement("div");Vt.style&&(Vt.style.backgroundClip="content-box",Vt.cloneNode(!0).style.backgroundClip="",I.clearCloneStyle=Vt.style.backgroundClip==="content-box",V.extend(I,{boxSizingReliable:function(){return Y(),Le},pixelBoxStyles:function(){return Y(),Ve},pixelPosition:function(){return Y(),ke},reliableMarginLeft:function(){return Y(),Ot},scrollboxSize:function(){return Y(),He},reliableTrDimensions:function(){var or,yr,er,$r;return nt==null&&(or=F.createElement("table"),yr=F.createElement("tr"),er=F.createElement("div"),or.style.cssText="position:absolute;left:-11111px;border-collapse:separate",yr.style.cssText="box-sizing:content-box;border:1px solid",yr.style.height="1px",er.style.height="9px",er.style.display="block",We.appendChild(or).appendChild(yr).appendChild(er),$r=e.getComputedStyle(yr),nt=parseInt($r.height,10)+parseInt($r.borderTopWidth,10)+parseInt($r.borderBottomWidth,10)===yr.offsetHeight,We.removeChild(or)),nt}}))})();function kr(Y,ne,ke){var Le,He,Ve,nt,Ot=Rr.test(ne),At=Y.style;return ke=ke||vr(Y),ke&&(nt=ke.getPropertyValue(ne)||ke[ne],Ot&&nt&&(nt=nt.replace(S,"$1")||void 0),nt===""&&!et(Y)&&(nt=V.style(Y,ne)),!I.pixelBoxStyles()&&lr.test(nt)&&Ir.test(ne)&&(Le=At.width,He=At.minWidth,Ve=At.maxWidth,At.minWidth=At.maxWidth=At.width=nt,nt=ke.width,At.width=Le,At.minWidth=He,At.maxWidth=Ve)),nt!==void 0?nt+"":nt}function Fr(Y,ne){return{get:function(){if(Y()){delete this.get;return}return(this.get=ne).apply(this,arguments)}}}var jr=["Webkit","Moz","ms"],Cr=F.createElement("div").style,Lr={};function Ar(Y){for(var ne=Y[0].toUpperCase()+Y.slice(1),ke=jr.length;ke--;)if(Y=jr[ke]+ne,Y in Cr)return Y}function Tr(Y){var ne=V.cssProps[Y]||Lr[Y];return ne||(Y in Cr?Y:Lr[Y]=Ar(Y)||Y)}var Sr=/^(none|table(?!-c[ea]).+)/,rr={position:"absolute",visibility:"hidden",display:"block"},Nt={letterSpacing:"0",fontWeight:"400"};function Gt(Y,ne,ke){var Le=_e.exec(ne);return Le?Math.max(0,Le[2]-(ke||0))+(Le[3]||"px"):ne}function xr(Y,ne,ke,Le,He,Ve){var nt=ne==="width"?1:0,Ot=0,At=0,Vt=0;if(ke===(Le?"border":"content"))return 0;for(;nt<4;nt+=2)ke==="margin"&&(Vt+=V.css(Y,ke+je[nt],!0,He)),Le?(ke==="content"&&(At-=V.css(Y,"padding"+je[nt],!0,He)),ke!=="margin"&&(At-=V.css(Y,"border"+je[nt]+"Width",!0,He))):(At+=V.css(Y,"padding"+je[nt],!0,He),ke!=="padding"?At+=V.css(Y,"border"+je[nt]+"Width",!0,He):Ot+=V.css(Y,"border"+je[nt]+"Width",!0,He));return!Le&&Ve>=0&&(At+=Math.max(0,Math.ceil(Y["offset"+ne[0].toUpperCase()+ne.slice(1)]-Ve-At-Ot-.5))||0),At+Vt}function pr(Y,ne,ke){var Le=vr(Y),He=!I.boxSizingReliable()||ke,Ve=He&&V.css(Y,"boxSizing",!1,Le)==="border-box",nt=Ve,Ot=kr(Y,ne,Le),At="offset"+ne[0].toUpperCase()+ne.slice(1);if(lr.test(Ot)){if(!ke)return Ot;Ot="auto"}return(!I.boxSizingReliable()&&Ve||!I.reliableTrDimensions()&&he(Y,"tr")||Ot==="auto"||!parseFloat(Ot)&&V.css(Y,"display",!1,Le)==="inline")&&Y.getClientRects().length&&(Ve=V.css(Y,"boxSizing",!1,Le)==="border-box",nt=At in Y,nt&&(Ot=Y[At])),Ot=parseFloat(Ot)||0,Ot+xr(Y,ne,ke||(Ve?"border":"content"),nt,Le,Ot)+"px"}V.extend({cssHooks:{opacity:{get:function(Y,ne){if(ne){var ke=kr(Y,"opacity");return ke===""?"1":ke}}}},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(Y,ne,ke,Le){if(!(!Y||Y.nodeType===3||Y.nodeType===8||!Y.style)){var He,Ve,nt,Ot=bt(ne),At=Rr.test(ne),Vt=Y.style;if(At||(ne=Tr(Ot)),nt=V.cssHooks[ne]||V.cssHooks[Ot],ke!==void 0){if(Ve=typeof ke,Ve==="string"&&(He=_e.exec(ke))&&He[1]&&(ke=Ht(Y,ne,He),Ve="number"),ke==null||ke!==ke)return;Ve==="number"&&!At&&(ke+=He&&He[3]||(V.cssNumber[Ot]?"":"px")),!I.clearCloneStyle&&ke===""&&ne.indexOf("background")===0&&(Vt[ne]="inherit"),(!nt||!("set"in nt)||(ke=nt.set(Y,ke,Le))!==void 0)&&(At?Vt.setProperty(ne,ke):Vt[ne]=ke)}else return nt&&"get"in nt&&(He=nt.get(Y,!1,Le))!==void 0?He:Vt[ne]}},css:function(Y,ne,ke,Le){var He,Ve,nt,Ot=bt(ne),At=Rr.test(ne);return At||(ne=Tr(Ot)),nt=V.cssHooks[ne]||V.cssHooks[Ot],nt&&"get"in nt&&(He=nt.get(Y,!0,ke)),He===void 0&&(He=kr(Y,ne,Le)),He==="normal"&&ne in Nt&&(He=Nt[ne]),ke===""||ke?(Ve=parseFloat(He),ke===!0||isFinite(Ve)?Ve||0:He):He}}),V.each(["height","width"],function(Y,ne){V.cssHooks[ne]={get:function(ke,Le,He){if(Le)return Sr.test(V.css(ke,"display"))&&(!ke.getClientRects().length||!ke.getBoundingClientRect().width)?dr(ke,rr,function(){return pr(ke,ne,He)}):pr(ke,ne,He)},set:function(ke,Le,He){var Ve,nt=vr(ke),Ot=!I.scrollboxSize()&&nt.position==="absolute",At=Ot||He,Vt=At&&V.css(ke,"boxSizing",!1,nt)==="border-box",or=He?xr(ke,ne,He,Vt,nt):0;return Vt&&Ot&&(or-=Math.ceil(ke["offset"+ne[0].toUpperCase()+ne.slice(1)]-parseFloat(nt[ne])-xr(ke,ne,"border",!1,nt)-.5)),or&&(Ve=_e.exec(Le))&&(Ve[3]||"px")!=="px"&&(ke.style[ne]=Le,Le=V.css(ke,ne)),Gt(ke,Le,or)}}}),V.cssHooks.marginLeft=Fr(I.reliableMarginLeft,function(Y,ne){if(ne)return(parseFloat(kr(Y,"marginLeft"))||Y.getBoundingClientRect().left-dr(Y,{marginLeft:0},function(){return Y.getBoundingClientRect().left}))+"px"}),V.each({margin:"",padding:"",border:"Width"},function(Y,ne){V.cssHooks[Y+ne]={expand:function(ke){for(var Le=0,He={},Ve=typeof ke=="string"?ke.split(" "):[ke];Le<4;Le++)He[Y+je[Le]+ne]=Ve[Le]||Ve[Le-2]||Ve[0];return He}},Y!=="margin"&&(V.cssHooks[Y+ne].set=Gt)}),V.fn.extend({css:function(Y,ne){return lt(this,function(ke,Le,He){var Ve,nt,Ot={},At=0;if(Array.isArray(Le)){for(Ve=vr(ke),nt=Le.length;At<nt;At++)Ot[Le[At]]=V.css(ke,Le[At],!1,Ve);return Ot}return He!==void 0?V.style(ke,Le,He):V.css(ke,Le)},Y,ne,arguments.length>1)}});function tr(Y,ne,ke,Le,He){return new tr.prototype.init(Y,ne,ke,Le,He)}V.Tween=tr,tr.prototype={constructor:tr,init:function(Y,ne,ke,Le,He,Ve){this.elem=Y,this.prop=ke,this.easing=He||V.easing._default,this.options=ne,this.start=this.now=this.cur(),this.end=Le,this.unit=Ve||(V.cssNumber[ke]?"":"px")},cur:function(){var Y=tr.propHooks[this.prop];return Y&&Y.get?Y.get(this):tr.propHooks._default.get(this)},run:function(Y){var ne,ke=tr.propHooks[this.prop];return this.options.duration?this.pos=ne=V.easing[this.easing](Y,this.options.duration*Y,0,1,this.options.duration):this.pos=ne=Y,this.now=(this.end-this.start)*ne+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),ke&&ke.set?ke.set(this):tr.propHooks._default.set(this),this}},tr.prototype.init.prototype=tr.prototype,tr.propHooks={_default:{get:function(Y){var ne;return Y.elem.nodeType!==1||Y.elem[Y.prop]!=null&&Y.elem.style[Y.prop]==null?Y.elem[Y.prop]:(ne=V.css(Y.elem,Y.prop,""),!ne||ne==="auto"?0:ne)},set:function(Y){V.fx.step[Y.prop]?V.fx.step[Y.prop](Y):Y.elem.nodeType===1&&(V.cssHooks[Y.prop]||Y.elem.style[Tr(Y.prop)]!=null)?V.style(Y.elem,Y.prop,Y.now+Y.unit):Y.elem[Y.prop]=Y.now}}},tr.propHooks.scrollTop=tr.propHooks.scrollLeft={set:function(Y){Y.elem.nodeType&&Y.elem.parentNode&&(Y.elem[Y.prop]=Y.now)}},V.easing={linear:function(Y){return Y},swing:function(Y){return .5-Math.cos(Y*Math.PI)/2},_default:"swing"},V.fx=tr.prototype.init,V.fx.step={};var br,Nr,Yr=/^(?:toggle|show|hide)$/,ei=/queueHooks$/;function Hr(){Nr&&(F.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(Hr):e.setTimeout(Hr,V.fx.interval),V.fx.tick())}function Pt(){return e.setTimeout(function(){br=void 0}),br=Date.now()}function Jr(Y,ne){var ke,Le=0,He={height:Y};for(ne=ne?1:0;Le<4;Le+=2-ne)ke=je[Le],He["margin"+ke]=He["padding"+ke]=Y;return ne&&(He.opacity=He.width=Y),He}function Xr(Y,ne,ke){for(var Le,He=(xe.tweeners[ne]||[]).concat(xe.tweeners["*"]),Ve=0,nt=He.length;Ve<nt;Ve++)if(Le=He[Ve].call(ke,ne,Y))return Le}function fi(Y,ne,ke){var Le,He,Ve,nt,Ot,At,Vt,or,yr="width"in ne||"height"in ne,er=this,$r={},Kr=Y.style,hi=Y.nodeType&&De(Y),ci=Qe.get(Y,"fxshow");ke.queue||(nt=V._queueHooks(Y,"fx"),nt.unqueued==null&&(nt.unqueued=0,Ot=nt.empty.fire,nt.empty.fire=function(){nt.unqueued||Ot()}),nt.unqueued++,er.always(function(){er.always(function(){nt.unqueued--,V.queue(Y,"fx").length||nt.empty.fire()})}));for(Le in ne)if(He=ne[Le],Yr.test(He)){if(delete ne[Le],Ve=Ve||He==="toggle",He===(hi?"hide":"show"))if(He==="show"&&ci&&ci[Le]!==void 0)hi=!0;else continue;$r[Le]=ci&&ci[Le]||V.style(Y,Le)}if(At=!V.isEmptyObject(ne),!(!At&&V.isEmptyObject($r))){yr&&Y.nodeType===1&&(ke.overflow=[Kr.overflow,Kr.overflowX,Kr.overflowY],Vt=ci&&ci.display,Vt==null&&(Vt=Qe.get(Y,"display")),or=V.css(Y,"display"),or==="none"&&(Vt?or=Vt:(Dt([Y],!0),Vt=Y.style.display||Vt,or=V.css(Y,"display"),Dt([Y]))),(or==="inline"||or==="inline-block"&&Vt!=null)&&V.css(Y,"float")==="none"&&(At||(er.done(function(){Kr.display=Vt}),Vt==null&&(or=Kr.display,Vt=or==="none"?"":or)),Kr.display="inline-block")),ke.overflow&&(Kr.overflow="hidden",er.always(function(){Kr.overflow=ke.overflow[0],Kr.overflowX=ke.overflow[1],Kr.overflowY=ke.overflow[2]})),At=!1;for(Le in $r)At||(ci?"hidden"in ci&&(hi=ci.hidden):ci=Qe.access(Y,"fxshow",{display:Vt}),Ve&&(ci.hidden=!hi),hi&&Dt([Y],!0),er.done(function(){hi||Dt([Y]),Qe.remove(Y,"fxshow");for(Le in $r)V.style(Y,Le,$r[Le])})),At=Xr(hi?ci[Le]:0,Le,er),Le in ci||(ci[Le]=At.start,hi&&(At.end=At.start,At.start=0))}}function ce(Y,ne){var ke,Le,He,Ve,nt;for(ke in Y)if(Le=bt(ke),He=ne[Le],Ve=Y[ke],Array.isArray(Ve)&&(He=Ve[1],Ve=Y[ke]=Ve[0]),ke!==Le&&(Y[Le]=Ve,delete Y[ke]),nt=V.cssHooks[Le],nt&&"expand"in nt){Ve=nt.expand(Ve),delete Y[Le];for(ke in Ve)ke in Y||(Y[ke]=Ve[ke],ne[ke]=He)}else ne[Le]=He}function xe(Y,ne,ke){var Le,He,Ve=0,nt=xe.prefilters.length,Ot=V.Deferred().always(function(){delete At.elem}),At=function(){if(He)return!1;for(var yr=br||Pt(),er=Math.max(0,Vt.startTime+Vt.duration-yr),$r=er/Vt.duration||0,Kr=1-$r,hi=0,ci=Vt.tweens.length;hi<ci;hi++)Vt.tweens[hi].run(Kr);return Ot.notifyWith(Y,[Vt,Kr,er]),Kr<1&&ci?er:(ci||Ot.notifyWith(Y,[Vt,1,0]),Ot.resolveWith(Y,[Vt]),!1)},Vt=Ot.promise({elem:Y,props:V.extend({},ne),opts:V.extend(!0,{specialEasing:{},easing:V.easing._default},ke),originalProperties:ne,originalOptions:ke,startTime:br||Pt(),duration:ke.duration,tweens:[],createTween:function(yr,er){var $r=V.Tween(Y,Vt.opts,yr,er,Vt.opts.specialEasing[yr]||Vt.opts.easing);return Vt.tweens.push($r),$r},stop:function(yr){var er=0,$r=yr?Vt.tweens.length:0;if(He)return this;for(He=!0;er<$r;er++)Vt.tweens[er].run(1);return yr?(Ot.notifyWith(Y,[Vt,1,0]),Ot.resolveWith(Y,[Vt,yr])):Ot.rejectWith(Y,[Vt,yr]),this}}),or=Vt.props;for(ce(or,Vt.opts.specialEasing);Ve<nt;Ve++)if(Le=xe.prefilters[Ve].call(Vt,Y,or,Vt.opts),Le)return j(Le.stop)&&(V._queueHooks(Vt.elem,Vt.opts.queue).stop=Le.stop.bind(Le)),Le;return V.map(or,Xr,Vt),j(Vt.opts.start)&&Vt.opts.start.call(Y,Vt),Vt.progress(Vt.opts.progress).done(Vt.opts.done,Vt.opts.complete).fail(Vt.opts.fail).always(Vt.opts.always),V.fx.timer(V.extend(At,{elem:Y,anim:Vt,queue:Vt.opts.queue})),Vt}V.Animation=V.extend(xe,{tweeners:{"*":[function(Y,ne){var ke=this.createTween(Y,ne);return Ht(ke.elem,Y,_e.exec(ne),ke),ke}]},tweener:function(Y,ne){j(Y)?(ne=Y,Y=["*"]):Y=Y.match(de);for(var ke,Le=0,He=Y.length;Le<He;Le++)ke=Y[Le],xe.tweeners[ke]=xe.tweeners[ke]||[],xe.tweeners[ke].unshift(ne)},prefilters:[fi],prefilter:function(Y,ne){ne?xe.prefilters.unshift(Y):xe.prefilters.push(Y)}}),V.speed=function(Y,ne,ke){var Le=Y&&typeof Y=="object"?V.extend({},Y):{complete:ke||!ke&&ne||j(Y)&&Y,duration:Y,easing:ke&&ne||ne&&!j(ne)&&ne};return V.fx.off?Le.duration=0:typeof Le.duration!="number"&&(Le.duration in V.fx.speeds?Le.duration=V.fx.speeds[Le.duration]:Le.duration=V.fx.speeds._default),(Le.queue==null||Le.queue===!0)&&(Le.queue="fx"),Le.old=Le.complete,Le.complete=function(){j(Le.old)&&Le.old.call(this),Le.queue&&V.dequeue(this,Le.queue)},Le},V.fn.extend({fadeTo:function(Y,ne,ke,Le){return this.filter(De).css("opacity",0).show().end().animate({opacity:ne},Y,ke,Le)},animate:function(Y,ne,ke,Le){var He=V.isEmptyObject(Y),Ve=V.speed(ne,ke,Le),nt=function(){var Ot=xe(this,V.extend({},Y),Ve);(He||Qe.get(this,"finish"))&&Ot.stop(!0)};return nt.finish=nt,He||Ve.queue===!1?this.each(nt):this.queue(Ve.queue,nt)},stop:function(Y,ne,ke){var Le=function(He){var Ve=He.stop;delete He.stop,Ve(ke)};return typeof Y!="string"&&(ke=ne,ne=Y,Y=void 0),ne&&this.queue(Y||"fx",[]),this.each(function(){var He=!0,Ve=Y!=null&&Y+"queueHooks",nt=V.timers,Ot=Qe.get(this);if(Ve)Ot[Ve]&&Ot[Ve].stop&&Le(Ot[Ve]);else for(Ve in Ot)Ot[Ve]&&Ot[Ve].stop&&ei.test(Ve)&&Le(Ot[Ve]);for(Ve=nt.length;Ve--;)nt[Ve].elem===this&&(Y==null||nt[Ve].queue===Y)&&(nt[Ve].anim.stop(ke),He=!1,nt.splice(Ve,1));(He||!ke)&&V.dequeue(this,Y)})},finish:function(Y){return Y!==!1&&(Y=Y||"fx"),this.each(function(){var ne,ke=Qe.get(this),Le=ke[Y+"queue"],He=ke[Y+"queueHooks"],Ve=V.timers,nt=Le?Le.length:0;for(ke.finish=!0,V.queue(this,Y,[]),He&&He.stop&&He.stop.call(this,!0),ne=Ve.length;ne--;)Ve[ne].elem===this&&Ve[ne].queue===Y&&(Ve[ne].anim.stop(!0),Ve.splice(ne,1));for(ne=0;ne<nt;ne++)Le[ne]&&Le[ne].finish&&Le[ne].finish.call(this);delete ke.finish})}}),V.each(["toggle","show","hide"],function(Y,ne){var ke=V.fn[ne];V.fn[ne]=function(Le,He,Ve){return Le==null||typeof Le=="boolean"?ke.apply(this,arguments):this.animate(Jr(ne,!0),Le,He,Ve)}}),V.each({slideDown:Jr("show"),slideUp:Jr("hide"),slideToggle:Jr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(Y,ne){V.fn[Y]=function(ke,Le,He){return this.animate(ne,ke,Le,He)}}),V.timers=[],V.fx.tick=function(){var Y,ne=0,ke=V.timers;for(br=Date.now();ne<ke.length;ne++)Y=ke[ne],!Y()&&ke[ne]===Y&&ke.splice(ne--,1);ke.length||V.fx.stop(),br=void 0},V.fx.timer=function(Y){V.timers.push(Y),V.fx.start()},V.fx.interval=13,V.fx.start=function(){Nr||(Nr=!0,Hr())},V.fx.stop=function(){Nr=null},V.fx.speeds={slow:600,fast:200,_default:400},V.fn.delay=function(Y,ne){return Y=V.fx&&V.fx.speeds[Y]||Y,ne=ne||"fx",this.queue(ne,function(ke,Le){var He=e.setTimeout(ke,Y);Le.stop=function(){e.clearTimeout(He)}})},function(){var Y=F.createElement("input"),ne=F.createElement("select"),ke=ne.appendChild(F.createElement("option"));Y.type="checkbox",I.checkOn=Y.value!=="",I.optSelected=ke.selected,Y=F.createElement("input"),Y.value="t",Y.type="radio",I.radioValue=Y.value==="t"}();var Be,Fe=V.expr.attrHandle;V.fn.extend({attr:function(Y,ne){return lt(this,V.attr,Y,ne,arguments.length>1)},removeAttr:function(Y){return this.each(function(){V.removeAttr(this,Y)})}}),V.extend({attr:function(Y,ne,ke){var Le,He,Ve=Y.nodeType;if(!(Ve===3||Ve===8||Ve===2)){if(typeof Y.getAttribute>"u")return V.prop(Y,ne,ke);if((Ve!==1||!V.isXMLDoc(Y))&&(He=V.attrHooks[ne.toLowerCase()]||(V.expr.match.bool.test(ne)?Be:void 0)),ke!==void 0){if(ke===null){V.removeAttr(Y,ne);return}return He&&"set"in He&&(Le=He.set(Y,ke,ne))!==void 0?Le:(Y.setAttribute(ne,ke+""),ke)}return He&&"get"in He&&(Le=He.get(Y,ne))!==null?Le:(Le=V.find.attr(Y,ne),Le??void 0)}},attrHooks:{type:{set:function(Y,ne){if(!I.radioValue&&ne==="radio"&&he(Y,"input")){var ke=Y.value;return Y.setAttribute("type",ne),ke&&(Y.value=ke),ne}}}},removeAttr:function(Y,ne){var ke,Le=0,He=ne&&ne.match(de);if(He&&Y.nodeType===1)for(;ke=He[Le++];)Y.removeAttribute(ke)}}),Be={set:function(Y,ne,ke){return ne===!1?V.removeAttr(Y,ke):Y.setAttribute(ke,ke),ke}},V.each(V.expr.match.bool.source.match(/\w+/g),function(Y,ne){var ke=Fe[ne]||V.find.attr;Fe[ne]=function(Le,He,Ve){var nt,Ot,At=He.toLowerCase();return Ve||(Ot=Fe[At],Fe[At]=nt,nt=ke(Le,He,Ve)!=null?At:null,Fe[At]=Ot),nt}});var Xe=/^(?:input|select|textarea|button)$/i,ct=/^(?:a|area)$/i;V.fn.extend({prop:function(Y,ne){return lt(this,V.prop,Y,ne,arguments.length>1)},removeProp:function(Y){return this.each(function(){delete this[V.propFix[Y]||Y]})}}),V.extend({prop:function(Y,ne,ke){var Le,He,Ve=Y.nodeType;if(!(Ve===3||Ve===8||Ve===2))return(Ve!==1||!V.isXMLDoc(Y))&&(ne=V.propFix[ne]||ne,He=V.propHooks[ne]),ke!==void 0?He&&"set"in He&&(Le=He.set(Y,ke,ne))!==void 0?Le:Y[ne]=ke:He&&"get"in He&&(Le=He.get(Y,ne))!==null?Le:Y[ne]},propHooks:{tabIndex:{get:function(Y){var ne=V.find.attr(Y,"tabindex");return ne?parseInt(ne,10):Xe.test(Y.nodeName)||ct.test(Y.nodeName)&&Y.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),I.optSelected||(V.propHooks.selected={get:function(Y){var ne=Y.parentNode;return ne&&ne.parentNode&&ne.parentNode.selectedIndex,null},set:function(Y){var ne=Y.parentNode;ne&&(ne.selectedIndex,ne.parentNode&&ne.parentNode.selectedIndex)}}),V.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){V.propFix[this.toLowerCase()]=this});function we(Y){var ne=Y.match(de)||[];return ne.join(" ")}function Ae(Y){return Y.getAttribute&&Y.getAttribute("class")||""}function Re(Y){return Array.isArray(Y)?Y:typeof Y=="string"?Y.match(de)||[]:[]}V.fn.extend({addClass:function(Y){var ne,ke,Le,He,Ve,nt;return j(Y)?this.each(function(Ot){V(this).addClass(Y.call(this,Ot,Ae(this)))}):(ne=Re(Y),ne.length?this.each(function(){if(Le=Ae(this),ke=this.nodeType===1&&" "+we(Le)+" ",ke){for(Ve=0;Ve<ne.length;Ve++)He=ne[Ve],ke.indexOf(" "+He+" ")<0&&(ke+=He+" ");nt=we(ke),Le!==nt&&this.setAttribute("class",nt)}}):this)},removeClass:function(Y){var ne,ke,Le,He,Ve,nt;return j(Y)?this.each(function(Ot){V(this).removeClass(Y.call(this,Ot,Ae(this)))}):arguments.length?(ne=Re(Y),ne.length?this.each(function(){if(Le=Ae(this),ke=this.nodeType===1&&" "+we(Le)+" ",ke){for(Ve=0;Ve<ne.length;Ve++)for(He=ne[Ve];ke.indexOf(" "+He+" ")>-1;)ke=ke.replace(" "+He+" "," ");nt=we(ke),Le!==nt&&this.setAttribute("class",nt)}}):this):this.attr("class","")},toggleClass:function(Y,ne){var ke,Le,He,Ve,nt=typeof Y,Ot=nt==="string"||Array.isArray(Y);return j(Y)?this.each(function(At){V(this).toggleClass(Y.call(this,At,Ae(this),ne),ne)}):typeof ne=="boolean"&&Ot?ne?this.addClass(Y):this.removeClass(Y):(ke=Re(Y),this.each(function(){if(Ot)for(Ve=V(this),He=0;He<ke.length;He++)Le=ke[He],Ve.hasClass(Le)?Ve.removeClass(Le):Ve.addClass(Le);else(Y===void 0||nt==="boolean")&&(Le=Ae(this),Le&&Qe.set(this,"__className__",Le),this.setAttribute&&this.setAttribute("class",Le||Y===!1?"":Qe.get(this,"__className__")||""))}))},hasClass:function(Y){var ne,ke,Le=0;for(ne=" "+Y+" ";ke=this[Le++];)if(ke.nodeType===1&&(" "+we(Ae(ke))+" ").indexOf(ne)>-1)return!0;return!1}});var rt=/\r/g;V.fn.extend({val:function(Y){var ne,ke,Le,He=this[0];return arguments.length?(Le=j(Y),this.each(function(Ve){var nt;this.nodeType===1&&(Le?nt=Y.call(this,Ve,V(this).val()):nt=Y,nt==null?nt="":typeof nt=="number"?nt+="":Array.isArray(nt)&&(nt=V.map(nt,function(Ot){return Ot==null?"":Ot+""})),ne=V.valHooks[this.type]||V.valHooks[this.nodeName.toLowerCase()],(!ne||!("set"in ne)||ne.set(this,nt,"value")===void 0)&&(this.value=nt))})):He?(ne=V.valHooks[He.type]||V.valHooks[He.nodeName.toLowerCase()],ne&&"get"in ne&&(ke=ne.get(He,"value"))!==void 0?ke:(ke=He.value,typeof ke=="string"?ke.replace(rt,""):ke??"")):void 0}}),V.extend({valHooks:{option:{get:function(Y){var ne=V.find.attr(Y,"value");return ne??we(V.text(Y))}},select:{get:function(Y){var ne,ke,Le,He=Y.options,Ve=Y.selectedIndex,nt=Y.type==="select-one",Ot=nt?null:[],At=nt?Ve+1:He.length;for(Ve<0?Le=At:Le=nt?Ve:0;Le<At;Le++)if(ke=He[Le],(ke.selected||Le===Ve)&&!ke.disabled&&(!ke.parentNode.disabled||!he(ke.parentNode,"optgroup"))){if(ne=V(ke).val(),nt)return ne;Ot.push(ne)}return Ot},set:function(Y,ne){for(var ke,Le,He=Y.options,Ve=V.makeArray(ne),nt=He.length;nt--;)Le=He[nt],(Le.selected=V.inArray(V.valHooks.option.get(Le),Ve)>-1)&&(ke=!0);return ke||(Y.selectedIndex=-1),Ve}}}}),V.each(["radio","checkbox"],function(){V.valHooks[this]={set:function(Y,ne){if(Array.isArray(ne))return Y.checked=V.inArray(V(Y).val(),ne)>-1}},I.checkOn||(V.valHooks[this].get=function(Y){return Y.getAttribute("value")===null?"on":Y.value})});var St=e.location,Lt={guid:Date.now()},Ft=/\?/;V.parseXML=function(Y){var ne,ke;if(!Y||typeof Y!="string")return null;try{ne=new e.DOMParser().parseFromString(Y,"text/xml")}catch{}return ke=ne&&ne.getElementsByTagName("parsererror")[0],(!ne||ke)&&V.error("Invalid XML: "+(ke?V.map(ke.childNodes,function(Le){return Le.textContent}).join(`
`):Y)),ne};var $t=/^(?:focusinfocus|focusoutblur)$/,nr=function(Y){Y.stopPropagation()};V.extend(V.event,{trigger:function(Y,ne,ke,Le){var He,Ve,nt,Ot,At,Vt,or,yr,er=[ke||F],$r=C.call(Y,"type")?Y.type:Y,Kr=C.call(Y,"namespace")?Y.namespace.split("."):[];if(Ve=yr=nt=ke=ke||F,!(ke.nodeType===3||ke.nodeType===8)&&!$t.test($r+V.event.triggered)&&($r.indexOf(".")>-1&&(Kr=$r.split("."),$r=Kr.shift(),Kr.sort()),At=$r.indexOf(":")<0&&"on"+$r,Y=Y[V.expando]?Y:new V.Event($r,typeof Y=="object"&&Y),Y.isTrigger=Le?2:3,Y.namespace=Kr.join("."),Y.rnamespace=Y.namespace?new RegExp("(^|\\.)"+Kr.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,Y.result=void 0,Y.target||(Y.target=ke),ne=ne==null?[Y]:V.makeArray(ne,[Y]),or=V.event.special[$r]||{},!(!Le&&or.trigger&&or.trigger.apply(ke,ne)===!1))){if(!Le&&!or.noBubble&&!B(ke)){for(Ot=or.delegateType||$r,$t.test(Ot+$r)||(Ve=Ve.parentNode);Ve;Ve=Ve.parentNode)er.push(Ve),nt=Ve;nt===(ke.ownerDocument||F)&&er.push(nt.defaultView||nt.parentWindow||e)}for(He=0;(Ve=er[He++])&&!Y.isPropagationStopped();)yr=Ve,Y.type=He>1?Ot:or.bindType||$r,Vt=(Qe.get(Ve,"events")||Object.create(null))[Y.type]&&Qe.get(Ve,"handle"),Vt&&Vt.apply(Ve,ne),Vt=At&&Ve[At],Vt&&Vt.apply&&jt(Ve)&&(Y.result=Vt.apply(Ve,ne),Y.result===!1&&Y.preventDefault());return Y.type=$r,!Le&&!Y.isDefaultPrevented()&&(!or._default||or._default.apply(er.pop(),ne)===!1)&&jt(ke)&&At&&j(ke[$r])&&!B(ke)&&(nt=ke[At],nt&&(ke[At]=null),V.event.triggered=$r,Y.isPropagationStopped()&&yr.addEventListener($r,nr),ke[$r](),Y.isPropagationStopped()&&yr.removeEventListener($r,nr),V.event.triggered=void 0,nt&&(ke[At]=nt)),Y.result}},simulate:function(Y,ne,ke){var Le=V.extend(new V.Event,ke,{type:Y,isSimulated:!0});V.event.trigger(Le,null,ne)}}),V.fn.extend({trigger:function(Y,ne){return this.each(function(){V.event.trigger(Y,ne,this)})},triggerHandler:function(Y,ne){var ke=this[0];if(ke)return V.event.trigger(Y,ne,ke,!0)}});var gr=/\[\]$/,fr=/\r?\n/g,ar=/^(?:submit|button|image|reset|file)$/i,Ur=/^(?:input|select|textarea|keygen)/i;function Er(Y,ne,ke,Le){var He;if(Array.isArray(ne))V.each(ne,function(Ve,nt){ke||gr.test(Y)?Le(Y,nt):Er(Y+"["+(typeof nt=="object"&&nt!=null?Ve:"")+"]",nt,ke,Le)});else if(!ke&&Z(ne)==="object")for(He in ne)Er(Y+"["+He+"]",ne[He],ke,Le);else Le(Y,ne)}V.param=function(Y,ne){var ke,Le=[],He=function(Ve,nt){var Ot=j(nt)?nt():nt;Le[Le.length]=encodeURIComponent(Ve)+"="+encodeURIComponent(Ot??"")};if(Y==null)return"";if(Array.isArray(Y)||Y.jquery&&!V.isPlainObject(Y))V.each(Y,function(){He(this.name,this.value)});else for(ke in Y)Er(ke,Y[ke],ne,He);return Le.join("&")},V.fn.extend({serialize:function(){return V.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var Y=V.prop(this,"elements");return Y?V.makeArray(Y):this}).filter(function(){var Y=this.type;return this.name&&!V(this).is(":disabled")&&Ur.test(this.nodeName)&&!ar.test(Y)&&(this.checked||!yt.test(Y))}).map(function(Y,ne){var ke=V(this).val();return ke==null?null:Array.isArray(ke)?V.map(ke,function(Le){return{name:ne.name,value:Le.replace(fr,`\r
`)}}):{name:ne.name,value:ke.replace(fr,`\r
`)}}).get()}});var Pr=/%20/g,_r=/#.*$/,ti=/([?&])_=[^&]*/,Qr=/^(.*?):[ \t]*([^\r\n]*)$/mg,ri=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Xi=/^(?:GET|HEAD)$/,Zi=/^\/\//,li={},oi={},Tn="*/".concat("*"),an=F.createElement("a");an.href=St.href;function Rn(Y){return function(ne,ke){typeof ne!="string"&&(ke=ne,ne="*");var Le,He=0,Ve=ne.toLowerCase().match(de)||[];if(j(ke))for(;Le=Ve[He++];)Le[0]==="+"?(Le=Le.slice(1)||"*",(Y[Le]=Y[Le]||[]).unshift(ke)):(Y[Le]=Y[Le]||[]).push(ke)}}function Ui(Y,ne,ke,Le){var He={},Ve=Y===oi;function nt(Ot){var At;return He[Ot]=!0,V.each(Y[Ot]||[],function(Vt,or){var yr=or(ne,ke,Le);if(typeof yr=="string"&&!Ve&&!He[yr])return ne.dataTypes.unshift(yr),nt(yr),!1;if(Ve)return!(At=yr)}),At}return nt(ne.dataTypes[0])||!He["*"]&&nt("*")}function sn(Y,ne){var ke,Le,He=V.ajaxSettings.flatOptions||{};for(ke in ne)ne[ke]!==void 0&&((He[ke]?Y:Le||(Le={}))[ke]=ne[ke]);return Le&&V.extend(!0,Y,Le),Y}function Gn(Y,ne,ke){for(var Le,He,Ve,nt,Ot=Y.contents,At=Y.dataTypes;At[0]==="*";)At.shift(),Le===void 0&&(Le=Y.mimeType||ne.getResponseHeader("Content-Type"));if(Le){for(He in Ot)if(Ot[He]&&Ot[He].test(Le)){At.unshift(He);break}}if(At[0]in ke)Ve=At[0];else{for(He in ke){if(!At[0]||Y.converters[He+" "+At[0]]){Ve=He;break}nt||(nt=He)}Ve=Ve||nt}if(Ve)return Ve!==At[0]&&At.unshift(Ve),ke[Ve]}function Jn(Y,ne,ke,Le){var He,Ve,nt,Ot,At,Vt={},or=Y.dataTypes.slice();if(or[1])for(nt in Y.converters)Vt[nt.toLowerCase()]=Y.converters[nt];for(Ve=or.shift();Ve;)if(Y.responseFields[Ve]&&(ke[Y.responseFields[Ve]]=ne),!At&&Le&&Y.dataFilter&&(ne=Y.dataFilter(ne,Y.dataType)),At=Ve,Ve=or.shift(),Ve){if(Ve==="*")Ve=At;else if(At!=="*"&&At!==Ve){if(nt=Vt[At+" "+Ve]||Vt["* "+Ve],!nt){for(He in Vt)if(Ot=He.split(" "),Ot[1]===Ve&&(nt=Vt[At+" "+Ot[0]]||Vt["* "+Ot[0]],nt)){nt===!0?nt=Vt[He]:Vt[He]!==!0&&(Ve=Ot[0],or.unshift(Ot[1]));break}}if(nt!==!0)if(nt&&Y.throws)ne=nt(ne);else try{ne=nt(ne)}catch(yr){return{state:"parsererror",error:nt?yr:"No conversion from "+At+" to "+Ve}}}}return{state:"success",data:ne}}V.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:ri.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Tn,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":V.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(Y,ne){return ne?sn(sn(Y,V.ajaxSettings),ne):sn(V.ajaxSettings,Y)},ajaxPrefilter:Rn(li),ajaxTransport:Rn(oi),ajax:function(Y,ne){typeof Y=="object"&&(ne=Y,Y=void 0),ne=ne||{};var ke,Le,He,Ve,nt,Ot,At,Vt,or,yr,er=V.ajaxSetup({},ne),$r=er.context||er,Kr=er.context&&($r.nodeType||$r.jquery)?V($r):V.event,hi=V.Deferred(),ci=V.Callbacks("once memory"),ji=er.statusCode||{},Pi={},pn={},mn="canceled",di={readyState:0,getResponseHeader:function(vi){var Ai;if(At){if(!Ve)for(Ve={};Ai=Qr.exec(He);)Ve[Ai[1].toLowerCase()+" "]=(Ve[Ai[1].toLowerCase()+" "]||[]).concat(Ai[2]);Ai=Ve[vi.toLowerCase()+" "]}return Ai==null?null:Ai.join(", ")},getAllResponseHeaders:function(){return At?He:null},setRequestHeader:function(vi,Ai){return At==null&&(vi=pn[vi.toLowerCase()]=pn[vi.toLowerCase()]||vi,Pi[vi]=Ai),this},overrideMimeType:function(vi){return At==null&&(er.mimeType=vi),this},statusCode:function(vi){var Ai;if(vi)if(At)di.always(vi[di.status]);else for(Ai in vi)ji[Ai]=[ji[Ai],vi[Ai]];return this},abort:function(vi){var Ai=vi||mn;return ke&&ke.abort(Ai),en(0,Ai),this}};if(hi.promise(di),er.url=((Y||er.url||St.href)+"").replace(Zi,St.protocol+"//"),er.type=ne.method||ne.type||er.method||er.type,er.dataTypes=(er.dataType||"*").toLowerCase().match(de)||[""],er.crossDomain==null){Ot=F.createElement("a");try{Ot.href=er.url,Ot.href=Ot.href,er.crossDomain=an.protocol+"//"+an.host!=Ot.protocol+"//"+Ot.host}catch{er.crossDomain=!0}}if(er.data&&er.processData&&typeof er.data!="string"&&(er.data=V.param(er.data,er.traditional)),Ui(li,er,ne,di),At)return di;Vt=V.event&&er.global,Vt&&V.active++===0&&V.event.trigger("ajaxStart"),er.type=er.type.toUpperCase(),er.hasContent=!Xi.test(er.type),Le=er.url.replace(_r,""),er.hasContent?er.data&&er.processData&&(er.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(er.data=er.data.replace(Pr,"+")):(yr=er.url.slice(Le.length),er.data&&(er.processData||typeof er.data=="string")&&(Le+=(Ft.test(Le)?"&":"?")+er.data,delete er.data),er.cache===!1&&(Le=Le.replace(ti,"$1"),yr=(Ft.test(Le)?"&":"?")+"_="+Lt.guid+++yr),er.url=Le+yr),er.ifModified&&(V.lastModified[Le]&&di.setRequestHeader("If-Modified-Since",V.lastModified[Le]),V.etag[Le]&&di.setRequestHeader("If-None-Match",V.etag[Le])),(er.data&&er.hasContent&&er.contentType!==!1||ne.contentType)&&di.setRequestHeader("Content-Type",er.contentType),di.setRequestHeader("Accept",er.dataTypes[0]&&er.accepts[er.dataTypes[0]]?er.accepts[er.dataTypes[0]]+(er.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):er.accepts["*"]);for(or in er.headers)di.setRequestHeader(or,er.headers[or]);if(er.beforeSend&&(er.beforeSend.call($r,di,er)===!1||At))return di.abort();if(mn="abort",ci.add(er.complete),di.done(er.success),di.fail(er.error),ke=Ui(oi,er,ne,di),!ke)en(-1,"No Transport");else{if(di.readyState=1,Vt&&Kr.trigger("ajaxSend",[di,er]),At)return di;er.async&&er.timeout>0&&(nt=e.setTimeout(function(){di.abort("timeout")},er.timeout));try{At=!1,ke.send(Pi,en)}catch(vi){if(At)throw vi;en(-1,vi)}}function en(vi,Ai,Kn,ta){var tn,Ln,Wi,gn,En,$i=Ai;At||(At=!0,nt&&e.clearTimeout(nt),ke=void 0,He=ta||"",di.readyState=vi>0?4:0,tn=vi>=200&&vi<300||vi===304,Kn&&(gn=Gn(er,di,Kn)),!tn&&V.inArray("script",er.dataTypes)>-1&&V.inArray("json",er.dataTypes)<0&&(er.converters["text script"]=function(){}),gn=Jn(er,gn,di,tn),tn?(er.ifModified&&(En=di.getResponseHeader("Last-Modified"),En&&(V.lastModified[Le]=En),En=di.getResponseHeader("etag"),En&&(V.etag[Le]=En)),vi===204||er.type==="HEAD"?$i="nocontent":vi===304?$i="notmodified":($i=gn.state,Ln=gn.data,Wi=gn.error,tn=!Wi)):(Wi=$i,(vi||!$i)&&($i="error",vi<0&&(vi=0))),di.status=vi,di.statusText=(Ai||$i)+"",tn?hi.resolveWith($r,[Ln,$i,di]):hi.rejectWith($r,[di,$i,Wi]),di.statusCode(ji),ji=void 0,Vt&&Kr.trigger(tn?"ajaxSuccess":"ajaxError",[di,er,tn?Ln:Wi]),ci.fireWith($r,[di,$i]),Vt&&(Kr.trigger("ajaxComplete",[di,er]),--V.active||V.event.trigger("ajaxStop")))}return di},getJSON:function(Y,ne,ke){return V.get(Y,ne,ke,"json")},getScript:function(Y,ne){return V.get(Y,void 0,ne,"script")}}),V.each(["get","post"],function(Y,ne){V[ne]=function(ke,Le,He,Ve){return j(Le)&&(Ve=Ve||He,He=Le,Le=void 0),V.ajax(V.extend({url:ke,type:ne,dataType:Ve,data:Le,success:He},V.isPlainObject(ke)&&ke))}}),V.ajaxPrefilter(function(Y){var ne;for(ne in Y.headers)ne.toLowerCase()==="content-type"&&(Y.contentType=Y.headers[ne]||"")}),V._evalUrl=function(Y,ne,ke){return V.ajax({url:Y,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Le){V.globalEval(Le,ne,ke)}})},V.fn.extend({wrapAll:function(Y){var ne;return this[0]&&(j(Y)&&(Y=Y.call(this[0])),ne=V(Y,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&ne.insertBefore(this[0]),ne.map(function(){for(var ke=this;ke.firstElementChild;)ke=ke.firstElementChild;return ke}).append(this)),this},wrapInner:function(Y){return j(Y)?this.each(function(ne){V(this).wrapInner(Y.call(this,ne))}):this.each(function(){var ne=V(this),ke=ne.contents();ke.length?ke.wrapAll(Y):ne.append(Y)})},wrap:function(Y){var ne=j(Y);return this.each(function(ke){V(this).wrapAll(ne?Y.call(this,ke):Y)})},unwrap:function(Y){return this.parent(Y).not("body").each(function(){V(this).replaceWith(this.childNodes)}),this}}),V.expr.pseudos.hidden=function(Y){return!V.expr.pseudos.visible(Y)},V.expr.pseudos.visible=function(Y){return!!(Y.offsetWidth||Y.offsetHeight||Y.getClientRects().length)},V.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var Nn={0:200,1223:204},ki=V.ajaxSettings.xhr();I.cors=!!ki&&"withCredentials"in ki,I.ajax=ki=!!ki,V.ajaxTransport(function(Y){var ne,ke;if(I.cors||ki&&!Y.crossDomain)return{send:function(Le,He){var Ve,nt=Y.xhr();if(nt.open(Y.type,Y.url,Y.async,Y.username,Y.password),Y.xhrFields)for(Ve in Y.xhrFields)nt[Ve]=Y.xhrFields[Ve];Y.mimeType&&nt.overrideMimeType&&nt.overrideMimeType(Y.mimeType),!Y.crossDomain&&!Le["X-Requested-With"]&&(Le["X-Requested-With"]="XMLHttpRequest");for(Ve in Le)nt.setRequestHeader(Ve,Le[Ve]);ne=function(Ot){return function(){ne&&(ne=ke=nt.onload=nt.onerror=nt.onabort=nt.ontimeout=nt.onreadystatechange=null,Ot==="abort"?nt.abort():Ot==="error"?typeof nt.status!="number"?He(0,"error"):He(nt.status,nt.statusText):He(Nn[nt.status]||nt.status,nt.statusText,(nt.responseType||"text")!=="text"||typeof nt.responseText!="string"?{binary:nt.response}:{text:nt.responseText},nt.getAllResponseHeaders()))}},nt.onload=ne(),ke=nt.onerror=nt.ontimeout=ne("error"),nt.onabort!==void 0?nt.onabort=ke:nt.onreadystatechange=function(){nt.readyState===4&&e.setTimeout(function(){ne&&ke()})},ne=ne("abort");try{nt.send(Y.hasContent&&Y.data||null)}catch(Ot){if(ne)throw Ot}},abort:function(){ne&&ne()}}}),V.ajaxPrefilter(function(Y){Y.crossDomain&&(Y.contents.script=!1)}),V.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(Y){return V.globalEval(Y),Y}}}),V.ajaxPrefilter("script",function(Y){Y.cache===void 0&&(Y.cache=!1),Y.crossDomain&&(Y.type="GET")}),V.ajaxTransport("script",function(Y){if(Y.crossDomain||Y.scriptAttrs){var ne,ke;return{send:function(Le,He){ne=V("<script>").attr(Y.scriptAttrs||{}).prop({charset:Y.scriptCharset,src:Y.url}).on("load error",ke=function(Ve){ne.remove(),ke=null,Ve&&He(Ve.type==="error"?404:200,Ve.type)}),F.head.appendChild(ne[0])},abort:function(){ke&&ke()}}}});var Ki=[],Ji=/(=)\?(?=&|$)|\?\?/;V.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var Y=Ki.pop()||V.expando+"_"+Lt.guid++;return this[Y]=!0,Y}}),V.ajaxPrefilter("json jsonp",function(Y,ne,ke){var Le,He,Ve,nt=Y.jsonp!==!1&&(Ji.test(Y.url)?"url":typeof Y.data=="string"&&(Y.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Ji.test(Y.data)&&"data");if(nt||Y.dataTypes[0]==="jsonp")return Le=Y.jsonpCallback=j(Y.jsonpCallback)?Y.jsonpCallback():Y.jsonpCallback,nt?Y[nt]=Y[nt].replace(Ji,"$1"+Le):Y.jsonp!==!1&&(Y.url+=(Ft.test(Y.url)?"&":"?")+Y.jsonp+"="+Le),Y.converters["script json"]=function(){return Ve||V.error(Le+" was not called"),Ve[0]},Y.dataTypes[0]="json",He=e[Le],e[Le]=function(){Ve=arguments},ke.always(function(){He===void 0?V(e).removeProp(Le):e[Le]=He,Y[Le]&&(Y.jsonpCallback=ne.jsonpCallback,Ki.push(Le)),Ve&&j(He)&&He(Ve[0]),Ve=He=void 0}),"script"}),I.createHTMLDocument=function(){var Y=F.implementation.createHTMLDocument("").body;return Y.innerHTML="<form></form><form></form>",Y.childNodes.length===2}(),V.parseHTML=function(Y,ne,ke){if(typeof Y!="string")return[];typeof ne=="boolean"&&(ke=ne,ne=!1);var Le,He,Ve;return ne||(I.createHTMLDocument?(ne=F.implementation.createHTMLDocument(""),Le=ne.createElement("base"),Le.href=F.location.href,ne.head.appendChild(Le)):ne=F),He=D.exec(Y),Ve=!ke&&[],He?[ne.createElement(He[1])]:(He=Ut([Y],ne,Ve),Ve&&Ve.length&&V(Ve).remove(),V.merge([],He.childNodes))},V.fn.load=function(Y,ne,ke){var Le,He,Ve,nt=this,Ot=Y.indexOf(" ");return Ot>-1&&(Le=we(Y.slice(Ot)),Y=Y.slice(0,Ot)),j(ne)?(ke=ne,ne=void 0):ne&&typeof ne=="object"&&(He="POST"),nt.length>0&&V.ajax({url:Y,type:He||"GET",dataType:"html",data:ne}).done(function(At){Ve=arguments,nt.html(Le?V("<div>").append(V.parseHTML(At)).find(Le):At)}).always(ke&&function(At,Vt){nt.each(function(){ke.apply(this,Ve||[At.responseText,Vt,At])})}),this},V.expr.pseudos.animated=function(Y){return V.grep(V.timers,function(ne){return Y===ne.elem}).length},V.offset={setOffset:function(Y,ne,ke){var Le,He,Ve,nt,Ot,At,Vt,or=V.css(Y,"position"),yr=V(Y),er={};or==="static"&&(Y.style.position="relative"),Ot=yr.offset(),Ve=V.css(Y,"top"),At=V.css(Y,"left"),Vt=(or==="absolute"||or==="fixed")&&(Ve+At).indexOf("auto")>-1,Vt?(Le=yr.position(),nt=Le.top,He=Le.left):(nt=parseFloat(Ve)||0,He=parseFloat(At)||0),j(ne)&&(ne=ne.call(Y,ke,V.extend({},Ot))),ne.top!=null&&(er.top=ne.top-Ot.top+nt),ne.left!=null&&(er.left=ne.left-Ot.left+He),"using"in ne?ne.using.call(Y,er):yr.css(er)}},V.fn.extend({offset:function(Y){if(arguments.length)return Y===void 0?this:this.each(function(He){V.offset.setOffset(this,Y,He)});var ne,ke,Le=this[0];if(Le)return Le.getClientRects().length?(ne=Le.getBoundingClientRect(),ke=Le.ownerDocument.defaultView,{top:ne.top+ke.pageYOffset,left:ne.left+ke.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var Y,ne,ke,Le=this[0],He={top:0,left:0};if(V.css(Le,"position")==="fixed")ne=Le.getBoundingClientRect();else{for(ne=this.offset(),ke=Le.ownerDocument,Y=Le.offsetParent||ke.documentElement;Y&&(Y===ke.body||Y===ke.documentElement)&&V.css(Y,"position")==="static";)Y=Y.parentNode;Y&&Y!==Le&&Y.nodeType===1&&(He=V(Y).offset(),He.top+=V.css(Y,"borderTopWidth",!0),He.left+=V.css(Y,"borderLeftWidth",!0))}return{top:ne.top-He.top-V.css(Le,"marginTop",!0),left:ne.left-He.left-V.css(Le,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var Y=this.offsetParent;Y&&V.css(Y,"position")==="static";)Y=Y.offsetParent;return Y||We})}}),V.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(Y,ne){var ke=ne==="pageYOffset";V.fn[Y]=function(Le){return lt(this,function(He,Ve,nt){var Ot;if(B(He)?Ot=He:He.nodeType===9&&(Ot=He.defaultView),nt===void 0)return Ot?Ot[ne]:He[Ve];Ot?Ot.scrollTo(ke?Ot.pageXOffset:nt,ke?nt:Ot.pageYOffset):He[Ve]=nt},Y,Le,arguments.length)}}),V.each(["top","left"],function(Y,ne){V.cssHooks[ne]=Fr(I.pixelPosition,function(ke,Le){if(Le)return Le=kr(ke,ne),lr.test(Le)?V(ke).position()[ne]+"px":Le})}),V.each({Height:"height",Width:"width"},function(Y,ne){V.each({padding:"inner"+Y,content:ne,"":"outer"+Y},function(ke,Le){V.fn[Le]=function(He,Ve){var nt=arguments.length&&(ke||typeof He!="boolean"),Ot=ke||(He===!0||Ve===!0?"margin":"border");return lt(this,function(At,Vt,or){var yr;return B(At)?Le.indexOf("outer")===0?At["inner"+Y]:At.document.documentElement["client"+Y]:At.nodeType===9?(yr=At.documentElement,Math.max(At.body["scroll"+Y],yr["scroll"+Y],At.body["offset"+Y],yr["offset"+Y],yr["client"+Y])):or===void 0?V.css(At,Vt,Ot):V.style(At,Vt,or,Ot)},ne,nt?He:void 0,nt)}})}),V.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(Y,ne){V.fn[ne]=function(ke){return this.on(ne,ke)}}),V.fn.extend({bind:function(Y,ne,ke){return this.on(Y,null,ne,ke)},unbind:function(Y,ne){return this.off(Y,null,ne)},delegate:function(Y,ne,ke,Le){return this.on(ne,Y,ke,Le)},undelegate:function(Y,ne,ke){return arguments.length===1?this.off(Y,"**"):this.off(ne,Y||"**",ke)},hover:function(Y,ne){return this.on("mouseenter",Y).on("mouseleave",ne||Y)}}),V.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(Y,ne){V.fn[ne]=function(ke,Le){return arguments.length>0?this.on(ne,null,ke,Le):this.trigger(ne)}});var ea=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;V.proxy=function(Y,ne){var ke,Le,He;if(typeof ne=="string"&&(ke=Y[ne],ne=Y,Y=ke),!!j(Y))return Le=u.call(arguments,2),He=function(){return Y.apply(ne||this,Le.concat(u.call(arguments)))},He.guid=Y.guid=Y.guid||V.guid++,He},V.holdReady=function(Y){Y?V.readyWait++:V.ready(!0)},V.isArray=Array.isArray,V.parseJSON=JSON.parse,V.nodeName=he,V.isFunction=j,V.isWindow=B,V.camelCase=bt,V.type=Z,V.now=Date.now,V.isNumeric=function(Y){var ne=V.type(Y);return(ne==="number"||ne==="string")&&!isNaN(Y-parseFloat(Y))},V.trim=function(Y){return Y==null?"":(Y+"").replace(ea,"$1")};var gi=e.jQuery,Hi=e.$;return V.noConflict=function(Y){return e.$===V&&(e.$=Hi),Y&&e.jQuery===V&&(e.jQuery=gi),V},typeof o>"u"&&(e.jQuery=e.$=V),V})})(jquery);var jqueryExports=jquery.exports;const jQuery=getDefaultExportFromCjs$1(jqueryExports);/*! jQuery UI - v1.14.0 - 2024-08-05
* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright OpenJS Foundation and other contributors; Licensed MIT */(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){n.ui=n.ui||{},n.ui.version="1.14.0";/*!
 * jQuery UI Widget 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */var e=0,o=Array.prototype.hasOwnProperty,l=Array.prototype.slice;n.cleanData=function(c){return function(m){var x,T,b;for(b=0;(T=m[b])!=null;b++)x=n._data(T,"events"),x&&x.remove&&n(T).triggerHandler("remove");c(m)}}(n.cleanData),n.widget=function(c,m,x){var T,b,d,k={},D=c.split(".")[0];c=c.split(".")[1];var O=D+"-"+c;return x||(x=m,m=n.Widget),Array.isArray(x)&&(x=n.extend.apply(null,[{}].concat(x))),n.expr.pseudos[O.toLowerCase()]=function(Q){return!!n.data(Q,O)},n[D]=n[D]||{},T=n[D][c],b=n[D][c]=function(Q,J){if(!this||!this._createWidget)return new b(Q,J);arguments.length&&this._createWidget(Q,J)},n.extend(b,T,{version:x.version,_proto:n.extend({},x),_childConstructors:[]}),d=new m,d.options=n.widget.extend({},d.options),n.each(x,function(Q,J){if(typeof J!="function"){k[Q]=J;return}k[Q]=function(){function X(){return m.prototype[Q].apply(this,arguments)}function U(z){return m.prototype[Q].apply(this,z)}return function(){var z=this._super,ie=this._superApply,de;return this._super=X,this._superApply=U,de=J.apply(this,arguments),this._super=z,this._superApply=ie,de}}()}),b.prototype=n.widget.extend(d,{widgetEventPrefix:T&&d.widgetEventPrefix||c},k,{constructor:b,namespace:D,widgetName:c,widgetFullName:O}),T?(n.each(T._childConstructors,function(Q,J){var X=J.prototype;n.widget(X.namespace+"."+X.widgetName,b,J._proto)}),delete T._childConstructors):m._childConstructors.push(b),n.widget.bridge(c,b),b},n.widget.extend=function(c){for(var m=l.call(arguments,1),x=0,T=m.length,b,d;x<T;x++)for(b in m[x])d=m[x][b],o.call(m[x],b)&&d!==void 0&&(n.isPlainObject(d)?c[b]=n.isPlainObject(c[b])?n.widget.extend({},c[b],d):n.widget.extend({},d):c[b]=d);return c},n.widget.bridge=function(c,m){var x=m.prototype.widgetFullName||c;n.fn[c]=function(T){var b=typeof T=="string",d=l.call(arguments,1),k=this;return b?!this.length&&T==="instance"?k=void 0:this.each(function(){var D,O=n.data(this,x);if(T==="instance")return k=O,!1;if(!O)return n.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+T+"'");if(typeof O[T]!="function"||T.charAt(0)==="_")return n.error("no such method '"+T+"' for "+c+" widget instance");if(D=O[T].apply(O,d),D!==O&&D!==void 0)return k=D&&D.jquery?k.pushStack(D.get()):D,!1}):(d.length&&(T=n.widget.extend.apply(null,[T].concat(d))),this.each(function(){var D=n.data(this,x);D?(D.option(T||{}),D._init&&D._init()):n.data(this,x,new m(T,this))})),k}},n.Widget=function(){},n.Widget._childConstructors=[],n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(c,m){m=n(m||this.defaultElement||this)[0],this.element=n(m),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=n(),this.hoverable=n(),this.focusable=n(),this.classesElementLookup={},m!==this&&(n.data(m,this.widgetFullName,this),this._on(!0,this.element,{remove:function(x){x.target===m&&this.destroy()}}),this.document=n(m.style?m.ownerDocument:m.document||m),this.window=n(this.document[0].defaultView||this.document[0].parentWindow)),this.options=n.widget.extend({},this.options,this._getCreateOptions(),c),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){var c=this;this._destroy(),n.each(this.classesElementLookup,function(m,x){c._removeClass(x,m)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:n.noop,widget:function(){return this.element},option:function(c,m){var x=c,T,b,d;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof c=="string")if(x={},T=c.split("."),c=T.shift(),T.length){for(b=x[c]=n.widget.extend({},this.options[c]),d=0;d<T.length-1;d++)b[T[d]]=b[T[d]]||{},b=b[T[d]];if(c=T.pop(),arguments.length===1)return b[c]===void 0?null:b[c];b[c]=m}else{if(arguments.length===1)return this.options[c]===void 0?null:this.options[c];x[c]=m}return this._setOptions(x),this},_setOptions:function(c){var m;for(m in c)this._setOption(m,c[m]);return this},_setOption:function(c,m){return c==="classes"&&this._setOptionClasses(m),this.options[c]=m,c==="disabled"&&this._setOptionDisabled(m),this},_setOptionClasses:function(c){var m,x,T;for(m in c)T=this.classesElementLookup[m],!(c[m]===this.options.classes[m]||!T||!T.length)&&(x=n(T.get()),this._removeClass(T,m),x.addClass(this._classes({element:x,keys:m,classes:c,add:!0})))},_setOptionDisabled:function(c){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!c),c&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(c){var m=[],x=this;c=n.extend({element:this.element,classes:this.options.classes||{}},c);function T(){var d=[];c.element.each(function(k,D){var O=n.map(x.classesElementLookup,function(Q){return Q}).some(function(Q){return Q.is(D)});O||d.push(D)}),x._on(n(d),{remove:"_untrackClassesElement"})}function b(d,k){var D,O;for(O=0;O<d.length;O++)D=x.classesElementLookup[d[O]]||n(),c.add?(T(),D=n(n.uniqueSort(D.get().concat(c.element.get())))):D=n(D.not(c.element).get()),x.classesElementLookup[d[O]]=D,m.push(d[O]),k&&c.classes[d[O]]&&m.push(c.classes[d[O]])}return c.keys&&b(c.keys.match(/\S+/g)||[],!0),c.extra&&b(c.extra.match(/\S+/g)||[]),m.join(" ")},_untrackClassesElement:function(c){var m=this;n.each(m.classesElementLookup,function(x,T){n.inArray(c.target,T)!==-1&&(m.classesElementLookup[x]=n(T.not(c.target).get()))}),this._off(n(c.target))},_removeClass:function(c,m,x){return this._toggleClass(c,m,x,!1)},_addClass:function(c,m,x){return this._toggleClass(c,m,x,!0)},_toggleClass:function(c,m,x,T){T=typeof T=="boolean"?T:x;var b=typeof c=="string"||c===null,d={extra:b?m:x,keys:b?c:m,element:b?this.element:c,add:T};return d.element.toggleClass(this._classes(d),T),this},_on:function(c,m,x){var T,b=this;typeof c!="boolean"&&(x=m,m=c,c=!1),x?(m=T=n(m),this.bindings=this.bindings.add(m)):(x=m,m=this.element,T=this.widget()),n.each(x,function(d,k){function D(){if(!(!c&&(b.options.disabled===!0||n(this).hasClass("ui-state-disabled"))))return(typeof k=="string"?b[k]:k).apply(b,arguments)}typeof k!="string"&&(D.guid=k.guid=k.guid||D.guid||n.guid++);var O=d.match(/^([\w:-]*)\s*(.*)$/),Q=O[1]+b.eventNamespace,J=O[2];J?T.on(Q,J,D):m.on(Q,D)})},_off:function(c,m){m=(m||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,c.off(m),this.bindings=n(this.bindings.not(c).get()),this.focusable=n(this.focusable.not(c).get()),this.hoverable=n(this.hoverable.not(c).get())},_delay:function(c,m){function x(){return(typeof c=="string"?T[c]:c).apply(T,arguments)}var T=this;return setTimeout(x,m||0)},_hoverable:function(c){this.hoverable=this.hoverable.add(c),this._on(c,{mouseenter:function(m){this._addClass(n(m.currentTarget),null,"ui-state-hover")},mouseleave:function(m){this._removeClass(n(m.currentTarget),null,"ui-state-hover")}})},_focusable:function(c){this.focusable=this.focusable.add(c),this._on(c,{focusin:function(m){this._addClass(n(m.currentTarget),null,"ui-state-focus")},focusout:function(m){this._removeClass(n(m.currentTarget),null,"ui-state-focus")}})},_trigger:function(c,m,x){var T,b,d=this.options[c];if(x=x||{},m=n.Event(m),m.type=(c===this.widgetEventPrefix?c:this.widgetEventPrefix+c).toLowerCase(),m.target=this.element[0],b=m.originalEvent,b)for(T in b)T in m||(m[T]=b[T]);return this.element.trigger(m,x),!(typeof d=="function"&&d.apply(this.element[0],[m].concat(x))===!1||m.isDefaultPrevented())}},n.each({show:"fadeIn",hide:"fadeOut"},function(c,m){n.Widget.prototype["_"+c]=function(x,T,b){typeof T=="string"&&(T={effect:T});var d,k=T?T===!0||typeof T=="number"?m:T.effect||m:c;T=T||{},typeof T=="number"?T={duration:T}:T===!0&&(T={}),d=!n.isEmptyObject(T),T.complete=b,T.delay&&x.delay(T.delay),d&&n.effects&&n.effects.effect[k]?x[c](T):k!==c&&x[k]?x[k](T.duration,T.easing,b):x.queue(function(D){n(this)[c](),b&&b.call(x[0]),D()})}}),n.widget;/*!
 * jQuery UI Position 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */(function(){var c,m=Math.max,x=Math.abs,T=/left|center|right/,b=/top|center|bottom/,d=/[\+\-]\d+(\.[\d]+)?%?/,k=/^\w+/,D=/%$/,O=n.fn.position;function Q(z,ie,de){return[parseFloat(z[0])*(D.test(z[0])?ie/100:1),parseFloat(z[1])*(D.test(z[1])?de/100:1)]}function J(z,ie){return parseInt(n.css(z,ie),10)||0}function X(z){return z!=null&&z===z.window}function U(z){var ie=z[0];return ie.nodeType===9?{width:z.width(),height:z.height(),offset:{top:0,left:0}}:X(ie)?{width:z.width(),height:z.height(),offset:{top:z.scrollTop(),left:z.scrollLeft()}}:ie.preventDefault?{width:0,height:0,offset:{top:ie.pageY,left:ie.pageX}}:{width:z.outerWidth(),height:z.outerHeight(),offset:z.offset()}}n.position={scrollbarWidth:function(){if(c!==void 0)return c;var z,ie,de=n("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),me=de.children()[0];return n("body").append(de),z=me.offsetWidth,de.css("overflow","scroll"),ie=me.offsetWidth,z===ie&&(ie=de[0].clientWidth),de.remove(),c=z-ie},getScrollInfo:function(z){var ie=z.isWindow||z.isDocument?"":z.element.css("overflow-x"),de=z.isWindow||z.isDocument?"":z.element.css("overflow-y"),me=ie==="scroll"||ie==="auto"&&z.width<z.element[0].scrollWidth,pe=de==="scroll"||de==="auto"&&z.height<z.element[0].scrollHeight;return{width:pe?n.position.scrollbarWidth():0,height:me?n.position.scrollbarWidth():0}},getWithinInfo:function(z){var ie=n(z||window),de=X(ie[0]),me=!!ie[0]&&ie[0].nodeType===9,pe=!de&&!me;return{element:ie,isWindow:de,isDocument:me,offset:pe?n(z).offset():{left:0,top:0},scrollLeft:ie.scrollLeft(),scrollTop:ie.scrollTop(),width:ie.outerWidth(),height:ie.outerHeight()}}},n.fn.position=function(z){if(!z||!z.of)return O.apply(this,arguments);z=n.extend({},z);var ie,de,me,pe,qe,mt,st=typeof z.of=="string"?n(document).find(z.of):n(z.of),dt=n.position.getWithinInfo(z.within),Tt=n.position.getScrollInfo(dt),lt=(z.collision||"flip").split(" "),Je={};return mt=U(st),st[0].preventDefault&&(z.at="left top"),de=mt.width,me=mt.height,pe=mt.offset,qe=n.extend({},pe),n.each(["my","at"],function(){var ht=(z[this]||"").split(" "),at,bt;ht.length===1&&(ht=T.test(ht[0])?ht.concat(["center"]):b.test(ht[0])?["center"].concat(ht):["center","center"]),ht[0]=T.test(ht[0])?ht[0]:"center",ht[1]=b.test(ht[1])?ht[1]:"center",at=d.exec(ht[0]),bt=d.exec(ht[1]),Je[this]=[at?at[0]:0,bt?bt[0]:0],z[this]=[k.exec(ht[0])[0],k.exec(ht[1])[0]]}),lt.length===1&&(lt[1]=lt[0]),z.at[0]==="right"?qe.left+=de:z.at[0]==="center"&&(qe.left+=de/2),z.at[1]==="bottom"?qe.top+=me:z.at[1]==="center"&&(qe.top+=me/2),ie=Q(Je.at,de,me),qe.left+=ie[0],qe.top+=ie[1],this.each(function(){var ht,at,bt=n(this),jt=bt.outerWidth(),Ge=bt.outerHeight(),Qe=J(this,"marginLeft"),Wt=J(this,"marginTop"),Et=jt+Qe+J(this,"marginRight")+Tt.width,Ct=Ge+Wt+J(this,"marginBottom")+Tt.height,Kt=n.extend({},qe),Me=Q(Je.my,bt.outerWidth(),bt.outerHeight());z.my[0]==="right"?Kt.left-=jt:z.my[0]==="center"&&(Kt.left-=jt/2),z.my[1]==="bottom"?Kt.top-=Ge:z.my[1]==="center"&&(Kt.top-=Ge/2),Kt.left+=Me[0],Kt.top+=Me[1],ht={marginLeft:Qe,marginTop:Wt},n.each(["left","top"],function(te,_e){n.ui.position[lt[te]]&&n.ui.position[lt[te]][_e](Kt,{targetWidth:de,targetHeight:me,elemWidth:jt,elemHeight:Ge,collisionPosition:ht,collisionWidth:Et,collisionHeight:Ct,offset:[ie[0]+Me[0],ie[1]+Me[1]],my:z.my,at:z.at,within:dt,elem:bt})}),z.using&&(at=function(te){var _e=pe.left-Kt.left,je=_e+de-jt,We=pe.top-Kt.top,et=We+me-Ge,Ye={target:{element:st,left:pe.left,top:pe.top,width:de,height:me},element:{element:bt,left:Kt.left,top:Kt.top,width:jt,height:Ge},horizontal:je<0?"left":_e>0?"right":"center",vertical:et<0?"top":We>0?"bottom":"middle"};de<jt&&x(_e+je)<de&&(Ye.horizontal="center"),me<Ge&&x(We+et)<me&&(Ye.vertical="middle"),m(x(_e),x(je))>m(x(We),x(et))?Ye.important="horizontal":Ye.important="vertical",z.using.call(this,te,Ye)}),bt.offset(n.extend(Kt,{using:at}))})},n.ui.position={fit:{left:function(z,ie){var de=ie.within,me=de.isWindow?de.scrollLeft:de.offset.left,pe=de.width,qe=z.left-ie.collisionPosition.marginLeft,mt=me-qe,st=qe+ie.collisionWidth-pe-me,dt;ie.collisionWidth>pe?mt>0&&st<=0?(dt=z.left+mt+ie.collisionWidth-pe-me,z.left+=mt-dt):st>0&&mt<=0?z.left=me:mt>st?z.left=me+pe-ie.collisionWidth:z.left=me:mt>0?z.left+=mt:st>0?z.left-=st:z.left=m(z.left-qe,z.left)},top:function(z,ie){var de=ie.within,me=de.isWindow?de.scrollTop:de.offset.top,pe=ie.within.height,qe=z.top-ie.collisionPosition.marginTop,mt=me-qe,st=qe+ie.collisionHeight-pe-me,dt;ie.collisionHeight>pe?mt>0&&st<=0?(dt=z.top+mt+ie.collisionHeight-pe-me,z.top+=mt-dt):st>0&&mt<=0?z.top=me:mt>st?z.top=me+pe-ie.collisionHeight:z.top=me:mt>0?z.top+=mt:st>0?z.top-=st:z.top=m(z.top-qe,z.top)}},flip:{left:function(z,ie){var de=ie.within,me=de.offset.left+de.scrollLeft,pe=de.width,qe=de.isWindow?de.scrollLeft:de.offset.left,mt=z.left-ie.collisionPosition.marginLeft,st=mt-qe,dt=mt+ie.collisionWidth-pe-qe,Tt=ie.my[0]==="left"?-ie.elemWidth:ie.my[0]==="right"?ie.elemWidth:0,lt=ie.at[0]==="left"?ie.targetWidth:ie.at[0]==="right"?-ie.targetWidth:0,Je=-2*ie.offset[0],ht,at;st<0?(ht=z.left+Tt+lt+Je+ie.collisionWidth-pe-me,(ht<0||ht<x(st))&&(z.left+=Tt+lt+Je)):dt>0&&(at=z.left-ie.collisionPosition.marginLeft+Tt+lt+Je-qe,(at>0||x(at)<dt)&&(z.left+=Tt+lt+Je))},top:function(z,ie){var de=ie.within,me=de.offset.top+de.scrollTop,pe=de.height,qe=de.isWindow?de.scrollTop:de.offset.top,mt=z.top-ie.collisionPosition.marginTop,st=mt-qe,dt=mt+ie.collisionHeight-pe-qe,Tt=ie.my[1]==="top",lt=Tt?-ie.elemHeight:ie.my[1]==="bottom"?ie.elemHeight:0,Je=ie.at[1]==="top"?ie.targetHeight:ie.at[1]==="bottom"?-ie.targetHeight:0,ht=-2*ie.offset[1],at,bt;st<0?(bt=z.top+lt+Je+ht+ie.collisionHeight-pe-me,(bt<0||bt<x(st))&&(z.top+=lt+Je+ht)):dt>0&&(at=z.top-ie.collisionPosition.marginTop+lt+Je+ht-qe,(at>0||x(at)<dt)&&(z.top+=lt+Je+ht))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments),n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments),n.ui.position.fit.top.apply(this,arguments)}}}})(),n.ui.position;/*!
 * jQuery UI :data 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.extend(n.expr.pseudos,{data:n.expr.createPseudo(function(c){return function(m){return!!n.data(m,c)}})});/*!
 * jQuery UI Disable Selection 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.fn.extend({disableSelection:function(){var c="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(c+".ui-disableSelection",function(m){m.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});var t=n;/*!
 * jQuery Color Animations v3.0.0
 * https://github.com/jquery/jquery-color
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * Date: Wed May 15 16:49:44 2024 +0200
 */var u="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",h={},v=h.toString,w=/^([\-+])=\s*(\d+\.?\d*)/,A=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(c){return[c[1],c[2],c[3],c[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(c){return[c[1]*2.55,c[2]*2.55,c[3]*2.55,c[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16),c[4]?(parseInt(c[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16),c[4]?(parseInt(c[4]+c[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(c){return[c[1],c[2]/100,c[3]/100,c[4]]}}],E=t.Color=function(c,m,x,T){return new t.Color.fn.parse(c,m,x,T)},C={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},M={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},P,I=t.each;I(C,function(c,m){m.cache="_"+c,m.props.alpha={idx:3,type:"percent",def:1}}),t.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(c,m){h["[object "+m+"]"]=m.toLowerCase()});function j(c){return c==null?c+"":typeof c=="object"?h[v.call(c)]||"object":typeof c}function B(c,m,x){var T=M[m.type]||{};return c==null?x||!m.def?null:m.def:(c=T.floor?~~c:parseFloat(c),T.mod?(c+T.mod)%T.mod:Math.min(T.max,Math.max(0,c)))}function F(c){var m=E(),x=m._rgba=[];return c=c.toLowerCase(),I(A,function(T,b){var d,k=b.re.exec(c),D=k&&b.parse(k),O=b.space||"rgba";if(D)return d=m[O](D),m[C[O].cache]=d[C[O].cache],x=m._rgba=d._rgba,!1}),x.length?(x.join()==="0,0,0,0"&&t.extend(x,P.transparent),m):P[c]}E.fn=t.extend(E.prototype,{parse:function(c,m,x,T){if(c===void 0)return this._rgba=[null,null,null,null],this;(c.jquery||c.nodeType)&&(c=t(c).css(m),m=void 0);var b=this,d=j(c),k=this._rgba=[];if(m!==void 0&&(c=[c,m,x,T],d="array"),d==="string")return this.parse(F(c)||P._default);if(d==="array")return I(C.rgba.props,function(D,O){k[O.idx]=B(c[O.idx],O)}),this;if(d==="object")return c instanceof E?I(C,function(D,O){c[O.cache]&&(b[O.cache]=c[O.cache].slice())}):I(C,function(D,O){var Q=O.cache;I(O.props,function(J,X){if(!b[Q]&&O.to){if(J==="alpha"||c[J]==null)return;b[Q]=O.to(b._rgba)}b[Q][X.idx]=B(c[J],X,!0)}),b[Q]&&t.inArray(null,b[Q].slice(0,3))<0&&(b[Q][3]==null&&(b[Q][3]=1),O.from&&(b._rgba=O.from(b[Q])))}),this},is:function(c){var m=E(c),x=!0,T=this;return I(C,function(b,d){var k,D=m[d.cache];return D&&(k=T[d.cache]||d.to&&d.to(T._rgba)||[],I(d.props,function(O,Q){if(D[Q.idx]!=null)return x=D[Q.idx]===k[Q.idx],x})),x}),x},_space:function(){var c=[],m=this;return I(C,function(x,T){m[T.cache]&&c.push(x)}),c.pop()},transition:function(c,m){var x=E(c),T=x._space(),b=C[T],d=this.alpha()===0?E("transparent"):this,k=d[b.cache]||b.to(d._rgba),D=k.slice();return x=x[b.cache],I(b.props,function(O,Q){var J=Q.idx,X=k[J],U=x[J],z=M[Q.type]||{};U!==null&&(X===null?D[J]=U:(z.mod&&(U-X>z.mod/2?X+=z.mod:X-U>z.mod/2&&(X-=z.mod)),D[J]=B((U-X)*m+X,Q)))}),this[T](D)},blend:function(c){if(this._rgba[3]===1)return this;var m=this._rgba.slice(),x=m.pop(),T=E(c)._rgba;return E(t.map(m,function(b,d){return(1-x)*T[d]+x*b}))},toRgbaString:function(){var c="rgba(",m=t.map(this._rgba,function(x,T){return x??(T>2?1:0)});return m[3]===1&&(m.pop(),c="rgb("),c+m.join(", ")+")"},toHslaString:function(){var c="hsla(",m=t.map(this.hsla(),function(x,T){return x==null&&(x=T>2?1:0),T&&T<3&&(x=Math.round(x*100)+"%"),x});return m[3]===1&&(m.pop(),c="hsl("),c+m.join(", ")+")"},toHexString:function(c){var m=this._rgba.slice(),x=m.pop();return c&&m.push(~~(x*255)),"#"+t.map(m,function(T){return("0"+(T||0).toString(16)).substr(-2)}).join("")},toString:function(){return this.toRgbaString()}}),E.fn.parse.prototype=E.fn;function N(c,m,x){return x=(x+1)%1,x*6<1?c+(m-c)*x*6:x*2<1?m:x*3<2?c+(m-c)*(2/3-x)*6:c}C.hsla.to=function(c){if(c[0]==null||c[1]==null||c[2]==null)return[null,null,null,c[3]];var m=c[0]/255,x=c[1]/255,T=c[2]/255,b=c[3],d=Math.max(m,x,T),k=Math.min(m,x,T),D=d-k,O=d+k,Q=O*.5,J,X;return k===d?J=0:m===d?J=60*(x-T)/D+360:x===d?J=60*(T-m)/D+120:J=60*(m-x)/D+240,D===0?X=0:Q<=.5?X=D/O:X=D/(2-O),[Math.round(J)%360,X,Q,b??1]},C.hsla.from=function(c){if(c[0]==null||c[1]==null||c[2]==null)return[null,null,null,c[3]];var m=c[0]/360,x=c[1],T=c[2],b=c[3],d=T<=.5?T*(1+x):T+x-T*x,k=2*T-d;return[Math.round(N(k,d,m+1/3)*255),Math.round(N(k,d,m)*255),Math.round(N(k,d,m-1/3)*255),b]},I(C,function(c,m){var x=m.props,T=m.cache,b=m.to,d=m.from;E.fn[c]=function(k){if(b&&!this[T]&&(this[T]=b(this._rgba)),k===void 0)return this[T].slice();var D,O=j(k),Q=O==="array"||O==="object"?k:arguments,J=this[T].slice();return I(x,function(X,U){var z=Q[O==="object"?X:U.idx];z==null&&(z=J[U.idx]),J[U.idx]=B(z,U)}),d?(D=E(d(J)),D[T]=J,D):E(J)},I(x,function(k,D){E.fn[k]||(E.fn[k]=function(O){var Q,J,X,U,z=j(O);return k==="alpha"?U=this._hsla?"hsla":"rgba":U=c,Q=this[U](),J=Q[D.idx],z==="undefined"?J:(z==="function"&&(O=O.call(this,J),z=j(O)),O==null&&D.empty?this:(z==="string"&&(X=w.exec(O),X&&(O=J+parseFloat(X[2])*(X[1]==="+"?1:-1))),Q[D.idx]=O,this[U](Q)))})})}),E.hook=function(c){var m=c.split(" ");I(m,function(x,T){t.cssHooks[T]={set:function(b,d){var k;d!=="transparent"&&(j(d)!=="string"||(k=F(d)))&&(d=E(k||d),d=d.toRgbaString()),b.style[T]=d}},t.fx.step[T]=function(b){b.colorInit||(b.start=E(b.elem,T),b.end=E(b.end),b.colorInit=!0),t.cssHooks[T].set(b.elem,b.start.transition(b.end,b.pos))}})},E.hook(u),t.cssHooks.borderColor={expand:function(c){var m={};return I(["Top","Right","Bottom","Left"],function(x,T){m["border"+T+"Color"]=c}),m}},P=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"};/*!
 * jQuery UI Effects 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */var ee="ui-effects-",Z="ui-effects-style",re="ui-effects-animated";n.effects={effect:{}},function(){var c=["add","remove","toggle"],m={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(d,k){n.fx.step[k]=function(D){(D.end!=="none"&&!D.setAttr||D.pos===1&&!D.setAttr)&&(t.style(D.elem,k,D.end),D.setAttr=!0)}});function x(d){return d.replace(/-([\da-z])/gi,function(k,D){return D.toUpperCase()})}function T(d){var k,D,O=d.ownerDocument.defaultView.getComputedStyle(d),Q={};for(D=O.length;D--;)k=O[D],typeof O[k]=="string"&&(Q[x(k)]=O[k]);return Q}function b(d,k){var D={},O,Q;for(O in k)Q=k[O],d[O]!==Q&&(m[O]||(n.fx.step[O]||!isNaN(parseFloat(Q)))&&(D[O]=Q));return D}n.effects.animateClass=function(d,k,D,O){var Q=n.speed(k,D,O);return this.queue(function(){var J=n(this),X=J.attr("class")||"",U,z=Q.children?J.find("*").addBack():J;z=z.map(function(){var ie=n(this);return{el:ie,start:T(this)}}),U=function(){n.each(c,function(ie,de){d[de]&&J[de+"Class"](d[de])})},U(),z=z.map(function(){return this.end=T(this.el[0]),this.diff=b(this.start,this.end),this}),J.attr("class",X),z=z.map(function(){var ie=this,de=n.Deferred(),me=n.extend({},Q,{queue:!1,complete:function(){de.resolve(ie)}});return this.el.animate(this.diff,me),de.promise()}),n.when.apply(n,z.get()).done(function(){U(),n.each(arguments,function(){var ie=this.el;n.each(this.diff,function(de){ie.css(de,"")})}),Q.complete.call(J[0])})})},n.fn.extend({addClass:function(d){return function(k,D,O,Q){return D?n.effects.animateClass.call(this,{add:k},D,O,Q):d.apply(this,arguments)}}(n.fn.addClass),removeClass:function(d){return function(k,D,O,Q){return arguments.length>1?n.effects.animateClass.call(this,{remove:k},D,O,Q):d.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(d){return function(k,D,O,Q,J){return typeof D=="boolean"||D===void 0?O?n.effects.animateClass.call(this,D?{add:k}:{remove:k},O,Q,J):d.apply(this,arguments):n.effects.animateClass.call(this,{toggle:k},D,O,Q)}}(n.fn.toggleClass),switchClass:function(d,k,D,O,Q){return n.effects.animateClass.call(this,{add:k,remove:d},D,O,Q)}})}(),function(){n.expr&&n.expr.pseudos&&n.expr.pseudos.animated&&(n.expr.pseudos.animated=function(T){return function(b){return!!n(b).data(re)||T(b)}}(n.expr.pseudos.animated)),n.uiBackCompat===!0&&n.extend(n.effects,{save:function(T,b){for(var d=0,k=b.length;d<k;d++)b[d]!==null&&T.data(ee+b[d],T[0].style[b[d]])},restore:function(T,b){for(var d,k=0,D=b.length;k<D;k++)b[k]!==null&&(d=T.data(ee+b[k]),T.css(b[k],d))},setMode:function(T,b){return b==="toggle"&&(b=T.is(":hidden")?"show":"hide"),b},createWrapper:function(T){if(T.parent().is(".ui-effects-wrapper"))return T.parent();var b={width:T.outerWidth(!0),height:T.outerHeight(!0),float:T.css("float")},d=n("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),k={width:T.width(),height:T.height()},D=document.activeElement;try{D.id}catch{D=document.body}return T.wrap(d),(T[0]===D||n.contains(T[0],D))&&n(D).trigger("focus"),d=T.parent(),T.css("position")==="static"?(d.css({position:"relative"}),T.css({position:"relative"})):(n.extend(b,{position:T.css("position"),zIndex:T.css("z-index")}),n.each(["top","left","bottom","right"],function(O,Q){b[Q]=T.css(Q),isNaN(parseInt(b[Q],10))&&(b[Q]="auto")}),T.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),T.css(k),d.css(b).show()},removeWrapper:function(T){var b=document.activeElement;return T.parent().is(".ui-effects-wrapper")&&(T.parent().replaceWith(T),(T[0]===b||n.contains(T[0],b))&&n(b).trigger("focus")),T}}),n.extend(n.effects,{version:"1.14.0",define:function(T,b,d){return d||(d=b,b="effect"),n.effects.effect[T]=d,n.effects.effect[T].mode=b,d},scaledDimensions:function(T,b,d){if(b===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var k=d!=="horizontal"?(b||100)/100:1,D=d!=="vertical"?(b||100)/100:1;return{height:T.height()*D,width:T.width()*k,outerHeight:T.outerHeight()*D,outerWidth:T.outerWidth()*k}},clipToBox:function(T){return{width:T.clip.right-T.clip.left,height:T.clip.bottom-T.clip.top,left:T.clip.left,top:T.clip.top}},unshift:function(T,b,d){var k=T.queue();b>1&&k.splice.apply(k,[1,0].concat(k.splice(b,d))),T.dequeue()},saveStyle:function(T){T.data(Z,T[0].style.cssText)},restoreStyle:function(T){T[0].style.cssText=T.data(Z)||"",T.removeData(Z)},mode:function(T,b){var d=T.is(":hidden");return b==="toggle"&&(b=d?"show":"hide"),(d?b==="hide":b==="show")&&(b="none"),b},getBaseline:function(T,b){var d,k;switch(T[0]){case"top":d=0;break;case"middle":d=.5;break;case"bottom":d=1;break;default:d=T[0]/b.height}switch(T[1]){case"left":k=0;break;case"center":k=.5;break;case"right":k=1;break;default:k=T[1]/b.width}return{x:k,y:d}},createPlaceholder:function(T){var b,d=T.css("position"),k=T.position();return T.css({marginTop:T.css("marginTop"),marginBottom:T.css("marginBottom"),marginLeft:T.css("marginLeft"),marginRight:T.css("marginRight")}).outerWidth(T.outerWidth()).outerHeight(T.outerHeight()),/^(static|relative)/.test(d)&&(d="absolute",b=n("<"+T[0].nodeName+">").insertAfter(T).css({display:/^(inline|ruby)/.test(T.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:T.css("marginTop"),marginBottom:T.css("marginBottom"),marginLeft:T.css("marginLeft"),marginRight:T.css("marginRight"),float:T.css("float")}).outerWidth(T.outerWidth()).outerHeight(T.outerHeight()).addClass("ui-effects-placeholder"),T.data(ee+"placeholder",b)),T.css({position:d,left:k.left,top:k.top}),b},removePlaceholder:function(T){var b=ee+"placeholder",d=T.data(b);d&&(d.remove(),T.removeData(b))},cleanUp:function(T){n.effects.restoreStyle(T),n.effects.removePlaceholder(T)},setTransition:function(T,b,d,k){return k=k||{},n.each(b,function(D,O){var Q=T.cssUnit(O);Q[0]>0&&(k[O]=Q[0]*d+Q[1])}),k}});function c(T,b,d,k){return n.isPlainObject(T)&&(b=T,T=T.effect),T={effect:T},b==null&&(b={}),typeof b=="function"&&(k=b,d=null,b={}),(typeof b=="number"||n.fx.speeds[b])&&(k=d,d=b,b={}),typeof d=="function"&&(k=d,d=null),b&&n.extend(T,b),d=d||b.duration,T.duration=n.fx.off?0:typeof d=="number"?d:d in n.fx.speeds?n.fx.speeds[d]:n.fx.speeds._default,T.complete=k||b.complete,T}function m(T){return!!(!T||typeof T=="number"||n.fx.speeds[T]||typeof T=="string"&&!n.effects.effect[T]||typeof T=="function"||typeof T=="object"&&!T.effect)}n.fn.extend({effect:function(){var T=c.apply(this,arguments),b=n.effects.effect[T.effect],d=b.mode,k=T.queue,D=k||"fx",O=T.complete,Q=T.mode,J=[],X=function(z){var ie=n(this),de=n.effects.mode(ie,Q)||d;ie.data(re,!0),J.push(de),d&&(de==="show"||de===d&&de==="hide")&&ie.show(),(!d||de!=="none")&&n.effects.saveStyle(ie),typeof z=="function"&&z()};if(n.fx.off||!b)return Q?this[Q](T.duration,O):this.each(function(){O&&O.call(this)});function U(z){var ie=n(this);function de(){ie.removeData(re),n.effects.cleanUp(ie),T.mode==="hide"&&ie.hide(),me()}function me(){typeof O=="function"&&O.call(ie[0]),typeof z=="function"&&z()}T.mode=J.shift(),n.uiBackCompat===!0&&!d?(ie.is(":hidden")?Q==="hide":Q==="show")?(ie[Q](),me()):b.call(ie[0],T,me):T.mode==="none"?(ie[Q](),me()):b.call(ie[0],T,de)}return k===!1?this.each(X).each(U):this.queue(D,X).queue(D,U)},show:function(T){return function(b){if(m(b))return T.apply(this,arguments);var d=c.apply(this,arguments);return d.mode="show",this.effect.call(this,d)}}(n.fn.show),hide:function(T){return function(b){if(m(b))return T.apply(this,arguments);var d=c.apply(this,arguments);return d.mode="hide",this.effect.call(this,d)}}(n.fn.hide),toggle:function(T){return function(b){if(m(b)||typeof b=="boolean")return T.apply(this,arguments);var d=c.apply(this,arguments);return d.mode="toggle",this.effect.call(this,d)}}(n.fn.toggle),cssUnit:function(T){var b=this.css(T),d=[];return n.each(["em","px","%","pt"],function(k,D){b.indexOf(D)>0&&(d=[parseFloat(b),D])}),d},cssClip:function(T){return T?this.css("clip","rect("+T.top+"px "+T.right+"px "+T.bottom+"px "+T.left+"px)"):x(this.css("clip"),this)},transfer:function(T,b){var d=n(this),k=n(T.to),D=k.css("position")==="fixed",O=n("body"),Q=D?O.scrollTop():0,J=D?O.scrollLeft():0,X=k.offset(),U={top:X.top-Q,left:X.left-J,height:k.innerHeight(),width:k.innerWidth()},z=d.offset(),ie=n("<div class='ui-effects-transfer'></div>");ie.appendTo("body").addClass(T.className).css({top:z.top-Q,left:z.left-J,height:d.innerHeight(),width:d.innerWidth(),position:D?"fixed":"absolute"}).animate(U,T.duration,T.easing,function(){ie.remove(),typeof b=="function"&&b()})}});function x(T,b){var d=b.outerWidth(),k=b.outerHeight(),D=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,O=D.exec(T)||["",0,d,k,0];return{top:parseFloat(O[1])||0,right:O[2]==="auto"?d:parseFloat(O[2]),bottom:O[3]==="auto"?k:parseFloat(O[3]),left:parseFloat(O[4])||0}}n.fx.step.clip=function(T){T.clipInit||(T.start=n(T.elem).cssClip(),typeof T.end=="string"&&(T.end=x(T.end,T.elem)),T.clipInit=!0),n(T.elem).cssClip({top:T.pos*(T.end.top-T.start.top)+T.start.top,right:T.pos*(T.end.right-T.start.right)+T.start.right,bottom:T.pos*(T.end.bottom-T.start.bottom)+T.start.bottom,left:T.pos*(T.end.left-T.start.left)+T.start.left})}}(),function(){var c={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(m,x){c[x]=function(T){return Math.pow(T,m+2)}}),n.extend(c,{Sine:function(m){return 1-Math.cos(m*Math.PI/2)},Circ:function(m){return 1-Math.sqrt(1-m*m)},Elastic:function(m){return m===0||m===1?m:-Math.pow(2,8*(m-1))*Math.sin(((m-1)*80-7.5)*Math.PI/15)},Back:function(m){return m*m*(3*m-2)},Bounce:function(m){for(var x,T=4;m<((x=Math.pow(2,--T))-1)/11;);return 1/Math.pow(4,3-T)-7.5625*Math.pow((x*3-2)/22-m,2)}}),n.each(c,function(m,x){n.easing["easeIn"+m]=x,n.easing["easeOut"+m]=function(T){return 1-x(1-T)},n.easing["easeInOut"+m]=function(T){return T<.5?x(T*2)/2:1-x(T*-2+2)/2}})}(),n.effects;/*!
 * jQuery UI Effects Blind 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("blind","hide",function(c,m){var x={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},T=n(this),b=c.direction||"up",d=T.cssClip(),k={clip:n.extend({},d)},D=n.effects.createPlaceholder(T);k.clip[x[b][0]]=k.clip[x[b][1]],c.mode==="show"&&(T.cssClip(k.clip),D&&D.css(n.effects.clipToBox(k)),k.clip=d),D&&D.animate(n.effects.clipToBox(k),c.duration,c.easing),T.animate(k,{queue:!1,duration:c.duration,easing:c.easing,complete:m})});/*!
 * jQuery UI Effects Bounce 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("bounce",function(c,m){var x,T,b,d=n(this),k=c.mode,D=k==="hide",O=k==="show",Q=c.direction||"up",J=c.distance,X=c.times||5,U=X*2+(O||D?1:0),z=c.duration/U,ie=c.easing,de=Q==="up"||Q==="down"?"top":"left",me=Q==="up"||Q==="left",pe=0,qe=d.queue().length;for(n.effects.createPlaceholder(d),b=d.css(de),J||(J=d[de==="top"?"outerHeight":"outerWidth"]()/3),O&&(T={opacity:1},T[de]=b,d.css("opacity",0).css(de,me?-J*2:J*2).animate(T,z,ie)),D&&(J=J/Math.pow(2,X-1)),T={},T[de]=b;pe<X;pe++)x={},x[de]=(me?"-=":"+=")+J,d.animate(x,z,ie).animate(T,z,ie),J=D?J*2:J/2;D&&(x={opacity:0},x[de]=(me?"-=":"+=")+J,d.animate(x,z,ie)),d.queue(m),n.effects.unshift(d,qe,U+1)});/*!
 * jQuery UI Effects Clip 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("clip","hide",function(c,m){var x,T={},b=n(this),d=c.direction||"vertical",k=d==="both",D=k||d==="horizontal",O=k||d==="vertical";x=b.cssClip(),T.clip={top:O?(x.bottom-x.top)/2:x.top,right:D?(x.right-x.left)/2:x.right,bottom:O?(x.bottom-x.top)/2:x.bottom,left:D?(x.right-x.left)/2:x.left},n.effects.createPlaceholder(b),c.mode==="show"&&(b.cssClip(T.clip),T.clip=x),b.animate(T,{queue:!1,duration:c.duration,easing:c.easing,complete:m})});/*!
 * jQuery UI Effects Drop 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("drop","hide",function(c,m){var x,T=n(this),b=c.mode,d=b==="show",k=c.direction||"left",D=k==="up"||k==="down"?"top":"left",O=k==="up"||k==="left"?"-=":"+=",Q=O==="+="?"-=":"+=",J={opacity:0};n.effects.createPlaceholder(T),x=c.distance||T[D==="top"?"outerHeight":"outerWidth"](!0)/2,J[D]=O+x,d&&(T.css(J),J[D]=Q+x,J.opacity=1),T.animate(J,{queue:!1,duration:c.duration,easing:c.easing,complete:m})});/*!
 * jQuery UI Effects Explode 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("explode","hide",function(c,m){var x,T,b,d,k,D,O=c.pieces?Math.round(Math.sqrt(c.pieces)):3,Q=O,J=n(this),X=c.mode,U=X==="show",z=J.show().css("visibility","hidden").offset(),ie=Math.ceil(J.outerWidth()/Q),de=Math.ceil(J.outerHeight()/O),me=[];function pe(){me.push(this),me.length===O*Q&&qe()}for(x=0;x<O;x++)for(d=z.top+x*de,D=x-(O-1)/2,T=0;T<Q;T++)b=z.left+T*ie,k=T-(Q-1)/2,J.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-T*ie,top:-x*de}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:ie,height:de,left:b+(U?k*ie:0),top:d+(U?D*de:0),opacity:U?0:1}).animate({left:b+(U?0:k*ie),top:d+(U?0:D*de),opacity:U?1:0},c.duration||500,c.easing,pe);function qe(){J.css({visibility:"visible"}),n(me).remove(),m()}});/*!
 * jQuery UI Effects Fade 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("fade","toggle",function(c,m){var x=c.mode==="show";n(this).css("opacity",x?0:1).animate({opacity:x?1:0},{queue:!1,duration:c.duration,easing:c.easing,complete:m})});/*!
 * jQuery UI Effects Fold 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("fold","hide",function(c,m){var x=n(this),T=c.mode,b=T==="show",d=T==="hide",k=c.size||15,D=/([0-9]+)%/.exec(k),O=!!c.horizFirst,Q=O?["right","bottom"]:["bottom","right"],J=c.duration/2,X=n.effects.createPlaceholder(x),U=x.cssClip(),z={clip:n.extend({},U)},ie={clip:n.extend({},U)},de=[U[Q[0]],U[Q[1]]],me=x.queue().length;D&&(k=parseInt(D[1],10)/100*de[d?0:1]),z.clip[Q[0]]=k,ie.clip[Q[0]]=k,ie.clip[Q[1]]=0,b&&(x.cssClip(ie.clip),X&&X.css(n.effects.clipToBox(ie)),ie.clip=U),x.queue(function(pe){X&&X.animate(n.effects.clipToBox(z),J,c.easing).animate(n.effects.clipToBox(ie),J,c.easing),pe()}).animate(z,J,c.easing).animate(ie,J,c.easing).queue(m),n.effects.unshift(x,me,4)});/*!
 * jQuery UI Effects Highlight 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("highlight","show",function(c,m){var x=n(this),T={backgroundColor:x.css("backgroundColor")};c.mode==="hide"&&(T.opacity=0),n.effects.saveStyle(x),x.css({backgroundImage:"none",backgroundColor:c.color||"#ffff99"}).animate(T,{queue:!1,duration:c.duration,easing:c.easing,complete:m})});/*!
 * jQuery UI Effects Size 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("size",function(c,m){var x,T,b,d=n(this),k=["fontSize"],D=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],O=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],Q=c.mode,J=Q!=="effect",X=c.scale||"both",U=c.origin||["middle","center"],z=d.css("position"),ie=d.position(),de=n.effects.scaledDimensions(d),me=c.from||de,pe=c.to||n.effects.scaledDimensions(d,0);n.effects.createPlaceholder(d),Q==="show"&&(b=me,me=pe,pe=b),T={from:{y:me.height/de.height,x:me.width/de.width},to:{y:pe.height/de.height,x:pe.width/de.width}},(X==="box"||X==="both")&&(T.from.y!==T.to.y&&(me=n.effects.setTransition(d,D,T.from.y,me),pe=n.effects.setTransition(d,D,T.to.y,pe)),T.from.x!==T.to.x&&(me=n.effects.setTransition(d,O,T.from.x,me),pe=n.effects.setTransition(d,O,T.to.x,pe))),(X==="content"||X==="both")&&T.from.y!==T.to.y&&(me=n.effects.setTransition(d,k,T.from.y,me),pe=n.effects.setTransition(d,k,T.to.y,pe)),U&&(x=n.effects.getBaseline(U,de),me.top=(de.outerHeight-me.outerHeight)*x.y+ie.top,me.left=(de.outerWidth-me.outerWidth)*x.x+ie.left,pe.top=(de.outerHeight-pe.outerHeight)*x.y+ie.top,pe.left=(de.outerWidth-pe.outerWidth)*x.x+ie.left),delete me.outerHeight,delete me.outerWidth,d.css(me),(X==="content"||X==="both")&&(D=D.concat(["marginTop","marginBottom"]).concat(k),O=O.concat(["marginLeft","marginRight"]),d.find("*[width]").each(function(){var qe=n(this),mt=n.effects.scaledDimensions(qe),st={height:mt.height*T.from.y,width:mt.width*T.from.x,outerHeight:mt.outerHeight*T.from.y,outerWidth:mt.outerWidth*T.from.x},dt={height:mt.height*T.to.y,width:mt.width*T.to.x,outerHeight:mt.height*T.to.y,outerWidth:mt.width*T.to.x};T.from.y!==T.to.y&&(st=n.effects.setTransition(qe,D,T.from.y,st),dt=n.effects.setTransition(qe,D,T.to.y,dt)),T.from.x!==T.to.x&&(st=n.effects.setTransition(qe,O,T.from.x,st),dt=n.effects.setTransition(qe,O,T.to.x,dt)),J&&n.effects.saveStyle(qe),qe.css(st),qe.animate(dt,c.duration,c.easing,function(){J&&n.effects.restoreStyle(qe)})})),d.animate(pe,{queue:!1,duration:c.duration,easing:c.easing,complete:function(){var qe=d.offset();pe.opacity===0&&d.css("opacity",me.opacity),J||(d.css("position",z==="static"?"relative":z).offset(qe),n.effects.saveStyle(d)),m()}})});/*!
 * jQuery UI Effects Scale 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("scale",function(c,m){var x=n(this),T=c.mode,b=parseInt(c.percent,10)||(parseInt(c.percent,10)===0||T!=="effect"?0:100),d=n.extend(!0,{from:n.effects.scaledDimensions(x),to:n.effects.scaledDimensions(x,b,c.direction||"both"),origin:c.origin||["middle","center"]},c);c.fade&&(d.from.opacity=1,d.to.opacity=0),n.effects.effect.size.call(this,d,m)});/*!
 * jQuery UI Effects Puff 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("puff","hide",function(c,m){var x=n.extend(!0,{},c,{fade:!0,percent:parseInt(c.percent,10)||150});n.effects.effect.scale.call(this,x,m)});/*!
 * jQuery UI Effects Pulsate 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("pulsate","show",function(c,m){var x=n(this),T=c.mode,b=T==="show",d=T==="hide",k=b||d,D=(c.times||5)*2+(k?1:0),O=c.duration/D,Q=0,J=1,X=x.queue().length;for((b||!x.is(":visible"))&&(x.css("opacity",0).show(),Q=1);J<D;J++)x.animate({opacity:Q},O,c.easing),Q=1-Q;x.animate({opacity:Q},O,c.easing),x.queue(m),n.effects.unshift(x,X,D+1)});/*!
 * jQuery UI Effects Shake 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("shake",function(c,m){var x=1,T=n(this),b=c.direction||"left",d=c.distance||20,k=c.times||3,D=k*2+1,O=Math.round(c.duration/D),Q=b==="up"||b==="down"?"top":"left",J=b==="up"||b==="left",X={},U={},z={},ie=T.queue().length;for(n.effects.createPlaceholder(T),X[Q]=(J?"-=":"+=")+d,U[Q]=(J?"+=":"-=")+d*2,z[Q]=(J?"-=":"+=")+d*2,T.animate(X,O,c.easing);x<k;x++)T.animate(U,O,c.easing).animate(z,O,c.easing);T.animate(U,O,c.easing).animate(X,O/2,c.easing).queue(m),n.effects.unshift(T,ie,D+1)});/*!
 * jQuery UI Effects Slide 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.effects.define("slide","show",function(c,m){var x,T,b=n(this),d={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},k=c.mode,D=c.direction||"left",O=D==="up"||D==="down"?"top":"left",Q=D==="up"||D==="left",J=c.distance||b[O==="top"?"outerHeight":"outerWidth"](!0),X={};n.effects.createPlaceholder(b),x=b.cssClip(),T=b.position()[O],X[O]=(Q?-1:1)*J+T,X.clip=b.cssClip(),X.clip[d[D][1]]=X.clip[d[D][0]],k==="show"&&(b.cssClip(X.clip),b.css(O,X[O]),X.clip=x,X[O]=T),b.animate(X,{queue:!1,duration:c.duration,easing:c.easing,complete:m})}),n.uiBackCompat===!0&&n.effects.define("transfer",function(c,m){n(this).transfer(c,m)});/*!
 * jQuery UI Focusable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.ui.focusable=function(c,m){var x,T,b,d,k,D=c.nodeName.toLowerCase();return D==="area"?(x=c.parentNode,T=x.name,!c.href||!T||x.nodeName.toLowerCase()!=="map"?!1:(b=n("img[usemap='#"+T+"']"),b.length>0&&b.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(D)?(d=!c.disabled,d&&(k=n(c).closest("fieldset")[0],k&&(d=!k.disabled))):D==="a"?d=c.href||m:d=m,d&&n(c).is(":visible")&&n(c).css("visibility")==="visible")},n.extend(n.expr.pseudos,{focusable:function(c){return n.ui.focusable(c,n.attr(c,"tabindex")!=null)}}),n.ui.focusable;/*!
 * jQuery UI Form Reset Mixin 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.ui.formResetMixin={_formResetHandler:function(){var c=n(this);setTimeout(function(){var m=c.data("ui-form-reset-instances");n.each(m,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=n(this.element.prop("form")),!!this.form.length){var c=this.form.data("ui-form-reset-instances")||[];c.length||this.form.on("reset.ui-form-reset",this._formResetHandler),c.push(this),this.form.data("ui-form-reset-instances",c)}},_unbindFormResetHandler:function(){if(this.form.length){var c=this.form.data("ui-form-reset-instances");c.splice(n.inArray(this,c),1),c.length?this.form.data("ui-form-reset-instances",c):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};/*!
 * jQuery UI Legacy jQuery Core patches 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 */n.escapeSelector||(n.escapeSelector=function(c){return CSS.escape(c+"")}),(!n.fn.even||!n.fn.odd)&&n.fn.extend({even:function(){return this.filter(function(c){return c%2===0})},odd:function(){return this.filter(function(c){return c%2===1})}});/*!
 * jQuery UI Keycode 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};/*!
 * jQuery UI Labels 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.fn.labels=function(){var c,m,x,T,b;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(T=this.eq(0).parents("label"),x=this.attr("id"),x&&(c=this.eq(0).parents().last(),b=c.add(c.length?c.siblings():this.siblings()),m="label[for='"+CSS.escape(x)+"']",T=T.add(b.find(m).addBack(m))),this.pushStack(T)):this.pushStack([])};/*!
 * jQuery UI Scroll Parent 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.fn.scrollParent=function(c){var m=this.css("position"),x=m==="absolute",T=c?/(auto|scroll|hidden)/:/(auto|scroll)/,b=this.parents().filter(function(){var d=n(this);return x&&d.css("position")==="static"?!1:T.test(d.css("overflow")+d.css("overflow-y")+d.css("overflow-x"))}).eq(0);return m==="fixed"||!b.length?n(this[0].ownerDocument||document):b};/*!
 * jQuery UI Tabbable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.extend(n.expr.pseudos,{tabbable:function(c){var m=n.attr(c,"tabindex"),x=m!=null;return(!x||m>=0)&&n.ui.focusable(c,x)}});/*!
 * jQuery UI Unique ID 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.fn.extend({uniqueId:function(){var c=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++c)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}});/*!
 * jQuery UI Accordion 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.accordion",{version:"1.14.0",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(c){return c.find("> li > :first-child").add(c.find("> :not(li)").filter(function(m){return m%2===0}))},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var c=this.options;this.prevShow=this.prevHide=n(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),!c.collapsible&&(c.active===!1||c.active==null)&&(c.active=0),this._processPanels(),c.active<0&&(c.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n()}},_createIcons:function(){var c,m,x=this.options.icons;x&&(c=n("<span>"),this._addClass(c,"ui-accordion-header-icon","ui-icon "+x.header),c.prependTo(this.headers),m=this.active.children(".ui-accordion-header-icon"),this._removeClass(m,x.header)._addClass(m,null,x.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var c;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),c=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),this.options.heightStyle!=="content"&&c.css("height","")},_setOption:function(c,m){if(c==="active"){this._activate(m);return}c==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(m)),this._super(c,m),c==="collapsible"&&!m&&this.options.active===!1&&this._activate(0),c==="icons"&&(this._destroyIcons(),m&&this._createIcons())},_setOptionDisabled:function(c){this._super(c),this.element.attr("aria-disabled",c),this._toggleClass(null,"ui-state-disabled",!!c)},_keydown:function(c){if(!(c.altKey||c.ctrlKey)){var m=n.ui.keyCode,x=this.headers.length,T=this.headers.index(c.target),b=!1;switch(c.keyCode){case m.RIGHT:case m.DOWN:b=this.headers[(T+1)%x];break;case m.LEFT:case m.UP:b=this.headers[(T-1+x)%x];break;case m.SPACE:case m.ENTER:this._eventHandler(c);break;case m.HOME:b=this.headers[0];break;case m.END:b=this.headers[x-1];break}b&&(n(c.target).attr("tabIndex",-1),n(b).attr("tabIndex",0),n(b).trigger("focus"),c.preventDefault())}},_panelKeyDown:function(c){c.keyCode===n.ui.keyCode.UP&&c.ctrlKey&&n(c.currentTarget).prev().trigger("focus")},refresh:function(){var c=this.options;this._processPanels(),c.active===!1&&c.collapsible===!0||!this.headers.length?(c.active=!1,this.active=n()):c.active===!1?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(c.active=!1,this.active=n()):this._activate(Math.max(0,c.active-1)):c.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var c=this.headers,m=this.panels;typeof this.options.header=="function"?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),m&&(this._off(c.not(this.headers)),this._off(m.not(this.panels)))},_refresh:function(){var c,m=this.options,x=m.heightStyle,T=this.element.parent();this.active=this._findActive(m.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var b=n(this),d=b.uniqueId().attr("id"),k=b.next(),D=k.uniqueId().attr("id");b.attr("aria-controls",D),k.attr("aria-labelledby",d)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(m.event),x==="fill"?(c=T.height(),this.element.siblings(":visible").each(function(){var b=n(this),d=b.css("position");d==="absolute"||d==="fixed"||(c-=b.outerHeight(!0))}),this.headers.each(function(){c-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,c-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):x==="auto"&&(c=0,this.headers.next().each(function(){var b=n(this).is(":visible");b||n(this).show(),c=Math.max(c,n(this).css("height","").height()),b||n(this).hide()}).height(c))},_activate:function(c){var m=this._findActive(c)[0];m!==this.active[0]&&(m=m||this.active[0],this._eventHandler({target:m,currentTarget:m,preventDefault:n.noop}))},_findActive:function(c){return typeof c=="number"?this.headers.eq(c):n()},_setupEvents:function(c){var m={keydown:"_keydown"};c&&n.each(c.split(" "),function(x,T){m[T]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,m),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(c){var m,x,T=this.options,b=this.active,d=n(c.currentTarget),k=d[0]===b[0],D=k&&T.collapsible,O=D?n():d.next(),Q=b.next(),J={oldHeader:b,oldPanel:Q,newHeader:D?n():d,newPanel:O};c.preventDefault(),!(k&&!T.collapsible||this._trigger("beforeActivate",c,J)===!1)&&(T.active=D?!1:this.headers.index(d),this.active=k?n():d,this._toggle(J),this._removeClass(b,"ui-accordion-header-active","ui-state-active"),T.icons&&(m=b.children(".ui-accordion-header-icon"),this._removeClass(m,null,T.icons.activeHeader)._addClass(m,null,T.icons.header)),k||(this._removeClass(d,"ui-accordion-header-collapsed")._addClass(d,"ui-accordion-header-active","ui-state-active"),T.icons&&(x=d.children(".ui-accordion-header-icon"),this._removeClass(x,null,T.icons.header)._addClass(x,null,T.icons.activeHeader)),this._addClass(d.next(),"ui-accordion-content-active")))},_toggle:function(c){var m=c.newPanel,x=this.prevShow.length?this.prevShow:c.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=m,this.prevHide=x,this.options.animate?this._animate(m,x,c):(x.hide(),m.show(),this._toggleComplete(c)),x.attr({"aria-hidden":"true"}),x.prev().attr({"aria-selected":"false","aria-expanded":"false"}),m.length&&x.length?x.prev().attr({tabIndex:-1,"aria-expanded":"false"}):m.length&&this.headers.filter(function(){return parseInt(n(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1),m.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(c,m,x){var T,b,d,k=this,D=0,O=c.css("box-sizing"),Q=c.length&&(!m.length||c.index()<m.index()),J=this.options.animate||{},X=Q&&J.down||J,U=function(){k._toggleComplete(x)};if(typeof X=="number"&&(d=X),typeof X=="string"&&(b=X),b=b||X.easing||J.easing,d=d||X.duration||J.duration,!m.length)return c.animate(this.showProps,d,b,U);if(!c.length)return m.animate(this.hideProps,d,b,U);T=c.show().outerHeight(),m.animate(this.hideProps,{duration:d,easing:b,step:function(z,ie){ie.now=Math.round(z)}}),c.hide().animate(this.showProps,{duration:d,easing:b,complete:U,step:function(z,ie){ie.now=Math.round(z),ie.prop!=="height"?O==="content-box"&&(D+=ie.now):k.options.heightStyle!=="content"&&(ie.now=Math.round(T-m.outerHeight()-D),D=0)}})},_toggleComplete:function(c){var m=c.oldPanel,x=m.prev();this._removeClass(m,"ui-accordion-content-active"),this._removeClass(x,"ui-accordion-header-active")._addClass(x,"ui-accordion-header-collapsed"),this._trigger("activate",null,c)}});/*!
 * jQuery UI Menu 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.menu",{version:"1.14.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(c){c.preventDefault(),this._activateItem(c)},"click .ui-menu-item":function(c){var m=n(c.target),x=n(this.document[0].activeElement);!this.mouseHandled&&m.not(".ui-state-disabled").length&&(this.select(c),c.isPropagationStopped()||(this.mouseHandled=!0),m.has(".ui-menu").length?this.expand(c):!this.element.is(":focus")&&x.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(c,m){var x=this.active||this._menuItems().first();m||this.focus(c,x)},blur:function(c){this._delay(function(){var m=!n.contains(this.element[0],this.document[0].activeElement);m&&this.collapseAll(c)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(c){this._closeOnDocumentClick(c)&&this.collapseAll(c,!0),this.mouseHandled=!1}})},_activateItem:function(c){if(!this.previousFilter&&!(c.clientX===this.lastMousePosition.x&&c.clientY===this.lastMousePosition.y)){this.lastMousePosition={x:c.clientX,y:c.clientY};var m=n(c.target).closest(".ui-menu-item"),x=n(c.currentTarget);m[0]===x[0]&&(x.is(".ui-state-active")||(this._removeClass(x.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(c,x)))}},_destroy:function(){var c=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),m=c.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),m.children().each(function(){var x=n(this);x.data("ui-menu-submenu-caret")&&x.remove()})},_keydown:function(c){var m,x,T,b,d=!0;switch(c.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(c);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(c);break;case n.ui.keyCode.HOME:this._move("first","first",c);break;case n.ui.keyCode.END:this._move("last","last",c);break;case n.ui.keyCode.UP:this.previous(c);break;case n.ui.keyCode.DOWN:this.next(c);break;case n.ui.keyCode.LEFT:this.collapse(c);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(c);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(c);break;case n.ui.keyCode.ESCAPE:this.collapse(c);break;default:d=!1,x=this.previousFilter||"",b=!1,T=c.keyCode>=96&&c.keyCode<=105?(c.keyCode-96).toString():String.fromCharCode(c.keyCode),clearTimeout(this.filterTimer),T===x?b=!0:T=x+T,m=this._filterMenuItems(T),m=b&&m.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):m,m.length||(T=String.fromCharCode(c.keyCode),m=this._filterMenuItems(T)),m.length?(this.focus(c,m),this.previousFilter=T,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}d&&c.preventDefault()},_activate:function(c){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(c):this.select(c))},refresh:function(){var c,m,x,T,b,d=this,k=this.options.icons.submenu,D=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),x=D.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var O=n(this),Q=O.prev(),J=n("<span>").data("ui-menu-submenu-caret",!0);d._addClass(J,"ui-menu-icon","ui-icon "+k),Q.attr("aria-haspopup","true").prepend(J),O.attr("aria-labelledby",Q.attr("id"))}),this._addClass(x,"ui-menu","ui-widget ui-widget-content ui-front"),c=D.add(this.element),m=c.find(this.options.items),m.not(".ui-menu-item").each(function(){var O=n(this);d._isDivider(O)&&d._addClass(O,"ui-menu-divider","ui-widget-content")}),T=m.not(".ui-menu-item, .ui-menu-divider"),b=T.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(T,"ui-menu-item")._addClass(b,"ui-menu-item-wrapper"),m.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(c,m){if(c==="icons"){var x=this.element.find(".ui-menu-icon");this._removeClass(x,null,this.options.icons.submenu)._addClass(x,null,m.submenu)}this._super(c,m)},_setOptionDisabled:function(c){this._super(c),this.element.attr("aria-disabled",String(c)),this._toggleClass(null,"ui-state-disabled",!!c)},focus:function(c,m){var x,T,b;this.blur(c,c&&c.type==="focus"),this._scrollIntoView(m),this.active=m.first(),T=this.active.children(".ui-menu-item-wrapper"),this._addClass(T,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",T.attr("id")),b=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(b,null,"ui-state-active"),c&&c.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),x=m.children(".ui-menu"),x.length&&c&&/^mouse/.test(c.type)&&this._startOpening(x),this.activeMenu=m.parent(),this._trigger("focus",c,{item:m})},_scrollIntoView:function(c){var m,x,T,b,d,k;this._hasScroll()&&(m=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,x=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,T=c.offset().top-this.activeMenu.offset().top-m-x,b=this.activeMenu.scrollTop(),d=this.activeMenu.height(),k=c.outerHeight(),T<0?this.activeMenu.scrollTop(b+T):T+k>d&&this.activeMenu.scrollTop(b+T-d+k))},blur:function(c,m){m||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",c,{item:this.active}),this.active=null)},_startOpening:function(c){clearTimeout(this.timer),c.attr("aria-hidden")==="true"&&(this.timer=this._delay(function(){this._close(),this._open(c)},this.delay))},_open:function(c){var m=n.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(c.parents(".ui-menu")).hide().attr("aria-hidden","true"),c.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(m)},collapseAll:function(c,m){clearTimeout(this.timer),this.timer=this._delay(function(){var x=m?this.element:n(c&&c.target).closest(this.element.find(".ui-menu"));x.length||(x=this.element),this._close(x),this.blur(c),this._removeClass(x.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=x},m?0:this.delay)},_close:function(c){c||(c=this.active?this.active.parent():this.element),c.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(c){return!n(c.target).closest(".ui-menu").length},_isDivider:function(c){return!/[^\-\u2014\u2013\s]/.test(c.text())},collapse:function(c){var m=this.active&&this.active.parent().closest(".ui-menu-item",this.element);m&&m.length&&(this._close(),this.focus(c,m))},expand:function(c){var m=this.active&&this._menuItems(this.active.children(".ui-menu")).first();m&&m.length&&(this._open(m.parent()),this._delay(function(){this.focus(c,m)}))},next:function(c){this._move("next","first",c)},previous:function(c){this._move("prev","last",c)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(c){return(c||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(c,m,x){var T;this.active&&(c==="first"||c==="last"?T=this.active[c==="first"?"prevAll":"nextAll"](".ui-menu-item").last():T=this.active[c+"All"](".ui-menu-item").first()),(!T||!T.length||!this.active)&&(T=this._menuItems(this.activeMenu)[m]()),this.focus(x,T)},nextPage:function(c){var m,x,T;if(!this.active){this.next(c);return}this.isLastItem()||(this._hasScroll()?(x=this.active.offset().top,T=this.element.innerHeight(),n.fn.jquery.indexOf("3.2.")===0&&(T+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return m=n(this),m.offset().top-x-T<0}),this.focus(c,m)):this.focus(c,this._menuItems(this.activeMenu)[this.active?"last":"first"]()))},previousPage:function(c){var m,x,T;if(!this.active){this.next(c);return}this.isFirstItem()||(this._hasScroll()?(x=this.active.offset().top,T=this.element.innerHeight(),n.fn.jquery.indexOf("3.2.")===0&&(T+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return m=n(this),m.offset().top-x+T>0}),this.focus(c,m)):this.focus(c,this._menuItems(this.activeMenu).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(c){this.active=this.active||n(c.target).closest(".ui-menu-item");var m={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(c,!0),this._trigger("select",c,m)},_filterMenuItems:function(c){var m=c.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),x=new RegExp("^"+m,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return x.test(String.prototype.trim.call(n(this).children(".ui-menu-item-wrapper").text()))})}});/*!
 * jQuery UI Autocomplete 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.autocomplete",{version:"1.14.0",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var c,m,x,T=this.element[0].nodeName.toLowerCase(),b=T==="textarea",d=T==="input";this.isMultiLine=b||!d&&this.element.prop("contentEditable")==="true",this.valueMethod=this.element[b||d?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(k){if(this.element.prop("readOnly")){c=!0,x=!0,m=!0;return}c=!1,x=!1,m=!1;var D=n.ui.keyCode;switch(k.keyCode){case D.PAGE_UP:c=!0,this._move("previousPage",k);break;case D.PAGE_DOWN:c=!0,this._move("nextPage",k);break;case D.UP:c=!0,this._keyEvent("previous",k);break;case D.DOWN:c=!0,this._keyEvent("next",k);break;case D.ENTER:this.menu.active&&(c=!0,k.preventDefault(),this.menu.select(k));break;case D.TAB:this.menu.active&&this.menu.select(k);break;case D.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(k),k.preventDefault());break;default:m=!0,this._searchTimeout(k);break}},keypress:function(k){if(c){c=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&k.preventDefault();return}if(!m){var D=n.ui.keyCode;switch(k.keyCode){case D.PAGE_UP:this._move("previousPage",k);break;case D.PAGE_DOWN:this._move("nextPage",k);break;case D.UP:this._keyEvent("previous",k);break;case D.DOWN:this._keyEvent("next",k);break}}},input:function(k){if(x){x=!1,k.preventDefault();return}this._searchTimeout(k)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(k){clearTimeout(this.searching),this.close(k),this._change(k)}}),this._initSource(),this.menu=n("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(k){k.preventDefault()},menufocus:function(k,D){var O,Q;if(this.isNewMenu&&(this.isNewMenu=!1,k.originalEvent&&/^mouse/.test(k.originalEvent.type))){this.menu.blur(),this.document.one("mousemove",function(){n(k.target).trigger(k.originalEvent)});return}Q=D.item.data("ui-autocomplete-item"),this._trigger("focus",k,{item:Q})!==!1&&k.originalEvent&&/^key/.test(k.originalEvent.type)&&this._value(Q.value),O=D.item.attr("aria-label")||Q.value,O&&String.prototype.trim.call(O).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(n("<div>").text(O))},100))},menuselect:function(k,D){var O=D.item.data("ui-autocomplete-item"),Q=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=Q),this._trigger("select",k,{item:O})!==!1&&this._value(O.value),this.term=this._value(),this.close(k),this.selectedItem=O}}),this.liveRegion=n("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(c,m){this._super(c,m),c==="source"&&this._initSource(),c==="appendTo"&&this.menu.element.appendTo(this._appendTo()),c==="disabled"&&m&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(c){var m=this.menu.element[0];return c.target===this.element[0]||c.target===m||n.contains(m,c.target)},_closeOnClickOutside:function(c){this._isEventTargetInWidget(c)||this.close()},_appendTo:function(){var c=this.options.appendTo;return c&&(c=c.jquery||c.nodeType?n(c):this.document.find(c).eq(0)),(!c||!c[0])&&(c=this.element.closest(".ui-front, dialog")),c.length||(c=this.document[0].body),c},_initSource:function(){var c,m,x=this;Array.isArray(this.options.source)?(c=this.options.source,this.source=function(T,b){b(n.ui.autocomplete.filter(c,T.term))}):typeof this.options.source=="string"?(m=this.options.source,this.source=function(T,b){x.xhr&&x.xhr.abort(),x.xhr=n.ajax({url:m,data:T,dataType:"json",success:function(d){b(d)},error:function(){b([])}})}):this.source=this.options.source},_searchTimeout:function(c){clearTimeout(this.searching),this.searching=this._delay(function(){var m=this.term===this._value(),x=this.menu.element.is(":visible"),T=c.altKey||c.ctrlKey||c.metaKey||c.shiftKey;(!m||m&&!x&&!T)&&(this.selectedItem=null,this.search(null,c))},this.options.delay)},search:function(c,m){if(c=c??this._value(),this.term=this._value(),c.length<this.options.minLength)return this.close(m);if(this._trigger("search",m)!==!1)return this._search(c)},_search:function(c){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:c},this._response())},_response:function(){var c=++this.requestIndex;return(function(m){c===this.requestIndex&&this.__response(m),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}).bind(this)},__response:function(c){c&&(c=this._normalize(c)),this._trigger("response",null,{content:c}),!this.options.disabled&&c&&c.length&&!this.cancelSearch?(this._suggest(c),this._trigger("open")):this._close()},close:function(c){this.cancelSearch=!0,this._close(c)},_close:function(c){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",c))},_change:function(c){this.previous!==this._value()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){return c.length&&c[0].label&&c[0].value?c:n.map(c,function(m){return typeof m=="string"?{label:m,value:m}:n.extend({},m,{label:m.label||m.value,value:m.value||m.label})})},_suggest:function(c){var m=this.menu.element.empty();this._renderMenu(m,c),this.isNewMenu=!0,this.menu.refresh(),m.show(),this._resizeMenu(),m.position(n.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(c,m){var x=this;n.each(m,function(T,b){x._renderItemData(c,b)})},_renderItemData:function(c,m){return this._renderItem(c,m).data("ui-autocomplete-item",m)},_renderItem:function(c,m){return n("<li>").append(n("<div>").text(m.label)).appendTo(c)},_move:function(c,m){if(!this.menu.element.is(":visible")){this.search(null,m);return}if(this.menu.isFirstItem()&&/^previous/.test(c)||this.menu.isLastItem()&&/^next/.test(c)){this.isMultiLine||this._value(this.term),this.menu.blur();return}this.menu[c](m)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(c,m){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(c,m),m.preventDefault())}}),n.extend(n.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(c,m){var x=new RegExp(n.ui.autocomplete.escapeRegex(m),"i");return n.grep(c,function(T){return x.test(T.label||T.value||T)})}}),n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(c){return c+(c>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(c){var m;this._superApply(arguments),!(this.options.disabled||this.cancelSearch)&&(c&&c.length?m=this.options.messages.results(c.length):m=this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(n("<div>").text(m))},100))}}),n.ui.autocomplete;/*!
 * jQuery UI Controlgroup 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */var fe=/ui-corner-([a-z]){2,6}/g;n.widget("ui.controlgroup",{version:"1.14.0",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var c=this,m=[];n.each(this.options.items,function(x,T){var b,d={};if(T){if(x==="controlgroupLabel"){b=c.element.find(T),b.each(function(){var k=n(this);k.children(".ui-controlgroup-label-contents").length||k.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),c._addClass(b,null,"ui-widget ui-widget-content ui-state-default"),m=m.concat(b.get());return}n.fn[x]&&(c["_"+x+"Options"]?d=c["_"+x+"Options"]("middle"):d={classes:{}},c.element.find(T).each(function(){var k=n(this),D=k[x]("instance"),O=n.widget.extend({},d);if(!(x==="button"&&k.parent(".ui-spinner").length)){D||(D=k[x]()[x]("instance")),D&&(O.classes=c._resolveClassesValues(O.classes,D)),k[x](O);var Q=k[x]("widget");n.data(Q[0],"ui-controlgroup-data",D||k[x]("instance")),m.push(Q[0])}}))}}),this.childWidgets=n(n.uniqueSort(m)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(c){this.childWidgets.each(function(){var m=n(this),x=m.data("ui-controlgroup-data");x&&x[c]&&x[c]()})},_updateCornerClass:function(c,m){var x="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",T=this._buildSimpleOptions(m,"label").classes.label;this._removeClass(c,null,x),this._addClass(c,null,T)},_buildSimpleOptions:function(c,m){var x=this.options.direction==="vertical",T={classes:{}};return T.classes[m]={middle:"",first:"ui-corner-"+(x?"top":"left"),last:"ui-corner-"+(x?"bottom":"right"),only:"ui-corner-all"}[c],T},_spinnerOptions:function(c){var m=this._buildSimpleOptions(c,"ui-spinner");return m.classes["ui-spinner-up"]="",m.classes["ui-spinner-down"]="",m},_buttonOptions:function(c){return this._buildSimpleOptions(c,"ui-button")},_checkboxradioOptions:function(c){return this._buildSimpleOptions(c,"ui-checkboxradio-label")},_selectmenuOptions:function(c){var m=this.options.direction==="vertical";return{width:m?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(m?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(m?"top":"left")},last:{"ui-selectmenu-button-open":m?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(m?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[c]}},_resolveClassesValues:function(c,m){var x={};return n.each(c,function(T){var b=m.options.classes[T]||"";b=String.prototype.trim.call(b.replace(fe,"")),x[T]=(b+" "+c[T]).replace(/\s+/g," ")}),x},_setOption:function(c,m){if(c==="direction"&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(c,m),c==="disabled"){this._callChildMethod(m?"disable":"enable");return}this.refresh()},refresh:function(){var c,m=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),this.options.direction==="horizontal"&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),c=this.childWidgets,this.options.onlyVisible&&(c=c.filter(":visible")),c.length&&(n.each(["first","last"],function(x,T){var b=c[T]().data("ui-controlgroup-data");if(b&&m["_"+b.widgetName+"Options"]){var d=m["_"+b.widgetName+"Options"](c.length===1?"only":T);d.classes=m._resolveClassesValues(d.classes,b),b.element[b.widgetName](d)}else m._updateCornerClass(c[T](),T)}),this._callChildMethod("refresh"))}});/*!
 * jQuery UI Checkboxradio 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.checkboxradio",[n.ui.formResetMixin,{version:"1.14.0",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var c,m,x,T=this._super()||{};return this._readType(),m=this.element.labels(),this.label=n(m[m.length-1]),this.label.length||n.error("No label found for checkboxradio widget"),this.originalLabel="",x=this.label.contents().not(this.element[0]),x.length&&(this.originalLabel+=x.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(T.label=this.originalLabel),c=this.element[0].disabled,c!=null&&(T.disabled=c),T},_create:function(){var c=this.element[0].checked;this._bindFormResetHandler(),this.options.disabled==null&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),this.type==="radio"&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),c&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var c=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,(c!=="input"||!/radio|checkbox/.test(this.type))&&n.error("Can't create checkboxradio on element.nodeName="+c+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var c,m=this.element[0].name,x="input[name='"+CSS.escape(m)+"']";return m?(this.form.length?c=n(this.form[0].elements).filter(x):c=n(x).filter(function(){return n(n(this).prop("form")).length===0}),c.not(this.element)):n([])},_toggleClasses:function(){var c=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",c),this.options.icon&&this.type==="checkbox"&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",c)._toggleClass(this.icon,null,"ui-icon-blank",!c),this.type==="radio"&&this._getRadioGroup().each(function(){var m=n(this).checkboxradio("instance");m&&m._removeClass(m.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(c,m){if(!(c==="label"&&!m)){if(this._super(c,m),c==="disabled"){this._toggleClass(this.label,null,"ui-state-disabled",m),this.element[0].disabled=m;return}this.refresh()}},_updateIcon:function(c){var m="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=n("<span>"),this.iconSpace=n("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),this.type==="checkbox"?(m+=c?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,c?"ui-icon-blank":"ui-icon-check")):m+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",m),c||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==void 0&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var c=this.label.contents().not(this.element[0]);this.icon&&(c=c.not(this.icon[0])),this.iconSpace&&(c=c.not(this.iconSpace[0])),c.remove(),this.label.append(this.options.label)},refresh:function(){var c=this.element[0].checked,m=this.element[0].disabled;this._updateIcon(c),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",c),this.options.label!==null&&this._updateLabel(),m!==this.options.disabled&&this._setOptions({disabled:m})}}]),n.ui.checkboxradio;/*!
 * jQuery UI Button 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.button",{version:"1.14.0",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var c,m=this._super()||{};return this.isInput=this.element.is("input"),c=this.element[0].disabled,c!=null&&(m.disabled=c),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(m.label=this.originalLabel),m},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),this.options.disabled==null&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(c){c.keyCode===n.ui.keyCode.SPACE&&(c.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),!this.options.showLabel&&!this.title&&this.element.attr("title",this.options.label)},_updateIcon:function(c,m){var x=c!=="iconPosition",T=x?this.options.iconPosition:m,b=T==="top"||T==="bottom";this.icon?x&&this._removeClass(this.icon,null,this.options.icon):(this.icon=n("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),x&&this._addClass(this.icon,null,m),this._attachIcon(T),b?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=n("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(T))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(c){this.icon[/^(?:end|bottom)/.test(c)?"before":"after"](this.iconSpace)},_attachIcon:function(c){this.element[/^(?:end|bottom)/.test(c)?"append":"prepend"](this.icon)},_setOptions:function(c){var m=c.showLabel===void 0?this.options.showLabel:c.showLabel,x=c.icon===void 0?this.options.icon:c.icon;!m&&!x&&(c.showLabel=!0),this._super(c)},_setOption:function(c,m){c==="icon"&&(m?this._updateIcon(c,m):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),c==="iconPosition"&&this._updateIcon(c,m),c==="showLabel"&&(this._toggleClass("ui-button-icon-only",null,!m),this._updateTooltip()),c==="label"&&(this.isInput?this.element.val(m):(this.element.html(m),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(c,m),c==="disabled"&&(this._toggleClass(null,"ui-state-disabled",m),this.element[0].disabled=m,m&&this.element.trigger("blur"))},refresh:function(){var c=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");c!==this.options.disabled&&this._setOptions({disabled:c}),this._updateTooltip()}}),n.uiBackCompat===!0&&(n.widget("ui.button",n.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon),this._super()},_setOption:function(c,m){if(c==="text"){this._super("showLabel",m);return}c==="showLabel"&&(this.options.text=m),c==="icon"&&(this.options.icons.primary=m),c==="icons"&&(m.primary?(this._super("icon",m.primary),this._super("iconPosition","beginning")):m.secondary&&(this._super("icon",m.secondary),this._super("iconPosition","end"))),this._superApply(arguments)}}),n.fn.button=function(c){return function(m){var x=typeof m=="string",T=Array.prototype.slice.call(arguments,1),b=this;return x?!this.length&&m==="instance"?b=void 0:this.each(function(){var d,k=n(this).attr("type"),D=k!=="checkbox"&&k!=="radio"?"button":"checkboxradio",O=n.data(this,"ui-"+D);if(m==="instance")return b=O,!1;if(!O)return n.error("cannot call methods on button prior to initialization; attempted to call method '"+m+"'");if(typeof O[m]!="function"||m.charAt(0)==="_")return n.error("no such method '"+m+"' for button widget instance");if(d=O[m].apply(O,T),d!==O&&d!==void 0)return b=d&&d.jquery?b.pushStack(d.get()):d,!1}):(T.length&&(m=n.widget.extend.apply(null,[m].concat(T))),this.each(function(){var d=n(this).attr("type"),k=d!=="checkbox"&&d!=="radio"?"button":"checkboxradio",D=n.data(this,"ui-"+k);if(D)D.option(m||{}),D._init&&D._init();else{if(k==="button"){c.call(n(this),m);return}n(this).checkboxradio(n.extend({icon:!1},m))}})),b}}(n.fn.button),n.fn.buttonset=function(){return n.ui.controlgroup||n.error("Controlgroup widget missing"),arguments[0]==="option"&&arguments[1]==="items"&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):arguments[0]==="option"&&arguments[1]==="items"?this.controlgroup.apply(this,[arguments[0],"items.button"]):(typeof arguments[0]=="object"&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),n.ui.button;/*!
 * jQuery UI Datepicker 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.extend(n.ui,{datepicker:{version:"1.14.0"}});var V;function le(c){for(var m,x;c.length&&c[0]!==document;){if(m=c.css("position"),(m==="absolute"||m==="relative"||m==="fixed")&&(x=parseInt(c.css("zIndex"),10),!isNaN(x)&&x!==0))return x;c=c.parent()}return 0}function he(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},n.extend(this._defaults,this.regional[""]),this.regional.en=n.extend(!0,{},this.regional[""]),this.regional["en-US"]=n.extend(!0,{},this.regional.en),this.dpDiv=ye(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}n.extend(he.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(c){return p(this._defaults,c||{}),this},_attachDatepicker:function(c,m){var x,T,b;x=c.nodeName.toLowerCase(),T=x==="div"||x==="span",c.id||(this.uuid+=1,c.id="dp"+this.uuid),b=this._newInst(n(c),T),b.settings=n.extend({},m||{}),x==="input"?this._connectDatepicker(c,b):T&&this._inlineDatepicker(c,b)},_newInst:function(c,m){var x=c[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:x,input:c,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:m,dpDiv:m?ye(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(c,m){var x=n(c);m.append=n([]),m.trigger=n([]),!x.hasClass(this.markerClassName)&&(this._attachments(x,m),x.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(m),n.data(c,"datepicker",m),m.settings.disabled&&this._disableDatepicker(c))},_attachments:function(c,m){var x,T,b,d=this._get(m,"appendText"),k=this._get(m,"isRTL");m.append&&m.append.remove(),d&&(m.append=n("<span>").addClass(this._appendClass).text(d),c[k?"before":"after"](m.append)),c.off("focus",this._showDatepicker),m.trigger&&m.trigger.remove(),x=this._get(m,"showOn"),(x==="focus"||x==="both")&&c.on("focus",this._showDatepicker),(x==="button"||x==="both")&&(T=this._get(m,"buttonText"),b=this._get(m,"buttonImage"),this._get(m,"buttonImageOnly")?m.trigger=n("<img>").addClass(this._triggerClass).attr({src:b,alt:T,title:T}):(m.trigger=n("<button type='button'>").addClass(this._triggerClass),b?m.trigger.html(n("<img>").attr({src:b,alt:T,title:T})):m.trigger.text(T)),c[k?"before":"after"](m.trigger),m.trigger.on("click",function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===c[0]?n.datepicker._hideDatepicker():(n.datepicker._datepickerShowing&&n.datepicker._lastInput!==c[0]&&n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(c[0])),!1}))},_autoSize:function(c){if(this._get(c,"autoSize")&&!c.inline){var m,x,T,b,d=new Date(2009,11,20),k=this._get(c,"dateFormat");k.match(/[DM]/)&&(m=function(D){for(x=0,T=0,b=0;b<D.length;b++)D[b].length>x&&(x=D[b].length,T=b);return T},d.setMonth(m(this._get(c,k.match(/MM/)?"monthNames":"monthNamesShort"))),d.setDate(m(this._get(c,k.match(/DD/)?"dayNames":"dayNamesShort"))+20-d.getDay())),c.input.attr("size",this._formatDate(c,d).length)}},_inlineDatepicker:function(c,m){var x=n(c);x.hasClass(this.markerClassName)||(x.addClass(this.markerClassName).append(m.dpDiv),n.data(c,"datepicker",m),this._setDate(m,this._getDefaultDate(m),!0),this._updateDatepicker(m),this._updateAlternate(m),m.settings.disabled&&this._disableDatepicker(c),m.dpDiv.css("display","block"))},_dialogDatepicker:function(c,m,x,T,b){var d,k,D,O,Q,J=this._dialogInst;return J||(this.uuid+=1,d="dp"+this.uuid,this._dialogInput=n("<input type='text' id='"+d+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),n("body").append(this._dialogInput),J=this._dialogInst=this._newInst(this._dialogInput,!1),J.settings={},n.data(this._dialogInput[0],"datepicker",J)),p(J.settings,T||{}),m=m&&m.constructor===Date?this._formatDate(J,m):m,this._dialogInput.val(m),this._pos=b?b.length?b:[b.pageX,b.pageY]:null,this._pos||(k=document.documentElement.clientWidth,D=document.documentElement.clientHeight,O=document.documentElement.scrollLeft||document.body.scrollLeft,Q=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[k/2-100+O,D/2-150+Q]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),J.settings.onSelect=x,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],"datepicker",J),this},_destroyDatepicker:function(c){var m,x=n(c),T=n.data(c,"datepicker");x.hasClass(this.markerClassName)&&(m=c.nodeName.toLowerCase(),n.removeData(c,"datepicker"),m==="input"?(T.append.remove(),T.trigger.remove(),x.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(m==="div"||m==="span")&&x.removeClass(this.markerClassName).empty(),n.datepicker._hideDatepicker(),V===T&&(V=null,this._curInst=null))},_enableDatepicker:function(c){var m,x,T=n(c),b=n.data(c,"datepicker");T.hasClass(this.markerClassName)&&(m=c.nodeName.toLowerCase(),m==="input"?(c.disabled=!1,b.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(m==="div"||m==="span")&&(x=T.children("."+this._inlineClass),x.children().removeClass("ui-state-disabled"),x.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(d){return d===c?null:d}))},_disableDatepicker:function(c){var m,x,T=n(c),b=n.data(c,"datepicker");T.hasClass(this.markerClassName)&&(m=c.nodeName.toLowerCase(),m==="input"?(c.disabled=!0,b.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(m==="div"||m==="span")&&(x=T.children("."+this._inlineClass),x.children().addClass("ui-state-disabled"),x.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(d){return d===c?null:d}),this._disabledInputs[this._disabledInputs.length]=c)},_isDisabledDatepicker:function(c){if(!c)return!1;for(var m=0;m<this._disabledInputs.length;m++)if(this._disabledInputs[m]===c)return!0;return!1},_getInst:function(c){try{return n.data(c,"datepicker")}catch{throw"Missing instance data for this datepicker"}},_optionDatepicker:function(c,m,x){var T,b,d,k,D=this._getInst(c);if(arguments.length===2&&typeof m=="string")return m==="defaults"?n.extend({},n.datepicker._defaults):D?m==="all"?n.extend({},D.settings):this._get(D,m):null;T=m||{},typeof m=="string"&&(T={},T[m]=x),D&&(this._curInst===D&&this._hideDatepicker(),b=this._getDateDatepicker(c,!0),d=this._getMinMaxDate(D,"min"),k=this._getMinMaxDate(D,"max"),p(D.settings,T),d!==null&&T.dateFormat!==void 0&&T.minDate===void 0&&(D.settings.minDate=this._formatDate(D,d)),k!==null&&T.dateFormat!==void 0&&T.maxDate===void 0&&(D.settings.maxDate=this._formatDate(D,k)),"disabled"in T&&(T.disabled?this._disableDatepicker(c):this._enableDatepicker(c)),this._attachments(n(c),D),this._autoSize(D),this._setDate(D,b),this._updateAlternate(D),this._updateDatepicker(D))},_changeDatepicker:function(c,m,x){this._optionDatepicker(c,m,x)},_refreshDatepicker:function(c){var m=this._getInst(c);m&&this._updateDatepicker(m)},_setDateDatepicker:function(c,m){var x=this._getInst(c);x&&(this._setDate(x,m),this._updateDatepicker(x),this._updateAlternate(x))},_getDateDatepicker:function(c,m){var x=this._getInst(c);return x&&!x.inline&&this._setDateFromField(x,m),x?this._getDate(x):null},_doKeyDown:function(c){var m,x,T,b=n.datepicker._getInst(c.target),d=!0,k=b.dpDiv.is(".ui-datepicker-rtl");if(b._keyEvent=!0,n.datepicker._datepickerShowing)switch(c.keyCode){case 9:n.datepicker._hideDatepicker(),d=!1;break;case 13:return T=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",b.dpDiv),T[0]&&n.datepicker._selectDay(c.target,b.selectedMonth,b.selectedYear,T[0]),m=n.datepicker._get(b,"onSelect"),m?(x=n.datepicker._formatDate(b),m.apply(b.input?b.input[0]:null,[x,b])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(c.target,c.ctrlKey?-n.datepicker._get(b,"stepBigMonths"):-n.datepicker._get(b,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(c.target,c.ctrlKey?+n.datepicker._get(b,"stepBigMonths"):+n.datepicker._get(b,"stepMonths"),"M");break;case 35:(c.ctrlKey||c.metaKey)&&n.datepicker._clearDate(c.target),d=c.ctrlKey||c.metaKey;break;case 36:(c.ctrlKey||c.metaKey)&&n.datepicker._gotoToday(c.target),d=c.ctrlKey||c.metaKey;break;case 37:(c.ctrlKey||c.metaKey)&&n.datepicker._adjustDate(c.target,k?1:-1,"D"),d=c.ctrlKey||c.metaKey,c.originalEvent.altKey&&n.datepicker._adjustDate(c.target,c.ctrlKey?-n.datepicker._get(b,"stepBigMonths"):-n.datepicker._get(b,"stepMonths"),"M");break;case 38:(c.ctrlKey||c.metaKey)&&n.datepicker._adjustDate(c.target,-7,"D"),d=c.ctrlKey||c.metaKey;break;case 39:(c.ctrlKey||c.metaKey)&&n.datepicker._adjustDate(c.target,k?-1:1,"D"),d=c.ctrlKey||c.metaKey,c.originalEvent.altKey&&n.datepicker._adjustDate(c.target,c.ctrlKey?+n.datepicker._get(b,"stepBigMonths"):+n.datepicker._get(b,"stepMonths"),"M");break;case 40:(c.ctrlKey||c.metaKey)&&n.datepicker._adjustDate(c.target,7,"D"),d=c.ctrlKey||c.metaKey;break;default:d=!1}else c.keyCode===36&&c.ctrlKey?n.datepicker._showDatepicker(this):d=!1;d&&(c.preventDefault(),c.stopPropagation())},_doKeyPress:function(c){var m,x,T=n.datepicker._getInst(c.target);if(n.datepicker._get(T,"constrainInput"))return m=n.datepicker._possibleChars(n.datepicker._get(T,"dateFormat")),x=String.fromCharCode(c.charCode==null?c.keyCode:c.charCode),c.ctrlKey||c.metaKey||x<" "||!m||m.indexOf(x)>-1},_doKeyUp:function(c){var m,x=n.datepicker._getInst(c.target);if(x.input.val()!==x.lastVal)try{m=n.datepicker.parseDate(n.datepicker._get(x,"dateFormat"),x.input?x.input.val():null,n.datepicker._getFormatConfig(x)),m&&(n.datepicker._setDateFromField(x),n.datepicker._updateAlternate(x),n.datepicker._updateDatepicker(x))}catch{}return!0},_showDatepicker:function(c){if(c=c.target||c,c.nodeName.toLowerCase()!=="input"&&(c=n("input",c.parentNode)[0]),!(n.datepicker._isDisabledDatepicker(c)||n.datepicker._lastInput===c)){var m,x,T,b,d,k,D;m=n.datepicker._getInst(c),n.datepicker._curInst&&n.datepicker._curInst!==m&&(n.datepicker._curInst.dpDiv.stop(!0,!0),m&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),x=n.datepicker._get(m,"beforeShow"),T=x?x.apply(c,[c,m]):{},T!==!1&&(p(m.settings,T),m.lastVal=null,n.datepicker._lastInput=c,n.datepicker._setDateFromField(m),n.datepicker._inDialog&&(c.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(c),n.datepicker._pos[1]+=c.offsetHeight),b=!1,n(c).parents().each(function(){return b|=n(this).css("position")==="fixed",!b}),d={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,m.dpDiv.empty(),m.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(m),d=n.datepicker._checkOffset(m,d,b),m.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":b?"fixed":"absolute",display:"none",left:d.left+"px",top:d.top+"px"}),m.inline||(k=n.datepicker._get(m,"showAnim"),D=n.datepicker._get(m,"duration"),m.dpDiv.css("z-index",le(n(c))+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[k]?m.dpDiv.show(k,n.datepicker._get(m,"showOptions"),D):m.dpDiv[k||"show"](k?D:null),n.datepicker._shouldFocusInput(m)&&m.input.trigger("focus"),n.datepicker._curInst=m))}},_updateDatepicker:function(c){this.maxRows=4,V=c,c.dpDiv.empty().append(this._generateHTML(c)),this._attachHandlers(c);var m,x=this._getNumberOfMonths(c),T=x[1],b=17,d=c.dpDiv.find("."+this._dayOverClass+" a"),k=n.datepicker._get(c,"onUpdateDatepicker");d.length>0&&L.apply(d.get(0)),c.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),T>1&&c.dpDiv.addClass("ui-datepicker-multi-"+T).css("width",b*T+"em"),c.dpDiv[(x[0]!==1||x[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),c.dpDiv[(this._get(c,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),c===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(c)&&c.input.trigger("focus"),c.yearshtml&&(m=c.yearshtml,setTimeout(function(){m===c.yearshtml&&c.yearshtml&&c.dpDiv.find("select.ui-datepicker-year").first().replaceWith(c.yearshtml),m=c.yearshtml=null},0)),k&&k.apply(c.input?c.input[0]:null,[c])},_shouldFocusInput:function(c){return c.input&&c.input.is(":visible")&&!c.input.is(":disabled")},_checkOffset:function(c,m,x){var T=c.dpDiv.outerWidth(),b=c.dpDiv.outerHeight(),d=c.input?c.input.outerWidth():0,k=c.input?c.input.outerHeight():0,D=document.documentElement.clientWidth+(x?0:n(document).scrollLeft()),O=document.documentElement.clientHeight+(x?0:n(document).scrollTop());return m.left-=this._get(c,"isRTL")?T-d:0,m.left-=x&&m.left===c.input.offset().left?n(document).scrollLeft():0,m.top-=x&&m.top===c.input.offset().top+k?n(document).scrollTop():0,m.left-=Math.min(m.left,m.left+T>D&&D>T?Math.abs(m.left+T-D):0),m.top-=Math.min(m.top,m.top+b>O&&O>b?Math.abs(b+k):0),m},_findPos:function(c){for(var m,x=this._getInst(c),T=this._get(x,"isRTL");c&&(c.type==="hidden"||c.nodeType!==1||n.expr.pseudos.hidden(c));)c=c[T?"previousSibling":"nextSibling"];return m=n(c).offset(),[m.left,m.top]},_hideDatepicker:function(c){var m,x,T,b,d=this._curInst;!d||c&&d!==n.data(c,"datepicker")||this._datepickerShowing&&(m=this._get(d,"showAnim"),x=this._get(d,"duration"),T=function(){n.datepicker._tidyDialog(d)},n.effects&&n.effects.effect[m]?d.dpDiv.hide(m,n.datepicker._get(d,"showOptions"),x,T):d.dpDiv[m==="slideDown"?"slideUp":m==="fadeIn"?"fadeOut":"hide"](m?x:null,T),m||T(),this._datepickerShowing=!1,b=this._get(d,"onClose"),b&&b.apply(d.input?d.input[0]:null,[d.input?d.input.val():"",d]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(c){c.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(c){if(n.datepicker._curInst){var m=n(c.target),x=n.datepicker._getInst(m[0]);(m[0].id!==n.datepicker._mainDivId&&m.parents("#"+n.datepicker._mainDivId).length===0&&!m.hasClass(n.datepicker.markerClassName)&&!m.closest("."+n.datepicker._triggerClass).length&&n.datepicker._datepickerShowing&&!(n.datepicker._inDialog&&n.blockUI)||m.hasClass(n.datepicker.markerClassName)&&n.datepicker._curInst!==x)&&n.datepicker._hideDatepicker()}},_adjustDate:function(c,m,x){var T=n(c),b=this._getInst(T[0]);this._isDisabledDatepicker(T[0])||(this._adjustInstDate(b,m,x),this._updateDatepicker(b))},_gotoToday:function(c){var m,x=n(c),T=this._getInst(x[0]);this._get(T,"gotoCurrent")&&T.currentDay?(T.selectedDay=T.currentDay,T.drawMonth=T.selectedMonth=T.currentMonth,T.drawYear=T.selectedYear=T.currentYear):(m=new Date,T.selectedDay=m.getDate(),T.drawMonth=T.selectedMonth=m.getMonth(),T.drawYear=T.selectedYear=m.getFullYear()),this._notifyChange(T),this._adjustDate(x)},_selectMonthYear:function(c,m,x){var T=n(c),b=this._getInst(T[0]);b["selected"+(x==="M"?"Month":"Year")]=b["draw"+(x==="M"?"Month":"Year")]=parseInt(m.options[m.selectedIndex].value,10),this._notifyChange(b),this._adjustDate(T)},_selectDay:function(c,m,x,T){var b,d=n(c);n(T).hasClass(this._unselectableClass)||this._isDisabledDatepicker(d[0])||(b=this._getInst(d[0]),b.selectedDay=b.currentDay=parseInt(n("a",T).attr("data-date")),b.selectedMonth=b.currentMonth=m,b.selectedYear=b.currentYear=x,this._selectDate(c,this._formatDate(b,b.currentDay,b.currentMonth,b.currentYear)))},_clearDate:function(c){var m=n(c);this._selectDate(m,"")},_selectDate:function(c,m){var x,T=n(c),b=this._getInst(T[0]);m=m??this._formatDate(b),b.input&&b.input.val(m),this._updateAlternate(b),x=this._get(b,"onSelect"),x?x.apply(b.input?b.input[0]:null,[m,b]):b.input&&b.input.trigger("change"),b.inline?this._updateDatepicker(b):(this._hideDatepicker(),this._lastInput=b.input[0],typeof b.input[0]!="object"&&b.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(c){var m,x,T,b=this._get(c,"altField");b&&(m=this._get(c,"altFormat")||this._get(c,"dateFormat"),x=this._getDate(c),T=this.formatDate(m,x,this._getFormatConfig(c)),n(document).find(b).val(T))},noWeekends:function(c){var m=c.getDay();return[m>0&&m<6,""]},iso8601Week:function(c){var m,x=new Date(c.getTime());return x.setDate(x.getDate()+4-(x.getDay()||7)),m=x.getTime(),x.setMonth(0),x.setDate(1),Math.floor(Math.round((m-x)/864e5)/7)+1},parseDate:function(c,m,x){if(c==null||m==null)throw"Invalid arguments";if(m=typeof m=="object"?m.toString():m+"",m==="")return null;var T,b,d,k=0,D=(x?x.shortYearCutoff:null)||this._defaults.shortYearCutoff,O=typeof D!="string"?D:new Date().getFullYear()%100+parseInt(D,10),Q=(x?x.dayNamesShort:null)||this._defaults.dayNamesShort,J=(x?x.dayNames:null)||this._defaults.dayNames,X=(x?x.monthNamesShort:null)||this._defaults.monthNamesShort,U=(x?x.monthNames:null)||this._defaults.monthNames,z=-1,ie=-1,de=-1,me=-1,pe=!1,qe,mt=function(lt){var Je=T+1<c.length&&c.charAt(T+1)===lt;return Je&&T++,Je},st=function(lt){var Je=mt(lt),ht=lt==="@"?14:lt==="!"?20:lt==="y"&&Je?4:lt==="o"?3:2,at=lt==="y"?ht:1,bt=new RegExp("^\\d{"+at+","+ht+"}"),jt=m.substring(k).match(bt);if(!jt)throw"Missing number at position "+k;return k+=jt[0].length,parseInt(jt[0],10)},dt=function(lt,Je,ht){var at=-1,bt=n.map(mt(lt)?ht:Je,function(jt,Ge){return[[Ge,jt]]}).sort(function(jt,Ge){return-(jt[1].length-Ge[1].length)});if(n.each(bt,function(jt,Ge){var Qe=Ge[1];if(m.substr(k,Qe.length).toLowerCase()===Qe.toLowerCase())return at=Ge[0],k+=Qe.length,!1}),at!==-1)return at+1;throw"Unknown name at position "+k},Tt=function(){if(m.charAt(k)!==c.charAt(T))throw"Unexpected literal at position "+k;k++};for(T=0;T<c.length;T++)if(pe)c.charAt(T)==="'"&&!mt("'")?pe=!1:Tt();else switch(c.charAt(T)){case"d":de=st("d");break;case"D":dt("D",Q,J);break;case"o":me=st("o");break;case"m":ie=st("m");break;case"M":ie=dt("M",X,U);break;case"y":z=st("y");break;case"@":qe=new Date(st("@")),z=qe.getFullYear(),ie=qe.getMonth()+1,de=qe.getDate();break;case"!":qe=new Date((st("!")-this._ticksTo1970)/1e4),z=qe.getFullYear(),ie=qe.getMonth()+1,de=qe.getDate();break;case"'":mt("'")?Tt():pe=!0;break;default:Tt()}if(k<m.length&&(d=m.substr(k),!/^\s+/.test(d)))throw"Extra/unparsed characters found in date: "+d;if(z===-1?z=new Date().getFullYear():z<100&&(z+=new Date().getFullYear()-new Date().getFullYear()%100+(z<=O?0:-100)),me>-1){ie=1,de=me;do{if(b=this._getDaysInMonth(z,ie-1),de<=b)break;ie++,de-=b}while(!0)}if(qe=this._daylightSavingAdjust(new Date(z,ie-1,de)),qe.getFullYear()!==z||qe.getMonth()+1!==ie||qe.getDate()!==de)throw"Invalid date";return qe},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7,formatDate:function(c,m,x){if(!m)return"";var T,b=(x?x.dayNamesShort:null)||this._defaults.dayNamesShort,d=(x?x.dayNames:null)||this._defaults.dayNames,k=(x?x.monthNamesShort:null)||this._defaults.monthNamesShort,D=(x?x.monthNames:null)||this._defaults.monthNames,O=function(z){var ie=T+1<c.length&&c.charAt(T+1)===z;return ie&&T++,ie},Q=function(z,ie,de){var me=""+ie;if(O(z))for(;me.length<de;)me="0"+me;return me},J=function(z,ie,de,me){return O(z)?me[ie]:de[ie]},X="",U=!1;if(m)for(T=0;T<c.length;T++)if(U)c.charAt(T)==="'"&&!O("'")?U=!1:X+=c.charAt(T);else switch(c.charAt(T)){case"d":X+=Q("d",m.getDate(),2);break;case"D":X+=J("D",m.getDay(),b,d);break;case"o":X+=Q("o",Math.round((new Date(m.getFullYear(),m.getMonth(),m.getDate()).getTime()-new Date(m.getFullYear(),0,0).getTime())/864e5),3);break;case"m":X+=Q("m",m.getMonth()+1,2);break;case"M":X+=J("M",m.getMonth(),k,D);break;case"y":X+=O("y")?m.getFullYear():(m.getFullYear()%100<10?"0":"")+m.getFullYear()%100;break;case"@":X+=m.getTime();break;case"!":X+=m.getTime()*1e4+this._ticksTo1970;break;case"'":O("'")?X+="'":U=!0;break;default:X+=c.charAt(T)}return X},_possibleChars:function(c){var m,x="",T=!1,b=function(d){var k=m+1<c.length&&c.charAt(m+1)===d;return k&&m++,k};for(m=0;m<c.length;m++)if(T)c.charAt(m)==="'"&&!b("'")?T=!1:x+=c.charAt(m);else switch(c.charAt(m)){case"d":case"m":case"y":case"@":x+="0123456789";break;case"D":case"M":return null;case"'":b("'")?x+="'":T=!0;break;default:x+=c.charAt(m)}return x},_get:function(c,m){return c.settings[m]!==void 0?c.settings[m]:this._defaults[m]},_setDateFromField:function(c,m){if(c.input.val()!==c.lastVal){var x=this._get(c,"dateFormat"),T=c.lastVal=c.input?c.input.val():null,b=this._getDefaultDate(c),d=b,k=this._getFormatConfig(c);try{d=this.parseDate(x,T,k)||b}catch{T=m?"":T}c.selectedDay=d.getDate(),c.drawMonth=c.selectedMonth=d.getMonth(),c.drawYear=c.selectedYear=d.getFullYear(),c.currentDay=T?d.getDate():0,c.currentMonth=T?d.getMonth():0,c.currentYear=T?d.getFullYear():0,this._adjustInstDate(c)}},_getDefaultDate:function(c){return this._restrictMinMax(c,this._determineDate(c,this._get(c,"defaultDate"),new Date))},_determineDate:function(c,m,x){var T=function(k){var D=new Date;return D.setDate(D.getDate()+k),D},b=function(k){try{return n.datepicker.parseDate(n.datepicker._get(c,"dateFormat"),k,n.datepicker._getFormatConfig(c))}catch{}for(var D=(k.toLowerCase().match(/^c/)?n.datepicker._getDate(c):null)||new Date,O=D.getFullYear(),Q=D.getMonth(),J=D.getDate(),X=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,U=X.exec(k);U;){switch(U[2]||"d"){case"d":case"D":J+=parseInt(U[1],10);break;case"w":case"W":J+=parseInt(U[1],10)*7;break;case"m":case"M":Q+=parseInt(U[1],10),J=Math.min(J,n.datepicker._getDaysInMonth(O,Q));break;case"y":case"Y":O+=parseInt(U[1],10),J=Math.min(J,n.datepicker._getDaysInMonth(O,Q));break}U=X.exec(k)}return new Date(O,Q,J)},d=m==null||m===""?x:typeof m=="string"?b(m):typeof m=="number"?isNaN(m)?x:T(m):new Date(m.getTime());return d=d&&d.toString()==="Invalid Date"?x:d,d&&(d.setHours(0),d.setMinutes(0),d.setSeconds(0),d.setMilliseconds(0)),this._daylightSavingAdjust(d)},_daylightSavingAdjust:function(c){return c?(c.setHours(c.getHours()>12?c.getHours()+2:0),c):null},_setDate:function(c,m,x){var T=!m,b=c.selectedMonth,d=c.selectedYear,k=this._restrictMinMax(c,this._determineDate(c,m,new Date));c.selectedDay=c.currentDay=k.getDate(),c.drawMonth=c.selectedMonth=c.currentMonth=k.getMonth(),c.drawYear=c.selectedYear=c.currentYear=k.getFullYear(),(b!==c.selectedMonth||d!==c.selectedYear)&&!x&&this._notifyChange(c),this._adjustInstDate(c),c.input&&c.input.val(T?"":this._formatDate(c))},_getDate:function(c){var m=!c.currentYear||c.input&&c.input.val()===""?null:this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay));return m},_attachHandlers:function(c){var m=this._get(c,"stepMonths"),x="#"+c.id.replace(/\\\\/g,"\\");c.dpDiv.find("[data-handler]").map(function(){var T={prev:function(){n.datepicker._adjustDate(x,-m,"M")},next:function(){n.datepicker._adjustDate(x,+m,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(x)},selectDay:function(){return n.datepicker._selectDay(x,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(x,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(x,this,"Y"),!1}};n(this).on(this.getAttribute("data-event"),T[this.getAttribute("data-handler")])})},_generateHTML:function(c){var m,x,T,b,d,k,D,O,Q,J,X,U,z,ie,de,me,pe,qe,mt,st,dt,Tt,lt,Je,ht,at,bt,jt,Ge,Qe,Wt,Et,Ct,Kt,Me,te,_e,je,We,et=new Date,Ye=this._daylightSavingAdjust(new Date(et.getFullYear(),et.getMonth(),et.getDate())),De=this._get(c,"isRTL"),Ht=this._get(c,"showButtonPanel"),Mt=this._get(c,"hideIfNoPrevNext"),ge=this._get(c,"navigationAsDateFormat"),Dt=this._getNumberOfMonths(c),yt=this._get(c,"showCurrentAtPos"),Ne=this._get(c,"stepMonths"),_t=Dt[0]!==1||Dt[1]!==1,pt=this._daylightSavingAdjust(c.currentDay?new Date(c.currentYear,c.currentMonth,c.currentDay):new Date(9999,9,9)),Bt=this._getMinMaxDate(c,"min"),ur=this._getMinMaxDate(c,"max"),kt=c.drawMonth-yt,Ut=c.drawYear;if(kt<0&&(kt+=12,Ut--),ur)for(m=this._daylightSavingAdjust(new Date(ur.getFullYear(),ur.getMonth()-Dt[0]*Dt[1]+1,ur.getDate())),m=Bt&&m<Bt?Bt:m;this._daylightSavingAdjust(new Date(Ut,kt,1))>m;)kt--,kt<0&&(kt=11,Ut--);for(c.drawMonth=kt,c.drawYear=Ut,x=this._get(c,"prevText"),x=ge?this.formatDate(x,this._daylightSavingAdjust(new Date(Ut,kt-Ne,1)),this._getFormatConfig(c)):x,this._canAdjustMonth(c,-1,Ut,kt)?T=n("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:x}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(De?"e":"w")).text(x))[0].outerHTML:Mt?T="":T=n("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:x}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(De?"e":"w")).text(x))[0].outerHTML,b=this._get(c,"nextText"),b=ge?this.formatDate(b,this._daylightSavingAdjust(new Date(Ut,kt+Ne,1)),this._getFormatConfig(c)):b,this._canAdjustMonth(c,1,Ut,kt)?d=n("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:b}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(De?"w":"e")).text(b))[0].outerHTML:Mt?d="":d=n("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:b}).append(n("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(De?"w":"e")).text(b))[0].outerHTML,k=this._get(c,"currentText"),D=this._get(c,"gotoCurrent")&&c.currentDay?pt:Ye,k=ge?this.formatDate(k,D,this._getFormatConfig(c)):k,O="",c.inline||(O=n("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(c,"closeText"))[0].outerHTML),Q="",Ht&&(Q=n("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(De?O:"").append(this._isInRange(c,D)?n("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(k):"").append(De?"":O)[0].outerHTML),J=parseInt(this._get(c,"firstDay"),10),J=isNaN(J)?0:J,X=this._get(c,"showWeek"),U=this._get(c,"dayNames"),z=this._get(c,"dayNamesMin"),ie=this._get(c,"monthNames"),de=this._get(c,"monthNamesShort"),me=this._get(c,"beforeShowDay"),pe=this._get(c,"showOtherMonths"),qe=this._get(c,"selectOtherMonths"),mt=this._getDefaultDate(c),st="",Tt=0;Tt<Dt[0];Tt++){for(lt="",this.maxRows=4,Je=0;Je<Dt[1];Je++){if(ht=this._daylightSavingAdjust(new Date(Ut,kt,c.selectedDay)),at=" ui-corner-all",bt="",_t){if(bt+="<div class='ui-datepicker-group",Dt[1]>1)switch(Je){case 0:bt+=" ui-datepicker-group-first",at=" ui-corner-"+(De?"right":"left");break;case Dt[1]-1:bt+=" ui-datepicker-group-last",at=" ui-corner-"+(De?"left":"right");break;default:bt+=" ui-datepicker-group-middle",at="";break}bt+="'>"}for(bt+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+at+"'>"+(/all|left/.test(at)&&Tt===0?De?d:T:"")+(/all|right/.test(at)&&Tt===0?De?T:d:"")+this._generateMonthYearHeader(c,kt,Ut,Bt,ur,Tt>0||Je>0,ie,de)+"</div><table class='ui-datepicker-calendar'><thead><tr>",jt=X?"<th class='ui-datepicker-week-col'>"+this._get(c,"weekHeader")+"</th>":"",dt=0;dt<7;dt++)Ge=(dt+J)%7,jt+="<th scope='col'"+((dt+J+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+U[Ge]+"'>"+z[Ge]+"</span></th>";for(bt+=jt+"</tr></thead><tbody>",Qe=this._getDaysInMonth(Ut,kt),Ut===c.selectedYear&&kt===c.selectedMonth&&(c.selectedDay=Math.min(c.selectedDay,Qe)),Wt=(this._getFirstDayOfMonth(Ut,kt)-J+7)%7,Et=Math.ceil((Wt+Qe)/7),Ct=_t&&this.maxRows>Et?this.maxRows:Et,this.maxRows=Ct,Kt=this._daylightSavingAdjust(new Date(Ut,kt,1-Wt)),Me=0;Me<Ct;Me++){for(bt+="<tr>",te=X?"<td class='ui-datepicker-week-col'>"+this._get(c,"calculateWeek")(Kt)+"</td>":"",dt=0;dt<7;dt++)_e=me?me.apply(c.input?c.input[0]:null,[Kt]):[!0,""],je=Kt.getMonth()!==kt,We=je&&!qe||!_e[0]||Bt&&Kt<Bt||ur&&Kt>ur,te+="<td class='"+((dt+J+6)%7>=5?" ui-datepicker-week-end":"")+(je?" ui-datepicker-other-month":"")+(Kt.getTime()===ht.getTime()&&kt===c.selectedMonth&&c._keyEvent||mt.getTime()===Kt.getTime()&&mt.getTime()===ht.getTime()?" "+this._dayOverClass:"")+(We?" "+this._unselectableClass+" ui-state-disabled":"")+(je&&!pe?"":" "+_e[1]+(Kt.getTime()===pt.getTime()?" "+this._currentClass:"")+(Kt.getTime()===Ye.getTime()?" ui-datepicker-today":""))+"'"+((!je||pe)&&_e[2]?" title='"+_e[2].replace(/'/g,"&#39;")+"'":"")+(We?"":" data-handler='selectDay' data-event='click' data-month='"+Kt.getMonth()+"' data-year='"+Kt.getFullYear()+"'")+">"+(je&&!pe?"&#xa0;":We?"<span class='ui-state-default'>"+Kt.getDate()+"</span>":"<a class='ui-state-default"+(Kt.getTime()===Ye.getTime()?" ui-state-highlight":"")+(Kt.getTime()===pt.getTime()?" ui-state-active":"")+(je?" ui-priority-secondary":"")+"' href='#' aria-current='"+(Kt.getTime()===pt.getTime()?"true":"false")+"' data-date='"+Kt.getDate()+"'>"+Kt.getDate()+"</a>")+"</td>",Kt.setDate(Kt.getDate()+1),Kt=this._daylightSavingAdjust(Kt);bt+=te+"</tr>"}kt++,kt>11&&(kt=0,Ut++),bt+="</tbody></table>"+(_t?"</div>"+(Dt[0]>0&&Je===Dt[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),lt+=bt}st+=lt}return st+=Q,c._keyEvent=!1,st},_generateMonthYearHeader:function(c,m,x,T,b,d,k,D){var O,Q,J,X,U,z,ie,de,me=this._get(c,"changeMonth"),pe=this._get(c,"changeYear"),qe=this._get(c,"showMonthAfterYear"),mt=this._get(c,"selectMonthLabel"),st=this._get(c,"selectYearLabel"),dt="<div class='ui-datepicker-title'>",Tt="";if(d||!me)Tt+="<span class='ui-datepicker-month'>"+k[m]+"</span>";else{for(O=T&&T.getFullYear()===x,Q=b&&b.getFullYear()===x,Tt+="<select class='ui-datepicker-month' aria-label='"+mt+"' data-handler='selectMonth' data-event='change'>",J=0;J<12;J++)(!O||J>=T.getMonth())&&(!Q||J<=b.getMonth())&&(Tt+="<option value='"+J+"'"+(J===m?" selected='selected'":"")+">"+D[J]+"</option>");Tt+="</select>"}if(qe||(dt+=Tt+(d||!(me&&pe)?"&#xa0;":"")),!c.yearshtml)if(c.yearshtml="",d||!pe)dt+="<span class='ui-datepicker-year'>"+x+"</span>";else{for(X=this._get(c,"yearRange").split(":"),U=new Date().getFullYear(),z=function(lt){var Je=lt.match(/c[+\-].*/)?x+parseInt(lt.substring(1),10):lt.match(/[+\-].*/)?U+parseInt(lt,10):parseInt(lt,10);return isNaN(Je)?U:Je},ie=z(X[0]),de=Math.max(ie,z(X[1]||"")),ie=T?Math.max(ie,T.getFullYear()):ie,de=b?Math.min(de,b.getFullYear()):de,c.yearshtml+="<select class='ui-datepicker-year' aria-label='"+st+"' data-handler='selectYear' data-event='change'>";ie<=de;ie++)c.yearshtml+="<option value='"+ie+"'"+(ie===x?" selected='selected'":"")+">"+ie+"</option>";c.yearshtml+="</select>",dt+=c.yearshtml,c.yearshtml=null}return dt+=this._get(c,"yearSuffix"),qe&&(dt+=(d||!(me&&pe)?"&#xa0;":"")+Tt),dt+="</div>",dt},_adjustInstDate:function(c,m,x){var T=c.selectedYear+(x==="Y"?m:0),b=c.selectedMonth+(x==="M"?m:0),d=Math.min(c.selectedDay,this._getDaysInMonth(T,b))+(x==="D"?m:0),k=this._restrictMinMax(c,this._daylightSavingAdjust(new Date(T,b,d)));c.selectedDay=k.getDate(),c.drawMonth=c.selectedMonth=k.getMonth(),c.drawYear=c.selectedYear=k.getFullYear(),(x==="M"||x==="Y")&&this._notifyChange(c)},_restrictMinMax:function(c,m){var x=this._getMinMaxDate(c,"min"),T=this._getMinMaxDate(c,"max"),b=x&&m<x?x:m;return T&&b>T?T:b},_notifyChange:function(c){var m=this._get(c,"onChangeMonthYear");m&&m.apply(c.input?c.input[0]:null,[c.selectedYear,c.selectedMonth+1,c])},_getNumberOfMonths:function(c){var m=this._get(c,"numberOfMonths");return m==null?[1,1]:typeof m=="number"?[1,m]:m},_getMinMaxDate:function(c,m){return this._determineDate(c,this._get(c,m+"Date"),null)},_getDaysInMonth:function(c,m){return 32-this._daylightSavingAdjust(new Date(c,m,32)).getDate()},_getFirstDayOfMonth:function(c,m){return new Date(c,m,1).getDay()},_canAdjustMonth:function(c,m,x,T){var b=this._getNumberOfMonths(c),d=this._daylightSavingAdjust(new Date(x,T+(m<0?m:b[0]*b[1]),1));return m<0&&d.setDate(this._getDaysInMonth(d.getFullYear(),d.getMonth())),this._isInRange(c,d)},_isInRange:function(c,m){var x,T,b=this._getMinMaxDate(c,"min"),d=this._getMinMaxDate(c,"max"),k=null,D=null,O=this._get(c,"yearRange");return O&&(x=O.split(":"),T=new Date().getFullYear(),k=parseInt(x[0],10),D=parseInt(x[1],10),x[0].match(/[+\-].*/)&&(k+=T),x[1].match(/[+\-].*/)&&(D+=T)),(!b||m.getTime()>=b.getTime())&&(!d||m.getTime()<=d.getTime())&&(!k||m.getFullYear()>=k)&&(!D||m.getFullYear()<=D)},_getFormatConfig:function(c){var m=this._get(c,"shortYearCutoff");return m=typeof m!="string"?m:new Date().getFullYear()%100+parseInt(m,10),{shortYearCutoff:m,dayNamesShort:this._get(c,"dayNamesShort"),dayNames:this._get(c,"dayNames"),monthNamesShort:this._get(c,"monthNamesShort"),monthNames:this._get(c,"monthNames")}},_formatDate:function(c,m,x,T){m||(c.currentDay=c.selectedDay,c.currentMonth=c.selectedMonth,c.currentYear=c.selectedYear);var b=m?typeof m=="object"?m:this._daylightSavingAdjust(new Date(T,x,m)):this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay));return this.formatDate(this._get(c,"dateFormat"),b,this._getFormatConfig(c))}});function ye(c){var m="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return c.on("mouseout",m,function(){n(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",m,L)}function L(){n.datepicker._isDisabledDatepicker(V.inline?V.dpDiv.parent()[0]:V.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))}function p(c,m){n.extend(c,m);for(var x in m)m[x]==null&&(c[x]=m[x]);return c}n.fn.datepicker=function(c){if(!this.length)return this;n.datepicker.initialized||(n(document).on("mousedown",n.datepicker._checkExternalClick),n.datepicker.initialized=!0),n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var m=Array.prototype.slice.call(arguments,1);return typeof c=="string"&&(c==="isDisabled"||c==="getDate"||c==="widget")?n.datepicker["_"+c+"Datepicker"].apply(n.datepicker,[this[0]].concat(m)):c==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+c+"Datepicker"].apply(n.datepicker,[this[0]].concat(m)):this.each(function(){typeof c=="string"?n.datepicker["_"+c+"Datepicker"].apply(n.datepicker,[this].concat(m)):n.datepicker._attachDatepicker(this,c)})},n.datepicker=new he,n.datepicker.initialized=!1,n.datepicker.uuid=new Date().getTime(),n.datepicker.version="1.14.0",n.datepicker;/*!
 * jQuery UI Mouse 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */var y=!1;n(document).on("mouseup",function(){y=!1}),n.widget("ui.mouse",{version:"1.14.0",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.on("mousedown."+this.widgetName,function(m){return c._mouseDown(m)}).on("click."+this.widgetName,function(m){if(n.data(m.target,c.widgetName+".preventClickEvent")===!0)return n.removeData(m.target,c.widgetName+".preventClickEvent"),m.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(c){if(!y){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(c),this._mouseDownEvent=c;var m=this,x=c.which===1,T=typeof this.options.cancel=="string"?n(c.target).closest(this.options.cancel).length:!1;return!x||T||!this._mouseCapture(c)?!0:(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){m.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=this._mouseStart(c)!==!1,!this._mouseStarted)?(c.preventDefault(),!0):(n.data(c.target,this.widgetName+".preventClickEvent")===!0&&n.removeData(c.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(b){return m._mouseMove(b)},this._mouseUpDelegate=function(b){return m._mouseUp(b)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),c.preventDefault(),y=!0,!0))}},_mouseMove:function(c){if(this._mouseMoved&&!c.which){if(c.originalEvent.altKey||c.originalEvent.ctrlKey||c.originalEvent.metaKey||c.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(c)}return(c.which||c.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(c),c.preventDefault()):(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==!1,this._mouseStarted?this._mouseDrag(c):this._mouseUp(c)),!this._mouseStarted)},_mouseUp:function(c){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,c.target===this._mouseDownEvent.target&&n.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,y=!1,c.preventDefault()},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),n.ui.plugin={add:function(c,m,x){var T,b=n.ui[c].prototype;for(T in x)b.plugins[T]=b.plugins[T]||[],b.plugins[T].push([m,x[T]])},call:function(c,m,x,T){var b,d=c.plugins[m];if(d&&!(!T&&(!c.element[0].parentNode||c.element[0].parentNode.nodeType===11)))for(b=0;b<d.length;b++)c.options[d[b][0]]&&d[b][1].apply(c.element,x)}};/*!
 * jQuery UI Draggable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.draggable",n.ui.mouse,{version:"1.14.0",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper==="original"&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(c,m){this._super(c,m),c==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName(),this._mouseDestroy()},_mouseCapture:function(c){var m=this.options;return this.helper||m.disabled||n(c.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(c),!this.handle)?!1:(this._blurActiveElement(c),this._blockFrames(m.iframeFix===!0?"iframe":m.iframeFix),!0)},_blockFrames:function(c){this.iframeBlocks=this.document.find(c).map(function(){var m=n(this);return n("<div>").css("position","absolute").appendTo(m.parent()).outerWidth(m.outerWidth()).outerHeight(m.outerHeight()).offset(m.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(c){var m=this.document[0].activeElement,x=n(c.target);x.closest(m).length||n(m).trigger("blur")},_mouseStart:function(c){var m=this.options;return this.helper=this._createHelper(c),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return n(this).css("position")==="fixed"}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(c),this.originalPosition=this.position=this._generatePosition(c,!1),this.originalPageX=c.pageX,this.originalPageY=c.pageY,m.cursorAt&&this._adjustOffsetFromHelper(m.cursorAt),this._setContainment(),this._trigger("start",c)===!1?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!m.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,c),this._mouseDrag(c,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,c),!0)},_refreshOffsets:function(c){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:c.pageX-this.offset.left,top:c.pageY-this.offset.top}},_mouseDrag:function(c,m){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(c,!0),this.positionAbs=this._convertPositionTo("absolute"),!m){var x=this._uiHash();if(this._trigger("drag",c,x)===!1)return this._mouseUp(new n.Event("mouseup",c)),!1;this.position=x.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",n.ui.ddmanager&&n.ui.ddmanager.drag(this,c),!1},_mouseStop:function(c){var m=this,x=!1;return n.ui.ddmanager&&!this.options.dropBehaviour&&(x=n.ui.ddmanager.drop(this,c)),this.dropped&&(x=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!x||this.options.revert==="valid"&&x||this.options.revert===!0||typeof this.options.revert=="function"&&this.options.revert.call(this.element,x)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){m._trigger("stop",c)!==!1&&m._clear()}):this._trigger("stop",c)!==!1&&this._clear(),!1},_mouseUp:function(c){return this._unblockFrames(),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,c),this.handleElement.is(c.target)&&this.element.trigger("focus"),n.ui.mouse.prototype._mouseUp.call(this,c)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new n.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(c){return this.options.handle?!!n(c.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(c){var m=this.options,x=typeof m.helper=="function",T=x?n(m.helper.apply(this.element[0],[c])):m.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return T.parents("body").length||T.appendTo(m.appendTo==="parent"?this.element[0].parentNode:m.appendTo),x&&T[0]===this.element[0]&&this._setPositionRelative(),T[0]!==this.element[0]&&!/(fixed|absolute)/.test(T.css("position"))&&T.css("position","absolute"),T},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(c){typeof c=="string"&&(c=c.split(" ")),Array.isArray(c)&&(c={left:+c[0],top:+c[1]||0}),"left"in c&&(this.offset.click.left=c.left+this.margins.left),"right"in c&&(this.offset.click.left=this.helperProportions.width-c.right+this.margins.left),"top"in c&&(this.offset.click.top=c.top+this.margins.top),"bottom"in c&&(this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top)},_isRootNode:function(c){return/(html|body)/i.test(c.tagName)||c===this.document[0]},_getParentOffset:function(){var c=this.offsetParent.offset(),m=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==m&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(c.left+=this.scrollParent.scrollLeft(),c.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(c={top:0,left:0}),{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var c=this.element.position(),m=this._isRootNode(this.scrollParent[0]);return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+(m?0:this.scrollParent.scrollTop()),left:c.left-(parseInt(this.helper.css("left"),10)||0)+(m?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c,m,x,T=this.options,b=this.document[0];if(this.relativeContainer=null,!T.containment){this.containment=null;return}if(T.containment==="window"){this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||b.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(T.containment==="document"){this.containment=[0,0,n(b).width()-this.helperProportions.width-this.margins.left,(n(b).height()||b.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(T.containment.constructor===Array){this.containment=T.containment;return}T.containment==="parent"&&(T.containment=this.helper[0].parentNode),m=n(T.containment),x=m[0],x&&(c=/(scroll|auto)/.test(m.css("overflow")),this.containment=[(parseInt(m.css("borderLeftWidth"),10)||0)+(parseInt(m.css("paddingLeft"),10)||0),(parseInt(m.css("borderTopWidth"),10)||0)+(parseInt(m.css("paddingTop"),10)||0),(c?Math.max(x.scrollWidth,x.offsetWidth):x.offsetWidth)-(parseInt(m.css("borderRightWidth"),10)||0)-(parseInt(m.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(c?Math.max(x.scrollHeight,x.offsetHeight):x.offsetHeight)-(parseInt(m.css("borderBottomWidth"),10)||0)-(parseInt(m.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=m)},_convertPositionTo:function(c,m){m||(m=this.position);var x=c==="absolute"?1:-1,T=this._isRootNode(this.scrollParent[0]);return{top:m.top+this.offset.relative.top*x+this.offset.parent.top*x-(this.cssPosition==="fixed"?-this.offset.scroll.top:T?0:this.offset.scroll.top)*x,left:m.left+this.offset.relative.left*x+this.offset.parent.left*x-(this.cssPosition==="fixed"?-this.offset.scroll.left:T?0:this.offset.scroll.left)*x}},_generatePosition:function(c,m){var x,T,b,d,k=this.options,D=this._isRootNode(this.scrollParent[0]),O=c.pageX,Q=c.pageY;return(!D||!this.offset.scroll)&&(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),m&&(this.containment&&(this.relativeContainer?(T=this.relativeContainer.offset(),x=[this.containment[0]+T.left,this.containment[1]+T.top,this.containment[2]+T.left,this.containment[3]+T.top]):x=this.containment,c.pageX-this.offset.click.left<x[0]&&(O=x[0]+this.offset.click.left),c.pageY-this.offset.click.top<x[1]&&(Q=x[1]+this.offset.click.top),c.pageX-this.offset.click.left>x[2]&&(O=x[2]+this.offset.click.left),c.pageY-this.offset.click.top>x[3]&&(Q=x[3]+this.offset.click.top)),k.grid&&(b=k.grid[1]?this.originalPageY+Math.round((Q-this.originalPageY)/k.grid[1])*k.grid[1]:this.originalPageY,Q=x?b-this.offset.click.top>=x[1]||b-this.offset.click.top>x[3]?b:b-this.offset.click.top>=x[1]?b-k.grid[1]:b+k.grid[1]:b,d=k.grid[0]?this.originalPageX+Math.round((O-this.originalPageX)/k.grid[0])*k.grid[0]:this.originalPageX,O=x?d-this.offset.click.left>=x[0]||d-this.offset.click.left>x[2]?d:d-this.offset.click.left>=x[0]?d-k.grid[0]:d+k.grid[0]:d),k.axis==="y"&&(O=this.originalPageX),k.axis==="x"&&(Q=this.originalPageY)),{top:Q-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:D?0:this.offset.scroll.top),left:O-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:D?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(c,m,x){return x=x||this._uiHash(),n.ui.plugin.call(this,c,[m,x,this],!0),/^(drag|start|stop)/.test(c)&&(this.positionAbs=this._convertPositionTo("absolute"),x.offset=this.positionAbs),n.Widget.prototype._trigger.call(this,c,m,x)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),n.ui.plugin.add("draggable","connectToSortable",{start:function(c,m,x){var T=n.extend({},m,{item:x.element});x.sortables=[],n(x.options.connectToSortable).each(function(){var b=n(this).sortable("instance");b&&!b.options.disabled&&(x.sortables.push(b),b.refreshPositions(),b._trigger("activate",c,T))})},stop:function(c,m,x){var T=n.extend({},m,{item:x.element});x.cancelHelperRemoval=!1,n.each(x.sortables,function(){var b=this;b.isOver?(b.isOver=0,x.cancelHelperRemoval=!0,b.cancelHelperRemoval=!1,b._storedCSS={position:b.placeholder.css("position"),top:b.placeholder.css("top"),left:b.placeholder.css("left")},b._mouseStop(c),b.options.helper=b.options._helper):(b.cancelHelperRemoval=!0,b._trigger("deactivate",c,T))})},drag:function(c,m,x){n.each(x.sortables,function(){var T=!1,b=this;b.positionAbs=x.positionAbs,b.helperProportions=x.helperProportions,b.offset.click=x.offset.click,b._intersectsWith(b.containerCache)&&(T=!0,n.each(x.sortables,function(){return this.positionAbs=x.positionAbs,this.helperProportions=x.helperProportions,this.offset.click=x.offset.click,this!==b&&this._intersectsWith(this.containerCache)&&n.contains(b.element[0],this.element[0])&&(T=!1),T})),T?(b.isOver||(b.isOver=1,x._parent=m.helper.parent(),b.currentItem=m.helper.appendTo(b.element).data("ui-sortable-item",!0),b.options._helper=b.options.helper,b.options.helper=function(){return m.helper[0]},c.target=b.currentItem[0],b._mouseCapture(c,!0),b._mouseStart(c,!0,!0),b.offset.click.top=x.offset.click.top,b.offset.click.left=x.offset.click.left,b.offset.parent.left-=x.offset.parent.left-b.offset.parent.left,b.offset.parent.top-=x.offset.parent.top-b.offset.parent.top,x._trigger("toSortable",c),x.dropped=b.element,n.each(x.sortables,function(){this.refreshPositions()}),x.currentItem=x.element,b.fromOutside=x),b.currentItem&&(b._mouseDrag(c),m.position=b.position)):b.isOver&&(b.isOver=0,b.cancelHelperRemoval=!0,b.options._revert=b.options.revert,b.options.revert=!1,b._trigger("out",c,b._uiHash(b)),b._mouseStop(c,!0),b.options.revert=b.options._revert,b.options.helper=b.options._helper,b.placeholder&&b.placeholder.remove(),m.helper.appendTo(x._parent),x._refreshOffsets(c),m.position=x._generatePosition(c,!0),x._trigger("fromSortable",c),x.dropped=!1,n.each(x.sortables,function(){this.refreshPositions()}))})}}),n.ui.plugin.add("draggable","cursor",{start:function(c,m,x){var T=n("body"),b=x.options;T.css("cursor")&&(b._cursor=T.css("cursor")),T.css("cursor",b.cursor)},stop:function(c,m,x){var T=x.options;T._cursor&&n("body").css("cursor",T._cursor)}}),n.ui.plugin.add("draggable","opacity",{start:function(c,m,x){var T=n(m.helper),b=x.options;T.css("opacity")&&(b._opacity=T.css("opacity")),T.css("opacity",b.opacity)},stop:function(c,m,x){var T=x.options;T._opacity&&n(m.helper).css("opacity",T._opacity)}}),n.ui.plugin.add("draggable","scroll",{start:function(c,m,x){x.scrollParentNotHidden||(x.scrollParentNotHidden=x.helper.scrollParent(!1)),x.scrollParentNotHidden[0]!==x.document[0]&&x.scrollParentNotHidden[0].tagName!=="HTML"&&(x.overflowOffset=x.scrollParentNotHidden.offset())},drag:function(c,m,x){var T=x.options,b=!1,d=x.scrollParentNotHidden[0],k=x.document[0];d!==k&&d.tagName!=="HTML"?((!T.axis||T.axis!=="x")&&(x.overflowOffset.top+d.offsetHeight-c.pageY<T.scrollSensitivity?d.scrollTop=b=d.scrollTop+T.scrollSpeed:c.pageY-x.overflowOffset.top<T.scrollSensitivity&&(d.scrollTop=b=d.scrollTop-T.scrollSpeed)),(!T.axis||T.axis!=="y")&&(x.overflowOffset.left+d.offsetWidth-c.pageX<T.scrollSensitivity?d.scrollLeft=b=d.scrollLeft+T.scrollSpeed:c.pageX-x.overflowOffset.left<T.scrollSensitivity&&(d.scrollLeft=b=d.scrollLeft-T.scrollSpeed))):((!T.axis||T.axis!=="x")&&(c.pageY-n(k).scrollTop()<T.scrollSensitivity?b=n(k).scrollTop(n(k).scrollTop()-T.scrollSpeed):n(window).height()-(c.pageY-n(k).scrollTop())<T.scrollSensitivity&&(b=n(k).scrollTop(n(k).scrollTop()+T.scrollSpeed))),(!T.axis||T.axis!=="y")&&(c.pageX-n(k).scrollLeft()<T.scrollSensitivity?b=n(k).scrollLeft(n(k).scrollLeft()-T.scrollSpeed):n(window).width()-(c.pageX-n(k).scrollLeft())<T.scrollSensitivity&&(b=n(k).scrollLeft(n(k).scrollLeft()+T.scrollSpeed)))),b!==!1&&n.ui.ddmanager&&!T.dropBehaviour&&n.ui.ddmanager.prepareOffsets(x,c)}}),n.ui.plugin.add("draggable","snap",{start:function(c,m,x){var T=x.options;x.snapElements=[],n(T.snap.constructor!==String?T.snap.items||":data(ui-draggable)":T.snap).each(function(){var b=n(this),d=b.offset();this!==x.element[0]&&x.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:d.top,left:d.left})})},drag:function(c,m,x){var T,b,d,k,D,O,Q,J,X,U,z=x.options,ie=z.snapTolerance,de=m.offset.left,me=de+x.helperProportions.width,pe=m.offset.top,qe=pe+x.helperProportions.height;for(X=x.snapElements.length-1;X>=0;X--){if(D=x.snapElements[X].left-x.margins.left,O=D+x.snapElements[X].width,Q=x.snapElements[X].top-x.margins.top,J=Q+x.snapElements[X].height,me<D-ie||de>O+ie||qe<Q-ie||pe>J+ie||!n.contains(x.snapElements[X].item.ownerDocument,x.snapElements[X].item)){x.snapElements[X].snapping&&x.options.snap.release&&x.options.snap.release.call(x.element,c,n.extend(x._uiHash(),{snapItem:x.snapElements[X].item})),x.snapElements[X].snapping=!1;continue}z.snapMode!=="inner"&&(T=Math.abs(Q-qe)<=ie,b=Math.abs(J-pe)<=ie,d=Math.abs(D-me)<=ie,k=Math.abs(O-de)<=ie,T&&(m.position.top=x._convertPositionTo("relative",{top:Q-x.helperProportions.height,left:0}).top),b&&(m.position.top=x._convertPositionTo("relative",{top:J,left:0}).top),d&&(m.position.left=x._convertPositionTo("relative",{top:0,left:D-x.helperProportions.width}).left),k&&(m.position.left=x._convertPositionTo("relative",{top:0,left:O}).left)),U=T||b||d||k,z.snapMode!=="outer"&&(T=Math.abs(Q-pe)<=ie,b=Math.abs(J-qe)<=ie,d=Math.abs(D-de)<=ie,k=Math.abs(O-me)<=ie,T&&(m.position.top=x._convertPositionTo("relative",{top:Q,left:0}).top),b&&(m.position.top=x._convertPositionTo("relative",{top:J-x.helperProportions.height,left:0}).top),d&&(m.position.left=x._convertPositionTo("relative",{top:0,left:D}).left),k&&(m.position.left=x._convertPositionTo("relative",{top:0,left:O-x.helperProportions.width}).left)),!x.snapElements[X].snapping&&(T||b||d||k||U)&&x.options.snap.snap&&x.options.snap.snap.call(x.element,c,n.extend(x._uiHash(),{snapItem:x.snapElements[X].item})),x.snapElements[X].snapping=T||b||d||k||U}}}),n.ui.plugin.add("draggable","stack",{start:function(c,m,x){var T,b=x.options,d=n.makeArray(n(b.stack)).sort(function(k,D){return(parseInt(n(k).css("zIndex"),10)||0)-(parseInt(n(D).css("zIndex"),10)||0)});d.length&&(T=parseInt(n(d[0]).css("zIndex"),10)||0,n(d).each(function(k){n(this).css("zIndex",T+k)}),this.css("zIndex",T+d.length))}}),n.ui.plugin.add("draggable","zIndex",{start:function(c,m,x){var T=n(m.helper),b=x.options;T.css("zIndex")&&(b._zIndex=T.css("zIndex")),T.css("zIndex",b.zIndex)},stop:function(c,m,x){var T=x.options;T._zIndex&&n(m.helper).css("zIndex",T._zIndex)}}),n.ui.draggable;/*!
 * jQuery UI Resizable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.resizable",n.ui.mouse,{version:"1.14.0",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(c){return parseFloat(c)||0},_isNumber:function(c){return!isNaN(parseFloat(c))},_hasScroll:function(c,m){if(n(c).css("overflow")==="hidden")return!1;var x=m&&m==="left"?"scrollLeft":"scrollTop",T=!1;if(c[x]>0)return!0;try{c[x]=1,T=c[x]>0,c[x]=0}catch{}return T},_create:function(){var c,m=this.options,x=this;this._addClass("ui-resizable"),n.extend(this,{_aspectRatio:!!m.aspectRatio,aspectRatio:m.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:m.helper||m.ghost||m.animate?m.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(n("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,c={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(c),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),m.autoHide&&n(this.element).on("mouseenter",function(){m.disabled||(x._removeClass("ui-resizable-autohide"),x._handles.show())}).on("mouseleave",function(){m.disabled||x.resizing||(x._addClass("ui-resizable-autohide"),x._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var c,m=function(x){n(x).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(m(this.element),c=this.element,this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),top:c.css("top"),left:c.css("left")}).insertAfter(c),c.remove()),this.originalElement.css("resize",this.originalResizeStyle),m(this.originalElement),this},_setOption:function(c,m){switch(this._super(c,m),c){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!m;break}},_setupHandles:function(){var c=this.options,m,x,T,b,d,k=this;if(this.handles=c.handles||(n(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=n(),this._addedHandles=n(),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),T=this.handles.split(","),this.handles={},x=0;x<T.length;x++)m=String.prototype.trim.call(T[x]),b="ui-resizable-"+m,d=n("<div>"),this._addClass(d,"ui-resizable-handle "+b),d.css({zIndex:c.zIndex}),this.handles[m]=".ui-resizable-"+m,this.element.children(this.handles[m]).length||(this.element.append(d),this._addedHandles=this._addedHandles.add(d));this._renderAxis=function(D){var O,Q,J,X;D=D||this.element;for(O in this.handles)this.handles[O].constructor===String?this.handles[O]=this.element.children(this.handles[O]).first().show():(this.handles[O].jquery||this.handles[O].nodeType)&&(this.handles[O]=n(this.handles[O]),this._on(this.handles[O],{mousedown:k._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(Q=n(this.handles[O],this.element),X=/sw|ne|nw|se|n|s/.test(O)?Q.outerHeight():Q.outerWidth(),J=["padding",/ne|nw|n/.test(O)?"Top":/se|sw|s/.test(O)?"Bottom":/^e$/.test(O)?"Right":"Left"].join(""),D.css(J,X),this._proportionallyResize()),this._handles=this._handles.add(this.handles[O])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){k.resizing||(this.className&&(d=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),k.axis=d&&d[1]?d[1]:"se")}),c.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(c){var m,x,T=!1;for(m in this.handles)x=n(this.handles[m])[0],(x===c.target||n.contains(x,c.target))&&(T=!0);return!this.options.disabled&&T},_mouseStart:function(c){var m,x,T,b=this.options,d=this.element;return this.resizing=!0,this._renderProxy(),m=this._num(this.helper.css("left")),x=this._num(this.helper.css("top")),b.containment&&(m+=n(b.containment).scrollLeft()||0,x+=n(b.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:m,top:x},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:d.width(),height:d.height()},this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()},this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()},this.originalPosition={left:m,top:x},this.originalMousePosition={left:c.pageX,top:c.pageY},this.aspectRatio=typeof b.aspectRatio=="number"?b.aspectRatio:this.originalSize.width/this.originalSize.height||1,T=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor",T==="auto"?this.axis+"-resize":T),this._addClass("ui-resizable-resizing"),this._propagate("start",c),!0},_mouseDrag:function(c){var m,x,T=this.originalMousePosition,b=this.axis,d=c.pageX-T.left||0,k=c.pageY-T.top||0,D=this._change[b];return this._updatePrevProperties(),D&&(m=D.apply(this,[c,d,k]),this._updateVirtualBoundaries(c.shiftKey),(this._aspectRatio||c.shiftKey)&&(m=this._updateRatio(m,c)),m=this._respectSize(m,c),this._updateCache(m),this._propagate("resize",c),x=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(x)||(this._updatePrevProperties(),this._trigger("resize",c,this.ui()),this._applyChanges())),!1},_mouseStop:function(c){this.resizing=!1;var m,x,T,b,d,k,D,O=this.options,Q=this;return this._helper&&(m=this._proportionallyResizeElements,x=m.length&&/textarea/i.test(m[0].nodeName),T=x&&this._hasScroll(m[0],"left")?0:Q.sizeDiff.height,b=x?0:Q.sizeDiff.width,d={width:Q.helper.width()-b,height:Q.helper.height()-T},k=parseFloat(Q.element.css("left"))+(Q.position.left-Q.originalPosition.left)||null,D=parseFloat(Q.element.css("top"))+(Q.position.top-Q.originalPosition.top)||null,O.animate||this.element.css(n.extend(d,{top:D,left:k})),Q.helper.height(Q.size.height),Q.helper.width(Q.size.width),this._helper&&!O.animate&&this._proportionallyResize()),n("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",c),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var c={};return this.position.top!==this.prevPosition.top&&(c.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(c.left=this.position.left+"px"),this.helper.css(c),this.size.width!==this.prevSize.width&&(c.width=this.size.width+"px",this.helper.width(c.width)),this.size.height!==this.prevSize.height&&(c.height=this.size.height+"px",this.helper.height(c.height)),c},_updateVirtualBoundaries:function(c){var m,x,T,b,d,k=this.options;d={minWidth:this._isNumber(k.minWidth)?k.minWidth:0,maxWidth:this._isNumber(k.maxWidth)?k.maxWidth:1/0,minHeight:this._isNumber(k.minHeight)?k.minHeight:0,maxHeight:this._isNumber(k.maxHeight)?k.maxHeight:1/0},(this._aspectRatio||c)&&(m=d.minHeight*this.aspectRatio,T=d.minWidth/this.aspectRatio,x=d.maxHeight*this.aspectRatio,b=d.maxWidth/this.aspectRatio,m>d.minWidth&&(d.minWidth=m),T>d.minHeight&&(d.minHeight=T),x<d.maxWidth&&(d.maxWidth=x),b<d.maxHeight&&(d.maxHeight=b)),this._vBoundaries=d},_updateCache:function(c){this.offset=this.helper.offset(),this._isNumber(c.left)&&(this.position.left=c.left),this._isNumber(c.top)&&(this.position.top=c.top),this._isNumber(c.height)&&(this.size.height=c.height),this._isNumber(c.width)&&(this.size.width=c.width)},_updateRatio:function(c){var m=this.position,x=this.size,T=this.axis;return this._isNumber(c.height)?c.width=c.height*this.aspectRatio:this._isNumber(c.width)&&(c.height=c.width/this.aspectRatio),T==="sw"&&(c.left=m.left+(x.width-c.width),c.top=null),T==="nw"&&(c.top=m.top+(x.height-c.height),c.left=m.left+(x.width-c.width)),c},_respectSize:function(c){var m=this._vBoundaries,x=this.axis,T=this._isNumber(c.width)&&m.maxWidth&&m.maxWidth<c.width,b=this._isNumber(c.height)&&m.maxHeight&&m.maxHeight<c.height,d=this._isNumber(c.width)&&m.minWidth&&m.minWidth>c.width,k=this._isNumber(c.height)&&m.minHeight&&m.minHeight>c.height,D=this.originalPosition.left+this.originalSize.width,O=this.originalPosition.top+this.originalSize.height,Q=/sw|nw|w/.test(x),J=/nw|ne|n/.test(x);return d&&(c.width=m.minWidth),k&&(c.height=m.minHeight),T&&(c.width=m.maxWidth),b&&(c.height=m.maxHeight),d&&Q&&(c.left=D-m.minWidth),T&&Q&&(c.left=D-m.maxWidth),k&&J&&(c.top=O-m.minHeight),b&&J&&(c.top=O-m.maxHeight),!c.width&&!c.height&&!c.left&&c.top?c.top=null:!c.width&&!c.height&&!c.top&&c.left&&(c.left=null),c},_getPaddingPlusBorderDimensions:function(c){for(var m=0,x=[],T=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],b=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];m<4;m++)x[m]=parseFloat(T[m])||0,x[m]+=parseFloat(b[m])||0;return{height:x[0]+x[2],width:x[1]+x[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var c,m=0,x=this.helper||this.element;m<this._proportionallyResizeElements.length;m++)c=this._proportionallyResizeElements[m],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(c)),c.css({height:x.height()-this.outerDimensions.height||0,width:x.width()-this.outerDimensions.width||0})},_renderProxy:function(){var c=this.element,m=this.options;this.elementOffset=c.offset(),this._helper?(this.helper=this.helper||n("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++m.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(c,m){return{width:this.originalSize.width+m}},w:function(c,m){var x=this.originalSize,T=this.originalPosition;return{left:T.left+m,width:x.width-m}},n:function(c,m,x){var T=this.originalSize,b=this.originalPosition;return{top:b.top+x,height:T.height-x}},s:function(c,m,x){return{height:this.originalSize.height+x}},se:function(c,m,x){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[c,m,x]))},sw:function(c,m,x){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[c,m,x]))},ne:function(c,m,x){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[c,m,x]))},nw:function(c,m,x){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[c,m,x]))}},_propagate:function(c,m){n.ui.plugin.call(this,c,[m,this.ui()]),c!=="resize"&&this._trigger(c,m,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),n.ui.plugin.add("resizable","animate",{stop:function(c){var m=n(this).resizable("instance"),x=m.options,T=m._proportionallyResizeElements,b=T.length&&/textarea/i.test(T[0].nodeName),d=b&&m._hasScroll(T[0],"left")?0:m.sizeDiff.height,k=b?0:m.sizeDiff.width,D={width:m.size.width-k,height:m.size.height-d},O=parseFloat(m.element.css("left"))+(m.position.left-m.originalPosition.left)||null,Q=parseFloat(m.element.css("top"))+(m.position.top-m.originalPosition.top)||null;m.element.animate(n.extend(D,Q&&O?{top:Q,left:O}:{}),{duration:x.animateDuration,easing:x.animateEasing,step:function(){var J={width:parseFloat(m.element.css("width")),height:parseFloat(m.element.css("height")),top:parseFloat(m.element.css("top")),left:parseFloat(m.element.css("left"))};T&&T.length&&n(T[0]).css({width:J.width,height:J.height}),m._updateCache(J),m._propagate("resize",c)}})}}),n.ui.plugin.add("resizable","containment",{start:function(){var c,m,x,T,b,d,k,D=n(this).resizable("instance"),O=D.options,Q=D.element,J=O.containment,X=J instanceof n?J.get(0):/parent/.test(J)?Q.parent().get(0):J;X&&(D.containerElement=n(X),/document/.test(J)||J===document?(D.containerOffset={left:0,top:0},D.containerPosition={left:0,top:0},D.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight}):(c=n(X),m=[],n(["Top","Right","Left","Bottom"]).each(function(U,z){m[U]=D._num(c.css("padding"+z))}),D.containerOffset=c.offset(),D.containerPosition=c.position(),D.containerSize={height:c.innerHeight()-m[3],width:c.innerWidth()-m[1]},x=D.containerOffset,T=D.containerSize.height,b=D.containerSize.width,d=D._hasScroll(X,"left")?X.scrollWidth:b,k=D._hasScroll(X)?X.scrollHeight:T,D.parentData={element:X,left:x.left,top:x.top,width:d,height:k}))},resize:function(c){var m,x,T,b,d=n(this).resizable("instance"),k=d.options,D=d.containerOffset,O=d.position,Q=d._aspectRatio||c.shiftKey,J={top:0,left:0},X=d.containerElement,U=!0;X[0]!==document&&/static/.test(X.css("position"))&&(J=D),O.left<(d._helper?D.left:0)&&(d.size.width=d.size.width+(d._helper?d.position.left-D.left:d.position.left-J.left),Q&&(d.size.height=d.size.width/d.aspectRatio,U=!1),d.position.left=k.helper?D.left:0),O.top<(d._helper?D.top:0)&&(d.size.height=d.size.height+(d._helper?d.position.top-D.top:d.position.top),Q&&(d.size.width=d.size.height*d.aspectRatio,U=!1),d.position.top=d._helper?D.top:0),T=d.containerElement.get(0)===d.element.parent().get(0),b=/relative|absolute/.test(d.containerElement.css("position")),T&&b?(d.offset.left=d.parentData.left+d.position.left,d.offset.top=d.parentData.top+d.position.top):(d.offset.left=d.element.offset().left,d.offset.top=d.element.offset().top),m=Math.abs(d.sizeDiff.width+(d._helper?d.offset.left-J.left:d.offset.left-D.left)),x=Math.abs(d.sizeDiff.height+(d._helper?d.offset.top-J.top:d.offset.top-D.top)),m+d.size.width>=d.parentData.width&&(d.size.width=d.parentData.width-m,Q&&(d.size.height=d.size.width/d.aspectRatio,U=!1)),x+d.size.height>=d.parentData.height&&(d.size.height=d.parentData.height-x,Q&&(d.size.width=d.size.height*d.aspectRatio,U=!1)),U||(d.position.left=d.prevPosition.left,d.position.top=d.prevPosition.top,d.size.width=d.prevSize.width,d.size.height=d.prevSize.height)},stop:function(){var c=n(this).resizable("instance"),m=c.options,x=c.containerOffset,T=c.containerPosition,b=c.containerElement,d=n(c.helper),k=d.offset(),D=d.outerWidth()-c.sizeDiff.width,O=d.outerHeight()-c.sizeDiff.height;c._helper&&!m.animate&&/relative/.test(b.css("position"))&&n(this).css({left:k.left-T.left-x.left,width:D,height:O}),c._helper&&!m.animate&&/static/.test(b.css("position"))&&n(this).css({left:k.left-T.left-x.left,width:D,height:O})}}),n.ui.plugin.add("resizable","alsoResize",{start:function(){var c=n(this).resizable("instance"),m=c.options;n(m.alsoResize).each(function(){var x=n(this);x.data("ui-resizable-alsoresize",{width:parseFloat(x.css("width")),height:parseFloat(x.css("height")),left:parseFloat(x.css("left")),top:parseFloat(x.css("top"))})})},resize:function(c,m){var x=n(this).resizable("instance"),T=x.options,b=x.originalSize,d=x.originalPosition,k={height:x.size.height-b.height||0,width:x.size.width-b.width||0,top:x.position.top-d.top||0,left:x.position.left-d.left||0};n(T.alsoResize).each(function(){var D=n(this),O=n(this).data("ui-resizable-alsoresize"),Q={},J=D.parents(m.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(J,function(X,U){var z=(O[U]||0)+(k[U]||0);z&&z>=0&&(Q[U]=z||null)}),D.css(Q)})},stop:function(){n(this).removeData("ui-resizable-alsoresize")}}),n.ui.plugin.add("resizable","ghost",{start:function(){var c=n(this).resizable("instance"),m=c.size;c.ghost=c.originalElement.clone(),c.ghost.css({opacity:.25,display:"block",position:"relative",height:m.height,width:m.width,margin:0,left:0,top:0}),c._addClass(c.ghost,"ui-resizable-ghost"),n.uiBackCompat===!0&&typeof c.options.ghost=="string"&&c.ghost.addClass(this.options.ghost),c.ghost.appendTo(c.helper)},resize:function(){var c=n(this).resizable("instance");c.ghost&&c.ghost.css({position:"relative",height:c.size.height,width:c.size.width})},stop:function(){var c=n(this).resizable("instance");c.ghost&&c.helper&&c.helper.get(0).removeChild(c.ghost.get(0))}}),n.ui.plugin.add("resizable","grid",{resize:function(){var c,m=n(this).resizable("instance"),x=m.options,T=m.size,b=m.originalSize,d=m.originalPosition,k=m.axis,D=typeof x.grid=="number"?[x.grid,x.grid]:x.grid,O=D[0]||1,Q=D[1]||1,J=Math.round((T.width-b.width)/O)*O,X=Math.round((T.height-b.height)/Q)*Q,U=b.width+J,z=b.height+X,ie=x.maxWidth&&x.maxWidth<U,de=x.maxHeight&&x.maxHeight<z,me=x.minWidth&&x.minWidth>U,pe=x.minHeight&&x.minHeight>z;x.grid=D,me&&(U+=O),pe&&(z+=Q),ie&&(U-=O),de&&(z-=Q),/^(se|s|e)$/.test(k)?(m.size.width=U,m.size.height=z):/^(ne)$/.test(k)?(m.size.width=U,m.size.height=z,m.position.top=d.top-X):/^(sw)$/.test(k)?(m.size.width=U,m.size.height=z,m.position.left=d.left-J):((z-Q<=0||U-O<=0)&&(c=m._getPaddingPlusBorderDimensions(this)),z-Q>0?(m.size.height=z,m.position.top=d.top-X):(z=Q-c.height,m.size.height=z,m.position.top=d.top+b.height-z),U-O>0?(m.size.width=U,m.position.left=d.left-J):(U=O-c.width,m.size.width=U,m.position.left=d.left+b.width-U))}}),n.ui.resizable;/*!
 * jQuery UI Dialog 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.dialog",{version:"1.14.0",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(c){var m=n(this).css(c).offset().top;m<0&&n(this).css("top",c.top-m)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title==null&&this.originalTitle!=null&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&n.fn.draggable&&this._makeDraggable(),this.options.resizable&&n.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var c=this.options.appendTo;return c&&(c.jquery||c.nodeType)?n(c):this.document.find(c||"body").eq(0)},_destroy:function(){var c,m=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),c=m.parent.children().eq(m.index),c.length&&c[0]!==this.element[0]?c.before(this.element):m.parent.append(this.element)},widget:function(){return this.uiDialog},disable:n.noop,enable:n.noop,close:function(c){var m=this;!this._isOpen||this._trigger("beforeClose",c)===!1||(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||n(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,function(){m._trigger("close",c)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(c,m){var x=!1,T=this.uiDialog.siblings(".ui-front:visible").map(function(){return+n(this).css("z-index")}).get(),b=Math.max.apply(null,T);return b>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",b+1),x=!0),x&&!m&&this._trigger("focus",c),x},open:function(){var c=this;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0,this.opener=n(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){c._focusTabbable(),c._trigger("focus")}),this._makeFocusTarget(),this._trigger("open")},_focusTabbable:function(){var c=this._focusedElement;c||(c=this.element.find("[autofocus]")),c.length||(c=this.element.find(":tabbable")),c.length||(c=this.uiDialogButtonPane.find(":tabbable")),c.length||(c=this.uiDialogTitlebarClose.filter(":tabbable")),c.length||(c=this.uiDialog),c.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var c=this.document[0].activeElement,m=this.uiDialog[0]===c||n.contains(this.uiDialog[0],c);m||this._focusTabbable()},_keepFocus:function(c){c.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=n("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(c){if(this.options.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode===n.ui.keyCode.ESCAPE){c.preventDefault(),this.close(c);return}if(!(c.keyCode!==n.ui.keyCode.TAB||c.isDefaultPrevented())){var m=this.uiDialog.find(":tabbable"),x=m.first(),T=m.last();(c.target===T[0]||c.target===this.uiDialog[0])&&!c.shiftKey?(this._delay(function(){x.trigger("focus")}),c.preventDefault()):(c.target===x[0]||c.target===this.uiDialog[0])&&c.shiftKey&&(this._delay(function(){T.trigger("focus")}),c.preventDefault())}},mousedown:function(c){this._moveToTop(c)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var c;this.uiDialogTitlebar=n("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(m){n(m.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=n("<button type='button'></button>").button({label:n("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(m){m.preventDefault(),this.close(m)}}),c=n("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(c,"ui-dialog-title"),this._title(c),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":c.attr("id")})},_title:function(c){this.options.title?c.text(this.options.title):c.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=n("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=n("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var c=this,m=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),n.isEmptyObject(m)||Array.isArray(m)&&!m.length){this._removeClass(this.uiDialog,"ui-dialog-buttons");return}n.each(m,function(x,T){var b,d;T=typeof T=="function"?{click:T,text:x}:T,T=n.extend({type:"button"},T),b=T.click,d={icon:T.icon,iconPosition:T.iconPosition,showLabel:T.showLabel,icons:T.icons,text:T.text},delete T.click,delete T.icon,delete T.iconPosition,delete T.showLabel,delete T.icons,typeof T.text=="boolean"&&delete T.text,n("<button></button>",T).button(d).appendTo(c.uiButtonSet).on("click",function(){b.apply(c.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var c=this,m=this.options;function x(T){return{position:T.position,offset:T.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(T,b){c._addClass(n(this),"ui-dialog-dragging"),c._blockFrames(),c._trigger("dragStart",T,x(b))},drag:function(T,b){c._trigger("drag",T,x(b))},stop:function(T,b){var d=b.offset.left-c.document.scrollLeft(),k=b.offset.top-c.document.scrollTop();m.position={my:"left top",at:"left"+(d>=0?"+":"")+d+" top"+(k>=0?"+":"")+k,of:c.window},c._removeClass(n(this),"ui-dialog-dragging"),c._unblockFrames(),c._trigger("dragStop",T,x(b))}})},_makeResizable:function(){var c=this,m=this.options,x=m.resizable,T=this.uiDialog.css("position"),b=typeof x=="string"?x:"n,e,s,w,se,sw,ne,nw";function d(k){return{originalPosition:k.originalPosition,originalSize:k.originalSize,position:k.position,size:k.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:m.maxWidth,maxHeight:m.maxHeight,minWidth:m.minWidth,minHeight:this._minHeight(),handles:b,start:function(k,D){c._addClass(n(this),"ui-dialog-resizing"),c._blockFrames(),c._trigger("resizeStart",k,d(D))},resize:function(k,D){c._trigger("resize",k,d(D))},stop:function(k,D){var O=c.uiDialog.offset(),Q=O.left-c.document.scrollLeft(),J=O.top-c.document.scrollTop();m.height=c.uiDialog.height(),m.width=c.uiDialog.width(),m.position={my:"left top",at:"left"+(Q>=0?"+":"")+Q+" top"+(J>=0?"+":"")+J,of:c.window},c._removeClass(n(this),"ui-dialog-resizing"),c._unblockFrames(),c._trigger("resizeStop",k,d(D))}}).css("position",T)},_trackFocus:function(){this._on(this.widget(),{focusin:function(c){this._makeFocusTarget(),this._focusedElement=n(c.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var c=this._trackingInstances(),m=n.inArray(this,c);m!==-1&&c.splice(m,1)},_trackingInstances:function(){var c=this.document.data("ui-dialog-instances");return c||(c=[],this.document.data("ui-dialog-instances",c)),c},_minHeight:function(){var c=this.options;return c.height==="auto"?c.minHeight:Math.min(c.minHeight,c.height)},_position:function(){var c=this.uiDialog.is(":visible");c||this.uiDialog.show(),this.uiDialog.position(this.options.position),c||this.uiDialog.hide()},_setOptions:function(c){var m=this,x=!1,T={};n.each(c,function(b,d){m._setOption(b,d),b in m.sizeRelatedOptions&&(x=!0),b in m.resizableRelatedOptions&&(T[b]=d)}),x&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",T)},_setOption:function(c,m){var x,T,b=this.uiDialog;c!=="disabled"&&(this._super(c,m),c==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),c==="buttons"&&this._createButtons(),c==="closeText"&&this.uiDialogTitlebarClose.button({label:n("<a>").text(""+this.options.closeText).html()}),c==="draggable"&&(x=b.is(":data(ui-draggable)"),x&&!m&&b.draggable("destroy"),!x&&m&&this._makeDraggable()),c==="position"&&this._position(),c==="resizable"&&(T=b.is(":data(ui-resizable)"),T&&!m&&b.resizable("destroy"),T&&typeof m=="string"&&b.resizable("option","handles",m),!T&&m!==!1&&this._makeResizable()),c==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),c==="modal"&&b.attr("aria-modal",m?"true":null))},_size:function(){var c,m,x,T=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),T.minWidth>T.width&&(T.width=T.minWidth),c=this.uiDialog.css({height:"auto",width:T.width}).outerHeight(),m=Math.max(0,T.minHeight-c),x=typeof T.maxHeight=="number"?Math.max(0,T.maxHeight-c):"none",T.height==="auto"?this.element.css({minHeight:m,maxHeight:x,height:"auto"}):this.element.height(Math.max(0,T.height-c)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var c=n(this);return n("<div>").css({position:"absolute",width:c.outerWidth(),height:c.outerHeight()}).appendTo(c.parent()).offset(c.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(c){return n(c.target).closest(".ui-dialog").length?!0:!!n(c.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var c=!0;this._delay(function(){c=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",(function(m){if(!c){var x=this._trackingInstances()[0];x._allowInteraction(m)||(m.preventDefault(),x._focusTabbable())}}).bind(this)),this.overlay=n("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var c=this.document.data("ui-dialog-overlays")-1;c?this.document.data("ui-dialog-overlays",c):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),n.uiBackCompat===!0&&n.widget("ui.dialog",n.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(c,m){c==="dialogClass"&&this.uiDialog.removeClass(this.options.dialogClass).addClass(m),this._superApply(arguments)}}),n.ui.dialog;/*!
 * jQuery UI Droppable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.droppable",{version:"1.14.0",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var c,m=this.options,x=m.accept;this.isover=!1,this.isout=!0,this.accept=typeof x=="function"?x:function(T){return T.is(x)},this.proportions=function(){if(arguments.length)c=arguments[0];else return c||(c={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(m.scope),m.addClasses&&this._addClass("ui-droppable")},_addToManager:function(c){n.ui.ddmanager.droppables[c]=n.ui.ddmanager.droppables[c]||[],n.ui.ddmanager.droppables[c].push(this)},_splice:function(c){for(var m=0;m<c.length;m++)c[m]===this&&c.splice(m,1)},_destroy:function(){var c=n.ui.ddmanager.droppables[this.options.scope];this._splice(c)},_setOption:function(c,m){if(c==="accept")this.accept=typeof m=="function"?m:function(T){return T.is(m)};else if(c==="scope"){var x=n.ui.ddmanager.droppables[this.options.scope];this._splice(x),this._addToManager(m)}this._super(c,m)},_activate:function(c){var m=n.ui.ddmanager.current;this._addActiveClass(),m&&this._trigger("activate",c,this.ui(m))},_deactivate:function(c){var m=n.ui.ddmanager.current;this._removeActiveClass(),m&&this._trigger("deactivate",c,this.ui(m))},_over:function(c){var m=n.ui.ddmanager.current;!m||(m.currentItem||m.element)[0]===this.element[0]||this.accept.call(this.element[0],m.currentItem||m.element)&&(this._addHoverClass(),this._trigger("over",c,this.ui(m)))},_out:function(c){var m=n.ui.ddmanager.current;!m||(m.currentItem||m.element)[0]===this.element[0]||this.accept.call(this.element[0],m.currentItem||m.element)&&(this._removeHoverClass(),this._trigger("out",c,this.ui(m)))},_drop:function(c,m){var x=m||n.ui.ddmanager.current,T=!1;return!x||(x.currentItem||x.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var b=n(this).droppable("instance");if(b.options.greedy&&!b.options.disabled&&b.options.scope===x.options.scope&&b.accept.call(b.element[0],x.currentItem||x.element)&&n.ui.intersect(x,n.extend(b,{offset:b.element.offset()}),b.options.tolerance,c))return T=!0,!1}),T)?!1:this.accept.call(this.element[0],x.currentItem||x.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",c,this.ui(x)),this.element):!1},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,offset:c.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),n.ui.intersect=function(){function c(m,x,T){return m>=x&&m<x+T}return function(m,x,T,b){if(!x.offset)return!1;var d=(m.positionAbs||m.position.absolute).left+m.margins.left,k=(m.positionAbs||m.position.absolute).top+m.margins.top,D=d+m.helperProportions.width,O=k+m.helperProportions.height,Q=x.offset.left,J=x.offset.top,X=Q+x.proportions().width,U=J+x.proportions().height;switch(T){case"fit":return Q<=d&&D<=X&&J<=k&&O<=U;case"intersect":return Q<d+m.helperProportions.width/2&&D-m.helperProportions.width/2<X&&J<k+m.helperProportions.height/2&&O-m.helperProportions.height/2<U;case"pointer":return c(b.pageY,J,x.proportions().height)&&c(b.pageX,Q,x.proportions().width);case"touch":return(k>=J&&k<=U||O>=J&&O<=U||k<J&&O>U)&&(d>=Q&&d<=X||D>=Q&&D<=X||d<Q&&D>X);default:return!1}}}(),n.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(c,m){var x,T,b=n.ui.ddmanager.droppables[c.options.scope]||[],d=m?m.type:null,k=(c.currentItem||c.element).find(":data(ui-droppable)").addBack();e:for(x=0;x<b.length;x++)if(!(b[x].options.disabled||c&&!b[x].accept.call(b[x].element[0],c.currentItem||c.element))){for(T=0;T<k.length;T++)if(k[T]===b[x].element[0]){b[x].proportions().height=0;continue e}b[x].visible=b[x].element.css("display")!=="none",b[x].visible&&(d==="mousedown"&&b[x]._activate.call(b[x],m),b[x].offset=b[x].element.offset(),b[x].proportions({width:b[x].element[0].offsetWidth,height:b[x].element[0].offsetHeight}))}},drop:function(c,m){var x=!1;return n.each((n.ui.ddmanager.droppables[c.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&n.ui.intersect(c,this,this.options.tolerance,m)&&(x=this._drop.call(this,m)||x),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,m)))}),x},dragStart:function(c,m){c.element.parentsUntil("body").on("scroll.droppable",function(){c.options.refreshPositions||n.ui.ddmanager.prepareOffsets(c,m)})},drag:function(c,m){c.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(c,m),n.each(n.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var x,T,b,d=n.ui.intersect(c,this,this.options.tolerance,m),k=!d&&this.isover?"isout":d&&!this.isover?"isover":null;k&&(this.options.greedy&&(T=this.options.scope,b=this.element.parents(":data(ui-droppable)").filter(function(){return n(this).droppable("instance").options.scope===T}),b.length&&(x=n(b[0]).droppable("instance"),x.greedyChild=k==="isover")),x&&k==="isover"&&(x.isover=!1,x.isout=!0,x._out.call(x,m)),this[k]=!0,this[k==="isout"?"isover":"isout"]=!1,this[k==="isover"?"_over":"_out"].call(this,m),x&&k==="isout"&&(x.isout=!1,x.isover=!0,x._over.call(x,m)))}})},dragStop:function(c,m){c.element.parentsUntil("body").off("scroll.droppable"),c.options.refreshPositions||n.ui.ddmanager.prepareOffsets(c,m)}},n.uiBackCompat===!0&&n.widget("ui.droppable",n.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),n.ui.droppable;/*!
 * jQuery UI Progressbar 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.progressbar",{version:"1.14.0",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=n("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(c){if(c===void 0)return this.options.value;this.options.value=this._constrainedValue(c),this._refreshValue()},_constrainedValue:function(c){return c===void 0&&(c=this.options.value),this.indeterminate=c===!1,typeof c!="number"&&(c=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,c))},_setOptions:function(c){var m=c.value;delete c.value,this._super(c),this.options.value=this._constrainedValue(m),this._refreshValue()},_setOption:function(c,m){c==="max"&&(m=Math.max(this.min,m)),this._super(c,m)},_setOptionDisabled:function(c){this._super(c),this.element.attr("aria-disabled",c),this._toggleClass(null,"ui-state-disabled",!!c)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var c=this.options.value,m=this._percentage();this.valueDiv.toggle(this.indeterminate||c>this.min).width(m.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,c===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":c}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==c&&(this.oldValue=c,this._trigger("change")),c===this.options.max&&this._trigger("complete")}});/*!
 * jQuery UI Selectable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.selectable",n.ui.mouse,{version:"1.14.0",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var c=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){c.elementPos=n(c.element[0]).offset(),c.selectees=n(c.options.filter,c.element[0]),c._addClass(c.selectees,"ui-selectee"),c.selectees.each(function(){var m=n(this),x=m.offset(),T={left:x.left-c.elementPos.left,top:x.top-c.elementPos.top};n.data(this,"selectable-item",{element:this,$element:m,left:T.left,top:T.top,right:T.left+m.outerWidth(),bottom:T.top+m.outerHeight(),startselected:!1,selected:m.hasClass("ui-selected"),selecting:m.hasClass("ui-selecting"),unselecting:m.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=n("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(c){var m=this,x=this.options;this.opos=[c.pageX,c.pageY],this.elementPos=n(this.element[0]).offset(),!this.options.disabled&&(this.selectees=n(x.filter,this.element[0]),this._trigger("start",c),n(x.appendTo).append(this.helper),this.helper.css({left:c.pageX,top:c.pageY,width:0,height:0}),x.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var T=n.data(this,"selectable-item");T.startselected=!0,!c.metaKey&&!c.ctrlKey&&(m._removeClass(T.$element,"ui-selected"),T.selected=!1,m._addClass(T.$element,"ui-unselecting"),T.unselecting=!0,m._trigger("unselecting",c,{unselecting:T.element}))}),n(c.target).parents().addBack().each(function(){var T,b=n.data(this,"selectable-item");if(b)return T=!c.metaKey&&!c.ctrlKey||!b.$element.hasClass("ui-selected"),m._removeClass(b.$element,T?"ui-unselecting":"ui-selected")._addClass(b.$element,T?"ui-selecting":"ui-unselecting"),b.unselecting=!T,b.selecting=T,b.selected=T,T?m._trigger("selecting",c,{selecting:b.element}):m._trigger("unselecting",c,{unselecting:b.element}),!1}))},_mouseDrag:function(c){if(this.dragged=!0,!this.options.disabled){var m,x=this,T=this.options,b=this.opos[0],d=this.opos[1],k=c.pageX,D=c.pageY;return b>k&&(m=k,k=b,b=m),d>D&&(m=D,D=d,d=m),this.helper.css({left:b,top:d,width:k-b,height:D-d}),this.selectees.each(function(){var O=n.data(this,"selectable-item"),Q=!1,J={};!O||O.element===x.element[0]||(J.left=O.left+x.elementPos.left,J.right=O.right+x.elementPos.left,J.top=O.top+x.elementPos.top,J.bottom=O.bottom+x.elementPos.top,T.tolerance==="touch"?Q=!(J.left>k||J.right<b||J.top>D||J.bottom<d):T.tolerance==="fit"&&(Q=J.left>b&&J.right<k&&J.top>d&&J.bottom<D),Q?(O.selected&&(x._removeClass(O.$element,"ui-selected"),O.selected=!1),O.unselecting&&(x._removeClass(O.$element,"ui-unselecting"),O.unselecting=!1),O.selecting||(x._addClass(O.$element,"ui-selecting"),O.selecting=!0,x._trigger("selecting",c,{selecting:O.element}))):(O.selecting&&((c.metaKey||c.ctrlKey)&&O.startselected?(x._removeClass(O.$element,"ui-selecting"),O.selecting=!1,x._addClass(O.$element,"ui-selected"),O.selected=!0):(x._removeClass(O.$element,"ui-selecting"),O.selecting=!1,O.startselected&&(x._addClass(O.$element,"ui-unselecting"),O.unselecting=!0),x._trigger("unselecting",c,{unselecting:O.element}))),O.selected&&!c.metaKey&&!c.ctrlKey&&!O.startselected&&(x._removeClass(O.$element,"ui-selected"),O.selected=!1,x._addClass(O.$element,"ui-unselecting"),O.unselecting=!0,x._trigger("unselecting",c,{unselecting:O.element}))))}),!1}},_mouseStop:function(c){var m=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var x=n.data(this,"selectable-item");m._removeClass(x.$element,"ui-unselecting"),x.unselecting=!1,x.startselected=!1,m._trigger("unselected",c,{unselected:x.element})}),n(".ui-selecting",this.element[0]).each(function(){var x=n.data(this,"selectable-item");m._removeClass(x.$element,"ui-selecting")._addClass(x.$element,"ui-selected"),x.selecting=!1,x.selected=!0,x.startselected=!0,m._trigger("selected",c,{selected:x.element})}),this._trigger("stop",c),this.helper.remove(),!1}});/*!
 * jQuery UI Selectmenu 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.selectmenu",[n.ui.formResetMixin,{version:"1.14.0",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var c=this.element.uniqueId().attr("id");this.ids={element:c,button:c+"-button",menu:c+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=n()},_drawButton:function(){var c,m=this,x=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(T){this.button.trigger("focus"),T.preventDefault()}}),this.element.hide(),this.button=n("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),c=n("<span>").appendTo(this.button),this._addClass(c,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(x).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){m._rendered||m._refreshMenu()})},_drawMenu:function(){var c=this;this.menu=n("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=n("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(m,x){m.preventDefault(),c._select(x.item.data("ui-selectmenu-item"),m)},focus:function(m,x){var T=x.item.data("ui-selectmenu-item");c.focusIndex!=null&&T.index!==c.focusIndex&&(c._trigger("focus",m,{item:T}),c.isOpen||c._select(T,m)),c.focusIndex=T.index,c.button.attr("aria-activedescendant",c.menuItems.eq(T.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),this.options.width===null&&this._resizeButton()},_refreshMenu:function(){var c,m=this.element.find("option");this.menu.empty(),this._parseOptions(m),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,m.length&&(c=this._getSelectedItem(),this.menuInstance.focus(null,c),this._setAria(c.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(c){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",c)))},_position:function(){this.menuWrap.position(n.extend({of:this.button},this.options.position))},close:function(c){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",c))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(c){var m=n("<span>");return this._setText(m,c.label),this._addClass(m,"ui-selectmenu-text"),m},_renderMenu:function(c,m){var x=this,T="";n.each(m,function(b,d){var k;d.optgroup!==T&&(k=n("<li>",{text:d.optgroup}),x._addClass(k,"ui-selectmenu-optgroup","ui-menu-divider"+(d.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),k.appendTo(c),T=d.optgroup),x._renderItemData(c,d)})},_renderItemData:function(c,m){return this._renderItem(c,m).data("ui-selectmenu-item",m)},_renderItem:function(c,m){var x=n("<li>"),T=n("<div>",{title:m.element.attr("title")});return m.disabled&&this._addClass(x,null,"ui-state-disabled"),m.hidden?x.prop("hidden",!0):this._setText(T,m.label),x.append(T).appendTo(c)},_setText:function(c,m){m?c.text(m):c.html("&#160;")},_move:function(c,m){var x,T,b=".ui-menu-item";this.isOpen?x=this.menuItems.eq(this.focusIndex).parent("li"):(x=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),b+=":not(.ui-state-disabled)"),c==="first"||c==="last"?T=x[c==="first"?"prevAll":"nextAll"](b).eq(-1):T=x[c+"All"](b).eq(0),T.length&&this.menuInstance.focus(m,T)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(c){this[this.isOpen?"close":"open"](c)},_setSelection:function(){var c;this.range&&(c=window.getSelection(),c.removeAllRanges(),c.addRange(this.range))},_documentClick:{mousedown:function(c){this.isOpen&&(n(c.target).closest(".ui-selectmenu-menu, #"+CSS.escape(this.ids.button)).length||this.close(c))}},_buttonEvents:{mousedown:function(){var c=window.getSelection();c.rangeCount&&(this.range=c.getRangeAt(0))},click:function(c){this._setSelection(),this._toggle(c)},keydown:function(c){var m=!0;switch(c.keyCode){case n.ui.keyCode.TAB:case n.ui.keyCode.ESCAPE:this.close(c),m=!1;break;case n.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(c);break;case n.ui.keyCode.UP:c.altKey?this._toggle(c):this._move("prev",c);break;case n.ui.keyCode.DOWN:c.altKey?this._toggle(c):this._move("next",c);break;case n.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(c):this._toggle(c);break;case n.ui.keyCode.LEFT:this._move("prev",c);break;case n.ui.keyCode.RIGHT:this._move("next",c);break;case n.ui.keyCode.HOME:case n.ui.keyCode.PAGE_UP:this._move("first",c);break;case n.ui.keyCode.END:case n.ui.keyCode.PAGE_DOWN:this._move("last",c);break;default:this.menu.trigger(c),m=!1}m&&c.preventDefault()}},_selectFocusedItem:function(c){var m=this.menuItems.eq(this.focusIndex).parent("li");m.hasClass("ui-state-disabled")||this._select(m.data("ui-selectmenu-item"),c)},_select:function(c,m){var x=this.element[0].selectedIndex;this.element[0].selectedIndex=c.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(c)),this._setAria(c),this._trigger("select",m,{item:c}),c.index!==x&&this._trigger("change",m,{item:c}),this.close(m)},_setAria:function(c){var m=this.menuItems.eq(c.index).attr("id");this.button.attr({"aria-labelledby":m,"aria-activedescendant":m}),this.menu.attr("aria-activedescendant",m)},_setOption:function(c,m){if(c==="icons"){var x=this.button.find("span.ui-icon");this._removeClass(x,null,this.options.icons.button)._addClass(x,null,m.button)}this._super(c,m),c==="appendTo"&&this.menuWrap.appendTo(this._appendTo()),c==="width"&&this._resizeButton()},_setOptionDisabled:function(c){this._super(c),this.menuInstance.option("disabled",c),this.button.attr("aria-disabled",c),this._toggleClass(this.button,null,"ui-state-disabled",c),this.element.prop("disabled",c),c?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var c=this.options.appendTo;return c&&(c=c.jquery||c.nodeType?n(c):this.document.find(c).eq(0)),(!c||!c[0])&&(c=this.element.closest(".ui-front, dialog")),c.length||(c=this.document[0].body),c},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var c=this.options.width;if(c===!1){this.button.css("width","");return}c===null&&(c=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(c)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()))},_getCreateOptions:function(){var c=this._super();return c.disabled=this.element.prop("disabled"),c},_parseOptions:function(c){var m=this,x=[];c.each(function(T,b){x.push(m._parseOption(n(b),T))}),this.items=x},_parseOption:function(c,m){var x=c.parent("optgroup");return{element:c,index:m,value:c.val(),label:c.text(),hidden:x.prop("hidden")||c.prop("hidden"),optgroup:x.attr("label")||"",disabled:x.prop("disabled")||c.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]);/*!
 * jQuery UI Slider 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.slider",n.ui.mouse,{version:"1.14.0",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var c,m,x=this.options,T=this.element.find(".ui-slider-handle"),b="<span tabindex='0'></span>",d=[];for(m=x.values&&x.values.length||1,T.length>m&&(T.slice(m).remove(),T=T.slice(0,m)),c=T.length;c<m;c++)d.push(b);this.handles=T.add(n(d.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(k){n(this).data("ui-slider-handle-index",k).attr("tabIndex",0)})},_createRange:function(){var c=this.options;c.range?(c.range===!0&&(c.values?c.values.length&&c.values.length!==2?c.values=[c.values[0],c.values[0]]:Array.isArray(c.values)&&(c.values=c.values.slice(0)):c.values=[this._valueMin(),this._valueMin()]),!this.range||!this.range.length?(this.range=n("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")):(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})),(c.range==="min"||c.range==="max")&&this._addClass(this.range,"ui-slider-range-"+c.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(c){var m,x,T,b,d,k,D,O,Q=this,J=this.options;return J.disabled||(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),m={x:c.pageX,y:c.pageY},x=this._normValueFromMouse(m),T=this._valueMax()-this._valueMin()+1,this.handles.each(function(X){var U=Math.abs(x-Q.values(X));(T>U||T===U&&(X===Q._lastChangedValue||Q.values(X)===J.min))&&(T=U,b=n(this),d=X)}),k=this._start(c,d),k===!1)?!1:(this._mouseSliding=!0,this._handleIndex=d,this._addClass(b,null,"ui-state-active"),b.trigger("focus"),D=b.offset(),O=!n(c.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=O?{left:0,top:0}:{left:c.pageX-D.left-b.width()/2,top:c.pageY-D.top-b.height()/2-(parseInt(b.css("borderTopWidth"),10)||0)-(parseInt(b.css("borderBottomWidth"),10)||0)+(parseInt(b.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(c,d,x),this._animateOff=!0,!0)},_mouseStart:function(){return!0},_mouseDrag:function(c){var m={x:c.pageX,y:c.pageY},x=this._normValueFromMouse(m);return this._slide(c,this._handleIndex,x),!1},_mouseStop:function(c){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(c,this._handleIndex),this._change(c,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(c){var m,x,T,b,d;return this.orientation==="horizontal"?(m=this.elementSize.width,x=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(m=this.elementSize.height,x=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),T=x/m,T>1&&(T=1),T<0&&(T=0),this.orientation==="vertical"&&(T=1-T),b=this._valueMax()-this._valueMin(),d=this._valueMin()+T*b,this._trimAlignValue(d)},_uiHash:function(c,m,x){var T={handle:this.handles[c],handleIndex:c,value:m!==void 0?m:this.value()};return this._hasMultipleValues()&&(T.value=m!==void 0?m:this.values(c),T.values=x||this.values()),T},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(c,m){return this._trigger("start",c,this._uiHash(m))},_slide:function(c,m,x){var T,b,d=this.value(),k=this.values();this._hasMultipleValues()&&(b=this.values(m?0:1),d=this.values(m),this.options.values.length===2&&this.options.range===!0&&(x=m===0?Math.min(b,x):Math.max(b,x)),k[m]=x),x!==d&&(T=this._trigger("slide",c,this._uiHash(m,x,k)),T!==!1&&(this._hasMultipleValues()?this.values(m,x):this.value(x)))},_stop:function(c,m){this._trigger("stop",c,this._uiHash(m))},_change:function(c,m){!this._keySliding&&!this._mouseSliding&&(this._lastChangedValue=m,this._trigger("change",c,this._uiHash(m)))},value:function(c){if(arguments.length){this.options.value=this._trimAlignValue(c),this._refreshValue(),this._change(null,0);return}return this._value()},values:function(c,m){var x,T,b;if(arguments.length>1){this.options.values[c]=this._trimAlignValue(m),this._refreshValue(),this._change(null,c);return}if(arguments.length)if(Array.isArray(arguments[0])){for(x=this.options.values,T=arguments[0],b=0;b<x.length;b+=1)x[b]=this._trimAlignValue(T[b]),this._change(null,b);this._refreshValue()}else return this._hasMultipleValues()?this._values(c):this.value();else return this._values()},_setOption:function(c,m){var x,T=0;switch(c==="range"&&this.options.range===!0&&(m==="min"?(this.options.value=this._values(0),this.options.values=null):m==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(T=this.options.values.length),this._super(c,m),c){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(m),this.handles.css(m==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),x=T-1;x>=0;x--)this._change(null,x);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1;break}},_setOptionDisabled:function(c){this._super(c),this._toggleClass(null,"ui-state-disabled",!!c)},_value:function(){var c=this.options.value;return c=this._trimAlignValue(c),c},_values:function(c){var m,x,T;if(arguments.length)return m=this.options.values[c],m=this._trimAlignValue(m),m;if(this._hasMultipleValues()){for(x=this.options.values.slice(),T=0;T<x.length;T+=1)x[T]=this._trimAlignValue(x[T]);return x}else return[]},_trimAlignValue:function(c){if(c<=this._valueMin())return this._valueMin();if(c>=this._valueMax())return this._valueMax();var m=this.options.step>0?this.options.step:1,x=(c-this._valueMin())%m,T=c-x;return Math.abs(x)*2>=m&&(T+=x>0?m:-m),parseFloat(T.toFixed(5))},_calculateNewMax:function(){var c=this.options.max,m=this._valueMin(),x=this.options.step,T=Math.round((c-m)/x)*x;c=T+m,c>this.options.max&&(c-=x),this.max=parseFloat(c.toFixed(this._precision()))},_precision:function(){var c=this._precisionOf(this.options.step);return this.options.min!==null&&(c=Math.max(c,this._precisionOf(this.options.min))),c},_precisionOf:function(c){var m=c.toString(),x=m.indexOf(".");return x===-1?0:m.length-x-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(c){c==="vertical"&&this.range.css({width:"",left:""}),c==="horizontal"&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var c,m,x,T,b,d=this.options.range,k=this.options,D=this,O=this._animateOff?!1:k.animate,Q={};this._hasMultipleValues()?this.handles.each(function(J){m=(D.values(J)-D._valueMin())/(D._valueMax()-D._valueMin())*100,Q[D.orientation==="horizontal"?"left":"bottom"]=m+"%",n(this).stop(1,1)[O?"animate":"css"](Q,k.animate),D.options.range===!0&&(D.orientation==="horizontal"?(J===0&&D.range.stop(1,1)[O?"animate":"css"]({left:m+"%"},k.animate),J===1&&D.range[O?"animate":"css"]({width:m-c+"%"},{queue:!1,duration:k.animate})):(J===0&&D.range.stop(1,1)[O?"animate":"css"]({bottom:m+"%"},k.animate),J===1&&D.range[O?"animate":"css"]({height:m-c+"%"},{queue:!1,duration:k.animate}))),c=m}):(x=this.value(),T=this._valueMin(),b=this._valueMax(),m=b!==T?(x-T)/(b-T)*100:0,Q[this.orientation==="horizontal"?"left":"bottom"]=m+"%",this.handle.stop(1,1)[O?"animate":"css"](Q,k.animate),d==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[O?"animate":"css"]({width:m+"%"},k.animate),d==="max"&&this.orientation==="horizontal"&&this.range.stop(1,1)[O?"animate":"css"]({width:100-m+"%"},k.animate),d==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[O?"animate":"css"]({height:m+"%"},k.animate),d==="max"&&this.orientation==="vertical"&&this.range.stop(1,1)[O?"animate":"css"]({height:100-m+"%"},k.animate))},_handleEvents:{keydown:function(c){var m,x,T,b,d=n(c.target).data("ui-slider-handle-index");switch(c.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(c.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(n(c.target),null,"ui-state-active"),m=this._start(c,d),m===!1))return;break}switch(b=this.options.step,this._hasMultipleValues()?x=T=this.values(d):x=T=this.value(),c.keyCode){case n.ui.keyCode.HOME:T=this._valueMin();break;case n.ui.keyCode.END:T=this._valueMax();break;case n.ui.keyCode.PAGE_UP:T=this._trimAlignValue(x+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:T=this._trimAlignValue(x-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(x===this._valueMax())return;T=this._trimAlignValue(x+b);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(x===this._valueMin())return;T=this._trimAlignValue(x-b);break}this._slide(c,d,T)},keyup:function(c){var m=n(c.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(c,m),this._change(c,m),this._removeClass(n(c.target),null,"ui-state-active"))}}});/*!
 * jQuery UI Sortable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.sortable",n.ui.mouse,{version:"1.14.0",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(c,m,x){return c>=m&&c<m+x},_isFloating:function(c){return/left|right/.test(c.css("float"))||/inline|table-cell/.test(c.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(c,m){this._super(c,m),c==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var c=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),n.each(this.items,function(){c._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var c=this.items.length-1;c>=0;c--)this.items[c].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(c,m){var x=null,T=!1,b=this;return this.reverting||this.options.disabled||this.options.type==="static"||(this._refreshItems(c),n(c.target).parents().each(function(){if(n.data(this,b.widgetName+"-item")===b)return x=n(this),!1}),n.data(c.target,b.widgetName+"-item")===b&&(x=n(c.target)),!x)||this.options.handle&&!m&&(n(this.options.handle,x).find("*").addBack().each(function(){this===c.target&&(T=!0)}),!T)?!1:(this.currentItem=x,this._removeCurrentsFromItems(),!0)},_mouseStart:function(c,m,x){var T,b,d=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=n(d.appendTo!=="parent"?d.appendTo:this.currentItem.parent()),this.helper=this._createHelper(c),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),n.extend(this.offset,{parent:this._getParentOffset()}),d.containment&&this._setContainment(),d.cursor&&d.cursor!=="auto"&&(b=this.document.find("body"),this._storedStylesheet=n("<style>*{ cursor: "+d.cursor+" !important; }</style>").appendTo(b)),d.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",d.zIndex)),d.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",d.opacity)),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",c,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!x)for(T=this.containers.length-1;T>=0;T--)this.containers[T]._trigger("activate",c,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!d.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,c),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(c),this.originalPageX=c.pageX,this.originalPageY=c.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(c),!0},_scroll:function(c){var m=this.options,x=!1;return this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-c.pageY<m.scrollSensitivity?this.scrollParent[0].scrollTop=x=this.scrollParent[0].scrollTop+m.scrollSpeed:c.pageY-this.overflowOffset.top<m.scrollSensitivity&&(this.scrollParent[0].scrollTop=x=this.scrollParent[0].scrollTop-m.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-c.pageX<m.scrollSensitivity?this.scrollParent[0].scrollLeft=x=this.scrollParent[0].scrollLeft+m.scrollSpeed:c.pageX-this.overflowOffset.left<m.scrollSensitivity&&(this.scrollParent[0].scrollLeft=x=this.scrollParent[0].scrollLeft-m.scrollSpeed)):(c.pageY-this.document.scrollTop()<m.scrollSensitivity?x=this.document.scrollTop(this.document.scrollTop()-m.scrollSpeed):this.window.height()-(c.pageY-this.document.scrollTop())<m.scrollSensitivity&&(x=this.document.scrollTop(this.document.scrollTop()+m.scrollSpeed)),c.pageX-this.document.scrollLeft()<m.scrollSensitivity?x=this.document.scrollLeft(this.document.scrollLeft()-m.scrollSpeed):this.window.width()-(c.pageX-this.document.scrollLeft())<m.scrollSensitivity&&(x=this.document.scrollLeft(this.document.scrollLeft()+m.scrollSpeed))),x},_mouseDrag:function(c){var m,x,T,b,d=this.options;for(this.position=this._generatePosition(c),this.positionAbs=this._convertPositionTo("absolute"),(!this.options.axis||this.options.axis!=="y")&&(this.helper[0].style.left=this.position.left+"px"),(!this.options.axis||this.options.axis!=="x")&&(this.helper[0].style.top=this.position.top+"px"),d.scroll&&this._scroll(c)!==!1&&(this._refreshItemPositions(!0),n.ui.ddmanager&&!d.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,c)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},m=this.items.length-1;m>=0;m--)if(x=this.items[m],T=x.item[0],b=this._intersectsWithPointer(x),!!b&&x.instance===this.currentContainer&&T!==this.currentItem[0]&&this.placeholder[b===1?"next":"prev"]()[0]!==T&&!n.contains(this.placeholder[0],T)&&(this.options.type!=="semi-dynamic"||!n.contains(this.element[0],T))){if(this.direction=b===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(x))this._rearrange(c,x);else break;this._trigger("change",c,this._uiHash());break}return this._contactContainers(c),n.ui.ddmanager&&n.ui.ddmanager.drag(this,c),this._trigger("sort",c,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(c,m){if(c){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,c),this.options.revert){var x=this,T=this.placeholder.offset(),b=this.options.axis,d={};(!b||b==="x")&&(d.left=T.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),(!b||b==="y")&&(d.top=T.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,n(this.helper).animate(d,parseInt(this.options.revert,10)||500,function(){x._clear(c)})}else this._clear(c,m);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new n.Event("mouseup",{target:null})),this.options.helper==="original"?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("deactivate",null,this._uiHash(this)),this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",null,this._uiHash(this)),this.containers[c].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(c){var m=this._getItemsAsjQuery(c&&c.connected),x=[];return c=c||{},n(m).each(function(){var T=(n(c.item||this).attr(c.attribute||"id")||"").match(c.expression||/(.+)[\-=_](.+)/);T&&x.push((c.key||T[1]+"[]")+"="+(c.key&&c.expression?T[1]:T[2]))}),!x.length&&c.key&&x.push(c.key+"="),x.join("&")},toArray:function(c){var m=this._getItemsAsjQuery(c&&c.connected),x=[];return c=c||{},m.each(function(){x.push(n(c.item||this).attr(c.attribute||"id")||"")}),x},_intersectsWith:function(c){var m=this.positionAbs.left,x=m+this.helperProportions.width,T=this.positionAbs.top,b=T+this.helperProportions.height,d=c.left,k=d+c.width,D=c.top,O=D+c.height,Q=this.offset.click.top,J=this.offset.click.left,X=this.options.axis==="x"||T+Q>D&&T+Q<O,U=this.options.axis==="y"||m+J>d&&m+J<k,z=X&&U;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>c[this.floating?"width":"height"]?z:d<m+this.helperProportions.width/2&&x-this.helperProportions.width/2<k&&D<T+this.helperProportions.height/2&&b-this.helperProportions.height/2<O},_intersectsWithPointer:function(c){var m,x,T=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,c.top,c.height),b=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,c.left,c.width),d=T&&b;return d?(m=this.dragDirection.vertical,x=this.dragDirection.horizontal,this.floating?x==="right"||m==="down"?2:1:m&&(m==="down"?2:1)):!1},_intersectsWithSides:function(c){var m=this._isOverAxis(this.positionAbs.top+this.offset.click.top,c.top+c.height/2,c.height),x=this._isOverAxis(this.positionAbs.left+this.offset.click.left,c.left+c.width/2,c.width),T=this.dragDirection.vertical,b=this.dragDirection.horizontal;return this.floating&&b?b==="right"&&x||b==="left"&&!x:T&&(T==="down"&&m||T==="up"&&!m)},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!==0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=this.positionAbs.left-this.lastPositionAbs.left;return c!==0&&(c>0?"right":"left")},refresh:function(c){return this._refreshItems(c),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var c=this.options;return c.connectWith.constructor===String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){var m,x,T,b,d=[],k=[],D=this._connectWith();if(D&&c)for(m=D.length-1;m>=0;m--)for(T=n(D[m],this.document[0]),x=T.length-1;x>=0;x--)b=n.data(T[x],this.widgetFullName),b&&b!==this&&!b.options.disabled&&k.push([typeof b.options.items=="function"?b.options.items.call(b.element):n(b.options.items,b.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),b]);k.push([typeof this.options.items=="function"?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function O(){d.push(this)}for(m=k.length-1;m>=0;m--)k[m][0].each(O);return n(d)},_removeCurrentsFromItems:function(){var c=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(m){for(var x=0;x<c.length;x++)if(c[x]===m.item[0])return!1;return!0})},_refreshItems:function(c){this.items=[],this.containers=[this];var m,x,T,b,d,k,D,O,Q=this.items,J=[[typeof this.options.items=="function"?this.options.items.call(this.element[0],c,{item:this.currentItem}):n(this.options.items,this.element),this]],X=this._connectWith();if(X&&this.ready)for(m=X.length-1;m>=0;m--)for(T=n(X[m],this.document[0]),x=T.length-1;x>=0;x--)b=n.data(T[x],this.widgetFullName),b&&b!==this&&!b.options.disabled&&(J.push([typeof b.options.items=="function"?b.options.items.call(b.element[0],c,{item:this.currentItem}):n(b.options.items,b.element),b]),this.containers.push(b));for(m=J.length-1;m>=0;m--)for(d=J[m][1],k=J[m][0],x=0,O=k.length;x<O;x++)D=n(k[x]),D.data(this.widgetName+"-item",d),Q.push({item:D,instance:d,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(c){var m,x,T,b;for(m=this.items.length-1;m>=0;m--)x=this.items[m],!(this.currentContainer&&x.instance!==this.currentContainer&&x.item[0]!==this.currentItem[0])&&(T=this.options.toleranceElement?n(this.options.toleranceElement,x.item):x.item,c||(x.width=T.outerWidth(),x.height=T.outerHeight()),b=T.offset(),x.left=b.left,x.top=b.top)},refreshPositions:function(c){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(c);var m,x;if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(m=this.containers.length-1;m>=0;m--)x=this.containers[m].element.offset(),this.containers[m].containerCache.left=x.left,this.containers[m].containerCache.top=x.top,this.containers[m].containerCache.width=this.containers[m].element.outerWidth(),this.containers[m].containerCache.height=this.containers[m].element.outerHeight();return this},_createPlaceholder:function(c){c=c||this;var m,x,T=c.options;(!T.placeholder||T.placeholder.constructor===String)&&(m=T.placeholder,x=c.currentItem[0].nodeName.toLowerCase(),T.placeholder={element:function(){var b=n("<"+x+">",c.document[0]);return c._addClass(b,"ui-sortable-placeholder",m||c.currentItem[0].className)._removeClass(b,"ui-sortable-helper"),x==="tbody"?c._createTrPlaceholder(c.currentItem.find("tr").eq(0),n("<tr>",c.document[0]).appendTo(b)):x==="tr"?c._createTrPlaceholder(c.currentItem,b):x==="img"&&b.attr("src",c.currentItem.attr("src")),m||b.css("visibility","hidden"),b},update:function(b,d){m&&!T.forcePlaceholderSize||((!d.height()||T.forcePlaceholderSize&&(x==="tbody"||x==="tr"))&&d.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10)),d.width()||d.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10)))}}),c.placeholder=n(T.placeholder.element.call(c.element,c.currentItem)),c.currentItem.after(c.placeholder),T.placeholder.update(c,c.placeholder)},_createTrPlaceholder:function(c,m){var x=this;c.children().each(function(){n("<td>&#160;</td>",x.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(m)})},_contactContainers:function(c){var m,x,T,b,d,k,D,O,Q,J,X=null,U=null;for(m=this.containers.length-1;m>=0;m--)if(!n.contains(this.currentItem[0],this.containers[m].element[0]))if(this._intersectsWith(this.containers[m].containerCache)){if(X&&n.contains(this.containers[m].element[0],X.element[0]))continue;X=this.containers[m],U=m}else this.containers[m].containerCache.over&&(this.containers[m]._trigger("out",c,this._uiHash(this)),this.containers[m].containerCache.over=0);if(X)if(this.containers.length===1)this.containers[U].containerCache.over||(this.containers[U]._trigger("over",c,this._uiHash(this)),this.containers[U].containerCache.over=1);else{for(T=1e4,b=null,Q=X.floating||this._isFloating(this.currentItem),d=Q?"left":"top",k=Q?"width":"height",J=Q?"pageX":"pageY",x=this.items.length-1;x>=0;x--)n.contains(this.containers[U].element[0],this.items[x].item[0])&&this.items[x].item[0]!==this.currentItem[0]&&(D=this.items[x].item.offset()[d],O=!1,c[J]-D>this.items[x][k]/2&&(O=!0),Math.abs(c[J]-D)<T&&(T=Math.abs(c[J]-D),b=this.items[x],this.direction=O?"up":"down"));if(!b&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[U]){this.currentContainer.containerCache.over||(this.containers[U]._trigger("over",c,this._uiHash()),this.currentContainer.containerCache.over=1);return}b?this._rearrange(c,b,null,!0):this._rearrange(c,null,this.containers[U].element,!0),this._trigger("change",c,this._uiHash()),this.containers[U]._trigger("change",c,this._uiHash(this)),this.currentContainer=this.containers[U],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this.containers[U]._trigger("over",c,this._uiHash(this)),this.containers[U].containerCache.over=1}},_createHelper:function(c){var m=this.options,x=typeof m.helper=="function"?n(m.helper.apply(this.element[0],[c,this.currentItem])):m.helper==="clone"?this.currentItem.clone():this.currentItem;return x.parents("body").length||this.appendTo[0].appendChild(x[0]),x[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!x[0].style.width||m.forceHelperSize)&&x.width(this.currentItem.width()),(!x[0].style.height||m.forceHelperSize)&&x.height(this.currentItem.height()),x},_adjustOffsetFromHelper:function(c){typeof c=="string"&&(c=c.split(" ")),Array.isArray(c)&&(c={left:+c[0],top:+c[1]||0}),"left"in c&&(this.offset.click.left=c.left+this.margins.left),"right"in c&&(this.offset.click.left=this.helperProportions.width-c.right+this.margins.left),"top"in c&&(this.offset.click.top=c.top+this.margins.top),"bottom"in c&&(this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(c.left+=this.scrollParent.scrollLeft(),c.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(c={top:0,left:0}),{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var c=this.currentItem.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c,m,x,T=this.options;T.containment==="parent"&&(T.containment=this.helper[0].parentNode),(T.containment==="document"||T.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,T.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(T.containment==="document"?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(T.containment)||(c=n(T.containment)[0],m=n(T.containment).offset(),x=n(c).css("overflow")!=="hidden",this.containment=[m.left+(parseInt(n(c).css("borderLeftWidth"),10)||0)+(parseInt(n(c).css("paddingLeft"),10)||0)-this.margins.left,m.top+(parseInt(n(c).css("borderTopWidth"),10)||0)+(parseInt(n(c).css("paddingTop"),10)||0)-this.margins.top,m.left+(x?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(n(c).css("borderLeftWidth"),10)||0)-(parseInt(n(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,m.top+(x?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(n(c).css("borderTopWidth"),10)||0)-(parseInt(n(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(c,m){m||(m=this.position);var x=c==="absolute"?1:-1,T=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(T[0].tagName);return{top:m.top+this.offset.relative.top*x+this.offset.parent.top*x-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():b?0:T.scrollTop())*x,left:m.left+this.offset.relative.left*x+this.offset.parent.left*x-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():b?0:T.scrollLeft())*x}},_generatePosition:function(c){var m,x,T=this.options,b=c.pageX,d=c.pageY,k=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,D=/(html|body)/i.test(k[0].tagName);return this.cssPosition==="relative"&&!(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(c.pageX-this.offset.click.left<this.containment[0]&&(b=this.containment[0]+this.offset.click.left),c.pageY-this.offset.click.top<this.containment[1]&&(d=this.containment[1]+this.offset.click.top),c.pageX-this.offset.click.left>this.containment[2]&&(b=this.containment[2]+this.offset.click.left),c.pageY-this.offset.click.top>this.containment[3]&&(d=this.containment[3]+this.offset.click.top)),T.grid&&(m=this.originalPageY+Math.round((d-this.originalPageY)/T.grid[1])*T.grid[1],d=this.containment?m-this.offset.click.top>=this.containment[1]&&m-this.offset.click.top<=this.containment[3]?m:m-this.offset.click.top>=this.containment[1]?m-T.grid[1]:m+T.grid[1]:m,x=this.originalPageX+Math.round((b-this.originalPageX)/T.grid[0])*T.grid[0],b=this.containment?x-this.offset.click.left>=this.containment[0]&&x-this.offset.click.left<=this.containment[2]?x:x-this.offset.click.left>=this.containment[0]?x-T.grid[0]:x+T.grid[0]:x)),{top:d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():D?0:k.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():D?0:k.scrollLeft())}},_rearrange:function(c,m,x,T){x?x[0].appendChild(this.placeholder[0]):m.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?m.item[0]:m.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var b=this.counter;this._delay(function(){b===this.counter&&this.refreshPositions(!T)})},_clear:function(c,m){this.reverting=!1;var x,T=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(x in this._storedCSS)(this._storedCSS[x]==="auto"||this._storedCSS[x]==="static")&&(this._storedCSS[x]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!m&&T.push(function(d){this._trigger("receive",d,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!m&&T.push(function(d){this._trigger("update",d,this._uiHash())}),this!==this.currentContainer&&(m||(T.push(function(d){this._trigger("remove",d,this._uiHash())}),T.push((function(d){return function(k){d._trigger("receive",k,this._uiHash(this))}}).call(this,this.currentContainer)),T.push((function(d){return function(k){d._trigger("update",k,this._uiHash(this))}}).call(this,this.currentContainer))));function b(d,k,D){return function(O){D._trigger(d,O,k._uiHash(k))}}for(x=this.containers.length-1;x>=0;x--)m||T.push(b("deactivate",this,this.containers[x])),this.containers[x].containerCache.over&&(T.push(b("out",this,this.containers[x])),this.containers[x].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,m||this._trigger("beforeStop",c,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!m){for(x=0;x<T.length;x++)T[x].call(this,c);this._trigger("stop",c,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(c){var m=c||this;return{helper:m.helper,placeholder:m.placeholder||n([]),position:m.position,originalPosition:m.originalPosition,offset:m.positionAbs,item:m.currentItem,sender:c?c.element:null}}});/*!
 * jQuery UI Spinner 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */function S(c){return function(){var m=this.element.val();c.apply(this,arguments),this._refresh(),m!==this.element.val()&&this._trigger("change")}}n.widget("ui.spinner",{version:"1.14.0",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this.value()!==""&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var c=this._super(),m=this.element;return n.each(["min","max","step"],function(x,T){var b=m.attr(T);b!=null&&b.length&&(c[T]=b)}),c},_events:{keydown:function(c){this._start(c)&&this._keydown(c)&&c.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(c){this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",c)},mousewheel:function(c,m){var x=this.document[0].activeElement,T=this.element[0]===x;if(!(!T||!m)){if(!this.spinning&&!this._start(c))return!1;this._spin((m>0?1:-1)*this.options.step,c),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(c)},100),c.preventDefault()}},"mousedown .ui-spinner-button":function(c){var m;m=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();function x(){var T=this.element[0]===this.document[0].activeElement;T||(this.element.trigger("focus"),this.previous=m)}c.preventDefault(),x.call(this),this._start(c)!==!1&&this._repeat(null,n(c.currentTarget).hasClass("ui-spinner-up")?1:-1,c)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(c){if(n(c.currentTarget).hasClass("ui-state-active")){if(this._start(c)===!1)return!1;this._repeat(null,n(c.currentTarget).hasClass("ui-spinner-up")?1:-1,c)}},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(this.uiSpinner.height()*.5)&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(c){var m=this.options,x=n.ui.keyCode;switch(c.keyCode){case x.UP:return this._repeat(null,1,c),!0;case x.DOWN:return this._repeat(null,-1,c),!0;case x.PAGE_UP:return this._repeat(null,m.page,c),!0;case x.PAGE_DOWN:return this._repeat(null,-m.page,c),!0}return!1},_start:function(c){return!this.spinning&&this._trigger("start",c)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(c,m,x){c=c||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,m,x)},c),this._spin(m*this.options.step,x)},_spin:function(c,m){var x=this.value()||0;this.counter||(this.counter=1),x=this._adjustValue(x+c*this._increment(this.counter)),(!this.spinning||this._trigger("spin",m,{value:x})!==!1)&&(this._value(x),this.counter++)},_increment:function(c){var m=this.options.incremental;return m?typeof m=="function"?m(c):Math.floor(c*c*c/5e4-c*c/500+17*c/200+1):1},_precision:function(){var c=this._precisionOf(this.options.step);return this.options.min!==null&&(c=Math.max(c,this._precisionOf(this.options.min))),c},_precisionOf:function(c){var m=c.toString(),x=m.indexOf(".");return x===-1?0:m.length-x-1},_adjustValue:function(c){var m,x,T=this.options;return m=T.min!==null?T.min:0,x=c-m,x=Math.round(x/T.step)*T.step,c=m+x,c=parseFloat(c.toFixed(this._precision())),T.max!==null&&c>T.max?T.max:T.min!==null&&c<T.min?T.min:c},_stop:function(c){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",c))},_setOption:function(c,m){var x,T,b;if(c==="culture"||c==="numberFormat"){x=this._parse(this.element.val()),this.options[c]=m,this.element.val(this._format(x));return}(c==="max"||c==="min"||c==="step")&&typeof m=="string"&&(m=this._parse(m)),c==="icons"&&(T=this.buttons.first().find(".ui-icon"),this._removeClass(T,null,this.options.icons.up),this._addClass(T,null,m.up),b=this.buttons.last().find(".ui-icon"),this._removeClass(b,null,this.options.icons.down),this._addClass(b,null,m.down)),this._super(c,m)},_setOptionDisabled:function(c){this._super(c),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!c),this.element.prop("disabled",!!c),this.buttons.button(c?"disable":"enable")},_setOptions:S(function(c){this._super(c)}),_parse:function(c){return typeof c=="string"&&c!==""&&(c=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(c,10,this.options.culture):+c),c===""||isNaN(c)?null:c},_format:function(c){return c===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(c,this.options.numberFormat,this.options.culture):c},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var c=this.value();return c===null?!1:c===this._adjustValue(c)},_value:function(c,m){var x;c!==""&&(x=this._parse(c),x!==null&&(m||(x=this._adjustValue(x)),c=this._format(x))),this.element.val(c),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:S(function(c){this._stepUp(c)}),_stepUp:function(c){this._start()&&(this._spin((c||1)*this.options.step),this._stop())},stepDown:S(function(c){this._stepDown(c)}),_stepDown:function(c){this._start()&&(this._spin((c||1)*-this.options.step),this._stop())},pageUp:S(function(c){this._stepUp((c||1)*this.options.page)}),pageDown:S(function(c){this._stepDown((c||1)*this.options.page)}),value:function(c){if(!arguments.length)return this._parse(this.element.val());S(this._value).call(this,c)},widget:function(){return this.uiSpinner}}),n.uiBackCompat===!0&&n.widget("ui.spinner",n.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),n.ui.spinner;/*!
 * jQuery UI Tabs 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.tabs",{version:"1.14.0",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var c=/#.*$/;return function(m){var x,T;x=m.href.replace(c,""),T=location.href.replace(c,"");try{x=decodeURIComponent(x)}catch{}try{T=decodeURIComponent(T)}catch{}return m.hash.length>1&&x===T}}(),_create:function(){var c=this,m=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,m.collapsible),this._processTabs(),m.active=this._initialActive(),Array.isArray(m.disabled)&&(m.disabled=n.uniqueSort(m.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(x){return c.tabs.index(x)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(m.active):this.active=n(),this._refresh(),this.active.length&&this.load(m.active)},_initialActive:function(){var c=this.options.active,m=this.options.collapsible,x=location.hash.substring(1);return c===null&&(x&&this.tabs.each(function(T,b){if(n(b).attr("aria-controls")===x)return c=T,!1}),c===null&&(c=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(c===null||c===-1)&&(c=this.tabs.length?0:!1)),c!==!1&&(c=this.tabs.index(this.tabs.eq(c)),c===-1&&(c=m?!1:0)),!m&&c===!1&&this.anchors.length&&(c=0),c},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(c){var m=n(this.document[0].activeElement).closest("li"),x=this.tabs.index(m),T=!0;if(!this._handlePageNav(c)){switch(c.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:x++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:T=!1,x--;break;case n.ui.keyCode.END:x=this.anchors.length-1;break;case n.ui.keyCode.HOME:x=0;break;case n.ui.keyCode.SPACE:c.preventDefault(),clearTimeout(this.activating),this._activate(x);return;case n.ui.keyCode.ENTER:c.preventDefault(),clearTimeout(this.activating),this._activate(x===this.options.active?!1:x);return;default:return}c.preventDefault(),clearTimeout(this.activating),x=this._focusNextTab(x,T),!c.ctrlKey&&!c.metaKey&&(m.attr("aria-selected","false"),this.tabs.eq(x).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",x)},this.delay))}},_panelKeydown:function(c){this._handlePageNav(c)||c.ctrlKey&&c.keyCode===n.ui.keyCode.UP&&(c.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(c){if(c.altKey&&c.keyCode===n.ui.keyCode.PAGE_UP)return this._activate(this._focusNextTab(this.options.active-1,!1)),!0;if(c.altKey&&c.keyCode===n.ui.keyCode.PAGE_DOWN)return this._activate(this._focusNextTab(this.options.active+1,!0)),!0},_findNextTab:function(c,m){var x=this.tabs.length-1;function T(){return c>x&&(c=0),c<0&&(c=x),c}for(;n.inArray(T(),this.options.disabled)!==-1;)c=m?c+1:c-1;return c},_focusNextTab:function(c,m){return c=this._findNextTab(c,m),this.tabs.eq(c).trigger("focus"),c},_setOption:function(c,m){if(c==="active"){this._activate(m);return}this._super(c,m),c==="collapsible"&&(this._toggleClass("ui-tabs-collapsible",null,m),!m&&this.options.active===!1&&this._activate(0)),c==="event"&&this._setupEvents(m),c==="heightStyle"&&this._setupHeightStyle(m)},_sanitizeSelector:function(c){return c?c.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var c=this.options,m=this.tablist.children(":has(a[href])");c.disabled=n.map(m.filter(".ui-state-disabled"),function(x){return m.index(x)}),this._processTabs(),c.active===!1||!this.anchors.length?(c.active=!1,this.active=n()):this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===c.disabled.length?(c.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,c.active-1),!1)):c.active=this.tabs.index(this.active),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var c=this,m=this.tabs,x=this.anchors,T=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(b){n(this).is(".ui-state-disabled")&&b.preventDefault()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return n("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=n(),this.anchors.each(function(b,d){var k,D,O,Q=n(d).uniqueId().attr("id"),J=n(d).closest("li"),X=J.attr("aria-controls");c._isLocal(d)?(k=d.hash,O=k.substring(1),D=c.element.find(c._sanitizeSelector(k))):(O=J.attr("aria-controls")||n({}).uniqueId()[0].id,k="#"+O,D=c.element.find(k),D.length||(D=c._createPanel(O),D.insertAfter(c.panels[b-1]||c.tablist)),D.attr("aria-live","polite")),D.length&&(c.panels=c.panels.add(D)),X&&J.data("ui-tabs-aria-controls",X),J.attr({"aria-controls":O,"aria-labelledby":Q}),D.attr("aria-labelledby",Q)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),m&&(this._off(m.not(this.tabs)),this._off(x.not(this.anchors)),this._off(T.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(c){return n("<div>").attr("id",c).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(c){var m,x,T;for(Array.isArray(c)&&(c.length?c.length===this.anchors.length&&(c=!0):c=!1),T=0;x=this.tabs[T];T++)m=n(x),c===!0||n.inArray(T,c)!==-1?(m.attr("aria-disabled","true"),this._addClass(m,null,"ui-state-disabled")):(m.removeAttr("aria-disabled"),this._removeClass(m,null,"ui-state-disabled"));this.options.disabled=c,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,c===!0)},_setupEvents:function(c){var m={};c&&n.each(c.split(" "),function(x,T){m[T]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(x){x.preventDefault()}}),this._on(this.anchors,m),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(c){var m,x=this.element.parent();c==="fill"?(m=x.height(),m-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var T=n(this),b=T.css("position");b==="absolute"||b==="fixed"||(m-=T.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){m-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,m-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):c==="auto"&&(m=0,this.panels.each(function(){m=Math.max(m,n(this).height("").height())}).height(m))},_eventHandler:function(c){var m=this.options,x=this.active,T=n(c.currentTarget),b=T.closest("li"),d=b[0]===x[0],k=d&&m.collapsible,D=k?n():this._getPanelForTab(b),O=x.length?this._getPanelForTab(x):n(),Q={oldTab:x,oldPanel:O,newTab:k?n():b,newPanel:D};c.preventDefault(),!(b.hasClass("ui-state-disabled")||b.hasClass("ui-tabs-loading")||this.running||d&&!m.collapsible||this._trigger("beforeActivate",c,Q)===!1)&&(m.active=k?!1:this.tabs.index(b),this.active=d?n():b,this.xhr&&this.xhr.abort(),!O.length&&!D.length&&n.error("jQuery UI Tabs: Mismatching fragment identifier."),D.length&&this.load(this.tabs.index(b),c),this._toggle(c,Q))},_toggle:function(c,m){var x=this,T=m.newPanel,b=m.oldPanel;this.running=!0;function d(){x.running=!1,x._trigger("activate",c,m)}function k(){x._addClass(m.newTab.closest("li"),"ui-tabs-active","ui-state-active"),T.length&&x.options.show?x._show(T,x.options.show,d):(T.show(),d())}b.length&&this.options.hide?this._hide(b,this.options.hide,function(){x._removeClass(m.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),k()}):(this._removeClass(m.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),b.hide(),k()),b.attr("aria-hidden","true"),m.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),T.length&&b.length?m.oldTab.attr("tabIndex",-1):T.length&&this.tabs.filter(function(){return n(this).attr("tabIndex")===0}).attr("tabIndex",-1),T.attr("aria-hidden","false"),m.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(c){var m,x=this._findActive(c);x[0]!==this.active[0]&&(x.length||(x=this.active),m=x.find(".ui-tabs-anchor")[0],this._eventHandler({target:m,currentTarget:m,preventDefault:n.noop}))},_findActive:function(c){return c===!1?n():this.tabs.eq(c)},_getIndex:function(c){return typeof c=="string"&&(c=this.anchors.index(this.anchors.filter("[href$='"+CSS.escape(c)+"']"))),c},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var c=n(this),m=c.data("ui-tabs-aria-controls");m?c.attr("aria-controls",m).removeData("ui-tabs-aria-controls"):c.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(c){var m=this.options.disabled;m!==!1&&(c===void 0?m=!1:(c=this._getIndex(c),Array.isArray(m)?m=n.map(m,function(x){return x!==c?x:null}):m=n.map(this.tabs,function(x,T){return T!==c?T:null})),this._setOptionDisabled(m))},disable:function(c){var m=this.options.disabled;if(m!==!0){if(c===void 0)m=!0;else{if(c=this._getIndex(c),n.inArray(c,m)!==-1)return;Array.isArray(m)?m=n.merge([c],m).sort():m=[c]}this._setOptionDisabled(m)}},load:function(c,m){c=this._getIndex(c);var x=this,T=this.tabs.eq(c),b=T.find(".ui-tabs-anchor"),d=this._getPanelForTab(T),k={tab:T,panel:d},D=function(O,Q){Q==="abort"&&x.panels.stop(!1,!0),x._removeClass(T,"ui-tabs-loading"),d.removeAttr("aria-busy"),O===x.xhr&&delete x.xhr};this._isLocal(b[0])||(this.xhr=n.ajax(this._ajaxSettings(b,m,k)),this.xhr.statusText!=="canceled"&&(this._addClass(T,"ui-tabs-loading"),d.attr("aria-busy","true"),this.xhr.done(function(O,Q,J){d.html(O),x._trigger("load",m,k),D(J,Q)}).fail(function(O,Q){D(O,Q)})))},_ajaxSettings:function(c,m,x){var T=this;return{url:c.attr("href"),beforeSend:function(b,d){return T._trigger("beforeLoad",m,n.extend({jqXHR:b,ajaxSettings:d},x))}}},_getPanelForTab:function(c){var m=n(c).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+m))}}),n.uiBackCompat===!0&&n.widget("ui.tabs",n.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),n.ui.tabs;/*!
 * jQuery UI Tooltip 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */n.widget("ui.tooltip",{version:"1.14.0",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var c=n(this).attr("title");return n("<a>").text(c).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(c,m){var x=(c.attr("aria-describedby")||"").split(/\s+/);x.push(m),c.data("ui-tooltip-id",m).attr("aria-describedby",String.prototype.trim.call(x.join(" ")))},_removeDescribedBy:function(c){var m=c.data("ui-tooltip-id"),x=(c.attr("aria-describedby")||"").split(/\s+/),T=n.inArray(m,x);T!==-1&&x.splice(T,1),c.removeData("ui-tooltip-id"),x=String.prototype.trim.call(x.join(" ")),x?c.attr("aria-describedby",x):c.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=n("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=n([])},_setOption:function(c,m){var x=this;this._super(c,m),c==="content"&&n.each(this.tooltips,function(T,b){x._updateContent(b.element)})},_setOptionDisabled:function(c){this[c?"_disable":"_enable"]()},_disable:function(){var c=this;n.each(this.tooltips,function(m,x){var T=n.Event("blur");T.target=T.currentTarget=x.element[0],c.close(T,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var m=n(this);if(m.is("[title]"))return m.data("ui-tooltip-title",m.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var c=n(this);c.data("ui-tooltip-title")&&c.attr("title",c.data("ui-tooltip-title"))}),this.disabledTitles=n([])},open:function(c){var m=this,x=n(c?c.target:this.element).closest(this.options.items);!x.length||x.data("ui-tooltip-id")||(x.attr("title")&&x.data("ui-tooltip-title",x.attr("title")),x.data("ui-tooltip-open",!0),c&&c.type==="mouseover"&&x.parents().each(function(){var T=n(this),b;T.data("ui-tooltip-open")&&(b=n.Event("blur"),b.target=b.currentTarget=this,m.close(b,!0)),T.attr("title")&&(T.uniqueId(),m.parents[this.id]={element:this,title:T.attr("title")},T.attr("title",""))}),this._registerCloseHandlers(c,x),this._updateContent(x,c))},_updateContent:function(c,m){var x,T=this.options.content,b=this,d=m?m.type:null;if(typeof T=="string"||T.nodeType||T.jquery)return this._open(m,c,T);x=T.call(c[0],function(k){c.data("ui-tooltip-open")&&(m&&(m.type=d),b._open(m,c,k))}),x&&this._open(m,c,x)},_open:function(c,m,x){var T,b,d,k,D=n.extend({},this.options.position);if(!x)return;if(T=this._find(m),T){T.tooltip.find(".ui-tooltip-content").html(x);return}m.is("[title]")&&(c&&c.type==="mouseover"?m.attr("title",""):m.removeAttr("title")),T=this._tooltip(m),b=T.tooltip,this._addDescribedBy(m,b.attr("id")),b.find(".ui-tooltip-content").html(x),this.liveRegion.children().hide(),k=n("<div>").html(b.find(".ui-tooltip-content").html()),k.removeAttr("name").find("[name]").removeAttr("name"),k.removeAttr("id").find("[id]").removeAttr("id"),k.appendTo(this.liveRegion);function O(Q){D.of=Q,!b.is(":hidden")&&b.position(D)}this.options.track&&c&&/^mouse/.test(c.type)?(this._on(this.document,{mousemove:O}),O(c)):b.position(n.extend({of:m},this.options.position)),b.hide(),this._show(b,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(d=this.delayedShow=setInterval(function(){b.is(":visible")&&(O(D.of),clearInterval(d))},13)),this._trigger("open",c,{tooltip:b})},_registerCloseHandlers:function(c,m){var x={keyup:function(T){if(T.keyCode===n.ui.keyCode.ESCAPE){var b=n.Event(T);b.currentTarget=m[0],this.close(b,!0)}}};m[0]!==this.element[0]&&(x.remove=function(){var T=this._find(m);T&&this._removeTooltip(T.tooltip)}),(!c||c.type==="mouseover")&&(x.mouseleave="close"),(!c||c.type==="focusin")&&(x.focusout="close"),this._on(!0,m,x)},close:function(c){var m,x=this,T=n(c?c.currentTarget:this.element),b=this._find(T);if(!b){T.removeData("ui-tooltip-open");return}m=b.tooltip,!b.closing&&(clearInterval(this.delayedShow),T.data("ui-tooltip-title")&&!T.attr("title")&&T.attr("title",T.data("ui-tooltip-title")),this._removeDescribedBy(T),b.hiding=!0,m.stop(!0),this._hide(m,this.options.hide,function(){x._removeTooltip(n(this))}),T.removeData("ui-tooltip-open"),this._off(T,"mouseleave focusout keyup"),T[0]!==this.element[0]&&this._off(T,"remove"),this._off(this.document,"mousemove"),c&&c.type==="mouseleave"&&n.each(this.parents,function(d,k){n(k.element).attr("title",k.title),delete x.parents[d]}),b.closing=!0,this._trigger("close",c,{tooltip:m}),b.hiding||(b.closing=!1))},_tooltip:function(c){var m=n("<div>").attr("role","tooltip"),x=n("<div>").appendTo(m),T=m.uniqueId().attr("id");return this._addClass(x,"ui-tooltip-content"),this._addClass(m,"ui-tooltip","ui-widget ui-widget-content"),m.appendTo(this._appendTo(c)),this.tooltips[T]={element:c,tooltip:m}},_find:function(c){var m=c.data("ui-tooltip-id");return m?this.tooltips[m]:null},_removeTooltip:function(c){clearInterval(this.delayedShow),c.remove(),delete this.tooltips[c.attr("id")]},_appendTo:function(c){var m=c.closest(".ui-front, dialog");return m.length||(m=this.document[0].body),m},_destroy:function(){var c=this;n.each(this.tooltips,function(m,x){var T=n.Event("blur"),b=x.element;T.target=T.currentTarget=b[0],c.close(T,!0),n("#"+m).remove(),b.data("ui-tooltip-title")&&(b.attr("title")||b.attr("title",b.data("ui-tooltip-title")),b.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),n.uiBackCompat===!0&&n.widget("ui.tooltip",n.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var c=this._superApply(arguments);return this.options.tooltipClass&&c.tooltip.addClass(this.options.tooltipClass),c}}),n.ui.tooltip});var lodash={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */lodash.exports,function(n,e){(function(){var o,l="4.17.21",t=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",v="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",A=500,E="__lodash_placeholder__",C=1,M=2,P=4,I=1,j=2,B=1,F=2,N=4,ee=8,Z=16,re=32,fe=64,V=128,le=256,he=512,ye=30,L="...",p=800,y=16,S=1,c=2,m=3,x=1/0,T=9007199254740991,b=17976931348623157e292,d=NaN,k=4294967295,D=k-1,O=k>>>1,Q=[["ary",V],["bind",B],["bindKey",F],["curry",ee],["curryRight",Z],["flip",he],["partial",re],["partialRight",fe],["rearg",le]],J="[object Arguments]",X="[object Array]",U="[object AsyncFunction]",z="[object Boolean]",ie="[object Date]",de="[object DOMException]",me="[object Error]",pe="[object Function]",qe="[object GeneratorFunction]",mt="[object Map]",st="[object Number]",dt="[object Null]",Tt="[object Object]",lt="[object Promise]",Je="[object Proxy]",ht="[object RegExp]",at="[object Set]",bt="[object String]",jt="[object Symbol]",Ge="[object Undefined]",Qe="[object WeakMap]",Wt="[object WeakSet]",Et="[object ArrayBuffer]",Ct="[object DataView]",Kt="[object Float32Array]",Me="[object Float64Array]",te="[object Int8Array]",_e="[object Int16Array]",je="[object Int32Array]",We="[object Uint8Array]",et="[object Uint8ClampedArray]",Ye="[object Uint16Array]",De="[object Uint32Array]",Ht=/\b__p \+= '';/g,Mt=/\b(__p \+=) '' \+/g,ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dt=/&(?:amp|lt|gt|quot|#39);/g,yt=/[&<>"']/g,Ne=RegExp(Dt.source),_t=RegExp(yt.source),pt=/<%-([\s\S]+?)%>/g,Bt=/<%([\s\S]+?)%>/g,ur=/<%=([\s\S]+?)%>/g,kt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ut=/^\w*$/,Wr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/[\\^$.*+?()[\]{}|]/g,Qt=RegExp(zt.source),$e=/^\s+/,be=/\s/,ve=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xt=/[()=,{}\[\]\/\s]/,ot=/\\(\\)?/g,wt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,Jt=/^[-+]0x[0-9a-f]+$/i,wr=/^0b[01]+$/i,lr=/^\[object .+?Constructor\]$/,Rr=/^0o[0-7]+$/i,vr=/^(?:0|[1-9]\d*)$/,dr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ir=/($^)/,kr=/['\n\r\u2028\u2029\\]/g,Fr="\\ud800-\\udfff",jr="\\u0300-\\u036f",Cr="\\ufe20-\\ufe2f",Lr="\\u20d0-\\u20ff",Ar=jr+Cr+Lr,Tr="\\u2700-\\u27bf",Sr="a-z\\xdf-\\xf6\\xf8-\\xff",rr="\\xac\\xb1\\xd7\\xf7",Nt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gt="\\u2000-\\u206f",xr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pr="A-Z\\xc0-\\xd6\\xd8-\\xde",tr="\\ufe0e\\ufe0f",br=rr+Nt+Gt+xr,Nr="['’]",Yr="["+Fr+"]",ei="["+br+"]",Hr="["+Ar+"]",Pt="\\d+",Jr="["+Tr+"]",Xr="["+Sr+"]",fi="[^"+Fr+br+Pt+Tr+Sr+pr+"]",ce="\\ud83c[\\udffb-\\udfff]",xe="(?:"+Hr+"|"+ce+")",Be="[^"+Fr+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",ct="["+pr+"]",we="\\u200d",Ae="(?:"+Xr+"|"+fi+")",Re="(?:"+ct+"|"+fi+")",rt="(?:"+Nr+"(?:d|ll|m|re|s|t|ve))?",St="(?:"+Nr+"(?:D|LL|M|RE|S|T|VE))?",Lt=xe+"?",Ft="["+tr+"]?",$t="(?:"+we+"(?:"+[Be,Fe,Xe].join("|")+")"+Ft+Lt+")*",nr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gr="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fr=Ft+Lt+$t,ar="(?:"+[Jr,Fe,Xe].join("|")+")"+fr,Ur="(?:"+[Be+Hr+"?",Hr,Fe,Xe,Yr].join("|")+")",Er=RegExp(Nr,"g"),Pr=RegExp(Hr,"g"),_r=RegExp(ce+"(?="+ce+")|"+Ur+fr,"g"),ti=RegExp([ct+"?"+Xr+"+"+rt+"(?="+[ei,ct,"$"].join("|")+")",Re+"+"+St+"(?="+[ei,ct+Ae,"$"].join("|")+")",ct+"?"+Ae+"+"+rt,ct+"+"+St,gr,nr,Pt,ar].join("|"),"g"),Qr=RegExp("["+we+Fr+Ar+tr+"]"),ri=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zi=-1,li={};li[Kt]=li[Me]=li[te]=li[_e]=li[je]=li[We]=li[et]=li[Ye]=li[De]=!0,li[J]=li[X]=li[Et]=li[z]=li[Ct]=li[ie]=li[me]=li[pe]=li[mt]=li[st]=li[Tt]=li[ht]=li[at]=li[bt]=li[Qe]=!1;var oi={};oi[J]=oi[X]=oi[Et]=oi[Ct]=oi[z]=oi[ie]=oi[Kt]=oi[Me]=oi[te]=oi[_e]=oi[je]=oi[mt]=oi[st]=oi[Tt]=oi[ht]=oi[at]=oi[bt]=oi[jt]=oi[We]=oi[et]=oi[Ye]=oi[De]=!0,oi[me]=oi[pe]=oi[Qe]=!1;var Tn={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},an={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Rn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ui={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sn=parseFloat,Gn=parseInt,Jn=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,Nn=typeof self=="object"&&self&&self.Object===Object&&self,ki=Jn||Nn||Function("return this")(),Ki=e&&!e.nodeType&&e,Ji=Ki&&!0&&n&&!n.nodeType&&n,ea=Ji&&Ji.exports===Ki,gi=ea&&Jn.process,Hi=function(){try{var Oe=Ji&&Ji.require&&Ji.require("util").types;return Oe||gi&&gi.binding&&gi.binding("util")}catch{}}(),Y=Hi&&Hi.isArrayBuffer,ne=Hi&&Hi.isDate,ke=Hi&&Hi.isMap,Le=Hi&&Hi.isRegExp,He=Hi&&Hi.isSet,Ve=Hi&&Hi.isTypedArray;function nt(Oe,Ze,Ke){switch(Ke.length){case 0:return Oe.call(Ze);case 1:return Oe.call(Ze,Ke[0]);case 2:return Oe.call(Ze,Ke[0],Ke[1]);case 3:return Oe.call(Ze,Ke[0],Ke[1],Ke[2])}return Oe.apply(Ze,Ke)}function Ot(Oe,Ze,Ke,gt){for(var It=-1,ir=Oe==null?0:Oe.length;++It<ir;){var cr=Oe[It];Ze(gt,cr,Ke(cr),Oe)}return gt}function At(Oe,Ze){for(var Ke=-1,gt=Oe==null?0:Oe.length;++Ke<gt&&Ze(Oe[Ke],Ke,Oe)!==!1;);return Oe}function Vt(Oe,Ze){for(var Ke=Oe==null?0:Oe.length;Ke--&&Ze(Oe[Ke],Ke,Oe)!==!1;);return Oe}function or(Oe,Ze){for(var Ke=-1,gt=Oe==null?0:Oe.length;++Ke<gt;)if(!Ze(Oe[Ke],Ke,Oe))return!1;return!0}function yr(Oe,Ze){for(var Ke=-1,gt=Oe==null?0:Oe.length,It=0,ir=[];++Ke<gt;){var cr=Oe[Ke];Ze(cr,Ke,Oe)&&(ir[It++]=cr)}return ir}function er(Oe,Ze){var Ke=Oe==null?0:Oe.length;return!!Ke&&Ai(Oe,Ze,0)>-1}function $r(Oe,Ze,Ke){for(var gt=-1,It=Oe==null?0:Oe.length;++gt<It;)if(Ke(Ze,Oe[gt]))return!0;return!1}function Kr(Oe,Ze){for(var Ke=-1,gt=Oe==null?0:Oe.length,It=Array(gt);++Ke<gt;)It[Ke]=Ze(Oe[Ke],Ke,Oe);return It}function hi(Oe,Ze){for(var Ke=-1,gt=Ze.length,It=Oe.length;++Ke<gt;)Oe[It+Ke]=Ze[Ke];return Oe}function ci(Oe,Ze,Ke,gt){var It=-1,ir=Oe==null?0:Oe.length;for(gt&&ir&&(Ke=Oe[++It]);++It<ir;)Ke=Ze(Ke,Oe[It],It,Oe);return Ke}function ji(Oe,Ze,Ke,gt){var It=Oe==null?0:Oe.length;for(gt&&It&&(Ke=Oe[--It]);It--;)Ke=Ze(Ke,Oe[It],It,Oe);return Ke}function Pi(Oe,Ze){for(var Ke=-1,gt=Oe==null?0:Oe.length;++Ke<gt;)if(Ze(Oe[Ke],Ke,Oe))return!0;return!1}var pn=Ln("length");function mn(Oe){return Oe.split("")}function di(Oe){return Oe.match(ze)||[]}function en(Oe,Ze,Ke){var gt;return Ke(Oe,function(It,ir,cr){if(Ze(It,ir,cr))return gt=ir,!1}),gt}function vi(Oe,Ze,Ke,gt){for(var It=Oe.length,ir=Ke+(gt?1:-1);gt?ir--:++ir<It;)if(Ze(Oe[ir],ir,Oe))return ir;return-1}function Ai(Oe,Ze,Ke){return Ze===Ze?za(Oe,Ze,Ke):vi(Oe,ta,Ke)}function Kn(Oe,Ze,Ke,gt){for(var It=Ke-1,ir=Oe.length;++It<ir;)if(gt(Oe[It],Ze))return It;return-1}function ta(Oe){return Oe!==Oe}function tn(Oe,Ze){var Ke=Oe==null?0:Oe.length;return Ke?$i(Oe,Ze)/Ke:d}function Ln(Oe){return function(Ze){return Ze==null?o:Ze[Oe]}}function Wi(Oe){return function(Ze){return Oe==null?o:Oe[Ze]}}function gn(Oe,Ze,Ke,gt,It){return It(Oe,function(ir,cr,Zt){Ke=gt?(gt=!1,ir):Ze(Ke,ir,cr,Zt)}),Ke}function En(Oe,Ze){var Ke=Oe.length;for(Oe.sort(Ze);Ke--;)Oe[Ke]=Oe[Ke].value;return Oe}function $i(Oe,Ze){for(var Ke,gt=-1,It=Oe.length;++gt<It;){var ir=Ze(Oe[gt]);ir!==o&&(Ke=Ke===o?ir:Ke+ir)}return Ke}function Bn(Oe,Ze){for(var Ke=-1,gt=Array(Oe);++Ke<Oe;)gt[Ke]=Ze(Ke);return gt}function kn(Oe,Ze){return Kr(Ze,function(Ke){return[Ke,Oe[Ke]]})}function vn(Oe){return Oe&&Oe.slice(0,ue(Oe)+1).replace($e,"")}function Qi(Oe){return function(Ze){return Oe(Ze)}}function wa(Oe,Ze){return Kr(Ze,function(Ke){return Oe[Ke]})}function ra(Oe,Ze){return Oe.has(Ze)}function wi(Oe,Ze){for(var Ke=-1,gt=Oe.length;++Ke<gt&&Ai(Ze,Oe[Ke],0)>-1;);return Ke}function ia(Oe,Ze){for(var Ke=Oe.length;Ke--&&Ai(Ze,Oe[Ke],0)>-1;);return Ke}function un(Oe,Ze){for(var Ke=Oe.length,gt=0;Ke--;)Oe[Ke]===Ze&&++gt;return gt}var ln=Wi(Tn),Ei=Wi(an);function zn(Oe){return"\\"+Ui[Oe]}function Ni(Oe,Ze){return Oe==null?o:Oe[Ze]}function Di(Oe){return Qr.test(Oe)}function Sa(Oe){return ri.test(Oe)}function An(Oe){for(var Ze,Ke=[];!(Ze=Oe.next()).done;)Ke.push(Ze.value);return Ke}function pa(Oe){var Ze=-1,Ke=Array(Oe.size);return Oe.forEach(function(gt,It){Ke[++Ze]=[It,gt]}),Ke}function Qn(Oe,Ze){return function(Ke){return Oe(Ze(Ke))}}function fn(Oe,Ze){for(var Ke=-1,gt=Oe.length,It=0,ir=[];++Ke<gt;){var cr=Oe[Ke];(cr===Ze||cr===E)&&(Oe[Ke]=E,ir[It++]=Ke)}return ir}function Un(Oe){var Ze=-1,Ke=Array(Oe.size);return Oe.forEach(function(gt){Ke[++Ze]=gt}),Ke}function Ta(Oe){var Ze=-1,Ke=Array(Oe.size);return Oe.forEach(function(gt){Ke[++Ze]=[gt,gt]}),Ke}function za(Oe,Ze,Ke){for(var gt=Ke-1,It=Oe.length;++gt<It;)if(Oe[gt]===Ze)return gt;return-1}function ma(Oe,Ze,Ke){for(var gt=Ke+1;gt--;)if(Oe[gt]===Ze)return gt;return gt}function Cn(Oe){return Di(Oe)?Se(Oe):pn(Oe)}function it(Oe){return Di(Oe)?oe(Oe):mn(Oe)}function ue(Oe){for(var Ze=Oe.length;Ze--&&be.test(Oe.charAt(Ze)););return Ze}var Te=Wi(Rn);function Se(Oe){for(var Ze=_r.lastIndex=0;_r.test(Oe);)++Ze;return Ze}function oe(Oe){return Oe.match(_r)||[]}function Ee(Oe){return Oe.match(ti)||[]}var Ce=function Oe(Ze){Ze=Ze==null?ki:Ue.defaults(ki.Object(),Ze,Ue.pick(ki,Xi));var Ke=Ze.Array,gt=Ze.Date,It=Ze.Error,ir=Ze.Function,cr=Ze.Math,Zt=Ze.Object,qr=Ze.RegExp,Gr=Ze.String,ii=Ze.TypeError,Mi=Ke.prototype,Li=ir.prototype,Bi=Zt.prototype,Vi=Ze["__core-js_shared__"],yn=Li.toString,ui=Bi.hasOwnProperty,is=0,Ii=function(){var R=/[^.]+$/.exec(Vi&&Vi.keys&&Vi.keys.IE_PROTO||"");return R?"Symbol(src)_1."+R:""}(),Ea=Bi.toString,na=yn.call(Zt),_l=ki._,xl=qr("^"+yn.call(ui).replace(zt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ns=ea?Ze.Buffer:o,ga=Ze.Symbol,as=Ze.Uint8Array,Po=ns?ns.allocUnsafe:o,ss=Qn(Zt.getPrototypeOf,Zt),Do=Zt.create,Io=Bi.propertyIsEnumerable,os=Mi.splice,Ro=ga?ga.isConcatSpreadable:o,Ua=ga?ga.iterator:o,ka=ga?ga.toStringTag:o,us=function(){try{var R=Da(Zt,"defineProperty");return R({},"",{}),R}catch{}}(),wl=Ze.clearTimeout!==ki.clearTimeout&&Ze.clearTimeout,Sl=gt&&gt.now!==ki.Date.now&&gt.now,Tl=Ze.setTimeout!==ki.setTimeout&&Ze.setTimeout,ls=cr.ceil,fs=cr.floor,Os=Zt.getOwnPropertySymbols,El=ns?ns.isBuffer:o,Lo=Ze.isFinite,kl=Mi.join,Al=Qn(Zt.keys,Zt),zi=cr.max,rn=cr.min,Cl=gt.now,Ml=Ze.parseInt,Bo=cr.random,Pl=Mi.reverse,js=Da(Ze,"DataView"),Ha=Da(Ze,"Map"),$s=Da(Ze,"Promise"),La=Da(Ze,"Set"),Wa=Da(Ze,"WeakMap"),Va=Da(Zt,"create"),cs=Wa&&new Wa,Ba={},Dl=Ia(js),Il=Ia(Ha),Rl=Ia($s),Ll=Ia(La),Bl=Ia(Wa),hs=ga?ga.prototype:o,Ga=hs?hs.valueOf:o,Oo=hs?hs.toString:o;function ut(R){if(Oi(R)&&!pi(R)&&!(R instanceof Si)){if(R instanceof On)return R;if(ui.call(R,"__wrapped__"))return ju(R)}return new On(R)}var Oa=function(){function R(){}return function(H){if(!Ri(H))return{};if(Do)return Do(H);R.prototype=H;var ae=new R;return R.prototype=o,ae}}();function ds(){}function On(R,H){this.__wrapped__=R,this.__actions__=[],this.__chain__=!!H,this.__index__=0,this.__values__=o}ut.templateSettings={escape:pt,evaluate:Bt,interpolate:ur,variable:"",imports:{_:ut}},ut.prototype=ds.prototype,ut.prototype.constructor=ut,On.prototype=Oa(ds.prototype),On.prototype.constructor=On;function Si(R){this.__wrapped__=R,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function Ol(){var R=new Si(this.__wrapped__);return R.__actions__=_n(this.__actions__),R.__dir__=this.__dir__,R.__filtered__=this.__filtered__,R.__iteratees__=_n(this.__iteratees__),R.__takeCount__=this.__takeCount__,R.__views__=_n(this.__views__),R}function jl(){if(this.__filtered__){var R=new Si(this);R.__dir__=-1,R.__filtered__=!0}else R=this.clone(),R.__dir__*=-1;return R}function $l(){var R=this.__wrapped__.value(),H=this.__dir__,ae=pi(R),Ie=H<0,tt=ae?R.length:0,vt=Zf(0,tt,this.__views__),Rt=vt.start,qt=vt.end,Xt=qt-Rt,Mr=Ie?qt:Rt-1,Dr=this.__iteratees__,Br=Dr.length,Vr=0,Zr=rn(Xt,this.__takeCount__);if(!ae||!Ie&&tt==Xt&&Zr==Xt)return su(R,this.__actions__);var ai=[];e:for(;Xt--&&Vr<Zr;){Mr+=H;for(var yi=-1,si=R[Mr];++yi<Br;){var xi=Dr[yi],Ti=xi.iteratee,Dn=xi.type,dn=Ti(si);if(Dn==c)si=dn;else if(!dn){if(Dn==S)continue e;break e}}ai[Vr++]=si}return ai}Si.prototype=Oa(ds.prototype),Si.prototype.constructor=Si;function Aa(R){var H=-1,ae=R==null?0:R.length;for(this.clear();++H<ae;){var Ie=R[H];this.set(Ie[0],Ie[1])}}function Fl(){this.__data__=Va?Va(null):{},this.size=0}function ql(R){var H=this.has(R)&&delete this.__data__[R];return this.size-=H?1:0,H}function Nl(R){var H=this.__data__;if(Va){var ae=H[R];return ae===w?o:ae}return ui.call(H,R)?H[R]:o}function Ul(R){var H=this.__data__;return Va?H[R]!==o:ui.call(H,R)}function Hl(R,H){var ae=this.__data__;return this.size+=this.has(R)?0:1,ae[R]=Va&&H===o?w:H,this}Aa.prototype.clear=Fl,Aa.prototype.delete=ql,Aa.prototype.get=Nl,Aa.prototype.has=Ul,Aa.prototype.set=Hl;function aa(R){var H=-1,ae=R==null?0:R.length;for(this.clear();++H<ae;){var Ie=R[H];this.set(Ie[0],Ie[1])}}function Wl(){this.__data__=[],this.size=0}function Vl(R){var H=this.__data__,ae=ps(H,R);if(ae<0)return!1;var Ie=H.length-1;return ae==Ie?H.pop():os.call(H,ae,1),--this.size,!0}function Gl(R){var H=this.__data__,ae=ps(H,R);return ae<0?o:H[ae][1]}function Kl(R){return ps(this.__data__,R)>-1}function Ql(R,H){var ae=this.__data__,Ie=ps(ae,R);return Ie<0?(++this.size,ae.push([R,H])):ae[Ie][1]=H,this}aa.prototype.clear=Wl,aa.prototype.delete=Vl,aa.prototype.get=Gl,aa.prototype.has=Kl,aa.prototype.set=Ql;function sa(R){var H=-1,ae=R==null?0:R.length;for(this.clear();++H<ae;){var Ie=R[H];this.set(Ie[0],Ie[1])}}function Yl(){this.size=0,this.__data__={hash:new Aa,map:new(Ha||aa),string:new Aa}}function Xl(R){var H=ks(this,R).delete(R);return this.size-=H?1:0,H}function Zl(R){return ks(this,R).get(R)}function Jl(R){return ks(this,R).has(R)}function ef(R,H){var ae=ks(this,R),Ie=ae.size;return ae.set(R,H),this.size+=ae.size==Ie?0:1,this}sa.prototype.clear=Yl,sa.prototype.delete=Xl,sa.prototype.get=Zl,sa.prototype.has=Jl,sa.prototype.set=ef;function Ca(R){var H=-1,ae=R==null?0:R.length;for(this.__data__=new sa;++H<ae;)this.add(R[H])}function tf(R){return this.__data__.set(R,w),this}function rf(R){return this.__data__.has(R)}Ca.prototype.add=Ca.prototype.push=tf,Ca.prototype.has=rf;function Hn(R){var H=this.__data__=new aa(R);this.size=H.size}function nf(){this.__data__=new aa,this.size=0}function af(R){var H=this.__data__,ae=H.delete(R);return this.size=H.size,ae}function sf(R){return this.__data__.get(R)}function of(R){return this.__data__.has(R)}function uf(R,H){var ae=this.__data__;if(ae instanceof aa){var Ie=ae.__data__;if(!Ha||Ie.length<t-1)return Ie.push([R,H]),this.size=++ae.size,this;ae=this.__data__=new sa(Ie)}return ae.set(R,H),this.size=ae.size,this}Hn.prototype.clear=nf,Hn.prototype.delete=af,Hn.prototype.get=sf,Hn.prototype.has=of,Hn.prototype.set=uf;function jo(R,H){var ae=pi(R),Ie=!ae&&Ra(R),tt=!ae&&!Ie&&xa(R),vt=!ae&&!Ie&&!tt&&qa(R),Rt=ae||Ie||tt||vt,qt=Rt?Bn(R.length,Gr):[],Xt=qt.length;for(var Mr in R)(H||ui.call(R,Mr))&&!(Rt&&(Mr=="length"||tt&&(Mr=="offset"||Mr=="parent")||vt&&(Mr=="buffer"||Mr=="byteLength"||Mr=="byteOffset")||fa(Mr,Xt)))&&qt.push(Mr);return qt}function $o(R){var H=R.length;return H?R[Qs(0,H-1)]:o}function lf(R,H){return As(_n(R),Ma(H,0,R.length))}function ff(R){return As(_n(R))}function Fs(R,H,ae){(ae!==o&&!Wn(R[H],ae)||ae===o&&!(H in R))&&oa(R,H,ae)}function Ka(R,H,ae){var Ie=R[H];(!(ui.call(R,H)&&Wn(Ie,ae))||ae===o&&!(H in R))&&oa(R,H,ae)}function ps(R,H){for(var ae=R.length;ae--;)if(Wn(R[ae][0],H))return ae;return-1}function cf(R,H,ae,Ie){return va(R,function(tt,vt,Rt){H(Ie,tt,ae(tt),Rt)}),Ie}function Fo(R,H){return R&&Xn(H,Gi(H),R)}function hf(R,H){return R&&Xn(H,wn(H),R)}function oa(R,H,ae){H=="__proto__"&&us?us(R,H,{configurable:!0,enumerable:!0,value:ae,writable:!0}):R[H]=ae}function qs(R,H){for(var ae=-1,Ie=H.length,tt=Ke(Ie),vt=R==null;++ae<Ie;)tt[ae]=vt?o:xo(R,H[ae]);return tt}function Ma(R,H,ae){return R===R&&(ae!==o&&(R=R<=ae?R:ae),H!==o&&(R=R>=H?R:H)),R}function jn(R,H,ae,Ie,tt,vt){var Rt,qt=H&C,Xt=H&M,Mr=H&P;if(ae&&(Rt=tt?ae(R,Ie,tt,vt):ae(R)),Rt!==o)return Rt;if(!Ri(R))return R;var Dr=pi(R);if(Dr){if(Rt=tc(R),!qt)return _n(R,Rt)}else{var Br=nn(R),Vr=Br==pe||Br==qe;if(xa(R))return lu(R,qt);if(Br==Tt||Br==J||Vr&&!tt){if(Rt=Xt||Vr?{}:Cu(R),!qt)return Xt?Uf(R,hf(Rt,R)):zf(R,Fo(Rt,R))}else{if(!oi[Br])return tt?R:{};Rt=rc(R,Br,qt)}}vt||(vt=new Hn);var Zr=vt.get(R);if(Zr)return Zr;vt.set(R,Rt),il(R)?R.forEach(function(si){Rt.add(jn(si,H,ae,si,R,vt))}):tl(R)&&R.forEach(function(si,xi){Rt.set(xi,jn(si,H,ae,xi,R,vt))});var ai=Mr?Xt?so:ao:Xt?wn:Gi,yi=Dr?o:ai(R);return At(yi||R,function(si,xi){yi&&(xi=si,si=R[xi]),Ka(Rt,xi,jn(si,H,ae,xi,R,vt))}),Rt}function df(R){var H=Gi(R);return function(ae){return qo(ae,R,H)}}function qo(R,H,ae){var Ie=ae.length;if(R==null)return!Ie;for(R=Zt(R);Ie--;){var tt=ae[Ie],vt=H[tt],Rt=R[tt];if(Rt===o&&!(tt in R)||!vt(Rt))return!1}return!0}function No(R,H,ae){if(typeof R!="function")throw new ii(h);return ts(function(){R.apply(o,ae)},H)}function Qa(R,H,ae,Ie){var tt=-1,vt=er,Rt=!0,qt=R.length,Xt=[],Mr=H.length;if(!qt)return Xt;ae&&(H=Kr(H,Qi(ae))),Ie?(vt=$r,Rt=!1):H.length>=t&&(vt=ra,Rt=!1,H=new Ca(H));e:for(;++tt<qt;){var Dr=R[tt],Br=ae==null?Dr:ae(Dr);if(Dr=Ie||Dr!==0?Dr:0,Rt&&Br===Br){for(var Vr=Mr;Vr--;)if(H[Vr]===Br)continue e;Xt.push(Dr)}else vt(H,Br,Ie)||Xt.push(Dr)}return Xt}var va=pu(Yn),zo=pu(zs,!0);function pf(R,H){var ae=!0;return va(R,function(Ie,tt,vt){return ae=!!H(Ie,tt,vt),ae}),ae}function ms(R,H,ae){for(var Ie=-1,tt=R.length;++Ie<tt;){var vt=R[Ie],Rt=H(vt);if(Rt!=null&&(qt===o?Rt===Rt&&!Pn(Rt):ae(Rt,qt)))var qt=Rt,Xt=vt}return Xt}function mf(R,H,ae,Ie){var tt=R.length;for(ae=mi(ae),ae<0&&(ae=-ae>tt?0:tt+ae),Ie=Ie===o||Ie>tt?tt:mi(Ie),Ie<0&&(Ie+=tt),Ie=ae>Ie?0:al(Ie);ae<Ie;)R[ae++]=H;return R}function Uo(R,H){var ae=[];return va(R,function(Ie,tt,vt){H(Ie,tt,vt)&&ae.push(Ie)}),ae}function Yi(R,H,ae,Ie,tt){var vt=-1,Rt=R.length;for(ae||(ae=nc),tt||(tt=[]);++vt<Rt;){var qt=R[vt];H>0&&ae(qt)?H>1?Yi(qt,H-1,ae,Ie,tt):hi(tt,qt):Ie||(tt[tt.length]=qt)}return tt}var Ns=mu(),Ho=mu(!0);function Yn(R,H){return R&&Ns(R,H,Gi)}function zs(R,H){return R&&Ho(R,H,Gi)}function gs(R,H){return yr(H,function(ae){return ca(R[ae])})}function Pa(R,H){H=ba(H,R);for(var ae=0,Ie=H.length;R!=null&&ae<Ie;)R=R[Zn(H[ae++])];return ae&&ae==Ie?R:o}function Wo(R,H,ae){var Ie=H(R);return pi(R)?Ie:hi(Ie,ae(R))}function cn(R){return R==null?R===o?Ge:dt:ka&&ka in Zt(R)?Xf(R):cc(R)}function Us(R,H){return R>H}function gf(R,H){return R!=null&&ui.call(R,H)}function vf(R,H){return R!=null&&H in Zt(R)}function yf(R,H,ae){return R>=rn(H,ae)&&R<zi(H,ae)}function Hs(R,H,ae){for(var Ie=ae?$r:er,tt=R[0].length,vt=R.length,Rt=vt,qt=Ke(vt),Xt=1/0,Mr=[];Rt--;){var Dr=R[Rt];Rt&&H&&(Dr=Kr(Dr,Qi(H))),Xt=rn(Dr.length,Xt),qt[Rt]=!ae&&(H||tt>=120&&Dr.length>=120)?new Ca(Rt&&Dr):o}Dr=R[0];var Br=-1,Vr=qt[0];e:for(;++Br<tt&&Mr.length<Xt;){var Zr=Dr[Br],ai=H?H(Zr):Zr;if(Zr=ae||Zr!==0?Zr:0,!(Vr?ra(Vr,ai):Ie(Mr,ai,ae))){for(Rt=vt;--Rt;){var yi=qt[Rt];if(!(yi?ra(yi,ai):Ie(R[Rt],ai,ae)))continue e}Vr&&Vr.push(ai),Mr.push(Zr)}}return Mr}function bf(R,H,ae,Ie){return Yn(R,function(tt,vt,Rt){H(Ie,ae(tt),vt,Rt)}),Ie}function Ya(R,H,ae){H=ba(H,R),R=Iu(R,H);var Ie=R==null?R:R[Zn(Fn(H))];return Ie==null?o:nt(Ie,R,ae)}function Vo(R){return Oi(R)&&cn(R)==J}function _f(R){return Oi(R)&&cn(R)==Et}function xf(R){return Oi(R)&&cn(R)==ie}function Xa(R,H,ae,Ie,tt){return R===H?!0:R==null||H==null||!Oi(R)&&!Oi(H)?R!==R&&H!==H:wf(R,H,ae,Ie,Xa,tt)}function wf(R,H,ae,Ie,tt,vt){var Rt=pi(R),qt=pi(H),Xt=Rt?X:nn(R),Mr=qt?X:nn(H);Xt=Xt==J?Tt:Xt,Mr=Mr==J?Tt:Mr;var Dr=Xt==Tt,Br=Mr==Tt,Vr=Xt==Mr;if(Vr&&xa(R)){if(!xa(H))return!1;Rt=!0,Dr=!1}if(Vr&&!Dr)return vt||(vt=new Hn),Rt||qa(R)?Eu(R,H,ae,Ie,tt,vt):Qf(R,H,Xt,ae,Ie,tt,vt);if(!(ae&I)){var Zr=Dr&&ui.call(R,"__wrapped__"),ai=Br&&ui.call(H,"__wrapped__");if(Zr||ai){var yi=Zr?R.value():R,si=ai?H.value():H;return vt||(vt=new Hn),tt(yi,si,ae,Ie,vt)}}return Vr?(vt||(vt=new Hn),Yf(R,H,ae,Ie,tt,vt)):!1}function Sf(R){return Oi(R)&&nn(R)==mt}function Ws(R,H,ae,Ie){var tt=ae.length,vt=tt,Rt=!Ie;if(R==null)return!vt;for(R=Zt(R);tt--;){var qt=ae[tt];if(Rt&&qt[2]?qt[1]!==R[qt[0]]:!(qt[0]in R))return!1}for(;++tt<vt;){qt=ae[tt];var Xt=qt[0],Mr=R[Xt],Dr=qt[1];if(Rt&&qt[2]){if(Mr===o&&!(Xt in R))return!1}else{var Br=new Hn;if(Ie)var Vr=Ie(Mr,Dr,Xt,R,H,Br);if(!(Vr===o?Xa(Dr,Mr,I|j,Ie,Br):Vr))return!1}}return!0}function Go(R){if(!Ri(R)||sc(R))return!1;var H=ca(R)?xl:lr;return H.test(Ia(R))}function Tf(R){return Oi(R)&&cn(R)==ht}function Ef(R){return Oi(R)&&nn(R)==at}function kf(R){return Oi(R)&&Rs(R.length)&&!!li[cn(R)]}function Ko(R){return typeof R=="function"?R:R==null?Sn:typeof R=="object"?pi(R)?Xo(R[0],R[1]):Yo(R):yl(R)}function Vs(R){if(!es(R))return Al(R);var H=[];for(var ae in Zt(R))ui.call(R,ae)&&ae!="constructor"&&H.push(ae);return H}function Af(R){if(!Ri(R))return fc(R);var H=es(R),ae=[];for(var Ie in R)Ie=="constructor"&&(H||!ui.call(R,Ie))||ae.push(Ie);return ae}function Gs(R,H){return R<H}function Qo(R,H){var ae=-1,Ie=xn(R)?Ke(R.length):[];return va(R,function(tt,vt,Rt){Ie[++ae]=H(tt,vt,Rt)}),Ie}function Yo(R){var H=uo(R);return H.length==1&&H[0][2]?Pu(H[0][0],H[0][1]):function(ae){return ae===R||Ws(ae,R,H)}}function Xo(R,H){return fo(R)&&Mu(H)?Pu(Zn(R),H):function(ae){var Ie=xo(ae,R);return Ie===o&&Ie===H?wo(ae,R):Xa(H,Ie,I|j)}}function vs(R,H,ae,Ie,tt){R!==H&&Ns(H,function(vt,Rt){if(tt||(tt=new Hn),Ri(vt))Cf(R,H,Rt,ae,vs,Ie,tt);else{var qt=Ie?Ie(ho(R,Rt),vt,Rt+"",R,H,tt):o;qt===o&&(qt=vt),Fs(R,Rt,qt)}},wn)}function Cf(R,H,ae,Ie,tt,vt,Rt){var qt=ho(R,ae),Xt=ho(H,ae),Mr=Rt.get(Xt);if(Mr){Fs(R,ae,Mr);return}var Dr=vt?vt(qt,Xt,ae+"",R,H,Rt):o,Br=Dr===o;if(Br){var Vr=pi(Xt),Zr=!Vr&&xa(Xt),ai=!Vr&&!Zr&&qa(Xt);Dr=Xt,Vr||Zr||ai?pi(qt)?Dr=qt:Fi(qt)?Dr=_n(qt):Zr?(Br=!1,Dr=lu(Xt,!0)):ai?(Br=!1,Dr=fu(Xt,!0)):Dr=[]:rs(Xt)||Ra(Xt)?(Dr=qt,Ra(qt)?Dr=ol(qt):(!Ri(qt)||ca(qt))&&(Dr=Cu(Xt))):Br=!1}Br&&(Rt.set(Xt,Dr),tt(Dr,Xt,Ie,vt,Rt),Rt.delete(Xt)),Fs(R,ae,Dr)}function Zo(R,H){var ae=R.length;if(ae)return H+=H<0?ae:0,fa(H,ae)?R[H]:o}function Jo(R,H,ae){H.length?H=Kr(H,function(vt){return pi(vt)?function(Rt){return Pa(Rt,vt.length===1?vt[0]:vt)}:vt}):H=[Sn];var Ie=-1;H=Kr(H,Qi(ni()));var tt=Qo(R,function(vt,Rt,qt){var Xt=Kr(H,function(Mr){return Mr(vt)});return{criteria:Xt,index:++Ie,value:vt}});return En(tt,function(vt,Rt){return Nf(vt,Rt,ae)})}function Mf(R,H){return eu(R,H,function(ae,Ie){return wo(R,Ie)})}function eu(R,H,ae){for(var Ie=-1,tt=H.length,vt={};++Ie<tt;){var Rt=H[Ie],qt=Pa(R,Rt);ae(qt,Rt)&&Za(vt,ba(Rt,R),qt)}return vt}function Pf(R){return function(H){return Pa(H,R)}}function Ks(R,H,ae,Ie){var tt=Ie?Kn:Ai,vt=-1,Rt=H.length,qt=R;for(R===H&&(H=_n(H)),ae&&(qt=Kr(R,Qi(ae)));++vt<Rt;)for(var Xt=0,Mr=H[vt],Dr=ae?ae(Mr):Mr;(Xt=tt(qt,Dr,Xt,Ie))>-1;)qt!==R&&os.call(qt,Xt,1),os.call(R,Xt,1);return R}function tu(R,H){for(var ae=R?H.length:0,Ie=ae-1;ae--;){var tt=H[ae];if(ae==Ie||tt!==vt){var vt=tt;fa(tt)?os.call(R,tt,1):Zs(R,tt)}}return R}function Qs(R,H){return R+fs(Bo()*(H-R+1))}function Df(R,H,ae,Ie){for(var tt=-1,vt=zi(ls((H-R)/(ae||1)),0),Rt=Ke(vt);vt--;)Rt[Ie?vt:++tt]=R,R+=ae;return Rt}function Ys(R,H){var ae="";if(!R||H<1||H>T)return ae;do H%2&&(ae+=R),H=fs(H/2),H&&(R+=R);while(H);return ae}function bi(R,H){return po(Du(R,H,Sn),R+"")}function If(R){return $o(Na(R))}function Rf(R,H){var ae=Na(R);return As(ae,Ma(H,0,ae.length))}function Za(R,H,ae,Ie){if(!Ri(R))return R;H=ba(H,R);for(var tt=-1,vt=H.length,Rt=vt-1,qt=R;qt!=null&&++tt<vt;){var Xt=Zn(H[tt]),Mr=ae;if(Xt==="__proto__"||Xt==="constructor"||Xt==="prototype")return R;if(tt!=Rt){var Dr=qt[Xt];Mr=Ie?Ie(Dr,Xt,qt):o,Mr===o&&(Mr=Ri(Dr)?Dr:fa(H[tt+1])?[]:{})}Ka(qt,Xt,Mr),qt=qt[Xt]}return R}var ru=cs?function(R,H){return cs.set(R,H),R}:Sn,Lf=us?function(R,H){return us(R,"toString",{configurable:!0,enumerable:!1,value:To(H),writable:!0})}:Sn;function Bf(R){return As(Na(R))}function $n(R,H,ae){var Ie=-1,tt=R.length;H<0&&(H=-H>tt?0:tt+H),ae=ae>tt?tt:ae,ae<0&&(ae+=tt),tt=H>ae?0:ae-H>>>0,H>>>=0;for(var vt=Ke(tt);++Ie<tt;)vt[Ie]=R[Ie+H];return vt}function Of(R,H){var ae;return va(R,function(Ie,tt,vt){return ae=H(Ie,tt,vt),!ae}),!!ae}function ys(R,H,ae){var Ie=0,tt=R==null?Ie:R.length;if(typeof H=="number"&&H===H&&tt<=O){for(;Ie<tt;){var vt=Ie+tt>>>1,Rt=R[vt];Rt!==null&&!Pn(Rt)&&(ae?Rt<=H:Rt<H)?Ie=vt+1:tt=vt}return tt}return Xs(R,H,Sn,ae)}function Xs(R,H,ae,Ie){var tt=0,vt=R==null?0:R.length;if(vt===0)return 0;H=ae(H);for(var Rt=H!==H,qt=H===null,Xt=Pn(H),Mr=H===o;tt<vt;){var Dr=fs((tt+vt)/2),Br=ae(R[Dr]),Vr=Br!==o,Zr=Br===null,ai=Br===Br,yi=Pn(Br);if(Rt)var si=Ie||ai;else Mr?si=ai&&(Ie||Vr):qt?si=ai&&Vr&&(Ie||!Zr):Xt?si=ai&&Vr&&!Zr&&(Ie||!yi):Zr||yi?si=!1:si=Ie?Br<=H:Br<H;si?tt=Dr+1:vt=Dr}return rn(vt,D)}function iu(R,H){for(var ae=-1,Ie=R.length,tt=0,vt=[];++ae<Ie;){var Rt=R[ae],qt=H?H(Rt):Rt;if(!ae||!Wn(qt,Xt)){var Xt=qt;vt[tt++]=Rt===0?0:Rt}}return vt}function nu(R){return typeof R=="number"?R:Pn(R)?d:+R}function Mn(R){if(typeof R=="string")return R;if(pi(R))return Kr(R,Mn)+"";if(Pn(R))return Oo?Oo.call(R):"";var H=R+"";return H=="0"&&1/R==-x?"-0":H}function ya(R,H,ae){var Ie=-1,tt=er,vt=R.length,Rt=!0,qt=[],Xt=qt;if(ae)Rt=!1,tt=$r;else if(vt>=t){var Mr=H?null:Gf(R);if(Mr)return Un(Mr);Rt=!1,tt=ra,Xt=new Ca}else Xt=H?[]:qt;e:for(;++Ie<vt;){var Dr=R[Ie],Br=H?H(Dr):Dr;if(Dr=ae||Dr!==0?Dr:0,Rt&&Br===Br){for(var Vr=Xt.length;Vr--;)if(Xt[Vr]===Br)continue e;H&&Xt.push(Br),qt.push(Dr)}else tt(Xt,Br,ae)||(Xt!==qt&&Xt.push(Br),qt.push(Dr))}return qt}function Zs(R,H){return H=ba(H,R),R=Iu(R,H),R==null||delete R[Zn(Fn(H))]}function au(R,H,ae,Ie){return Za(R,H,ae(Pa(R,H)),Ie)}function bs(R,H,ae,Ie){for(var tt=R.length,vt=Ie?tt:-1;(Ie?vt--:++vt<tt)&&H(R[vt],vt,R););return ae?$n(R,Ie?0:vt,Ie?vt+1:tt):$n(R,Ie?vt+1:0,Ie?tt:vt)}function su(R,H){var ae=R;return ae instanceof Si&&(ae=ae.value()),ci(H,function(Ie,tt){return tt.func.apply(tt.thisArg,hi([Ie],tt.args))},ae)}function Js(R,H,ae){var Ie=R.length;if(Ie<2)return Ie?ya(R[0]):[];for(var tt=-1,vt=Ke(Ie);++tt<Ie;)for(var Rt=R[tt],qt=-1;++qt<Ie;)qt!=tt&&(vt[tt]=Qa(vt[tt]||Rt,R[qt],H,ae));return ya(Yi(vt,1),H,ae)}function ou(R,H,ae){for(var Ie=-1,tt=R.length,vt=H.length,Rt={};++Ie<tt;){var qt=Ie<vt?H[Ie]:o;ae(Rt,R[Ie],qt)}return Rt}function eo(R){return Fi(R)?R:[]}function to(R){return typeof R=="function"?R:Sn}function ba(R,H){return pi(R)?R:fo(R,H)?[R]:Ou(Ci(R))}var jf=bi;function _a(R,H,ae){var Ie=R.length;return ae=ae===o?Ie:ae,!H&&ae>=Ie?R:$n(R,H,ae)}var uu=wl||function(R){return ki.clearTimeout(R)};function lu(R,H){if(H)return R.slice();var ae=R.length,Ie=Po?Po(ae):new R.constructor(ae);return R.copy(Ie),Ie}function ro(R){var H=new R.constructor(R.byteLength);return new as(H).set(new as(R)),H}function $f(R,H){var ae=H?ro(R.buffer):R.buffer;return new R.constructor(ae,R.byteOffset,R.byteLength)}function Ff(R){var H=new R.constructor(R.source,Yt.exec(R));return H.lastIndex=R.lastIndex,H}function qf(R){return Ga?Zt(Ga.call(R)):{}}function fu(R,H){var ae=H?ro(R.buffer):R.buffer;return new R.constructor(ae,R.byteOffset,R.length)}function cu(R,H){if(R!==H){var ae=R!==o,Ie=R===null,tt=R===R,vt=Pn(R),Rt=H!==o,qt=H===null,Xt=H===H,Mr=Pn(H);if(!qt&&!Mr&&!vt&&R>H||vt&&Rt&&Xt&&!qt&&!Mr||Ie&&Rt&&Xt||!ae&&Xt||!tt)return 1;if(!Ie&&!vt&&!Mr&&R<H||Mr&&ae&&tt&&!Ie&&!vt||qt&&ae&&tt||!Rt&&tt||!Xt)return-1}return 0}function Nf(R,H,ae){for(var Ie=-1,tt=R.criteria,vt=H.criteria,Rt=tt.length,qt=ae.length;++Ie<Rt;){var Xt=cu(tt[Ie],vt[Ie]);if(Xt){if(Ie>=qt)return Xt;var Mr=ae[Ie];return Xt*(Mr=="desc"?-1:1)}}return R.index-H.index}function hu(R,H,ae,Ie){for(var tt=-1,vt=R.length,Rt=ae.length,qt=-1,Xt=H.length,Mr=zi(vt-Rt,0),Dr=Ke(Xt+Mr),Br=!Ie;++qt<Xt;)Dr[qt]=H[qt];for(;++tt<Rt;)(Br||tt<vt)&&(Dr[ae[tt]]=R[tt]);for(;Mr--;)Dr[qt++]=R[tt++];return Dr}function du(R,H,ae,Ie){for(var tt=-1,vt=R.length,Rt=-1,qt=ae.length,Xt=-1,Mr=H.length,Dr=zi(vt-qt,0),Br=Ke(Dr+Mr),Vr=!Ie;++tt<Dr;)Br[tt]=R[tt];for(var Zr=tt;++Xt<Mr;)Br[Zr+Xt]=H[Xt];for(;++Rt<qt;)(Vr||tt<vt)&&(Br[Zr+ae[Rt]]=R[tt++]);return Br}function _n(R,H){var ae=-1,Ie=R.length;for(H||(H=Ke(Ie));++ae<Ie;)H[ae]=R[ae];return H}function Xn(R,H,ae,Ie){var tt=!ae;ae||(ae={});for(var vt=-1,Rt=H.length;++vt<Rt;){var qt=H[vt],Xt=Ie?Ie(ae[qt],R[qt],qt,ae,R):o;Xt===o&&(Xt=R[qt]),tt?oa(ae,qt,Xt):Ka(ae,qt,Xt)}return ae}function zf(R,H){return Xn(R,lo(R),H)}function Uf(R,H){return Xn(R,ku(R),H)}function _s(R,H){return function(ae,Ie){var tt=pi(ae)?Ot:cf,vt=H?H():{};return tt(ae,R,ni(Ie,2),vt)}}function ja(R){return bi(function(H,ae){var Ie=-1,tt=ae.length,vt=tt>1?ae[tt-1]:o,Rt=tt>2?ae[2]:o;for(vt=R.length>3&&typeof vt=="function"?(tt--,vt):o,Rt&&hn(ae[0],ae[1],Rt)&&(vt=tt<3?o:vt,tt=1),H=Zt(H);++Ie<tt;){var qt=ae[Ie];qt&&R(H,qt,Ie,vt)}return H})}function pu(R,H){return function(ae,Ie){if(ae==null)return ae;if(!xn(ae))return R(ae,Ie);for(var tt=ae.length,vt=H?tt:-1,Rt=Zt(ae);(H?vt--:++vt<tt)&&Ie(Rt[vt],vt,Rt)!==!1;);return ae}}function mu(R){return function(H,ae,Ie){for(var tt=-1,vt=Zt(H),Rt=Ie(H),qt=Rt.length;qt--;){var Xt=Rt[R?qt:++tt];if(ae(vt[Xt],Xt,vt)===!1)break}return H}}function Hf(R,H,ae){var Ie=H&B,tt=Ja(R);function vt(){var Rt=this&&this!==ki&&this instanceof vt?tt:R;return Rt.apply(Ie?ae:this,arguments)}return vt}function gu(R){return function(H){H=Ci(H);var ae=Di(H)?it(H):o,Ie=ae?ae[0]:H.charAt(0),tt=ae?_a(ae,1).join(""):H.slice(1);return Ie[R]()+tt}}function $a(R){return function(H){return ci(gl(ml(H).replace(Er,"")),R,"")}}function Ja(R){return function(){var H=arguments;switch(H.length){case 0:return new R;case 1:return new R(H[0]);case 2:return new R(H[0],H[1]);case 3:return new R(H[0],H[1],H[2]);case 4:return new R(H[0],H[1],H[2],H[3]);case 5:return new R(H[0],H[1],H[2],H[3],H[4]);case 6:return new R(H[0],H[1],H[2],H[3],H[4],H[5]);case 7:return new R(H[0],H[1],H[2],H[3],H[4],H[5],H[6])}var ae=Oa(R.prototype),Ie=R.apply(ae,H);return Ri(Ie)?Ie:ae}}function Wf(R,H,ae){var Ie=Ja(R);function tt(){for(var vt=arguments.length,Rt=Ke(vt),qt=vt,Xt=Fa(tt);qt--;)Rt[qt]=arguments[qt];var Mr=vt<3&&Rt[0]!==Xt&&Rt[vt-1]!==Xt?[]:fn(Rt,Xt);if(vt-=Mr.length,vt<ae)return xu(R,H,xs,tt.placeholder,o,Rt,Mr,o,o,ae-vt);var Dr=this&&this!==ki&&this instanceof tt?Ie:R;return nt(Dr,this,Rt)}return tt}function vu(R){return function(H,ae,Ie){var tt=Zt(H);if(!xn(H)){var vt=ni(ae,3);H=Gi(H),ae=function(qt){return vt(tt[qt],qt,tt)}}var Rt=R(H,ae,Ie);return Rt>-1?tt[vt?H[Rt]:Rt]:o}}function yu(R){return la(function(H){var ae=H.length,Ie=ae,tt=On.prototype.thru;for(R&&H.reverse();Ie--;){var vt=H[Ie];if(typeof vt!="function")throw new ii(h);if(tt&&!Rt&&Es(vt)=="wrapper")var Rt=new On([],!0)}for(Ie=Rt?Ie:ae;++Ie<ae;){vt=H[Ie];var qt=Es(vt),Xt=qt=="wrapper"?oo(vt):o;Xt&&co(Xt[0])&&Xt[1]==(V|ee|re|le)&&!Xt[4].length&&Xt[9]==1?Rt=Rt[Es(Xt[0])].apply(Rt,Xt[3]):Rt=vt.length==1&&co(vt)?Rt[qt]():Rt.thru(vt)}return function(){var Mr=arguments,Dr=Mr[0];if(Rt&&Mr.length==1&&pi(Dr))return Rt.plant(Dr).value();for(var Br=0,Vr=ae?H[Br].apply(this,Mr):Dr;++Br<ae;)Vr=H[Br].call(this,Vr);return Vr}})}function xs(R,H,ae,Ie,tt,vt,Rt,qt,Xt,Mr){var Dr=H&V,Br=H&B,Vr=H&F,Zr=H&(ee|Z),ai=H&he,yi=Vr?o:Ja(R);function si(){for(var xi=arguments.length,Ti=Ke(xi),Dn=xi;Dn--;)Ti[Dn]=arguments[Dn];if(Zr)var dn=Fa(si),In=un(Ti,dn);if(Ie&&(Ti=hu(Ti,Ie,tt,Zr)),vt&&(Ti=du(Ti,vt,Rt,Zr)),xi-=In,Zr&&xi<Mr){var qi=fn(Ti,dn);return xu(R,H,xs,si.placeholder,ae,Ti,qi,qt,Xt,Mr-xi)}var Vn=Br?ae:this,da=Vr?Vn[R]:R;return xi=Ti.length,qt?Ti=hc(Ti,qt):ai&&xi>1&&Ti.reverse(),Dr&&Xt<xi&&(Ti.length=Xt),this&&this!==ki&&this instanceof si&&(da=yi||Ja(da)),da.apply(Vn,Ti)}return si}function bu(R,H){return function(ae,Ie){return bf(ae,R,H(Ie),{})}}function ws(R,H){return function(ae,Ie){var tt;if(ae===o&&Ie===o)return H;if(ae!==o&&(tt=ae),Ie!==o){if(tt===o)return Ie;typeof ae=="string"||typeof Ie=="string"?(ae=Mn(ae),Ie=Mn(Ie)):(ae=nu(ae),Ie=nu(Ie)),tt=R(ae,Ie)}return tt}}function io(R){return la(function(H){return H=Kr(H,Qi(ni())),bi(function(ae){var Ie=this;return R(H,function(tt){return nt(tt,Ie,ae)})})})}function Ss(R,H){H=H===o?" ":Mn(H);var ae=H.length;if(ae<2)return ae?Ys(H,R):H;var Ie=Ys(H,ls(R/Cn(H)));return Di(H)?_a(it(Ie),0,R).join(""):Ie.slice(0,R)}function Vf(R,H,ae,Ie){var tt=H&B,vt=Ja(R);function Rt(){for(var qt=-1,Xt=arguments.length,Mr=-1,Dr=Ie.length,Br=Ke(Dr+Xt),Vr=this&&this!==ki&&this instanceof Rt?vt:R;++Mr<Dr;)Br[Mr]=Ie[Mr];for(;Xt--;)Br[Mr++]=arguments[++qt];return nt(Vr,tt?ae:this,Br)}return Rt}function _u(R){return function(H,ae,Ie){return Ie&&typeof Ie!="number"&&hn(H,ae,Ie)&&(ae=Ie=o),H=ha(H),ae===o?(ae=H,H=0):ae=ha(ae),Ie=Ie===o?H<ae?1:-1:ha(Ie),Df(H,ae,Ie,R)}}function Ts(R){return function(H,ae){return typeof H=="string"&&typeof ae=="string"||(H=qn(H),ae=qn(ae)),R(H,ae)}}function xu(R,H,ae,Ie,tt,vt,Rt,qt,Xt,Mr){var Dr=H&ee,Br=Dr?Rt:o,Vr=Dr?o:Rt,Zr=Dr?vt:o,ai=Dr?o:vt;H|=Dr?re:fe,H&=~(Dr?fe:re),H&N||(H&=~(B|F));var yi=[R,H,tt,Zr,Br,ai,Vr,qt,Xt,Mr],si=ae.apply(o,yi);return co(R)&&Ru(si,yi),si.placeholder=Ie,Lu(si,R,H)}function no(R){var H=cr[R];return function(ae,Ie){if(ae=qn(ae),Ie=Ie==null?0:rn(mi(Ie),292),Ie&&Lo(ae)){var tt=(Ci(ae)+"e").split("e"),vt=H(tt[0]+"e"+(+tt[1]+Ie));return tt=(Ci(vt)+"e").split("e"),+(tt[0]+"e"+(+tt[1]-Ie))}return H(ae)}}var Gf=La&&1/Un(new La([,-0]))[1]==x?function(R){return new La(R)}:Ao;function wu(R){return function(H){var ae=nn(H);return ae==mt?pa(H):ae==at?Ta(H):kn(H,R(H))}}function ua(R,H,ae,Ie,tt,vt,Rt,qt){var Xt=H&F;if(!Xt&&typeof R!="function")throw new ii(h);var Mr=Ie?Ie.length:0;if(Mr||(H&=~(re|fe),Ie=tt=o),Rt=Rt===o?Rt:zi(mi(Rt),0),qt=qt===o?qt:mi(qt),Mr-=tt?tt.length:0,H&fe){var Dr=Ie,Br=tt;Ie=tt=o}var Vr=Xt?o:oo(R),Zr=[R,H,ae,Ie,tt,Dr,Br,vt,Rt,qt];if(Vr&&lc(Zr,Vr),R=Zr[0],H=Zr[1],ae=Zr[2],Ie=Zr[3],tt=Zr[4],qt=Zr[9]=Zr[9]===o?Xt?0:R.length:zi(Zr[9]-Mr,0),!qt&&H&(ee|Z)&&(H&=~(ee|Z)),!H||H==B)var ai=Hf(R,H,ae);else H==ee||H==Z?ai=Wf(R,H,qt):(H==re||H==(B|re))&&!tt.length?ai=Vf(R,H,ae,Ie):ai=xs.apply(o,Zr);var yi=Vr?ru:Ru;return Lu(yi(ai,Zr),R,H)}function Su(R,H,ae,Ie){return R===o||Wn(R,Bi[ae])&&!ui.call(Ie,ae)?H:R}function Tu(R,H,ae,Ie,tt,vt){return Ri(R)&&Ri(H)&&(vt.set(H,R),vs(R,H,o,Tu,vt),vt.delete(H)),R}function Kf(R){return rs(R)?o:R}function Eu(R,H,ae,Ie,tt,vt){var Rt=ae&I,qt=R.length,Xt=H.length;if(qt!=Xt&&!(Rt&&Xt>qt))return!1;var Mr=vt.get(R),Dr=vt.get(H);if(Mr&&Dr)return Mr==H&&Dr==R;var Br=-1,Vr=!0,Zr=ae&j?new Ca:o;for(vt.set(R,H),vt.set(H,R);++Br<qt;){var ai=R[Br],yi=H[Br];if(Ie)var si=Rt?Ie(yi,ai,Br,H,R,vt):Ie(ai,yi,Br,R,H,vt);if(si!==o){if(si)continue;Vr=!1;break}if(Zr){if(!Pi(H,function(xi,Ti){if(!ra(Zr,Ti)&&(ai===xi||tt(ai,xi,ae,Ie,vt)))return Zr.push(Ti)})){Vr=!1;break}}else if(!(ai===yi||tt(ai,yi,ae,Ie,vt))){Vr=!1;break}}return vt.delete(R),vt.delete(H),Vr}function Qf(R,H,ae,Ie,tt,vt,Rt){switch(ae){case Ct:if(R.byteLength!=H.byteLength||R.byteOffset!=H.byteOffset)return!1;R=R.buffer,H=H.buffer;case Et:return!(R.byteLength!=H.byteLength||!vt(new as(R),new as(H)));case z:case ie:case st:return Wn(+R,+H);case me:return R.name==H.name&&R.message==H.message;case ht:case bt:return R==H+"";case mt:var qt=pa;case at:var Xt=Ie&I;if(qt||(qt=Un),R.size!=H.size&&!Xt)return!1;var Mr=Rt.get(R);if(Mr)return Mr==H;Ie|=j,Rt.set(R,H);var Dr=Eu(qt(R),qt(H),Ie,tt,vt,Rt);return Rt.delete(R),Dr;case jt:if(Ga)return Ga.call(R)==Ga.call(H)}return!1}function Yf(R,H,ae,Ie,tt,vt){var Rt=ae&I,qt=ao(R),Xt=qt.length,Mr=ao(H),Dr=Mr.length;if(Xt!=Dr&&!Rt)return!1;for(var Br=Xt;Br--;){var Vr=qt[Br];if(!(Rt?Vr in H:ui.call(H,Vr)))return!1}var Zr=vt.get(R),ai=vt.get(H);if(Zr&&ai)return Zr==H&&ai==R;var yi=!0;vt.set(R,H),vt.set(H,R);for(var si=Rt;++Br<Xt;){Vr=qt[Br];var xi=R[Vr],Ti=H[Vr];if(Ie)var Dn=Rt?Ie(Ti,xi,Vr,H,R,vt):Ie(xi,Ti,Vr,R,H,vt);if(!(Dn===o?xi===Ti||tt(xi,Ti,ae,Ie,vt):Dn)){yi=!1;break}si||(si=Vr=="constructor")}if(yi&&!si){var dn=R.constructor,In=H.constructor;dn!=In&&"constructor"in R&&"constructor"in H&&!(typeof dn=="function"&&dn instanceof dn&&typeof In=="function"&&In instanceof In)&&(yi=!1)}return vt.delete(R),vt.delete(H),yi}function la(R){return po(Du(R,o,qu),R+"")}function ao(R){return Wo(R,Gi,lo)}function so(R){return Wo(R,wn,ku)}var oo=cs?function(R){return cs.get(R)}:Ao;function Es(R){for(var H=R.name+"",ae=Ba[H],Ie=ui.call(Ba,H)?ae.length:0;Ie--;){var tt=ae[Ie],vt=tt.func;if(vt==null||vt==R)return tt.name}return H}function Fa(R){var H=ui.call(ut,"placeholder")?ut:R;return H.placeholder}function ni(){var R=ut.iteratee||Eo;return R=R===Eo?Ko:R,arguments.length?R(arguments[0],arguments[1]):R}function ks(R,H){var ae=R.__data__;return ac(H)?ae[typeof H=="string"?"string":"hash"]:ae.map}function uo(R){for(var H=Gi(R),ae=H.length;ae--;){var Ie=H[ae],tt=R[Ie];H[ae]=[Ie,tt,Mu(tt)]}return H}function Da(R,H){var ae=Ni(R,H);return Go(ae)?ae:o}function Xf(R){var H=ui.call(R,ka),ae=R[ka];try{R[ka]=o;var Ie=!0}catch{}var tt=Ea.call(R);return Ie&&(H?R[ka]=ae:delete R[ka]),tt}var lo=Os?function(R){return R==null?[]:(R=Zt(R),yr(Os(R),function(H){return Io.call(R,H)}))}:Co,ku=Os?function(R){for(var H=[];R;)hi(H,lo(R)),R=ss(R);return H}:Co,nn=cn;(js&&nn(new js(new ArrayBuffer(1)))!=Ct||Ha&&nn(new Ha)!=mt||$s&&nn($s.resolve())!=lt||La&&nn(new La)!=at||Wa&&nn(new Wa)!=Qe)&&(nn=function(R){var H=cn(R),ae=H==Tt?R.constructor:o,Ie=ae?Ia(ae):"";if(Ie)switch(Ie){case Dl:return Ct;case Il:return mt;case Rl:return lt;case Ll:return at;case Bl:return Qe}return H});function Zf(R,H,ae){for(var Ie=-1,tt=ae.length;++Ie<tt;){var vt=ae[Ie],Rt=vt.size;switch(vt.type){case"drop":R+=Rt;break;case"dropRight":H-=Rt;break;case"take":H=rn(H,R+Rt);break;case"takeRight":R=zi(R,H-Rt);break}}return{start:R,end:H}}function Jf(R){var H=R.match(se);return H?H[1].split(Pe):[]}function Au(R,H,ae){H=ba(H,R);for(var Ie=-1,tt=H.length,vt=!1;++Ie<tt;){var Rt=Zn(H[Ie]);if(!(vt=R!=null&&ae(R,Rt)))break;R=R[Rt]}return vt||++Ie!=tt?vt:(tt=R==null?0:R.length,!!tt&&Rs(tt)&&fa(Rt,tt)&&(pi(R)||Ra(R)))}function tc(R){var H=R.length,ae=new R.constructor(H);return H&&typeof R[0]=="string"&&ui.call(R,"index")&&(ae.index=R.index,ae.input=R.input),ae}function Cu(R){return typeof R.constructor=="function"&&!es(R)?Oa(ss(R)):{}}function rc(R,H,ae){var Ie=R.constructor;switch(H){case Et:return ro(R);case z:case ie:return new Ie(+R);case Ct:return $f(R,ae);case Kt:case Me:case te:case _e:case je:case We:case et:case Ye:case De:return fu(R,ae);case mt:return new Ie;case st:case bt:return new Ie(R);case ht:return Ff(R);case at:return new Ie;case jt:return qf(R)}}function ic(R,H){var ae=H.length;if(!ae)return R;var Ie=ae-1;return H[Ie]=(ae>1?"& ":"")+H[Ie],H=H.join(ae>2?", ":" "),R.replace(ve,`{
/* [wrapped with `+H+`] */
`)}function nc(R){return pi(R)||Ra(R)||!!(Ro&&R&&R[Ro])}function fa(R,H){var ae=typeof R;return H=H??T,!!H&&(ae=="number"||ae!="symbol"&&vr.test(R))&&R>-1&&R%1==0&&R<H}function hn(R,H,ae){if(!Ri(ae))return!1;var Ie=typeof H;return(Ie=="number"?xn(ae)&&fa(H,ae.length):Ie=="string"&&H in ae)?Wn(ae[H],R):!1}function fo(R,H){if(pi(R))return!1;var ae=typeof R;return ae=="number"||ae=="symbol"||ae=="boolean"||R==null||Pn(R)?!0:Ut.test(R)||!kt.test(R)||H!=null&&R in Zt(H)}function ac(R){var H=typeof R;return H=="string"||H=="number"||H=="symbol"||H=="boolean"?R!=="__proto__":R===null}function co(R){var H=Es(R),ae=ut[H];if(typeof ae!="function"||!(H in Si.prototype))return!1;if(R===ae)return!0;var Ie=oo(ae);return!!Ie&&R===Ie[0]}function sc(R){return!!Ii&&Ii in R}var oc=Vi?ca:Mo;function es(R){var H=R&&R.constructor,ae=typeof H=="function"&&H.prototype||Bi;return R===ae}function Mu(R){return R===R&&!Ri(R)}function Pu(R,H){return function(ae){return ae==null?!1:ae[R]===H&&(H!==o||R in Zt(ae))}}function uc(R){var H=Ds(R,function(Ie){return ae.size===A&&ae.clear(),Ie}),ae=H.cache;return H}function lc(R,H){var ae=R[1],Ie=H[1],tt=ae|Ie,vt=tt<(B|F|V),Rt=Ie==V&&ae==ee||Ie==V&&ae==le&&R[7].length<=H[8]||Ie==(V|le)&&H[7].length<=H[8]&&ae==ee;if(!(vt||Rt))return R;Ie&B&&(R[2]=H[2],tt|=ae&B?0:N);var qt=H[3];if(qt){var Xt=R[3];R[3]=Xt?hu(Xt,qt,H[4]):qt,R[4]=Xt?fn(R[3],E):H[4]}return qt=H[5],qt&&(Xt=R[5],R[5]=Xt?du(Xt,qt,H[6]):qt,R[6]=Xt?fn(R[5],E):H[6]),qt=H[7],qt&&(R[7]=qt),Ie&V&&(R[8]=R[8]==null?H[8]:rn(R[8],H[8])),R[9]==null&&(R[9]=H[9]),R[0]=H[0],R[1]=tt,R}function fc(R){var H=[];if(R!=null)for(var ae in Zt(R))H.push(ae);return H}function cc(R){return Ea.call(R)}function Du(R,H,ae){return H=zi(H===o?R.length-1:H,0),function(){for(var Ie=arguments,tt=-1,vt=zi(Ie.length-H,0),Rt=Ke(vt);++tt<vt;)Rt[tt]=Ie[H+tt];tt=-1;for(var qt=Ke(H+1);++tt<H;)qt[tt]=Ie[tt];return qt[H]=ae(Rt),nt(R,this,qt)}}function Iu(R,H){return H.length<2?R:Pa(R,$n(H,0,-1))}function hc(R,H){for(var ae=R.length,Ie=rn(H.length,ae),tt=_n(R);Ie--;){var vt=H[Ie];R[Ie]=fa(vt,ae)?tt[vt]:o}return R}function ho(R,H){if(!(H==="constructor"&&typeof R[H]=="function")&&H!="__proto__")return R[H]}var Ru=Bu(ru),ts=Tl||function(R,H){return ki.setTimeout(R,H)},po=Bu(Lf);function Lu(R,H,ae){var Ie=H+"";return po(R,ic(Ie,dc(Jf(Ie),ae)))}function Bu(R){var H=0,ae=0;return function(){var Ie=Cl(),tt=y-(Ie-ae);if(ae=Ie,tt>0){if(++H>=p)return arguments[0]}else H=0;return R.apply(o,arguments)}}function As(R,H){var ae=-1,Ie=R.length,tt=Ie-1;for(H=H===o?Ie:H;++ae<H;){var vt=Qs(ae,tt),Rt=R[vt];R[vt]=R[ae],R[ae]=Rt}return R.length=H,R}var Ou=uc(function(R){var H=[];return R.charCodeAt(0)===46&&H.push(""),R.replace(Wr,function(ae,Ie,tt,vt){H.push(tt?vt.replace(ot,"$1"):Ie||ae)}),H});function Zn(R){if(typeof R=="string"||Pn(R))return R;var H=R+"";return H=="0"&&1/R==-x?"-0":H}function Ia(R){if(R!=null){try{return yn.call(R)}catch{}try{return R+""}catch{}}return""}function dc(R,H){return At(Q,function(ae){var Ie="_."+ae[0];H&ae[1]&&!er(R,Ie)&&R.push(Ie)}),R.sort()}function ju(R){if(R instanceof Si)return R.clone();var H=new On(R.__wrapped__,R.__chain__);return H.__actions__=_n(R.__actions__),H.__index__=R.__index__,H.__values__=R.__values__,H}function pc(R,H,ae){(ae?hn(R,H,ae):H===o)?H=1:H=zi(mi(H),0);var Ie=R==null?0:R.length;if(!Ie||H<1)return[];for(var tt=0,vt=0,Rt=Ke(ls(Ie/H));tt<Ie;)Rt[vt++]=$n(R,tt,tt+=H);return Rt}function mc(R){for(var H=-1,ae=R==null?0:R.length,Ie=0,tt=[];++H<ae;){var vt=R[H];vt&&(tt[Ie++]=vt)}return tt}function gc(){var R=arguments.length;if(!R)return[];for(var H=Ke(R-1),ae=arguments[0],Ie=R;Ie--;)H[Ie-1]=arguments[Ie];return hi(pi(ae)?_n(ae):[ae],Yi(H,1))}var vc=bi(function(R,H){return Fi(R)?Qa(R,Yi(H,1,Fi,!0)):[]}),yc=bi(function(R,H){var ae=Fn(H);return Fi(ae)&&(ae=o),Fi(R)?Qa(R,Yi(H,1,Fi,!0),ni(ae,2)):[]}),bc=bi(function(R,H){var ae=Fn(H);return Fi(ae)&&(ae=o),Fi(R)?Qa(R,Yi(H,1,Fi,!0),o,ae):[]});function _c(R,H,ae){var Ie=R==null?0:R.length;return Ie?(H=ae||H===o?1:mi(H),$n(R,H<0?0:H,Ie)):[]}function xc(R,H,ae){var Ie=R==null?0:R.length;return Ie?(H=ae||H===o?1:mi(H),H=Ie-H,$n(R,0,H<0?0:H)):[]}function wc(R,H){return R&&R.length?bs(R,ni(H,3),!0,!0):[]}function Sc(R,H){return R&&R.length?bs(R,ni(H,3),!0):[]}function Tc(R,H,ae,Ie){var tt=R==null?0:R.length;return tt?(ae&&typeof ae!="number"&&hn(R,H,ae)&&(ae=0,Ie=tt),mf(R,H,ae,Ie)):[]}function $u(R,H,ae){var Ie=R==null?0:R.length;if(!Ie)return-1;var tt=ae==null?0:mi(ae);return tt<0&&(tt=zi(Ie+tt,0)),vi(R,ni(H,3),tt)}function Fu(R,H,ae){var Ie=R==null?0:R.length;if(!Ie)return-1;var tt=Ie-1;return ae!==o&&(tt=mi(ae),tt=ae<0?zi(Ie+tt,0):rn(tt,Ie-1)),vi(R,ni(H,3),tt,!0)}function qu(R){var H=R==null?0:R.length;return H?Yi(R,1):[]}function Ec(R){var H=R==null?0:R.length;return H?Yi(R,x):[]}function kc(R,H){var ae=R==null?0:R.length;return ae?(H=H===o?1:mi(H),Yi(R,H)):[]}function Ac(R){for(var H=-1,ae=R==null?0:R.length,Ie={};++H<ae;){var tt=R[H];Ie[tt[0]]=tt[1]}return Ie}function Nu(R){return R&&R.length?R[0]:o}function Cc(R,H,ae){var Ie=R==null?0:R.length;if(!Ie)return-1;var tt=ae==null?0:mi(ae);return tt<0&&(tt=zi(Ie+tt,0)),Ai(R,H,tt)}function Mc(R){var H=R==null?0:R.length;return H?$n(R,0,-1):[]}var Pc=bi(function(R){var H=Kr(R,eo);return H.length&&H[0]===R[0]?Hs(H):[]}),Dc=bi(function(R){var H=Fn(R),ae=Kr(R,eo);return H===Fn(ae)?H=o:ae.pop(),ae.length&&ae[0]===R[0]?Hs(ae,ni(H,2)):[]}),Ic=bi(function(R){var H=Fn(R),ae=Kr(R,eo);return H=typeof H=="function"?H:o,H&&ae.pop(),ae.length&&ae[0]===R[0]?Hs(ae,o,H):[]});function Rc(R,H){return R==null?"":kl.call(R,H)}function Fn(R){var H=R==null?0:R.length;return H?R[H-1]:o}function Lc(R,H,ae){var Ie=R==null?0:R.length;if(!Ie)return-1;var tt=Ie;return ae!==o&&(tt=mi(ae),tt=tt<0?zi(Ie+tt,0):rn(tt,Ie-1)),H===H?ma(R,H,tt):vi(R,ta,tt,!0)}function Bc(R,H){return R&&R.length?Zo(R,mi(H)):o}var Oc=bi(zu);function zu(R,H){return R&&R.length&&H&&H.length?Ks(R,H):R}function jc(R,H,ae){return R&&R.length&&H&&H.length?Ks(R,H,ni(ae,2)):R}function $c(R,H,ae){return R&&R.length&&H&&H.length?Ks(R,H,o,ae):R}var Fc=la(function(R,H){var ae=R==null?0:R.length,Ie=qs(R,H);return tu(R,Kr(H,function(tt){return fa(tt,ae)?+tt:tt}).sort(cu)),Ie});function qc(R,H){var ae=[];if(!(R&&R.length))return ae;var Ie=-1,tt=[],vt=R.length;for(H=ni(H,3);++Ie<vt;){var Rt=R[Ie];H(Rt,Ie,R)&&(ae.push(Rt),tt.push(Ie))}return tu(R,tt),ae}function mo(R){return R==null?R:Pl.call(R)}function Nc(R,H,ae){var Ie=R==null?0:R.length;return Ie?(ae&&typeof ae!="number"&&hn(R,H,ae)?(H=0,ae=Ie):(H=H==null?0:mi(H),ae=ae===o?Ie:mi(ae)),$n(R,H,ae)):[]}function zc(R,H){return ys(R,H)}function Uc(R,H,ae){return Xs(R,H,ni(ae,2))}function Hc(R,H){var ae=R==null?0:R.length;if(ae){var Ie=ys(R,H);if(Ie<ae&&Wn(R[Ie],H))return Ie}return-1}function Wc(R,H){return ys(R,H,!0)}function Vc(R,H,ae){return Xs(R,H,ni(ae,2),!0)}function Gc(R,H){var ae=R==null?0:R.length;if(ae){var Ie=ys(R,H,!0)-1;if(Wn(R[Ie],H))return Ie}return-1}function Kc(R){return R&&R.length?iu(R):[]}function Qc(R,H){return R&&R.length?iu(R,ni(H,2)):[]}function Yc(R){var H=R==null?0:R.length;return H?$n(R,1,H):[]}function Xc(R,H,ae){return R&&R.length?(H=ae||H===o?1:mi(H),$n(R,0,H<0?0:H)):[]}function Zc(R,H,ae){var Ie=R==null?0:R.length;return Ie?(H=ae||H===o?1:mi(H),H=Ie-H,$n(R,H<0?0:H,Ie)):[]}function Jc(R,H){return R&&R.length?bs(R,ni(H,3),!1,!0):[]}function eh(R,H){return R&&R.length?bs(R,ni(H,3)):[]}var th=bi(function(R){return ya(Yi(R,1,Fi,!0))}),ih=bi(function(R){var H=Fn(R);return Fi(H)&&(H=o),ya(Yi(R,1,Fi,!0),ni(H,2))}),nh=bi(function(R){var H=Fn(R);return H=typeof H=="function"?H:o,ya(Yi(R,1,Fi,!0),o,H)});function ah(R){return R&&R.length?ya(R):[]}function oh(R,H){return R&&R.length?ya(R,ni(H,2)):[]}function uh(R,H){return H=typeof H=="function"?H:o,R&&R.length?ya(R,o,H):[]}function go(R){if(!(R&&R.length))return[];var H=0;return R=yr(R,function(ae){if(Fi(ae))return H=zi(ae.length,H),!0}),Bn(H,function(ae){return Kr(R,Ln(ae))})}function Uu(R,H){if(!(R&&R.length))return[];var ae=go(R);return H==null?ae:Kr(ae,function(Ie){return nt(H,o,Ie)})}var lh=bi(function(R,H){return Fi(R)?Qa(R,H):[]}),fh=bi(function(R){return Js(yr(R,Fi))}),hh=bi(function(R){var H=Fn(R);return Fi(H)&&(H=o),Js(yr(R,Fi),ni(H,2))}),ph=bi(function(R){var H=Fn(R);return H=typeof H=="function"?H:o,Js(yr(R,Fi),o,H)}),mh=bi(go);function gh(R,H){return ou(R||[],H||[],Ka)}function vh(R,H){return ou(R||[],H||[],Za)}var yh=bi(function(R){var H=R.length,ae=H>1?R[H-1]:o;return ae=typeof ae=="function"?(R.pop(),ae):o,Uu(R,ae)});function Hu(R){var H=ut(R);return H.__chain__=!0,H}function bh(R,H){return H(R),R}function Cs(R,H){return H(R)}var _h=la(function(R){var H=R.length,ae=H?R[0]:0,Ie=this.__wrapped__,tt=function(vt){return qs(vt,R)};return H>1||this.__actions__.length||!(Ie instanceof Si)||!fa(ae)?this.thru(tt):(Ie=Ie.slice(ae,+ae+(H?1:0)),Ie.__actions__.push({func:Cs,args:[tt],thisArg:o}),new On(Ie,this.__chain__).thru(function(vt){return H&&!vt.length&&vt.push(o),vt}))});function xh(){return Hu(this)}function wh(){return new On(this.value(),this.__chain__)}function Sh(){this.__values__===o&&(this.__values__=nl(this.value()));var R=this.__index__>=this.__values__.length,H=R?o:this.__values__[this.__index__++];return{done:R,value:H}}function Th(){return this}function Eh(R){for(var H,ae=this;ae instanceof ds;){var Ie=ju(ae);Ie.__index__=0,Ie.__values__=o,H?tt.__wrapped__=Ie:H=Ie;var tt=Ie;ae=ae.__wrapped__}return tt.__wrapped__=R,H}function kh(){var R=this.__wrapped__;if(R instanceof Si){var H=R;return this.__actions__.length&&(H=new Si(this)),H=H.reverse(),H.__actions__.push({func:Cs,args:[mo],thisArg:o}),new On(H,this.__chain__)}return this.thru(mo)}function Ah(){return su(this.__wrapped__,this.__actions__)}var Mh=_s(function(R,H,ae){ui.call(R,ae)?++R[ae]:oa(R,ae,1)});function Ph(R,H,ae){var Ie=pi(R)?or:pf;return ae&&hn(R,H,ae)&&(H=o),Ie(R,ni(H,3))}function Dh(R,H){var ae=pi(R)?yr:Uo;return ae(R,ni(H,3))}var Ih=vu($u),Rh=vu(Fu);function Lh(R,H){return Yi(Ms(R,H),1)}function Bh(R,H){return Yi(Ms(R,H),x)}function Oh(R,H,ae){return ae=ae===o?1:mi(ae),Yi(Ms(R,H),ae)}function Wu(R,H){var ae=pi(R)?At:va;return ae(R,ni(H,3))}function Vu(R,H){var ae=pi(R)?Vt:zo;return ae(R,ni(H,3))}var jh=_s(function(R,H,ae){ui.call(R,ae)?R[ae].push(H):oa(R,ae,[H])});function $h(R,H,ae,Ie){R=xn(R)?R:Na(R),ae=ae&&!Ie?mi(ae):0;var tt=R.length;return ae<0&&(ae=zi(tt+ae,0)),Ls(R)?ae<=tt&&R.indexOf(H,ae)>-1:!!tt&&Ai(R,H,ae)>-1}var Fh=bi(function(R,H,ae){var Ie=-1,tt=typeof H=="function",vt=xn(R)?Ke(R.length):[];return va(R,function(Rt){vt[++Ie]=tt?nt(H,Rt,ae):Ya(Rt,H,ae)}),vt}),qh=_s(function(R,H,ae){oa(R,ae,H)});function Ms(R,H){var ae=pi(R)?Kr:Qo;return ae(R,ni(H,3))}function Nh(R,H,ae,Ie){return R==null?[]:(pi(H)||(H=H==null?[]:[H]),ae=Ie?o:ae,pi(ae)||(ae=ae==null?[]:[ae]),Jo(R,H,ae))}var zh=_s(function(R,H,ae){R[ae?0:1].push(H)},function(){return[[],[]]});function Uh(R,H,ae){var Ie=pi(R)?ci:gn,tt=arguments.length<3;return Ie(R,ni(H,4),ae,tt,va)}function Hh(R,H,ae){var Ie=pi(R)?ji:gn,tt=arguments.length<3;return Ie(R,ni(H,4),ae,tt,zo)}function Wh(R,H){var ae=pi(R)?yr:Uo;return ae(R,Is(ni(H,3)))}function Vh(R){var H=pi(R)?$o:If;return H(R)}function Gh(R,H,ae){(ae?hn(R,H,ae):H===o)?H=1:H=mi(H);var Ie=pi(R)?lf:Rf;return Ie(R,H)}function Qh(R){var H=pi(R)?ff:Bf;return H(R)}function Yh(R){if(R==null)return 0;if(xn(R))return Ls(R)?Cn(R):R.length;var H=nn(R);return H==mt||H==at?R.size:Vs(R).length}function Xh(R,H,ae){var Ie=pi(R)?Pi:Of;return ae&&hn(R,H,ae)&&(H=o),Ie(R,ni(H,3))}var Zh=bi(function(R,H){if(R==null)return[];var ae=H.length;return ae>1&&hn(R,H[0],H[1])?H=[]:ae>2&&hn(H[0],H[1],H[2])&&(H=[H[0]]),Jo(R,Yi(H,1),[])}),Ps=Sl||function(){return ki.Date.now()};function Jh(R,H){if(typeof H!="function")throw new ii(h);return R=mi(R),function(){if(--R<1)return H.apply(this,arguments)}}function Gu(R,H,ae){return H=ae?o:H,H=R&&H==null?R.length:H,ua(R,V,o,o,o,o,H)}function Ku(R,H){var ae;if(typeof H!="function")throw new ii(h);return R=mi(R),function(){return--R>0&&(ae=H.apply(this,arguments)),R<=1&&(H=o),ae}}var vo=bi(function(R,H,ae){var Ie=B;if(ae.length){var tt=fn(ae,Fa(vo));Ie|=re}return ua(R,Ie,H,ae,tt)}),Qu=bi(function(R,H,ae){var Ie=B|F;if(ae.length){var tt=fn(ae,Fa(Qu));Ie|=re}return ua(H,Ie,R,ae,tt)});function Yu(R,H,ae){H=ae?o:H;var Ie=ua(R,ee,o,o,o,o,o,H);return Ie.placeholder=Yu.placeholder,Ie}function Xu(R,H,ae){H=ae?o:H;var Ie=ua(R,Z,o,o,o,o,o,H);return Ie.placeholder=Xu.placeholder,Ie}function Zu(R,H,ae){var Ie,tt,vt,Rt,qt,Xt,Mr=0,Dr=!1,Br=!1,Vr=!0;if(typeof R!="function")throw new ii(h);H=qn(H)||0,Ri(ae)&&(Dr=!!ae.leading,Br="maxWait"in ae,vt=Br?zi(qn(ae.maxWait)||0,H):vt,Vr="trailing"in ae?!!ae.trailing:Vr);function Zr(qi){var Vn=Ie,da=tt;return Ie=tt=o,Mr=qi,Rt=R.apply(da,Vn),Rt}function ai(qi){return Mr=qi,qt=ts(xi,H),Dr?Zr(qi):Rt}function yi(qi){var Vn=qi-Xt,da=qi-Mr,bl=H-Vn;return Br?rn(bl,vt-da):bl}function si(qi){var Vn=qi-Xt,da=qi-Mr;return Xt===o||Vn>=H||Vn<0||Br&&da>=vt}function xi(){var qi=Ps();if(si(qi))return Ti(qi);qt=ts(xi,yi(qi))}function Ti(qi){return qt=o,Vr&&Ie?Zr(qi):(Ie=tt=o,Rt)}function Dn(){qt!==o&&uu(qt),Mr=0,Ie=Xt=tt=qt=o}function dn(){return qt===o?Rt:Ti(Ps())}function In(){var qi=Ps(),Vn=si(qi);if(Ie=arguments,tt=this,Xt=qi,Vn){if(qt===o)return ai(Xt);if(Br)return uu(qt),qt=ts(xi,H),Zr(Xt)}return qt===o&&(qt=ts(xi,H)),Rt}return In.cancel=Dn,In.flush=dn,In}var ed=bi(function(R,H){return No(R,1,H)}),td=bi(function(R,H,ae){return No(R,qn(H)||0,ae)});function rd(R){return ua(R,he)}function Ds(R,H){if(typeof R!="function"||H!=null&&typeof H!="function")throw new ii(h);var ae=function(){var Ie=arguments,tt=H?H.apply(this,Ie):Ie[0],vt=ae.cache;if(vt.has(tt))return vt.get(tt);var Rt=R.apply(this,Ie);return ae.cache=vt.set(tt,Rt)||vt,Rt};return ae.cache=new(Ds.Cache||sa),ae}Ds.Cache=sa;function Is(R){if(typeof R!="function")throw new ii(h);return function(){var H=arguments;switch(H.length){case 0:return!R.call(this);case 1:return!R.call(this,H[0]);case 2:return!R.call(this,H[0],H[1]);case 3:return!R.call(this,H[0],H[1],H[2])}return!R.apply(this,H)}}function id(R){return Ku(2,R)}var nd=jf(function(R,H){H=H.length==1&&pi(H[0])?Kr(H[0],Qi(ni())):Kr(Yi(H,1),Qi(ni()));var ae=H.length;return bi(function(Ie){for(var tt=-1,vt=rn(Ie.length,ae);++tt<vt;)Ie[tt]=H[tt].call(this,Ie[tt]);return nt(R,this,Ie)})}),yo=bi(function(R,H){var ae=fn(H,Fa(yo));return ua(R,re,o,H,ae)}),Ju=bi(function(R,H){var ae=fn(H,Fa(Ju));return ua(R,fe,o,H,ae)}),ad=la(function(R,H){return ua(R,le,o,o,o,H)});function sd(R,H){if(typeof R!="function")throw new ii(h);return H=H===o?H:mi(H),bi(R,H)}function od(R,H){if(typeof R!="function")throw new ii(h);return H=H==null?0:zi(mi(H),0),bi(function(ae){var Ie=ae[H],tt=_a(ae,0,H);return Ie&&hi(tt,Ie),nt(R,this,tt)})}function ud(R,H,ae){var Ie=!0,tt=!0;if(typeof R!="function")throw new ii(h);return Ri(ae)&&(Ie="leading"in ae?!!ae.leading:Ie,tt="trailing"in ae?!!ae.trailing:tt),Zu(R,H,{leading:Ie,maxWait:H,trailing:tt})}function ld(R){return Gu(R,1)}function fd(R,H){return yo(to(H),R)}function cd(){if(!arguments.length)return[];var R=arguments[0];return pi(R)?R:[R]}function hd(R){return jn(R,P)}function dd(R,H){return H=typeof H=="function"?H:o,jn(R,P,H)}function pd(R){return jn(R,C|P)}function md(R,H){return H=typeof H=="function"?H:o,jn(R,C|P,H)}function gd(R,H){return H==null||qo(R,H,Gi(H))}function Wn(R,H){return R===H||R!==R&&H!==H}var vd=Ts(Us),yd=Ts(function(R,H){return R>=H}),Ra=Vo(function(){return arguments}())?Vo:function(R){return Oi(R)&&ui.call(R,"callee")&&!Io.call(R,"callee")},pi=Ke.isArray,bd=Y?Qi(Y):_f;function xn(R){return R!=null&&Rs(R.length)&&!ca(R)}function Fi(R){return Oi(R)&&xn(R)}function _d(R){return R===!0||R===!1||Oi(R)&&cn(R)==z}var xa=El||Mo,xd=ne?Qi(ne):xf;function wd(R){return Oi(R)&&R.nodeType===1&&!rs(R)}function Sd(R){if(R==null)return!0;if(xn(R)&&(pi(R)||typeof R=="string"||typeof R.splice=="function"||xa(R)||qa(R)||Ra(R)))return!R.length;var H=nn(R);if(H==mt||H==at)return!R.size;if(es(R))return!Vs(R).length;for(var ae in R)if(ui.call(R,ae))return!1;return!0}function Td(R,H){return Xa(R,H)}function Ed(R,H,ae){ae=typeof ae=="function"?ae:o;var Ie=ae?ae(R,H):o;return Ie===o?Xa(R,H,o,ae):!!Ie}function bo(R){if(!Oi(R))return!1;var H=cn(R);return H==me||H==de||typeof R.message=="string"&&typeof R.name=="string"&&!rs(R)}function kd(R){return typeof R=="number"&&Lo(R)}function ca(R){if(!Ri(R))return!1;var H=cn(R);return H==pe||H==qe||H==U||H==Je}function el(R){return typeof R=="number"&&R==mi(R)}function Rs(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=T}function Ri(R){var H=typeof R;return R!=null&&(H=="object"||H=="function")}function Oi(R){return R!=null&&typeof R=="object"}var tl=ke?Qi(ke):Sf;function Ad(R,H){return R===H||Ws(R,H,uo(H))}function Cd(R,H,ae){return ae=typeof ae=="function"?ae:o,Ws(R,H,uo(H),ae)}function Md(R){return rl(R)&&R!=+R}function Pd(R){if(oc(R))throw new It(u);return Go(R)}function Dd(R){return R===null}function Id(R){return R==null}function rl(R){return typeof R=="number"||Oi(R)&&cn(R)==st}function rs(R){if(!Oi(R)||cn(R)!=Tt)return!1;var H=ss(R);if(H===null)return!0;var ae=ui.call(H,"constructor")&&H.constructor;return typeof ae=="function"&&ae instanceof ae&&yn.call(ae)==na}var _o=Le?Qi(Le):Tf;function Rd(R){return el(R)&&R>=-T&&R<=T}var il=He?Qi(He):Ef;function Ls(R){return typeof R=="string"||!pi(R)&&Oi(R)&&cn(R)==bt}function Pn(R){return typeof R=="symbol"||Oi(R)&&cn(R)==jt}var qa=Ve?Qi(Ve):kf;function Ld(R){return R===o}function Bd(R){return Oi(R)&&nn(R)==Qe}function Od(R){return Oi(R)&&cn(R)==Wt}var jd=Ts(Gs),$d=Ts(function(R,H){return R<=H});function nl(R){if(!R)return[];if(xn(R))return Ls(R)?it(R):_n(R);if(Ua&&R[Ua])return An(R[Ua]());var H=nn(R),ae=H==mt?pa:H==at?Un:Na;return ae(R)}function ha(R){if(!R)return R===0?R:0;if(R=qn(R),R===x||R===-x){var H=R<0?-1:1;return H*b}return R===R?R:0}function mi(R){var H=ha(R),ae=H%1;return H===H?ae?H-ae:H:0}function al(R){return R?Ma(mi(R),0,k):0}function qn(R){if(typeof R=="number")return R;if(Pn(R))return d;if(Ri(R)){var H=typeof R.valueOf=="function"?R.valueOf():R;R=Ri(H)?H+"":H}if(typeof R!="string")return R===0?R:+R;R=vn(R);var ae=wr.test(R);return ae||Rr.test(R)?Gn(R.slice(2),ae?2:8):Jt.test(R)?d:+R}function ol(R){return Xn(R,wn(R))}function Fd(R){return R?Ma(mi(R),-T,T):R===0?R:0}function Ci(R){return R==null?"":Mn(R)}var qd=ja(function(R,H){if(es(H)||xn(H)){Xn(H,Gi(H),R);return}for(var ae in H)ui.call(H,ae)&&Ka(R,ae,H[ae])}),ul=ja(function(R,H){Xn(H,wn(H),R)}),Bs=ja(function(R,H,ae,Ie){Xn(H,wn(H),R,Ie)}),Nd=ja(function(R,H,ae,Ie){Xn(H,Gi(H),R,Ie)}),zd=la(qs);function Ud(R,H){var ae=Oa(R);return H==null?ae:Fo(ae,H)}var Hd=bi(function(R,H){R=Zt(R);var ae=-1,Ie=H.length,tt=Ie>2?H[2]:o;for(tt&&hn(H[0],H[1],tt)&&(Ie=1);++ae<Ie;)for(var vt=H[ae],Rt=wn(vt),qt=-1,Xt=Rt.length;++qt<Xt;){var Mr=Rt[qt],Dr=R[Mr];(Dr===o||Wn(Dr,Bi[Mr])&&!ui.call(R,Mr))&&(R[Mr]=vt[Mr])}return R}),Wd=bi(function(R){return R.push(o,Tu),nt(ll,o,R)});function Vd(R,H){return en(R,ni(H,3),Yn)}function Gd(R,H){return en(R,ni(H,3),zs)}function Kd(R,H){return R==null?R:Ns(R,ni(H,3),wn)}function Qd(R,H){return R==null?R:Ho(R,ni(H,3),wn)}function Yd(R,H){return R&&Yn(R,ni(H,3))}function Xd(R,H){return R&&zs(R,ni(H,3))}function Zd(R){return R==null?[]:gs(R,Gi(R))}function Jd(R){return R==null?[]:gs(R,wn(R))}function xo(R,H,ae){var Ie=R==null?o:Pa(R,H);return Ie===o?ae:Ie}function ep(R,H){return R!=null&&Au(R,H,gf)}function wo(R,H){return R!=null&&Au(R,H,vf)}var tp=bu(function(R,H,ae){H!=null&&typeof H.toString!="function"&&(H=Ea.call(H)),R[H]=ae},To(Sn)),rp=bu(function(R,H,ae){H!=null&&typeof H.toString!="function"&&(H=Ea.call(H)),ui.call(R,H)?R[H].push(ae):R[H]=[ae]},ni),ip=bi(Ya);function Gi(R){return xn(R)?jo(R):Vs(R)}function wn(R){return xn(R)?jo(R,!0):Af(R)}function np(R,H){var ae={};return H=ni(H,3),Yn(R,function(Ie,tt,vt){oa(ae,H(Ie,tt,vt),Ie)}),ae}function ap(R,H){var ae={};return H=ni(H,3),Yn(R,function(Ie,tt,vt){oa(ae,tt,H(Ie,tt,vt))}),ae}var sp=ja(function(R,H,ae){vs(R,H,ae)}),ll=ja(function(R,H,ae,Ie){vs(R,H,ae,Ie)}),op=la(function(R,H){var ae={};if(R==null)return ae;var Ie=!1;H=Kr(H,function(vt){return vt=ba(vt,R),Ie||(Ie=vt.length>1),vt}),Xn(R,so(R),ae),Ie&&(ae=jn(ae,C|M|P,Kf));for(var tt=H.length;tt--;)Zs(ae,H[tt]);return ae});function up(R,H){return fl(R,Is(ni(H)))}var lp=la(function(R,H){return R==null?{}:Mf(R,H)});function fl(R,H){if(R==null)return{};var ae=Kr(so(R),function(Ie){return[Ie]});return H=ni(H),eu(R,ae,function(Ie,tt){return H(Ie,tt[0])})}function fp(R,H,ae){H=ba(H,R);var Ie=-1,tt=H.length;for(tt||(tt=1,R=o);++Ie<tt;){var vt=R==null?o:R[Zn(H[Ie])];vt===o&&(Ie=tt,vt=ae),R=ca(vt)?vt.call(R):vt}return R}function cp(R,H,ae){return R==null?R:Za(R,H,ae)}function hp(R,H,ae,Ie){return Ie=typeof Ie=="function"?Ie:o,R==null?R:Za(R,H,ae,Ie)}var cl=wu(Gi),dl=wu(wn);function dp(R,H,ae){var Ie=pi(R),tt=Ie||xa(R)||qa(R);if(H=ni(H,4),ae==null){var vt=R&&R.constructor;tt?ae=Ie?new vt:[]:Ri(R)?ae=ca(vt)?Oa(ss(R)):{}:ae={}}return(tt?At:Yn)(R,function(Rt,qt,Xt){return H(ae,Rt,qt,Xt)}),ae}function pp(R,H){return R==null?!0:Zs(R,H)}function mp(R,H,ae){return R==null?R:au(R,H,to(ae))}function gp(R,H,ae,Ie){return Ie=typeof Ie=="function"?Ie:o,R==null?R:au(R,H,to(ae),Ie)}function Na(R){return R==null?[]:wa(R,Gi(R))}function vp(R){return R==null?[]:wa(R,wn(R))}function yp(R,H,ae){return ae===o&&(ae=H,H=o),ae!==o&&(ae=qn(ae),ae=ae===ae?ae:0),H!==o&&(H=qn(H),H=H===H?H:0),Ma(qn(R),H,ae)}function bp(R,H,ae){return H=ha(H),ae===o?(ae=H,H=0):ae=ha(ae),R=qn(R),yf(R,H,ae)}function _p(R,H,ae){if(ae&&typeof ae!="boolean"&&hn(R,H,ae)&&(H=ae=o),ae===o&&(typeof H=="boolean"?(ae=H,H=o):typeof R=="boolean"&&(ae=R,R=o)),R===o&&H===o?(R=0,H=1):(R=ha(R),H===o?(H=R,R=0):H=ha(H)),R>H){var Ie=R;R=H,H=Ie}if(ae||R%1||H%1){var tt=Bo();return rn(R+tt*(H-R+sn("1e-"+((tt+"").length-1))),H)}return Qs(R,H)}var xp=$a(function(R,H,ae){return H=H.toLowerCase(),R+(ae?pl(H):H)});function pl(R){return So(Ci(R).toLowerCase())}function ml(R){return R=Ci(R),R&&R.replace(dr,ln).replace(Pr,"")}function wp(R,H,ae){R=Ci(R),H=Mn(H);var Ie=R.length;ae=ae===o?Ie:Ma(mi(ae),0,Ie);var tt=ae;return ae-=H.length,ae>=0&&R.slice(ae,tt)==H}function Sp(R){return R=Ci(R),R&&_t.test(R)?R.replace(yt,Ei):R}function Tp(R){return R=Ci(R),R&&Qt.test(R)?R.replace(zt,"\\$&"):R}var Ep=$a(function(R,H,ae){return R+(ae?"-":"")+H.toLowerCase()}),kp=$a(function(R,H,ae){return R+(ae?" ":"")+H.toLowerCase()}),Ap=gu("toLowerCase");function Cp(R,H,ae){R=Ci(R),H=mi(H);var Ie=H?Cn(R):0;if(!H||Ie>=H)return R;var tt=(H-Ie)/2;return Ss(fs(tt),ae)+R+Ss(ls(tt),ae)}function Mp(R,H,ae){R=Ci(R),H=mi(H);var Ie=H?Cn(R):0;return H&&Ie<H?R+Ss(H-Ie,ae):R}function Pp(R,H,ae){R=Ci(R),H=mi(H);var Ie=H?Cn(R):0;return H&&Ie<H?Ss(H-Ie,ae)+R:R}function Dp(R,H,ae){return ae||H==null?H=0:H&&(H=+H),Ml(Ci(R).replace($e,""),H||0)}function Ip(R,H,ae){return(ae?hn(R,H,ae):H===o)?H=1:H=mi(H),Ys(Ci(R),H)}function Rp(){var R=arguments,H=Ci(R[0]);return R.length<3?H:H.replace(R[1],R[2])}var Lp=$a(function(R,H,ae){return R+(ae?"_":"")+H.toLowerCase()});function Bp(R,H,ae){return ae&&typeof ae!="number"&&hn(R,H,ae)&&(H=ae=o),ae=ae===o?k:ae>>>0,ae?(R=Ci(R),R&&(typeof H=="string"||H!=null&&!_o(H))&&(H=Mn(H),!H&&Di(R))?_a(it(R),0,ae):R.split(H,ae)):[]}var Op=$a(function(R,H,ae){return R+(ae?" ":"")+So(H)});function jp(R,H,ae){return R=Ci(R),ae=ae==null?0:Ma(mi(ae),0,R.length),H=Mn(H),R.slice(ae,ae+H.length)==H}function $p(R,H,ae){var Ie=ut.templateSettings;ae&&hn(R,H,ae)&&(H=o),R=Ci(R),H=Bs({},H,Ie,Su);var tt=Bs({},H.imports,Ie.imports,Su),vt=Gi(tt),Rt=wa(tt,vt),qt,Xt,Mr=0,Dr=H.interpolate||Ir,Br="__p += '",Vr=qr((H.escape||Ir).source+"|"+Dr.source+"|"+(Dr===ur?wt:Ir).source+"|"+(H.evaluate||Ir).source+"|$","g"),Zr="//# sourceURL="+(ui.call(H,"sourceURL")?(H.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zi+"]")+`
`;R.replace(Vr,function(si,xi,Ti,Dn,dn,In){return Ti||(Ti=Dn),Br+=R.slice(Mr,In).replace(kr,zn),xi&&(qt=!0,Br+=`' +
__e(`+xi+`) +
'`),dn&&(Xt=!0,Br+=`';
`+dn+`;
__p += '`),Ti&&(Br+=`' +
((__t = (`+Ti+`)) == null ? '' : __t) +
'`),Mr=In+si.length,si}),Br+=`';
`;var ai=ui.call(H,"variable")&&H.variable;if(!ai)Br=`with (obj) {
`+Br+`
}
`;else if(xt.test(ai))throw new It(v);Br=(Xt?Br.replace(Ht,""):Br).replace(Mt,"$1").replace(ge,"$1;"),Br="function("+(ai||"obj")+`) {
`+(ai?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(qt?", __e = _.escape":"")+(Xt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Br+`return __p
}`;var yi=vl(function(){return ir(vt,Zr+"return "+Br).apply(o,Rt)});if(yi.source=Br,bo(yi))throw yi;return yi}function Fp(R){return Ci(R).toLowerCase()}function qp(R){return Ci(R).toUpperCase()}function Np(R,H,ae){if(R=Ci(R),R&&(ae||H===o))return vn(R);if(!R||!(H=Mn(H)))return R;var Ie=it(R),tt=it(H),vt=wi(Ie,tt),Rt=ia(Ie,tt)+1;return _a(Ie,vt,Rt).join("")}function zp(R,H,ae){if(R=Ci(R),R&&(ae||H===o))return R.slice(0,ue(R)+1);if(!R||!(H=Mn(H)))return R;var Ie=it(R),tt=ia(Ie,it(H))+1;return _a(Ie,0,tt).join("")}function Up(R,H,ae){if(R=Ci(R),R&&(ae||H===o))return R.replace($e,"");if(!R||!(H=Mn(H)))return R;var Ie=it(R),tt=wi(Ie,it(H));return _a(Ie,tt).join("")}function Hp(R,H){var ae=ye,Ie=L;if(Ri(H)){var tt="separator"in H?H.separator:tt;ae="length"in H?mi(H.length):ae,Ie="omission"in H?Mn(H.omission):Ie}R=Ci(R);var vt=R.length;if(Di(R)){var Rt=it(R);vt=Rt.length}if(ae>=vt)return R;var qt=ae-Cn(Ie);if(qt<1)return Ie;var Xt=Rt?_a(Rt,0,qt).join(""):R.slice(0,qt);if(tt===o)return Xt+Ie;if(Rt&&(qt+=Xt.length-qt),_o(tt)){if(R.slice(qt).search(tt)){var Mr,Dr=Xt;for(tt.global||(tt=qr(tt.source,Ci(Yt.exec(tt))+"g")),tt.lastIndex=0;Mr=tt.exec(Dr);)var Br=Mr.index;Xt=Xt.slice(0,Br===o?qt:Br)}}else if(R.indexOf(Mn(tt),qt)!=qt){var Vr=Xt.lastIndexOf(tt);Vr>-1&&(Xt=Xt.slice(0,Vr))}return Xt+Ie}function Wp(R){return R=Ci(R),R&&Ne.test(R)?R.replace(Dt,Te):R}var Vp=$a(function(R,H,ae){return R+(ae?" ":"")+H.toUpperCase()}),So=gu("toUpperCase");function gl(R,H,ae){return R=Ci(R),H=ae?o:H,H===o?Sa(R)?Ee(R):di(R):R.match(H)||[]}var vl=bi(function(R,H){try{return nt(R,o,H)}catch(ae){return bo(ae)?ae:new It(ae)}}),Gp=la(function(R,H){return At(H,function(ae){ae=Zn(ae),oa(R,ae,vo(R[ae],R))}),R});function Kp(R){var H=R==null?0:R.length,ae=ni();return R=H?Kr(R,function(Ie){if(typeof Ie[1]!="function")throw new ii(h);return[ae(Ie[0]),Ie[1]]}):[],bi(function(Ie){for(var tt=-1;++tt<H;){var vt=R[tt];if(nt(vt[0],this,Ie))return nt(vt[1],this,Ie)}})}function Qp(R){return df(jn(R,C))}function To(R){return function(){return R}}function Yp(R,H){return R==null||R!==R?H:R}var Xp=yu(),Zp=yu(!0);function Sn(R){return R}function Eo(R){return Ko(typeof R=="function"?R:jn(R,C))}function Jp(R){return Yo(jn(R,C))}function em(R,H){return Xo(R,jn(H,C))}var tm=bi(function(R,H){return function(ae){return Ya(ae,R,H)}}),rm=bi(function(R,H){return function(ae){return Ya(R,ae,H)}});function ko(R,H,ae){var Ie=Gi(H),tt=gs(H,Ie);ae==null&&!(Ri(H)&&(tt.length||!Ie.length))&&(ae=H,H=R,R=this,tt=gs(H,Gi(H)));var vt=!(Ri(ae)&&"chain"in ae)||!!ae.chain,Rt=ca(R);return At(tt,function(qt){var Xt=H[qt];R[qt]=Xt,Rt&&(R.prototype[qt]=function(){var Mr=this.__chain__;if(vt||Mr){var Dr=R(this.__wrapped__),Br=Dr.__actions__=_n(this.__actions__);return Br.push({func:Xt,args:arguments,thisArg:R}),Dr.__chain__=Mr,Dr}return Xt.apply(R,hi([this.value()],arguments))})}),R}function im(){return ki._===this&&(ki._=_l),this}function Ao(){}function nm(R){return R=mi(R),bi(function(H){return Zo(H,R)})}var am=io(Kr),sm=io(or),om=io(Pi);function yl(R){return fo(R)?Ln(Zn(R)):Pf(R)}function um(R){return function(H){return R==null?o:Pa(R,H)}}var lm=_u(),fm=_u(!0);function Co(){return[]}function Mo(){return!1}function cm(){return{}}function hm(){return""}function dm(){return!0}function pm(R,H){if(R=mi(R),R<1||R>T)return[];var ae=k,Ie=rn(R,k);H=ni(H),R-=k;for(var tt=Bn(Ie,H);++ae<R;)H(ae);return tt}function mm(R){return pi(R)?Kr(R,Zn):Pn(R)?[R]:_n(Ou(Ci(R)))}function gm(R){var H=++is;return Ci(R)+H}var ym=ws(function(R,H){return R+H},0),bm=no("ceil"),_m=ws(function(R,H){return R/H},1),xm=no("floor");function wm(R){return R&&R.length?ms(R,Sn,Us):o}function Sm(R,H){return R&&R.length?ms(R,ni(H,2),Us):o}function Tm(R){return tn(R,Sn)}function Em(R,H){return tn(R,ni(H,2))}function km(R){return R&&R.length?ms(R,Sn,Gs):o}function Am(R,H){return R&&R.length?ms(R,ni(H,2),Gs):o}var Cm=ws(function(R,H){return R*H},1),Mm=no("round"),Pm=ws(function(R,H){return R-H},0);function Dm(R){return R&&R.length?$i(R,Sn):0}function Im(R,H){return R&&R.length?$i(R,ni(H,2)):0}return ut.after=Jh,ut.ary=Gu,ut.assign=qd,ut.assignIn=ul,ut.assignInWith=Bs,ut.assignWith=Nd,ut.at=zd,ut.before=Ku,ut.bind=vo,ut.bindAll=Gp,ut.bindKey=Qu,ut.castArray=cd,ut.chain=Hu,ut.chunk=pc,ut.compact=mc,ut.concat=gc,ut.cond=Kp,ut.conforms=Qp,ut.constant=To,ut.countBy=Mh,ut.create=Ud,ut.curry=Yu,ut.curryRight=Xu,ut.debounce=Zu,ut.defaults=Hd,ut.defaultsDeep=Wd,ut.defer=ed,ut.delay=td,ut.difference=vc,ut.differenceBy=yc,ut.differenceWith=bc,ut.drop=_c,ut.dropRight=xc,ut.dropRightWhile=wc,ut.dropWhile=Sc,ut.fill=Tc,ut.filter=Dh,ut.flatMap=Lh,ut.flatMapDeep=Bh,ut.flatMapDepth=Oh,ut.flatten=qu,ut.flattenDeep=Ec,ut.flattenDepth=kc,ut.flip=rd,ut.flow=Xp,ut.flowRight=Zp,ut.fromPairs=Ac,ut.functions=Zd,ut.functionsIn=Jd,ut.groupBy=jh,ut.initial=Mc,ut.intersection=Pc,ut.intersectionBy=Dc,ut.intersectionWith=Ic,ut.invert=tp,ut.invertBy=rp,ut.invokeMap=Fh,ut.iteratee=Eo,ut.keyBy=qh,ut.keys=Gi,ut.keysIn=wn,ut.map=Ms,ut.mapKeys=np,ut.mapValues=ap,ut.matches=Jp,ut.matchesProperty=em,ut.memoize=Ds,ut.merge=sp,ut.mergeWith=ll,ut.method=tm,ut.methodOf=rm,ut.mixin=ko,ut.negate=Is,ut.nthArg=nm,ut.omit=op,ut.omitBy=up,ut.once=id,ut.orderBy=Nh,ut.over=am,ut.overArgs=nd,ut.overEvery=sm,ut.overSome=om,ut.partial=yo,ut.partialRight=Ju,ut.partition=zh,ut.pick=lp,ut.pickBy=fl,ut.property=yl,ut.propertyOf=um,ut.pull=Oc,ut.pullAll=zu,ut.pullAllBy=jc,ut.pullAllWith=$c,ut.pullAt=Fc,ut.range=lm,ut.rangeRight=fm,ut.rearg=ad,ut.reject=Wh,ut.remove=qc,ut.rest=sd,ut.reverse=mo,ut.sampleSize=Gh,ut.set=cp,ut.setWith=hp,ut.shuffle=Qh,ut.slice=Nc,ut.sortBy=Zh,ut.sortedUniq=Kc,ut.sortedUniqBy=Qc,ut.split=Bp,ut.spread=od,ut.tail=Yc,ut.take=Xc,ut.takeRight=Zc,ut.takeRightWhile=Jc,ut.takeWhile=eh,ut.tap=bh,ut.throttle=ud,ut.thru=Cs,ut.toArray=nl,ut.toPairs=cl,ut.toPairsIn=dl,ut.toPath=mm,ut.toPlainObject=ol,ut.transform=dp,ut.unary=ld,ut.union=th,ut.unionBy=ih,ut.unionWith=nh,ut.uniq=ah,ut.uniqBy=oh,ut.uniqWith=uh,ut.unset=pp,ut.unzip=go,ut.unzipWith=Uu,ut.update=mp,ut.updateWith=gp,ut.values=Na,ut.valuesIn=vp,ut.without=lh,ut.words=gl,ut.wrap=fd,ut.xor=fh,ut.xorBy=hh,ut.xorWith=ph,ut.zip=mh,ut.zipObject=gh,ut.zipObjectDeep=vh,ut.zipWith=yh,ut.entries=cl,ut.entriesIn=dl,ut.extend=ul,ut.extendWith=Bs,ko(ut,ut),ut.add=ym,ut.attempt=vl,ut.camelCase=xp,ut.capitalize=pl,ut.ceil=bm,ut.clamp=yp,ut.clone=hd,ut.cloneDeep=pd,ut.cloneDeepWith=md,ut.cloneWith=dd,ut.conformsTo=gd,ut.deburr=ml,ut.defaultTo=Yp,ut.divide=_m,ut.endsWith=wp,ut.eq=Wn,ut.escape=Sp,ut.escapeRegExp=Tp,ut.every=Ph,ut.find=Ih,ut.findIndex=$u,ut.findKey=Vd,ut.findLast=Rh,ut.findLastIndex=Fu,ut.findLastKey=Gd,ut.floor=xm,ut.forEach=Wu,ut.forEachRight=Vu,ut.forIn=Kd,ut.forInRight=Qd,ut.forOwn=Yd,ut.forOwnRight=Xd,ut.get=xo,ut.gt=vd,ut.gte=yd,ut.has=ep,ut.hasIn=wo,ut.head=Nu,ut.identity=Sn,ut.includes=$h,ut.indexOf=Cc,ut.inRange=bp,ut.invoke=ip,ut.isArguments=Ra,ut.isArray=pi,ut.isArrayBuffer=bd,ut.isArrayLike=xn,ut.isArrayLikeObject=Fi,ut.isBoolean=_d,ut.isBuffer=xa,ut.isDate=xd,ut.isElement=wd,ut.isEmpty=Sd,ut.isEqual=Td,ut.isEqualWith=Ed,ut.isError=bo,ut.isFinite=kd,ut.isFunction=ca,ut.isInteger=el,ut.isLength=Rs,ut.isMap=tl,ut.isMatch=Ad,ut.isMatchWith=Cd,ut.isNaN=Md,ut.isNative=Pd,ut.isNil=Id,ut.isNull=Dd,ut.isNumber=rl,ut.isObject=Ri,ut.isObjectLike=Oi,ut.isPlainObject=rs,ut.isRegExp=_o,ut.isSafeInteger=Rd,ut.isSet=il,ut.isString=Ls,ut.isSymbol=Pn,ut.isTypedArray=qa,ut.isUndefined=Ld,ut.isWeakMap=Bd,ut.isWeakSet=Od,ut.join=Rc,ut.kebabCase=Ep,ut.last=Fn,ut.lastIndexOf=Lc,ut.lowerCase=kp,ut.lowerFirst=Ap,ut.lt=jd,ut.lte=$d,ut.max=wm,ut.maxBy=Sm,ut.mean=Tm,ut.meanBy=Em,ut.min=km,ut.minBy=Am,ut.stubArray=Co,ut.stubFalse=Mo,ut.stubObject=cm,ut.stubString=hm,ut.stubTrue=dm,ut.multiply=Cm,ut.nth=Bc,ut.noConflict=im,ut.noop=Ao,ut.now=Ps,ut.pad=Cp,ut.padEnd=Mp,ut.padStart=Pp,ut.parseInt=Dp,ut.random=_p,ut.reduce=Uh,ut.reduceRight=Hh,ut.repeat=Ip,ut.replace=Rp,ut.result=fp,ut.round=Mm,ut.runInContext=Oe,ut.sample=Vh,ut.size=Yh,ut.snakeCase=Lp,ut.some=Xh,ut.sortedIndex=zc,ut.sortedIndexBy=Uc,ut.sortedIndexOf=Hc,ut.sortedLastIndex=Wc,ut.sortedLastIndexBy=Vc,ut.sortedLastIndexOf=Gc,ut.startCase=Op,ut.startsWith=jp,ut.subtract=Pm,ut.sum=Dm,ut.sumBy=Im,ut.template=$p,ut.times=pm,ut.toFinite=ha,ut.toInteger=mi,ut.toLength=al,ut.toLower=Fp,ut.toNumber=qn,ut.toSafeInteger=Fd,ut.toString=Ci,ut.toUpper=qp,ut.trim=Np,ut.trimEnd=zp,ut.trimStart=Up,ut.truncate=Hp,ut.unescape=Wp,ut.uniqueId=gm,ut.upperCase=Vp,ut.upperFirst=So,ut.each=Wu,ut.eachRight=Vu,ut.first=Nu,ko(ut,function(){var R={};return Yn(ut,function(H,ae){ui.call(ut.prototype,ae)||(R[ae]=H)}),R}(),{chain:!1}),ut.VERSION=l,At(["bind","bindKey","curry","curryRight","partial","partialRight"],function(R){ut[R].placeholder=ut}),At(["drop","take"],function(R,H){Si.prototype[R]=function(ae){ae=ae===o?1:zi(mi(ae),0);var Ie=this.__filtered__&&!H?new Si(this):this.clone();return Ie.__filtered__?Ie.__takeCount__=rn(ae,Ie.__takeCount__):Ie.__views__.push({size:rn(ae,k),type:R+(Ie.__dir__<0?"Right":"")}),Ie},Si.prototype[R+"Right"]=function(ae){return this.reverse()[R](ae).reverse()}}),At(["filter","map","takeWhile"],function(R,H){var ae=H+1,Ie=ae==S||ae==m;Si.prototype[R]=function(tt){var vt=this.clone();return vt.__iteratees__.push({iteratee:ni(tt,3),type:ae}),vt.__filtered__=vt.__filtered__||Ie,vt}}),At(["head","last"],function(R,H){var ae="take"+(H?"Right":"");Si.prototype[R]=function(){return this[ae](1).value()[0]}}),At(["initial","tail"],function(R,H){var ae="drop"+(H?"":"Right");Si.prototype[R]=function(){return this.__filtered__?new Si(this):this[ae](1)}}),Si.prototype.compact=function(){return this.filter(Sn)},Si.prototype.find=function(R){return this.filter(R).head()},Si.prototype.findLast=function(R){return this.reverse().find(R)},Si.prototype.invokeMap=bi(function(R,H){return typeof R=="function"?new Si(this):this.map(function(ae){return Ya(ae,R,H)})}),Si.prototype.reject=function(R){return this.filter(Is(ni(R)))},Si.prototype.slice=function(R,H){R=mi(R);var ae=this;return ae.__filtered__&&(R>0||H<0)?new Si(ae):(R<0?ae=ae.takeRight(-R):R&&(ae=ae.drop(R)),H!==o&&(H=mi(H),ae=H<0?ae.dropRight(-H):ae.take(H-R)),ae)},Si.prototype.takeRightWhile=function(R){return this.reverse().takeWhile(R).reverse()},Si.prototype.toArray=function(){return this.take(k)},Yn(Si.prototype,function(R,H){var ae=/^(?:filter|find|map|reject)|While$/.test(H),Ie=/^(?:head|last)$/.test(H),tt=ut[Ie?"take"+(H=="last"?"Right":""):H],vt=Ie||/^find/.test(H);tt&&(ut.prototype[H]=function(){var Rt=this.__wrapped__,qt=Ie?[1]:arguments,Xt=Rt instanceof Si,Mr=qt[0],Dr=Xt||pi(Rt),Br=function(xi){var Ti=tt.apply(ut,hi([xi],qt));return Ie&&Vr?Ti[0]:Ti};Dr&&ae&&typeof Mr=="function"&&Mr.length!=1&&(Xt=Dr=!1);var Vr=this.__chain__,Zr=!!this.__actions__.length,ai=vt&&!Vr,yi=Xt&&!Zr;if(!vt&&Dr){Rt=yi?Rt:new Si(this);var si=R.apply(Rt,qt);return si.__actions__.push({func:Cs,args:[Br],thisArg:o}),new On(si,Vr)}return ai&&yi?R.apply(this,qt):(si=this.thru(Br),ai?Ie?si.value()[0]:si.value():si)})}),At(["pop","push","shift","sort","splice","unshift"],function(R){var H=Mi[R],ae=/^(?:push|sort|unshift)$/.test(R)?"tap":"thru",Ie=/^(?:pop|shift)$/.test(R);ut.prototype[R]=function(){var tt=arguments;if(Ie&&!this.__chain__){var vt=this.value();return H.apply(pi(vt)?vt:[],tt)}return this[ae](function(Rt){return H.apply(pi(Rt)?Rt:[],tt)})}}),Yn(Si.prototype,function(R,H){var ae=ut[H];if(ae){var Ie=ae.name+"";ui.call(Ba,Ie)||(Ba[Ie]=[]),Ba[Ie].push({name:H,func:ae})}}),Ba[xs(o,F).name]=[{name:"wrapper",func:o}],Si.prototype.clone=Ol,Si.prototype.reverse=jl,Si.prototype.value=$l,ut.prototype.at=_h,ut.prototype.chain=xh,ut.prototype.commit=wh,ut.prototype.next=Sh,ut.prototype.plant=Eh,ut.prototype.reverse=kh,ut.prototype.toJSON=ut.prototype.valueOf=ut.prototype.value=Ah,ut.prototype.first=ut.prototype.head,Ua&&(ut.prototype[Ua]=Th),ut},Ue=Ce();Ji?((Ji.exports=Ue)._=Ue,Ki._=Ue):ki._=Ue}).call(commonjsGlobal$1)}(lodash,lodash.exports);var lodashExports=lodash.exports;const _$1=getDefaultExportFromCjs$1(lodashExports);window.$=jqueryExports.$,window.jQuery=jqueryExports.jQuery,global$1.$=jqueryExports.$,global$1.jQuery=jqueryExports.jQuery;const __APP_VERSION__="",APP_VERSION=__APP_VERSION__,IriSP$1={VERSION:APP_VERSION,jQuery:jqueryExports.jQuery,libFiles:{locations:{}}};window.IriSP=IriSP$1;const Model=function(n){function e(y,S,c){c=c||10;for(var m=S.toString(c);m.length<y;)m="0"+m;return m}function o(y){return e(y,Math.floor(Math.random()*Math.pow(16,y)),16)}var l=o(8)+"-"+o(4)+"-",t=Math.floor(Math.random()*65536),u=["[aáàâä]","[cç]","[eéèêë]","[iíìîï]","[oóòôö]","[uùûü]"],h=["̀","́","̂","̃","̧","｛","｝","（","）","［","］","【","】","、","・","‥","。","「","」","『","』","〜","：","！","？","　",","," ",";","(",")",".","*","+","\\","?","|","{","}","[","]","^","#","/"],v={},w=v._SOURCE_STATUS_EMPTY=0,A=v._SOURCE_STATUS_WAITING=1,E=v._SOURCE_STATUS_READY=2,C=v.extendPrototype=function(y,S){var c=S.prototype,m=y.prototype;for(var x in c)c.hasOwnProperty(x)&&(m[x]=c[x])},M=v.getUID=function(){return l+e(4,++t%65536,16)+"-"+o(4)+"-"+o(6)+o(6)};v.isLocalURL=function(y){var S=y.match(/^(\w+:)\/\/([^/]+)/);return S?S[1]===document.location.protocol&&S[2]===document.location.host:!0};var P=v.regexpFromTextOrArray=function(y,m,x){var m=m||!1,x=x||!1;function T(k){return k.replace(/([\\\*\+\?\|\{\[\}\]\(\)\^\$\.\#\/])/gm,"\\$1")}var b=typeof y=="string"?T(y):_$1(y).map(T).join("|"),d="im";return m||(b="("+b+")",d+="g"),x&&(b="^"+b+"$"),new RegExp(b,d)},I=v.fullTextRegexps=function(y){for(var S="[\\"+h.join("\\")+"]",c=new RegExp(S,"gm"),m=y.toLowerCase().replace(c,""),x=_$1(u).map(function(k){return new RegExp(k)}),T="",b=0;b<m.length;b++){b&&(T+=S+"*");var d=m[b];_$1(u).each(function(k,D){d=d.replace(x[D],k)}),T+=d}return"("+T+")"};v.isoToDate=function(y){var S="([0-9]{4})(-([0-9]{2})(-([0-9]{2})(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?",c=y.match(new RegExp(S)),m=0,x=new Date(c[1],0,1);c[3]&&x.setMonth(c[3]-1),c[5]&&x.setDate(c[5]),c[7]&&x.setHours(c[7]),c[8]&&x.setMinutes(c[8]),c[10]&&x.setSeconds(c[10]),c[12]&&x.setMilliseconds(+("0."+c[12])*1e3),c[14]&&(m=Number(c[16])*60+Number(c[17]),m*=c[15]=="-"?1:-1),m-=x.getTimezoneOffset();const T=Number(x)+m*60*1e3;var b=new Date;return b.setTime(Number(T)),b},v.dateToIso=function(y){var S=y?new Date(y):new Date;return S.getUTCFullYear()+"-"+e(2,S.getUTCMonth()+1)+"-"+e(2,S.getUTCDate())+"T"+e(2,S.getUTCHours())+":"+e(2,S.getUTCMinutes())+":"+e(2,S.getUTCSeconds())+"Z"};var j=v.List=function(y){if(Array.call(this),this.directory=y,this.idIndex=[],this.__events={},typeof y>"u")throw console.trace(),"Error : new List(directory): directory is undefined";var S=this;this.on("clear-search",function(){S.searching=!1,S.regexp=void 0,S.forEach(function(c){c.found=void 0}),S.trigger("search-cleared")})};j.prototype=new Array,j.prototype.hasId=function(y){return _$1(this.idIndex).includes(y)},typeof Array.prototype.forEach>"u"&&(j.prototype.forEach=function(y){var S=this;_$1(this).forEach(function(c,m){y(c,m,S)})}),typeof Array.prototype.map>"u"&&(j.prototype.map=function(y){var S=this;return _$1(this).map(function(c,m){return y(c,m,S)})}),j.prototype.pluck=function(y){return this.map(function(S){return S[y]})},j.prototype.filter=function(y){var S=this,c=new j(this.directory);return c.addElements(_$1(this).filter(function(m,x){return y(m,x,S)})),c},j.prototype.slice=function(y,S){var c=new j(this.directory);return c.addElements(Array.prototype.slice.call(this,y,S)),c},j.prototype.splice=function(y,S){var c=new j(this.directory);return c.addElements(Array.prototype.splice.call(this,y,S)),this.idIndex.splice(y,S),c},j.prototype.sortBy=function(y){var S=this,c=new j(this.directory);return c.addElements(_$1(this).sortBy(function(m,x){return y(m,x,S)})),c},j.prototype.searchByTitle=function(y,c){var c=c||!1,m=P(y,!0,c);return this.filter(function(x){return m.test(x.title)})},j.prototype.searchByDescription=function(y,c){var c=c||!1,m=P(y,!0,c);return this.filter(function(x){return m.test(x.description)})},j.prototype.searchByTextFields=function(y,c){var c=c||!1,m=P(y,!0,c);return this.filter(function(x){var T=(x.keywords||x.getTagTexts()||[]).join(", ");return m.test(x.description)||m.test(x.title)||m.test(T)})},j.prototype.search=function(y){if(!y)return this.trigger("clear-search"),this;this.searching=!0,this.trigger("search",y);var S=I(y),c=new RegExp(S,"im");this.regexp=new RegExp(S,"gim");var m=this.filter(function(x,T){var b=c.test(x.title),d=c.test(x.description),k=!!(b||d);return x.found=k,x.trigger(k?"found":"not-found"),k});return this.trigger(m.length?"found":"not-found",m),m},j.prototype.searchByTags=function(y){if(!y)return this.trigger("clear-search"),this;this.searching=!0,this.trigger("search",y);var S=I(y),c=new RegExp(S,"im");this.regexp=new RegExp(S,"gim");var m=this.filter(function(x,T){var b=c.test(x.getTagTexts());return x.found=b,x.trigger(b?"found":"not-found"),b});return this.trigger(m.length?"found":"not-found",m),m},j.prototype.getTitles=function(){return this.map(function(y){return y.title})},j.prototype.addId=function(y){var S=this.directory.getElement(y);!this.hasId(y)&&typeof S<"u"&&(this.idIndex.push(y),Array.prototype.push.call(this,S))},j.prototype.push=function(y){if(!(typeof y>"u")){var S=_$1(this.idIndex).indexOf(y.id);S===-1?(this.idIndex.push(y.id),Array.prototype.push.call(this,y)):this[S]=y}},j.prototype.addIds=function(y){y.length;var S=this;_$1(y).forEach(function(c){S.addId(c)})},j.prototype.addElements=function(y){var S=this;_$1(y).forEach(function(c){S.push(c)})},j.prototype.removeId=function(y,c){var c=c||!1,m=_$1(this.idIndex).indexOf(y);m!==-1&&this.splice(m,1),c&&delete this.directory.elements[y]},j.prototype.removeElement=function(y,S){this.removeId(y.id)},j.prototype.removeIds=function(y,S){var c=this;_$1(y).forEach(function(m){c.removeId(m)})},j.prototype.removeElements=function(y,S){var c=this;_$1(y).forEach(function(m){c.removeElement(m)})},j.prototype.on=function(y,S){typeof this.__events[y]>"u"&&(this.__events[y]=[]),this.__events[y].push(S)},j.prototype.off=function(y,S){typeof this.__events[y]<"u"&&(this.__events[y]=n._(this.__events[y]).reject(function(c){return c===S}))},j.prototype.trigger=function(y,S){var c=this;_$1(this.__events[y]).each(function(m){m.call(c,S)})};var B=v.Time=function(y){this.milliseconds=0,this.setMilliseconds(y)};B.prototype.setMilliseconds=function(y){var S=this.milliseconds;switch(typeof y){case"string":this.milliseconds=parseInt(y);break;case"number":this.milliseconds=Math.floor(y);break;case"object":this.milliseconds=parseInt(y.valueOf());break;default:this.milliseconds=0}this.milliseconds===NaN&&(this.milliseconds=S)},B.prototype.setSeconds=function(y){this.milliseconds=1e3*y},B.prototype.getSeconds=function(){return this.milliseconds/1e3},B.prototype.getHMS=function(){var y=Math.abs(Math.floor(this.getSeconds()));return{hours:Math.floor(y/3600),minutes:Math.floor(y/60)%60,seconds:y%60,milliseconds:this.milliseconds%1e3}},B.prototype.add=function(y){this.milliseconds+=new B(y).milliseconds},B.prototype.valueOf=function(){return this.milliseconds},B.prototype.toString=function(y){var S=this.getHMS(),c="";return S.hours&&(c+=S.hours+":"),c+=e(2,S.minutes)+":"+e(2,S.seconds),y&&(c+="."+Math.floor(S.milliseconds/100)),c};var F=v.Reference=function(y,S){this.source=y,this.id=S,typeof S=="object"?this.isList=!0:this.isList=!1,this.refresh()};F.prototype.refresh=function(){this.isList?(this.contents=new j(this.source.directory),this.contents.addIds(this.id)):this.contents=this.source.getElement(this.id)},F.prototype.getContents=function(){return(typeof this.contents>"u"||this.isList&&this.contents.length!=this.id.length)&&this.refresh(),this.contents},F.prototype.isOrHasId=function(y){return this.isList?_$1(this.id).indexOf(y)!==-1:this.id==y};var N=v.Element=function(y,S){this.elementType="element",this.title="",this.description="",this.__events={},!(typeof S>"u")&&((typeof y>"u"||!y)&&(y=M()),this.id=y,this.source=S,S!==this&&this.source.directory.addElement(this))};N.prototype.toString=function(){return this.elementType+(this.elementType!=="element"?", id="+this.id+', title="'+this.title+'"':"")},N.prototype.setReference=function(y,S){this[y]=new F(this.source,S)},N.prototype.getReference=function(y){if(typeof this[y]<"u")return this[y].getContents()},N.prototype.getRelated=function(y,S){S=typeof S<"u"&&S;var c=this;return this.source.getList(y,S).filter(function(m){var x=m[c.elementType];return x&&x.isOrHasId(c.id)})},N.prototype.on=function(y,S){typeof this.__events[y]>"u"&&(this.__events[y]=[]),this.__events[y].push(S)},N.prototype.off=function(y,S){typeof this.__events[y]<"u"&&(this.__events[y]=_$1(this.__events[y]).reject(function(c){return c===S}))},N.prototype.trigger=function(y,S){var c=this;_$1(this.__events[y]).each(function(m){m.call(c,S)})};var ee=v.Playable=function(y,S){if(N.call(this,y,S),!(typeof S>"u")){this.elementType="playable",this.currentTime=new B,this.volume=.5,this.paused=!0,this.muted=!1,this.timeRange=!1,this.loadedMetadata=!1;var c=this;this.on("play",function(){c.paused=!1}),this.on("pause",function(){c.paused=!0}),this.on("timeupdate",function(m){c.currentTime=m,c.getAnnotations().filter(function(x){return(x.end<=m||x.begin>m)&&x.playing}).forEach(function(x){x.playing=!1,x.trigger("leave"),c.trigger("leave-annotation",x)}),c.getAnnotations().filter(function(x){return x.begin<=m&&x.end>m&&!x.playing}).forEach(function(x){x.playing=!0,x.trigger("enter"),c.trigger("enter-annotation",x)}),c.getTimeRange()&&(c.getTimeRange()[0]>m&&(c.pause(),c.setCurrentTime(c.getTimeRange()[0])),c.getTimeRange()[1]<m&&(c.pause(),c.setCurrentTime(c.getTimeRange()[1])))}),this.on("loadedmetadata",function(){c.loadedMetadata=!0})}};C(ee,N),ee.prototype.getCurrentTime=function(){return this.currentTime},ee.prototype.getVolume=function(){return this.volume},ee.prototype.getPaused=function(){return this.paused},ee.prototype.getMuted=function(){return this.muted},ee.prototype.getTimeRange=function(){return this.timeRange},ee.prototype.setCurrentTime=function(y){this.trigger("setcurrenttime",y)},ee.prototype.setVolume=function(y){this.trigger("setvolume",y)},ee.prototype.setMuted=function(y){this.trigger("setmuted",y)},ee.prototype.setTimeRange=function(y,S){if(y<S&&y>=0&&S>0)return this.trigger("settimerange",[y,S])},ee.prototype.resetTimeRange=function(){return this.trigger("resettimerange")},ee.prototype.play=function(){this.trigger("setplay")},ee.prototype.pause=function(){this.trigger("setpause")},ee.prototype.show=function(){},ee.prototype.hide=function(){};var Z=v.Media=function(y,S){ee.call(this,y,S),this.elementType="media",this.duration=new B,this.video=""};C(Z,ee);var Z=v.Media=function(y,S){ee.call(this,y,S),this.elementType="media",this.duration=new B,this.video=""};C(Z,ee),Z.prototype.setDuration=function(y){this.duration.setMilliseconds(y)},Z.prototype.getAnnotations=function(){return this.getRelated("annotation")},Z.prototype.getAnnotationsByTypeTitle=function(y){var S=this.source.getAnnotationTypes().searchByTitle(y).pluck("id");return S.length?this.getAnnotations().filter(function(c){return _$1(S).indexOf(c.getAnnotationType().id)!==-1}):new j(this.source.directory)};var re=v.Tag=function(y,S){N.call(this,y,S),this.elementType="tag"};C(re,N),re.prototype.getAnnotations=function(){return this.getRelated("annotation")};var fe=v.AnnotationType=function(y,S){N.call(this,y,S),this.elementType="annotationType"};C(fe,N),fe.prototype.getAnnotations=function(){return this.getRelated("annotation")};var V=v.Annotation=function(y,S){N.call(this,y,S),this.elementType="annotation",this.begin=new B,this.end=new B,this.tag=new F(S,[]),this.playing=!1;var c=this;this.on("click",function(){c.getMedia().setCurrentTime(c.begin)})};C(V,N),V.prototype.setBeginEnd=function(y,S){y=Math.max(0,y),S=Math.max(0,S),S<y&&(S=y),this.begin.setMilliseconds(y),this.end.setMilliseconds(S),this.trigger("change-begin"),this.trigger("change-end")},V.prototype.setBegin=function(y){this.begin.setMilliseconds(Math.max(0,y)),this.trigger("change-begin"),this.end<this.begin&&this.setEnd(this.begin)},V.prototype.setEnd=function(y){this.end.setMilliseconds(Math.min(y,this.getMedia().duration.milliseconds)),this.trigger("change-end"),this.end<this.begin&&this.setBegin(this.end)},V.prototype.setDuration=function(y){this.setEnd(y+this.begin.milliseconds)},V.prototype.setMedia=function(y){this.setReference("media",y)},V.prototype.getMedia=function(){return this.getReference("media")},V.prototype.setAnnotationType=function(y){this.setReference("annotationType",y)},V.prototype.getAnnotationType=function(){return this.getReference("annotationType")},V.prototype.setTags=function(y){this.setReference("tag",y)},V.prototype.getTags=function(){return this.getReference("tag")},V.prototype.getTagTexts=function(){return this.getTags().getTitles()},V.prototype.getDuration=function(){return new B(this.end.milliseconds-this.begin.milliseconds)};var le=v.MashedAnnotation=function(y,S){N.call(this,y.id+"_"+S.id,S.source),this.elementType="mashedAnnotation",this.annotation=S,this.begin=new B,this.end=new B,this.duration=new B,this.title=this.annotation.title,this.description=this.annotation.description,this.color=this.annotation.color;var c=this;this.on("click",function(){y.setCurrentTime(c.begin)}),this.on("enter",function(){c.annotation.trigger("enter")}),this.on("leave",function(){c.annotation.trigger("leave")})};C(le,N),le.prototype.getMedia=function(){return this.annotation.getReference("media")},le.prototype.getAnnotationType=function(){return this.annotation.getReference("annotationType")},le.prototype.getTags=function(){return this.annotation.getReference("tag")},le.prototype.getTagTexts=function(){return this.annotation.getTags().getTitles()},le.prototype.getDuration=function(){return this.annotation.getDuration()},le.prototype.setBegin=function(y){this.begin.setMilliseconds(y),this.duration.setMilliseconds(this.annotation.getDuration()),this.end.setMilliseconds(y+this.duration)};var he=v.Mashup=function(y,S){ee.call(this,y,S),this.elementType="mashup",this.duration=new B,this.segments=new j(S.directory),this.loaded=!1;var c=this;this._updateTimes=function(){c.updateTimes(),c.trigger("change")},this.on("add",this._updateTimes),this.on("remove",this._updateTimes)};C(he,ee),he.prototype.updateTimes=function(){var y=0;this.segments.forEach(function(S){S.setBegin(y),y=S.end}),this.duration.setMilliseconds(y)},he.prototype.addAnnotation=function(y,m){var c=new le(this,y),m=m||!1;this.segments.push(c),y.on("change-begin",this._updateTimes),y.on("change-end",this._updateTimes),m||this.trigger("add")},he.prototype.addAnnotationById=function(y,m){var c=this.source.getElement(y),m=m||!1;typeof c<"u"&&this.addAnnotation(c,m)},he.prototype.addAnnotations=function(y){var S=this;_$1(y).forEach(function(c){S.addAnnotation(c,!0)}),this.trigger("add")},he.prototype.addAnnotationsById=function(y){var S=this;_$1(y).forEach(function(c){S.addAnnotationById(c,!0)}),this.trigger("add")},he.prototype.removeAnnotation=function(y,c){var c=c||!1;y.off("change-begin",this._updateTimes),y.off("change-end",this._updateTimes),this.segments.removeId(this.id+"_"+y.id),c||this.trigger("remove")},he.prototype.removeAnnotationById=function(y,c){var c=c||!1,m=this.source.getElement(y);m&&this.removeAnnotation(m,c),c||this.trigger("remove")},he.prototype.setAnnotations=function(y){for(;this.segments.length;)this.removeAnnotation(this.segments[0].annotation,!0);this.addAnnotations(y)},he.prototype.setAnnotationsById=function(y){for(;this.segments.length;)this.removeAnnotation(this.segments[0].annotation,!0);this.addAnnotationsById(y)},he.prototype.hasAnnotation=function(y){return!!_$1(this.segments).find(function(S){return S.annotation===y})},he.prototype.getAnnotation=function(y){return _$1(this.segments).find(function(S){return S.annotation===y})},he.prototype.getAnnotationById=function(y){return _$1(this.segments).find(function(S){return S.annotation.id===y})},he.prototype.getAnnotations=function(){return this.segments},he.prototype.getOriginalAnnotations=function(){var y=new j(this.source.directory);return this.segments.forEach(function(S){y.push(S.annotation)}),y},he.prototype.getMedias=function(){var y=new j(this.source.directory);return this.segments.forEach(function(S){y.push(S.getMedia())}),y},he.prototype.getAnnotationsByTypeTitle=function(y){var S=this.source.getAnnotationTypes().searchByTitle(y).pluck("id");return S.length?this.getAnnotations().filter(function(c){return _$1(S).indexOf(c.getAnnotationType().id)!==-1}):new j(this.source.directory)},he.prototype.getAnnotationAtTime=function(y){var S=this.segments.filter(function(c){return c.begin<=y&&c.end>y});if(S.length)return S[0]},he.prototype.getMediaAtTime=function(y){var S=this.getAnnotationAtTime(y);if(typeof S<"u")return S.getMedia()};var ye=v.Source=function(y){if(N.call(this,!1,this),this.status=w,this.elementType="source",typeof y<"u"){var S=this;_$1(y).forEach(function(c,m){S[m]=c}),this.callbackQueue=[],this.contents={},this.get()}};C(ye,N),ye.prototype.addList=function(y,S){typeof this.contents[y]>"u"&&(this.contents[y]=new j(this.directory)),this.contents[y].addElements(S)},ye.prototype.getList=function(y,S){return S=typeof S<"u"&&S,S?this.directory.getGlobalList().filter(function(c){return c.elementType===y}):(typeof this.contents[y]>"u"&&(this.contents[y]=new j(this.directory)),this.contents[y])},ye.prototype.forEach=function(y){var S=this;_$1(this.contents).forEach(function(c,m){y.call(S,c,m)})},ye.prototype.getElement=function(y){return this.directory.getElement(y)},ye.prototype.get=function(){this.status=A,this.handleCallbacks()},ye.prototype.deferCallback=function(y){var S=this;_$1.defer(function(){y.call(S)})},ye.prototype.handleCallbacks=function(){for(this.status=E;this.callbackQueue.length;)this.deferCallback(this.callbackQueue.splice(0,1)[0])},ye.prototype.onLoad=function(y){this.status===E?this.deferCallback(y):this.callbackQueue.push(y)},ye.prototype.serialize=function(){return this.serializer.serialize(this)},ye.prototype.deSerialize=function(y){this.serializer.deSerialize(y,this)},ye.prototype.getAnnotations=function(y){return y=typeof y<"u"&&y,this.getList("annotation",y)},ye.prototype.getMedias=function(y){return y=typeof y<"u"&&y,this.getList("media",y)},ye.prototype.getTags=function(y){return y=typeof y<"u"&&y,this.getList("tag",y)},ye.prototype.getMashups=function(y){return y=typeof y<"u"&&y,this.getList("mashup",y)},ye.prototype.getAnnotationTypes=function(y){return y=typeof y<"u"&&y,this.getList("annotationType",y)},ye.prototype.getAnnotationsByTypeTitle=function(y,S){S=typeof S<"u"&&S;var c=new j(this.directory),m=this.getAnnotationTypes(S).searchByTitle(y);return m.forEach(function(x){c.addElements(x.getAnnotations(S))}),c},ye.prototype.getDuration=function(){var y=this.currentMedia;if(typeof y<"u")return this.currentMedia.duration},ye.prototype.getCurrentMedia=function(y){if(typeof this.currentMedia>"u")if(y.is_mashup){var S=this.getMashups();S.length&&(this.currentMedia=S[0])}else{var c=this.getMedias();c.length&&(this.currentMedia=c[0])}return this.currentMedia},ye.prototype.merge=function(y){var S=this;y.forEach(function(c,m){S.getList(m).addElements(c)})};var L=v.RemoteSource=function(y){ye.call(this,y)};C(L,ye),L.prototype.get=function(){this.status=A;var y=this,S=this.url_params||{},c=this.dataType||"json";S.format=c,jQuery.ajax({url:this.url,dataType:c,data:S,traditional:!0,success:function(m){y.deSerialize(m),y.handleCallbacks()}})};var p=v.Directory=function(){this.remoteSources={},this.elements={}};return p.prototype.remoteSource=function(y){if(typeof y!="object"||typeof y.url>"u")throw"Error : Directory.remoteSource(configuration): configuration.url is undefined";var S=_$1({directory:this}).extend(y);S.url_params=S.url_params||{};var c=S.url+"?"+jQuery.param(S.url_params);return typeof this.remoteSources[c]>"u"&&(this.remoteSources[c]=new L(S)),this.remoteSources[c]},p.prototype.newLocalSource=function(y){var S=_$1({directory:this}).extend(y),c=new ye(S);return c},p.prototype.getElement=function(y){return this.elements[y]},p.prototype.addElement=function(y){this.elements[y.id]=y},p.prototype.getGlobalList=function(){var y=new j(this);return y.addIds(_$1(this.elements).keys()),y},v},htmlPlayer=function(n,e,o){var l=o||{},t=l.video||n.video;typeof l.url_transform=="function"&&(t=l.url_transform(t));var u=jQuery("<video>");if(u.attr({width:l.width||void 0,height:l.height||void 0,controls:l.controls||void 0,autoplay:l.autostart||l.autoplay||void 0}),typeof t=="string")u.attr("src",t);else for(var h=0;h<t.length;h++){var v=jQuery("<source>");v.attr({src:t[h].src,type:t[h].type}),u.append(v)}if(l.subtitle){var w=jQuery("<track>");w.attr({label:"Subtitles",kind:"subtitles",srclang:"fr",src:l.subtitle,default:""}),u.append(w)}e.html(u);var A=u[0];n.on("setcurrenttime",function(C){try{A.currentTime=C/1e3}catch{}}),n.on("setvolume",function(C){n.volume=C;try{A.volume=C}catch{}}),n.on("setmuted",function(C){n.muted=C;try{A.muted=C}catch{}}),n.on("settimerange",function(C){n.timeRange=C;try{(n.getCurrentTime()>C[0]||n.getCurrentTime()<C)&&(A.currentTime=C[0]/1e3)}catch{}}),n.on("resettimerange",function(){n.timeRange=!1}),n.on("setplay",function(){try{A.play()}catch{}}),n.on("setpause",function(){try{A.pause()}catch{}});function E(){n.muted=A.muted,n.volume=A.volume}u.on("loadedmetadata",function(){E(),n.trigger("loadedmetadata"),n.trigger("volumechange")}),u.on("timeupdate",function(){n.trigger("timeupdate",new IriSP.Model.Time(1e3*A.currentTime))}),u.on("volumechange",function(){E(),n.trigger("volumechange")}),u.on("play",function(){n.trigger("play")}),u.on("pause",function(){n.trigger("pause")}),u.on("seeking",function(){n.trigger("seeking")}),u.on("seeked",function(){n.trigger("seeked")}),u.on("click",function(){A.paused?n.play():n.pause()})};function utils$s(n){return{jqEscape:function(e){return e.replace(/(:|\.)/g,"\\$1")},textFieldHtml:function(e,o,l){var t=[],u=[],h=e.replace(/(^\s+|\s+$)/g,"");function v(I,j,B){for(;;){var F=I.exec(h);if(!F)break;var N=I.lastIndex,ee=F.index;t.push({start:ee,end:N,startHtml:typeof j=="function"?j(F):j,endHtml:typeof B=="function"?B(F):B}),u.push(ee),u.push(N)}}o&&v(o,'<span class="Ldt-Highlight">',"</span>"),v(/(https?:\/\/)?[\w\d\-]+\.[\w\d\-]+\S+/gm,function(I){return'<a href="'+(I[1]?"":"http://")+I[0]+'" target="_blank">'},"</a>"),v(/@([\d\w]{1,15})/gm,function(I){return'<a href="http://twitter.com/'+I[1]+'" target="_blank">'},"</a>"),v(/\*[^*]+\*/gm,"<b>","</b>"),v(/[\n\r]+/gm,"","<br />"),_$1(l).each(function(I){v.apply(null,I)}),u=_$1(u).chain().uniq().sortBy(function(I){return parseInt(I)}).value();for(var w="",A=0,E=0;E<u.length;E++){var C=u[E];w+=h.substring(A,C);for(var M=t.length-1;M>=0;M--){var P=t[M];P.start<C&&P.end>=C&&(w+=P.endHtml)}for(var M=0;M<t.length;M++){var P=t[M];P.start<=C&&P.end>C&&(w+=P.startHtml)}A=C}return w+=h.substring(A),w},log:function(){typeof console<"u"&&typeof n.logging<"u"&&n.logging&&console.log.apply(console,arguments)},attachDndData:function(e,o){e.attr("draggable","true").on("dragstart",function(l){var t=typeof o=="function"?o.call(this):o;try{t.html===void 0&&t.uri&&t.text&&(t.html='<a href="'+t.uri+'">'+t.text+"</a>"),_$1(t).each(function(u,h){u&&h!="text"&&h!="html"&&l.originalEvent.dataTransfer.setData("text/x-iri-"+h,u)}),t.uri&&t.text&&(l.originalEvent.dataTransfer.setData("text/x-moz-url",t.uri+`
`+t.text.replace(`
`," ")),l.originalEvent.dataTransfer.setData("text/plain",t.text+" "+t.uri)),t.html!==void 0&&l.originalEvent.dataTransfer.setData("text/html",t.html),t.text!==void 0&&!t.uri&&l.originalEvent.dataTransfer.setData("text/plain",t.text)}catch{l.originalEvent.dataTransfer.setData("Text",JSON.stringify(t))}})},FakeClass:function(e){var o=this,l=function(){};_$1(e).each(function(t){o[t]=l})},timestamp2ms:function(e){for(var o=e.split(":").reverse();o.length<3;)o.push("0");return 1e3*(3600*parseInt(o[2],10)+60*parseInt(o[1],10)+parseInt(o[0],10))},setFullScreen:function(e,o){o?e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},isFullscreen:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},getFullscreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||void 0},getFullscreenEventname:function(){return document.exitFullscreen&&"fullscreenchange"||document.webkitExitFullscreen&&"webkitfullscreenchange"||document.mozExitFullScreen&&"mozfullscreenchange"||document.msExitFullscreen&&"msfullscreenchange"||""}}}const iFrameUpdater=function(n){var e=document.getElementById(n),o=!1,l=function(){o=!0,window.setTimeout(function(){o=!1},1e3),e.contentWindow.postMessage(document.location.hash,"*")};window.onhashchange=l,window.addEventListener("message",function(t){/^#/.test(t.data)&&!o&&(typeof window.history<"u"&&typeof window.history.replaceState<"u"?window.history.replaceState({},"",t.data):document.location.hash=t.data)}),window.setTimeout(l,2e3)},content=function(n){return{deSerialize:function(e,o){var l=new n.Model.List(o.directory);function t(u,h){var v=new n.Model.Media(u.iri_id,o);v.video=u.media_url,v.title=u.title,v.description=u.description,v.setDuration(u.duration),v.thumbnail=u.image,v.color=n.vizcolors[h%n.vizcolors.length],v.keywords=u.tags,l.push(v)}typeof e.objects<"u"?_$1(e.objects).each(t):t(e,0),o.addList("media",l)}}},ldt_annotate=function(n){return{serializeAnnotation:function(e,o){var l=e.getAnnotationType();return{id:e.id,begin:e.begin.milliseconds,end:e.end.milliseconds,content:{data:e.content?e.content.data||{}:{},description:e.description,title:e.title,audio:e.audio},id:e.id?e.id:"",tags:e.getTagTexts(),media:e.getMedia().id,project:e.project_id,type_title:l.title,type:typeof l.dont_send_id<"u"&&l.dont_send_id?"":l.id,meta:{created:e.created,creator:e.creator,modified:e.modified,contributor:e.contributor}}},deserializeAnnotation:function(e,o){var l=new n.Model.Annotation(e.id,o);l.description=e.content.description||"",l.title=e.content.title||"",l.creator=e.meta.creator||"",l.created=new Date(e.meta.created),l.setMedia(e.media,o);var t=o.getElement(e.type);t||(t=new n.Model.AnnotationType(e.type,o),t.title=e.type_title,o.getAnnotationTypes().push(t)),l.setAnnotationType(t.id);var u=_$1(e.tags).map(function(h){var v=o.getTags(!0).searchByTitle(h,!0);if(v.length)var w=v[0];else w=new n.Model.Tag(h.replace(/\W/g,"_"),o),w.title=h,o.getTags().push(w);return w.id});l.setTags(u),l.setBeginEnd(e.begin,e.end),typeof e.content.audio<"u"&&e.content.audio.href&&(l.audio=e.content.audio),e.content.data&&(l.content={data:e.content.data}),o.getAnnotations().push(l)},serialize:function(e){return JSON.stringify(this.serializeAnnotation(e.getAnnotations()[0],e))},deSerialize:function(e,o){typeof e=="string"&&(e=JSON.parse(e)),o.addList("tag",new n.Model.List(o.directory)),o.addList("annotationType",new n.Model.List(o.directory)),o.addList("annotation",new n.Model.List(o.directory)),this.deserializeAnnotation(e,o)}}},ldt_localstorage=function(n){return{serializeAnnotation:function(e,o){var l=e.getAnnotationType();return{id:e.id,begin:e.begin.milliseconds,end:e.end.milliseconds,content:{data:e.content?e.content.data||{}:{},description:e.description,title:e.title,audio:e.audio},tags:e.getTagTexts(),media:e.getMedia().id,type_title:l.title,type:typeof l.dont_send_id<"u"&&l.dont_send_id?"":l.id,meta:{created:e.created,creator:e.creator,modified:e.modified,contributor:e.contributor}}},deserializeAnnotation:function(e,o){var l=new n.Model.Annotation(e.id,o);l.description=e.content.description||"",l.title=e.content.title||"",l.creator=e.meta.creator||"",l.created=new Date(e.meta.created),l.contributor=e.meta.contributor||"",l.modified=new Date(e.meta.modified),l.setMedia(e.media,o);var t=o.getElement(e.type);t||(t=new n.Model.AnnotationType(e.type,o),t.title=e.type_title,o.getAnnotationTypes().push(t)),l.setAnnotationType(t.id);var u=_$1(e.tags).map(function(h){var v=o.getTags(!0).searchByTitle(h,!0);if(v.length)var w=v[0];else w=new n.Model.Tag(h.replace(/\W/g,"_"),o),w.title=h,o.getTags().push(w);return w.id});l.setTags(u),l.setBeginEnd(e.begin,e.end),typeof e.content.audio<"u"&&e.content.audio.href&&(l.audio=e.content.audio),e.content.data&&(l.content={data:e.content.data}),o.getAnnotations().push(l)},serialize:function(e){var o=this;return JSON.stringify(e.getAnnotations().map(function(l){return o.serializeAnnotation(l,e)}))},deSerialize:function(e,o){var l=this;typeof e=="string"&&(e=JSON.parse(e)),o.addList("tag",new n.Model.List(o.directory)),o.addList("annotationType",new n.Model.List(o.directory)),o.addList("annotation",new n.Model.List(o.directory)),e.map(function(t){l.deserializeAnnotation(t,o)})}}},ldt=function(n){return{types:{media:{serialized_name:"medias",deserializer:function(e,o){var l=new n.Model.Media(e.id,o);return l.video=typeof e.url<"u"?e.url:typeof e.href<"u"?e.href:null,typeof e.meta.item<"u"&&e.meta.item.name==="streamer"&&(l.streamer=e.meta.item.value),l.title=e.meta["dc:title"],l.description=e.meta["dc:description"],l.setDuration(e.meta["dc:duration"]),l.url=e.meta.url,typeof e.meta.img<"u"&&e.meta.img.src!=="undefined"&&(l.thumbnail=e.meta.img.src),l},serializer:function(e,o,l){var t={id:e.id,url:e.video,meta:{"dc:title":e.title||"","dc:description":e.description||"","dc:created":n.Model.dateToIso(e.created||o.created),"dc:modified":n.Model.dateToIso(e.modified||o.modified),"dc:creator":e.creator||o.creator,"dc:contributor":e.contributor||o.contributor||e.creator||o.creator,"dc:duration":e.duration.milliseconds}};l.medias.push(t);var u={id:n.Model.getUID(),meta:{"dc:title":e.title||"","dc:description":e.description||"","dc:created":n.Model.dateToIso(e.created||o.created),"dc:modified":n.Model.dateToIso(e.modified||o.modified),"dc:creator":e.creator||o.creator,"dc:contributor":e.contributor||o.contributor||e.creator||o.creator,"id-ref":e.id},items:o.getAnnotationTypes().filter(function(h){switch(typeof h.media){case"object":return h.media===e;case"string":return h.media===e.id;default:var v=h.getAnnotations();if(v){for(var w=0;w<v.length;w++)if(v[w].getMedia()===e)return!0}}return!1}).map(function(h){return{"id-ref":h.id}})};l.lists.push(u),l.views[0].contents.push(e.id)}},tag:{serialized_name:"tags",deserializer:function(e,o){var l=new n.Model.Tag(e.id,o);return l.title=e.meta["dc:title"],l},serializer:function(e,o,l){if(!(o.regenerateTags&&!e.regenerated)){var t={id:e.id,meta:{"dc:title":e.title||"","dc:description":e.description||"","dc:created":n.Model.dateToIso(e.created||o.created),"dc:modified":n.Model.dateToIso(e.modified||o.modified),"dc:creator":e.creator||o.creator,"dc:contributor":e.contributor||o.contributor||e.creator||o.creator}};l.tags.push(t)}}},annotationType:{serialized_name:"annotation-types",deserializer:function(e,o){var l=new n.Model.AnnotationType(e.id,o);return l.title=e["dc:title"],l.description=e["dc:description"],l},serializer:function(e,o,l){var t={id:e.id,"dc:title":e.title||"","dc:description":e.description||"","dc:created":n.Model.dateToIso(e.created||o.created),"dc:modified":n.Model.dateToIso(e.modified||o.modified),"dc:creator":e.creator||o.creator,"dc:contributor":e.contributor||o.contributor||e.creator||o.creator};l["annotation-types"].push(t),l.views[0].annotation_types.push(e.id)}},annotation:{serialized_name:"annotations",deserializer:function(e,o){var l=new n.Model.Annotation(e.id,o);if(l.title=e.content.title||"",l.description=e.content.description||"",typeof e.content.img<"u"&&e.content.img.src!=="undefined"&&(l.thumbnail=e.content.img.src),l.created=n.Model.isoToDate(e.created?e.created:e.meta?e.meta["dc:created"]:""),typeof e.color<"u"){for(var t=parseInt(e.color).toString(16);t.length<6;)t="0"+t;l.color="#"+t}return l.content=e.content,l.setMedia(e.media),l.setAnnotationType(e.meta["id-ref"]),l.setTags(_$1(e.tags).map("id-ref")),l.keywords=l.getTagTexts(),l.setBegin(e.begin),l.setEnd(e.end),l.creator=e.meta["dc:creator"]||"",l.project=e.meta.project||"",typeof e.meta["dc:source"]<"u"&&typeof e.meta["dc:source"].content<"u"&&(l.source=JSON.parse(e.meta["dc:source"].content)),typeof e.content.audio<"u"&&e.content.audio.href&&(l.audio=e.content.audio),l},serializer:function(e,o,l){var t=parseInt(e.color.replace(/^#/,""),16).toString(),u={id:e.id,begin:e.begin.milliseconds,end:e.end.milliseconds,content:_$1.defaults({},{title:e.title,description:e.description,audio:e.audio,img:{src:e.thumbnail}},e.content,{title:"",description:""}),color:t,media:e.media.id,meta:{"id-ref":e.getAnnotationType().id,"dc:created":n.Model.dateToIso(e.created||o.created),"dc:modified":n.Model.dateToIso(e.modified||o.modified),"dc:creator":e.creator||o.creator,"dc:contributor":e.contributor||o.contributor||e.creator||o.creator}};o.regenerateTags?u.tags=_$1(e.keywords).map(function(h){return{"id-ref":o.__keywords[h.toLowerCase()].id}}):u.tags=_$1(e.tag.id).map(function(h){return{"id-ref":h}}),u.content.title=e.title||u.content.title||"",l.annotations.push(u)}},mashup:{serialized_name:"lists",deserializer:function(e,o){if(!(typeof e.meta!="object"||typeof e.meta.listtype!="string"||e.meta.listtype!=="mashup")){var l=new n.Model.Mashup(e.id,o);return l.title=e.meta["dc:title"],l.description=e.meta["dc:description"],l.creator=e.meta["dc:creator"],l.setAnnotationsById(e.items),l}},serializer:function(e,o,l){var t={meta:{"dc:title":e.title||"","dc:description":e.description||"","dc:created":n.Model.dateToIso(e.created||o.created),"dc:modified":n.Model.dateToIso(e.modified||o.modified),"dc:creator":e.creator||o.creator,"dc:contributor":e.contributor||o.contributor||e.creator||o.creator,listtype:"mashup"},items:e.segments.map(function(u){return u.annotation.id}),id:e.id};l.lists.push(t)}}},serialize:function(e){var o={meta:{"dc:creator":e.creator,"dc:contributor":e.contributor||e.creator,"dc:created":n.Model.dateToIso(e.created),"dc:modified":n.Model.dateToIso(e.modified),"dc:title":e.title||"","dc:description":e.description||"",id:e.projectId||e.id},views:[{id:n.Model.getUID(),contents:[],annotation_types:[]}],lists:[],"annotation-types":[],medias:[],tags:[],annotations:[]},l=this;return e.regenerateTags&&(e.__keywords={},e.getAnnotations().forEach(function(t){_$1(t.keywords).each(function(u){var h=u.toLowerCase();typeof e.__keywords[h]>"u"&&(e.__keywords[h]={id:n.Model.getUID(),title:u,regenerated:!0})})}),_$1(e.__keywords).each(function(t){l.types.tag.serializer(t,e,o)})),e.forEach(function(t,u){typeof l.types[u]<"u"&&t.forEach(function(h){l.types[u].serializer(h,e,o)})}),JSON.stringify(o)},deSerialize:function(e,o){typeof e!="object"||e===null||(_$1(this.types).forEach(function(l,t){var u=e[l.serialized_name],h=new n.Model.List(o.directory);if(typeof u<"u"&&u!==null)if(u.hasOwnProperty("length"))for(var v=u.length,w=0;w<v;w++){var A=l.deserializer(u[w],o);typeof A<"u"&&A&&h.push(A)}else{var A=l.deserializer(u,o);typeof A<"u"&&A&&h.push(A)}o.addList(t,h)}),typeof e.meta<"u"&&(o.projectId=e.meta.id,o.title=e.meta["dc:title"]||e.meta.title||"",o.description=e.meta["dc:description"]||e.meta.description||"",o.creator=e.meta["dc:creator"]||e.meta.creator||"",o.contributor=e.meta["dc:contributor"]||e.meta.contributor||o.creator,o.created=n.Model.isoToDate(e.meta["dc:created"]||e.meta.created)),typeof e.meta<"u"&&typeof e.meta.main_media<"u"&&typeof e.meta.main_media["id-ref"]<"u"&&(o.currentMedia=o.getElement(e.meta.main_media["id-ref"])))}}},segmentapi=function(n){return{deSerialize:function(e,o){var l=new n.Model.List(o.directory),t=new n.Model.List(o.directory);o.addList("media",t);function u(h){var v=new n.Model.Annotation(h.element_id,o),w=o.getElement(h.iri_id);w||(w=new n.Model.Media(h.iri_id,o),o.getMedias().push(w)),v.setMedia(h.iri_id),v.title=h.title,v.description=h.abstract,v.begin=new n.Model.Time(h.start_ts),v.end=new n.Model.Time(h.start_ts+h.duration),v.keywords=h.tags?h.tags.split(","):[],v.project_id=h.project_id,l.push(v)}typeof e.objects<"u"?_$1(e.objects).each(u):u(e),o.addList("annotation",l)}}},serializers=function(n){return{content:content(n),ldt_annotate:ldt_annotate(n),ldt_localstorage:ldt_localstorage(n),ldt:ldt(n),segmentapi:segmentapi(n)}};var Youtube={exports:{}},win;typeof window<"u"?win=window:typeof commonjsGlobal$1<"u"?win=commonjsGlobal$1:typeof self<"u"?win=self:win={};var window_1=win;const window$1$1=getDefaultExportFromCjs$1(window_1),__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$6=getAugmentedNamespace(__viteBrowserExternal$1);var topLevel=typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:{},minDoc=require$$0$6,doccy;typeof document<"u"?doccy=document:(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"],doccy||(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"]=minDoc));var document_1=doccy;const document$2=getDefaultExportFromCjs$1(document_1);function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var l in o)({}).hasOwnProperty.call(o,l)&&(n[l]=o[l])}return n},_extends$2.apply(null,arguments)}const _extends$3=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _extends$2}},Symbol.toStringTag,{value:"Module"}));var keycode$1={exports:{}};(function(n,e){function o(w){if(w&&typeof w=="object"){var A=w.which||w.keyCode||w.charCode;A&&(w=A)}if(typeof w=="number")return h[w];var E=String(w),C=l[E.toLowerCase()];if(C)return C;var C=t[E.toLowerCase()];if(C)return C;if(E.length===1)return E.charCodeAt(0)}o.isEventKey=function(A,E){if(A&&typeof A=="object"){var C=A.which||A.keyCode||A.charCode;if(C==null)return!1;if(typeof E=="string"){var M=l[E.toLowerCase()];if(M)return M===C;var M=t[E.toLowerCase()];if(M)return M===C}else if(typeof E=="number")return E===C;return!1}},e=n.exports=o;var l=e.code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},t=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
 * Programatically add the following
 */for(u=97;u<123;u++)l[String.fromCharCode(u)]=u-32;for(var u=48;u<58;u++)l[u-48]=u;for(u=1;u<13;u++)l["f"+u]=u+111;for(u=0;u<10;u++)l["numpad "+u]=u+96;var h=e.names=e.title={};for(u in l)h[l[u]]=u;for(var v in t)l[v]=t[v]})(keycode$1,keycode$1.exports);var keycodeExports=keycode$1.exports;const keycode=getDefaultExportFromCjs$1(keycodeExports);function _assertThisInitialized$1(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _setPrototypeOf$1(n,e){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o},_setPrototypeOf$1(n,e)}function _inheritsLoose(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,_setPrototypeOf$1(n,e)}var tuple=SafeParseTuple;function SafeParseTuple(n,e){var o,l=null;try{o=JSON.parse(n,e)}catch(t){l=t}return[l,o]}const safeParseTuple=getDefaultExportFromCjs$1(tuple);var lib$6={exports:{}};const require$$1$6=getAugmentedNamespace(_extends$3);var isFunction_1=isFunction$3,toString$2=Object.prototype.toString;function isFunction$3(n){if(!n)return!1;var e=toString$2.call(n);return e==="[object Function]"||typeof n=="function"&&e!=="[object RegExp]"||typeof window<"u"&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}var window$3=window_1,httpResponseHandler=function(e,o){return o===void 0&&(o=!1),function(l,t,u){if(l){e(l);return}if(t.statusCode>=400&&t.statusCode<=599){var h=u;if(o)if(window$3.TextDecoder){var v=getCharset(t.headers&&t.headers["content-type"]);try{h=new TextDecoder(v).decode(u)}catch{}}else h=String.fromCharCode.apply(null,new Uint8Array(u));e({cause:h});return}e(null,u)}};function getCharset(n){return n===void 0&&(n=""),n.toLowerCase().split(";").reduce(function(e,o){var l=o.split("="),t=l[0],u=l[1];return t.trim()==="charset"?u.trim():e},"utf-8")}var httpHandler=httpResponseHandler,window$2=window_1,_extends$1=require$$1$6,isFunction$2=isFunction_1;createXHR.httpHandler=httpHandler;/**
 * @license
 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
 * Copyright (c) 2014 David Björklund
 * Available under the MIT license
 * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
 */var parseHeaders=function(e){var o={};return e&&e.trim().split(`
`).forEach(function(l){var t=l.indexOf(":"),u=l.slice(0,t).trim().toLowerCase(),h=l.slice(t+1).trim();typeof o[u]>"u"?o[u]=h:Array.isArray(o[u])?o[u].push(h):o[u]=[o[u],h]}),o};lib$6.exports=createXHR,lib$6.exports.default=createXHR,createXHR.XMLHttpRequest=window$2.XMLHttpRequest||noop$2,createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:window$2.XDomainRequest,forEachArray$1(["get","put","post","patch","head","delete"],function(n){createXHR[n==="delete"?"del":n]=function(e,o,l){return o=initParams$1(e,o,l),o.method=n.toUpperCase(),_createXHR(o)}});function forEachArray$1(n,e){for(var o=0;o<n.length;o++)e(n[o])}function isEmpty(n){for(var e in n)if(n.hasOwnProperty(e))return!1;return!0}function initParams$1(n,e,o){var l=n;return isFunction$2(e)?(o=e,typeof n=="string"&&(l={uri:n})):l=_extends$1({},e,{uri:n}),l.callback=o,l}function createXHR(n,e,o){return e=initParams$1(n,e,o),_createXHR(e)}function _createXHR(n){if(typeof n.callback>"u")throw new Error("callback argument missing");var e=!1,o=function(ee,Z,re){e||(e=!0,n.callback(ee,Z,re))};function l(){v.readyState===4&&setTimeout(h,0)}function t(){var N=void 0;if(v.response?N=v.response:N=v.responseText||getXml(v),j)try{N=JSON.parse(N)}catch{}return N}function u(N){return clearTimeout(B),N instanceof Error||(N=new Error(""+(N||"Unknown XMLHttpRequest Error"))),N.statusCode=0,o(N,F)}function h(){if(!A){var N;clearTimeout(B),n.useXDR&&v.status===void 0?N=200:N=v.status===1223?204:v.status;var ee=F,Z=null;return N!==0?(ee={body:t(),statusCode:N,method:C,headers:{},url:E,rawRequest:v},v.getAllResponseHeaders&&(ee.headers=parseHeaders(v.getAllResponseHeaders()))):Z=new Error("Internal XMLHttpRequest Error"),o(Z,ee,ee.body)}}var v=n.xhr||null;v||(n.cors||n.useXDR?v=new createXHR.XDomainRequest:v=new createXHR.XMLHttpRequest);var w,A,E=v.url=n.uri||n.url,C=v.method=n.method||"GET",M=n.body||n.data,P=v.headers=n.headers||{},I=!!n.sync,j=!1,B,F={body:void 0,headers:{},statusCode:0,method:C,url:E,rawRequest:v};if("json"in n&&n.json!==!1&&(j=!0,P.accept||P.Accept||(P.Accept="application/json"),C!=="GET"&&C!=="HEAD"&&(P["content-type"]||P["Content-Type"]||(P["Content-Type"]="application/json"),M=JSON.stringify(n.json===!0?M:n.json))),v.onreadystatechange=l,v.onload=h,v.onerror=u,v.onprogress=function(){},v.onabort=function(){A=!0},v.ontimeout=u,v.open(C,E,!I,n.username,n.password),I||(v.withCredentials=!!n.withCredentials),!I&&n.timeout>0&&(B=setTimeout(function(){if(!A){A=!0,v.abort("timeout");var N=new Error("XMLHttpRequest timeout");N.code="ETIMEDOUT",u(N)}},n.timeout)),v.setRequestHeader)for(w in P)P.hasOwnProperty(w)&&v.setRequestHeader(w,P[w]);else if(n.headers&&!isEmpty(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(v.responseType=n.responseType),"beforeSend"in n&&typeof n.beforeSend=="function"&&n.beforeSend(v),v.send(M||null),v}function getXml(n){try{if(n.responseType==="document")return n.responseXML;var e=n.responseXML&&n.responseXML.documentElement.nodeName==="parsererror";if(n.responseType===""&&!e)return n.responseXML}catch{}return null}function noop$2(){}var libExports=lib$6.exports;const XHR=getDefaultExportFromCjs$1(libExports);var browserIndex={exports:{}},document$1=document_1,_objCreate=Object.create||function(){function n(){}return function(e){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=e,new n}}();function ParsingError(n,e){this.name="ParsingError",this.code=n.code,this.message=e||n.message}ParsingError.prototype=_objCreate(Error.prototype),ParsingError.prototype.constructor=ParsingError,ParsingError.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function parseTimeStamp(n){function e(l,t,u,h){return(l|0)*3600+(t|0)*60+(u|0)+(h|0)/1e3}var o=n.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return o?o[3]?e(o[1],o[2],o[3].replace(":",""),o[4]):o[1]>59?e(o[1],o[2],0,o[4]):e(0,o[1],o[2],o[4]):null}function Settings(){this.values=_objCreate(null)}Settings.prototype={set:function(n,e){!this.get(n)&&e!==""&&(this.values[n]=e)},get:function(n,e,o){return o?this.has(n)?this.values[n]:e[o]:this.has(n)?this.values[n]:e},has:function(n){return n in this.values},alt:function(n,e,o){for(var l=0;l<o.length;++l)if(e===o[l]){this.set(n,e);break}},integer:function(n,e){/^-?\d+$/.test(e)&&this.set(n,parseInt(e,10))},percent:function(n,e){return e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e),e>=0&&e<=100)?(this.set(n,e),!0):!1}};function parseOptions(n,e,o,l){var t=l?n.split(l):[n];for(var u in t)if(typeof t[u]=="string"){var h=t[u].split(o);if(h.length===2){var v=h[0].trim(),w=h[1].trim();e(v,w)}}}function parseCue(n,e,o){var l=n;function t(){var v=parseTimeStamp(n);if(v===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+l);return n=n.replace(/^[^\sa-zA-Z-]+/,""),v}function u(v,w){var A=new Settings;parseOptions(v,function(E,C){switch(E){case"region":for(var M=o.length-1;M>=0;M--)if(o[M].id===C){A.set(E,o[M].region);break}break;case"vertical":A.alt(E,C,["rl","lr"]);break;case"line":var P=C.split(","),I=P[0];A.integer(E,I),A.percent(E,I)&&A.set("snapToLines",!1),A.alt(E,I,["auto"]),P.length===2&&A.alt("lineAlign",P[1],["start","center","end"]);break;case"position":P=C.split(","),A.percent(E,P[0]),P.length===2&&A.alt("positionAlign",P[1],["start","center","end"]);break;case"size":A.percent(E,C);break;case"align":A.alt(E,C,["start","center","end","left","right"]);break}},/:/,/\s/),w.region=A.get("region",null),w.vertical=A.get("vertical","");try{w.line=A.get("line","auto")}catch{}w.lineAlign=A.get("lineAlign","start"),w.snapToLines=A.get("snapToLines",!0),w.size=A.get("size",100);try{w.align=A.get("align","center")}catch{w.align=A.get("align","middle")}try{w.position=A.get("position","auto")}catch{w.position=A.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},w.align)}w.positionAlign=A.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},w.align)}function h(){n=n.replace(/^\s+/,"")}if(h(),e.startTime=t(),h(),n.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+l);n=n.substr(3),h(),e.endTime=t(),h(),u(n,e)}var TEXTAREA_ELEMENT=document$1.createElement&&document$1.createElement("textarea"),TAG_NAME={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},DEFAULT_COLOR_CLASS={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},TAG_ANNOTATION={v:"title",lang:"lang"},NEEDS_PARENT={rt:"ruby"};function parseContent(n,e){function o(){if(!e)return null;function I(B){return e=e.substr(B.length),B}var j=e.match(/^([^<]*)(<[^>]*>?)?/);return I(j[1]?j[1]:j[2])}function l(I){return TEXTAREA_ELEMENT.innerHTML=I,I=TEXTAREA_ELEMENT.textContent,TEXTAREA_ELEMENT.textContent="",I}function t(I,j){return!NEEDS_PARENT[j.localName]||NEEDS_PARENT[j.localName]===I.localName}function u(I,j){var B=TAG_NAME[I];if(!B)return null;var F=n.document.createElement(B),N=TAG_ANNOTATION[I];return N&&j&&(F[N]=j.trim()),F}for(var h=n.document.createElement("div"),v=h,w,A=[];(w=o())!==null;){if(w[0]==="<"){if(w[1]==="/"){A.length&&A[A.length-1]===w.substr(2).replace(">","")&&(A.pop(),v=v.parentNode);continue}var E=parseTimeStamp(w.substr(1,w.length-2)),C;if(E){C=n.document.createProcessingInstruction("timestamp",E),v.appendChild(C);continue}var M=w.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!M||(C=u(M[1],M[3]),!C)||!t(v,C))continue;if(M[2]){var P=M[2].split(".");P.forEach(function(I){var j=/^bg_/.test(I),B=j?I.slice(3):I;if(DEFAULT_COLOR_CLASS.hasOwnProperty(B)){var F=j?"background-color":"color",N=DEFAULT_COLOR_CLASS[B];C.style[F]=N}}),C.className=P.join(" ")}A.push(M[1]),v.appendChild(C),v=C;continue}v.appendChild(n.document.createTextNode(l(w)))}return h}var strongRTLRanges=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function isStrongRTLChar(n){for(var e=0;e<strongRTLRanges.length;e++){var o=strongRTLRanges[e];if(n>=o[0]&&n<=o[1])return!0}return!1}function determineBidi(n){var e=[],o="",l;if(!n||!n.childNodes)return"ltr";function t(v,w){for(var A=w.childNodes.length-1;A>=0;A--)v.push(w.childNodes[A])}function u(v){if(!v||!v.length)return null;var w=v.pop(),A=w.textContent||w.innerText;if(A){var E=A.match(/^.*(\n|\r)/);return E?(v.length=0,E[0]):A}if(w.tagName==="ruby")return u(v);if(w.childNodes)return t(v,w),u(v)}for(t(e,n);o=u(e);)for(var h=0;h<o.length;h++)if(l=o.charCodeAt(h),isStrongRTLChar(l))return"rtl";return"ltr"}function computeLinePos(n){if(typeof n.line=="number"&&(n.snapToLines||n.line>=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;for(var e=n.track,o=e.textTrackList,l=0,t=0;t<o.length&&o[t]!==e;t++)o[t].mode==="showing"&&l++;return++l*-1}function StyleBox(){}StyleBox.prototype.applyStyles=function(n,e){e=e||this.div;for(var o in n)n.hasOwnProperty(o)&&(e.style[o]=n[o])},StyleBox.prototype.formatStyle=function(n,e){return n===0?0:n+e};function CueStyleBox(n,e,o){StyleBox.call(this),this.cue=e,this.cueDiv=parseContent(n,e.text);var l={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:e.vertical===""?"horizontal-tb":e.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(l,this.cueDiv),this.div=n.document.createElement("div"),l={direction:determineBidi(this.cueDiv),writingMode:e.vertical===""?"horizontal-tb":e.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:e.align==="middle"?"center":e.align,font:o.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(l),this.div.appendChild(this.cueDiv);var t=0;switch(e.positionAlign){case"start":case"line-left":t=e.position;break;case"center":t=e.position-e.size/2;break;case"end":case"line-right":t=e.position-e.size;break}e.vertical===""?this.applyStyles({left:this.formatStyle(t,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(t,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(u){this.applyStyles({top:this.formatStyle(u.top,"px"),bottom:this.formatStyle(u.bottom,"px"),left:this.formatStyle(u.left,"px"),right:this.formatStyle(u.right,"px"),height:this.formatStyle(u.height,"px"),width:this.formatStyle(u.width,"px")})}}CueStyleBox.prototype=_objCreate(StyleBox.prototype),CueStyleBox.prototype.constructor=CueStyleBox;function BoxPosition(n){var e,o,l,t;if(n.div){o=n.div.offsetHeight,l=n.div.offsetWidth,t=n.div.offsetTop;var u=(u=n.div.childNodes)&&(u=u[0])&&u.getClientRects&&u.getClientRects();n=n.div.getBoundingClientRect(),e=u?Math.max(u[0]&&u[0].height||0,n.height/u.length):0}this.left=n.left,this.right=n.right,this.top=n.top||t,this.height=n.height||o,this.bottom=n.bottom||t+(n.height||o),this.width=n.width||l,this.lineHeight=e!==void 0?e:n.lineHeight}BoxPosition.prototype.move=function(n,e){switch(e=e!==void 0?e:this.lineHeight,n){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e;break}},BoxPosition.prototype.overlaps=function(n){return this.left<n.right&&this.right>n.left&&this.top<n.bottom&&this.bottom>n.top},BoxPosition.prototype.overlapsAny=function(n){for(var e=0;e<n.length;e++)if(this.overlaps(n[e]))return!0;return!1},BoxPosition.prototype.within=function(n){return this.top>=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right},BoxPosition.prototype.overlapsOppositeAxis=function(n,e){switch(e){case"+x":return this.left<n.left;case"-x":return this.right>n.right;case"+y":return this.top<n.top;case"-y":return this.bottom>n.bottom}},BoxPosition.prototype.intersectPercentage=function(n){var e=Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left)),o=Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top)),l=e*o;return l/(this.height*this.width)},BoxPosition.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}},BoxPosition.getSimpleBoxPosition=function(n){var e=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,o=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,l=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n;var t={left:n.left,right:n.right,top:n.top||l,height:n.height||e,bottom:n.bottom||l+(n.height||e),width:n.width||o};return t};function moveBoxToLinePosition(n,e,o,l){function t(B,F){for(var N,ee=new BoxPosition(B),Z=1,re=0;re<F.length;re++){for(;B.overlapsOppositeAxis(o,F[re])||B.within(o)&&B.overlapsAny(l);)B.move(F[re]);if(B.within(o))return B;var fe=B.intersectPercentage(o);Z>fe&&(N=new BoxPosition(B),Z=fe),B=new BoxPosition(ee)}return N||ee}var u=new BoxPosition(e),h=e.cue,v=computeLinePos(h),w=[];if(h.snapToLines){var A;switch(h.vertical){case"":w=["+y","-y"],A="height";break;case"rl":w=["+x","-x"],A="width";break;case"lr":w=["-x","+x"],A="width";break}var E=u.lineHeight,C=E*Math.round(v),M=o[A]+E,P=w[0];Math.abs(C)>M&&(C=C<0?-1:1,C*=Math.ceil(M/E)*E),v<0&&(C+=h.vertical===""?o.height:o.width,w=w.reverse()),u.move(P,C)}else{var I=u.lineHeight/o.height*100;switch(h.lineAlign){case"center":v-=I/2;break;case"end":v-=I;break}switch(h.vertical){case"":e.applyStyles({top:e.formatStyle(v,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(v,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(v,"%")});break}w=["+y","-x","+x","-y"],u=new BoxPosition(e)}var j=t(u,w);e.move(j.toCSSCompatValues(o))}function WebVTT$1(){}WebVTT$1.StringDecoder=function(){return{decode:function(n){if(!n)return"";if(typeof n!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}},WebVTT$1.convertCueToDOMTree=function(n,e){return!n||!e?null:parseContent(n,e)};var FONT_SIZE_PERCENT=.05,FONT_STYLE="sans-serif",CUE_BACKGROUND_PADDING="1.5%";WebVTT$1.processCues=function(n,e,o){if(!n||!e||!o)return null;for(;o.firstChild;)o.removeChild(o.firstChild);var l=n.document.createElement("div");l.style.position="absolute",l.style.left="0",l.style.right="0",l.style.top="0",l.style.bottom="0",l.style.margin=CUE_BACKGROUND_PADDING,o.appendChild(l);function t(E){for(var C=0;C<E.length;C++)if(E[C].hasBeenReset||!E[C].displayState)return!0;return!1}if(!t(e)){for(var u=0;u<e.length;u++)l.appendChild(e[u].displayState);return}var h=[],v=BoxPosition.getSimpleBoxPosition(l),w=Math.round(v.height*FONT_SIZE_PERCENT*100)/100,A={font:w+"px "+FONT_STYLE};(function(){for(var E,C,M=0;M<e.length;M++)C=e[M],E=new CueStyleBox(n,C,A),l.appendChild(E.div),moveBoxToLinePosition(n,E,v,h),C.displayState=E.div,h.push(BoxPosition.getSimpleBoxPosition(E))})()},WebVTT$1.Parser=function(n,e,o){o||(o=e,e={}),e||(e={}),this.window=n,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=o||new TextDecoder("utf8"),this.regionList=[]},WebVTT$1.Parser.prototype={reportOrThrowError:function(n){if(n instanceof ParsingError)this.onparsingerror&&this.onparsingerror(n);else throw n},parse:function(n){var e=this;n&&(e.buffer+=e.decoder.decode(n,{stream:!0}));function o(){for(var E=e.buffer,C=0;C<E.length&&E[C]!=="\r"&&E[C]!==`
`;)++C;var M=E.substr(0,C);return E[C]==="\r"&&++C,E[C]===`
`&&++C,e.buffer=E.substr(C),M}function l(E){var C=new Settings;if(parseOptions(E,function(P,I){switch(P){case"id":C.set(P,I);break;case"width":C.percent(P,I);break;case"lines":C.integer(P,I);break;case"regionanchor":case"viewportanchor":var j=I.split(",");if(j.length!==2)break;var B=new Settings;if(B.percent("x",j[0]),B.percent("y",j[1]),!B.has("x")||!B.has("y"))break;C.set(P+"X",B.get("x")),C.set(P+"Y",B.get("y"));break;case"scroll":C.alt(P,I,["up"]);break}},/=/,/\s/),C.has("id")){var M=new(e.vttjs.VTTRegion||e.window.VTTRegion);M.width=C.get("width",100),M.lines=C.get("lines",3),M.regionAnchorX=C.get("regionanchorX",0),M.regionAnchorY=C.get("regionanchorY",100),M.viewportAnchorX=C.get("viewportanchorX",0),M.viewportAnchorY=C.get("viewportanchorY",100),M.scroll=C.get("scroll",""),e.onregion&&e.onregion(M),e.regionList.push({id:C.get("id"),region:M})}}function t(E){var C=new Settings;parseOptions(E,function(M,P){switch(M){case"MPEGT":C.integer(M+"S",P);break;case"LOCA":C.set(M+"L",parseTimeStamp(P));break}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:C.get("MPEGTS"),LOCAL:C.get("LOCAL")})}function u(E){E.match(/X-TIMESTAMP-MAP/)?parseOptions(E,function(C,M){switch(C){case"X-TIMESTAMP-MAP":t(M);break}},/=/):parseOptions(E,function(C,M){switch(C){case"Region":l(M);break}},/:/)}try{var h;if(e.state==="INITIAL"){if(!/\r\n|\n/.test(e.buffer))return this;h=o();var v=h.match(/^WEBVTT([ \t].*)?$/);if(!v||!v[0])throw new ParsingError(ParsingError.Errors.BadSignature);e.state="HEADER"}for(var w=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(w?w=!1:h=o(),e.state){case"HEADER":/:/.test(h)?u(h):h||(e.state="ID");continue;case"NOTE":h||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(h)){e.state="NOTE";break}if(!h)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch{e.cue.align="middle"}if(e.state="CUE",h.indexOf("-->")===-1){e.cue.id=h;continue}case"CUE":try{parseCue(h,e.cue,e.regionList)}catch(E){e.reportOrThrowError(E),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var A=h.indexOf("-->")!==-1;if(!h||A&&(w=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+=`
`),e.cue.text+=h.replace(/\u2028/g,`
`).replace(/u2029/g,`
`);continue;case"BADCUE":h||(e.state="ID");continue}}}catch(E){e.reportOrThrowError(E),e.state==="CUETEXT"&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state=e.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||n.state==="HEADER")&&(n.buffer+=`

`,n.parse()),n.state==="INITIAL")throw new ParsingError(ParsingError.Errors.BadSignature)}catch(e){n.reportOrThrowError(e)}return n.onflush&&n.onflush(),this}};var vtt$1=WebVTT$1,autoKeyword="auto",directionSetting={"":1,lr:1,rl:1},alignSetting={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function findDirectionSetting(n){if(typeof n!="string")return!1;var e=directionSetting[n.toLowerCase()];return e?n.toLowerCase():!1}function findAlignSetting(n){if(typeof n!="string")return!1;var e=alignSetting[n.toLowerCase()];return e?n.toLowerCase():!1}function VTTCue(n,e,o){this.hasBeenReset=!1;var l="",t=!1,u=n,h=e,v=o,w=null,A="",E=!0,C="auto",M="start",P="auto",I="auto",j=100,B="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return l},set:function(F){l=""+F}},pauseOnExit:{enumerable:!0,get:function(){return t},set:function(F){t=!!F}},startTime:{enumerable:!0,get:function(){return u},set:function(F){if(typeof F!="number")throw new TypeError("Start time must be set to a number.");u=F,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return h},set:function(F){if(typeof F!="number")throw new TypeError("End time must be set to a number.");h=F,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return v},set:function(F){v=""+F,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return w},set:function(F){w=F,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return A},set:function(F){var N=findDirectionSetting(F);if(N===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");A=N,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return E},set:function(F){E=!!F,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return C},set:function(F){if(typeof F!="number"&&F!==autoKeyword)throw new SyntaxError("Line: an invalid number or illegal string was specified.");C=F,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return M},set:function(F){var N=findAlignSetting(F);N?(M=N,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return P},set:function(F){if(F<0||F>100)throw new Error("Position must be between 0 and 100.");P=F,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return I},set:function(F){var N=findAlignSetting(F);N?(I=N,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return j},set:function(F){if(F<0||F>100)throw new Error("Size must be between 0 and 100.");j=F,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return B},set:function(F){var N=findAlignSetting(F);if(!N)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");B=N,this.hasBeenReset=!0}}}),this.displayState=void 0}VTTCue.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var vttcue=VTTCue,scrollSetting={"":!0,up:!0};function findScrollSetting(n){if(typeof n!="string")return!1;var e=scrollSetting[n.toLowerCase()];return e?n.toLowerCase():!1}function isValidPercentValue(n){return typeof n=="number"&&n>=0&&n<=100}function VTTRegion(){var n=100,e=3,o=0,l=100,t=0,u=100,h="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(v){if(!isValidPercentValue(v))throw new Error("Width must be between 0 and 100.");n=v}},lines:{enumerable:!0,get:function(){return e},set:function(v){if(typeof v!="number")throw new TypeError("Lines must be set to a number.");e=v}},regionAnchorY:{enumerable:!0,get:function(){return l},set:function(v){if(!isValidPercentValue(v))throw new Error("RegionAnchorX must be between 0 and 100.");l=v}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(v){if(!isValidPercentValue(v))throw new Error("RegionAnchorY must be between 0 and 100.");o=v}},viewportAnchorY:{enumerable:!0,get:function(){return u},set:function(v){if(!isValidPercentValue(v))throw new Error("ViewportAnchorY must be between 0 and 100.");u=v}},viewportAnchorX:{enumerable:!0,get:function(){return t},set:function(v){if(!isValidPercentValue(v))throw new Error("ViewportAnchorX must be between 0 and 100.");t=v}},scroll:{enumerable:!0,get:function(){return h},set:function(v){var w=findScrollSetting(v);w===!1?console.warn("Scroll: an invalid or illegal string was specified."):h=w}}})}var vttregion=VTTRegion,window$1=window_1,vttjs=browserIndex.exports={WebVTT:vtt$1,VTTCue:vttcue,VTTRegion:vttregion};window$1.vttjs=vttjs,window$1.WebVTT=vttjs.WebVTT;var cueShim=vttjs.VTTCue,regionShim=vttjs.VTTRegion,nativeVTTCue=window$1.VTTCue,nativeVTTRegion=window$1.VTTRegion;vttjs.shim=function(){window$1.VTTCue=cueShim,window$1.VTTRegion=regionShim},vttjs.restore=function(){window$1.VTTCue=nativeVTTCue,window$1.VTTRegion=nativeVTTRegion},window$1.VTTCue||vttjs.shim();var browserIndexExports=browserIndex.exports;const vtt=getDefaultExportFromCjs$1(browserIndexExports);function _isNativeReflectConstruct$1(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1=function(){return!!n})()}function _construct$1(n,e,o){if(_isNativeReflectConstruct$1())return Reflect.construct.apply(null,arguments);var l=[null];l.push.apply(l,e);var t=new(n.bind.apply(n,l));return o&&_setPrototypeOf$1(t,o.prototype),t}function _inherits$1(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&_setPrototypeOf$1(n,e)}var urlToolkit={exports:{}};(function(n,e){(function(o){var l=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,t=/^(?=([^\/?#]*))\1([^]*)$/,u=/(?:\/|^)\.(?=\/)/g,h=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,v={buildAbsoluteURL:function(w,A,E){if(E=E||{},w=w.trim(),A=A.trim(),!A){if(!E.alwaysNormalize)return w;var C=v.parseURL(w);if(!C)throw new Error("Error trying to parse base URL.");return C.path=v.normalizePath(C.path),v.buildURLFromParts(C)}var M=v.parseURL(A);if(!M)throw new Error("Error trying to parse relative URL.");if(M.scheme)return E.alwaysNormalize?(M.path=v.normalizePath(M.path),v.buildURLFromParts(M)):A;var P=v.parseURL(w);if(!P)throw new Error("Error trying to parse base URL.");if(!P.netLoc&&P.path&&P.path[0]!=="/"){var I=t.exec(P.path);P.netLoc=I[1],P.path=I[2]}P.netLoc&&!P.path&&(P.path="/");var j={scheme:P.scheme,netLoc:M.netLoc,path:null,params:M.params,query:M.query,fragment:M.fragment};if(!M.netLoc&&(j.netLoc=P.netLoc,M.path[0]!=="/"))if(!M.path)j.path=P.path,M.params||(j.params=P.params,M.query||(j.query=P.query));else{var B=P.path,F=B.substring(0,B.lastIndexOf("/")+1)+M.path;j.path=v.normalizePath(F)}return j.path===null&&(j.path=E.alwaysNormalize?v.normalizePath(M.path):M.path),v.buildURLFromParts(j)},parseURL:function(w){var A=l.exec(w);return A?{scheme:A[1]||"",netLoc:A[2]||"",path:A[3]||"",params:A[4]||"",query:A[5]||"",fragment:A[6]||""}:null},normalizePath:function(w){for(w=w.split("").reverse().join("").replace(u,"");w.length!==(w=w.replace(h,"")).length;);return w.split("").reverse().join("")},buildURLFromParts:function(w){return w.scheme+w.netLoc+w.path+w.params+w.query+w.fragment}};n.exports=v})()})(urlToolkit);var urlToolkitExports=urlToolkit.exports;const URLToolkit=getDefaultExportFromCjs$1(urlToolkitExports);var DEFAULT_LOCATION="http://example.com",resolveUrl$1=function(e,o){if(/^[a-z]+:/i.test(o))return o;/^data:/.test(e)&&(e=window$1$1.location&&window$1$1.location.href||"");var l=typeof window$1$1.URL=="function",t=/^\/\//.test(e),u=!window$1$1.location&&!/\/\//i.test(e);if(l?e=new window$1$1.URL(e,window$1$1.location||DEFAULT_LOCATION):/\/\//i.test(e)||(e=URLToolkit.buildAbsoluteURL(window$1$1.location&&window$1$1.location.href||"",e)),l){var h=new URL(o,e);return u?h.href.slice(DEFAULT_LOCATION.length):t?h.href.slice(h.protocol.length):h.href}return URLToolkit.buildAbsoluteURL(e,o)},Stream=function(){function n(){this.listeners={}}var e=n.prototype;return e.on=function(l,t){this.listeners[l]||(this.listeners[l]=[]),this.listeners[l].push(t)},e.off=function(l,t){if(!this.listeners[l])return!1;var u=this.listeners[l].indexOf(t);return this.listeners[l]=this.listeners[l].slice(0),this.listeners[l].splice(u,1),u>-1},e.trigger=function(l){var t=this.listeners[l];if(t)if(arguments.length===2)for(var u=t.length,h=0;h<u;++h)t[h].call(this,arguments[1]);else for(var v=Array.prototype.slice.call(arguments,1),w=t.length,A=0;A<w;++A)t[A].apply(this,v)},e.dispose=function(){this.listeners={}},e.pipe=function(l){this.on("data",function(t){l.push(t)})},n}(),buffer$1={},base64Js={};base64Js.byteLength=byteLength,base64Js.toByteArray=toByteArray,base64Js.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i$1=0,len=code.length;i$1<len;++i$1)lookup[i$1]=code[i$1],revLookup[code.charCodeAt(i$1)]=i$1;revLookup[45]=62,revLookup[95]=63;function getLens(n){var e=n.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=n.indexOf("=");o===-1&&(o=e);var l=o===e?0:4-o%4;return[o,l]}function byteLength(n){var e=getLens(n),o=e[0],l=e[1];return(o+l)*3/4-l}function _byteLength(n,e,o){return(e+o)*3/4-o}function toByteArray(n){var e,o=getLens(n),l=o[0],t=o[1],u=new Arr(_byteLength(n,l,t)),h=0,v=t>0?l-4:l,w;for(w=0;w<v;w+=4)e=revLookup[n.charCodeAt(w)]<<18|revLookup[n.charCodeAt(w+1)]<<12|revLookup[n.charCodeAt(w+2)]<<6|revLookup[n.charCodeAt(w+3)],u[h++]=e>>16&255,u[h++]=e>>8&255,u[h++]=e&255;return t===2&&(e=revLookup[n.charCodeAt(w)]<<2|revLookup[n.charCodeAt(w+1)]>>4,u[h++]=e&255),t===1&&(e=revLookup[n.charCodeAt(w)]<<10|revLookup[n.charCodeAt(w+1)]<<4|revLookup[n.charCodeAt(w+2)]>>2,u[h++]=e>>8&255,u[h++]=e&255),u}function tripletToBase64(n){return lookup[n>>18&63]+lookup[n>>12&63]+lookup[n>>6&63]+lookup[n&63]}function encodeChunk(n,e,o){for(var l,t=[],u=e;u<o;u+=3)l=(n[u]<<16&16711680)+(n[u+1]<<8&65280)+(n[u+2]&255),t.push(tripletToBase64(l));return t.join("")}function fromByteArray(n){for(var e,o=n.length,l=o%3,t=[],u=16383,h=0,v=o-l;h<v;h+=u)t.push(encodeChunk(n,h,h+u>v?v:h+u));return l===1?(e=n[o-1],t.push(lookup[e>>2]+lookup[e<<4&63]+"==")):l===2&&(e=(n[o-2]<<8)+n[o-1],t.push(lookup[e>>10]+lookup[e>>4&63]+lookup[e<<2&63]+"=")),t.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(n,e,o,l,t){var u,h,v=t*8-l-1,w=(1<<v)-1,A=w>>1,E=-7,C=o?t-1:0,M=o?-1:1,P=n[e+C];for(C+=M,u=P&(1<<-E)-1,P>>=-E,E+=v;E>0;u=u*256+n[e+C],C+=M,E-=8);for(h=u&(1<<-E)-1,u>>=-E,E+=l;E>0;h=h*256+n[e+C],C+=M,E-=8);if(u===0)u=1-A;else{if(u===w)return h?NaN:(P?-1:1)*(1/0);h=h+Math.pow(2,l),u=u-A}return(P?-1:1)*h*Math.pow(2,u-l)},ieee754.write=function(n,e,o,l,t,u){var h,v,w,A=u*8-t-1,E=(1<<A)-1,C=E>>1,M=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=l?0:u-1,I=l?1:-1,j=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(v=isNaN(e)?1:0,h=E):(h=Math.floor(Math.log(e)/Math.LN2),e*(w=Math.pow(2,-h))<1&&(h--,w*=2),h+C>=1?e+=M/w:e+=M*Math.pow(2,1-C),e*w>=2&&(h++,w/=2),h+C>=E?(v=0,h=E):h+C>=1?(v=(e*w-1)*Math.pow(2,t),h=h+C):(v=e*Math.pow(2,C-1)*Math.pow(2,t),h=0));t>=8;n[o+P]=v&255,P+=I,v/=256,t-=8);for(h=h<<t|v,A+=t;A>0;n[o+P]=h&255,P+=I,h/=256,A-=8);n[o+P-I]|=j*128};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */(function(n){const e=base64Js,o=ieee754,l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=E,n.SlowBuffer=re,n.INSPECT_MAX_BYTES=50;const t=2147483647;n.kMaxLength=t;const{Uint8Array:u,ArrayBuffer:h,SharedArrayBuffer:v}=globalThis;E.TYPED_ARRAY_SUPPORT=w(),!E.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function w(){try{const Me=new u(1),te={foo:function(){return 42}};return Object.setPrototypeOf(te,u.prototype),Object.setPrototypeOf(Me,te),Me.foo()===42}catch{return!1}}Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.buffer}}),Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.byteOffset}});function A(Me){if(Me>t)throw new RangeError('The value "'+Me+'" is invalid for option "size"');const te=new u(Me);return Object.setPrototypeOf(te,E.prototype),te}function E(Me,te,_e){if(typeof Me=="number"){if(typeof te=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(Me)}return C(Me,te,_e)}E.poolSize=8192;function C(Me,te,_e){if(typeof Me=="string")return j(Me,te);if(h.isView(Me))return F(Me);if(Me==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Me);if(Qe(Me,h)||Me&&Qe(Me.buffer,h)||typeof v<"u"&&(Qe(Me,v)||Me&&Qe(Me.buffer,v)))return N(Me,te,_e);if(typeof Me=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const je=Me.valueOf&&Me.valueOf();if(je!=null&&je!==Me)return E.from(je,te,_e);const We=ee(Me);if(We)return We;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Me[Symbol.toPrimitive]=="function")return E.from(Me[Symbol.toPrimitive]("string"),te,_e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Me)}E.from=function(Me,te,_e){return C(Me,te,_e)},Object.setPrototypeOf(E.prototype,u.prototype),Object.setPrototypeOf(E,u);function M(Me){if(typeof Me!="number")throw new TypeError('"size" argument must be of type number');if(Me<0)throw new RangeError('The value "'+Me+'" is invalid for option "size"')}function P(Me,te,_e){return M(Me),Me<=0?A(Me):te!==void 0?typeof _e=="string"?A(Me).fill(te,_e):A(Me).fill(te):A(Me)}E.alloc=function(Me,te,_e){return P(Me,te,_e)};function I(Me){return M(Me),A(Me<0?0:Z(Me)|0)}E.allocUnsafe=function(Me){return I(Me)},E.allocUnsafeSlow=function(Me){return I(Me)};function j(Me,te){if((typeof te!="string"||te==="")&&(te="utf8"),!E.isEncoding(te))throw new TypeError("Unknown encoding: "+te);const _e=fe(Me,te)|0;let je=A(_e);const We=je.write(Me,te);return We!==_e&&(je=je.slice(0,We)),je}function B(Me){const te=Me.length<0?0:Z(Me.length)|0,_e=A(te);for(let je=0;je<te;je+=1)_e[je]=Me[je]&255;return _e}function F(Me){if(Qe(Me,u)){const te=new u(Me);return N(te.buffer,te.byteOffset,te.byteLength)}return B(Me)}function N(Me,te,_e){if(te<0||Me.byteLength<te)throw new RangeError('"offset" is outside of buffer bounds');if(Me.byteLength<te+(_e||0))throw new RangeError('"length" is outside of buffer bounds');let je;return te===void 0&&_e===void 0?je=new u(Me):_e===void 0?je=new u(Me,te):je=new u(Me,te,_e),Object.setPrototypeOf(je,E.prototype),je}function ee(Me){if(E.isBuffer(Me)){const te=Z(Me.length)|0,_e=A(te);return _e.length===0||Me.copy(_e,0,0,te),_e}if(Me.length!==void 0)return typeof Me.length!="number"||Wt(Me.length)?A(0):B(Me);if(Me.type==="Buffer"&&Array.isArray(Me.data))return B(Me.data)}function Z(Me){if(Me>=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t.toString(16)+" bytes");return Me|0}function re(Me){return+Me!=Me&&(Me=0),E.alloc(+Me)}E.isBuffer=function(te){return te!=null&&te._isBuffer===!0&&te!==E.prototype},E.compare=function(te,_e){if(Qe(te,u)&&(te=E.from(te,te.offset,te.byteLength)),Qe(_e,u)&&(_e=E.from(_e,_e.offset,_e.byteLength)),!E.isBuffer(te)||!E.isBuffer(_e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(te===_e)return 0;let je=te.length,We=_e.length;for(let et=0,Ye=Math.min(je,We);et<Ye;++et)if(te[et]!==_e[et]){je=te[et],We=_e[et];break}return je<We?-1:We<je?1:0},E.isEncoding=function(te){switch(String(te).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},E.concat=function(te,_e){if(!Array.isArray(te))throw new TypeError('"list" argument must be an Array of Buffers');if(te.length===0)return E.alloc(0);let je;if(_e===void 0)for(_e=0,je=0;je<te.length;++je)_e+=te[je].length;const We=E.allocUnsafe(_e);let et=0;for(je=0;je<te.length;++je){let Ye=te[je];if(Qe(Ye,u))et+Ye.length>We.length?(E.isBuffer(Ye)||(Ye=E.from(Ye)),Ye.copy(We,et)):u.prototype.set.call(We,Ye,et);else if(E.isBuffer(Ye))Ye.copy(We,et);else throw new TypeError('"list" argument must be an Array of Buffers');et+=Ye.length}return We};function fe(Me,te){if(E.isBuffer(Me))return Me.length;if(h.isView(Me)||Qe(Me,h))return Me.byteLength;if(typeof Me!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Me);const _e=Me.length,je=arguments.length>2&&arguments[2]===!0;if(!je&&_e===0)return 0;let We=!1;for(;;)switch(te){case"ascii":case"latin1":case"binary":return _e;case"utf8":case"utf-8":return ht(Me).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e*2;case"hex":return _e>>>1;case"base64":return jt(Me).length;default:if(We)return je?-1:ht(Me).length;te=(""+te).toLowerCase(),We=!0}}E.byteLength=fe;function V(Me,te,_e){let je=!1;if((te===void 0||te<0)&&(te=0),te>this.length||((_e===void 0||_e>this.length)&&(_e=this.length),_e<=0)||(_e>>>=0,te>>>=0,_e<=te))return"";for(Me||(Me="utf8");;)switch(Me){case"hex":return D(this,te,_e);case"utf8":case"utf-8":return x(this,te,_e);case"ascii":return d(this,te,_e);case"latin1":case"binary":return k(this,te,_e);case"base64":return m(this,te,_e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,te,_e);default:if(je)throw new TypeError("Unknown encoding: "+Me);Me=(Me+"").toLowerCase(),je=!0}}E.prototype._isBuffer=!0;function le(Me,te,_e){const je=Me[te];Me[te]=Me[_e],Me[_e]=je}E.prototype.swap16=function(){const te=this.length;if(te%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _e=0;_e<te;_e+=2)le(this,_e,_e+1);return this},E.prototype.swap32=function(){const te=this.length;if(te%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _e=0;_e<te;_e+=4)le(this,_e,_e+3),le(this,_e+1,_e+2);return this},E.prototype.swap64=function(){const te=this.length;if(te%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _e=0;_e<te;_e+=8)le(this,_e,_e+7),le(this,_e+1,_e+6),le(this,_e+2,_e+5),le(this,_e+3,_e+4);return this},E.prototype.toString=function(){const te=this.length;return te===0?"":arguments.length===0?x(this,0,te):V.apply(this,arguments)},E.prototype.toLocaleString=E.prototype.toString,E.prototype.equals=function(te){if(!E.isBuffer(te))throw new TypeError("Argument must be a Buffer");return this===te?!0:E.compare(this,te)===0},E.prototype.inspect=function(){let te="";const _e=n.INSPECT_MAX_BYTES;return te=this.toString("hex",0,_e).replace(/(.{2})/g,"$1 ").trim(),this.length>_e&&(te+=" ... "),"<Buffer "+te+">"},l&&(E.prototype[l]=E.prototype.inspect),E.prototype.compare=function(te,_e,je,We,et){if(Qe(te,u)&&(te=E.from(te,te.offset,te.byteLength)),!E.isBuffer(te))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof te);if(_e===void 0&&(_e=0),je===void 0&&(je=te?te.length:0),We===void 0&&(We=0),et===void 0&&(et=this.length),_e<0||je>te.length||We<0||et>this.length)throw new RangeError("out of range index");if(We>=et&&_e>=je)return 0;if(We>=et)return-1;if(_e>=je)return 1;if(_e>>>=0,je>>>=0,We>>>=0,et>>>=0,this===te)return 0;let Ye=et-We,De=je-_e;const Ht=Math.min(Ye,De),Mt=this.slice(We,et),ge=te.slice(_e,je);for(let Dt=0;Dt<Ht;++Dt)if(Mt[Dt]!==ge[Dt]){Ye=Mt[Dt],De=ge[Dt];break}return Ye<De?-1:De<Ye?1:0};function he(Me,te,_e,je,We){if(Me.length===0)return-1;if(typeof _e=="string"?(je=_e,_e=0):_e>2147483647?_e=2147483647:_e<-2147483648&&(_e=-2147483648),_e=+_e,Wt(_e)&&(_e=We?0:Me.length-1),_e<0&&(_e=Me.length+_e),_e>=Me.length){if(We)return-1;_e=Me.length-1}else if(_e<0)if(We)_e=0;else return-1;if(typeof te=="string"&&(te=E.from(te,je)),E.isBuffer(te))return te.length===0?-1:ye(Me,te,_e,je,We);if(typeof te=="number")return te=te&255,typeof u.prototype.indexOf=="function"?We?u.prototype.indexOf.call(Me,te,_e):u.prototype.lastIndexOf.call(Me,te,_e):ye(Me,[te],_e,je,We);throw new TypeError("val must be string, number or Buffer")}function ye(Me,te,_e,je,We){let et=1,Ye=Me.length,De=te.length;if(je!==void 0&&(je=String(je).toLowerCase(),je==="ucs2"||je==="ucs-2"||je==="utf16le"||je==="utf-16le")){if(Me.length<2||te.length<2)return-1;et=2,Ye/=2,De/=2,_e/=2}function Ht(ge,Dt){return et===1?ge[Dt]:ge.readUInt16BE(Dt*et)}let Mt;if(We){let ge=-1;for(Mt=_e;Mt<Ye;Mt++)if(Ht(Me,Mt)===Ht(te,ge===-1?0:Mt-ge)){if(ge===-1&&(ge=Mt),Mt-ge+1===De)return ge*et}else ge!==-1&&(Mt-=Mt-ge),ge=-1}else for(_e+De>Ye&&(_e=Ye-De),Mt=_e;Mt>=0;Mt--){let ge=!0;for(let Dt=0;Dt<De;Dt++)if(Ht(Me,Mt+Dt)!==Ht(te,Dt)){ge=!1;break}if(ge)return Mt}return-1}E.prototype.includes=function(te,_e,je){return this.indexOf(te,_e,je)!==-1},E.prototype.indexOf=function(te,_e,je){return he(this,te,_e,je,!0)},E.prototype.lastIndexOf=function(te,_e,je){return he(this,te,_e,je,!1)};function L(Me,te,_e,je){_e=Number(_e)||0;const We=Me.length-_e;je?(je=Number(je),je>We&&(je=We)):je=We;const et=te.length;je>et/2&&(je=et/2);let Ye;for(Ye=0;Ye<je;++Ye){const De=parseInt(te.substr(Ye*2,2),16);if(Wt(De))return Ye;Me[_e+Ye]=De}return Ye}function p(Me,te,_e,je){return Ge(ht(te,Me.length-_e),Me,_e,je)}function y(Me,te,_e,je){return Ge(at(te),Me,_e,je)}function S(Me,te,_e,je){return Ge(jt(te),Me,_e,je)}function c(Me,te,_e,je){return Ge(bt(te,Me.length-_e),Me,_e,je)}E.prototype.write=function(te,_e,je,We){if(_e===void 0)We="utf8",je=this.length,_e=0;else if(je===void 0&&typeof _e=="string")We=_e,je=this.length,_e=0;else if(isFinite(_e))_e=_e>>>0,isFinite(je)?(je=je>>>0,We===void 0&&(We="utf8")):(We=je,je=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const et=this.length-_e;if((je===void 0||je>et)&&(je=et),te.length>0&&(je<0||_e<0)||_e>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");let Ye=!1;for(;;)switch(We){case"hex":return L(this,te,_e,je);case"utf8":case"utf-8":return p(this,te,_e,je);case"ascii":case"latin1":case"binary":return y(this,te,_e,je);case"base64":return S(this,te,_e,je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c(this,te,_e,je);default:if(Ye)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ye=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m(Me,te,_e){return te===0&&_e===Me.length?e.fromByteArray(Me):e.fromByteArray(Me.slice(te,_e))}function x(Me,te,_e){_e=Math.min(Me.length,_e);const je=[];let We=te;for(;We<_e;){const et=Me[We];let Ye=null,De=et>239?4:et>223?3:et>191?2:1;if(We+De<=_e){let Ht,Mt,ge,Dt;switch(De){case 1:et<128&&(Ye=et);break;case 2:Ht=Me[We+1],(Ht&192)===128&&(Dt=(et&31)<<6|Ht&63,Dt>127&&(Ye=Dt));break;case 3:Ht=Me[We+1],Mt=Me[We+2],(Ht&192)===128&&(Mt&192)===128&&(Dt=(et&15)<<12|(Ht&63)<<6|Mt&63,Dt>2047&&(Dt<55296||Dt>57343)&&(Ye=Dt));break;case 4:Ht=Me[We+1],Mt=Me[We+2],ge=Me[We+3],(Ht&192)===128&&(Mt&192)===128&&(ge&192)===128&&(Dt=(et&15)<<18|(Ht&63)<<12|(Mt&63)<<6|ge&63,Dt>65535&&Dt<1114112&&(Ye=Dt))}}Ye===null?(Ye=65533,De=1):Ye>65535&&(Ye-=65536,je.push(Ye>>>10&1023|55296),Ye=56320|Ye&1023),je.push(Ye),We+=De}return b(je)}const T=4096;function b(Me){const te=Me.length;if(te<=T)return String.fromCharCode.apply(String,Me);let _e="",je=0;for(;je<te;)_e+=String.fromCharCode.apply(String,Me.slice(je,je+=T));return _e}function d(Me,te,_e){let je="";_e=Math.min(Me.length,_e);for(let We=te;We<_e;++We)je+=String.fromCharCode(Me[We]&127);return je}function k(Me,te,_e){let je="";_e=Math.min(Me.length,_e);for(let We=te;We<_e;++We)je+=String.fromCharCode(Me[We]);return je}function D(Me,te,_e){const je=Me.length;(!te||te<0)&&(te=0),(!_e||_e<0||_e>je)&&(_e=je);let We="";for(let et=te;et<_e;++et)We+=Et[Me[et]];return We}function O(Me,te,_e){const je=Me.slice(te,_e);let We="";for(let et=0;et<je.length-1;et+=2)We+=String.fromCharCode(je[et]+je[et+1]*256);return We}E.prototype.slice=function(te,_e){const je=this.length;te=~~te,_e=_e===void 0?je:~~_e,te<0?(te+=je,te<0&&(te=0)):te>je&&(te=je),_e<0?(_e+=je,_e<0&&(_e=0)):_e>je&&(_e=je),_e<te&&(_e=te);const We=this.subarray(te,_e);return Object.setPrototypeOf(We,E.prototype),We};function Q(Me,te,_e){if(Me%1!==0||Me<0)throw new RangeError("offset is not uint");if(Me+te>_e)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUintLE=E.prototype.readUIntLE=function(te,_e,je){te=te>>>0,_e=_e>>>0,je||Q(te,_e,this.length);let We=this[te],et=1,Ye=0;for(;++Ye<_e&&(et*=256);)We+=this[te+Ye]*et;return We},E.prototype.readUintBE=E.prototype.readUIntBE=function(te,_e,je){te=te>>>0,_e=_e>>>0,je||Q(te,_e,this.length);let We=this[te+--_e],et=1;for(;_e>0&&(et*=256);)We+=this[te+--_e]*et;return We},E.prototype.readUint8=E.prototype.readUInt8=function(te,_e){return te=te>>>0,_e||Q(te,1,this.length),this[te]},E.prototype.readUint16LE=E.prototype.readUInt16LE=function(te,_e){return te=te>>>0,_e||Q(te,2,this.length),this[te]|this[te+1]<<8},E.prototype.readUint16BE=E.prototype.readUInt16BE=function(te,_e){return te=te>>>0,_e||Q(te,2,this.length),this[te]<<8|this[te+1]},E.prototype.readUint32LE=E.prototype.readUInt32LE=function(te,_e){return te=te>>>0,_e||Q(te,4,this.length),(this[te]|this[te+1]<<8|this[te+2]<<16)+this[te+3]*16777216},E.prototype.readUint32BE=E.prototype.readUInt32BE=function(te,_e){return te=te>>>0,_e||Q(te,4,this.length),this[te]*16777216+(this[te+1]<<16|this[te+2]<<8|this[te+3])},E.prototype.readBigUInt64LE=Ct(function(te){te=te>>>0,dt(te,"offset");const _e=this[te],je=this[te+7];(_e===void 0||je===void 0)&&Tt(te,this.length-8);const We=_e+this[++te]*2**8+this[++te]*2**16+this[++te]*2**24,et=this[++te]+this[++te]*2**8+this[++te]*2**16+je*2**24;return BigInt(We)+(BigInt(et)<<BigInt(32))}),E.prototype.readBigUInt64BE=Ct(function(te){te=te>>>0,dt(te,"offset");const _e=this[te],je=this[te+7];(_e===void 0||je===void 0)&&Tt(te,this.length-8);const We=_e*2**24+this[++te]*2**16+this[++te]*2**8+this[++te],et=this[++te]*2**24+this[++te]*2**16+this[++te]*2**8+je;return(BigInt(We)<<BigInt(32))+BigInt(et)}),E.prototype.readIntLE=function(te,_e,je){te=te>>>0,_e=_e>>>0,je||Q(te,_e,this.length);let We=this[te],et=1,Ye=0;for(;++Ye<_e&&(et*=256);)We+=this[te+Ye]*et;return et*=128,We>=et&&(We-=Math.pow(2,8*_e)),We},E.prototype.readIntBE=function(te,_e,je){te=te>>>0,_e=_e>>>0,je||Q(te,_e,this.length);let We=_e,et=1,Ye=this[te+--We];for(;We>0&&(et*=256);)Ye+=this[te+--We]*et;return et*=128,Ye>=et&&(Ye-=Math.pow(2,8*_e)),Ye},E.prototype.readInt8=function(te,_e){return te=te>>>0,_e||Q(te,1,this.length),this[te]&128?(255-this[te]+1)*-1:this[te]},E.prototype.readInt16LE=function(te,_e){te=te>>>0,_e||Q(te,2,this.length);const je=this[te]|this[te+1]<<8;return je&32768?je|4294901760:je},E.prototype.readInt16BE=function(te,_e){te=te>>>0,_e||Q(te,2,this.length);const je=this[te+1]|this[te]<<8;return je&32768?je|4294901760:je},E.prototype.readInt32LE=function(te,_e){return te=te>>>0,_e||Q(te,4,this.length),this[te]|this[te+1]<<8|this[te+2]<<16|this[te+3]<<24},E.prototype.readInt32BE=function(te,_e){return te=te>>>0,_e||Q(te,4,this.length),this[te]<<24|this[te+1]<<16|this[te+2]<<8|this[te+3]},E.prototype.readBigInt64LE=Ct(function(te){te=te>>>0,dt(te,"offset");const _e=this[te],je=this[te+7];(_e===void 0||je===void 0)&&Tt(te,this.length-8);const We=this[te+4]+this[te+5]*2**8+this[te+6]*2**16+(je<<24);return(BigInt(We)<<BigInt(32))+BigInt(_e+this[++te]*2**8+this[++te]*2**16+this[++te]*2**24)}),E.prototype.readBigInt64BE=Ct(function(te){te=te>>>0,dt(te,"offset");const _e=this[te],je=this[te+7];(_e===void 0||je===void 0)&&Tt(te,this.length-8);const We=(_e<<24)+this[++te]*2**16+this[++te]*2**8+this[++te];return(BigInt(We)<<BigInt(32))+BigInt(this[++te]*2**24+this[++te]*2**16+this[++te]*2**8+je)}),E.prototype.readFloatLE=function(te,_e){return te=te>>>0,_e||Q(te,4,this.length),o.read(this,te,!0,23,4)},E.prototype.readFloatBE=function(te,_e){return te=te>>>0,_e||Q(te,4,this.length),o.read(this,te,!1,23,4)},E.prototype.readDoubleLE=function(te,_e){return te=te>>>0,_e||Q(te,8,this.length),o.read(this,te,!0,52,8)},E.prototype.readDoubleBE=function(te,_e){return te=te>>>0,_e||Q(te,8,this.length),o.read(this,te,!1,52,8)};function J(Me,te,_e,je,We,et){if(!E.isBuffer(Me))throw new TypeError('"buffer" argument must be a Buffer instance');if(te>We||te<et)throw new RangeError('"value" argument is out of bounds');if(_e+je>Me.length)throw new RangeError("Index out of range")}E.prototype.writeUintLE=E.prototype.writeUIntLE=function(te,_e,je,We){if(te=+te,_e=_e>>>0,je=je>>>0,!We){const De=Math.pow(2,8*je)-1;J(this,te,_e,je,De,0)}let et=1,Ye=0;for(this[_e]=te&255;++Ye<je&&(et*=256);)this[_e+Ye]=te/et&255;return _e+je},E.prototype.writeUintBE=E.prototype.writeUIntBE=function(te,_e,je,We){if(te=+te,_e=_e>>>0,je=je>>>0,!We){const De=Math.pow(2,8*je)-1;J(this,te,_e,je,De,0)}let et=je-1,Ye=1;for(this[_e+et]=te&255;--et>=0&&(Ye*=256);)this[_e+et]=te/Ye&255;return _e+je},E.prototype.writeUint8=E.prototype.writeUInt8=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,1,255,0),this[_e]=te&255,_e+1},E.prototype.writeUint16LE=E.prototype.writeUInt16LE=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,2,65535,0),this[_e]=te&255,this[_e+1]=te>>>8,_e+2},E.prototype.writeUint16BE=E.prototype.writeUInt16BE=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,2,65535,0),this[_e]=te>>>8,this[_e+1]=te&255,_e+2},E.prototype.writeUint32LE=E.prototype.writeUInt32LE=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,4,4294967295,0),this[_e+3]=te>>>24,this[_e+2]=te>>>16,this[_e+1]=te>>>8,this[_e]=te&255,_e+4},E.prototype.writeUint32BE=E.prototype.writeUInt32BE=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,4,4294967295,0),this[_e]=te>>>24,this[_e+1]=te>>>16,this[_e+2]=te>>>8,this[_e+3]=te&255,_e+4};function X(Me,te,_e,je,We){st(te,je,We,Me,_e,7);let et=Number(te&BigInt(4294967295));Me[_e++]=et,et=et>>8,Me[_e++]=et,et=et>>8,Me[_e++]=et,et=et>>8,Me[_e++]=et;let Ye=Number(te>>BigInt(32)&BigInt(4294967295));return Me[_e++]=Ye,Ye=Ye>>8,Me[_e++]=Ye,Ye=Ye>>8,Me[_e++]=Ye,Ye=Ye>>8,Me[_e++]=Ye,_e}function U(Me,te,_e,je,We){st(te,je,We,Me,_e,7);let et=Number(te&BigInt(4294967295));Me[_e+7]=et,et=et>>8,Me[_e+6]=et,et=et>>8,Me[_e+5]=et,et=et>>8,Me[_e+4]=et;let Ye=Number(te>>BigInt(32)&BigInt(4294967295));return Me[_e+3]=Ye,Ye=Ye>>8,Me[_e+2]=Ye,Ye=Ye>>8,Me[_e+1]=Ye,Ye=Ye>>8,Me[_e]=Ye,_e+8}E.prototype.writeBigUInt64LE=Ct(function(te,_e=0){return X(this,te,_e,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeBigUInt64BE=Ct(function(te,_e=0){return U(this,te,_e,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeIntLE=function(te,_e,je,We){if(te=+te,_e=_e>>>0,!We){const Ht=Math.pow(2,8*je-1);J(this,te,_e,je,Ht-1,-Ht)}let et=0,Ye=1,De=0;for(this[_e]=te&255;++et<je&&(Ye*=256);)te<0&&De===0&&this[_e+et-1]!==0&&(De=1),this[_e+et]=(te/Ye>>0)-De&255;return _e+je},E.prototype.writeIntBE=function(te,_e,je,We){if(te=+te,_e=_e>>>0,!We){const Ht=Math.pow(2,8*je-1);J(this,te,_e,je,Ht-1,-Ht)}let et=je-1,Ye=1,De=0;for(this[_e+et]=te&255;--et>=0&&(Ye*=256);)te<0&&De===0&&this[_e+et+1]!==0&&(De=1),this[_e+et]=(te/Ye>>0)-De&255;return _e+je},E.prototype.writeInt8=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,1,127,-128),te<0&&(te=255+te+1),this[_e]=te&255,_e+1},E.prototype.writeInt16LE=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,2,32767,-32768),this[_e]=te&255,this[_e+1]=te>>>8,_e+2},E.prototype.writeInt16BE=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,2,32767,-32768),this[_e]=te>>>8,this[_e+1]=te&255,_e+2},E.prototype.writeInt32LE=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,4,2147483647,-2147483648),this[_e]=te&255,this[_e+1]=te>>>8,this[_e+2]=te>>>16,this[_e+3]=te>>>24,_e+4},E.prototype.writeInt32BE=function(te,_e,je){return te=+te,_e=_e>>>0,je||J(this,te,_e,4,2147483647,-2147483648),te<0&&(te=4294967295+te+1),this[_e]=te>>>24,this[_e+1]=te>>>16,this[_e+2]=te>>>8,this[_e+3]=te&255,_e+4},E.prototype.writeBigInt64LE=Ct(function(te,_e=0){return X(this,te,_e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),E.prototype.writeBigInt64BE=Ct(function(te,_e=0){return U(this,te,_e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function z(Me,te,_e,je,We,et){if(_e+je>Me.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("Index out of range")}function ie(Me,te,_e,je,We){return te=+te,_e=_e>>>0,We||z(Me,te,_e,4),o.write(Me,te,_e,je,23,4),_e+4}E.prototype.writeFloatLE=function(te,_e,je){return ie(this,te,_e,!0,je)},E.prototype.writeFloatBE=function(te,_e,je){return ie(this,te,_e,!1,je)};function de(Me,te,_e,je,We){return te=+te,_e=_e>>>0,We||z(Me,te,_e,8),o.write(Me,te,_e,je,52,8),_e+8}E.prototype.writeDoubleLE=function(te,_e,je){return de(this,te,_e,!0,je)},E.prototype.writeDoubleBE=function(te,_e,je){return de(this,te,_e,!1,je)},E.prototype.copy=function(te,_e,je,We){if(!E.isBuffer(te))throw new TypeError("argument should be a Buffer");if(je||(je=0),!We&&We!==0&&(We=this.length),_e>=te.length&&(_e=te.length),_e||(_e=0),We>0&&We<je&&(We=je),We===je||te.length===0||this.length===0)return 0;if(_e<0)throw new RangeError("targetStart out of bounds");if(je<0||je>=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),te.length-_e<We-je&&(We=te.length-_e+je);const et=We-je;return this===te&&typeof u.prototype.copyWithin=="function"?this.copyWithin(_e,je,We):u.prototype.set.call(te,this.subarray(je,We),_e),et},E.prototype.fill=function(te,_e,je,We){if(typeof te=="string"){if(typeof _e=="string"?(We=_e,_e=0,je=this.length):typeof je=="string"&&(We=je,je=this.length),We!==void 0&&typeof We!="string")throw new TypeError("encoding must be a string");if(typeof We=="string"&&!E.isEncoding(We))throw new TypeError("Unknown encoding: "+We);if(te.length===1){const Ye=te.charCodeAt(0);(We==="utf8"&&Ye<128||We==="latin1")&&(te=Ye)}}else typeof te=="number"?te=te&255:typeof te=="boolean"&&(te=Number(te));if(_e<0||this.length<_e||this.length<je)throw new RangeError("Out of range index");if(je<=_e)return this;_e=_e>>>0,je=je===void 0?this.length:je>>>0,te||(te=0);let et;if(typeof te=="number")for(et=_e;et<je;++et)this[et]=te;else{const Ye=E.isBuffer(te)?te:E.from(te,We),De=Ye.length;if(De===0)throw new TypeError('The value "'+te+'" is invalid for argument "value"');for(et=0;et<je-_e;++et)this[et+_e]=Ye[et%De]}return this};const me={};function pe(Me,te,_e){me[Me]=class extends _e{constructor(){super(),Object.defineProperty(this,"message",{value:te.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Me}]`,this.stack,delete this.name}get code(){return Me}set code(We){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:We,writable:!0})}toString(){return`${this.name} [${Me}]: ${this.message}`}}}pe("ERR_BUFFER_OUT_OF_BOUNDS",function(Me){return Me?`${Me} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),pe("ERR_INVALID_ARG_TYPE",function(Me,te){return`The "${Me}" argument must be of type number. Received type ${typeof te}`},TypeError),pe("ERR_OUT_OF_RANGE",function(Me,te,_e){let je=`The value of "${Me}" is out of range.`,We=_e;return Number.isInteger(_e)&&Math.abs(_e)>2**32?We=qe(String(_e)):typeof _e=="bigint"&&(We=String(_e),(_e>BigInt(2)**BigInt(32)||_e<-(BigInt(2)**BigInt(32)))&&(We=qe(We)),We+="n"),je+=` It must be ${te}. Received ${We}`,je},RangeError);function qe(Me){let te="",_e=Me.length;const je=Me[0]==="-"?1:0;for(;_e>=je+4;_e-=3)te=`_${Me.slice(_e-3,_e)}${te}`;return`${Me.slice(0,_e)}${te}`}function mt(Me,te,_e){dt(te,"offset"),(Me[te]===void 0||Me[te+_e]===void 0)&&Tt(te,Me.length-(_e+1))}function st(Me,te,_e,je,We,et){if(Me>_e||Me<te){const Ye=typeof te=="bigint"?"n":"";let De;throw te===0||te===BigInt(0)?De=`>= 0${Ye} and < 2${Ye} ** ${(et+1)*8}${Ye}`:De=`>= -(2${Ye} ** ${(et+1)*8-1}${Ye}) and < 2 ** ${(et+1)*8-1}${Ye}`,new me.ERR_OUT_OF_RANGE("value",De,Me)}mt(je,We,et)}function dt(Me,te){if(typeof Me!="number")throw new me.ERR_INVALID_ARG_TYPE(te,"number",Me)}function Tt(Me,te,_e){throw Math.floor(Me)!==Me?(dt(Me,_e),new me.ERR_OUT_OF_RANGE("offset","an integer",Me)):te<0?new me.ERR_BUFFER_OUT_OF_BOUNDS:new me.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${te}`,Me)}const lt=/[^+/0-9A-Za-z-_]/g;function Je(Me){if(Me=Me.split("=")[0],Me=Me.trim().replace(lt,""),Me.length<2)return"";for(;Me.length%4!==0;)Me=Me+"=";return Me}function ht(Me,te){te=te||1/0;let _e;const je=Me.length;let We=null;const et=[];for(let Ye=0;Ye<je;++Ye){if(_e=Me.charCodeAt(Ye),_e>55295&&_e<57344){if(!We){if(_e>56319){(te-=3)>-1&&et.push(239,191,189);continue}else if(Ye+1===je){(te-=3)>-1&&et.push(239,191,189);continue}We=_e;continue}if(_e<56320){(te-=3)>-1&&et.push(239,191,189),We=_e;continue}_e=(We-55296<<10|_e-56320)+65536}else We&&(te-=3)>-1&&et.push(239,191,189);if(We=null,_e<128){if((te-=1)<0)break;et.push(_e)}else if(_e<2048){if((te-=2)<0)break;et.push(_e>>6|192,_e&63|128)}else if(_e<65536){if((te-=3)<0)break;et.push(_e>>12|224,_e>>6&63|128,_e&63|128)}else if(_e<1114112){if((te-=4)<0)break;et.push(_e>>18|240,_e>>12&63|128,_e>>6&63|128,_e&63|128)}else throw new Error("Invalid code point")}return et}function at(Me){const te=[];for(let _e=0;_e<Me.length;++_e)te.push(Me.charCodeAt(_e)&255);return te}function bt(Me,te){let _e,je,We;const et=[];for(let Ye=0;Ye<Me.length&&!((te-=2)<0);++Ye)_e=Me.charCodeAt(Ye),je=_e>>8,We=_e%256,et.push(We),et.push(je);return et}function jt(Me){return e.toByteArray(Je(Me))}function Ge(Me,te,_e,je){let We;for(We=0;We<je&&!(We+_e>=te.length||We>=Me.length);++We)te[We+_e]=Me[We];return We}function Qe(Me,te){return Me instanceof te||Me!=null&&Me.constructor!=null&&Me.constructor.name!=null&&Me.constructor.name===te.name}function Wt(Me){return Me!==Me}const Et=function(){const Me="0123456789abcdef",te=new Array(256);for(let _e=0;_e<16;++_e){const je=_e*16;for(let We=0;We<16;++We)te[je+We]=Me[_e]+Me[We]}return te}();function Ct(Me){return typeof BigInt>"u"?Kt:Me}function Kt(){throw new Error("BigInt not supported")}})(buffer$1);const Buffer$C=buffer$1.Buffer,Blob$1=buffer$1.Blob,BlobOptions=buffer$1.BlobOptions,Buffer$1$1=buffer$1.Buffer,File=buffer$1.File,FileOptions=buffer$1.FileOptions,INSPECT_MAX_BYTES=buffer$1.INSPECT_MAX_BYTES,SlowBuffer=buffer$1.SlowBuffer,TranscodeEncoding=buffer$1.TranscodeEncoding,atob$1=buffer$1.atob,btoa$1=buffer$1.btoa,constants$2=buffer$1.constants,isAscii=buffer$1.isAscii,isUtf8=buffer$1.isUtf8,kMaxLength=buffer$1.kMaxLength,kStringMaxLength=buffer$1.kStringMaxLength,resolveObjectURL=buffer$1.resolveObjectURL,transcode=buffer$1.transcode,dist=Object.freeze(Object.defineProperty({__proto__:null,Blob:Blob$1,BlobOptions,Buffer:Buffer$1$1,File,FileOptions,INSPECT_MAX_BYTES,SlowBuffer,TranscodeEncoding,atob:atob$1,btoa:btoa$1,constants:constants$2,default:Buffer$C,isAscii,isUtf8,kMaxLength,kStringMaxLength,resolveObjectURL,transcode},Symbol.toStringTag,{value:"Module"}));var atob=function(e){return window$1$1.atob?window$1$1.atob(e):Buffer$C.from(e,"base64").toString("binary")};function decodeB64ToUint8Array(n){for(var e=atob(n),o=new Uint8Array(e.length),l=0;l<e.length;l++)o[l]=e.charCodeAt(l);return o}/*! @name m3u8-parser @version 4.8.0 @license Apache-2.0 */var LineStream=function(n){_inheritsLoose(e,n);function e(){var l;return l=n.call(this)||this,l.buffer="",l}var o=e.prototype;return o.push=function(t){var u;for(this.buffer+=t,u=this.buffer.indexOf(`
`);u>-1;u=this.buffer.indexOf(`
`))this.trigger("data",this.buffer.substring(0,u)),this.buffer=this.buffer.substring(u+1)},e}(Stream),TAB="	",parseByterange=function(e){var o=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),l={};return o[1]&&(l.length=parseInt(o[1],10)),o[2]&&(l.offset=parseInt(o[2],10)),l},attributeSeparator=function(){var e="[^=]*",o='"[^"]*"|[^,]*',l="(?:"+e+")=(?:"+o+")";return new RegExp("(?:^|,)("+l+")")},parseAttributes$1=function(e){for(var o=e.split(attributeSeparator()),l={},t=o.length,u;t--;)o[t]!==""&&(u=/([^=]*)=(.*)/.exec(o[t]).slice(1),u[0]=u[0].replace(/^\s+|\s+$/g,""),u[1]=u[1].replace(/^\s+|\s+$/g,""),u[1]=u[1].replace(/^['"](.*)['"]$/g,"$1"),l[u[0]]=u[1]);return l},ParseStream=function(n){_inheritsLoose(e,n);function e(){var l;return l=n.call(this)||this,l.customParsers=[],l.tagMappers=[],l}var o=e.prototype;return o.push=function(t){var u=this,h,v;if(t=t.trim(),t.length!==0){if(t[0]!=="#"){this.trigger("data",{type:"uri",uri:t});return}var w=this.tagMappers.reduce(function(A,E){var C=E(t);return C===t?A:A.concat([C])},[t]);w.forEach(function(A){for(var E=0;E<u.customParsers.length;E++)if(u.customParsers[E].call(u,A))return;if(A.indexOf("#EXT")!==0){u.trigger("data",{type:"comment",text:A.slice(1)});return}if(A=A.replace("\r",""),h=/^#EXTM3U/.exec(A),h){u.trigger("data",{type:"tag",tagType:"m3u"});return}if(h=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(A),h){v={type:"tag",tagType:"inf"},h[1]&&(v.duration=parseFloat(h[1])),h[2]&&(v.title=h[2]),u.trigger("data",v);return}if(h=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(A),h){v={type:"tag",tagType:"targetduration"},h[1]&&(v.duration=parseInt(h[1],10)),u.trigger("data",v);return}if(h=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(A),h){v={type:"tag",tagType:"version"},h[1]&&(v.version=parseInt(h[1],10)),u.trigger("data",v);return}if(h=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(A),h){v={type:"tag",tagType:"media-sequence"},h[1]&&(v.number=parseInt(h[1],10)),u.trigger("data",v);return}if(h=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(A),h){v={type:"tag",tagType:"discontinuity-sequence"},h[1]&&(v.number=parseInt(h[1],10)),u.trigger("data",v);return}if(h=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(A),h){v={type:"tag",tagType:"playlist-type"},h[1]&&(v.playlistType=h[1]),u.trigger("data",v);return}if(h=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(A),h){v=_extends$2(parseByterange(h[1]),{type:"tag",tagType:"byterange"}),u.trigger("data",v);return}if(h=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(A),h){v={type:"tag",tagType:"allow-cache"},h[1]&&(v.allowed=!/NO/.test(h[1])),u.trigger("data",v);return}if(h=/^#EXT-X-MAP:?(.*)$/.exec(A),h){if(v={type:"tag",tagType:"map"},h[1]){var C=parseAttributes$1(h[1]);C.URI&&(v.uri=C.URI),C.BYTERANGE&&(v.byterange=parseByterange(C.BYTERANGE))}u.trigger("data",v);return}if(h=/^#EXT-X-STREAM-INF:?(.*)$/.exec(A),h){if(v={type:"tag",tagType:"stream-inf"},h[1]){if(v.attributes=parseAttributes$1(h[1]),v.attributes.RESOLUTION){var M=v.attributes.RESOLUTION.split("x"),P={};M[0]&&(P.width=parseInt(M[0],10)),M[1]&&(P.height=parseInt(M[1],10)),v.attributes.RESOLUTION=P}v.attributes.BANDWIDTH&&(v.attributes.BANDWIDTH=parseInt(v.attributes.BANDWIDTH,10)),v.attributes["FRAME-RATE"]&&(v.attributes["FRAME-RATE"]=parseFloat(v.attributes["FRAME-RATE"])),v.attributes["PROGRAM-ID"]&&(v.attributes["PROGRAM-ID"]=parseInt(v.attributes["PROGRAM-ID"],10))}u.trigger("data",v);return}if(h=/^#EXT-X-MEDIA:?(.*)$/.exec(A),h){v={type:"tag",tagType:"media"},h[1]&&(v.attributes=parseAttributes$1(h[1])),u.trigger("data",v);return}if(h=/^#EXT-X-ENDLIST/.exec(A),h){u.trigger("data",{type:"tag",tagType:"endlist"});return}if(h=/^#EXT-X-DISCONTINUITY/.exec(A),h){u.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(h=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(A),h){v={type:"tag",tagType:"program-date-time"},h[1]&&(v.dateTimeString=h[1],v.dateTimeObject=new Date(h[1])),u.trigger("data",v);return}if(h=/^#EXT-X-KEY:?(.*)$/.exec(A),h){v={type:"tag",tagType:"key"},h[1]&&(v.attributes=parseAttributes$1(h[1]),v.attributes.IV&&(v.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(v.attributes.IV=v.attributes.IV.substring(2)),v.attributes.IV=v.attributes.IV.match(/.{8}/g),v.attributes.IV[0]=parseInt(v.attributes.IV[0],16),v.attributes.IV[1]=parseInt(v.attributes.IV[1],16),v.attributes.IV[2]=parseInt(v.attributes.IV[2],16),v.attributes.IV[3]=parseInt(v.attributes.IV[3],16),v.attributes.IV=new Uint32Array(v.attributes.IV))),u.trigger("data",v);return}if(h=/^#EXT-X-START:?(.*)$/.exec(A),h){v={type:"tag",tagType:"start"},h[1]&&(v.attributes=parseAttributes$1(h[1]),v.attributes["TIME-OFFSET"]=parseFloat(v.attributes["TIME-OFFSET"]),v.attributes.PRECISE=/YES/.test(v.attributes.PRECISE)),u.trigger("data",v);return}if(h=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(A),h){v={type:"tag",tagType:"cue-out-cont"},h[1]?v.data=h[1]:v.data="",u.trigger("data",v);return}if(h=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(A),h){v={type:"tag",tagType:"cue-out"},h[1]?v.data=h[1]:v.data="",u.trigger("data",v);return}if(h=/^#EXT-X-CUE-IN:?(.*)?$/.exec(A),h){v={type:"tag",tagType:"cue-in"},h[1]?v.data=h[1]:v.data="",u.trigger("data",v);return}if(h=/^#EXT-X-SKIP:(.*)$/.exec(A),h&&h[1]){v={type:"tag",tagType:"skip"},v.attributes=parseAttributes$1(h[1]),v.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(v.attributes["SKIPPED-SEGMENTS"]=parseInt(v.attributes["SKIPPED-SEGMENTS"],10)),v.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(v.attributes["RECENTLY-REMOVED-DATERANGES"]=v.attributes["RECENTLY-REMOVED-DATERANGES"].split(TAB)),u.trigger("data",v);return}if(h=/^#EXT-X-PART:(.*)$/.exec(A),h&&h[1]){v={type:"tag",tagType:"part"},v.attributes=parseAttributes$1(h[1]),["DURATION"].forEach(function(I){v.attributes.hasOwnProperty(I)&&(v.attributes[I]=parseFloat(v.attributes[I]))}),["INDEPENDENT","GAP"].forEach(function(I){v.attributes.hasOwnProperty(I)&&(v.attributes[I]=/YES/.test(v.attributes[I]))}),v.attributes.hasOwnProperty("BYTERANGE")&&(v.attributes.byterange=parseByterange(v.attributes.BYTERANGE)),u.trigger("data",v);return}if(h=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(A),h&&h[1]){v={type:"tag",tagType:"server-control"},v.attributes=parseAttributes$1(h[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(I){v.attributes.hasOwnProperty(I)&&(v.attributes[I]=parseFloat(v.attributes[I]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(I){v.attributes.hasOwnProperty(I)&&(v.attributes[I]=/YES/.test(v.attributes[I]))}),u.trigger("data",v);return}if(h=/^#EXT-X-PART-INF:(.*)$/.exec(A),h&&h[1]){v={type:"tag",tagType:"part-inf"},v.attributes=parseAttributes$1(h[1]),["PART-TARGET"].forEach(function(I){v.attributes.hasOwnProperty(I)&&(v.attributes[I]=parseFloat(v.attributes[I]))}),u.trigger("data",v);return}if(h=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(A),h&&h[1]){v={type:"tag",tagType:"preload-hint"},v.attributes=parseAttributes$1(h[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(I){if(v.attributes.hasOwnProperty(I)){v.attributes[I]=parseInt(v.attributes[I],10);var j=I==="BYTERANGE-LENGTH"?"length":"offset";v.attributes.byterange=v.attributes.byterange||{},v.attributes.byterange[j]=v.attributes[I],delete v.attributes[I]}}),u.trigger("data",v);return}if(h=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(A),h&&h[1]){v={type:"tag",tagType:"rendition-report"},v.attributes=parseAttributes$1(h[1]),["LAST-MSN","LAST-PART"].forEach(function(I){v.attributes.hasOwnProperty(I)&&(v.attributes[I]=parseInt(v.attributes[I],10))}),u.trigger("data",v);return}u.trigger("data",{type:"tag",data:A.slice(4)})})}},o.addParser=function(t){var u=this,h=t.expression,v=t.customType,w=t.dataParser,A=t.segment;typeof w!="function"&&(w=function(C){return C}),this.customParsers.push(function(E){var C=h.exec(E);if(C)return u.trigger("data",{type:"custom",data:w(E),customType:v,segment:A}),!0})},o.addTagMapper=function(t){var u=t.expression,h=t.map,v=function(A){return u.test(A)?h(A):A};this.tagMappers.push(v)},e}(Stream),camelCase=function(e){return e.toLowerCase().replace(/-(\w)/g,function(o){return o[1].toUpperCase()})},camelCaseKeys=function(e){var o={};return Object.keys(e).forEach(function(l){o[camelCase(l)]=e[l]}),o},setHoldBack=function(e){var o=e.serverControl,l=e.targetDuration,t=e.partTargetDuration;if(o){var u="#EXT-X-SERVER-CONTROL",h="holdBack",v="partHoldBack",w=l&&l*3,A=t&&t*2;l&&!o.hasOwnProperty(h)&&(o[h]=w,this.trigger("info",{message:u+" defaulting HOLD-BACK to targetDuration * 3 ("+w+")."})),w&&o[h]<w&&(this.trigger("warn",{message:u+" clamping HOLD-BACK ("+o[h]+") to targetDuration * 3 ("+w+")"}),o[h]=w),t&&!o.hasOwnProperty(v)&&(o[v]=t*3,this.trigger("info",{message:u+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+o[v]+")."})),t&&o[v]<A&&(this.trigger("warn",{message:u+" clamping PART-HOLD-BACK ("+o[v]+") to partTargetDuration * 2 ("+A+")."}),o[v]=A)}},Parser=function(n){_inheritsLoose(e,n);function e(){var l;l=n.call(this)||this,l.lineStream=new LineStream,l.parseStream=new ParseStream,l.lineStream.pipe(l.parseStream);var t=_assertThisInitialized$1(l),u=[],h={},v,w,A=!1,E=function(){},C={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},M="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",P=0;l.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var I=0,j=0;return l.on("end",function(){h.uri||!h.parts&&!h.preloadHints||(!h.map&&v&&(h.map=v),!h.key&&w&&(h.key=w),!h.timeline&&typeof P=="number"&&(h.timeline=P),l.manifest.preloadSegment=h)}),l.parseStream.on("data",function(B){var F,N;({tag:function(){({version:function(){B.version&&(this.manifest.version=B.version)},"allow-cache":function(){this.manifest.allowCache=B.allowed,"allowed"in B||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var re={};"length"in B&&(h.byterange=re,re.length=B.length,"offset"in B||(B.offset=I)),"offset"in B&&(h.byterange=re,re.offset=B.offset),I=re.offset+re.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),B.duration>0&&(h.duration=B.duration),B.duration===0&&(h.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=u},key:function(){if(!B.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(B.attributes.METHOD==="NONE"){w=null;return}if(!B.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(B.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:B.attributes};return}if(B.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:B.attributes.URI};return}if(B.attributes.KEYFORMAT===M){var re=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];if(re.indexOf(B.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(B.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),B.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(B.attributes.KEYID&&B.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:B.attributes.KEYFORMAT,keyId:B.attributes.KEYID.substring(2)},pssh:decodeB64ToUint8Array(B.attributes.URI.split(",")[1])};return}B.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),w={method:B.attributes.METHOD||"AES-128",uri:B.attributes.URI},typeof B.attributes.IV<"u"&&(w.iv=B.attributes.IV)},"media-sequence":function(){if(!isFinite(B.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+B.number});return}this.manifest.mediaSequence=B.number},"discontinuity-sequence":function(){if(!isFinite(B.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+B.number});return}this.manifest.discontinuitySequence=B.number,P=B.number},"playlist-type":function(){if(!/VOD|EVENT/.test(B.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+B.playlist});return}this.manifest.playlistType=B.playlistType},map:function(){v={},B.uri&&(v.uri=B.uri),B.byterange&&(v.byterange=B.byterange),w&&(v.key=w)},"stream-inf":function(){if(this.manifest.playlists=u,this.manifest.mediaGroups=this.manifest.mediaGroups||C,!B.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}h.attributes||(h.attributes={}),_extends$2(h.attributes,B.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||C,!(B.attributes&&B.attributes.TYPE&&B.attributes["GROUP-ID"]&&B.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var re=this.manifest.mediaGroups[B.attributes.TYPE];re[B.attributes["GROUP-ID"]]=re[B.attributes["GROUP-ID"]]||{},F=re[B.attributes["GROUP-ID"]],N={default:/yes/i.test(B.attributes.DEFAULT)},N.default?N.autoselect=!0:N.autoselect=/yes/i.test(B.attributes.AUTOSELECT),B.attributes.LANGUAGE&&(N.language=B.attributes.LANGUAGE),B.attributes.URI&&(N.uri=B.attributes.URI),B.attributes["INSTREAM-ID"]&&(N.instreamId=B.attributes["INSTREAM-ID"]),B.attributes.CHARACTERISTICS&&(N.characteristics=B.attributes.CHARACTERISTICS),B.attributes.FORCED&&(N.forced=/yes/i.test(B.attributes.FORCED)),F[B.attributes.NAME]=N},discontinuity:function(){P+=1,h.discontinuity=!0,this.manifest.discontinuityStarts.push(u.length)},"program-date-time":function(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=B.dateTimeString,this.manifest.dateTimeObject=B.dateTimeObject),h.dateTimeString=B.dateTimeString,h.dateTimeObject=B.dateTimeObject},targetduration:function(){if(!isFinite(B.duration)||B.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+B.duration});return}this.manifest.targetDuration=B.duration,setHoldBack.call(this,this.manifest)},start:function(){if(!B.attributes||isNaN(B.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:B.attributes["TIME-OFFSET"],precise:B.attributes.PRECISE}},"cue-out":function(){h.cueOut=B.data},"cue-out-cont":function(){h.cueOutCont=B.data},"cue-in":function(){h.cueIn=B.data},skip:function(){this.manifest.skip=camelCaseKeys(B.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",B.attributes,["SKIPPED-SEGMENTS"])},part:function(){var re=this;A=!0;var fe=this.manifest.segments.length,V=camelCaseKeys(B.attributes);h.parts=h.parts||[],h.parts.push(V),V.byterange&&(V.byterange.hasOwnProperty("offset")||(V.byterange.offset=j),j=V.byterange.offset+V.byterange.length);var le=h.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+le+" for segment #"+fe,B.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(he,ye){he.hasOwnProperty("lastPart")||re.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+ye+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var re=this.manifest.serverControl=camelCaseKeys(B.attributes);re.hasOwnProperty("canBlockReload")||(re.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),setHoldBack.call(this,this.manifest),re.canSkipDateranges&&!re.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var re=this.manifest.segments.length,fe=camelCaseKeys(B.attributes),V=fe.type&&fe.type==="PART";h.preloadHints=h.preloadHints||[],h.preloadHints.push(fe),fe.byterange&&(fe.byterange.hasOwnProperty("offset")||(fe.byterange.offset=V?j:0,V&&(j=fe.byterange.offset+fe.byterange.length)));var le=h.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+le+" for segment #"+re,B.attributes,["TYPE","URI"]),!!fe.type)for(var he=0;he<h.preloadHints.length-1;he++){var ye=h.preloadHints[he];ye.type&&ye.type===fe.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+le+" for segment #"+re+" has the same TYPE "+fe.type+" as preload hint #"+he})}},"rendition-report":function(){var re=camelCaseKeys(B.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(re);var fe=this.manifest.renditionReports.length-1,V=["LAST-MSN","URI"];A&&V.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+fe,B.attributes,V)},"part-inf":function(){this.manifest.partInf=camelCaseKeys(B.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",B.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),setHoldBack.call(this,this.manifest)}}[B.tagType]||E).call(t)},uri:function(){h.uri=B.uri,u.push(h),this.manifest.targetDuration&&!("duration"in h)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),h.duration=this.manifest.targetDuration),w&&(h.key=w),h.timeline=P,v&&(h.map=v),j=0,h={}},comment:function(){},custom:function(){B.segment?(h.custom=h.custom||{},h.custom[B.customType]=B.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[B.customType]=B.data)}})[B.type].call(t)}),l}var o=e.prototype;return o.warnOnMissingAttributes_=function(t,u,h){var v=[];h.forEach(function(w){u.hasOwnProperty(w)||v.push(w)}),v.length&&this.trigger("warn",{message:t+" lacks required attribute(s): "+v.join(", ")})},o.push=function(t){this.lineStream.push(t)},o.end=function(){this.lineStream.push(`
`),this.trigger("end")},o.addParser=function(t){this.parseStream.addParser(t)},o.addTagMapper=function(t){this.parseStream.addTagMapper(t)},e}(Stream),regexs={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},mediaTypes=["video","audio","text"],upperMediaTypes=["Video","Audio","Text"],translateLegacyCodec=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(o,l,t){var u=("00"+Number(l).toString(16)).slice(-2),h=("00"+Number(t).toString(16)).slice(-2);return"avc1."+u+"00"+h})},parseCodecs=function(e){e===void 0&&(e="");var o=e.split(","),l=[];return o.forEach(function(t){t=t.trim();var u;mediaTypes.forEach(function(h){var v=regexs[h].exec(t.toLowerCase());if(!(!v||v.length<=1)){u=h;var w=t.substring(0,v[1].length),A=t.replace(w,"");l.push({type:w,details:A,mediaType:h})}}),u||l.push({type:t,details:"",mediaType:"unknown"})}),l},codecsFromDefault=function(e,o){if(!e.mediaGroups.AUDIO||!o)return null;var l=e.mediaGroups.AUDIO[o];if(!l)return null;for(var t in l){var u=l[t];if(u.default&&u.playlists)return parseCodecs(u.playlists[0].attributes.CODECS)}return null},isAudioCodec=function(e){return e===void 0&&(e=""),regexs.audio.test(e.trim().toLowerCase())},isTextCodec=function(e){return e===void 0&&(e=""),regexs.text.test(e.trim().toLowerCase())},getMimeForCodec=function(e){if(!(!e||typeof e!="string")){var o=e.toLowerCase().split(",").map(function(u){return translateLegacyCodec(u.trim())}),l="video";o.length===1&&isAudioCodec(o[0])?l="audio":o.length===1&&isTextCodec(o[0])&&(l="application");var t="mp4";return o.every(function(u){return regexs.mp4.test(u)})?t="mp4":o.every(function(u){return regexs.webm.test(u)})?t="webm":o.every(function(u){return regexs.ogg.test(u)})&&(t="ogg"),l+"/"+t+';codecs="'+e+'"'}},browserSupportsCodec=function(e){return e===void 0&&(e=""),window$1$1.MediaSource&&window$1$1.MediaSource.isTypeSupported&&window$1$1.MediaSource.isTypeSupported(getMimeForCodec(e))||!1},muxerSupportsCodec=function(e){return e===void 0&&(e=""),e.toLowerCase().split(",").every(function(o){o=o.trim();for(var l=0;l<upperMediaTypes.length;l++){var t=upperMediaTypes[l];if(regexs["muxer"+t].test(o))return!0}return!1})},DEFAULT_AUDIO_CODEC="mp4a.40.2",DEFAULT_VIDEO_CODEC="avc1.4d400d",MPEGURL_REGEX=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,DASH_REGEX=/^application\/dash\+xml/i,simpleTypeFromSourceType=function(e){return MPEGURL_REGEX.test(e)?"hls":DASH_REGEX.test(e)?"dash":e==="application/vnd.videojs.vhs+json"?"vhs-json":null},countBits=function(e){return e.toString(2).length},countBytes=function(e){return Math.ceil(countBits(e)/8)},isArrayBufferView=function(e){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},isTypedArray$1=function(e){return isArrayBufferView(e)},toUint8=function(e){return e instanceof Uint8Array?e:(!Array.isArray(e)&&!isTypedArray$1(e)&&!(e instanceof ArrayBuffer)&&(typeof e!="number"||typeof e=="number"&&e!==e?e=0:e=[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},BigInt$1=window$1$1.BigInt||Number,BYTE_TABLE=[BigInt$1("0x1"),BigInt$1("0x100"),BigInt$1("0x10000"),BigInt$1("0x1000000"),BigInt$1("0x100000000"),BigInt$1("0x10000000000"),BigInt$1("0x1000000000000"),BigInt$1("0x100000000000000"),BigInt$1("0x10000000000000000")];(function(){var n=new Uint16Array([65484]),e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);return e[0]===255?"big":e[0]===204?"little":"unknown"})();var bytesToNumber=function(e,o){var l=o===void 0?{}:o,t=l.signed,u=t===void 0?!1:t,h=l.le,v=h===void 0?!1:h;e=toUint8(e);var w=v?"reduce":"reduceRight",A=e[w]?e[w]:Array.prototype[w],E=A.call(e,function(M,P,I){var j=v?I:Math.abs(I+1-e.length);return M+BigInt$1(P)*BYTE_TABLE[j]},BigInt$1(0));if(u){var C=BYTE_TABLE[e.length]/BigInt$1(2)-BigInt$1(1);E=BigInt$1(E),E>C&&(E-=C,E-=C,E-=BigInt$1(2))}return Number(E)},numberToBytes=function(e,o){var l={},t=l.le,u=t===void 0?!1:t;(typeof e!="bigint"&&typeof e!="number"||typeof e=="number"&&e!==e)&&(e=0),e=BigInt$1(e);for(var h=countBytes(e),v=new Uint8Array(new ArrayBuffer(h)),w=0;w<h;w++){var A=u?w:Math.abs(w+1-v.length);v[A]=Number(e/BYTE_TABLE[w]&BigInt$1(255)),e<0&&(v[A]=Math.abs(~v[A]),v[A]-=w===0?1:2)}return v},stringToBytes=function(e,o){if(typeof e!="string"&&e&&typeof e.toString=="function"&&(e=e.toString()),typeof e!="string")return new Uint8Array;o||(e=unescape(encodeURIComponent(e)));for(var l=new Uint8Array(e.length),t=0;t<e.length;t++)l[t]=e.charCodeAt(t);return l},concatTypedArrays=function(){for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];if(o=o.filter(function(v){return v&&(v.byteLength||v.length)&&typeof v!="string"}),o.length<=1)return toUint8(o[0]);var t=o.reduce(function(v,w,A){return v+(w.byteLength||w.length)},0),u=new Uint8Array(t),h=0;return o.forEach(function(v){v=toUint8(v),u.set(v,h),h+=v.byteLength}),u},bytesMatch=function(e,o,l){var t=l===void 0?{}:l,u=t.offset,h=u===void 0?0:u,v=t.mask,w=v===void 0?[]:v;e=toUint8(e),o=toUint8(o);var A=o.every?o.every:Array.prototype.every;return o.length&&e.length-h>=o.length&&A.call(o,function(E,C){var M=w[C]?w[C]&e[h+C]:e[h+C];return E===M})},forEachMediaGroup$1=function(e,o,l){o.forEach(function(t){for(var u in e.mediaGroups[t])for(var h in e.mediaGroups[t][u]){var v=e.mediaGroups[t][u][h];l(v,t,u,h)}})},dom$1={},conventions$2={};function find$1(n,e,o){if(o===void 0&&(o=Array.prototype),n&&typeof o.find=="function")return o.find.call(n,e);for(var l=0;l<n.length;l++)if(Object.prototype.hasOwnProperty.call(n,l)){var t=n[l];if(e.call(void 0,t,l,n))return t}}function freeze(n,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(n):n}function assign$1(n,e){if(n===null||typeof n!="object")throw new TypeError("target is not an object");for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}var MIME_TYPE=freeze({HTML:"text/html",isHTML:function(n){return n===MIME_TYPE.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),NAMESPACE$3=freeze({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(n){return n===NAMESPACE$3.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});conventions$2.assign=assign$1,conventions$2.find=find$1,conventions$2.freeze=freeze,conventions$2.MIME_TYPE=MIME_TYPE,conventions$2.NAMESPACE=NAMESPACE$3;var conventions$1=conventions$2,find=conventions$1.find,NAMESPACE$2=conventions$1.NAMESPACE;function notEmptyString(n){return n!==""}function splitOnASCIIWhitespace(n){return n?n.split(/[\t\n\f\r ]+/).filter(notEmptyString):[]}function orderedSetReducer(n,e){return n.hasOwnProperty(e)||(n[e]=!0),n}function toOrderedSet(n){if(!n)return[];var e=splitOnASCIIWhitespace(n);return Object.keys(e.reduce(orderedSetReducer,{}))}function arrayIncludes(n){return function(e){return n&&n.indexOf(e)!==-1}}function copy$1(n,e){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}function _extends(n,e){var o=n.prototype;if(!(o instanceof e)){let l=function(){};l.prototype=e.prototype,l=new l,copy$1(o,l),n.prototype=o=l}o.constructor!=n&&(typeof n!="function"&&console.error("unknown Class:"+n),o.constructor=n)}var NodeType={},ELEMENT_NODE=NodeType.ELEMENT_NODE=1,ATTRIBUTE_NODE=NodeType.ATTRIBUTE_NODE=2,TEXT_NODE=NodeType.TEXT_NODE=3,CDATA_SECTION_NODE=NodeType.CDATA_SECTION_NODE=4,ENTITY_REFERENCE_NODE=NodeType.ENTITY_REFERENCE_NODE=5,ENTITY_NODE=NodeType.ENTITY_NODE=6,PROCESSING_INSTRUCTION_NODE=NodeType.PROCESSING_INSTRUCTION_NODE=7,COMMENT_NODE=NodeType.COMMENT_NODE=8,DOCUMENT_NODE=NodeType.DOCUMENT_NODE=9,DOCUMENT_TYPE_NODE=NodeType.DOCUMENT_TYPE_NODE=10,DOCUMENT_FRAGMENT_NODE=NodeType.DOCUMENT_FRAGMENT_NODE=11,NOTATION_NODE=NodeType.NOTATION_NODE=12,ExceptionCode={},ExceptionMessage={};ExceptionCode.INDEX_SIZE_ERR=(ExceptionMessage[1]="Index size error",1),ExceptionCode.DOMSTRING_SIZE_ERR=(ExceptionMessage[2]="DOMString size error",2);var HIERARCHY_REQUEST_ERR=ExceptionCode.HIERARCHY_REQUEST_ERR=(ExceptionMessage[3]="Hierarchy request error",3);ExceptionCode.WRONG_DOCUMENT_ERR=(ExceptionMessage[4]="Wrong document",4),ExceptionCode.INVALID_CHARACTER_ERR=(ExceptionMessage[5]="Invalid character",5),ExceptionCode.NO_DATA_ALLOWED_ERR=(ExceptionMessage[6]="No data allowed",6),ExceptionCode.NO_MODIFICATION_ALLOWED_ERR=(ExceptionMessage[7]="No modification allowed",7);var NOT_FOUND_ERR=ExceptionCode.NOT_FOUND_ERR=(ExceptionMessage[8]="Not found",8);ExceptionCode.NOT_SUPPORTED_ERR=(ExceptionMessage[9]="Not supported",9);var INUSE_ATTRIBUTE_ERR=ExceptionCode.INUSE_ATTRIBUTE_ERR=(ExceptionMessage[10]="Attribute in use",10);ExceptionCode.INVALID_STATE_ERR=(ExceptionMessage[11]="Invalid state",11),ExceptionCode.SYNTAX_ERR=(ExceptionMessage[12]="Syntax error",12),ExceptionCode.INVALID_MODIFICATION_ERR=(ExceptionMessage[13]="Invalid modification",13),ExceptionCode.NAMESPACE_ERR=(ExceptionMessage[14]="Invalid namespace",14),ExceptionCode.INVALID_ACCESS_ERR=(ExceptionMessage[15]="Invalid access",15);function DOMException(n,e){if(e instanceof Error)var o=e;else o=this,Error.call(this,ExceptionMessage[n]),this.message=ExceptionMessage[n],Error.captureStackTrace&&Error.captureStackTrace(this,DOMException);return o.code=n,e&&(this.message=this.message+": "+e),o}DOMException.prototype=Error.prototype,copy$1(ExceptionCode,DOMException);function NodeList(){}NodeList.prototype={length:0,item:function(n){return n>=0&&n<this.length?this[n]:null},toString:function(n,e){for(var o=[],l=0;l<this.length;l++)serializeToString(this[l],o,n,e);return o.join("")},filter:function(n){return Array.prototype.filter.call(this,n)},indexOf:function(n){return Array.prototype.indexOf.call(this,n)}};function LiveNodeList(n,e){this._node=n,this._refresh=e,_updateLiveList(this)}function _updateLiveList(n){var e=n._node._inc||n._node.ownerDocument._inc;if(n._inc!==e){var o=n._refresh(n._node);if(__set__(n,"length",o.length),!n.$$length||o.length<n.$$length)for(var l=o.length;l in n;l++)Object.prototype.hasOwnProperty.call(n,l)&&delete n[l];copy$1(o,n),n._inc=e}}LiveNodeList.prototype.item=function(n){return _updateLiveList(this),this[n]||null},_extends(LiveNodeList,NodeList);function NamedNodeMap(){}function _findNodeIndex(n,e){for(var o=n.length;o--;)if(n[o]===e)return o}function _addNamedNode(n,e,o,l){if(l?e[_findNodeIndex(e,l)]=o:e[e.length++]=o,n){o.ownerElement=n;var t=n.ownerDocument;t&&(l&&_onRemoveAttribute(t,n,l),_onAddAttribute(t,n,o))}}function _removeNamedNode(n,e,o){var l=_findNodeIndex(e,o);if(l>=0){for(var t=e.length-1;l<t;)e[l]=e[++l];if(e.length=t,n){var u=n.ownerDocument;u&&(_onRemoveAttribute(u,n,o),o.ownerElement=null)}}else throw new DOMException(NOT_FOUND_ERR,new Error(n.tagName+"@"+o))}NamedNodeMap.prototype={length:0,item:NodeList.prototype.item,getNamedItem:function(n){for(var e=this.length;e--;){var o=this[e];if(o.nodeName==n)return o}},setNamedItem:function(n){var e=n.ownerElement;if(e&&e!=this._ownerElement)throw new DOMException(INUSE_ATTRIBUTE_ERR);var o=this.getNamedItem(n.nodeName);return _addNamedNode(this._ownerElement,this,n,o),o},setNamedItemNS:function(n){var e=n.ownerElement,o;if(e&&e!=this._ownerElement)throw new DOMException(INUSE_ATTRIBUTE_ERR);return o=this.getNamedItemNS(n.namespaceURI,n.localName),_addNamedNode(this._ownerElement,this,n,o),o},removeNamedItem:function(n){var e=this.getNamedItem(n);return _removeNamedNode(this._ownerElement,this,e),e},removeNamedItemNS:function(n,e){var o=this.getNamedItemNS(n,e);return _removeNamedNode(this._ownerElement,this,o),o},getNamedItemNS:function(n,e){for(var o=this.length;o--;){var l=this[o];if(l.localName==e&&l.namespaceURI==n)return l}return null}};function DOMImplementation$1(){}DOMImplementation$1.prototype={hasFeature:function(n,e){return!0},createDocument:function(n,e,o){var l=new Document;if(l.implementation=this,l.childNodes=new NodeList,l.doctype=o||null,o&&l.appendChild(o),e){var t=l.createElementNS(n,e);l.appendChild(t)}return l},createDocumentType:function(n,e,o){var l=new DocumentType;return l.name=n,l.nodeName=n,l.publicId=e||"",l.systemId=o||"",l}};function Node(){}Node.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(n,e){return _insertBefore(this,n,e)},replaceChild:function(n,e){_insertBefore(this,n,e,assertPreReplacementValidityInDocument),e&&this.removeChild(e)},removeChild:function(n){return _removeChild(this,n)},appendChild:function(n){return this.insertBefore(n,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(n){return cloneNode(this.ownerDocument||this,this,n)},normalize:function(){for(var n=this.firstChild;n;){var e=n.nextSibling;e&&e.nodeType==TEXT_NODE&&n.nodeType==TEXT_NODE?(this.removeChild(e),n.appendData(e.data)):(n.normalize(),n=e)}},isSupported:function(n,e){return this.ownerDocument.implementation.hasFeature(n,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(n){for(var e=this;e;){var o=e._nsMap;if(o){for(var l in o)if(Object.prototype.hasOwnProperty.call(o,l)&&o[l]===n)return l}e=e.nodeType==ATTRIBUTE_NODE?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(n){for(var e=this;e;){var o=e._nsMap;if(o&&Object.prototype.hasOwnProperty.call(o,n))return o[n];e=e.nodeType==ATTRIBUTE_NODE?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(n){var e=this.lookupPrefix(n);return e==null}};function _xmlEncoder(n){return n=="<"&&"&lt;"||n==">"&&"&gt;"||n=="&"&&"&amp;"||n=='"'&&"&quot;"||"&#"+n.charCodeAt()+";"}copy$1(NodeType,Node),copy$1(NodeType,Node.prototype);function _visitNode(n,e){if(e(n))return!0;if(n=n.firstChild)do if(_visitNode(n,e))return!0;while(n=n.nextSibling)}function Document(){this.ownerDocument=this}function _onAddAttribute(n,e,o){n&&n._inc++;var l=o.namespaceURI;l===NAMESPACE$2.XMLNS&&(e._nsMap[o.prefix?o.localName:""]=o.value)}function _onRemoveAttribute(n,e,o,l){n&&n._inc++;var t=o.namespaceURI;t===NAMESPACE$2.XMLNS&&delete e._nsMap[o.prefix?o.localName:""]}function _onUpdateChild(n,e,o){if(n&&n._inc){n._inc++;var l=e.childNodes;if(o)l[l.length++]=o;else{for(var t=e.firstChild,u=0;t;)l[u++]=t,t=t.nextSibling;l.length=u,delete l[l.length]}}}function _removeChild(n,e){var o=e.previousSibling,l=e.nextSibling;return o?o.nextSibling=l:n.firstChild=l,l?l.previousSibling=o:n.lastChild=o,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,_onUpdateChild(n.ownerDocument,n),e}function hasValidParentNodeType(n){return n&&(n.nodeType===Node.DOCUMENT_NODE||n.nodeType===Node.DOCUMENT_FRAGMENT_NODE||n.nodeType===Node.ELEMENT_NODE)}function hasInsertableNodeType(n){return n&&(isElementNode(n)||isTextNode$1(n)||isDocTypeNode(n)||n.nodeType===Node.DOCUMENT_FRAGMENT_NODE||n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.PROCESSING_INSTRUCTION_NODE)}function isDocTypeNode(n){return n&&n.nodeType===Node.DOCUMENT_TYPE_NODE}function isElementNode(n){return n&&n.nodeType===Node.ELEMENT_NODE}function isTextNode$1(n){return n&&n.nodeType===Node.TEXT_NODE}function isElementInsertionPossible(n,e){var o=n.childNodes||[];if(find(o,isElementNode)||isDocTypeNode(e))return!1;var l=find(o,isDocTypeNode);return!(e&&l&&o.indexOf(l)>o.indexOf(e))}function isElementReplacementPossible(n,e){var o=n.childNodes||[];function l(u){return isElementNode(u)&&u!==e}if(find(o,l))return!1;var t=find(o,isDocTypeNode);return!(e&&t&&o.indexOf(t)>o.indexOf(e))}function assertPreInsertionValidity1to5(n,e,o){if(!hasValidParentNodeType(n))throw new DOMException(HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+n.nodeType);if(o&&o.parentNode!==n)throw new DOMException(NOT_FOUND_ERR,"child not in parent");if(!hasInsertableNodeType(e)||isDocTypeNode(e)&&n.nodeType!==Node.DOCUMENT_NODE)throw new DOMException(HIERARCHY_REQUEST_ERR,"Unexpected node type "+e.nodeType+" for parent node type "+n.nodeType)}function assertPreInsertionValidityInDocument(n,e,o){var l=n.childNodes||[],t=e.childNodes||[];if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var u=t.filter(isElementNode);if(u.length>1||find(t,isTextNode$1))throw new DOMException(HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(u.length===1&&!isElementInsertionPossible(n,o))throw new DOMException(HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(isElementNode(e)&&!isElementInsertionPossible(n,o))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(isDocTypeNode(e)){if(find(l,isDocTypeNode))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var h=find(l,isElementNode);if(o&&l.indexOf(h)<l.indexOf(o))throw new DOMException(HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!o&&h)throw new DOMException(HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function assertPreReplacementValidityInDocument(n,e,o){var l=n.childNodes||[],t=e.childNodes||[];if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var u=t.filter(isElementNode);if(u.length>1||find(t,isTextNode$1))throw new DOMException(HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(u.length===1&&!isElementReplacementPossible(n,o))throw new DOMException(HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(isElementNode(e)&&!isElementReplacementPossible(n,o))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(isDocTypeNode(e)){if(find(l,function(w){return isDocTypeNode(w)&&w!==o}))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var h=find(l,isElementNode);if(o&&l.indexOf(h)<l.indexOf(o))throw new DOMException(HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function _insertBefore(n,e,o,l){assertPreInsertionValidity1to5(n,e,o),n.nodeType===Node.DOCUMENT_NODE&&(l||assertPreInsertionValidityInDocument)(n,e,o);var t=e.parentNode;if(t&&t.removeChild(e),e.nodeType===DOCUMENT_FRAGMENT_NODE){var u=e.firstChild;if(u==null)return e;var h=e.lastChild}else u=h=e;var v=o?o.previousSibling:n.lastChild;u.previousSibling=v,h.nextSibling=o,v?v.nextSibling=u:n.firstChild=u,o==null?n.lastChild=h:o.previousSibling=h;do u.parentNode=n;while(u!==h&&(u=u.nextSibling));return _onUpdateChild(n.ownerDocument||n,n),e.nodeType==DOCUMENT_FRAGMENT_NODE&&(e.firstChild=e.lastChild=null),e}function _appendSingleChild(n,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=n,e.previousSibling=n.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:n.firstChild=e,n.lastChild=e,_onUpdateChild(n.ownerDocument,n,e),e}Document.prototype={nodeName:"#document",nodeType:DOCUMENT_NODE,doctype:null,documentElement:null,_inc:1,insertBefore:function(n,e){if(n.nodeType==DOCUMENT_FRAGMENT_NODE){for(var o=n.firstChild;o;){var l=o.nextSibling;this.insertBefore(o,e),o=l}return n}return _insertBefore(this,n,e),n.ownerDocument=this,this.documentElement===null&&n.nodeType===ELEMENT_NODE&&(this.documentElement=n),n},removeChild:function(n){return this.documentElement==n&&(this.documentElement=null),_removeChild(this,n)},replaceChild:function(n,e){_insertBefore(this,n,e,assertPreReplacementValidityInDocument),n.ownerDocument=this,e&&this.removeChild(e),isElementNode(n)&&(this.documentElement=n)},importNode:function(n,e){return importNode(this,n,e)},getElementById:function(n){var e=null;return _visitNode(this.documentElement,function(o){if(o.nodeType==ELEMENT_NODE&&o.getAttribute("id")==n)return e=o,!0}),e},getElementsByClassName:function(n){var e=toOrderedSet(n);return new LiveNodeList(this,function(o){var l=[];return e.length>0&&_visitNode(o.documentElement,function(t){if(t!==o&&t.nodeType===ELEMENT_NODE){var u=t.getAttribute("class");if(u){var h=n===u;if(!h){var v=toOrderedSet(u);h=e.every(arrayIncludes(v))}h&&l.push(t)}}}),l})},createElement:function(n){var e=new Element;e.ownerDocument=this,e.nodeName=n,e.tagName=n,e.localName=n,e.childNodes=new NodeList;var o=e.attributes=new NamedNodeMap;return o._ownerElement=e,e},createDocumentFragment:function(){var n=new DocumentFragment;return n.ownerDocument=this,n.childNodes=new NodeList,n},createTextNode:function(n){var e=new Text;return e.ownerDocument=this,e.appendData(n),e},createComment:function(n){var e=new Comment;return e.ownerDocument=this,e.appendData(n),e},createCDATASection:function(n){var e=new CDATASection;return e.ownerDocument=this,e.appendData(n),e},createProcessingInstruction:function(n,e){var o=new ProcessingInstruction;return o.ownerDocument=this,o.tagName=o.nodeName=o.target=n,o.nodeValue=o.data=e,o},createAttribute:function(n){var e=new Attr;return e.ownerDocument=this,e.name=n,e.nodeName=n,e.localName=n,e.specified=!0,e},createEntityReference:function(n){var e=new EntityReference;return e.ownerDocument=this,e.nodeName=n,e},createElementNS:function(n,e){var o=new Element,l=e.split(":"),t=o.attributes=new NamedNodeMap;return o.childNodes=new NodeList,o.ownerDocument=this,o.nodeName=e,o.tagName=e,o.namespaceURI=n,l.length==2?(o.prefix=l[0],o.localName=l[1]):o.localName=e,t._ownerElement=o,o},createAttributeNS:function(n,e){var o=new Attr,l=e.split(":");return o.ownerDocument=this,o.nodeName=e,o.name=e,o.namespaceURI=n,o.specified=!0,l.length==2?(o.prefix=l[0],o.localName=l[1]):o.localName=e,o}},_extends(Document,Node);function Element(){this._nsMap={}}Element.prototype={nodeType:ELEMENT_NODE,hasAttribute:function(n){return this.getAttributeNode(n)!=null},getAttribute:function(n){var e=this.getAttributeNode(n);return e&&e.value||""},getAttributeNode:function(n){return this.attributes.getNamedItem(n)},setAttribute:function(n,e){var o=this.ownerDocument.createAttribute(n);o.value=o.nodeValue=""+e,this.setAttributeNode(o)},removeAttribute:function(n){var e=this.getAttributeNode(n);e&&this.removeAttributeNode(e)},appendChild:function(n){return n.nodeType===DOCUMENT_FRAGMENT_NODE?this.insertBefore(n,null):_appendSingleChild(this,n)},setAttributeNode:function(n){return this.attributes.setNamedItem(n)},setAttributeNodeNS:function(n){return this.attributes.setNamedItemNS(n)},removeAttributeNode:function(n){return this.attributes.removeNamedItem(n.nodeName)},removeAttributeNS:function(n,e){var o=this.getAttributeNodeNS(n,e);o&&this.removeAttributeNode(o)},hasAttributeNS:function(n,e){return this.getAttributeNodeNS(n,e)!=null},getAttributeNS:function(n,e){var o=this.getAttributeNodeNS(n,e);return o&&o.value||""},setAttributeNS:function(n,e,o){var l=this.ownerDocument.createAttributeNS(n,e);l.value=l.nodeValue=""+o,this.setAttributeNode(l)},getAttributeNodeNS:function(n,e){return this.attributes.getNamedItemNS(n,e)},getElementsByTagName:function(n){return new LiveNodeList(this,function(e){var o=[];return _visitNode(e,function(l){l!==e&&l.nodeType==ELEMENT_NODE&&(n==="*"||l.tagName==n)&&o.push(l)}),o})},getElementsByTagNameNS:function(n,e){return new LiveNodeList(this,function(o){var l=[];return _visitNode(o,function(t){t!==o&&t.nodeType===ELEMENT_NODE&&(n==="*"||t.namespaceURI===n)&&(e==="*"||t.localName==e)&&l.push(t)}),l})}},Document.prototype.getElementsByTagName=Element.prototype.getElementsByTagName,Document.prototype.getElementsByTagNameNS=Element.prototype.getElementsByTagNameNS,_extends(Element,Node);function Attr(){}Attr.prototype.nodeType=ATTRIBUTE_NODE,_extends(Attr,Node);function CharacterData(){}CharacterData.prototype={data:"",substringData:function(n,e){return this.data.substring(n,n+e)},appendData:function(n){n=this.data+n,this.nodeValue=this.data=n,this.length=n.length},insertData:function(n,e){this.replaceData(n,0,e)},appendChild:function(n){throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR])},deleteData:function(n,e){this.replaceData(n,e,"")},replaceData:function(n,e,o){var l=this.data.substring(0,n),t=this.data.substring(n+e);o=l+o+t,this.nodeValue=this.data=o,this.length=o.length}},_extends(CharacterData,Node);function Text(){}Text.prototype={nodeName:"#text",nodeType:TEXT_NODE,splitText:function(n){var e=this.data,o=e.substring(n);e=e.substring(0,n),this.data=this.nodeValue=e,this.length=e.length;var l=this.ownerDocument.createTextNode(o);return this.parentNode&&this.parentNode.insertBefore(l,this.nextSibling),l}},_extends(Text,CharacterData);function Comment(){}Comment.prototype={nodeName:"#comment",nodeType:COMMENT_NODE},_extends(Comment,CharacterData);function CDATASection(){}CDATASection.prototype={nodeName:"#cdata-section",nodeType:CDATA_SECTION_NODE},_extends(CDATASection,CharacterData);function DocumentType(){}DocumentType.prototype.nodeType=DOCUMENT_TYPE_NODE,_extends(DocumentType,Node);function Notation(){}Notation.prototype.nodeType=NOTATION_NODE,_extends(Notation,Node);function Entity(){}Entity.prototype.nodeType=ENTITY_NODE,_extends(Entity,Node);function EntityReference(){}EntityReference.prototype.nodeType=ENTITY_REFERENCE_NODE,_extends(EntityReference,Node);function DocumentFragment(){}DocumentFragment.prototype.nodeName="#document-fragment",DocumentFragment.prototype.nodeType=DOCUMENT_FRAGMENT_NODE,_extends(DocumentFragment,Node);function ProcessingInstruction(){}ProcessingInstruction.prototype.nodeType=PROCESSING_INSTRUCTION_NODE,_extends(ProcessingInstruction,Node);function XMLSerializer(){}XMLSerializer.prototype.serializeToString=function(n,e,o){return nodeSerializeToString.call(n,e,o)},Node.prototype.toString=nodeSerializeToString;function nodeSerializeToString(n,e){var o=[],l=this.nodeType==9&&this.documentElement||this,t=l.prefix,u=l.namespaceURI;if(u&&t==null){var t=l.lookupPrefix(u);if(t==null)var h=[{namespace:u,prefix:null}]}return serializeToString(this,o,n,e,h),o.join("")}function needNamespaceDefine(n,e,o){var l=n.prefix||"",t=n.namespaceURI;if(!t||l==="xml"&&t===NAMESPACE$2.XML||t===NAMESPACE$2.XMLNS)return!1;for(var u=o.length;u--;){var h=o[u];if(h.prefix===l)return h.namespace!==t}return!0}function addSerializedAttribute(n,e,o){n.push(" ",e,'="',o.replace(/[<>&"\t\n\r]/g,_xmlEncoder),'"')}function serializeToString(n,e,o,l,t){if(t||(t=[]),l)if(n=l(n),n){if(typeof n=="string"){e.push(n);return}}else return;switch(n.nodeType){case ELEMENT_NODE:var u=n.attributes,h=u.length,F=n.firstChild,v=n.tagName;o=NAMESPACE$2.isHTML(n.namespaceURI)||o;var w=v;if(!o&&!n.prefix&&n.namespaceURI){for(var A,E=0;E<u.length;E++)if(u.item(E).name==="xmlns"){A=u.item(E).value;break}if(!A)for(var C=t.length-1;C>=0;C--){var M=t[C];if(M.prefix===""&&M.namespace===n.namespaceURI){A=M.namespace;break}}if(A!==n.namespaceURI)for(var C=t.length-1;C>=0;C--){var M=t[C];if(M.namespace===n.namespaceURI){M.prefix&&(w=M.prefix+":"+v);break}}}e.push("<",w);for(var P=0;P<h;P++){var I=u.item(P);I.prefix=="xmlns"?t.push({prefix:I.localName,namespace:I.value}):I.nodeName=="xmlns"&&t.push({prefix:"",namespace:I.value})}for(var P=0;P<h;P++){var I=u.item(P);if(needNamespaceDefine(I,o,t)){var j=I.prefix||"",B=I.namespaceURI;addSerializedAttribute(e,j?"xmlns:"+j:"xmlns",B),t.push({prefix:j,namespace:B})}serializeToString(I,e,o,l,t)}if(v===w&&needNamespaceDefine(n,o,t)){var j=n.prefix||"",B=n.namespaceURI;addSerializedAttribute(e,j?"xmlns:"+j:"xmlns",B),t.push({prefix:j,namespace:B})}if(F||o&&!/^(?:meta|link|img|br|hr|input)$/i.test(v)){if(e.push(">"),o&&/^script$/i.test(v))for(;F;)F.data?e.push(F.data):serializeToString(F,e,o,l,t.slice()),F=F.nextSibling;else for(;F;)serializeToString(F,e,o,l,t.slice()),F=F.nextSibling;e.push("</",w,">")}else e.push("/>");return;case DOCUMENT_NODE:case DOCUMENT_FRAGMENT_NODE:for(var F=n.firstChild;F;)serializeToString(F,e,o,l,t.slice()),F=F.nextSibling;return;case ATTRIBUTE_NODE:return addSerializedAttribute(e,n.name,n.value);case TEXT_NODE:return e.push(n.data.replace(/[<&>]/g,_xmlEncoder));case CDATA_SECTION_NODE:return e.push("<![CDATA[",n.data,"]]>");case COMMENT_NODE:return e.push("<!--",n.data,"-->");case DOCUMENT_TYPE_NODE:var N=n.publicId,ee=n.systemId;if(e.push("<!DOCTYPE ",n.name),N)e.push(" PUBLIC ",N),ee&&ee!="."&&e.push(" ",ee),e.push(">");else if(ee&&ee!=".")e.push(" SYSTEM ",ee,">");else{var Z=n.internalSubset;Z&&e.push(" [",Z,"]"),e.push(">")}return;case PROCESSING_INSTRUCTION_NODE:return e.push("<?",n.target," ",n.data,"?>");case ENTITY_REFERENCE_NODE:return e.push("&",n.nodeName,";");default:e.push("??",n.nodeName)}}function importNode(n,e,o){var l;switch(e.nodeType){case ELEMENT_NODE:l=e.cloneNode(!1),l.ownerDocument=n;case DOCUMENT_FRAGMENT_NODE:break;case ATTRIBUTE_NODE:o=!0;break}if(l||(l=e.cloneNode(!1)),l.ownerDocument=n,l.parentNode=null,o)for(var t=e.firstChild;t;)l.appendChild(importNode(n,t,o)),t=t.nextSibling;return l}function cloneNode(n,e,o){var l=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var u=e[t];typeof u!="object"&&u!=l[t]&&(l[t]=u)}switch(e.childNodes&&(l.childNodes=new NodeList),l.ownerDocument=n,l.nodeType){case ELEMENT_NODE:var h=e.attributes,v=l.attributes=new NamedNodeMap,w=h.length;v._ownerElement=l;for(var A=0;A<w;A++)l.setAttributeNode(cloneNode(n,h.item(A),!0));break;case ATTRIBUTE_NODE:o=!0}if(o)for(var E=e.firstChild;E;)l.appendChild(cloneNode(n,E,o)),E=E.nextSibling;return l}function __set__(n,e,o){n[e]=o}try{if(Object.defineProperty){let n=function(e){switch(e.nodeType){case ELEMENT_NODE:case DOCUMENT_FRAGMENT_NODE:var o=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&o.push(n(e)),e=e.nextSibling;return o.join("");default:return e.nodeValue}};Object.defineProperty(LiveNodeList.prototype,"length",{get:function(){return _updateLiveList(this),this.$$length}}),Object.defineProperty(Node.prototype,"textContent",{get:function(){return n(this)},set:function(e){switch(this.nodeType){case ELEMENT_NODE:case DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),__set__=function(e,o,l){e["$$"+o]=l}}}catch(n){}dom$1.DocumentType=DocumentType,dom$1.DOMException=DOMException,dom$1.DOMImplementation=DOMImplementation$1,dom$1.Element=Element,dom$1.Node=Node,dom$1.NodeList=NodeList,dom$1.XMLSerializer=XMLSerializer;var domParser={},entities$1={};(function(n){var e=conventions$2.freeze;n.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),n.HTML_ENTITIES=e({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),n.entityMap=n.HTML_ENTITIES})(entities$1);var sax$1={},NAMESPACE$1=conventions$2.NAMESPACE,nameStartChar=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,nameChar=new RegExp("[\\-\\.0-9"+nameStartChar.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),tagNamePattern=new RegExp("^"+nameStartChar.source+nameChar.source+"*(?::"+nameStartChar.source+nameChar.source+"*)?$"),S_TAG=0,S_ATTR=1,S_ATTR_SPACE=2,S_EQ=3,S_ATTR_NOQUOT_VALUE=4,S_ATTR_END=5,S_TAG_SPACE=6,S_TAG_CLOSE=7;function ParseError$1(n,e){this.message=n,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,ParseError$1)}ParseError$1.prototype=new Error,ParseError$1.prototype.name=ParseError$1.name;function XMLReader$1(){}XMLReader$1.prototype={parse:function(n,e,o){var l=this.domBuilder;l.startDocument(),_copy(e,e={}),parse$5(n,e,o,l,this.errorHandler),l.endDocument()}};function parse$5(n,e,o,l,t){function u(m){if(m>65535){m-=65536;var x=55296+(m>>10),T=56320+(m&1023);return String.fromCharCode(x,T)}else return String.fromCharCode(m)}function h(m){var x=m.slice(1,-1);return Object.hasOwnProperty.call(o,x)?o[x]:x.charAt(0)==="#"?u(parseInt(x.substr(1).replace("x","0x"))):(t.error("entity not found:"+m),m)}function v(m){if(m>j){var x=n.substring(j,m).replace(/&#?\w+;/g,h);M&&w(j),l.characters(x,0,m-j),j=m}}function w(m,x){for(;m>=E&&(x=C.exec(n));)A=x.index,E=A+x[0].length,M.lineNumber++;M.columnNumber=m-A+1}for(var A=0,E=0,C=/.*(?:\r\n?|\n)|.*$/g,M=l.locator,P=[{currentNSMap:e}],I={},j=0;;){try{var B=n.indexOf("<",j);if(B<0){if(!n.substr(j).match(/^\s*$/)){var F=l.doc,N=F.createTextNode(n.substr(j));F.appendChild(N),l.currentElement=N}return}switch(B>j&&v(B),n.charAt(B+1)){case"/":var L=n.indexOf(">",B+3),ee=n.substring(B+2,L).replace(/[ \t\n\r]+$/g,""),Z=P.pop();L<0?(ee=n.substring(B+2).replace(/[\s<].*/,""),t.error("end tag name: "+ee+" is not complete:"+Z.tagName),L=B+1+ee.length):ee.match(/\s</)&&(ee=ee.replace(/[\s<].*/,""),t.error("end tag name: "+ee+" maybe not complete"),L=B+1+ee.length);var re=Z.localNSMap,fe=Z.tagName==ee,V=fe||Z.tagName&&Z.tagName.toLowerCase()==ee.toLowerCase();if(V){if(l.endElement(Z.uri,Z.localName,ee),re)for(var le in re)Object.prototype.hasOwnProperty.call(re,le)&&l.endPrefixMapping(le);fe||t.fatalError("end tag name: "+ee+" is not match the current start tagName:"+Z.tagName)}else P.push(Z);L++;break;case"?":M&&w(B),L=parseInstruction(n,B,l);break;case"!":M&&w(B),L=parseDCC(n,B,l,t);break;default:M&&w(B);var he=new ElementAttributes,ye=P[P.length-1].currentNSMap,L=parseElementStartPart(n,B,he,ye,h,t),p=he.length;if(!he.closed&&fixSelfClosed(n,L,he.tagName,I)&&(he.closed=!0,o.nbsp||t.warning("unclosed xml attribute")),M&&p){for(var y=copyLocator(M,{}),S=0;S<p;S++){var c=he[S];w(c.offset),c.locator=copyLocator(M,{})}l.locator=y,appendElement$1(he,l,ye)&&P.push(he),l.locator=M}else appendElement$1(he,l,ye)&&P.push(he);NAMESPACE$1.isHTML(he.uri)&&!he.closed?L=parseHtmlSpecialContent(n,L,he.tagName,h,l):L++}}catch(m){if(m instanceof ParseError$1)throw m;t.error("element parse error: "+m),L=-1}L>j?j=L:v(Math.max(B,j)+1)}}function copyLocator(n,e){return e.lineNumber=n.lineNumber,e.columnNumber=n.columnNumber,e}function parseElementStartPart(n,e,o,l,t,u){function h(M,P,I){o.attributeNames.hasOwnProperty(M)&&u.fatalError("Attribute "+M+" redefined"),o.addValue(M,P.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,t),I)}for(var v,w,A=++e,E=S_TAG;;){var C=n.charAt(A);switch(C){case"=":if(E===S_ATTR)v=n.slice(e,A),E=S_EQ;else if(E===S_ATTR_SPACE)E=S_EQ;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(E===S_EQ||E===S_ATTR)if(E===S_ATTR&&(u.warning('attribute value must after "="'),v=n.slice(e,A)),e=A+1,A=n.indexOf(C,e),A>0)w=n.slice(e,A),h(v,w,e-1),E=S_ATTR_END;else throw new Error("attribute value no end '"+C+"' match");else if(E==S_ATTR_NOQUOT_VALUE)w=n.slice(e,A),h(v,w,e),u.warning('attribute "'+v+'" missed start quot('+C+")!!"),e=A+1,E=S_ATTR_END;else throw new Error('attribute value must after "="');break;case"/":switch(E){case S_TAG:o.setTagName(n.slice(e,A));case S_ATTR_END:case S_TAG_SPACE:case S_TAG_CLOSE:E=S_TAG_CLOSE,o.closed=!0;case S_ATTR_NOQUOT_VALUE:case S_ATTR:break;case S_ATTR_SPACE:o.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return u.error("unexpected end of input"),E==S_TAG&&o.setTagName(n.slice(e,A)),A;case">":switch(E){case S_TAG:o.setTagName(n.slice(e,A));case S_ATTR_END:case S_TAG_SPACE:case S_TAG_CLOSE:break;case S_ATTR_NOQUOT_VALUE:case S_ATTR:w=n.slice(e,A),w.slice(-1)==="/"&&(o.closed=!0,w=w.slice(0,-1));case S_ATTR_SPACE:E===S_ATTR_SPACE&&(w=v),E==S_ATTR_NOQUOT_VALUE?(u.warning('attribute "'+w+'" missed quot(")!'),h(v,w,e)):((!NAMESPACE$1.isHTML(l[""])||!w.match(/^(?:disabled|checked|selected)$/i))&&u.warning('attribute "'+w+'" missed value!! "'+w+'" instead!!'),h(w,w,e));break;case S_EQ:throw new Error("attribute value missed!!")}return A;case"":C=" ";default:if(C<=" ")switch(E){case S_TAG:o.setTagName(n.slice(e,A)),E=S_TAG_SPACE;break;case S_ATTR:v=n.slice(e,A),E=S_ATTR_SPACE;break;case S_ATTR_NOQUOT_VALUE:var w=n.slice(e,A);u.warning('attribute "'+w+'" missed quot(")!!'),h(v,w,e);case S_ATTR_END:E=S_TAG_SPACE;break}else switch(E){case S_ATTR_SPACE:o.tagName,(!NAMESPACE$1.isHTML(l[""])||!v.match(/^(?:disabled|checked|selected)$/i))&&u.warning('attribute "'+v+'" missed value!! "'+v+'" instead2!!'),h(v,v,e),e=A,E=S_ATTR;break;case S_ATTR_END:u.warning('attribute space is required"'+v+'"!!');case S_TAG_SPACE:E=S_ATTR,e=A;break;case S_EQ:E=S_ATTR_NOQUOT_VALUE,e=A;break;case S_TAG_CLOSE:throw new Error("elements closed character '/' and '>' must be connected to")}}A++}}function appendElement$1(n,e,o){for(var l=n.tagName,t=null,C=n.length;C--;){var u=n[C],h=u.qName,v=u.value,M=h.indexOf(":");if(M>0)var w=u.prefix=h.slice(0,M),A=h.slice(M+1),E=w==="xmlns"&&A;else A=h,w=null,E=h==="xmlns"&&"";u.localName=A,E!==!1&&(t==null&&(t={},_copy(o,o={})),o[E]=t[E]=v,u.uri=NAMESPACE$1.XMLNS,e.startPrefixMapping(E,v))}for(var C=n.length;C--;){u=n[C];var w=u.prefix;w&&(w==="xml"&&(u.uri=NAMESPACE$1.XML),w!=="xmlns"&&(u.uri=o[w||""]))}var M=l.indexOf(":");M>0?(w=n.prefix=l.slice(0,M),A=n.localName=l.slice(M+1)):(w=null,A=n.localName=l);var P=n.uri=o[w||""];if(e.startElement(P,A,l,n),n.closed){if(e.endElement(P,A,l),t)for(w in t)Object.prototype.hasOwnProperty.call(t,w)&&e.endPrefixMapping(w)}else return n.currentNSMap=o,n.localNSMap=t,!0}function parseHtmlSpecialContent(n,e,o,l,t){if(/^(?:script|textarea)$/i.test(o)){var u=n.indexOf("</"+o+">",e),h=n.substring(e+1,u);if(/[&<]/.test(h))return/^script$/i.test(o)?(t.characters(h,0,h.length),u):(h=h.replace(/&#?\w+;/g,l),t.characters(h,0,h.length),u)}return e+1}function fixSelfClosed(n,e,o,l){var t=l[o];return t==null&&(t=n.lastIndexOf("</"+o+">"),t<e&&(t=n.lastIndexOf("</"+o)),l[o]=t),t<e}function _copy(n,e){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}function parseDCC(n,e,o,l){var t=n.charAt(e+2);switch(t){case"-":if(n.charAt(e+3)==="-"){var u=n.indexOf("-->",e+4);return u>e?(o.comment(n,e+4,u-e-4),u+3):(l.error("Unclosed comment"),-1)}else return-1;default:if(n.substr(e+3,6)=="CDATA["){var u=n.indexOf("]]>",e+9);return o.startCDATA(),o.characters(n,e+9,u-e-9),o.endCDATA(),u+3}var h=split(n,e),v=h.length;if(v>1&&/!doctype/i.test(h[0][0])){var w=h[1][0],A=!1,E=!1;v>3&&(/^public$/i.test(h[2][0])?(A=h[3][0],E=v>4&&h[4][0]):/^system$/i.test(h[2][0])&&(E=h[3][0]));var C=h[v-1];return o.startDTD(w,A,E),o.endDTD(),C.index+C[0].length}}return-1}function parseInstruction(n,e,o){var l=n.indexOf("?>",e);if(l){var t=n.substring(e,l).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return t?(t[0].length,o.processingInstruction(t[1],t[2]),l+2):-1}return-1}function ElementAttributes(){this.attributeNames={}}ElementAttributes.prototype={setTagName:function(n){if(!tagNamePattern.test(n))throw new Error("invalid tagName:"+n);this.tagName=n},addValue:function(n,e,o){if(!tagNamePattern.test(n))throw new Error("invalid attribute:"+n);this.attributeNames[n]=this.length,this[this.length++]={qName:n,value:e,offset:o}},length:0,getLocalName:function(n){return this[n].localName},getLocator:function(n){return this[n].locator},getQName:function(n){return this[n].qName},getURI:function(n){return this[n].uri},getValue:function(n){return this[n].value}};function split(n,e){var o,l=[],t=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(t.lastIndex=e,t.exec(n);o=t.exec(n);)if(l.push(o),o[1])return l}sax$1.XMLReader=XMLReader$1,sax$1.ParseError=ParseError$1;var conventions=conventions$2,dom=dom$1,entities=entities$1,sax=sax$1,DOMImplementation=dom.DOMImplementation,NAMESPACE=conventions.NAMESPACE,ParseError=sax.ParseError,XMLReader=sax.XMLReader;function normalizeLineEndings(n){return n.replace(/\r[\n\u0085]/g,`
`).replace(/[\r\u0085\u2028]/g,`
`)}function DOMParser$1(n){this.options=n||{locator:{}}}DOMParser$1.prototype.parseFromString=function(n,e){var o=this.options,l=new XMLReader,t=o.domBuilder||new DOMHandler,u=o.errorHandler,h=o.locator,v=o.xmlns||{},w=/\/x?html?$/.test(e),A=w?entities.HTML_ENTITIES:entities.XML_ENTITIES;h&&t.setDocumentLocator(h),l.errorHandler=buildErrorHandler(u,t,h),l.domBuilder=o.domBuilder||t,w&&(v[""]=NAMESPACE.HTML),v.xml=v.xml||NAMESPACE.XML;var E=o.normalizeLineEndings||normalizeLineEndings;return n&&typeof n=="string"?l.parse(E(n),v,A):l.errorHandler.error("invalid doc source"),t.doc};function buildErrorHandler(n,e,o){if(!n){if(e instanceof DOMHandler)return e;n=e}var l={},t=n instanceof Function;o=o||{};function u(h){var v=n[h];!v&&t&&(v=n.length==2?function(w){n(h,w)}:n),l[h]=v&&function(w){v("[xmldom "+h+"]	"+w+_locator(o))}||function(){}}return u("warning"),u("error"),u("fatalError"),l}function DOMHandler(){this.cdata=!1}function position(n,e){e.lineNumber=n.lineNumber,e.columnNumber=n.columnNumber}DOMHandler.prototype={startDocument:function(){this.doc=new DOMImplementation().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(n,e,o,l){var t=this.doc,u=t.createElementNS(n,o||e),h=l.length;appendElement(this,u),this.currentElement=u,this.locator&&position(this.locator,u);for(var v=0;v<h;v++){var n=l.getURI(v),w=l.getValue(v),o=l.getQName(v),A=t.createAttributeNS(n,o);this.locator&&position(l.getLocator(v),A),A.value=A.nodeValue=w,u.setAttributeNode(A)}},endElement:function(n,e,o){var l=this.currentElement;l.tagName,this.currentElement=l.parentNode},startPrefixMapping:function(n,e){},endPrefixMapping:function(n){},processingInstruction:function(n,e){var o=this.doc.createProcessingInstruction(n,e);this.locator&&position(this.locator,o),appendElement(this,o)},ignorableWhitespace:function(n,e,o){},characters:function(n,e,o){if(n=_toString.apply(this,arguments),n){if(this.cdata)var l=this.doc.createCDATASection(n);else var l=this.doc.createTextNode(n);this.currentElement?this.currentElement.appendChild(l):/^\s*$/.test(n)&&this.doc.appendChild(l),this.locator&&position(this.locator,l)}},skippedEntity:function(n){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(n){(this.locator=n)&&(n.lineNumber=0)},comment:function(n,e,o){n=_toString.apply(this,arguments);var l=this.doc.createComment(n);this.locator&&position(this.locator,l),appendElement(this,l)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(n,e,o){var l=this.doc.implementation;if(l&&l.createDocumentType){var t=l.createDocumentType(n,e,o);this.locator&&position(this.locator,t),appendElement(this,t),this.doc.doctype=t}},warning:function(n){console.warn("[xmldom warning]	"+n,_locator(this.locator))},error:function(n){console.error("[xmldom error]	"+n,_locator(this.locator))},fatalError:function(n){throw new ParseError(n,this.locator)}};function _locator(n){if(n)return`
@`+(n.systemId||"")+"#[line:"+n.lineNumber+",col:"+n.columnNumber+"]"}function _toString(n,e,o){return typeof n=="string"?n.substr(e,o):n.length>=e+o||e?new java.lang.String(n,e,o)+"":n}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(n){DOMHandler.prototype[n]=function(){return null}});function appendElement(n,e){n.currentElement?n.currentElement.appendChild(e):n.doc.appendChild(e)}domParser.__DOMHandler=DOMHandler,domParser.normalizeLineEndings=normalizeLineEndings,domParser.DOMParser=DOMParser$1;var DOMParser=domParser.DOMParser;/*! @name mpd-parser @version 0.22.1 @license Apache-2.0 */var isObject$2=function(e){return!!e&&typeof e=="object"},merge=function n(){for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return o.reduce(function(t,u){return typeof u!="object"||Object.keys(u).forEach(function(h){Array.isArray(t[h])&&Array.isArray(u[h])?t[h]=t[h].concat(u[h]):isObject$2(t[h])&&isObject$2(u[h])?t[h]=n(t[h],u[h]):t[h]=u[h]}),t},{})},values=function(e){return Object.keys(e).map(function(o){return e[o]})},range$1=function(e,o){for(var l=[],t=e;t<o;t++)l.push(t);return l},flatten=function(e){return e.reduce(function(o,l){return o.concat(l)},[])},from=function(e){if(!e.length)return[];for(var o=[],l=0;l<e.length;l++)o.push(e[l]);return o},findIndexes=function(e,o){return e.reduce(function(l,t,u){return t[o]&&l.push(u),l},[])},findIndex=function(e,o){for(var l=0;l<e.length;l++)if(o(e[l]))return l;return-1},union=function(e,o){return values(e.reduce(function(l,t){return t.forEach(function(u){l[o(u)]=u}),l},{}))},errors$3={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},urlTypeToSegment=function(e){var o=e.baseUrl,l=o===void 0?"":o,t=e.source,u=t===void 0?"":t,h=e.range,v=h===void 0?"":h,w=e.indexRange,A=w===void 0?"":w,E={uri:u,resolvedUri:resolveUrl$1(l||"",u)};if(v||A){var C=v||A,M=C.split("-"),P=window$1$1.BigInt?window$1$1.BigInt(M[0]):parseInt(M[0],10),I=window$1$1.BigInt?window$1$1.BigInt(M[1]):parseInt(M[1],10);P<Number.MAX_SAFE_INTEGER&&typeof P=="bigint"&&(P=Number(P)),I<Number.MAX_SAFE_INTEGER&&typeof I=="bigint"&&(I=Number(I));var j;typeof I=="bigint"||typeof P=="bigint"?j=window$1$1.BigInt(I)-window$1$1.BigInt(P)+window$1$1.BigInt(1):j=I-P+1,typeof j=="bigint"&&j<Number.MAX_SAFE_INTEGER&&(j=Number(j)),E.byterange={length:j,offset:P}}return E},byteRangeToString=function(e){var o;return typeof e.offset=="bigint"||typeof e.length=="bigint"?o=window$1$1.BigInt(e.offset)+window$1$1.BigInt(e.length)-window$1$1.BigInt(1):o=e.offset+e.length-1,e.offset+"-"+o},parseEndNumber=function(e){return e&&typeof e!="number"&&(e=parseInt(e,10)),isNaN(e)?null:e},segmentRange={static:function(e){var o=e.duration,l=e.timescale,t=l===void 0?1:l,u=e.sourceDuration,h=e.periodDuration,v=parseEndNumber(e.endNumber),w=o/t;return typeof v=="number"?{start:0,end:v}:typeof h=="number"?{start:0,end:h/w}:{start:0,end:u/w}},dynamic:function(e){var o=e.NOW,l=e.clientOffset,t=e.availabilityStartTime,u=e.timescale,h=u===void 0?1:u,v=e.duration,w=e.periodStart,A=w===void 0?0:w,E=e.minimumUpdatePeriod,C=E===void 0?0:E,M=e.timeShiftBufferDepth,P=M===void 0?1/0:M,I=parseEndNumber(e.endNumber),j=(o+l)/1e3,B=t+A,F=j+C,N=F-B,ee=Math.ceil(N*h/v),Z=Math.floor((j-B-P)*h/v),re=Math.floor((j-B)*h/v);return{start:Math.max(0,Z),end:typeof I=="number"?I:Math.min(ee,re)}}},toSegments=function(e){return function(o){var l=e.duration,t=e.timescale,u=t===void 0?1:t,h=e.periodStart,v=e.startNumber,w=v===void 0?1:v;return{number:w+o,duration:l/u,timeline:h,time:o*l}}},parseByDuration=function(e){var o=e.type,l=e.duration,t=e.timescale,u=t===void 0?1:t,h=e.periodDuration,v=e.sourceDuration,w=segmentRange[o](e),A=w.start,E=w.end,C=range$1(A,E).map(toSegments(e));if(o==="static"){var M=C.length-1,P=typeof h=="number"?h:v;C[M].duration=P-l/u*M}return C},segmentsFromBase=function(e){var o=e.baseUrl,l=e.initialization,t=l===void 0?{}:l,u=e.sourceDuration,h=e.indexRange,v=h===void 0?"":h,w=e.periodStart,A=e.presentationTime,E=e.number,C=E===void 0?0:E,M=e.duration;if(!o)throw new Error(errors$3.NO_BASE_URL);var P=urlTypeToSegment({baseUrl:o,source:t.sourceURL,range:t.range}),I=urlTypeToSegment({baseUrl:o,source:o,indexRange:v});if(I.map=P,M){var j=parseByDuration(e);j.length&&(I.duration=j[0].duration,I.timeline=j[0].timeline)}else u&&(I.duration=u,I.timeline=w);return I.presentationTime=A||w,I.number=C,[I]},addSidxSegmentsToPlaylist$1=function(e,o,l){var t=e.sidx.map?e.sidx.map:null,u=e.sidx.duration,h=e.timeline||0,v=e.sidx.byterange,w=v.offset+v.length,A=o.timescale,E=o.references.filter(function(he){return he.referenceType!==1}),C=[],M=e.endList?"static":"dynamic",P=e.sidx.timeline,I=P,j=e.mediaSequence||0,B;typeof o.firstOffset=="bigint"?B=window$1$1.BigInt(w)+o.firstOffset:B=w+o.firstOffset;for(var F=0;F<E.length;F++){var N=o.references[F],ee=N.referencedSize,Z=N.subsegmentDuration,re=void 0;typeof B=="bigint"?re=B+window$1$1.BigInt(ee)-window$1$1.BigInt(1):re=B+ee-1;var fe=B+"-"+re,V={baseUrl:l,timescale:A,timeline:h,periodStart:P,presentationTime:I,number:j,duration:Z,sourceDuration:u,indexRange:fe,type:M},le=segmentsFromBase(V)[0];t&&(le.map=t),C.push(le),typeof B=="bigint"?B+=window$1$1.BigInt(ee):B+=ee,I+=Z/A,j++}return e.segments=C,e},SUPPORTED_MEDIA_TYPES=["AUDIO","SUBTITLES"],TIME_FUDGE=1/60,getUniqueTimelineStarts=function(e){return union(e,function(o){var l=o.timeline;return l}).sort(function(o,l){return o.timeline>l.timeline?1:-1})},findPlaylistWithName=function(e,o){for(var l=0;l<e.length;l++)if(e[l].attributes.NAME===o)return e[l];return null},getMediaGroupPlaylists=function(e){var o=[];return forEachMediaGroup$1(e,SUPPORTED_MEDIA_TYPES,function(l,t,u,h){o=o.concat(l.playlists||[])}),o},updateMediaSequenceForPlaylist=function(e){var o=e.playlist,l=e.mediaSequence;o.mediaSequence=l,o.segments.forEach(function(t,u){t.number=o.mediaSequence+u})},updateSequenceNumbers=function(e){var o=e.oldPlaylists,l=e.newPlaylists,t=e.timelineStarts;l.forEach(function(u){u.discontinuitySequence=findIndex(t,function(E){var C=E.timeline;return C===u.timeline});var h=findPlaylistWithName(o,u.attributes.NAME);if(h&&!u.sidx){var v=u.segments[0],w=findIndex(h.segments,function(E){return Math.abs(E.presentationTime-v.presentationTime)<TIME_FUDGE});if(w===-1){updateMediaSequenceForPlaylist({playlist:u,mediaSequence:h.mediaSequence+h.segments.length}),u.segments[0].discontinuity=!0,u.discontinuityStarts.unshift(0),(!h.segments.length&&u.timeline>h.timeline||h.segments.length&&u.timeline>h.segments[h.segments.length-1].timeline)&&u.discontinuitySequence--;return}var A=h.segments[w];A.discontinuity&&!v.discontinuity&&(v.discontinuity=!0,u.discontinuityStarts.unshift(0),u.discontinuitySequence--),updateMediaSequenceForPlaylist({playlist:u,mediaSequence:h.segments[w].number})}})},positionManifestOnTimeline=function(e){var o=e.oldManifest,l=e.newManifest,t=o.playlists.concat(getMediaGroupPlaylists(o)),u=l.playlists.concat(getMediaGroupPlaylists(l));return l.timelineStarts=getUniqueTimelineStarts([o.timelineStarts,l.timelineStarts]),updateSequenceNumbers({oldPlaylists:t,newPlaylists:u,timelineStarts:l.timelineStarts}),l},generateSidxKey=function(e){return e&&e.uri+"-"+byteRangeToString(e.byterange)},mergeDiscontiguousPlaylists=function(e){var o=values(e.reduce(function(l,t){var u=t.attributes.id+(t.attributes.lang||"");if(!l[u])l[u]=t,l[u].attributes.timelineStarts=[];else{if(t.segments){var h;t.segments[0]&&(t.segments[0].discontinuity=!0),(h=l[u].segments).push.apply(h,t.segments)}t.attributes.contentProtection&&(l[u].attributes.contentProtection=t.attributes.contentProtection)}return l[u].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),l},{}));return o.map(function(l){return l.discontinuityStarts=findIndexes(l.segments||[],"discontinuity"),l})},addSidxSegmentsToPlaylist=function(e,o){var l=generateSidxKey(e.sidx),t=l&&o[l]&&o[l].sidx;return t&&addSidxSegmentsToPlaylist$1(e,t,e.sidx.resolvedUri),e},addSidxSegmentsToPlaylists=function(e,o){if(o===void 0&&(o={}),!Object.keys(o).length)return e;for(var l in e)e[l]=addSidxSegmentsToPlaylist(e[l],o);return e},formatAudioPlaylist=function(e,o){var l,t=e.attributes,u=e.segments,h=e.sidx,v=e.mediaSequence,w=e.discontinuitySequence,A=e.discontinuityStarts,E={attributes:(l={NAME:t.id,BANDWIDTH:t.bandwidth,CODECS:t.codecs},l["PROGRAM-ID"]=1,l),uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:"",targetDuration:t.duration,discontinuitySequence:w,discontinuityStarts:A,timelineStarts:t.timelineStarts,mediaSequence:v,segments:u};return t.contentProtection&&(E.contentProtection=t.contentProtection),h&&(E.sidx=h),o&&(E.attributes.AUDIO="audio",E.attributes.SUBTITLES="subs"),E},formatVttPlaylist=function(e){var o,l=e.attributes,t=e.segments,u=e.mediaSequence,h=e.discontinuityStarts,v=e.discontinuitySequence;typeof t>"u"&&(t=[{uri:l.baseUrl,timeline:l.periodStart,resolvedUri:l.baseUrl||"",duration:l.sourceDuration,number:0}],l.duration=l.sourceDuration);var w=(o={NAME:l.id,BANDWIDTH:l.bandwidth},o["PROGRAM-ID"]=1,o);return l.codecs&&(w.CODECS=l.codecs),{attributes:w,uri:"",endList:l.type==="static",timeline:l.periodStart,resolvedUri:l.baseUrl||"",targetDuration:l.duration,timelineStarts:l.timelineStarts,discontinuityStarts:h,discontinuitySequence:v,mediaSequence:u,segments:t}},organizeAudioPlaylists=function(e,o,l){o===void 0&&(o={}),l===void 0&&(l=!1);var t,u=e.reduce(function(v,w){var A=w.attributes.role&&w.attributes.role.value||"",E=w.attributes.lang||"",C=w.attributes.label||"main";if(E&&!w.attributes.label){var M=A?" ("+A+")":"";C=""+w.attributes.lang+M}v[C]||(v[C]={language:E,autoselect:!0,default:A==="main",playlists:[],uri:""});var P=addSidxSegmentsToPlaylist(formatAudioPlaylist(w,l),o);return v[C].playlists.push(P),typeof t>"u"&&A==="main"&&(t=w,t.default=!0),v},{});if(!t){var h=Object.keys(u)[0];u[h].default=!0}return u},organizeVttPlaylists=function(e,o){return o===void 0&&(o={}),e.reduce(function(l,t){var u=t.attributes.lang||"text";return l[u]||(l[u]={language:u,default:!1,autoselect:!1,playlists:[],uri:""}),l[u].playlists.push(addSidxSegmentsToPlaylist(formatVttPlaylist(t),o)),l},{})},organizeCaptionServices=function(e){return e.reduce(function(o,l){return l&&l.forEach(function(t){var u=t.channel,h=t.language;o[h]={autoselect:!1,default:!1,instreamId:u,language:h},t.hasOwnProperty("aspectRatio")&&(o[h].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(o[h].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(o[h]["3D"]=t["3D"])}),o},{})},formatVideoPlaylist=function(e){var o,l=e.attributes,t=e.segments,u=e.sidx,h=e.discontinuityStarts,v={attributes:(o={NAME:l.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:l.width,height:l.height},CODECS:l.codecs,BANDWIDTH:l.bandwidth},o["PROGRAM-ID"]=1,o),uri:"",endList:l.type==="static",timeline:l.periodStart,resolvedUri:"",targetDuration:l.duration,discontinuityStarts:h,timelineStarts:l.timelineStarts,segments:t};return l.frameRate&&(v.attributes["FRAME-RATE"]=l.frameRate),l.contentProtection&&(v.contentProtection=l.contentProtection),u&&(v.sidx=u),v},videoOnly=function(e){var o=e.attributes;return o.mimeType==="video/mp4"||o.mimeType==="video/webm"||o.contentType==="video"},audioOnly=function(e){var o=e.attributes;return o.mimeType==="audio/mp4"||o.mimeType==="audio/webm"||o.contentType==="audio"},vttOnly=function(e){var o=e.attributes;return o.mimeType==="text/vtt"||o.contentType==="text"},addMediaSequenceValues=function(e,o){e.forEach(function(l){l.mediaSequence=0,l.discontinuitySequence=findIndex(o,function(t){var u=t.timeline;return u===l.timeline}),l.segments&&l.segments.forEach(function(t,u){t.number=u})})},flattenMediaGroupPlaylists=function(e){return e?Object.keys(e).reduce(function(o,l){var t=e[l];return o.concat(t.playlists)},[]):[]},toM3u8=function(e){var o,l=e.dashPlaylists,t=e.locations,u=e.sidxMapping,h=u===void 0?{}:u,v=e.previousManifest;if(!l.length)return{};var w=l[0].attributes,A=w.sourceDuration,E=w.type,C=w.suggestedPresentationDelay,M=w.minimumUpdatePeriod,P=mergeDiscontiguousPlaylists(l.filter(videoOnly)).map(formatVideoPlaylist),I=mergeDiscontiguousPlaylists(l.filter(audioOnly)),j=mergeDiscontiguousPlaylists(l.filter(vttOnly)),B=l.map(function(V){return V.attributes.captionServices}).filter(Boolean),F={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(o={AUDIO:{},VIDEO:{}},o["CLOSED-CAPTIONS"]={},o.SUBTITLES={},o),uri:"",duration:A,playlists:addSidxSegmentsToPlaylists(P,h)};M>=0&&(F.minimumUpdatePeriod=M*1e3),t&&(F.locations=t),E==="dynamic"&&(F.suggestedPresentationDelay=C);var N=F.playlists.length===0,ee=I.length?organizeAudioPlaylists(I,h,N):null,Z=j.length?organizeVttPlaylists(j,h):null,re=P.concat(flattenMediaGroupPlaylists(ee),flattenMediaGroupPlaylists(Z)),fe=re.map(function(V){var le=V.timelineStarts;return le});return F.timelineStarts=getUniqueTimelineStarts(fe),addMediaSequenceValues(re,F.timelineStarts),ee&&(F.mediaGroups.AUDIO.audio=ee),Z&&(F.mediaGroups.SUBTITLES.subs=Z),B.length&&(F.mediaGroups["CLOSED-CAPTIONS"].cc=organizeCaptionServices(B)),v?positionManifestOnTimeline({oldManifest:v,newManifest:F}):F},getLiveRValue=function(e,o,l){var t=e.NOW,u=e.clientOffset,h=e.availabilityStartTime,v=e.timescale,w=v===void 0?1:v,A=e.periodStart,E=A===void 0?0:A,C=e.minimumUpdatePeriod,M=C===void 0?0:C,P=(t+u)/1e3,I=h+E,j=P+M,B=j-I;return Math.ceil((B*w-o)/l)},parseByTimeline=function(e,o){for(var l=e.type,t=e.minimumUpdatePeriod,u=t===void 0?0:t,h=e.media,v=h===void 0?"":h,w=e.sourceDuration,A=e.timescale,E=A===void 0?1:A,C=e.startNumber,M=C===void 0?1:C,P=e.periodStart,I=[],j=-1,B=0;B<o.length;B++){var F=o[B],N=F.d,ee=F.r||0,Z=F.t||0;j<0&&(j=Z),Z&&Z>j&&(j=Z);var re=void 0;if(ee<0){var fe=B+1;fe===o.length?l==="dynamic"&&u>0&&v.indexOf("$Number$")>0?re=getLiveRValue(e,j,N):re=(w*E-j)/N:re=(o[fe].t-j)/N}else re=ee+1;for(var V=M+I.length+re,le=M+I.length;le<V;)I.push({number:le,duration:N/E,time:j,timeline:P}),j+=N,le++}return I},identifierPattern=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,identifierReplacement=function(e){return function(o,l,t,u){if(o==="$$")return"$";if(typeof e[l]>"u")return o;var h=""+e[l];return l==="RepresentationID"||(t?u=parseInt(u,10):u=1,h.length>=u)?h:""+new Array(u-h.length+1).join("0")+h}},constructTemplateUrl=function(e,o){return e.replace(identifierPattern,identifierReplacement(o))},parseTemplateInfo=function(e,o){return!e.duration&&!o?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?parseByDuration(e):parseByTimeline(e,o)},segmentsFromTemplate=function(e,o){var l={RepresentationID:e.id,Bandwidth:e.bandwidth||0},t=e.initialization,u=t===void 0?{sourceURL:"",range:""}:t,h=urlTypeToSegment({baseUrl:e.baseUrl,source:constructTemplateUrl(u.sourceURL,l),range:u.range}),v=parseTemplateInfo(e,o);return v.map(function(w){l.Number=w.number,l.Time=w.time;var A=constructTemplateUrl(e.media||"",l),E=e.timescale||1,C=e.presentationTimeOffset||0,M=e.periodStart+(w.time-C)/E,P={uri:A,timeline:w.timeline,duration:w.duration,resolvedUri:resolveUrl$1(e.baseUrl||"",A),map:h,number:w.number,presentationTime:M};return P})},SegmentURLToSegmentObject=function(e,o){var l=e.baseUrl,t=e.initialization,u=t===void 0?{}:t,h=urlTypeToSegment({baseUrl:l,source:u.sourceURL,range:u.range}),v=urlTypeToSegment({baseUrl:l,source:o.media,range:o.mediaRange});return v.map=h,v},segmentsFromList=function(e,o){var l=e.duration,t=e.segmentUrls,u=t===void 0?[]:t,h=e.periodStart;if(!l&&!o||l&&o)throw new Error(errors$3.SEGMENT_TIME_UNSPECIFIED);var v=u.map(function(E){return SegmentURLToSegmentObject(e,E)}),w;l&&(w=parseByDuration(e)),o&&(w=parseByTimeline(e,o));var A=w.map(function(E,C){if(v[C]){var M=v[C],P=e.timescale||1,I=e.presentationTimeOffset||0;return M.timeline=E.timeline,M.duration=E.duration,M.number=E.number,M.presentationTime=h+(E.time-I)/P,M}}).filter(function(E){return E});return A},generateSegments=function(e){var o=e.attributes,l=e.segmentInfo,t,u;l.template?(u=segmentsFromTemplate,t=merge(o,l.template)):l.base?(u=segmentsFromBase,t=merge(o,l.base)):l.list&&(u=segmentsFromList,t=merge(o,l.list));var h={attributes:o};if(!u)return h;var v=u(t,l.segmentTimeline);if(t.duration){var w=t,A=w.duration,E=w.timescale,C=E===void 0?1:E;t.duration=A/C}else v.length?t.duration=v.reduce(function(M,P){return Math.max(M,Math.ceil(P.duration))},0):t.duration=0;return h.attributes=t,h.segments=v,l.base&&t.indexRange&&(h.sidx=v[0],h.segments=[]),h},toPlaylists=function(e){return e.map(generateSegments)},findChildren=function(e,o){return from(e.childNodes).filter(function(l){var t=l.tagName;return t===o})},getContent=function(e){return e.textContent.trim()},parseDivisionValue=function(e){return parseFloat(e.split("/").reduce(function(o,l){return o/l}))},parseDuration=function(e){var o=31536e3,l=30*24*60*60,t=24*60*60,u=60*60,h=60,v=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,w=v.exec(e);if(!w)return 0;var A=w.slice(1),E=A[0],C=A[1],M=A[2],P=A[3],I=A[4],j=A[5];return parseFloat(E||0)*o+parseFloat(C||0)*l+parseFloat(M||0)*t+parseFloat(P||0)*u+parseFloat(I||0)*h+parseFloat(j||0)},parseDate$1=function(e){var o=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return o.test(e)&&(e+="Z"),Date.parse(e)},parsers={mediaPresentationDuration:function(e){return parseDuration(e)},availabilityStartTime:function(e){return parseDate$1(e)/1e3},minimumUpdatePeriod:function(e){return parseDuration(e)},suggestedPresentationDelay:function(e){return parseDuration(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return parseDuration(e)},start:function(e){return parseDuration(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return parseDivisionValue(e)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var o=parseInt(e,10);return isNaN(o)?parseDuration(e):o},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},parseAttributes=function(e){return e&&e.attributes?from(e.attributes).reduce(function(o,l){var t=parsers[l.name]||parsers.DEFAULT;return o[l.name]=t(l.value),o},{}):{}},keySystemsMap={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},buildBaseUrls=function(e,o){return o.length?flatten(e.map(function(l){return o.map(function(t){return resolveUrl$1(l,getContent(t))})})):e},getSegmentInformation=function(e){var o=findChildren(e,"SegmentTemplate")[0],l=findChildren(e,"SegmentList")[0],t=l&&findChildren(l,"SegmentURL").map(function(M){return merge({tag:"SegmentURL"},parseAttributes(M))}),u=findChildren(e,"SegmentBase")[0],h=l||o,v=h&&findChildren(h,"SegmentTimeline")[0],w=l||u||o,A=w&&findChildren(w,"Initialization")[0],E=o&&parseAttributes(o);E&&A?E.initialization=A&&parseAttributes(A):E&&E.initialization&&(E.initialization={sourceURL:E.initialization});var C={template:E,segmentTimeline:v&&findChildren(v,"S").map(function(M){return parseAttributes(M)}),list:l&&merge(parseAttributes(l),{segmentUrls:t,initialization:parseAttributes(A)}),base:u&&merge(parseAttributes(u),{initialization:parseAttributes(A)})};return Object.keys(C).forEach(function(M){C[M]||delete C[M]}),C},inheritBaseUrls=function(e,o,l){return function(t){var u=findChildren(t,"BaseURL"),h=buildBaseUrls(o,u),v=merge(e,parseAttributes(t)),w=getSegmentInformation(t);return h.map(function(A){return{segmentInfo:merge(l,w),attributes:merge(v,{baseUrl:A})}})}},generateKeySystemInformation=function(e){return e.reduce(function(o,l){var t=parseAttributes(l);t.schemeIdUri&&(t.schemeIdUri=t.schemeIdUri.toLowerCase());var u=keySystemsMap[t.schemeIdUri];if(u){o[u]={attributes:t};var h=findChildren(l,"cenc:pssh")[0];if(h){var v=getContent(h);o[u].pssh=v&&decodeB64ToUint8Array(v)}}return o},{})},parseCaptionServiceMetadata=function(e){if(e.schemeIdUri==="urn:scte:dash:cc:cea-608:2015"){var o=typeof e.value!="string"?[]:e.value.split(";");return o.map(function(t){var u,h;if(h=t,/^CC\d=/.test(t)){var v=t.split("=");u=v[0],h=v[1]}else/^CC\d$/.test(t)&&(u=t);return{channel:u,language:h}})}else if(e.schemeIdUri==="urn:scte:dash:cc:cea-708:2015"){var l=typeof e.value!="string"?[]:e.value.split(";");return l.map(function(t){var u={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var h=t.split("="),v=h[0],w=h[1],A=w===void 0?"":w;u.channel=v,u.language=t,A.split(",").forEach(function(E){var C=E.split(":"),M=C[0],P=C[1];M==="lang"?u.language=P:M==="er"?u.easyReader=Number(P):M==="war"?u.aspectRatio=Number(P):M==="3D"&&(u["3D"]=Number(P))})}else u.language=t;return u.channel&&(u.channel="SERVICE"+u.channel),u})}},toRepresentations=function(e,o,l){return function(t){var u=parseAttributes(t),h=buildBaseUrls(o,findChildren(t,"BaseURL")),v=findChildren(t,"Role")[0],w={role:parseAttributes(v)},A=merge(e,u,w),E=findChildren(t,"Accessibility")[0],C=parseCaptionServiceMetadata(parseAttributes(E));C&&(A=merge(A,{captionServices:C}));var M=findChildren(t,"Label")[0];if(M&&M.childNodes.length){var P=M.childNodes[0].nodeValue.trim();A=merge(A,{label:P})}var I=generateKeySystemInformation(findChildren(t,"ContentProtection"));Object.keys(I).length&&(A=merge(A,{contentProtection:I}));var j=getSegmentInformation(t),B=findChildren(t,"Representation"),F=merge(l,j);return flatten(B.map(inheritBaseUrls(A,h,F)))}},toAdaptationSets=function(e,o){return function(l,t){var u=buildBaseUrls(o,findChildren(l.node,"BaseURL")),h=merge(e,{periodStart:l.attributes.start});typeof l.attributes.duration=="number"&&(h.periodDuration=l.attributes.duration);var v=findChildren(l.node,"AdaptationSet"),w=getSegmentInformation(l.node);return flatten(v.map(toRepresentations(h,u,w)))}},getPeriodStart=function(e){var o=e.attributes,l=e.priorPeriodAttributes,t=e.mpdType;return typeof o.start=="number"?o.start:l&&typeof l.start=="number"&&typeof l.duration=="number"?l.start+l.duration:!l&&t==="static"?0:null},inheritAttributes=function(e,o){o===void 0&&(o={});var l=o,t=l.manifestUri,u=t===void 0?"":t,h=l.NOW,v=h===void 0?Date.now():h,w=l.clientOffset,A=w===void 0?0:w,E=findChildren(e,"Period");if(!E.length)throw new Error(errors$3.INVALID_NUMBER_OF_PERIOD);var C=findChildren(e,"Location"),M=parseAttributes(e),P=buildBaseUrls([u],findChildren(e,"BaseURL"));M.type=M.type||"static",M.sourceDuration=M.mediaPresentationDuration||0,M.NOW=v,M.clientOffset=A,C.length&&(M.locations=C.map(getContent));var I=[];return E.forEach(function(j,B){var F=parseAttributes(j),N=I[B-1];F.start=getPeriodStart({attributes:F,priorPeriodAttributes:N?N.attributes:null,mpdType:M.type}),I.push({node:j,attributes:F})}),{locations:M.locations,representationInfo:flatten(I.map(toAdaptationSets(M,P)))}},stringToMpdXml=function(e){if(e==="")throw new Error(errors$3.DASH_EMPTY_MANIFEST);var o=new DOMParser,l,t;try{l=o.parseFromString(e,"application/xml"),t=l&&l.documentElement.tagName==="MPD"?l.documentElement:null}catch{}if(!t||t&&t.getElementsByTagName("parsererror").length>0)throw new Error(errors$3.DASH_INVALID_XML);return t},parseUTCTimingScheme=function(e){var o=findChildren(e,"UTCTiming")[0];if(!o)return null;var l=parseAttributes(o);switch(l.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":l.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":l.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":l.method="DIRECT",l.value=Date.parse(l.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(errors$3.UNSUPPORTED_UTC_TIMING_SCHEME)}return l},parse$4=function(e,o){o===void 0&&(o={});var l=inheritAttributes(stringToMpdXml(e),o),t=toPlaylists(l.representationInfo);return toM3u8({dashPlaylists:t,locations:l.locations,sidxMapping:o.sidxMapping,previousManifest:o.previousManifest})},parseUTCTiming=function(e){return parseUTCTimingScheme(stringToMpdXml(e))},MAX_UINT32$1=Math.pow(2,32),getUint64$1=function(n){var e=new DataView(n.buffer,n.byteOffset,n.byteLength),o;return e.getBigUint64?(o=e.getBigUint64(0),o<Number.MAX_SAFE_INTEGER?Number(o):o):e.getUint32(0)*MAX_UINT32$1+e.getUint32(4)},numbers={getUint64:getUint64$1,MAX_UINT32:MAX_UINT32$1},getUint64=numbers.getUint64,parseSidx=function(n){var e=new DataView(n.buffer,n.byteOffset,n.byteLength),o={version:n[0],flags:new Uint8Array(n.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},l=12;o.version===0?(o.earliestPresentationTime=e.getUint32(l),o.firstOffset=e.getUint32(l+4),l+=8):(o.earliestPresentationTime=getUint64(n.subarray(l)),o.firstOffset=getUint64(n.subarray(l+8)),l+=16),l+=2;var t=e.getUint16(l);for(l+=2;t>0;l+=12,t--)o.references.push({referenceType:(n[l]&128)>>>7,referencedSize:e.getUint32(l)&2147483647,subsegmentDuration:e.getUint32(l+4),startsWithSap:!!(n[l+8]&128),sapType:(n[l+8]&112)>>>4,sapDeltaTime:e.getUint32(l+8)&268435455});return o},parseSidx_1=parseSidx;const parseSidx$1=getDefaultExportFromCjs$1(parseSidx_1);var ID3=toUint8([73,68,51]),getId3Size=function(e,o){o===void 0&&(o=0),e=toUint8(e);var l=e[o+5],t=e[o+6]<<21|e[o+7]<<14|e[o+8]<<7|e[o+9],u=(l&16)>>4;return u?t+20:t+10},getId3Offset=function n(e,o){return o===void 0&&(o=0),e=toUint8(e),e.length-o<10||!bytesMatch(e,ID3,{offset:o})?o:(o+=getId3Size(e,o),n(e,o))},normalizePath$1=function(e){return typeof e=="string"?stringToBytes(e):e},normalizePaths$1=function(e){return Array.isArray(e)?e.map(function(o){return normalizePath$1(o)}):[normalizePath$1(e)]},findBox=function n(e,o,l){l===void 0&&(l=!1),o=normalizePaths$1(o),e=toUint8(e);var t=[];if(!o.length)return t;for(var u=0;u<e.length;){var h=(e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3])>>>0,v=e.subarray(u+4,u+8);if(h===0)break;var w=u+h;if(w>e.length){if(l)break;w=e.length}var A=e.subarray(u+8,w);bytesMatch(v,o[0])&&(o.length===1?t.push(A):t.push.apply(t,n(A,o.slice(1),l))),u=w}return t},EBML_TAGS={EBML:toUint8([26,69,223,163]),DocType:toUint8([66,130]),Segment:toUint8([24,83,128,103]),SegmentInfo:toUint8([21,73,169,102]),Tracks:toUint8([22,84,174,107]),Track:toUint8([174]),TrackNumber:toUint8([215]),DefaultDuration:toUint8([35,227,131]),TrackEntry:toUint8([174]),TrackType:toUint8([131]),FlagDefault:toUint8([136]),CodecID:toUint8([134]),CodecPrivate:toUint8([99,162]),VideoTrack:toUint8([224]),AudioTrack:toUint8([225]),Cluster:toUint8([31,67,182,117]),Timestamp:toUint8([231]),TimestampScale:toUint8([42,215,177]),BlockGroup:toUint8([160]),BlockDuration:toUint8([155]),Block:toUint8([161]),SimpleBlock:toUint8([163])},LENGTH_TABLE=[128,64,32,16,8,4,2,1],getLength$1=function(e){for(var o=1,l=0;l<LENGTH_TABLE.length&&!(e&LENGTH_TABLE[l]);l++)o++;return o},getvint=function(e,o,l,t){l===void 0&&(l=!0),t===void 0&&(t=!1);var u=getLength$1(e[o]),h=e.subarray(o,o+u);return l&&(h=Array.prototype.slice.call(e,o,o+u),h[0]^=LENGTH_TABLE[u-1]),{length:u,value:bytesToNumber(h,{signed:t}),bytes:h}},normalizePath=function n(e){return typeof e=="string"?e.match(/.{1,2}/g).map(function(o){return n(o)}):typeof e=="number"?numberToBytes(e):e},normalizePaths=function(e){return Array.isArray(e)?e.map(function(o){return normalizePath(o)}):[normalizePath(e)]},getInfinityDataSize=function n(e,o,l){if(l>=o.length)return o.length;var t=getvint(o,l,!1);if(bytesMatch(e.bytes,t.bytes))return l;var u=getvint(o,l+t.length);return n(e,o,l+u.length+u.value+t.length)},findEbml=function n(e,o){o=normalizePaths(o),e=toUint8(e);var l=[];if(!o.length)return l;for(var t=0;t<e.length;){var u=getvint(e,t,!1),h=getvint(e,t+u.length),v=t+u.length+h.length;h.value===127&&(h.value=getInfinityDataSize(u,e,v),h.value!==e.length&&(h.value-=v));var w=v+h.value>e.length?e.length:v+h.value,A=e.subarray(v,w);bytesMatch(o[0],u.bytes)&&(o.length===1?l.push(A):l=l.concat(n(A,o.slice(1))));var E=u.length+h.length+A.length;t+=E}return l},NAL_TYPE_ONE=toUint8([0,0,0,1]),NAL_TYPE_TWO=toUint8([0,0,1]),EMULATION_PREVENTION=toUint8([0,0,3]),discardEmulationPreventionBytes=function(e){for(var o=[],l=1;l<e.length-2;)bytesMatch(e.subarray(l,l+3),EMULATION_PREVENTION)&&(o.push(l+2),l++),l++;if(o.length===0)return e;var t=e.length-o.length,u=new Uint8Array(t),h=0;for(l=0;l<t;h++,l++)h===o[0]&&(h++,o.shift()),u[l]=e[h];return u},findNal=function(e,o,l,t){e=toUint8(e),l=[].concat(l);for(var u=0,h,v=0;u<e.length&&(v<t||h);){var w=void 0;if(bytesMatch(e.subarray(u),NAL_TYPE_ONE)?w=4:bytesMatch(e.subarray(u),NAL_TYPE_TWO)&&(w=3),!w){u++;continue}if(v++,h)return discardEmulationPreventionBytes(e.subarray(h,u));var A=void 0;o==="h264"?A=e[u+w]&31:o==="h265"&&(A=e[u+w]>>1&63),l.indexOf(A)!==-1&&(h=u+w),u+=w+(o==="h264"?1:2)}return e.subarray(0,0)},findH264Nal=function(e,o,l){return findNal(e,"h264",o,l)},findH265Nal=function(e,o,l){return findNal(e,"h265",o,l)},CONSTANTS={webm:toUint8([119,101,98,109]),matroska:toUint8([109,97,116,114,111,115,107,97]),flac:toUint8([102,76,97,67]),ogg:toUint8([79,103,103,83]),ac3:toUint8([11,119]),riff:toUint8([82,73,70,70]),avi:toUint8([65,86,73]),wav:toUint8([87,65,86,69]),"3gp":toUint8([102,116,121,112,51,103]),mp4:toUint8([102,116,121,112]),fmp4:toUint8([115,116,121,112]),mov:toUint8([102,116,121,112,113,116]),moov:toUint8([109,111,111,118]),moof:toUint8([109,111,111,102])},_isLikely={aac:function(e){var o=getId3Offset(e);return bytesMatch(e,[255,16],{offset:o,mask:[255,22]})},mp3:function(e){var o=getId3Offset(e);return bytesMatch(e,[255,2],{offset:o,mask:[255,6]})},webm:function(e){var o=findEbml(e,[EBML_TAGS.EBML,EBML_TAGS.DocType])[0];return bytesMatch(o,CONSTANTS.webm)},mkv:function(e){var o=findEbml(e,[EBML_TAGS.EBML,EBML_TAGS.DocType])[0];return bytesMatch(o,CONSTANTS.matroska)},mp4:function(e){if(_isLikely["3gp"](e)||_isLikely.mov(e))return!1;if(bytesMatch(e,CONSTANTS.mp4,{offset:4})||bytesMatch(e,CONSTANTS.fmp4,{offset:4})||bytesMatch(e,CONSTANTS.moof,{offset:4})||bytesMatch(e,CONSTANTS.moov,{offset:4}))return!0},mov:function(e){return bytesMatch(e,CONSTANTS.mov,{offset:4})},"3gp":function(e){return bytesMatch(e,CONSTANTS["3gp"],{offset:4})},ac3:function(e){var o=getId3Offset(e);return bytesMatch(e,CONSTANTS.ac3,{offset:o})},ts:function(e){if(e.length<189&&e.length>=1)return e[0]===71;for(var o=0;o+188<e.length&&o<188;){if(e[o]===71&&e[o+188]===71)return!0;o+=1}return!1},flac:function(e){var o=getId3Offset(e);return bytesMatch(e,CONSTANTS.flac,{offset:o})},ogg:function(e){return bytesMatch(e,CONSTANTS.ogg)},avi:function(e){return bytesMatch(e,CONSTANTS.riff)&&bytesMatch(e,CONSTANTS.avi,{offset:8})},wav:function(e){return bytesMatch(e,CONSTANTS.riff)&&bytesMatch(e,CONSTANTS.wav,{offset:8})},h264:function(e){return findH264Nal(e,7,3).length},h265:function(e){return findH265Nal(e,[32,33],3).length}},isLikelyTypes=Object.keys(_isLikely).filter(function(n){return n!=="ts"&&n!=="h264"&&n!=="h265"}).concat(["ts","h264","h265"]);isLikelyTypes.forEach(function(n){var e=_isLikely[n];_isLikely[n]=function(o){return e(toUint8(o))}});var isLikely=_isLikely,detectContainerForBytes=function(e){e=toUint8(e);for(var o=0;o<isLikelyTypes.length;o++){var l=isLikelyTypes[o];if(isLikely[l](e))return l}return""},isLikelyFmp4MediaSegment=function(e){return findBox(e,["moof"]).length>0},ONE_SECOND_IN_TS=9e4,secondsToVideoTs,secondsToAudioTs,videoTsToSeconds,audioTsToSeconds,audioTsToVideoTs,videoTsToAudioTs,metadataTsToSeconds;secondsToVideoTs=function(n){return n*ONE_SECOND_IN_TS},secondsToAudioTs=function(n,e){return n*e},videoTsToSeconds=function(n){return n/ONE_SECOND_IN_TS},audioTsToSeconds=function(n,e){return n/e},audioTsToVideoTs=function(n,e){return secondsToVideoTs(audioTsToSeconds(n,e))},videoTsToAudioTs=function(n,e){return secondsToAudioTs(videoTsToSeconds(n),e)},metadataTsToSeconds=function(n,e,o){return videoTsToSeconds(o?n:n-e)};var clock={ONE_SECOND_IN_TS,secondsToVideoTs,secondsToAudioTs,videoTsToSeconds,audioTsToSeconds,audioTsToVideoTs,videoTsToAudioTs,metadataTsToSeconds};function _getPrototypeOf$1(n){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$1(n)}function _isNativeFunction$1(n){try{return Function.toString.call(n).indexOf("[native code]")!==-1}catch{return typeof n=="function"}}function _wrapNativeSuper$1(n){var e=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$1=function(l){if(l===null||!_isNativeFunction$1(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(l))return e.get(l);e.set(l,t)}function t(){return _construct$1(l,arguments,_getPrototypeOf$1(this).constructor)}return t.prototype=Object.create(l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$1(t,l)},_wrapNativeSuper$1(n)}for(var version$5="7.21.6",hooks_={},hooks=function(e,o){return hooks_[e]=hooks_[e]||[],o&&(hooks_[e]=hooks_[e].concat(o)),hooks_[e]},hook=function(e,o){hooks(e,o)},removeHook=function(e,o){var l=hooks(e).indexOf(o);return l<=-1?!1:(hooks_[e]=hooks_[e].slice(),hooks_[e].splice(l,1),!0)},hookOnce=function(e,o){hooks(e,[].concat(o).map(function(l){var t=function u(){return removeHook(e,u),l.apply(void 0,arguments)};return t}))},FullscreenApi={prefixed:!0},apiMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],specApi=apiMap[0],browserApi,i=0;i<apiMap.length;i++)if(apiMap[i][1]in document$2){browserApi=apiMap[i];break}if(browserApi){for(var _i=0;_i<browserApi.length;_i++)FullscreenApi[specApi[_i]]=browserApi[_i];FullscreenApi.prefixed=browserApi[0]!==specApi[0]}var history=[],LogByTypeFactory=function(e,o){return function(l,t,u){var h=o.levels[t],v=new RegExp("^("+h+")$");if(l!=="log"&&u.unshift(l.toUpperCase()+":"),u.unshift(e+":"),history){history.push([].concat(u));var w=history.length-1e3;history.splice(0,w>0?w:0)}if(window$1$1.console){var A=window$1$1.console[l];!A&&l==="debug"&&(A=window$1$1.console.info||window$1$1.console.log),!(!A||!h||!v.test(l))&&A[Array.isArray(u)?"apply":"call"](window$1$1.console,u)}}};function createLogger$1(n){var e="info",o,l=function(){for(var u=arguments.length,h=new Array(u),v=0;v<u;v++)h[v]=arguments[v];o("log",e,h)};return o=LogByTypeFactory(n,l),l.createLogger=function(t){return createLogger$1(n+": "+t)},l.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:e},l.level=function(t){if(typeof t=="string"){if(!l.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');e=t}return e},l.history=function(){return history?[].concat(history):[]},l.history.filter=function(t){return(history||[]).filter(function(u){return new RegExp(".*"+t+".*").test(u[0])})},l.history.clear=function(){history&&(history.length=0)},l.history.disable=function(){history!==null&&(history.length=0,history=null)},l.history.enable=function(){history===null&&(history=[])},l.error=function(){for(var t=arguments.length,u=new Array(t),h=0;h<t;h++)u[h]=arguments[h];return o("error",e,u)},l.warn=function(){for(var t=arguments.length,u=new Array(t),h=0;h<t;h++)u[h]=arguments[h];return o("warn",e,u)},l.debug=function(){for(var t=arguments.length,u=new Array(t),h=0;h<t;h++)u[h]=arguments[h];return o("debug",e,u)},l}var log$1=createLogger$1("VIDEOJS"),createLogger=log$1.createLogger,toString$1=Object.prototype.toString,keys=function(e){return isObject$1(e)?Object.keys(e):[]};function each(n,e){keys(n).forEach(function(o){return e(n[o],o)})}function reduce(n,e,o){return o===void 0&&(o=0),keys(n).reduce(function(l,t){return e(l,n[t],t)},o)}function assign(n){for(var e=arguments.length,o=new Array(e>1?e-1:0),l=1;l<e;l++)o[l-1]=arguments[l];return Object.assign?_extends$2.apply(void 0,[n].concat(o)):(o.forEach(function(t){t&&each(t,function(u,h){n[h]=u})}),n)}function isObject$1(n){return!!n&&typeof n=="object"}function isPlain(n){return isObject$1(n)&&toString$1.call(n)==="[object Object]"&&n.constructor===Object}function computedStyle(n,e){if(!n||!e)return"";if(typeof window$1$1.getComputedStyle=="function"){var o;try{o=window$1$1.getComputedStyle(n)}catch{return""}return o?o.getPropertyValue(e)||o[e]:""}return""}var USER_AGENT=window$1$1.navigator&&window$1$1.navigator.userAgent||"",webkitVersionMap=/AppleWebKit\/([\d.]+)/i.exec(USER_AGENT),appleWebkitVersion=webkitVersionMap?parseFloat(webkitVersionMap.pop()):null,IS_IPOD=/iPod/i.test(USER_AGENT),IOS_VERSION=function(){var n=USER_AGENT.match(/OS (\d+)_/i);return n&&n[1]?n[1]:null}(),IS_ANDROID=/Android/i.test(USER_AGENT),ANDROID_VERSION=function(){var n=USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!n)return null;var e=n[1]&&parseFloat(n[1]),o=n[2]&&parseFloat(n[2]);return e&&o?parseFloat(n[1]+"."+n[2]):e||null}(),IS_NATIVE_ANDROID=IS_ANDROID&&ANDROID_VERSION<5&&appleWebkitVersion<537,IS_FIREFOX=/Firefox/i.test(USER_AGENT),IS_EDGE=/Edg/i.test(USER_AGENT),IS_CHROME=!IS_EDGE&&(/Chrome/i.test(USER_AGENT)||/CriOS/i.test(USER_AGENT)),CHROME_VERSION=function(){var n=USER_AGENT.match(/(Chrome|CriOS)\/(\d+)/);return n&&n[2]?parseFloat(n[2]):null}(),IE_VERSION=function(){var n=/MSIE\s(\d+)\.\d/.exec(USER_AGENT),e=n&&parseFloat(n[1]);return!e&&/Trident\/7.0/i.test(USER_AGENT)&&/rv:11.0/.test(USER_AGENT)&&(e=11),e}(),IS_SAFARI=/Safari/i.test(USER_AGENT)&&!IS_CHROME&&!IS_ANDROID&&!IS_EDGE,IS_WINDOWS=/Windows/i.test(USER_AGENT),TOUCH_ENABLED=!!(isReal()&&("ontouchstart"in window$1$1||window$1$1.navigator.maxTouchPoints||window$1$1.DocumentTouch&&window$1$1.document instanceof window$1$1.DocumentTouch)),IS_IPAD=/iPad/i.test(USER_AGENT)||IS_SAFARI&&TOUCH_ENABLED&&!/iPhone/i.test(USER_AGENT),IS_IPHONE=/iPhone/i.test(USER_AGENT)&&!IS_IPAD,IS_IOS=IS_IPHONE||IS_IPAD||IS_IPOD,IS_ANY_SAFARI=(IS_SAFARI||IS_IOS)&&!IS_CHROME,browser$f=Object.freeze({__proto__:null,IS_IPOD,IOS_VERSION,IS_ANDROID,ANDROID_VERSION,IS_NATIVE_ANDROID,IS_FIREFOX,IS_EDGE,IS_CHROME,CHROME_VERSION,IE_VERSION,IS_SAFARI,IS_WINDOWS,TOUCH_ENABLED,IS_IPAD,IS_IPHONE,IS_IOS,IS_ANY_SAFARI});function isNonBlankString(n){return typeof n=="string"&&!!n.trim()}function throwIfWhitespace(n){if(n.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function classRegExp(n){return new RegExp("(^|\\s)"+n+"($|\\s)")}function isReal(){return document$2===window$1$1.document}function isEl(n){return isObject$1(n)&&n.nodeType===1}function isInFrame(){try{return window$1$1.parent!==window$1$1.self}catch{return!0}}function createQuerier(n){return function(e,o){if(!isNonBlankString(e))return document$2[n](null);isNonBlankString(o)&&(o=document$2.querySelector(o));var l=isEl(o)?o:document$2;return l[n]&&l[n](e)}}function createEl(n,e,o,l){n===void 0&&(n="div"),e===void 0&&(e={}),o===void 0&&(o={});var t=document$2.createElement(n);return Object.getOwnPropertyNames(e).forEach(function(u){var h=e[u];u.indexOf("aria-")!==-1||u==="role"||u==="type"?(log$1.warn(`Setting attributes in the second argument of createEl()
has been deprecated. Use the third argument instead.
`+("createEl(type, properties, attributes). Attempting to set "+u+" to "+h+".")),t.setAttribute(u,h)):u==="textContent"?textContent(t,h):(t[u]!==h||u==="tabIndex")&&(t[u]=h)}),Object.getOwnPropertyNames(o).forEach(function(u){t.setAttribute(u,o[u])}),l&&appendContent(t,l),t}function textContent(n,e){return typeof n.textContent>"u"?n.innerText=e:n.textContent=e,n}function prependTo(n,e){e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}function hasClass(n,e){return throwIfWhitespace(e),n.classList?n.classList.contains(e):classRegExp(e).test(n.className)}function addClass(n,e){return n.classList?n.classList.add(e):hasClass(n,e)||(n.className=(n.className+" "+e).trim()),n}function removeClass(n,e){return n?(n.classList?n.classList.remove(e):(throwIfWhitespace(e),n.className=n.className.split(/\s+/).filter(function(o){return o!==e}).join(" ")),n):(log$1.warn("removeClass was called with an element that doesn't exist"),null)}function toggleClass(n,e,o){var l=hasClass(n,e);if(typeof o=="function"&&(o=o(n,e)),typeof o!="boolean"&&(o=!l),o!==l)return o?addClass(n,e):removeClass(n,e),n}function setAttributes(n,e){Object.getOwnPropertyNames(e).forEach(function(o){var l=e[o];l===null||typeof l>"u"||l===!1?n.removeAttribute(o):n.setAttribute(o,l===!0?"":l)})}function getAttributes(n){var e={},o=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(n&&n.attributes&&n.attributes.length>0)for(var l=n.attributes,t=l.length-1;t>=0;t--){var u=l[t].name,h=l[t].value;(typeof n[u]=="boolean"||o.indexOf(","+u+",")!==-1)&&(h=h!==null),e[u]=h}return e}function getAttribute(n,e){return n.getAttribute(e)}function setAttribute(n,e,o){n.setAttribute(e,o)}function removeAttribute(n,e){n.removeAttribute(e)}function blockTextSelection(){document$2.body.focus(),document$2.onselectstart=function(){return!1}}function unblockTextSelection(){document$2.onselectstart=function(){return!0}}function getBoundingClientRect(n){if(n&&n.getBoundingClientRect&&n.parentNode){var e=n.getBoundingClientRect(),o={};return["bottom","height","left","right","top","width"].forEach(function(l){e[l]!==void 0&&(o[l]=e[l])}),o.height||(o.height=parseFloat(computedStyle(n,"height"))),o.width||(o.width=parseFloat(computedStyle(n,"width"))),o}}function findPosition(n){if(!n||n&&!n.offsetParent)return{left:0,top:0,width:0,height:0};for(var e=n.offsetWidth,o=n.offsetHeight,l=0,t=0;n.offsetParent&&n!==document$2[FullscreenApi.fullscreenElement];)l+=n.offsetLeft,t+=n.offsetTop,n=n.offsetParent;return{left:l,top:t,width:e,height:o}}function getPointerPosition(n,e){var o={x:0,y:0};if(IS_IOS)for(var l=n;l&&l.nodeName.toLowerCase()!=="html";){var t=computedStyle(l,"transform");if(/^matrix/.test(t)){var u=t.slice(7,-1).split(/,\s/).map(Number);o.x+=u[4],o.y+=u[5]}else if(/^matrix3d/.test(t)){var h=t.slice(9,-1).split(/,\s/).map(Number);o.x+=h[12],o.y+=h[13]}l=l.parentNode}var v={},w=findPosition(e.target),A=findPosition(n),E=A.width,C=A.height,M=e.offsetY-(A.top-w.top),P=e.offsetX-(A.left-w.left);return e.changedTouches&&(P=e.changedTouches[0].pageX-A.left,M=e.changedTouches[0].pageY+A.top,IS_IOS&&(P-=o.x,M-=o.y)),v.y=1-Math.max(0,Math.min(1,M/C)),v.x=Math.max(0,Math.min(1,P/E)),v}function isTextNode(n){return isObject$1(n)&&n.nodeType===3}function emptyEl(n){for(;n.firstChild;)n.removeChild(n.firstChild);return n}function normalizeContent(n){return typeof n=="function"&&(n=n()),(Array.isArray(n)?n:[n]).map(function(e){if(typeof e=="function"&&(e=e()),isEl(e)||isTextNode(e))return e;if(typeof e=="string"&&/\S/.test(e))return document$2.createTextNode(e)}).filter(function(e){return e})}function appendContent(n,e){return normalizeContent(e).forEach(function(o){return n.appendChild(o)}),n}function insertContent(n,e){return appendContent(emptyEl(n),e)}function isSingleLeftClick(n){return n.button===void 0&&n.buttons===void 0||n.button===0&&n.buttons===void 0||n.type==="mouseup"&&n.button===0&&n.buttons===0?!0:!(n.button!==0||n.buttons!==1)}var $=createQuerier("querySelector"),$$=createQuerier("querySelectorAll"),Dom=Object.freeze({__proto__:null,isReal,isEl,isInFrame,createEl,textContent,prependTo,hasClass,addClass,removeClass,toggleClass,setAttributes,getAttributes,getAttribute,setAttribute,removeAttribute,blockTextSelection,unblockTextSelection,getBoundingClientRect,findPosition,getPointerPosition,isTextNode,emptyEl,normalizeContent,appendContent,insertContent,isSingleLeftClick,$,$$}),_windowLoaded=!1,videojs$1,autoSetup=function(){if(videojs$1.options.autoSetup!==!1){var e=Array.prototype.slice.call(document$2.getElementsByTagName("video")),o=Array.prototype.slice.call(document$2.getElementsByTagName("audio")),l=Array.prototype.slice.call(document$2.getElementsByTagName("video-js")),t=e.concat(o,l);if(t&&t.length>0)for(var u=0,h=t.length;u<h;u++){var v=t[u];if(v&&v.getAttribute){if(v.player===void 0){var w=v.getAttribute("data-setup");w!==null&&videojs$1(v)}}else{autoSetupTimeout(1);break}}else _windowLoaded||autoSetupTimeout(1)}};function autoSetupTimeout(n,e){isReal()&&(e&&(videojs$1=e),window$1$1.setTimeout(autoSetup,n))}function setWindowLoaded(){_windowLoaded=!0,window$1$1.removeEventListener("load",setWindowLoaded)}isReal()&&(document$2.readyState==="complete"?setWindowLoaded():window$1$1.addEventListener("load",setWindowLoaded));var createStyleElement=function(e){var o=document$2.createElement("style");return o.className=e,o},setTextContent=function(e,o){e.styleSheet?e.styleSheet.cssText=o:e.textContent=o},_initialGuid=3,_guid=_initialGuid;function newGUID(){return _guid++}var FakeWeakMap;window$1$1.WeakMap||(FakeWeakMap=function(){function n(){this.vdata="vdata"+Math.floor(window$1$1.performance&&window$1$1.performance.now()||Date.now()),this.data={}}var e=n.prototype;return e.set=function(l,t){var u=l[this.vdata]||newGUID();return l[this.vdata]||(l[this.vdata]=u),this.data[u]=t,this},e.get=function(l){var t=l[this.vdata];if(t)return this.data[t];log$1("We have no data for this element",l)},e.has=function(l){var t=l[this.vdata];return t in this.data},e.delete=function(l){var t=l[this.vdata];t&&(delete this.data[t],delete l[this.vdata])},n}());var DomData=window$1$1.WeakMap?new WeakMap:new FakeWeakMap;function _cleanUpEvents(n,e){if(DomData.has(n)){var o=DomData.get(n);o.handlers[e].length===0&&(delete o.handlers[e],n.removeEventListener?n.removeEventListener(e,o.dispatcher,!1):n.detachEvent&&n.detachEvent("on"+e,o.dispatcher)),Object.getOwnPropertyNames(o.handlers).length<=0&&(delete o.handlers,delete o.dispatcher,delete o.disabled),Object.getOwnPropertyNames(o).length===0&&DomData.delete(n)}}function _handleMultipleEvents(n,e,o,l){o.forEach(function(t){n(e,t,l)})}function fixEvent(n){if(n.fixed_)return n;function e(){return!0}function o(){return!1}if(!n||!n.isPropagationStopped||!n.isImmediatePropagationStopped){var l=n||window$1$1.event;n={};for(var t in l)t!=="layerX"&&t!=="layerY"&&t!=="keyLocation"&&t!=="webkitMovementX"&&t!=="webkitMovementY"&&t!=="path"&&(t==="returnValue"&&l.preventDefault||(n[t]=l[t]));if(n.target||(n.target=n.srcElement||document$2),n.relatedTarget||(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),n.preventDefault=function(){l.preventDefault&&l.preventDefault(),n.returnValue=!1,l.returnValue=!1,n.defaultPrevented=!0},n.defaultPrevented=!1,n.stopPropagation=function(){l.stopPropagation&&l.stopPropagation(),n.cancelBubble=!0,l.cancelBubble=!0,n.isPropagationStopped=e},n.isPropagationStopped=o,n.stopImmediatePropagation=function(){l.stopImmediatePropagation&&l.stopImmediatePropagation(),n.isImmediatePropagationStopped=e,n.stopPropagation()},n.isImmediatePropagationStopped=o,n.clientX!==null&&n.clientX!==void 0){var u=document$2.documentElement,h=document$2.body;n.pageX=n.clientX+(u&&u.scrollLeft||h&&h.scrollLeft||0)-(u&&u.clientLeft||h&&h.clientLeft||0),n.pageY=n.clientY+(u&&u.scrollTop||h&&h.scrollTop||0)-(u&&u.clientTop||h&&h.clientTop||0)}n.which=n.charCode||n.keyCode,n.button!==null&&n.button!==void 0&&(n.button=n.button&1?0:n.button&4?1:n.button&2?2:0)}return n.fixed_=!0,n}var _supportsPassive,supportsPassive=function(){if(typeof _supportsPassive!="boolean"){_supportsPassive=!1;try{var e=Object.defineProperty({},"passive",{get:function(){_supportsPassive=!0}});window$1$1.addEventListener("test",null,e),window$1$1.removeEventListener("test",null,e)}catch{}}return _supportsPassive},passiveEvents=["touchstart","touchmove"];function on(n,e,o){if(Array.isArray(e))return _handleMultipleEvents(on,n,e,o);DomData.has(n)||DomData.set(n,{});var l=DomData.get(n);if(l.handlers||(l.handlers={}),l.handlers[e]||(l.handlers[e]=[]),o.guid||(o.guid=newGUID()),l.handlers[e].push(o),l.dispatcher||(l.disabled=!1,l.dispatcher=function(u,h){if(!l.disabled){u=fixEvent(u);var v=l.handlers[u.type];if(v)for(var w=v.slice(0),A=0,E=w.length;A<E&&!u.isImmediatePropagationStopped();A++)try{w[A].call(n,u,h)}catch(C){log$1.error(C)}}}),l.handlers[e].length===1)if(n.addEventListener){var t=!1;supportsPassive()&&passiveEvents.indexOf(e)>-1&&(t={passive:!0}),n.addEventListener(e,l.dispatcher,t)}else n.attachEvent&&n.attachEvent("on"+e,l.dispatcher)}function off(n,e,o){if(DomData.has(n)){var l=DomData.get(n);if(l.handlers){if(Array.isArray(e))return _handleMultipleEvents(off,n,e,o);var t=function(A,E){l.handlers[E]=[],_cleanUpEvents(A,E)};if(e===void 0){for(var u in l.handlers)Object.prototype.hasOwnProperty.call(l.handlers||{},u)&&t(n,u);return}var h=l.handlers[e];if(h){if(!o){t(n,e);return}if(o.guid)for(var v=0;v<h.length;v++)h[v].guid===o.guid&&h.splice(v--,1);_cleanUpEvents(n,e)}}}}function trigger(n,e,o){var l=DomData.has(n)?DomData.get(n):{},t=n.parentNode||n.ownerDocument;if(typeof e=="string"?e={type:e,target:n}:e.target||(e.target=n),e=fixEvent(e),l.dispatcher&&l.dispatcher.call(n,e,o),t&&!e.isPropagationStopped()&&e.bubbles===!0)trigger.call(null,t,e,o);else if(!t&&!e.defaultPrevented&&e.target&&e.target[e.type]){DomData.has(e.target)||DomData.set(e.target,{});var u=DomData.get(e.target);e.target[e.type]&&(u.disabled=!0,typeof e.target[e.type]=="function"&&e.target[e.type](),u.disabled=!1)}return!e.defaultPrevented}function one(n,e,o){if(Array.isArray(e))return _handleMultipleEvents(one,n,e,o);var l=function t(){off(n,e,t),o.apply(this,arguments)};l.guid=o.guid=o.guid||newGUID(),on(n,e,l)}function any(n,e,o){var l=function t(){off(n,e,t),o.apply(this,arguments)};l.guid=o.guid=o.guid||newGUID(),on(n,e,l)}var Events=Object.freeze({__proto__:null,fixEvent,on,off,trigger,one,any}),UPDATE_REFRESH_INTERVAL=30,bind$2=function(e,o,l){o.guid||(o.guid=newGUID());var t=o.bind(e);return t.guid=l?l+"_"+o.guid:o.guid,t},throttle=function(e,o){var l=window$1$1.performance.now(),t=function(){var h=window$1$1.performance.now();h-l>=o&&(e.apply(void 0,arguments),l=h)};return t},debounce=function(e,o,l,t){t===void 0&&(t=window$1$1);var u,h=function(){t.clearTimeout(u),u=null},v=function(){var A=this,E=arguments,C=function(){u=null,C=null,e.apply(A,E)};!u&&l&&e.apply(A,E),t.clearTimeout(u),u=t.setTimeout(C,o)};return v.cancel=h,v},EventTarget$2=function(){};EventTarget$2.prototype.allowedEvents_={},EventTarget$2.prototype.on=function(n,e){var o=this.addEventListener;this.addEventListener=function(){},on(this,n,e),this.addEventListener=o},EventTarget$2.prototype.addEventListener=EventTarget$2.prototype.on,EventTarget$2.prototype.off=function(n,e){off(this,n,e)},EventTarget$2.prototype.removeEventListener=EventTarget$2.prototype.off,EventTarget$2.prototype.one=function(n,e){var o=this.addEventListener;this.addEventListener=function(){},one(this,n,e),this.addEventListener=o},EventTarget$2.prototype.any=function(n,e){var o=this.addEventListener;this.addEventListener=function(){},any(this,n,e),this.addEventListener=o},EventTarget$2.prototype.trigger=function(n){var e=n.type||n;typeof n=="string"&&(n={type:e}),n=fixEvent(n),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](n),trigger(this,n)},EventTarget$2.prototype.dispatchEvent=EventTarget$2.prototype.trigger;var EVENT_MAP;EventTarget$2.prototype.queueTrigger=function(n){var e=this;EVENT_MAP||(EVENT_MAP=new Map);var o=n.type||n,l=EVENT_MAP.get(this);l||(l=new Map,EVENT_MAP.set(this,l));var t=l.get(o);l.delete(o),window$1$1.clearTimeout(t);var u=window$1$1.setTimeout(function(){l.delete(o),l.size===0&&(l=null,EVENT_MAP.delete(e)),e.trigger(n)},0);l.set(o,u)};var objName=function(e){return typeof e.name=="function"?e.name():typeof e.name=="string"?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},isEvented=function(e){return e instanceof EventTarget$2||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(o){return typeof e[o]=="function"})},addEventedCallback=function(e,o){isEvented(e)?o():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(o))},isValidEventType=function(e){return typeof e=="string"&&/\S/.test(e)||Array.isArray(e)&&!!e.length},validateTarget=function(e,o,l){if(!e||!e.nodeName&&!isEvented(e))throw new Error("Invalid target for "+objName(o)+"#"+l+"; must be a DOM node or evented object.")},validateEventType=function(e,o,l){if(!isValidEventType(e))throw new Error("Invalid event type for "+objName(o)+"#"+l+"; must be a non-empty string or array.")},validateListener=function(e,o,l){if(typeof e!="function")throw new Error("Invalid listener for "+objName(o)+"#"+l+"; must be a function.")},normalizeListenArgs=function(e,o,l){var t=o.length<3||o[0]===e||o[0]===e.eventBusEl_,u,h,v;return t?(u=e.eventBusEl_,o.length>=3&&o.shift(),h=o[0],v=o[1]):(u=o[0],h=o[1],v=o[2]),validateTarget(u,e,l),validateEventType(h,e,l),validateListener(v,e,l),v=bind$2(e,v),{isTargetingSelf:t,target:u,type:h,listener:v}},listen=function(e,o,l,t){validateTarget(e,e,o),e.nodeName?Events[o](e,l,t):e[o](l,t)},EventedMixin={on:function(){for(var e=this,o=arguments.length,l=new Array(o),t=0;t<o;t++)l[t]=arguments[t];var u=normalizeListenArgs(this,l,"on"),h=u.isTargetingSelf,v=u.target,w=u.type,A=u.listener;if(listen(v,"on",w,A),!h){var E=function(){return e.off(v,w,A)};E.guid=A.guid;var C=function(){return e.off("dispose",E)};C.guid=A.guid,listen(this,"on","dispose",E),listen(v,"on","dispose",C)}},one:function(){for(var e=this,o=arguments.length,l=new Array(o),t=0;t<o;t++)l[t]=arguments[t];var u=normalizeListenArgs(this,l,"one"),h=u.isTargetingSelf,v=u.target,w=u.type,A=u.listener;if(h)listen(v,"one",w,A);else{var E=function C(){e.off(v,w,C);for(var M=arguments.length,P=new Array(M),I=0;I<M;I++)P[I]=arguments[I];A.apply(null,P)};E.guid=A.guid,listen(v,"one",w,E)}},any:function(){for(var e=this,o=arguments.length,l=new Array(o),t=0;t<o;t++)l[t]=arguments[t];var u=normalizeListenArgs(this,l,"any"),h=u.isTargetingSelf,v=u.target,w=u.type,A=u.listener;if(h)listen(v,"any",w,A);else{var E=function C(){e.off(v,w,C);for(var M=arguments.length,P=new Array(M),I=0;I<M;I++)P[I]=arguments[I];A.apply(null,P)};E.guid=A.guid,listen(v,"any",w,E)}},off:function(e,o,l){if(!e||isValidEventType(e))off(this.eventBusEl_,e,o);else{var t=e,u=o;validateTarget(t,this,"off"),validateEventType(u,this,"off"),validateListener(l,this,"off"),l=bind$2(this,l),this.off("dispose",l),t.nodeName?(off(t,u,l),off(t,"dispose",l)):isEvented(t)&&(t.off(u,l),t.off("dispose",l))}},trigger:function(e,o){validateTarget(this.eventBusEl_,this,"trigger");var l=e&&typeof e!="string"?e.type:e;if(!isValidEventType(l)){var t="Invalid event type for "+objName(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(e)(this.log||log$1).error(t);else throw new Error(t)}return trigger(this.eventBusEl_,e,o)}};function evented(n,e){e===void 0&&(e={});var o=e,l=o.eventBusKey;if(l){if(!n[l].nodeName)throw new Error('The eventBusKey "'+l+'" does not refer to an element.');n.eventBusEl_=n[l]}else n.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(n,EventedMixin),n.eventedCallbacks&&n.eventedCallbacks.forEach(function(t){t()}),n.on("dispose",function(){n.off(),[n,n.el_,n.eventBusEl_].forEach(function(t){t&&DomData.has(t)&&DomData.delete(t)}),window$1$1.setTimeout(function(){n.eventBusEl_=null},0)}),n}var StatefulMixin={state:{},setState:function(e){var o=this;typeof e=="function"&&(e=e());var l;return each(e,function(t,u){o.state[u]!==t&&(l=l||{},l[u]={from:o.state[u],to:t}),o.state[u]=t}),l&&isEvented(this)&&this.trigger({changes:l,type:"statechanged"}),l}};function stateful(n,e){return assign(n,StatefulMixin),n.state=assign({},n.state,e),typeof n.handleStateChanged=="function"&&isEvented(n)&&n.on("statechanged",n.handleStateChanged),n}var toLowerCase=function(e){return typeof e!="string"?e:e.replace(/./,function(o){return o.toLowerCase()})},toTitleCase$1=function(e){return typeof e!="string"?e:e.replace(/./,function(o){return o.toUpperCase()})},titleCaseEquals=function(e,o){return toTitleCase$1(e)===toTitleCase$1(o)};function mergeOptions$3(){for(var n={},e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return o.forEach(function(t){t&&each(t,function(u,h){if(!isPlain(u)){n[h]=u;return}isPlain(n[h])||(n[h]={}),n[h]=mergeOptions$3(n[h],u)})}),n}var MapSham=function(){function n(){this.map_={}}var e=n.prototype;return e.has=function(l){return l in this.map_},e.delete=function(l){var t=this.has(l);return delete this.map_[l],t},e.set=function(l,t){return this.map_[l]=t,this},e.forEach=function(l,t){for(var u in this.map_)l.call(t,this.map_[u],u,this)},n}(),Map$1=window$1$1.Map?window$1$1.Map:MapSham,SetSham=function(){function n(){this.set_={}}var e=n.prototype;return e.has=function(l){return l in this.set_},e.delete=function(l){var t=this.has(l);return delete this.set_[l],t},e.add=function(l){return this.set_[l]=1,this},e.forEach=function(l,t){for(var u in this.set_)l.call(t,u,u,this)},n}(),Set$1=window$1$1.Set?window$1$1.Set:SetSham,Component$1=function(){function n(o,l,t){var u=this;if(!o&&this.play?this.player_=o=this:this.player_=o,this.isDisposed_=!1,this.parentComponent_=null,this.options_=mergeOptions$3({},this.options_),l=this.options_=mergeOptions$3(this.options_,l),this.id_=l.id||l.el&&l.el.id,!this.id_){var h=o&&o.id&&o.id()||"no_player";this.id_=h+"_component_"+newGUID()}this.name_=l.name||null,l.el?this.el_=l.el:l.createEl!==!1&&(this.el_=this.createEl()),l.className&&this.el_&&l.className.split(" ").forEach(function(v){return u.addClass(v)}),l.evented!==!1&&(evented(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),stateful(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set$1,this.setIntervalIds_=new Set$1,this.rafIds_=new Set$1,this.namedRafs_=new Map$1,this.clearingTimersOnDispose_=!1,l.initChildren!==!1&&this.initChildren(),this.ready(t),l.reportTouchActivity!==!1&&this.enableTouchActivity()}var e=n.prototype;return e.dispose=function(l){if(l===void 0&&(l={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(l.restoreEl?this.el_.parentNode.replaceChild(l.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},e.isDisposed=function(){return!!this.isDisposed_},e.player=function(){return this.player_},e.options=function(l){return l?(this.options_=mergeOptions$3(this.options_,l),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(l,t,u){return createEl(l,t,u)},e.localize=function(l,t,u){u===void 0&&(u=l);var h=this.player_.language&&this.player_.language(),v=this.player_.languages&&this.player_.languages(),w=v&&v[h],A=h&&h.split("-")[0],E=v&&v[A],C=u;return w&&w[l]?C=w[l]:E&&E[l]&&(C=E[l]),t&&(C=C.replace(/\{(\d+)\}/g,function(M,P){var I=t[P-1],j=I;return typeof I>"u"&&(j=M),j})),C},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(l){return this.childIndex_[l]},e.getChild=function(l){if(l)return this.childNameIndex_[l]},e.getDescendant=function(){for(var l=arguments.length,t=new Array(l),u=0;u<l;u++)t[u]=arguments[u];t=t.reduce(function(w,A){return w.concat(A)},[]);for(var h=this,v=0;v<t.length;v++)if(h=h.getChild(t[v]),!h||!h.getChild)return;return h},e.addChild=function(l,t,u){t===void 0&&(t={}),u===void 0&&(u=this.children_.length);var h,v;if(typeof l=="string"){v=toTitleCase$1(l);var w=t.componentClass||v;t.name=v;var A=n.getComponent(w);if(!A)throw new Error("Component "+w+" does not exist");if(typeof A!="function")return null;h=new A(this.player_||this,t)}else h=l;if(h.parentComponent_&&h.parentComponent_.removeChild(h),this.children_.splice(u,0,h),h.parentComponent_=this,typeof h.id=="function"&&(this.childIndex_[h.id()]=h),v=v||h.name&&toTitleCase$1(h.name()),v&&(this.childNameIndex_[v]=h,this.childNameIndex_[toLowerCase(v)]=h),typeof h.el=="function"&&h.el()){var E=null;this.children_[u+1]&&(this.children_[u+1].el_?E=this.children_[u+1].el_:isEl(this.children_[u+1])&&(E=this.children_[u+1])),this.contentEl().insertBefore(h.el(),E)}return h},e.removeChild=function(l){if(typeof l=="string"&&(l=this.getChild(l)),!(!l||!this.children_)){for(var t=!1,u=this.children_.length-1;u>=0;u--)if(this.children_[u]===l){t=!0,this.children_.splice(u,1);break}if(t){l.parentComponent_=null,this.childIndex_[l.id()]=null,this.childNameIndex_[toTitleCase$1(l.name())]=null,this.childNameIndex_[toLowerCase(l.name())]=null;var h=l.el();h&&h.parentNode===this.contentEl()&&this.contentEl().removeChild(l.el())}}},e.initChildren=function(){var l=this,t=this.options_.children;if(t){var u=this.options_,h=function(E){var C=E.name,M=E.opts;if(u[C]!==void 0&&(M=u[C]),M!==!1){M===!0&&(M={}),M.playerOptions=l.options_.playerOptions;var P=l.addChild(C,M);P&&(l[C]=P)}},v,w=n.getComponent("Tech");Array.isArray(t)?v=t:v=Object.keys(t),v.concat(Object.keys(this.options_).filter(function(A){return!v.some(function(E){return typeof E=="string"?A===E:A===E.name})})).map(function(A){var E,C;return typeof A=="string"?(E=A,C=t[E]||l.options_[E]||{}):(E=A.name,C=A),{name:E,opts:C}}).filter(function(A){var E=n.getComponent(A.opts.componentClass||toTitleCase$1(A.name));return E&&!w.isTech(E)}).forEach(h)}},e.buildCSSClass=function(){return""},e.ready=function(l,t){if(t===void 0&&(t=!1),!!l){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(l);return}t?l.call(this):this.setTimeout(l,1)}},e.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var l=this.readyQueue_;this.readyQueue_=[],l&&l.length>0&&l.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},e.$=function(l,t){return $(l,t||this.contentEl())},e.$$=function(l,t){return $$(l,t||this.contentEl())},e.hasClass=function(l){return hasClass(this.el_,l)},e.addClass=function(l){addClass(this.el_,l)},e.removeClass=function(l){removeClass(this.el_,l)},e.toggleClass=function(l,t){toggleClass(this.el_,l,t)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(l){return getAttribute(this.el_,l)},e.setAttribute=function(l,t){setAttribute(this.el_,l,t)},e.removeAttribute=function(l){removeAttribute(this.el_,l)},e.width=function(l,t){return this.dimension("width",l,t)},e.height=function(l,t){return this.dimension("height",l,t)},e.dimensions=function(l,t){this.width(l,!0),this.height(t)},e.dimension=function(l,t,u){if(t!==void 0){(t===null||t!==t)&&(t=0),(""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1?this.el_.style[l]=t:t==="auto"?this.el_.style[l]="":this.el_.style[l]=t+"px",u||this.trigger("componentresize");return}if(!this.el_)return 0;var h=this.el_.style[l],v=h.indexOf("px");return parseInt(v!==-1?h.slice(0,v):this.el_["offset"+toTitleCase$1(l)],10)},e.currentDimension=function(l){var t=0;if(l!=="width"&&l!=="height")throw new Error("currentDimension only accepts width or height value");if(t=computedStyle(this.el_,l),t=parseFloat(t),t===0||isNaN(t)){var u="offset"+toTitleCase$1(l);t=this.el_[u]}return t},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(l){this.player_&&(keycode.isEventKey(l,"Tab")||l.stopPropagation(),this.player_.handleKeyDown(l))},e.handleKeyPress=function(l){this.handleKeyDown(l)},e.emitTapEvents=function(){var l=0,t=null,u=10,h=200,v;this.on("touchstart",function(A){A.touches.length===1&&(t={pageX:A.touches[0].pageX,pageY:A.touches[0].pageY},l=window$1$1.performance.now(),v=!0)}),this.on("touchmove",function(A){if(A.touches.length>1)v=!1;else if(t){var E=A.touches[0].pageX-t.pageX,C=A.touches[0].pageY-t.pageY,M=Math.sqrt(E*E+C*C);M>u&&(v=!1)}});var w=function(){v=!1};this.on("touchleave",w),this.on("touchcancel",w),this.on("touchend",function(A){if(t=null,v===!0){var E=window$1$1.performance.now()-l;E<h&&(A.preventDefault(),this.trigger("tap"))}})},e.enableTouchActivity=function(){if(!(!this.player()||!this.player().reportUserActivity)){var l=bind$2(this.player(),this.player().reportUserActivity),t;this.on("touchstart",function(){l(),this.clearInterval(t),t=this.setInterval(l,250)});var u=function(v){l(),this.clearInterval(t)};this.on("touchmove",l),this.on("touchend",u),this.on("touchcancel",u)}},e.setTimeout=function(l,t){var u=this,h;return l=bind$2(this,l),this.clearTimersOnDispose_(),h=window$1$1.setTimeout(function(){u.setTimeoutIds_.has(h)&&u.setTimeoutIds_.delete(h),l()},t),this.setTimeoutIds_.add(h),h},e.clearTimeout=function(l){return this.setTimeoutIds_.has(l)&&(this.setTimeoutIds_.delete(l),window$1$1.clearTimeout(l)),l},e.setInterval=function(l,t){l=bind$2(this,l),this.clearTimersOnDispose_();var u=window$1$1.setInterval(l,t);return this.setIntervalIds_.add(u),u},e.clearInterval=function(l){return this.setIntervalIds_.has(l)&&(this.setIntervalIds_.delete(l),window$1$1.clearInterval(l)),l},e.requestAnimationFrame=function(l){var t=this;if(!this.supportsRaf_)return this.setTimeout(l,1e3/60);this.clearTimersOnDispose_();var u;return l=bind$2(this,l),u=window$1$1.requestAnimationFrame(function(){t.rafIds_.has(u)&&t.rafIds_.delete(u),l()}),this.rafIds_.add(u),u},e.requestNamedAnimationFrame=function(l,t){var u=this;if(!this.namedRafs_.has(l)){this.clearTimersOnDispose_(),t=bind$2(this,t);var h=this.requestAnimationFrame(function(){t(),u.namedRafs_.has(l)&&u.namedRafs_.delete(l)});return this.namedRafs_.set(l,h),l}},e.cancelNamedAnimationFrame=function(l){this.namedRafs_.has(l)&&(this.cancelAnimationFrame(this.namedRafs_.get(l)),this.namedRafs_.delete(l))},e.cancelAnimationFrame=function(l){return this.supportsRaf_?(this.rafIds_.has(l)&&(this.rafIds_.delete(l),window$1$1.cancelAnimationFrame(l)),l):this.clearTimeout(l)},e.clearTimersOnDispose_=function(){var l=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(t){var u=t[0],h=t[1];l[u].forEach(function(v,w){return l[h](w)})}),l.clearingTimersOnDispose_=!1}))},n.registerComponent=function(l,t){if(typeof l!="string"||!l)throw new Error('Illegal component name, "'+l+'"; must be a non-empty string.');var u=n.getComponent("Tech"),h=u&&u.isTech(t),v=n===t||n.prototype.isPrototypeOf(t.prototype);if(h||!v){var w;throw h?w="techs must be registered using Tech.registerTech()":w="must be a Component subclass",new Error('Illegal component, "'+l+'"; '+w+".")}l=toTitleCase$1(l),n.components_||(n.components_={});var A=n.getComponent("Player");if(l==="Player"&&A&&A.players){var E=A.players,C=Object.keys(E);if(E&&C.length>0&&C.map(function(M){return E[M]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return n.components_[l]=t,n.components_[toLowerCase(l)]=t,t},n.getComponent=function(l){if(!(!l||!n.components_))return n.components_[l]},n}();Component$1.prototype.supportsRaf_=typeof window$1$1.requestAnimationFrame=="function"&&typeof window$1$1.cancelAnimationFrame=="function",Component$1.registerComponent("Component",Component$1);function rangeCheck(n,e,o){if(typeof e!="number"||e<0||e>o)throw new Error("Failed to execute '"+n+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+o+").")}function getRange(n,e,o,l){return rangeCheck(n,l,o.length-1),o[l][e]}function createTimeRangesObj(n){var e;return n===void 0||n.length===0?e={length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:e={length:n.length,start:getRange.bind(null,"start",0,n),end:getRange.bind(null,"end",1,n)},window$1$1.Symbol&&window$1$1.Symbol.iterator&&(e[window$1$1.Symbol.iterator]=function(){return(n||[]).values()}),e}function createTimeRanges(n,e){return Array.isArray(n)?createTimeRangesObj(n):n===void 0||e===void 0?createTimeRangesObj():createTimeRangesObj([[n,e]])}function bufferedPercent(n,e){var o=0,l,t;if(!e)return 0;(!n||!n.length)&&(n=createTimeRanges(0,0));for(var u=0;u<n.length;u++)l=n.start(u),t=n.end(u),t>e&&(t=e),o+=t-l;return o/e}function MediaError(n){if(n instanceof MediaError)return n;typeof n=="number"?this.code=n:typeof n=="string"?this.message=n:isObject$1(n)&&(typeof n.code=="number"&&(this.code=n.code),assign(this,n)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}MediaError.prototype.code=0,MediaError.prototype.message="",MediaError.prototype.status=null,MediaError.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],MediaError.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var errNum=0;errNum<MediaError.errorTypes.length;errNum++)MediaError[MediaError.errorTypes[errNum]]=errNum,MediaError.prototype[MediaError.errorTypes[errNum]]=errNum;function isPromise(n){return n!=null&&typeof n.then=="function"}function silencePromise(n){isPromise(n)&&n.then(null,function(e){})}var trackToJson_=function(e){var o=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(l,t,u){return e[t]&&(l[t]=e[t]),l},{cues:e.cues&&Array.prototype.map.call(e.cues,function(l){return{startTime:l.startTime,endTime:l.endTime,text:l.text,id:l.id}})});return o},textTracksToJson=function(e){var o=e.$$("track"),l=Array.prototype.map.call(o,function(u){return u.track}),t=Array.prototype.map.call(o,function(u){var h=trackToJson_(u.track);return u.src&&(h.src=u.src),h});return t.concat(Array.prototype.filter.call(e.textTracks(),function(u){return l.indexOf(u)===-1}).map(trackToJson_))},jsonToTextTracks=function(e,o){return e.forEach(function(l){var t=o.addRemoteTextTrack(l).track;!l.src&&l.cues&&l.cues.forEach(function(u){return t.addCue(u)})}),o.textTracks()},textTrackConverter={textTracksToJson,jsonToTextTracks,trackToJson_},MODAL_CLASS_NAME="vjs-modal-dialog",ModalDialog=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.handleKeyDown_=function(h){return u.handleKeyDown(h)},u.close_=function(h){return u.close(h)},u.opened_=u.hasBeenOpened_=u.hasBeenFilled_=!1,u.closeable(!u.options_.uncloseable),u.content(u.options_.content),u.contentEl_=createEl("div",{className:MODAL_CLASS_NAME+"-content"},{role:"document"}),u.descEl_=createEl("p",{className:MODAL_CLASS_NAME+"-description vjs-control-text",id:u.el().getAttribute("aria-describedby")}),textContent(u.descEl_,u.description()),u.el_.appendChild(u.descEl_),u.el_.appendChild(u.contentEl_),u}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},o.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,n.prototype.dispose.call(this)},o.buildCSSClass=function(){return MODAL_CLASS_NAME+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},o.label=function(){return this.localize(this.options_.label||"Modal Window")},o.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},o.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},o.opened=function(t){return typeof t=="boolean"&&this[t?"open":"close"](),this.opened_},o.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},o.closeable=function(t){if(typeof t=="boolean"){var u=this.closeable_=!!t,h=this.getChild("closeButton");if(u&&!h){var v=this.contentEl_;this.contentEl_=this.el_,h=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=v,this.on(h,"close",this.close_)}!u&&h&&(this.off(h,"close",this.close_),this.removeChild(h),h.dispose())}return this.closeable_},o.fill=function(){this.fillWith(this.content())},o.fillWith=function(t){var u=this.contentEl(),h=u.parentNode,v=u.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,h.removeChild(u),this.empty(),insertContent(u,t),this.trigger("modalfill"),v?h.insertBefore(u,v):h.appendChild(u);var w=this.getChild("closeButton");w&&h.appendChild(w.el_)},o.empty=function(){this.trigger("beforemodalempty"),emptyEl(this.contentEl()),this.trigger("modalempty")},o.content=function(t){return typeof t<"u"&&(this.content_=t),this.content_},o.conditionalFocus_=function(){var t=document$2.activeElement,u=this.player_.el_;this.previouslyActiveEl_=null,(u.contains(t)||u===t)&&(this.previouslyActiveEl_=t,this.focus())},o.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},o.handleKeyDown=function(t){if(t.stopPropagation(),keycode.isEventKey(t,"Escape")&&this.closeable()){t.preventDefault(),this.close();return}if(keycode.isEventKey(t,"Tab")){for(var u=this.focusableEls_(),h=this.el_.querySelector(":focus"),v,w=0;w<u.length;w++)if(h===u[w]){v=w;break}document$2.activeElement===this.el_&&(v=0),t.shiftKey&&v===0?(u[u.length-1].focus(),t.preventDefault()):!t.shiftKey&&v===u.length-1&&(u[0].focus(),t.preventDefault())}},o.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(u){return(u instanceof window$1$1.HTMLAnchorElement||u instanceof window$1$1.HTMLAreaElement)&&u.hasAttribute("href")||(u instanceof window$1$1.HTMLInputElement||u instanceof window$1$1.HTMLSelectElement||u instanceof window$1$1.HTMLTextAreaElement||u instanceof window$1$1.HTMLButtonElement)&&!u.hasAttribute("disabled")||u instanceof window$1$1.HTMLIFrameElement||u instanceof window$1$1.HTMLObjectElement||u instanceof window$1$1.HTMLEmbedElement||u.hasAttribute("tabindex")&&u.getAttribute("tabindex")!==-1||u.hasAttribute("contenteditable")})},e}(Component$1);ModalDialog.prototype.options_={pauseOnOpen:!0,temporary:!0},Component$1.registerComponent("ModalDialog",ModalDialog);var TrackList=function(n){_inheritsLoose(e,n);function e(l){var t;l===void 0&&(l=[]),t=n.call(this)||this,t.tracks_=[],Object.defineProperty(_assertThisInitialized$1(t),"length",{get:function(){return this.tracks_.length}});for(var u=0;u<l.length;u++)t.addTrack(l[u]);return t}var o=e.prototype;return o.addTrack=function(t){var u=this,h=this.tracks_.length;""+h in this||Object.defineProperty(this,h,{get:function(){return this.tracks_[h]}}),this.tracks_.indexOf(t)===-1&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack",target:this})),t.labelchange_=function(){u.trigger({track:t,type:"labelchange",target:u})},isEvented(t)&&t.addEventListener("labelchange",t.labelchange_)},o.removeTrack=function(t){for(var u,h=0,v=this.length;h<v;h++)if(this[h]===t){u=this[h],u.off&&u.off(),this.tracks_.splice(h,1);break}u&&this.trigger({track:u,type:"removetrack",target:this})},o.getTrackById=function(t){for(var u=null,h=0,v=this.length;h<v;h++){var w=this[h];if(w.id===t){u=w;break}}return u},e}(EventTarget$2);TrackList.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(var event in TrackList.prototype.allowedEvents_)TrackList.prototype["on"+event]=null;var disableOthers$1=function(e,o){for(var l=0;l<e.length;l++)!Object.keys(e[l]).length||o.id===e[l].id||(e[l].enabled=!1)},AudioTrackList=function(n){_inheritsLoose(e,n);function e(l){var t;l===void 0&&(l=[]);for(var u=l.length-1;u>=0;u--)if(l[u].enabled){disableOthers$1(l,l[u]);break}return t=n.call(this,l)||this,t.changing_=!1,t}var o=e.prototype;return o.addTrack=function(t){var u=this;t.enabled&&disableOthers$1(this,t),n.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){u.changing_||(u.changing_=!0,disableOthers$1(u,t),u.changing_=!1,u.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},o.removeTrack=function(t){n.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},e}(TrackList),disableOthers=function(e,o){for(var l=0;l<e.length;l++)!Object.keys(e[l]).length||o.id===e[l].id||(e[l].selected=!1)},VideoTrackList=function(n){_inheritsLoose(e,n);function e(l){var t;l===void 0&&(l=[]);for(var u=l.length-1;u>=0;u--)if(l[u].selected){disableOthers(l,l[u]);break}return t=n.call(this,l)||this,t.changing_=!1,Object.defineProperty(_assertThisInitialized$1(t),"selectedIndex",{get:function(){for(var v=0;v<this.length;v++)if(this[v].selected)return v;return-1},set:function(){}}),t}var o=e.prototype;return o.addTrack=function(t){var u=this;t.selected&&disableOthers(this,t),n.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){u.changing_||(u.changing_=!0,disableOthers(u,t),u.changing_=!1,u.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},o.removeTrack=function(t){n.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},e}(TrackList),TextTrackList=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.addTrack=function(t){var u=this;n.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return u.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return u.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);var h=["metadata","chapters"];h.indexOf(t.kind)===-1&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},o.removeTrack=function(t){n.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(TrackList),HtmlTrackElementList=function(){function n(o){o===void 0&&(o=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var l=0,t=o.length;l<t;l++)this.addTrackElement_(o[l])}var e=n.prototype;return e.addTrackElement_=function(l){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),this.trackElements_.indexOf(l)===-1&&this.trackElements_.push(l)},e.getTrackElementByTrack_=function(l){for(var t,u=0,h=this.trackElements_.length;u<h;u++)if(l===this.trackElements_[u].track){t=this.trackElements_[u];break}return t},e.removeTrackElement_=function(l){for(var t=0,u=this.trackElements_.length;t<u;t++)if(l===this.trackElements_[t]){this.trackElements_[t].track&&typeof this.trackElements_[t].track.off=="function"&&this.trackElements_[t].track.off(),typeof this.trackElements_[t].off=="function"&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},n}(),TextTrackCueList=function(){function n(o){n.prototype.setCues_.call(this,o),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=n.prototype;return e.setCues_=function(l){var t=this.length||0,u=0,h=l.length;this.cues_=l,this.length_=l.length;var v=function(A){""+A in this||Object.defineProperty(this,""+A,{get:function(){return this.cues_[A]}})};if(t<h)for(u=t;u<h;u++)v.call(this,u)},e.getCueById=function(l){for(var t=null,u=0,h=this.length;u<h;u++){var v=this[u];if(v.id===l){t=v;break}}return t},n}(),VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"},Track=function(n){_inheritsLoose(e,n);function e(o){var l;o===void 0&&(o={}),l=n.call(this)||this;var t={id:o.id||"vjs_track_"+newGUID(),kind:o.kind||"",language:o.language||""},u=o.label||"",h=function(A){Object.defineProperty(_assertThisInitialized$1(l),A,{get:function(){return t[A]},set:function(){}})};for(var v in t)h(v);return Object.defineProperty(_assertThisInitialized$1(l),"label",{get:function(){return u},set:function(A){A!==u&&(u=A,this.trigger("labelchange"))}}),l}return e}(EventTarget$2),parseUrl=function(e){var o=["protocol","hostname","port","pathname","search","hash","host"],l=document$2.createElement("a");l.href=e;for(var t={},u=0;u<o.length;u++)t[o[u]]=l[o[u]];return t.protocol==="http:"&&(t.host=t.host.replace(/:80$/,"")),t.protocol==="https:"&&(t.host=t.host.replace(/:443$/,"")),t.protocol||(t.protocol=window$1$1.location.protocol),t.host||(t.host=window$1$1.location.host),t},getAbsoluteURL=function(e){if(!e.match(/^https?:\/\//)){var o=document$2.createElement("a");o.href=e,e=o.href}return e},getFileExtension=function(e){if(typeof e=="string"){var o=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,l=o.exec(e);if(l)return l.pop().toLowerCase()}return""},isCrossOrigin=function(e,o){o===void 0&&(o=window$1$1.location);var l=parseUrl(e),t=l.protocol===":"?o.protocol:l.protocol,u=t+l.host!==o.protocol+o.host;return u},Url$1=Object.freeze({__proto__:null,parseUrl,getAbsoluteURL,getFileExtension,isCrossOrigin}),parseCues=function(e,o){var l=new window$1$1.WebVTT.Parser(window$1$1,window$1$1.vttjs,window$1$1.WebVTT.StringDecoder()),t=[];l.oncue=function(u){o.addCue(u)},l.onparsingerror=function(u){t.push(u)},l.onflush=function(){o.trigger({type:"loadeddata",target:o})},l.parse(e),t.length>0&&(window$1$1.console&&window$1$1.console.groupCollapsed&&window$1$1.console.groupCollapsed("Text Track parsing errors for "+o.src),t.forEach(function(u){return log$1.error(u)}),window$1$1.console&&window$1$1.console.groupEnd&&window$1$1.console.groupEnd()),l.flush()},loadTrack=function(e,o){var l={uri:e},t=isCrossOrigin(e);t&&(l.cors=t);var u=o.tech_.crossOrigin()==="use-credentials";u&&(l.withCredentials=u),XHR(l,bind$2(this,function(h,v,w){if(h)return log$1.error(h,v);o.loaded_=!0,typeof window$1$1.WebVTT!="function"?o.tech_&&o.tech_.any(["vttjsloaded","vttjserror"],function(A){if(A.type==="vttjserror"){log$1.error("vttjs failed to load, stopping trying to process "+o.src);return}return parseCues(w,o)}):parseCues(w,o)}))},TextTrack=function(n){_inheritsLoose(e,n);function e(l){var t;if(l===void 0&&(l={}),!l.tech)throw new Error("A tech was not provided.");var u=mergeOptions$3(l,{kind:TextTrackKind[l.kind]||"subtitles",language:l.language||l.srclang||""}),h=TextTrackMode[u.mode]||"disabled",v=u.default;(u.kind==="metadata"||u.kind==="chapters")&&(h="hidden"),t=n.call(this,u)||this,t.tech_=u.tech,t.cues_=[],t.activeCues_=[],t.preload_=t.tech_.preloadTextTracks!==!1;var w=new TextTrackCueList(t.cues_),A=new TextTrackCueList(t.activeCues_),E=!1;t.timeupdateHandler=bind$2(_assertThisInitialized$1(t),function(M){if(M===void 0&&(M={}),!this.tech_.isDisposed()){if(!this.tech_.isReady_){M.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,E&&(this.trigger("cuechange"),E=!1),M.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});var C=function(){t.stopTracking()};return t.tech_.one("dispose",C),h!=="disabled"&&t.startTracking(),Object.defineProperties(_assertThisInitialized$1(t),{default:{get:function(){return v},set:function(){}},mode:{get:function(){return h},set:function(P){TextTrackMode[P]&&h!==P&&(h=P,!this.preload_&&h!=="disabled"&&this.cues.length===0&&loadTrack(this.src,this),this.stopTracking(),h!=="disabled"&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?w:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return A;for(var P=this.tech_.currentTime(),I=[],j=0,B=this.cues.length;j<B;j++){var F=this.cues[j];(F.startTime<=P&&F.endTime>=P||F.startTime===F.endTime&&F.startTime<=P&&F.startTime+.5>=P)&&I.push(F)}if(E=!1,I.length!==this.activeCues_.length)E=!0;else for(var N=0;N<I.length;N++)this.activeCues_.indexOf(I[N])===-1&&(E=!0);return this.activeCues_=I,A.setCues_(this.activeCues_),A},set:function(){}}}),u.src?(t.src=u.src,t.preload_||(t.loaded_=!0),(t.preload_||u.kind!=="subtitles"&&u.kind!=="captions")&&loadTrack(t.src,_assertThisInitialized$1(t))):t.loaded_=!0,t}var o=e.prototype;return o.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},o.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},o.addCue=function(t){var u=t;if(u.constructor&&u.constructor.name!=="VTTCue"){u=new window$1$1.vttjs.VTTCue(t.startTime,t.endTime,t.text);for(var h in t)h in u||(u[h]=t[h]);u.id=t.id,u.originalCue_=t}for(var v=this.tech_.textTracks(),w=0;w<v.length;w++)v[w]!==this&&v[w].removeCue(u);this.cues_.push(u),this.cues.setCues_(this.cues_)},o.removeCue=function(t){for(var u=this.cues_.length;u--;){var h=this.cues_[u];if(h===t||h.originalCue_&&h.originalCue_===t){this.cues_.splice(u,1),this.cues.setCues_(this.cues_);break}}},e}(Track);TextTrack.prototype.allowedEvents_={cuechange:"cuechange"};var AudioTrack=function(n){_inheritsLoose(e,n);function e(o){var l;o===void 0&&(o={});var t=mergeOptions$3(o,{kind:AudioTrackKind[o.kind]||""});l=n.call(this,t)||this;var u=!1;return Object.defineProperty(_assertThisInitialized$1(l),"enabled",{get:function(){return u},set:function(v){typeof v!="boolean"||v===u||(u=v,this.trigger("enabledchange"))}}),t.enabled&&(l.enabled=t.enabled),l.loaded_=!0,l}return e}(Track),VideoTrack=function(n){_inheritsLoose(e,n);function e(o){var l;o===void 0&&(o={});var t=mergeOptions$3(o,{kind:VideoTrackKind[o.kind]||""});l=n.call(this,t)||this;var u=!1;return Object.defineProperty(_assertThisInitialized$1(l),"selected",{get:function(){return u},set:function(v){typeof v!="boolean"||v===u||(u=v,this.trigger("selectedchange"))}}),t.selected&&(l.selected=t.selected),l}return e}(Track),NONE=0,LOADING=1,LOADED=2,ERROR=3,HTMLTrackElement=function(n){_inheritsLoose(e,n);function e(o){var l;o===void 0&&(o={}),l=n.call(this)||this;var t,u=new TextTrack(o);return l.kind=u.kind,l.src=u.src,l.srclang=u.language,l.label=u.label,l.default=u.default,Object.defineProperties(_assertThisInitialized$1(l),{readyState:{get:function(){return t}},track:{get:function(){return u}}}),t=NONE,u.addEventListener("loadeddata",function(){t=LOADED,l.trigger({type:"load",target:_assertThisInitialized$1(l)})}),l}return e}(EventTarget$2);HTMLTrackElement.prototype.allowedEvents_={load:"load"},HTMLTrackElement.NONE=NONE,HTMLTrackElement.LOADING=LOADING,HTMLTrackElement.LOADED=LOADED,HTMLTrackElement.ERROR=ERROR;var NORMAL={audio:{ListClass:AudioTrackList,TrackClass:AudioTrack,capitalName:"Audio"},video:{ListClass:VideoTrackList,TrackClass:VideoTrack,capitalName:"Video"},text:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"Text"}};Object.keys(NORMAL).forEach(function(n){NORMAL[n].getterName=n+"Tracks",NORMAL[n].privateName=n+"Tracks_"});var REMOTE={remoteText:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:HtmlTrackElementList,TrackClass:HTMLTrackElement,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ALL=_extends$2({},NORMAL,REMOTE);REMOTE.names=Object.keys(REMOTE),NORMAL.names=Object.keys(NORMAL),ALL.names=[].concat(REMOTE.names).concat(NORMAL.names);function createTrackHelper(n,e,o,l,t){t===void 0&&(t={});var u=n.textTracks();t.kind=e,o&&(t.label=o),l&&(t.language=l),t.tech=n;var h=new ALL.text.TrackClass(t);return u.addTrack(h),h}var Tech$2=function(n){_inheritsLoose(e,n);function e(l,t){var u;return l===void 0&&(l={}),t===void 0&&(t=function(){}),l.reportTouchActivity=!1,u=n.call(this,null,l,t)||this,u.onDurationChange_=function(h){return u.onDurationChange(h)},u.trackProgress_=function(h){return u.trackProgress(h)},u.trackCurrentTime_=function(h){return u.trackCurrentTime(h)},u.stopTrackingCurrentTime_=function(h){return u.stopTrackingCurrentTime(h)},u.disposeSourceHandler_=function(h){return u.disposeSourceHandler(h)},u.queuedHanders_=new Set,u.hasStarted_=!1,u.on("playing",function(){this.hasStarted_=!0}),u.on("loadstart",function(){this.hasStarted_=!1}),ALL.names.forEach(function(h){var v=ALL[h];l&&l[v.getterName]&&(u[v.privateName]=l[v.getterName])}),u.featuresProgressEvents||u.manualProgressOn(),u.featuresTimeupdateEvents||u.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(h){l["native"+h+"Tracks"]===!1&&(u["featuresNative"+h+"Tracks"]=!1)}),l.nativeCaptions===!1||l.nativeTextTracks===!1?u.featuresNativeTextTracks=!1:(l.nativeCaptions===!0||l.nativeTextTracks===!0)&&(u.featuresNativeTextTracks=!0),u.featuresNativeTextTracks||u.emulateTextTracks(),u.preloadTextTracks=l.preloadTextTracks!==!1,u.autoRemoteTextTracks_=new ALL.text.ListClass,u.initTrackListeners(),l.nativeControlsForTouch||u.emitTapEvents(),u.constructor&&(u.name_=u.constructor.name||"Unknown Tech"),u}var o=e.prototype;return o.triggerSourceset=function(t){var u=this;this.isReady_||this.one("ready",function(){return u.setTimeout(function(){return u.triggerSourceset(t)},1)}),this.trigger({src:t,type:"sourceset"})},o.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},o.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},o.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(bind$2(this,function(){var u=this.bufferedPercent();this.bufferedPercent_!==u&&this.trigger("progress"),this.bufferedPercent_=u,u===1&&this.stopTrackingProgress()}),500)},o.onDurationChange=function(t){this.duration_=this.duration()},o.buffered=function(){return createTimeRanges(0,0)},o.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration_)},o.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},o.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},o.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},o.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},o.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},o.dispose=function(){this.clearTracks(NORMAL.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),n.prototype.dispose.call(this)},o.clearTracks=function(t){var u=this;t=[].concat(t),t.forEach(function(h){for(var v=u[h+"Tracks"]()||[],w=v.length;w--;){var A=v[w];h==="text"&&u.removeRemoteTextTrack(A),v.removeTrack(A)}})},o.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],u=t.length;u--;){var h=t[u];this.removeRemoteTextTrack(h)}},o.reset=function(){},o.crossOrigin=function(){},o.setCrossOrigin=function(){},o.error=function(t){return t!==void 0&&(this.error_=new MediaError(t),this.trigger("error")),this.error_},o.played=function(){return this.hasStarted_?createTimeRanges(0,0):createTimeRanges()},o.play=function(){},o.setScrubbing=function(){},o.scrubbing=function(){},o.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},o.initTrackListeners=function(){var t=this;NORMAL.names.forEach(function(u){var h=NORMAL[u],v=function(){t.trigger(u+"trackchange")},w=t[h.getterName]();w.addEventListener("removetrack",v),w.addEventListener("addtrack",v),t.on("dispose",function(){w.removeEventListener("removetrack",v),w.removeEventListener("addtrack",v)})})},o.addWebVttScript_=function(){var t=this;if(!window$1$1.WebVTT)if(document$2.body.contains(this.el())){if(!this.options_["vtt.js"]&&isPlain(vtt)&&Object.keys(vtt).length>0){this.trigger("vttjsloaded");return}var u=document$2.createElement("script");u.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",u.onload=function(){t.trigger("vttjsloaded")},u.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){u.onload=null,u.onerror=null}),window$1$1.WebVTT=!0,this.el().parentNode.appendChild(u)}else this.ready(this.addWebVttScript_)},o.emulateTextTracks=function(){var t=this,u=this.textTracks(),h=this.remoteTextTracks(),v=function(M){return u.addTrack(M.track)},w=function(M){return u.removeTrack(M.track)};h.on("addtrack",v),h.on("removetrack",w),this.addWebVttScript_();var A=function(){return t.trigger("texttrackchange")},E=function(){A();for(var M=0;M<u.length;M++){var P=u[M];P.removeEventListener("cuechange",A),P.mode==="showing"&&P.addEventListener("cuechange",A)}};E(),u.addEventListener("change",E),u.addEventListener("addtrack",E),u.addEventListener("removetrack",E),this.on("dispose",function(){h.off("addtrack",v),h.off("removetrack",w),u.removeEventListener("change",E),u.removeEventListener("addtrack",E),u.removeEventListener("removetrack",E);for(var C=0;C<u.length;C++){var M=u[C];M.removeEventListener("cuechange",A)}})},o.addTextTrack=function(t,u,h){if(!t)throw new Error("TextTrack kind is required but was not provided");return createTrackHelper(this,t,u,h)},o.createRemoteTextTrack=function(t){var u=mergeOptions$3(t,{tech:this});return new REMOTE.remoteTextEl.TrackClass(u)},o.addRemoteTextTrack=function(t,u){var h=this;t===void 0&&(t={});var v=this.createRemoteTextTrack(t);return u!==!0&&u!==!1&&(log$1.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),u=!0),this.remoteTextTrackEls().addTrackElement_(v),this.remoteTextTracks().addTrack(v.track),u!==!0&&this.ready(function(){return h.autoRemoteTextTracks_.addTrack(v.track)}),v},o.removeRemoteTextTrack=function(t){var u=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(u),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},o.getVideoPlaybackQuality=function(){return{}},o.requestPictureInPicture=function(){var t=this.options_.Promise||window$1$1.Promise;if(t)return t.reject()},o.disablePictureInPicture=function(){return!0},o.setDisablePictureInPicture=function(){},o.requestVideoFrameCallback=function(t){var u=this,h=newGUID();return!this.isReady_||this.paused()?(this.queuedHanders_.add(h),this.one("playing",function(){u.queuedHanders_.has(h)&&(u.queuedHanders_.delete(h),t())})):this.requestNamedAnimationFrame(h,t),h},o.cancelVideoFrameCallback=function(t){this.queuedHanders_.has(t)?this.queuedHanders_.delete(t):this.cancelNamedAnimationFrame(t)},o.setPoster=function(){},o.playsinline=function(){},o.setPlaysinline=function(){},o.overrideNativeAudioTracks=function(){},o.overrideNativeVideoTracks=function(){},o.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,u){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,u){if(e.techs_||(e.techs_={}),!e.isTech(u))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=toTitleCase$1(t),e.techs_[t]=u,e.techs_[toLowerCase(t)]=u,t!=="Tech"&&e.defaultTechOrder_.push(t),u},e.getTech=function(t){if(t){if(e.techs_&&e.techs_[t])return e.techs_[t];if(t=toTitleCase$1(t),window$1$1&&window$1$1.videojs&&window$1$1.videojs[t])return log$1.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window$1$1.videojs[t]}},e}(Component$1);ALL.names.forEach(function(n){var e=ALL[n];Tech$2.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),Tech$2.prototype.featuresVolumeControl=!0,Tech$2.prototype.featuresMuteControl=!0,Tech$2.prototype.featuresFullscreenResize=!1,Tech$2.prototype.featuresPlaybackRate=!1,Tech$2.prototype.featuresProgressEvents=!1,Tech$2.prototype.featuresSourceset=!1,Tech$2.prototype.featuresTimeupdateEvents=!1,Tech$2.prototype.featuresNativeTextTracks=!1,Tech$2.prototype.featuresVideoFrameCallback=!1,Tech$2.withSourceHandlers=function(n){n.registerSourceHandler=function(o,l){var t=n.sourceHandlers;t||(t=n.sourceHandlers=[]),l===void 0&&(l=t.length),t.splice(l,0,o)},n.canPlayType=function(o){for(var l=n.sourceHandlers||[],t,u=0;u<l.length;u++)if(t=l[u].canPlayType(o),t)return t;return""},n.selectSourceHandler=function(o,l){for(var t=n.sourceHandlers||[],u,h=0;h<t.length;h++)if(u=t[h].canHandleSource(o,l),u)return t[h];return null},n.canPlaySource=function(o,l){var t=n.selectSourceHandler(o,l);return t?t.canHandleSource(o,l):""};var e=["seekable","seeking","duration"];e.forEach(function(o){var l=this[o];typeof l=="function"&&(this[o]=function(){return this.sourceHandler_&&this.sourceHandler_[o]?this.sourceHandler_[o].apply(this.sourceHandler_,arguments):l.apply(this,arguments)})},n.prototype),n.prototype.setSource=function(o){var l=n.selectSourceHandler(o,this.options_);l||(n.nativeSourceHandler?l=n.nativeSourceHandler:log$1.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),l!==n.nativeSourceHandler&&(this.currentSource_=o),this.sourceHandler_=l.handleSource(o,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},n.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Component$1.registerComponent("Tech",Tech$2),Tech$2.registerTech("Tech",Tech$2),Tech$2.defaultTechOrder_=[];var middlewares={},middlewareInstances={},TERMINATOR={};function use(n,e){middlewares[n]=middlewares[n]||[],middlewares[n].push(e)}function setSource(n,e,o){n.setTimeout(function(){return setSourceHelper(e,middlewares[e.type],o,n)},1)}function setTech(n,e){n.forEach(function(o){return o.setTech&&o.setTech(e)})}function get(n,e,o){return n.reduceRight(middlewareIterator(o),e[o]())}function set(n,e,o,l){return e[o](n.reduce(middlewareIterator(o),l))}function mediate(n,e,o,l){l===void 0&&(l=null);var t="call"+toTitleCase$1(o),u=n.reduce(middlewareIterator(t),l),h=u===TERMINATOR,v=h?null:e[o](u);return executeRight(n,o,v,h),v}var allowedGetters={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},allowedSetters={setCurrentTime:1,setMuted:1,setVolume:1},allowedMediators={play:1,pause:1};function middlewareIterator(n){return function(e,o){return e===TERMINATOR?TERMINATOR:o[n]?o[n](e):e}}function executeRight(n,e,o,l){for(var t=n.length-1;t>=0;t--){var u=n[t];u[e]&&u[e](l,o)}}function clearCacheForPlayer(n){middlewareInstances[n.id()]=null}function getOrCreateFactory(n,e){var o=middlewareInstances[n.id()],l=null;if(o==null)return l=e(n),middlewareInstances[n.id()]=[[e,l]],l;for(var t=0;t<o.length;t++){var u=o[t],h=u[0],v=u[1];h===e&&(l=v)}return l===null&&(l=e(n),o.push([e,l])),l}function setSourceHelper(n,e,o,l,t,u){n===void 0&&(n={}),e===void 0&&(e=[]),t===void 0&&(t=[]),u===void 0&&(u=!1);var h=e,v=h[0],w=h.slice(1);if(typeof v=="string")setSourceHelper(n,middlewares[v],o,l,t,u);else if(v){var A=getOrCreateFactory(l,v);if(!A.setSource)return t.push(A),setSourceHelper(n,w,o,l,t,u);A.setSource(assign({},n),function(E,C){if(E)return setSourceHelper(n,w,o,l,t,u);t.push(A),setSourceHelper(C,n.type===C.type?w:middlewares[C.type],o,l,t,u)})}else w.length?setSourceHelper(n,w,o,l,t,u):u?o(n,t):setSourceHelper(n,middlewares["*"],o,l,t,!0)}var MimetypesKind={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},getMimetype=function(e){e===void 0&&(e="");var o=getFileExtension(e),l=MimetypesKind[o.toLowerCase()];return l||""},findMimetype=function(e,o){if(!o)return"";if(e.cache_.source.src===o&&e.cache_.source.type)return e.cache_.source.type;var l=e.cache_.sources.filter(function(v){return v.src===o});if(l.length)return l[0].type;for(var t=e.$$("source"),u=0;u<t.length;u++){var h=t[u];if(h.type&&h.src&&h.src===o)return h.type}return getMimetype(o)},filterSource=function n(e){if(Array.isArray(e)){var o=[];e.forEach(function(l){l=n(l),Array.isArray(l)?o=o.concat(l):isObject$1(l)&&o.push(l)}),e=o}else typeof e=="string"&&e.trim()?e=[fixSource({src:e})]:isObject$1(e)&&typeof e.src=="string"&&e.src&&e.src.trim()?e=[fixSource(e)]:e=[];return e};function fixSource(n){if(!n.type){var e=getMimetype(n.src);e&&(n.type=e)}return n}var MediaLoader=function(n){_inheritsLoose(e,n);function e(o,l,t){var u,h=mergeOptions$3({createEl:!1},l);if(u=n.call(this,o,h,t)||this,!l.playerOptions.sources||l.playerOptions.sources.length===0)for(var v=0,w=l.playerOptions.techOrder;v<w.length;v++){var A=toTitleCase$1(w[v]),E=Tech$2.getTech(A);if(A||(E=Component$1.getComponent(A)),E&&E.isSupported()){o.loadTech_(A);break}}else o.src(l.playerOptions.sources);return u}return e}(Component$1);Component$1.registerComponent("MediaLoader",MediaLoader);var ClickableComponent=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.options_.controlText&&u.controlText(u.options_.controlText),u.handleMouseOver_=function(h){return u.handleMouseOver(h)},u.handleMouseOut_=function(h){return u.handleMouseOut(h)},u.handleClick_=function(h){return u.handleClick(h)},u.handleKeyDown_=function(h){return u.handleKeyDown(h)},u.emitTapEvents(),u.enable(),u}var o=e.prototype;return o.createEl=function(t,u,h){t===void 0&&(t="div"),u===void 0&&(u={}),h===void 0&&(h={}),u=assign({className:this.buildCSSClass(),tabIndex:0},u),t==="button"&&log$1.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),h=assign({role:"button"},h),this.tabIndex_=u.tabIndex;var v=createEl(t,u,h);return v.appendChild(createEl("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(v),v},o.dispose=function(){this.controlTextEl_=null,n.prototype.dispose.call(this)},o.createControlTextEl=function(t){return this.controlTextEl_=createEl("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},o.controlText=function(t,u){if(u===void 0&&(u=this.el()),t===void 0)return this.controlText_||"Need Text";var h=this.localize(t);this.controlText_=t,textContent(this.controlTextEl_,h),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&u.setAttribute("title",h)},o.buildCSSClass=function(){return"vjs-control vjs-button "+n.prototype.buildCSSClass.call(this)},o.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},o.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},o.handleLanguagechange=function(){this.controlText(this.controlText_)},o.handleClick=function(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},o.handleKeyDown=function(t){keycode.isEventKey(t,"Space")||keycode.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):n.prototype.handleKeyDown.call(this,t)},e}(Component$1);Component$1.registerComponent("ClickableComponent",ClickableComponent);var PosterImage=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.update(),u.update_=function(h){return u.update(h)},l.on("posterchange",u.update_),u}var o=e.prototype;return o.dispose=function(){this.player().off("posterchange",this.update_),n.prototype.dispose.call(this)},o.createEl=function(){var t=createEl("div",{className:"vjs-poster",tabIndex:-1});return t},o.update=function(t){var u=this.player().poster();this.setSrc(u),u?this.show():this.hide()},o.setSrc=function(t){var u="";t&&(u='url("'+t+'")'),this.el_.style.backgroundImage=u},o.handleClick=function(t){if(this.player_.controls()){var u=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;this.player_.tech(!0)&&!((IE_VERSION||IS_EDGE)&&u)&&this.player_.tech(!0).focus(),this.player_.paused()?silencePromise(this.player_.play()):this.player_.pause()}},e}(ClickableComponent);Component$1.registerComponent("PosterImage",PosterImage);var darkGray="#222",lightGray="#ccc",fontMap={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function constructColor(n,e){var o;if(n.length===4)o=n[1]+n[1]+n[2]+n[2]+n[3]+n[3];else if(n.length===7)o=n.slice(1);else throw new Error("Invalid color code provided, "+n+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(o.slice(0,2),16)+","+parseInt(o.slice(2,4),16)+","+parseInt(o.slice(4,6),16)+","+e+")"}function tryUpdateStyle(n,e,o){try{n.style[e]=o}catch{return}}var TextTrackDisplay=function(n){_inheritsLoose(e,n);function e(l,t,u){var h;h=n.call(this,l,t,u)||this;var v=function(A){return h.updateDisplay(A)};return l.on("loadstart",function(w){return h.toggleDisplay(w)}),l.on("texttrackchange",v),l.on("loadedmetadata",function(w){return h.preselectTrack(w)}),l.ready(bind$2(_assertThisInitialized$1(h),function(){if(l.tech_&&l.tech_.featuresNativeTextTracks){this.hide();return}l.on("fullscreenchange",v),l.on("playerresize",v),window$1$1.addEventListener("orientationchange",v),l.on("dispose",function(){return window$1$1.removeEventListener("orientationchange",v)});for(var w=this.options_.playerOptions.tracks||[],A=0;A<w.length;A++)this.player_.addRemoteTextTrack(w[A],!0);this.preselectTrack()})),h}var o=e.prototype;return o.preselectTrack=function(){for(var t={captions:1,subtitles:1},u=this.player_.textTracks(),h=this.player_.cache_.selectedLanguage,v,w,A,E=0;E<u.length;E++){var C=u[E];h&&h.enabled&&h.language&&h.language===C.language&&C.kind in t?C.kind===h.kind?A=C:A||(A=C):h&&!h.enabled?(A=null,v=null,w=null):C.default&&(C.kind==="descriptions"&&!v?v=C:C.kind in t&&!w&&(w=C))}A?A.mode="showing":w?w.mode="showing":v&&(v.mode="showing")},o.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},o.clearDisplay=function(){typeof window$1$1.WebVTT=="function"&&window$1$1.WebVTT.processCues(window$1$1,[],this.el_)},o.updateDisplay=function(){var t=this.player_.textTracks(),u=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),u){for(var h=[],v=0;v<t.length;++v){var w=t[v];w.mode==="showing"&&h.push(w)}this.updateForTrack(h);return}for(var A=null,E=null,C=t.length;C--;){var M=t[C];M.mode==="showing"&&(M.kind==="descriptions"?A=M:E=M)}E?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(E)):A&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(A))},o.updateDisplayState=function(t){for(var u=this.player_.textTrackSettings.getValues(),h=t.activeCues,v=h.length;v--;){var w=h[v];if(w){var A=w.displayState;if(u.color&&(A.firstChild.style.color=u.color),u.textOpacity&&tryUpdateStyle(A.firstChild,"color",constructColor(u.color||"#fff",u.textOpacity)),u.backgroundColor&&(A.firstChild.style.backgroundColor=u.backgroundColor),u.backgroundOpacity&&tryUpdateStyle(A.firstChild,"backgroundColor",constructColor(u.backgroundColor||"#000",u.backgroundOpacity)),u.windowColor&&(u.windowOpacity?tryUpdateStyle(A,"backgroundColor",constructColor(u.windowColor,u.windowOpacity)):A.style.backgroundColor=u.windowColor),u.edgeStyle&&(u.edgeStyle==="dropshadow"?A.firstChild.style.textShadow="2px 2px 3px "+darkGray+", 2px 2px 4px "+darkGray+", 2px 2px 5px "+darkGray:u.edgeStyle==="raised"?A.firstChild.style.textShadow="1px 1px "+darkGray+", 2px 2px "+darkGray+", 3px 3px "+darkGray:u.edgeStyle==="depressed"?A.firstChild.style.textShadow="1px 1px "+lightGray+", 0 1px "+lightGray+", -1px -1px "+darkGray+", 0 -1px "+darkGray:u.edgeStyle==="uniform"&&(A.firstChild.style.textShadow="0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray)),u.fontPercent&&u.fontPercent!==1){var E=window$1$1.parseFloat(A.style.fontSize);A.style.fontSize=E*u.fontPercent+"px",A.style.height="auto",A.style.top="auto"}u.fontFamily&&u.fontFamily!=="default"&&(u.fontFamily==="small-caps"?A.firstChild.style.fontVariant="small-caps":A.firstChild.style.fontFamily=fontMap[u.fontFamily])}}},o.updateForTrack=function(t){if(Array.isArray(t)||(t=[t]),!(typeof window$1$1.WebVTT!="function"||t.every(function(P){return!P.activeCues}))){for(var u=[],h=0;h<t.length;++h)for(var v=t[h],w=0;w<v.activeCues.length;++w)u.push(v.activeCues[w]);window$1$1.WebVTT.processCues(window$1$1,u,this.el_);for(var A=0;A<t.length;++A){for(var E=t[A],C=0;C<E.activeCues.length;++C){var M=E.activeCues[C].displayState;addClass(M,"vjs-text-track-cue"),addClass(M,"vjs-text-track-cue-"+(E.language?E.language:A)),E.language&&setAttribute(M,"lang",E.language)}this.player_.textTrackSettings&&this.updateDisplayState(E)}}},e}(Component$1);Component$1.registerComponent("TextTrackDisplay",TextTrackDisplay);var LoadingSpinner=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.createEl=function(){var t=this.player_.isAudio(),u=this.localize(t?"Audio Player":"Video Player"),h=createEl("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[u])}),v=n.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return v.appendChild(h),v},e}(Component$1);Component$1.registerComponent("LoadingSpinner",LoadingSpinner);var Button=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.createEl=function(t,u,h){u===void 0&&(u={}),h===void 0&&(h={}),t="button",u=assign({className:this.buildCSSClass()},u),h=assign({type:"button"},h);var v=createEl(t,u,h);return v.appendChild(createEl("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(v),v},o.addChild=function(t,u){u===void 0&&(u={});var h=this.constructor.name;return log$1.warn("Adding an actionable (user controllable) child to a Button ("+h+") is not supported; use a ClickableComponent instead."),Component$1.prototype.addChild.call(this,t,u)},o.enable=function(){n.prototype.enable.call(this),this.el_.removeAttribute("disabled")},o.disable=function(){n.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},o.handleKeyDown=function(t){if(keycode.isEventKey(t,"Space")||keycode.isEventKey(t,"Enter")){t.stopPropagation();return}n.prototype.handleKeyDown.call(this,t)},e}(ClickableComponent);Component$1.registerComponent("Button",Button);var BigPlayButton=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.mouseused_=!1,u.on("mousedown",function(h){return u.handleMouseDown(h)}),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-big-play-button"},o.handleClick=function(t){var u=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var h=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;silencePromise(u),this.player_.tech(!0)&&!((IE_VERSION||IS_EDGE)&&h)&&this.player_.tech(!0).focus();return}var v=this.player_.getChild("controlBar"),w=v&&v.getChild("playToggle");if(!w){this.player_.tech(!0).focus();return}var A=function(){return w.focus()};isPromise(u)?u.then(A,function(){}):this.setTimeout(A,1)},o.handleKeyDown=function(t){this.mouseused_=!1,n.prototype.handleKeyDown.call(this,t)},o.handleMouseDown=function(t){this.mouseused_=!0},e}(Button);BigPlayButton.prototype.controlText_="Play Video",Component$1.registerComponent("BigPlayButton",BigPlayButton);var CloseButton=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.controlText(t&&t.controlText||u.localize("Close")),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},o.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},o.handleKeyDown=function(t){keycode.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):n.prototype.handleKeyDown.call(this,t)},e}(Button);Component$1.registerComponent("CloseButton",CloseButton);var PlayToggle=function(n){_inheritsLoose(e,n);function e(l,t){var u;return t===void 0&&(t={}),u=n.call(this,l,t)||this,t.replay=t.replay===void 0||t.replay,u.on(l,"play",function(h){return u.handlePlay(h)}),u.on(l,"pause",function(h){return u.handlePause(h)}),t.replay&&u.on(l,"ended",function(h){return u.handleEnded(h)}),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},o.handleClick=function(t){this.player_.paused()?silencePromise(this.player_.play()):this.player_.pause()},o.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},o.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},o.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},o.handleEnded=function(t){var u=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(h){return u.handleSeeked(h)})},e}(Button);PlayToggle.prototype.controlText_="Play",Component$1.registerComponent("PlayToggle",PlayToggle);var defaultImplementation=function(e,o){e=e<0?0:e;var l=Math.floor(e%60),t=Math.floor(e/60%60),u=Math.floor(e/3600),h=Math.floor(o/60%60),v=Math.floor(o/3600);return(isNaN(e)||e===1/0)&&(u=t=l="-"),u=u>0||v>0?u+":":"",t=((u||h>=10)&&t<10?"0"+t:t)+":",l=l<10?"0"+l:l,u+t+l},implementation$6=defaultImplementation;function setFormatTime(n){implementation$6=n}function resetFormatTime(){implementation$6=defaultImplementation}function formatTime(n,e){return e===void 0&&(e=n),implementation$6(n,e)}var TimeDisplay=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.on(l,["timeupdate","ended"],function(h){return u.updateContent(h)}),u.updateTextNode_(),u}var o=e.prototype;return o.createEl=function(){var t=this.buildCSSClass(),u=n.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),h=createEl("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return u.appendChild(h),this.contentEl_=createEl("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),u.appendChild(this.contentEl_),u},o.dispose=function(){this.contentEl_=null,this.textNode_=null,n.prototype.dispose.call(this)},o.updateTextNode_=function(t){var u=this;t===void 0&&(t=0),t=formatTime(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(u.contentEl_){var h=u.textNode_;h&&u.contentEl_.firstChild!==h&&(h=null,log$1.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),u.textNode_=document$2.createTextNode(u.formattedTime_),u.textNode_&&(h?u.contentEl_.replaceChild(u.textNode_,h):u.contentEl_.appendChild(u.textNode_))}}))},o.updateContent=function(t){},e}(Component$1);TimeDisplay.prototype.labelText_="Time",TimeDisplay.prototype.controlText_="Time",Component$1.registerComponent("TimeDisplay",TimeDisplay);var CurrentTimeDisplay=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-current-time"},o.updateContent=function(t){var u;this.player_.ended()?u=this.player_.duration():u=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(u)},e}(TimeDisplay);CurrentTimeDisplay.prototype.labelText_="Current Time",CurrentTimeDisplay.prototype.controlText_="Current Time",Component$1.registerComponent("CurrentTimeDisplay",CurrentTimeDisplay);var DurationDisplay=function(n){_inheritsLoose(e,n);function e(l,t){var u;u=n.call(this,l,t)||this;var h=function(w){return u.updateContent(w)};return u.on(l,"durationchange",h),u.on(l,"loadstart",h),u.on(l,"loadedmetadata",h),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-duration"},o.updateContent=function(t){var u=this.player_.duration();this.updateTextNode_(u)},e}(TimeDisplay);DurationDisplay.prototype.labelText_="Duration",DurationDisplay.prototype.controlText_="Duration",Component$1.registerComponent("DurationDisplay",DurationDisplay);var TimeDivider=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),u=n.prototype.createEl.call(this,"div"),h=n.prototype.createEl.call(this,"span",{textContent:"/"});return u.appendChild(h),t.appendChild(u),t},e}(Component$1);Component$1.registerComponent("TimeDivider",TimeDivider);var RemainingTimeDisplay=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.on(l,"durationchange",function(h){return u.updateContent(h)}),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-remaining-time"},o.createEl=function(){var t=n.prototype.createEl.call(this);return this.options_.displayNegative!==!1&&t.insertBefore(createEl("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},o.updateContent=function(t){if(typeof this.player_.duration()=="number"){var u;this.player_.ended()?u=0:this.player_.remainingTimeDisplay?u=this.player_.remainingTimeDisplay():u=this.player_.remainingTime(),this.updateTextNode_(u)}},e}(TimeDisplay);RemainingTimeDisplay.prototype.labelText_="Remaining Time",RemainingTimeDisplay.prototype.controlText_="Remaining Time",Component$1.registerComponent("RemainingTimeDisplay",RemainingTimeDisplay);var LiveDisplay=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.updateShowing(),u.on(u.player(),"durationchange",function(h){return u.updateShowing(h)}),u}var o=e.prototype;return o.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=createEl("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(createEl("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(document$2.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},o.dispose=function(){this.contentEl_=null,n.prototype.dispose.call(this)},o.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(Component$1);Component$1.registerComponent("LiveDisplay",LiveDisplay);var SeekToLive=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.updateLiveEdgeStatus(),u.player_.liveTracker&&(u.updateLiveEdgeStatusHandler_=function(h){return u.updateLiveEdgeStatus(h)},u.on(u.player_.liveTracker,"liveedgechange",u.updateLiveEdgeStatusHandler_)),u}var o=e.prototype;return o.createEl=function(){var t=n.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=createEl("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},o.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},o.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},o.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,n.prototype.dispose.call(this)},e}(Button);SeekToLive.prototype.controlText_="Seek to live, currently playing live",Component$1.registerComponent("SeekToLive",SeekToLive);var clamp=function(e,o,l){return e=Number(e),Math.min(l,Math.max(o,isNaN(e)?o:e))},Slider$1=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.handleMouseDown_=function(h){return u.handleMouseDown(h)},u.handleMouseUp_=function(h){return u.handleMouseUp(h)},u.handleKeyDown_=function(h){return u.handleKeyDown(h)},u.handleClick_=function(h){return u.handleClick(h)},u.handleMouseMove_=function(h){return u.handleMouseMove(h)},u.update_=function(h){return u.update(h)},u.bar=u.getChild(u.options_.barName),u.vertical(!!u.options_.vertical),u.enable(),u}var o=e.prototype;return o.enabled=function(){return this.enabled_},o.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},o.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},o.createEl=function(t,u,h){return u===void 0&&(u={}),h===void 0&&(h={}),u.className=u.className+" vjs-slider",u=assign({tabIndex:0},u),h=assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},h),n.prototype.createEl.call(this,t,u,h)},o.handleMouseDown=function(t){var u=this.bar.el_.ownerDocument;t.type==="mousedown"&&t.preventDefault(),t.type==="touchstart"&&!IS_CHROME&&t.preventDefault(),blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(u,"mousemove",this.handleMouseMove_),this.on(u,"mouseup",this.handleMouseUp_),this.on(u,"touchmove",this.handleMouseMove_),this.on(u,"touchend",this.handleMouseUp_),this.handleMouseMove(t,!0)},o.handleMouseMove=function(t){},o.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()},o.update=function(){var t=this;if(!(!this.el_||!this.bar)){var u=this.getProgress();return u===this.progress_||(this.progress_=u,this.requestNamedAnimationFrame("Slider#update",function(){var h=t.vertical()?"height":"width";t.bar.el().style[h]=(u*100).toFixed(2)+"%"})),u}},o.getProgress=function(){return Number(clamp(this.getPercent(),0,1).toFixed(4))},o.calculateDistance=function(t){var u=getPointerPosition(this.el_,t);return this.vertical()?u.y:u.x},o.handleKeyDown=function(t){keycode.isEventKey(t,"Left")||keycode.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):keycode.isEventKey(t,"Right")||keycode.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):n.prototype.handleKeyDown.call(this,t)},o.handleClick=function(t){t.stopPropagation(),t.preventDefault()},o.vertical=function(t){if(t===void 0)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(Component$1);Component$1.registerComponent("Slider",Slider$1);var percentify=function(e,o){return clamp(e/o*100,0,100).toFixed(2)+"%"},LoadProgressBar=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.partEls_=[],u.on(l,"progress",function(h){return u.update(h)}),u}var o=e.prototype;return o.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),u=createEl("span",{className:"vjs-control-text"}),h=createEl("span",{textContent:this.localize("Loaded")}),v=document$2.createTextNode(": ");return this.percentageEl_=createEl("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(u),u.appendChild(h),u.appendChild(v),u.appendChild(this.percentageEl_),t},o.dispose=function(){this.partEls_=null,this.percentageEl_=null,n.prototype.dispose.call(this)},o.update=function(t){var u=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var h=u.player_.liveTracker,v=u.player_.buffered(),w=h&&h.isLive()?h.seekableEnd():u.player_.duration(),A=u.player_.bufferedEnd(),E=u.partEls_,C=percentify(A,w);u.percent_!==C&&(u.el_.style.width=C,textContent(u.percentageEl_,C),u.percent_=C);for(var M=0;M<v.length;M++){var P=v.start(M),I=v.end(M),j=E[M];j||(j=u.el_.appendChild(createEl()),E[M]=j),!(j.dataset.start===P&&j.dataset.end===I)&&(j.dataset.start=P,j.dataset.end=I,j.style.left=percentify(P,A),j.style.width=percentify(I-P,A))}for(var B=E.length;B>v.length;B--)u.el_.removeChild(E[B-1]);E.length=v.length})},e}(Component$1);Component$1.registerComponent("LoadProgressBar",LoadProgressBar);var TimeTooltip=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.update=throttle(bind$2(_assertThisInitialized$1(u),u.update),UPDATE_REFRESH_INTERVAL),u}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},o.update=function(t,u,h){var v=findPosition(this.el_),w=getBoundingClientRect(this.player_.el()),A=t.width*u;if(!(!w||!v)){var E=t.left-w.left+A,C=t.width-A+(w.right-t.right),M=v.width/2;E<M?M+=M-E:C<M&&(M=C),M<0?M=0:M>v.width&&(M=v.width),M=Math.round(M),this.el_.style.right="-"+M+"px",this.write(h)}},o.write=function(t){textContent(this.el_,t)},o.updateTime=function(t,u,h,v){var w=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var A,E=w.player_.duration();if(w.player_.liveTracker&&w.player_.liveTracker.isLive()){var C=w.player_.liveTracker.liveWindow(),M=C-u*C;A=(M<1?"":"-")+formatTime(M,C)}else A=formatTime(h,E);w.update(t,u,A),v&&v()})},e}(Component$1);Component$1.registerComponent("TimeTooltip",TimeTooltip);var PlayProgressBar=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.update=throttle(bind$2(_assertThisInitialized$1(u),u.update),UPDATE_REFRESH_INTERVAL),u}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},o.update=function(t,u){var h=this.getChild("timeTooltip");if(h){var v=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();h.updateTime(t,u,v)}},e}(Component$1);PlayProgressBar.prototype.options_={children:[]},!IS_IOS&&!IS_ANDROID&&PlayProgressBar.prototype.options_.children.push("timeTooltip"),Component$1.registerComponent("PlayProgressBar",PlayProgressBar);var MouseTimeDisplay=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.update=throttle(bind$2(_assertThisInitialized$1(u),u.update),UPDATE_REFRESH_INTERVAL),u}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},o.update=function(t,u){var h=this,v=u*this.player_.duration();this.getChild("timeTooltip").updateTime(t,u,v,function(){h.el_.style.left=t.width*u+"px"})},e}(Component$1);MouseTimeDisplay.prototype.options_={children:["timeTooltip"]},Component$1.registerComponent("MouseTimeDisplay",MouseTimeDisplay);var STEP_SECONDS=5,PAGE_KEY_MULTIPLIER=12,SeekBar=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.setEventHandlers_(),u}var o=e.prototype;return o.setEventHandlers_=function(){var t=this;this.update_=bind$2(this,this.update),this.update=throttle(this.update_,UPDATE_REFRESH_INTERVAL),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(u){return t.enableInterval_(u)},this.disableIntervalHandler_=function(u){return t.disableInterval_(u)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document$2&&"visibilityState"in document$2&&this.on(document$2,"visibilitychange",this.toggleVisibility_)},o.toggleVisibility_=function(t){document$2.visibilityState==="hidden"?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(t)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())},o.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,UPDATE_REFRESH_INTERVAL))},o.disableInterval_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&t.type!=="ended"||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},o.update=function(t){var u=this;if(document$2.visibilityState!=="hidden"){var h=n.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var v=u.player_.ended()?u.player_.duration():u.getCurrentTime_(),w=u.player_.liveTracker,A=u.player_.duration();w&&w.isLive()&&(A=u.player_.liveTracker.liveCurrentTime()),u.percent_!==h&&(u.el_.setAttribute("aria-valuenow",(h*100).toFixed(2)),u.percent_=h),(u.currentTime_!==v||u.duration_!==A)&&(u.el_.setAttribute("aria-valuetext",u.localize("progress bar timing: currentTime={1} duration={2}",[formatTime(v,A),formatTime(A,A)],"{1} of {2}")),u.currentTime_=v,u.duration_=A),u.bar&&u.bar.update(getBoundingClientRect(u.el()),u.getProgress())}),h}},o.userSeek_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)},o.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},o.getPercent=function(){var t=this.getCurrentTime_(),u,h=this.player_.liveTracker;return h&&h.isLive()?(u=(t-h.seekableStart())/h.liveWindow(),h.atLiveEdge()&&(u=1)):u=t/this.player_.duration(),u},o.handleMouseDown=function(t){isSingleLeftClick(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),n.prototype.handleMouseDown.call(this,t))},o.handleMouseMove=function(t,u){if(u===void 0&&(u=!1),!!isSingleLeftClick(t)){!u&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);var h,v=this.calculateDistance(t),w=this.player_.liveTracker;if(!w||!w.isLive())h=v*this.player_.duration(),h===this.player_.duration()&&(h=h-.1);else{if(v>=.99){w.seekToLiveEdge();return}var A=w.seekableStart(),E=w.liveCurrentTime();if(h=A+v*w.liveWindow(),h>=E&&(h=E),h<=A&&(h=A+.1),h===1/0)return}this.userSeek_(h)}},o.enable=function(){n.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},o.disable=function(){n.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},o.handleMouseUp=function(t){n.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?silencePromise(this.player_.play()):this.update_()},o.stepForward=function(){this.userSeek_(this.player_.currentTime()+STEP_SECONDS)},o.stepBack=function(){this.userSeek_(this.player_.currentTime()-STEP_SECONDS)},o.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},o.handleKeyDown=function(t){var u=this.player_.liveTracker;if(keycode.isEventKey(t,"Space")||keycode.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(keycode.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(keycode.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),u&&u.isLive()?this.userSeek_(u.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(keycode(t))){t.preventDefault(),t.stopPropagation();var h=(keycode.codes[keycode(t)]-keycode.codes[0])*10/100;u&&u.isLive()?this.userSeek_(u.seekableStart()+u.liveWindow()*h):this.userSeek_(this.player_.duration()*h)}else keycode.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-STEP_SECONDS*PAGE_KEY_MULTIPLIER)):keycode.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+STEP_SECONDS*PAGE_KEY_MULTIPLIER)):n.prototype.handleKeyDown.call(this,t)},o.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document$2&&"visibilityState"in document$2&&this.off(document$2,"visibilitychange",this.toggleVisibility_),n.prototype.dispose.call(this)},e}(Slider$1);SeekBar.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},!IS_IOS&&!IS_ANDROID&&SeekBar.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Component$1.registerComponent("SeekBar",SeekBar);var ProgressControl=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.handleMouseMove=throttle(bind$2(_assertThisInitialized$1(u),u.handleMouseMove),UPDATE_REFRESH_INTERVAL),u.throttledHandleMouseSeek=throttle(bind$2(_assertThisInitialized$1(u),u.handleMouseSeek),UPDATE_REFRESH_INTERVAL),u.handleMouseUpHandler_=function(h){return u.handleMouseUp(h)},u.handleMouseDownHandler_=function(h){return u.handleMouseDown(h)},u.enable(),u}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},o.handleMouseMove=function(t){var u=this.getChild("seekBar");if(u){var h=u.getChild("playProgressBar"),v=u.getChild("mouseTimeDisplay");if(!(!h&&!v)){var w=u.el(),A=findPosition(w),E=getPointerPosition(w,t).x;E=clamp(E,0,1),v&&v.update(A,E),h&&h.update(A,u.getProgress())}}},o.handleMouseSeek=function(t){var u=this.getChild("seekBar");u&&u.handleMouseMove(t)},o.enabled=function(){return this.enabled_},o.disable=function(){if(this.children().forEach(function(u){return u.disable&&u.disable()}),!!this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var t=this.getChild("seekBar");this.player_.scrubbing(!1),t.videoWasPlaying&&silencePromise(this.player_.play())}},o.enable=function(){this.children().forEach(function(t){return t.enable&&t.enable()}),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},o.removeListenersAddedOnMousedownAndTouchstart=function(){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},o.handleMouseDown=function(t){var u=this.el_.ownerDocument,h=this.getChild("seekBar");h&&h.handleMouseDown(t),this.on(u,"mousemove",this.throttledHandleMouseSeek),this.on(u,"touchmove",this.throttledHandleMouseSeek),this.on(u,"mouseup",this.handleMouseUpHandler_),this.on(u,"touchend",this.handleMouseUpHandler_)},o.handleMouseUp=function(t){var u=this.getChild("seekBar");u&&u.handleMouseUp(t),this.removeListenersAddedOnMousedownAndTouchstart()},e}(Component$1);ProgressControl.prototype.options_={children:["seekBar"]},Component$1.registerComponent("ProgressControl",ProgressControl);var PictureInPictureToggle=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.on(l,["enterpictureinpicture","leavepictureinpicture"],function(h){return u.handlePictureInPictureChange(h)}),u.on(l,["disablepictureinpicturechanged","loadedmetadata"],function(h){return u.handlePictureInPictureEnabledChange(h)}),u.on(l,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){var h=l.currentType().substring(0,5)==="audio";h||l.audioPosterMode()||l.audioOnlyMode()?(l.isInPictureInPicture()&&l.exitPictureInPicture(),u.hide()):u.show()}),u.disable(),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-picture-in-picture-control "+n.prototype.buildCSSClass.call(this)},o.handlePictureInPictureEnabledChange=function(){document$2.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1?this.enable():this.disable()},o.handlePictureInPictureChange=function(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},o.handleClick=function(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(Button);PictureInPictureToggle.prototype.controlText_="Picture-in-Picture",Component$1.registerComponent("PictureInPictureToggle",PictureInPictureToggle);var FullscreenToggle=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.on(l,"fullscreenchange",function(h){return u.handleFullscreenChange(h)}),document$2[l.fsApi_.fullscreenEnabled]===!1&&u.disable(),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},o.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},o.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(Button);FullscreenToggle.prototype.controlText_="Fullscreen",Component$1.registerComponent("FullscreenToggle",FullscreenToggle);var checkVolumeSupport=function(e,o){o.tech_&&!o.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(o,"loadstart",function(){o.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},VolumeLevel=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(n.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},e}(Component$1);Component$1.registerComponent("VolumeLevel",VolumeLevel);var VolumeLevelTooltip=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.update=throttle(bind$2(_assertThisInitialized$1(u),u.update),UPDATE_REFRESH_INTERVAL),u}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},o.update=function(t,u,h,v){if(!h){var w=getBoundingClientRect(this.el_),A=getBoundingClientRect(this.player_.el()),E=t.width*u;if(!A||!w)return;var C=t.left-A.left+E,M=t.width-E+(A.right-t.right),P=w.width/2;C<P?P+=P-C:M<P&&(P=M),P<0?P=0:P>w.width&&(P=w.width),this.el_.style.right="-"+P+"px"}this.write(v+"%")},o.write=function(t){textContent(this.el_,t)},o.updateVolume=function(t,u,h,v,w){var A=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){A.update(t,u,h,v.toFixed(0)),w&&w()})},e}(Component$1);Component$1.registerComponent("VolumeLevelTooltip",VolumeLevelTooltip);var MouseVolumeLevelDisplay=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.update=throttle(bind$2(_assertThisInitialized$1(u),u.update),UPDATE_REFRESH_INTERVAL),u}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},o.update=function(t,u,h){var v=this,w=100*u;this.getChild("volumeLevelTooltip").updateVolume(t,u,h,w,function(){h?v.el_.style.bottom=t.height*u+"px":v.el_.style.left=t.width*u+"px"})},e}(Component$1);MouseVolumeLevelDisplay.prototype.options_={children:["volumeLevelTooltip"]},Component$1.registerComponent("MouseVolumeLevelDisplay",MouseVolumeLevelDisplay);var VolumeBar=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.on("slideractive",function(h){return u.updateLastVolume_(h)}),u.on(l,"volumechange",function(h){return u.updateARIAAttributes(h)}),l.ready(function(){return u.updateARIAAttributes()}),u}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},o.handleMouseDown=function(t){isSingleLeftClick(t)&&n.prototype.handleMouseDown.call(this,t)},o.handleMouseMove=function(t){var u=this.getChild("mouseVolumeLevelDisplay");if(u){var h=this.el(),v=getBoundingClientRect(h),w=this.vertical(),A=getPointerPosition(h,t);A=w?A.y:A.x,A=clamp(A,0,1),u.update(v,A,w)}isSingleLeftClick(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},o.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},o.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},o.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},o.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},o.updateARIAAttributes=function(t){var u=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",u),this.el_.setAttribute("aria-valuetext",u+"%")},o.volumeAsPercentage_=function(){return Math.round(this.player_.volume()*100)},o.updateLastVolume_=function(){var t=this,u=this.player_.volume();this.one("sliderinactive",function(){t.player_.volume()===0&&t.player_.lastVolume_(u)})},e}(Slider$1);VolumeBar.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},!IS_IOS&&!IS_ANDROID&&VolumeBar.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),VolumeBar.prototype.playerEvent="volumechange",Component$1.registerComponent("VolumeBar",VolumeBar);var VolumeControl=function(n){_inheritsLoose(e,n);function e(l,t){var u;return t===void 0&&(t={}),t.vertical=t.vertical||!1,(typeof t.volumeBar>"u"||isPlain(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),u=n.call(this,l,t)||this,checkVolumeSupport(_assertThisInitialized$1(u),l),u.throttledHandleMouseMove=throttle(bind$2(_assertThisInitialized$1(u),u.handleMouseMove),UPDATE_REFRESH_INTERVAL),u.handleMouseUpHandler_=function(h){return u.handleMouseUp(h)},u.on("mousedown",function(h){return u.handleMouseDown(h)}),u.on("touchstart",function(h){return u.handleMouseDown(h)}),u.on("mousemove",function(h){return u.handleMouseMove(h)}),u.on(u.volumeBar,["focus","slideractive"],function(){u.volumeBar.addClass("vjs-slider-active"),u.addClass("vjs-slider-active"),u.trigger("slideractive")}),u.on(u.volumeBar,["blur","sliderinactive"],function(){u.volumeBar.removeClass("vjs-slider-active"),u.removeClass("vjs-slider-active"),u.trigger("sliderinactive")}),u}var o=e.prototype;return o.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},o.handleMouseDown=function(t){var u=this.el_.ownerDocument;this.on(u,"mousemove",this.throttledHandleMouseMove),this.on(u,"touchmove",this.throttledHandleMouseMove),this.on(u,"mouseup",this.handleMouseUpHandler_),this.on(u,"touchend",this.handleMouseUpHandler_)},o.handleMouseUp=function(t){var u=this.el_.ownerDocument;this.off(u,"mousemove",this.throttledHandleMouseMove),this.off(u,"touchmove",this.throttledHandleMouseMove),this.off(u,"mouseup",this.handleMouseUpHandler_),this.off(u,"touchend",this.handleMouseUpHandler_)},o.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(Component$1);VolumeControl.prototype.options_={children:["volumeBar"]},Component$1.registerComponent("VolumeControl",VolumeControl);var checkMuteSupport=function(e,o){o.tech_&&!o.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(o,"loadstart",function(){o.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},MuteToggle=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,checkMuteSupport(_assertThisInitialized$1(u),l),u.on(l,["loadstart","volumechange"],function(h){return u.update(h)}),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},o.handleClick=function(t){var u=this.player_.volume(),h=this.player_.lastVolume_();if(u===0){var v=h<.1?.1:h;this.player_.volume(v),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},o.update=function(t){this.updateIcon_(),this.updateControlText_()},o.updateIcon_=function(){var t=this.player_.volume(),u=3;IS_IOS&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),t===0||this.player_.muted()?u=0:t<.33?u=1:t<.67&&(u=2);for(var h=0;h<4;h++)removeClass(this.el_,"vjs-vol-"+h);addClass(this.el_,"vjs-vol-"+u)},o.updateControlText_=function(){var t=this.player_.muted()||this.player_.volume()===0,u=t?"Unmute":"Mute";this.controlText()!==u&&this.controlText(u)},e}(Button);MuteToggle.prototype.controlText_="Mute",Component$1.registerComponent("MuteToggle",MuteToggle);var VolumePanel=function(n){_inheritsLoose(e,n);function e(l,t){var u;return t===void 0&&(t={}),typeof t.inline<"u"?t.inline=t.inline:t.inline=!0,(typeof t.volumeControl>"u"||isPlain(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),u=n.call(this,l,t)||this,u.handleKeyPressHandler_=function(h){return u.handleKeyPress(h)},u.on(l,["loadstart"],function(h){return u.volumePanelState_(h)}),u.on(u.muteToggle,"keyup",function(h){return u.handleKeyPress(h)}),u.on(u.volumeControl,"keyup",function(h){return u.handleVolumeControlKeyUp(h)}),u.on("keydown",function(h){return u.handleKeyPress(h)}),u.on("mouseover",function(h){return u.handleMouseOver(h)}),u.on("mouseout",function(h){return u.handleMouseOut(h)}),u.on(u.volumeControl,["slideractive"],u.sliderActive_),u.on(u.volumeControl,["sliderinactive"],u.sliderInactive_),u}var o=e.prototype;return o.sliderActive_=function(){this.addClass("vjs-slider-active")},o.sliderInactive_=function(){this.removeClass("vjs-slider-active")},o.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},o.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},o.dispose=function(){this.handleMouseOut(),n.prototype.dispose.call(this)},o.handleVolumeControlKeyUp=function(t){keycode.isEventKey(t,"Esc")&&this.muteToggle.focus()},o.handleMouseOver=function(t){this.addClass("vjs-hover"),on(document$2,"keyup",this.handleKeyPressHandler_)},o.handleMouseOut=function(t){this.removeClass("vjs-hover"),off(document$2,"keyup",this.handleKeyPressHandler_)},o.handleKeyPress=function(t){keycode.isEventKey(t,"Esc")&&this.handleMouseOut()},e}(Component$1);VolumePanel.prototype.options_={children:["muteToggle","volumeControl"]},Component$1.registerComponent("VolumePanel",VolumePanel);var Menu=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,t&&(u.menuButton_=t.menuButton),u.focusedChild_=-1,u.on("keydown",function(h){return u.handleKeyDown(h)}),u.boundHandleBlur_=function(h){return u.handleBlur(h)},u.boundHandleTapClick_=function(h){return u.handleTapClick(h)},u}var o=e.prototype;return o.addEventListenerForItem=function(t){t instanceof Component$1&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))},o.removeEventListenerForItem=function(t){t instanceof Component$1&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))},o.removeChild=function(t){typeof t=="string"&&(t=this.getChild(t)),this.removeEventListenerForItem(t),n.prototype.removeChild.call(this,t)},o.addItem=function(t){var u=this.addChild(t);u&&this.addEventListenerForItem(u)},o.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=createEl(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var u=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return u.appendChild(this.contentEl_),on(u,"click",function(h){h.preventDefault(),h.stopImmediatePropagation()}),u},o.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,n.prototype.dispose.call(this)},o.handleBlur=function(t){var u=t.relatedTarget||document$2.activeElement;if(!this.children().some(function(v){return v.el()===u})){var h=this.menuButton_;h&&h.buttonPressed_&&u!==h.el().firstChild&&h.unpressButton()}},o.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var u=this.children();if(!Array.isArray(u))return;var h=u.filter(function(v){return v.el()===t.target})[0];if(!h)return;h.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}},o.handleKeyDown=function(t){keycode.isEventKey(t,"Left")||keycode.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(keycode.isEventKey(t,"Right")||keycode.isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())},o.stepForward=function(){var t=0;this.focusedChild_!==void 0&&(t=this.focusedChild_+1),this.focus(t)},o.stepBack=function(){var t=0;this.focusedChild_!==void 0&&(t=this.focusedChild_-1),this.focus(t)},o.focus=function(t){t===void 0&&(t=0);var u=this.children().slice(),h=u.length&&u[0].hasClass("vjs-menu-title");h&&u.shift(),u.length>0&&(t<0?t=0:t>=u.length&&(t=u.length-1),this.focusedChild_=t,u[t].el_.focus())},e}(Component$1);Component$1.registerComponent("Menu",Menu);var MenuButton=function(n){_inheritsLoose(e,n);function e(l,t){var u;t===void 0&&(t={}),u=n.call(this,l,t)||this,u.menuButton_=new Button(l,t),u.menuButton_.controlText(u.controlText_),u.menuButton_.el_.setAttribute("aria-haspopup","true");var h=Button.prototype.buildCSSClass();u.menuButton_.el_.className=u.buildCSSClass()+" "+h,u.menuButton_.removeClass("vjs-control"),u.addChild(u.menuButton_),u.update(),u.enabled_=!0;var v=function(A){return u.handleClick(A)};return u.handleMenuKeyUp_=function(w){return u.handleMenuKeyUp(w)},u.on(u.menuButton_,"tap",v),u.on(u.menuButton_,"click",v),u.on(u.menuButton_,"keydown",function(w){return u.handleKeyDown(w)}),u.on(u.menuButton_,"mouseenter",function(){u.addClass("vjs-hover"),u.menu.show(),on(document$2,"keyup",u.handleMenuKeyUp_)}),u.on("mouseleave",function(w){return u.handleMouseLeave(w)}),u.on("keydown",function(w){return u.handleSubmenuKeyDown(w)}),u}var o=e.prototype;return o.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},o.createMenu=function(){var t=new Menu(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var u=createEl("li",{className:"vjs-menu-title",textContent:toTitleCase$1(this.options_.title),tabIndex:-1}),h=new Component$1(this.player_,{el:u});t.addItem(h)}if(this.items=this.createItems(),this.items)for(var v=0;v<this.items.length;v++)t.addItem(this.items[v]);return t},o.createItems=function(){},o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},o.buildWrapperCSSClass=function(){var t="vjs-menu-button";this.options_.inline===!0?t+="-inline":t+="-popup";var u=Button.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+u+" "+n.prototype.buildCSSClass.call(this)},o.buildCSSClass=function(){var t="vjs-menu-button";return this.options_.inline===!0?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},o.controlText=function(t,u){return u===void 0&&(u=this.menuButton_.el()),this.menuButton_.controlText(t,u)},o.dispose=function(){this.handleMouseLeave(),n.prototype.dispose.call(this)},o.handleClick=function(t){this.buttonPressed_?this.unpressButton():this.pressButton()},o.handleMouseLeave=function(t){this.removeClass("vjs-hover"),off(document$2,"keyup",this.handleMenuKeyUp_)},o.focus=function(){this.menuButton_.focus()},o.blur=function(){this.menuButton_.blur()},o.handleKeyDown=function(t){keycode.isEventKey(t,"Esc")||keycode.isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),keycode.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(keycode.isEventKey(t,"Up")||keycode.isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))},o.handleMenuKeyUp=function(t){(keycode.isEventKey(t,"Esc")||keycode.isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")},o.handleSubmenuKeyPress=function(t){this.handleSubmenuKeyDown(t)},o.handleSubmenuKeyDown=function(t){(keycode.isEventKey(t,"Esc")||keycode.isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),keycode.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus()))},o.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),IS_IOS&&isInFrame())return;this.menu.focus()}},o.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},o.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},o.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(Component$1);Component$1.registerComponent("MenuButton",MenuButton);var TrackButton=function(n){_inheritsLoose(e,n);function e(o,l){var t,u=l.tracks;if(t=n.call(this,o,l)||this,t.items.length<=1&&t.hide(),!u)return _assertThisInitialized$1(t);var h=bind$2(_assertThisInitialized$1(t),t.update);return u.addEventListener("removetrack",h),u.addEventListener("addtrack",h),u.addEventListener("labelchange",h),t.player_.on("ready",h),t.player_.on("dispose",function(){u.removeEventListener("removetrack",h),u.removeEventListener("addtrack",h),u.removeEventListener("labelchange",h)}),t}return e}(MenuButton);Component$1.registerComponent("TrackButton",TrackButton);var MenuKeys=["Tab","Esc","Up","Down","Right","Left"],MenuItem=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.selectable=t.selectable,u.isSelected_=t.selected||!1,u.multiSelectable=t.multiSelectable,u.selected(u.isSelected_),u.selectable?u.multiSelectable?u.el_.setAttribute("role","menuitemcheckbox"):u.el_.setAttribute("role","menuitemradio"):u.el_.setAttribute("role","menuitem"),u}var o=e.prototype;return o.createEl=function(t,u,h){this.nonIconControl=!0;var v=n.prototype.createEl.call(this,"li",assign({className:"vjs-menu-item",tabIndex:-1},u),h);return v.replaceChild(createEl("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),v.querySelector(".vjs-icon-placeholder")),v},o.handleKeyDown=function(t){MenuKeys.some(function(u){return keycode.isEventKey(t,u)})||n.prototype.handleKeyDown.call(this,t)},o.handleClick=function(t){this.selected(!0)},o.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(ClickableComponent);Component$1.registerComponent("MenuItem",MenuItem);var TextTrackMenuItem=function(n){_inheritsLoose(e,n);function e(l,t){var u,h=t.track,v=l.textTracks();t.label=h.label||h.language||"Unknown",t.selected=h.mode==="showing",u=n.call(this,l,t)||this,u.track=h,u.kinds=(t.kinds||[t.kind||u.track.kind]).filter(Boolean);var w=function(){for(var M=arguments.length,P=new Array(M),I=0;I<M;I++)P[I]=arguments[I];u.handleTracksChange.apply(_assertThisInitialized$1(u),P)},A=function(){for(var M=arguments.length,P=new Array(M),I=0;I<M;I++)P[I]=arguments[I];u.handleSelectedLanguageChange.apply(_assertThisInitialized$1(u),P)};if(l.on(["loadstart","texttrackchange"],w),v.addEventListener("change",w),v.addEventListener("selectedlanguagechange",A),u.on("dispose",function(){l.off(["loadstart","texttrackchange"],w),v.removeEventListener("change",w),v.removeEventListener("selectedlanguagechange",A)}),v.onchange===void 0){var E;u.on(["tap","click"],function(){if(typeof window$1$1.Event!="object")try{E=new window$1$1.Event("change")}catch{}E||(E=document$2.createEvent("Event"),E.initEvent("change",!0,!0)),v.dispatchEvent(E)})}return u.handleTracksChange(),u}var o=e.prototype;return o.handleClick=function(t){var u=this.track,h=this.player_.textTracks();if(n.prototype.handleClick.call(this,t),!!h)for(var v=0;v<h.length;v++){var w=h[v];this.kinds.indexOf(w.kind)!==-1&&(w===u?w.mode!=="showing"&&(w.mode="showing"):w.mode!=="disabled"&&(w.mode="disabled"))}},o.handleTracksChange=function(t){var u=this.track.mode==="showing";u!==this.isSelected_&&this.selected(u)},o.handleSelectedLanguageChange=function(t){if(this.track.mode==="showing"){var u=this.player_.cache_.selectedLanguage;if(u&&u.enabled&&u.language===this.track.language&&u.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},o.dispose=function(){this.track=null,n.prototype.dispose.call(this)},e}(MenuItem);Component$1.registerComponent("TextTrackMenuItem",TextTrackMenuItem);var OffTextTrackMenuItem=function(n){_inheritsLoose(e,n);function e(l,t){return t.track={player:l,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,n.call(this,l,t)||this}var o=e.prototype;return o.handleTracksChange=function(t){for(var u=this.player().textTracks(),h=!0,v=0,w=u.length;v<w;v++){var A=u[v];if(this.options_.kinds.indexOf(A.kind)>-1&&A.mode==="showing"){h=!1;break}}h!==this.isSelected_&&this.selected(h)},o.handleSelectedLanguageChange=function(t){for(var u=this.player().textTracks(),h=!0,v=0,w=u.length;v<w;v++){var A=u[v];if(["captions","descriptions","subtitles"].indexOf(A.kind)>-1&&A.mode==="showing"){h=!1;break}}h&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(TextTrackMenuItem);Component$1.registerComponent("OffTextTrackMenuItem",OffTextTrackMenuItem);var TextTrackButton=function(n){_inheritsLoose(e,n);function e(l,t){return t===void 0&&(t={}),t.tracks=l.textTracks(),n.call(this,l,t)||this}var o=e.prototype;return o.createItems=function(t,u){t===void 0&&(t=[]),u===void 0&&(u=TextTrackMenuItem);var h;this.label_&&(h=this.label_+" off"),t.push(new OffTextTrackMenuItem(this.player_,{kinds:this.kinds_,kind:this.kind_,label:h})),this.hideThreshold_+=1;var v=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var w=0;w<v.length;w++){var A=v[w];if(this.kinds_.indexOf(A.kind)>-1){var E=new u(this.player_,{track:A,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});E.addClass("vjs-"+A.kind+"-menu-item"),t.push(E)}}return t},e}(TrackButton);Component$1.registerComponent("TextTrackButton",TextTrackButton);var ChaptersTrackMenuItem=function(n){_inheritsLoose(e,n);function e(l,t){var u,h=t.track,v=t.cue,w=l.currentTime();return t.selectable=!0,t.multiSelectable=!1,t.label=v.text,t.selected=v.startTime<=w&&w<v.endTime,u=n.call(this,l,t)||this,u.track=h,u.cue=v,u}var o=e.prototype;return o.handleClick=function(t){n.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},e}(MenuItem);Component$1.registerComponent("ChaptersTrackMenuItem",ChaptersTrackMenuItem);var ChaptersButton=function(n){_inheritsLoose(e,n);function e(l,t,u){var h;return h=n.call(this,l,t,u)||this,h.selectCurrentItem_=function(){h.items.forEach(function(v){v.selected(h.track_.activeCues[0]===v.cue)})},h}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},o.buildWrapperCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildWrapperCSSClass.call(this)},o.update=function(t){if(!(t&&t.track&&t.track.kind!=="chapters")){var u=this.findChaptersTrack();u!==this.track_?(this.setTrack(u),n.prototype.update.call(this)):(!this.items||u&&u.cues&&u.cues.length!==this.items.length)&&n.prototype.update.call(this)}},o.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var u=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);u&&u.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var h=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);h&&h.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},o.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],u=t.length-1;u>=0;u--){var h=t[u];if(h.kind===this.kind_)return h}},o.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(toTitleCase$1(this.kind_))},o.createMenu=function(){return this.options_.title=this.getMenuCaption(),n.prototype.createMenu.call(this)},o.createItems=function(){var t=[];if(!this.track_)return t;var u=this.track_.cues;if(!u)return t;for(var h=0,v=u.length;h<v;h++){var w=u[h],A=new ChaptersTrackMenuItem(this.player_,{track:this.track_,cue:w});t.push(A)}return t},e}(TextTrackButton);ChaptersButton.prototype.kind_="chapters",ChaptersButton.prototype.controlText_="Chapters",Component$1.registerComponent("ChaptersButton",ChaptersButton);var DescriptionsButton=function(n){_inheritsLoose(e,n);function e(l,t,u){var h;h=n.call(this,l,t,u)||this;var v=l.textTracks(),w=bind$2(_assertThisInitialized$1(h),h.handleTracksChange);return v.addEventListener("change",w),h.on("dispose",function(){v.removeEventListener("change",w)}),h}var o=e.prototype;return o.handleTracksChange=function(t){for(var u=this.player().textTracks(),h=!1,v=0,w=u.length;v<w;v++){var A=u[v];if(A.kind!==this.kind_&&A.mode==="showing"){h=!0;break}}h?this.disable():this.enable()},o.buildCSSClass=function(){return"vjs-descriptions-button "+n.prototype.buildCSSClass.call(this)},o.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+n.prototype.buildWrapperCSSClass.call(this)},e}(TextTrackButton);DescriptionsButton.prototype.kind_="descriptions",DescriptionsButton.prototype.controlText_="Descriptions",Component$1.registerComponent("DescriptionsButton",DescriptionsButton);var SubtitlesButton=function(n){_inheritsLoose(e,n);function e(l,t,u){return n.call(this,l,t,u)||this}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},o.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildWrapperCSSClass.call(this)},e}(TextTrackButton);SubtitlesButton.prototype.kind_="subtitles",SubtitlesButton.prototype.controlText_="Subtitles",Component$1.registerComponent("SubtitlesButton",SubtitlesButton);var CaptionSettingsMenuItem=function(n){_inheritsLoose(e,n);function e(l,t){var u;return t.track={player:l,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",u=n.call(this,l,t)||this,u.addClass("vjs-texttrack-settings"),u.controlText(", opens "+t.kind+" settings dialog"),u}var o=e.prototype;return o.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(TextTrackMenuItem);Component$1.registerComponent("CaptionSettingsMenuItem",CaptionSettingsMenuItem);var CaptionsButton=function(n){_inheritsLoose(e,n);function e(l,t,u){return n.call(this,l,t,u)||this}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},o.buildWrapperCSSClass=function(){return"vjs-captions-button "+n.prototype.buildWrapperCSSClass.call(this)},o.createItems=function(){var t=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(t.push(new CaptionSettingsMenuItem(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),n.prototype.createItems.call(this,t)},e}(TextTrackButton);CaptionsButton.prototype.kind_="captions",CaptionsButton.prototype.controlText_="Captions",Component$1.registerComponent("CaptionsButton",CaptionsButton);var SubsCapsMenuItem=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.createEl=function(t,u,h){var v=n.prototype.createEl.call(this,t,u,h),w=v.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(w.appendChild(createEl("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),w.appendChild(createEl("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),v},e}(TextTrackMenuItem);Component$1.registerComponent("SubsCapsMenuItem",SubsCapsMenuItem);var SubsCapsButton=function(n){_inheritsLoose(e,n);function e(l,t){var u;return t===void 0&&(t={}),u=n.call(this,l,t)||this,u.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(u.player_.language_)>-1&&(u.label_="captions"),u.menuButton_.controlText(toTitleCase$1(u.label_)),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildCSSClass.call(this)},o.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildWrapperCSSClass.call(this)},o.createItems=function(){var t=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(t.push(new CaptionSettingsMenuItem(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=n.prototype.createItems.call(this,t,SubsCapsMenuItem),t},e}(TextTrackButton);SubsCapsButton.prototype.kinds_=["captions","subtitles"],SubsCapsButton.prototype.controlText_="Subtitles",Component$1.registerComponent("SubsCapsButton",SubsCapsButton);var AudioTrackMenuItem=function(n){_inheritsLoose(e,n);function e(l,t){var u,h=t.track,v=l.audioTracks();t.label=h.label||h.language||"Unknown",t.selected=h.enabled,u=n.call(this,l,t)||this,u.track=h,u.addClass("vjs-"+h.kind+"-menu-item");var w=function(){for(var E=arguments.length,C=new Array(E),M=0;M<E;M++)C[M]=arguments[M];u.handleTracksChange.apply(_assertThisInitialized$1(u),C)};return v.addEventListener("change",w),u.on("dispose",function(){v.removeEventListener("change",w)}),u}var o=e.prototype;return o.createEl=function(t,u,h){var v=n.prototype.createEl.call(this,t,u,h),w=v.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="main-desc"&&(w.appendChild(createEl("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),w.appendChild(createEl("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),v},o.handleClick=function(t){if(n.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var u=this.player_.audioTracks(),h=0;h<u.length;h++){var v=u[h];v!==this.track&&(v.enabled=v===this.track)}},o.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(MenuItem);Component$1.registerComponent("AudioTrackMenuItem",AudioTrackMenuItem);var AudioTrackButton=function(n){_inheritsLoose(e,n);function e(l,t){return t===void 0&&(t={}),t.tracks=l.audioTracks(),n.call(this,l,t)||this}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-audio-button "+n.prototype.buildCSSClass.call(this)},o.buildWrapperCSSClass=function(){return"vjs-audio-button "+n.prototype.buildWrapperCSSClass.call(this)},o.createItems=function(t){t===void 0&&(t=[]),this.hideThreshold_=1;for(var u=this.player_.audioTracks(),h=0;h<u.length;h++){var v=u[h];t.push(new AudioTrackMenuItem(this.player_,{track:v,selectable:!0,multiSelectable:!1}))}return t},e}(TrackButton);AudioTrackButton.prototype.controlText_="Audio Track",Component$1.registerComponent("AudioTrackButton",AudioTrackButton);var PlaybackRateMenuItem=function(n){_inheritsLoose(e,n);function e(l,t){var u,h=t.rate,v=parseFloat(h,10);return t.label=h,t.selected=v===l.playbackRate(),t.selectable=!0,t.multiSelectable=!1,u=n.call(this,l,t)||this,u.label=h,u.rate=v,u.on(l,"ratechange",function(w){return u.update(w)}),u}var o=e.prototype;return o.handleClick=function(t){n.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},o.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(MenuItem);PlaybackRateMenuItem.prototype.contentElType="button",Component$1.registerComponent("PlaybackRateMenuItem",PlaybackRateMenuItem);var PlaybackRateMenuButton=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.menuButton_.el_.setAttribute("aria-describedby",u.labelElId_),u.updateVisibility(),u.updateLabel(),u.on(l,"loadstart",function(h){return u.updateVisibility(h)}),u.on(l,"ratechange",function(h){return u.updateLabel(h)}),u.on(l,"playbackrateschange",function(h){return u.handlePlaybackRateschange(h)}),u}var o=e.prototype;return o.createEl=function(){var t=n.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=createEl("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},o.dispose=function(){this.labelEl_=null,n.prototype.dispose.call(this)},o.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},o.buildWrapperCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildWrapperCSSClass.call(this)},o.createItems=function(){for(var t=this.playbackRates(),u=[],h=t.length-1;h>=0;h--)u.push(new PlaybackRateMenuItem(this.player(),{rate:t[h]+"x"}));return u},o.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},o.handleClick=function(t){var u=this.player().playbackRate(),h=this.playbackRates(),v=h.indexOf(u),w=(v+1)%h.length;this.player().playbackRate(h[w])},o.handlePlaybackRateschange=function(t){this.update()},o.playbackRates=function(){var t=this.player();return t.playbackRates&&t.playbackRates()||[]},o.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},o.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},o.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},e}(MenuButton);PlaybackRateMenuButton.prototype.controlText_="Playback Rate",Component$1.registerComponent("PlaybackRateMenuButton",PlaybackRateMenuButton);var Spacer=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},o.createEl=function(t,u,h){return t===void 0&&(t="div"),u===void 0&&(u={}),h===void 0&&(h={}),u.className||(u.className=this.buildCSSClass()),n.prototype.createEl.call(this,t,u,h)},e}(Component$1);Component$1.registerComponent("Spacer",Spacer);var CustomControlSpacer=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-custom-control-spacer "+n.prototype.buildCSSClass.call(this)},o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},e}(Spacer);Component$1.registerComponent("CustomControlSpacer",CustomControlSpacer);var ControlBar=function(n){_inheritsLoose(e,n);function e(){return n.apply(this,arguments)||this}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(Component$1);ControlBar.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in document$2&&ControlBar.prototype.options_.children.splice(ControlBar.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Component$1.registerComponent("ControlBar",ControlBar);var ErrorDisplay=function(n){_inheritsLoose(e,n);function e(l,t){var u;return u=n.call(this,l,t)||this,u.on(l,"error",function(h){return u.open(h)}),u}var o=e.prototype;return o.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},o.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(ModalDialog);ErrorDisplay.prototype.options_=_extends$2({},ModalDialog.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Component$1.registerComponent("ErrorDisplay",ErrorDisplay);var LOCAL_STORAGE_KEY$1="vjs-text-track-settings",COLOR_BLACK=["#000","Black"],COLOR_BLUE=["#00F","Blue"],COLOR_CYAN=["#0FF","Cyan"],COLOR_GREEN=["#0F0","Green"],COLOR_MAGENTA=["#F0F","Magenta"],COLOR_RED=["#F00","Red"],COLOR_WHITE=["#FFF","White"],COLOR_YELLOW=["#FF0","Yellow"],OPACITY_OPAQUE=["1","Opaque"],OPACITY_SEMI=["0.5","Semi-Transparent"],OPACITY_TRANS=["0","Transparent"],selectConfigs={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[COLOR_BLACK,COLOR_WHITE,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI,OPACITY_TRANS]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[COLOR_WHITE,COLOR_BLACK,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return e==="1.00"?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[OPACITY_TRANS,OPACITY_SEMI,OPACITY_OPAQUE]}};selectConfigs.windowColor.options=selectConfigs.backgroundColor.options;function parseOptionValue(n,e){if(e&&(n=e(n)),n&&n!=="none")return n}function getSelectedOptionValue(n,e){var o=n.options[n.options.selectedIndex].value;return parseOptionValue(o,e)}function setSelectedOption(n,e,o){if(e){for(var l=0;l<n.options.length;l++)if(parseOptionValue(n.options[l].value,o)===e){n.selectedIndex=l;break}}}var TextTrackSettings=function(n){_inheritsLoose(e,n);function e(l,t){var u;return t.temporary=!1,u=n.call(this,l,t)||this,u.updateDisplay=u.updateDisplay.bind(_assertThisInitialized$1(u)),u.fill(),u.hasBeenOpened_=u.hasBeenFilled_=!0,u.endDialog=createEl("p",{className:"vjs-control-text",textContent:u.localize("End of dialog window.")}),u.el().appendChild(u.endDialog),u.setDefaults(),t.persistTextTrackSettings===void 0&&(u.options_.persistTextTrackSettings=u.options_.playerOptions.persistTextTrackSettings),u.on(u.$(".vjs-done-button"),"click",function(){u.saveSettings(),u.close()}),u.on(u.$(".vjs-default-button"),"click",function(){u.setDefaults(),u.updateDisplay()}),each(selectConfigs,function(h){u.on(u.$(h.selector),"change",u.updateDisplay)}),u.options_.persistTextTrackSettings&&u.restoreSettings(),u}var o=e.prototype;return o.dispose=function(){this.endDialog=null,n.prototype.dispose.call(this)},o.createElSelect_=function(t,u,h){var v=this;u===void 0&&(u=""),h===void 0&&(h="label");var w=selectConfigs[t],A=w.id.replace("%s",this.id_),E=[u,A].join(" ").trim();return["<"+h+' id="'+A+'" class="'+(h==="label"?"vjs-label":"")+'">',this.localize(w.label),"</"+h+">",'<select aria-labelledby="'+E+'">'].concat(w.options.map(function(C){var M=A+"-"+C[1].replace(/\W+/g,"");return['<option id="'+M+'" value="'+C[0]+'" ','aria-labelledby="'+E+" "+M+'">',v.localize(C[1]),"</option>"].join("")})).concat("</select>").join("")},o.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},o.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},o.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},o.createElColors_=function(){return createEl("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},o.createElFont_=function(){return createEl("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},o.createElControls_=function(){var t=this.localize("restore all settings to the default values");return createEl("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},o.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},o.label=function(){return this.localize("Caption Settings Dialog")},o.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},o.buildCSSClass=function(){return n.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},o.getValues=function(){var t=this;return reduce(selectConfigs,function(u,h,v){var w=getSelectedOptionValue(t.$(h.selector),h.parser);return w!==void 0&&(u[v]=w),u},{})},o.setValues=function(t){var u=this;each(selectConfigs,function(h,v){setSelectedOption(u.$(h.selector),t[v],h.parser)})},o.setDefaults=function(){var t=this;each(selectConfigs,function(u){var h=u.hasOwnProperty("default")?u.default:0;t.$(u.selector).selectedIndex=h})},o.restoreSettings=function(){var t;try{t=JSON.parse(window$1$1.localStorage.getItem(LOCAL_STORAGE_KEY$1))}catch(u){log$1.warn(u)}t&&this.setValues(t)},o.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?window$1$1.localStorage.setItem(LOCAL_STORAGE_KEY$1,JSON.stringify(t)):window$1$1.localStorage.removeItem(LOCAL_STORAGE_KEY$1)}catch(u){log$1.warn(u)}}},o.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},o.conditionalBlur_=function(){this.previouslyActiveEl_=null;var t=this.player_.controlBar,u=t&&t.subsCapsButton,h=t&&t.captionsButton;u?u.focus():h&&h.focus()},e}(ModalDialog);Component$1.registerComponent("TextTrackSettings",TextTrackSettings);var ResizeManager=function(n){_inheritsLoose(e,n);function e(l,t){var u,h=t.ResizeObserver||window$1$1.ResizeObserver;t.ResizeObserver===null&&(h=!1);var v=mergeOptions$3({createEl:!h,reportTouchActivity:!1},t);return u=n.call(this,l,v)||this,u.ResizeObserver=t.ResizeObserver||window$1$1.ResizeObserver,u.loadListener_=null,u.resizeObserver_=null,u.debouncedHandler_=debounce(function(){u.resizeHandler()},100,!1,_assertThisInitialized$1(u)),h?(u.resizeObserver_=new u.ResizeObserver(u.debouncedHandler_),u.resizeObserver_.observe(l.el())):(u.loadListener_=function(){if(!(!u.el_||!u.el_.contentWindow)){var w=u.debouncedHandler_,A=u.unloadListener_=function(){off(this,"resize",w),off(this,"unload",A),A=null};on(u.el_.contentWindow,"unload",A),on(u.el_.contentWindow,"resize",w)}},u.one("load",u.loadListener_)),u}var o=e.prototype;return o.createEl=function(){return n.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},o.resizeHandler=function(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")},o.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,n.prototype.dispose.call(this)},e}(Component$1);Component$1.registerComponent("ResizeManager",ResizeManager);var defaults$1={trackingThreshold:20,liveTolerance:15},LiveTracker=function(n){_inheritsLoose(e,n);function e(l,t){var u,h=mergeOptions$3(defaults$1,t,{createEl:!1});return u=n.call(this,l,h)||this,u.handleVisibilityChange_=function(v){return u.handleVisibilityChange(v)},u.trackLiveHandler_=function(){return u.trackLive_()},u.handlePlay_=function(v){return u.handlePlay(v)},u.handleFirstTimeupdate_=function(v){return u.handleFirstTimeupdate(v)},u.handleSeeked_=function(v){return u.handleSeeked(v)},u.seekToLiveEdge_=function(v){return u.seekToLiveEdge(v)},u.reset_(),u.on(u.player_,"durationchange",function(v){return u.handleDurationchange(v)}),u.on(u.player_,"canplay",function(){return u.toggleTracking()}),IE_VERSION&&"hidden"in document$2&&"visibilityState"in document$2&&u.on(document$2,"visibilitychange",u.handleVisibilityChange_),u}var o=e.prototype;return o.handleVisibilityChange=function(){this.player_.duration()===1/0&&(document$2.hidden?this.stopTracking():this.startTracking())},o.trackLive_=function(){var t=this.player_.seekable();if(!(!t||!t.length)){var u=Number(window$1$1.performance.now().toFixed(4)),h=this.lastTime_===-1?0:(u-this.lastTime_)/1e3;this.lastTime_=u,this.pastSeekEnd_=this.pastSeekEnd()+h;var v=this.liveCurrentTime(),w=this.player_.currentTime(),A=this.player_.paused()||this.seekedBehindLive_||Math.abs(v-w)>this.options_.liveTolerance;(!this.timeupdateSeen_||v===1/0)&&(A=!1),A!==this.behindLiveEdge_&&(this.behindLiveEdge_=A,this.trigger("liveedgechange"))}},o.handleDurationchange=function(){this.toggleTracking()},o.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},o.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,UPDATE_REFRESH_INTERVAL),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},o.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},o.handleSeeked=function(){var t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>2,this.nextSeekedFromUser_=!1,this.trackLive_()},o.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},o.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},o.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},o.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},o.seekableEnd=function(){for(var t=this.player_.seekable(),u=[],h=t?t.length:0;h--;)u.push(t.end(h));return u.length?u.sort()[u.length-1]:1/0},o.seekableStart=function(){for(var t=this.player_.seekable(),u=[],h=t?t.length:0;h--;)u.push(t.start(h));return u.length?u.sort()[0]:0},o.liveWindow=function(){var t=this.liveCurrentTime();return t===1/0?0:t-this.seekableStart()},o.isLive=function(){return this.isTracking()},o.atLiveEdge=function(){return!this.behindLiveEdge()},o.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},o.pastSeekEnd=function(){var t=this.seekableEnd();return this.lastSeekEnd_!==-1&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,this.pastSeekEnd_},o.behindLiveEdge=function(){return this.behindLiveEdge_},o.isTracking=function(){return typeof this.trackingInterval_=="number"},o.seekToLiveEdge=function(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},o.dispose=function(){this.off(document$2,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),n.prototype.dispose.call(this)},e}(Component$1);Component$1.registerComponent("LiveTracker",LiveTracker);var sourcesetLoad=function(e){var o=e.el();if(o.hasAttribute("src"))return e.triggerSourceset(o.src),!0;var l=e.$$("source"),t=[],u="";if(!l.length)return!1;for(var h=0;h<l.length;h++){var v=l[h].src;v&&t.indexOf(v)===-1&&t.push(v)}return t.length?(t.length===1&&(u=t[0]),e.triggerSourceset(u),!0):!1},innerHTMLDescriptorPolyfill=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var o=document$2.createElement(this.nodeName.toLowerCase());o.innerHTML=e;for(var l=document$2.createDocumentFragment();o.childNodes.length;)l.appendChild(o.childNodes[0]);return this.innerText="",window$1$1.Element.prototype.appendChild.call(this,l),this.innerHTML}}),getDescriptor=function(e,o){for(var l={},t=0;t<e.length&&(l=Object.getOwnPropertyDescriptor(e[t],o),!(l&&l.set&&l.get));t++);return l.enumerable=!0,l.configurable=!0,l},getInnerHTMLDescriptor=function(e){return getDescriptor([e.el(),window$1$1.HTMLMediaElement.prototype,window$1$1.Element.prototype,innerHTMLDescriptorPolyfill],"innerHTML")},firstSourceWatch=function(e){var o=e.el();if(!o.resetSourceWatch_){var l={},t=getInnerHTMLDescriptor(e),u=function(v){return function(){for(var w=arguments.length,A=new Array(w),E=0;E<w;E++)A[E]=arguments[E];var C=v.apply(o,A);return sourcesetLoad(e),C}};["append","appendChild","insertAdjacentHTML"].forEach(function(h){o[h]&&(l[h]=o[h],o[h]=u(l[h]))}),Object.defineProperty(o,"innerHTML",mergeOptions$3(t,{set:u(t.set)})),o.resetSourceWatch_=function(){o.resetSourceWatch_=null,Object.keys(l).forEach(function(h){o[h]=l[h]}),Object.defineProperty(o,"innerHTML",t)},e.one("sourceset",o.resetSourceWatch_)}},srcDescriptorPolyfill=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?getAbsoluteURL(window$1$1.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return window$1$1.Element.prototype.setAttribute.call(this,"src",e),e}}),getSrcDescriptor=function(e){return getDescriptor([e.el(),window$1$1.HTMLMediaElement.prototype,srcDescriptorPolyfill],"src")},setupSourceset=function(e){if(e.featuresSourceset){var o=e.el();if(!o.resetSourceset_){var l=getSrcDescriptor(e),t=o.setAttribute,u=o.load;Object.defineProperty(o,"src",mergeOptions$3(l,{set:function(v){var w=l.set.call(o,v);return e.triggerSourceset(o.src),w}})),o.setAttribute=function(h,v){var w=t.call(o,h,v);return/src/i.test(h)&&e.triggerSourceset(o.src),w},o.load=function(){var h=u.call(o);return sourcesetLoad(e)||(e.triggerSourceset(""),firstSourceWatch(e)),h},o.currentSrc?e.triggerSourceset(o.currentSrc):sourcesetLoad(e)||firstSourceWatch(e),o.resetSourceset_=function(){o.resetSourceset_=null,o.load=u,o.setAttribute=t,Object.defineProperty(o,"src",l),o.resetSourceWatch_&&o.resetSourceWatch_()}}}},defineLazyProperty=function(e,o,l,t){t===void 0&&(t=!0);var u=function(w){return Object.defineProperty(e,o,{value:w,enumerable:!0,writable:!0})},h={configurable:!0,enumerable:!0,get:function(){var w=l();return u(w),w}};return t&&(h.set=u),Object.defineProperty(e,o,h)},Html5=function(n){_inheritsLoose(e,n);function e(l,t){var u;u=n.call(this,l,t)||this;var h=l.source,v=!1;if(u.featuresVideoFrameCallback=u.featuresVideoFrameCallback&&u.el_.tagName==="VIDEO",h&&(u.el_.currentSrc!==h.src||l.tag&&l.tag.initNetworkState_===3)?u.setSource(h):u.handleLateInit_(u.el_),l.enableSourceset&&u.setupSourcesetHandling_(),u.isScrubbing_=!1,u.el_.hasChildNodes()){for(var w=u.el_.childNodes,A=w.length,E=[];A--;){var C=w[A],M=C.nodeName.toLowerCase();M==="track"&&(u.featuresNativeTextTracks?(u.remoteTextTrackEls().addTrackElement_(C),u.remoteTextTracks().addTrack(C.track),u.textTracks().addTrack(C.track),!v&&!u.el_.hasAttribute("crossorigin")&&isCrossOrigin(C.src)&&(v=!0)):E.push(C))}for(var P=0;P<E.length;P++)u.el_.removeChild(E[P])}return u.proxyNativeTracks_(),u.featuresNativeTextTracks&&v&&log$1.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
This may prevent text tracks from loading.`),u.restoreMetadataTracksInIOSNativePlayer_(),(TOUCH_ENABLED||IS_IPHONE||IS_NATIVE_ANDROID)&&l.nativeControlsForTouch===!0&&u.setControls(!0),u.proxyWebkitFullscreen_(),u.triggerReady(),u}var o=e.prototype;return o.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,n.prototype.dispose.call(this)},o.setupSourcesetHandling_=function(){setupSourceset(this)},o.restoreMetadataTracksInIOSNativePlayer_=function(){var t=this.textTracks(),u,h=function(){u=[];for(var A=0;A<t.length;A++){var E=t[A];E.kind==="metadata"&&u.push({track:E,storedMode:E.mode})}};h(),t.addEventListener("change",h),this.on("dispose",function(){return t.removeEventListener("change",h)});var v=function w(){for(var A=0;A<u.length;A++){var E=u[A];E.track.mode==="disabled"&&E.track.mode!==E.storedMode&&(E.track.mode=E.storedMode)}t.removeEventListener("change",w)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",h),t.removeEventListener("change",v),t.addEventListener("change",v)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",h),t.addEventListener("change",h),t.removeEventListener("change",v)})},o.overrideNative_=function(t,u){var h=this;if(u===this["featuresNative"+t+"Tracks"]){var v=t.toLowerCase();this[v+"TracksListeners_"]&&Object.keys(this[v+"TracksListeners_"]).forEach(function(w){var A=h.el()[v+"Tracks"];A.removeEventListener(w,h[v+"TracksListeners_"][w])}),this["featuresNative"+t+"Tracks"]=!u,this[v+"TracksListeners_"]=null,this.proxyNativeTracksForType_(v)}},o.overrideNativeAudioTracks=function(t){this.overrideNative_("Audio",t)},o.overrideNativeVideoTracks=function(t){this.overrideNative_("Video",t)},o.proxyNativeTracksForType_=function(t){var u=this,h=NORMAL[t],v=this.el()[h.getterName],w=this[h.getterName]();if(!(!this["featuresNative"+h.capitalName+"Tracks"]||!v||!v.addEventListener)){var A={change:function(M){var P={type:"change",target:w,currentTarget:w,srcElement:w};w.trigger(P),t==="text"&&u[REMOTE.remoteText.getterName]().trigger(P)},addtrack:function(M){w.addTrack(M.track)},removetrack:function(M){w.removeTrack(M.track)}},E=function(){for(var M=[],P=0;P<w.length;P++){for(var I=!1,j=0;j<v.length;j++)if(v[j]===w[P]){I=!0;break}I||M.push(w[P])}for(;M.length;)w.removeTrack(M.shift())};this[h.getterName+"Listeners_"]=A,Object.keys(A).forEach(function(C){var M=A[C];v.addEventListener(C,M),u.on("dispose",function(P){return v.removeEventListener(C,M)})}),this.on("loadstart",E),this.on("dispose",function(C){return u.off("loadstart",E)})}},o.proxyNativeTracks_=function(){var t=this;NORMAL.names.forEach(function(u){t.proxyNativeTracksForType_(u)})},o.createEl=function(){var t=this.options_.tag;if(!t||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(t){var u=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(u,t),e.disposeMediaElement(t),t=u}else{t=document$2.createElement("video");var h=this.options_.tag&&getAttributes(this.options_.tag),v=mergeOptions$3({},h);(!TOUCH_ENABLED||this.options_.nativeControlsForTouch!==!0)&&delete v.controls,setAttributes(t,assign(v,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&setAttribute(t,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);for(var w=["loop","muted","playsinline","autoplay"],A=0;A<w.length;A++){var E=w[A],C=this.options_[E];typeof C<"u"&&(C?setAttribute(t,E,E):removeAttribute(t,E),t[E]=C)}return t},o.handleLateInit_=function(t){if(!(t.networkState===0||t.networkState===3)){if(t.readyState===0){var u=!1,h=function(){u=!0};this.on("loadstart",h);var v=function(){u||this.trigger("loadstart")};this.on("loadedmetadata",v),this.ready(function(){this.off("loadstart",h),this.off("loadedmetadata",v),u||this.trigger("loadstart")});return}var w=["loadstart"];w.push("loadedmetadata"),t.readyState>=2&&w.push("loadeddata"),t.readyState>=3&&w.push("canplay"),t.readyState>=4&&w.push("canplaythrough"),this.ready(function(){w.forEach(function(A){this.trigger(A)},this)})}},o.setScrubbing=function(t){this.isScrubbing_=t},o.scrubbing=function(){return this.isScrubbing_},o.setCurrentTime=function(t){try{this.isScrubbing_&&this.el_.fastSeek&&IS_ANY_SAFARI?this.el_.fastSeek(t):this.el_.currentTime=t}catch(u){log$1(u,"Video is not ready. (Video.js)")}},o.duration=function(){var t=this;if(this.el_.duration===1/0&&IS_ANDROID&&IS_CHROME&&this.el_.currentTime===0){var u=function h(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",h))};return this.on("timeupdate",u),NaN}return this.el_.duration||NaN},o.width=function(){return this.el_.offsetWidth},o.height=function(){return this.el_.offsetHeight},o.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var u=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},h=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",u),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",h),this.on("dispose",function(){t.off("webkitbeginfullscreen",h),t.off("webkitendfullscreen",u)})}},o.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var t=window$1$1.navigator&&window$1$1.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},o.enterFullScreen=function(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA)silencePromise(this.el_.play()),this.setTimeout(function(){t.pause();try{t.webkitEnterFullScreen()}catch(u){this.trigger("fullscreenerror",u)}},0);else try{t.webkitEnterFullScreen()}catch(u){this.trigger("fullscreenerror",u)}},o.exitFullScreen=function(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()},o.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},o.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):n.prototype.requestVideoFrameCallback.call(this,t)},o.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):n.prototype.cancelVideoFrameCallback.call(this,t)},o.src=function(t){if(t===void 0)return this.el_.src;this.setSrc(t)},o.reset=function(){e.resetMediaElement(this.el_)},o.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},o.setControls=function(t){this.el_.controls=!!t},o.addTextTrack=function(t,u,h){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,u,h):n.prototype.addTextTrack.call(this,t,u,h)},o.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return n.prototype.createRemoteTextTrack.call(this,t);var u=document$2.createElement("track");return t.kind&&(u.kind=t.kind),t.label&&(u.label=t.label),(t.language||t.srclang)&&(u.srclang=t.language||t.srclang),t.default&&(u.default=t.default),t.id&&(u.id=t.id),t.src&&(u.src=t.src),u},o.addRemoteTextTrack=function(t,u){var h=n.prototype.addRemoteTextTrack.call(this,t,u);return this.featuresNativeTextTracks&&this.el().appendChild(h),h},o.removeRemoteTextTrack=function(t){if(n.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var u=this.$$("track"),h=u.length;h--;)(t===u[h]||t===u[h].track)&&this.el().removeChild(u[h])},o.getVideoPlaybackQuality=function(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();var t={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),window$1$1.performance&&typeof window$1$1.performance.now=="function"?t.creationTime=window$1$1.performance.now():window$1$1.performance&&window$1$1.performance.timing&&typeof window$1$1.performance.timing.navigationStart=="number"&&(t.creationTime=window$1$1.Date.now()-window$1$1.performance.timing.navigationStart),t},e}(Tech$2);defineLazyProperty(Html5,"TEST_VID",function(){if(isReal()){var n=document$2.createElement("video"),e=document$2.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",n.appendChild(e),n}}),Html5.isSupported=function(){try{Html5.TEST_VID.volume=.5}catch{return!1}return!!(Html5.TEST_VID&&Html5.TEST_VID.canPlayType)},Html5.canPlayType=function(n){return Html5.TEST_VID.canPlayType(n)},Html5.canPlaySource=function(n,e){return Html5.canPlayType(n.type)},Html5.canControlVolume=function(){try{var n=Html5.TEST_VID.volume;Html5.TEST_VID.volume=n/2+.1;var e=n!==Html5.TEST_VID.volume;return e&&IS_IOS?(window$1$1.setTimeout(function(){Html5&&Html5.prototype&&(Html5.prototype.featuresVolumeControl=n!==Html5.TEST_VID.volume)}),!1):e}catch{return!1}},Html5.canMuteVolume=function(){try{var n=Html5.TEST_VID.muted;return Html5.TEST_VID.muted=!n,Html5.TEST_VID.muted?setAttribute(Html5.TEST_VID,"muted","muted"):removeAttribute(Html5.TEST_VID,"muted","muted"),n!==Html5.TEST_VID.muted}catch{return!1}},Html5.canControlPlaybackRate=function(){if(IS_ANDROID&&IS_CHROME&&CHROME_VERSION<58)return!1;try{var n=Html5.TEST_VID.playbackRate;return Html5.TEST_VID.playbackRate=n/2+.1,n!==Html5.TEST_VID.playbackRate}catch{return!1}},Html5.canOverrideAttributes=function(){try{var n=function(){};Object.defineProperty(document$2.createElement("video"),"src",{get:n,set:n}),Object.defineProperty(document$2.createElement("audio"),"src",{get:n,set:n}),Object.defineProperty(document$2.createElement("video"),"innerHTML",{get:n,set:n}),Object.defineProperty(document$2.createElement("audio"),"innerHTML",{get:n,set:n})}catch{return!1}return!0},Html5.supportsNativeTextTracks=function(){return IS_ANY_SAFARI||IS_IOS&&IS_CHROME},Html5.supportsNativeVideoTracks=function(){return!!(Html5.TEST_VID&&Html5.TEST_VID.videoTracks)},Html5.supportsNativeAudioTracks=function(){return!!(Html5.TEST_VID&&Html5.TEST_VID.audioTracks)},Html5.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(n){var e=n[0],o=n[1];defineLazyProperty(Html5.prototype,e,function(){return Html5[o]()},!0)}),Html5.prototype.featuresVolumeControl=Html5.canControlVolume(),Html5.prototype.movingMediaElementInDOM=!IS_IOS,Html5.prototype.featuresFullscreenResize=!0,Html5.prototype.featuresProgressEvents=!0,Html5.prototype.featuresTimeupdateEvents=!0,Html5.prototype.featuresVideoFrameCallback=!!(Html5.TEST_VID&&Html5.TEST_VID.requestVideoFrameCallback);var canPlayType;Html5.patchCanPlayType=function(){ANDROID_VERSION>=4&&!IS_FIREFOX&&!IS_CHROME&&(canPlayType=Html5.TEST_VID&&Html5.TEST_VID.constructor.prototype.canPlayType,Html5.TEST_VID.constructor.prototype.canPlayType=function(n){var e=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;return n&&e.test(n)?"maybe":canPlayType.call(this,n)})},Html5.unpatchCanPlayType=function(){var n=Html5.TEST_VID.constructor.prototype.canPlayType;return canPlayType&&(Html5.TEST_VID.constructor.prototype.canPlayType=canPlayType),n},Html5.patchCanPlayType(),Html5.disposeMediaElement=function(n){if(n){for(n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);n.removeAttribute("src"),typeof n.load=="function"&&function(){try{n.load()}catch{}}()}},Html5.resetMediaElement=function(n){if(n){for(var e=n.querySelectorAll("source"),o=e.length;o--;)n.removeChild(e[o]);n.removeAttribute("src"),typeof n.load=="function"&&function(){try{n.load()}catch{}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(n){Html5.prototype[n]=function(){return this.el_[n]||this.el_.hasAttribute(n)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(n){Html5.prototype["set"+toTitleCase$1(n)]=function(e){this.el_[n]=e,e?this.el_.setAttribute(n,n):this.el_.removeAttribute(n)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(n){Html5.prototype[n]=function(){return this.el_[n]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(n){Html5.prototype["set"+toTitleCase$1(n)]=function(e){this.el_[n]=e}}),["pause","load","play"].forEach(function(n){Html5.prototype[n]=function(){return this.el_[n]()}}),Tech$2.withSourceHandlers(Html5),Html5.nativeSourceHandler={},Html5.nativeSourceHandler.canPlayType=function(n){try{return Html5.TEST_VID.canPlayType(n)}catch{return""}},Html5.nativeSourceHandler.canHandleSource=function(n,e){if(n.type)return Html5.nativeSourceHandler.canPlayType(n.type);if(n.src){var o=getFileExtension(n.src);return Html5.nativeSourceHandler.canPlayType("video/"+o)}return""},Html5.nativeSourceHandler.handleSource=function(n,e,o){e.setSrc(n.src)},Html5.nativeSourceHandler.dispose=function(){},Html5.registerSourceHandler(Html5.nativeSourceHandler),Tech$2.registerTech("Html5",Html5);var TECH_EVENTS_RETRIGGER=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],TECH_EVENTS_QUEUE={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},BREAKPOINT_ORDER=["tiny","xsmall","small","medium","large","xlarge","huge"],BREAKPOINT_CLASSES={};BREAKPOINT_ORDER.forEach(function(n){var e=n.charAt(0)==="x"?"x-"+n.substring(1):n;BREAKPOINT_CLASSES[n]="vjs-layout-"+e});var DEFAULT_BREAKPOINTS={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Player$1=function(n){_inheritsLoose(e,n);function e(l,t,u){var h;if(l.id=l.id||t.id||"vjs_video_"+newGUID(),t=assign(e.getTagSettings(l),t),t.initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language)if(typeof l.closest=="function"){var v=l.closest("[lang]");v&&v.getAttribute&&(t.language=v.getAttribute("lang"))}else for(var w=l;w&&w.nodeType===1;){if(getAttributes(w).hasOwnProperty("lang")){t.language=w.getAttribute("lang");break}w=w.parentNode}if(h=n.call(this,null,t,u)||this,h.boundDocumentFullscreenChange_=function(M){return h.documentFullscreenChange_(M)},h.boundFullWindowOnEscKey_=function(M){return h.fullWindowOnEscKey(M)},h.boundUpdateStyleEl_=function(M){return h.updateStyleEl_(M)},h.boundApplyInitTime_=function(M){return h.applyInitTime_(M)},h.boundUpdateCurrentBreakpoint_=function(M){return h.updateCurrentBreakpoint_(M)},h.boundHandleTechClick_=function(M){return h.handleTechClick_(M)},h.boundHandleTechDoubleClick_=function(M){return h.handleTechDoubleClick_(M)},h.boundHandleTechTouchStart_=function(M){return h.handleTechTouchStart_(M)},h.boundHandleTechTouchMove_=function(M){return h.handleTechTouchMove_(M)},h.boundHandleTechTouchEnd_=function(M){return h.handleTechTouchEnd_(M)},h.boundHandleTechTap_=function(M){return h.handleTechTap_(M)},h.isFullscreen_=!1,h.log=createLogger(h.id_),h.fsApi_=FullscreenApi,h.isPosterFromTech_=!1,h.queuedCallbacks_=[],h.isReady_=!1,h.hasStarted_=!1,h.userActive_=!1,h.debugEnabled_=!1,h.audioOnlyMode_=!1,h.audioPosterMode_=!1,h.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!h.options_||!h.options_.techOrder||!h.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(h.tag=l,h.tagAttributes=l&&getAttributes(l),h.language(h.options_.language),t.languages){var A={};Object.getOwnPropertyNames(t.languages).forEach(function(M){A[M.toLowerCase()]=t.languages[M]}),h.languages_=A}else h.languages_=e.prototype.options_.languages;h.resetCache_(),h.poster_=t.poster||"",h.controls_=!!t.controls,l.controls=!1,l.removeAttribute("controls"),h.changingSrc_=!1,h.playCallbacks_=[],h.playTerminatedQueue_=[],l.hasAttribute("autoplay")?h.autoplay(!0):h.autoplay(h.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(function(M){if(typeof h[M]!="function")throw new Error('plugin "'+M+'" does not exist')}),h.scrubbing_=!1,h.el_=h.createEl(),evented(_assertThisInitialized$1(h),{eventBusKey:"el_"}),h.fsApi_.requestFullscreen&&(on(document$2,h.fsApi_.fullscreenchange,h.boundDocumentFullscreenChange_),h.on(h.fsApi_.fullscreenchange,h.boundDocumentFullscreenChange_)),h.fluid_&&h.on(["playerreset","resize"],h.boundUpdateStyleEl_);var E=mergeOptions$3(h.options_);t.plugins&&Object.keys(t.plugins).forEach(function(M){h[M](t.plugins[M])}),t.debug&&h.debug(!0),h.options_.playerOptions=E,h.middleware_=[],h.playbackRates(t.playbackRates),h.initChildren(),h.isAudio(l.nodeName.toLowerCase()==="audio"),h.controls()?h.addClass("vjs-controls-enabled"):h.addClass("vjs-controls-disabled"),h.el_.setAttribute("role","region"),h.isAudio()?h.el_.setAttribute("aria-label",h.localize("Audio Player")):h.el_.setAttribute("aria-label",h.localize("Video Player")),h.isAudio()&&h.addClass("vjs-audio"),h.flexNotSupported_()&&h.addClass("vjs-no-flex"),TOUCH_ENABLED&&h.addClass("vjs-touch-enabled"),IS_IOS||h.addClass("vjs-workinghover"),e.players[h.id_]=_assertThisInitialized$1(h);var C=version$5.split(".")[0];return h.addClass("vjs-v"+C),h.userActive(!0),h.reportUserActivity(),h.one("play",function(M){return h.listenForUserActivity_(M)}),h.on("stageclick",function(M){return h.handleStageClick_(M)}),h.on("keydown",function(M){return h.handleKeyDown(M)}),h.on("languagechange",function(M){return h.handleLanguagechange(M)}),h.breakpoints(h.options_.breakpoints),h.responsive(h.options_.responsive),h.on("ready",function(){h.audioPosterMode(h.options_.audioPosterMode),h.audioOnlyMode(h.options_.audioOnlyMode)}),h}var o=e.prototype;return o.dispose=function(){var t=this;this.trigger("dispose"),this.off("dispose"),off(document$2,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),off(document$2,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),clearCacheForPlayer(this),ALL.names.forEach(function(u){var h=ALL[u],v=t[h.getterName]();v&&v.off&&v.off()}),n.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},o.createEl=function(){var t=this.tag,u,h=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),v=this.tag.tagName.toLowerCase()==="video-js";h?u=this.el_=t.parentNode:v||(u=this.el_=n.prototype.createEl.call(this,"div"));var w=getAttributes(t);if(v){for(u=this.el_=t,t=this.tag=document$2.createElement("video");u.children.length;)t.appendChild(u.firstChild);hasClass(u,"video-js")||addClass(u,"video-js"),u.appendChild(t),h=this.playerElIngest_=u,Object.keys(u).forEach(function(I){try{t[I]=u[I]}catch{}})}if(t.setAttribute("tabindex","-1"),w.tabindex="-1",(IE_VERSION||IS_CHROME&&IS_WINDOWS)&&(t.setAttribute("role","application"),w.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in w&&delete w.width,"height"in w&&delete w.height,Object.getOwnPropertyNames(w).forEach(function(I){v&&I==="class"||u.setAttribute(I,w[I]),v&&t.setAttribute(I,w[I])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=u.player=this,this.addClass("vjs-paused"),window$1$1.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=createStyleElement("vjs-styles-dimensions");var A=$(".vjs-styles-defaults"),E=$("head");E.insertBefore(this.styleEl_,A?A.nextSibling:E.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var C=t.getElementsByTagName("a"),M=0;M<C.length;M++){var P=C.item(M);addClass(P,"vjs-hidden"),P.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!h&&t.parentNode.insertBefore(u,t),prependTo(t,u),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=u,u},o.crossOrigin=function(t){if(!t)return this.techGet_("crossOrigin");if(t!=="anonymous"&&t!=="use-credentials"){log$1.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+t+'"');return}this.techCall_("setCrossOrigin",t)},o.width=function(t){return this.dimension("width",t)},o.height=function(t){return this.dimension("height",t)},o.dimension=function(t,u){var h=t+"_";if(u===void 0)return this[h]||0;if(u===""||u==="auto"){this[h]=void 0,this.updateStyleEl_();return}var v=parseFloat(u);if(isNaN(v)){log$1.error('Improper value "'+u+'" supplied for for '+t);return}this[h]=v,this.updateStyleEl_()},o.fluid=function(t){var u=this;if(t===void 0)return!!this.fluid_;this.fluid_=!!t,isEvented(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),addEventedCallback(this,function(){u.on(["playerreset","resize"],u.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()},o.fill=function(t){if(t===void 0)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},o.aspectRatio=function(t){if(t===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},o.updateStyleEl_=function(){if(window$1$1.VIDEOJS_NO_DYNAMIC_STYLE===!0){var t=typeof this.width_=="number"?this.width_:this.options_.width,u=typeof this.height_=="number"?this.height_:this.options_.height,h=this.tech_&&this.tech_.el();h&&(t>=0&&(h.width=t),u>=0&&(h.height=u));return}var v,w,A,E;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?A=this.aspectRatio_:this.videoWidth()>0?A=this.videoWidth()+":"+this.videoHeight():A="16:9";var C=A.split(":"),M=C[1]/C[0];this.width_!==void 0?v=this.width_:this.height_!==void 0?v=this.height_/M:v=this.videoWidth()||300,this.height_!==void 0?w=this.height_:w=v*M,/^[^a-zA-Z]/.test(this.id())?E="dimensions-"+this.id():E=this.id()+"-dimensions",this.addClass(E),setTextContent(this.styleEl_,`
      .`+E+` {
        width: `+v+`px;
        height: `+w+`px;
      }

      .`+E+`.vjs-fluid:not(.vjs-audio-only-mode) {
        padding-top: `+M*100+`%;
      }
    `)},o.loadTech_=function(t,u){var h=this;this.tech_&&this.unloadTech_();var v=toTitleCase$1(t),w=t.charAt(0).toLowerCase()+t.slice(1);v!=="Html5"&&this.tag&&(Tech$2.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=v,this.isReady_=!1;var A=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(A=!1);var E={source:u,autoplay:A,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+w+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};ALL.names.forEach(function(M){var P=ALL[M];E[P.getterName]=h[P.privateName]}),assign(E,this.options_[v]),assign(E,this.options_[w]),assign(E,this.options_[t.toLowerCase()]),this.tag&&(E.tag=this.tag),u&&u.src===this.cache_.src&&this.cache_.currentTime>0&&(E.startTime=this.cache_.currentTime);var C=Tech$2.getTech(t);if(!C)throw new Error("No Tech named '"+v+"' exists! '"+v+"' should be registered using videojs.registerTech()'");this.tech_=new C(E),this.tech_.ready(bind$2(this,this.handleTechReady_),!0),textTrackConverter.jsonToTextTracks(this.textTracksJson_||[],this.tech_),TECH_EVENTS_RETRIGGER.forEach(function(M){h.on(h.tech_,M,function(P){return h["handleTech"+toTitleCase$1(M)+"_"](P)})}),Object.keys(TECH_EVENTS_QUEUE).forEach(function(M){h.on(h.tech_,M,function(P){if(h.tech_.playbackRate()===0&&h.tech_.seeking()){h.queuedCallbacks_.push({callback:h["handleTech"+TECH_EVENTS_QUEUE[M]+"_"].bind(h),event:P});return}h["handleTech"+TECH_EVENTS_QUEUE[M]+"_"](P)})}),this.on(this.tech_,"loadstart",function(M){return h.handleTechLoadStart_(M)}),this.on(this.tech_,"sourceset",function(M){return h.handleTechSourceset_(M)}),this.on(this.tech_,"waiting",function(M){return h.handleTechWaiting_(M)}),this.on(this.tech_,"ended",function(M){return h.handleTechEnded_(M)}),this.on(this.tech_,"seeking",function(M){return h.handleTechSeeking_(M)}),this.on(this.tech_,"play",function(M){return h.handleTechPlay_(M)}),this.on(this.tech_,"firstplay",function(M){return h.handleTechFirstPlay_(M)}),this.on(this.tech_,"pause",function(M){return h.handleTechPause_(M)}),this.on(this.tech_,"durationchange",function(M){return h.handleTechDurationChange_(M)}),this.on(this.tech_,"fullscreenchange",function(M,P){return h.handleTechFullscreenChange_(M,P)}),this.on(this.tech_,"fullscreenerror",function(M,P){return h.handleTechFullscreenError_(M,P)}),this.on(this.tech_,"enterpictureinpicture",function(M){return h.handleTechEnterPictureInPicture_(M)}),this.on(this.tech_,"leavepictureinpicture",function(M){return h.handleTechLeavePictureInPicture_(M)}),this.on(this.tech_,"error",function(M){return h.handleTechError_(M)}),this.on(this.tech_,"posterchange",function(M){return h.handleTechPosterChange_(M)}),this.on(this.tech_,"textdata",function(M){return h.handleTechTextData_(M)}),this.on(this.tech_,"ratechange",function(M){return h.handleTechRateChange_(M)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(v!=="Html5"||!this.tag)&&prependTo(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},o.unloadTech_=function(){var t=this;ALL.names.forEach(function(u){var h=ALL[u];t[h.privateName]=t[h.getterName]()}),this.textTracksJson_=textTrackConverter.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},o.tech=function(t){return t===void 0&&log$1.warn(`Using the tech directly can be dangerous. I hope you know what you're doing.
See https://github.com/videojs/video.js/issues/2617 for more info.
`),this.tech_},o.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},o.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},o.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},o.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())},o.manualAutoplay_=function(t){var u=this;if(!(!this.tech_||typeof t!="string")){var h=function(){var A=u.muted();u.muted(!0);var E=function(){u.muted(A)};u.playTerminatedQueue_.push(E);var C=u.play();if(isPromise(C))return C.catch(function(M){throw E(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(M||""))})},v;if(t==="any"&&!this.muted()?(v=this.play(),isPromise(v)&&(v=v.catch(h))):t==="muted"&&!this.muted()?v=h():v=this.play(),!!isPromise(v))return v.then(function(){u.trigger({type:"autoplay-success",autoplay:t})}).catch(function(){u.trigger({type:"autoplay-failure",autoplay:t})})}},o.updateSourceCaches_=function(t){t===void 0&&(t="");var u=t,h="";typeof u!="string"&&(u=t.src,h=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],u&&!h&&(h=findMimetype(this,u)),this.cache_.source=mergeOptions$3({},t,{src:u,type:h});for(var v=this.cache_.sources.filter(function(P){return P.src&&P.src===u}),w=[],A=this.$$("source"),E=[],C=0;C<A.length;C++){var M=getAttributes(A[C]);w.push(M),M.src&&M.src===u&&E.push(M.src)}E.length&&!v.length?this.cache_.sources=w:v.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=u},o.handleTechSourceset_=function(t){var u=this;if(!this.changingSrc_){var h=function(E){return u.updateSourceCaches_(E)},v=this.currentSource().src,w=t.src;v&&!/^blob:/.test(v)&&/^blob:/.test(w)&&(!this.lastSource_||this.lastSource_.tech!==w&&this.lastSource_.player!==v)&&(h=function(){}),h(w),t.src||this.tech_.any(["sourceset","loadstart"],function(A){if(A.type!=="sourceset"){var E=u.techGet("currentSrc");u.lastSource_.tech=E,u.updateSourceCaches_(E)}})}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},o.hasStarted=function(t){if(t===void 0)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},o.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},o.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(function(t){return t.callback(t.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},o.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var u=this.currentTime(),h=function v(){u!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",v))};this.on("timeupdate",h)},o.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},o.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},o.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},o.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},o.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},o.handleTechFirstPlay_=function(){this.options_.starttime&&(log$1.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},o.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},o.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},o.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},o.handleTechClick_=function(t){this.controls_&&(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.click===void 0||this.options_.userActions.click!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.click=="function"?this.options_.userActions.click.call(this,t):this.paused()?silencePromise(this.play()):this.pause())},o.handleTechDoubleClick_=function(t){if(this.controls_){var u=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(h){return h.contains(t.target)});u||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.doubleClick===void 0||this.options_.userActions.doubleClick!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.doubleClick=="function"?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}},o.handleTechTap_=function(){this.userActive(!this.userActive())},o.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},o.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},o.handleTechTouchEnd_=function(t){t.cancelable&&t.preventDefault()},o.handleStageClick_=function(){this.reportUserActivity()},o.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},o.documentFullscreenChange_=function(t){var u=t.target.player;if(!(u&&u!==this)){var h=this.el(),v=document$2[this.fsApi_.fullscreenElement]===h;!v&&h.matches?v=h.matches(":"+this.fsApi_.fullscreen):!v&&h.msMatchesSelector&&(v=h.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(v)}},o.handleTechFullscreenChange_=function(t,u){var h=this;u&&(u.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){h.removeClass("vjs-ios-native-fs")})),this.isFullscreen(u.isFullscreen))},o.handleTechFullscreenError_=function(t,u){this.trigger("fullscreenerror",u)},o.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},o.handleTechEnterPictureInPicture_=function(t){this.isInPictureInPicture(!0)},o.handleTechLeavePictureInPicture_=function(t){this.isInPictureInPicture(!1)},o.handleTechError_=function(){var t=this.tech_.error();this.error(t)},o.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},o.getCache=function(){return this.cache_},o.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},o.techCall_=function(t,u){this.ready(function(){if(t in allowedSetters)return set(this.middleware_,this.tech_,t,u);if(t in allowedMediators)return mediate(this.middleware_,this.tech_,t,u);try{this.tech_&&this.tech_[t](u)}catch(h){throw log$1(h),h}},!0)},o.techGet_=function(t){if(!(!this.tech_||!this.tech_.isReady_)){if(t in allowedGetters)return get(this.middleware_,this.tech_,t);if(t in allowedMediators)return mediate(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(u){throw this.tech_[t]===void 0?(log$1("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",u),u):u.name==="TypeError"?(log$1("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",u),this.tech_.isReady_=!1,u):(log$1(u),u)}}},o.play=function(){var t=this,u=this.options_.Promise||window$1$1.Promise;return u?new u(function(h){t.play_(h)}):this.play_()},o.play_=function(t){var u=this;t===void 0&&(t=silencePromise),this.playCallbacks_.push(t);var h=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),v=!!(IS_ANY_SAFARI||IS_IOS);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!h){this.waitToPlay_=function(E){u.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!h&&v&&this.load();return}var w=this.techGet_("play"),A=v&&this.hasClass("vjs-ended");A&&this.resetProgressBar_(),w===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(w)},o.runPlayTerminatedQueue_=function(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach(function(u){u()})},o.runPlayCallbacks_=function(t){var u=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],u.forEach(function(h){h(t)})},o.pause=function(){this.techCall_("pause")},o.paused=function(){return this.techGet_("paused")!==!1},o.played=function(){return this.techGet_("played")||createTimeRanges(0,0)},o.scrubbing=function(t){if(typeof t>"u")return this.scrubbing_;this.scrubbing_=!!t,this.techCall_("setScrubbing",this.scrubbing_),t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},o.currentTime=function(t){if(typeof t<"u"){if(t<0&&(t=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=t,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",t),this.cache_.initTime=0;return}return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime},o.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},o.duration=function(t){if(t===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;t=parseFloat(t),t<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||this.trigger("durationchange"))},o.remainingTime=function(){return this.duration()-this.currentTime()},o.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},o.buffered=function(){var t=this.techGet_("buffered");return(!t||!t.length)&&(t=createTimeRanges(0,0)),t},o.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration())},o.bufferedEnd=function(){var t=this.buffered(),u=this.duration(),h=t.end(t.length-1);return h>u&&(h=u),h},o.volume=function(t){var u;if(t!==void 0){u=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=u,this.techCall_("setVolume",u),u>0&&this.lastVolume_(u);return}return u=parseFloat(this.techGet_("volume")),isNaN(u)?1:u},o.muted=function(t){if(t!==void 0){this.techCall_("setMuted",t);return}return this.techGet_("muted")||!1},o.defaultMuted=function(t){return t!==void 0?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},o.lastVolume_=function(t){if(t!==void 0&&t!==0){this.cache_.lastVolume=t;return}return this.cache_.lastVolume},o.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},o.isFullscreen=function(t){if(t!==void 0){var u=this.isFullscreen_;this.isFullscreen_=!!t,this.isFullscreen_!==u&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_},o.requestFullscreen=function(t){var u=this.options_.Promise||window$1$1.Promise;if(u){var h=this;return new u(function(v,w){function A(){h.off("fullscreenerror",C),h.off("fullscreenchange",E)}function E(){A(),v()}function C(P,I){A(),w(I)}h.one("fullscreenchange",E),h.one("fullscreenerror",C);var M=h.requestFullscreenHelper_(t);M&&(M.then(A,A),M.then(v,w))})}return this.requestFullscreenHelper_()},o.requestFullscreenHelper_=function(t){var u=this,h;if(this.fsApi_.prefixed||(h=this.options_.fullscreen&&this.options_.fullscreen.options||{},t!==void 0&&(h=t)),this.fsApi_.requestFullscreen){var v=this.el_[this.fsApi_.requestFullscreen](h);return v&&v.then(function(){return u.isFullscreen(!0)},function(){return u.isFullscreen(!1)}),v}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},o.exitFullscreen=function(){var t=this.options_.Promise||window$1$1.Promise;if(t){var u=this;return new t(function(h,v){function w(){u.off("fullscreenerror",E),u.off("fullscreenchange",A)}function A(){w(),h()}function E(M,P){w(),v(P)}u.one("fullscreenchange",A),u.one("fullscreenerror",E);var C=u.exitFullscreenHelper_();C&&(C.then(w,w),C.then(h,v))})}return this.exitFullscreenHelper_()},o.exitFullscreenHelper_=function(){var t=this;if(this.fsApi_.requestFullscreen){var u=document$2[this.fsApi_.exitFullscreen]();return u&&silencePromise(u.then(function(){return t.isFullscreen(!1)})),u}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},o.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=document$2.documentElement.style.overflow,on(document$2,"keydown",this.boundFullWindowOnEscKey_),document$2.documentElement.style.overflow="hidden",addClass(document$2.body,"vjs-full-window"),this.trigger("enterFullWindow")},o.fullWindowOnEscKey=function(t){keycode.isEventKey(t,"Esc")&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},o.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,off(document$2,"keydown",this.boundFullWindowOnEscKey_),document$2.documentElement.style.overflow=this.docOrigOverflow,removeClass(document$2.body,"vjs-full-window"),this.trigger("exitFullWindow")},o.disablePictureInPicture=function(t){if(t===void 0)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",t),this.options_.disablePictureInPicture=t,this.trigger("disablepictureinpicturechanged")},o.isInPictureInPicture=function(t){if(t!==void 0){this.isInPictureInPicture_=!!t,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_},o.requestPictureInPicture=function(){if("pictureInPictureEnabled"in document$2&&this.disablePictureInPicture()===!1)return this.techGet_("requestPictureInPicture")},o.exitPictureInPicture=function(){if("pictureInPictureEnabled"in document$2)return document$2.exitPictureInPicture()},o.handleKeyDown=function(t){var u=this.options_.userActions;if(!(!u||!u.hotkeys)){var h=function(w){var A=w.tagName.toLowerCase();if(w.isContentEditable)return!0;var E=["button","checkbox","hidden","radio","reset","submit"];if(A==="input")return E.indexOf(w.type)===-1;var C=["textarea"];return C.indexOf(A)!==-1};h(this.el_.ownerDocument.activeElement)||(typeof u.hotkeys=="function"?u.hotkeys.call(this,t):this.handleHotkeys(t))}},o.handleHotkeys=function(t){var u=this.options_.userActions?this.options_.userActions.hotkeys:{},h=u.fullscreenKey,v=h===void 0?function(j){return keycode.isEventKey(j,"f")}:h,w=u.muteKey,A=w===void 0?function(j){return keycode.isEventKey(j,"m")}:w,E=u.playPauseKey,C=E===void 0?function(j){return keycode.isEventKey(j,"k")||keycode.isEventKey(j,"Space")}:E;if(v.call(this,t)){t.preventDefault(),t.stopPropagation();var M=Component$1.getComponent("FullscreenToggle");document$2[this.fsApi_.fullscreenEnabled]!==!1&&M.prototype.handleClick.call(this,t)}else if(A.call(this,t)){t.preventDefault(),t.stopPropagation();var P=Component$1.getComponent("MuteToggle");P.prototype.handleClick.call(this,t)}else if(C.call(this,t)){t.preventDefault(),t.stopPropagation();var I=Component$1.getComponent("PlayToggle");I.prototype.handleClick.call(this,t)}},o.canPlayType=function(t){for(var u,h=0,v=this.options_.techOrder;h<v.length;h++){var w=v[h],A=Tech$2.getTech(w);if(A||(A=Component$1.getComponent(w)),!A){log$1.error('The "'+w+'" tech is undefined. Skipped browser support check for that tech.');continue}if(A.isSupported()&&(u=A.canPlayType(t),u))return u}return""},o.selectSource=function(t){var u=this,h=this.options_.techOrder.map(function(C){return[C,Tech$2.getTech(C)]}).filter(function(C){var M=C[0],P=C[1];return P?P.isSupported():(log$1.error('The "'+M+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),v=function(M,P,I){var j;return M.some(function(B){return P.some(function(F){if(j=I(B,F),j)return!0})}),j},w,A=function(M){return function(P,I){return M(I,P)}},E=function(M,P){var I=M[0],j=M[1];if(j.canPlaySource(P,u.options_[I.toLowerCase()]))return{source:P,tech:I}};return this.options_.sourceOrder?w=v(t,h,A(E)):w=v(h,t,E),w||!1},o.handleSrc_=function(t,u){var h=this;if(typeof t>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var v=filterSource(t);if(!v.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,u||(this.cache_.sources=v),this.updateSourceCaches_(v[0]),setSource(this,v[0],function(E,C){h.middleware_=C,u||(h.cache_.sources=v),h.updateSourceCaches_(E);var M=h.src_(E);if(M){if(v.length>1)return h.handleSrc_(v.slice(1));h.changingSrc_=!1,h.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),h.triggerReady();return}setTech(C,h.tech_)}),this.options_.retryOnError&&v.length>1){var w=function(){h.error(null),h.handleSrc_(v.slice(1),!0)},A=function(){h.off("error",w)};this.one("error",w),this.one("playing",A),this.resetRetryOnError_=function(){h.off("error",w),h.off("playing",A)}}},o.src=function(t){return this.handleSrc_(t,!1)},o.src_=function(t){var u=this,h=this.selectSource([t]);return h?titleCaseEquals(h.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(h.tech,h.source),this.tech_.ready(function(){u.changingSrc_=!1}),!1):!0},o.load=function(){this.techCall_("load")},o.reset=function(){var t=this,u=this.options_.Promise||window$1$1.Promise;if(this.paused()||!u)this.doReset_();else{var h=this.play();silencePromise(h.then(function(){return t.doReset_()}))}},o.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),isEvented(this)&&this.trigger("playerreset")},o.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},o.resetProgressBar_=function(){this.currentTime(0);var t=this.controlBar||{},u=t.durationDisplay,h=t.remainingTimeDisplay;u&&u.updateContent(),h&&h.updateContent()},o.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},o.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},o.currentSources=function(){var t=this.currentSource(),u=[];return Object.keys(t).length!==0&&u.push(t),this.cache_.sources||u},o.currentSource=function(){return this.cache_.source||{}},o.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},o.currentType=function(){return this.currentSource()&&this.currentSource().type||""},o.preload=function(t){if(t!==void 0){this.techCall_("setPreload",t),this.options_.preload=t;return}return this.techGet_("preload")},o.autoplay=function(t){if(t===void 0)return this.options_.autoplay||!1;var u;typeof t=="string"&&/(any|play|muted)/.test(t)||t===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=t,this.manualAutoplay_(typeof t=="string"?t:"play"),u=!1):t?this.options_.autoplay=!0:this.options_.autoplay=!1,u=typeof u>"u"?this.options_.autoplay:u,this.tech_&&this.techCall_("setAutoplay",u)},o.playsinline=function(t){return t!==void 0?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},o.loop=function(t){if(t!==void 0){this.techCall_("setLoop",t),this.options_.loop=t;return}return this.techGet_("loop")},o.poster=function(t){if(t===void 0)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},o.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},o.controls=function(t){if(t===void 0)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},o.usingNativeControls=function(t){if(t===void 0)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},o.error=function(t){var u=this;if(t===void 0)return this.error_||null;if(hooks("beforeerror").forEach(function(v){var w=v(u,t);if(!(isObject$1(w)&&!Array.isArray(w)||typeof w=="string"||typeof w=="number"||w===null)){u.log.error("please return a value that MediaError expects in beforeerror hooks");return}t=w}),this.options_.suppressNotSupportedError&&t&&t.code===4){var h=function(){this.error(t)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],h),this.one("loadstart",function(){this.off(["click","touchstart"],h)});return}if(t===null){this.error_=t,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new MediaError(t),this.addClass("vjs-error"),log$1.error("(CODE:"+this.error_.code+" "+MediaError.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),hooks("error").forEach(function(v){return v(u,u.error_)})},o.reportUserActivity=function(t){this.userActivity_=!0},o.userActive=function(t){if(t===void 0)return this.userActive_;if(t=!!t,t!==this.userActive_){if(this.userActive_=t,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(u){u.stopPropagation(),u.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},o.listenForUserActivity_=function(){var t,u,h,v=bind$2(this,this.reportUserActivity),w=function(I){(I.screenX!==u||I.screenY!==h)&&(u=I.screenX,h=I.screenY,v())},A=function(){v(),this.clearInterval(t),t=this.setInterval(v,250)},E=function(I){v(),this.clearInterval(t)};this.on("mousedown",A),this.on("mousemove",w),this.on("mouseup",E),this.on("mouseleave",E);var C=this.getChild("controlBar");C&&!IS_IOS&&!IS_ANDROID&&(C.on("mouseenter",function(P){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),C.on("mouseleave",function(P){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",v),this.on("keyup",v);var M;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(M);var P=this.options_.inactivityTimeout;P<=0||(M=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},P))}},250)},o.playbackRate=function(t){if(t!==void 0){this.techCall_("setPlaybackRate",t);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1},o.defaultPlaybackRate=function(t){return t!==void 0?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},o.isAudio=function(t){if(t!==void 0){this.isAudio_=!!t;return}return!!this.isAudio_},o.enableAudioOnlyUI_=function(){var t=this;this.addClass("vjs-audio-only-mode");var u=this.children(),h=this.getChild("ControlBar"),v=h&&h.currentHeight();u.forEach(function(w){w!==h&&w.el_&&!w.hasClass("vjs-hidden")&&(w.hide(),t.audioOnlyCache_.hiddenChildren.push(w))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(v),this.trigger("audioonlymodechange")},o.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(function(t){return t.show()}),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},o.audioOnlyMode=function(t){var u=this;if(typeof t!="boolean"||t===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=t;var h=this.options_.Promise||window$1$1.Promise;if(h){if(t){var v=[];return this.isInPictureInPicture()&&v.push(this.exitPictureInPicture()),this.isFullscreen()&&v.push(this.exitFullscreen()),this.audioPosterMode()&&v.push(this.audioPosterMode(!1)),h.all(v).then(function(){return u.enableAudioOnlyUI_()})}return h.resolve().then(function(){return u.disableAudioOnlyUI_()})}t?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},o.enablePosterModeUI_=function(){var t=this.tech_&&this.tech_;t.hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},o.disablePosterModeUI_=function(){var t=this.tech_&&this.tech_;t.show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},o.audioPosterMode=function(t){var u=this;if(typeof t!="boolean"||t===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=t;var h=this.options_.Promise||window$1$1.Promise;if(h){if(t){if(this.audioOnlyMode()){var v=this.audioOnlyMode(!1);return v.then(function(){u.enablePosterModeUI_()})}return h.resolve().then(function(){u.enablePosterModeUI_()})}return h.resolve().then(function(){u.disablePosterModeUI_()})}if(t){this.audioOnlyMode()&&this.audioOnlyMode(!1),this.enablePosterModeUI_();return}this.disablePosterModeUI_()},o.addTextTrack=function(t,u,h){if(this.tech_)return this.tech_.addTextTrack(t,u,h)},o.addRemoteTextTrack=function(t,u){if(this.tech_)return this.tech_.addRemoteTextTrack(t,u)},o.removeRemoteTextTrack=function(t){t===void 0&&(t={});var u=t,h=u.track;if(h||(h=t),this.tech_)return this.tech_.removeRemoteTextTrack(h)},o.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},o.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},o.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},o.language=function(t){if(t===void 0)return this.language_;this.language_!==String(t).toLowerCase()&&(this.language_=String(t).toLowerCase(),isEvented(this)&&this.trigger("languagechange"))},o.languages=function(){return mergeOptions$3(e.prototype.options_.languages,this.languages_)},o.toJSON=function(){var t=mergeOptions$3(this.options_),u=t.tracks;t.tracks=[];for(var h=0;h<u.length;h++){var v=u[h];v=mergeOptions$3(v),v.player=void 0,t.tracks[h]=v}return t},o.createModal=function(t,u){var h=this;u=u||{},u.content=t||"";var v=new ModalDialog(this,u);return this.addChild(v),v.on("dispose",function(){h.removeChild(v)}),v.open(),v},o.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),u=this.currentWidth(),h=0;h<BREAKPOINT_ORDER.length;h++){var v=BREAKPOINT_ORDER[h],w=this.breakpoints_[v];if(u<=w){if(t===v)return;t&&this.removeClass(BREAKPOINT_CLASSES[t]),this.addClass(BREAKPOINT_CLASSES[v]),this.breakpoint_=v;break}}},o.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},o.breakpoints=function(t){return t===void 0?assign(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=assign({},DEFAULT_BREAKPOINTS,t),this.updateCurrentBreakpoint_(),assign(this.breakpoints_))},o.responsive=function(t){if(t===void 0)return this.responsive_;t=!!t;var u=this.responsive_;if(t!==u)return this.responsive_=t,t?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t},o.currentBreakpoint=function(){return this.breakpoint_},o.currentBreakpointClass=function(){return BREAKPOINT_CLASSES[this.breakpoint_]||""},o.loadMedia=function(t,u){var h=this;if(!(!t||typeof t!="object")){this.reset(),this.cache_.media=mergeOptions$3(t);var v=this.cache_.media,w=v.artwork,A=v.poster,E=v.src,C=v.textTracks;!w&&A&&(this.cache_.media.artwork=[{src:A,type:getMimetype(A)}]),E&&this.src(E),A&&this.poster(A),Array.isArray(C)&&C.forEach(function(M){return h.addRemoteTextTrack(M,!1)}),this.ready(u)}},o.getMedia=function(){if(!this.cache_.media){var t=this.poster(),u=this.currentSources(),h=Array.prototype.map.call(this.remoteTextTracks(),function(w){return{kind:w.kind,label:w.label,language:w.language,src:w.src}}),v={src:u,textTracks:h};return t&&(v.poster=t,v.artwork=[{src:v.poster,type:getMimetype(v.poster)}]),v}return mergeOptions$3(this.cache_.media)},e.getTagSettings=function(t){var u={sources:[],tracks:[]},h=getAttributes(t),v=h["data-setup"];if(hasClass(t,"vjs-fill")&&(h.fill=!0),hasClass(t,"vjs-fluid")&&(h.fluid=!0),v!==null){var w=safeParseTuple(v||"{}"),A=w[0],E=w[1];A&&log$1.error(A),assign(h,E)}if(assign(u,h),t.hasChildNodes())for(var C=t.childNodes,M=0,P=C.length;M<P;M++){var I=C[M],j=I.nodeName.toLowerCase();j==="source"?u.sources.push(getAttributes(I)):j==="track"&&u.tracks.push(getAttributes(I))}return u},o.flexNotSupported_=function(){var t=document$2.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},o.debug=function(t){if(t===void 0)return this.debugEnabled_;t?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},o.playbackRates=function(t){if(t===void 0)return this.cache_.playbackRates;Array.isArray(t)&&t.every(function(u){return typeof u=="number"})&&(this.cache_.playbackRates=t,this.trigger("playbackrateschange"))},e}(Component$1);ALL.names.forEach(function(n){var e=ALL[n];Player$1.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),Player$1.prototype.crossorigin=Player$1.prototype.crossOrigin,Player$1.players={};var navigator$1=window$1$1.navigator;Player$1.prototype.options_={techOrder:Tech$2.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:navigator$1&&(navigator$1.languages&&navigator$1.languages[0]||navigator$1.userLanguage||navigator$1.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(n){Player$1.prototype[n]=function(){return this.techGet_(n)}}),TECH_EVENTS_RETRIGGER.forEach(function(n){Player$1.prototype["handleTech"+toTitleCase$1(n)+"_"]=function(){return this.trigger(n)}}),Component$1.registerComponent("Player",Player$1);var BASE_PLUGIN_NAME="plugin",PLUGIN_CACHE_KEY="activePlugins_",pluginStorage={},pluginExists=function(e){return pluginStorage.hasOwnProperty(e)},getPlugin=function(e){return pluginExists(e)?pluginStorage[e]:void 0},markPluginAsActive=function(e,o){e[PLUGIN_CACHE_KEY]=e[PLUGIN_CACHE_KEY]||{},e[PLUGIN_CACHE_KEY][o]=!0},triggerSetupEvent=function(e,o,l){var t=(l?"before":"")+"pluginsetup";e.trigger(t,o),e.trigger(t+":"+o.name,o)},createBasicPlugin=function(e,o){var l=function(){triggerSetupEvent(this,{name:e,plugin:o,instance:null},!0);var u=o.apply(this,arguments);return markPluginAsActive(this,e),triggerSetupEvent(this,{name:e,plugin:o,instance:u}),u};return Object.keys(o).forEach(function(t){l[t]=o[t]}),l},createPluginFactory=function(e,o){return o.prototype.name=e,function(){triggerSetupEvent(this,{name:e,plugin:o,instance:null},!0);for(var l=arguments.length,t=new Array(l),u=0;u<l;u++)t[u]=arguments[u];var h=_construct$1(o,[this].concat(t));return this[e]=function(){return h},triggerSetupEvent(this,h.getEventHash()),h}},Plugin=function(){function n(o){if(this.constructor===n)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=o,this.log||(this.log=this.player.log.createLogger(this.name)),evented(this),delete this.trigger,stateful(this,this.constructor.defaultState),markPluginAsActive(o,this.name),this.dispose=this.dispose.bind(this),o.on("dispose",this.dispose)}var e=n.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(l){return l===void 0&&(l={}),l.name=this.name,l.plugin=this.constructor,l.instance=this,l},e.trigger=function(l,t){return t===void 0&&(t={}),trigger(this.eventBusEl_,l,this.getEventHash(t))},e.handleStateChanged=function(l){},e.dispose=function(){var l=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[PLUGIN_CACHE_KEY][l]=!1,this.player=this.state=null,t[l]=createPluginFactory(l,pluginStorage[l])},n.isBasic=function(l){var t=typeof l=="string"?getPlugin(l):l;return typeof t=="function"&&!n.prototype.isPrototypeOf(t.prototype)},n.registerPlugin=function(l,t){if(typeof l!="string")throw new Error('Illegal plugin name, "'+l+'", must be a string, was '+typeof l+".");if(pluginExists(l))log$1.warn('A plugin named "'+l+'" already exists. You may want to avoid re-registering plugins!');else if(Player$1.prototype.hasOwnProperty(l))throw new Error('Illegal plugin name, "'+l+'", cannot share a name with an existing player method!');if(typeof t!="function")throw new Error('Illegal plugin for "'+l+'", must be a function, was '+typeof t+".");return pluginStorage[l]=t,l!==BASE_PLUGIN_NAME&&(n.isBasic(t)?Player$1.prototype[l]=createBasicPlugin(l,t):Player$1.prototype[l]=createPluginFactory(l,t)),t},n.deregisterPlugin=function(l){if(l===BASE_PLUGIN_NAME)throw new Error("Cannot de-register base plugin.");pluginExists(l)&&(delete pluginStorage[l],delete Player$1.prototype[l])},n.getPlugins=function(l){l===void 0&&(l=Object.keys(pluginStorage));var t;return l.forEach(function(u){var h=getPlugin(u);h&&(t=t||{},t[u]=h)}),t},n.getPluginVersion=function(l){var t=getPlugin(l);return t&&t.VERSION||""},n}();Plugin.getPlugin=getPlugin,Plugin.BASE_PLUGIN_NAME=BASE_PLUGIN_NAME,Plugin.registerPlugin(BASE_PLUGIN_NAME,Plugin),Player$1.prototype.usingPlugin=function(n){return!!this[PLUGIN_CACHE_KEY]&&this[PLUGIN_CACHE_KEY][n]===!0},Player$1.prototype.hasPlugin=function(n){return!!pluginExists(n)};var hasLogged=!1,extend$2=function(e,o){o===void 0&&(o={}),hasLogged||(log$1.warn("videojs.extend is deprecated as of Video.js 7.22.0 and will be removed in Video.js 8.0.0"),hasLogged=!0);var l=function(){e.apply(this,arguments)},t={};typeof o=="object"?(o.constructor!==Object.prototype.constructor&&(l=o.constructor),t=o):typeof o=="function"&&(l=o),_inherits$1(l,e),e&&(l.super_=e);for(var u in t)t.hasOwnProperty(u)&&(l.prototype[u]=t[u]);return l},normalizeId=function(e){return e.indexOf("#")===0?e.slice(1):e};function videojs(n,e,o){var l=videojs.getPlayer(n);if(l)return e&&log$1.warn('Player "'+n+'" is already initialised. Options will not be applied.'),o&&l.ready(o),l;var t=typeof n=="string"?$("#"+normalizeId(n)):n;if(!isEl(t))throw new TypeError("The element or ID supplied is not valid. (videojs)");(!t.ownerDocument.defaultView||!t.ownerDocument.body.contains(t))&&log$1.warn("The element supplied is not included in the DOM"),e=e||{},e.restoreEl===!0&&(e.restoreEl=(t.parentNode&&t.parentNode.hasAttribute("data-vjs-player")?t.parentNode:t).cloneNode(!0)),hooks("beforesetup").forEach(function(h){var v=h(t,mergeOptions$3(e));if(!isObject$1(v)||Array.isArray(v)){log$1.error("please return an object in beforesetup hooks");return}e=mergeOptions$3(e,v)});var u=Component$1.getComponent("Player");return l=new u(t,e,o),hooks("setup").forEach(function(h){return h(l)}),l}if(videojs.hooks_=hooks_,videojs.hooks=hooks,videojs.hook=hook,videojs.hookOnce=hookOnce,videojs.removeHook=removeHook,window$1$1.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&isReal()){var style=$(".vjs-styles-defaults");if(!style){style=createStyleElement("vjs-styles-defaults");var head=$("head");head&&head.insertBefore(style,head.firstChild),setTextContent(style,`
      .video-js {
        width: 300px;
        height: 150px;
      }

      .vjs-fluid:not(.vjs-audio-only-mode) {
        padding-top: 56.25%
      }
    `)}}autoSetupTimeout(1,videojs),videojs.VERSION=version$5,videojs.options=Player$1.prototype.options_,videojs.getPlayers=function(){return Player$1.players},videojs.getPlayer=function(n){var e=Player$1.players,o;if(typeof n=="string"){var l=normalizeId(n),t=e[l];if(t)return t;o=$("#"+l)}else o=n;if(isEl(o)){var u=o,h=u.player,v=u.playerId;if(h||e[v])return h||e[v]}},videojs.getAllPlayers=function(){return Object.keys(Player$1.players).map(function(n){return Player$1.players[n]}).filter(Boolean)},videojs.players=Player$1.players,videojs.getComponent=Component$1.getComponent,videojs.registerComponent=function(n,e){Tech$2.isTech(e)&&log$1.warn("The "+n+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Component$1.registerComponent.call(Component$1,n,e)},videojs.getTech=Tech$2.getTech,videojs.registerTech=Tech$2.registerTech,videojs.use=use,Object.defineProperty(videojs,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(videojs.middleware,"TERMINATOR",{value:TERMINATOR,writeable:!1,enumerable:!0}),videojs.browser=browser$f,videojs.TOUCH_ENABLED=TOUCH_ENABLED,videojs.extend=extend$2,videojs.mergeOptions=mergeOptions$3,videojs.bind=bind$2,videojs.registerPlugin=Plugin.registerPlugin,videojs.deregisterPlugin=Plugin.deregisterPlugin,videojs.plugin=function(n,e){return log$1.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Plugin.registerPlugin(n,e)},videojs.getPlugins=Plugin.getPlugins,videojs.getPlugin=Plugin.getPlugin,videojs.getPluginVersion=Plugin.getPluginVersion,videojs.addLanguage=function(n,e){var o;return n=(""+n).toLowerCase(),videojs.options.languages=mergeOptions$3(videojs.options.languages,(o={},o[n]=e,o)),videojs.options.languages[n]},videojs.log=log$1,videojs.createLogger=createLogger,videojs.createTimeRange=videojs.createTimeRanges=createTimeRanges,videojs.formatTime=formatTime,videojs.setFormatTime=setFormatTime,videojs.resetFormatTime=resetFormatTime,videojs.parseUrl=parseUrl,videojs.isCrossOrigin=isCrossOrigin,videojs.EventTarget=EventTarget$2,videojs.on=on,videojs.one=one,videojs.off=off,videojs.trigger=trigger,videojs.xhr=XHR,videojs.TextTrack=TextTrack,videojs.AudioTrack=AudioTrack,videojs.VideoTrack=VideoTrack,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(n){videojs[n]=function(){return log$1.warn("videojs."+n+"() is deprecated; use videojs.dom."+n+"() instead"),Dom[n].apply(null,arguments)}}),videojs.computedStyle=computedStyle,videojs.dom=Dom,videojs.url=Url$1,videojs.defineLazyProperty=defineLazyProperty,videojs.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});/*! @name @videojs/http-streaming @version 2.16.3 @license Apache-2.0 */var resolveUrl=resolveUrl$1,resolveManifestRedirect=function(e,o,l){return e&&l&&l.responseURL&&o!==l.responseURL?l.responseURL:o},logger=function(e){return videojs.log.debug?videojs.log.debug.bind(videojs,"VHS:",e+" >"):function(){}},TIME_FUDGE_FACTOR=1/30,SAFE_TIME_DELTA=TIME_FUDGE_FACTOR*3,filterRanges=function(e,o){var l=[],t;if(e&&e.length)for(t=0;t<e.length;t++)o(e.start(t),e.end(t))&&l.push([e.start(t),e.end(t)]);return videojs.createTimeRanges(l)},findRange=function(e,o){return filterRanges(e,function(l,t){return l-SAFE_TIME_DELTA<=o&&t+SAFE_TIME_DELTA>=o})},findNextRange=function(e,o){return filterRanges(e,function(l){return l-TIME_FUDGE_FACTOR>=o})},findGaps=function(e){if(e.length<2)return videojs.createTimeRanges();for(var o=[],l=1;l<e.length;l++){var t=e.end(l-1),u=e.start(l);o.push([t,u])}return videojs.createTimeRanges(o)},bufferIntersection=function(e,o){var l=null,t=null,u=0,h=[],v=[];if(!e||!e.length||!o||!o.length)return videojs.createTimeRange();for(var w=e.length;w--;)h.push({time:e.start(w),type:"start"}),h.push({time:e.end(w),type:"end"});for(w=o.length;w--;)h.push({time:o.start(w),type:"start"}),h.push({time:o.end(w),type:"end"});for(h.sort(function(A,E){return A.time-E.time}),w=0;w<h.length;w++)h[w].type==="start"?(u++,u===2&&(l=h[w].time)):h[w].type==="end"&&(u--,u===1&&(t=h[w].time)),l!==null&&t!==null&&(v.push([l,t]),l=null,t=null);return videojs.createTimeRanges(v)},printableRange=function(e){var o=[];if(!e||!e.length)return"";for(var l=0;l<e.length;l++)o.push(e.start(l)+" => "+e.end(l));return o.join(", ")},timeUntilRebuffer=function(e,o,l){l===void 0&&(l=1);var t=e.length?e.end(e.length-1):0;return(t-o)/l},timeRangesToArray=function(e){for(var o=[],l=0;l<e.length;l++)o.push({start:e.start(l),end:e.end(l)});return o},isRangeDifferent=function(e,o){if(e===o)return!1;if(!e&&o||!o&&e||e.length!==o.length)return!0;for(var l=0;l<e.length;l++)if(e.start(l)!==o.start(l)||e.end(l)!==o.end(l))return!0;return!1},lastBufferedEnd=function(e){if(!(!e||!e.length||!e.end))return e.end(e.length-1)},timeAheadOf=function(e,o){var l=0;if(!e||!e.length)return l;for(var t=0;t<e.length;t++){var u=e.start(t),h=e.end(t);if(!(o>h)){if(o>u&&o<=h){l+=h-o;continue}l+=h-u}}return l},createTimeRange=videojs.createTimeRange,segmentDurationWithParts=function(e,o){if(!o.preload)return o.duration;var l=0;return(o.parts||[]).forEach(function(t){l+=t.duration}),(o.preloadHints||[]).forEach(function(t){t.type==="PART"&&(l+=e.partTargetDuration)}),l},getPartsAndSegments=function(e){return(e.segments||[]).reduce(function(o,l,t){return l.parts?l.parts.forEach(function(u,h){o.push({duration:u.duration,segmentIndex:t,partIndex:h,part:u,segment:l})}):o.push({duration:l.duration,segmentIndex:t,partIndex:null,segment:l,part:null}),o},[])},getLastParts=function(e){var o=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return o&&o.parts||[]},getKnownPartCount=function(e){var o=e.preloadSegment;if(o){var l=o.parts,t=o.preloadHints,u=(t||[]).reduce(function(h,v){return h+(v.type==="PART"?1:0)},0);return u+=l&&l.length?l.length:0,u}},liveEdgeDelay=function(e,o){if(o.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var l=getLastParts(o).length>0;return l&&o.serverControl&&o.serverControl.partHoldBack?o.serverControl.partHoldBack:l&&o.partTargetDuration?o.partTargetDuration*3:o.serverControl&&o.serverControl.holdBack?o.serverControl.holdBack:o.targetDuration?o.targetDuration*3:0},backwardDuration=function(e,o){var l=0,t=o-e.mediaSequence,u=e.segments[t];if(u){if(typeof u.start<"u")return{result:u.start,precise:!0};if(typeof u.end<"u")return{result:u.end-u.duration,precise:!0}}for(;t--;){if(u=e.segments[t],typeof u.end<"u")return{result:l+u.end,precise:!0};if(l+=segmentDurationWithParts(e,u),typeof u.start<"u")return{result:l+u.start,precise:!0}}return{result:l,precise:!1}},forwardDuration=function(e,o){for(var l=0,t,u=o-e.mediaSequence;u<e.segments.length;u++){if(t=e.segments[u],typeof t.start<"u")return{result:t.start-l,precise:!0};if(l+=segmentDurationWithParts(e,t),typeof t.end<"u")return{result:t.end-l,precise:!0}}return{result:-1,precise:!1}},intervalDuration=function(e,o,l){if(typeof o>"u"&&(o=e.mediaSequence+e.segments.length),o<e.mediaSequence)return 0;var t=backwardDuration(e,o);if(t.precise)return t.result;var u=forwardDuration(e,o);return u.precise?u.result:t.result+l},duration=function(e,o,l){if(!e)return 0;if(typeof l!="number"&&(l=0),typeof o>"u"){if(e.totalDuration)return e.totalDuration;if(!e.endList)return window$1$1.Infinity}return intervalDuration(e,o,l)},sumDurations=function(e){var o=e.defaultDuration,l=e.durationList,t=e.startIndex,u=e.endIndex,h=0;if(t>u){var v=[u,t];t=v[0],u=v[1]}if(t<0){for(var w=t;w<Math.min(0,u);w++)h+=o;t=0}for(var A=t;A<u;A++)h+=l[A].duration;return h},playlistEnd=function(e,o,l,t){if(!e||!e.segments)return null;if(e.endList)return duration(e);if(o===null)return null;o=o||0;var u=intervalDuration(e,e.mediaSequence+e.segments.length,o);return l&&(t=typeof t=="number"?t:liveEdgeDelay(null,e),u-=t),Math.max(0,u)},seekable=function(e,o,l){var t=!0,u=o||0,h=playlistEnd(e,o,t,l);return h===null?createTimeRange():createTimeRange(u,h)},getMediaInfoForTime=function(e){for(var o=e.playlist,l=e.currentTime,t=e.startingSegmentIndex,u=e.startingPartIndex,h=e.startTime,v=e.experimentalExactManifestTimings,w=l-h,A=getPartsAndSegments(o),E=0,C=0;C<A.length;C++){var M=A[C];if(t===M.segmentIndex&&!(typeof u=="number"&&typeof M.partIndex=="number"&&u!==M.partIndex)){E=C;break}}if(w<0){if(E>0)for(var P=E-1;P>=0;P--){var I=A[P];if(w+=I.duration,v){if(w<0)continue}else if(w+TIME_FUDGE_FACTOR<=0)continue;return{partIndex:I.partIndex,segmentIndex:I.segmentIndex,startTime:h-sumDurations({defaultDuration:o.targetDuration,durationList:A,startIndex:E,endIndex:P})}}return{partIndex:A[0]&&A[0].partIndex||null,segmentIndex:A[0]&&A[0].segmentIndex||0,startTime:l}}if(E<0){for(var j=E;j<0;j++)if(w-=o.targetDuration,w<0)return{partIndex:A[0]&&A[0].partIndex||null,segmentIndex:A[0]&&A[0].segmentIndex||0,startTime:l};E=0}for(var B=E;B<A.length;B++){var F=A[B];if(w-=F.duration,v){if(w>0)continue}else if(w-TIME_FUDGE_FACTOR>=0)continue;return{partIndex:F.partIndex,segmentIndex:F.segmentIndex,startTime:h+sumDurations({defaultDuration:o.targetDuration,durationList:A,startIndex:E,endIndex:B})}}return{segmentIndex:A[A.length-1].segmentIndex,partIndex:A[A.length-1].partIndex,startTime:l}},isBlacklisted=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},isIncompatible=function(e){return e.excludeUntil&&e.excludeUntil===1/0},isEnabled=function(e){var o=isBlacklisted(e);return!e.disabled&&!o},isDisabled=function(e){return e.disabled},isAes=function(e){for(var o=0;o<e.segments.length;o++)if(e.segments[o].key)return!0;return!1},hasAttribute=function(e,o){return o.attributes&&o.attributes[e]},estimateSegmentRequestTime=function(e,o,l,t){if(t===void 0&&(t=0),!hasAttribute("BANDWIDTH",l))return NaN;var u=e*l.attributes.BANDWIDTH;return(u-t*8)/o},isLowestEnabledRendition=function(e,o){if(e.playlists.length===1)return!0;var l=o.attributes.BANDWIDTH||Number.MAX_VALUE;return e.playlists.filter(function(t){return isEnabled(t)?(t.attributes.BANDWIDTH||0)<l:!1}).length===0},playlistMatch=function(e,o){return!e&&!o||!e&&o||e&&!o?!1:!!(e===o||e.id&&o.id&&e.id===o.id||e.resolvedUri&&o.resolvedUri&&e.resolvedUri===o.resolvedUri||e.uri&&o.uri&&e.uri===o.uri)},someAudioVariant=function(e,o){var l=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},t=!1;for(var u in l){for(var h in l[u])if(t=o(l[u][h]),t)break;if(t)break}return!!t},isAudioOnly=function(e){if(!e||!e.playlists||!e.playlists.length){var o=someAudioVariant(e,function(h){return h.playlists&&h.playlists.length||h.uri});return o}for(var l=function(v){var w=e.playlists[v],A=w.attributes&&w.attributes.CODECS;if(A&&A.split(",").every(function(C){return isAudioCodec(C)}))return"continue";var E=someAudioVariant(e,function(C){return playlistMatch(w,C)});return E?"continue":{v:!1}},t=0;t<e.playlists.length;t++){var u=l(t);if(u!=="continue"&&typeof u=="object")return u.v}return!0},Playlist={liveEdgeDelay,duration,seekable,getMediaInfoForTime,isEnabled,isDisabled,isBlacklisted,isIncompatible,playlistEnd,isAes,hasAttribute,estimateSegmentRequestTime,isLowestEnabledRendition,isAudioOnly,playlistMatch,segmentDurationWithParts},log=videojs.log,createPlaylistID=function(e,o){return e+"-"+o},groupID=function(e,o,l){return"placeholder-uri-"+e+"-"+o+"-"+l},parseManifest=function(e){var o=e.onwarn,l=e.oninfo,t=e.manifestString,u=e.customTagParsers,h=u===void 0?[]:u,v=e.customTagMappers,w=v===void 0?[]:v,A=e.experimentalLLHLS,E=new Parser;o&&E.on("warn",o),l&&E.on("info",l),h.forEach(function(j){return E.addParser(j)}),w.forEach(function(j){return E.addTagMapper(j)}),E.push(t),E.end();var C=E.manifest;if(A||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(j){C.hasOwnProperty(j)&&delete C[j]}),C.segments&&C.segments.forEach(function(j){["parts","preloadHints"].forEach(function(B){j.hasOwnProperty(B)&&delete j[B]})})),!C.targetDuration){var M=10;C.segments&&C.segments.length&&(M=C.segments.reduce(function(j,B){return Math.max(j,B.duration)},0)),o&&o("manifest has no targetDuration defaulting to "+M),C.targetDuration=M}var P=getLastParts(C);if(P.length&&!C.partTargetDuration){var I=P.reduce(function(j,B){return Math.max(j,B.duration)},0);o&&(o("manifest has no partTargetDuration defaulting to "+I),log.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),C.partTargetDuration=I}return C},forEachMediaGroup=function(e,o){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(l){if(e.mediaGroups[l])for(var t in e.mediaGroups[l])for(var u in e.mediaGroups[l][t]){var h=e.mediaGroups[l][t][u];o(h,l,t,u)}})},setupMediaPlaylist=function(e){var o=e.playlist,l=e.uri,t=e.id;o.id=t,o.playlistErrors_=0,l&&(o.uri=l),o.attributes=o.attributes||{}},setupMediaPlaylists=function(e){for(var o=e.playlists.length;o--;){var l=e.playlists[o];setupMediaPlaylist({playlist:l,id:createPlaylistID(o,l.uri)}),l.resolvedUri=resolveUrl(e.uri,l.uri),e.playlists[l.id]=l,e.playlists[l.uri]=l,l.attributes.BANDWIDTH||log.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},resolveMediaGroupUris=function(e){forEachMediaGroup(e,function(o){o.uri&&(o.resolvedUri=resolveUrl(e.uri,o.uri))})},masterForMedia=function(e,o){var l=createPlaylistID(0,o),t={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:window$1$1.location.href,resolvedUri:window$1$1.location.href,playlists:[{uri:o,id:l,resolvedUri:o,attributes:{}}]};return t.playlists[l]=t.playlists[0],t.playlists[o]=t.playlists[0],t},addPropertiesToMaster=function(e,o,l){l===void 0&&(l=groupID),e.uri=o;for(var t=0;t<e.playlists.length;t++)if(!e.playlists[t].uri){var u="placeholder-uri-"+t;e.playlists[t].uri=u}var h=isAudioOnly(e);forEachMediaGroup(e,function(v,w,A,E){if(!v.playlists||!v.playlists.length){if(h&&w==="AUDIO"&&!v.uri)for(var C=0;C<e.playlists.length;C++){var M=e.playlists[C];if(M.attributes&&M.attributes.AUDIO&&M.attributes.AUDIO===A)return}v.playlists=[_extends$2({},v)]}v.playlists.forEach(function(P,I){var j=l(w,A,E,P),B=createPlaylistID(I,j);P.uri?P.resolvedUri=P.resolvedUri||resolveUrl(e.uri,P.uri):(P.uri=I===0?j:B,P.resolvedUri=P.uri),P.id=P.id||B,P.attributes=P.attributes||{},e.playlists[P.id]=P,e.playlists[P.uri]=P})}),setupMediaPlaylists(e),resolveMediaGroupUris(e)},mergeOptions$2=videojs.mergeOptions,EventTarget$1=videojs.EventTarget,addLLHLSQueryDirectives=function(e,o){if(o.endList||!o.serverControl)return e;var l={};if(o.serverControl.canBlockReload){var t=o.preloadSegment,u=o.mediaSequence+o.segments.length;if(t){var h=t.parts||[],v=getKnownPartCount(o)-1;v>-1&&v!==h.length-1&&(l._HLS_part=v),(v>-1||h.length)&&u--}l._HLS_msn=u}if(o.serverControl&&o.serverControl.canSkipUntil&&(l._HLS_skip=o.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(l).length){var w=new window$1$1.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(A){l.hasOwnProperty(A)&&w.searchParams.set(A,l[A])}),e=w.toString()}return e},updateSegment=function(e,o){if(!e)return o;var l=mergeOptions$2(e,o);if(e.preloadHints&&!o.preloadHints&&delete l.preloadHints,e.parts&&!o.parts)delete l.parts;else if(e.parts&&o.parts)for(var t=0;t<o.parts.length;t++)e.parts&&e.parts[t]&&(l.parts[t]=mergeOptions$2(e.parts[t],o.parts[t]));return!e.skipped&&o.skipped&&(l.skipped=!1),e.preload&&!o.preload&&(l.preload=!1),l},updateSegments=function(e,o,l){var t=e.slice(),u=o.slice();l=l||0;for(var h=[],v,w=0;w<u.length;w++){var A=t[w+l],E=u[w];A?(v=A.map||v,h.push(updateSegment(A,E))):(v&&!E.map&&(E.map=v),h.push(E))}return h},resolveSegmentUris=function(e,o){!e.resolvedUri&&e.uri&&(e.resolvedUri=resolveUrl(o,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=resolveUrl(o,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=resolveUrl(o,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=resolveUrl(o,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(l){l.resolvedUri||(l.resolvedUri=resolveUrl(o,l.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(l){l.resolvedUri||(l.resolvedUri=resolveUrl(o,l.uri))})},getAllSegments=function(e){var o=e.segments||[],l=e.preloadSegment;if(l&&l.parts&&l.parts.length){if(l.preloadHints){for(var t=0;t<l.preloadHints.length;t++)if(l.preloadHints[t].type==="MAP")return o}l.duration=e.targetDuration,l.preload=!0,o.push(l)}return o},isPlaylistUnchanged=function(e,o){return e===o||e.segments&&o.segments&&e.segments.length===o.segments.length&&e.endList===o.endList&&e.mediaSequence===o.mediaSequence&&e.preloadSegment===o.preloadSegment},updateMaster$1=function(e,o,l){l===void 0&&(l=isPlaylistUnchanged);var t=mergeOptions$2(e,{}),u=t.playlists[o.id];if(!u||l(u,o))return null;o.segments=getAllSegments(o);var h=mergeOptions$2(u,o);if(h.preloadSegment&&!o.preloadSegment&&delete h.preloadSegment,u.segments){if(o.skip){o.segments=o.segments||[];for(var v=0;v<o.skip.skippedSegments;v++)o.segments.unshift({skipped:!0})}h.segments=updateSegments(u.segments,o.segments,o.mediaSequence-u.mediaSequence)}h.segments.forEach(function(A){resolveSegmentUris(A,h.resolvedUri)});for(var w=0;w<t.playlists.length;w++)t.playlists[w].id===o.id&&(t.playlists[w]=h);return t.playlists[o.id]=h,t.playlists[o.uri]=h,forEachMediaGroup(e,function(A,E,C,M){if(A.playlists)for(var P=0;P<A.playlists.length;P++)o.id===A.playlists[P].id&&(A.playlists[P]=h)}),t},refreshDelay=function(e,o){var l=e.segments||[],t=l[l.length-1],u=t&&t.parts&&t.parts[t.parts.length-1],h=u&&u.duration||t&&t.duration;return o&&h?h*1e3:(e.partTargetDuration||e.targetDuration||10)*500},PlaylistLoader=function(n){_inheritsLoose(e,n);function e(l,t,u){var h;if(u===void 0&&(u={}),h=n.call(this)||this,!l)throw new Error("A non-empty playlist URL or object is required");h.logger_=logger("PlaylistLoader");var v=u,w=v.withCredentials,A=w===void 0?!1:w,E=v.handleManifestRedirects,C=E===void 0?!1:E;h.src=l,h.vhs_=t,h.withCredentials=A,h.handleManifestRedirects=C;var M=t.options_;return h.customTagParsers=M&&M.customTagParsers||[],h.customTagMappers=M&&M.customTagMappers||[],h.experimentalLLHLS=M&&M.experimentalLLHLS||!1,videojs.browser.IE_VERSION&&(h.experimentalLLHLS=!1),h.state="HAVE_NOTHING",h.handleMediaupdatetimeout_=h.handleMediaupdatetimeout_.bind(_assertThisInitialized$1(h)),h.on("mediaupdatetimeout",h.handleMediaupdatetimeout_),h}var o=e.prototype;return o.handleMediaupdatetimeout_=function(){var t=this;if(this.state==="HAVE_METADATA"){var u=this.media(),h=resolveUrl(this.master.uri,u.uri);this.experimentalLLHLS&&(h=addLLHLSQueryDirectives(h,u)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:h,withCredentials:this.withCredentials},function(v,w){if(t.request){if(v)return t.playlistRequestError(t.request,t.media(),"HAVE_METADATA");t.haveMetadata({playlistString:t.request.responseText,url:t.media().uri,id:t.media().id})}})}},o.playlistRequestError=function(t,u,h){var v=u.uri,w=u.id;this.request=null,h&&(this.state=h),this.error={playlist:this.master.playlists[w],status:t.status,message:"HLS playlist request error at URL: "+v+".",responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")},o.parseManifest_=function(t){var u=this,h=t.url,v=t.manifestString;return parseManifest({onwarn:function(A){var E=A.message;return u.logger_("m3u8-parser warn for "+h+": "+E)},oninfo:function(A){var E=A.message;return u.logger_("m3u8-parser info for "+h+": "+E)},manifestString:v,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},o.haveMetadata=function(t){var u=t.playlistString,h=t.playlistObject,v=t.url,w=t.id;this.request=null,this.state="HAVE_METADATA";var A=h||this.parseManifest_({url:v,manifestString:u});A.lastRequest=Date.now(),setupMediaPlaylist({playlist:A,uri:v,id:w});var E=updateMaster$1(this.master,A);this.targetDuration=A.partTargetDuration||A.targetDuration,this.pendingMedia_=null,E?(this.master=E,this.media_=this.master.playlists[w]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(refreshDelay(this.media(),!!E)),this.trigger("loadedplaylist")},o.dispose=function(){this.trigger("dispose"),this.stopRequest(),window$1$1.clearTimeout(this.mediaUpdateTimeout),window$1$1.clearTimeout(this.finalRenditionTimeout),this.off()},o.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},o.media=function(t,u){var h=this;if(!t)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);if(typeof t=="string"){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}if(window$1$1.clearTimeout(this.finalRenditionTimeout),u){var v=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=window$1$1.setTimeout(this.media.bind(this,t,!1),v);return}var w=this.state,A=!this.media_||t.id!==this.media_.id,E=this.master.playlists[t.id];if(E&&E.endList||t.endList&&t.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,A&&(this.trigger("mediachanging"),w==="HAVE_MASTER"?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(refreshDelay(t,!0)),!!A){if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=t,this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},function(C,M){if(h.request){if(t.lastRequest=Date.now(),t.resolvedUri=resolveManifestRedirect(h.handleManifestRedirects,t.resolvedUri,M),C)return h.playlistRequestError(h.request,t,w);h.haveMetadata({playlistString:M.responseText,url:t.uri,id:t.id}),w==="HAVE_MASTER"?h.trigger("loadedmetadata"):h.trigger("mediachange")}})}},o.pause=function(){this.mediaUpdateTimeout&&(window$1$1.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),this.state==="HAVE_NOTHING"&&(this.started=!1),this.state==="SWITCHING_MEDIA"?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":this.state==="HAVE_CURRENT_METADATA"&&(this.state="HAVE_METADATA")},o.load=function(t){var u=this;this.mediaUpdateTimeout&&(window$1$1.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var h=this.media();if(t){var v=h?(h.partTargetDuration||h.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=window$1$1.setTimeout(function(){u.mediaUpdateTimeout=null,u.load()},v);return}if(!this.started){this.start();return}h&&!h.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")},o.updateMediaUpdateTimeout_=function(t){var u=this;this.mediaUpdateTimeout&&(window$1$1.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=window$1$1.setTimeout(function(){u.mediaUpdateTimeout=null,u.trigger("mediaupdatetimeout"),u.updateMediaUpdateTimeout_(t)},t))},o.start=function(){var t=this;if(this.started=!0,typeof this.src=="object"){this.src.uri||(this.src.uri=window$1$1.location.href),this.src.resolvedUri=this.src.uri,setTimeout(function(){t.setupInitialPlaylist(t.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(u,h){if(t.request){if(t.request=null,u)return t.error={status:h.status,message:"HLS playlist request error at URL: "+t.src+".",responseText:h.responseText,code:2},t.state==="HAVE_NOTHING"&&(t.started=!1),t.trigger("error");t.src=resolveManifestRedirect(t.handleManifestRedirects,t.src,h);var v=t.parseManifest_({manifestString:h.responseText,url:t.src});t.setupInitialPlaylist(v)}})},o.srcUri=function(){return typeof this.src=="string"?this.src:this.src.uri},o.setupInitialPlaylist=function(t){if(this.state="HAVE_MASTER",t.playlists){this.master=t,addPropertiesToMaster(this.master,this.srcUri()),t.playlists.forEach(function(h){h.segments=getAllSegments(h),h.segments.forEach(function(v){resolveSegmentUris(v,h.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.master.playlists[0]);return}var u=this.srcUri()||window$1$1.location.href;this.master=masterForMedia(t,u),this.haveMetadata({playlistObject:t,url:u,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},e}(EventTarget$1),videojsXHR=videojs.xhr,mergeOptions$1=videojs.mergeOptions,callbackWrapper=function(e,o,l,t){var u=e.responseType==="arraybuffer"?e.response:e.responseText;!o&&u&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=u.byteLength||u.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),l.headers&&(e.responseHeaders=l.headers),o&&o.code==="ETIMEDOUT"&&(e.timedout=!0),!o&&!e.aborted&&l.statusCode!==200&&l.statusCode!==206&&l.statusCode!==0&&(o=new Error("XHR Failed with a response of: "+(e&&(u||e.responseText)))),t(o,e)},xhrFactory=function(){var e=function o(l,t){l=mergeOptions$1({timeout:45e3},l);var u=o.beforeRequest||videojs.Vhs.xhr.beforeRequest;if(u&&typeof u=="function"){var h=u(l);h&&(l=h)}var v=videojs.Vhs.xhr.original===!0?videojsXHR:videojs.Vhs.xhr,w=v(l,function(E,C){return callbackWrapper(w,E,C,t)}),A=w.abort;return w.abort=function(){return w.aborted=!0,A.apply(w,arguments)},w.uri=l.uri,w.requestTime=Date.now(),w};return e.original=!0,e},byterangeStr=function(e){var o,l=e.offset;return typeof e.offset=="bigint"||typeof e.length=="bigint"?o=window$1$1.BigInt(e.offset)+window$1$1.BigInt(e.length)-window$1$1.BigInt(1):o=e.offset+e.length-1,"bytes="+l+"-"+o},segmentXhrHeaders=function(e){var o={};return e.byterange&&(o.Range=byterangeStr(e.byterange)),o},textRange=function(e,o){return e.start(o)+"-"+e.end(o)},formatHexString=function(e,o){var l=e.toString(16);return"00".substring(0,2-l.length)+l+(o%2?" ":"")},formatAsciiString=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},createTransferableMessage=function(e){var o={};return Object.keys(e).forEach(function(l){var t=e[l];isArrayBufferView(t)?o[l]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:o[l]=t}),o},initSegmentId=function(e){var o=e.byterange||{length:1/0,offset:0};return[o.length,o.offset,e.resolvedUri].join(",")},segmentKeyId=function(e){return e.resolvedUri},hexDump=function(e){for(var o=Array.prototype.slice.call(e),l=16,t="",u,h,v=0;v<o.length/l;v++)u=o.slice(v*l,v*l+l).map(formatHexString).join(""),h=o.slice(v*l,v*l+l).map(formatAsciiString).join(""),t+=u+" "+h+`
`;return t},tagDump=function(e){var o=e.bytes;return hexDump(o)},textRanges=function(e){var o="",l;for(l=0;l<e.length;l++)o+=textRange(e,l)+" ";return o},utils$r=Object.freeze({__proto__:null,createTransferableMessage,initSegmentId,segmentKeyId,hexDump,tagDump,textRanges}),SEGMENT_END_FUDGE_PERCENT=.25,playerTimeToProgramTime=function(e,o){if(!o.dateTimeObject)return null;var l=o.videoTimingInfo.transmuxerPrependedSeconds,t=o.videoTimingInfo.transmuxedPresentationStart,u=t+l,h=e-u;return new Date(o.dateTimeObject.getTime()+h*1e3)},originalSegmentVideoDuration=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},findSegmentForProgramTime=function(e,o){var l;try{l=new Date(e)}catch{return null}if(!o||!o.segments||o.segments.length===0)return null;var t=o.segments[0];if(l<t.dateTimeObject)return null;for(var u=0;u<o.segments.length-1;u++){t=o.segments[u];var h=o.segments[u+1].dateTimeObject;if(l<h)break}var v=o.segments[o.segments.length-1],w=v.dateTimeObject,A=v.videoTimingInfo?originalSegmentVideoDuration(v.videoTimingInfo):v.duration+v.duration*SEGMENT_END_FUDGE_PERCENT,E=new Date(w.getTime()+A*1e3);return l>E?null:(l>w&&(t=v),{segment:t,estimatedStart:t.videoTimingInfo?t.videoTimingInfo.transmuxedPresentationStart:Playlist.duration(o,o.mediaSequence+o.segments.indexOf(t)),type:t.videoTimingInfo?"accurate":"estimate"})},findSegmentForPlayerTime=function(e,o){if(!o||!o.segments||o.segments.length===0)return null;for(var l=0,t,u=0;u<o.segments.length&&(t=o.segments[u],l=t.videoTimingInfo?t.videoTimingInfo.transmuxedPresentationEnd:l+t.duration,!(e<=l));u++);var h=o.segments[o.segments.length-1];if(h.videoTimingInfo&&h.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>l){if(e>l+h.duration*SEGMENT_END_FUDGE_PERCENT)return null;t=h}return{segment:t,estimatedStart:t.videoTimingInfo?t.videoTimingInfo.transmuxedPresentationStart:l-t.duration,type:t.videoTimingInfo?"accurate":"estimate"}},getOffsetFromTimestamp=function(e,o){var l,t;try{l=new Date(e),t=new Date(o)}catch{}var u=l.getTime(),h=t.getTime();return(h-u)/1e3},verifyProgramDateTimeTags=function(e){if(!e.segments||e.segments.length===0)return!1;for(var o=0;o<e.segments.length;o++){var l=e.segments[o];if(!l.dateTimeObject)return!1}return!0},getProgramTime=function(e){var o=e.playlist,l=e.time,t=l===void 0?void 0:l,u=e.callback;if(!u)throw new Error("getProgramTime: callback must be provided");if(!o||t===void 0)return u({message:"getProgramTime: playlist and time must be provided"});var h=findSegmentForPlayerTime(t,o);if(!h)return u({message:"valid programTime was not found"});if(h.type==="estimate")return u({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:h.estimatedStart});var v={mediaSeconds:t},w=playerTimeToProgramTime(t,h.segment);return w&&(v.programDateTime=w.toISOString()),u(null,v)},seekToProgramTime=function n(e){var o=e.programTime,l=e.playlist,t=e.retryCount,u=t===void 0?2:t,h=e.seekTo,v=e.pauseAfterSeek,w=v===void 0?!0:v,A=e.tech,E=e.callback;if(!E)throw new Error("seekToProgramTime: callback must be provided");if(typeof o>"u"||!l||!h)return E({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!l.endList&&!A.hasStarted_)return E({message:"player must be playing a live stream to start buffering"});if(!verifyProgramDateTimeTags(l))return E({message:"programDateTime tags must be provided in the manifest "+l.resolvedUri});var C=findSegmentForProgramTime(o,l);if(!C)return E({message:o+" was not found in the stream"});var M=C.segment,P=getOffsetFromTimestamp(M.dateTimeObject,o);if(C.type==="estimate"){if(u===0)return E({message:o+" is not buffered yet. Try again"});h(C.estimatedStart+P),A.one("seeked",function(){n({programTime:o,playlist:l,retryCount:u-1,seekTo:h,pauseAfterSeek:w,tech:A,callback:E})});return}var I=M.start+P,j=function(){return E(null,A.currentTime())};A.one("seeked",j),w&&A.pause(),h(I)},callbackOnCompleted=function(e,o){if(e.readyState===4)return o()},containerRequest=function(e,o,l){var t=[],u,h=!1,v=function(M,P,I,j){return P.abort(),h=!0,l(M,P,I,j)},w=function(M,P){if(!h){if(M)return v(M,P,"",t);var I=P.responseText.substring(t&&t.byteLength||0,P.responseText.length);if(t=concatTypedArrays(t,stringToBytes(I,!0)),u=u||getId3Offset(t),t.length<10||u&&t.length<u+2)return callbackOnCompleted(P,function(){return v(M,P,"",t)});var j=detectContainerForBytes(t);return j==="ts"&&t.length<188?callbackOnCompleted(P,function(){return v(M,P,"",t)}):!j&&t.length<376?callbackOnCompleted(P,function(){return v(M,P,"",t)}):v(null,P,j,t)}},A={uri:e,beforeSend:function(M){M.overrideMimeType("text/plain; charset=x-user-defined"),M.addEventListener("progress",function(P){return P.total,P.loaded,callbackWrapper(M,null,{statusCode:M.status},w)})}},E=o(A,function(C,M){return callbackWrapper(E,C,M,w)});return E},EventTarget$3=videojs.EventTarget,mergeOptions=videojs.mergeOptions,dashPlaylistUnchanged=function(e,o){if(!isPlaylistUnchanged(e,o)||e.sidx&&o.sidx&&(e.sidx.offset!==o.sidx.offset||e.sidx.length!==o.sidx.length))return!1;if(!e.sidx&&o.sidx||e.sidx&&!o.sidx||e.segments&&!o.segments||!e.segments&&o.segments)return!1;if(!e.segments&&!o.segments)return!0;for(var l=0;l<e.segments.length;l++){var t=e.segments[l],u=o.segments[l];if(t.uri!==u.uri)return!1;if(!(!t.byterange&&!u.byterange)){var h=t.byterange,v=u.byterange;if(h&&!v||!h&&v||h.offset!==v.offset||h.length!==v.length)return!1}}return!0},dashGroupId=function(e,o,l,t){var u=t.attributes.NAME||l;return"placeholder-uri-"+e+"-"+o+"-"+u},parseMasterXml=function(e){var o=e.masterXml,l=e.srcUrl,t=e.clientOffset,u=e.sidxMapping,h=e.previousManifest,v=parse$4(o,{manifestUri:l,clientOffset:t,sidxMapping:u,previousManifest:h});return addPropertiesToMaster(v,l,dashGroupId),v},removeOldMediaGroupLabels=function(e,o){forEachMediaGroup(e,function(l,t,u,h){h in o.mediaGroups[t][u]||delete e.mediaGroups[t][u][h]})},updateMaster=function(e,o,l){for(var t=!0,u=mergeOptions(e,{duration:o.duration,minimumUpdatePeriod:o.minimumUpdatePeriod,timelineStarts:o.timelineStarts}),h=0;h<o.playlists.length;h++){var v=o.playlists[h];if(v.sidx){var w=generateSidxKey(v.sidx);l&&l[w]&&l[w].sidx&&addSidxSegmentsToPlaylist$1(v,l[w].sidx,v.sidx.resolvedUri)}var A=updateMaster$1(u,v,dashPlaylistUnchanged);A&&(u=A,t=!1)}return forEachMediaGroup(o,function(E,C,M,P){if(E.playlists&&E.playlists.length){var I=E.playlists[0].id,j=updateMaster$1(u,E.playlists[0],dashPlaylistUnchanged);j&&(u=j,P in u.mediaGroups[C][M]||(u.mediaGroups[C][M][P]=E),u.mediaGroups[C][M][P].playlists[0]=u.playlists[I],t=!1)}}),removeOldMediaGroupLabels(u,o),o.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(t=!1),t?null:u},equivalentSidx=function(e,o){var l=!e.map&&!o.map,t=l||!!(e.map&&o.map&&e.map.byterange.offset===o.map.byterange.offset&&e.map.byterange.length===o.map.byterange.length);return t&&e.uri===o.uri&&e.byterange.offset===o.byterange.offset&&e.byterange.length===o.byterange.length},compareSidxEntry=function(e,o){var l={};for(var t in e){var u=e[t],h=u.sidx;if(h){var v=generateSidxKey(h);if(!o[v])break;var w=o[v].sidxInfo;equivalentSidx(w,h)&&(l[v]=o[v])}}return l},filterChangedSidxMappings=function(e,o){var l=compareSidxEntry(e.playlists,o),t=l;return forEachMediaGroup(e,function(u,h,v,w){if(u.playlists&&u.playlists.length){var A=u.playlists;t=mergeOptions(t,compareSidxEntry(A,o))}}),t},DashPlaylistLoader=function(n){_inheritsLoose(e,n);function e(l,t,u,h){var v;u===void 0&&(u={}),v=n.call(this)||this,v.masterPlaylistLoader_=h||_assertThisInitialized$1(v),h||(v.isMaster_=!0);var w=u,A=w.withCredentials,E=A===void 0?!1:A,C=w.handleManifestRedirects,M=C===void 0?!1:C;if(v.vhs_=t,v.withCredentials=E,v.handleManifestRedirects=M,!l)throw new Error("A non-empty playlist URL or object is required");return v.on("minimumUpdatePeriod",function(){v.refreshXml_()}),v.on("mediaupdatetimeout",function(){v.refreshMedia_(v.media().id)}),v.state="HAVE_NOTHING",v.loadedPlaylists_={},v.logger_=logger("DashPlaylistLoader"),v.isMaster_?(v.masterPlaylistLoader_.srcUrl=l,v.masterPlaylistLoader_.sidxMapping_={}):v.childPlaylist_=l,v}var o=e.prototype;return o.requestErrored_=function(t,u,h){if(!this.request)return!0;if(this.request=null,t)return this.error=typeof t=="object"&&!(t instanceof Error)?t:{status:u.status,message:"DASH request error at URL: "+u.uri,response:u.response,code:2},h&&(this.state=h),this.trigger("error"),!0},o.addSidxSegments_=function(t,u,h){var v=this,w=t.sidx&&generateSidxKey(t.sidx);if(!t.sidx||!w||this.masterPlaylistLoader_.sidxMapping_[w]){this.mediaRequest_=window$1$1.setTimeout(function(){return h(!1)},0);return}var A=resolveManifestRedirect(this.handleManifestRedirects,t.sidx.resolvedUri),E=function(M,P){if(!v.requestErrored_(M,P,u)){var I=v.masterPlaylistLoader_.sidxMapping_,j;try{j=parseSidx$1(toUint8(P.response).subarray(8))}catch(B){v.requestErrored_(B,P,u);return}return I[w]={sidxInfo:t.sidx,sidx:j},addSidxSegmentsToPlaylist$1(t,j,t.sidx.resolvedUri),h(!0)}};this.request=containerRequest(A,this.vhs_.xhr,function(C,M,P,I){if(C)return E(C,M);if(!P||P!=="mp4")return E({status:M.status,message:"Unsupported "+(P||"unknown")+" container type for sidx segment at URL: "+A,response:"",playlist:t,internal:!0,blacklistDuration:1/0,code:2},M);var j=t.sidx.byterange,B=j.offset,F=j.length;if(I.length>=F+B)return E(C,{response:I.subarray(B,B+F),status:M.status,uri:M.uri});v.request=v.vhs_.xhr({uri:A,responseType:"arraybuffer",headers:segmentXhrHeaders({byterange:t.sidx.byterange})},E)})},o.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},window$1$1.clearTimeout(this.minimumUpdatePeriodTimeout_),window$1$1.clearTimeout(this.mediaRequest_),window$1$1.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},o.hasPendingRequest=function(){return this.request||this.mediaRequest_},o.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},o.media=function(t){var u=this;if(!t)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);var h=this.state;if(typeof t=="string"){if(!this.masterPlaylistLoader_.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.masterPlaylistLoader_.master.playlists[t]}var v=!this.media_||t.id!==this.media_.id;if(v&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList){this.state="HAVE_METADATA",this.media_=t,v&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}v&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,h,function(w){u.haveMetadata({startingState:h,playlist:t})}))},o.haveMetadata=function(t){var u=t.startingState,h=t.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[h.id]=h,this.mediaRequest_=null,this.refreshMedia_(h.id),u==="HAVE_MASTER"?this.trigger("loadedmetadata"):this.trigger("mediachange")},o.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),window$1$1.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(window$1$1.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)},o.load=function(t){var u=this;window$1$1.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var h=this.media();if(t){var v=h?h.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=window$1$1.setTimeout(function(){return u.load()},v);return}if(!this.started){this.start();return}h&&!h.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")},o.start=function(){var t=this;if(this.started=!0,!this.isMaster_){this.mediaRequest_=window$1$1.setTimeout(function(){return t.haveMaster_()},0);return}this.requestMaster_(function(u,h){t.haveMaster_(),!t.hasPendingRequest()&&!t.media_&&t.media(t.masterPlaylistLoader_.master.playlists[0])})},o.requestMaster_=function(t){var u=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(h,v){if(u.requestErrored_(h,v)){u.state==="HAVE_NOTHING"&&(u.started=!1);return}var w=v.responseText!==u.masterPlaylistLoader_.masterXml_;if(u.masterPlaylistLoader_.masterXml_=v.responseText,v.responseHeaders&&v.responseHeaders.date?u.masterLoaded_=Date.parse(v.responseHeaders.date):u.masterLoaded_=Date.now(),u.masterPlaylistLoader_.srcUrl=resolveManifestRedirect(u.handleManifestRedirects,u.masterPlaylistLoader_.srcUrl,v),w){u.handleMaster_(),u.syncClientServerClock_(function(){return t(v,w)});return}return t(v,w)})},o.syncClientServerClock_=function(t){var u=this,h=parseUTCTiming(this.masterPlaylistLoader_.masterXml_);if(h===null)return this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),t();if(h.method==="DIRECT")return this.masterPlaylistLoader_.clientOffset_=h.value-Date.now(),t();this.request=this.vhs_.xhr({uri:resolveUrl(this.masterPlaylistLoader_.srcUrl,h.value),method:h.method,withCredentials:this.withCredentials},function(v,w){if(u.request){if(v)return u.masterPlaylistLoader_.clientOffset_=u.masterLoaded_-Date.now(),t();var A;h.method==="HEAD"?!w.responseHeaders||!w.responseHeaders.date?A=u.masterLoaded_:A=Date.parse(w.responseHeaders.date):A=Date.parse(w.responseText),u.masterPlaylistLoader_.clientOffset_=A-Date.now(),t()}})},o.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},o.handleMaster_=function(){this.mediaRequest_=null;var t=this.masterPlaylistLoader_.master,u=parseMasterXml({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:t});t&&(u=updateMaster(t,u,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=u||t;var h=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return h&&h!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=h),(!t||u&&u.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),!!u},o.updateMinimumUpdatePeriodTimeout_=function(){var t=this.masterPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(window$1$1.clearTimeout(t.minimumUpdatePeriodTimeout_),t.minimumUpdatePeriodTimeout_=null);var u=t.master&&t.master.minimumUpdatePeriod;if(u===0&&(t.media()?u=t.media().targetDuration*1e3:(t.createMupOnMedia_=t.updateMinimumUpdatePeriodTimeout_,t.one("loadedmetadata",t.createMupOnMedia_))),typeof u!="number"||u<=0){u<0&&this.logger_("found invalid minimumUpdatePeriod of "+u+", not setting a timeout");return}this.createMUPTimeout_(u)},o.createMUPTimeout_=function(t){var u=this.masterPlaylistLoader_;u.minimumUpdatePeriodTimeout_=window$1$1.setTimeout(function(){u.minimumUpdatePeriodTimeout_=null,u.trigger("minimumUpdatePeriod"),u.createMUPTimeout_(t)},t)},o.refreshXml_=function(){var t=this;this.requestMaster_(function(u,h){h&&(t.media_&&(t.media_=t.masterPlaylistLoader_.master.playlists[t.media_.id]),t.masterPlaylistLoader_.sidxMapping_=filterChangedSidxMappings(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.sidxMapping_),t.addSidxSegments_(t.media(),t.state,function(v){t.refreshMedia_(t.media().id)}))})},o.refreshMedia_=function(t){var u=this;if(!t)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var h=this.masterPlaylistLoader_.master.playlists,v=!this.media_||this.media_!==h[t];if(v?this.media_=h[t]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){var w=function A(){u.media().endList||(u.mediaUpdateTimeout=window$1$1.setTimeout(function(){u.trigger("mediaupdatetimeout"),A()},refreshDelay(u.media(),!!v)))};w()}this.trigger("loadedplaylist")},e}(EventTarget$3),Config={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},stringToArrayBuffer=function(e){for(var o=new Uint8Array(new ArrayBuffer(e.length)),l=0;l<e.length;l++)o[l]=e.charCodeAt(l);return o.buffer},browserWorkerPolyFill=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},createObjectURL=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch{var o=new BlobBuilder;return o.append(e),URL.createObjectURL(o.getBlob())}},factory=function(e){return function(){var o=createObjectURL(e),l=browserWorkerPolyFill(new Worker(o));l.objURL=o;var t=l.terminate;return l.on=l.addEventListener,l.off=l.removeEventListener,l.terminate=function(){return URL.revokeObjectURL(o),t.call(this)},l}},transform=function(e){return"var browserWorkerPolyFill = "+browserWorkerPolyFill.toString()+`;
browserWorkerPolyFill(self);
`+e},getWorkerString=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},workerCode$1=transform(getWorkerString(function(){var n=function(){this.init=function(){var ue={};this.on=function(Te,Se){ue[Te]||(ue[Te]=[]),ue[Te]=ue[Te].concat(Se)},this.off=function(Te,Se){var oe;return ue[Te]?(oe=ue[Te].indexOf(Se),ue[Te]=ue[Te].slice(),ue[Te].splice(oe,1),oe>-1):!1},this.trigger=function(Te){var Se,oe,Ee,Ce;if(Se=ue[Te],!!Se)if(arguments.length===2)for(Ee=Se.length,oe=0;oe<Ee;++oe)Se[oe].call(this,arguments[1]);else{for(Ce=[],oe=arguments.length,oe=1;oe<arguments.length;++oe)Ce.push(arguments[oe]);for(Ee=Se.length,oe=0;oe<Ee;++oe)Se[oe].apply(this,Ce)}},this.dispose=function(){ue={}}}};n.prototype.pipe=function(it){return this.on("data",function(ue){it.push(ue)}),this.on("done",function(ue){it.flush(ue)}),this.on("partialdone",function(ue){it.partialFlush(ue)}),this.on("endedtimeline",function(ue){it.endTimeline(ue)}),this.on("reset",function(ue){it.reset(ue)}),it},n.prototype.push=function(it){this.trigger("data",it)},n.prototype.flush=function(it){this.trigger("done",it)},n.prototype.partialFlush=function(it){this.trigger("partialdone",it)},n.prototype.endTimeline=function(it){this.trigger("endedtimeline",it)},n.prototype.reset=function(it){this.trigger("reset",it)};var e=n,o=Math.pow(2,32),l=function(ue){var Te=new DataView(ue.buffer,ue.byteOffset,ue.byteLength),Se;return Te.getBigUint64?(Se=Te.getBigUint64(0),Se<Number.MAX_SAFE_INTEGER?Number(Se):Se):Te.getUint32(0)*o+Te.getUint32(4)},t={getUint64:l,MAX_UINT32:o},u=t.MAX_UINT32,h,v,w,A,E,C,M,P,I,j,B,F,N,ee,Z,re,fe,V,le,he,ye,L,p,y,S,c,m,x,T,b,d,k,D,O,Q,J;(function(){var it;if(p={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(it in p)p.hasOwnProperty(it)&&(p[it]=[it.charCodeAt(0),it.charCodeAt(1),it.charCodeAt(2),it.charCodeAt(3)]);y=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),S=new Uint8Array([0,0,0,1]),m=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),x=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),T={video:m,audio:x},k=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),d=new Uint8Array([0,0,0,0,0,0,0,0]),D=new Uint8Array([0,0,0,0,0,0,0,0]),O=D,Q=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),J=D,b=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),h=function(ue){var Te=[],Se=0,oe,Ee,Ce;for(oe=1;oe<arguments.length;oe++)Te.push(arguments[oe]);for(oe=Te.length;oe--;)Se+=Te[oe].byteLength;for(Ee=new Uint8Array(Se+8),Ce=new DataView(Ee.buffer,Ee.byteOffset,Ee.byteLength),Ce.setUint32(0,Ee.byteLength),Ee.set(ue,4),oe=0,Se=8;oe<Te.length;oe++)Ee.set(Te[oe],Se),Se+=Te[oe].byteLength;return Ee},v=function(){return h(p.dinf,h(p.dref,k))},w=function(ue){return h(p.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,ue.audioobjecttype<<3|ue.samplingfrequencyindex>>>1,ue.samplingfrequencyindex<<7|ue.channelcount<<3,6,1,2]))},A=function(){return h(p.ftyp,y,S,y,c)},re=function(ue){return h(p.hdlr,T[ue])},E=function(ue){return h(p.mdat,ue)},Z=function(ue){var Te=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,ue.duration>>>24&255,ue.duration>>>16&255,ue.duration>>>8&255,ue.duration&255,85,196,0,0]);return ue.samplerate&&(Te[12]=ue.samplerate>>>24&255,Te[13]=ue.samplerate>>>16&255,Te[14]=ue.samplerate>>>8&255,Te[15]=ue.samplerate&255),h(p.mdhd,Te)},ee=function(ue){return h(p.mdia,Z(ue),re(ue.type),M(ue))},C=function(ue){return h(p.mfhd,new Uint8Array([0,0,0,0,(ue&4278190080)>>24,(ue&16711680)>>16,(ue&65280)>>8,ue&255]))},M=function(ue){return h(p.minf,ue.type==="video"?h(p.vmhd,b):h(p.smhd,d),v(),V(ue))},P=function(ue,Te){for(var Se=[],oe=Te.length;oe--;)Se[oe]=he(Te[oe]);return h.apply(null,[p.moof,C(ue)].concat(Se))},I=function(ue){for(var Te=ue.length,Se=[];Te--;)Se[Te]=F(ue[Te]);return h.apply(null,[p.moov,B(4294967295)].concat(Se).concat(j(ue)))},j=function(ue){for(var Te=ue.length,Se=[];Te--;)Se[Te]=ye(ue[Te]);return h.apply(null,[p.mvex].concat(Se))},B=function(ue){var Te=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(ue&4278190080)>>24,(ue&16711680)>>16,(ue&65280)>>8,ue&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return h(p.mvhd,Te)},fe=function(ue){var Te=ue.samples||[],Se=new Uint8Array(4+Te.length),oe,Ee;for(Ee=0;Ee<Te.length;Ee++)oe=Te[Ee].flags,Se[Ee+4]=oe.dependsOn<<4|oe.isDependedOn<<2|oe.hasRedundancy;return h(p.sdtp,Se)},V=function(ue){return h(p.stbl,le(ue),h(p.stts,J),h(p.stsc,O),h(p.stsz,Q),h(p.stco,D))},function(){var it,ue;le=function(Se){return h(p.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),Se.type==="video"?it(Se):ue(Se))},it=function(Se){var oe=Se.sps||[],Ee=Se.pps||[],Ce=[],Ue=[],Oe,Ze;for(Oe=0;Oe<oe.length;Oe++)Ce.push((oe[Oe].byteLength&65280)>>>8),Ce.push(oe[Oe].byteLength&255),Ce=Ce.concat(Array.prototype.slice.call(oe[Oe]));for(Oe=0;Oe<Ee.length;Oe++)Ue.push((Ee[Oe].byteLength&65280)>>>8),Ue.push(Ee[Oe].byteLength&255),Ue=Ue.concat(Array.prototype.slice.call(Ee[Oe]));if(Ze=[p.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(Se.width&65280)>>8,Se.width&255,(Se.height&65280)>>8,Se.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),h(p.avcC,new Uint8Array([1,Se.profileIdc,Se.profileCompatibility,Se.levelIdc,255].concat([oe.length],Ce,[Ee.length],Ue))),h(p.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],Se.sarRatio){var Ke=Se.sarRatio[0],gt=Se.sarRatio[1];Ze.push(h(p.pasp,new Uint8Array([(Ke&4278190080)>>24,(Ke&16711680)>>16,(Ke&65280)>>8,Ke&255,(gt&4278190080)>>24,(gt&16711680)>>16,(gt&65280)>>8,gt&255])))}return h.apply(null,Ze)},ue=function(Se){return h(p.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(Se.channelcount&65280)>>8,Se.channelcount&255,(Se.samplesize&65280)>>8,Se.samplesize&255,0,0,0,0,(Se.samplerate&65280)>>8,Se.samplerate&255,0,0]),w(Se))}}(),N=function(ue){var Te=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(ue.id&4278190080)>>24,(ue.id&16711680)>>16,(ue.id&65280)>>8,ue.id&255,0,0,0,0,(ue.duration&4278190080)>>24,(ue.duration&16711680)>>16,(ue.duration&65280)>>8,ue.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(ue.width&65280)>>8,ue.width&255,0,0,(ue.height&65280)>>8,ue.height&255,0,0]);return h(p.tkhd,Te)},he=function(ue){var Te,Se,oe,Ee,Ce,Ue,Oe;return Te=h(p.tfhd,new Uint8Array([0,0,0,58,(ue.id&4278190080)>>24,(ue.id&16711680)>>16,(ue.id&65280)>>8,ue.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),Ue=Math.floor(ue.baseMediaDecodeTime/u),Oe=Math.floor(ue.baseMediaDecodeTime%u),Se=h(p.tfdt,new Uint8Array([1,0,0,0,Ue>>>24&255,Ue>>>16&255,Ue>>>8&255,Ue&255,Oe>>>24&255,Oe>>>16&255,Oe>>>8&255,Oe&255])),Ce=92,ue.type==="audio"?(oe=L(ue,Ce),h(p.traf,Te,Se,oe)):(Ee=fe(ue),oe=L(ue,Ee.length+Ce),h(p.traf,Te,Se,oe,Ee))},F=function(ue){return ue.duration=ue.duration||4294967295,h(p.trak,N(ue),ee(ue))},ye=function(ue){var Te=new Uint8Array([0,0,0,0,(ue.id&4278190080)>>24,(ue.id&16711680)>>16,(ue.id&65280)>>8,ue.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return ue.type!=="video"&&(Te[Te.length-1]=0),h(p.trex,Te)},function(){var it,ue,Te;Te=function(oe,Ee){var Ce=0,Ue=0,Oe=0,Ze=0;return oe.length&&(oe[0].duration!==void 0&&(Ce=1),oe[0].size!==void 0&&(Ue=2),oe[0].flags!==void 0&&(Oe=4),oe[0].compositionTimeOffset!==void 0&&(Ze=8)),[0,0,Ce|Ue|Oe|Ze,1,(oe.length&4278190080)>>>24,(oe.length&16711680)>>>16,(oe.length&65280)>>>8,oe.length&255,(Ee&4278190080)>>>24,(Ee&16711680)>>>16,(Ee&65280)>>>8,Ee&255]},ue=function(oe,Ee){var Ce,Ue,Oe,Ze,Ke,gt;for(Ze=oe.samples||[],Ee+=20+16*Ze.length,Oe=Te(Ze,Ee),Ue=new Uint8Array(Oe.length+Ze.length*16),Ue.set(Oe),Ce=Oe.length,gt=0;gt<Ze.length;gt++)Ke=Ze[gt],Ue[Ce++]=(Ke.duration&4278190080)>>>24,Ue[Ce++]=(Ke.duration&16711680)>>>16,Ue[Ce++]=(Ke.duration&65280)>>>8,Ue[Ce++]=Ke.duration&255,Ue[Ce++]=(Ke.size&4278190080)>>>24,Ue[Ce++]=(Ke.size&16711680)>>>16,Ue[Ce++]=(Ke.size&65280)>>>8,Ue[Ce++]=Ke.size&255,Ue[Ce++]=Ke.flags.isLeading<<2|Ke.flags.dependsOn,Ue[Ce++]=Ke.flags.isDependedOn<<6|Ke.flags.hasRedundancy<<4|Ke.flags.paddingValue<<1|Ke.flags.isNonSyncSample,Ue[Ce++]=Ke.flags.degradationPriority&61440,Ue[Ce++]=Ke.flags.degradationPriority&15,Ue[Ce++]=(Ke.compositionTimeOffset&4278190080)>>>24,Ue[Ce++]=(Ke.compositionTimeOffset&16711680)>>>16,Ue[Ce++]=(Ke.compositionTimeOffset&65280)>>>8,Ue[Ce++]=Ke.compositionTimeOffset&255;return h(p.trun,Ue)},it=function(oe,Ee){var Ce,Ue,Oe,Ze,Ke,gt;for(Ze=oe.samples||[],Ee+=20+8*Ze.length,Oe=Te(Ze,Ee),Ce=new Uint8Array(Oe.length+Ze.length*8),Ce.set(Oe),Ue=Oe.length,gt=0;gt<Ze.length;gt++)Ke=Ze[gt],Ce[Ue++]=(Ke.duration&4278190080)>>>24,Ce[Ue++]=(Ke.duration&16711680)>>>16,Ce[Ue++]=(Ke.duration&65280)>>>8,Ce[Ue++]=Ke.duration&255,Ce[Ue++]=(Ke.size&4278190080)>>>24,Ce[Ue++]=(Ke.size&16711680)>>>16,Ce[Ue++]=(Ke.size&65280)>>>8,Ce[Ue++]=Ke.size&255;return h(p.trun,Ce)},L=function(oe,Ee){return oe.type==="audio"?it(oe,Ee):ue(oe,Ee)}}();var X={ftyp:A,mdat:E,moof:P,moov:I,initSegment:function(ue){var Te=A(),Se=I(ue),oe;return oe=new Uint8Array(Te.byteLength+Se.byteLength),oe.set(Te),oe.set(Se,Te.byteLength),oe}},U=function(ue){var Te,Se,oe=[],Ee=[];for(Ee.byteLength=0,Ee.nalCount=0,Ee.duration=0,oe.byteLength=0,Te=0;Te<ue.length;Te++)Se=ue[Te],Se.nalUnitType==="access_unit_delimiter_rbsp"?(oe.length&&(oe.duration=Se.dts-oe.dts,Ee.byteLength+=oe.byteLength,Ee.nalCount+=oe.length,Ee.duration+=oe.duration,Ee.push(oe)),oe=[Se],oe.byteLength=Se.data.byteLength,oe.pts=Se.pts,oe.dts=Se.dts):(Se.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(oe.keyFrame=!0),oe.duration=Se.dts-oe.dts,oe.byteLength+=Se.data.byteLength,oe.push(Se));return Ee.length&&(!oe.duration||oe.duration<=0)&&(oe.duration=Ee[Ee.length-1].duration),Ee.byteLength+=oe.byteLength,Ee.nalCount+=oe.length,Ee.duration+=oe.duration,Ee.push(oe),Ee},z=function(ue){var Te,Se,oe=[],Ee=[];for(oe.byteLength=0,oe.nalCount=0,oe.duration=0,oe.pts=ue[0].pts,oe.dts=ue[0].dts,Ee.byteLength=0,Ee.nalCount=0,Ee.duration=0,Ee.pts=ue[0].pts,Ee.dts=ue[0].dts,Te=0;Te<ue.length;Te++)Se=ue[Te],Se.keyFrame?(oe.length&&(Ee.push(oe),Ee.byteLength+=oe.byteLength,Ee.nalCount+=oe.nalCount,Ee.duration+=oe.duration),oe=[Se],oe.nalCount=Se.length,oe.byteLength=Se.byteLength,oe.pts=Se.pts,oe.dts=Se.dts,oe.duration=Se.duration):(oe.duration+=Se.duration,oe.nalCount+=Se.length,oe.byteLength+=Se.byteLength,oe.push(Se));return Ee.length&&oe.duration<=0&&(oe.duration=Ee[Ee.length-1].duration),Ee.byteLength+=oe.byteLength,Ee.nalCount+=oe.nalCount,Ee.duration+=oe.duration,Ee.push(oe),Ee},ie=function(ue){var Te;return!ue[0][0].keyFrame&&ue.length>1&&(Te=ue.shift(),ue.byteLength-=Te.byteLength,ue.nalCount-=Te.nalCount,ue[0][0].dts=Te.dts,ue[0][0].pts=Te.pts,ue[0][0].duration+=Te.duration),ue},de=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},me=function(ue,Te){var Se=de();return Se.dataOffset=Te,Se.compositionTimeOffset=ue.pts-ue.dts,Se.duration=ue.duration,Se.size=4*ue.length,Se.size+=ue.byteLength,ue.keyFrame&&(Se.flags.dependsOn=2,Se.flags.isNonSyncSample=0),Se},pe=function(ue,Te){var Se,oe,Ee,Ce,Ue,Oe=Te||0,Ze=[];for(Se=0;Se<ue.length;Se++)for(Ce=ue[Se],oe=0;oe<Ce.length;oe++)Ue=Ce[oe],Ee=me(Ue,Oe),Oe+=Ee.size,Ze.push(Ee);return Ze},qe=function(ue){var Te,Se,oe,Ee,Ce,Ue,Oe=0,Ze=ue.byteLength,Ke=ue.nalCount,gt=Ze+4*Ke,It=new Uint8Array(gt),ir=new DataView(It.buffer);for(Te=0;Te<ue.length;Te++)for(Ee=ue[Te],Se=0;Se<Ee.length;Se++)for(Ce=Ee[Se],oe=0;oe<Ce.length;oe++)Ue=Ce[oe],ir.setUint32(Oe,Ue.data.byteLength),Oe+=4,It.set(Ue.data,Oe),Oe+=Ue.data.byteLength;return It},mt=function(ue,Te){var Se,oe=Te||0,Ee=[];return Se=me(ue,oe),Ee.push(Se),Ee},st=function(ue){var Te,Se,oe=0,Ee=ue.byteLength,Ce=ue.length,Ue=Ee+4*Ce,Oe=new Uint8Array(Ue),Ze=new DataView(Oe.buffer);for(Te=0;Te<ue.length;Te++)Se=ue[Te],Ze.setUint32(oe,Se.data.byteLength),oe+=4,Oe.set(Se.data,oe),oe+=Se.data.byteLength;return Oe},dt={groupNalsIntoFrames:U,groupFramesIntoGops:z,extendFirstKeyFrame:ie,generateSampleTable:pe,concatenateNalData:qe,generateSampleTableForFrame:mt,concatenateNalDataForFrame:st},Tt=[33,16,5,32,164,27],lt=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],Je=function(ue){for(var Te=[];ue--;)Te.push(0);return Te},ht=function(ue){return Object.keys(ue).reduce(function(Te,Se){return Te[Se]=new Uint8Array(ue[Se].reduce(function(oe,Ee){return oe.concat(Ee)},[])),Te},{})},at,bt=function(){if(!at){var ue={96e3:[Tt,[227,64],Je(154),[56]],88200:[Tt,[231],Je(170),[56]],64e3:[Tt,[248,192],Je(240),[56]],48e3:[Tt,[255,192],Je(268),[55,148,128],Je(54),[112]],44100:[Tt,[255,192],Je(268),[55,163,128],Je(84),[112]],32e3:[Tt,[255,192],Je(268),[55,234],Je(226),[112]],24e3:[Tt,[255,192],Je(268),[55,255,128],Je(268),[111,112],Je(126),[224]],16e3:[Tt,[255,192],Je(268),[55,255,128],Je(268),[111,255],Je(269),[223,108],Je(195),[1,192]],12e3:[lt,Je(268),[3,127,248],Je(268),[6,255,240],Je(268),[13,255,224],Je(268),[27,253,128],Je(259),[56]],11025:[lt,Je(268),[3,127,248],Je(268),[6,255,240],Je(268),[13,255,224],Je(268),[27,255,192],Je(268),[55,175,128],Je(108),[112]],8e3:[lt,Je(268),[3,121,16],Je(47),[7]]};at=ht(ue)}return at},jt=9e4,Ge,Qe,Wt,Et,Ct,Kt,Me;Ge=function(ue){return ue*jt},Qe=function(ue,Te){return ue*Te},Wt=function(ue){return ue/jt},Et=function(ue,Te){return ue/Te},Ct=function(ue,Te){return Ge(Et(ue,Te))},Kt=function(ue,Te){return Qe(Wt(ue),Te)},Me=function(ue,Te,Se){return Wt(Se?ue:ue-Te)};var te={ONE_SECOND_IN_TS:jt,secondsToVideoTs:Ge,secondsToAudioTs:Qe,videoTsToSeconds:Wt,audioTsToSeconds:Et,audioTsToVideoTs:Ct,videoTsToAudioTs:Kt,metadataTsToSeconds:Me},_e=function(ue){var Te,Se,oe=0;for(Te=0;Te<ue.length;Te++)Se=ue[Te],oe+=Se.data.byteLength;return oe},je=function(ue,Te,Se,oe){var Ee,Ce=0,Ue=0,Oe=0,Ze=0,Ke,gt,It;if(Te.length&&(Ee=te.audioTsToVideoTs(ue.baseMediaDecodeTime,ue.samplerate),Ce=Math.ceil(te.ONE_SECOND_IN_TS/(ue.samplerate/1024)),Se&&oe&&(Ue=Ee-Math.max(Se,oe),Oe=Math.floor(Ue/Ce),Ze=Oe*Ce),!(Oe<1||Ze>te.ONE_SECOND_IN_TS/2))){for(Ke=bt()[ue.samplerate],Ke||(Ke=Te[0].data),gt=0;gt<Oe;gt++)It=Te[0],Te.splice(0,0,{data:Ke,dts:It.dts-Ce,pts:It.pts-Ce});return ue.baseMediaDecodeTime-=Math.floor(te.videoTsToAudioTs(Ze,ue.samplerate)),Ze}},We=function(ue,Te,Se){return Te.minSegmentDts>=Se?ue:(Te.minSegmentDts=1/0,ue.filter(function(oe){return oe.dts>=Se?(Te.minSegmentDts=Math.min(Te.minSegmentDts,oe.dts),Te.minSegmentPts=Te.minSegmentDts,!0):!1}))},et=function(ue){var Te,Se,oe=[];for(Te=0;Te<ue.length;Te++)Se=ue[Te],oe.push({size:Se.data.byteLength,duration:1024});return oe},Ye=function(ue){var Te,Se,oe=0,Ee=new Uint8Array(_e(ue));for(Te=0;Te<ue.length;Te++)Se=ue[Te],Ee.set(Se.data,oe),oe+=Se.data.byteLength;return Ee},De={prefixWithSilence:je,trimAdtsFramesByEarliestDts:We,generateSampleTable:et,concatenateFrameData:Ye},Ht=te.ONE_SECOND_IN_TS,Mt=function(ue,Te){typeof Te.pts=="number"&&(ue.timelineStartInfo.pts===void 0&&(ue.timelineStartInfo.pts=Te.pts),ue.minSegmentPts===void 0?ue.minSegmentPts=Te.pts:ue.minSegmentPts=Math.min(ue.minSegmentPts,Te.pts),ue.maxSegmentPts===void 0?ue.maxSegmentPts=Te.pts:ue.maxSegmentPts=Math.max(ue.maxSegmentPts,Te.pts)),typeof Te.dts=="number"&&(ue.timelineStartInfo.dts===void 0&&(ue.timelineStartInfo.dts=Te.dts),ue.minSegmentDts===void 0?ue.minSegmentDts=Te.dts:ue.minSegmentDts=Math.min(ue.minSegmentDts,Te.dts),ue.maxSegmentDts===void 0?ue.maxSegmentDts=Te.dts:ue.maxSegmentDts=Math.max(ue.maxSegmentDts,Te.dts))},ge=function(ue){delete ue.minSegmentDts,delete ue.maxSegmentDts,delete ue.minSegmentPts,delete ue.maxSegmentPts},Dt=function(ue,Te){var Se,oe,Ee=ue.minSegmentDts;return Te||(Ee-=ue.timelineStartInfo.dts),Se=ue.timelineStartInfo.baseMediaDecodeTime,Se+=Ee,Se=Math.max(0,Se),ue.type==="audio"&&(oe=ue.samplerate/Ht,Se*=oe,Se=Math.floor(Se)),Se},yt={clearDtsInfo:ge,calculateTrackBaseMediaDecodeTime:Dt,collectDtsInfo:Mt},Ne=4,_t=128,pt=function(ue){for(var Te=0,Se={payloadType:-1,payloadSize:0},oe=0,Ee=0;Te<ue.byteLength&&ue[Te]!==_t;){for(;ue[Te]===255;)oe+=255,Te++;for(oe+=ue[Te++];ue[Te]===255;)Ee+=255,Te++;if(Ee+=ue[Te++],!Se.payload&&oe===Ne){var Ce=String.fromCharCode(ue[Te+3],ue[Te+4],ue[Te+5],ue[Te+6]);if(Ce==="GA94"){Se.payloadType=oe,Se.payloadSize=Ee,Se.payload=ue.subarray(Te,Te+Ee);break}else Se.payload=void 0}Te+=Ee,oe=0,Ee=0}return Se},Bt=function(ue){return ue.payload[0]!==181||(ue.payload[1]<<8|ue.payload[2])!==49||String.fromCharCode(ue.payload[3],ue.payload[4],ue.payload[5],ue.payload[6])!=="GA94"||ue.payload[7]!==3?null:ue.payload.subarray(8,ue.payload.length-1)},ur=function(ue,Te){var Se=[],oe,Ee,Ce,Ue;if(!(Te[0]&64))return Se;for(Ee=Te[0]&31,oe=0;oe<Ee;oe++)Ce=oe*3,Ue={type:Te[Ce+2]&3,pts:ue},Te[Ce+2]&4&&(Ue.ccData=Te[Ce+3]<<8|Te[Ce+4],Se.push(Ue));return Se},kt=function(ue){for(var Te=ue.byteLength,Se=[],oe=1,Ee,Ce;oe<Te-2;)ue[oe]===0&&ue[oe+1]===0&&ue[oe+2]===3?(Se.push(oe+2),oe+=2):oe++;if(Se.length===0)return ue;Ee=Te-Se.length,Ce=new Uint8Array(Ee);var Ue=0;for(oe=0;oe<Ee;Ue++,oe++)Ue===Se[0]&&(Ue++,Se.shift()),Ce[oe]=ue[Ue];return Ce},Ut={parseSei:pt,parseUserData:Bt,parseCaptionPackets:ur,discardEmulationPreventionBytes:kt,USER_DATA_REGISTERED_ITU_T_T35:Ne},Wr=function it(ue){ue=ue||{},it.prototype.init.call(this),this.parse708captions_=typeof ue.parse708captions=="boolean"?ue.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new Yt(0,0),new Yt(0,1),new Yt(1,0),new Yt(1,1)],this.parse708captions_&&(this.cc708Stream_=new se({captionServices:ue.captionServices})),this.reset(),this.ccStreams_.forEach(function(Te){Te.on("data",this.trigger.bind(this,"data")),Te.on("partialdone",this.trigger.bind(this,"partialdone")),Te.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Wr.prototype=new e,Wr.prototype.push=function(it){var ue,Te,Se;if(it.nalUnitType==="sei_rbsp"&&(ue=Ut.parseSei(it.escapedRBSP),!!ue.payload&&ue.payloadType===Ut.USER_DATA_REGISTERED_ITU_T_T35&&(Te=Ut.parseUserData(ue),!!Te))){if(it.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(it.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}Se=Ut.parseCaptionPackets(it.pts,Te),this.captionPackets_=this.captionPackets_.concat(Se),this.latestDts_!==it.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=it.dts}},Wr.prototype.flushCCStreams=function(it){this.ccStreams_.forEach(function(ue){return it==="flush"?ue.flush():ue.partialFlush()},this)},Wr.prototype.flushStream=function(it){if(!this.captionPackets_.length){this.flushCCStreams(it);return}this.captionPackets_.forEach(function(ue,Te){ue.presortIndex=Te}),this.captionPackets_.sort(function(ue,Te){return ue.pts===Te.pts?ue.presortIndex-Te.presortIndex:ue.pts-Te.pts}),this.captionPackets_.forEach(function(ue){ue.type<2?this.dispatchCea608Packet(ue):this.dispatchCea708Packet(ue)},this),this.captionPackets_.length=0,this.flushCCStreams(it)},Wr.prototype.flush=function(){return this.flushStream("flush")},Wr.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Wr.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(it){it.reset()})},Wr.prototype.dispatchCea608Packet=function(it){this.setsTextOrXDSActive(it)?this.activeCea608Channel_[it.type]=null:this.setsChannel1Active(it)?this.activeCea608Channel_[it.type]=0:this.setsChannel2Active(it)&&(this.activeCea608Channel_[it.type]=1),this.activeCea608Channel_[it.type]!==null&&this.ccStreams_[(it.type<<1)+this.activeCea608Channel_[it.type]].push(it)},Wr.prototype.setsChannel1Active=function(it){return(it.ccData&30720)===4096},Wr.prototype.setsChannel2Active=function(it){return(it.ccData&30720)===6144},Wr.prototype.setsTextOrXDSActive=function(it){return(it.ccData&28928)===256||(it.ccData&30974)===4138||(it.ccData&30974)===6186},Wr.prototype.dispatchCea708Packet=function(it){this.parse708captions_&&this.cc708Stream_.push(it)};var zt={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Qt=function(ue){var Te=zt[ue]||ue;return ue&4096&&ue===Te?"":String.fromCharCode(Te)},$e=function(ue){return 32<=ue&&ue<=127||160<=ue&&ue<=255},be=function(ue){this.windowNum=ue,this.reset()};be.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},be.prototype.getText=function(){return this.rows.join(`
`)},be.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},be.prototype.newLine=function(it){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(it),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},be.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},be.prototype.addText=function(it){this.rows[this.rowIdx]+=it},be.prototype.backspace=function(){if(!this.isEmpty()){var it=this.rows[this.rowIdx];this.rows[this.rowIdx]=it.substr(0,it.length-1)}};var ve=function(ue,Te,Se){this.serviceNum=ue,this.text="",this.currentWindow=new be(-1),this.windows=[],this.stream=Se,typeof Te=="string"&&this.createTextDecoder(Te)};ve.prototype.init=function(it,ue){this.startPts=it;for(var Te=0;Te<8;Te++)this.windows[Te]=new be(Te),typeof ue=="function"&&(this.windows[Te].beforeRowOverflow=ue)},ve.prototype.setCurrentWindow=function(it){this.currentWindow=this.windows[it]},ve.prototype.createTextDecoder=function(it){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(it)}catch(ue){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+it+" encoding. "+ue})}};var se=function it(ue){ue=ue||{},it.prototype.init.call(this);var Te=this,Se=ue.captionServices||{},oe={},Ee;Object.keys(Se).forEach(function(Ce){Ee=Se[Ce],/^SERVICE/.test(Ce)&&(oe[Ce]=Ee.encoding)}),this.serviceEncodings=oe,this.current708Packet=null,this.services={},this.push=function(Ce){Ce.type===3?(Te.new708Packet(),Te.add708Bytes(Ce)):(Te.current708Packet===null&&Te.new708Packet(),Te.add708Bytes(Ce))}};se.prototype=new e,se.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},se.prototype.add708Bytes=function(it){var ue=it.ccData,Te=ue>>>8,Se=ue&255;this.current708Packet.ptsVals.push(it.pts),this.current708Packet.data.push(Te),this.current708Packet.data.push(Se)},se.prototype.push708Packet=function(){var it=this.current708Packet,ue=it.data,Te=null,Se=null,oe=0,Ee=ue[oe++];for(it.seq=Ee>>6,it.sizeCode=Ee&63;oe<ue.length;oe++)Ee=ue[oe++],Te=Ee>>5,Se=Ee&31,Te===7&&Se>0&&(Ee=ue[oe++],Te=Ee),this.pushServiceBlock(Te,oe,Se),Se>0&&(oe+=Se-1)},se.prototype.pushServiceBlock=function(it,ue,Te){var Se,oe=ue,Ee=this.current708Packet.data,Ce=this.services[it];for(Ce||(Ce=this.initService(it,oe));oe<ue+Te&&oe<Ee.length;oe++)Se=Ee[oe],$e(Se)?oe=this.handleText(oe,Ce):Se===24?oe=this.multiByteCharacter(oe,Ce):Se===16?oe=this.extendedCommands(oe,Ce):128<=Se&&Se<=135?oe=this.setCurrentWindow(oe,Ce):152<=Se&&Se<=159?oe=this.defineWindow(oe,Ce):Se===136?oe=this.clearWindows(oe,Ce):Se===140?oe=this.deleteWindows(oe,Ce):Se===137?oe=this.displayWindows(oe,Ce):Se===138?oe=this.hideWindows(oe,Ce):Se===139?oe=this.toggleWindows(oe,Ce):Se===151?oe=this.setWindowAttributes(oe,Ce):Se===144?oe=this.setPenAttributes(oe,Ce):Se===145?oe=this.setPenColor(oe,Ce):Se===146?oe=this.setPenLocation(oe,Ce):Se===143?Ce=this.reset(oe,Ce):Se===8?Ce.currentWindow.backspace():Se===12?Ce.currentWindow.clearText():Se===13?Ce.currentWindow.pendingNewLine=!0:Se===14?Ce.currentWindow.clearText():Se===141&&oe++},se.prototype.extendedCommands=function(it,ue){var Te=this.current708Packet.data,Se=Te[++it];return $e(Se)&&(it=this.handleText(it,ue,{isExtended:!0})),it},se.prototype.getPts=function(it){return this.current708Packet.ptsVals[Math.floor(it/2)]},se.prototype.initService=function(it,ue){var Se="SERVICE"+it,Te=this,Se,oe;return Se in this.serviceEncodings&&(oe=this.serviceEncodings[Se]),this.services[it]=new ve(it,oe,Te),this.services[it].init(this.getPts(ue),function(Ee){Te.flushDisplayed(Ee,Te.services[it])}),this.services[it]},se.prototype.handleText=function(it,ue,Te){var Se=Te&&Te.isExtended,oe=Te&&Te.isMultiByte,Ee=this.current708Packet.data,Ce=Se?4096:0,Ue=Ee[it],Oe=Ee[it+1],Ze=ue.currentWindow,Ke,gt;return ue.textDecoder_&&!Se?(oe?(gt=[Ue,Oe],it++):gt=[Ue],Ke=ue.textDecoder_.decode(new Uint8Array(gt))):Ke=Qt(Ce|Ue),Ze.pendingNewLine&&!Ze.isEmpty()&&Ze.newLine(this.getPts(it)),Ze.pendingNewLine=!1,Ze.addText(Ke),it},se.prototype.multiByteCharacter=function(it,ue){var Te=this.current708Packet.data,Se=Te[it+1],oe=Te[it+2];return $e(Se)&&$e(oe)&&(it=this.handleText(++it,ue,{isMultiByte:!0})),it},se.prototype.setCurrentWindow=function(it,ue){var Te=this.current708Packet.data,Se=Te[it],oe=Se&7;return ue.setCurrentWindow(oe),it},se.prototype.defineWindow=function(it,ue){var Te=this.current708Packet.data,Se=Te[it],oe=Se&7;ue.setCurrentWindow(oe);var Ee=ue.currentWindow;return Se=Te[++it],Ee.visible=(Se&32)>>5,Ee.rowLock=(Se&16)>>4,Ee.columnLock=(Se&8)>>3,Ee.priority=Se&7,Se=Te[++it],Ee.relativePositioning=(Se&128)>>7,Ee.anchorVertical=Se&127,Se=Te[++it],Ee.anchorHorizontal=Se,Se=Te[++it],Ee.anchorPoint=(Se&240)>>4,Ee.rowCount=Se&15,Se=Te[++it],Ee.columnCount=Se&63,Se=Te[++it],Ee.windowStyle=(Se&56)>>3,Ee.penStyle=Se&7,Ee.virtualRowCount=Ee.rowCount+1,it},se.prototype.setWindowAttributes=function(it,ue){var Te=this.current708Packet.data,Se=Te[it],oe=ue.currentWindow.winAttr;return Se=Te[++it],oe.fillOpacity=(Se&192)>>6,oe.fillRed=(Se&48)>>4,oe.fillGreen=(Se&12)>>2,oe.fillBlue=Se&3,Se=Te[++it],oe.borderType=(Se&192)>>6,oe.borderRed=(Se&48)>>4,oe.borderGreen=(Se&12)>>2,oe.borderBlue=Se&3,Se=Te[++it],oe.borderType+=(Se&128)>>5,oe.wordWrap=(Se&64)>>6,oe.printDirection=(Se&48)>>4,oe.scrollDirection=(Se&12)>>2,oe.justify=Se&3,Se=Te[++it],oe.effectSpeed=(Se&240)>>4,oe.effectDirection=(Se&12)>>2,oe.displayEffect=Se&3,it},se.prototype.flushDisplayed=function(it,ue){for(var Te=[],Se=0;Se<8;Se++)ue.windows[Se].visible&&!ue.windows[Se].isEmpty()&&Te.push(ue.windows[Se].getText());ue.endPts=it,ue.text=Te.join(`

`),this.pushCaption(ue),ue.startPts=it},se.prototype.pushCaption=function(it){it.text!==""&&(this.trigger("data",{startPts:it.startPts,endPts:it.endPts,text:it.text,stream:"cc708_"+it.serviceNum}),it.text="",it.startPts=it.endPts)},se.prototype.displayWindows=function(it,ue){var Te=this.current708Packet.data,Se=Te[++it],oe=this.getPts(it);this.flushDisplayed(oe,ue);for(var Ee=0;Ee<8;Ee++)Se&1<<Ee&&(ue.windows[Ee].visible=1);return it},se.prototype.hideWindows=function(it,ue){var Te=this.current708Packet.data,Se=Te[++it],oe=this.getPts(it);this.flushDisplayed(oe,ue);for(var Ee=0;Ee<8;Ee++)Se&1<<Ee&&(ue.windows[Ee].visible=0);return it},se.prototype.toggleWindows=function(it,ue){var Te=this.current708Packet.data,Se=Te[++it],oe=this.getPts(it);this.flushDisplayed(oe,ue);for(var Ee=0;Ee<8;Ee++)Se&1<<Ee&&(ue.windows[Ee].visible^=1);return it},se.prototype.clearWindows=function(it,ue){var Te=this.current708Packet.data,Se=Te[++it],oe=this.getPts(it);this.flushDisplayed(oe,ue);for(var Ee=0;Ee<8;Ee++)Se&1<<Ee&&ue.windows[Ee].clearText();return it},se.prototype.deleteWindows=function(it,ue){var Te=this.current708Packet.data,Se=Te[++it],oe=this.getPts(it);this.flushDisplayed(oe,ue);for(var Ee=0;Ee<8;Ee++)Se&1<<Ee&&ue.windows[Ee].reset();return it},se.prototype.setPenAttributes=function(it,ue){var Te=this.current708Packet.data,Se=Te[it],oe=ue.currentWindow.penAttr;return Se=Te[++it],oe.textTag=(Se&240)>>4,oe.offset=(Se&12)>>2,oe.penSize=Se&3,Se=Te[++it],oe.italics=(Se&128)>>7,oe.underline=(Se&64)>>6,oe.edgeType=(Se&56)>>3,oe.fontStyle=Se&7,it},se.prototype.setPenColor=function(it,ue){var Te=this.current708Packet.data,Se=Te[it],oe=ue.currentWindow.penColor;return Se=Te[++it],oe.fgOpacity=(Se&192)>>6,oe.fgRed=(Se&48)>>4,oe.fgGreen=(Se&12)>>2,oe.fgBlue=Se&3,Se=Te[++it],oe.bgOpacity=(Se&192)>>6,oe.bgRed=(Se&48)>>4,oe.bgGreen=(Se&12)>>2,oe.bgBlue=Se&3,Se=Te[++it],oe.edgeRed=(Se&48)>>4,oe.edgeGreen=(Se&12)>>2,oe.edgeBlue=Se&3,it},se.prototype.setPenLocation=function(it,ue){var Te=this.current708Packet.data,Se=Te[it],oe=ue.currentWindow.penLoc;return ue.currentWindow.pendingNewLine=!0,Se=Te[++it],oe.row=Se&15,Se=Te[++it],oe.column=Se&63,it},se.prototype.reset=function(it,ue){var Te=this.getPts(it);return this.flushDisplayed(Te,ue),this.initService(ue.serviceNum,it)};var Pe={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},ze=function(ue){return ue===null?"":(ue=Pe[ue]||ue,String.fromCharCode(ue))},xt=14,ot=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],wt=function(){for(var ue=[],Te=xt+1;Te--;)ue.push("");return ue},Yt=function it(ue,Te){it.prototype.init.call(this),this.field_=ue||0,this.dataChannel_=Te||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(Se){var oe,Ee,Ce,Ue,Oe;if(oe=Se.ccData&32639,oe===this.lastControlCode_){this.lastControlCode_=null;return}if((oe&61440)===4096?this.lastControlCode_=oe:oe!==this.PADDING_&&(this.lastControlCode_=null),Ce=oe>>>8,Ue=oe&255,oe!==this.PADDING_)if(oe===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(oe===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(Se.pts),this.flushDisplayed(Se.pts),Ee=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=Ee,this.startPts_=Se.pts;else if(oe===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(Se.pts);else if(oe===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(Se.pts);else if(oe===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(Se.pts);else if(oe===this.CARRIAGE_RETURN_)this.clearFormatting(Se.pts),this.flushDisplayed(Se.pts),this.shiftRowsUp_(),this.startPts_=Se.pts;else if(oe===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(oe===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(Se.pts),this.displayed_=wt();else if(oe===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=wt();else if(oe===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(Se.pts),this.displayed_=wt()),this.mode_="paintOn",this.startPts_=Se.pts;else if(this.isSpecialCharacter(Ce,Ue))Ce=(Ce&3)<<8,Oe=ze(Ce|Ue),this[this.mode_](Se.pts,Oe),this.column_++;else if(this.isExtCharacter(Ce,Ue))this.mode_==="popOn"?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),Ce=(Ce&3)<<8,Oe=ze(Ce|Ue),this[this.mode_](Se.pts,Oe),this.column_++;else if(this.isMidRowCode(Ce,Ue))this.clearFormatting(Se.pts),this[this.mode_](Se.pts," "),this.column_++,(Ue&14)===14&&this.addFormatting(Se.pts,["i"]),(Ue&1)===1&&this.addFormatting(Se.pts,["u"]);else if(this.isOffsetControlCode(Ce,Ue))this.column_+=Ue&3;else if(this.isPAC(Ce,Ue)){var Ze=ot.indexOf(oe&7968);this.mode_==="rollUp"&&(Ze-this.rollUpRows_+1<0&&(Ze=this.rollUpRows_-1),this.setRollUp(Se.pts,Ze)),Ze!==this.row_&&(this.clearFormatting(Se.pts),this.row_=Ze),Ue&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(Se.pts,["u"]),(oe&16)===16&&(this.column_=((oe&14)>>1)*4),this.isColorPAC(Ue)&&(Ue&14)===14&&this.addFormatting(Se.pts,["i"])}else this.isNormalChar(Ce)&&(Ue===0&&(Ue=null),Oe=ze(Ce),Oe+=ze(Ue),this[this.mode_](Se.pts,Oe),this.column_+=Oe.length)}};Yt.prototype=new e,Yt.prototype.flushDisplayed=function(it){var ue=this.displayed_.map(function(Te,Se){try{return Te.trim()}catch{return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+Se+"."}),""}},this).join(`
`).replace(/^\n+|\n+$/g,"");ue.length&&this.trigger("data",{startPts:this.startPts_,endPts:it,text:ue,stream:this.name_})},Yt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=wt(),this.nonDisplayed_=wt(),this.lastControlCode_=null,this.column_=0,this.row_=xt,this.rollUpRows_=2,this.formatting_=[]},Yt.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},Yt.prototype.isSpecialCharacter=function(it,ue){return it===this.EXT_&&ue>=48&&ue<=63},Yt.prototype.isExtCharacter=function(it,ue){return(it===this.EXT_+1||it===this.EXT_+2)&&ue>=32&&ue<=63},Yt.prototype.isMidRowCode=function(it,ue){return it===this.EXT_&&ue>=32&&ue<=47},Yt.prototype.isOffsetControlCode=function(it,ue){return it===this.OFFSET_&&ue>=33&&ue<=35},Yt.prototype.isPAC=function(it,ue){return it>=this.BASE_&&it<this.BASE_+8&&ue>=64&&ue<=127},Yt.prototype.isColorPAC=function(it){return it>=64&&it<=79||it>=96&&it<=127},Yt.prototype.isNormalChar=function(it){return it>=32&&it<=127},Yt.prototype.setRollUp=function(it,ue){if(this.mode_!=="rollUp"&&(this.row_=xt,this.mode_="rollUp",this.flushDisplayed(it),this.nonDisplayed_=wt(),this.displayed_=wt()),ue!==void 0&&ue!==this.row_)for(var Te=0;Te<this.rollUpRows_;Te++)this.displayed_[ue-Te]=this.displayed_[this.row_-Te],this.displayed_[this.row_-Te]="";ue===void 0&&(ue=this.row_),this.topRow_=ue-this.rollUpRows_+1},Yt.prototype.addFormatting=function(it,ue){this.formatting_=this.formatting_.concat(ue);var Te=ue.reduce(function(Se,oe){return Se+"<"+oe+">"},"");this[this.mode_](it,Te)},Yt.prototype.clearFormatting=function(it){if(this.formatting_.length){var ue=this.formatting_.reverse().reduce(function(Te,Se){return Te+"</"+Se+">"},"");this.formatting_=[],this[this.mode_](it,ue)}},Yt.prototype.popOn=function(it,ue){var Te=this.nonDisplayed_[this.row_];Te+=ue,this.nonDisplayed_[this.row_]=Te},Yt.prototype.rollUp=function(it,ue){var Te=this.displayed_[this.row_];Te+=ue,this.displayed_[this.row_]=Te},Yt.prototype.shiftRowsUp_=function(){var it;for(it=0;it<this.topRow_;it++)this.displayed_[it]="";for(it=this.row_+1;it<xt+1;it++)this.displayed_[it]="";for(it=this.topRow_;it<this.row_;it++)this.displayed_[it]=this.displayed_[it+1];this.displayed_[this.row_]=""},Yt.prototype.paintOn=function(it,ue){var Te=this.displayed_[this.row_];Te+=ue,this.displayed_[this.row_]=Te};var Jt={CaptionStream:Wr,Cea608Stream:Yt,Cea708Stream:se},wr={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},lr=8589934592,Rr=4294967296,vr="shared",dr=function(ue,Te){var Se=1;for(ue>Te&&(Se=-1);Math.abs(Te-ue)>Rr;)ue+=Se*lr;return ue},Ir=function it(ue){var Te,Se;it.prototype.init.call(this),this.type_=ue||vr,this.push=function(oe){this.type_!==vr&&oe.type!==this.type_||(Se===void 0&&(Se=oe.dts),oe.dts=dr(oe.dts,Se),oe.pts=dr(oe.pts,Se),Te=oe.dts,this.trigger("data",oe))},this.flush=function(){Se=Te,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){Se=void 0,Te=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Ir.prototype=new e;var kr={TimestampRolloverStream:Ir,handleRollover:dr},Fr=function(ue,Te,Se){var oe,Ee="";for(oe=Te;oe<Se;oe++)Ee+="%"+("00"+ue[oe].toString(16)).slice(-2);return Ee},jr=function(ue,Te,Se){return decodeURIComponent(Fr(ue,Te,Se))},Cr=function(ue,Te,Se){return unescape(Fr(ue,Te,Se))},Lr=function(ue){return ue[0]<<21|ue[1]<<14|ue[2]<<7|ue[3]},Ar={TXXX:function(ue){var Te;if(ue.data[0]===3){for(Te=1;Te<ue.data.length;Te++)if(ue.data[Te]===0){ue.description=jr(ue.data,1,Te),ue.value=jr(ue.data,Te+1,ue.data.length).replace(/\0*$/,"");break}ue.data=ue.value}},WXXX:function(ue){var Te;if(ue.data[0]===3){for(Te=1;Te<ue.data.length;Te++)if(ue.data[Te]===0){ue.description=jr(ue.data,1,Te),ue.url=jr(ue.data,Te+1,ue.data.length);break}}},PRIV:function(ue){var Te;for(Te=0;Te<ue.data.length;Te++)if(ue.data[Te]===0){ue.owner=Cr(ue.data,0,Te);break}ue.privateData=ue.data.subarray(Te+1),ue.data=ue.privateData}},Tr;Tr=function(ue){var Te={descriptor:ue&&ue.descriptor},Se=0,oe=[],Ee=0,Ce;if(Tr.prototype.init.call(this),this.dispatchType=wr.METADATA_STREAM_TYPE.toString(16),Te.descriptor)for(Ce=0;Ce<Te.descriptor.length;Ce++)this.dispatchType+=("00"+Te.descriptor[Ce].toString(16)).slice(-2);this.push=function(Ue){var Oe,Ze,Ke,gt,It,ir;if(Ue.type==="timed-metadata"){if(Ue.dataAlignmentIndicator&&(Ee=0,oe.length=0),oe.length===0&&(Ue.data.length<10||Ue.data[0]!==73||Ue.data[1]!==68||Ue.data[2]!==51)){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(oe.push(Ue),Ee+=Ue.data.byteLength,oe.length===1&&(Se=Lr(Ue.data.subarray(6,10)),Se+=10),!(Ee<Se)){for(Oe={data:new Uint8Array(Se),frames:[],pts:oe[0].pts,dts:oe[0].dts},It=0;It<Se;)Oe.data.set(oe[0].data.subarray(0,Se-It),It),It+=oe[0].data.byteLength,Ee-=oe[0].data.byteLength,oe.shift();Ze=10,Oe.data[5]&64&&(Ze+=4,Ze+=Lr(Oe.data.subarray(10,14)),Se-=Lr(Oe.data.subarray(16,20)));do{if(Ke=Lr(Oe.data.subarray(Ze+4,Ze+8)),Ke<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});return}if(ir=String.fromCharCode(Oe.data[Ze],Oe.data[Ze+1],Oe.data[Ze+2],Oe.data[Ze+3]),gt={id:ir,data:Oe.data.subarray(Ze+10,Ze+Ke+10)},gt.key=gt.id,Ar[gt.id]&&(Ar[gt.id](gt),gt.owner==="com.apple.streaming.transportStreamTimestamp")){var cr=gt.data,Zt=(cr[3]&1)<<30|cr[4]<<22|cr[5]<<14|cr[6]<<6|cr[7]>>>2;Zt*=4,Zt+=cr[7]&3,gt.timeStamp=Zt,Oe.pts===void 0&&Oe.dts===void 0&&(Oe.pts=gt.timeStamp,Oe.dts=gt.timeStamp),this.trigger("timestamp",gt)}Oe.frames.push(gt),Ze+=10,Ze+=Ke}while(Ze<Se);this.trigger("data",Oe)}}}},Tr.prototype=new e;var Sr=Tr,rr=kr.TimestampRolloverStream,Nt,Gt,xr,pr=188,tr=71;Nt=function(){var ue=new Uint8Array(pr),Te=0;Nt.prototype.init.call(this),this.push=function(Se){var oe=0,Ee=pr,Ce;for(Te?(Ce=new Uint8Array(Se.byteLength+Te),Ce.set(ue.subarray(0,Te)),Ce.set(Se,Te),Te=0):Ce=Se;Ee<Ce.byteLength;){if(Ce[oe]===tr&&Ce[Ee]===tr){this.trigger("data",Ce.subarray(oe,Ee)),oe+=pr,Ee+=pr;continue}oe++,Ee++}oe<Ce.byteLength&&(ue.set(Ce.subarray(oe),0),Te=Ce.byteLength-oe)},this.flush=function(){Te===pr&&ue[0]===tr&&(this.trigger("data",ue),Te=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){Te=0,this.trigger("reset")}},Nt.prototype=new e,Gt=function(){var ue,Te,Se,oe;Gt.prototype.init.call(this),oe=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,ue=function(Ce,Ue){var Oe=0;Ue.payloadUnitStartIndicator&&(Oe+=Ce[Oe]+1),Ue.type==="pat"?Te(Ce.subarray(Oe),Ue):Se(Ce.subarray(Oe),Ue)},Te=function(Ce,Ue){Ue.section_number=Ce[7],Ue.last_section_number=Ce[8],oe.pmtPid=(Ce[10]&31)<<8|Ce[11],Ue.pmtPid=oe.pmtPid},Se=function(Ce,Ue){var Oe,Ze,Ke,gt;if(Ce[5]&1){for(oe.programMapTable={video:null,audio:null,"timed-metadata":{}},Oe=(Ce[1]&15)<<8|Ce[2],Ze=3+Oe-4,Ke=(Ce[10]&15)<<8|Ce[11],gt=12+Ke;gt<Ze;){var It=Ce[gt],ir=(Ce[gt+1]&31)<<8|Ce[gt+2];It===wr.H264_STREAM_TYPE&&oe.programMapTable.video===null?oe.programMapTable.video=ir:It===wr.ADTS_STREAM_TYPE&&oe.programMapTable.audio===null?oe.programMapTable.audio=ir:It===wr.METADATA_STREAM_TYPE&&(oe.programMapTable["timed-metadata"][ir]=It),gt+=((Ce[gt+3]&15)<<8|Ce[gt+4])+5}Ue.programMapTable=oe.programMapTable}},this.push=function(Ee){var Ce={},Ue=4;if(Ce.payloadUnitStartIndicator=!!(Ee[1]&64),Ce.pid=Ee[1]&31,Ce.pid<<=8,Ce.pid|=Ee[2],(Ee[3]&48)>>>4>1&&(Ue+=Ee[Ue]+1),Ce.pid===0)Ce.type="pat",ue(Ee.subarray(Ue),Ce),this.trigger("data",Ce);else if(Ce.pid===this.pmtPid)for(Ce.type="pmt",ue(Ee.subarray(Ue),Ce),this.trigger("data",Ce);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([Ee,Ue,Ce]):this.processPes_(Ee,Ue,Ce)},this.processPes_=function(Ee,Ce,Ue){Ue.pid===this.programMapTable.video?Ue.streamType=wr.H264_STREAM_TYPE:Ue.pid===this.programMapTable.audio?Ue.streamType=wr.ADTS_STREAM_TYPE:Ue.streamType=this.programMapTable["timed-metadata"][Ue.pid],Ue.type="pes",Ue.data=Ee.subarray(Ce),this.trigger("data",Ue)}},Gt.prototype=new e,Gt.STREAM_TYPES={h264:27,adts:15},xr=function(){var ue=this,Te=!1,Se={data:[],size:0},oe={data:[],size:0},Ee={data:[],size:0},Ce,Ue=function(Ke,gt){var It,ir=Ke[0]<<16|Ke[1]<<8|Ke[2];gt.data=new Uint8Array,ir===1&&(gt.packetLength=6+(Ke[4]<<8|Ke[5]),gt.dataAlignmentIndicator=(Ke[6]&4)!==0,It=Ke[7],It&192&&(gt.pts=(Ke[9]&14)<<27|(Ke[10]&255)<<20|(Ke[11]&254)<<12|(Ke[12]&255)<<5|(Ke[13]&254)>>>3,gt.pts*=4,gt.pts+=(Ke[13]&6)>>>1,gt.dts=gt.pts,It&64&&(gt.dts=(Ke[14]&14)<<27|(Ke[15]&255)<<20|(Ke[16]&254)<<12|(Ke[17]&255)<<5|(Ke[18]&254)>>>3,gt.dts*=4,gt.dts+=(Ke[18]&6)>>>1)),gt.data=Ke.subarray(9+Ke[8]))},Oe=function(Ke,gt,It){var ir=new Uint8Array(Ke.size),cr={type:gt},Zt=0,qr=0,Gr=!1,ii;if(!(!Ke.data.length||Ke.size<9)){for(cr.trackId=Ke.data[0].pid,Zt=0;Zt<Ke.data.length;Zt++)ii=Ke.data[Zt],ir.set(ii.data,qr),qr+=ii.data.byteLength;Ue(ir,cr),Gr=gt==="video"||cr.packetLength<=Ke.size,(It||Gr)&&(Ke.size=0,Ke.data.length=0),Gr&&ue.trigger("data",cr)}};xr.prototype.init.call(this),this.push=function(Ze){({pat:function(){},pes:function(){var gt,It;switch(Ze.streamType){case wr.H264_STREAM_TYPE:gt=Se,It="video";break;case wr.ADTS_STREAM_TYPE:gt=oe,It="audio";break;case wr.METADATA_STREAM_TYPE:gt=Ee,It="timed-metadata";break;default:return}Ze.payloadUnitStartIndicator&&Oe(gt,It,!0),gt.data.push(Ze),gt.size+=Ze.data.byteLength},pmt:function(){var gt={type:"metadata",tracks:[]};Ce=Ze.programMapTable,Ce.video!==null&&gt.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+Ce.video,codec:"avc",type:"video"}),Ce.audio!==null&&gt.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+Ce.audio,codec:"adts",type:"audio"}),Te=!0,ue.trigger("data",gt)}})[Ze.type]()},this.reset=function(){Se.size=0,Se.data.length=0,oe.size=0,oe.data.length=0,this.trigger("reset")},this.flushStreams_=function(){Oe(Se,"video"),Oe(oe,"audio"),Oe(Ee,"timed-metadata")},this.flush=function(){if(!Te&&Ce){var Ze={type:"metadata",tracks:[]};Ce.video!==null&&Ze.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+Ce.video,codec:"avc",type:"video"}),Ce.audio!==null&&Ze.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+Ce.audio,codec:"adts",type:"audio"}),ue.trigger("data",Ze)}Te=!1,this.flushStreams_(),this.trigger("done")}},xr.prototype=new e;var br={PAT_PID:0,MP2T_PACKET_LENGTH:pr,TransportPacketStream:Nt,TransportParseStream:Gt,ElementaryStream:xr,TimestampRolloverStream:rr,CaptionStream:Jt.CaptionStream,Cea608Stream:Jt.Cea608Stream,Cea708Stream:Jt.Cea708Stream,MetadataStream:Sr};for(var Nr in wr)wr.hasOwnProperty(Nr)&&(br[Nr]=wr[Nr]);var Yr=br,ei=te.ONE_SECOND_IN_TS,Hr,Pt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Hr=function(ue){var Te,Se=0;Hr.prototype.init.call(this),this.skipWarn_=function(oe,Ee){this.trigger("log",{level:"warn",message:"adts skiping bytes "+oe+" to "+Ee+" in frame "+Se+" outside syncword"})},this.push=function(oe){var Ee=0,Ce,Ue,Oe,Ze,Ke;if(ue||(Se=0),oe.type==="audio"){Te&&Te.length?(Oe=Te,Te=new Uint8Array(Oe.byteLength+oe.data.byteLength),Te.set(Oe),Te.set(oe.data,Oe.byteLength)):Te=oe.data;for(var gt;Ee+7<Te.length;){if(Te[Ee]!==255||(Te[Ee+1]&246)!==240){typeof gt!="number"&&(gt=Ee),Ee++;continue}if(typeof gt=="number"&&(this.skipWarn_(gt,Ee),gt=null),Ue=(~Te[Ee+1]&1)*2,Ce=(Te[Ee+3]&3)<<11|Te[Ee+4]<<3|(Te[Ee+5]&224)>>5,Ze=((Te[Ee+6]&3)+1)*1024,Ke=Ze*ei/Pt[(Te[Ee+2]&60)>>>2],Te.byteLength-Ee<Ce)break;this.trigger("data",{pts:oe.pts+Se*Ke,dts:oe.dts+Se*Ke,sampleCount:Ze,audioobjecttype:(Te[Ee+2]>>>6&3)+1,channelcount:(Te[Ee+2]&1)<<2|(Te[Ee+3]&192)>>>6,samplerate:Pt[(Te[Ee+2]&60)>>>2],samplingfrequencyindex:(Te[Ee+2]&60)>>>2,samplesize:16,data:Te.subarray(Ee+7+Ue,Ee+Ce)}),Se++,Ee+=Ce}typeof gt=="number"&&(this.skipWarn_(gt,Ee),gt=null),Te=Te.subarray(Ee)}},this.flush=function(){Se=0,this.trigger("done")},this.reset=function(){Te=void 0,this.trigger("reset")},this.endTimeline=function(){Te=void 0,this.trigger("endedtimeline")}},Hr.prototype=new e;var Jr=Hr,Xr;Xr=function(ue){var Te=ue.byteLength,Se=0,oe=0;this.length=function(){return 8*Te},this.bitsAvailable=function(){return 8*Te+oe},this.loadWord=function(){var Ee=ue.byteLength-Te,Ce=new Uint8Array(4),Ue=Math.min(4,Te);if(Ue===0)throw new Error("no bytes available");Ce.set(ue.subarray(Ee,Ee+Ue)),Se=new DataView(Ce.buffer).getUint32(0),oe=Ue*8,Te-=Ue},this.skipBits=function(Ee){var Ce;oe>Ee?(Se<<=Ee,oe-=Ee):(Ee-=oe,Ce=Math.floor(Ee/8),Ee-=Ce*8,Te-=Ce,this.loadWord(),Se<<=Ee,oe-=Ee)},this.readBits=function(Ee){var Ce=Math.min(oe,Ee),Ue=Se>>>32-Ce;return oe-=Ce,oe>0?Se<<=Ce:Te>0&&this.loadWord(),Ce=Ee-Ce,Ce>0?Ue<<Ce|this.readBits(Ce):Ue},this.skipLeadingZeros=function(){var Ee;for(Ee=0;Ee<oe;++Ee)if(Se&2147483648>>>Ee)return Se<<=Ee,oe-=Ee,Ee;return this.loadWord(),Ee+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var Ee=this.skipLeadingZeros();return this.readBits(Ee+1)-1},this.readExpGolomb=function(){var Ee=this.readUnsignedExpGolomb();return 1&Ee?1+Ee>>>1:-1*(Ee>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var fi=Xr,ce,xe,Be;xe=function(){var ue=0,Te,Se;xe.prototype.init.call(this),this.push=function(oe){var Ee;Se?(Ee=new Uint8Array(Se.byteLength+oe.data.byteLength),Ee.set(Se),Ee.set(oe.data,Se.byteLength),Se=Ee):Se=oe.data;for(var Ce=Se.byteLength;ue<Ce-3;ue++)if(Se[ue+2]===1){Te=ue+5;break}for(;Te<Ce;)switch(Se[Te]){case 0:if(Se[Te-1]!==0){Te+=2;break}else if(Se[Te-2]!==0){Te++;break}ue+3!==Te-2&&this.trigger("data",Se.subarray(ue+3,Te-2));do Te++;while(Se[Te]!==1&&Te<Ce);ue=Te-2,Te+=3;break;case 1:if(Se[Te-1]!==0||Se[Te-2]!==0){Te+=3;break}this.trigger("data",Se.subarray(ue+3,Te-2)),ue=Te-2,Te+=3;break;default:Te+=3;break}Se=Se.subarray(ue),Te-=ue,ue=0},this.reset=function(){Se=null,ue=0,this.trigger("reset")},this.flush=function(){Se&&Se.byteLength>3&&this.trigger("data",Se.subarray(ue+3)),Se=null,ue=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},xe.prototype=new e,Be={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},ce=function(){var ue=new xe,Te,Se,oe,Ee,Ce,Ue,Oe;ce.prototype.init.call(this),Te=this,this.push=function(Ze){Ze.type==="video"&&(Se=Ze.trackId,oe=Ze.pts,Ee=Ze.dts,ue.push(Ze))},ue.on("data",function(Ze){var Ke={trackId:Se,pts:oe,dts:Ee,data:Ze,nalUnitTypeCode:Ze[0]&31};switch(Ke.nalUnitTypeCode){case 5:Ke.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:Ke.nalUnitType="sei_rbsp",Ke.escapedRBSP=Ce(Ze.subarray(1));break;case 7:Ke.nalUnitType="seq_parameter_set_rbsp",Ke.escapedRBSP=Ce(Ze.subarray(1)),Ke.config=Ue(Ke.escapedRBSP);break;case 8:Ke.nalUnitType="pic_parameter_set_rbsp";break;case 9:Ke.nalUnitType="access_unit_delimiter_rbsp";break}Te.trigger("data",Ke)}),ue.on("done",function(){Te.trigger("done")}),ue.on("partialdone",function(){Te.trigger("partialdone")}),ue.on("reset",function(){Te.trigger("reset")}),ue.on("endedtimeline",function(){Te.trigger("endedtimeline")}),this.flush=function(){ue.flush()},this.partialFlush=function(){ue.partialFlush()},this.reset=function(){ue.reset()},this.endTimeline=function(){ue.endTimeline()},Oe=function(Ke,gt){var It=8,ir=8,cr,Zt;for(cr=0;cr<Ke;cr++)ir!==0&&(Zt=gt.readExpGolomb(),ir=(It+Zt+256)%256),It=ir===0?It:ir},Ce=function(Ke){for(var gt=Ke.byteLength,It=[],ir=1,cr,Zt;ir<gt-2;)Ke[ir]===0&&Ke[ir+1]===0&&Ke[ir+2]===3?(It.push(ir+2),ir+=2):ir++;if(It.length===0)return Ke;cr=gt-It.length,Zt=new Uint8Array(cr);var qr=0;for(ir=0;ir<cr;qr++,ir++)qr===It[0]&&(qr++,It.shift()),Zt[ir]=Ke[qr];return Zt},Ue=function(Ke){var gt=0,It=0,ir=0,cr=0,Zt,qr,Gr,ii,Mi,Li,Bi,Vi,yn,ui,is,Ii=[1,1],Ea,na;if(Zt=new fi(Ke),qr=Zt.readUnsignedByte(),ii=Zt.readUnsignedByte(),Gr=Zt.readUnsignedByte(),Zt.skipUnsignedExpGolomb(),Be[qr]&&(Mi=Zt.readUnsignedExpGolomb(),Mi===3&&Zt.skipBits(1),Zt.skipUnsignedExpGolomb(),Zt.skipUnsignedExpGolomb(),Zt.skipBits(1),Zt.readBoolean()))for(is=Mi!==3?8:12,na=0;na<is;na++)Zt.readBoolean()&&(na<6?Oe(16,Zt):Oe(64,Zt));if(Zt.skipUnsignedExpGolomb(),Li=Zt.readUnsignedExpGolomb(),Li===0)Zt.readUnsignedExpGolomb();else if(Li===1)for(Zt.skipBits(1),Zt.skipExpGolomb(),Zt.skipExpGolomb(),Bi=Zt.readUnsignedExpGolomb(),na=0;na<Bi;na++)Zt.skipExpGolomb();if(Zt.skipUnsignedExpGolomb(),Zt.skipBits(1),Vi=Zt.readUnsignedExpGolomb(),yn=Zt.readUnsignedExpGolomb(),ui=Zt.readBits(1),ui===0&&Zt.skipBits(1),Zt.skipBits(1),Zt.readBoolean()&&(gt=Zt.readUnsignedExpGolomb(),It=Zt.readUnsignedExpGolomb(),ir=Zt.readUnsignedExpGolomb(),cr=Zt.readUnsignedExpGolomb()),Zt.readBoolean()&&Zt.readBoolean()){switch(Ea=Zt.readUnsignedByte(),Ea){case 1:Ii=[1,1];break;case 2:Ii=[12,11];break;case 3:Ii=[10,11];break;case 4:Ii=[16,11];break;case 5:Ii=[40,33];break;case 6:Ii=[24,11];break;case 7:Ii=[20,11];break;case 8:Ii=[32,11];break;case 9:Ii=[80,33];break;case 10:Ii=[18,11];break;case 11:Ii=[15,11];break;case 12:Ii=[64,33];break;case 13:Ii=[160,99];break;case 14:Ii=[4,3];break;case 15:Ii=[3,2];break;case 16:Ii=[2,1];break;case 255:{Ii=[Zt.readUnsignedByte()<<8|Zt.readUnsignedByte(),Zt.readUnsignedByte()<<8|Zt.readUnsignedByte()];break}}Ii&&Ii[0]/Ii[1]}return{profileIdc:qr,levelIdc:Gr,profileCompatibility:ii,width:(Vi+1)*16-gt*2-It*2,height:(2-ui)*(yn+1)*16-ir*2-cr*2,sarRatio:Ii}}},ce.prototype=new e;var Fe={H264Stream:ce,NalByteStream:xe},Xe=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],ct=function(ue,Te){var Se=ue[Te+6]<<21|ue[Te+7]<<14|ue[Te+8]<<7|ue[Te+9],oe=ue[Te+5],Ee=(oe&16)>>4;return Se=Se>=0?Se:0,Ee?Se+20:Se+10},we=function it(ue,Te){return ue.length-Te<10||ue[Te]!==73||ue[Te+1]!==68||ue[Te+2]!==51?Te:(Te+=ct(ue,Te),it(ue,Te))},Ae=function(ue){var Te=we(ue,0);return ue.length>=Te+2&&(ue[Te]&255)===255&&(ue[Te+1]&240)===240&&(ue[Te+1]&22)===16},Re=function(ue){return ue[0]<<21|ue[1]<<14|ue[2]<<7|ue[3]},rt=function(ue,Te,Se){var oe,Ee="";for(oe=Te;oe<Se;oe++)Ee+="%"+("00"+ue[oe].toString(16)).slice(-2);return Ee},St=function(ue,Te,Se){return unescape(rt(ue,Te,Se))},Lt=function(ue,Te){var Se=(ue[Te+5]&224)>>5,oe=ue[Te+4]<<3,Ee=ue[Te+3]&6144;return Ee|oe|Se},Ft=function(ue,Te){return ue[Te]===73&&ue[Te+1]===68&&ue[Te+2]===51?"timed-metadata":ue[Te]&!0&&(ue[Te+1]&240)===240?"audio":null},$t=function(ue){for(var Te=0;Te+5<ue.length;){if(ue[Te]!==255||(ue[Te+1]&246)!==240){Te++;continue}return Xe[(ue[Te+2]&60)>>>2]}return null},nr=function(ue){var Te,Se,oe,Ee;Te=10,ue[5]&64&&(Te+=4,Te+=Re(ue.subarray(10,14)));do{if(Se=Re(ue.subarray(Te+4,Te+8)),Se<1)return null;if(Ee=String.fromCharCode(ue[Te],ue[Te+1],ue[Te+2],ue[Te+3]),Ee==="PRIV"){oe=ue.subarray(Te+10,Te+Se+10);for(var Ce=0;Ce<oe.byteLength;Ce++)if(oe[Ce]===0){var Ue=St(oe,0,Ce);if(Ue==="com.apple.streaming.transportStreamTimestamp"){var Oe=oe.subarray(Ce+1),Ze=(Oe[3]&1)<<30|Oe[4]<<22|Oe[5]<<14|Oe[6]<<6|Oe[7]>>>2;return Ze*=4,Ze+=Oe[7]&3,Ze}break}}Te+=10,Te+=Se}while(Te<ue.byteLength);return null},gr={isLikelyAacData:Ae,parseId3TagSize:ct,parseAdtsSize:Lt,parseType:Ft,parseSampleRate:$t,parseAacTimestamp:nr},fr;fr=function(){var ue=new Uint8Array,Te=0;fr.prototype.init.call(this),this.setTimestamp=function(Se){Te=Se},this.push=function(Se){var oe=0,Ee=0,Ce,Ue,Oe,Ze;for(ue.length?(Ze=ue.length,ue=new Uint8Array(Se.byteLength+Ze),ue.set(ue.subarray(0,Ze)),ue.set(Se,Ze)):ue=Se;ue.length-Ee>=3;){if(ue[Ee]===73&&ue[Ee+1]===68&&ue[Ee+2]===51){if(ue.length-Ee<10||(oe=gr.parseId3TagSize(ue,Ee),Ee+oe>ue.length))break;Ue={type:"timed-metadata",data:ue.subarray(Ee,Ee+oe)},this.trigger("data",Ue),Ee+=oe;continue}else if((ue[Ee]&255)===255&&(ue[Ee+1]&240)===240){if(ue.length-Ee<7||(oe=gr.parseAdtsSize(ue,Ee),Ee+oe>ue.length))break;Oe={type:"audio",data:ue.subarray(Ee,Ee+oe),pts:Te,dts:Te},this.trigger("data",Oe),Ee+=oe;continue}Ee++}Ce=ue.length-Ee,Ce>0?ue=ue.subarray(Ee):ue=new Uint8Array},this.reset=function(){ue=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){ue=new Uint8Array,this.trigger("endedtimeline")}},fr.prototype=new e;var ar=fr,Ur=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Er=Ur,Pr=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],_r=Pr,ti=Fe.H264Stream,Qr=gr.isLikelyAacData,ri=te.ONE_SECOND_IN_TS,Xi,Zi,li,oi,Tn=function(ue,Te){Te.stream=ue,this.trigger("log",Te)},an=function(ue,Te){for(var Se=Object.keys(Te),oe=0;oe<Se.length;oe++){var Ee=Se[oe];Ee==="headOfPipeline"||!Te[Ee].on||Te[Ee].on("log",Tn.bind(ue,Ee))}},Rn=function(ue,Te){var Se;if(ue.length!==Te.length)return!1;for(Se=0;Se<ue.length;Se++)if(ue[Se]!==Te[Se])return!1;return!0},Ui=function(ue,Te,Se,oe,Ee,Ce){var Ue=Se-Te,Oe=oe-Te,Ze=Ee-Se;return{start:{dts:ue,pts:ue+Ue},end:{dts:ue+Oe,pts:ue+Ze},prependedContentDuration:Ce,baseMediaDecodeTime:ue}};Zi=function(ue,Te){var Se=[],oe,Ee=0,Ce=0,Ue=1/0;Te=Te||{},oe=Te.firstSequenceNumber||0,Zi.prototype.init.call(this),this.push=function(Oe){yt.collectDtsInfo(ue,Oe),ue&&Er.forEach(function(Ze){ue[Ze]=Oe[Ze]}),Se.push(Oe)},this.setEarliestDts=function(Oe){Ee=Oe},this.setVideoBaseMediaDecodeTime=function(Oe){Ue=Oe},this.setAudioAppendStart=function(Oe){Ce=Oe},this.flush=function(){var Oe,Ze,Ke,gt,It,ir,cr;if(Se.length===0){this.trigger("done","AudioSegmentStream");return}Oe=De.trimAdtsFramesByEarliestDts(Se,ue,Ee),ue.baseMediaDecodeTime=yt.calculateTrackBaseMediaDecodeTime(ue,Te.keepOriginalTimestamps),cr=De.prefixWithSilence(ue,Oe,Ce,Ue),ue.samples=De.generateSampleTable(Oe),Ke=X.mdat(De.concatenateFrameData(Oe)),Se=[],Ze=X.moof(oe,[ue]),gt=new Uint8Array(Ze.byteLength+Ke.byteLength),oe++,gt.set(Ze),gt.set(Ke,Ze.byteLength),yt.clearDtsInfo(ue),It=Math.ceil(ri*1024/ue.samplerate),Oe.length&&(ir=Oe.length*It,this.trigger("segmentTimingInfo",Ui(te.audioTsToVideoTs(ue.baseMediaDecodeTime,ue.samplerate),Oe[0].dts,Oe[0].pts,Oe[0].dts+ir,Oe[0].pts+ir,cr||0)),this.trigger("timingInfo",{start:Oe[0].pts,end:Oe[0].pts+ir})),this.trigger("data",{track:ue,boxes:gt}),this.trigger("done","AudioSegmentStream")},this.reset=function(){yt.clearDtsInfo(ue),Se=[],this.trigger("reset")}},Zi.prototype=new e,Xi=function(ue,Te){var Se,oe=[],Ee=[],Ce,Ue;Te=Te||{},Se=Te.firstSequenceNumber||0,Xi.prototype.init.call(this),delete ue.minPTS,this.gopCache_=[],this.push=function(Oe){yt.collectDtsInfo(ue,Oe),Oe.nalUnitType==="seq_parameter_set_rbsp"&&!Ce&&(Ce=Oe.config,ue.sps=[Oe.data],_r.forEach(function(Ze){ue[Ze]=Ce[Ze]},this)),Oe.nalUnitType==="pic_parameter_set_rbsp"&&!Ue&&(Ue=Oe.data,ue.pps=[Oe.data]),oe.push(Oe)},this.flush=function(){for(var Oe,Ze,Ke,gt,It,ir,cr=0,Zt,qr;oe.length&&oe[0].nalUnitType!=="access_unit_delimiter_rbsp";)oe.shift();if(oe.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(Oe=dt.groupNalsIntoFrames(oe),Ke=dt.groupFramesIntoGops(Oe),Ke[0][0].keyFrame||(Ze=this.getGopForFusion_(oe[0],ue),Ze?(cr=Ze.duration,Ke.unshift(Ze),Ke.byteLength+=Ze.byteLength,Ke.nalCount+=Ze.nalCount,Ke.pts=Ze.pts,Ke.dts=Ze.dts,Ke.duration+=Ze.duration):Ke=dt.extendFirstKeyFrame(Ke)),Ee.length){var Gr;if(Te.alignGopsAtEnd?Gr=this.alignGopsAtEnd_(Ke):Gr=this.alignGopsAtStart_(Ke),!Gr){this.gopCache_.unshift({gop:Ke.pop(),pps:ue.pps,sps:ue.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),oe=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}yt.clearDtsInfo(ue),Ke=Gr}yt.collectDtsInfo(ue,Ke),ue.samples=dt.generateSampleTable(Ke),It=X.mdat(dt.concatenateNalData(Ke)),ue.baseMediaDecodeTime=yt.calculateTrackBaseMediaDecodeTime(ue,Te.keepOriginalTimestamps),this.trigger("processedGopsInfo",Ke.map(function(ii){return{pts:ii.pts,dts:ii.dts,byteLength:ii.byteLength}})),Zt=Ke[0],qr=Ke[Ke.length-1],this.trigger("segmentTimingInfo",Ui(ue.baseMediaDecodeTime,Zt.dts,Zt.pts,qr.dts+qr.duration,qr.pts+qr.duration,cr)),this.trigger("timingInfo",{start:Ke[0].pts,end:Ke[Ke.length-1].pts+Ke[Ke.length-1].duration}),this.gopCache_.unshift({gop:Ke.pop(),pps:ue.pps,sps:ue.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),oe=[],this.trigger("baseMediaDecodeTime",ue.baseMediaDecodeTime),this.trigger("timelineStartInfo",ue.timelineStartInfo),gt=X.moof(Se,[ue]),ir=new Uint8Array(gt.byteLength+It.byteLength),Se++,ir.set(gt),ir.set(It,gt.byteLength),this.trigger("data",{track:ue,boxes:ir}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),oe=[],this.gopCache_.length=0,Ee.length=0,this.trigger("reset")},this.resetStream_=function(){yt.clearDtsInfo(ue),Ce=void 0,Ue=void 0},this.getGopForFusion_=function(Oe){var Ze=45e3,Ke=1e4,gt=1/0,It,ir,cr,Zt,qr;for(qr=0;qr<this.gopCache_.length;qr++)Zt=this.gopCache_[qr],cr=Zt.gop,!(!(ue.pps&&Rn(ue.pps[0],Zt.pps[0]))||!(ue.sps&&Rn(ue.sps[0],Zt.sps[0])))&&(cr.dts<ue.timelineStartInfo.dts||(It=Oe.dts-cr.dts-cr.duration,It>=-Ke&&It<=Ze&&(!ir||gt>It)&&(ir=Zt,gt=It)));return ir?ir.gop:null},this.alignGopsAtStart_=function(Oe){var Ze,Ke,gt,It,ir,cr,Zt,qr;for(ir=Oe.byteLength,cr=Oe.nalCount,Zt=Oe.duration,Ze=Ke=0;Ze<Ee.length&&Ke<Oe.length&&(gt=Ee[Ze],It=Oe[Ke],gt.pts!==It.pts);){if(It.pts>gt.pts){Ze++;continue}Ke++,ir-=It.byteLength,cr-=It.nalCount,Zt-=It.duration}return Ke===0?Oe:Ke===Oe.length?null:(qr=Oe.slice(Ke),qr.byteLength=ir,qr.duration=Zt,qr.nalCount=cr,qr.pts=qr[0].pts,qr.dts=qr[0].dts,qr)},this.alignGopsAtEnd_=function(Oe){var Ze,Ke,gt,It,ir,cr;for(Ze=Ee.length-1,Ke=Oe.length-1,ir=null,cr=!1;Ze>=0&&Ke>=0;){if(gt=Ee[Ze],It=Oe[Ke],gt.pts===It.pts){cr=!0;break}if(gt.pts>It.pts){Ze--;continue}Ze===Ee.length-1&&(ir=Ke),Ke--}if(!cr&&ir===null)return null;var Zt;if(cr?Zt=Ke:Zt=ir,Zt===0)return Oe;var qr=Oe.slice(Zt),Gr=qr.reduce(function(ii,Mi){return ii.byteLength+=Mi.byteLength,ii.duration+=Mi.duration,ii.nalCount+=Mi.nalCount,ii},{byteLength:0,duration:0,nalCount:0});return qr.byteLength=Gr.byteLength,qr.duration=Gr.duration,qr.nalCount=Gr.nalCount,qr.pts=qr[0].pts,qr.dts=qr[0].dts,qr},this.alignGopsWith=function(Oe){Ee=Oe}},Xi.prototype=new e,oi=function(ue,Te){this.numberOfTracks=0,this.metadataStream=Te,ue=ue||{},typeof ue.remux<"u"?this.remuxTracks=!!ue.remux:this.remuxTracks=!0,typeof ue.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=ue.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,oi.prototype.init.call(this),this.push=function(Se){if(Se.text)return this.pendingCaptions.push(Se);if(Se.frames)return this.pendingMetadata.push(Se);this.pendingTracks.push(Se.track),this.pendingBytes+=Se.boxes.byteLength,Se.track.type==="video"&&(this.videoTrack=Se.track,this.pendingBoxes.push(Se.boxes)),Se.track.type==="audio"&&(this.audioTrack=Se.track,this.pendingBoxes.unshift(Se.boxes))}},oi.prototype=new e,oi.prototype.flush=function(it){var ue=0,Te={captions:[],captionStreams:{},metadata:[],info:{}},Se,oe,Ee,Ce=0,Ue;if(this.pendingTracks.length<this.numberOfTracks){if(it!=="VideoSegmentStream"&&it!=="AudioSegmentStream")return;if(this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(Ce=this.videoTrack.timelineStartInfo.pts,_r.forEach(function(Oe){Te.info[Oe]=this.videoTrack[Oe]},this)):this.audioTrack&&(Ce=this.audioTrack.timelineStartInfo.pts,Er.forEach(function(Oe){Te.info[Oe]=this.audioTrack[Oe]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?Te.type=this.pendingTracks[0].type:Te.type="combined",this.emittedTracks+=this.pendingTracks.length,Ee=X.initSegment(this.pendingTracks),Te.initSegment=new Uint8Array(Ee.byteLength),Te.initSegment.set(Ee),Te.data=new Uint8Array(this.pendingBytes),Ue=0;Ue<this.pendingBoxes.length;Ue++)Te.data.set(this.pendingBoxes[Ue],ue),ue+=this.pendingBoxes[Ue].byteLength;for(Ue=0;Ue<this.pendingCaptions.length;Ue++)Se=this.pendingCaptions[Ue],Se.startTime=te.metadataTsToSeconds(Se.startPts,Ce,this.keepOriginalTimestamps),Se.endTime=te.metadataTsToSeconds(Se.endPts,Ce,this.keepOriginalTimestamps),Te.captionStreams[Se.stream]=!0,Te.captions.push(Se);for(Ue=0;Ue<this.pendingMetadata.length;Ue++)oe=this.pendingMetadata[Ue],oe.cueTime=te.metadataTsToSeconds(oe.pts,Ce,this.keepOriginalTimestamps),Te.metadata.push(oe);for(Te.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",Te),Ue=0;Ue<Te.captions.length;Ue++)Se=Te.captions[Ue],this.trigger("caption",Se);for(Ue=0;Ue<Te.metadata.length;Ue++)oe=Te.metadata[Ue],this.trigger("id3Frame",oe)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},oi.prototype.setRemux=function(it){this.remuxTracks=it},li=function(ue){var Te=this,Se=!0,oe,Ee;li.prototype.init.call(this),ue=ue||{},this.baseMediaDecodeTime=ue.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var Ce={};this.transmuxPipeline_=Ce,Ce.type="aac",Ce.metadataStream=new Yr.MetadataStream,Ce.aacStream=new ar,Ce.audioTimestampRolloverStream=new Yr.TimestampRolloverStream("audio"),Ce.timedMetadataTimestampRolloverStream=new Yr.TimestampRolloverStream("timed-metadata"),Ce.adtsStream=new Jr,Ce.coalesceStream=new oi(ue,Ce.metadataStream),Ce.headOfPipeline=Ce.aacStream,Ce.aacStream.pipe(Ce.audioTimestampRolloverStream).pipe(Ce.adtsStream),Ce.aacStream.pipe(Ce.timedMetadataTimestampRolloverStream).pipe(Ce.metadataStream).pipe(Ce.coalesceStream),Ce.metadataStream.on("timestamp",function(Ue){Ce.aacStream.setTimestamp(Ue.timeStamp)}),Ce.aacStream.on("data",function(Ue){Ue.type!=="timed-metadata"&&Ue.type!=="audio"||Ce.audioSegmentStream||(Ee=Ee||{timelineStartInfo:{baseMediaDecodeTime:Te.baseMediaDecodeTime},codec:"adts",type:"audio"},Ce.coalesceStream.numberOfTracks++,Ce.audioSegmentStream=new Zi(Ee,ue),Ce.audioSegmentStream.on("log",Te.getLogTrigger_("audioSegmentStream")),Ce.audioSegmentStream.on("timingInfo",Te.trigger.bind(Te,"audioTimingInfo")),Ce.adtsStream.pipe(Ce.audioSegmentStream).pipe(Ce.coalesceStream),Te.trigger("trackinfo",{hasAudio:!!Ee,hasVideo:!!oe}))}),Ce.coalesceStream.on("data",this.trigger.bind(this,"data")),Ce.coalesceStream.on("done",this.trigger.bind(this,"done")),an(this,Ce)},this.setupTsPipeline=function(){var Ce={};this.transmuxPipeline_=Ce,Ce.type="ts",Ce.metadataStream=new Yr.MetadataStream,Ce.packetStream=new Yr.TransportPacketStream,Ce.parseStream=new Yr.TransportParseStream,Ce.elementaryStream=new Yr.ElementaryStream,Ce.timestampRolloverStream=new Yr.TimestampRolloverStream,Ce.adtsStream=new Jr,Ce.h264Stream=new ti,Ce.captionStream=new Yr.CaptionStream(ue),Ce.coalesceStream=new oi(ue,Ce.metadataStream),Ce.headOfPipeline=Ce.packetStream,Ce.packetStream.pipe(Ce.parseStream).pipe(Ce.elementaryStream).pipe(Ce.timestampRolloverStream),Ce.timestampRolloverStream.pipe(Ce.h264Stream),Ce.timestampRolloverStream.pipe(Ce.adtsStream),Ce.timestampRolloverStream.pipe(Ce.metadataStream).pipe(Ce.coalesceStream),Ce.h264Stream.pipe(Ce.captionStream).pipe(Ce.coalesceStream),Ce.elementaryStream.on("data",function(Ue){var Oe;if(Ue.type==="metadata"){for(Oe=Ue.tracks.length;Oe--;)!oe&&Ue.tracks[Oe].type==="video"?(oe=Ue.tracks[Oe],oe.timelineStartInfo.baseMediaDecodeTime=Te.baseMediaDecodeTime):!Ee&&Ue.tracks[Oe].type==="audio"&&(Ee=Ue.tracks[Oe],Ee.timelineStartInfo.baseMediaDecodeTime=Te.baseMediaDecodeTime);oe&&!Ce.videoSegmentStream&&(Ce.coalesceStream.numberOfTracks++,Ce.videoSegmentStream=new Xi(oe,ue),Ce.videoSegmentStream.on("log",Te.getLogTrigger_("videoSegmentStream")),Ce.videoSegmentStream.on("timelineStartInfo",function(Ze){Ee&&!ue.keepOriginalTimestamps&&(Ee.timelineStartInfo=Ze,Ce.audioSegmentStream.setEarliestDts(Ze.dts-Te.baseMediaDecodeTime))}),Ce.videoSegmentStream.on("processedGopsInfo",Te.trigger.bind(Te,"gopInfo")),Ce.videoSegmentStream.on("segmentTimingInfo",Te.trigger.bind(Te,"videoSegmentTimingInfo")),Ce.videoSegmentStream.on("baseMediaDecodeTime",function(Ze){Ee&&Ce.audioSegmentStream.setVideoBaseMediaDecodeTime(Ze)}),Ce.videoSegmentStream.on("timingInfo",Te.trigger.bind(Te,"videoTimingInfo")),Ce.h264Stream.pipe(Ce.videoSegmentStream).pipe(Ce.coalesceStream)),Ee&&!Ce.audioSegmentStream&&(Ce.coalesceStream.numberOfTracks++,Ce.audioSegmentStream=new Zi(Ee,ue),Ce.audioSegmentStream.on("log",Te.getLogTrigger_("audioSegmentStream")),Ce.audioSegmentStream.on("timingInfo",Te.trigger.bind(Te,"audioTimingInfo")),Ce.audioSegmentStream.on("segmentTimingInfo",Te.trigger.bind(Te,"audioSegmentTimingInfo")),Ce.adtsStream.pipe(Ce.audioSegmentStream).pipe(Ce.coalesceStream)),Te.trigger("trackinfo",{hasAudio:!!Ee,hasVideo:!!oe})}}),Ce.coalesceStream.on("data",this.trigger.bind(this,"data")),Ce.coalesceStream.on("id3Frame",function(Ue){Ue.dispatchType=Ce.metadataStream.dispatchType,Te.trigger("id3Frame",Ue)}),Ce.coalesceStream.on("caption",this.trigger.bind(this,"caption")),Ce.coalesceStream.on("done",this.trigger.bind(this,"done")),an(this,Ce)},this.setBaseMediaDecodeTime=function(Ce){var Ue=this.transmuxPipeline_;ue.keepOriginalTimestamps||(this.baseMediaDecodeTime=Ce),Ee&&(Ee.timelineStartInfo.dts=void 0,Ee.timelineStartInfo.pts=void 0,yt.clearDtsInfo(Ee),Ue.audioTimestampRolloverStream&&Ue.audioTimestampRolloverStream.discontinuity()),oe&&(Ue.videoSegmentStream&&(Ue.videoSegmentStream.gopCache_=[]),oe.timelineStartInfo.dts=void 0,oe.timelineStartInfo.pts=void 0,yt.clearDtsInfo(oe),Ue.captionStream.reset()),Ue.timestampRolloverStream&&Ue.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(Ce){Ee&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(Ce)},this.setRemux=function(Ce){var Ue=this.transmuxPipeline_;ue.remux=Ce,Ue&&Ue.coalesceStream&&Ue.coalesceStream.setRemux(Ce)},this.alignGopsWith=function(Ce){oe&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(Ce)},this.getLogTrigger_=function(Ce){var Ue=this;return function(Oe){Oe.stream=Ce,Ue.trigger("log",Oe)}},this.push=function(Ce){if(Se){var Ue=Qr(Ce);Ue&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!Ue&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),Se=!1}this.transmuxPipeline_.headOfPipeline.push(Ce)},this.flush=function(){Se=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},li.prototype=new e;var sn={Transmuxer:li,VideoSegmentStream:Xi,AudioSegmentStream:Zi,AUDIO_PROPERTIES:Er,VIDEO_PROPERTIES:_r,generateSegmentTimingInfo:Ui},Gn=function(ue){return ue>>>0},Jn=function(ue){return("00"+ue.toString(16)).slice(-2)},Nn={toUnsigned:Gn,toHexString:Jn},ki=function(ue){var Te="";return Te+=String.fromCharCode(ue[0]),Te+=String.fromCharCode(ue[1]),Te+=String.fromCharCode(ue[2]),Te+=String.fromCharCode(ue[3]),Te},Ki=ki,Ji=Nn.toUnsigned,ea=function it(ue,Te){var Se=[],oe,Ee,Ce,Ue,Oe;if(!Te.length)return null;for(oe=0;oe<ue.byteLength;)Ee=Ji(ue[oe]<<24|ue[oe+1]<<16|ue[oe+2]<<8|ue[oe+3]),Ce=Ki(ue.subarray(oe+4,oe+8)),Ue=Ee>1?oe+Ee:ue.byteLength,Ce===Te[0]&&(Te.length===1?Se.push(ue.subarray(oe+8,Ue)):(Oe=it(ue.subarray(oe+8,Ue),Te.slice(1)),Oe.length&&(Se=Se.concat(Oe)))),oe=Ue;return Se},gi=ea,Hi=Nn.toUnsigned,Y=t.getUint64,ne=function(ue){var Te={version:ue[0],flags:new Uint8Array(ue.subarray(1,4))};return Te.version===1?Te.baseMediaDecodeTime=Y(ue.subarray(4)):Te.baseMediaDecodeTime=Hi(ue[4]<<24|ue[5]<<16|ue[6]<<8|ue[7]),Te},ke=ne,Le=function(ue){return{isLeading:(ue[0]&12)>>>2,dependsOn:ue[0]&3,isDependedOn:(ue[1]&192)>>>6,hasRedundancy:(ue[1]&48)>>>4,paddingValue:(ue[1]&14)>>>1,isNonSyncSample:ue[1]&1,degradationPriority:ue[2]<<8|ue[3]}},He=Le,Ve=function(ue){var Te={version:ue[0],flags:new Uint8Array(ue.subarray(1,4)),samples:[]},Se=new DataView(ue.buffer,ue.byteOffset,ue.byteLength),oe=Te.flags[2]&1,Ee=Te.flags[2]&4,Ce=Te.flags[1]&1,Ue=Te.flags[1]&2,Oe=Te.flags[1]&4,Ze=Te.flags[1]&8,Ke=Se.getUint32(4),gt=8,It;for(oe&&(Te.dataOffset=Se.getInt32(gt),gt+=4),Ee&&Ke&&(It={flags:He(ue.subarray(gt,gt+4))},gt+=4,Ce&&(It.duration=Se.getUint32(gt),gt+=4),Ue&&(It.size=Se.getUint32(gt),gt+=4),Ze&&(Te.version===1?It.compositionTimeOffset=Se.getInt32(gt):It.compositionTimeOffset=Se.getUint32(gt),gt+=4),Te.samples.push(It),Ke--);Ke--;)It={},Ce&&(It.duration=Se.getUint32(gt),gt+=4),Ue&&(It.size=Se.getUint32(gt),gt+=4),Oe&&(It.flags=He(ue.subarray(gt,gt+4)),gt+=4),Ze&&(Te.version===1?It.compositionTimeOffset=Se.getInt32(gt):It.compositionTimeOffset=Se.getUint32(gt),gt+=4),Te.samples.push(It);return Te},nt=Ve,Ot=function(ue){var Te=new DataView(ue.buffer,ue.byteOffset,ue.byteLength),Se={version:ue[0],flags:new Uint8Array(ue.subarray(1,4)),trackId:Te.getUint32(4)},oe=Se.flags[2]&1,Ee=Se.flags[2]&2,Ce=Se.flags[2]&8,Ue=Se.flags[2]&16,Oe=Se.flags[2]&32,Ze=Se.flags[0]&65536,Ke=Se.flags[0]&131072,gt;return gt=8,oe&&(gt+=4,Se.baseDataOffset=Te.getUint32(12),gt+=4),Ee&&(Se.sampleDescriptionIndex=Te.getUint32(gt),gt+=4),Ce&&(Se.defaultSampleDuration=Te.getUint32(gt),gt+=4),Ue&&(Se.defaultSampleSize=Te.getUint32(gt),gt+=4),Oe&&(Se.defaultSampleFlags=Te.getUint32(gt)),Ze&&(Se.durationIsEmpty=!0),!oe&&Ke&&(Se.baseDataOffsetIsMoof=!0),Se},At=Ot,Vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$1<"u"?global$1:typeof self<"u"?self:{},or;typeof window<"u"?or=window:typeof Vt<"u"?or=Vt:typeof self<"u"?or=self:or={};var yr=or,er=Ut.discardEmulationPreventionBytes,$r=Jt.CaptionStream,Kr=function(ue,Te){for(var Se=ue,oe=0;oe<Te.length;oe++){var Ee=Te[oe];if(Se<Ee.size)return Ee;Se-=Ee.size}return null},hi=function(ue,Te,Se){var oe=new DataView(ue.buffer,ue.byteOffset,ue.byteLength),Ee={logs:[],seiNals:[]},Ce,Ue,Oe,Ze;for(Ue=0;Ue+4<ue.length;Ue+=Oe)if(Oe=oe.getUint32(Ue),Ue+=4,!(Oe<=0))switch(ue[Ue]&31){case 6:var Ke=ue.subarray(Ue+1,Ue+1+Oe),gt=Kr(Ue,Te);if(Ce={nalUnitType:"sei_rbsp",size:Oe,data:Ke,escapedRBSP:er(Ke),trackId:Se},gt)Ce.pts=gt.pts,Ce.dts=gt.dts,Ze=gt;else if(Ze)Ce.pts=Ze.pts,Ce.dts=Ze.dts;else{Ee.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+Ue+" for trackId "+Se+". See mux.js#223."});break}Ee.seiNals.push(Ce);break}return Ee},ci=function(ue,Te,Se){var oe=Te,Ee=Se.defaultSampleDuration||0,Ce=Se.defaultSampleSize||0,Ue=Se.trackId,Oe=[];return ue.forEach(function(Ze){var Ke=nt(Ze),gt=Ke.samples;gt.forEach(function(It){It.duration===void 0&&(It.duration=Ee),It.size===void 0&&(It.size=Ce),It.trackId=Ue,It.dts=oe,It.compositionTimeOffset===void 0&&(It.compositionTimeOffset=0),typeof oe=="bigint"?(It.pts=oe+yr.BigInt(It.compositionTimeOffset),oe+=yr.BigInt(It.duration)):(It.pts=oe+It.compositionTimeOffset,oe+=It.duration)}),Oe=Oe.concat(gt)}),Oe},ji=function(ue,Te){var Se=gi(ue,["moof","traf"]),oe=gi(ue,["mdat"]),Ee={},Ce=[];return oe.forEach(function(Ue,Oe){var Ze=Se[Oe];Ce.push({mdat:Ue,traf:Ze})}),Ce.forEach(function(Ue){var Oe=Ue.mdat,Ze=Ue.traf,Ke=gi(Ze,["tfhd"]),gt=At(Ke[0]),It=gt.trackId,ir=gi(Ze,["tfdt"]),cr=ir.length>0?ke(ir[0]).baseMediaDecodeTime:0,Zt=gi(Ze,["trun"]),qr,Gr;Te===It&&Zt.length>0&&(qr=ci(Zt,cr,gt),Gr=hi(Oe,qr,It),Ee[It]||(Ee[It]={seiNals:[],logs:[]}),Ee[It].seiNals=Ee[It].seiNals.concat(Gr.seiNals),Ee[It].logs=Ee[It].logs.concat(Gr.logs))}),Ee},Pi=function(ue,Te,Se){var oe;if(Te===null)return null;oe=ji(ue,Te);var Ee=oe[Te]||{};return{seiNals:Ee.seiNals,logs:Ee.logs,timescale:Se}},pn=function(){var ue=!1,Te,Se,oe,Ee,Ce,Ue;this.isInitialized=function(){return ue},this.init=function(Oe){Te=new $r,ue=!0,Ue=Oe?Oe.isPartial:!1,Te.on("data",function(Ze){Ze.startTime=Ze.startPts/Ee,Ze.endTime=Ze.endPts/Ee,Ce.captions.push(Ze),Ce.captionStreams[Ze.stream]=!0}),Te.on("log",function(Ze){Ce.logs.push(Ze)})},this.isNewInit=function(Oe,Ze){return Oe&&Oe.length===0||Ze&&typeof Ze=="object"&&Object.keys(Ze).length===0?!1:oe!==Oe[0]||Ee!==Ze[oe]},this.parse=function(Oe,Ze,Ke){var gt;if(this.isInitialized()){if(!Ze||!Ke)return null;if(this.isNewInit(Ze,Ke))oe=Ze[0],Ee=Ke[oe];else if(oe===null||!Ee)return Se.push(Oe),null}else return null;for(;Se.length>0;){var It=Se.shift();this.parse(It,Ze,Ke)}return gt=Pi(Oe,oe,Ee),gt&&gt.logs&&(Ce.logs=Ce.logs.concat(gt.logs)),gt===null||!gt.seiNals?Ce.logs.length?{logs:Ce.logs,captions:[],captionStreams:[]}:null:(this.pushNals(gt.seiNals),this.flushStream(),Ce)},this.pushNals=function(Oe){if(!this.isInitialized()||!Oe||Oe.length===0)return null;Oe.forEach(function(Ze){Te.push(Ze)})},this.flushStream=function(){if(!this.isInitialized())return null;Ue?Te.partialFlush():Te.flush()},this.clearParsedCaptions=function(){Ce.captions=[],Ce.captionStreams={},Ce.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;Te.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){Se=[],oe=null,Ee=null,Ce?this.clearParsedCaptions():Ce={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},mn=pn,di=Nn.toUnsigned,en=Nn.toHexString,vi=t.getUint64,Ai,Kn,ta,tn,Ln,Wi;Ai=function(ue){var Te={},Se=gi(ue,["moov","trak"]);return Se.reduce(function(oe,Ee){var Ce,Ue,Oe,Ze,Ke;return Ce=gi(Ee,["tkhd"])[0],!Ce||(Ue=Ce[0],Oe=Ue===0?12:20,Ze=di(Ce[Oe]<<24|Ce[Oe+1]<<16|Ce[Oe+2]<<8|Ce[Oe+3]),Ke=gi(Ee,["mdia","mdhd"])[0],!Ke)?null:(Ue=Ke[0],Oe=Ue===0?12:20,oe[Ze]=di(Ke[Oe]<<24|Ke[Oe+1]<<16|Ke[Oe+2]<<8|Ke[Oe+3]),oe)},Te)},Kn=function(ue,Te){var Se;Se=gi(Te,["moof","traf"]);var oe=Se.reduce(function(Ee,Ce){var Ue=gi(Ce,["tfhd"])[0],Oe=di(Ue[4]<<24|Ue[5]<<16|Ue[6]<<8|Ue[7]),Ze=ue[Oe]||9e4,Ke=gi(Ce,["tfdt"])[0],gt=new DataView(Ke.buffer,Ke.byteOffset,Ke.byteLength),It;Ke[0]===1?It=vi(Ke.subarray(4,12)):It=gt.getUint32(4);var ir;return typeof It=="bigint"?ir=It/yr.BigInt(Ze):typeof It=="number"&&!isNaN(It)&&(ir=It/Ze),ir<Number.MAX_SAFE_INTEGER&&(ir=Number(ir)),ir<Ee&&(Ee=ir),Ee},1/0);return typeof oe=="bigint"||isFinite(oe)?oe:0},ta=function(ue,Te){var Se=gi(Te,["moof","traf"]),oe=0,Ee=0,Ce;if(Se&&Se.length){var Ue=gi(Se[0],["tfhd"])[0],Oe=gi(Se[0],["trun"])[0],Ze=gi(Se[0],["tfdt"])[0];if(Ue){var Ke=At(Ue);Ce=Ke.trackId}if(Ze){var gt=ke(Ze);oe=gt.baseMediaDecodeTime}if(Oe){var It=nt(Oe);It.samples&&It.samples.length&&(Ee=It.samples[0].compositionTimeOffset||0)}}var ir=ue[Ce]||9e4;typeof oe=="bigint"&&(Ee=yr.BigInt(Ee),ir=yr.BigInt(ir));var cr=(oe+Ee)/ir;return typeof cr=="bigint"&&cr<Number.MAX_SAFE_INTEGER&&(cr=Number(cr)),cr},tn=function(ue){var Te=gi(ue,["moov","trak"]),Se=[];return Te.forEach(function(oe){var Ee=gi(oe,["mdia","hdlr"]),Ce=gi(oe,["tkhd"]);Ee.forEach(function(Ue,Oe){var Ze=Ki(Ue.subarray(8,12)),Ke=Ce[Oe],gt,It,ir;Ze==="vide"&&(gt=new DataView(Ke.buffer,Ke.byteOffset,Ke.byteLength),It=gt.getUint8(0),ir=It===0?gt.getUint32(12):gt.getUint32(20),Se.push(ir))})}),Se},Wi=function(ue){var Te=ue[0],Se=Te===0?12:20;return di(ue[Se]<<24|ue[Se+1]<<16|ue[Se+2]<<8|ue[Se+3])},Ln=function(ue){var Te=gi(ue,["moov","trak"]),Se=[];return Te.forEach(function(oe){var Ee={},Ce=gi(oe,["tkhd"])[0],Ue,Oe;Ce&&(Ue=new DataView(Ce.buffer,Ce.byteOffset,Ce.byteLength),Oe=Ue.getUint8(0),Ee.id=Oe===0?Ue.getUint32(12):Ue.getUint32(20));var Ze=gi(oe,["mdia","hdlr"])[0];if(Ze){var Ke=Ki(Ze.subarray(8,12));Ke==="vide"?Ee.type="video":Ke==="soun"?Ee.type="audio":Ee.type=Ke}var gt=gi(oe,["mdia","minf","stbl","stsd"])[0];if(gt){var It=gt.subarray(8);Ee.codec=Ki(It.subarray(4,8));var ir=gi(It,[Ee.codec])[0],cr,Zt;ir&&(/^[asm]vc[1-9]$/i.test(Ee.codec)?(cr=ir.subarray(78),Zt=Ki(cr.subarray(4,8)),Zt==="avcC"&&cr.length>11?(Ee.codec+=".",Ee.codec+=en(cr[9]),Ee.codec+=en(cr[10]),Ee.codec+=en(cr[11])):Ee.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(Ee.codec)?(cr=ir.subarray(28),Zt=Ki(cr.subarray(4,8)),Zt==="esds"&&cr.length>20&&cr[19]!==0?(Ee.codec+="."+en(cr[19]),Ee.codec+="."+en(cr[20]>>>2&63).replace(/^0/,"")):Ee.codec="mp4a.40.2"):Ee.codec=Ee.codec.toLowerCase())}var qr=gi(oe,["mdia","mdhd"])[0];qr&&(Ee.timescale=Wi(qr)),Se.push(Ee)}),Se};var gn={findBox:gi,parseType:Ki,timescale:Ai,startTime:Kn,compositionStartTime:ta,videoTrackIds:tn,tracks:Ln,getTimescaleFromMediaHeader:Wi},En=function(ue){var Te=ue[1]&31;return Te<<=8,Te|=ue[2],Te},$i=function(ue){return!!(ue[1]&64)},Bn=function(ue){var Te=0;return(ue[3]&48)>>>4>1&&(Te+=ue[4]+1),Te},kn=function(ue,Te){var Se=En(ue);return Se===0?"pat":Se===Te?"pmt":Te?"pes":null},vn=function(ue){var Te=$i(ue),Se=4+Bn(ue);return Te&&(Se+=ue[Se]+1),(ue[Se+10]&31)<<8|ue[Se+11]},Qi=function(ue){var Te={},Se=$i(ue),oe=4+Bn(ue);if(Se&&(oe+=ue[oe]+1),!!(ue[oe+5]&1)){var Ee,Ce,Ue;Ee=(ue[oe+1]&15)<<8|ue[oe+2],Ce=3+Ee-4,Ue=(ue[oe+10]&15)<<8|ue[oe+11];for(var Oe=12+Ue;Oe<Ce;){var Ze=oe+Oe;Te[(ue[Ze+1]&31)<<8|ue[Ze+2]]=ue[Ze],Oe+=((ue[Ze+3]&15)<<8|ue[Ze+4])+5}return Te}},wa=function(ue,Te){var Se=En(ue),oe=Te[Se];switch(oe){case wr.H264_STREAM_TYPE:return"video";case wr.ADTS_STREAM_TYPE:return"audio";case wr.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},ra=function(ue){var Te=$i(ue);if(!Te)return null;var Se=4+Bn(ue);if(Se>=ue.byteLength)return null;var oe=null,Ee;return Ee=ue[Se+7],Ee&192&&(oe={},oe.pts=(ue[Se+9]&14)<<27|(ue[Se+10]&255)<<20|(ue[Se+11]&254)<<12|(ue[Se+12]&255)<<5|(ue[Se+13]&254)>>>3,oe.pts*=4,oe.pts+=(ue[Se+13]&6)>>>1,oe.dts=oe.pts,Ee&64&&(oe.dts=(ue[Se+14]&14)<<27|(ue[Se+15]&255)<<20|(ue[Se+16]&254)<<12|(ue[Se+17]&255)<<5|(ue[Se+18]&254)>>>3,oe.dts*=4,oe.dts+=(ue[Se+18]&6)>>>1)),oe},wi=function(ue){switch(ue){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},ia=function(ue){for(var Te=4+Bn(ue),Se=ue.subarray(Te),oe=0,Ee=0,Ce=!1,Ue;Ee<Se.byteLength-3;Ee++)if(Se[Ee+2]===1){oe=Ee+5;break}for(;oe<Se.byteLength;)switch(Se[oe]){case 0:if(Se[oe-1]!==0){oe+=2;break}else if(Se[oe-2]!==0){oe++;break}Ee+3!==oe-2&&(Ue=wi(Se[Ee+3]&31),Ue==="slice_layer_without_partitioning_rbsp_idr"&&(Ce=!0));do oe++;while(Se[oe]!==1&&oe<Se.length);Ee=oe-2,oe+=3;break;case 1:if(Se[oe-1]!==0||Se[oe-2]!==0){oe+=3;break}Ue=wi(Se[Ee+3]&31),Ue==="slice_layer_without_partitioning_rbsp_idr"&&(Ce=!0),Ee=oe-2,oe+=3;break;default:oe+=3;break}return Se=Se.subarray(Ee),oe-=Ee,Ee=0,Se&&Se.byteLength>3&&(Ue=wi(Se[Ee+3]&31),Ue==="slice_layer_without_partitioning_rbsp_idr"&&(Ce=!0)),Ce},un={parseType:kn,parsePat:vn,parsePmt:Qi,parsePayloadUnitStartIndicator:$i,parsePesType:wa,parsePesTime:ra,videoPacketContainsKeyFrame:ia},ln=kr.handleRollover,Ei={};Ei.ts=un,Ei.aac=gr;var zn=te.ONE_SECOND_IN_TS,Ni=188,Di=71,Sa=function(ue,Te){for(var Se=0,oe=Ni,Ee,Ce;oe<ue.byteLength;){if(ue[Se]===Di&&ue[oe]===Di){switch(Ee=ue.subarray(Se,oe),Ce=Ei.ts.parseType(Ee,Te.pid),Ce){case"pat":Te.pid=Ei.ts.parsePat(Ee);break;case"pmt":var Ue=Ei.ts.parsePmt(Ee);Te.table=Te.table||{},Object.keys(Ue).forEach(function(Oe){Te.table[Oe]=Ue[Oe]});break}Se+=Ni,oe+=Ni;continue}Se++,oe++}},An=function(ue,Te,Se){for(var oe=0,Ee=Ni,Ce,Ue,Oe,Ze,Ke,gt=!1;Ee<=ue.byteLength;){if(ue[oe]===Di&&(ue[Ee]===Di||Ee===ue.byteLength)){switch(Ce=ue.subarray(oe,Ee),Ue=Ei.ts.parseType(Ce,Te.pid),Ue){case"pes":Oe=Ei.ts.parsePesType(Ce,Te.table),Ze=Ei.ts.parsePayloadUnitStartIndicator(Ce),Oe==="audio"&&Ze&&(Ke=Ei.ts.parsePesTime(Ce),Ke&&(Ke.type="audio",Se.audio.push(Ke),gt=!0));break}if(gt)break;oe+=Ni,Ee+=Ni;continue}oe++,Ee++}for(Ee=ue.byteLength,oe=Ee-Ni,gt=!1;oe>=0;){if(ue[oe]===Di&&(ue[Ee]===Di||Ee===ue.byteLength)){switch(Ce=ue.subarray(oe,Ee),Ue=Ei.ts.parseType(Ce,Te.pid),Ue){case"pes":Oe=Ei.ts.parsePesType(Ce,Te.table),Ze=Ei.ts.parsePayloadUnitStartIndicator(Ce),Oe==="audio"&&Ze&&(Ke=Ei.ts.parsePesTime(Ce),Ke&&(Ke.type="audio",Se.audio.push(Ke),gt=!0));break}if(gt)break;oe-=Ni,Ee-=Ni;continue}oe--,Ee--}},pa=function(ue,Te,Se){for(var oe=0,Ee=Ni,Ce,Ue,Oe,Ze,Ke,gt,It,ir,cr=!1,Zt={data:[],size:0};Ee<ue.byteLength;){if(ue[oe]===Di&&ue[Ee]===Di){switch(Ce=ue.subarray(oe,Ee),Ue=Ei.ts.parseType(Ce,Te.pid),Ue){case"pes":if(Oe=Ei.ts.parsePesType(Ce,Te.table),Ze=Ei.ts.parsePayloadUnitStartIndicator(Ce),Oe==="video"&&(Ze&&!cr&&(Ke=Ei.ts.parsePesTime(Ce),Ke&&(Ke.type="video",Se.video.push(Ke),cr=!0)),!Se.firstKeyFrame)){if(Ze&&Zt.size!==0){for(gt=new Uint8Array(Zt.size),It=0;Zt.data.length;)ir=Zt.data.shift(),gt.set(ir,It),It+=ir.byteLength;if(Ei.ts.videoPacketContainsKeyFrame(gt)){var qr=Ei.ts.parsePesTime(gt);qr?(Se.firstKeyFrame=qr,Se.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}Zt.size=0}Zt.data.push(Ce),Zt.size+=Ce.byteLength}break}if(cr&&Se.firstKeyFrame)break;oe+=Ni,Ee+=Ni;continue}oe++,Ee++}for(Ee=ue.byteLength,oe=Ee-Ni,cr=!1;oe>=0;){if(ue[oe]===Di&&ue[Ee]===Di){switch(Ce=ue.subarray(oe,Ee),Ue=Ei.ts.parseType(Ce,Te.pid),Ue){case"pes":Oe=Ei.ts.parsePesType(Ce,Te.table),Ze=Ei.ts.parsePayloadUnitStartIndicator(Ce),Oe==="video"&&Ze&&(Ke=Ei.ts.parsePesTime(Ce),Ke&&(Ke.type="video",Se.video.push(Ke),cr=!0));break}if(cr)break;oe-=Ni,Ee-=Ni;continue}oe--,Ee--}},Qn=function(ue,Te){if(ue.audio&&ue.audio.length){var Se=Te;(typeof Se>"u"||isNaN(Se))&&(Se=ue.audio[0].dts),ue.audio.forEach(function(Ce){Ce.dts=ln(Ce.dts,Se),Ce.pts=ln(Ce.pts,Se),Ce.dtsTime=Ce.dts/zn,Ce.ptsTime=Ce.pts/zn})}if(ue.video&&ue.video.length){var oe=Te;if((typeof oe>"u"||isNaN(oe))&&(oe=ue.video[0].dts),ue.video.forEach(function(Ce){Ce.dts=ln(Ce.dts,oe),Ce.pts=ln(Ce.pts,oe),Ce.dtsTime=Ce.dts/zn,Ce.ptsTime=Ce.pts/zn}),ue.firstKeyFrame){var Ee=ue.firstKeyFrame;Ee.dts=ln(Ee.dts,oe),Ee.pts=ln(Ee.pts,oe),Ee.dtsTime=Ee.dts/zn,Ee.ptsTime=Ee.pts/zn}}},fn=function(ue){for(var Te=!1,Se=0,oe=null,Ee=null,Ce=0,Ue=0,Oe;ue.length-Ue>=3;){var Ze=Ei.aac.parseType(ue,Ue);switch(Ze){case"timed-metadata":if(ue.length-Ue<10){Te=!0;break}if(Ce=Ei.aac.parseId3TagSize(ue,Ue),Ce>ue.length){Te=!0;break}Ee===null&&(Oe=ue.subarray(Ue,Ue+Ce),Ee=Ei.aac.parseAacTimestamp(Oe)),Ue+=Ce;break;case"audio":if(ue.length-Ue<7){Te=!0;break}if(Ce=Ei.aac.parseAdtsSize(ue,Ue),Ce>ue.length){Te=!0;break}oe===null&&(Oe=ue.subarray(Ue,Ue+Ce),oe=Ei.aac.parseSampleRate(Oe)),Se++,Ue+=Ce;break;default:Ue++;break}if(Te)return null}if(oe===null||Ee===null)return null;var Ke=zn/oe,gt={audio:[{type:"audio",dts:Ee,pts:Ee},{type:"audio",dts:Ee+Se*1024*Ke,pts:Ee+Se*1024*Ke}]};return gt},Un=function(ue){var Te={pid:null,table:null},Se={};Sa(ue,Te);for(var oe in Te.table)if(Te.table.hasOwnProperty(oe)){var Ee=Te.table[oe];switch(Ee){case wr.H264_STREAM_TYPE:Se.video=[],pa(ue,Te,Se),Se.video.length===0&&delete Se.video;break;case wr.ADTS_STREAM_TYPE:Se.audio=[],An(ue,Te,Se),Se.audio.length===0&&delete Se.audio;break}}return Se},Ta=function(ue,Te){var Se=Ei.aac.isLikelyAacData(ue),oe;return Se?oe=fn(ue):oe=Un(ue),!oe||!oe.audio&&!oe.video?null:(Qn(oe,Te),oe)},za={inspect:Ta,parseAudioPes_:An},ma=function(ue,Te){Te.on("data",function(Se){var oe=Se.initSegment;Se.initSegment={data:oe.buffer,byteOffset:oe.byteOffset,byteLength:oe.byteLength};var Ee=Se.data;Se.data=Ee.buffer,ue.postMessage({action:"data",segment:Se,byteOffset:Ee.byteOffset,byteLength:Ee.byteLength},[Se.data])}),Te.on("done",function(Se){ue.postMessage({action:"done"})}),Te.on("gopInfo",function(Se){ue.postMessage({action:"gopInfo",gopInfo:Se})}),Te.on("videoSegmentTimingInfo",function(Se){var oe={start:{decode:te.videoTsToSeconds(Se.start.dts),presentation:te.videoTsToSeconds(Se.start.pts)},end:{decode:te.videoTsToSeconds(Se.end.dts),presentation:te.videoTsToSeconds(Se.end.pts)},baseMediaDecodeTime:te.videoTsToSeconds(Se.baseMediaDecodeTime)};Se.prependedContentDuration&&(oe.prependedContentDuration=te.videoTsToSeconds(Se.prependedContentDuration)),ue.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:oe})}),Te.on("audioSegmentTimingInfo",function(Se){var oe={start:{decode:te.videoTsToSeconds(Se.start.dts),presentation:te.videoTsToSeconds(Se.start.pts)},end:{decode:te.videoTsToSeconds(Se.end.dts),presentation:te.videoTsToSeconds(Se.end.pts)},baseMediaDecodeTime:te.videoTsToSeconds(Se.baseMediaDecodeTime)};Se.prependedContentDuration&&(oe.prependedContentDuration=te.videoTsToSeconds(Se.prependedContentDuration)),ue.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:oe})}),Te.on("id3Frame",function(Se){ue.postMessage({action:"id3Frame",id3Frame:Se})}),Te.on("caption",function(Se){ue.postMessage({action:"caption",caption:Se})}),Te.on("trackinfo",function(Se){ue.postMessage({action:"trackinfo",trackInfo:Se})}),Te.on("audioTimingInfo",function(Se){ue.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:te.videoTsToSeconds(Se.start),end:te.videoTsToSeconds(Se.end)}})}),Te.on("videoTimingInfo",function(Se){ue.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:te.videoTsToSeconds(Se.start),end:te.videoTsToSeconds(Se.end)}})}),Te.on("log",function(Se){ue.postMessage({action:"log",log:Se})})},Cn=function(){function it(Te,Se){this.options=Se||{},this.self=Te,this.init()}var ue=it.prototype;return ue.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new sn.Transmuxer(this.options),ma(this.self,this.transmuxer)},ue.pushMp4Captions=function(Se){this.captionParser||(this.captionParser=new mn,this.captionParser.init());var oe=new Uint8Array(Se.data,Se.byteOffset,Se.byteLength),Ee=this.captionParser.parse(oe,Se.trackIds,Se.timescales);this.self.postMessage({action:"mp4Captions",captions:Ee&&Ee.captions||[],logs:Ee&&Ee.logs||[],data:oe.buffer},[oe.buffer])},ue.probeMp4StartTime=function(Se){var oe=Se.timescales,Ee=Se.data,Ce=gn.startTime(oe,Ee);this.self.postMessage({action:"probeMp4StartTime",startTime:Ce,data:Ee},[Ee.buffer])},ue.probeMp4Tracks=function(Se){var oe=Se.data,Ee=gn.tracks(oe);this.self.postMessage({action:"probeMp4Tracks",tracks:Ee,data:oe},[oe.buffer])},ue.probeTs=function(Se){var oe=Se.data,Ee=Se.baseStartTime,Ce=typeof Ee=="number"&&!isNaN(Ee)?Ee*te.ONE_SECOND_IN_TS:void 0,Ue=za.inspect(oe,Ce),Oe=null;Ue&&(Oe={hasVideo:Ue.video&&Ue.video.length===2||!1,hasAudio:Ue.audio&&Ue.audio.length===2||!1},Oe.hasVideo&&(Oe.videoStart=Ue.video[0].ptsTime),Oe.hasAudio&&(Oe.audioStart=Ue.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:Oe,data:oe},[oe.buffer])},ue.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},ue.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},ue.push=function(Se){var oe=new Uint8Array(Se.data,Se.byteOffset,Se.byteLength);this.transmuxer.push(oe)},ue.reset=function(){this.transmuxer.reset()},ue.setTimestampOffset=function(Se){var oe=Se.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(te.secondsToVideoTs(oe)))},ue.setAudioAppendStart=function(Se){this.transmuxer.setAudioAppendStart(Math.ceil(te.secondsToVideoTs(Se.appendStart)))},ue.setRemux=function(Se){this.transmuxer.setRemux(Se.remux)},ue.flush=function(Se){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},ue.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},ue.alignGopsWith=function(Se){this.transmuxer.alignGopsWith(Se.gopsToAlignWith.slice())},it}();self.onmessage=function(it){if(it.data.action==="init"&&it.data.options){this.messageHandlers=new Cn(self,it.data.options);return}this.messageHandlers||(this.messageHandlers=new Cn(self)),it.data&&it.data.action&&it.data.action!=="init"&&this.messageHandlers[it.data.action]&&this.messageHandlers[it.data.action](it.data)}})),TransmuxWorker=factory(workerCode$1),handleData_=function(e,o,l){var t=e.data.segment,u=t.type,h=t.initSegment,v=t.captions,w=t.captionStreams,A=t.metadata,E=t.videoFrameDtsTime,C=t.videoFramePtsTime;o.buffer.push({captions:v,captionStreams:w,metadata:A});var M=e.data.segment.boxes||{data:e.data.segment.data},P={type:u,data:new Uint8Array(M.data,M.data.byteOffset,M.data.byteLength),initSegment:new Uint8Array(h.data,h.byteOffset,h.byteLength)};typeof E<"u"&&(P.videoFrameDtsTime=E),typeof C<"u"&&(P.videoFramePtsTime=C),l(P)},handleDone_=function(e){var o=e.transmuxedData,l=e.callback;o.buffer=[],l(o)},handleGopInfo_=function(e,o){o.gopInfo=e.data.gopInfo},processTransmux=function(e){var o=e.transmuxer,l=e.bytes,t=e.audioAppendStart,u=e.gopsToAlignWith,h=e.remux,v=e.onData,w=e.onTrackInfo,A=e.onAudioTimingInfo,E=e.onVideoTimingInfo,C=e.onVideoSegmentTimingInfo,M=e.onAudioSegmentTimingInfo,P=e.onId3,I=e.onCaptions,j=e.onDone,B=e.onEndedTimeline,F=e.onTransmuxerLog,N=e.isEndOfTimeline,ee={buffer:[]},Z=N,re=function(he){o.currentTransmux===e&&(he.data.action==="data"&&handleData_(he,ee,v),he.data.action==="trackinfo"&&w(he.data.trackInfo),he.data.action==="gopInfo"&&handleGopInfo_(he,ee),he.data.action==="audioTimingInfo"&&A(he.data.audioTimingInfo),he.data.action==="videoTimingInfo"&&E(he.data.videoTimingInfo),he.data.action==="videoSegmentTimingInfo"&&C(he.data.videoSegmentTimingInfo),he.data.action==="audioSegmentTimingInfo"&&M(he.data.audioSegmentTimingInfo),he.data.action==="id3Frame"&&P([he.data.id3Frame],he.data.id3Frame.dispatchType),he.data.action==="caption"&&I(he.data.caption),he.data.action==="endedtimeline"&&(Z=!1,B()),he.data.action==="log"&&F(he.data.log),he.data.type==="transmuxed"&&(Z||(o.onmessage=null,handleDone_({transmuxedData:ee,callback:j}),dequeue(o))))};if(o.onmessage=re,t&&o.postMessage({action:"setAudioAppendStart",appendStart:t}),Array.isArray(u)&&o.postMessage({action:"alignGopsWith",gopsToAlignWith:u}),typeof h<"u"&&o.postMessage({action:"setRemux",remux:h}),l.byteLength){var fe=l instanceof ArrayBuffer?l:l.buffer,V=l instanceof ArrayBuffer?0:l.byteOffset;o.postMessage({action:"push",data:fe,byteOffset:V,byteLength:l.byteLength},[fe])}N&&o.postMessage({action:"endTimeline"}),o.postMessage({action:"flush"})},dequeue=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),typeof e.currentTransmux=="function"?e.currentTransmux():processTransmux(e.currentTransmux))},processAction=function(e,o){e.postMessage({action:o}),dequeue(e)},enqueueAction=function(e,o){if(!o.currentTransmux){o.currentTransmux=e,processAction(o,e);return}o.transmuxQueue.push(processAction.bind(null,o,e))},reset=function(e){enqueueAction("reset",e)},endTimeline=function(e){enqueueAction("endTimeline",e)},transmux=function(e){if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,processTransmux(e);return}e.transmuxer.transmuxQueue.push(e)},createTransmuxer=function(e){var o=new TransmuxWorker;o.currentTransmux=null,o.transmuxQueue=[];var l=o.terminate;return o.terminate=function(){return o.currentTransmux=null,o.transmuxQueue.length=0,l.call(o)},o.postMessage({action:"init",options:e}),o},segmentTransmuxer={reset,endTimeline,transmux,createTransmuxer},workerCallback=function(e){var o=e.transmuxer,l=e.endAction||e.action,t=e.callback,u=_extends$2({},e,{endAction:null,transmuxer:null,callback:null}),h=function A(E){E.data.action===l&&(o.removeEventListener("message",A),E.data.data&&(E.data.data=new Uint8Array(E.data.data,e.byteOffset||0,e.byteLength||E.data.data.byteLength),e.data&&(e.data=E.data.data)),t(E.data))};if(o.addEventListener("message",h),e.data){var v=e.data instanceof ArrayBuffer;u.byteOffset=v?0:e.data.byteOffset,u.byteLength=e.data.byteLength;var w=[v?e.data:e.data.buffer];o.postMessage(u,w)}else o.postMessage(u)},REQUEST_ERRORS={FAILURE:2,TIMEOUT:-101,ABORTED:-102},abortAll=function(e){e.forEach(function(o){o.abort()})},getRequestStats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},getProgressStats=function(e){var o=e.target,l=Date.now()-o.requestTime,t={bandwidth:1/0,bytesReceived:0,roundTripTime:l||0};return t.bytesReceived=e.loaded,t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3),t},handleErrors=function(e,o){return o.timedout?{status:o.status,message:"HLS request timed-out at URL: "+o.uri,code:REQUEST_ERRORS.TIMEOUT,xhr:o}:o.aborted?{status:o.status,message:"HLS request aborted at URL: "+o.uri,code:REQUEST_ERRORS.ABORTED,xhr:o}:e?{status:o.status,message:"HLS request errored at URL: "+o.uri,code:REQUEST_ERRORS.FAILURE,xhr:o}:o.responseType==="arraybuffer"&&o.response.byteLength===0?{status:o.status,message:"Empty HLS response at URL: "+o.uri,code:REQUEST_ERRORS.FAILURE,xhr:o}:null},handleKeyResponse=function(e,o,l){return function(t,u){var h=u.response,v=handleErrors(t,u);if(v)return l(v,e);if(h.byteLength!==16)return l({status:u.status,message:"Invalid HLS key at URL: "+u.uri,code:REQUEST_ERRORS.FAILURE,xhr:u},e);for(var w=new DataView(h),A=new Uint32Array([w.getUint32(0),w.getUint32(4),w.getUint32(8),w.getUint32(12)]),E=0;E<o.length;E++)o[E].bytes=A;return l(null,e)}},parseInitSegment=function(e,o){var l=detectContainerForBytes(e.map.bytes);if(l!=="mp4"){var t=e.map.resolvedUri||e.map.uri;return o({internal:!0,message:"Found unsupported "+(l||"unknown")+" container for initialization segment at URL: "+t,code:REQUEST_ERRORS.FAILURE})}workerCallback({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(h){var v=h.tracks,w=h.data;return e.map.bytes=w,v.forEach(function(A){e.map.tracks=e.map.tracks||{},!e.map.tracks[A.type]&&(e.map.tracks[A.type]=A,typeof A.id=="number"&&A.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[A.id]=A.timescale))}),o(null)}})},handleInitSegmentResponse=function(e){var o=e.segment,l=e.finishProcessingFn;return function(t,u){var h=handleErrors(t,u);if(h)return l(h,o);var v=new Uint8Array(u.response);if(o.map.key)return o.map.encryptedBytes=v,l(null,o);o.map.bytes=v,parseInitSegment(o,function(w){if(w)return w.xhr=u,w.status=u.status,l(w,o);l(null,o)})}},handleSegmentResponse=function(e){var o=e.segment,l=e.finishProcessingFn,t=e.responseType;return function(u,h){var v=handleErrors(u,h);if(v)return l(v,o);var w=t==="arraybuffer"||!h.responseText?h.response:stringToArrayBuffer(h.responseText.substring(o.lastReachedChar||0));return o.stats=getRequestStats(h),o.key?o.encryptedBytes=new Uint8Array(w):o.bytes=new Uint8Array(w),l(null,o)}},transmuxAndNotify=function(e){var o=e.segment,l=e.bytes,t=e.trackInfoFn,u=e.timingInfoFn,h=e.videoSegmentTimingInfoFn,v=e.audioSegmentTimingInfoFn,w=e.id3Fn,A=e.captionsFn,E=e.isEndOfTimeline,C=e.endedTimelineFn,M=e.dataFn,P=e.doneFn,I=e.onTransmuxerLog,j=o.map&&o.map.tracks||{},B=!!(j.audio&&j.video),F=u.bind(null,o,"audio","start"),N=u.bind(null,o,"audio","end"),ee=u.bind(null,o,"video","start"),Z=u.bind(null,o,"video","end"),re=function(){return transmux({bytes:l,transmuxer:o.transmuxer,audioAppendStart:o.audioAppendStart,gopsToAlignWith:o.gopsToAlignWith,remux:B,onData:function(le){le.type=le.type==="combined"?"video":le.type,M(o,le)},onTrackInfo:function(le){t&&(B&&(le.isMuxed=!0),t(o,le))},onAudioTimingInfo:function(le){F&&typeof le.start<"u"&&(F(le.start),F=null),N&&typeof le.end<"u"&&N(le.end)},onVideoTimingInfo:function(le){ee&&typeof le.start<"u"&&(ee(le.start),ee=null),Z&&typeof le.end<"u"&&Z(le.end)},onVideoSegmentTimingInfo:function(le){h(le)},onAudioSegmentTimingInfo:function(le){v(le)},onId3:function(le,he){w(o,le,he)},onCaptions:function(le){A(o,[le])},isEndOfTimeline:E,onEndedTimeline:function(){C()},onTransmuxerLog:I,onDone:function(le){P&&(le.type=le.type==="combined"?"video":le.type,P(null,o,le))}})};workerCallback({action:"probeTs",transmuxer:o.transmuxer,data:l,baseStartTime:o.baseStartTime,callback:function(V){o.bytes=l=V.data;var le=V.result;le&&(t(o,{hasAudio:le.hasAudio,hasVideo:le.hasVideo,isMuxed:B}),t=null,le.hasAudio&&!B&&F(le.audioStart),le.hasVideo&&ee(le.videoStart),F=null,ee=null),re()}})},handleSegmentBytes=function(e){var o=e.segment,l=e.bytes,t=e.trackInfoFn,u=e.timingInfoFn,h=e.videoSegmentTimingInfoFn,v=e.audioSegmentTimingInfoFn,w=e.id3Fn,A=e.captionsFn,E=e.isEndOfTimeline,C=e.endedTimelineFn,M=e.dataFn,P=e.doneFn,I=e.onTransmuxerLog,j=new Uint8Array(l);if(isLikelyFmp4MediaSegment(j)){o.isFmp4=!0;var B=o.map.tracks,F={isFmp4:!0,hasVideo:!!B.video,hasAudio:!!B.audio};B.audio&&B.audio.codec&&B.audio.codec!=="enca"&&(F.audioCodec=B.audio.codec),B.video&&B.video.codec&&B.video.codec!=="encv"&&(F.videoCodec=B.video.codec),B.video&&B.audio&&(F.isMuxed=!0),t(o,F);var N=function(Z){M(o,{data:j,type:F.hasAudio&&!F.isMuxed?"audio":"video"}),Z&&Z.length&&A(o,Z),P(null,o,{})};workerCallback({action:"probeMp4StartTime",timescales:o.map.timescales,data:j,transmuxer:o.transmuxer,callback:function(Z){var re=Z.data,fe=Z.startTime;if(l=re.buffer,o.bytes=j=re,F.hasAudio&&!F.isMuxed&&u(o,"audio","start",fe),F.hasVideo&&u(o,"video","start",fe),!B.video||!re.byteLength||!o.transmuxer){N();return}workerCallback({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:o.transmuxer,data:j,timescales:o.map.timescales,trackIds:[B.video.id],callback:function(le){l=le.data.buffer,o.bytes=j=le.data,le.logs.forEach(function(he){I(videojs.mergeOptions(he,{stream:"mp4CaptionParser"}))}),N(le.captions)}})}});return}if(!o.transmuxer){P(null,o,{});return}if(typeof o.container>"u"&&(o.container=detectContainerForBytes(j)),o.container!=="ts"&&o.container!=="aac"){t(o,{hasAudio:!1,hasVideo:!1}),P(null,o,{});return}transmuxAndNotify({segment:o,bytes:l,trackInfoFn:t,timingInfoFn:u,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:v,id3Fn:w,captionsFn:A,isEndOfTimeline:E,endedTimelineFn:C,dataFn:M,doneFn:P,onTransmuxerLog:I})},decrypt$1=function(e,o){var l=e.id,t=e.key,u=e.encryptedBytes,h=e.decryptionWorker,v=function A(E){if(E.data.source===l){h.removeEventListener("message",A);var C=E.data.decrypted;o(new Uint8Array(C.bytes,C.byteOffset,C.byteLength))}};h.addEventListener("message",v);var w;t.bytes.slice?w=t.bytes.slice():w=new Uint32Array(Array.prototype.slice.call(t.bytes)),h.postMessage(createTransferableMessage({source:l,encrypted:u,key:w,iv:t.iv}),[u.buffer,w.buffer])},decryptSegment=function(e){var o=e.decryptionWorker,l=e.segment,t=e.trackInfoFn,u=e.timingInfoFn,h=e.videoSegmentTimingInfoFn,v=e.audioSegmentTimingInfoFn,w=e.id3Fn,A=e.captionsFn,E=e.isEndOfTimeline,C=e.endedTimelineFn,M=e.dataFn,P=e.doneFn,I=e.onTransmuxerLog;decrypt$1({id:l.requestId,key:l.key,encryptedBytes:l.encryptedBytes,decryptionWorker:o},function(j){l.bytes=j,handleSegmentBytes({segment:l,bytes:l.bytes,trackInfoFn:t,timingInfoFn:u,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:v,id3Fn:w,captionsFn:A,isEndOfTimeline:E,endedTimelineFn:C,dataFn:M,doneFn:P,onTransmuxerLog:I})})},waitForCompletion=function(e){var o=e.activeXhrs,l=e.decryptionWorker,t=e.trackInfoFn,u=e.timingInfoFn,h=e.videoSegmentTimingInfoFn,v=e.audioSegmentTimingInfoFn,w=e.id3Fn,A=e.captionsFn,E=e.isEndOfTimeline,C=e.endedTimelineFn,M=e.dataFn,P=e.doneFn,I=e.onTransmuxerLog,j=0,B=!1;return function(F,N){if(!B){if(F)return B=!0,abortAll(o),P(F,N);if(j+=1,j===o.length){var ee=function(){if(N.encryptedBytes)return decryptSegment({decryptionWorker:l,segment:N,trackInfoFn:t,timingInfoFn:u,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:v,id3Fn:w,captionsFn:A,isEndOfTimeline:E,endedTimelineFn:C,dataFn:M,doneFn:P,onTransmuxerLog:I});handleSegmentBytes({segment:N,bytes:N.bytes,trackInfoFn:t,timingInfoFn:u,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:v,id3Fn:w,captionsFn:A,isEndOfTimeline:E,endedTimelineFn:C,dataFn:M,doneFn:P,onTransmuxerLog:I})};if(N.endOfAllRequests=Date.now(),N.map&&N.map.encryptedBytes&&!N.map.bytes)return decrypt$1({decryptionWorker:l,id:N.requestId+"-init",encryptedBytes:N.map.encryptedBytes,key:N.map.key},function(Z){N.map.bytes=Z,parseInitSegment(N,function(re){if(re)return abortAll(o),P(re,N);ee()})});ee()}}}},handleLoadEnd=function(e){var o=e.loadendState,l=e.abortFn;return function(t){var u=t.target;u.aborted&&l&&!o.calledAbortFn&&(l(),o.calledAbortFn=!0)}},handleProgress=function(e){var o=e.segment,l=e.progressFn;return function(t){var u=t.target;if(!u.aborted)return o.stats=videojs.mergeOptions(o.stats,getProgressStats(t)),!o.stats.firstBytesReceivedAt&&o.stats.bytesReceived&&(o.stats.firstBytesReceivedAt=Date.now()),l(t,o)}},mediaSegmentRequest=function(e){var o=e.xhr,l=e.xhrOptions,t=e.decryptionWorker,u=e.segment,h=e.abortFn,v=e.progressFn,w=e.trackInfoFn,A=e.timingInfoFn,E=e.videoSegmentTimingInfoFn,C=e.audioSegmentTimingInfoFn,M=e.id3Fn,P=e.captionsFn,I=e.isEndOfTimeline,j=e.endedTimelineFn,B=e.dataFn,F=e.doneFn,N=e.onTransmuxerLog,ee=[],Z=waitForCompletion({activeXhrs:ee,decryptionWorker:t,trackInfoFn:w,timingInfoFn:A,videoSegmentTimingInfoFn:E,audioSegmentTimingInfoFn:C,id3Fn:M,captionsFn:P,isEndOfTimeline:I,endedTimelineFn:j,dataFn:B,doneFn:F,onTransmuxerLog:N});if(u.key&&!u.key.bytes){var re=[u.key];u.map&&!u.map.bytes&&u.map.key&&u.map.key.resolvedUri===u.key.resolvedUri&&re.push(u.map.key);var fe=videojs.mergeOptions(l,{uri:u.key.resolvedUri,responseType:"arraybuffer"}),V=handleKeyResponse(u,re,Z),le=o(fe,V);ee.push(le)}if(u.map&&!u.map.bytes){var he=u.map.key&&(!u.key||u.key.resolvedUri!==u.map.key.resolvedUri);if(he){var ye=videojs.mergeOptions(l,{uri:u.map.key.resolvedUri,responseType:"arraybuffer"}),L=handleKeyResponse(u,[u.map.key],Z),p=o(ye,L);ee.push(p)}var y=videojs.mergeOptions(l,{uri:u.map.resolvedUri,responseType:"arraybuffer",headers:segmentXhrHeaders(u.map)}),S=handleInitSegmentResponse({segment:u,finishProcessingFn:Z}),c=o(y,S);ee.push(c)}var m=videojs.mergeOptions(l,{uri:u.part&&u.part.resolvedUri||u.resolvedUri,responseType:"arraybuffer",headers:segmentXhrHeaders(u)}),x=handleSegmentResponse({segment:u,finishProcessingFn:Z,responseType:m.responseType}),T=o(m,x);T.addEventListener("progress",handleProgress({segment:u,progressFn:v,trackInfoFn:w,timingInfoFn:A,videoSegmentTimingInfoFn:E,audioSegmentTimingInfoFn:C,id3Fn:M,captionsFn:P,isEndOfTimeline:I,endedTimelineFn:j,dataFn:B})),ee.push(T);var b={};return ee.forEach(function(d){d.addEventListener("loadend",handleLoadEnd({loadendState:b,abortFn:h}))}),function(){return abortAll(ee)}},logFn$1=logger("CodecUtils"),getCodecs=function(e){var o=e.attributes||{};if(o.CODECS)return parseCodecs(o.CODECS)},isMaat=function(e,o){var l=o.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&l.AUDIO&&e.mediaGroups.AUDIO[l.AUDIO]},isMuxed=function(e,o){if(!isMaat(e,o))return!0;var l=o.attributes||{},t=e.mediaGroups.AUDIO[l.AUDIO];for(var u in t)if(!t[u].uri&&!t[u].playlists)return!0;return!1},unwrapCodecList=function(e){var o={};return e.forEach(function(l){var t=l.mediaType,u=l.type,h=l.details;o[t]=o[t]||[],o[t].push(translateLegacyCodec(""+u+h))}),Object.keys(o).forEach(function(l){if(o[l].length>1){logFn$1("multiple "+l+" codecs found as attributes: "+o[l].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),o[l]=null;return}o[l]=o[l][0]}),o},codecCount=function(e){var o=0;return e.audio&&o++,e.video&&o++,o},codecsForPlaylist=function(e,o){var l=o.attributes||{},t=unwrapCodecList(getCodecs(o)||[]);if(isMaat(e,o)&&!t.audio&&!isMuxed(e,o)){var u=unwrapCodecList(codecsFromDefault(e,l.AUDIO)||[]);u.audio&&(t.audio=u.audio)}return t},logFn=logger("PlaylistSelector"),representationToString=function(e){if(!(!e||!e.playlist)){var o=e.playlist;return JSON.stringify({id:o.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:o.attributes&&o.attributes.CODECS||""})}},safeGetComputedStyle=function(e,o){if(!e)return"";var l=window$1$1.getComputedStyle(e);return l?l[o]:""},stableSort=function(e,o){var l=e.slice();e.sort(function(t,u){var h=o(t,u);return h===0?l.indexOf(t)-l.indexOf(u):h})},comparePlaylistBandwidth=function(e,o){var l,t;return e.attributes.BANDWIDTH&&(l=e.attributes.BANDWIDTH),l=l||window$1$1.Number.MAX_VALUE,o.attributes.BANDWIDTH&&(t=o.attributes.BANDWIDTH),t=t||window$1$1.Number.MAX_VALUE,l-t},comparePlaylistResolution=function(e,o){var l,t;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(l=e.attributes.RESOLUTION.width),l=l||window$1$1.Number.MAX_VALUE,o.attributes.RESOLUTION&&o.attributes.RESOLUTION.width&&(t=o.attributes.RESOLUTION.width),t=t||window$1$1.Number.MAX_VALUE,l===t&&e.attributes.BANDWIDTH&&o.attributes.BANDWIDTH?e.attributes.BANDWIDTH-o.attributes.BANDWIDTH:l-t},simpleSelector=function(e,o,l,t,u,h){if(e){var v={bandwidth:o,width:l,height:t,limitRenditionByPlayerDimensions:u},w=e.playlists;Playlist.isAudioOnly(e)&&(w=h.getAudioTrackPlaylists_(),v.audioOnly=!0);var A=w.map(function(ye){var L,p=ye.attributes&&ye.attributes.RESOLUTION&&ye.attributes.RESOLUTION.width,y=ye.attributes&&ye.attributes.RESOLUTION&&ye.attributes.RESOLUTION.height;return L=ye.attributes&&ye.attributes.BANDWIDTH,L=L||window$1$1.Number.MAX_VALUE,{bandwidth:L,width:p,height:y,playlist:ye}});stableSort(A,function(ye,L){return ye.bandwidth-L.bandwidth}),A=A.filter(function(ye){return!Playlist.isIncompatible(ye.playlist)});var E=A.filter(function(ye){return Playlist.isEnabled(ye.playlist)});E.length||(E=A.filter(function(ye){return!Playlist.isDisabled(ye.playlist)}));var C=E.filter(function(ye){return ye.bandwidth*Config.BANDWIDTH_VARIANCE<o}),M=C[C.length-1],P=C.filter(function(ye){return ye.bandwidth===M.bandwidth})[0];if(u===!1){var I=P||E[0]||A[0];if(I&&I.playlist){var j="sortedPlaylistReps";return P&&(j="bandwidthBestRep"),E[0]&&(j="enabledPlaylistReps"),logFn("choosing "+representationToString(I)+" using "+j+" with options",v),I.playlist}return logFn("could not choose a playlist with options",v),null}var B=C.filter(function(ye){return ye.width&&ye.height});stableSort(B,function(ye,L){return ye.width-L.width});var F=B.filter(function(ye){return ye.width===l&&ye.height===t});M=F[F.length-1];var N=F.filter(function(ye){return ye.bandwidth===M.bandwidth})[0],ee,Z,re;N||(ee=B.filter(function(ye){return ye.width>l||ye.height>t}),Z=ee.filter(function(ye){return ye.width===ee[0].width&&ye.height===ee[0].height}),M=Z[Z.length-1],re=Z.filter(function(ye){return ye.bandwidth===M.bandwidth})[0]);var fe;if(h.experimentalLeastPixelDiffSelector){var V=B.map(function(ye){return ye.pixelDiff=Math.abs(ye.width-l)+Math.abs(ye.height-t),ye});stableSort(V,function(ye,L){return ye.pixelDiff===L.pixelDiff?L.bandwidth-ye.bandwidth:ye.pixelDiff-L.pixelDiff}),fe=V[0]}var le=fe||re||N||P||E[0]||A[0];if(le&&le.playlist){var he="sortedPlaylistReps";return fe?he="leastPixelDiffRep":re?he="resolutionPlusOneRep":N?he="resolutionBestRep":P?he="bandwidthBestRep":E[0]&&(he="enabledPlaylistReps"),logFn("choosing "+representationToString(le)+" using "+he+" with options",v),le.playlist}return logFn("could not choose a playlist with options",v),null}},lastBandwidthSelector=function(){var e=this.useDevicePixelRatio&&window$1$1.devicePixelRatio||1;return simpleSelector(this.playlists.master,this.systemBandwidth,parseInt(safeGetComputedStyle(this.tech_.el(),"width"),10)*e,parseInt(safeGetComputedStyle(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},movingAverageBandwidthSelector=function(e){var o=-1,l=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var t=this.useDevicePixelRatio&&window$1$1.devicePixelRatio||1;return o<0&&(o=this.systemBandwidth,l=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==l&&(o=e*this.systemBandwidth+(1-e)*o,l=this.systemBandwidth),simpleSelector(this.playlists.master,o,parseInt(safeGetComputedStyle(this.tech_.el(),"width"),10)*t,parseInt(safeGetComputedStyle(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},minRebufferMaxBandwidthSelector=function(e){var o=e.master,l=e.currentTime,t=e.bandwidth,u=e.duration,h=e.segmentDuration,v=e.timeUntilRebuffer,w=e.currentTimeline,A=e.syncController,E=o.playlists.filter(function(j){return!Playlist.isIncompatible(j)}),C=E.filter(Playlist.isEnabled);C.length||(C=E.filter(function(j){return!Playlist.isDisabled(j)}));var M=C.filter(Playlist.hasAttribute.bind(null,"BANDWIDTH")),P=M.map(function(j){var B=A.getSyncPoint(j,u,w,l),F=B?1:2,N=Playlist.estimateSegmentRequestTime(h,t,j),ee=N*F-v;return{playlist:j,rebufferingImpact:ee}}),I=P.filter(function(j){return j.rebufferingImpact<=0});return stableSort(I,function(j,B){return comparePlaylistBandwidth(B.playlist,j.playlist)}),I.length?I[0]:(stableSort(P,function(j,B){return j.rebufferingImpact-B.rebufferingImpact}),P[0]||null)},lowestBitrateCompatibleVariantSelector=function(){var e=this,o=this.playlists.master.playlists.filter(Playlist.isEnabled);stableSort(o,function(t,u){return comparePlaylistBandwidth(t,u)});var l=o.filter(function(t){return!!codecsForPlaylist(e.playlists.master,t).video});return l[0]||null},concatSegments=function(e){var o=0,l;return e.bytes&&(l=new Uint8Array(e.bytes),e.segments.forEach(function(t){l.set(t,o),o+=t.byteLength})),l},createCaptionsTrackIfNotExists=function(e,o,l){if(!e[l]){o.trigger({type:"usage",name:"vhs-608"}),o.trigger({type:"usage",name:"hls-608"});var t=l;/^cc708_/.test(l)&&(t="SERVICE"+l.split("_")[1]);var u=o.textTracks().getTrackById(t);if(u)e[l]=u;else{var h=o.options_.vhs&&o.options_.vhs.captionServices||{},v=l,w=l,A=!1,E=h[t];E&&(v=E.label,w=E.language,A=E.default),e[l]=o.addRemoteTextTrack({kind:"captions",id:t,default:A,label:v,language:w},!1).track}}},addCaptionData=function(e){var o=e.inbandTextTracks,l=e.captionArray,t=e.timestampOffset;if(l){var u=window$1$1.WebKitDataCue||window$1$1.VTTCue;l.forEach(function(h){var v=h.stream;o[v].addCue(new u(h.startTime+t,h.endTime+t,h.text))})}},deprecateOldCue=function(e){Object.defineProperties(e.frame,{id:{get:function(){return videojs.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return videojs.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return videojs.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},addMetadata=function(e){var o=e.inbandTextTracks,l=e.metadataArray,t=e.timestampOffset,u=e.videoDuration;if(l){var h=window$1$1.WebKitDataCue||window$1$1.VTTCue,v=o.metadataTrack_;if(v&&(l.forEach(function(P){var I=P.cueTime+t;typeof I!="number"||window$1$1.isNaN(I)||I<0||!(I<1/0)||P.frames.forEach(function(j){var B=new h(I,I,j.value||j.url||j.data||"");B.frame=j,B.value=j,deprecateOldCue(B),v.addCue(B)})}),!(!v.cues||!v.cues.length))){for(var w=v.cues,A=[],E=0;E<w.length;E++)w[E]&&A.push(w[E]);var C=A.reduce(function(P,I){var j=P[I.startTime]||[];return j.push(I),P[I.startTime]=j,P},{}),M=Object.keys(C).sort(function(P,I){return Number(P)-Number(I)});M.forEach(function(P,I){var j=C[P],B=Number(M[I+1])||u;j.forEach(function(F){F.endTime=B})})}}},createMetadataTrackIfNotExists=function(e,o,l){e.metadataTrack_||(e.metadataTrack_=l.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=o)},removeCuesFromTrack=function(e,o,l){var t,u;if(l&&l.cues)for(t=l.cues.length;t--;)u=l.cues[t],u.startTime>=e&&u.endTime<=o&&l.removeCue(u)},removeDuplicateCuesFromTrack=function(e){var o=e.cues;if(o)for(var l=0;l<o.length;l++){for(var t=[],u=0,h=0;h<o.length;h++)o[l].startTime===o[h].startTime&&o[l].endTime===o[h].endTime&&o[l].text===o[h].text&&(u++,u>1&&t.push(o[h]));t.length&&t.forEach(function(v){return e.removeCue(v)})}},gopsSafeToAlignWith=function(e,o,l){if(typeof o>"u"||o===null||!e.length)return[];var t=Math.ceil((o-l+3)*clock.ONE_SECOND_IN_TS),u;for(u=0;u<e.length&&!(e[u].pts>t);u++);return e.slice(u)},updateGopBuffer=function(e,o,l){if(!o.length)return e;if(l)return o.slice();var t=o[0].pts,u=0;for(u;u<e.length&&!(e[u].pts>=t);u++);return e.slice(0,u).concat(o)},removeGopBuffer=function(e,o,l,t){for(var u=Math.ceil((o-t)*clock.ONE_SECOND_IN_TS),h=Math.ceil((l-t)*clock.ONE_SECOND_IN_TS),v=e.slice(),w=e.length;w--&&!(e[w].pts<=h););if(w===-1)return v;for(var A=w+1;A--&&!(e[A].pts<=u););return A=Math.max(A,0),v.splice(A,w-A+1),v},shallowEqual=function(e,o){if(!e&&!o||!e&&o||e&&!o)return!1;if(e===o)return!0;var l=Object.keys(e).sort(),t=Object.keys(o).sort();if(l.length!==t.length)return!1;for(var u=0;u<l.length;u++){var h=l[u];if(h!==t[u]||e[h]!==o[h])return!1}return!0},QUOTA_EXCEEDED_ERR=22,getSyncSegmentCandidate=function(e,o,l){o=o||[];for(var t=[],u=0,h=0;h<o.length;h++){var v=o[h];if(e===v.timeline&&(t.push(h),u+=v.duration,u>l))return h}return t.length===0?0:t[t.length-1]},MIN_BACK_BUFFER=1,CHECK_BUFFER_DELAY=500,finite=function(e){return typeof e=="number"&&isFinite(e)},MIN_SEGMENT_DURATION_TO_SAVE_STATS=1/60,illegalMediaSwitch=function(e,o,l){return e!=="main"||!o||!l?null:!l.hasAudio&&!l.hasVideo?"Neither audio nor video found in segment.":o.hasVideo&&!l.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!o.hasVideo&&l.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null},safeBackBufferTrimTime=function(e,o,l){var t=o-Config.BACK_BUFFER_LENGTH;e.length&&(t=Math.max(t,e.start(0)));var u=o-l;return Math.min(u,t)},segmentInfoString=function(e){var o=e.startOfSegment,l=e.duration,t=e.segment,u=e.part,h=e.playlist,v=h.mediaSequence,w=h.id,A=h.segments,E=A===void 0?[]:A,C=e.mediaIndex,M=e.partIndex,P=e.timeline,I=E.length-1,j="mediaIndex/partIndex increment";e.getMediaInfoForTime?j="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(j="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(j+=" with independent "+e.independent);var B=typeof M=="number",F=e.segment.uri?"segment":"pre-segment",N=B?getKnownPartCount({preloadSegment:t})-1:0;return F+" ["+(v+C)+"/"+(v+I)+"]"+(B?" part ["+M+"/"+N+"]":"")+(" segment start/end ["+t.start+" => "+t.end+"]")+(B?" part start/end ["+u.start+" => "+u.end+"]":"")+(" startOfSegment ["+o+"]")+(" duration ["+l+"]")+(" timeline ["+P+"]")+(" selected by ["+j+"]")+(" playlist ["+w+"]")},timingInfoPropertyForMedia=function(e){return e+"TimingInfo"},timestampOffsetForSegment=function(e){var o=e.segmentTimeline,l=e.currentTimeline,t=e.startOfSegment,u=e.buffered,h=e.overrideCheck;return!h&&o===l?null:o<l?t:u.length?u.end(u.length-1):t},shouldWaitForTimelineChange=function(e){var o=e.timelineChangeController,l=e.currentTimeline,t=e.segmentTimeline,u=e.loaderType,h=e.audioDisabled;if(l===t)return!1;if(u==="audio"){var v=o.lastTimelineChange({type:"main"});return!v||v.to!==t}if(u==="main"&&h){var w=o.pendingTimelineChange({type:"audio"});return!(w&&w.to===t)}return!1},mediaDuration=function(e){var o=0;return["video","audio"].forEach(function(l){var t=e[l+"TimingInfo"];if(t){var u=t.start,h=t.end,v;typeof u=="bigint"||typeof h=="bigint"?v=window$1$1.BigInt(h)-window$1$1.BigInt(u):typeof u=="number"&&typeof h=="number"&&(v=h-u),typeof v<"u"&&v>o&&(o=v)}}),typeof o=="bigint"&&o<Number.MAX_SAFE_INTEGER&&(o=Number(o)),o},segmentTooLong=function(e){var o=e.segmentDuration,l=e.maxDuration;return o?Math.round(o)>l+TIME_FUDGE_FACTOR:!1},getTroublesomeSegmentDurationMessage=function(e,o){if(o!=="hls")return null;var l=mediaDuration({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!l)return null;var t=e.playlist.targetDuration,u=segmentTooLong({segmentDuration:l,maxDuration:t*2}),h=segmentTooLong({segmentDuration:l,maxDuration:t}),v="Segment with index "+e.mediaIndex+" "+("from playlist "+e.playlist.id+" ")+("has a duration of "+l+" ")+("when the reported duration is "+e.duration+" ")+("and the target duration is "+t+". ")+"For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return u||h?{severity:u?"warn":"info",message:v}:null},SegmentLoader=function(n){_inheritsLoose(e,n);function e(l,t){var u;if(u=n.call(this)||this,!l)throw new TypeError("Initialization settings are required");if(typeof l.currentTime!="function")throw new TypeError("No currentTime getter specified");if(!l.mediaSource)throw new TypeError("No MediaSource specified");return u.bandwidth=l.bandwidth,u.throughput={rate:0,count:0},u.roundTrip=NaN,u.resetStats_(),u.mediaIndex=null,u.partIndex=null,u.hasPlayed_=l.hasPlayed,u.currentTime_=l.currentTime,u.seekable_=l.seekable,u.seeking_=l.seeking,u.duration_=l.duration,u.mediaSource_=l.mediaSource,u.vhs_=l.vhs,u.loaderType_=l.loaderType,u.currentMediaInfo_=void 0,u.startingMediaInfo_=void 0,u.segmentMetadataTrack_=l.segmentMetadataTrack,u.goalBufferLength_=l.goalBufferLength,u.sourceType_=l.sourceType,u.sourceUpdater_=l.sourceUpdater,u.inbandTextTracks_=l.inbandTextTracks,u.state_="INIT",u.timelineChangeController_=l.timelineChangeController,u.shouldSaveSegmentTimingInfo_=!0,u.parse708captions_=l.parse708captions,u.useDtsForTimestampOffset_=l.useDtsForTimestampOffset,u.captionServices_=l.captionServices,u.experimentalExactManifestTimings=l.experimentalExactManifestTimings,u.checkBufferTimeout_=null,u.error_=void 0,u.currentTimeline_=-1,u.pendingSegment_=null,u.xhrOptions_=null,u.pendingSegments_=[],u.audioDisabled_=!1,u.isPendingTimestampOffset_=!1,u.gopBuffer_=[],u.timeMapping_=0,u.safeAppend_=videojs.browser.IE_VERSION>=11,u.appendInitSegment_={audio:!0,video:!0},u.playlistOfLastInitSegment_={audio:null,video:null},u.callQueue_=[],u.loadQueue_=[],u.metadataQueue_={id3:[],caption:[]},u.waitingOnRemove_=!1,u.quotaExceededErrorRetryTimeout_=null,u.activeInitSegmentId_=null,u.initSegments_={},u.cacheEncryptionKeys_=l.cacheEncryptionKeys,u.keyCache_={},u.decrypter_=l.decrypter,u.syncController_=l.syncController,u.syncPoint_={segmentIndex:0,time:0},u.transmuxer_=u.createTransmuxer_(),u.triggerSyncInfoUpdate_=function(){return u.trigger("syncinfoupdate")},u.syncController_.on("syncinfoupdate",u.triggerSyncInfoUpdate_),u.mediaSource_.addEventListener("sourceopen",function(){u.isEndOfStream_()||(u.ended_=!1)}),u.fetchAtBuffer_=!1,u.logger_=logger("SegmentLoader["+u.loaderType_+"]"),Object.defineProperty(_assertThisInitialized$1(u),"state",{get:function(){return this.state_},set:function(v){v!==this.state_&&(this.logger_(this.state_+" -> "+v),this.state_=v,this.trigger("statechange"))}}),u.sourceUpdater_.on("ready",function(){u.hasEnoughInfoToAppend_()&&u.processCallQueue_()}),u.loaderType_==="main"&&u.timelineChangeController_.on("pendingtimelinechange",function(){u.hasEnoughInfoToAppend_()&&u.processCallQueue_()}),u.loaderType_==="audio"&&u.timelineChangeController_.on("timelinechange",function(){u.hasEnoughInfoToLoad_()&&u.processLoadQueue_(),u.hasEnoughInfoToAppend_()&&u.processCallQueue_()}),u}var o=e.prototype;return o.createTransmuxer_=function(){return segmentTransmuxer.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},o.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},o.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&window$1$1.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},o.setAudio=function(t){this.audioDisabled_=!t,t?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},o.abort=function(){if(this.state!=="WAITING"){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()},o.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,window$1$1.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},o.checkForAbort_=function(t){return this.state==="APPENDING"&&!this.pendingSegment_?(this.state="READY",!0):!this.pendingSegment_||this.pendingSegment_.requestId!==t},o.error=function(t){return typeof t<"u"&&(this.logger_("error occurred:",t),this.error_=t),this.pendingSegment_=null,this.error_},o.endOfStream=function(){this.ended_=!0,this.transmuxer_&&segmentTransmuxer.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},o.buffered_=function(){var t=this.getMediaInfo_();if(!this.sourceUpdater_||!t)return videojs.createTimeRanges();if(this.loaderType_==="main"){var u=t.hasAudio,h=t.hasVideo,v=t.isMuxed;if(h&&u&&!this.audioDisabled_&&!v)return this.sourceUpdater_.buffered();if(h)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},o.initSegmentForMap=function(t,u){if(u===void 0&&(u=!1),!t)return null;var h=initSegmentId(t),v=this.initSegments_[h];return u&&!v&&t.bytes&&(this.initSegments_[h]=v={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}),v||t},o.segmentKey=function(t,u){if(u===void 0&&(u=!1),!t)return null;var h=segmentKeyId(t),v=this.keyCache_[h];this.cacheEncryptionKeys_&&u&&!v&&t.bytes&&(this.keyCache_[h]=v={resolvedUri:t.resolvedUri,bytes:t.bytes});var w={resolvedUri:(v||t).resolvedUri};return v&&(w.bytes=v.bytes),w},o.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},o.load=function(){if(this.monitorBuffer_(),!!this.playlist_){if(this.state==="INIT"&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"||(this.state="READY")}},o.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},o.playlist=function(t,u){if(u===void 0&&(u={}),!!t){var h=this.playlist_,v=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=u,this.state==="INIT"&&(t.syncInfo={mediaSequence:t.mediaSequence,time:0},this.loaderType_==="main"&&this.syncController_.setDateTimeMappingForStart(t));var w=null;if(h&&(h.id?w=h.id:h.uri&&(w=h.uri)),this.logger_("playlist update ["+w+" => "+(t.id||t.uri)+"]"),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!h||h.uri!==t.uri){this.mediaIndex!==null&&(t.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}var A=t.mediaSequence-h.mediaSequence;if(this.logger_("live window shift ["+A+"]"),this.mediaIndex!==null)if(this.mediaIndex-=A,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var E=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!E.parts||!E.parts.length||!E.parts[this.partIndex])){var C=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=C}}v&&(v.mediaIndex-=A,v.mediaIndex<0?(v.mediaIndex=null,v.partIndex=null):(v.mediaIndex>=0&&(v.segment=t.segments[v.mediaIndex]),v.partIndex>=0&&v.segment.parts&&(v.part=v.segment.parts[v.partIndex]))),this.syncController_.saveExpiredSegmentInfo(h,t)}},o.pause=function(){this.checkBufferTimeout_&&(window$1$1.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},o.paused=function(){return this.checkBufferTimeout_===null},o.resetEverything=function(t){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,t),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},o.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},o.resyncLoader=function(){this.transmuxer_&&segmentTransmuxer.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},o.remove=function(t,u,h,v){if(h===void 0&&(h=function(){}),v===void 0&&(v=!1),u===1/0&&(u=this.duration_()),u<=t){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}var w=1,A=function(){w--,w===0&&h()};(v||!this.audioDisabled_)&&(w++,this.sourceUpdater_.removeAudio(t,u,A)),(v||this.loaderType_==="main")&&(this.gopBuffer_=removeGopBuffer(this.gopBuffer_,t,u,this.timeMapping_),w++,this.sourceUpdater_.removeVideo(t,u,A));for(var E in this.inbandTextTracks_)removeCuesFromTrack(t,u,this.inbandTextTracks_[E]);removeCuesFromTrack(t,u,this.segmentMetadataTrack_),A()},o.monitorBuffer_=function(){this.checkBufferTimeout_&&window$1$1.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window$1$1.setTimeout(this.monitorBufferTick_.bind(this),1)},o.monitorBufferTick_=function(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&window$1$1.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window$1$1.setTimeout(this.monitorBufferTick_.bind(this),CHECK_BUFFER_DELAY)},o.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var t=this.chooseNextRequest_();t&&(typeof t.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline})),this.loadSegment_(t))}},o.isEndOfStream_=function(t,u,h){if(t===void 0&&(t=this.mediaIndex),u===void 0&&(u=this.playlist_),h===void 0&&(h=this.partIndex),!u||!this.mediaSource_)return!1;var v=typeof t=="number"&&u.segments[t],w=t+1===u.segments.length,A=!v||!v.parts||h+1===v.parts.length;return u.endList&&this.mediaSource_.readyState==="open"&&w&&A},o.chooseNextRequest_=function(){var t=this.buffered_(),u=lastBufferedEnd(t)||0,h=timeAheadOf(t,this.currentTime_()),v=!this.hasPlayed_()&&h>=1,w=h>=this.goalBufferLength_(),A=this.playlist_.segments;if(!A.length||v||w)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var E={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(E.isSyncRequest)E.mediaIndex=getSyncSegmentCandidate(this.currentTimeline_,A,u);else if(this.mediaIndex!==null){var C=A[this.mediaIndex],M=typeof this.partIndex=="number"?this.partIndex:-1;E.startOfSegment=C.end?C.end:u,C.parts&&C.parts[M+1]?(E.mediaIndex=this.mediaIndex,E.partIndex=M+1):E.mediaIndex=this.mediaIndex+1}else{var P=Playlist.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?u:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),I=P.segmentIndex,j=P.startTime,B=P.partIndex;E.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+u:"currentTime "+this.currentTime_(),E.mediaIndex=I,E.startOfSegment=j,E.partIndex=B}var F=A[E.mediaIndex],N=F&&typeof E.partIndex=="number"&&F.parts&&F.parts[E.partIndex];if(!F||typeof E.partIndex=="number"&&!N)return null;if(typeof E.partIndex!="number"&&F.parts&&(E.partIndex=0,N=F.parts[0]),!h&&N&&!N.independent)if(E.partIndex===0){var ee=A[E.mediaIndex-1],Z=ee.parts&&ee.parts.length&&ee.parts[ee.parts.length-1];Z&&Z.independent&&(E.mediaIndex-=1,E.partIndex=ee.parts.length-1,E.independent="previous segment")}else F.parts[E.partIndex-1].independent&&(E.partIndex-=1,E.independent="previous part");var re=this.mediaSource_&&this.mediaSource_.readyState==="ended";return E.mediaIndex>=A.length-1&&re&&!this.seeking_()?null:this.generateSegmentInfo_(E)},o.generateSegmentInfo_=function(t){var u=t.independent,h=t.playlist,v=t.mediaIndex,w=t.startOfSegment,A=t.isSyncRequest,E=t.partIndex,C=t.forceTimestampOffset,M=t.getMediaInfoForTime,P=h.segments[v],I=typeof E=="number"&&P.parts[E],j={requestId:"segment-loader-"+Math.random(),uri:I&&I.resolvedUri||P.resolvedUri,mediaIndex:v,partIndex:I?E:null,isSyncRequest:A,startOfSegment:w,playlist:h,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:P.timeline,duration:I&&I.duration||P.duration,segment:P,part:I,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:M,independent:u},B=typeof C<"u"?C:this.isPendingTimestampOffset_;j.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:P.timeline,currentTimeline:this.currentTimeline_,startOfSegment:w,buffered:this.buffered_(),overrideCheck:B});var F=lastBufferedEnd(this.sourceUpdater_.audioBuffered());return typeof F=="number"&&(j.audioAppendStart=F-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(j.gopsToAlignWith=gopsSafeToAlignWith(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),j},o.timestampOffsetForSegment_=function(t){return timestampOffsetForSegment(t)},o.earlyAbortWhenNeeded_=function(t){if(!(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)&&!(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)){var u=this.currentTime_(),h=t.bandwidth,v=this.pendingSegment_.duration,w=Playlist.estimateSegmentRequestTime(v,h,this.playlist_,t.bytesReceived),A=timeUntilRebuffer(this.buffered_(),u,this.vhs_.tech_.playbackRate())-1;if(!(w<=A)){var E=minRebufferMaxBandwidthSelector({master:this.vhs_.playlists.master,currentTime:u,bandwidth:h,duration:this.duration_(),segmentDuration:v,timeUntilRebuffer:A,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(E){var C=w-A,M=C-E.rebufferingImpact,P=.5;A<=TIME_FUDGE_FACTOR&&(P=1),!(!E.playlist||E.playlist.uri===this.playlist_.uri||M<P)&&(this.bandwidth=E.playlist.attributes.BANDWIDTH*Config.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},o.handleAbort_=function(t){this.logger_("Aborting "+segmentInfoString(t)),this.mediaRequestsAborted+=1},o.handleProgress_=function(t,u){this.earlyAbortWhenNeeded_(u.stats),!this.checkForAbort_(u.requestId)&&this.trigger("progress")},o.handleTrackInfo_=function(t,u){this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&(this.checkForIllegalMediaSwitch(u)||(u=u||{},shallowEqual(this.currentMediaInfo_,u)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=u,this.currentMediaInfo_=u,this.logger_("trackinfo update",u),this.trigger("trackinfo")),!this.checkForAbort_(t.requestId)&&(this.pendingSegment_.trackInfo=u,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())))},o.handleTimingInfo_=function(t,u,h,v){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)){var w=this.pendingSegment_,A=timingInfoPropertyForMedia(u);w[A]=w[A]||{},w[A][h]=v,this.logger_("timinginfo: "+u+" - "+h+" - "+v),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},o.handleCaptions_=function(t,u){var h=this;if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)){if(u.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}var v=this.pendingSegment_;if(!v.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,u));return}var w=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),A={};u.forEach(function(E){A[E.stream]=A[E.stream]||{startTime:1/0,captions:[],endTime:0};var C=A[E.stream];C.startTime=Math.min(C.startTime,E.startTime+w),C.endTime=Math.max(C.endTime,E.endTime+w),C.captions.push(E)}),Object.keys(A).forEach(function(E){var C=A[E],M=C.startTime,P=C.endTime,I=C.captions,j=h.inbandTextTracks_;h.logger_("adding cues from "+M+" -> "+P+" for "+E),createCaptionsTrackIfNotExists(j,h.vhs_.tech_,E),removeCuesFromTrack(M,P,j[E]),addCaptionData({captionArray:I,inbandTextTracks:j,timestampOffset:w})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}},o.handleId3_=function(t,u,h){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)){var v=this.pendingSegment_;if(!v.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,u,h));return}var w=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();createMetadataTrackIfNotExists(this.inbandTextTracks_,h,this.vhs_.tech_),addMetadata({inbandTextTracks:this.inbandTextTracks_,metadataArray:u,timestampOffset:w,videoDuration:this.duration_()})}},o.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(t){return t()}),this.metadataQueue_.caption.forEach(function(t){return t()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},o.processCallQueue_=function(){var t=this.callQueue_;this.callQueue_=[],t.forEach(function(u){return u()})},o.processLoadQueue_=function(){var t=this.loadQueue_;this.loadQueue_=[],t.forEach(function(u){return u()})},o.hasEnoughInfoToLoad_=function(){if(this.loaderType_!=="audio")return!0;var t=this.pendingSegment_;return t?this.getCurrentMediaInfo_()?!shouldWaitForTimelineChange({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}):!0:!1},o.getCurrentMediaInfo_=function(t){return t===void 0&&(t=this.pendingSegment_),t&&t.trackInfo||this.currentMediaInfo_},o.getMediaInfo_=function(t){return t===void 0&&(t=this.pendingSegment_),this.getCurrentMediaInfo_(t)||this.startingMediaInfo_},o.getPendingSegmentPlaylist=function(){return this.pendingSegment_?this.pendingSegment_.playlist:null},o.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var t=this.pendingSegment_,u=this.getCurrentMediaInfo_();if(!t||!u)return!1;var h=u.hasAudio,v=u.hasVideo,w=u.isMuxed;return!(v&&!t.videoTimingInfo||h&&!this.audioDisabled_&&!w&&!t.audioTimingInfo||shouldWaitForTimelineChange({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},o.handleData_=function(t,u){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)){if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,t,u));return}var h=this.pendingSegment_;if(this.setTimeMapping_(h.timeline),this.updateMediaSecondsLoaded_(h.part||h.segment),this.mediaSource_.readyState!=="closed"){if(t.map&&(t.map=this.initSegmentForMap(t.map,!0),h.segment.map=t.map),t.key&&this.segmentKey(t.key,!0),h.isFmp4=t.isFmp4,h.timingInfo=h.timingInfo||{},h.isFmp4)this.trigger("fmp4"),h.timingInfo.start=h[timingInfoPropertyForMedia(u.type)].start;else{var v=this.getCurrentMediaInfo_(),w=this.loaderType_==="main"&&v&&v.hasVideo,A;w&&(A=h.videoTimingInfo.start),h.timingInfo.start=this.trueSegmentStart_({currentStart:h.timingInfo.start,playlist:h.playlist,mediaIndex:h.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:w,firstVideoFrameTimeForData:A,videoTimingInfo:h.videoTimingInfo,audioTimingInfo:h.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(h,u.type),this.updateSourceBufferTimestampOffset_(h),h.isSyncRequest){this.updateTimingInfoEnd_(h),this.syncController_.saveSegmentTimingInfo({segmentInfo:h,shouldSaveTimelineMapping:this.loaderType_==="main"});var E=this.chooseNextRequest_();if(E.mediaIndex!==h.mediaIndex||E.partIndex!==h.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}h.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(h,u)}}},o.updateAppendInitSegmentStatus=function(t,u){this.loaderType_==="main"&&typeof t.timestampOffset=="number"&&!t.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[u]!==t.playlist&&(this.appendInitSegment_[u]=!0)},o.getInitSegmentAndUpdateState_=function(t){var u=t.type,h=t.initSegment,v=t.map,w=t.playlist;if(v){var A=initSegmentId(v);if(this.activeInitSegmentId_===A)return null;h=this.initSegmentForMap(v,!0).bytes,this.activeInitSegmentId_=A}return h&&this.appendInitSegment_[u]?(this.playlistOfLastInitSegment_[u]=w,this.appendInitSegment_[u]=!1,this.activeInitSegmentId_=null,h):null},o.handleQuotaExceededError_=function(t,u){var h=this,v=t.segmentInfo,w=t.type,A=t.bytes,E=this.sourceUpdater_.audioBuffered(),C=this.sourceUpdater_.videoBuffered();E.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+timeRangesToArray(E).join(", ")),C.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+timeRangesToArray(C).join(", "));var M=E.length?E.start(0):0,P=E.length?E.end(E.length-1):0,I=C.length?C.start(0):0,j=C.length?C.end(C.length-1):0;if(P-M<=MIN_BACK_BUFFER&&j-I<=MIN_BACK_BUFFER){this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. "+("Appended byte length: "+A.byteLength+", ")+("audio buffer: "+timeRangesToArray(E).join(", ")+", ")+("video buffer: "+timeRangesToArray(C).join(", ")+", ")),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:v,type:w,bytes:A}));var B=this.currentTime_(),F=B-MIN_BACK_BUFFER;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+F),this.remove(0,F,function(){h.logger_("On QUOTA_EXCEEDED_ERR, retrying append in "+MIN_BACK_BUFFER+"s"),h.waitingOnRemove_=!1,h.quotaExceededErrorRetryTimeout_=window$1$1.setTimeout(function(){h.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),h.quotaExceededErrorRetryTimeout_=null,h.processCallQueue_()},MIN_BACK_BUFFER*1e3)},!0)},o.handleAppendError_=function(t,u){var h=t.segmentInfo,v=t.type,w=t.bytes;if(u){if(u.code===QUOTA_EXCEEDED_ERR){this.handleQuotaExceededError_({segmentInfo:h,type:v,bytes:w});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",u),this.error(v+" append of "+w.length+"b failed for segment "+("#"+h.mediaIndex+" in playlist "+h.playlist.id)),this.trigger("appenderror")}},o.appendToSourceBuffer_=function(t){var u=t.segmentInfo,h=t.type,v=t.initSegment,w=t.data,A=t.bytes;if(!A){var E=[w],C=w.byteLength;v&&(E.unshift(v),C+=v.byteLength),A=concatSegments({bytes:C,segments:E})}this.sourceUpdater_.appendBuffer({segmentInfo:u,type:h,bytes:A},this.handleAppendError_.bind(this,{segmentInfo:u,type:h,bytes:A}))},o.handleSegmentTimingInfo_=function(t,u,h){if(!(!this.pendingSegment_||u!==this.pendingSegment_.requestId)){var v=this.pendingSegment_.segment,w=t+"TimingInfo";v[w]||(v[w]={}),v[w].transmuxerPrependedSeconds=h.prependedContentDuration||0,v[w].transmuxedPresentationStart=h.start.presentation,v[w].transmuxedDecodeStart=h.start.decode,v[w].transmuxedPresentationEnd=h.end.presentation,v[w].transmuxedDecodeEnd=h.end.decode,v[w].baseMediaDecodeTime=h.baseMediaDecodeTime}},o.appendData_=function(t,u){var h=u.type,v=u.data;if(!(!v||!v.byteLength)&&!(h==="audio"&&this.audioDisabled_)){var w=this.getInitSegmentAndUpdateState_({type:h,initSegment:u.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:h,initSegment:w,data:v})}},o.loadSegment_=function(t){var u=this;if(this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),typeof t.timestampOffset=="number"&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(function(){var h=_extends$2({},t,{forceTimestampOffset:!0});_extends$2(t,u.generateSegmentInfo_(h)),u.isPendingTimestampOffset_=!1,u.updateTransmuxerAndRequestSegment_(t)});return}this.updateTransmuxerAndRequestSegment_(t)},o.updateTransmuxerAndRequestSegment_=function(t){var u=this;this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)&&(this.gopBuffer_.length=0,t.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset}));var h=this.createSimplifiedSegmentObj_(t),v=this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex),w=this.mediaIndex!==null,A=t.timeline!==this.currentTimeline_&&t.timeline>0,E=v||w&&A;this.logger_("Requesting "+segmentInfoString(t)),h.map&&!h.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=mediaSegmentRequest({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:h,abortFn:this.handleAbort_.bind(this,t),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:E,endedTimelineFn:function(){u.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(M){var P=M.message,I=M.level,j=M.stream;u.logger_(segmentInfoString(t)+" logged from transmuxer stream "+j+" as a "+I+": "+P)}})},o.trimBackBuffer_=function(t){var u=safeBackBufferTrimTime(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);u>0&&this.remove(0,u)},o.createSimplifiedSegmentObj_=function(t){var u=t.segment,h=t.part,v={resolvedUri:h?h.resolvedUri:u.resolvedUri,byterange:h?h.byterange:u.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,part:t.part},w=t.playlist.segments[t.mediaIndex-1];if(w&&w.timeline===u.timeline&&(w.videoTimingInfo?v.baseStartTime=w.videoTimingInfo.transmuxedDecodeEnd:w.audioTimingInfo&&(v.baseStartTime=w.audioTimingInfo.transmuxedDecodeEnd)),u.key){var A=u.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);v.key=this.segmentKey(u.key),v.key.iv=A}return u.map&&(v.map=this.initSegmentForMap(u.map)),v},o.saveTransferStats_=function(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)},o.saveBandwidthRelatedStats_=function(t,u){if(this.pendingSegment_.byteLength=u.bytesReceived,t<MIN_SEGMENT_DURATION_TO_SAVE_STATS){this.logger_("Ignoring segment's bandwidth because its duration of "+t+(" is less than the min to record "+MIN_SEGMENT_DURATION_TO_SAVE_STATS));return}this.bandwidth=u.bandwidth,this.roundTrip=u.roundTripTime},o.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")},o.segmentRequestFinished_=function(t,u,h){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,u,h));return}if(this.saveTransferStats_(u.stats),!!this.pendingSegment_&&u.requestId===this.pendingSegment_.requestId){if(t){if(this.pendingSegment_=null,this.state="READY",t.code===REQUEST_ERRORS.ABORTED)return;if(this.pause(),t.code===REQUEST_ERRORS.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(t),this.trigger("error");return}var v=this.pendingSegment_;this.saveBandwidthRelatedStats_(v.duration,u.stats),v.endOfAllRequests=u.endOfAllRequests,h.gopInfo&&(this.gopBuffer_=updateGopBuffer(this.gopBuffer_,h.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(v)}},o.setTimeMapping_=function(t){var u=this.syncController_.mappingForTimeline(t);u!==null&&(this.timeMapping_=u)},o.updateMediaSecondsLoaded_=function(t){typeof t.start=="number"&&typeof t.end=="number"?this.mediaSecondsLoaded+=t.end-t.start:this.mediaSecondsLoaded+=t.duration},o.shouldUpdateTransmuxerTimestampOffset_=function(t){return t===null?!1:this.loaderType_==="main"&&t!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset()},o.trueSegmentStart_=function(t){var u=t.currentStart,h=t.playlist,v=t.mediaIndex,w=t.firstVideoFrameTimeForData,A=t.currentVideoTimestampOffset,E=t.useVideoTimingInfo,C=t.videoTimingInfo,M=t.audioTimingInfo;if(typeof u<"u")return u;if(!E)return M.start;var P=h.segments[v-1];return v===0||!P||typeof P.start>"u"||P.end!==w+A?w:C.start},o.waitForAppendsToComplete_=function(t){var u=this.getCurrentMediaInfo_(t);if(!u){this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),this.trigger("error");return}var h=u.hasAudio,v=u.hasVideo,w=u.isMuxed,A=this.loaderType_==="main"&&v,E=!this.audioDisabled_&&h&&!w;if(t.waitingOnAppends=0,!t.hasAppendedData_){!t.timingInfo&&typeof t.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!0),t.timingInfo={start:0},t.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(t),this.processMetadataQueue_()),this.checkAppendsDone_(t);return}A&&t.waitingOnAppends++,E&&t.waitingOnAppends++,A&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t)),E&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))},o.checkAppendsDone_=function(t){this.checkForAbort_(t.requestId)||(t.waitingOnAppends--,t.waitingOnAppends===0&&this.handleAppendsDone_())},o.checkForIllegalMediaSwitch=function(t){var u=illegalMediaSwitch(this.loaderType_,this.getCurrentMediaInfo_(),t);return u?(this.error({message:u,blacklistDuration:1/0}),this.trigger("error"),!0):!1},o.updateSourceBufferTimestampOffset_=function(t){if(!(t.timestampOffset===null||typeof t.timingInfo.start!="number"||t.changedTimestampOffset||this.loaderType_!=="main")){var u=!1;t.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:t.segment.videoTimingInfo,audioTimingInfo:t.segment.audioTimingInfo,timingInfo:t.timingInfo}),t.changedTimestampOffset=!0,t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(t.timestampOffset),u=!0),t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(t.timestampOffset),u=!0),u&&this.trigger("timestampoffset")}},o.getSegmentStartTimeForTimestampOffsetCalculation_=function(t){var u=t.videoTimingInfo,h=t.audioTimingInfo,v=t.timingInfo;return this.useDtsForTimestampOffset_?u&&typeof u.transmuxedDecodeStart=="number"?u.transmuxedDecodeStart:h&&typeof h.transmuxedDecodeStart=="number"?h.transmuxedDecodeStart:v.start:v.start},o.updateTimingInfoEnd_=function(t){t.timingInfo=t.timingInfo||{};var u=this.getMediaInfo_(),h=this.loaderType_==="main"&&u&&u.hasVideo,v=h&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;v&&(t.timingInfo.end=typeof v.end=="number"?v.end:v.start+t.duration)},o.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}var t=this.pendingSegment_;this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:this.loaderType_==="main"});var u=getTroublesomeSegmentDurationMessage(t,this.sourceType_);if(u&&(u.severity==="warn"?videojs.log.warn(u.message):this.logger_(u.message)),this.recordThroughput_(t),this.pendingSegment_=null,this.state="READY",t.isSyncRequest&&(this.trigger("syncinfoupdate"),!t.hasAppendedData_)){this.logger_("Throwing away un-appended sync request "+segmentInfoString(t));return}this.logger_("Appended "+segmentInfoString(t)),this.addSegmentMetadataCue_(t),this.fetchAtBuffer_=!0,this.currentTimeline_!==t.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),this.loaderType_==="main"&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})),this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate");var h=t.segment,v=t.part,w=h.end&&this.currentTime_()-h.end>t.playlist.targetDuration*3,A=v&&v.end&&this.currentTime_()-v.end>t.playlist.partTargetDuration*3;if(w||A){this.logger_("bad "+(w?"segment":"part")+" "+segmentInfoString(t)),this.resetEverything();return}var E=this.mediaIndex!==null;E&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=t.mediaIndex,this.partIndex=t.partIndex,this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)&&this.endOfStream(),this.trigger("appended"),t.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()},o.recordThroughput_=function(t){if(t.duration<MIN_SEGMENT_DURATION_TO_SAVE_STATS){this.logger_("Ignoring segment's throughput because its duration of "+t.duration+(" is less than the min to record "+MIN_SEGMENT_DURATION_TO_SAVE_STATS));return}var u=this.throughput.rate,h=Date.now()-t.endOfAllRequests+1,v=Math.floor(t.byteLength/h*8*1e3);this.throughput.rate+=(v-u)/++this.throughput.count},o.addSegmentMetadataCue_=function(t){if(this.segmentMetadataTrack_){var u=t.segment,h=u.start,v=u.end;if(!(!finite(h)||!finite(v))){removeCuesFromTrack(h,v,this.segmentMetadataTrack_);var w=window$1$1.WebKitDataCue||window$1$1.VTTCue,A={custom:u.custom,dateTimeObject:u.dateTimeObject,dateTimeString:u.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:h,end:v},E=JSON.stringify(A),C=new w(h,v,E);C.value=A,this.segmentMetadataTrack_.addCue(C)}}},e}(videojs.EventTarget);function noop$1(){}var toTitleCase=function(e){return typeof e!="string"?e:e.replace(/./,function(o){return o.toUpperCase()})},bufferTypes=["video","audio"],_updating=function(e,o){var l=o[e+"Buffer"];return l&&l.updating||o.queuePending[e]},nextQueueIndexOfType=function(e,o){for(var l=0;l<o.length;l++){var t=o[l];if(t.type==="mediaSource")return null;if(t.type===e)return l}return null},shiftQueue=function n(e,o){if(o.queue.length!==0){var l=0,t=o.queue[l];if(t.type==="mediaSource"){!o.updating()&&o.mediaSource.readyState!=="closed"&&(o.queue.shift(),t.action(o),t.doneFn&&t.doneFn(),n("audio",o),n("video",o));return}if(e!=="mediaSource"&&!(!o.ready()||o.mediaSource.readyState==="closed"||_updating(e,o))){if(t.type!==e){if(l=nextQueueIndexOfType(e,o.queue),l===null)return;t=o.queue[l]}if(o.queue.splice(l,1),o.queuePending[e]=t,t.action(e,o),!t.doneFn){o.queuePending[e]=null,n(e,o);return}}}},cleanupBuffer=function(e,o){var l=o[e+"Buffer"],t=toTitleCase(e);l&&(l.removeEventListener("updateend",o["on"+t+"UpdateEnd_"]),l.removeEventListener("error",o["on"+t+"Error_"]),o.codecs[e]=null,o[e+"Buffer"]=null)},inSourceBuffers=function(e,o){return e&&o&&Array.prototype.indexOf.call(e.sourceBuffers,o)!==-1},actions={appendBuffer:function(e,o,l){return function(t,u){var h=u[t+"Buffer"];if(inSourceBuffers(u.mediaSource,h)){u.logger_("Appending segment "+o.mediaIndex+"'s "+e.length+" bytes to "+t+"Buffer");try{h.appendBuffer(e)}catch(v){u.logger_("Error with code "+v.code+" "+(v.code===QUOTA_EXCEEDED_ERR?"(QUOTA_EXCEEDED_ERR) ":"")+("when appending segment "+o.mediaIndex+" to "+t+"Buffer")),u.queuePending[t]=null,l(v)}}}},remove:function(e,o){return function(l,t){var u=t[l+"Buffer"];if(inSourceBuffers(t.mediaSource,u)){t.logger_("Removing "+e+" to "+o+" from "+l+"Buffer");try{u.remove(e,o)}catch{t.logger_("Remove "+e+" to "+o+" from "+l+"Buffer failed")}}}},timestampOffset:function(e){return function(o,l){var t=l[o+"Buffer"];inSourceBuffers(l.mediaSource,t)&&(l.logger_("Setting "+o+"timestampOffset to "+e),t.timestampOffset=e)}},callback:function(e){return function(o,l){e()}},endOfStream:function(e){return function(o){if(o.mediaSource.readyState==="open"){o.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{o.mediaSource.endOfStream(e)}catch(l){videojs.log.warn("Failed to call media source endOfStream",l)}}}},duration:function(e){return function(o){o.logger_("Setting mediaSource duration to "+e);try{o.mediaSource.duration=e}catch(l){videojs.log.warn("Failed to set media source duration",l)}}},abort:function(){return function(e,o){if(o.mediaSource.readyState==="open"){var l=o[e+"Buffer"];if(inSourceBuffers(o.mediaSource,l)){o.logger_("calling abort on "+e+"Buffer");try{l.abort()}catch(t){videojs.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},addSourceBuffer:function(e,o){return function(l){var t=toTitleCase(e),u=getMimeForCodec(o);l.logger_("Adding "+e+"Buffer with codec "+o+" to mediaSource");var h=l.mediaSource.addSourceBuffer(u);h.addEventListener("updateend",l["on"+t+"UpdateEnd_"]),h.addEventListener("error",l["on"+t+"Error_"]),l.codecs[e]=o,l[e+"Buffer"]=h}},removeSourceBuffer:function(e){return function(o){var l=o[e+"Buffer"];if(cleanupBuffer(e,o),!!inSourceBuffers(o.mediaSource,l)){o.logger_("Removing "+e+"Buffer with codec "+o.codecs[e]+" from mediaSource");try{o.mediaSource.removeSourceBuffer(l)}catch(t){videojs.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},changeType:function(e){return function(o,l){var t=l[o+"Buffer"],u=getMimeForCodec(e);if(inSourceBuffers(l.mediaSource,t)&&l.codecs[o]!==e){l.logger_("changing "+o+"Buffer codec from "+l.codecs[o]+" to "+e);try{t.changeType(u),l.codecs[o]=e}catch(h){videojs.log.warn("Failed to changeType on "+o+"Buffer",h)}}}}},pushQueue=function(e){var o=e.type,l=e.sourceUpdater,t=e.action,u=e.doneFn,h=e.name;l.queue.push({type:o,action:t,doneFn:u,name:h}),shiftQueue(o,l)},onUpdateend=function(e,o){return function(l){if(o.queuePending[e]){var t=o.queuePending[e].doneFn;o.queuePending[e]=null,t&&t(o[e+"Error_"])}shiftQueue(e,o)}},SourceUpdater=function(n){_inheritsLoose(e,n);function e(l){var t;return t=n.call(this)||this,t.mediaSource=l,t.sourceopenListener_=function(){return shiftQueue("mediaSource",_assertThisInitialized$1(t))},t.mediaSource.addEventListener("sourceopen",t.sourceopenListener_),t.logger_=logger("SourceUpdater"),t.audioTimestampOffset_=0,t.videoTimestampOffset_=0,t.queue=[],t.queuePending={audio:null,video:null},t.delayedAudioAppendQueue_=[],t.videoAppendQueued_=!1,t.codecs={},t.onVideoUpdateEnd_=onUpdateend("video",_assertThisInitialized$1(t)),t.onAudioUpdateEnd_=onUpdateend("audio",_assertThisInitialized$1(t)),t.onVideoError_=function(u){t.videoError_=u},t.onAudioError_=function(u){t.audioError_=u},t.createdSourceBuffers_=!1,t.initializedEme_=!1,t.triggeredReady_=!1,t}var o=e.prototype;return o.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},o.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},o.hasInitializedAnyEme=function(){return this.initializedEme_},o.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},o.createSourceBuffers=function(t){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(t),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},o.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},o.addSourceBuffer=function(t,u){pushQueue({type:"mediaSource",sourceUpdater:this,action:actions.addSourceBuffer(t,u),name:"addSourceBuffer"})},o.abort=function(t){pushQueue({type:t,sourceUpdater:this,action:actions.abort(t),name:"abort"})},o.removeSourceBuffer=function(t){if(!this.canRemoveSourceBuffer()){videojs.log.error("removeSourceBuffer is not supported!");return}pushQueue({type:"mediaSource",sourceUpdater:this,action:actions.removeSourceBuffer(t),name:"removeSourceBuffer"})},o.canRemoveSourceBuffer=function(){return!videojs.browser.IE_VERSION&&!videojs.browser.IS_FIREFOX&&window$1$1.MediaSource&&window$1$1.MediaSource.prototype&&typeof window$1$1.MediaSource.prototype.removeSourceBuffer=="function"},e.canChangeType=function(){return window$1$1.SourceBuffer&&window$1$1.SourceBuffer.prototype&&typeof window$1$1.SourceBuffer.prototype.changeType=="function"},o.canChangeType=function(){return this.constructor.canChangeType()},o.changeType=function(t,u){if(!this.canChangeType()){videojs.log.error("changeType is not supported!");return}pushQueue({type:t,sourceUpdater:this,action:actions.changeType(u),name:"changeType"})},o.addOrChangeSourceBuffers=function(t){var u=this;if(!t||typeof t!="object"||Object.keys(t).length===0)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(t).forEach(function(h){var v=t[h];if(!u.hasCreatedSourceBuffers())return u.addSourceBuffer(h,v);u.canChangeType()&&u.changeType(h,v)})},o.appendBuffer=function(t,u){var h=this,v=t.segmentInfo,w=t.type,A=t.bytes;if(this.processedAppend_=!0,w==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([t,u]),this.logger_("delayed audio append of "+A.length+" until video append");return}var E=u;if(pushQueue({type:w,sourceUpdater:this,action:actions.appendBuffer(A,v||{mediaIndex:-1},E),doneFn:u,name:"appendBuffer"}),w==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var C=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+C.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,C.forEach(function(M){h.appendBuffer.apply(h,M)})}},o.audioBuffered=function(){return inSourceBuffers(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:videojs.createTimeRange()},o.videoBuffered=function(){return inSourceBuffers(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:videojs.createTimeRange()},o.buffered=function(){var t=inSourceBuffers(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,u=inSourceBuffers(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return u&&!t?this.audioBuffered():t&&!u?this.videoBuffered():bufferIntersection(this.audioBuffered(),this.videoBuffered())},o.setDuration=function(t,u){u===void 0&&(u=noop$1),pushQueue({type:"mediaSource",sourceUpdater:this,action:actions.duration(t),name:"duration",doneFn:u})},o.endOfStream=function(t,u){t===void 0&&(t=null),u===void 0&&(u=noop$1),typeof t!="string"&&(t=void 0),pushQueue({type:"mediaSource",sourceUpdater:this,action:actions.endOfStream(t),name:"endOfStream",doneFn:u})},o.removeAudio=function(t,u,h){if(h===void 0&&(h=noop$1),!this.audioBuffered().length||this.audioBuffered().end(0)===0){h();return}pushQueue({type:"audio",sourceUpdater:this,action:actions.remove(t,u),doneFn:h,name:"remove"})},o.removeVideo=function(t,u,h){if(h===void 0&&(h=noop$1),!this.videoBuffered().length||this.videoBuffered().end(0)===0){h();return}pushQueue({type:"video",sourceUpdater:this,action:actions.remove(t,u),doneFn:h,name:"remove"})},o.updating=function(){return!!(_updating("audio",this)||_updating("video",this))},o.audioTimestampOffset=function(t){return typeof t<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(pushQueue({type:"audio",sourceUpdater:this,action:actions.timestampOffset(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_},o.videoTimestampOffset=function(t){return typeof t<"u"&&this.videoBuffer&&this.videoTimestampOffset!==t&&(pushQueue({type:"video",sourceUpdater:this,action:actions.timestampOffset(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_},o.audioQueueCallback=function(t){this.audioBuffer&&pushQueue({type:"audio",sourceUpdater:this,action:actions.callback(t),name:"callback"})},o.videoQueueCallback=function(t){this.videoBuffer&&pushQueue({type:"video",sourceUpdater:this,action:actions.callback(t),name:"callback"})},o.dispose=function(){var t=this;this.trigger("dispose"),bufferTypes.forEach(function(u){t.abort(u),t.canRemoveSourceBuffer()?t.removeSourceBuffer(u):t[u+"QueueCallback"](function(){return cleanupBuffer(u,t)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},e}(videojs.EventTarget),uint8ToUtf8=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},VTT_LINE_TERMINATORS=new Uint8Array(`

`.split("").map(function(n){return n.charCodeAt(0)})),NoVttJsError=function(n){_inheritsLoose(e,n);function e(){return n.call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")||this}return e}(_wrapNativeSuper$1(Error)),VTTSegmentLoader=function(n){_inheritsLoose(e,n);function e(l,t){var u;return t===void 0&&(t={}),u=n.call(this,l,t)||this,u.mediaSource_=null,u.subtitlesTrack_=null,u.loaderType_="subtitle",u.featuresNativeTextTracks_=l.featuresNativeTextTracks,u.loadVttJs=l.loadVttJs,u.shouldSaveSegmentTimingInfo_=!1,u}var o=e.prototype;return o.createTransmuxer_=function(){return null},o.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return videojs.createTimeRanges();var t=this.subtitlesTrack_.cues,u=t[0].startTime,h=t[t.length-1].startTime;return videojs.createTimeRanges([[u,h]])},o.initSegmentForMap=function(t,u){if(u===void 0&&(u=!1),!t)return null;var h=initSegmentId(t),v=this.initSegments_[h];if(u&&!v&&t.bytes){var w=VTT_LINE_TERMINATORS.byteLength+t.bytes.byteLength,A=new Uint8Array(w);A.set(t.bytes),A.set(VTT_LINE_TERMINATORS,t.bytes.byteLength),this.initSegments_[h]=v={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:A}}return v||t},o.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},o.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},o.track=function(t){return typeof t>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=t,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)},o.remove=function(t,u){removeCuesFromTrack(t,u,this.subtitlesTrack_)},o.fillBuffer_=function(){var t=this,u=this.chooseNextRequest_();if(u){if(this.syncController_.timestampOffsetForTimeline(u.timeline)===null){var h=function(){t.state="READY",t.paused()||t.monitorBuffer_()};this.syncController_.one("timestampoffset",h),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(u)}},o.timestampOffsetForSegment_=function(){return null},o.chooseNextRequest_=function(){return this.skipEmptySegments_(n.prototype.chooseNextRequest_.call(this))},o.skipEmptySegments_=function(t){for(;t&&t.segment.empty;){if(t.mediaIndex+1>=t.playlist.segments.length){t=null;break}t=this.generateSegmentInfo_({playlist:t.playlist,mediaIndex:t.mediaIndex+1,startOfSegment:t.startOfSegment+t.duration,isSyncRequest:t.isSyncRequest})}return t},o.stopForError=function(t){this.error(t),this.state="READY",this.pause(),this.trigger("error")},o.segmentRequestFinished_=function(t,u,h){var v=this;if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(u.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(t){t.code===REQUEST_ERRORS.TIMEOUT&&this.handleTimeout_(),t.code===REQUEST_ERRORS.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(t);return}var w=this.pendingSegment_;this.saveBandwidthRelatedStats_(w.duration,u.stats),u.key&&this.segmentKey(u.key,!0),this.state="APPENDING",this.trigger("appending");var A=w.segment;if(A.map&&(A.map.bytes=u.map.bytes),w.bytes=u.bytes,typeof window$1$1.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(function(){return v.segmentRequestFinished_(t,u,h)},function(){return v.stopForError({message:"Error loading vtt.js"})});return}A.requested=!0;try{this.parseVTTCues_(w)}catch(E){this.stopForError({message:E.message});return}if(this.updateTimeMapping_(w,this.syncController_.timelines[w.timeline],this.playlist_),w.cues.length?w.timingInfo={start:w.cues[0].startTime,end:w.cues[w.cues.length-1].endTime}:w.timingInfo={start:w.startOfSegment,end:w.startOfSegment+w.duration},w.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}w.byteLength=w.bytes.byteLength,this.mediaSecondsLoaded+=A.duration,w.cues.forEach(function(E){v.subtitlesTrack_.addCue(v.featuresNativeTextTracks_?new window$1$1.VTTCue(E.startTime,E.endTime,E.text):E)}),removeDuplicateCuesFromTrack(this.subtitlesTrack_),this.handleAppendsDone_()},o.handleData_=function(){},o.updateTimingInfoEnd_=function(){},o.parseVTTCues_=function(t){var u,h=!1;if(typeof window$1$1.WebVTT!="function")throw new NoVttJsError;typeof window$1$1.TextDecoder=="function"?u=new window$1$1.TextDecoder("utf8"):(u=window$1$1.WebVTT.StringDecoder(),h=!0);var v=new window$1$1.WebVTT.Parser(window$1$1,window$1$1.vttjs,u);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},v.oncue=t.cues.push.bind(t.cues),v.ontimestampmap=function(E){t.timestampmap=E},v.onparsingerror=function(E){videojs.log.warn("Error encountered when parsing cues: "+E.message)},t.segment.map){var w=t.segment.map.bytes;h&&(w=uint8ToUtf8(w)),v.parse(w)}var A=t.bytes;h&&(A=uint8ToUtf8(A)),v.parse(A),v.flush()},o.updateTimeMapping_=function(t,u,h){var v=t.segment;if(u){if(!t.cues.length){v.empty=!0;return}var w=t.timestampmap,A=w.MPEGTS/clock.ONE_SECOND_IN_TS-w.LOCAL+u.mapping;if(t.cues.forEach(function(M){M.startTime+=A,M.endTime+=A}),!h.syncInfo){var E=t.cues[0].startTime,C=t.cues[t.cues.length-1].startTime;h.syncInfo={mediaSequence:h.mediaSequence+t.mediaIndex,time:Math.min(E,C-v.duration)}}}},e}(SegmentLoader),findAdCue=function(e,o){for(var l=e.cues,t=0;t<l.length;t++){var u=l[t];if(o>=u.adStartTime&&o<=u.adEndTime)return u}return null},updateAdCues=function(e,o,l){if(l===void 0&&(l=0),!!e.segments)for(var t=l,u,h=0;h<e.segments.length;h++){var v=e.segments[h];if(u||(u=findAdCue(o,t+v.duration/2)),u){if("cueIn"in v){u.endTime=t,u.adEndTime=t,t+=v.duration,u=null;continue}if(t<u.endTime){t+=v.duration;continue}u.endTime+=v.duration}else if("cueOut"in v&&(u=new window$1$1.VTTCue(t,t+v.duration,v.cueOut),u.adStartTime=t,u.adEndTime=t+parseFloat(v.cueOut),o.addCue(u)),"cueOutCont"in v){var w=v.cueOutCont.split("/").map(parseFloat),A=w[0],E=w[1];u=new window$1$1.VTTCue(t,t+v.duration,""),u.adStartTime=t-A,u.adEndTime=u.adStartTime+E,o.addCue(u)}t+=v.duration}},MAX_MEDIA_SEQUENCE_DIFF_FOR_SYNC=86400,syncPointStrategies=[{name:"VOD",run:function(e,o,l,t,u){if(l!==1/0){var h={time:0,segmentIndex:0,partIndex:null};return h}return null}},{name:"ProgramDateTime",run:function(e,o,l,t,u){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var h=null,v=null,w=getPartsAndSegments(o);u=u||0;for(var A=0;A<w.length;A++){var E=o.endList||u===0?A:w.length-(A+1),C=w[E],M=C.segment,P=e.timelineToDatetimeMappings[M.timeline];if(!(!P||!M.dateTimeObject)){var I=M.dateTimeObject.getTime()/1e3,j=I+P;if(M.parts&&typeof C.partIndex=="number")for(var B=0;B<C.partIndex;B++)j+=M.parts[B].duration;var F=Math.abs(u-j);if(v!==null&&(F===0||v<F))break;v=F,h={time:j,segmentIndex:C.segmentIndex,partIndex:C.partIndex}}}return h}},{name:"Segment",run:function(e,o,l,t,u){var h=null,v=null;u=u||0;for(var w=getPartsAndSegments(o),A=0;A<w.length;A++){var E=o.endList||u===0?A:w.length-(A+1),C=w[E],M=C.segment,P=C.part&&C.part.start||M&&M.start;if(M.timeline===t&&typeof P<"u"){var I=Math.abs(u-P);if(v!==null&&v<I)break;(!h||v===null||v>=I)&&(v=I,h={time:P,segmentIndex:C.segmentIndex,partIndex:C.partIndex})}}return h}},{name:"Discontinuity",run:function(e,o,l,t,u){var h=null;if(u=u||0,o.discontinuityStarts&&o.discontinuityStarts.length)for(var v=null,w=0;w<o.discontinuityStarts.length;w++){var A=o.discontinuityStarts[w],E=o.discontinuitySequence+w+1,C=e.discontinuities[E];if(C){var M=Math.abs(u-C.time);if(v!==null&&v<M)break;(!h||v===null||v>=M)&&(v=M,h={time:C.time,segmentIndex:A,partIndex:null})}}return h}},{name:"Playlist",run:function(e,o,l,t,u){if(o.syncInfo){var h={time:o.syncInfo.time,segmentIndex:o.syncInfo.mediaSequence-o.mediaSequence,partIndex:null};return h}return null}}],SyncController=function(n){_inheritsLoose(e,n);function e(l){var t;return t=n.call(this)||this,t.timelines=[],t.discontinuities=[],t.timelineToDatetimeMappings={},t.logger_=logger("SyncController"),t}var o=e.prototype;return o.getSyncPoint=function(t,u,h,v){var w=this.runStrategies_(t,u,h,v);return w.length?this.selectSyncPoint_(w,{key:"time",value:v}):null},o.getExpiredTime=function(t,u){if(!t||!t.segments)return null;var h=this.runStrategies_(t,u,t.discontinuitySequence,0);if(!h.length)return null;var v=this.selectSyncPoint_(h,{key:"segmentIndex",value:0});return v.segmentIndex>0&&(v.time*=-1),Math.abs(v.time+sumDurations({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:v.segmentIndex,endIndex:0}))},o.runStrategies_=function(t,u,h,v){for(var w=[],A=0;A<syncPointStrategies.length;A++){var E=syncPointStrategies[A],C=E.run(this,t,u,h,v);C&&(C.strategy=E.name,w.push({strategy:E.name,syncPoint:C}))}return w},o.selectSyncPoint_=function(t,u){for(var h=t[0].syncPoint,v=Math.abs(t[0].syncPoint[u.key]-u.value),w=t[0].strategy,A=1;A<t.length;A++){var E=Math.abs(t[A].syncPoint[u.key]-u.value);E<v&&(v=E,h=t[A].syncPoint,w=t[A].strategy)}return this.logger_("syncPoint for ["+u.key+": "+u.value+"] chosen with strategy"+(" ["+w+"]: [time:"+h.time+",")+(" segmentIndex:"+h.segmentIndex)+(typeof h.partIndex=="number"?",partIndex:"+h.partIndex:"")+"]"),h},o.saveExpiredSegmentInfo=function(t,u){var h=u.mediaSequence-t.mediaSequence;if(h>MAX_MEDIA_SEQUENCE_DIFF_FOR_SYNC){videojs.log.warn("Not saving expired segment info. Media sequence gap "+h+" is too large.");return}for(var v=h-1;v>=0;v--){var w=t.segments[v];if(w&&typeof w.start<"u"){u.syncInfo={mediaSequence:t.mediaSequence+v,time:w.start},this.logger_("playlist refresh sync: [time:"+u.syncInfo.time+","+(" mediaSequence: "+u.syncInfo.mediaSequence+"]")),this.trigger("syncinfoupdate");break}}},o.setDateTimeMappingForStart=function(t){if(this.timelineToDatetimeMappings={},t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var u=t.segments[0],h=u.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[u.timeline]=-h}},o.saveSegmentTimingInfo=function(t){var u=t.segmentInfo,h=t.shouldSaveTimelineMapping,v=this.calculateSegmentTimeMapping_(u,u.timingInfo,h),w=u.segment;v&&(this.saveDiscontinuitySyncInfo_(u),u.playlist.syncInfo||(u.playlist.syncInfo={mediaSequence:u.playlist.mediaSequence+u.mediaIndex,time:w.start}));var A=w.dateTimeObject;w.discontinuity&&h&&A&&(this.timelineToDatetimeMappings[w.timeline]=-(A.getTime()/1e3))},o.timestampOffsetForTimeline=function(t){return typeof this.timelines[t]>"u"?null:this.timelines[t].time},o.mappingForTimeline=function(t){return typeof this.timelines[t]>"u"?null:this.timelines[t].mapping},o.calculateSegmentTimeMapping_=function(t,u,h){var v=t.segment,w=t.part,A=this.timelines[t.timeline],E,C;if(typeof t.timestampOffset=="number")A={time:t.startOfSegment,mapping:t.startOfSegment-u.start},h&&(this.timelines[t.timeline]=A,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": "+("[time: "+A.time+"] [mapping: "+A.mapping+"]"))),E=t.startOfSegment,C=u.end+A.mapping;else if(A)E=u.start+A.mapping,C=u.end+A.mapping;else return!1;return w&&(w.start=E,w.end=C),(!v.start||E<v.start)&&(v.start=E),v.end=C,!0},o.saveDiscontinuitySyncInfo_=function(t){var u=t.playlist,h=t.segment;if(h.discontinuity)this.discontinuities[h.timeline]={time:h.start,accuracy:0};else if(u.discontinuityStarts&&u.discontinuityStarts.length)for(var v=0;v<u.discontinuityStarts.length;v++){var w=u.discontinuityStarts[v],A=u.discontinuitySequence+v+1,E=w-t.mediaIndex,C=Math.abs(E);if(!this.discontinuities[A]||this.discontinuities[A].accuracy>C){var M=void 0;E<0?M=h.start-sumDurations({defaultDuration:u.targetDuration,durationList:u.segments,startIndex:t.mediaIndex,endIndex:w}):M=h.end+sumDurations({defaultDuration:u.targetDuration,durationList:u.segments,startIndex:t.mediaIndex+1,endIndex:w}),this.discontinuities[A]={time:M,accuracy:C}}}},o.dispose=function(){this.trigger("dispose"),this.off()},e}(videojs.EventTarget),TimelineChangeController=function(n){_inheritsLoose(e,n);function e(){var l;return l=n.call(this)||this,l.pendingTimelineChanges_={},l.lastTimelineChanges_={},l}var o=e.prototype;return o.clearPendingTimelineChange=function(t){this.pendingTimelineChanges_[t]=null,this.trigger("pendingtimelinechange")},o.pendingTimelineChange=function(t){var u=t.type,h=t.from,v=t.to;return typeof h=="number"&&typeof v=="number"&&(this.pendingTimelineChanges_[u]={type:u,from:h,to:v},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[u]},o.lastTimelineChange=function(t){var u=t.type,h=t.from,v=t.to;return typeof h=="number"&&typeof v=="number"&&(this.lastTimelineChanges_[u]={type:u,from:h,to:v},delete this.pendingTimelineChanges_[u],this.trigger("timelinechange")),this.lastTimelineChanges_[u]},o.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},e}(videojs.EventTarget),workerCode=transform(getWorkerString(function(){var n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$1<"u"?global$1:typeof self<"u"?self:{};function e(Z,re,fe){return fe={path:re,exports:{},require:function(le,he){return o(le,he??fe.path)}},Z(fe,fe.exports),fe.exports}function o(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var l=e(function(Z){function re(V,le){for(var he=0;he<le.length;he++){var ye=le[he];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(V,ye.key,ye)}}function fe(V,le,he){return le&&re(V.prototype,le),he&&re(V,he),V}Z.exports=fe,Z.exports.default=Z.exports,Z.exports.__esModule=!0}),t=e(function(Z){function re(fe,V){return Z.exports=re=Object.setPrototypeOf||function(he,ye){return he.__proto__=ye,he},Z.exports.default=Z.exports,Z.exports.__esModule=!0,re(fe,V)}Z.exports=re,Z.exports.default=Z.exports,Z.exports.__esModule=!0}),u=e(function(Z){function re(fe,V){fe.prototype=Object.create(V.prototype),fe.prototype.constructor=fe,t(fe,V)}Z.exports=re,Z.exports.default=Z.exports,Z.exports.__esModule=!0}),h=function(){function Z(){this.listeners={}}var re=Z.prototype;return re.on=function(V,le){this.listeners[V]||(this.listeners[V]=[]),this.listeners[V].push(le)},re.off=function(V,le){if(!this.listeners[V])return!1;var he=this.listeners[V].indexOf(le);return this.listeners[V]=this.listeners[V].slice(0),this.listeners[V].splice(he,1),he>-1},re.trigger=function(V){var le=this.listeners[V];if(le)if(arguments.length===2)for(var he=le.length,ye=0;ye<he;++ye)le[ye].call(this,arguments[1]);else for(var L=Array.prototype.slice.call(arguments,1),p=le.length,y=0;y<p;++y)le[y].apply(this,L)},re.dispose=function(){this.listeners={}},re.pipe=function(V){this.on("data",function(le){V.push(le)})},Z}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function v(Z){return Z.subarray(0,Z.byteLength-Z[Z.byteLength-1])}/*! @name aes-decrypter @version 3.1.3 @license Apache-2.0 */var w=function(){var re=[[[],[],[],[],[]],[[],[],[],[],[]]],fe=re[0],V=re[1],le=fe[4],he=V[4],ye,L,p,y=[],S=[],c,m,x,T,b,d;for(ye=0;ye<256;ye++)S[(y[ye]=ye<<1^(ye>>7)*283)^ye]=ye;for(L=p=0;!le[L];L^=c||1,p=S[p]||1)for(T=p^p<<1^p<<2^p<<3^p<<4,T=T>>8^T&255^99,le[L]=T,he[T]=L,x=y[m=y[c=y[L]]],d=x*16843009^m*65537^c*257^L*16843008,b=y[T]*257^T*16843008,ye=0;ye<4;ye++)fe[ye][L]=b=b<<24^b>>>8,V[ye][T]=d=d<<24^d>>>8;for(ye=0;ye<5;ye++)fe[ye]=fe[ye].slice(0),V[ye]=V[ye].slice(0);return re},A=null,E=function(){function Z(fe){A||(A=w()),this._tables=[[A[0][0].slice(),A[0][1].slice(),A[0][2].slice(),A[0][3].slice(),A[0][4].slice()],[A[1][0].slice(),A[1][1].slice(),A[1][2].slice(),A[1][3].slice(),A[1][4].slice()]];var V,le,he,ye=this._tables[0][4],L=this._tables[1],p=fe.length,y=1;if(p!==4&&p!==6&&p!==8)throw new Error("Invalid aes key size");var S=fe.slice(0),c=[];for(this._key=[S,c],V=p;V<4*p+28;V++)he=S[V-1],(V%p===0||p===8&&V%p===4)&&(he=ye[he>>>24]<<24^ye[he>>16&255]<<16^ye[he>>8&255]<<8^ye[he&255],V%p===0&&(he=he<<8^he>>>24^y<<24,y=y<<1^(y>>7)*283)),S[V]=S[V-p]^he;for(le=0;V;le++,V--)he=S[le&3?V:V-4],V<=4||le<4?c[le]=he:c[le]=L[0][ye[he>>>24]]^L[1][ye[he>>16&255]]^L[2][ye[he>>8&255]]^L[3][ye[he&255]]}var re=Z.prototype;return re.decrypt=function(V,le,he,ye,L,p){var y=this._key[1],S=V^y[0],c=ye^y[1],m=he^y[2],x=le^y[3],T,b,d,k=y.length/4-2,D,O=4,Q=this._tables[1],J=Q[0],X=Q[1],U=Q[2],z=Q[3],ie=Q[4];for(D=0;D<k;D++)T=J[S>>>24]^X[c>>16&255]^U[m>>8&255]^z[x&255]^y[O],b=J[c>>>24]^X[m>>16&255]^U[x>>8&255]^z[S&255]^y[O+1],d=J[m>>>24]^X[x>>16&255]^U[S>>8&255]^z[c&255]^y[O+2],x=J[x>>>24]^X[S>>16&255]^U[c>>8&255]^z[m&255]^y[O+3],O+=4,S=T,c=b,m=d;for(D=0;D<4;D++)L[(3&-D)+p]=ie[S>>>24]<<24^ie[c>>16&255]<<16^ie[m>>8&255]<<8^ie[x&255]^y[O++],T=S,S=c,c=m,m=x,x=T},Z}(),C=function(Z){u(re,Z);function re(){var V;return V=Z.call(this,h)||this,V.jobs=[],V.delay=1,V.timeout_=null,V}var fe=re.prototype;return fe.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},fe.push=function(le){this.jobs.push(le),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},re}(h),M=function(re){return re<<24|(re&65280)<<8|(re&16711680)>>8|re>>>24},P=function(re,fe,V){var le=new Int32Array(re.buffer,re.byteOffset,re.byteLength>>2),he=new E(Array.prototype.slice.call(fe)),ye=new Uint8Array(re.byteLength),L=new Int32Array(ye.buffer),p,y,S,c,m,x,T,b,d;for(p=V[0],y=V[1],S=V[2],c=V[3],d=0;d<le.length;d+=4)m=M(le[d]),x=M(le[d+1]),T=M(le[d+2]),b=M(le[d+3]),he.decrypt(m,x,T,b,L,d),L[d]=M(L[d]^p),L[d+1]=M(L[d+1]^y),L[d+2]=M(L[d+2]^S),L[d+3]=M(L[d+3]^c),p=m,y=x,S=T,c=b;return ye},I=function(){function Z(fe,V,le,he){var ye=Z.STEP,L=new Int32Array(fe.buffer),p=new Uint8Array(fe.byteLength),y=0;for(this.asyncStream_=new C,this.asyncStream_.push(this.decryptChunk_(L.subarray(y,y+ye),V,le,p)),y=ye;y<L.length;y+=ye)le=new Uint32Array([M(L[y-4]),M(L[y-3]),M(L[y-2]),M(L[y-1])]),this.asyncStream_.push(this.decryptChunk_(L.subarray(y,y+ye),V,le,p));this.asyncStream_.push(function(){he(null,v(p))})}var re=Z.prototype;return re.decryptChunk_=function(V,le,he,ye){return function(){var L=P(V,le,he);ye.set(L,V.byteOffset)}},l(Z,null,[{key:"STEP",get:function(){return 32e3}}]),Z}(),j;typeof window<"u"?j=window:typeof n<"u"?j=n:typeof self<"u"?j=self:j={};var B=j,F=function(re){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(re):re&&re.buffer instanceof ArrayBuffer},N=B.BigInt||Number;N("0x1"),N("0x100"),N("0x10000"),N("0x1000000"),N("0x100000000"),N("0x10000000000"),N("0x1000000000000"),N("0x100000000000000"),N("0x10000000000000000");var ee=function(re){var fe={};return Object.keys(re).forEach(function(V){var le=re[V];F(le)?fe[V]={bytes:le.buffer,byteOffset:le.byteOffset,byteLength:le.byteLength}:fe[V]=le}),fe};self.onmessage=function(Z){var re=Z.data,fe=new Uint8Array(re.encrypted.bytes,re.encrypted.byteOffset,re.encrypted.byteLength),V=new Uint32Array(re.key.bytes,re.key.byteOffset,re.key.byteLength/4),le=new Uint32Array(re.iv.bytes,re.iv.byteOffset,re.iv.byteLength/4);new I(fe,V,le,function(he,ye){self.postMessage(ee({source:re.source,decrypted:ye}),[ye.buffer])})}})),Decrypter=factory(workerCode),audioTrackKind_=function(e){var o=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(o="main-desc"),o},stopLoaders=function(e,o){e.abort(),e.pause(),o&&o.activePlaylistLoader&&(o.activePlaylistLoader.pause(),o.activePlaylistLoader=null)},startLoaders=function(e,o){o.activePlaylistLoader=e,e.load()},onGroupChanged=function(e,o){return function(){var l=o.segmentLoaders,t=l[e],u=l.main,h=o.mediaTypes[e],v=h.activeTrack(),w=h.getActiveGroup(),A=h.activePlaylistLoader,E=h.lastGroup_;if(!(w&&E&&w.id===E.id)&&(h.lastGroup_=w,h.lastTrack_=v,stopLoaders(t,h),!(!w||w.isMasterPlaylist))){if(!w.playlistLoader){A&&u.resetEverything();return}t.resyncLoader(),startLoaders(w.playlistLoader,h)}}},onGroupChanging=function(e,o){return function(){var l=o.segmentLoaders[e],t=o.mediaTypes[e];t.lastGroup_=null,l.abort(),l.pause()}},onTrackChanged=function(e,o){return function(){var l=o.masterPlaylistLoader,t=o.segmentLoaders,u=t[e],h=t.main,v=o.mediaTypes[e],w=v.activeTrack(),A=v.getActiveGroup(),E=v.activePlaylistLoader,C=v.lastTrack_;if(!(C&&w&&C.id===w.id)&&(v.lastGroup_=A,v.lastTrack_=w,stopLoaders(u,v),!!A)){if(A.isMasterPlaylist){if(!w||!C||w.id===C.id)return;var M=o.vhs.masterPlaylistController_,P=M.selectPlaylist();if(M.media()===P)return;v.logger_("track change. Switching master audio from "+C.id+" to "+w.id),l.pause(),h.resetEverything(),M.fastQualityChange_(P);return}if(e==="AUDIO"){if(!A.playlistLoader){h.setAudio(!0),h.resetEverything();return}u.setAudio(!0),h.setAudio(!1)}if(E===A.playlistLoader){startLoaders(A.playlistLoader,v);return}u.track&&u.track(w),u.resetEverything(),startLoaders(A.playlistLoader,v)}}},onError={AUDIO:function(e,o){return function(){var l=o.segmentLoaders[e],t=o.mediaTypes[e],u=o.blacklistCurrentPlaylist;stopLoaders(l,t);var h=t.activeTrack(),v=t.activeGroup(),w=(v.filter(function(C){return C.default})[0]||v[0]).id,A=t.tracks[w];if(h===A){u({message:"Problem encountered loading the default audio track."});return}videojs.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(var E in t.tracks)t.tracks[E].enabled=t.tracks[E]===A;t.onTrackChanged()}},SUBTITLES:function(e,o){return function(){var l=o.segmentLoaders[e],t=o.mediaTypes[e];videojs.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),stopLoaders(l,t);var u=t.activeTrack();u&&(u.mode="disabled"),t.onTrackChanged()}}},setupListeners={AUDIO:function(e,o,l){if(o){var t=l.tech,u=l.requestOptions,h=l.segmentLoaders[e];o.on("loadedmetadata",function(){var v=o.media();h.playlist(v,u),(!t.paused()||v.endList&&t.preload()!=="none")&&h.load()}),o.on("loadedplaylist",function(){h.playlist(o.media(),u),t.paused()||h.load()}),o.on("error",onError[e](e,l))}},SUBTITLES:function(e,o,l){var t=l.tech,u=l.requestOptions,h=l.segmentLoaders[e],v=l.mediaTypes[e];o.on("loadedmetadata",function(){var w=o.media();h.playlist(w,u),h.track(v.activeTrack()),(!t.paused()||w.endList&&t.preload()!=="none")&&h.load()}),o.on("loadedplaylist",function(){h.playlist(o.media(),u),t.paused()||h.load()}),o.on("error",onError[e](e,l))}},initialize={AUDIO:function(e,o){var l=o.vhs,t=o.sourceType,u=o.segmentLoaders[e],h=o.requestOptions,v=o.master.mediaGroups,w=o.mediaTypes[e],A=w.groups,E=w.tracks,C=w.logger_,M=o.masterPlaylistLoader,P=isAudioOnly(M.master);(!v[e]||Object.keys(v[e]).length===0)&&(v[e]={main:{default:{default:!0}}},P&&(v[e].main.default.playlists=M.master.playlists));for(var I in v[e]){A[I]||(A[I]=[]);for(var j in v[e][I]){var B=v[e][I][j],F=void 0;if(P?(C("AUDIO group '"+I+"' label '"+j+"' is a master playlist"),B.isMasterPlaylist=!0,F=null):t==="vhs-json"&&B.playlists?F=new PlaylistLoader(B.playlists[0],l,h):B.resolvedUri?F=new PlaylistLoader(B.resolvedUri,l,h):B.playlists&&t==="dash"?F=new DashPlaylistLoader(B.playlists[0],l,h,M):F=null,B=videojs.mergeOptions({id:j,playlistLoader:F},B),setupListeners[e](e,B.playlistLoader,o),A[I].push(B),typeof E[j]>"u"){var N=new videojs.AudioTrack({id:j,kind:audioTrackKind_(B),enabled:!1,language:B.language,default:B.default,label:j});E[j]=N}}}u.on("error",onError[e](e,o))},SUBTITLES:function(e,o){var l=o.tech,t=o.vhs,u=o.sourceType,h=o.segmentLoaders[e],v=o.requestOptions,w=o.master.mediaGroups,A=o.mediaTypes[e],E=A.groups,C=A.tracks,M=o.masterPlaylistLoader;for(var P in w[e]){E[P]||(E[P]=[]);for(var I in w[e][P])if(!w[e][P][I].forced){var j=w[e][P][I],B=void 0;if(u==="hls")B=new PlaylistLoader(j.resolvedUri,t,v);else if(u==="dash"){var F=j.playlists.filter(function(ee){return ee.excludeUntil!==1/0});if(!F.length)return;B=new DashPlaylistLoader(j.playlists[0],t,v,M)}else u==="vhs-json"&&(B=new PlaylistLoader(j.playlists?j.playlists[0]:j.resolvedUri,t,v));if(j=videojs.mergeOptions({id:I,playlistLoader:B},j),setupListeners[e](e,j.playlistLoader,o),E[P].push(j),typeof C[I]>"u"){var N=l.addRemoteTextTrack({id:I,kind:"subtitles",default:j.default&&j.autoselect,language:j.language,label:I},!1).track;C[I]=N}}}h.on("error",onError[e](e,o))},"CLOSED-CAPTIONS":function(e,o){var l=o.tech,t=o.master.mediaGroups,u=o.mediaTypes[e],h=u.groups,v=u.tracks;for(var w in t[e]){h[w]||(h[w]=[]);for(var A in t[e][w]){var E=t[e][w][A];if(/^(?:CC|SERVICE)/.test(E.instreamId)){var C=l.options_.vhs&&l.options_.vhs.captionServices||{},M={label:A,language:E.language,instreamId:E.instreamId,default:E.default&&E.autoselect};if(C[M.instreamId]&&(M=videojs.mergeOptions(M,C[M.instreamId])),M.default===void 0&&delete M.default,h[w].push(videojs.mergeOptions({id:A},E)),typeof v[A]>"u"){var P=l.addRemoteTextTrack({id:M.instreamId,kind:"captions",default:M.default,language:M.language,label:M.label},!1).track;v[A]=P}}}}}},groupMatch=function n(e,o){for(var l=0;l<e.length;l++)if(playlistMatch(o,e[l])||e[l].playlists&&n(e[l].playlists,o))return!0;return!1},activeGroup=function(e,o){return function(l){var t=o.masterPlaylistLoader,u=o.mediaTypes[e].groups,h=t.media();if(!h)return null;var v=null;h.attributes[e]&&(v=u[h.attributes[e]]);var w=Object.keys(u);if(!v)if(e==="AUDIO"&&w.length>1&&isAudioOnly(o.master))for(var A=0;A<w.length;A++){var E=u[w[A]];if(groupMatch(E,h)){v=E;break}}else u.main?v=u.main:w.length===1&&(v=u[w[0]]);return typeof l>"u"?v:l===null||!v?null:v.filter(function(C){return C.id===l.id})[0]||null}},activeTrack={AUDIO:function(e,o){return function(){var l=o.mediaTypes[e].tracks;for(var t in l)if(l[t].enabled)return l[t];return null}},SUBTITLES:function(e,o){return function(){var l=o.mediaTypes[e].tracks;for(var t in l)if(l[t].mode==="showing"||l[t].mode==="hidden")return l[t];return null}}},getActiveGroup=function(e,o){var l=o.mediaTypes;return function(){var t=l[e].activeTrack();return t?l[e].activeGroup(t):null}},setupMediaGroups=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(I){initialize[I](I,e)});var o=e.mediaTypes,l=e.masterPlaylistLoader,t=e.tech,u=e.vhs,h=e.segmentLoaders,v=h.AUDIO,w=h.main;["AUDIO","SUBTITLES"].forEach(function(I){o[I].activeGroup=activeGroup(I,e),o[I].activeTrack=activeTrack[I](I,e),o[I].onGroupChanged=onGroupChanged(I,e),o[I].onGroupChanging=onGroupChanging(I,e),o[I].onTrackChanged=onTrackChanged(I,e),o[I].getActiveGroup=getActiveGroup(I,e)});var A=o.AUDIO.activeGroup();if(A){var E=(A.filter(function(I){return I.default})[0]||A[0]).id;o.AUDIO.tracks[E].enabled=!0,o.AUDIO.onGroupChanged(),o.AUDIO.onTrackChanged();var C=o.AUDIO.getActiveGroup();C.playlistLoader?(w.setAudio(!1),v.setAudio(!0)):w.setAudio(!0)}l.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(I){return o[I].onGroupChanged()})}),l.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(I){return o[I].onGroupChanging()})});var M=function(){o.AUDIO.onTrackChanged(),t.trigger({type:"usage",name:"vhs-audio-change"}),t.trigger({type:"usage",name:"hls-audio-change"})};t.audioTracks().addEventListener("change",M),t.remoteTextTracks().addEventListener("change",o.SUBTITLES.onTrackChanged),u.on("dispose",function(){t.audioTracks().removeEventListener("change",M),t.remoteTextTracks().removeEventListener("change",o.SUBTITLES.onTrackChanged)}),t.clearTracks("audio");for(var P in o.AUDIO.tracks)t.audioTracks().addTrack(o.AUDIO.tracks[P])},createMediaTypes=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(o){e[o]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:noop$1,activeTrack:noop$1,getActiveGroup:noop$1,onGroupChanged:noop$1,onTrackChanged:noop$1,lastTrack_:null,logger_:logger("MediaGroups["+o+"]")}}),e},ABORT_EARLY_BLACKLIST_SECONDS=60*2,Vhs$1,loaderStats=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],sumLoaderStat=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},shouldSwitchToMedia=function(e){var o=e.currentPlaylist,l=e.buffered,t=e.currentTime,u=e.nextPlaylist,h=e.bufferLowWaterLine,v=e.bufferHighWaterLine,w=e.duration,A=e.experimentalBufferBasedABR,E=e.log;if(!u)return videojs.log.warn("We received no playlist to switch to. Please check your stream."),!1;var C="allowing switch "+(o&&o.id||"null")+" -> "+u.id;if(!o)return E(C+" as current playlist is not set"),!0;if(u.id===o.id)return!1;var M=!!findRange(l,t).length;if(!o.endList)return!M&&typeof o.partTargetDuration=="number"?(E("not "+C+" as current playlist is live llhls, but currentTime isn't in buffered."),!1):(E(C+" as current playlist is live"),!0);var P=timeAheadOf(l,t),I=A?Config.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Config.MAX_BUFFER_LOW_WATER_LINE;if(w<I)return E(C+" as duration < max low water line ("+w+" < "+I+")"),!0;var j=u.attributes.BANDWIDTH,B=o.attributes.BANDWIDTH;if(j<B&&(!A||P<v)){var F=C+" as next bandwidth < current bandwidth ("+j+" < "+B+")";return A&&(F+=" and forwardBuffer < bufferHighWaterLine ("+P+" < "+v+")"),E(F),!0}if((!A||j>B)&&P>=h){var N=C+" as forwardBuffer >= bufferLowWaterLine ("+P+" >= "+h+")";return A&&(N+=" and next bandwidth > current bandwidth ("+j+" > "+B+")"),E(N),!0}return E("not "+C+" as no switching criteria met"),!1},MasterPlaylistController=function(n){_inheritsLoose(e,n);function e(l){var t;t=n.call(this)||this;var u=l.src,h=l.handleManifestRedirects,v=l.withCredentials,w=l.tech,A=l.bandwidth,E=l.externVhs,C=l.useCueTags,M=l.blacklistDuration,P=l.enableLowInitialPlaylist,I=l.sourceType,j=l.cacheEncryptionKeys,B=l.experimentalBufferBasedABR,F=l.experimentalLeastPixelDiffSelector,N=l.captionServices;if(!u)throw new Error("A non-empty playlist URL or JSON manifest string is required");var ee=l.maxPlaylistRetries;(ee===null||typeof ee>"u")&&(ee=1/0),Vhs$1=E,t.experimentalBufferBasedABR=!!B,t.experimentalLeastPixelDiffSelector=!!F,t.withCredentials=v,t.tech_=w,t.vhs_=w.vhs,t.sourceType_=I,t.useCueTags_=C,t.blacklistDuration=M,t.maxPlaylistRetries=ee,t.enableLowInitialPlaylist=P,t.useCueTags_&&(t.cueTagsTrack_=t.tech_.addTextTrack("metadata","ad-cues"),t.cueTagsTrack_.inBandMetadataTrackDispatchType=""),t.requestOptions_={withCredentials:v,handleManifestRedirects:h,maxPlaylistRetries:ee,timeout:null},t.on("error",t.pauseLoading),t.mediaTypes_=createMediaTypes(),t.mediaSource=new window$1$1.MediaSource,t.handleDurationChange_=t.handleDurationChange_.bind(_assertThisInitialized$1(t)),t.handleSourceOpen_=t.handleSourceOpen_.bind(_assertThisInitialized$1(t)),t.handleSourceEnded_=t.handleSourceEnded_.bind(_assertThisInitialized$1(t)),t.mediaSource.addEventListener("durationchange",t.handleDurationChange_),t.mediaSource.addEventListener("sourceopen",t.handleSourceOpen_),t.mediaSource.addEventListener("sourceended",t.handleSourceEnded_),t.seekable_=videojs.createTimeRanges(),t.hasPlayed_=!1,t.syncController_=new SyncController(l),t.segmentMetadataTrack_=w.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,t.decrypter_=new Decrypter,t.sourceUpdater_=new SourceUpdater(t.mediaSource),t.inbandTextTracks_={},t.timelineChangeController_=new TimelineChangeController;var Z={vhs:t.vhs_,parse708captions:l.parse708captions,useDtsForTimestampOffset:l.useDtsForTimestampOffset,captionServices:N,mediaSource:t.mediaSource,currentTime:t.tech_.currentTime.bind(t.tech_),seekable:function(){return t.seekable()},seeking:function(){return t.tech_.seeking()},duration:function(){return t.duration()},hasPlayed:function(){return t.hasPlayed_},goalBufferLength:function(){return t.goalBufferLength()},bandwidth:A,syncController:t.syncController_,decrypter:t.decrypter_,sourceType:t.sourceType_,inbandTextTracks:t.inbandTextTracks_,cacheEncryptionKeys:j,sourceUpdater:t.sourceUpdater_,timelineChangeController:t.timelineChangeController_,experimentalExactManifestTimings:l.experimentalExactManifestTimings};t.masterPlaylistLoader_=t.sourceType_==="dash"?new DashPlaylistLoader(u,t.vhs_,t.requestOptions_):new PlaylistLoader(u,t.vhs_,t.requestOptions_),t.setupMasterPlaylistLoaderListeners_(),t.mainSegmentLoader_=new SegmentLoader(videojs.mergeOptions(Z,{segmentMetadataTrack:t.segmentMetadataTrack_,loaderType:"main"}),l),t.audioSegmentLoader_=new SegmentLoader(videojs.mergeOptions(Z,{loaderType:"audio"}),l),t.subtitleSegmentLoader_=new VTTSegmentLoader(videojs.mergeOptions(Z,{loaderType:"vtt",featuresNativeTextTracks:t.tech_.featuresNativeTextTracks,loadVttJs:function(){return new Promise(function(V,le){function he(){w.off("vttjserror",ye),V()}function ye(){w.off("vttjsloaded",he),le()}w.one("vttjsloaded",he),w.one("vttjserror",ye),w.addWebVttScript_()})}}),l),t.setupSegmentLoaderListeners_(),t.experimentalBufferBasedABR&&(t.masterPlaylistLoader_.one("loadedplaylist",function(){return t.startABRTimer_()}),t.tech_.on("pause",function(){return t.stopABRTimer_()}),t.tech_.on("play",function(){return t.startABRTimer_()})),loaderStats.forEach(function(fe){t[fe+"_"]=sumLoaderStat.bind(_assertThisInitialized$1(t),fe)}),t.logger_=logger("MPC"),t.triggeredFmp4Usage=!1,t.tech_.preload()==="none"?(t.loadOnPlay_=function(){t.loadOnPlay_=null,t.masterPlaylistLoader_.load()},t.tech_.one("play",t.loadOnPlay_)):t.masterPlaylistLoader_.load(),t.timeToLoadedData__=-1,t.mainAppendsToLoadedData__=-1,t.audioAppendsToLoadedData__=-1;var re=t.tech_.preload()==="none"?"play":"loadstart";return t.tech_.one(re,function(){var fe=Date.now();t.tech_.one("loadeddata",function(){t.timeToLoadedData__=Date.now()-fe,t.mainAppendsToLoadedData__=t.mainSegmentLoader_.mediaAppends,t.audioAppendsToLoadedData__=t.audioSegmentLoader_.mediaAppends})}),t}var o=e.prototype;return o.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},o.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},o.appendsToLoadedData_=function(){var t=this.mainAppendsToLoadedData_(),u=this.audioAppendsToLoadedData_();return t===-1||u===-1?-1:t+u},o.timeToLoadedData_=function(){return this.timeToLoadedData__},o.checkABR_=function(t){t===void 0&&(t="abr");var u=this.selectPlaylist();u&&this.shouldSwitchToMedia_(u)&&this.switchMedia_(u,t)},o.switchMedia_=function(t,u,h){var v=this.media(),w=v&&(v.id||v.uri),A=t.id||t.uri;w&&w!==A&&(this.logger_("switch media "+w+" -> "+A+" from "+u),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+u})),this.masterPlaylistLoader_.media(t,h)},o.startABRTimer_=function(){var t=this;this.stopABRTimer_(),this.abrTimer_=window$1$1.setInterval(function(){return t.checkABR_()},250)},o.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(window$1$1.clearInterval(this.abrTimer_),this.abrTimer_=null)},o.getAudioTrackPlaylists_=function(){var t=this.master(),u=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return u;var h=t.mediaGroups.AUDIO,v=Object.keys(h),w;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)w=this.mediaTypes_.AUDIO.activeTrack();else{var A=h.main||v.length&&h[v[0]];for(var E in A)if(A[E].default){w={label:E};break}}if(!w)return u;var C=[];for(var M in h)if(h[M][w.label]){var P=h[M][w.label];if(P.playlists&&P.playlists.length)C.push.apply(C,P.playlists);else if(P.uri)C.push(P);else if(t.playlists.length)for(var I=0;I<t.playlists.length;I++){var j=t.playlists[I];j.attributes&&j.attributes.AUDIO&&j.attributes.AUDIO===M&&C.push(j)}}return C.length?C:u},o.setupMasterPlaylistLoaderListeners_=function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var u=t.masterPlaylistLoader_.media(),h=u.targetDuration*1.5*1e3;isLowestEnabledRendition(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=h,u.endList&&t.tech_.preload()!=="none"&&(t.mainSegmentLoader_.playlist(u,t.requestOptions_),t.mainSegmentLoader_.load()),setupMediaGroups({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),u),t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){t.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){t.loadOnPlay_&&t.tech_.off("play",t.loadOnPlay_);var u=t.masterPlaylistLoader_.media();if(!u){t.excludeUnsupportedVariants_();var h;if(t.enableLowInitialPlaylist&&(h=t.selectInitialPlaylist()),h||(h=t.selectPlaylist()),!h||!t.shouldSwitchToMedia_(h))return;t.initialMedia_=h,t.switchMedia_(t.initialMedia_,"initial");var v=t.sourceType_==="vhs-json"&&t.initialMedia_.segments;if(!v)return;u=t.initialMedia_}t.handleUpdatedMediaPlaylist(u)}),this.masterPlaylistLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var u=t.masterPlaylistLoader_.media(),h=u.targetDuration*1.5*1e3;isLowestEnabledRendition(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=h,t.masterPlaylistLoader_.load(),t.mainSegmentLoader_.playlist(u,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var u=t.masterPlaylistLoader_.media();if(u.lastExcludeReason_!=="playlist-unchanged"){var h=t.stuckAtPlaylistEnd_(u);h&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),t.tech_.trigger("playliststuck"))}}),this.masterPlaylistLoader_.on("renditiondisabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},o.handleUpdatedMediaPlaylist=function(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.updateDuration(!t.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},o.triggerPresenceUsage_=function(t,u){var h=t.mediaGroups||{},v=!0,w=Object.keys(h.AUDIO);for(var A in h.AUDIO)for(var E in h.AUDIO[A]){var C=h.AUDIO[A][E];C.uri||(v=!1)}v&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(h.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),Vhs$1.Playlist.isAes(u)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),w.length&&Object.keys(h.AUDIO[w[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},o.shouldSwitchToMedia_=function(t){var u=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,h=this.tech_.currentTime(),v=this.bufferLowWaterLine(),w=this.bufferHighWaterLine(),A=this.tech_.buffered();return shouldSwitchToMedia({buffered:A,currentTime:h,currentPlaylist:u,nextPlaylist:t,bufferLowWaterLine:v,bufferHighWaterLine:w,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},o.setupSegmentLoaderListeners_=function(){var t=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){t.checkABR_("bandwidthupdate"),t.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",function(){t.experimentalBufferBasedABR&&t.mainSegmentLoader_.load()}),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){t.logger_("main segment loader ended"),t.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(h){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},ABORT_EARLY_BLACKLIST_SECONDS))});var u=function(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var v=t.getCodecsOrExclude_();v&&t.sourceUpdater_.addOrChangeSourceBuffers(v)};this.mainSegmentLoader_.on("trackinfo",u),this.audioSegmentLoader_.on("trackinfo",u),this.mainSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){t.logger_("audioSegmentLoader ended"),t.onEndOfStream()})},o.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},o.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},o.smoothQualityChange_=function(t){t===void 0&&(t=this.selectPlaylist()),this.fastQualityChange_(t)},o.fastQualityChange_=function(t){var u=this;if(t===void 0&&(t=this.selectPlaylist()),t===this.masterPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){videojs.browser.IE_VERSION||videojs.browser.IS_EDGE?u.tech_.setCurrentTime(u.tech_.currentTime()+.04):u.tech_.setCurrentTime(u.tech_.currentTime())})},o.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var t=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0))return this.tech_.setCurrentTime(t.end(t.length-1))}},o.setupFirstPlay=function(){var t=this,u=this.masterPlaylistLoader_.media();if(!u||this.tech_.paused()||this.hasPlayed_)return!1;if(!u.endList){var h=this.seekable();if(!h.length)return!1;if(videojs.browser.IE_VERSION&&this.tech_.readyState()===0)return this.tech_.one("loadedmetadata",function(){t.trigger("firstplay"),t.tech_.setCurrentTime(h.end(0)),t.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(h.end(0))}return this.hasPlayed_=!0,this.load(),!0},o.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var t=this.tech_.play();typeof t<"u"&&typeof t.then=="function"&&t.then(null,function(u){})}this.trigger("sourceopen")},o.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var t=this.inbandTextTracks_.metadataTrack_.cues;if(!(!t||!t.length)){var u=this.duration();t[t.length-1].endTime=isNaN(u)||Math.abs(u)===1/0?Number.MAX_VALUE:u}}},o.handleDurationChange_=function(){this.tech_.trigger("durationchange")},o.onEndOfStream=function(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var u=this.mainSegmentLoader_.getCurrentMediaInfo_();!u||u.hasVideo?t=t&&this.audioSegmentLoader_.ended_:t=this.audioSegmentLoader_.ended_}t&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},o.stuckAtPlaylistEnd_=function(t){var u=this.seekable();if(!u.length)return!1;var h=this.syncController_.getExpiredTime(t,this.duration());if(h===null)return!1;var v=Vhs$1.Playlist.playlistEnd(t,h),w=this.tech_.currentTime(),A=this.tech_.buffered();if(!A.length)return v-w<=SAFE_TIME_DELTA;var E=A.end(A.length-1);return E-w<=SAFE_TIME_DELTA&&v-E<=SAFE_TIME_DELTA},o.blacklistCurrentPlaylist=function(t,u){t===void 0&&(t={});var h=t.playlist||this.masterPlaylistLoader_.media();if(u=u||t.blacklistDuration||this.blacklistDuration,!h){this.error=t,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}h.playlistErrors_++;var v=this.masterPlaylistLoader_.master.playlists,w=v.filter(isEnabled),A=w.length===1&&w[0]===h;if(v.length===1&&u!==1/0)return videojs.log.warn("Problem encountered with playlist "+h.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(A);if(A){var E=!1;v.forEach(function(F){if(F!==h){var N=F.excludeUntil;typeof N<"u"&&N!==1/0&&(E=!0,delete F.excludeUntil)}}),E&&(videojs.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}var C;h.playlistErrors_>this.maxPlaylistRetries?C=1/0:C=Date.now()+u*1e3,h.excludeUntil=C,t.reason&&(h.lastExcludeReason_=t.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var M=this.selectPlaylist();if(!M){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}var P=t.internal?this.logger_:videojs.log.warn,I=t.message?" "+t.message:"";P((t.internal?"Internal problem":"Problem")+" encountered with playlist "+h.id+"."+(I+" Switching to playlist "+M.id+".")),M.attributes.AUDIO!==h.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),M.attributes.SUBTITLES!==h.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var j=M.targetDuration/2*1e3||5*1e3,B=typeof M.lastRequest=="number"&&Date.now()-M.lastRequest<=j;return this.switchMedia_(M,"exclude",A||B)},o.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},o.delegateLoaders_=function(t,u){var h=this,v=[],w=t==="all";(w||t==="main")&&v.push(this.masterPlaylistLoader_);var A=[];(w||t==="audio")&&A.push("AUDIO"),(w||t==="subtitle")&&(A.push("CLOSED-CAPTIONS"),A.push("SUBTITLES")),A.forEach(function(E){var C=h.mediaTypes_[E]&&h.mediaTypes_[E].activePlaylistLoader;C&&v.push(C)}),["main","audio","subtitle"].forEach(function(E){var C=h[E+"SegmentLoader_"];C&&(t===E||t==="all")&&v.push(C)}),v.forEach(function(E){return u.forEach(function(C){typeof E[C]=="function"&&E[C]()})})},o.setCurrentTime=function(t){var u=findRange(this.tech_.buffered(),t);if(!(this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media())||!this.masterPlaylistLoader_.media().segments)return 0;if(u&&u.length)return t;this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),this.load()},o.duration=function(){if(!this.masterPlaylistLoader_)return 0;var t=this.masterPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:Vhs$1.Playlist.duration(t):1/0:0},o.seekable=function(){return this.seekable_},o.onSyncInfoUpdate_=function(){var t;if(this.masterPlaylistLoader_){var u=this.masterPlaylistLoader_.media();if(u){var h=this.syncController_.getExpiredTime(u,this.duration());if(h!==null){var v=this.masterPlaylistLoader_.master,w=Vhs$1.Playlist.seekable(u,h,Vhs$1.Playlist.liveEdgeDelay(v,u));if(w.length!==0&&!(this.mediaTypes_.AUDIO.activePlaylistLoader&&(u=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),h=this.syncController_.getExpiredTime(u,this.duration()),h===null||(t=Vhs$1.Playlist.seekable(u,h,Vhs$1.Playlist.liveEdgeDelay(v,u)),t.length===0)))){var A,E;this.seekable_&&this.seekable_.length&&(A=this.seekable_.end(0),E=this.seekable_.start(0)),t?t.start(0)>w.end(0)||w.start(0)>t.end(0)?this.seekable_=w:this.seekable_=videojs.createTimeRanges([[t.start(0)>w.start(0)?t.start(0):w.start(0),t.end(0)<w.end(0)?t.end(0):w.end(0)]]):this.seekable_=w,!(this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===A&&this.seekable_.start(0)===E)&&(this.logger_("seekable updated ["+printableRange(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},o.updateDuration=function(t){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,t),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(t){var u=this.seekable();if(!u.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<u.end(u.length-1))&&this.sourceUpdater_.setDuration(u.end(u.length-1));return}var h=this.tech_.buffered(),v=Vhs$1.Playlist.duration(this.masterPlaylistLoader_.media());h.length>0&&(v=Math.max(v,h.end(h.length-1))),this.mediaSource.duration!==v&&this.sourceUpdater_.setDuration(v)},o.dispose=function(){var t=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(u){var h=t.mediaTypes_[u].groups;for(var v in h)h[v].forEach(function(w){w.playlistLoader&&w.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},o.master=function(){return this.masterPlaylistLoader_.master},o.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},o.areMediaTypesKnown_=function(){var t=!!this.mediaTypes_.AUDIO.activePlaylistLoader,u=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),h=t?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!u||!h)},o.getCodecsOrExclude_=function(){var t=this,u={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},h=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();u.video=u.main;var v=codecsForPlaylist(this.master(),h),w={},A=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(u.main.hasVideo&&(w.video=v.video||u.main.videoCodec||DEFAULT_VIDEO_CODEC),u.main.isMuxed&&(w.video+=","+(v.audio||u.main.audioCodec||DEFAULT_AUDIO_CODEC)),(u.main.hasAudio&&!u.main.isMuxed||u.audio.hasAudio||A)&&(w.audio=v.audio||u.main.audioCodec||u.audio.audioCodec||DEFAULT_AUDIO_CODEC,u.audio.isFmp4=u.main.hasAudio&&!u.main.isMuxed?u.main.isFmp4:u.audio.isFmp4),!w.audio&&!w.video){this.blacklistCurrentPlaylist({playlist:h,message:"Could not determine codecs for playlist.",blacklistDuration:1/0});return}var E=function(F,N){return F?browserSupportsCodec(N):muxerSupportsCodec(N)},C={},M;if(["video","audio"].forEach(function(B){if(w.hasOwnProperty(B)&&!E(u[B].isFmp4,w[B])){var F=u[B].isFmp4?"browser":"muxer";C[F]=C[F]||[],C[F].push(w[B]),B==="audio"&&(M=F)}}),A&&M&&h.attributes.AUDIO){var P=h.attributes.AUDIO;this.master().playlists.forEach(function(B){var F=B.attributes&&B.attributes.AUDIO;F===P&&B!==h&&(B.excludeUntil=1/0)}),this.logger_("excluding audio group "+P+" as "+M+' does not support codec(s): "'+w.audio+'"')}if(Object.keys(C).length){var I=Object.keys(C).reduce(function(B,F){return B&&(B+=", "),B+=F+' does not support codec(s): "'+C[F].join(",")+'"',B},"")+".";this.blacklistCurrentPlaylist({playlist:h,internal:!0,message:I,blacklistDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var j=[];if(["video","audio"].forEach(function(B){var F=(parseCodecs(t.sourceUpdater_.codecs[B]||"")[0]||{}).type,N=(parseCodecs(w[B]||"")[0]||{}).type;F&&N&&F.toLowerCase()!==N.toLowerCase()&&j.push('"'+t.sourceUpdater_.codecs[B]+'" -> "'+w[B]+'"')}),j.length){this.blacklistCurrentPlaylist({playlist:h,message:"Codec switching not supported: "+j.join(", ")+".",blacklistDuration:1/0,internal:!0});return}}return w},o.tryToCreateSourceBuffers_=function(){if(!(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers())&&this.areMediaTypesKnown_()){var t=this.getCodecsOrExclude_();if(t){this.sourceUpdater_.createSourceBuffers(t);var u=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(u)}}},o.excludeUnsupportedVariants_=function(){var t=this,u=this.master().playlists,h=[];Object.keys(u).forEach(function(v){var w=u[v];if(h.indexOf(w.id)===-1){h.push(w.id);var A=codecsForPlaylist(t.master,w),E=[];A.audio&&!muxerSupportsCodec(A.audio)&&!browserSupportsCodec(A.audio)&&E.push("audio codec "+A.audio),A.video&&!muxerSupportsCodec(A.video)&&!browserSupportsCodec(A.video)&&E.push("video codec "+A.video),A.text&&A.text==="stpp.ttml.im1t"&&E.push("text codec "+A.text),E.length&&(w.excludeUntil=1/0,t.logger_("excluding "+w.id+" for unsupported: "+E.join(", ")))}})},o.excludeIncompatibleVariants_=function(t){var u=this,h=[],v=this.master().playlists,w=unwrapCodecList(parseCodecs(t)),A=codecCount(w),E=w.video&&parseCodecs(w.video)[0]||null,C=w.audio&&parseCodecs(w.audio)[0]||null;Object.keys(v).forEach(function(M){var P=v[M];if(!(h.indexOf(P.id)!==-1||P.excludeUntil===1/0)){h.push(P.id);var I=[],j=codecsForPlaylist(u.masterPlaylistLoader_.master,P),B=codecCount(j);if(!(!j.audio&&!j.video)){if(B!==A&&I.push('codec count "'+B+'" !== "'+A+'"'),!u.sourceUpdater_.canChangeType()){var F=j.video&&parseCodecs(j.video)[0]||null,N=j.audio&&parseCodecs(j.audio)[0]||null;F&&E&&F.type.toLowerCase()!==E.type.toLowerCase()&&I.push('video codec "'+F.type+'" !== "'+E.type+'"'),N&&C&&N.type.toLowerCase()!==C.type.toLowerCase()&&I.push('audio codec "'+N.type+'" !== "'+C.type+'"')}I.length&&(P.excludeUntil=1/0,u.logger_("blacklisting "+P.id+": "+I.join(" && ")))}}})},o.updateAdCues_=function(t){var u=0,h=this.seekable();h.length&&(u=h.start(0)),updateAdCues(t,this.cueTagsTrack_,u)},o.goalBufferLength=function(){var t=this.tech_.currentTime(),u=Config.GOAL_BUFFER_LENGTH,h=Config.GOAL_BUFFER_LENGTH_RATE,v=Math.max(u,Config.MAX_GOAL_BUFFER_LENGTH);return Math.min(u+t*h,v)},o.bufferLowWaterLine=function(){var t=this.tech_.currentTime(),u=Config.BUFFER_LOW_WATER_LINE,h=Config.BUFFER_LOW_WATER_LINE_RATE,v=Math.max(u,Config.MAX_BUFFER_LOW_WATER_LINE),w=Math.max(u,Config.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(u+t*h,this.experimentalBufferBasedABR?w:v)},o.bufferHighWaterLine=function(){return Config.BUFFER_HIGH_WATER_LINE},e}(videojs.EventTarget),enableFunction=function(e,o,l){return function(t){var u=e.master.playlists[o],h=isIncompatible(u),v=isEnabled(u);return typeof t>"u"?v:(t?delete u.disabled:u.disabled=!0,t!==v&&!h&&(l(),t?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),t)}},Representation=function(e,o,l){var t=e.masterPlaylistController_,u=e.options_.smoothQualityChange,h=u?"smooth":"fast",v=t[h+"QualityChange_"].bind(t);if(o.attributes){var w=o.attributes.RESOLUTION;this.width=w&&w.width,this.height=w&&w.height,this.bandwidth=o.attributes.BANDWIDTH,this.frameRate=o.attributes["FRAME-RATE"]}this.codecs=codecsForPlaylist(t.master(),o),this.playlist=o,this.id=l,this.enabled=enableFunction(e.playlists,o.id,v)},renditionSelectionMixin=function(e){e.representations=function(){var o=e.masterPlaylistController_.master(),l=isAudioOnly(o)?e.masterPlaylistController_.getAudioTrackPlaylists_():o.playlists;return l?l.filter(function(t){return!isIncompatible(t)}).map(function(t,u){return new Representation(e,t,t.id)}):[]}},timerCancelEvents=["seeking","seeked","pause","playing","error"],PlaybackWatcher=function(){function n(o){var l=this;this.masterPlaylistController_=o.masterPlaylistController,this.tech_=o.tech,this.seekable=o.seekable,this.allowSeeksWithinUnsafeLiveWindow=o.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=o.liveRangeSafeTimeDelta,this.media=o.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=logger("PlaybackWatcher"),this.logger_("initialize");var t=function(){return l.monitorCurrentTime_()},u=function(){return l.monitorCurrentTime_()},h=function(){return l.techWaiting_()},v=function(){return l.cancelTimer_()},w=this.masterPlaylistController_,A=["main","subtitle","audio"],E={};A.forEach(function(M){E[M]={reset:function(){return l.resetSegmentDownloads_(M)},updateend:function(){return l.checkSegmentDownloads_(M)}},w[M+"SegmentLoader_"].on("appendsdone",E[M].updateend),w[M+"SegmentLoader_"].on("playlistupdate",E[M].reset),l.tech_.on(["seeked","seeking"],E[M].reset)});var C=function(P){["main","audio"].forEach(function(I){w[I+"SegmentLoader_"][P]("appended",l.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){l.fixesBadSeeks_()&&(l.consecutiveUpdates=0,l.lastRecordedTime=l.tech_.currentTime(),C("off"))},this.clearSeekingAppendCheck_=function(){return C("off")},this.watchForBadSeeking_=function(){l.clearSeekingAppendCheck_(),C("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",h),this.tech_.on(timerCancelEvents,v),this.tech_.on("canplay",u),this.tech_.one("play",t),this.dispose=function(){l.clearSeekingAppendCheck_(),l.logger_("dispose"),l.tech_.off("waiting",h),l.tech_.off(timerCancelEvents,v),l.tech_.off("canplay",u),l.tech_.off("play",t),l.tech_.off("seeking",l.watchForBadSeeking_),l.tech_.off("seeked",l.clearSeekingAppendCheck_),A.forEach(function(M){w[M+"SegmentLoader_"].off("appendsdone",E[M].updateend),w[M+"SegmentLoader_"].off("playlistupdate",E[M].reset),l.tech_.off(["seeked","seeking"],E[M].reset)}),l.checkCurrentTimeTimeout_&&window$1$1.clearTimeout(l.checkCurrentTimeTimeout_),l.cancelTimer_()}}var e=n.prototype;return e.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&window$1$1.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=window$1$1.setTimeout(this.monitorCurrentTime_.bind(this),250)},e.resetSegmentDownloads_=function(l){var t=this.masterPlaylistController_[l+"SegmentLoader_"];this[l+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+l+" loader"),this[l+"StalledDownloads_"]=0,this[l+"Buffered_"]=t.buffered_()},e.checkSegmentDownloads_=function(l){var t=this.masterPlaylistController_,u=t[l+"SegmentLoader_"],h=u.buffered_(),v=isRangeDifferent(this[l+"Buffered_"],h);if(this[l+"Buffered_"]=h,v){this.resetSegmentDownloads_(l);return}this[l+"StalledDownloads_"]++,this.logger_("found #"+this[l+"StalledDownloads_"]+" "+l+" appends that did not increase buffer (possible stalled download)",{playlistId:u.playlist_&&u.playlist_.id,buffered:timeRangesToArray(h)}),!(this[l+"StalledDownloads_"]<10)&&(this.logger_(l+" loader stalled download exclusion"),this.resetSegmentDownloads_(l),this.tech_.trigger({type:"usage",name:"vhs-"+l+"-download-exclusion"}),l!=="subtitle"&&t.blacklistCurrentPlaylist({message:"Excessive "+l+" segment downloading detected."},1/0))},e.checkCurrentTime_=function(){if(!(this.tech_.paused()||this.tech_.seeking())){var l=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===l&&(!t.length||l+SAFE_TIME_DELTA>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&l===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):l===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=l)}},e.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},e.fixesBadSeeks_=function(){var l=this.tech_.seeking();if(!l)return!1;var t=this.seekable(),u=this.tech_.currentTime(),h=this.afterSeekableWindow_(t,u,this.media(),this.allowSeeksWithinUnsafeLiveWindow),v;if(h){var w=t.end(t.length-1);v=w}if(this.beforeSeekableWindow_(t,u)){var A=t.start(0);v=A+(A===t.end(0)?0:SAFE_TIME_DELTA)}if(typeof v<"u")return this.logger_("Trying to seek outside of seekable at time "+u+" with "+("seekable range "+printableRange(t)+". Seeking to ")+(v+".")),this.tech_.setCurrentTime(v),!0;for(var E=this.masterPlaylistController_.sourceUpdater_,C=this.tech_.buffered(),M=E.audioBuffer?E.audioBuffered():null,P=E.videoBuffer?E.videoBuffered():null,I=this.media(),j=I.partTargetDuration?I.partTargetDuration:(I.targetDuration-TIME_FUDGE_FACTOR)*2,B=[M,P],F=0;F<B.length;F++)if(B[F]){var N=timeAheadOf(B[F],u);if(N<j)return!1}var ee=findNextRange(C,u);return ee.length===0?!1:(v=ee.start(0)+SAFE_TIME_DELTA,this.logger_("Buffered region starts ("+ee.start(0)+") "+(" just beyond seek point ("+u+"). Seeking to "+v+".")),this.tech_.setCurrentTime(v),!0)},e.waiting_=function(){if(!this.techWaiting_()){var l=this.tech_.currentTime(),t=this.tech_.buffered(),u=findRange(t,l);if(u.length&&l+3<=u.end(0)){this.cancelTimer_(),this.tech_.setCurrentTime(l),this.logger_("Stopped at "+l+" while inside a buffered region "+("["+u.start(0)+" -> "+u.end(0)+"]. Attempting to resume ")+"playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"});return}}},e.techWaiting_=function(){var l=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||this.timer_!==null)return!0;if(this.beforeSeekableWindow_(l,t)){var u=l.end(l.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to "+("live point (seekable end) "+u)),this.cancelTimer_(),this.tech_.setCurrentTime(u),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var h=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,v=this.tech_.buffered(),w=this.videoUnderflow_({audioBuffered:h.audioBuffered(),videoBuffered:h.videoBuffered(),currentTime:t});if(w)return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var A=findNextRange(v,t);if(A.length>0){var E=A.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+E+", seeking "+("to "+A.start(0))),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),E*1e3,t),!0}return!1},e.afterSeekableWindow_=function(l,t,u,h){if(h===void 0&&(h=!1),!l.length)return!1;var v=l.end(l.length-1)+SAFE_TIME_DELTA,w=!u.endList;return w&&h&&(v=l.end(l.length-1)+u.targetDuration*3),t>v},e.beforeSeekableWindow_=function(l,t){return!!(l.length&&l.start(0)>0&&t<l.start(0)-this.liveRangeSafeTimeDelta)},e.videoUnderflow_=function(l){var t=l.videoBuffered,u=l.audioBuffered,h=l.currentTime;if(t){var v;if(t.length&&u.length){var w=findRange(t,h-3),A=findRange(t,h),E=findRange(u,h);E.length&&!A.length&&w.length&&(v={start:w.end(0),end:E.end(0)})}else{var C=findNextRange(t,h);C.length||(v=this.gapFromVideoUnderflow_(t,h))}return v?(this.logger_("Encountered a gap in video from "+v.start+" to "+v.end+". "+("Seeking to current time "+h)),!0):!1}},e.skipTheGap_=function(l){var t=this.tech_.buffered(),u=this.tech_.currentTime(),h=findNextRange(t,u);this.cancelTimer_(),!(h.length===0||u!==l)&&(this.logger_("skipTheGap_:","currentTime:",u,"scheduled currentTime:",l,"nextRange start:",h.start(0)),this.tech_.setCurrentTime(h.start(0)+TIME_FUDGE_FACTOR),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},e.gapFromVideoUnderflow_=function(l,t){for(var u=findGaps(l),h=0;h<u.length;h++){var v=u.start(h),w=u.end(h);if(t-v<4&&t-v>2)return{start:v,end:w}}return null},n}(),defaultOptions$1={errorInterval:30,getSource:function(e){var o=this.tech({IWillNotUseThisInPlugins:!0}),l=o.currentSource_||this.currentSource();return e(l)}},initPlugin=function n(e,o){var l=0,t=0,u=videojs.mergeOptions(defaultOptions$1,o);e.ready(function(){e.trigger({type:"usage",name:"vhs-error-reload-initialized"}),e.trigger({type:"usage",name:"hls-error-reload-initialized"})});var h=function(){t&&e.currentTime(t)},v=function(M){M!=null&&(t=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",h),e.src(M),e.trigger({type:"usage",name:"vhs-error-reload"}),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},w=function(){if(Date.now()-l<u.errorInterval*1e3){e.trigger({type:"usage",name:"vhs-error-reload-canceled"}),e.trigger({type:"usage",name:"hls-error-reload-canceled"});return}if(!u.getSource||typeof u.getSource!="function"){videojs.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return l=Date.now(),u.getSource.call(e,v)},A=function C(){e.off("loadedmetadata",h),e.off("error",w),e.off("dispose",C)},E=function(M){A(),n(e,M)};e.on("error",w),e.on("dispose",A),e.reloadSourceOnError=E},reloadSourceOnError=function(e){initPlugin(this,e)},version$4="2.16.3",version$3="6.0.1",version$2$1="0.22.1",version$1$1="4.8.0",version$6="3.1.3",Vhs={PlaylistLoader,Playlist,utils:utils$r,STANDARD_PLAYLIST_SELECTOR:lastBandwidthSelector,INITIAL_PLAYLIST_SELECTOR:lowestBitrateCompatibleVariantSelector,lastBandwidthSelector,movingAverageBandwidthSelector,comparePlaylistBandwidth,comparePlaylistResolution,xhr:xhrFactory()};Object.keys(Config).forEach(function(n){Object.defineProperty(Vhs,n,{get:function(){return videojs.log.warn("using Vhs."+n+" is UNSAFE be sure you know what you are doing"),Config[n]},set:function(o){if(videojs.log.warn("using Vhs."+n+" is UNSAFE be sure you know what you are doing"),typeof o!="number"||o<0){videojs.log.warn("value of Vhs."+n+" must be greater than or equal to 0");return}Config[n]=o}})});var LOCAL_STORAGE_KEY="videojs-vhs",handleVhsMediaChange=function(e,o){for(var l=o.media(),t=-1,u=0;u<e.length;u++)if(e[u].id===l.id){t=u;break}e.selectedIndex_=t,e.trigger({selectedIndex:t,type:"change"})},handleVhsLoadedMetadata=function(e,o){o.representations().forEach(function(l){e.addQualityLevel(l)}),handleVhsMediaChange(e,o.playlists)};Vhs.canPlaySource=function(){return videojs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var emeKeySystems=function(e,o,l){if(!e)return e;var t={};o&&o.attributes&&o.attributes.CODECS&&(t=unwrapCodecList(parseCodecs(o.attributes.CODECS))),l&&l.attributes&&l.attributes.CODECS&&(t.audio=l.attributes.CODECS);var u=getMimeForCodec(t.video),h=getMimeForCodec(t.audio),v={};for(var w in e)v[w]={},h&&(v[w].audioContentType=h),u&&(v[w].videoContentType=u),o.contentProtection&&o.contentProtection[w]&&o.contentProtection[w].pssh&&(v[w].pssh=o.contentProtection[w].pssh),typeof e[w]=="string"&&(v[w].url=e[w]);return videojs.mergeOptions(e,v)},getAllPsshKeySystemsOptions=function(e,o){return e.reduce(function(l,t){if(!t.contentProtection)return l;var u=o.reduce(function(h,v){var w=t.contentProtection[v];return w&&w.pssh&&(h[v]={pssh:w.pssh}),h},{});return Object.keys(u).length&&l.push(u),l},[])},waitForKeySessionCreation=function(e){var o=e.player,l=e.sourceKeySystems,t=e.audioMedia,u=e.mainPlaylists;if(!o.eme.initializeMediaKeys)return Promise.resolve();var h=t?u.concat([t]):u,v=getAllPsshKeySystemsOptions(h,Object.keys(l)),w=[],A=[];return v.forEach(function(E){A.push(new Promise(function(C,M){o.tech_.one("keysessioncreated",C)})),w.push(new Promise(function(C,M){o.eme.initializeMediaKeys({keySystems:E},function(P){if(P){M(P);return}C()})}))}),Promise.race([Promise.all(w),Promise.race(A)])},setupEmeOptions=function(e){var o=e.player,l=e.sourceKeySystems,t=e.media,u=e.audioMedia,h=emeKeySystems(l,t,u);return h?(o.currentSource().keySystems=h,h&&!o.eme?(videojs.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},getVhsLocalStorage=function(){if(!window$1$1.localStorage)return null;var e=window$1$1.localStorage.getItem(LOCAL_STORAGE_KEY);if(!e)return null;try{return JSON.parse(e)}catch{return null}},updateVhsLocalStorage=function(e){if(!window$1$1.localStorage)return!1;var o=getVhsLocalStorage();o=o?videojs.mergeOptions(o,e):e;try{window$1$1.localStorage.setItem(LOCAL_STORAGE_KEY,JSON.stringify(o))}catch{return!1}return o},expandDataUri=function(e){return e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(e.substring(e.indexOf(",")+1)):e};Vhs.supportsNativeHls=function(){if(!document$2||!document$2.createElement)return!1;var n=document$2.createElement("video");if(!videojs.getTech("Html5").isSupported())return!1;var e=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return e.some(function(o){return/maybe|probably/i.test(n.canPlayType(o))})}(),Vhs.supportsNativeDash=function(){return!document$2||!document$2.createElement||!videojs.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(document$2.createElement("video").canPlayType("application/dash+xml"))}(),Vhs.supportsTypeNatively=function(n){return n==="hls"?Vhs.supportsNativeHls:n==="dash"?Vhs.supportsNativeDash:!1},Vhs.isSupported=function(){return videojs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Component=videojs.getComponent("Component"),VhsHandler=function(n){_inheritsLoose(e,n);function e(l,t,u){var h;if(h=n.call(this,t,videojs.mergeOptions(u.hls,u.vhs))||this,u.hls&&Object.keys(u.hls).length&&videojs.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),typeof u.initialBandwidth=="number"&&(h.options_.bandwidth=u.initialBandwidth),h.logger_=logger("VhsHandler"),t.options_&&t.options_.playerId){var v=videojs(t.options_.playerId);v.hasOwnProperty("hls")||Object.defineProperty(v,"hls",{get:function(){return videojs.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),t.trigger({type:"usage",name:"hls-player-access"}),_assertThisInitialized$1(h)},configurable:!0}),v.hasOwnProperty("vhs")||Object.defineProperty(v,"vhs",{get:function(){return videojs.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),t.trigger({type:"usage",name:"vhs-player-access"}),_assertThisInitialized$1(h)},configurable:!0}),v.hasOwnProperty("dash")||Object.defineProperty(v,"dash",{get:function(){return videojs.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),_assertThisInitialized$1(h)},configurable:!0}),h.player_=v}if(h.tech_=t,h.source_=l,h.stats={},h.ignoreNextSeekingEvent_=!1,h.setOptions_(),h.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(h.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return h.on(document$2,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(w){var A=document$2.fullscreenElement||document$2.webkitFullscreenElement||document$2.mozFullScreenElement||document$2.msFullscreenElement;A&&A.contains(h.tech_.el())?h.masterPlaylistController_.fastQualityChange_():h.masterPlaylistController_.checkABR_()}),h.on(h.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),h.on(h.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),h.on(h.tech_,"play",h.play),h}var o=e.prototype;return o.setOptions_=function(){var t=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects!==!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,typeof this.options_.blacklistDuration!="number"&&(this.options_.blacklistDuration=5*60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){var u=getVhsLocalStorage();u&&u.bandwidth&&(this.options_.bandwidth=u.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),u&&u.throughput&&(this.options_.throughput=u.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=Config.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Config.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(h){typeof t.source_[h]<"u"&&(t.options_[h]=t.source_[h])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},o.src=function(t,u){var h=this;if(t){this.setOptions_(),this.options_.src=expandDataUri(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Vhs,this.options_.sourceType=simpleTypeFromSourceType(u),this.options_.seekTo=function(A){h.tech_.setCurrentTime(A)},this.options_.smoothQualityChange&&videojs.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new MasterPlaylistController(this.options_);var v=videojs.mergeOptions({liveRangeSafeTimeDelta:SAFE_TIME_DELTA},this.options_,{seekable:function(){return h.seekable()},media:function(){return h.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new PlaybackWatcher(v),this.masterPlaylistController_.on("error",function(){var A=videojs.players[h.tech_.options_.playerId],E=h.masterPlaylistController_.error;typeof E=="object"&&!E.code?E.code=3:typeof E=="string"&&(E={message:E,code:3}),A.error(E)});var w=this.options_.experimentalBufferBasedABR?Vhs.movingAverageBandwidthSelector(.55):Vhs.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):w.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Vhs.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(E){this.masterPlaylistController_.selectPlaylist=E.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(E){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=E,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var E=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,C=window$1$1.navigator.connection||window$1$1.navigator.mozConnection||window$1$1.navigator.webkitConnection,M=1e7;if(this.options_.useNetworkInformationApi&&C){var P=C.downlink*1e3*1e3;P>=M&&E>=M?E=Math.max(E,P):E=P}return E},set:function(E){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=E,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var E=1/(this.bandwidth||1),C;this.throughput>0?C=1/this.throughput:C=0;var M=Math.floor(1/(E+C));return M},set:function(){videojs.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return h.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return h.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return h.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return h.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return h.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return h.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return h.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return h.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return h.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return h.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return h.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return h.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return h.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return timeRangesToArray(h.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return h.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return h.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return h.tech_.name_},enumerable:!0},duration:{get:function(){return h.tech_.duration()},enumerable:!0},master:{get:function(){return h.playlists.master},enumerable:!0},playerDimensions:{get:function(){return h.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return timeRangesToArray(h.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return h.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){h.options_.useBandwidthFromLocalStorage&&updateVhsLocalStorage({bandwidth:h.bandwidth,throughput:Math.round(h.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){renditionSelectionMixin(h)}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){h.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=window$1$1.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},o.createKeySessions_=function(){var t=this,u=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),waitForKeySessionCreation({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:u&&u.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){t.logger_("created EME key session"),t.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(h){t.logger_("error while creating EME key session",h),t.player_.error({message:"Failed to initialize media keys for EME",code:3})})},o.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},o.setupEme_=function(){var t=this,u=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,h=setupEmeOptions({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:u&&u.media()});if(this.player_.tech_.on("keystatuschange",function(v){if(v.status==="output-restricted"){var w=t.masterPlaylistController_.master();if(!(!w||!w.playlists)){var A=[];if(w.playlists.forEach(function(C){C&&C.attributes&&C.attributes.RESOLUTION&&C.attributes.RESOLUTION.height>=720&&(!C.excludeUntil||C.excludeUntil<1/0)&&(C.excludeUntil=1/0,A.push(C))}),A.length){var E;(E=videojs.log).warn.apply(E,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(A)),t.masterPlaylistController_.fastQualityChange_()}}}}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),videojs.browser.IE_VERSION===11||!h){this.masterPlaylistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()},o.setupQualityLevels_=function(){var t=this,u=videojs.players[this.tech_.options_.playerId];!u||!u.qualityLevels||this.qualityLevels_||(this.qualityLevels_=u.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){handleVhsLoadedMetadata(t.qualityLevels_,t)}),this.playlists.on("mediachange",function(){handleVhsMediaChange(t.qualityLevels_,t.playlists)}))},e.version=function(){return{"@videojs/http-streaming":version$4,"mux.js":version$3,"mpd-parser":version$2$1,"m3u8-parser":version$1$1,"aes-decrypter":version$6}},o.version=function(){return this.constructor.version()},o.canChangeType=function(){return SourceUpdater.canChangeType()},o.play=function(){this.masterPlaylistController_.play()},o.setCurrentTime=function(t){this.masterPlaylistController_.setCurrentTime(t)},o.duration=function(){return this.masterPlaylistController_.duration()},o.seekable=function(){return this.masterPlaylistController_.seekable()},o.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&window$1$1.URL.revokeObjectURL&&(window$1$1.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),n.prototype.dispose.call(this)},o.convertToProgramTime=function(t,u){return getProgramTime({playlist:this.masterPlaylistController_.media(),time:t,callback:u})},o.seekToProgramTime=function(t,u,h,v){return h===void 0&&(h=!0),v===void 0&&(v=2),seekToProgramTime({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:v,pauseAfterSeek:h,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:u})},e}(Component),VhsSourceHandler={name:"videojs-http-streaming",VERSION:version$4,canHandleSource:function(e,o){o===void 0&&(o={});var l=videojs.mergeOptions(videojs.options,o);return VhsSourceHandler.canPlayType(e.type,l)},handleSource:function(e,o,l){l===void 0&&(l={});var t=videojs.mergeOptions(videojs.options,l);return o.vhs=new VhsHandler(e,o,t),videojs.hasOwnProperty("hls")||Object.defineProperty(o,"hls",{get:function(){return videojs.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),o.vhs},configurable:!0}),o.vhs.xhr=xhrFactory(),o.vhs.src(e.src,e.type),o.vhs},canPlayType:function(e,o){var l=simpleTypeFromSourceType(e);if(!l)return"";var t=VhsSourceHandler.getOverrideNative(o),u=Vhs.supportsTypeNatively(l),h=!u||t;return h?"maybe":""},getOverrideNative:function(e){e===void 0&&(e={});var o=e,l=o.vhs,t=l===void 0?{}:l,u=o.hls,h=u===void 0?{}:u,v=!(videojs.browser.IS_ANY_SAFARI||videojs.browser.IS_IOS),w=t.overrideNative,A=w===void 0?v:w,E=h.overrideNative,C=E===void 0?!1:E;return C||A}},supportsNativeMediaSources=function(){return browserSupportsCodec("avc1.4d400d,mp4a.40.2")};if(supportsNativeMediaSources()&&videojs.getTech("Html5").registerSourceHandler(VhsSourceHandler,0),videojs.VhsHandler=VhsHandler,Object.defineProperty(videojs,"HlsHandler",{get:function(){return videojs.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),VhsHandler},configurable:!0}),videojs.VhsSourceHandler=VhsSourceHandler,Object.defineProperty(videojs,"HlsSourceHandler",{get:function(){return videojs.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),VhsSourceHandler},configurable:!0}),videojs.Vhs=Vhs,Object.defineProperty(videojs,"Hls",{get:function(){return videojs.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Vhs},configurable:!0}),videojs.use||(videojs.registerComponent("Hls",Vhs),videojs.registerComponent("Vhs",Vhs)),videojs.options.vhs=videojs.options.vhs||{},videojs.options.hls=videojs.options.hls||{},!videojs.getPlugin||!videojs.getPlugin("reloadSourceOnError")){var registerPlugin=videojs.registerPlugin||videojs.plugin;registerPlugin("reloadSourceOnError",reloadSourceOnError)}const video_es=Object.freeze(Object.defineProperty({__proto__:null,default:videojs},Symbol.toStringTag,{value:"Module"})),require$$0$5=getAugmentedNamespace(video_es);(function(n,e){(function(o,l){{var t=require$$0$5;n.exports=l(t.default||t)}})(commonjsGlobal$1,function(o){var l=o.browser.IS_IOS||o.browser.IS_NATIVE_ANDROID,t=o.getTech("Tech");class u extends t{constructor(E,C){super(E,C),this.setPoster(E.poster),this.setSrc(this.options_.source,!0),this.setTimeout((function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",l&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),u.isApiReady?this.initYTPlayer():u.apiReadyQueue.push(this))}).bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var E=u.apiReadyQueue.indexOf(this);E!==-1&&u.apiReadyQueue.splice(E,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),t.prototype.dispose.call(this)}createEl(){var E=document.createElement("div");E.setAttribute("id",this.options_.techId),E.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),E.setAttribute("class","vjs-tech");var C=document.createElement("div");if(C.appendChild(E),!l&&!this.options_.ytControls){var M=document.createElement("div");M.setAttribute("class","vjs-iframe-blocker"),M.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),M.onclick=(function(){this.pause()}).bind(this),C.appendChild(M)}return C}initYTPlayer(){var E={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(typeof this.options_.autohide<"u"&&(E.autohide=this.options_.autohide),typeof this.options_.cc_load_policy<"u"&&(E.cc_load_policy=this.options_.cc_load_policy),typeof this.options_.ytControls<"u"&&(E.controls=this.options_.ytControls),typeof this.options_.disablekb<"u"&&(E.disablekb=this.options_.disablekb),typeof this.options_.color<"u"&&(E.color=this.options_.color),E.controls?typeof this.options_.fs<"u"&&(E.fs=this.options_.fs):E.fs=0,this.options_.source.src.indexOf("end=")!==-1){var C=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(C[1])}if(typeof this.options_.end<"u"&&(E.end=this.options_.end),typeof this.options_.hl<"u"?E.hl=this.options_.hl:typeof this.options_.language<"u"&&(E.hl=this.options_.language.substr(0,2)),typeof this.options_.iv_load_policy<"u"&&(E.iv_load_policy=this.options_.iv_load_policy),typeof this.options_.list<"u"?E.list=this.options_.list:this.url&&typeof this.url.listId<"u"&&(E.list=this.url.listId),typeof this.options_.listType<"u"&&(E.listType=this.options_.listType),typeof this.options_.modestbranding<"u"&&(E.modestbranding=this.options_.modestbranding),typeof this.options_.playlist<"u"&&(E.playlist=this.options_.playlist),typeof this.options_.playsinline<"u"&&(E.playsinline=this.options_.playsinline),typeof this.options_.rel<"u"&&(E.rel=this.options_.rel),typeof this.options_.showinfo<"u"&&(E.showinfo=this.options_.showinfo),this.options_.source.src.indexOf("start=")!==-1){var M=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(M[1])}if(typeof this.options_.start<"u"&&(E.start=this.options_.start),typeof this.options_.theme<"u"&&(E.theme=this.options_.theme),typeof this.options_.customVars<"u"){var P=this.options_.customVars;Object.keys(P).forEach(function(j){E[j]=P[j]})}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=E.list;var I={videoId:this.activeVideoId,playerVars:E,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};typeof this.options_.enablePrivacyEnhancedMode<"u"&&this.options_.enablePrivacyEnhancedMode&&(I.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,I)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute();var E=this.ytPlayer.getAvailablePlaybackRates();E.length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger("ratechange")}onPlayerStateChange(E){var C=E.data;if(!(C===this.lastState||this.errorNumber))switch(this.lastState=C,C){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting");break}}onPlayerVolumeChange(){this.trigger("volumechange")}onPlayerError(E){this.errorNumber=E.data,this.trigger("pause"),this.trigger("error")}error(){var E=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:E,message:"Error while trying to play the video"};case 2:case 100:return{code:E,message:"Unable to find the video"};case 101:case 150:return{code:E,message:"Playback on other Websites has been disabled by the video owner."}}return{code:E,message:"YouTube unknown error ("+this.errorNumber+")"}}loadVideoById_(E){var C={videoId:E};this.options_.start&&(C.startSeconds=this.options_.start),this.options_.end&&(C.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(C)}cueVideoById_(E){var C={videoId:E};this.options_.start&&(C.startSeconds=this.options_.start),this.options_.end&&(C.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(C)}src(E){return E&&this.setSrc({src:E}),this.source}poster(){return l?null:this.poster_}setPoster(E){this.poster_=E}setSrc(E){!E||!E.src||(delete this.errorNumber,this.source=E,this.url=u.parseUrl(E.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!l?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(E){this.options_.autoplay=E}loop(){return this.options_.loop}setLoop(E){this.options_.loop=E}play(){!this.url||!this.url.videoId||(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return this.ytPlayer?this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING:!0}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(E){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(E,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==E&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval((function(){this.lastState!==YT.PlayerState.PAUSED||!this.isSeeking?clearInterval(this.checkSeekedInPauseInterval):this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked())}).bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?o.createTimeRange(0,this.ytPlayer.getDuration()):o.createTimeRange()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(E){this.ytPlayer&&this.ytPlayer.setPlaybackRate(E)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return this.ytPlayer?this.lastState===YT.PlayerState.ENDED:!1}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(E){this.ytPlayer&&this.ytPlayer.setVolume(E*100)}muted(){return this.ytPlayer?this.ytPlayer.isMuted():!1}setMuted(E){if(this.ytPlayer)this.muted(!0);else return;E?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50)}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return o.createTimeRange();var E=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return o.createTimeRange(0,E)}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var E="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var C=new Image;C.onload=(function(){if("naturalHeight"in C){if(C.naturalHeight<=90||C.naturalWidth<=120)return}else if(C.height<=90||C.width<=120)return;this.poster_=E,this.trigger("posterchange")}).bind(this),C.onerror=function(){},C.src=E}catch{}}}u.isSupported=function(){return!0},u.canPlaySource=function(A){return u.canPlayType(A.type)},u.canPlayType=function(A){return A==="video/youtube"},u.parseUrl=function(A){var E={videoId:null},C=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,M=A.match(C);M&&M[2].length===11&&(E.videoId=M[2]);var P=/[?&]list=([^#\&\?]+)/;return M=A.match(P),M&&M[1]&&(E.listId=M[1]),E};function h(){YT.ready(function(){u.isApiReady=!0;for(var A=0;A<u.apiReadyQueue.length;++A)u.apiReadyQueue[A].initYTPlayer()})}function v(A,E){var C=!1,M=document.createElement("script"),P=document.getElementsByTagName("script")[0];P&&(P.parentNode.insertBefore(M,P),M.onload=function(){C||(C=!0,E())},M.onreadystatechange=function(){!C&&(this.readyState==="complete"||this.readyState==="loaded")&&(C=!0,E())},M.src=A)}function w(){var A=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",E=document.head||document.getElementsByTagName("head")[0],C=document.createElement("style");C.type="text/css",C.styleSheet?C.styleSheet.cssText=A:C.appendChild(document.createTextNode(A)),E.appendChild(C)}u.apiReadyQueue=[],typeof document<"u"&&(v("https://www.youtube.com/iframe_api",h),w()),typeof o.registerTech<"u"?o.registerTech("Youtube",u):o.registerComponent("Youtube",u)})})(Youtube);/*! @vimeo/player v2.24.0 | (c) 2024 Vimeo | MIT License | https://github.com/vimeo/player.js */function ownKeys(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);e&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),o.push.apply(o,l)}return o}function _objectSpread2(n){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach(function(l){_defineProperty(n,l,o[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(o,l))})}return n}function _regeneratorRuntime(){_regeneratorRuntime=function(){return n};var n={},e=Object.prototype,o=e.hasOwnProperty,l=Object.defineProperty||function(p,y,S){p[y]=S.value},t=typeof Symbol=="function"?Symbol:{},u=t.iterator||"@@iterator",h=t.asyncIterator||"@@asyncIterator",v=t.toStringTag||"@@toStringTag";function w(p,y,S){return Object.defineProperty(p,y,{value:S,enumerable:!0,configurable:!0,writable:!0}),p[y]}try{w({},"")}catch{w=function(y,S,c){return y[S]=c}}function A(p,y,S,c){var m=y&&y.prototype instanceof M?y:M,x=Object.create(m.prototype),T=new he(c||[]);return l(x,"_invoke",{value:re(p,S,T)}),x}function E(p,y,S){try{return{type:"normal",arg:p.call(y,S)}}catch(c){return{type:"throw",arg:c}}}n.wrap=A;var C={};function M(){}function P(){}function I(){}var j={};w(j,u,function(){return this});var B=Object.getPrototypeOf,F=B&&B(B(ye([])));F&&F!==e&&o.call(F,u)&&(j=F);var N=I.prototype=M.prototype=Object.create(j);function ee(p){["next","throw","return"].forEach(function(y){w(p,y,function(S){return this._invoke(y,S)})})}function Z(p,y){function S(m,x,T,b){var d=E(p[m],p,x);if(d.type!=="throw"){var k=d.arg,D=k.value;return D&&typeof D=="object"&&o.call(D,"__await")?y.resolve(D.__await).then(function(O){S("next",O,T,b)},function(O){S("throw",O,T,b)}):y.resolve(D).then(function(O){k.value=O,T(k)},function(O){return S("throw",O,T,b)})}b(d.arg)}var c;l(this,"_invoke",{value:function(m,x){function T(){return new y(function(b,d){S(m,x,b,d)})}return c=c?c.then(T,T):T()}})}function re(p,y,S){var c="suspendedStart";return function(m,x){if(c==="executing")throw new Error("Generator is already running");if(c==="completed"){if(m==="throw")throw x;return L()}for(S.method=m,S.arg=x;;){var T=S.delegate;if(T){var b=fe(T,S);if(b){if(b===C)continue;return b}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(c==="suspendedStart")throw c="completed",S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);c="executing";var d=E(p,y,S);if(d.type==="normal"){if(c=S.done?"completed":"suspendedYield",d.arg===C)continue;return{value:d.arg,done:S.done}}d.type==="throw"&&(c="completed",S.method="throw",S.arg=d.arg)}}}function fe(p,y){var S=y.method,c=p.iterator[S];if(c===void 0)return y.delegate=null,S==="throw"&&p.iterator.return&&(y.method="return",y.arg=void 0,fe(p,y),y.method==="throw")||S!=="return"&&(y.method="throw",y.arg=new TypeError("The iterator does not provide a '"+S+"' method")),C;var m=E(c,p.iterator,y.arg);if(m.type==="throw")return y.method="throw",y.arg=m.arg,y.delegate=null,C;var x=m.arg;return x?x.done?(y[p.resultName]=x.value,y.next=p.nextLoc,y.method!=="return"&&(y.method="next",y.arg=void 0),y.delegate=null,C):x:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,C)}function V(p){var y={tryLoc:p[0]};1 in p&&(y.catchLoc=p[1]),2 in p&&(y.finallyLoc=p[2],y.afterLoc=p[3]),this.tryEntries.push(y)}function le(p){var y=p.completion||{};y.type="normal",delete y.arg,p.completion=y}function he(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(V,this),this.reset(!0)}function ye(p){if(p){var y=p[u];if(y)return y.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var S=-1,c=function m(){for(;++S<p.length;)if(o.call(p,S))return m.value=p[S],m.done=!1,m;return m.value=void 0,m.done=!0,m};return c.next=c}}return{next:L}}function L(){return{value:void 0,done:!0}}return P.prototype=I,l(N,"constructor",{value:I,configurable:!0}),l(I,"constructor",{value:P,configurable:!0}),P.displayName=w(I,v,"GeneratorFunction"),n.isGeneratorFunction=function(p){var y=typeof p=="function"&&p.constructor;return!!y&&(y===P||(y.displayName||y.name)==="GeneratorFunction")},n.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,I):(p.__proto__=I,w(p,v,"GeneratorFunction")),p.prototype=Object.create(N),p},n.awrap=function(p){return{__await:p}},ee(Z.prototype),w(Z.prototype,h,function(){return this}),n.AsyncIterator=Z,n.async=function(p,y,S,c,m){m===void 0&&(m=Promise);var x=new Z(A(p,y,S,c),m);return n.isGeneratorFunction(y)?x:x.next().then(function(T){return T.done?T.value:x.next()})},ee(N),w(N,v,"Generator"),w(N,u,function(){return this}),w(N,"toString",function(){return"[object Generator]"}),n.keys=function(p){var y=Object(p),S=[];for(var c in y)S.push(c);return S.reverse(),function m(){for(;S.length;){var x=S.pop();if(x in y)return m.value=x,m.done=!1,m}return m.done=!0,m}},n.values=ye,he.prototype={constructor:he,reset:function(p){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(le),!p)for(var y in this)y.charAt(0)==="t"&&o.call(this,y)&&!isNaN(+y.slice(1))&&(this[y]=void 0)},stop:function(){this.done=!0;var p=this.tryEntries[0].completion;if(p.type==="throw")throw p.arg;return this.rval},dispatchException:function(p){if(this.done)throw p;var y=this;function S(d,k){return x.type="throw",x.arg=p,y.next=d,k&&(y.method="next",y.arg=void 0),!!k}for(var c=this.tryEntries.length-1;c>=0;--c){var m=this.tryEntries[c],x=m.completion;if(m.tryLoc==="root")return S("end");if(m.tryLoc<=this.prev){var T=o.call(m,"catchLoc"),b=o.call(m,"finallyLoc");if(T&&b){if(this.prev<m.catchLoc)return S(m.catchLoc,!0);if(this.prev<m.finallyLoc)return S(m.finallyLoc)}else if(T){if(this.prev<m.catchLoc)return S(m.catchLoc,!0)}else{if(!b)throw new Error("try statement without catch or finally");if(this.prev<m.finallyLoc)return S(m.finallyLoc)}}}},abrupt:function(p,y){for(var S=this.tryEntries.length-1;S>=0;--S){var c=this.tryEntries[S];if(c.tryLoc<=this.prev&&o.call(c,"finallyLoc")&&this.prev<c.finallyLoc){var m=c;break}}m&&(p==="break"||p==="continue")&&m.tryLoc<=y&&y<=m.finallyLoc&&(m=null);var x=m?m.completion:{};return x.type=p,x.arg=y,m?(this.method="next",this.next=m.finallyLoc,C):this.complete(x)},complete:function(p,y){if(p.type==="throw")throw p.arg;return p.type==="break"||p.type==="continue"?this.next=p.arg:p.type==="return"?(this.rval=this.arg=p.arg,this.method="return",this.next="end"):p.type==="normal"&&y&&(this.next=y),C},finish:function(p){for(var y=this.tryEntries.length-1;y>=0;--y){var S=this.tryEntries[y];if(S.finallyLoc===p)return this.complete(S.completion,S.afterLoc),le(S),C}},catch:function(p){for(var y=this.tryEntries.length-1;y>=0;--y){var S=this.tryEntries[y];if(S.tryLoc===p){var c=S.completion;if(c.type==="throw"){var m=c.arg;le(S)}return m}}throw new Error("illegal catch attempt")},delegateYield:function(p,y,S){return this.delegate={iterator:ye(p),resultName:y,nextLoc:S},this.method==="next"&&(this.arg=void 0),C}},n}function asyncGeneratorStep(n,e,o,l,t,u,h){try{var v=n[u](h),w=v.value}catch(A){o(A);return}v.done?e(w):Promise.resolve(w).then(l,t)}function _asyncToGenerator(n){return function(){var e=this,o=arguments;return new Promise(function(l,t){var u=n.apply(e,o);function h(w){asyncGeneratorStep(u,l,t,h,v,"next",w)}function v(w){asyncGeneratorStep(u,l,t,h,v,"throw",w)}h(void 0)})}}function _classCallCheck(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(n,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,_toPropertyKey(l.key),l)}}function _createClass(n,e,o){return e&&_defineProperties(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function _defineProperty(n,e,o){return e=_toPropertyKey(e),e in n?Object.defineProperty(n,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[e]=o,n}function _inherits(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&_setPrototypeOf(n,e)}function _getPrototypeOf(n){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(n)}function _setPrototypeOf(n,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){return l.__proto__=t,l},_setPrototypeOf(n,e)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(n,e,o){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(t,u,h){var v=[null];v.push.apply(v,u);var w=Function.bind.apply(t,v),A=new w;return h&&_setPrototypeOf(A,h.prototype),A},_construct.apply(null,arguments)}function _isNativeFunction(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function _wrapNativeSuper(n){var e=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(l){if(l===null||!_isNativeFunction(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(l))return e.get(l);e.set(l,t)}function t(){return _construct(l,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,l)},_wrapNativeSuper(n)}function _assertThisInitialized(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _possibleConstructorReturn(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(n)}function _createSuper(n){var e=_isNativeReflectConstruct();return function(){var l=_getPrototypeOf(n),t;if(e){var u=_getPrototypeOf(this).constructor;t=Reflect.construct(l,arguments,u)}else t=l.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _toPrimitive(n,e){if(typeof n!="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var l=o.call(n,e);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function _toPropertyKey(n){var e=_toPrimitive(n,"string");return typeof e=="symbol"?e:String(e)}var isNode=typeof global$1<"u"&&{}.toString.call(global$1)==="[object global]";function getMethodName(n,e){return n.indexOf(e.toLowerCase())===0?n:"".concat(e.toLowerCase()).concat(n.substr(0,1).toUpperCase()).concat(n.substr(1))}function isDomElement(n){return!!(n&&n.nodeType===1&&"nodeName"in n&&n.ownerDocument&&n.ownerDocument.defaultView)}function isInteger(n){return!isNaN(parseFloat(n))&&isFinite(n)&&Math.floor(n)==n}function isVimeoUrl(n){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(n)}function isVimeoEmbed(n){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return e.test(n)}function getOembedDomain(n){for(var e=(n||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),o=(e&&e[1]||"").replace("player.",""),l=[".videoji.hk",".vimeo.work",".videoji.cn"],t=0,u=l;t<u.length;t++){var h=u[t];if(o.endsWith(h))return o}return"vimeo.com"}function getVimeoUrl(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.id,o=n.url,l=e||o;if(!l)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(isInteger(l))return"https://vimeo.com/".concat(l);if(isVimeoUrl(l))return l.replace("http:","https:");throw e?new TypeError("“".concat(e,"” is not a valid video id.")):new TypeError("“".concat(l,"” is not a vimeo.com url."))}var subscribe=function(e,o,l){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",h=typeof o=="string"?[o]:o;return h.forEach(function(v){e[t](v,l)}),{cancel:function(){return h.forEach(function(w){return e[u](w,l)})}}},arrayIndexOfSupport=typeof Array.prototype.indexOf<"u",postMessageSupport=typeof window<"u"&&typeof window.postMessage<"u";if(!isNode&&(!arrayIndexOfSupport||!postMessageSupport))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$1<"u"?global$1:typeof self<"u"?self:{};function createCommonjsModule(n,e){return e={exports:{}},n(e,e.exports),e.exports}/*!
 * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
 * https://github.com/polygonplanet/weakmap-polyfill
 * Copyright (c) 2015-2021 polygonplanet <polygon.planet.aqua@gmail.com>
 * @license MIT
 */(function(n){if(n.WeakMap)return;var e=Object.prototype.hasOwnProperty,o=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),l=function(u,h,v){o?Object.defineProperty(u,h,{configurable:!0,writable:!0,value:v}):u[h]=v};n.WeakMap=function(){function u(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(l(this,"_id",v("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}l(u.prototype,"delete",function(A){if(h(this,"delete"),!t(A))return!1;var E=A[this._id];return E&&E[0]===A?(delete A[this._id],!0):!1}),l(u.prototype,"get",function(A){if(h(this,"get"),!!t(A)){var E=A[this._id];if(E&&E[0]===A)return E[1]}}),l(u.prototype,"has",function(A){if(h(this,"has"),!t(A))return!1;var E=A[this._id];return!!(E&&E[0]===A)}),l(u.prototype,"set",function(A,E){if(h(this,"set"),!t(A))throw new TypeError("Invalid value used as weak map key");var C=A[this._id];return C&&C[0]===A?(C[1]=E,this):(l(A,this._id,[A,E]),this)});function h(A,E){if(!t(A)||!e.call(A,"_id"))throw new TypeError(E+" method called on incompatible receiver "+typeof A)}function v(A){return A+"_"+w()+"."+w()}function w(){return Math.random().toString().substring(2)}return l(u,"_polyfill",!0),u}();function t(u){return Object(u)===u}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:commonjsGlobal);var npo_src=createCommonjsModule(function(n){/*! Native Promise Only
    v0.8.1 (c) Kyle Simpson
    MIT License: http://getify.mit-license.org
*/(function(o,l,t){l[o]=l[o]||t(),n.exports&&(n.exports=l[o])})("Promise",commonjsGlobal,function(){var o,l,t,u=Object.prototype.toString,h=typeof setImmediate<"u"?function(ee){return setImmediate(ee)}:setTimeout;try{Object.defineProperty({},"x",{}),o=function(ee,Z,re,fe){return Object.defineProperty(ee,Z,{value:re,writable:!0,configurable:fe!==!1})}}catch{o=function(Z,re,fe){return Z[re]=fe,Z}}t=function(){var ee,Z,re;function fe(V,le){this.fn=V,this.self=le,this.next=void 0}return{add:function(le,he){re=new fe(le,he),Z?Z.next=re:ee=re,Z=re,re=void 0},drain:function(){var le=ee;for(ee=Z=l=void 0;le;)le.fn.call(le.self),le=le.next}}}();function v(N,ee){t.add(N,ee),l||(l=h(t.drain))}function w(N){var ee,Z=typeof N;return N!=null&&(Z=="object"||Z=="function")&&(ee=N.then),typeof ee=="function"?ee:!1}function A(){for(var N=0;N<this.chain.length;N++)E(this,this.state===1?this.chain[N].success:this.chain[N].failure,this.chain[N]);this.chain.length=0}function E(N,ee,Z){var re,fe;try{ee===!1?Z.reject(N.msg):(ee===!0?re=N.msg:re=ee.call(void 0,N.msg),re===Z.promise?Z.reject(TypeError("Promise-chain cycle")):(fe=w(re))?fe.call(re,Z.resolve,Z.reject):Z.resolve(re))}catch(V){Z.reject(V)}}function C(N){var ee,Z=this;if(!Z.triggered){Z.triggered=!0,Z.def&&(Z=Z.def);try{(ee=w(N))?v(function(){var re=new I(Z);try{ee.call(N,function(){C.apply(re,arguments)},function(){M.apply(re,arguments)})}catch(fe){M.call(re,fe)}}):(Z.msg=N,Z.state=1,Z.chain.length>0&&v(A,Z))}catch(re){M.call(new I(Z),re)}}}function M(N){var ee=this;ee.triggered||(ee.triggered=!0,ee.def&&(ee=ee.def),ee.msg=N,ee.state=2,ee.chain.length>0&&v(A,ee))}function P(N,ee,Z,re){for(var fe=0;fe<ee.length;fe++)(function(le){N.resolve(ee[le]).then(function(ye){Z(le,ye)},re)})(fe)}function I(N){this.def=N,this.triggered=!1}function j(N){this.promise=N,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function B(N){if(typeof N!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var ee=new j(this);this.then=function(re,fe){var V={success:typeof re=="function"?re:!0,failure:typeof fe=="function"?fe:!1};return V.promise=new this.constructor(function(he,ye){if(typeof he!="function"||typeof ye!="function")throw TypeError("Not a function");V.resolve=he,V.reject=ye}),ee.chain.push(V),ee.state!==0&&v(A,ee),V.promise},this.catch=function(re){return this.then(void 0,re)};try{N.call(void 0,function(re){C.call(ee,re)},function(re){M.call(ee,re)})}catch(Z){M.call(ee,Z)}}var F=o({},"constructor",B,!1);return B.prototype=F,o(F,"__NPO__",0,!1),o(B,"resolve",function(ee){var Z=this;return ee&&typeof ee=="object"&&ee.__NPO__===1?ee:new Z(function(fe,V){if(typeof fe!="function"||typeof V!="function")throw TypeError("Not a function");fe(ee)})}),o(B,"reject",function(ee){return new this(function(re,fe){if(typeof re!="function"||typeof fe!="function")throw TypeError("Not a function");fe(ee)})}),o(B,"all",function(ee){var Z=this;return u.call(ee)!="[object Array]"?Z.reject(TypeError("Not an array")):ee.length===0?Z.resolve([]):new Z(function(fe,V){if(typeof fe!="function"||typeof V!="function")throw TypeError("Not a function");var le=ee.length,he=Array(le),ye=0;P(Z,ee,function(p,y){he[p]=y,++ye===le&&fe(he)},V)})}),o(B,"race",function(ee){var Z=this;return u.call(ee)!="[object Array]"?Z.reject(TypeError("Not an array")):new Z(function(fe,V){if(typeof fe!="function"||typeof V!="function")throw TypeError("Not a function");P(Z,ee,function(he,ye){fe(ye)},V)})}),B})}),callbackMap=new WeakMap;function storeCallback(n,e,o){var l=callbackMap.get(n.element)||{};e in l||(l[e]=[]),l[e].push(o),callbackMap.set(n.element,l)}function getCallbacks(n,e){var o=callbackMap.get(n.element)||{};return o[e]||[]}function removeCallback(n,e,o){var l=callbackMap.get(n.element)||{};if(!l[e])return!0;if(!o)return l[e]=[],callbackMap.set(n.element,l),!0;var t=l[e].indexOf(o);return t!==-1&&l[e].splice(t,1),callbackMap.set(n.element,l),l[e]&&l[e].length===0}function shiftCallbacks(n,e){var o=getCallbacks(n,e);if(o.length<1)return!1;var l=o.shift();return removeCallback(n,e,l),l}function swapCallbacks(n,e){var o=callbackMap.get(n);callbackMap.set(e,o),callbackMap.delete(n)}function parseMessageData(n){if(typeof n=="string")try{n=JSON.parse(n)}catch(e){return console.warn(e),{}}return n}function postMessage(n,e,o){if(!(!n.element.contentWindow||!n.element.contentWindow.postMessage)){var l={method:e};o!==void 0&&(l.value=o);var t=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));t>=8&&t<10&&(l=JSON.stringify(l)),n.element.contentWindow.postMessage(l,n.origin)}}function processData(n,e){e=parseMessageData(e);var o=[],l;if(e.event){if(e.event==="error"){var t=getCallbacks(n,e.data.method);t.forEach(function(h){var v=new Error(e.data.message);v.name=e.data.name,h.reject(v),removeCallback(n,e.data.method,h)})}o=getCallbacks(n,"event:".concat(e.event)),l=e.data}else if(e.method){var u=shiftCallbacks(n,e.method);u&&(o.push(u),l=e.value)}o.forEach(function(h){try{if(typeof h=="function"){h.call(n,l);return}h.resolve(l)}catch{}})}var oEmbedParameters=["airplay","audio_tracks","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function getOEmbedParameters(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oEmbedParameters.reduce(function(o,l){var t=n.getAttribute("data-vimeo-".concat(l));return(t||t==="")&&(o[l]=t===""?1:t),o},e)}function createEmbed(n,e){var o=n.html;if(!e)throw new TypeError("An element must be provided");if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var l=document.createElement("div");return l.innerHTML=o,e.appendChild(l.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function getOEmbedData(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;return new Promise(function(l,t){if(!isVimeoUrl(n))throw new TypeError("“".concat(n,"” is not a vimeo.com url."));var u=getOembedDomain(n),h="https://".concat(u,"/api/oembed.json?url=").concat(encodeURIComponent(n));for(var v in e)e.hasOwnProperty(v)&&(h+="&".concat(v,"=").concat(encodeURIComponent(e[v])));var w="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;w.open("GET",h,!0),w.onload=function(){if(w.status===404){t(new Error("“".concat(n,"” was not found.")));return}if(w.status===403){t(new Error("“".concat(n,"” is not embeddable.")));return}try{var A=JSON.parse(w.responseText);if(A.domain_status_code===403){createEmbed(A,o),t(new Error("“".concat(n,"” is not embeddable.")));return}l(A)}catch(E){t(E)}},w.onerror=function(){var A=w.status?" (".concat(w.status,")"):"";t(new Error("There was an error fetching the embed code from Vimeo".concat(A,".")))},w.send()})}function initializeEmbeds(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(n.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),o=function(t){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(t))};e.forEach(function(l){try{if(l.getAttribute("data-vimeo-defer")!==null)return;var t=getOEmbedParameters(l),u=getVimeoUrl(t);getOEmbedData(u,t,l).then(function(h){return createEmbed(h,l)}).catch(o)}catch(h){o(h)}})}function resizeEmbeds(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(l){if(isVimeoUrl(l.origin)&&!(!l.data||l.data.event!=="spacechange")){for(var t=n.querySelectorAll("iframe"),u=0;u<t.length;u++)if(t[u].contentWindow===l.source){var h=t[u].parentElement;h.style.paddingBottom="".concat(l.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function initAppendVideoMetadata(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(l){if(isVimeoUrl(l.origin)){var t=parseMessageData(l.data);if(!(!t||t.event!=="ready"))for(var u=n.querySelectorAll("iframe"),h=0;h<u.length;h++){var v=u[h],w=v.contentWindow===l.source;if(isVimeoEmbed(v.src)&&w){var A=new Player(v);A.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function checkUrlTimeParam(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(t){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(t))},o=function(t){if(isVimeoUrl(t.origin)){var u=parseMessageData(t.data);if(!(!u||u.event!=="ready"))for(var h=n.querySelectorAll("iframe"),v=function(){var E=h[w],C=E.contentWindow===t.source;if(isVimeoEmbed(E.src)&&C){var M=new Player(E);M.getVideoId().then(function(P){var I=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(I&&I[1]){var j=decodeURI(I[1]);M.setCurrentTime(j)}}).catch(e)}},w=0;w<h.length;w++)v()}};window.addEventListener("message",o)}}function initializeScreenfull(){var n=function(){for(var l,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=0,h=t.length,v={};u<h;u++)if(l=t[u],l&&l[1]in document){for(u=0;u<l.length;u++)v[t[0][u]]=l[u];return v}return!1}(),e={fullscreenchange:n.fullscreenchange,fullscreenerror:n.fullscreenerror},o={request:function(t){return new Promise(function(u,h){var v=function A(){o.off("fullscreenchange",A),u()};o.on("fullscreenchange",v),t=t||document.documentElement;var w=t[n.requestFullscreen]();w instanceof Promise&&w.then(v).catch(h)})},exit:function(){return new Promise(function(t,u){if(!o.isFullscreen){t();return}var h=function w(){o.off("fullscreenchange",w),t()};o.on("fullscreenchange",h);var v=document[n.exitFullscreen]();v instanceof Promise&&v.then(h).catch(u)})},on:function(t,u){var h=e[t];h&&document.addEventListener(h,u)},off:function(t,u){var h=e[t];h&&document.removeEventListener(h,u)}};return Object.defineProperties(o,{isFullscreen:{get:function(){return!!document[n.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[n.fullscreenEnabled]}}}),o}var defaultOptions={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},TimingSrcConnector=function(n){_inherits(o,n);var e=_createSuper(o);function o(l,t){var u,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3?arguments[3]:void 0;return _classCallCheck(this,o),u=e.call(this),_defineProperty(_assertThisInitialized(u),"logger",void 0),_defineProperty(_assertThisInitialized(u),"speedAdjustment",0),_defineProperty(_assertThisInitialized(u),"adjustSpeed",function(){var w=_asyncToGenerator(_regeneratorRuntime().mark(function A(E,C){var M;return _regeneratorRuntime().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(u.speedAdjustment!==C){I.next=2;break}return I.abrupt("return");case 2:return I.next=4,E.getPlaybackRate();case 4:return I.t0=I.sent,I.t1=u.speedAdjustment,I.t2=I.t0-I.t1,I.t3=C,M=I.t2+I.t3,u.log("New playbackRate:  ".concat(M)),I.next=12,E.setPlaybackRate(M);case 12:u.speedAdjustment=C;case 13:case"end":return I.stop()}},A)}));return function(A,E){return w.apply(this,arguments)}}()),u.logger=v,u.init(t,l,_objectSpread2(_objectSpread2({},defaultOptions),h)),u}return _createClass(o,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var l=_asyncToGenerator(_regeneratorRuntime().mark(function u(h,v,w){var A=this,E,C,M;return _regeneratorRuntime().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.waitForTOReadyState(h,"open");case 2:if(w.role!=="viewer"){I.next=10;break}return I.next=5,this.updatePlayer(h,v,w);case 5:E=subscribe(h,"change",function(){return A.updatePlayer(h,v,w)}),C=this.maintainPlaybackPosition(h,v,w),this.addEventListener("disconnect",function(){C.cancel(),E.cancel()}),I.next=14;break;case 10:return I.next=12,this.updateTimingObject(h,v);case 12:M=subscribe(v,["seeked","play","pause","ratechange"],function(){return A.updateTimingObject(h,v)},"on","off"),this.addEventListener("disconnect",function(){return M.cancel()});case 14:case"end":return I.stop()}},u,this)}));function t(u,h,v){return l.apply(this,arguments)}return t}()},{key:"updateTimingObject",value:function(){var l=_asyncToGenerator(_regeneratorRuntime().mark(function u(h,v){return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.t0=h,A.next=3,v.getCurrentTime();case 3:return A.t1=A.sent,A.next=6,v.getPaused();case 6:if(!A.sent){A.next=10;break}A.t2=0,A.next=13;break;case 10:return A.next=12,v.getPlaybackRate();case 12:A.t2=A.sent;case 13:A.t3=A.t2,A.t4={position:A.t1,velocity:A.t3},A.t0.update.call(A.t0,A.t4);case 16:case"end":return A.stop()}},u)}));function t(u,h){return l.apply(this,arguments)}return t}()},{key:"updatePlayer",value:function(){var l=_asyncToGenerator(_regeneratorRuntime().mark(function u(h,v,w){var A,E,C;return _regeneratorRuntime().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(A=h.query(),E=A.position,C=A.velocity,typeof E=="number"&&v.setCurrentTime(E),typeof C!="number"){P.next=25;break}if(C!==0){P.next=11;break}return P.next=6,v.getPaused();case 6:if(P.t0=P.sent,P.t0!==!1){P.next=9;break}v.pause();case 9:P.next=25;break;case 11:if(!(C>0)){P.next=25;break}return P.next=14,v.getPaused();case 14:if(P.t1=P.sent,P.t1!==!0){P.next=19;break}return P.next=18,v.play().catch(function(){var I=_asyncToGenerator(_regeneratorRuntime().mark(function j(B){return _regeneratorRuntime().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(!(B.name==="NotAllowedError"&&w.autoPlayMuted)){N.next=5;break}return N.next=3,v.setMuted(!0);case 3:return N.next=5,v.play().catch(function(ee){return console.error("Couldn't play the video from TimingSrcConnector. Error:",ee)});case 5:case"end":return N.stop()}},j)}));return function(j){return I.apply(this,arguments)}}());case 18:this.updatePlayer(h,v,w);case 19:return P.next=21,v.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=C,P.t2===P.t3){P.next=25;break}v.setPlaybackRate(C);case 25:case"end":return P.stop()}},u,this)}));function t(u,h,v){return l.apply(this,arguments)}return t}()},{key:"maintainPlaybackPosition",value:function(t,u,h){var v=this,w=h.allowedDrift,A=h.maxAllowedDrift,E=h.minCheckInterval,C=h.maxRateAdjustment,M=h.maxTimeToCatchUp,P=Math.min(M,Math.max(E,A))*1e3,I=function(){var B=_asyncToGenerator(_regeneratorRuntime().mark(function F(){var N,ee,Z,re,fe;return _regeneratorRuntime().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(le.t0=t.query().velocity===0,le.t0){le.next=6;break}return le.next=4,u.getPaused();case 4:le.t1=le.sent,le.t0=le.t1===!0;case 6:if(!le.t0){le.next=8;break}return le.abrupt("return");case 8:return le.t2=t.query().position,le.next=11,u.getCurrentTime();case 11:if(le.t3=le.sent,N=le.t2-le.t3,ee=Math.abs(N),v.log("Drift: ".concat(N)),!(ee>A)){le.next=22;break}return le.next=18,v.adjustSpeed(u,0);case 18:u.setCurrentTime(t.query().position),v.log("Resync by currentTime"),le.next=29;break;case 22:if(!(ee>w)){le.next=29;break}return Z=ee/M,re=C,fe=Z<re?(re-Z)/2:re,le.next=28,v.adjustSpeed(u,fe*Math.sign(N));case 28:v.log("Resync by playbackRate");case 29:case"end":return le.stop()}},F)}));return function(){return B.apply(this,arguments)}}(),j=setInterval(function(){return I()},P);return{cancel:function(){return clearInterval(j)}}}},{key:"log",value:function(t){var u;(u=this.logger)===null||u===void 0||u.call(this,"TimingSrcConnector: ".concat(t))}},{key:"waitForTOReadyState",value:function(t,u){return new Promise(function(h){var v=function w(){t.readyState===u?h():t.addEventListener("readystatechange",w,{once:!0})};v()})}}]),o}(_wrapNativeSuper(EventTarget)),playerMap=new WeakMap,readyMap=new WeakMap,screenfull={},Player=function(){function n(e){var o=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,n),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!isDomElement(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var t=e.querySelector("iframe");t&&(e=t)}if(e.nodeName==="IFRAME"&&!isVimeoUrl(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(playerMap.has(e))return playerMap.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var u=new npo_src(function(v,w){if(o._onMessage=function(C){if(!(!isVimeoUrl(C.origin)||o.element.contentWindow!==C.source)){o.origin==="*"&&(o.origin=C.origin);var M=parseMessageData(C.data),P=M&&M.event==="error",I=P&&M.data&&M.data.method==="ready";if(I){var j=new Error(M.data.message);j.name=M.data.name,w(j);return}var B=M&&M.event==="ready",F=M&&M.method==="ping";if(B||F){o.element.setAttribute("data-ready","true"),v();return}processData(o,M)}},o._window.addEventListener("message",o._onMessage),o.element.nodeName!=="IFRAME"){var A=getOEmbedParameters(e,l),E=getVimeoUrl(A);getOEmbedData(E,A,e).then(function(C){var M=createEmbed(C,e);return o.element=M,o._originalElement=e,swapCallbacks(e,M),playerMap.set(o.element,o),C}).catch(w)}});if(readyMap.set(this,u),playerMap.set(this.element,this),this.element.nodeName==="IFRAME"&&postMessage(this,"ping"),screenfull.isEnabled){var h=function(){return screenfull.exit()};this.fullscreenchangeHandler=function(){screenfull.isFullscreen?storeCallback(o,"event:exitFullscreen",h):removeCallback(o,"event:exitFullscreen",h),o.ready().then(function(){postMessage(o,"fullscreenchange",screenfull.isFullscreen)})},screenfull.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return _createClass(n,[{key:"callMethod",value:function(o){var l=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new npo_src(function(u,h){return l.ready().then(function(){storeCallback(l,o,{resolve:u,reject:h}),postMessage(l,o,t)}).catch(h)})}},{key:"get",value:function(o){var l=this;return new npo_src(function(t,u){return o=getMethodName(o,"get"),l.ready().then(function(){storeCallback(l,o,{resolve:t,reject:u}),postMessage(l,o)}).catch(u)})}},{key:"set",value:function(o,l){var t=this;return new npo_src(function(u,h){if(o=getMethodName(o,"set"),l==null)throw new TypeError("There must be a value to set.");return t.ready().then(function(){storeCallback(t,o,{resolve:u,reject:h}),postMessage(t,o,l)}).catch(h)})}},{key:"on",value:function(o,l){if(!o)throw new TypeError("You must pass an event name.");if(!l)throw new TypeError("You must pass a callback function.");if(typeof l!="function")throw new TypeError("The callback must be a function.");var t=getCallbacks(this,"event:".concat(o));t.length===0&&this.callMethod("addEventListener",o).catch(function(){}),storeCallback(this,"event:".concat(o),l)}},{key:"off",value:function(o,l){if(!o)throw new TypeError("You must pass an event name.");if(l&&typeof l!="function")throw new TypeError("The callback must be a function.");var t=removeCallback(this,"event:".concat(o),l);t&&this.callMethod("removeEventListener",o).catch(function(u){})}},{key:"loadVideo",value:function(o){return this.callMethod("loadVideo",o)}},{key:"ready",value:function(){var o=readyMap.get(this)||new npo_src(function(l,t){t(new Error("Unknown player. Probably unloaded."))});return npo_src.resolve(o)}},{key:"addCuePoint",value:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:o,data:l})}},{key:"removeCuePoint",value:function(o){return this.callMethod("removeCuePoint",o)}},{key:"enableTextTrack",value:function(o,l){if(!o)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:o,kind:l})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return screenfull.isEnabled?screenfull.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return screenfull.isEnabled?screenfull.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return screenfull.isEnabled?npo_src.resolve(screenfull.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var o=this;return new npo_src(function(l){if(readyMap.delete(o),playerMap.delete(o.element),o._originalElement&&(playerMap.delete(o._originalElement),o._originalElement.removeAttribute("data-vimeo-initialized")),o.element&&o.element.nodeName==="IFRAME"&&o.element.parentNode&&(o.element.parentNode.parentNode&&o._originalElement&&o._originalElement!==o.element.parentNode?o.element.parentNode.parentNode.removeChild(o.element.parentNode):o.element.parentNode.removeChild(o.element)),o.element&&o.element.nodeName==="DIV"&&o.element.parentNode){o.element.removeAttribute("data-vimeo-initialized");var t=o.element.querySelector("iframe");t&&t.parentNode&&(t.parentNode.parentNode&&o._originalElement&&o._originalElement!==t.parentNode?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))}o._window.removeEventListener("message",o._onMessage),screenfull.isEnabled&&screenfull.off("fullscreenchange",o.fullscreenchangeHandler),l()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(o){return this.set("autopause",o)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(o){return this.set("cameraProps",o)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return npo_src.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(o){return this.set("color",o)}},{key:"setColors",value:function(o){if(!Array.isArray(o))return new npo_src(function(u,h){return h(new TypeError("Argument must be an array."))});var l=new npo_src(function(u){return u(null)}),t=[o[0]?this.set("colorOne",o[0]):l,o[1]?this.set("colorTwo",o[1]):l,o[2]?this.set("colorThree",o[2]):l,o[3]?this.set("colorFour",o[3]):l];return npo_src.all(t)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(o){return this.set("currentTime",o)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(o){return this.set("loop",o)}},{key:"setMuted",value:function(o){return this.set("muted",o)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(o){return this.set("playbackRate",o)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(o){return this.set("quality",o)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(o){return this.set("volume",o)}},{key:"setTimingSrc",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function l(t,u){var h=this,v;return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(t){A.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return A.next=4,this.ready();case 4:return v=new TimingSrcConnector(this,t,u),postMessage(this,"notifyTimingObjectConnect"),v.addEventListener("disconnect",function(){return postMessage(h,"notifyTimingObjectDisconnect")}),A.abrupt("return",v);case 8:case"end":return A.stop()}},l,this)}));function o(l,t){return e.apply(this,arguments)}return o}()}]),n}();isNode||(screenfull=initializeScreenfull(),initializeEmbeds(),resizeEmbeds(),initAppendVideoMetadata(),checkUrlTimeParam());let cssInjected=!1;function injectCss$1(){if(cssInjected)return;cssInjected=!0;const n=`
    .vjs-vimeo iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  `,e=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),e.appendChild(o)}const Tech$1=videojs.getTech("Tech");class Vimeo extends Tech$1{constructor(e,o){super(e,o),injectCss$1(),this.setPoster(e.poster),this.initVimeoPlayer()}initVimeoPlayer(){this.options({});const e={url:this.options_.source.src,byline:!1,portrait:!1,title:!1,controls:!1};this.options_.autoplay&&(e.autoplay=!0),typeof this.options_.controls<"u"&&(e.controls=this.options_.controls),this.options_.height&&(e.height=this.options_.height),this.options_.width&&(e.width=this.options_.width),this.options_.maxheight&&(e.maxheight=this.options_.maxheight),this.options_.maxwidth&&(e.maxwidth=this.options_.maxwidth),this.options_.loop&&(e.loop=this.options_.loop),this.options_.color&&(e.color=this.options_.color.replace(/^#/,"")),e.controls=!1,this._player=new Player(this.el(),e),this.initVimeoState(),["play","pause","ended","timeupdate","progress","seeked"].forEach(o=>{this._player.on(o,l=>{this._vimeoState.progress.duration!==l.duration&&this.trigger("durationchange"),this._vimeoState.progress=l,this.trigger(o)})}),this._player.on("pause",()=>this._vimeoState.playing=!1),this._player.on("play",()=>{this._vimeoState.playing=!0,this._vimeoState.ended=!1}),this._player.on("ended",()=>{this._vimeoState.playing=!1,this._vimeoState.ended=!0}),this._player.on("volumechange",o=>this._vimeoState.volume=o),this._player.on("error",o=>this.trigger("error",o)),this.triggerReady()}initVimeoState(){const e=this._vimeoState={ended:!1,playing:!1,volume:0,progress:{seconds:0,percent:0,duration:0}};this._player.getCurrentTime().then(o=>e.progress.seconds=o),this._player.getDuration().then(o=>e.progress.duration=o),this._player.getPaused().then(o=>e.playing=!o),this._player.getVolume().then(o=>e.volume=o)}createEl(){const e=videojs.dom.createEl("div",{id:this.options_.techId});return e.style.cssText="width:100%;height:100%;top:0;left:0;position:absolute",e.className="vjs-vimeo",e}controls(){return!0}supportsFullScreen(){return!0}src(){return this.options_.source}currentSrc(){return this.options_.source.src}currentTime(){return this._vimeoState.progress.seconds}setCurrentTime(e){this._player.setCurrentTime(e)}volume(){return this._vimeoState.volume}setVolume(e){return this._player.setVolume(e)}duration(){return this._vimeoState.progress.duration}buffered(){const e=this._vimeoState.progress;return videojs.createTimeRange(0,e.percent*e.duration)}paused(){return!this._vimeoState.playing}pause(){this._player.pause()}play(){this._player.play()}muted(){return this._vimeoState.volume===0}setMuted(e){return this._player.setMuted(e)}ended(){return this._vimeoState.ended}playbackRate(){return 1}}Vimeo.prototype.featuresTimeupdateEvents=!0,Vimeo.isSupported=function(){return!0},Tech$1.withSourceHandlers(Vimeo),Vimeo.nativeSourceHandler={},Vimeo.nativeSourceHandler.canPlayType=function(n){return n==="video/vimeo"?"maybe":""},Vimeo.nativeSourceHandler.canHandleSource=function(n){return n.type?Vimeo.nativeSourceHandler.canPlayType(n.type):n.src?Vimeo.nativeSourceHandler.canPlayType(n.src):""},Vimeo.nativeSourceHandler.handleSource=function(n,e){e.src(n.src)},Vimeo.nativeSourceHandler.dispose=function(){},Vimeo.registerSourceHandler(Vimeo.nativeSourceHandler),typeof videojs.registerTech<"u"?videojs.registerTech("Vimeo",Vimeo):videojs.registerComponent("Vimeo",Vimeo),Vimeo.VERSION="0.0.1";var _isOnMobile=videojs.browser.IS_IOS||videojs.browser.IS_NATIVE_ANDROID,Tech=videojs.getTech("Tech");class Dailymotion extends Tech{constructor(e,o){super(e,o),this.setSrc(this.options_.source),setTimeout(()=>{this.el_&&(this.el_.parentNode.className+=" vjs-dailymotion",_isOnMobile&&(this.el_.parentNode.className+=" vjs-dailymotion-mobile"),Dailymotion.isSdkReady?this.initDMPlayer():Dailymotion.sdkReadyQueue.push(this))})}_getPlayerParams(){var e={autoplay:!1,mute:!1,controls:!1,"enable-playback-controls":!1,"queue-autoplay-next":!1,"queue-enable":!1},o=["api","autoplay","autoplay-mute","id","mute","origin","quality","queue-autoplay-next","queue-enable","sharing-enable","start","subtitles-default","syndication","ui-highlight","ui-logo","ui-start-screen-info","ui-theme","apimode","playlist"],l=this.options_;if(o.forEach(function(u){typeof l[u]>"u"||(e[u]=l[u])}),typeof this.options_.dmControls<"u"&&(e.controls=this.options_.dmControls),this.url&&typeof this.url.playlist<"u"&&(e.playlist=this.url.playlist),typeof this.options_.customVars<"u"){var t=this.options_.customVars;Object.keys(t).forEach(function(u){e[u]=t[u]})}return e}_getPlayerConfig(){var e={width:"100%",height:"100%",params:this._getPlayerParams()};return this.url&&typeof this.url.video<"u"?e.video=this.url.video:typeof this.options_.video<"u"&&(e.video=this.options_.video),e}async initDMPlayer(){if(this.dmPlayer)return;const e={[dailymotion.events.VIDEO_DURATIONCHANGE]:["durationchange"],[dailymotion.events.PLAYER_END]:["ended"],[dailymotion.events.PLAYER_ERROR]:["error"],[dailymotion.events.PLAYER_VIDEOCHANGE]:["loadeddata","loadedmetadata"],[dailymotion.events.VIDEO_PAUSE]:["pause"],[dailymotion.events.VIDEO_PLAY]:["loadstart","play","playing"],[dailymotion.events.VIDEO_PLAYING]:["playing"],[dailymotion.events.VIDEO_TIMECHANGE]:["timeupdate"],[dailymotion.events.PLAYER_VOLUMECHANGE]:["volumechange","mute"]};this.dmPlayer=await dailymotion.createPlayer(this.options_.techId,this._getPlayerConfig()),this.dmState=await this.getPlayerState(),this.isApiReady=!0,this.dmPlayer.enable_playback_controls=!1;for(const o in e)this.dmPlayer.on(o,l=>{this.dmState=l;for(const t of e[o])this.trigger(t)});this.dmPlayer.on(dailymotion.events.PLAYER_ERROR,o=>{vm.trigger("error",o.playerError)}),this.triggerReady()}autoplay(e){return typeof e<"u"?this.setAutoplay(e):this.options_.autoplay}setAutoplay(e){return this.options_.autoplay=e}buffered(){return!this.dmPlayer||!this.dmPlayer.bufferedTime?videojs.createTimeRange():videojs.createTimeRange(0,this.dmPlayer.bufferedTime)}createEl(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),e.setAttribute("class","vjs-tech");var o=document.createElement("div");return o.appendChild(e),!_isOnMobile&&this.options_.dmControls,o}currentSrc(){return this.source&&this.source.src}currentTime(){return this.dmPlayer&&this.dmState&&this.dmState.videoTime}setCurrentTime(e){if(!(!this.dmPlayer||!this.dmPlayer.seek))return this.dmPlayer.seek(e)}dispose(){if(this.dmPlayer)this.dmPlayer.destroy(this.options_.techId),Tech.prototype.dispose.call(this);else{var e=Dailymotion.sdkReadyQueue.indexOf(this);e!==-1&&Dailymotion.sdkReadyQueue.splice(e,1)}this.dmPlayer=void 0,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-dailymotion","").replace(" vjs-dailymotion-mobile",""),this.el_.parentNode.removeChild(this.el_),Tech.prototype.dispose.call(this)}duration(){return this.dmState?this.dmState.videoDuration:0}setDuration(e){}ended(){}enterFullWindow(){if(!(!this.dmPlayer||!this.dmPlayer.setFullscreen))return this.dmPlayer.setFullscreen(!0)}error(){return this.dmState&&this.dmState.playerError}exitFullscreen(){if(!(!this.dmPlayer||!this.dmPlayer.setFullscreen))return this.dmPlayer.setFullscreen(!1)}isFullscreen(){return this.dmState&&this.dmState.playerPresentationMode==="fullscreen"}language(){}languages(){}load(){if(!(!this.dmPlayer||!this.dmPlayer.loadContent))return this.dmPlayer.loadContent(this._getPlayerConfig())}loop(){}async muted(){return this.dmState?this.dmState.playerIsMuted:!1}async setMuted(e){typeof e>"u"&&(e=!(await this.getPlayerState()).playerIsMuted),await this.dmPlayer.setMute(e)}networkState(){}async pause(){if(!(!this.dmPlayer||!this.dmPlayer.pause))return await this.dmPlayer.pause()}paused(){return this.dmState&&this.dmState.playerIsPlaying===!1}play(){if(!(!this.isApiReady||!this.dmPlayer||!this.dmPlayer.play))return this.dmPlayer.play()}playbackRate(){return 1}poster(){}preload(){}readyState(){return!this.dmState||this.dmState.playerError?0:4}remainingTime(){return this.dmState&&this.dmState.videoDuration-this.dmState.videoTime}requestFullscreen(){return this.enterFullWindow()}enterFullScreen(){return this.enterFullWindow()}reset(){this.load()}seekable(){}seeking(){}src(e){return typeof e<"u"?this.setSrc(e):this.source}setSrc(e){if(!(typeof e>"u"))return this.source=e,this.url=Dailymotion.parseUrl(e.src||e),Dailymotion.isSdkReady&&this.load(),this.source}supportsFullScreen(){return!0}async volume(){return this.dmPlayer?(await this.dmPlayer.getState()).playerVolume:1}setVolume(e){!this.dmPlayer||!this.dmPlayer.setMute||!this.dmPlayer.setVolume||(e>0?this.dmPlayer.setMute(!1):this.dmPlayer.setMute(!0),this.dmPlayer.setVolume(e))}async getPlayerState(){return this.dmPlayer?await this.dmPlayer.getState():{}}}Dailymotion.isSupported=function(){return!0},Dailymotion.canPlaySource=function(n){return Dailymotion.canPlayType(n.type)},Dailymotion.canPlayType=function(n){return n==="video/dailymotion"},Dailymotion.parseUrl=function(n){var e={},o=/video\/[^?|^\/]*/,l=n.match(o);l&&l[0]&&(e.video=l[0].replace("video/",""));var t=/playlist(=|\/)[^&]*/;return l=n.match(t),l&&l[0]&&(e.playlist=l[0].replace(/playlist(=|\/)/,"")),e};async function apiLoaded(){Dailymotion.isSdkReady=!0;for(var n=0;n<Dailymotion.sdkReadyQueue.length;++n)await Dailymotion.sdkReadyQueue[n].initDMPlayer()}function loadScript(n,e){var o=!1,l=document.createElement("script"),t=document.getElementsByTagName("script")[0];t&&(t.parentNode.insertBefore(l,t),l.onload=function(){o||(o=!0,e())},l.onreadystatechange=function(){!o&&(this.readyState==="complete"||this.readyState==="loaded")&&(o=!0,e())},l.src=n)}function injectCss(){var n=".vjs-dailymotion .vjs-iframe-blocker { display: none; }.vjs-dailymotion.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-dailymotion .vjs-poster { background-size: cover; }.vjs-dailymotion-mobile .vjs-big-play-button { display: none; }",e=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.setAttribute("type","text/css"),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),e.appendChild(o)}Dailymotion.sdkReadyQueue=[],Dailymotion.loadLibrary=function(n){typeof document<"u"&&(loadScript(`https://geo.dailymotion.com/libs/player/${n}.js`,()=>{window.dailymotion===void 0?window.dailymotion={onScriptLoaded:apiLoaded}:apiLoaded()}),injectCss())},videojs.registerTech("Dailymotion",Dailymotion);const videojsStyles={};var mimeTypes={};const require$$0$4={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};/*!
 * mime-db
 * Copyright(c) 2014 Jonathan Ong
 * Copyright(c) 2015-2022 Douglas Christopher Wilson
 * MIT Licensed
 */var mimeDb=require$$0$4;function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var browser$e={exports:{}},process=browser$e.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(n){if(cachedSetTimeout===setTimeout)return setTimeout(n,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(n,0);try{return cachedSetTimeout(n,0)}catch{try{return cachedSetTimeout.call(null,n,0)}catch{return cachedSetTimeout.call(this,n,0)}}}function runClearTimeout(n){if(cachedClearTimeout===clearTimeout)return clearTimeout(n);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(n);try{return cachedClearTimeout(n)}catch{try{return cachedClearTimeout.call(null,n)}catch{return cachedClearTimeout.call(this,n)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var n=runTimeout(cleanUpNextTick);draining=!0;for(var e=queue.length;e;){for(currentQueue=queue,queue=[];++queueIndex<e;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,e=queue.length}currentQueue=null,draining=!1,runClearTimeout(n)}}process.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)e[o-1]=arguments[o];queue.push(new Item(n,e)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(n,e){this.fun=n,this.array=e}Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={};function noop(){}process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(n){return[]},process.binding=function(n){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(n){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var browserExports$1=browser$e.exports;const process$1=getDefaultExportFromCjs(browserExports$1);function assertPath(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function normalizeStringPosix(n,e){for(var o="",l=0,t=-1,u=0,h,v=0;v<=n.length;++v){if(v<n.length)h=n.charCodeAt(v);else{if(h===47)break;h=47}if(h===47){if(!(t===v-1||u===1))if(t!==v-1&&u===2){if(o.length<2||l!==2||o.charCodeAt(o.length-1)!==46||o.charCodeAt(o.length-2)!==46){if(o.length>2){var w=o.lastIndexOf("/");if(w!==o.length-1){w===-1?(o="",l=0):(o=o.slice(0,w),l=o.length-1-o.lastIndexOf("/")),t=v,u=0;continue}}else if(o.length===2||o.length===1){o="",l=0,t=v,u=0;continue}}e&&(o.length>0?o+="/..":o="..",l=2)}else o.length>0?o+="/"+n.slice(t+1,v):o=n.slice(t+1,v),l=v-t-1;t=v,u=0}else h===46&&u!==-1?++u:u=-1}return o}function _format(n,e){var o=e.dir||e.root,l=e.base||(e.name||"")+(e.ext||"");return o?o===e.root?o+l:o+n+l:l}var posix={resolve:function(){for(var e="",o=!1,l,t=arguments.length-1;t>=-1&&!o;t--){var u;t>=0?u=arguments[t]:(l===void 0&&(l=process$1.cwd()),u=l),assertPath(u),u.length!==0&&(e=u+"/"+e,o=u.charCodeAt(0)===47)}return e=normalizeStringPosix(e,!o),o?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(assertPath(e),e.length===0)return".";var o=e.charCodeAt(0)===47,l=e.charCodeAt(e.length-1)===47;return e=normalizeStringPosix(e,!o),e.length===0&&!o&&(e="."),e.length>0&&l&&(e+="/"),o?"/"+e:e},isAbsolute:function(e){return assertPath(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,o=0;o<arguments.length;++o){var l=arguments[o];assertPath(l),l.length>0&&(e===void 0?e=l:e+="/"+l)}return e===void 0?".":posix.normalize(e)},relative:function(e,o){if(assertPath(e),assertPath(o),e===o||(e=posix.resolve(e),o=posix.resolve(o),e===o))return"";for(var l=1;l<e.length&&e.charCodeAt(l)===47;++l);for(var t=e.length,u=t-l,h=1;h<o.length&&o.charCodeAt(h)===47;++h);for(var v=o.length,w=v-h,A=u<w?u:w,E=-1,C=0;C<=A;++C){if(C===A){if(w>A){if(o.charCodeAt(h+C)===47)return o.slice(h+C+1);if(C===0)return o.slice(h+C)}else u>A&&(e.charCodeAt(l+C)===47?E=C:C===0&&(E=0));break}var M=e.charCodeAt(l+C),P=o.charCodeAt(h+C);if(M!==P)break;M===47&&(E=C)}var I="";for(C=l+E+1;C<=t;++C)(C===t||e.charCodeAt(C)===47)&&(I.length===0?I+="..":I+="/..");return I.length>0?I+o.slice(h+E):(h+=E,o.charCodeAt(h)===47&&++h,o.slice(h))},_makeLong:function(e){return e},dirname:function(e){if(assertPath(e),e.length===0)return".";for(var o=e.charCodeAt(0),l=o===47,t=-1,u=!0,h=e.length-1;h>=1;--h)if(o=e.charCodeAt(h),o===47){if(!u){t=h;break}}else u=!1;return t===-1?l?"/":".":l&&t===1?"//":e.slice(0,t)},basename:function(e,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');assertPath(e);var l=0,t=-1,u=!0,h;if(o!==void 0&&o.length>0&&o.length<=e.length){if(o.length===e.length&&o===e)return"";var v=o.length-1,w=-1;for(h=e.length-1;h>=0;--h){var A=e.charCodeAt(h);if(A===47){if(!u){l=h+1;break}}else w===-1&&(u=!1,w=h+1),v>=0&&(A===o.charCodeAt(v)?--v===-1&&(t=h):(v=-1,t=w))}return l===t?t=w:t===-1&&(t=e.length),e.slice(l,t)}else{for(h=e.length-1;h>=0;--h)if(e.charCodeAt(h)===47){if(!u){l=h+1;break}}else t===-1&&(u=!1,t=h+1);return t===-1?"":e.slice(l,t)}},extname:function(e){assertPath(e);for(var o=-1,l=0,t=-1,u=!0,h=0,v=e.length-1;v>=0;--v){var w=e.charCodeAt(v);if(w===47){if(!u){l=v+1;break}continue}t===-1&&(u=!1,t=v+1),w===46?o===-1?o=v:h!==1&&(h=1):o!==-1&&(h=-1)}return o===-1||t===-1||h===0||h===1&&o===t-1&&o===l+1?"":e.slice(o,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return _format("/",e)},parse:function(e){assertPath(e);var o={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return o;var l=e.charCodeAt(0),t=l===47,u;t?(o.root="/",u=1):u=0;for(var h=-1,v=0,w=-1,A=!0,E=e.length-1,C=0;E>=u;--E){if(l=e.charCodeAt(E),l===47){if(!A){v=E+1;break}continue}w===-1&&(A=!1,w=E+1),l===46?h===-1?h=E:C!==1&&(C=1):h!==-1&&(C=-1)}return h===-1||w===-1||C===0||C===1&&h===w-1&&h===v+1?w!==-1&&(v===0&&t?o.base=o.name=e.slice(1,w):o.base=o.name=e.slice(v,w)):(v===0&&t?(o.name=e.slice(1,h),o.base=e.slice(1,w)):(o.name=e.slice(v,h),o.base=e.slice(v,w)),o.ext=e.slice(h,w)),v>0?o.dir=e.slice(0,v-1):t&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix;/*!
 * mime-types
 * Copyright(c) 2014 Jonathan Ong
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */(function(n){var e=mimeDb,o=pathBrowserify.extname,l=/^\s*([^;\s]*)(?:;|\s|$)/,t=/^text\//i;n.charset=u,n.charsets={lookup:u},n.contentType=h,n.extension=v,n.extensions=Object.create(null),n.lookup=w,n.types=Object.create(null),A(n.extensions,n.types);function u(E){if(!E||typeof E!="string")return!1;var C=l.exec(E),M=C&&e[C[1].toLowerCase()];return M&&M.charset?M.charset:C&&t.test(C[1])?"UTF-8":!1}function h(E){if(!E||typeof E!="string")return!1;var C=E.indexOf("/")===-1?n.lookup(E):E;if(!C)return!1;if(C.indexOf("charset")===-1){var M=n.charset(C);M&&(C+="; charset="+M.toLowerCase())}return C}function v(E){if(!E||typeof E!="string")return!1;var C=l.exec(E),M=C&&n.extensions[C[1].toLowerCase()];return!M||!M.length?!1:M[0]}function w(E){if(!E||typeof E!="string")return!1;var C=o("x."+E).toLowerCase().substr(1);return C&&n.types[C]||!1}function A(E,C){var M=["nginx","apache",void 0,"iana"];Object.keys(e).forEach(function(I){var j=e[I],B=j.extensions;if(!(!B||!B.length)){E[I]=B;for(var F=0;F<B.length;F++){var N=B[F];if(C[N]){var ee=M.indexOf(e[C[N]].source),Z=M.indexOf(j.source);if(C[N]!=="application/octet-stream"&&(ee>Z||ee===Z&&C[N].substr(0,12)==="application/"))continue}C[N]=I}}})}})(mimeTypes);const mime=getDefaultExportFromCjs$1(mimeTypes),alternative_types=[{regex:/^(https?:\/\/)?((?:www|m)\.)?(?:youtube(?:-nocookie)?\.com|youtu.be)/,type:"video/youtube"},{regex:/^(https?:\/\/)?(www\.)?vimeo\.com/,type:"video/vimeo"},{regex:/^(https?:\/\/)?(www\.)?dailymotion\.com/,type:"video/dailymotion"}],VideojsPlayerWidget=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){const o=["html5","Youtube","Vimeo"];this.dailymotionPlayerId&&(o.push("Dailymotion"),Dailymotion.loadLibrary(this.dailymotionPlayerId));var l={techOrder:o},t=!1,u=!0;typeof this.video>"u"&&(this.video=this.media.video);let h=mime.lookup(this.video);if(!h){for(const E of alternative_types)if(E.regex.test(this.video)){h=E.type;break}}if(l.src={type:h||!1,src:this.video},l.controls=!1,l.width=this.width,this.height&&(l.height=this.height),this.autostart&&(l.autostart=!0),this.url_transform&&(l.src.src=this.url_transform(l.src.src)),!this.media)return;var v=this.media;const w=`video_${this.generateUid("_")}`;this.$.append(`<video class="video-js" id="${w}"><source type="${l.src.type||"video/mp4"}" src="${l.src.src}"></source></video>`);const A=videojs(w,l);v.on("setcurrenttime",function(E){t=u,A.currentTime(E/1e3)}),v.on("setvolume",function(E){A.volume(E),v.volume=E}),v.on("setmuted",function(E){A.muted(E),v.muted=E}),v.on("setplay",function(){A.play(),v.paused=!1}),v.on("setpause",function(){A.pause(),v.paused=!0}),A.on("timeupdate",function(){v.trigger("timeupdate",new n.Model.Time(A.currentTime()*1e3))}),A.ready(function(){v.trigger("timeupdate",new n.Model.Time(A.currentTime()*1e3)),u=A.paused(),v.paused=A.paused(),v.trigger("loadedmetadata")}),A.on("pause",function(){u=!0,v.trigger("pause")}),A.on("play",function(){u=!1,v.trigger("play")}),videojs.use("*",function(E){return{play:function(C,M){return u=!1,v.trigger("play"),M},setCurrentTime:function(C){return t?(A.pause(),t=!1):u&&!A.paused()&&(u=!1,v.trigger("play")),v.trigger("timeupdate",new n.Model.Time(C)),C},pause:function(C,M){return u=!0,v.trigger("pause"),M},setMuted:function(C){return v.muted=C,v.trigger("muted"),v.trigger("volumechange"),C},setVolume:function(C){return v.volume=C,v.trigger("volumechange"),C}}}),this.videojsPlayer=A}},Or(e,"defaults",{}),e};function defaults(n){const e={};return e.language="en",e.widgetsDir="widgets",e.widgetsRequirements={PopcornPlayer:{noCss:!0,requires:["popcorn"]},HtmlPlayer:{noCss:!0},JwpPlayer:{noCss:!0,requires:["jwplayer"]},DailymotionPlayer:{noCss:!0,requires:["swfObject"]},AdaptivePlayer:{noCss:!0},AutoPlayer:{noCss:!0},AnnotationsList:{requires:["jwplayer"]},Sparkline:{noCss:!0,requires:["raphael"]},Arrow:{noCss:!0,requires:["raphael"]},Mediafragment:{noCss:!0},Trace:{noCss:!0,requires:["tracemanager"]},Slideshare:{requires:["swfObject"]},Social:{requires:["zeroClipboardJs"]},Renkan:{requires:["backbone","backboneRelational","paper","jqueryMousewheel","renkanPublish"]},KnowledgeConcierge:{requires:["processing"]},MultiSegments:{noCss:!0},SlideVideoPlayer:{requires:["jQuery","jQueryUI","splitter"]},Shortcuts:{requires:["mousetrap","mousetrapGlobal"]},VideojsPlayer:{requires:["videojs","videojs-youtube","videojs-vimeo"]}},e.guiDefaults={width:640,container:"LdtPlayer",spacer_div_height:0,widgets:[]},e}function metadataplayer(n){var e=n.Metadataplayer=function(o){n.log("IriSP.Metadataplayer constructor");for(var l in n.guiDefaults)n.guiDefaults.hasOwnProperty(l)&&!o.hasOwnProperty(l)&&(o[l]=n.guiDefaults[l]);var t=document.getElementById(o.container);t.innerHTML='<h3 class="Ldt-Loader">Loading... Chargement...</h3>',this.sourceManager=new n.Model.Directory,this.config=o,this.__events={},this.onLibsLoaded()};e.prototype.toString=function(){return"Metadataplayer in #"+this.config.container},e.prototype.on=function(o,l){typeof this.__events[o]>"u"&&(this.__events[o]=[]),this.__events[o].push(l)},e.prototype.trigger=function(o,l){var t=this;_$1(this.__events[o]).each(function(u){u.call(t,l)})},e.prototype.onLibsLoaded=function(){n.log("IriSP.Metadataplayer.prototype.onLibsLoaded"),this.$=jQuery("#"+this.config.container),this.$.css({width:this.config.width,clear:"both"}),typeof this.config.height<"u"&&this.$.css("height",this.config.height),this.widgets=[];var o=this;_$1(this.config.widgets).each(function(l,t){o.widgets.push(null),o.loadWidget(l,function(u){o.widgets[t]=u,u.isLoaded()&&o.trigger("widget-loaded")})}),this.$.find(".Ldt-Loader").detach(),this.widgetsLoaded=!1,this.on("widget-loaded",function(){if(!o.widgetsLoaded){var l=!_$1(o.widgets).some(function(t){return!(t&&t.isLoaded())});l&&(o.widgetsLoaded=!0,o.trigger("widgets-loaded"))}})},e.prototype.loadLocalAnnotations=function(o){return this.localSource===void 0&&(this.localSource=this.sourceManager.newLocalSource({serializer:IriSP.serializers.ldt_localstorage})),o&&(this.localSource.identifier=o),this.localSource.deSerialize(window.localStorage[this.localSource.identifier]||"[]"),this.localSource},e.prototype.saveLocalAnnotations=function(){window.localStorage[this.localSource.identifier]=this.localSource.serialize()},e.prototype.addLocalAnnotation=function(o){this.loadLocalAnnotations(),this.localSource.getAnnotations().push(o),this.saveLocalAnnotations()},e.prototype.deleteLocalAnnotation=function(o){this.localSource.getAnnotations().removeId(o,!0),this.saveLocalAnnotations()},e.prototype.getLocalAnnotation=function(o){return this.loadLocalAnnotations(),_$1.first(_$1.filter(this.localSource.getAnnotations(),function(l){return l.id==o}))},e.prototype.loadMetadata=function(o){return o.elementType==="source"?o:(typeof o.serializer>"u"&&typeof o.format<"u"&&(o.serializer=n.serializers[o.format]),typeof o.url<"u"&&typeof o.serializer<"u"?this.sourceManager.remoteSource(o):this.sourceManager.newLocalSource(o))},e.prototype.loadWidget=function(o,l){if(typeof o.container>"u"){var t=this.layoutDivs(o.type);o.container=t[0]}var u=this;typeof n.Widgets[o.type]<"u"?_$1.defer(function(){l(new n.Widgets[o.type](u,o))}):n.log("Widget type "+o.type+" Unkown !")},e.prototype.layoutDivs=function(o,l){typeof o>"u"&&(o="");var t=_$1.uniqueId(this.config.container+"_widget_"+o+"_"),u=_$1.uniqueId("LdtPlayer_spacer_"),h=jQuery("<div>").attr("id",t).css({width:this.config.width+"px",position:"relative",clear:"both"}),v=jQuery("<div>").attr("id",u).css({width:this.config.width+"px",height:this.config.spacer_div_height+"px",position:"relative",clear:"both"});return typeof l<"u"&&h.css("height",l),this.$.append(h),this.$.append(v),[t,u]}}/*!
 * mustache.js - Logic-less {{mustache}} templates with JavaScript
 * http://github.com/janl/mustache.js
 */var objectToString$1=Object.prototype.toString,isArray$4=Array.isArray||function(e){return objectToString$1.call(e)==="[object Array]"};function isFunction$1(n){return typeof n=="function"}function typeStr(n){return isArray$4(n)?"array":typeof n}function escapeRegExp(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hasProperty(n,e){return n!=null&&typeof n=="object"&&e in n}function primitiveHasOwnProperty(n,e){return n!=null&&typeof n!="object"&&n.hasOwnProperty&&n.hasOwnProperty(e)}var regExpTest=RegExp.prototype.test;function testRegExp(n,e){return regExpTest.call(n,e)}var nonSpaceRe=/\S/;function isWhitespace(n){return!testRegExp(nonSpaceRe,n)}var entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function escapeHtml(n){return String(n).replace(/[&<>"'`=\/]/g,function(o){return entityMap[o]})}var whiteRe=/\s*/,spaceRe=/\s+/,equalsRe=/\s*=/,curlyRe=/\s*\}/,tagRe=/#|\^|\/|>|\{|&|=|!/;function parseTemplate(n,e){if(!n)return[];var o=!1,l=[],t=[],u=[],h=!1,v=!1,w="",A=0;function E(){if(h&&!v)for(;u.length;)delete t[u.pop()];else u=[];h=!1,v=!1}var C,M,P;function I(le){if(typeof le=="string"&&(le=le.split(spaceRe,2)),!isArray$4(le)||le.length!==2)throw new Error("Invalid tags: "+le);C=new RegExp(escapeRegExp(le[0])+"\\s*"),M=new RegExp("\\s*"+escapeRegExp(le[1])),P=new RegExp("\\s*"+escapeRegExp("}"+le[1]))}I(e||mustache.tags);for(var j=new Scanner(n),B,F,N,ee,Z,re;!j.eos();){if(B=j.pos,N=j.scanUntil(C),N)for(var fe=0,V=N.length;fe<V;++fe)ee=N.charAt(fe),isWhitespace(ee)?(u.push(t.length),w+=ee):(v=!0,o=!0,w+=" "),t.push(["text",ee,B,B+1]),B+=1,ee===`
`&&(E(),w="",A=0,o=!1);if(!j.scan(C))break;if(h=!0,F=j.scan(tagRe)||"name",j.scan(whiteRe),F==="="?(N=j.scanUntil(equalsRe),j.scan(equalsRe),j.scanUntil(M)):F==="{"?(N=j.scanUntil(P),j.scan(curlyRe),j.scanUntil(M),F="&"):N=j.scanUntil(M),!j.scan(M))throw new Error("Unclosed tag at "+j.pos);if(F==">"?Z=[F,N,B,j.pos,w,A,o]:Z=[F,N,B,j.pos],A++,t.push(Z),F==="#"||F==="^")l.push(Z);else if(F==="/"){if(re=l.pop(),!re)throw new Error('Unopened section "'+N+'" at '+B);if(re[1]!==N)throw new Error('Unclosed section "'+re[1]+'" at '+B)}else F==="name"||F==="{"||F==="&"?v=!0:F==="="&&I(N)}if(E(),re=l.pop(),re)throw new Error('Unclosed section "'+re[1]+'" at '+j.pos);return nestTokens(squashTokens(t))}function squashTokens(n){for(var e=[],o,l,t=0,u=n.length;t<u;++t)o=n[t],o&&(o[0]==="text"&&l&&l[0]==="text"?(l[1]+=o[1],l[3]=o[3]):(e.push(o),l=o));return e}function nestTokens(n){for(var e=[],o=e,l=[],t,u,h=0,v=n.length;h<v;++h)switch(t=n[h],t[0]){case"#":case"^":o.push(t),l.push(t),o=t[4]=[];break;case"/":u=l.pop(),u[5]=t[2],o=l.length>0?l[l.length-1][4]:e;break;default:o.push(t)}return e}function Scanner(n){this.string=n,this.tail=n,this.pos=0}Scanner.prototype.eos=function(){return this.tail===""},Scanner.prototype.scan=function(e){var o=this.tail.match(e);if(!o||o.index!==0)return"";var l=o[0];return this.tail=this.tail.substring(l.length),this.pos+=l.length,l},Scanner.prototype.scanUntil=function(e){var o=this.tail.search(e),l;switch(o){case-1:l=this.tail,this.tail="";break;case 0:l="";break;default:l=this.tail.substring(0,o),this.tail=this.tail.substring(o)}return this.pos+=l.length,l};function Context(n,e){this.view=n,this.cache={".":this.view},this.parent=e}Context.prototype.push=function(e){return new Context(e,this)},Context.prototype.lookup=function(e){var o=this.cache,l;if(o.hasOwnProperty(e))l=o[e];else{for(var t=this,u,h,v,w=!1;t;){if(e.indexOf(".")>0)for(u=t.view,h=e.split("."),v=0;u!=null&&v<h.length;)v===h.length-1&&(w=hasProperty(u,h[v])||primitiveHasOwnProperty(u,h[v])),u=u[h[v++]];else u=t.view[e],w=hasProperty(t.view,e);if(w){l=u;break}t=t.parent}o[e]=l}return isFunction$1(l)&&(l=l.call(this.view)),l};function Writer(){this.templateCache={_cache:{},set:function(e,o){this._cache[e]=o},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}Writer.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},Writer.prototype.parse=function(e,o){var l=this.templateCache,t=e+":"+(o||mustache.tags).join(":"),u=typeof l<"u",h=u?l.get(t):void 0;return h==null&&(h=parseTemplate(e,o),u&&l.set(t,h)),h},Writer.prototype.render=function(e,o,l,t){var u=this.getConfigTags(t),h=this.parse(e,u),v=o instanceof Context?o:new Context(o,void 0);return this.renderTokens(h,v,l,e,t)},Writer.prototype.renderTokens=function(e,o,l,t,u){for(var h="",v,w,A,E=0,C=e.length;E<C;++E)A=void 0,v=e[E],w=v[0],w==="#"?A=this.renderSection(v,o,l,t,u):w==="^"?A=this.renderInverted(v,o,l,t,u):w===">"?A=this.renderPartial(v,o,l,u):w==="&"?A=this.unescapedValue(v,o):w==="name"?A=this.escapedValue(v,o,u):w==="text"&&(A=this.rawValue(v)),A!==void 0&&(h+=A);return h},Writer.prototype.renderSection=function(e,o,l,t,u){var h=this,v="",w=o.lookup(e[1]);function A(M){return h.render(M,o,l,u)}if(w){if(isArray$4(w))for(var E=0,C=w.length;E<C;++E)v+=this.renderTokens(e[4],o.push(w[E]),l,t,u);else if(typeof w=="object"||typeof w=="string"||typeof w=="number")v+=this.renderTokens(e[4],o.push(w),l,t,u);else if(isFunction$1(w)){if(typeof t!="string")throw new Error("Cannot use higher-order sections without the original template");w=w.call(o.view,t.slice(e[3],e[5]),A),w!=null&&(v+=w)}else v+=this.renderTokens(e[4],o,l,t,u);return v}},Writer.prototype.renderInverted=function(e,o,l,t,u){var h=o.lookup(e[1]);if(!h||isArray$4(h)&&h.length===0)return this.renderTokens(e[4],o,l,t,u)},Writer.prototype.indentPartial=function(e,o,l){for(var t=o.replace(/[^ \t]/g,""),u=e.split(`
`),h=0;h<u.length;h++)u[h].length&&(h>0||!l)&&(u[h]=t+u[h]);return u.join(`
`)},Writer.prototype.renderPartial=function(e,o,l,t){if(l){var u=this.getConfigTags(t),h=isFunction$1(l)?l(e[1]):l[e[1]];if(h!=null){var v=e[6],w=e[5],A=e[4],E=h;w==0&&A&&(E=this.indentPartial(h,A,v));var C=this.parse(E,u);return this.renderTokens(C,o,l,E,t)}}},Writer.prototype.unescapedValue=function(e,o){var l=o.lookup(e[1]);if(l!=null)return l},Writer.prototype.escapedValue=function(e,o,l){var t=this.getConfigEscape(l)||mustache.escape,u=o.lookup(e[1]);if(u!=null)return typeof u=="number"&&t===mustache.escape?String(u):t(u)},Writer.prototype.rawValue=function(e){return e[1]},Writer.prototype.getConfigTags=function(e){return isArray$4(e)?e:e&&typeof e=="object"?e.tags:void 0},Writer.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!isArray$4(e))return e.escape};var mustache={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(n){defaultWriter.templateCache=n},get templateCache(){return defaultWriter.templateCache}},defaultWriter=new Writer;mustache.clearCache=function(){return defaultWriter.clearCache()},mustache.parse=function(e,o){return defaultWriter.parse(e,o)},mustache.render=function(e,o,l,t){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+typeStr(e)+'" was given as the first argument for mustache#render(template, view, partials)');return defaultWriter.render(e,o,l,t)},mustache.escape=escapeHtml,mustache.Scanner=Scanner,mustache.Context=Context,mustache.Writer=Writer;function widgetsBase(n){var o;const e={};return e.Widget=(o=class{constructor(l,t){if(typeof l>"u")return;this.__subwidgets=[];var u=t.type||"(unknown)",h=_$1.defaults({},t,l&&l.config?l.config.default_options:{},this.constructor.defaults),v=this;_$1(h).forEach(function(A,E){v[E]=A}),this.$=jQuery("#"+this.container),typeof this.width>"u"?this.width=this.$.width():this.$.css("width",this.width),typeof this.height<"u"&&this.$.css("height",this.height),this.player=l||new n.FakeClass(["on","trigger","off","loadWidget","loadMetadata"]),this.$.addClass("Ldt-TraceMe Ldt-Widget").attr("widget-type",u),this.l10n=typeof this.constructor.messages[n.language]<"u"?this.constructor.messages[n.language]:n.language.length>2&&typeof this.constructor.messages[n.language.substr(0,2)]<"u"?this.constructor.messages[n.language.substr(0,2)]:this.constructor.messages.en;function w(){if(v.localannotations&&(v.localsource=l.loadLocalAnnotations(v.localannotations),v.source.merge(v.localsource)),v.media_id)v.media=this.getElement(v.media_id);else{var A={is_mashup:v.is_mashup||!1};v.media=v.source.getCurrentMedia(A)}v.pre_draw_callback?jQuery.when(v.pre_draw_callback()).done(v.draw()):v.draw(),v.player.trigger("widget-loaded")}this.metadata?(this.source=l.loadMetadata(this.metadata),this.source.onLoad(w)):this.source&&w()}toString(){return"Widget "+this.type}templateToHtml(l){return mustache.render(l,this)}renderTemplate(){this.$.append(this.templateToHtml(this.constructor.template))}functionWrapper(l){var t=this,u=this[l];if(typeof u<"u")return function(){return u.apply(t,Array.prototype.slice.call(arguments,0))};console.log("Error, Unknown function IriSP.Widgets."+this.type+"."+l)}getFunctionOrName(l){switch(typeof l){case"function":return l;case"string":return this.functionWrapper(l);default:return}}onMdpEvent(l,t){this.player.on(l,this.getFunctionOrName(t))}onMediaEvent(l,t){this.media.on(l,this.getFunctionOrName(t))}getWidgetAnnotations(){var l=null;return typeof this.annotation_type>"u"?l=this.media.getAnnotations():this.annotation_type.elementType==="annotationType"?l=this.annotation_type.getAnnotations():l=this.media.getAnnotationsByTypeTitle(this.annotation_type),typeof this.annotation_filter<"u"?this.annotation_filter(l):l}getWidgetAnnotationsAtTime(){var l=this.media.getCurrentTime();return this.getWidgetAnnotations().filter(function(t){return t.begin<=l&&t.end>l})}isLoaded(){var l=!_$1(this.__subwidgets).some(function(t){return!(t&&t.isLoaded())});return l}insertSubwidget(l,t,u){var h=l.attr("id"),v=this,w=this.__subwidgets.length;this.__subwidgets.push(null),typeof h>"u"&&(h=_$1.uniqueId(this.container+"_sub_widget_"+t.type),l.attr("id",h)),t.container=h,v.player.loadWidget(t,function(A){u&&(v[u]=A),v.__subwidgets[w]=A})}navigate(l){for(var t=this,u=t.media.getCurrentTime(),h=t.getWidgetAnnotations().sortBy(function(w){return w.begin}),v=0;v<h.length;v++)if(h[v].begin<=u&&u<h[v].end){v=Math.min(h.length-1,Math.max(0,v+l)),t.media.setCurrentTime(h[v].begin);break}}exportAnnotations(l){var t=this;l===void 0&&(l=this.getWidgetAnnotations());var u=jQuery,h=mustache.render(`[video:{{url}}]
`,{url:t.media.url})+l.map(function(v){return mustache.render("[{{ a.begin }}]{{ a.title }} {{ a.description }}[{{ a.end }}]",{a:v})}).join(`
`);u("<pre>").addClass("exportContainer").text(h).dialog({title:"Annotation export",open:function(v,w){var A;document.selection?(A=document.body.createTextRange(),A.moveToElementText(this[0]),A.select()):window.getSelection&&(A=document.createRange(),A.selectNode(this[0]),window.getSelection().addRange(A))},autoOpen:!0,width:"80%",minHeight:"400",height:400,buttons:[{text:"Close",click:function(){u(this).dialog("close")}},{text:"Download",click:function(){a=document.createElement("a"),a.setAttribute("href","data:text/plain;base64,"+btoa(h)),a.setAttribute("download","Annotations - "+t.media.title.replace(/[^ \w]/g,"")+".txt"),a.click()}}]})}draw(){}generateUid(l="-"){return`xxxxxxxx${l}xxxx${l}4xxx${l}yxxx${l}xxxxxxxxxxxx`.replace(/[xy]/g,function(t){var u=Math.random()*16|0,h=t==="x"?u:u&3|8;return h.toString(16)})}},Or(o,"defaults",{}),Or(o,"template",""),Or(o,"messages",{en:{}}),o),e}const AdaptivePlayer=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){typeof this.video>"u"&&(this.video=this.media.video);var o=["autostart","video","height","width","url_transform"],l={},t=document.createElement("video").canPlayType(this.mime_type);l.type=t!=="no"?this.normal_player:this.fallback_player;for(var u=0;u<o.length;u++)typeof this[o[u]]<"u"&&(l[o[u]]=this[o[u]]);this.insertSubwidget(this.$,l)}},Or(e,"defaults",{mime_type:'video/mp4; codecs="avc1.42E01E"',normal_player:"HtmlPlayer",fallback_player:"VideojsPlayer"}),e},helloWorldStyles={},HelloWorld=function(n){var e;return e=class extends n.Widgets.Widget{constructor(l,t){super(l,t);Or(this,"draw",function(){this.renderTemplate(),console.log("HelloWorldWidget was drawn")});console.log("Calling IriSP.Widget's constructor from IriSP.HelloWorldWidget")}},Or(e,"defaults",{text:"world"}),Or(e,"template",'<div class="Ldt-HelloWorld"><p>{{l10n.Hello}} {{text}}</p><p>Looks like we have <span class="Ldt-HelloWorld-annotations">{{source.contents.annotation.length}} annotations</span> in this feed</p></div>'),Or(e,"messages",{fr:{Hello:"Bonjour,"},en:{Hello:"Hello,"}}),e},annotationStyles={},Annotation=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l),this.lastAnnotation=!1,this.minimized=this.start_minimized||!1,this.bounds=[0,0]}draw(){var o=this,l;function t(v){var w=o.getWidgetAnnotationsAtTime();w.length||(o.$.find(".Ldt-Annotation-Inner").addClass("Ldt-Annotation-Empty"),o.arrow&&o.arrow.moveToTime(v),o.bounds=[v,v],o.sendBounds())}function u(){if(l){var v=l.title,w=l.description.replace(/(^\s+|\s+$)/g,""),A=l.found&&o.source.getAnnotations().regexp||!1;o.$.find(".Ldt-Annotation-Title").html(IriSP.textFieldHtml(v,A)||"("+o.l10n.untitled+")"),w?(o.$.find(".Ldt-Annotation-Description-Block").removeClass("Ldt-Annotation-EmptyBlock"),o.$.find(".Ldt-Annotation-Description").html(IriSP.textFieldHtml(w,A))):o.$.find(".Ldt-Annotation-Description-Block").addClass("Ldt-Annotation-EmptyBlock")}}function h(v){l=v;var w=typeof v.url<"u"?v.url:document.location.href.replace(/#.*$/,"")+"#id="+v.id,A=o.l10n.watching+v.title+(o.site_name?o.l10n.on_site+o.site_name:""),E=v.getTags(),C=o.$.find(".Ldt-Annotation-Tags");C.empty(),E.length?(o.$.find(".Ldt-Annotation-Tags-Block").removeClass("Ldt-Annotation-EmptyBlock"),E.forEach(function(M){var P=M.title.replace(/(^\s+|\s+$)/g,"");if(P){var I=jQuery('<li class="Ldt-Annotation-TagLabel"></li>').append(jQuery("<span>").text(P));I.on("click",function(){o.search_on_tag_click&&o.source.getAnnotations().search(P),M.trigger("click")}),C.append(I)}})):o.$.find(".Ldt-Annotation-Tags-Block").addClass("Ldt-Annotation-EmptyBlock"),u(),o.show_creator&&o.$.find(".Ldt-Annotation-Creator").text(v.creator),o.show_annotation_type&&(o.$.find(".Ldt-Annotation-Type").text(v.getAnnotationType().title),o.$.find(".Ldt-Annotation-Type").attr("title",v.getAnnotationType().description)),o.$.find(".Ldt-Annotation-Begin").text(v.begin.toString()),o.$.find(".Ldt-Annotation-End").text(v.end.toString()),v.elementType==="mashedAnnotation"?(o.$.find(".Ldt-Annotation-Inner").addClass("Ldt-Annotation-isMashup"),o.$.find(".Ldt-Annotation-MashupMedia").text(v.getMedia().title),o.$.find(".Ldt-Annotation-MashupBegin").text(v.annotation.begin.toString()),o.$.find(".Ldt-Annotation-MashupEnd").text(v.annotation.end.toString())):o.$.find(".Ldt-Annotation-Inner").removeClass("Ldt-Annotation-isMashup"),typeof o.socialWidget<"u"?o.socialWidget.updateUrls(w,A):setTimeout(function(){typeof o.socialWidget<"u"&&o.socialWidget.updateUrls(w,A)},800),o.$.find(".Ldt-Annotation-Inner").removeClass("Ldt-Annotation-Empty"),o.bounds=[v.begin,v.end],o.arrow&&o.arrow.moveToTime((1-o.arrow_position)*v.begin+o.arrow_position*v.end),o.sendBounds()}this.renderTemplate(),this.$.find(".Ldt-Annotation-Title").click(function(){return l&&o.media.setCurrentTime(l.begin),!1}),this.show_social&&this.insertSubwidget(this.$.find(".Ldt-Annotation-Social"),{type:"Social"},"socialWidget"),this.show_arrow&&this.insertSubwidget(this.$.find(".Ldt-Annotation-Arrow"),{type:"Arrow",width:this.width},"arrow"),this.onMediaEvent("timeupdate",t),this.onMdpEvent("Annotation.hide","hide"),this.onMdpEvent("Annotation.show","show"),this.onMdpEvent("Annotation.minimize","minimize"),this.onMdpEvent("Annotation.maximize","maximize"),this.onMdpEvent("Annotation.getBounds","sendBounds"),this.$.find(".Ldt-Annotation-MaxMinButton").click(this.functionWrapper("toggleSize")),this.$.on("resize",function(){o.width=o.$.parent().width(),o.$.css({width:o.width})}),this.getWidgetAnnotations().forEach(function(v){v.on("enter",function(){h(v)})}),this.source.getAnnotations().on("found",u),this.source.getAnnotations().on("not-found",u),this.source.getAnnotations().on("search-cleared",u),IriSP.attachDndData(this.$.find("h3"),function(){return{title:l.title,description:l.description,image:l.thumbnail,uri:typeof l.url<"u"?l.url:document.location.href.replace(/#.*$/,"")+"#id="+l.id,text:"["+l.begin.toString()+"] "+l.title}})}sendBounds(){this.player.trigger("Annotation.boundsChanged",this.bounds)}drawAnnotation(o){this.lastAnnotation=o.id}hide(){this.$.slideUp()}show(){this.$.slideDown()}toggleSize(){this.minimized?this.maximize():this.minimize()}minimize(){this.minimized=!0,this.$.find(".Ldt-Annotation-Inner").addClass("Ldt-Annotation-Minimized")}maximize(){this.minimized=!1,this.$.find(".Ldt-Annotation-Inner").removeClass("Ldt-Annotation-Minimized")}},Or(e,"messages",{fr:{watching:"Je regarde ",on_site:" sur ",tags_:"Mots-clés :",description_:"Description :",creator_:"Créé par :",excerpt_from:"Extrait de :",untitled:"Segment sans titre"},en:{watching:"I'm watching ",on_site:" on ",tags_:"Keywords:",description_:"Description:",creator_:"Created by :",excerpt_from:"Excerpt from:",untitled:"Untitled segment"}}),Or(e,"template",'{{#show_arrow}}<div class="Ldt-Annotation-Arrow"></div>{{/show_arrow}}<div class="Ldt-Annotation-Widget {{^show_arrow}}Ldt-Annotation-ShowTop{{/show_arrow}}"><div class="Ldt-Annotation-Inner Ldt-Annotation-Empty{{#start_minimized}} Ldt-Annotation-Minimized{{/start_minimized}}"><div class="Ldt-Annotation-HiddenWhenEmpty Ldt-Annotation-MaxMinButton"></div>{{#show_social}}<div class="Ldt-Annotation-Social Ldt-Annotation-HiddenWhenMinimized Ldt-Annotation-HiddenWhenEmpty"></div>{{/show_social}}<h3 class="Ldt-Annotation-HiddenWhenEmpty">{{#show_annotation_type}}<span class="Ldt-Annotation-Type"></span> » {{/show_annotation_type}}<a class="Ldt-Annotation-Title" href="#"></a> <span class="Ldt-Annotation-Time Ldt-Annotation-HiddenWhenMinimized">(<span class="Ldt-Annotation-Begin"></span> - <span class="Ldt-Annotation-End"></span>)</span></h3><h3 class="Ldt-Annotation-MashupOrigin Ldt-Annotation-HiddenWhenEmpty">{{l10n.excerpt_from}} <span class="Ldt-Annotation-MashupMedia"></span> <span class="Ldt-Annotation-Time Ldt-Annotation-HiddenWhenMinimized">(<span class="Ldt-Annotation-MashupBegin"></span> - <span class="Ldt-Annotation-MashupEnd"></span>)</span></h3><div class="Ldt-Annotation-Cleared Ldt-Annotation-HiddenWhenMinimized Ldt-Annotation-HiddenWhenEmpty Ldt-Annotation-Creator-Block"><div class="Ldt-Annotation-Label">{{l10n.creator_}}</div>{{#show_creator}}<p class="Ldt-Annotation-Labelled Ldt-Annotation-Creator"></p></div>{{/show_creator}}{{#show_description}}<div class="Ldt-Annotation-Cleared Ldt-Annotation-HiddenWhenMinimized Ldt-Annotation-HiddenWhenEmpty Ldt-Annotation-Description-Block"><div class="Ldt-Annotation-Label">{{l10n.description_}}</div><p class="Ldt-Annotation-Labelled Ldt-Annotation-Description"></p></div>{{/show_description}}<div class="Ldt-Annotation-Tags-Block Ldt-Annotation-HiddenWhenMinimized Ldt-Annotation-HiddenWhenEmpty Ldt-Annotation-Cleared"><div class="Ldt-Annotation-Label">{{l10n.tags_}}</div><ul class="Ldt-Annotation-Labelled Ldt-Annotation-Tags"></ul></div></div></div></div>'),Or(e,"defaults",{annotation_type:"chap",start_minimized:!1,show_arrow:!0,show_creator:!0,show_description:!0,arrow_position:.5,site_name:"Lignes de Temps",search_on_tag_click:!0,show_social:!0,show_annotation_type:!1}),e},annotationsControllerStyles={},AnnotationsController=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){this.renderTemplate();var o=this;this.element_$=this.$.find(".Ldt-AnnotationsController"),this.displayButton_$=this.$.find(".Ldt-AnnotationsController-ShowAnnotationsListButton"),this.writeButton_$=this.$.find(".Ldt-AnnotationsController-ShowCreateAnnotationButton"),this.writeButton_$.click(function(){o.writeButton_$.hasClass("selected")?(o.player.trigger("CreateAnnotation.hide"),o.toggle_widgets?o.player.trigger("AnnotationsList.show"):o.display_or_write&&o.player.trigger("AnnotationsList.hide")):(o.player.trigger("CreateAnnotation.show"),o.display_or_write&&o.player.trigger("AnnotationsList.hide"))}),this.displayButton_$.click(function(){o.displayButton_$.hasClass("selected")?(o.player.trigger("AnnotationsList.hide"),o.toggle_widgets?o.player.trigger("CreateAnnotation.show"):o.display_or_write&&o.player.trigger("CreateAnnotation.hide")):(o.player.trigger("AnnotationsList.show"),o.display_or_write&&o.player.trigger("CreateAnnotation.hide"))}),this.hide_without_segment&&(this.onMediaEvent("timeupdate",function(){o.refresh()}),this.onMediaEvent("settimerange",function(l){o.refresh(l)}),this.segments=this.source.getAnnotationsByTypeTitle(this.segments_annotation_type),this.currentSegment=!1),this.createAnnotationEnabled=!1,this.onMdpEvent("CreateAnnotation.hide",function(){o.hide_when_writing&&o.show(),o.createAnnotationEnabled=!1,o.writeButton_$.toggleClass("selected",!1)}),this.onMdpEvent("CreateAnnotation.show",function(){o.hide_when_writing&&o.hide(),o.createAnnotationEnabled=!0,o.writeButton_$.toggleClass("selected",!0)}),this.onMdpEvent("AnnotationsList.hide",function(){o.displayButton_$.toggleClass("selected",!1)}),this.onMdpEvent("AnnotationsList.show",function(){o.displayButton_$.toggleClass("selected",!0)}),this.starts_hidden?(this.visible=!0,this.hide()):(this.visible=!1,this.show()),this.starting_widget&&this.visible&&(this.starting_widget=="AnnotationsList"?this.player.trigger("AnnotationsList.show"):this.starting_widget=="CreateAnnotation"&&this.player.trigger("CreateAnnotation.show"))}refresh(o){if(o=typeof o<"u"?o:!1,o||this.media.getTimeRange()&&(o=this.media.getTimeRange()),this.hide_without_segment){if(!o&&!this.media.getTimeRange())_currentTime=this.media.getCurrentTime(),_currentSegments=this.segments.filter(function(u){return _currentTime>=u.begin&&_currentTime<=u.end}),_currentSegments.length>0?currentSegment=!0:currentSegment=!1;else{var l=o[0],t=o[1];_currentSegments=this.segments.filter(function(u){return l==u.begin&&t==u.end}),_currentSegments.length>0?currentSegment=!0:currentSegment=!1}!currentSegment&&_currentSegments.length==0?(this.visible||this.hide_when_writing)&&(this.writeButton_$.toggleClass("selected",!1),this.displayButton_$.toggleClass("selected",!1),this.player.trigger("CreateAnnotation.hide"),this.player.trigger("AnnotationsList.hide"),this.hide()):this.visible||(this.createAnnotationEnabled||this.show(),this.writeButton_$.toggleClass("selected",!1),this.displayButton_$.toggleClass("selected",!1),this.starting_widget=="AnnotationsList"&&this.player.trigger("AnnotationsList.show"),this.starting_widget=="CreateAnnotation"&&this.player.trigger("CreateAnnotation.show"))}}hide(){this.visible&&(this.visible=!1,this.element_$.hide())}show(){this.visible||(this.visible=!0,this.element_$.show())}},Or(e,"defaults",{display_or_write:!1,toggle_widgets:!1,starts_hidden:!1,hide_without_segment:!1,hide_when_writing:!0,starting_widget:!1,always_show_widget:!1,segments_annotation_type:"chap",custom_write_text:!1,custom_display_text:!1}),Or(e,"template","<div class='Ldt-AnnotationsController'><div class='Ldt-AnnotationsController-ButtonsContainer'>    <div class='Ldt-AnnotationsController-Button Ldt-AnnotationsController-ShowCreateAnnotationButton'>{{#custom_write_text}}{{/custom_write_text}}{{custom_write_text}}{{^custom_write_text}}{{l10n.write}}{{/custom_write_text}}</div>    <div class='Ldt-AnnotationsController-Button Ldt-AnnotationsController-ShowAnnotationsListButton'>{{#custom_display_text}}{{/custom_display_text}}{{custom_display_text}}{{^custom_display_text}}{{l10n.display}}{{/custom_display_text}}</div></div></div>"),Or(e,"messages",{en:{write:"Write",display:"Display"},fr:{write:"Ecrire",display:"Voir"}}),e},annotationsListStyles={},IsImageOk=function(n){return!(!n.complete||n.naturalWidth===0)},AnnotationsList=function(n){var o;const e={};return o=class extends n.Widgets.Widget{constructor(l,t){super(l,t),this.lastIds=[];var u=this;this.throttledRefresh=_$1.throttle(function(h){u.refresh(h)},800),this.searchString=!1,this.lastSearch=!1,this.localSource=void 0}importUsers(){if(!this.source.users_data&&this.api_users_endpoint){this.usernames=Array();var l=this,t=this.getWidgetAnnotations(),u="";return t.forEach(function(h){l.usernames.indexOf(h.creator)==-1&&l.usernames.push(h.creator)}),this.usernames.forEach(function(h){u+=h+","}),u=u.substring(0,u.length-1),_url=mustache.render(this.api_users_endpoint,{usernames_list_string:encodeURIComponent(u),usernames_list_length:this.usernames.length}),jQuery.ajax({async:!1,url:_url,type:"GET",success:function(h){l.source.users_data=h.objects},error:function(h,v,w){console.log(h),console.log(v),console.log(w)}})}}ajaxSource(){var l=this.media.getCurrentTime(),t=this.media.duration;this.lastAjaxQuery=l;var u=mustache.render(this.ajax_url,{media:this.source.currentMedia.id,begin:Math.max(0,l-this.ajax_granularity),end:Math.min(t.milliseconds,l+this.ajax_granularity)});this.currentSource=this.player.loadMetadata(_$1.defaults({url:u},this.metadata))}showScreen(l){this.$.find(".Ldt-AnnotationsList-Screen"+l).show().siblings().hide()}ajaxMashup(){var l=this.media.getCurrentTime(),t=this.source.currentMedia.getAnnotationAtTime(l);if(typeof t<"u"&&t.id!==this.lastMashupAnnotation){this.lastMashupAnnotation=t.id;var u=t.getMedia(),h=mustache.render(this.ajax_url,{media:u.id,begin:Math.max(0,t.annotation.begin.milliseconds-this.ajax_granularity),end:Math.min(u.duration.milliseconds,t.annotation.end.milliseconds+this.ajax_granularity)});this.currentSource=this.player.loadMetadata(_$1.defaults({url:h},this.metadata))}}importAnnotations(){var l=this,t=jQuery("<textarea>");jQuery("<div>").append(jQuery("<span>").addClass("importAnnotationsLabel").text(l.messages.import_annotations)).addClass("importContainer").dialog({title:"Annotation import",autoOpen:!0,width:"80%",minHeight:"400",height:400,buttons:[{text:"Close",click:function(){jQuery(this).dialog("close")}},{text:"Import",click:function(){for(var u=/(\[[\d:]+\])/,h=t[0].value.split(u).filter(function(P){return!P.match(/^\s*$/)}),v=null,w=null,A=null,E=null,C=0;C<h.length;C++){var M=h[C];M.match(u)?(E=="text"?(w=n.timestamp2ms(M.slice(1,-1)),TODO.createAnnotation(v,w,A),v=w,w=null,A=null):(A=null,v=n.timestamp2ms(M.slice(1,-1)),w=null),E="timestamp"):(A=M,E="text"),E=="text"&&v!==null&&TODO.createAnnotation(v,v,A)}}}]})}refresh(l){if(l=typeof l<"u"&&l,this.currentSource.status!==n.Model._SOURCE_STATUS_READY)return 0;var t=this,u=this.media.getCurrentTime(),h=this.annotation_type?this.currentSource.getAnnotationsByTypeTitle(this.annotation_type):this.currentSource.getAnnotations();if(this.mashupMode){var v=this.source.currentMedia.getAnnotationAtTime(u);if(typeof v<"u"){u=u-v.begin+v.annotation.begin;var w=v.getMedia().id;h=h.filter(function(B){return B.getMedia().id===w})}}h=h.filter(function(B){return B.found!==!1}),this.filter_by_segments&&!(this.show_filters&&this.segment_filter&&this.ignoresegmentcheckbox_$[0].checked)&&(_segmentsAnnotation=this.currentSource.getAnnotationsByTypeTitle(this.segments_annotation_type),this.media.getTimeRange()?_currentSegments=_segmentsAnnotation.filter(function(B){return t.media.getTimeRange()[0]==B.begin&&t.media.getTimeRange()[1]==B.end}):_currentSegments=_segmentsAnnotation.filter(function(B){return u>=B.begin&&u<=B.end}),_currentSegments.length==0?h=h.filter(function(B){return!1}):h=h.filter(function(B){return _annotation_time=(B.begin+B.end)/2,_currentSegments[0].begin<=_annotation_time&&_currentSegments[0].end>=_annotation_time}),this.annotations_count_header&&this.annotations_count!=h.length&&(this.annotations_count=h.length,this.refreshHeader())),this.show_only_annotation_from_user&&(h=h.filter(function(B){return B.creator==t.show_only_annotation_from_user})),this.limit_count&&(h=h.sortBy(function(B){return Math.abs((B.begin+B.end)/2-u)}).slice(0,this.limit_count)),this.newest_first?h=h.sortBy(function(B){return-B.created.valueOf()}):h=h.sortBy(function(B){return B.begin}),this.show_filters&&(this.user_filter&&(_username=this.userselect_$[0].options[this.userselect_$[0].selectedIndex].value,_username!="false"&&(h=h.filter(function(B){return B.creator==_username}))),this.keyword_filter&&(_keyword=this.keywordinput_$[0].value,_keyword!=""&&(h=h.filter(function(B){return B.description.toLowerCase().match(_keyword.toLowerCase())}))),this.date_filter&&this.datefilterinput_$[0].value!=""&&(_date=this.datefilterinput_$.datepicker("getDate"),h=h.filter(function(B){return B.created.getDate()==_date.getDate()&&B.created.getMonth()==_date.getMonth()&&B.created.getFullYear()==_date.getFullYear()})),this.latest_contributions_filter&&this.latestcontributionscheckbox_$[0].checked&&(h=h.sortBy(function(B){return-B.created.valueOf()}),this.usernames.forEach(function(B){latest_ann=h.filter(function(F){return F.creator==B})[0],h=h.filter(function(F){return F.id==(latest_ann?latest_ann.id:!1)||F.creator!=B})})));var A=h.idIndex;if(l||!_$1.isEqual(A,this.lastIds)||this.searchString!==this.lastSearch){if(this.lastSearch=this.searchString,this.lastIds=A,this.list_$.html(""),h.forEach(function(B){var F=typeof B.url<"u"&&B.url?B.url:typeof t.source.projectId<"u"&&typeof B.project<"u"&&B.project&&t.source.projectId!==B.project?mustache.render(t.foreign_url,{project:B.project,media:B.media.id,annotation:B.id,annotationType:B.annotationType.id}):document.location.href.replace(/#.*$/,"")+"#id="+B.id+"&t="+B.begin/1e3,N=B.project!=t.source.projectId,ee="",Z=B.description,re=`thumb_${B.id}`,fe=typeof B.thumbnail<"u"&&B.thumbnail?B.thumbnail:t.default_thumbnail;if(t.show_creator&&B.creator){var V=[],le={},he="";t.source.users_data&&(V=t.source.users_data.filter(function(b){return b.username==B.creator})),V.length==0?le.username=B.creator:le=V[0],he=t.make_name_string_function(le)}if(t.show_title&&B.title)var ee=B.title;var ye;_$1(t.polemics).each(function(b){var d=n.Model.regexpFromTextOrArray(b.keyword,!0);d.test(ee+" "+Z)&&(ye=b.background_color)});var L=!1;if(t.show_creation_date&&(L=B.created.toLocaleDateString()+", "+B.created.toLocaleTimeString().replace(/\u200E/g,"").replace(/^([^\d]*\d{1,2}:\d{1,2}):\d{1,2}([^\d]*)$/,"$1$2")),t.tags==!0)var p=B.getTagTexts();else var p=!1;var y={id:B.id,media_id:B.getMedia().id,htitle:n.textFieldHtml(ee),title:ee,creator:he,hdescription:n.textFieldHtml(Z),description:Z,begin:B.begin.toString(),end:B.end.toString(),created:L,show_timecode:t.show_timecode,show_end_time:t.show_end_time,show_title:t.show_title&&ee,thumbnailId:re,url:F,tags:p,specific_style:typeof ye<"u"?"background-color: "+ye:"",l10n:t.l10n,editable:t.editable,external:N,show_publish:t.show_publish,show_creator:t.show_creator,show_twitter:t.show_twitter,twitter_param:jQuery.param({url:F,text:n.textFieldHtml(ee)+(t.twitter_hashtag?" #"+t.twitter_hashtag:"")}),allow_annotations_deletion:t.allow_annotations_deletion},S=mustache.render(t.constructor.annotationTemplate,y),c=jQuery(S),m=function(){t.$.find(".Ldt-AnnotationsList-li").removeClass("selected"),c.addClass("selected")},x=function(){t.$.find(".Ldt-AnnotationsList-li").removeClass("selected")};c.on("mouseover",function(){B.trigger("select")}).on("mouseout",function(){B.trigger("unselect")}).on("click",function(){t.filter_by_segments&&t.media.getTimeRange()&&(_ann_time=(B.begin+B.end)/2,(_ann_time<=t.media.getTimeRange()[0]||_ann_time>=t.media.getTimeRange()[1])&&t.media.resetTimeRange()),B.trigger("click")}).appendTo(t.list_$);let T=e[fe];typeof T>"u"&&(T=new Image,e[fe]=T),T.src&&IsImageOk(T)?jQuery(`#${re}`,c).attr("src",T.src):(T.onload=function(){jQuery(`#${re}`,c).attr("src",T.src)},T.onerror=function(){T.src=t.default_thumbnail,jQuery(`#${re}`,c).attr("src",t.default_thumbnail)},T.src=fe),n.attachDndData(c.find("[draggable]"),{title:ee,description:Z,uri:F,image:B.thumbnail,text:"["+B.begin.toString()+"] "+ee}),c.on("remove",function(){B.off("select",m),B.off("unselect",x)}),B.on("select",m),B.on("unselect",x)}),this.$.find(".Ldt-AnnotationsList-Tag-Li").each(function(){var B=jQuery(this);B.text().replace(/(^\s+|\s+$)/g,"")||B.remove()}),this.editable){var E=t,C=function(B,F){var N="#FF9999",ee="#99FF99";F===void 0&&(F=B);var Z=jQuery(B.dataset.editable_type==="multiline"?"<textarea>":"<input>").addClass("editableInput").insertBefore(jQuery(F));Z[0].value=B.dataset.editable_value,jQuery(Z).show().focus(),jQuery(B).addClass("editing");function re(le){jQuery(B).removeClass("editing"),Z.remove();var he=jQuery(B).css("background-color");jQuery(B).stop().css("background-color",le).animate({backgroundColor:he},1e3)}function fe(le){re(N)}function V(){var le=Z[0].value;if(le==B.dataset.editable_value){re(ee);return}if(le==""){I(B.dataset.editable_id),E.player.trigger("Annotation.delete",B.dataset.editable_id);return}else{var he=le;if(B.dataset.editable_type=="timestamp"&&(he=n.timestamp2ms(le),Number.isNaN(he))){fe();return}B.dataset.editable_value=le,le=he,jQuery(B).text(he)}var ye=M(B.dataset.editable_id);ye===void 0?(console.log("Strange error: cannot find edited annotation"),re(N)):(B.dataset.editable_value=le,B.dataset.editable_field=="begin"?ye.setBegin(le):B.dataset.editable_field=="end"?ye.setEnd(le):ye[B.dataset.editable_field]=le,ye.modified=new Date,ye.contributor=E.player.config.username||"COCo User",E.player.addLocalAnnotation(ye),E.player.trigger("Annotation.update",ye),re(ee))}jQuery(Z).bind("keydown",function(le){le.which==13?(le.preventDefault(),V()):le.which==27&&(le.preventDefault(),fe())}).bind("blur",function(le){V()})},M=function(B){return E.player.getLocalAnnotation(B)},P=function(){E.player.saveLocalAnnotations(),E.source.merge(E.player.localSource)},I=function(B){E.source.getAnnotations().removeId(B,!0),E.player.deleteLocalAnnotation(B),E.refresh(!0)};this.$.find(".Ldt-AnnotationsList-Delete").click(function(B){var F=M(this.dataset.editable_id);confirm(mustache.render(E.l10n.confirm_delete_message,{annotation:F}))&&I(this.dataset.editable_id),E.refresh(!0)}),this.$.find(".Ldt-AnnotationsList-Edit").click(function(B){if(E.on_edit){var F=M(this.dataset.editable_id);E.on_edit(F)}else{var N=jQuery(this).parents(".Ldt-AnnotationsList-li").find(".Ldt-AnnotationsList-TitleContent.Ldt-live-editable");C(N[0])}}),this.$.find(".Ldt-AnnotationsList-PublishAnnotation").click(function(B){var F=M(this.dataset.editable_id);if(confirm(mustache.render(E.l10n.confirm_publish_message,{annotation:F}))){var N=mustache.render(E.api_endpoint_template,{id:E.source.projectId});if(N!==""){var ee=E.player.sourceManager.newLocalSource({serializer:n.serializers[E.api_serializer]});if(E.publish_type){var Z=E.source.getAnnotationTypes().filter(function(fe){return fe.title==E.publish_type});Z.length==1&&F.setAnnotationType(Z[0].id)}var re=new n.Model.List(E.player.sourceManager);re.push(F),ee.addList("annotation",re),jQuery.ajax({url:N,type:E.api_method,contentType:"application/json",data:ee.serialize(),success:function(fe){jQuery(this).addClass("published");var V=M(F.id);V.setTags(["published"]),P(),E.player.trigger("Annotation.publish",F)},error:function(fe,V,le){n.log("Error when sending annotation",le)}})}}}),this.$.find(".Ldt-AnnotationsList-TimeEdit").dblclick(function(B){var F=this,N=M(F.dataset.editable_id);N!==void 0&&(N.setBegin(E.media.getCurrentTime().milliseconds),P(),E.player.trigger("Annotation.update",N),E.refresh(!0))})}if(this.$.find(".Ldt-AnnotationsList-Tag-Li").click(function(){t.source.getAnnotations().search(jQuery(this).text().replace(/(^\s+|\s+$)/g,""))}),this.$.find(".Ldt-Annotation-Timecode").click(function(){t.media.setCurrentTime(Number(this.dataset.timecode))}),this.$.find(".Ldt-AnnotationsList-Play").click(function(){var B=jQuery(this),F=B.attr("data-annotation-id");t.jwplayers[F]&&jwplayer(t.jwplayers[F]).play(),t.media.pause()}),this.source.getAnnotations().searching){var j=t.source.getAnnotations().regexp||!1;this.$.find(".Ldt-AnnotationsList-Title a, .Ldt-AnnotationsList-Description").each(function(){var B=jQuery(this);B.html(n.textFieldHtml(B.text(),j))})}this.$.find(".Ldt-AnnotationsList-DeleteButton").click(t.functionWrapper("onDeleteClick"))}return this.ajax_url&&(this.mashupMode?this.ajaxMashup():Math.abs(u-this.lastAjaxQuery)>this.ajax_granularity&&this.ajaxSource()),h.length}onDeleteClick(l){_list=this.getWidgetAnnotations(),ann_id=l.target.dataset.annotation,delete_preview_$=this.$.find(".Ldt-AnnotationsList-ul-ToDelete"),delete_preview_$.html(""),_list=_list.filter(function(P){return P.id==ann_id});var t=_list[0],u="",h="",v=this;if(t.creator){var w=[],A={};v.source.users_data&&(w=v.source.users_data.filter(function(P){return P.username==t.creator})),w.length==0?A.username=t.creator:A=w[0],h=v.make_name_string_function(A)}if(t.title){var E=t.title;E.substr(0,u.length+1)==u+":"&&(u=""),u=u+(u==""?"":": ")+t.title}var C=!1;this.show_creation_date&&(C=t.created.toLocaleDateString()+", "+t.created.toLocaleTimeString());var M={id:t.id,media_id:t.getMedia().id,htitle:n.textFieldHtml(u),hdescription:n.textFieldHtml(t.description),begin:t.begin.toString(),end:t.end.toString(),created:C,show_timecode:this.show_timecode,show_creator:this.show_creator,creator:h,tags:!1,l10n:this.l10n,allow_annotations_deletion:!1};_html=mustache.render(this.constructor.annotationTemplate,M),delete_preview_$.html(_html),this.$.find(".Ldt-AnnotationsList-ConfirmDelete").click(function(){v.sendDelete(ann_id)}),this.showScreen("Delete")}refreshHeader(){var l=" ("+this.annotations_count+" "+this.annotations_count_header_string+")";this.$.find(".Ldt-AnnotationsList-header").html(""),this.$.find(".Ldt-AnnotationsList-header").html(this.custom_header&&typeof this.custom_header=="string"?this.custom_header+l:this.l10n.header+l)}hide(){var l=this;this.visible&&(this.visible=!1,this.widget_$.slideUp(function(){l.$.find(".Ldt-AnnotationsList-header").hide()}),this.showScreen("Main"))}show(){this.visible||(this.visible=!0,this.$.find(".Ldt-AnnotationsList-header").show(),this.widget_$.slideDown(),this.showScreen("Main"))}toggle(){this.always_visible||(this.visible?this.hide():this.show())}revertToMainScreen(){this.$.find(".Ldt-AnnotationsList-ScreenMain").is(":hidden")&&this.showScreen("Main")}sendDelete(l){var t=this,u=mustache.render(this.api_delete_endpoint,{annotation_id:l,project_id:this.project_id});jQuery.ajax({url:u,type:this.api_delete_method,contentType:"application/json",success:function(h){t.showScreen("Success"),window.setTimeout(t.functionWrapper("revertToMainScreen"),t.after_send_timeout||2e3),t.currentSource.getAnnotations().removeId(l),t.player.trigger("AnnotationsList.refresh")},error:function(h,v,w){n.log("Error when sending annotation",w),t.showScreen("Error"),window.setTimeout(t.functionWrapper("revertToMainScreen"),t.after_send_timeout||2e3)}}),this.showScreen("Sending")}draw(){this.jwplayers={},this.mashupMode=this.media.elementType==="mashup",this.renderTemplate();var l=this;this.list_$=this.$.find(".Ldt-AnnotationsList-ul"),this.widget_$=this.$.find(".Ldt-AnnotationsListWidget"),this.widget_max_height&&this.widget_$.css("max-height",this.widget_max_height),this.show_filters&&(this.user_filter&&(this.userselect_$=this.$.find("#Ldt-AnnotationsList-userFilter"),this.userselect_$.change(function(){l.player.trigger("AnnotationsList.refresh")}),this.userselect_$.html("<option selected value='false'>"+this.l10n.everyone+"</option>"),this.usernames.forEach(function(h){var v=l.source.users_data.filter(function(A){return A.username==h}),w={};v.length==0?w.username=h:w=v[0],l.userselect_$.append("<option value='"+h+"'>"+l.make_name_string_function(w)+"</option>")})),this.keyword_filter&&(this.keywordinput_$=this.$.find("#Ldt-AnnotationsList-keywordsFilter"),this.keywordinput_$.keyup(function(){l.player.trigger("AnnotationsList.refresh")})),this.segment_filter&&(this.ignoresegmentcheckbox_$=this.$.find("#Ldt-AnnotationsList-ignoreSegmentsFilter"),this.ignoresegmentcheckbox_$.click(function(){l.player.trigger("AnnotationsList.refresh")})),this.date_filter&&(this.datefilterinput_$=this.$.find("#Ldt-AnnotationsList-dateFilter"),this.datefilterinput_$.datepicker({dateFormat:"dd/mm/yy"}),this.datefilterinput_$.change(function(){l.player.trigger("AnnotationsList.refresh")}),this.current_day_filter&&(currentDate=new Date,this.datefilterinput_$.datepicker("setDate",currentDate))),this.latest_contributions_filter&&(this.latestcontributionscheckbox_$=this.$.find("#Ldt-AnnotationsList-latestContributionsFilter"),this.latestcontributionscheckbox_$.click(function(){l.player.trigger("AnnotationsList.refresh")}))),this.source.getAnnotations().on("search",function(h){l.searchString=h,l.source!==l.currentSource&&(l.currentSource.getAnnotations().search(h),l.throttledRefresh())}),this.source.getAnnotations().on("found",function(){l.throttledRefresh()}),this.source.getAnnotations().on("not-found",function(){l.throttledRefresh()}),this.source.getAnnotations().on("clear-search",function(){l.searchString=!1,l.source!==l.currentSource&&l.currentSource.getAnnotations().trigger("clear-search")}),this.$.find(".Ldt-AnnotationsList-Close").click(function(){l.showScreen("Main")}),this.source.getAnnotations().on("search-cleared",function(){l.throttledRefresh()}),this.onMdpEvent("AnnotationsList.refresh",function(){l.ajax_url&&(l.mashupMode?l.ajaxMashup():l.ajaxSource()),l.throttledRefresh(!1)}),this.onMdpEvent("AnnotationsList.update",function(){l.ajax_url&&(l.mashupMode?l.ajaxMashup():l.ajaxSource()),l.throttledRefresh(!0)}),this.ajax_url?this.mashupMode?this.ajaxMashup():this.ajaxSource():this.currentSource=this.source,this.refresh_interval&&window.setInterval(function(){l.currentSource.get()},this.refresh_interval),this.annotations_count_header&&(this.annotations_count=!1),this.onMdpEvent("AnnotationsList.toggle","toggle"),this.onMdpEvent("AnnotationsList.hide","hide"),this.onMdpEvent("AnnotationsList.show","show"),this.onMdpEvent("createAnnotationWidget.addedAnnotation",this.throttledRefresh);for(var t=["timeupdate","seeked","loadedmetadata","settimerange"],u=0;u<t.length;u++)this.onMediaEvent(t[u],this.throttledRefresh);this.throttledRefresh(),this.showScreen("Main"),this.$.find(".Ldt-AnnotationsList-CancelDelete").click(function(){l.showScreen("Main")}),this.visible=!0,this.start_visible||this.hide()}},Or(o,"defaults",{pre_draw_callback:function(){return this.importUsers()},ajax_url:!1,ajax_granularity:6e5,default_thumbnail:"",custom_external_icon:"",foreign_url:"",annotation_type:!1,refresh_interval:0,limit_count:20,newest_first:!1,show_title:!0,show_audio:!0,show_creator:!0,show_controls:!1,show_end_time:!0,show_publish:!1,show_twitter:!1,twitter_hashtag:"",on_edit:void 0,publish_type:"PublicContribution",api_endpoint_template:"",api_serializer:"ldt_annotate",api_method:"POST",editable:!1,editable_storage:"",widget_max_height:680,always_visible:!1,start_visible:!0,show_audio:!0,show_filters:!1,keyword_filter:!0,date_filter:!0,user_filter:!0,segment_filter:!0,latest_contributions_filter:!1,current_day_filter:!0,show_header:!1,custom_header:!1,annotations_count_header:!0,annotations_count_header_string:"annotations",show_creation_date:!1,show_timecode:!0,show_end_time:!0,project_id:"",allow_annotations_deletion:!1,api_delete_endpoint:"",api_delete_method:"DELETE",api_users_endpoint:"",api_users_method:"GET",make_name_string_function:function(l){return l.username?l.username:"Anonymous"},filter_by_segments:!1,segment_filter:!0,segments_annotation_type:"chap",show_only_annotation_from_user:!1,tags:!0,polemics:[{keyword:"++",background_color:"#c9ecc6"},{keyword:"--",background_color:"#f9c5c6"},{keyword:"??",background_color:"#cec5f9"},{keyword:"==",background_color:"#f9f4c6"}]}),Or(o,"messages",{en:{voice_annotation:"Voice Annotation",now_playing:"Now playing...",previous:"Previous",next:"Next",set_time:"Double-click to update to current player time",edit_annotation:"Edit note",delete_annotation:"Delete note",publish_annotation:"Make note public",import_annotations:"Paste or load notes in this field and press Import.",confirm_delete_message:"You are about to delete {{ annotation.title }}. Are you sure you want to delete it?",confirm_publish_message:"You are about to publish {{ annotation.title }}. Are you sure you want to make it public?",tweet_annotation:"Tweet annotation",external_annotation:"This annotation was submitted to another project",everyone:"Everyone",header:"Annotations for this content",segment_filter:"All cuttings",latest_contributions:"Latest contributions",close_widget:"Close",confirm:"Confirm",cancel:"Cancel",annotation_deletion_delete:"You will delete this annotation",annotation_deletion_sending:"Your deletion request is being sent ... ",annotation_deletion_success:"The annotation has been deleted.",annotation_deletion_error:"There was an error contacting the server. The annotation has not been deleted."},fr:{voice_annotation:"Annotation Vocale",now_playing:"Lecture en cours...",previous:"Précédent",next:"Suivant",set_time:"Double-cliquer pour fixer au temps du lecteur",edit_annotation:"Éditer la note",delete_annotation:"Supprimer la note",publish_annotation:"Rendre la note publique",import_annotations:"Copiez ou chargez des notes dans ce champ et appuyez sur Import",confirm_delete_message:"Vous allez supprimer {{ annotation.title }}. Êtes-vous certain(e) ?",confirm_publish_message:"Vous allez publier {{ annotation.title }}. Êtes-vous certain(e) ?",tweet_annotation:"Tweeter l'annotation",external_annotation:"Cette annotation a été postée sur un autre projet",everyone:"Tous",header:"Annotations sur ce contenu",segment_filter:"Tous les segments",latest_contributions:"Dernières contributions",close_widget:"Fermer",confirm:"Confirmer",cancel:"Annuler",annotation_deletion_delete:"Vous allez supprimer cette annotation",annotation_deletion_sending:"Votre demande de suppression est en cours d'envoi ... ",annotation_deletion_success:"L'annotation a été supprimée.",annotation_deletion_error:"Une erreur s'est produite en contactant le serveur. L'annotation n'a pas été supprimée."}}),Or(o,"template",'{{#show_header}}<p class="Ldt-AnnotationsList-header">{{#custom_header}}{{custom_header}}{{/custom_header}}{{^custom_header}}{{l10n.header}}{{/custom_header}}</p>{{/show_header}}<div class="Ldt-AnnotationsListWidget"><div class="Ldt-AnnotationsList-ScreenMain">{{#show_filters}}<div class="Ldt-AnnotationsList-Filters">{{#keyword_filter}}<input class="Ldt-AnnotationsList-filter-text" id="Ldt-AnnotationsList-keywordsFilter" type="text" value=""></input>{{/keyword_filter}}{{#user_filter}}<select class="Ldt-AnnotationsList-filter-dropdown" id="Ldt-AnnotationsList-userFilter"><option selected value="">{{l10n.everyone}}</option></select>{{/user_filter}}{{#date_filter}}<label class="Ldt-AnnotationsList-filter-date">Date: <input id="Ldt-AnnotationsList-dateFilter" type="text"></input></label>{{/date_filter}}{{#segment_filter}}<label class="Ldt-AnnotationsList-filter-checkbox"><input type="checkbox" id="Ldt-AnnotationsList-ignoreSegmentsFilter">{{l10n.segment_filter}}</label>{{/segment_filter}}{{#latest_contributions_filter}}<label class="Ldt-AnnotationsList-filter-checkbox"><input type="checkbox" id="Ldt-AnnotationsList-latestContributionsFilter">{{l10n.latest_contributions}}</label>{{/latest_contributions_filter}}</div>{{/show_filters}}{{#show_controls}}<div class="Ldt-AnnotationsList-Controls"><span class="Ldt-AnnotationsList-Control-Prev">{{ l10n.previous }}</span> | <span class="Ldt-AnnotationsList-Control-Next">{{ l10n.next }}</span></div>{{/show_controls}}{{#show_audio}}<div class="Ldt-AnnotationsList-Audio"></div>{{/show_audio}}<ul class="Ldt-AnnotationsList-ul"></ul></div>{{#allow_annotations_deletion}}<div data-annotation="{{id}}" class="Ldt-AnnotationsList-Screen Ldt-AnnotationsList-ScreenDelete"><a title="{{l10n.close_widget}}" class="Ldt-AnnotationsList-Close" href="#"></a>{{l10n.annotation_deletion_delete}}<ul class="Ldt-AnnotationsList-ul-ToDelete"></ul><a class="Ldt-AnnotationsList-ConfirmDelete">{{l10n.confirm}}</a> <a class="Ldt-AnnotationsList-CancelDelete">{{l10n.cancel}}</a></div><div data-annotation="{{id}}" class="Ldt-AnnotationsList-Screen Ldt-AnnotationsList-ScreenSending"><a title="{{l10n.close_widget}}" class="Ldt-AnnotationsList-Close" href="#"></a>{{l10n.annotation_deletion_sending}}</div><div data-annotation="{{id}}" class="Ldt-AnnotationsList-Screen Ldt-AnnotationsList-ScreenSuccess"><a title="{{l10n.close_widget}}" class="Ldt-AnnotationsList-Close" href="#"></a>{{l10n.annotation_deletion_success}}</div><div data.annotation="{{id}}" class="Ldt-AnnotationsList-Screen Ldt-AnnotationsList-ScreenError"><a title="{{l10n.close_widget}}" class="Ldt-AnnotationsList-Close" href="#"></a>{{l10n.annotation_deletion_error}}</div>{{/allow_annotations_deletion}}</div>'),Or(o,"annotationTemplate",'<li class="Ldt-AnnotationsList-li Ldt-Highlighter-Annotation Ldt-TraceMe" data-annotation="{{ id }}" data-begin="{{ begin_ms }}" data-end="{{ end_ms }}" trace-info="annotation-id:{{id}}, media-id:{{media_id}}" style="{{specific_style}}"><div data-annotation="{{ id }}" class="Ldt-AnnotationsList-ThumbContainer Ldt-AnnotationsList-Annotation-Screen Ldt-AnnotationsList-Annotation-ScreenMain"><a {{#url}}href="{{url}}"{{/url}} draggable="true"><img title="{{^external}}{{ begin }} - {{ end }}{{/external}}{{#external}}{{l10n.external_annotation}}{{/external}}" class="Ldt-AnnotationsList-Thumbnail" id="{{thumbnailId}}" />{{#external}}<div title="{{l10n.external_annotation}}" class="Ldt-AnnotationsList-External-Icon"></div>{{/external}}</a></div>{{#allow_annotations_deletion}}<div data-annotation="{{ id }}" class="Ldt-AnnotationsList-DeleteButton">&#10006;</div>{{/allow_annotations_deletion}}{{#show_timecode}}<div title="{{l10n.set_time}}" class="Ldt-AnnotationsList-Duration"><span class="Ldt-AnnotationsList-Begin Ldt-live-editable Ldt-AnnotationsList-TimeEdit" data-editable_value="{{begin}}" data-editable_id="{{id}}" data-editable_field="begin" data-editable_type="timestamp">{{begin}}</span>{{#show_end_time}} - <span class="Ldt-AnnotationsList-End Ldt-live-editable" data-editable_value="{{end}}" data-editable_id="{{id}}" data-editable_field="end" data-editable_type="timestamp">{{end}}</span>{{/show_end_time}}</div>{{/show_timecode}}<h3 class="Ldt-AnnotationsList-Title Ldt-Annotation-Timecode" data-timecode="{{ begin_ms }}" draggable="true">{{#show_title}}<span class="Ldt-AnnotationsList-TitleContent Ldt-live-editable" data-editable_value="{{title}}" data-editable_type="multiline" data-editable_id="{{id}}" data-editable_field="title">{{{htitle}}}</span>{{/show_title}}{{#show_creator}}<span class="Ldt-AnnotationsList-Creator">{{ creator }}</span>{{/show_creator}}</h3><p class="Ldt-AnnotationsList-Description Ldt-live-editable" data-editable_type="multiline" data-editable_value="{{description}}" data-editable_id="{{id}}" data-editable_field="description">{{{hdescription}}}</p>{{#created}}<div class="Ldt-AnnotationsList-CreationDate">{{{created}}}</div>{{/created}}{{#tags.length}}<ul class="Ldt-AnnotationsList-Tags">{{#tags}}{{#.}}<li class="Ldt-AnnotationsList-Tag-Li"><span>{{.}}</span></li>{{/.}}{{/tags}}</ul>{{/tags.length}}{{#audio}}<div class="Ldt-AnnotationsList-Play" data-annotation-id="{{id}}">{{l10n.voice_annotation}}</div>{{/audio}}<div class="Ldt-AnnotationsList-EditControls">{{#show_twitter}}<a title="{{l10n.tweet_annotation}}" target="_blank" href="https://twitter.com/intent/tweet?{{twitter_param}}"><img width="16" height="16" src="metadataplayer/img/twitter.svg"></a>{{/show_twitter}}{{#show_publish}}<div title="{{l10n.publish_annotation}}" class="Ldt-AnnotationsList-PublishAnnotation" data-editable_id="{{id}}"></div>{{/show_publish}}{{#editable}}<div title="{{l10n.edit_annotation}}" class="Ldt-AnnotationsList-Edit" data-editable_id="{{id}}"></div><div title="{{l10n.delete_annotation}}" class="Ldt-AnnotationsList-Delete" data-editable_id="{{id}}"></div>{{/editable}}</div></li>'),o};var raphael_min={exports:{}};(function(n,e){(function(o,l){n.exports=l()})(window,function(){return function(o){var l={};function t(u){if(l[u])return l[u].exports;var h=l[u]={i:u,l:!1,exports:{}};return o[u].call(h.exports,h,h.exports,t),h.l=!0,h.exports}return t.m=o,t.c=l,t.d=function(u,h,v){t.o(u,h)||Object.defineProperty(u,h,{enumerable:!0,get:v})},t.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},t.t=function(u,h){if(1&h&&(u=t(u)),8&h||4&h&&typeof u=="object"&&u&&u.__esModule)return u;var v=Object.create(null);if(t.r(v),Object.defineProperty(v,"default",{enumerable:!0,value:u}),2&h&&typeof u!="string")for(var w in u)t.d(v,w,(function(A){return u[A]}).bind(null,w));return v},t.n=function(u){var h=u&&u.__esModule?function(){return u.default}:function(){return u};return t.d(h,"a",h),h},t.o=function(u,h){return Object.prototype.hasOwnProperty.call(u,h)},t.p="",t(t.s=1)}([function(o,l,t){var u,h;u=[t(2)],(h=(function(v){function w(ce){if(w.is(ce,"function"))return A?ce():v.on("raphael.DOMload",ce);if(w.is(ce,b))return w._engine.create[N](w,ce.splice(0,3+w.is(ce[0],T))).add(ce);var xe=Array.prototype.slice.call(arguments,0);if(w.is(xe[xe.length-1],"function")){var Be=xe.pop();return A?Be.call(w._engine.create[N](w,xe)):v.on("raphael.DOMload",function(){Be.call(w._engine.create[N](w,xe))})}return w._engine.create[N](w,arguments)}w.version="2.3.0",w.eve=v;var A,E,C=/[, ]+/,M={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},P=/\{(\d+)\}/g,I="hasOwnProperty",j={doc:document,win:window},B={was:Object.prototype[I].call(j.win,"Raphael"),is:j.win.Raphael},F=function(){this.ca=this.customAttributes={}},N="apply",ee="concat",Z="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,re="",fe=" ",V=String,le="split",he="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[le](fe),ye={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},L=V.prototype.toLowerCase,p=Math,y=p.max,S=p.min,c=p.abs,m=p.pow,x=p.PI,T="number",b="array",d=Object.prototype.toString,k=(w._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),D={NaN:1,Infinity:1,"-Infinity":1},O=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Q=p.round,J=parseFloat,X=parseInt,U=V.prototype.toUpperCase,z=w._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},ie=w._availableAnimAttrs={blur:T,"clip-rect":"csv",cx:T,cy:T,fill:"colour","fill-opacity":T,"font-size":T,height:T,opacity:T,path:"path",r:T,rx:T,ry:T,stroke:"colour","stroke-opacity":T,"stroke-width":T,transform:"transform",width:T,x:T,y:T},de=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,me={hs:1,rg:1},pe=/,?([achlmqrstvxz]),?/gi,qe=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,mt=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,st=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,dt=(w._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),Tt=function(ce,xe){return J(ce)-J(xe)},lt=function(ce){return ce},Je=w._rectPath=function(ce,xe,Be,Fe,Xe){return Xe?[["M",ce+Xe,xe],["l",Be-2*Xe,0],["a",Xe,Xe,0,0,1,Xe,Xe],["l",0,Fe-2*Xe],["a",Xe,Xe,0,0,1,-Xe,Xe],["l",2*Xe-Be,0],["a",Xe,Xe,0,0,1,-Xe,-Xe],["l",0,2*Xe-Fe],["a",Xe,Xe,0,0,1,Xe,-Xe],["z"]]:[["M",ce,xe],["l",Be,0],["l",0,Fe],["l",-Be,0],["z"]]},ht=function(ce,xe,Be,Fe){return Fe==null&&(Fe=Be),[["M",ce,xe],["m",0,-Fe],["a",Be,Fe,0,1,1,0,2*Fe],["a",Be,Fe,0,1,1,0,-2*Fe],["z"]]},at=w._getPath={path:function(ce){return ce.attr("path")},circle:function(ce){var xe=ce.attrs;return ht(xe.cx,xe.cy,xe.r)},ellipse:function(ce){var xe=ce.attrs;return ht(xe.cx,xe.cy,xe.rx,xe.ry)},rect:function(ce){var xe=ce.attrs;return Je(xe.x,xe.y,xe.width,xe.height,xe.r)},image:function(ce){var xe=ce.attrs;return Je(xe.x,xe.y,xe.width,xe.height)},text:function(ce){var xe=ce._getBBox();return Je(xe.x,xe.y,xe.width,xe.height)},set:function(ce){var xe=ce._getBBox();return Je(xe.x,xe.y,xe.width,xe.height)}},bt=w.mapPath=function(ce,xe){if(!xe)return ce;var Be,Fe,Xe,ct,we,Ae,Re;for(Xe=0,we=(ce=Qt(ce)).length;Xe<we;Xe++)for(ct=1,Ae=(Re=ce[Xe]).length;ct<Ae;ct+=2)Be=xe.x(Re[ct],Re[ct+1]),Fe=xe.y(Re[ct],Re[ct+1]),Re[ct]=Be,Re[ct+1]=Fe;return ce};if(w._g=j,w.type=j.win.SVGAngle||j.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",w.type=="VML"){var jt,Ge=j.doc.createElement("div");if(Ge.innerHTML='<v:shape adj="1"/>',(jt=Ge.firstChild).style.behavior="url(#default#VML)",!jt||typeof jt.adj!="object")return w.type=re;Ge=null}function Qe(ce){if(typeof ce=="function"||Object(ce)!==ce)return ce;var xe=new ce.constructor;for(var Be in ce)ce[I](Be)&&(xe[Be]=Qe(ce[Be]));return xe}w.svg=!(w.vml=w.type=="VML"),w._Paper=F,w.fn=E=F.prototype=w.prototype,w._id=0,w.is=function(ce,xe){return(xe=L.call(xe))=="finite"?!D[I](+ce):xe=="array"?ce instanceof Array:xe=="null"&&ce===null||xe==typeof ce&&ce!==null||xe=="object"&&ce===Object(ce)||xe=="array"&&Array.isArray&&Array.isArray(ce)||d.call(ce).slice(8,-1).toLowerCase()==xe},w.angle=function(ce,xe,Be,Fe,Xe,ct){if(Xe==null){var we=ce-Be,Ae=xe-Fe;return we||Ae?(180+180*p.atan2(-Ae,-we)/x+360)%360:0}return w.angle(ce,xe,Xe,ct)-w.angle(Be,Fe,Xe,ct)},w.rad=function(ce){return ce%360*x/180},w.deg=function(ce){return Math.round(180*ce/x%360*1e3)/1e3},w.snapTo=function(ce,xe,Be){if(Be=w.is(Be,"finite")?Be:10,w.is(ce,b)){for(var Fe=ce.length;Fe--;)if(c(ce[Fe]-xe)<=Be)return ce[Fe]}else{var Xe=xe%(ce=+ce);if(Xe<Be)return xe-Xe;if(Xe>ce-Be)return xe-Xe+ce}return xe};var Wt,Et;w.createUUID=(Wt=/[xy]/g,Et=function(ce){var xe=16*p.random()|0;return(ce=="x"?xe:3&xe|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Wt,Et).toUpperCase()}),w.setWindow=function(ce){v("raphael.setWindow",w,j.win,ce),j.win=ce,j.doc=j.win.document,w._engine.initWin&&w._engine.initWin(j.win)};var Ct=function(ce){if(w.vml){var xe,Be=/^\s+|\s+$/g;try{var Fe=new ActiveXObject("htmlfile");Fe.write("<body>"),Fe.close(),xe=Fe.body}catch{xe=createPopup().document.body}var Xe=xe.createTextRange();Ct=We(function(we){try{xe.style.color=V(we).replace(Be,re);var Ae=Xe.queryCommandValue("ForeColor");return"#"+("000000"+(Ae=(255&Ae)<<16|65280&Ae|(16711680&Ae)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var ct=j.doc.createElement("i");ct.title="Raphaël Colour Picker",ct.style.display="none",j.doc.body.appendChild(ct),Ct=We(function(we){return ct.style.color=we,j.doc.defaultView.getComputedStyle(ct,re).getPropertyValue("color")})}return Ct(ce)},Kt=function(){return"hsb("+[this.h,this.s,this.b]+")"},Me=function(){return"hsl("+[this.h,this.s,this.l]+")"},te=function(){return this.hex},_e=function(ce,xe,Be){if(xe==null&&w.is(ce,"object")&&"r"in ce&&"g"in ce&&"b"in ce&&(Be=ce.b,xe=ce.g,ce=ce.r),xe==null&&w.is(ce,"string")){var Fe=w.getRGB(ce);ce=Fe.r,xe=Fe.g,Be=Fe.b}return(ce>1||xe>1||Be>1)&&(ce/=255,xe/=255,Be/=255),[ce,xe,Be]},je=function(ce,xe,Be,Fe){var Xe={r:ce*=255,g:xe*=255,b:Be*=255,hex:w.rgb(ce,xe,Be),toString:te};return w.is(Fe,"finite")&&(Xe.opacity=Fe),Xe};function We(ce,xe,Be){return function Fe(){var Xe=Array.prototype.slice.call(arguments,0),ct=Xe.join("␀"),we=Fe.cache=Fe.cache||{},Ae=Fe.count=Fe.count||[];return we[I](ct)?(function(Re,rt){for(var St=0,Lt=Re.length;St<Lt;St++)if(Re[St]===rt)return Re.push(Re.splice(St,1)[0])}(Ae,ct),Be?Be(we[ct]):we[ct]):(Ae.length>=1e3&&delete we[Ae.shift()],Ae.push(ct),we[ct]=ce[N](xe,Xe),Be?Be(we[ct]):we[ct])}}w.color=function(ce){var xe;return w.is(ce,"object")&&"h"in ce&&"s"in ce&&"b"in ce?(xe=w.hsb2rgb(ce),ce.r=xe.r,ce.g=xe.g,ce.b=xe.b,ce.hex=xe.hex):w.is(ce,"object")&&"h"in ce&&"s"in ce&&"l"in ce?(xe=w.hsl2rgb(ce),ce.r=xe.r,ce.g=xe.g,ce.b=xe.b,ce.hex=xe.hex):(w.is(ce,"string")&&(ce=w.getRGB(ce)),w.is(ce,"object")&&"r"in ce&&"g"in ce&&"b"in ce?(xe=w.rgb2hsl(ce),ce.h=xe.h,ce.s=xe.s,ce.l=xe.l,xe=w.rgb2hsb(ce),ce.v=xe.b):(ce={hex:"none"}).r=ce.g=ce.b=ce.h=ce.s=ce.v=ce.l=-1),ce.toString=te,ce},w.hsb2rgb=function(ce,xe,Be,Fe){var Xe,ct,we,Ae,Re;return this.is(ce,"object")&&"h"in ce&&"s"in ce&&"b"in ce&&(Be=ce.b,xe=ce.s,Fe=ce.o,ce=ce.h),Ae=(Re=Be*xe)*(1-c((ce=(ce*=360)%360/60)%2-1)),Xe=ct=we=Be-Re,je(Xe+=[Re,Ae,0,0,Ae,Re][ce=~~ce],ct+=[Ae,Re,Re,Ae,0,0][ce],we+=[0,0,Ae,Re,Re,Ae][ce],Fe)},w.hsl2rgb=function(ce,xe,Be,Fe){var Xe,ct,we,Ae,Re;return this.is(ce,"object")&&"h"in ce&&"s"in ce&&"l"in ce&&(Be=ce.l,xe=ce.s,ce=ce.h),(ce>1||xe>1||Be>1)&&(ce/=360,xe/=100,Be/=100),Ae=(Re=2*xe*(Be<.5?Be:1-Be))*(1-c((ce=(ce*=360)%360/60)%2-1)),Xe=ct=we=Be-Re/2,je(Xe+=[Re,Ae,0,0,Ae,Re][ce=~~ce],ct+=[Ae,Re,Re,Ae,0,0][ce],we+=[0,0,Ae,Re,Re,Ae][ce],Fe)},w.rgb2hsb=function(ce,xe,Be){var Fe,Xe;return ce=(Be=_e(ce,xe,Be))[0],xe=Be[1],Be=Be[2],{h:(((Xe=(Fe=y(ce,xe,Be))-S(ce,xe,Be))==0?null:Fe==ce?(xe-Be)/Xe:Fe==xe?(Be-ce)/Xe+2:(ce-xe)/Xe+4)+360)%6*60/360,s:Xe==0?0:Xe/Fe,b:Fe,toString:Kt}},w.rgb2hsl=function(ce,xe,Be){var Fe,Xe,ct,we;return ce=(Be=_e(ce,xe,Be))[0],xe=Be[1],Be=Be[2],Fe=((Xe=y(ce,xe,Be))+(ct=S(ce,xe,Be)))/2,{h:(((we=Xe-ct)==0?null:Xe==ce?(xe-Be)/we:Xe==xe?(Be-ce)/we+2:(ce-xe)/we+4)+360)%6*60/360,s:we==0?0:Fe<.5?we/(2*Fe):we/(2-2*Fe),l:Fe,toString:Me}},w._path2string=function(){return this.join(",").replace(pe,"$1")},w._preload=function(ce,xe){var Be=j.doc.createElement("img");Be.style.cssText="position:absolute;left:-9999em;top:-9999em",Be.onload=function(){xe.call(this),this.onload=null,j.doc.body.removeChild(this)},Be.onerror=function(){j.doc.body.removeChild(this)},j.doc.body.appendChild(Be),Be.src=ce};function et(){return this.hex}function Ye(ce,xe){for(var Be=[],Fe=0,Xe=ce.length;Xe-2*!xe>Fe;Fe+=2){var ct=[{x:+ce[Fe-2],y:+ce[Fe-1]},{x:+ce[Fe],y:+ce[Fe+1]},{x:+ce[Fe+2],y:+ce[Fe+3]},{x:+ce[Fe+4],y:+ce[Fe+5]}];xe?Fe?Xe-4==Fe?ct[3]={x:+ce[0],y:+ce[1]}:Xe-2==Fe&&(ct[2]={x:+ce[0],y:+ce[1]},ct[3]={x:+ce[2],y:+ce[3]}):ct[0]={x:+ce[Xe-2],y:+ce[Xe-1]}:Xe-4==Fe?ct[3]=ct[2]:Fe||(ct[0]={x:+ce[Fe],y:+ce[Fe+1]}),Be.push(["C",(-ct[0].x+6*ct[1].x+ct[2].x)/6,(-ct[0].y+6*ct[1].y+ct[2].y)/6,(ct[1].x+6*ct[2].x-ct[3].x)/6,(ct[1].y+6*ct[2].y-ct[3].y)/6,ct[2].x,ct[2].y])}return Be}w.getRGB=We(function(ce){if(!ce||(ce=V(ce)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:et};if(ce=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:et};!me[I](ce.toLowerCase().substring(0,2))&&ce.charAt()!="#"&&(ce=Ct(ce));var xe,Be,Fe,Xe,ct,we,Ae=ce.match(k);return Ae?(Ae[2]&&(Fe=X(Ae[2].substring(5),16),Be=X(Ae[2].substring(3,5),16),xe=X(Ae[2].substring(1,3),16)),Ae[3]&&(Fe=X((ct=Ae[3].charAt(3))+ct,16),Be=X((ct=Ae[3].charAt(2))+ct,16),xe=X((ct=Ae[3].charAt(1))+ct,16)),Ae[4]&&(we=Ae[4][le](de),xe=J(we[0]),we[0].slice(-1)=="%"&&(xe*=2.55),Be=J(we[1]),we[1].slice(-1)=="%"&&(Be*=2.55),Fe=J(we[2]),we[2].slice(-1)=="%"&&(Fe*=2.55),Ae[1].toLowerCase().slice(0,4)=="rgba"&&(Xe=J(we[3])),we[3]&&we[3].slice(-1)=="%"&&(Xe/=100)),Ae[5]?(we=Ae[5][le](de),xe=J(we[0]),we[0].slice(-1)=="%"&&(xe*=2.55),Be=J(we[1]),we[1].slice(-1)=="%"&&(Be*=2.55),Fe=J(we[2]),we[2].slice(-1)=="%"&&(Fe*=2.55),(we[0].slice(-3)=="deg"||we[0].slice(-1)=="°")&&(xe/=360),Ae[1].toLowerCase().slice(0,4)=="hsba"&&(Xe=J(we[3])),we[3]&&we[3].slice(-1)=="%"&&(Xe/=100),w.hsb2rgb(xe,Be,Fe,Xe)):Ae[6]?(we=Ae[6][le](de),xe=J(we[0]),we[0].slice(-1)=="%"&&(xe*=2.55),Be=J(we[1]),we[1].slice(-1)=="%"&&(Be*=2.55),Fe=J(we[2]),we[2].slice(-1)=="%"&&(Fe*=2.55),(we[0].slice(-3)=="deg"||we[0].slice(-1)=="°")&&(xe/=360),Ae[1].toLowerCase().slice(0,4)=="hsla"&&(Xe=J(we[3])),we[3]&&we[3].slice(-1)=="%"&&(Xe/=100),w.hsl2rgb(xe,Be,Fe,Xe)):((Ae={r:xe,g:Be,b:Fe,toString:et}).hex="#"+(16777216|Fe|Be<<8|xe<<16).toString(16).slice(1),w.is(Xe,"finite")&&(Ae.opacity=Xe),Ae)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:et}},w),w.hsb=We(function(ce,xe,Be){return w.hsb2rgb(ce,xe,Be).hex}),w.hsl=We(function(ce,xe,Be){return w.hsl2rgb(ce,xe,Be).hex}),w.rgb=We(function(ce,xe,Be){function Fe(Xe){return Xe+.5|0}return"#"+(16777216|Fe(Be)|Fe(xe)<<8|Fe(ce)<<16).toString(16).slice(1)}),w.getColor=function(ce){var xe=this.getColor.start=this.getColor.start||{h:0,s:1,b:ce||.75},Be=this.hsb2rgb(xe.h,xe.s,xe.b);return xe.h+=.075,xe.h>1&&(xe.h=0,xe.s-=.2,xe.s<=0&&(this.getColor.start={h:0,s:1,b:xe.b})),Be.hex},w.getColor.reset=function(){delete this.start},w.parsePathString=function(ce){if(!ce)return null;var xe=De(ce);if(xe.arr)return _t(xe.arr);var Be={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},Fe=[];return w.is(ce,b)&&w.is(ce[0],b)&&(Fe=_t(ce)),Fe.length||V(ce).replace(qe,function(Xe,ct,we){var Ae=[],Re=ct.toLowerCase();if(we.replace(st,function(rt,St){St&&Ae.push(+St)}),Re=="m"&&Ae.length>2&&(Fe.push([ct][ee](Ae.splice(0,2))),Re="l",ct=ct=="m"?"l":"L"),Re=="r")Fe.push([ct][ee](Ae));else for(;Ae.length>=Be[Re]&&(Fe.push([ct][ee](Ae.splice(0,Be[Re]))),Be[Re]););}),Fe.toString=w._path2string,xe.arr=_t(Fe),Fe},w.parseTransformString=We(function(ce){if(!ce)return null;var xe=[];return w.is(ce,b)&&w.is(ce[0],b)&&(xe=_t(ce)),xe.length||V(ce).replace(mt,function(Be,Fe,Xe){var ct=[];L.call(Fe),Xe.replace(st,function(we,Ae){Ae&&ct.push(+Ae)}),xe.push([Fe][ee](ct))}),xe.toString=w._path2string,xe},this,function(ce){if(!ce)return ce;for(var xe=[],Be=0;Be<ce.length;Be++){for(var Fe=[],Xe=0;Xe<ce[Be].length;Xe++)Fe.push(ce[Be][Xe]);xe.push(Fe)}return xe});var De=function(ce){var xe=De.ps=De.ps||{};return xe[ce]?xe[ce].sleep=100:xe[ce]={sleep:100},setTimeout(function(){for(var Be in xe)xe[I](Be)&&Be!=ce&&(xe[Be].sleep--,!xe[Be].sleep&&delete xe[Be])}),xe[ce]};function Ht(ce,xe,Be,Fe,Xe){return ce*(ce*(-3*xe+9*Be-9*Fe+3*Xe)+6*xe-12*Be+6*Fe)-3*xe+3*Be}function Mt(ce,xe,Be,Fe,Xe,ct,we,Ae,Re){Re==null&&(Re=1);for(var rt=(Re=Re>1?1:Re<0?0:Re)/2,St=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Lt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Ft=0,$t=0;$t<12;$t++){var nr=rt*St[$t]+rt,gr=Ht(nr,ce,Be,Xe,we),fr=Ht(nr,xe,Fe,ct,Ae),ar=gr*gr+fr*fr;Ft+=Lt[$t]*p.sqrt(ar)}return rt*Ft}function ge(ce,xe,Be,Fe,Xe,ct,we,Ae){if(!(y(ce,Be)<S(Xe,we)||S(ce,Be)>y(Xe,we)||y(xe,Fe)<S(ct,Ae)||S(xe,Fe)>y(ct,Ae))){var Re=(ce-Be)*(ct-Ae)-(xe-Fe)*(Xe-we);if(Re){var rt=((ce*Fe-xe*Be)*(Xe-we)-(ce-Be)*(Xe*Ae-ct*we))/Re,St=((ce*Fe-xe*Be)*(ct-Ae)-(xe-Fe)*(Xe*Ae-ct*we))/Re,Lt=+rt.toFixed(2),Ft=+St.toFixed(2);if(!(Lt<+S(ce,Be).toFixed(2)||Lt>+y(ce,Be).toFixed(2)||Lt<+S(Xe,we).toFixed(2)||Lt>+y(Xe,we).toFixed(2)||Ft<+S(xe,Fe).toFixed(2)||Ft>+y(xe,Fe).toFixed(2)||Ft<+S(ct,Ae).toFixed(2)||Ft>+y(ct,Ae).toFixed(2)))return{x:rt,y:St}}}}function Dt(ce,xe,Be){var Fe=w.bezierBBox(ce),Xe=w.bezierBBox(xe);if(!w.isBBoxIntersect(Fe,Xe))return Be?0:[];for(var ct=Mt.apply(0,ce),we=Mt.apply(0,xe),Ae=y(~~(ct/5),1),Re=y(~~(we/5),1),rt=[],St=[],Lt={},Ft=Be?0:[],$t=0;$t<Ae+1;$t++){var nr=w.findDotsAtSegment.apply(w,ce.concat($t/Ae));rt.push({x:nr.x,y:nr.y,t:$t/Ae})}for($t=0;$t<Re+1;$t++)nr=w.findDotsAtSegment.apply(w,xe.concat($t/Re)),St.push({x:nr.x,y:nr.y,t:$t/Re});for($t=0;$t<Ae;$t++)for(var gr=0;gr<Re;gr++){var fr=rt[$t],ar=rt[$t+1],Ur=St[gr],Er=St[gr+1],Pr=c(ar.x-fr.x)<.001?"y":"x",_r=c(Er.x-Ur.x)<.001?"y":"x",ti=ge(fr.x,fr.y,ar.x,ar.y,Ur.x,Ur.y,Er.x,Er.y);if(ti){if(Lt[ti.x.toFixed(4)]==ti.y.toFixed(4))continue;Lt[ti.x.toFixed(4)]=ti.y.toFixed(4);var Qr=fr.t+c((ti[Pr]-fr[Pr])/(ar[Pr]-fr[Pr]))*(ar.t-fr.t),ri=Ur.t+c((ti[_r]-Ur[_r])/(Er[_r]-Ur[_r]))*(Er.t-Ur.t);Qr>=0&&Qr<=1.001&&ri>=0&&ri<=1.001&&(Be?Ft++:Ft.push({x:ti.x,y:ti.y,t1:S(Qr,1),t2:S(ri,1)}))}}return Ft}function yt(ce,xe,Be){ce=w._path2curve(ce),xe=w._path2curve(xe);for(var Fe,Xe,ct,we,Ae,Re,rt,St,Lt,Ft,$t=Be?0:[],nr=0,gr=ce.length;nr<gr;nr++){var fr=ce[nr];if(fr[0]=="M")Fe=Ae=fr[1],Xe=Re=fr[2];else{fr[0]=="C"?(Lt=[Fe,Xe].concat(fr.slice(1)),Fe=Lt[6],Xe=Lt[7]):(Lt=[Fe,Xe,Fe,Xe,Ae,Re,Ae,Re],Fe=Ae,Xe=Re);for(var ar=0,Ur=xe.length;ar<Ur;ar++){var Er=xe[ar];if(Er[0]=="M")ct=rt=Er[1],we=St=Er[2];else{Er[0]=="C"?(Ft=[ct,we].concat(Er.slice(1)),ct=Ft[6],we=Ft[7]):(Ft=[ct,we,ct,we,rt,St,rt,St],ct=rt,we=St);var Pr=Dt(Lt,Ft,Be);if(Be)$t+=Pr;else{for(var _r=0,ti=Pr.length;_r<ti;_r++)Pr[_r].segment1=nr,Pr[_r].segment2=ar,Pr[_r].bez1=Lt,Pr[_r].bez2=Ft;$t=$t.concat(Pr)}}}}}return $t}w.findDotsAtSegment=function(ce,xe,Be,Fe,Xe,ct,we,Ae,Re){var rt=1-Re,St=m(rt,3),Lt=m(rt,2),Ft=Re*Re,$t=Ft*Re,nr=St*ce+3*Lt*Re*Be+3*rt*Re*Re*Xe+$t*we,gr=St*xe+3*Lt*Re*Fe+3*rt*Re*Re*ct+$t*Ae,fr=ce+2*Re*(Be-ce)+Ft*(Xe-2*Be+ce),ar=xe+2*Re*(Fe-xe)+Ft*(ct-2*Fe+xe),Ur=Be+2*Re*(Xe-Be)+Ft*(we-2*Xe+Be),Er=Fe+2*Re*(ct-Fe)+Ft*(Ae-2*ct+Fe),Pr=rt*ce+Re*Be,_r=rt*xe+Re*Fe,ti=rt*Xe+Re*we,Qr=rt*ct+Re*Ae,ri=90-180*p.atan2(fr-Ur,ar-Er)/x;return(fr>Ur||ar<Er)&&(ri+=180),{x:nr,y:gr,m:{x:fr,y:ar},n:{x:Ur,y:Er},start:{x:Pr,y:_r},end:{x:ti,y:Qr},alpha:ri}},w.bezierBBox=function(ce,xe,Be,Fe,Xe,ct,we,Ae){w.is(ce,"array")||(ce=[ce,xe,Be,Fe,Xe,ct,we,Ae]);var Re=zt.apply(null,ce);return{x:Re.min.x,y:Re.min.y,x2:Re.max.x,y2:Re.max.y,width:Re.max.x-Re.min.x,height:Re.max.y-Re.min.y}},w.isPointInsideBBox=function(ce,xe,Be){return xe>=ce.x&&xe<=ce.x2&&Be>=ce.y&&Be<=ce.y2},w.isBBoxIntersect=function(ce,xe){var Be=w.isPointInsideBBox;return Be(xe,ce.x,ce.y)||Be(xe,ce.x2,ce.y)||Be(xe,ce.x,ce.y2)||Be(xe,ce.x2,ce.y2)||Be(ce,xe.x,xe.y)||Be(ce,xe.x2,xe.y)||Be(ce,xe.x,xe.y2)||Be(ce,xe.x2,xe.y2)||(ce.x<xe.x2&&ce.x>xe.x||xe.x<ce.x2&&xe.x>ce.x)&&(ce.y<xe.y2&&ce.y>xe.y||xe.y<ce.y2&&xe.y>ce.y)},w.pathIntersection=function(ce,xe){return yt(ce,xe)},w.pathIntersectionNumber=function(ce,xe){return yt(ce,xe,1)},w.isPointInsidePath=function(ce,xe,Be){var Fe=w.pathBBox(ce);return w.isPointInsideBBox(Fe,xe,Be)&&yt(ce,[["M",xe,Be],["H",Fe.x2+10]],1)%2==1},w._removedFactory=function(ce){return function(){v("raphael.log",null,"Raphaël: you are calling to method “"+ce+"” of removed object",ce)}};var Ne=w.pathBBox=function(ce){var xe=De(ce);if(xe.bbox)return Qe(xe.bbox);if(!ce)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var Be,Fe=0,Xe=0,ct=[],we=[],Ae=0,Re=(ce=Qt(ce)).length;Ae<Re;Ae++)if((Be=ce[Ae])[0]=="M")Fe=Be[1],Xe=Be[2],ct.push(Fe),we.push(Xe);else{var rt=zt(Fe,Xe,Be[1],Be[2],Be[3],Be[4],Be[5],Be[6]);ct=ct[ee](rt.min.x,rt.max.x),we=we[ee](rt.min.y,rt.max.y),Fe=Be[5],Xe=Be[6]}var St=S[N](0,ct),Lt=S[N](0,we),Ft=y[N](0,ct),$t=y[N](0,we),nr=Ft-St,gr=$t-Lt,fr={x:St,y:Lt,x2:Ft,y2:$t,width:nr,height:gr,cx:St+nr/2,cy:Lt+gr/2};return xe.bbox=Qe(fr),fr},_t=function(ce){var xe=Qe(ce);return xe.toString=w._path2string,xe},pt=w._pathToRelative=function(ce){var xe=De(ce);if(xe.rel)return _t(xe.rel);w.is(ce,b)&&w.is(ce&&ce[0],b)||(ce=w.parsePathString(ce));var Be=[],Fe=0,Xe=0,ct=0,we=0,Ae=0;ce[0][0]=="M"&&(ct=Fe=ce[0][1],we=Xe=ce[0][2],Ae++,Be.push(["M",Fe,Xe]));for(var Re=Ae,rt=ce.length;Re<rt;Re++){var St=Be[Re]=[],Lt=ce[Re];if(Lt[0]!=L.call(Lt[0]))switch(St[0]=L.call(Lt[0]),St[0]){case"a":St[1]=Lt[1],St[2]=Lt[2],St[3]=Lt[3],St[4]=Lt[4],St[5]=Lt[5],St[6]=+(Lt[6]-Fe).toFixed(3),St[7]=+(Lt[7]-Xe).toFixed(3);break;case"v":St[1]=+(Lt[1]-Xe).toFixed(3);break;case"m":ct=Lt[1],we=Lt[2];default:for(var Ft=1,$t=Lt.length;Ft<$t;Ft++)St[Ft]=+(Lt[Ft]-(Ft%2?Fe:Xe)).toFixed(3)}else{St=Be[Re]=[],Lt[0]=="m"&&(ct=Lt[1]+Fe,we=Lt[2]+Xe);for(var nr=0,gr=Lt.length;nr<gr;nr++)Be[Re][nr]=Lt[nr]}var fr=Be[Re].length;switch(Be[Re][0]){case"z":Fe=ct,Xe=we;break;case"h":Fe+=+Be[Re][fr-1];break;case"v":Xe+=+Be[Re][fr-1];break;default:Fe+=+Be[Re][fr-2],Xe+=+Be[Re][fr-1]}}return Be.toString=w._path2string,xe.rel=_t(Be),Be},Bt=w._pathToAbsolute=function(ce){var xe=De(ce);if(xe.abs)return _t(xe.abs);if(w.is(ce,b)&&w.is(ce&&ce[0],b)||(ce=w.parsePathString(ce)),!ce||!ce.length)return[["M",0,0]];var Be=[],Fe=0,Xe=0,ct=0,we=0,Ae=0;ce[0][0]=="M"&&(ct=Fe=+ce[0][1],we=Xe=+ce[0][2],Ae++,Be[0]=["M",Fe,Xe]);for(var Re,rt,St=ce.length==3&&ce[0][0]=="M"&&ce[1][0].toUpperCase()=="R"&&ce[2][0].toUpperCase()=="Z",Lt=Ae,Ft=ce.length;Lt<Ft;Lt++){if(Be.push(Re=[]),(rt=ce[Lt])[0]!=U.call(rt[0]))switch(Re[0]=U.call(rt[0]),Re[0]){case"A":Re[1]=rt[1],Re[2]=rt[2],Re[3]=rt[3],Re[4]=rt[4],Re[5]=rt[5],Re[6]=+(rt[6]+Fe),Re[7]=+(rt[7]+Xe);break;case"V":Re[1]=+rt[1]+Xe;break;case"H":Re[1]=+rt[1]+Fe;break;case"R":for(var $t=[Fe,Xe][ee](rt.slice(1)),nr=2,gr=$t.length;nr<gr;nr++)$t[nr]=+$t[nr]+Fe,$t[++nr]=+$t[nr]+Xe;Be.pop(),Be=Be[ee](Ye($t,St));break;case"M":ct=+rt[1]+Fe,we=+rt[2]+Xe;default:for(nr=1,gr=rt.length;nr<gr;nr++)Re[nr]=+rt[nr]+(nr%2?Fe:Xe)}else if(rt[0]=="R")$t=[Fe,Xe][ee](rt.slice(1)),Be.pop(),Be=Be[ee](Ye($t,St)),Re=["R"][ee](rt.slice(-2));else for(var fr=0,ar=rt.length;fr<ar;fr++)Re[fr]=rt[fr];switch(Re[0]){case"Z":Fe=ct,Xe=we;break;case"H":Fe=Re[1];break;case"V":Xe=Re[1];break;case"M":ct=Re[Re.length-2],we=Re[Re.length-1];default:Fe=Re[Re.length-2],Xe=Re[Re.length-1]}}return Be.toString=w._path2string,xe.abs=_t(Be),Be},ur=function(ce,xe,Be,Fe){return[ce,xe,Be,Fe,Be,Fe]},kt=function(ce,xe,Be,Fe,Xe,ct){return[1/3*ce+2/3*Be,1/3*xe+2/3*Fe,1/3*Xe+2/3*Be,1/3*ct+2/3*Fe,Xe,ct]},Ut=function(ce,xe,Be,Fe,Xe,ct,we,Ae,Re,rt){var St,Lt=120*x/180,Ft=x/180*(+Xe||0),$t=[],nr=We(function(Y,ne,ke){return{x:Y*p.cos(ke)-ne*p.sin(ke),y:Y*p.sin(ke)+ne*p.cos(ke)}});if(rt)Qr=rt[0],ri=rt[1],_r=rt[2],ti=rt[3];else{ce=(St=nr(ce,xe,-Ft)).x,xe=St.y,Ae=(St=nr(Ae,Re,-Ft)).x,Re=St.y;var gr=(ce-Ae)/2,fr=(xe-Re)/2,ar=gr*gr/(Be*Be)+fr*fr/(Fe*Fe);ar>1&&(Be*=ar=p.sqrt(ar),Fe*=ar);var Ur=Be*Be,Er=Fe*Fe,Pr=(ct==we?-1:1)*p.sqrt(c((Ur*Er-Ur*fr*fr-Er*gr*gr)/(Ur*fr*fr+Er*gr*gr))),_r=Pr*Be*fr/Fe+(ce+Ae)/2,ti=Pr*-Fe*gr/Be+(xe+Re)/2,Qr=p.asin(((xe-ti)/Fe).toFixed(9)),ri=p.asin(((Re-ti)/Fe).toFixed(9));(Qr=ce<_r?x-Qr:Qr)<0&&(Qr=2*x+Qr),(ri=Ae<_r?x-ri:ri)<0&&(ri=2*x+ri),we&&Qr>ri&&(Qr-=2*x),!we&&ri>Qr&&(ri-=2*x)}var Xi=ri-Qr;if(c(Xi)>Lt){var Zi=ri,li=Ae,oi=Re;ri=Qr+Lt*(we&&ri>Qr?1:-1),Ae=_r+Be*p.cos(ri),Re=ti+Fe*p.sin(ri),$t=Ut(Ae,Re,Be,Fe,Xe,0,we,li,oi,[ri,Zi,_r,ti])}Xi=ri-Qr;var Tn=p.cos(Qr),an=p.sin(Qr),Rn=p.cos(ri),Ui=p.sin(ri),sn=p.tan(Xi/4),Gn=4/3*Be*sn,Jn=4/3*Fe*sn,Nn=[ce,xe],ki=[ce+Gn*an,xe-Jn*Tn],Ki=[Ae+Gn*Ui,Re-Jn*Rn],Ji=[Ae,Re];if(ki[0]=2*Nn[0]-ki[0],ki[1]=2*Nn[1]-ki[1],rt)return[ki,Ki,Ji][ee]($t);for(var ea=[],gi=0,Hi=($t=[ki,Ki,Ji][ee]($t).join()[le](",")).length;gi<Hi;gi++)ea[gi]=gi%2?nr($t[gi-1],$t[gi],Ft).y:nr($t[gi],$t[gi+1],Ft).x;return ea},Wr=function(ce,xe,Be,Fe,Xe,ct,we,Ae,Re){var rt=1-Re;return{x:m(rt,3)*ce+3*m(rt,2)*Re*Be+3*rt*Re*Re*Xe+m(Re,3)*we,y:m(rt,3)*xe+3*m(rt,2)*Re*Fe+3*rt*Re*Re*ct+m(Re,3)*Ae}},zt=We(function(ce,xe,Be,Fe,Xe,ct,we,Ae){var Re,rt=Xe-2*Be+ce-(we-2*Xe+Be),St=2*(Be-ce)-2*(Xe-Be),Lt=ce-Be,Ft=(-St+p.sqrt(St*St-4*rt*Lt))/2/rt,$t=(-St-p.sqrt(St*St-4*rt*Lt))/2/rt,nr=[xe,Ae],gr=[ce,we];return c(Ft)>"1e12"&&(Ft=.5),c($t)>"1e12"&&($t=.5),Ft>0&&Ft<1&&(Re=Wr(ce,xe,Be,Fe,Xe,ct,we,Ae,Ft),gr.push(Re.x),nr.push(Re.y)),$t>0&&$t<1&&(Re=Wr(ce,xe,Be,Fe,Xe,ct,we,Ae,$t),gr.push(Re.x),nr.push(Re.y)),rt=ct-2*Fe+xe-(Ae-2*ct+Fe),Lt=xe-Fe,Ft=(-(St=2*(Fe-xe)-2*(ct-Fe))+p.sqrt(St*St-4*rt*Lt))/2/rt,$t=(-St-p.sqrt(St*St-4*rt*Lt))/2/rt,c(Ft)>"1e12"&&(Ft=.5),c($t)>"1e12"&&($t=.5),Ft>0&&Ft<1&&(Re=Wr(ce,xe,Be,Fe,Xe,ct,we,Ae,Ft),gr.push(Re.x),nr.push(Re.y)),$t>0&&$t<1&&(Re=Wr(ce,xe,Be,Fe,Xe,ct,we,Ae,$t),gr.push(Re.x),nr.push(Re.y)),{min:{x:S[N](0,gr),y:S[N](0,nr)},max:{x:y[N](0,gr),y:y[N](0,nr)}}}),Qt=w._path2curve=We(function(ce,xe){var Be=!xe&&De(ce);if(!xe&&Be.curve)return _t(Be.curve);for(var Fe=Bt(ce),Xe=xe&&Bt(xe),ct={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},we={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},Ae=function(Pr,_r,ti){var Qr,ri;if(!Pr)return["C",_r.x,_r.y,_r.x,_r.y,_r.x,_r.y];switch(!(Pr[0]in{T:1,Q:1})&&(_r.qx=_r.qy=null),Pr[0]){case"M":_r.X=Pr[1],_r.Y=Pr[2];break;case"A":Pr=["C"][ee](Ut[N](0,[_r.x,_r.y][ee](Pr.slice(1))));break;case"S":ti=="C"||ti=="S"?(Qr=2*_r.x-_r.bx,ri=2*_r.y-_r.by):(Qr=_r.x,ri=_r.y),Pr=["C",Qr,ri][ee](Pr.slice(1));break;case"T":ti=="Q"||ti=="T"?(_r.qx=2*_r.x-_r.qx,_r.qy=2*_r.y-_r.qy):(_r.qx=_r.x,_r.qy=_r.y),Pr=["C"][ee](kt(_r.x,_r.y,_r.qx,_r.qy,Pr[1],Pr[2]));break;case"Q":_r.qx=Pr[1],_r.qy=Pr[2],Pr=["C"][ee](kt(_r.x,_r.y,Pr[1],Pr[2],Pr[3],Pr[4]));break;case"L":Pr=["C"][ee](ur(_r.x,_r.y,Pr[1],Pr[2]));break;case"H":Pr=["C"][ee](ur(_r.x,_r.y,Pr[1],_r.y));break;case"V":Pr=["C"][ee](ur(_r.x,_r.y,_r.x,Pr[1]));break;case"Z":Pr=["C"][ee](ur(_r.x,_r.y,_r.X,_r.Y))}return Pr},Re=function(Pr,_r){if(Pr[_r].length>7){Pr[_r].shift();for(var ti=Pr[_r];ti.length;)St[_r]="A",Xe&&(Lt[_r]="A"),Pr.splice(_r++,0,["C"][ee](ti.splice(0,6)));Pr.splice(_r,1),gr=y(Fe.length,Xe&&Xe.length||0)}},rt=function(Pr,_r,ti,Qr,ri){Pr&&_r&&Pr[ri][0]=="M"&&_r[ri][0]!="M"&&(_r.splice(ri,0,["M",Qr.x,Qr.y]),ti.bx=0,ti.by=0,ti.x=Pr[ri][1],ti.y=Pr[ri][2],gr=y(Fe.length,Xe&&Xe.length||0))},St=[],Lt=[],Ft="",$t="",nr=0,gr=y(Fe.length,Xe&&Xe.length||0);nr<gr;nr++){Fe[nr]&&(Ft=Fe[nr][0]),Ft!="C"&&(St[nr]=Ft,nr&&($t=St[nr-1])),Fe[nr]=Ae(Fe[nr],ct,$t),St[nr]!="A"&&Ft=="C"&&(St[nr]="C"),Re(Fe,nr),Xe&&(Xe[nr]&&(Ft=Xe[nr][0]),Ft!="C"&&(Lt[nr]=Ft,nr&&($t=Lt[nr-1])),Xe[nr]=Ae(Xe[nr],we,$t),Lt[nr]!="A"&&Ft=="C"&&(Lt[nr]="C"),Re(Xe,nr)),rt(Fe,Xe,ct,we,nr),rt(Xe,Fe,we,ct,nr);var fr=Fe[nr],ar=Xe&&Xe[nr],Ur=fr.length,Er=Xe&&ar.length;ct.x=fr[Ur-2],ct.y=fr[Ur-1],ct.bx=J(fr[Ur-4])||ct.x,ct.by=J(fr[Ur-3])||ct.y,we.bx=Xe&&(J(ar[Er-4])||we.x),we.by=Xe&&(J(ar[Er-3])||we.y),we.x=Xe&&ar[Er-2],we.y=Xe&&ar[Er-1]}return Xe||(Be.curve=_t(Fe)),Xe?[Fe,Xe]:Fe},null,_t),$e=(w._parseDots=We(function(ce){for(var xe=[],Be=0,Fe=ce.length;Be<Fe;Be++){var Xe={},ct=ce[Be].match(/^([^:]*):?([\d\.]*)/);if(Xe.color=w.getRGB(ct[1]),Xe.color.error)return null;Xe.opacity=Xe.color.opacity,Xe.color=Xe.color.hex,ct[2]&&(Xe.offset=ct[2]+"%"),xe.push(Xe)}for(Be=1,Fe=xe.length-1;Be<Fe;Be++)if(!xe[Be].offset){for(var we=J(xe[Be-1].offset||0),Ae=0,Re=Be+1;Re<Fe;Re++)if(xe[Re].offset){Ae=xe[Re].offset;break}Ae||(Ae=100,Re=Fe);for(var rt=((Ae=J(Ae))-we)/(Re-Be+1);Be<Re;Be++)we+=rt,xe[Be].offset=we+"%"}return xe}),w._tear=function(ce,xe){ce==xe.top&&(xe.top=ce.prev),ce==xe.bottom&&(xe.bottom=ce.next),ce.next&&(ce.next.prev=ce.prev),ce.prev&&(ce.prev.next=ce.next)}),be=(w._tofront=function(ce,xe){xe.top!==ce&&($e(ce,xe),ce.next=null,ce.prev=xe.top,xe.top.next=ce,xe.top=ce)},w._toback=function(ce,xe){xe.bottom!==ce&&($e(ce,xe),ce.next=xe.bottom,ce.prev=null,xe.bottom.prev=ce,xe.bottom=ce)},w._insertafter=function(ce,xe,Be){$e(ce,Be),xe==Be.top&&(Be.top=ce),xe.next&&(xe.next.prev=ce),ce.next=xe.next,ce.prev=xe,xe.next=ce},w._insertbefore=function(ce,xe,Be){$e(ce,Be),xe==Be.bottom&&(Be.bottom=ce),xe.prev&&(xe.prev.next=ce),ce.prev=xe.prev,xe.prev=ce,ce.next=xe},w.toMatrix=function(ce,xe){var Be=Ne(ce),Fe={_:{transform:re},getBBox:function(){return Be}};return ve(Fe,xe),Fe.matrix}),ve=(w.transformPath=function(ce,xe){return bt(ce,be(ce,xe))},w._extractTransform=function(ce,xe){if(xe==null)return ce._.transform;xe=V(xe).replace(/\.{3}|\u2026/g,ce._.transform||re);var Be,Fe,Xe=w.parseTransformString(xe),ct=0,we=1,Ae=1,Re=ce._,rt=new ze;if(Re.transform=Xe||[],Xe)for(var St=0,Lt=Xe.length;St<Lt;St++){var Ft,$t,nr,gr,fr,ar=Xe[St],Ur=ar.length,Er=V(ar[0]).toLowerCase(),Pr=ar[0]!=Er,_r=Pr?rt.invert():0;Er=="t"&&Ur==3?Pr?(Ft=_r.x(0,0),$t=_r.y(0,0),nr=_r.x(ar[1],ar[2]),gr=_r.y(ar[1],ar[2]),rt.translate(nr-Ft,gr-$t)):rt.translate(ar[1],ar[2]):Er=="r"?Ur==2?(fr=fr||ce.getBBox(1),rt.rotate(ar[1],fr.x+fr.width/2,fr.y+fr.height/2),ct+=ar[1]):Ur==4&&(Pr?(nr=_r.x(ar[2],ar[3]),gr=_r.y(ar[2],ar[3]),rt.rotate(ar[1],nr,gr)):rt.rotate(ar[1],ar[2],ar[3]),ct+=ar[1]):Er=="s"?Ur==2||Ur==3?(fr=fr||ce.getBBox(1),rt.scale(ar[1],ar[Ur-1],fr.x+fr.width/2,fr.y+fr.height/2),we*=ar[1],Ae*=ar[Ur-1]):Ur==5&&(Pr?(nr=_r.x(ar[3],ar[4]),gr=_r.y(ar[3],ar[4]),rt.scale(ar[1],ar[2],nr,gr)):rt.scale(ar[1],ar[2],ar[3],ar[4]),we*=ar[1],Ae*=ar[2]):Er=="m"&&Ur==7&&rt.add(ar[1],ar[2],ar[3],ar[4],ar[5],ar[6]),Re.dirtyT=1,ce.matrix=rt}ce.matrix=rt,Re.sx=we,Re.sy=Ae,Re.deg=ct,Re.dx=Be=rt.e,Re.dy=Fe=rt.f,we==1&&Ae==1&&!ct&&Re.bbox?(Re.bbox.x+=+Be,Re.bbox.y+=+Fe):Re.dirtyT=1}),se=function(ce){var xe=ce[0];switch(xe.toLowerCase()){case"t":return[xe,0,0];case"m":return[xe,1,0,0,1,0,0];case"r":return ce.length==4?[xe,0,ce[2],ce[3]]:[xe,0];case"s":return ce.length==5?[xe,1,1,ce[3],ce[4]]:ce.length==3?[xe,1,1]:[xe,1]}},Pe=w._equaliseTransform=function(ce,xe){xe=V(xe).replace(/\.{3}|\u2026/g,ce),ce=w.parseTransformString(ce)||[],xe=w.parseTransformString(xe)||[];for(var Be,Fe,Xe,ct,we=y(ce.length,xe.length),Ae=[],Re=[],rt=0;rt<we;rt++){if(Xe=ce[rt]||se(xe[rt]),ct=xe[rt]||se(Xe),Xe[0]!=ct[0]||Xe[0].toLowerCase()=="r"&&(Xe[2]!=ct[2]||Xe[3]!=ct[3])||Xe[0].toLowerCase()=="s"&&(Xe[3]!=ct[3]||Xe[4]!=ct[4]))return;for(Ae[rt]=[],Re[rt]=[],Be=0,Fe=y(Xe.length,ct.length);Be<Fe;Be++)Be in Xe&&(Ae[rt][Be]=Xe[Be]),Be in ct&&(Re[rt][Be]=ct[Be])}return{from:Ae,to:Re}};function ze(ce,xe,Be,Fe,Xe,ct){ce!=null?(this.a=+ce,this.b=+xe,this.c=+Be,this.d=+Fe,this.e=+Xe,this.f=+ct):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}w._getContainer=function(ce,xe,Be,Fe){var Xe;if((Xe=Fe!=null||w.is(ce,"object")?ce:j.doc.getElementById(ce))!=null)return Xe.tagName?xe==null?{container:Xe,width:Xe.style.pixelWidth||Xe.offsetWidth,height:Xe.style.pixelHeight||Xe.offsetHeight}:{container:Xe,width:xe,height:Be}:{container:1,x:ce,y:xe,width:Be,height:Fe}},w.pathToRelative=pt,w._engine={},w.path2curve=Qt,w.matrix=function(ce,xe,Be,Fe,Xe,ct){return new ze(ce,xe,Be,Fe,Xe,ct)},function(ce){function xe(Fe){return Fe[0]*Fe[0]+Fe[1]*Fe[1]}function Be(Fe){var Xe=p.sqrt(xe(Fe));Fe[0]&&(Fe[0]/=Xe),Fe[1]&&(Fe[1]/=Xe)}ce.add=function(Fe,Xe,ct,we,Ae,Re){var rt,St,Lt,Ft,$t=[[],[],[]],nr=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],gr=[[Fe,ct,Ae],[Xe,we,Re],[0,0,1]];for(Fe&&Fe instanceof ze&&(gr=[[Fe.a,Fe.c,Fe.e],[Fe.b,Fe.d,Fe.f],[0,0,1]]),rt=0;rt<3;rt++)for(St=0;St<3;St++){for(Ft=0,Lt=0;Lt<3;Lt++)Ft+=nr[rt][Lt]*gr[Lt][St];$t[rt][St]=Ft}this.a=$t[0][0],this.b=$t[1][0],this.c=$t[0][1],this.d=$t[1][1],this.e=$t[0][2],this.f=$t[1][2]},ce.invert=function(){var Fe=this,Xe=Fe.a*Fe.d-Fe.b*Fe.c;return new ze(Fe.d/Xe,-Fe.b/Xe,-Fe.c/Xe,Fe.a/Xe,(Fe.c*Fe.f-Fe.d*Fe.e)/Xe,(Fe.b*Fe.e-Fe.a*Fe.f)/Xe)},ce.clone=function(){return new ze(this.a,this.b,this.c,this.d,this.e,this.f)},ce.translate=function(Fe,Xe){this.add(1,0,0,1,Fe,Xe)},ce.scale=function(Fe,Xe,ct,we){Xe==null&&(Xe=Fe),(ct||we)&&this.add(1,0,0,1,ct,we),this.add(Fe,0,0,Xe,0,0),(ct||we)&&this.add(1,0,0,1,-ct,-we)},ce.rotate=function(Fe,Xe,ct){Fe=w.rad(Fe),Xe=Xe||0,ct=ct||0;var we=+p.cos(Fe).toFixed(9),Ae=+p.sin(Fe).toFixed(9);this.add(we,Ae,-Ae,we,Xe,ct),this.add(1,0,0,1,-Xe,-ct)},ce.x=function(Fe,Xe){return Fe*this.a+Xe*this.c+this.e},ce.y=function(Fe,Xe){return Fe*this.b+Xe*this.d+this.f},ce.get=function(Fe){return+this[V.fromCharCode(97+Fe)].toFixed(4)},ce.toString=function(){return w.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},ce.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},ce.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},ce.split=function(){var Fe={};Fe.dx=this.e,Fe.dy=this.f;var Xe=[[this.a,this.c],[this.b,this.d]];Fe.scalex=p.sqrt(xe(Xe[0])),Be(Xe[0]),Fe.shear=Xe[0][0]*Xe[1][0]+Xe[0][1]*Xe[1][1],Xe[1]=[Xe[1][0]-Xe[0][0]*Fe.shear,Xe[1][1]-Xe[0][1]*Fe.shear],Fe.scaley=p.sqrt(xe(Xe[1])),Be(Xe[1]),Fe.shear/=Fe.scaley;var ct=-Xe[0][1],we=Xe[1][1];return we<0?(Fe.rotate=w.deg(p.acos(we)),ct<0&&(Fe.rotate=360-Fe.rotate)):Fe.rotate=w.deg(p.asin(ct)),Fe.isSimple=!(+Fe.shear.toFixed(9)||Fe.scalex.toFixed(9)!=Fe.scaley.toFixed(9)&&Fe.rotate),Fe.isSuperSimple=!+Fe.shear.toFixed(9)&&Fe.scalex.toFixed(9)==Fe.scaley.toFixed(9)&&!Fe.rotate,Fe.noRotation=!+Fe.shear.toFixed(9)&&!Fe.rotate,Fe},ce.toTransformString=function(Fe){var Xe=Fe||this[le]();return Xe.isSimple?(Xe.scalex=+Xe.scalex.toFixed(4),Xe.scaley=+Xe.scaley.toFixed(4),Xe.rotate=+Xe.rotate.toFixed(4),(Xe.dx||Xe.dy?"t"+[Xe.dx,Xe.dy]:re)+(Xe.scalex!=1||Xe.scaley!=1?"s"+[Xe.scalex,Xe.scaley,0,0]:re)+(Xe.rotate?"r"+[Xe.rotate,0,0]:re)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(ze.prototype);for(var xt=function(){this.returnValue=!1},ot=function(){return this.originalEvent.preventDefault()},wt=function(){this.cancelBubble=!0},Yt=function(){return this.originalEvent.stopPropagation()},Jt=function(ce){var xe=j.doc.documentElement.scrollTop||j.doc.body.scrollTop,Be=j.doc.documentElement.scrollLeft||j.doc.body.scrollLeft;return{x:ce.clientX+Be,y:ce.clientY+xe}},wr=j.doc.addEventListener?function(ce,xe,Be,Fe){var Xe=function(we){var Ae=Jt(we);return Be.call(Fe,we,Ae.x,Ae.y)};if(ce.addEventListener(xe,Xe,!1),Z&&ye[xe]){var ct=function(we){for(var Ae=Jt(we),Re=we,rt=0,St=we.targetTouches&&we.targetTouches.length;rt<St;rt++)if(we.targetTouches[rt].target==ce){(we=we.targetTouches[rt]).originalEvent=Re,we.preventDefault=ot,we.stopPropagation=Yt;break}return Be.call(Fe,we,Ae.x,Ae.y)};ce.addEventListener(ye[xe],ct,!1)}return function(){return ce.removeEventListener(xe,Xe,!1),Z&&ye[xe]&&ce.removeEventListener(ye[xe],ct,!1),!0}}:j.doc.attachEvent?function(ce,xe,Be,Fe){var Xe=function(ct){ct=ct||j.win.event;var we=j.doc.documentElement.scrollTop||j.doc.body.scrollTop,Ae=j.doc.documentElement.scrollLeft||j.doc.body.scrollLeft,Re=ct.clientX+Ae,rt=ct.clientY+we;return ct.preventDefault=ct.preventDefault||xt,ct.stopPropagation=ct.stopPropagation||wt,Be.call(Fe,ct,Re,rt)};return ce.attachEvent("on"+xe,Xe),function(){return ce.detachEvent("on"+xe,Xe),!0}}:void 0,lr=[],Rr=function(ce){for(var xe,Be=ce.clientX,Fe=ce.clientY,Xe=j.doc.documentElement.scrollTop||j.doc.body.scrollTop,ct=j.doc.documentElement.scrollLeft||j.doc.body.scrollLeft,we=lr.length;we--;){if(xe=lr[we],Z&&ce.touches){for(var Ae,Re=ce.touches.length;Re--;)if((Ae=ce.touches[Re]).identifier==xe.el._drag.id){Be=Ae.clientX,Fe=Ae.clientY,(ce.originalEvent?ce.originalEvent:ce).preventDefault();break}}else ce.preventDefault();var rt,St=xe.el.node,Lt=St.nextSibling,Ft=St.parentNode,$t=St.style.display;j.win.opera&&Ft.removeChild(St),St.style.display="none",rt=xe.el.paper.getElementByPoint(Be,Fe),St.style.display=$t,j.win.opera&&(Lt?Ft.insertBefore(St,Lt):Ft.appendChild(St)),rt&&v("raphael.drag.over."+xe.el.id,xe.el,rt),Be+=ct,Fe+=Xe,v("raphael.drag.move."+xe.el.id,xe.move_scope||xe.el,Be-xe.el._drag.x,Fe-xe.el._drag.y,Be,Fe,ce)}},vr=function(ce){w.unmousemove(Rr).unmouseup(vr);for(var xe,Be=lr.length;Be--;)(xe=lr[Be]).el._drag={},v("raphael.drag.end."+xe.el.id,xe.end_scope||xe.start_scope||xe.move_scope||xe.el,ce);lr=[]},dr=w.el={},Ir=he.length;Ir--;)(function(ce){w[ce]=dr[ce]=function(xe,Be){return w.is(xe,"function")&&(this.events=this.events||[],this.events.push({name:ce,f:xe,unbind:wr(this.shape||this.node||j.doc,ce,xe,Be||this)})),this},w["un"+ce]=dr["un"+ce]=function(xe){for(var Be=this.events||[],Fe=Be.length;Fe--;)Be[Fe].name!=ce||!w.is(xe,"undefined")&&Be[Fe].f!=xe||(Be[Fe].unbind(),Be.splice(Fe,1),!Be.length&&delete this.events);return this}})(he[Ir]);dr.data=function(ce,xe){var Be=dt[this.id]=dt[this.id]||{};if(arguments.length==0)return Be;if(arguments.length==1){if(w.is(ce,"object")){for(var Fe in ce)ce[I](Fe)&&this.data(Fe,ce[Fe]);return this}return v("raphael.data.get."+this.id,this,Be[ce],ce),Be[ce]}return Be[ce]=xe,v("raphael.data.set."+this.id,this,xe,ce),this},dr.removeData=function(ce){return ce==null?delete dt[this.id]:dt[this.id]&&delete dt[this.id][ce],this},dr.getData=function(){return Qe(dt[this.id]||{})},dr.hover=function(ce,xe,Be,Fe){return this.mouseover(ce,Be).mouseout(xe,Fe||Be)},dr.unhover=function(ce,xe){return this.unmouseover(ce).unmouseout(xe)};var kr=[];dr.drag=function(ce,xe,Be,Fe,Xe,ct){function we(Ae){(Ae.originalEvent||Ae).preventDefault();var Re=Ae.clientX,rt=Ae.clientY,St=j.doc.documentElement.scrollTop||j.doc.body.scrollTop,Lt=j.doc.documentElement.scrollLeft||j.doc.body.scrollLeft;if(this._drag.id=Ae.identifier,Z&&Ae.touches){for(var Ft,$t=Ae.touches.length;$t--;)if(Ft=Ae.touches[$t],this._drag.id=Ft.identifier,Ft.identifier==this._drag.id){Re=Ft.clientX,rt=Ft.clientY;break}}this._drag.x=Re+Lt,this._drag.y=rt+St,!lr.length&&w.mousemove(Rr).mouseup(vr),lr.push({el:this,move_scope:Fe,start_scope:Xe,end_scope:ct}),xe&&v.on("raphael.drag.start."+this.id,xe),ce&&v.on("raphael.drag.move."+this.id,ce),Be&&v.on("raphael.drag.end."+this.id,Be),v("raphael.drag.start."+this.id,Xe||Fe||this,this._drag.x,this._drag.y,Ae)}return this._drag={},kr.push({el:this,start:we}),this.mousedown(we),this},dr.onDragOver=function(ce){ce?v.on("raphael.drag.over."+this.id,ce):v.unbind("raphael.drag.over."+this.id)},dr.undrag=function(){for(var ce=kr.length;ce--;)kr[ce].el==this&&(this.unmousedown(kr[ce].start),kr.splice(ce,1),v.unbind("raphael.drag.*."+this.id));!kr.length&&w.unmousemove(Rr).unmouseup(vr),lr=[]},E.circle=function(ce,xe,Be){var Fe=w._engine.circle(this,ce||0,xe||0,Be||0);return this.__set__&&this.__set__.push(Fe),Fe},E.rect=function(ce,xe,Be,Fe,Xe){var ct=w._engine.rect(this,ce||0,xe||0,Be||0,Fe||0,Xe||0);return this.__set__&&this.__set__.push(ct),ct},E.ellipse=function(ce,xe,Be,Fe){var Xe=w._engine.ellipse(this,ce||0,xe||0,Be||0,Fe||0);return this.__set__&&this.__set__.push(Xe),Xe},E.path=function(ce){ce&&!w.is(ce,"string")&&!w.is(ce[0],b)&&(ce+=re);var xe=w._engine.path(w.format[N](w,arguments),this);return this.__set__&&this.__set__.push(xe),xe},E.image=function(ce,xe,Be,Fe,Xe){var ct=w._engine.image(this,ce||"about:blank",xe||0,Be||0,Fe||0,Xe||0);return this.__set__&&this.__set__.push(ct),ct},E.text=function(ce,xe,Be){var Fe=w._engine.text(this,ce||0,xe||0,V(Be));return this.__set__&&this.__set__.push(Fe),Fe},E.set=function(ce){!w.is(ce,"array")&&(ce=Array.prototype.splice.call(arguments,0,arguments.length));var xe=new Jr(ce);return this.__set__&&this.__set__.push(xe),xe.paper=this,xe.type="set",xe},E.setStart=function(ce){this.__set__=ce||this.set()},E.setFinish=function(ce){var xe=this.__set__;return delete this.__set__,xe},E.getSize=function(){var ce=this.canvas.parentNode;return{width:ce.offsetWidth,height:ce.offsetHeight}},E.setSize=function(ce,xe){return w._engine.setSize.call(this,ce,xe)},E.setViewBox=function(ce,xe,Be,Fe,Xe){return w._engine.setViewBox.call(this,ce,xe,Be,Fe,Xe)},E.top=E.bottom=null,E.raphael=w;function Fr(){return this.x+fe+this.y+fe+this.width+" × "+this.height}E.getElementByPoint=function(ce,xe){var Be,Fe,Xe,ct,we,Ae,Re,rt=this.canvas,St=j.doc.elementFromPoint(ce,xe);if(j.win.opera&&St.tagName=="svg"){var Lt=(Fe=(Be=rt).getBoundingClientRect(),Xe=Be.ownerDocument,ct=Xe.body,we=Xe.documentElement,Ae=we.clientTop||ct.clientTop||0,Re=we.clientLeft||ct.clientLeft||0,{y:Fe.top+(j.win.pageYOffset||we.scrollTop||ct.scrollTop)-Ae,x:Fe.left+(j.win.pageXOffset||we.scrollLeft||ct.scrollLeft)-Re}),Ft=rt.createSVGRect();Ft.x=ce-Lt.x,Ft.y=xe-Lt.y,Ft.width=Ft.height=1;var $t=rt.getIntersectionList(Ft,null);$t.length&&(St=$t[$t.length-1])}if(!St)return null;for(;St.parentNode&&St!=rt.parentNode&&!St.raphael;)St=St.parentNode;return St==this.canvas.parentNode&&(St=rt),St=St&&St.raphael?this.getById(St.raphaelid):null},E.getElementsByBBox=function(ce){var xe=this.set();return this.forEach(function(Be){w.isBBoxIntersect(Be.getBBox(),ce)&&xe.push(Be)}),xe},E.getById=function(ce){for(var xe=this.bottom;xe;){if(xe.id==ce)return xe;xe=xe.next}return null},E.forEach=function(ce,xe){for(var Be=this.bottom;Be;){if(ce.call(xe,Be)===!1)return this;Be=Be.next}return this},E.getElementsByPoint=function(ce,xe){var Be=this.set();return this.forEach(function(Fe){Fe.isPointInside(ce,xe)&&Be.push(Fe)}),Be},dr.isPointInside=function(ce,xe){var Be=this.realPath=at[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(Be=w.transformPath(Be,this.attr("transform"))),w.isPointInsidePath(Be,ce,xe)},dr.getBBox=function(ce){if(this.removed)return{};var xe=this._;return ce?(!xe.dirty&&xe.bboxwt||(this.realPath=at[this.type](this),xe.bboxwt=Ne(this.realPath),xe.bboxwt.toString=Fr,xe.dirty=0),xe.bboxwt):((xe.dirty||xe.dirtyT||!xe.bbox)&&(!xe.dirty&&this.realPath||(xe.bboxwt=0,this.realPath=at[this.type](this)),xe.bbox=Ne(bt(this.realPath,this.matrix)),xe.bbox.toString=Fr,xe.dirty=xe.dirtyT=0),xe.bbox)},dr.clone=function(){if(this.removed)return null;var ce=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(ce),ce},dr.glow=function(ce){if(this.type=="text")return null;var xe={width:((ce=ce||{}).width||10)+(+this.attr("stroke-width")||1),fill:ce.fill||!1,opacity:ce.opacity==null?.5:ce.opacity,offsetx:ce.offsetx||0,offsety:ce.offsety||0,color:ce.color||"#000"},Be=xe.width/2,Fe=this.paper,Xe=Fe.set(),ct=this.realPath||at[this.type](this);ct=this.matrix?bt(ct,this.matrix):ct;for(var we=1;we<Be+1;we++)Xe.push(Fe.path(ct).attr({stroke:xe.color,fill:xe.fill?xe.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(xe.width/Be*we).toFixed(3),opacity:+(xe.opacity/Be).toFixed(3)}));return Xe.insertBefore(this).translate(xe.offsetx,xe.offsety)};var jr=function(ce,xe,Be,Fe,Xe,ct,we,Ae,Re){return Re==null?Mt(ce,xe,Be,Fe,Xe,ct,we,Ae):w.findDotsAtSegment(ce,xe,Be,Fe,Xe,ct,we,Ae,function(rt,St,Lt,Ft,$t,nr,gr,fr,ar){if(!(ar<0||Mt(rt,St,Lt,Ft,$t,nr,gr,fr)<ar)){var Ur,Er=.5,Pr=1-Er;for(Ur=Mt(rt,St,Lt,Ft,$t,nr,gr,fr,Pr);c(Ur-ar)>.01;)Ur=Mt(rt,St,Lt,Ft,$t,nr,gr,fr,Pr+=(Ur<ar?1:-1)*(Er/=2));return Pr}}(ce,xe,Be,Fe,Xe,ct,we,Ae,Re))},Cr=function(ce,xe){return function(Be,Fe,Xe){for(var ct,we,Ae,Re,rt,St="",Lt={},Ft=0,$t=0,nr=(Be=Qt(Be)).length;$t<nr;$t++){if((Ae=Be[$t])[0]=="M")ct=+Ae[1],we=+Ae[2];else{if(Ft+(Re=jr(ct,we,Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6]))>Fe){if(xe&&!Lt.start){if(St+=["C"+(rt=jr(ct,we,Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Fe-Ft)).start.x,rt.start.y,rt.m.x,rt.m.y,rt.x,rt.y],Xe)return St;Lt.start=St,St=["M"+rt.x,rt.y+"C"+rt.n.x,rt.n.y,rt.end.x,rt.end.y,Ae[5],Ae[6]].join(),Ft+=Re,ct=+Ae[5],we=+Ae[6];continue}if(!ce&&!xe)return{x:(rt=jr(ct,we,Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Fe-Ft)).x,y:rt.y,alpha:rt.alpha}}Ft+=Re,ct=+Ae[5],we=+Ae[6]}St+=Ae.shift()+Ae}return Lt.end=St,(rt=ce?Ft:xe?Lt:w.findDotsAtSegment(ct,we,Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],1)).alpha&&(rt={x:rt.x,y:rt.y,alpha:rt.alpha}),rt}},Lr=Cr(1),Ar=Cr(),Tr=Cr(0,1);w.getTotalLength=Lr,w.getPointAtLength=Ar,w.getSubpath=function(ce,xe,Be){if(this.getTotalLength(ce)-Be<1e-6)return Tr(ce,xe).end;var Fe=Tr(ce,Be,1);return xe?Tr(Fe,xe).end:Fe},dr.getTotalLength=function(){var ce=this.getPath();if(ce)return this.node.getTotalLength?this.node.getTotalLength():Lr(ce)},dr.getPointAtLength=function(ce){var xe=this.getPath();if(xe)return Ar(xe,ce)},dr.getPath=function(){var ce,xe=w._getPath[this.type];if(this.type!="text"&&this.type!="set")return xe&&(ce=xe(this)),ce},dr.getSubpath=function(ce,xe){var Be=this.getPath();if(Be)return w.getSubpath(Be,ce,xe)};var Sr=w.easing_formulas={linear:function(ce){return ce},"<":function(ce){return m(ce,1.7)},">":function(ce){return m(ce,.48)},"<>":function(ce){var xe=.48-ce/1.04,Be=p.sqrt(.1734+xe*xe),Fe=Be-xe,Xe=-Be-xe,ct=m(c(Fe),1/3)*(Fe<0?-1:1)+m(c(Xe),1/3)*(Xe<0?-1:1)+.5;return 3*(1-ct)*ct*ct+ct*ct*ct},backIn:function(ce){var xe=1.70158;return ce*ce*((xe+1)*ce-xe)},backOut:function(ce){var xe=1.70158;return(ce-=1)*ce*((xe+1)*ce+xe)+1},elastic:function(ce){return ce==!!ce?ce:m(2,-10*ce)*p.sin(2*x*(ce-.075)/.3)+1},bounce:function(ce){var xe=7.5625,Be=2.75;return ce<1/Be?xe*ce*ce:ce<2/Be?xe*(ce-=1.5/Be)*ce+.75:ce<2.5/Be?xe*(ce-=2.25/Be)*ce+.9375:xe*(ce-=2.625/Be)*ce+.984375}};Sr.easeIn=Sr["ease-in"]=Sr["<"],Sr.easeOut=Sr["ease-out"]=Sr[">"],Sr.easeInOut=Sr["ease-in-out"]=Sr["<>"],Sr["back-in"]=Sr.backIn,Sr["back-out"]=Sr.backOut;var rr=[],Nt=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(ce){setTimeout(ce,16)},Gt=function(){for(var ce=+new Date,xe=0;xe<rr.length;xe++){var Be=rr[xe];if(!Be.el.removed&&!Be.paused){var Fe,Xe,ct=ce-Be.start,we=Be.ms,Ae=Be.easing,Re=Be.from,rt=Be.diff,St=Be.to,Lt=(Be.t,Be.el),Ft={},$t={};if(Be.initstatus?(ct=(Be.initstatus*Be.anim.top-Be.prev)/(Be.percent-Be.prev)*we,Be.status=Be.initstatus,delete Be.initstatus,Be.stop&&rr.splice(xe--,1)):Be.status=(Be.prev+(Be.percent-Be.prev)*(ct/we))/Be.anim.top,!(ct<0))if(ct<we){var nr=Ae(ct/we);for(var gr in Re)if(Re[I](gr)){switch(ie[gr]){case T:Fe=+Re[gr]+nr*we*rt[gr];break;case"colour":Fe="rgb("+[xr(Q(Re[gr].r+nr*we*rt[gr].r)),xr(Q(Re[gr].g+nr*we*rt[gr].g)),xr(Q(Re[gr].b+nr*we*rt[gr].b))].join(",")+")";break;case"path":Fe=[];for(var fr=0,ar=Re[gr].length;fr<ar;fr++){Fe[fr]=[Re[gr][fr][0]];for(var Ur=1,Er=Re[gr][fr].length;Ur<Er;Ur++)Fe[fr][Ur]=+Re[gr][fr][Ur]+nr*we*rt[gr][fr][Ur];Fe[fr]=Fe[fr].join(fe)}Fe=Fe.join(fe);break;case"transform":if(rt[gr].real)for(Fe=[],fr=0,ar=Re[gr].length;fr<ar;fr++)for(Fe[fr]=[Re[gr][fr][0]],Ur=1,Er=Re[gr][fr].length;Ur<Er;Ur++)Fe[fr][Ur]=Re[gr][fr][Ur]+nr*we*rt[gr][fr][Ur];else{var Pr=function(ti){return+Re[gr][ti]+nr*we*rt[gr][ti]};Fe=[["m",Pr(0),Pr(1),Pr(2),Pr(3),Pr(4),Pr(5)]]}break;case"csv":if(gr=="clip-rect")for(Fe=[],fr=4;fr--;)Fe[fr]=+Re[gr][fr]+nr*we*rt[gr][fr];break;default:var _r=[][ee](Re[gr]);for(Fe=[],fr=Lt.paper.customAttributes[gr].length;fr--;)Fe[fr]=+_r[fr]+nr*we*rt[gr][fr]}Ft[gr]=Fe}Lt.attr(Ft),function(ti,Qr,ri){setTimeout(function(){v("raphael.anim.frame."+ti,Qr,ri)})}(Lt.id,Lt,Be.anim)}else{if(function(ti,Qr,ri){setTimeout(function(){v("raphael.anim.frame."+Qr.id,Qr,ri),v("raphael.anim.finish."+Qr.id,Qr,ri),w.is(ti,"function")&&ti.call(Qr)})}(Be.callback,Lt,Be.anim),Lt.attr(St),rr.splice(xe--,1),Be.repeat>1&&!Be.next){for(Xe in St)St[I](Xe)&&($t[Xe]=Be.totalOrigin[Xe]);Be.el.attr($t),br(Be.anim,Be.el,Be.anim.percents[0],null,Be.totalOrigin,Be.repeat-1)}Be.next&&!Be.stop&&br(Be.anim,Be.el,Be.next,null,Be.totalOrigin,Be.repeat)}}}rr.length&&Nt(Gt)},xr=function(ce){return ce>255?255:ce<0?0:ce};function pr(ce,xe,Be,Fe,Xe,ct){var we=3*xe,Ae=3*(Fe-xe)-we,Re=1-we-Ae,rt=3*Be,St=3*(Xe-Be)-rt,Lt=1-rt-St;function Ft($t){return((Re*$t+Ae)*$t+we)*$t}return function($t,nr){var gr=function(fr,ar){var Ur,Er,Pr,_r,ti,Qr;for(Pr=fr,Qr=0;Qr<8;Qr++){if(_r=Ft(Pr)-fr,c(_r)<ar)return Pr;if(c(ti=(3*Re*Pr+2*Ae)*Pr+we)<1e-6)break;Pr-=_r/ti}if(Er=1,(Pr=fr)<(Ur=0))return Ur;if(Pr>Er)return Er;for(;Ur<Er;){if(_r=Ft(Pr),c(_r-fr)<ar)return Pr;fr>_r?Ur=Pr:Er=Pr,Pr=(Er-Ur)/2+Ur}return Pr}($t,nr);return((Lt*gr+St)*gr+rt)*gr}(ce,1/(200*ct))}function tr(ce,xe){var Be=[],Fe={};if(this.ms=xe,this.times=1,ce){for(var Xe in ce)ce[I](Xe)&&(Fe[J(Xe)]=ce[Xe],Be.push(J(Xe)));Be.sort(Tt)}this.anim=Fe,this.top=Be[Be.length-1],this.percents=Be}function br(ce,xe,Be,Fe,Xe,ct){Be=J(Be);var we,Ae,Re,rt,St,Lt,Ft=ce.ms,$t={},nr={},gr={};if(Fe)for(ar=0,Ur=rr.length;ar<Ur;ar++){var fr=rr[ar];if(fr.el.id==xe.id&&fr.anim==ce){fr.percent!=Be?(rr.splice(ar,1),Re=1):Ae=fr,xe.attr(fr.totalOrigin);break}}else Fe=+nr;for(var ar=0,Ur=ce.percents.length;ar<Ur;ar++){if(ce.percents[ar]==Be||ce.percents[ar]>Fe*ce.top){Be=ce.percents[ar],St=ce.percents[ar-1]||0,Ft=Ft/ce.top*(Be-St),rt=ce.percents[ar+1],we=ce.anim[Be];break}Fe&&xe.attr(ce.anim[ce.percents[ar]])}if(we){if(Ae)Ae.initstatus=Fe,Ae.start=new Date-Ae.ms*Fe;else{for(var Er in we)if(we[I](Er)&&(ie[I](Er)||xe.paper.customAttributes[I](Er)))switch($t[Er]=xe.attr(Er),$t[Er]==null&&($t[Er]=z[Er]),nr[Er]=we[Er],ie[Er]){case T:gr[Er]=(nr[Er]-$t[Er])/Ft;break;case"colour":$t[Er]=w.getRGB($t[Er]);var Pr=w.getRGB(nr[Er]);gr[Er]={r:(Pr.r-$t[Er].r)/Ft,g:(Pr.g-$t[Er].g)/Ft,b:(Pr.b-$t[Er].b)/Ft};break;case"path":var _r=Qt($t[Er],nr[Er]),ti=_r[1];for($t[Er]=_r[0],gr[Er]=[],ar=0,Ur=$t[Er].length;ar<Ur;ar++){gr[Er][ar]=[0];for(var Qr=1,ri=$t[Er][ar].length;Qr<ri;Qr++)gr[Er][ar][Qr]=(ti[ar][Qr]-$t[Er][ar][Qr])/Ft}break;case"transform":var Xi=xe._,Zi=Pe(Xi[Er],nr[Er]);if(Zi)for($t[Er]=Zi.from,nr[Er]=Zi.to,gr[Er]=[],gr[Er].real=!0,ar=0,Ur=$t[Er].length;ar<Ur;ar++)for(gr[Er][ar]=[$t[Er][ar][0]],Qr=1,ri=$t[Er][ar].length;Qr<ri;Qr++)gr[Er][ar][Qr]=(nr[Er][ar][Qr]-$t[Er][ar][Qr])/Ft;else{var li=xe.matrix||new ze,oi={_:{transform:Xi.transform},getBBox:function(){return xe.getBBox(1)}};$t[Er]=[li.a,li.b,li.c,li.d,li.e,li.f],ve(oi,nr[Er]),nr[Er]=oi._.transform,gr[Er]=[(oi.matrix.a-li.a)/Ft,(oi.matrix.b-li.b)/Ft,(oi.matrix.c-li.c)/Ft,(oi.matrix.d-li.d)/Ft,(oi.matrix.e-li.e)/Ft,(oi.matrix.f-li.f)/Ft]}break;case"csv":var Tn=V(we[Er])[le](C),an=V($t[Er])[le](C);if(Er=="clip-rect")for($t[Er]=an,gr[Er]=[],ar=an.length;ar--;)gr[Er][ar]=(Tn[ar]-$t[Er][ar])/Ft;nr[Er]=Tn;break;default:for(Tn=[][ee](we[Er]),an=[][ee]($t[Er]),gr[Er]=[],ar=xe.paper.customAttributes[Er].length;ar--;)gr[Er][ar]=((Tn[ar]||0)-(an[ar]||0))/Ft}var Rn=we.easing,Ui=w.easing_formulas[Rn];if(!Ui)if((Ui=V(Rn).match(O))&&Ui.length==5){var sn=Ui;Ui=function(Gn){return pr(Gn,+sn[1],+sn[2],+sn[3],+sn[4],Ft)}}else Ui=lt;if(fr={anim:ce,percent:Be,timestamp:Lt=we.start||ce.start||+new Date,start:Lt+(ce.del||0),status:0,initstatus:Fe||0,stop:!1,ms:Ft,easing:Ui,from:$t,diff:gr,to:nr,el:xe,callback:we.callback,prev:St,next:rt,repeat:ct||ce.times,origin:xe.attr(),totalOrigin:Xe},rr.push(fr),Fe&&!Ae&&!Re&&(fr.stop=!0,fr.start=new Date-Ft*Fe,rr.length==1))return Gt();Re&&(fr.start=new Date-fr.ms*Fe),rr.length==1&&Nt(Gt)}v("raphael.anim.start."+xe.id,xe,ce)}}function Nr(ce){for(var xe=0;xe<rr.length;xe++)rr[xe].el.paper==ce&&rr.splice(xe--,1)}dr.animateWith=function(ce,xe,Be,Fe,Xe,ct){if(this.removed)return ct&&ct.call(this),this;var we=Be instanceof tr?Be:w.animation(Be,Fe,Xe,ct);br(we,this,we.percents[0],null,this.attr());for(var Ae=0,Re=rr.length;Ae<Re;Ae++)if(rr[Ae].anim==xe&&rr[Ae].el==ce){rr[Re-1].start=rr[Ae].start;break}return this},dr.onAnimation=function(ce){return ce?v.on("raphael.anim.frame."+this.id,ce):v.unbind("raphael.anim.frame."+this.id),this},tr.prototype.delay=function(ce){var xe=new tr(this.anim,this.ms);return xe.times=this.times,xe.del=+ce||0,xe},tr.prototype.repeat=function(ce){var xe=new tr(this.anim,this.ms);return xe.del=this.del,xe.times=p.floor(y(ce,0))||1,xe},w.animation=function(ce,xe,Be,Fe){if(ce instanceof tr)return ce;!w.is(Be,"function")&&Be||(Fe=Fe||Be||null,Be=null),ce=Object(ce),xe=+xe||0;var Xe,ct,we={};for(ct in ce)ce[I](ct)&&J(ct)!=ct&&J(ct)+"%"!=ct&&(Xe=!0,we[ct]=ce[ct]);if(Xe)return Be&&(we.easing=Be),Fe&&(we.callback=Fe),new tr({100:we},xe);if(Fe){var Ae=0;for(var Re in ce){var rt=X(Re);ce[I](Re)&&rt>Ae&&(Ae=rt)}!ce[Ae+="%"].callback&&(ce[Ae].callback=Fe)}return new tr(ce,xe)},dr.animate=function(ce,xe,Be,Fe){if(this.removed)return Fe&&Fe.call(this),this;var Xe=ce instanceof tr?ce:w.animation(ce,xe,Be,Fe);return br(Xe,this,Xe.percents[0],null,this.attr()),this},dr.setTime=function(ce,xe){return ce&&xe!=null&&this.status(ce,S(xe,ce.ms)/ce.ms),this},dr.status=function(ce,xe){var Be,Fe,Xe=[],ct=0;if(xe!=null)return br(ce,this,-1,S(xe,1)),this;for(Be=rr.length;ct<Be;ct++)if((Fe=rr[ct]).el.id==this.id&&(!ce||Fe.anim==ce)){if(ce)return Fe.status;Xe.push({anim:Fe.anim,status:Fe.status})}return ce?0:Xe},dr.pause=function(ce){for(var xe=0;xe<rr.length;xe++)rr[xe].el.id!=this.id||ce&&rr[xe].anim!=ce||v("raphael.anim.pause."+this.id,this,rr[xe].anim)!==!1&&(rr[xe].paused=!0);return this},dr.resume=function(ce){for(var xe=0;xe<rr.length;xe++)if(rr[xe].el.id==this.id&&(!ce||rr[xe].anim==ce)){var Be=rr[xe];v("raphael.anim.resume."+this.id,this,Be.anim)!==!1&&(delete Be.paused,this.status(Be.anim,Be.status))}return this},dr.stop=function(ce){for(var xe=0;xe<rr.length;xe++)rr[xe].el.id!=this.id||ce&&rr[xe].anim!=ce||v("raphael.anim.stop."+this.id,this,rr[xe].anim)!==!1&&rr.splice(xe--,1);return this},v.on("raphael.remove",Nr),v.on("raphael.clear",Nr),dr.toString=function(){return"Raphaël’s object"};var Yr,ei,Hr,Pt,Jr=function(ce){if(this.items=[],this.length=0,this.type="set",ce)for(var xe=0,Be=ce.length;xe<Be;xe++)!ce[xe]||ce[xe].constructor!=dr.constructor&&ce[xe].constructor!=Jr||(this[this.items.length]=this.items[this.items.length]=ce[xe],this.length++)},Xr=Jr.prototype;for(var fi in Xr.push=function(){for(var ce,xe,Be=0,Fe=arguments.length;Be<Fe;Be++)!(ce=arguments[Be])||ce.constructor!=dr.constructor&&ce.constructor!=Jr||(this[xe=this.items.length]=this.items[xe]=ce,this.length++);return this},Xr.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Xr.forEach=function(ce,xe){for(var Be=0,Fe=this.items.length;Be<Fe;Be++)if(ce.call(xe,this.items[Be],Be)===!1)return this;return this},dr)dr[I](fi)&&(Xr[fi]=function(ce){return function(){var xe=arguments;return this.forEach(function(Be){Be[ce][N](Be,xe)})}}(fi));return Xr.attr=function(ce,xe){if(ce&&w.is(ce,b)&&w.is(ce[0],"object"))for(var Be=0,Fe=ce.length;Be<Fe;Be++)this.items[Be].attr(ce[Be]);else for(var Xe=0,ct=this.items.length;Xe<ct;Xe++)this.items[Xe].attr(ce,xe);return this},Xr.clear=function(){for(;this.length;)this.pop()},Xr.splice=function(ce,xe,Be){ce=ce<0?y(this.length+ce,0):ce,xe=y(0,S(this.length-ce,xe));var Fe,Xe=[],ct=[],we=[];for(Fe=2;Fe<arguments.length;Fe++)we.push(arguments[Fe]);for(Fe=0;Fe<xe;Fe++)ct.push(this[ce+Fe]);for(;Fe<this.length-ce;Fe++)Xe.push(this[ce+Fe]);var Ae=we.length;for(Fe=0;Fe<Ae+Xe.length;Fe++)this.items[ce+Fe]=this[ce+Fe]=Fe<Ae?we[Fe]:Xe[Fe-Ae];for(Fe=this.items.length=this.length-=xe-Ae;this[Fe];)delete this[Fe++];return new Jr(ct)},Xr.exclude=function(ce){for(var xe=0,Be=this.length;xe<Be;xe++)if(this[xe]==ce)return this.splice(xe,1),!0},Xr.animate=function(ce,xe,Be,Fe){(w.is(Be,"function")||!Be)&&(Fe=Be||null);var Xe,ct,we=this.items.length,Ae=we,Re=this;if(!we)return this;Fe&&(ct=function(){!--we&&Fe.call(Re)}),Be=w.is(Be,"string")?Be:ct;var rt=w.animation(ce,xe,Be,ct);for(Xe=this.items[--Ae].animate(rt);Ae--;)this.items[Ae]&&!this.items[Ae].removed&&this.items[Ae].animateWith(Xe,rt,rt),this.items[Ae]&&!this.items[Ae].removed||we--;return this},Xr.insertAfter=function(ce){for(var xe=this.items.length;xe--;)this.items[xe].insertAfter(ce);return this},Xr.getBBox=function(){for(var ce=[],xe=[],Be=[],Fe=[],Xe=this.items.length;Xe--;)if(!this.items[Xe].removed){var ct=this.items[Xe].getBBox();ce.push(ct.x),xe.push(ct.y),Be.push(ct.x+ct.width),Fe.push(ct.y+ct.height)}return{x:ce=S[N](0,ce),y:xe=S[N](0,xe),x2:Be=y[N](0,Be),y2:Fe=y[N](0,Fe),width:Be-ce,height:Fe-xe}},Xr.clone=function(ce){ce=this.paper.set();for(var xe=0,Be=this.items.length;xe<Be;xe++)ce.push(this.items[xe].clone());return ce},Xr.toString=function(){return"Raphaël‘s set"},Xr.glow=function(ce){var xe=this.paper.set();return this.forEach(function(Be,Fe){var Xe=Be.glow(ce);Xe!=null&&Xe.forEach(function(ct,we){xe.push(ct)})}),xe},Xr.isPointInside=function(ce,xe){var Be=!1;return this.forEach(function(Fe){if(Fe.isPointInside(ce,xe))return Be=!0,!1}),Be},w.registerFont=function(ce){if(!ce.face)return ce;this.fonts=this.fonts||{};var xe={w:ce.w,face:{},glyphs:{}},Be=ce.face["font-family"];for(var Fe in ce.face)ce.face[I](Fe)&&(xe.face[Fe]=ce.face[Fe]);if(this.fonts[Be]?this.fonts[Be].push(xe):this.fonts[Be]=[xe],!ce.svg){for(var Xe in xe.face["units-per-em"]=X(ce.face["units-per-em"],10),ce.glyphs)if(ce.glyphs[I](Xe)){var ct=ce.glyphs[Xe];if(xe.glyphs[Xe]={w:ct.w,k:{},d:ct.d&&"M"+ct.d.replace(/[mlcxtrv]/g,function(Ae){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[Ae]||"M"})+"z"},ct.k)for(var we in ct.k)ct[I](we)&&(xe.glyphs[Xe].k[we]=ct.k[we])}}return ce},E.getFont=function(ce,xe,Be,Fe){if(Fe=Fe||"normal",Be=Be||"normal",xe=+xe||{normal:400,bold:700,lighter:300,bolder:800}[xe]||400,w.fonts){var Xe,ct=w.fonts[ce];if(!ct){var we=new RegExp("(^|\\s)"+ce.replace(/[^\w\d\s+!~.:_-]/g,re)+"(\\s|$)","i");for(var Ae in w.fonts)if(w.fonts[I](Ae)&&we.test(Ae)){ct=w.fonts[Ae];break}}if(ct)for(var Re=0,rt=ct.length;Re<rt&&((Xe=ct[Re]).face["font-weight"]!=xe||Xe.face["font-style"]!=Be&&Xe.face["font-style"]||Xe.face["font-stretch"]!=Fe);Re++);return Xe}},E.print=function(ce,xe,Be,Fe,Xe,ct,we,Ae){ct=ct||"middle",we=y(S(we||0,1),-1),Ae=y(S(Ae||1,3),1);var Re,rt=V(Be)[le](re),St=0,Lt=0,Ft=re;if(w.is(Fe,"string")&&(Fe=this.getFont(Fe)),Fe){Re=(Xe||16)/Fe.face["units-per-em"];for(var $t=Fe.face.bbox[le](C),nr=+$t[0],gr=$t[3]-$t[1],fr=0,ar=+$t[1]+(ct=="baseline"?gr+ +Fe.face.descent:gr/2),Ur=0,Er=rt.length;Ur<Er;Ur++){if(rt[Ur]==`
`)St=0,_r=0,Lt=0,fr+=gr*Ae;else{var Pr=Lt&&Fe.glyphs[rt[Ur-1]]||{},_r=Fe.glyphs[rt[Ur]];St+=Lt?(Pr.w||Fe.w)+(Pr.k&&Pr.k[rt[Ur]]||0)+Fe.w*we:0,Lt=1}_r&&_r.d&&(Ft+=w.transformPath(_r.d,["t",St*Re,fr*Re,"s",Re,Re,nr,ar,"t",(ce-nr)/Re,(xe-ar)/Re]))}}return this.path(Ft).attr({fill:"#000",stroke:"none"})},E.add=function(ce){if(w.is(ce,"array"))for(var xe,Be=this.set(),Fe=0,Xe=ce.length;Fe<Xe;Fe++)xe=ce[Fe]||{},M[I](xe.type)&&Be.push(this[xe.type]().attr(xe));return Be},w.format=function(ce,xe){var Be=w.is(xe,b)?[0][ee](xe):arguments;return ce&&w.is(ce,"string")&&Be.length-1&&(ce=ce.replace(P,function(Fe,Xe){return Be[++Xe]==null?re:Be[Xe]})),ce||re},w.fullfill=(Yr=/\{([^\}]+)\}/g,ei=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(ce,xe){return String(ce).replace(Yr,function(Be,Fe){return function(Xe,ct,we){var Ae=we;return ct.replace(ei,function(Re,rt,St,Lt,Ft){rt=rt||Lt,Ae&&(rt in Ae&&(Ae=Ae[rt]),typeof Ae=="function"&&Ft&&(Ae=Ae()))}),Ae=(Ae==null||Ae==we?Xe:Ae)+""}(Be,Fe,xe)})}),w.ninja=function(){if(B.was)j.win.Raphael=B.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return w},w.st=Xr,v.on("raphael.DOMload",function(){A=!0}),(Hr=document).readyState==null&&Hr.addEventListener&&(Hr.addEventListener("DOMContentLoaded",Pt=function(){Hr.removeEventListener("DOMContentLoaded",Pt,!1),Hr.readyState="complete"},!1),Hr.readyState="loading"),function ce(){/in/.test(Hr.readyState)?setTimeout(ce,9):w.eve("raphael.DOMload")}(),w}).apply(l,u))===void 0||(o.exports=h)},function(o,l,t){var u,h;u=[t(0),t(3),t(4)],(h=(function(v){return v}).apply(l,u))===void 0||(o.exports=h)},function(o,l,t){var u,h,v,w,A,E,C,M,P,I,j,B,F,N;w="hasOwnProperty",A=/[\.\/]/,E=/\s*,\s*/,C=function(ee,Z){return ee-Z},M={n:{}},P=function(){for(var ee=0,Z=this.length;ee<Z;ee++)if(this[ee]!==void 0)return this[ee]},I=function(){for(var ee=this.length;--ee;)if(this[ee]!==void 0)return this[ee]},j=Object.prototype.toString,B=String,F=Array.isArray||function(ee){return ee instanceof Array||j.call(ee)=="[object Array]"},(N=function(ee,Z){var re,fe=v,V=Array.prototype.slice.call(arguments,2),le=N.listeners(ee),he=0,ye=[],L={},p=[],y=h;p.firstDefined=P,p.lastDefined=I,h=ee,v=0;for(var S=0,c=le.length;S<c;S++)"zIndex"in le[S]&&(ye.push(le[S].zIndex),le[S].zIndex<0&&(L[le[S].zIndex]=le[S]));for(ye.sort(C);ye[he]<0;)if(re=L[ye[he++]],p.push(re.apply(Z,V)),v)return v=fe,p;for(S=0;S<c;S++)if("zIndex"in(re=le[S]))if(re.zIndex==ye[he]){if(p.push(re.apply(Z,V)),v)break;do if((re=L[ye[++he]])&&p.push(re.apply(Z,V)),v)break;while(re)}else L[re.zIndex]=re;else if(p.push(re.apply(Z,V)),v)break;return v=fe,h=y,p})._events=M,N.listeners=function(ee){var Z,re,fe,V,le,he,ye,L,p=F(ee)?ee:ee.split(A),y=M,S=[y],c=[];for(V=0,le=p.length;V<le;V++){for(L=[],he=0,ye=S.length;he<ye;he++)for(re=[(y=S[he].n)[p[V]],y["*"]],fe=2;fe--;)(Z=re[fe])&&(L.push(Z),c=c.concat(Z.f||[]));S=L}return c},N.separator=function(ee){ee?(ee="["+(ee=B(ee).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",A=new RegExp(ee)):A=/[\.\/]/},N.on=function(ee,Z){if(typeof Z!="function")return function(){};for(var re=F(ee)?F(ee[0])?ee:[ee]:B(ee).split(E),fe=0,V=re.length;fe<V;fe++)(function(le){for(var he,ye=F(le)?le:B(le).split(A),L=M,p=0,y=ye.length;p<y;p++)L=(L=L.n).hasOwnProperty(ye[p])&&L[ye[p]]||(L[ye[p]]={n:{}});for(L.f=L.f||[],p=0,y=L.f.length;p<y;p++)if(L.f[p]==Z){he=!0;break}!he&&L.f.push(Z)})(re[fe]);return function(le){+le==+le&&(Z.zIndex=+le)}},N.f=function(ee){var Z=[].slice.call(arguments,1);return function(){N.apply(null,[ee,null].concat(Z).concat([].slice.call(arguments,0)))}},N.stop=function(){v=1},N.nt=function(ee){var Z=F(h)?h.join("."):h;return ee?new RegExp("(?:\\.|\\/|^)"+ee+"(?:\\.|\\/|$)").test(Z):Z},N.nts=function(){return F(h)?h:h.split(A)},N.off=N.unbind=function(ee,Z){if(ee){var re=F(ee)?F(ee[0])?ee:[ee]:B(ee).split(E);if(re.length>1)for(var fe=0,V=re.length;fe<V;fe++)N.off(re[fe],Z);else{re=F(ee)?ee:B(ee).split(A);var le,he,ye,L,p,y=[M];for(fe=0,V=re.length;fe<V;fe++)for(L=0;L<y.length;L+=ye.length-2){if(ye=[L,1],le=y[L].n,re[fe]!="*")le[re[fe]]&&ye.push(le[re[fe]]);else for(he in le)le[w](he)&&ye.push(le[he]);y.splice.apply(y,ye)}for(fe=0,V=y.length;fe<V;fe++)for(le=y[fe];le.n;){if(Z){if(le.f){for(L=0,p=le.f.length;L<p;L++)if(le.f[L]==Z){le.f.splice(L,1);break}!le.f.length&&delete le.f}for(he in le.n)if(le.n[w](he)&&le.n[he].f){var S=le.n[he].f;for(L=0,p=S.length;L<p;L++)if(S[L]==Z){S.splice(L,1);break}!S.length&&delete le.n[he].f}}else for(he in delete le.f,le.n)le.n[w](he)&&le.n[he].f&&delete le.n[he].f;le=le.n}}}else N._events=M={n:{}}},N.once=function(ee,Z){var re=function(){return N.off(ee,re),Z.apply(this,arguments)};return N.on(ee,re)},N.version="0.5.0",N.toString=function(){return"You are running Eve 0.5.0"},o.exports?o.exports=N:(u=(function(){return N}).apply(l,[]))===void 0||(o.exports=u)},function(o,l,t){var u,h;u=[t(0)],(h=(function(v){if(!v||v.svg){var w="hasOwnProperty",A=String,E=parseFloat,C=parseInt,M=Math,P=M.max,I=M.abs,j=M.pow,B=/[, ]+/,F=v.eve,N="",ee=" ",Z="http://www.w3.org/1999/xlink",re={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},fe={};v.toString=function(){return`Your browser supports SVG.
You are running Raphaël `+this.version};var V=function(k,D){if(D)for(var O in typeof k=="string"&&(k=V(k)),D)D[w](O)&&(O.substring(0,6)=="xlink:"?k.setAttributeNS(Z,O.substring(6),A(D[O])):k.setAttribute(O,A(D[O])));else(k=v._g.doc.createElementNS("http://www.w3.org/2000/svg",k)).style&&(k.style.webkitTapHighlightColor="rgba(0,0,0,0)");return k},le=function(k,D){var O="linear",Q=k.id+D,J=.5,X=.5,U=k.node,z=k.paper,ie=U.style,de=v._g.doc.getElementById(Q);if(!de){if(D=(D=A(D).replace(v._radial_gradient,function(Tt,lt,Je){if(O="radial",lt&&Je){J=E(lt);var ht=2*((X=E(Je))>.5)-1;j(J-.5,2)+j(X-.5,2)>.25&&(X=M.sqrt(.25-j(J-.5,2))*ht+.5)&&X!=.5&&(X=X.toFixed(5)-1e-5*ht)}return N})).split(/\s*\-\s*/),O=="linear"){var me=D.shift();if(me=-E(me),isNaN(me))return null;var pe=[0,0,M.cos(v.rad(me)),M.sin(v.rad(me))],qe=1/(P(I(pe[2]),I(pe[3]))||1);pe[2]*=qe,pe[3]*=qe,pe[2]<0&&(pe[0]=-pe[2],pe[2]=0),pe[3]<0&&(pe[1]=-pe[3],pe[3]=0)}var mt=v._parseDots(D);if(!mt)return null;if(Q=Q.replace(/[\(\)\s,\xb0#]/g,"_"),k.gradient&&Q!=k.gradient.id&&(z.defs.removeChild(k.gradient),delete k.gradient),!k.gradient){de=V(O+"Gradient",{id:Q}),k.gradient=de,V(de,O=="radial"?{fx:J,fy:X}:{x1:pe[0],y1:pe[1],x2:pe[2],y2:pe[3],gradientTransform:k.matrix.invert()}),z.defs.appendChild(de);for(var st=0,dt=mt.length;st<dt;st++)de.appendChild(V("stop",{offset:mt[st].offset?mt[st].offset:st?"100%":"0%","stop-color":mt[st].color||"#fff","stop-opacity":isFinite(mt[st].opacity)?mt[st].opacity:1}))}}return V(U,{fill:he(Q),opacity:1,"fill-opacity":1}),ie.fill=N,ie.opacity=1,ie.fillOpacity=1,1},he=function(k){if((D=document.documentMode)&&(D===9||D===10))return"url('#"+k+"')";var D,O=document.location;return"url('"+(O.protocol+"//"+O.host+O.pathname+O.search)+"#"+k+"')"},ye=function(k){var D=k.getBBox(1);V(k.pattern,{patternTransform:k.matrix.invert()+" translate("+D.x+","+D.y+")"})},L=function(k,D,O){if(k.type=="path"){for(var Q,J,X,U,z,ie=A(D).toLowerCase().split("-"),de=k.paper,me=O?"end":"start",pe=k.node,qe=k.attrs,mt=qe["stroke-width"],st=ie.length,dt="classic",Tt=3,lt=3,Je=5;st--;)switch(ie[st]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":dt=ie[st];break;case"wide":lt=5;break;case"narrow":lt=2;break;case"long":Tt=5;break;case"short":Tt=2}if(dt=="open"?(Tt+=2,lt+=2,Je+=2,X=1,U=O?4:1,z={fill:"none",stroke:qe.stroke}):(U=X=Tt/2,z={fill:qe.stroke,stroke:"none"}),k._.arrows?O?(k._.arrows.endPath&&fe[k._.arrows.endPath]--,k._.arrows.endMarker&&fe[k._.arrows.endMarker]--):(k._.arrows.startPath&&fe[k._.arrows.startPath]--,k._.arrows.startMarker&&fe[k._.arrows.startMarker]--):k._.arrows={},dt!="none"){var ht="raphael-marker-"+dt,at="raphael-marker-"+me+dt+Tt+lt+"-obj"+k.id;v._g.doc.getElementById(ht)?fe[ht]++:(de.defs.appendChild(V(V("path"),{"stroke-linecap":"round",d:re[dt],id:ht})),fe[ht]=1);var bt,jt=v._g.doc.getElementById(at);jt?(fe[at]++,bt=jt.getElementsByTagName("use")[0]):(jt=V(V("marker"),{id:at,markerHeight:lt,markerWidth:Tt,orient:"auto",refX:U,refY:lt/2}),bt=V(V("use"),{"xlink:href":"#"+ht,transform:(O?"rotate(180 "+Tt/2+" "+lt/2+") ":N)+"scale("+Tt/Je+","+lt/Je+")","stroke-width":(1/((Tt/Je+lt/Je)/2)).toFixed(4)}),jt.appendChild(bt),de.defs.appendChild(jt),fe[at]=1),V(bt,z);var Ge=X*(dt!="diamond"&&dt!="oval");O?(Q=k._.arrows.startdx*mt||0,J=v.getTotalLength(qe.path)-Ge*mt):(Q=Ge*mt,J=v.getTotalLength(qe.path)-(k._.arrows.enddx*mt||0)),(z={})["marker-"+me]="url(#"+at+")",(J||Q)&&(z.d=v.getSubpath(qe.path,Q,J)),V(pe,z),k._.arrows[me+"Path"]=ht,k._.arrows[me+"Marker"]=at,k._.arrows[me+"dx"]=Ge,k._.arrows[me+"Type"]=dt,k._.arrows[me+"String"]=D}else O?(Q=k._.arrows.startdx*mt||0,J=v.getTotalLength(qe.path)-Q):(Q=0,J=v.getTotalLength(qe.path)-(k._.arrows.enddx*mt||0)),k._.arrows[me+"Path"]&&V(pe,{d:v.getSubpath(qe.path,Q,J)}),delete k._.arrows[me+"Path"],delete k._.arrows[me+"Marker"],delete k._.arrows[me+"dx"],delete k._.arrows[me+"Type"],delete k._.arrows[me+"String"];for(z in fe)if(fe[w](z)&&!fe[z]){var Qe=v._g.doc.getElementById(z);Qe&&Qe.parentNode.removeChild(Qe)}}},p={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},y=function(k,D,O){if(D=p[A(D).toLowerCase()]){for(var Q=k.attrs["stroke-width"]||"1",J={round:Q,square:Q,butt:0}[k.attrs["stroke-linecap"]||O["stroke-linecap"]]||0,X=[],U=D.length;U--;)X[U]=D[U]*Q+(U%2?1:-1)*J;V(k.node,{"stroke-dasharray":X.join(",")})}else V(k.node,{"stroke-dasharray":"none"})},S=function(k,D){var O=k.node,Q=k.attrs,J=O.style.visibility;for(var X in O.style.visibility="hidden",D)if(D[w](X)){if(!v._availableAttrs[w](X))continue;var U=D[X];switch(Q[X]=U,X){case"blur":k.blur(U);break;case"title":var z=O.getElementsByTagName("title");if(z.length&&(z=z[0]))z.firstChild.nodeValue=U;else{z=V("title");var ie=v._g.doc.createTextNode(U);z.appendChild(ie),O.appendChild(z)}break;case"href":case"target":var de=O.parentNode;if(de.tagName.toLowerCase()!="a"){var me=V("a");de.insertBefore(me,O),me.appendChild(O),de=me}X=="target"?de.setAttributeNS(Z,"show",U=="blank"?"new":U):de.setAttributeNS(Z,X,U);break;case"cursor":O.style.cursor=U;break;case"transform":k.transform(U);break;case"arrow-start":L(k,U);break;case"arrow-end":L(k,U,1);break;case"clip-rect":var pe=A(U).split(B);if(pe.length==4){k.clip&&k.clip.parentNode.parentNode.removeChild(k.clip.parentNode);var qe=V("clipPath"),mt=V("rect");qe.id=v.createUUID(),V(mt,{x:pe[0],y:pe[1],width:pe[2],height:pe[3]}),qe.appendChild(mt),k.paper.defs.appendChild(qe),V(O,{"clip-path":"url(#"+qe.id+")"}),k.clip=mt}if(!U){var st=O.getAttribute("clip-path");if(st){var dt=v._g.doc.getElementById(st.replace(/(^url\(#|\)$)/g,N));dt&&dt.parentNode.removeChild(dt),V(O,{"clip-path":N}),delete k.clip}}break;case"path":k.type=="path"&&(V(O,{d:U?Q.path=v._pathToAbsolute(U):"M0,0"}),k._.dirty=1,k._.arrows&&("startString"in k._.arrows&&L(k,k._.arrows.startString),"endString"in k._.arrows&&L(k,k._.arrows.endString,1)));break;case"width":if(O.setAttribute(X,U),k._.dirty=1,!Q.fx)break;X="x",U=Q.x;case"x":Q.fx&&(U=-Q.x-(Q.width||0));case"rx":if(X=="rx"&&k.type=="rect")break;case"cx":O.setAttribute(X,U),k.pattern&&ye(k),k._.dirty=1;break;case"height":if(O.setAttribute(X,U),k._.dirty=1,!Q.fy)break;X="y",U=Q.y;case"y":Q.fy&&(U=-Q.y-(Q.height||0));case"ry":if(X=="ry"&&k.type=="rect")break;case"cy":O.setAttribute(X,U),k.pattern&&ye(k),k._.dirty=1;break;case"r":k.type=="rect"?V(O,{rx:U,ry:U}):O.setAttribute(X,U),k._.dirty=1;break;case"src":k.type=="image"&&O.setAttributeNS(Z,"href",U);break;case"stroke-width":k._.sx==1&&k._.sy==1||(U/=P(I(k._.sx),I(k._.sy))||1),O.setAttribute(X,U),Q["stroke-dasharray"]&&y(k,Q["stroke-dasharray"],D),k._.arrows&&("startString"in k._.arrows&&L(k,k._.arrows.startString),"endString"in k._.arrows&&L(k,k._.arrows.endString,1));break;case"stroke-dasharray":y(k,U,D);break;case"fill":var Tt=A(U).match(v._ISURL);if(Tt){qe=V("pattern");var lt=V("image");qe.id=v.createUUID(),V(qe,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),V(lt,{x:0,y:0,"xlink:href":Tt[1]}),qe.appendChild(lt),function(jt){v._preload(Tt[1],function(){var Ge=this.offsetWidth,Qe=this.offsetHeight;V(jt,{width:Ge,height:Qe}),V(lt,{width:Ge,height:Qe})})}(qe),k.paper.defs.appendChild(qe),V(O,{fill:"url(#"+qe.id+")"}),k.pattern=qe,k.pattern&&ye(k);break}var Je=v.getRGB(U);if(Je.error){if((k.type=="circle"||k.type=="ellipse"||A(U).charAt()!="r")&&le(k,U)){if("opacity"in Q||"fill-opacity"in Q){var ht=v._g.doc.getElementById(O.getAttribute("fill").replace(/^url\(#|\)$/g,N));if(ht){var at=ht.getElementsByTagName("stop");V(at[at.length-1],{"stop-opacity":("opacity"in Q?Q.opacity:1)*("fill-opacity"in Q?Q["fill-opacity"]:1)})}}Q.gradient=U,Q.fill="none";break}}else delete D.gradient,delete Q.gradient,!v.is(Q.opacity,"undefined")&&v.is(D.opacity,"undefined")&&V(O,{opacity:Q.opacity}),!v.is(Q["fill-opacity"],"undefined")&&v.is(D["fill-opacity"],"undefined")&&V(O,{"fill-opacity":Q["fill-opacity"]});Je[w]("opacity")&&V(O,{"fill-opacity":Je.opacity>1?Je.opacity/100:Je.opacity});case"stroke":Je=v.getRGB(U),O.setAttribute(X,Je.hex),X=="stroke"&&Je[w]("opacity")&&V(O,{"stroke-opacity":Je.opacity>1?Je.opacity/100:Je.opacity}),X=="stroke"&&k._.arrows&&("startString"in k._.arrows&&L(k,k._.arrows.startString),"endString"in k._.arrows&&L(k,k._.arrows.endString,1));break;case"gradient":(k.type=="circle"||k.type=="ellipse"||A(U).charAt()!="r")&&le(k,U);break;case"opacity":Q.gradient&&!Q[w]("stroke-opacity")&&V(O,{"stroke-opacity":U>1?U/100:U});case"fill-opacity":if(Q.gradient){(ht=v._g.doc.getElementById(O.getAttribute("fill").replace(/^url\(#|\)$/g,N)))&&(at=ht.getElementsByTagName("stop"),V(at[at.length-1],{"stop-opacity":U}));break}default:X=="font-size"&&(U=C(U,10)+"px");var bt=X.replace(/(\-.)/g,function(jt){return jt.substring(1).toUpperCase()});O.style[bt]=U,k._.dirty=1,O.setAttribute(X,U)}}c(k,D),O.style.visibility=J},c=function(k,D){if(k.type=="text"&&(D[w]("text")||D[w]("font")||D[w]("font-size")||D[w]("x")||D[w]("y"))){var O=k.attrs,Q=k.node,J=Q.firstChild?C(v._g.doc.defaultView.getComputedStyle(Q.firstChild,N).getPropertyValue("font-size"),10):10;if(D[w]("text")){for(O.text=D.text;Q.firstChild;)Q.removeChild(Q.firstChild);for(var X,U=A(D.text).split(`
`),z=[],ie=0,de=U.length;ie<de;ie++)X=V("tspan"),ie&&V(X,{dy:1.2*J,x:O.x}),X.appendChild(v._g.doc.createTextNode(U[ie])),Q.appendChild(X),z[ie]=X}else for(ie=0,de=(z=Q.getElementsByTagName("tspan")).length;ie<de;ie++)ie?V(z[ie],{dy:1.2*J,x:O.x}):V(z[0],{dy:0});V(Q,{x:O.x,y:O.y}),k._.dirty=1;var me=k._getBBox(),pe=O.y-(me.y+me.height/2);pe&&v.is(pe,"finite")&&V(z[0],{dy:pe})}},m=function(k){return k.parentNode&&k.parentNode.tagName.toLowerCase()==="a"?k.parentNode:k},x=function(k,D){this[0]=this.node=k,k.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),k.raphaelid=this.id,this.matrix=v.matrix(),this.realPath=null,this.paper=D,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!D.bottom&&(D.bottom=this),this.prev=D.top,D.top&&(D.top.next=this),D.top=this,this.next=null},T=v.el;x.prototype=T,T.constructor=x,v._engine.path=function(k,D){var O=V("path");D.canvas&&D.canvas.appendChild(O);var Q=new x(O,D);return Q.type="path",S(Q,{fill:"none",stroke:"#000",path:k}),Q},T.rotate=function(k,D,O){if(this.removed)return this;if((k=A(k).split(B)).length-1&&(D=E(k[1]),O=E(k[2])),k=E(k[0]),O==null&&(D=O),D==null||O==null){var Q=this.getBBox(1);D=Q.x+Q.width/2,O=Q.y+Q.height/2}return this.transform(this._.transform.concat([["r",k,D,O]])),this},T.scale=function(k,D,O,Q){if(this.removed)return this;if((k=A(k).split(B)).length-1&&(D=E(k[1]),O=E(k[2]),Q=E(k[3])),k=E(k[0]),D==null&&(D=k),Q==null&&(O=Q),O==null||Q==null)var J=this.getBBox(1);return O=O??J.x+J.width/2,Q=Q??J.y+J.height/2,this.transform(this._.transform.concat([["s",k,D,O,Q]])),this},T.translate=function(k,D){return this.removed?this:((k=A(k).split(B)).length-1&&(D=E(k[1])),k=E(k[0])||0,D=+D||0,this.transform(this._.transform.concat([["t",k,D]])),this)},T.transform=function(k){var D=this._;if(k==null)return D.transform;if(v._extractTransform(this,k),this.clip&&V(this.clip,{transform:this.matrix.invert()}),this.pattern&&ye(this),this.node&&V(this.node,{transform:this.matrix}),D.sx!=1||D.sy!=1){var O=this.attrs[w]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":O})}return this},T.hide=function(){return this.removed||(this.node.style.display="none"),this},T.show=function(){return this.removed||(this.node.style.display=""),this},T.remove=function(){var k=m(this.node);if(!this.removed&&k.parentNode){var D=this.paper;for(var O in D.__set__&&D.__set__.exclude(this),F.unbind("raphael.*.*."+this.id),this.gradient&&D.defs.removeChild(this.gradient),v._tear(this,D),k.parentNode.removeChild(k),this.removeData(),this)this[O]=typeof this[O]=="function"?v._removedFactory(O):null;this.removed=!0}},T._getBBox=function(){if(this.node.style.display=="none"){this.show();var k=!0}var D,O=!1;this.paper.canvas.parentElement?D=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(D=this.paper.canvas.parentNode.style),D&&D.display=="none"&&(O=!0,D.display="");var Q={};try{Q=this.node.getBBox()}catch{Q={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{Q=Q||{},O&&(D.display="none")}return k&&this.hide(),Q},T.attr=function(k,D){if(this.removed)return this;if(k==null){var O={};for(var Q in this.attrs)this.attrs[w](Q)&&(O[Q]=this.attrs[Q]);return O.gradient&&O.fill=="none"&&(O.fill=O.gradient)&&delete O.gradient,O.transform=this._.transform,O}if(D==null&&v.is(k,"string")){if(k=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(k=="transform")return this._.transform;for(var J=k.split(B),X={},U=0,z=J.length;U<z;U++)(k=J[U])in this.attrs?X[k]=this.attrs[k]:v.is(this.paper.customAttributes[k],"function")?X[k]=this.paper.customAttributes[k].def:X[k]=v._availableAttrs[k];return z-1?X:X[J[0]]}if(D==null&&v.is(k,"array")){for(X={},U=0,z=k.length;U<z;U++)X[k[U]]=this.attr(k[U]);return X}if(D!=null){var ie={};ie[k]=D}else k!=null&&v.is(k,"object")&&(ie=k);for(var de in ie)F("raphael.attr."+de+"."+this.id,this,ie[de]);for(de in this.paper.customAttributes)if(this.paper.customAttributes[w](de)&&ie[w](de)&&v.is(this.paper.customAttributes[de],"function")){var me=this.paper.customAttributes[de].apply(this,[].concat(ie[de]));for(var pe in this.attrs[de]=ie[de],me)me[w](pe)&&(ie[pe]=me[pe])}return S(this,ie),this},T.toFront=function(){if(this.removed)return this;var k=m(this.node);k.parentNode.appendChild(k);var D=this.paper;return D.top!=this&&v._tofront(this,D),this},T.toBack=function(){if(this.removed)return this;var k=m(this.node),D=k.parentNode;return D.insertBefore(k,D.firstChild),v._toback(this,this.paper),this.paper,this},T.insertAfter=function(k){if(this.removed||!k)return this;var D=m(this.node),O=m(k.node||k[k.length-1].node);return O.nextSibling?O.parentNode.insertBefore(D,O.nextSibling):O.parentNode.appendChild(D),v._insertafter(this,k,this.paper),this},T.insertBefore=function(k){if(this.removed||!k)return this;var D=m(this.node),O=m(k.node||k[0].node);return O.parentNode.insertBefore(D,O),v._insertbefore(this,k,this.paper),this},T.blur=function(k){var D=this;if(+k!=0){var O=V("filter"),Q=V("feGaussianBlur");D.attrs.blur=k,O.id=v.createUUID(),V(Q,{stdDeviation:+k||1.5}),O.appendChild(Q),D.paper.defs.appendChild(O),D._blur=O,V(D.node,{filter:"url(#"+O.id+")"})}else D._blur&&(D._blur.parentNode.removeChild(D._blur),delete D._blur,delete D.attrs.blur),D.node.removeAttribute("filter");return D},v._engine.circle=function(k,D,O,Q){var J=V("circle");k.canvas&&k.canvas.appendChild(J);var X=new x(J,k);return X.attrs={cx:D,cy:O,r:Q,fill:"none",stroke:"#000"},X.type="circle",V(J,X.attrs),X},v._engine.rect=function(k,D,O,Q,J,X){var U=V("rect");k.canvas&&k.canvas.appendChild(U);var z=new x(U,k);return z.attrs={x:D,y:O,width:Q,height:J,rx:X||0,ry:X||0,fill:"none",stroke:"#000"},z.type="rect",V(U,z.attrs),z},v._engine.ellipse=function(k,D,O,Q,J){var X=V("ellipse");k.canvas&&k.canvas.appendChild(X);var U=new x(X,k);return U.attrs={cx:D,cy:O,rx:Q,ry:J,fill:"none",stroke:"#000"},U.type="ellipse",V(X,U.attrs),U},v._engine.image=function(k,D,O,Q,J,X){var U=V("image");V(U,{x:O,y:Q,width:J,height:X,preserveAspectRatio:"none"}),U.setAttributeNS(Z,"href",D),k.canvas&&k.canvas.appendChild(U);var z=new x(U,k);return z.attrs={x:O,y:Q,width:J,height:X,src:D},z.type="image",z},v._engine.text=function(k,D,O,Q){var J=V("text");k.canvas&&k.canvas.appendChild(J);var X=new x(J,k);return X.attrs={x:D,y:O,"text-anchor":"middle",text:Q,"font-family":v._availableAttrs["font-family"],"font-size":v._availableAttrs["font-size"],stroke:"none",fill:"#000"},X.type="text",S(X,X.attrs),X},v._engine.setSize=function(k,D){return this.width=k||this.width,this.height=D||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},v._engine.create=function(){var k=v._getContainer.apply(0,arguments),D=k&&k.container;if(!D)throw new Error("SVG container not found.");var O,Q=k.x,J=k.y,X=k.width,U=k.height,z=V("svg"),ie="overflow:hidden;";return Q=Q||0,J=J||0,V(z,{height:U=U||342,version:1.1,width:X=X||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),D==1?(z.style.cssText=ie+"position:absolute;left:"+Q+"px;top:"+J+"px",v._g.doc.body.appendChild(z),O=1):(z.style.cssText=ie+"position:relative",D.firstChild?D.insertBefore(z,D.firstChild):D.appendChild(z)),(D=new v._Paper).width=X,D.height=U,D.canvas=z,D.clear(),D._left=D._top=0,O&&(D.renderfix=function(){}),D.renderfix(),D},v._engine.setViewBox=function(k,D,O,Q,J){F("raphael.setViewBox",this,this._viewBox,[k,D,O,Q,J]);var X,U,z=this.getSize(),ie=P(O/z.width,Q/z.height),de=this.top,me=J?"xMidYMid meet":"xMinYMin";for(k==null?(this._vbSize&&(ie=1),delete this._vbSize,X="0 0 "+this.width+ee+this.height):(this._vbSize=ie,X=k+ee+D+ee+O+ee+Q),V(this.canvas,{viewBox:X,preserveAspectRatio:me});ie&&de;)U="stroke-width"in de.attrs?de.attrs["stroke-width"]:1,de.attr({"stroke-width":U}),de._.dirty=1,de._.dirtyT=1,de=de.prev;return this._viewBox=[k,D,O,Q,!!J],this},v.prototype.renderfix=function(){var k,D=this.canvas,O=D.style;try{k=D.getScreenCTM()||D.createSVGMatrix()}catch{k=D.createSVGMatrix()}var Q=-k.e%1,J=-k.f%1;(Q||J)&&(Q&&(this._left=(this._left+Q)%1,O.left=this._left+"px"),J&&(this._top=(this._top+J)%1,O.top=this._top+"px"))},v.prototype.clear=function(){v.eve("raphael.clear",this);for(var k=this.canvas;k.firstChild;)k.removeChild(k.firstChild);this.bottom=this.top=null,(this.desc=V("desc")).appendChild(v._g.doc.createTextNode("Created with Raphaël "+v.version)),k.appendChild(this.desc),k.appendChild(this.defs=V("defs"))},v.prototype.remove=function(){for(var k in F("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[k]=typeof this[k]=="function"?v._removedFactory(k):null};var b=v.st;for(var d in T)T[w](d)&&!b[w](d)&&(b[d]=function(k){return function(){var D=arguments;return this.forEach(function(O){O[k].apply(O,D)})}}(d))}}).apply(l,u))===void 0||(o.exports=h)},function(o,l,t){var u,h;u=[t(0)],(h=(function(v){if(!v||v.vml){var w="hasOwnProperty",A=String,E=parseFloat,C=Math,M=C.round,P=C.max,I=C.min,j=C.abs,B=/[, ]+/,F=v.eve,N=" ",ee="",Z={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},re=/([clmz]),?([^clmz]*)/gi,fe=/ progid:\S+Blur\([^\)]+\)/g,V=/-?[^,\s-]+/g,le="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",he=21600,ye={path:1,rect:1,image:1},L={circle:1,ellipse:1},p=function(D,O,Q){var J=v.matrix();return J.rotate(-D,.5,.5),{dx:J.x(O,Q),dy:J.y(O,Q)}},y=function(D,O,Q,J,X,U){var z=D._,ie=D.matrix,de=z.fillpos,me=D.node,pe=me.style,qe=1,mt="",st=he/O,dt=he/Q;if(pe.visibility="hidden",O&&Q){if(me.coordsize=j(st)+N+j(dt),pe.rotation=U*(O*Q<0?-1:1),U){var Tt=p(U,J,X);J=Tt.dx,X=Tt.dy}if(O<0&&(mt+="x"),Q<0&&(mt+=" y")&&(qe=-1),pe.flip=mt,me.coordorigin=J*-st+N+X*-dt,de||z.fillsize){var lt=me.getElementsByTagName("fill");lt=lt&&lt[0],me.removeChild(lt),de&&(Tt=p(U,ie.x(de[0],de[1]),ie.y(de[0],de[1])),lt.position=Tt.dx*qe+N+Tt.dy*qe),z.fillsize&&(lt.size=z.fillsize[0]*j(O)+N+z.fillsize[1]*j(Q)),me.appendChild(lt)}pe.visibility="visible"}};v.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
You are running Raphaël `+this.version};var S,c=function(D,O,Q){for(var J=A(O).toLowerCase().split("-"),X=Q?"end":"start",U=J.length,z="classic",ie="medium",de="medium";U--;)switch(J[U]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":z=J[U];break;case"wide":case"narrow":de=J[U];break;case"long":case"short":ie=J[U]}var me=D.node.getElementsByTagName("stroke")[0];me[X+"arrow"]=z,me[X+"arrowlength"]=ie,me[X+"arrowwidth"]=de},m=function(D,O){D.attrs=D.attrs||{};var Q=D.node,J=D.attrs,X=Q.style,U=ye[D.type]&&(O.x!=J.x||O.y!=J.y||O.width!=J.width||O.height!=J.height||O.cx!=J.cx||O.cy!=J.cy||O.rx!=J.rx||O.ry!=J.ry||O.r!=J.r),z=L[D.type]&&(J.cx!=O.cx||J.cy!=O.cy||J.r!=O.r||J.rx!=O.rx||J.ry!=O.ry),ie=D;for(var de in O)O[w](de)&&(J[de]=O[de]);if(U&&(J.path=v._getPath[D.type](D),D._.dirty=1),O.href&&(Q.href=O.href),O.title&&(Q.title=O.title),O.target&&(Q.target=O.target),O.cursor&&(X.cursor=O.cursor),"blur"in O&&D.blur(O.blur),(O.path&&D.type=="path"||U)&&(Q.path=function(We){var et=/[ahqstv]/gi,Ye=v._pathToAbsolute;if(A(We).match(et)&&(Ye=v._path2curve),et=/[clmz]/g,Ye==v._pathToAbsolute&&!A(We).match(et)){var De=A(We).replace(re,function(pt,Bt,ur){var kt=[],Ut=Bt.toLowerCase()=="m",Wr=Z[Bt];return ur.replace(V,function(zt){Ut&&kt.length==2&&(Wr+=kt+Z[Bt=="m"?"l":"L"],kt=[]),kt.push(M(zt*he))}),Wr+kt});return De}var Ht,Mt,ge=Ye(We);De=[];for(var Dt=0,yt=ge.length;Dt<yt;Dt++){Ht=ge[Dt],(Mt=ge[Dt][0].toLowerCase())=="z"&&(Mt="x");for(var Ne=1,_t=Ht.length;Ne<_t;Ne++)Mt+=M(Ht[Ne]*he)+(Ne!=_t-1?",":ee);De.push(Mt)}return De.join(N)}(~A(J.path).toLowerCase().indexOf("r")?v._pathToAbsolute(J.path):J.path),D._.dirty=1,D.type=="image"&&(D._.fillpos=[J.x,J.y],D._.fillsize=[J.width,J.height],y(D,1,1,0,0,0))),"transform"in O&&D.transform(O.transform),z){var me=+J.cx,pe=+J.cy,qe=+J.rx||+J.r||0,mt=+J.ry||+J.r||0;Q.path=v.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",M((me-qe)*he),M((pe-mt)*he),M((me+qe)*he),M((pe+mt)*he),M(me*he)),D._.dirty=1}if("clip-rect"in O){var st=A(O["clip-rect"]).split(B);if(st.length==4){st[2]=+st[2]+ +st[0],st[3]=+st[3]+ +st[1];var dt=Q.clipRect||v._g.doc.createElement("div"),Tt=dt.style;Tt.clip=v.format("rect({1}px {2}px {3}px {0}px)",st),Q.clipRect||(Tt.position="absolute",Tt.top=0,Tt.left=0,Tt.width=D.paper.width+"px",Tt.height=D.paper.height+"px",Q.parentNode.insertBefore(dt,Q),dt.appendChild(Q),Q.clipRect=dt)}O["clip-rect"]||Q.clipRect&&(Q.clipRect.style.clip="auto")}if(D.textpath){var lt=D.textpath.style;O.font&&(lt.font=O.font),O["font-family"]&&(lt.fontFamily='"'+O["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,ee)+'"'),O["font-size"]&&(lt.fontSize=O["font-size"]),O["font-weight"]&&(lt.fontWeight=O["font-weight"]),O["font-style"]&&(lt.fontStyle=O["font-style"])}if("arrow-start"in O&&c(ie,O["arrow-start"]),"arrow-end"in O&&c(ie,O["arrow-end"],1),O.opacity!=null||O.fill!=null||O.src!=null||O.stroke!=null||O["stroke-width"]!=null||O["stroke-opacity"]!=null||O["fill-opacity"]!=null||O["stroke-dasharray"]!=null||O["stroke-miterlimit"]!=null||O["stroke-linejoin"]!=null||O["stroke-linecap"]!=null){var Je=Q.getElementsByTagName("fill");if(!(Je=Je&&Je[0])&&(Je=S("fill")),D.type=="image"&&O.src&&(Je.src=O.src),O.fill&&(Je.on=!0),Je.on!=null&&O.fill!="none"&&O.fill!==null||(Je.on=!1),Je.on&&O.fill){var ht=A(O.fill).match(v._ISURL);if(ht){Je.parentNode==Q&&Q.removeChild(Je),Je.rotate=!0,Je.src=ht[1],Je.type="tile";var at=D.getBBox(1);Je.position=at.x+N+at.y,D._.fillpos=[at.x,at.y],v._preload(ht[1],function(){D._.fillsize=[this.offsetWidth,this.offsetHeight]})}else Je.color=v.getRGB(O.fill).hex,Je.src=ee,Je.type="solid",v.getRGB(O.fill).error&&(ie.type in{circle:1,ellipse:1}||A(O.fill).charAt()!="r")&&x(ie,O.fill,Je)&&(J.fill="none",J.gradient=O.fill,Je.rotate=!1)}if("fill-opacity"in O||"opacity"in O){var bt=((+J["fill-opacity"]+1||2)-1)*((+J.opacity+1||2)-1)*((+v.getRGB(O.fill).o+1||2)-1);bt=I(P(bt,0),1),Je.opacity=bt,Je.src&&(Je.color="none")}Q.appendChild(Je);var jt=Q.getElementsByTagName("stroke")&&Q.getElementsByTagName("stroke")[0],Ge=!1;!jt&&(Ge=jt=S("stroke")),(O.stroke&&O.stroke!="none"||O["stroke-width"]||O["stroke-opacity"]!=null||O["stroke-dasharray"]||O["stroke-miterlimit"]||O["stroke-linejoin"]||O["stroke-linecap"])&&(jt.on=!0),(O.stroke=="none"||O.stroke===null||jt.on==null||O.stroke==0||O["stroke-width"]==0)&&(jt.on=!1);var Qe=v.getRGB(O.stroke);jt.on&&O.stroke&&(jt.color=Qe.hex),bt=((+J["stroke-opacity"]+1||2)-1)*((+J.opacity+1||2)-1)*((+Qe.o+1||2)-1);var Wt=.75*(E(O["stroke-width"])||1);if(bt=I(P(bt,0),1),O["stroke-width"]==null&&(Wt=J["stroke-width"]),O["stroke-width"]&&(jt.weight=Wt),Wt&&Wt<1&&(bt*=Wt)&&(jt.weight=1),jt.opacity=bt,O["stroke-linejoin"]&&(jt.joinstyle=O["stroke-linejoin"]||"miter"),jt.miterlimit=O["stroke-miterlimit"]||8,O["stroke-linecap"]&&(jt.endcap=O["stroke-linecap"]=="butt"?"flat":O["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in O){var Et={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};jt.dashstyle=Et[w](O["stroke-dasharray"])?Et[O["stroke-dasharray"]]:ee}Ge&&Q.appendChild(jt)}if(ie.type=="text"){ie.paper.canvas.style.display=ee;var Ct=ie.paper.span,Kt=J.font&&J.font.match(/\d+(?:\.\d*)?(?=px)/);X=Ct.style,J.font&&(X.font=J.font),J["font-family"]&&(X.fontFamily=J["font-family"]),J["font-weight"]&&(X.fontWeight=J["font-weight"]),J["font-style"]&&(X.fontStyle=J["font-style"]),Kt=E(J["font-size"]||Kt&&Kt[0])||10,X.fontSize=100*Kt+"px",ie.textpath.string&&(Ct.innerHTML=A(ie.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var Me=Ct.getBoundingClientRect();ie.W=J.w=(Me.right-Me.left)/100,ie.H=J.h=(Me.bottom-Me.top)/100,ie.X=J.x,ie.Y=J.y+ie.H/2,("x"in O||"y"in O)&&(ie.path.v=v.format("m{0},{1}l{2},{1}",M(J.x*he),M(J.y*he),M(J.x*he)+1));for(var te=["x","y","text","font","font-family","font-weight","font-style","font-size"],_e=0,je=te.length;_e<je;_e++)if(te[_e]in O){ie._.dirty=1;break}switch(J["text-anchor"]){case"start":ie.textpath.style["v-text-align"]="left",ie.bbx=ie.W/2;break;case"end":ie.textpath.style["v-text-align"]="right",ie.bbx=-ie.W/2;break;default:ie.textpath.style["v-text-align"]="center",ie.bbx=0}ie.textpath.style["v-text-kern"]=!0}},x=function(D,O,Q){D.attrs=D.attrs||{},D.attrs;var J=Math.pow,X="linear",U=".5 .5";if(D.attrs.gradient=O,O=(O=A(O).replace(v._radial_gradient,function(qe,mt,st){return X="radial",mt&&st&&(mt=E(mt),st=E(st),J(mt-.5,2)+J(st-.5,2)>.25&&(st=C.sqrt(.25-J(mt-.5,2))*(2*(st>.5)-1)+.5),U=mt+N+st),ee})).split(/\s*\-\s*/),X=="linear"){var z=O.shift();if(z=-E(z),isNaN(z))return null}var ie=v._parseDots(O);if(!ie)return null;if(D=D.shape||D.node,ie.length){D.removeChild(Q),Q.on=!0,Q.method="none",Q.color=ie[0].color,Q.color2=ie[ie.length-1].color;for(var de=[],me=0,pe=ie.length;me<pe;me++)ie[me].offset&&de.push(ie[me].offset+N+ie[me].color);Q.colors=de.length?de.join():"0% "+Q.color,X=="radial"?(Q.type="gradientTitle",Q.focus="100%",Q.focussize="0 0",Q.focusposition=U,Q.angle=0):(Q.type="gradient",Q.angle=(270-z)%360),D.appendChild(Q)}return 1},T=function(D,O){this[0]=this.node=D,D.raphael=!0,this.id=v._oid++,D.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=O,this.matrix=v.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!O.bottom&&(O.bottom=this),this.prev=O.top,O.top&&(O.top.next=this),O.top=this,this.next=null},b=v.el;T.prototype=b,b.constructor=T,b.transform=function(D){if(D==null)return this._.transform;var O,Q=this.paper._viewBoxShift,J=Q?"s"+[Q.scale,Q.scale]+"-1-1t"+[Q.dx,Q.dy]:ee;Q&&(O=D=A(D).replace(/\.{3}|\u2026/g,this._.transform||ee)),v._extractTransform(this,J+D);var X,U=this.matrix.clone(),z=this.skew,ie=this.node,de=~A(this.attrs.fill).indexOf("-"),me=!A(this.attrs.fill).indexOf("url(");if(U.translate(1,1),me||de||this.type=="image")if(z.matrix="1 0 0 1",z.offset="0 0",X=U.split(),de&&X.noRotation||!X.isSimple){ie.style.filter=U.toFilter();var pe=this.getBBox(),qe=this.getBBox(1),mt=pe.x-qe.x,st=pe.y-qe.y;ie.coordorigin=mt*-he+N+st*-he,y(this,1,1,mt,st,0)}else ie.style.filter=ee,y(this,X.scalex,X.scaley,X.dx,X.dy,X.rotate);else ie.style.filter=ee,z.matrix=A(U),z.offset=U.offset();return O!==null&&(this._.transform=O,v._extractTransform(this,O)),this},b.rotate=function(D,O,Q){if(this.removed)return this;if(D!=null){if((D=A(D).split(B)).length-1&&(O=E(D[1]),Q=E(D[2])),D=E(D[0]),Q==null&&(O=Q),O==null||Q==null){var J=this.getBBox(1);O=J.x+J.width/2,Q=J.y+J.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",D,O,Q]])),this}},b.translate=function(D,O){return this.removed?this:((D=A(D).split(B)).length-1&&(O=E(D[1])),D=E(D[0])||0,O=+O||0,this._.bbox&&(this._.bbox.x+=D,this._.bbox.y+=O),this.transform(this._.transform.concat([["t",D,O]])),this)},b.scale=function(D,O,Q,J){if(this.removed)return this;if((D=A(D).split(B)).length-1&&(O=E(D[1]),Q=E(D[2]),J=E(D[3]),isNaN(Q)&&(Q=null),isNaN(J)&&(J=null)),D=E(D[0]),O==null&&(O=D),J==null&&(Q=J),Q==null||J==null)var X=this.getBBox(1);return Q=Q??X.x+X.width/2,J=J??X.y+X.height/2,this.transform(this._.transform.concat([["s",D,O,Q,J]])),this._.dirtyT=1,this},b.hide=function(){return!this.removed&&(this.node.style.display="none"),this},b.show=function(){return!this.removed&&(this.node.style.display=ee),this},b.auxGetBBox=v.el.getBBox,b.getBBox=function(){var D=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var O={},Q=1/this.paper._viewBoxShift.scale;return O.x=D.x-this.paper._viewBoxShift.dx,O.x*=Q,O.y=D.y-this.paper._viewBoxShift.dy,O.y*=Q,O.width=D.width*Q,O.height=D.height*Q,O.x2=O.x+O.width,O.y2=O.y+O.height,O}return D},b._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},b.remove=function(){if(!this.removed&&this.node.parentNode){for(var D in this.paper.__set__&&this.paper.__set__.exclude(this),v.eve.unbind("raphael.*.*."+this.id),v._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[D]=typeof this[D]=="function"?v._removedFactory(D):null;this.removed=!0}},b.attr=function(D,O){if(this.removed)return this;if(D==null){var Q={};for(var J in this.attrs)this.attrs[w](J)&&(Q[J]=this.attrs[J]);return Q.gradient&&Q.fill=="none"&&(Q.fill=Q.gradient)&&delete Q.gradient,Q.transform=this._.transform,Q}if(O==null&&v.is(D,"string")){if(D=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var X=D.split(B),U={},z=0,ie=X.length;z<ie;z++)(D=X[z])in this.attrs?U[D]=this.attrs[D]:v.is(this.paper.customAttributes[D],"function")?U[D]=this.paper.customAttributes[D].def:U[D]=v._availableAttrs[D];return ie-1?U:U[X[0]]}if(this.attrs&&O==null&&v.is(D,"array")){for(U={},z=0,ie=D.length;z<ie;z++)U[D[z]]=this.attr(D[z]);return U}var de;for(var me in O!=null&&((de={})[D]=O),O==null&&v.is(D,"object")&&(de=D),de)F("raphael.attr."+me+"."+this.id,this,de[me]);if(de){for(me in this.paper.customAttributes)if(this.paper.customAttributes[w](me)&&de[w](me)&&v.is(this.paper.customAttributes[me],"function")){var pe=this.paper.customAttributes[me].apply(this,[].concat(de[me]));for(var qe in this.attrs[me]=de[me],pe)pe[w](qe)&&(de[qe]=pe[qe])}de.text&&this.type=="text"&&(this.textpath.string=de.text),m(this,de)}return this},b.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&v._tofront(this,this.paper),this},b.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),v._toback(this,this.paper)),this)},b.insertAfter=function(D){return this.removed?this:(D.constructor==v.st.constructor&&(D=D[D.length-1]),D.node.nextSibling?D.node.parentNode.insertBefore(this.node,D.node.nextSibling):D.node.parentNode.appendChild(this.node),v._insertafter(this,D,this.paper),this)},b.insertBefore=function(D){return this.removed?this:(D.constructor==v.st.constructor&&(D=D[0]),D.node.parentNode.insertBefore(this.node,D.node),v._insertbefore(this,D,this.paper),this)},b.blur=function(D){var O=this.node.runtimeStyle,Q=O.filter;return Q=Q.replace(fe,ee),+D!=0?(this.attrs.blur=D,O.filter=Q+N+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+D||1.5)+")",O.margin=v.format("-{0}px 0 0 -{0}px",M(+D||1.5))):(O.filter=Q,O.margin=0,delete this.attrs.blur),this},v._engine.path=function(D,O){var Q=S("shape");Q.style.cssText=le,Q.coordsize=he+N+he,Q.coordorigin=O.coordorigin;var J=new T(Q,O),X={fill:"none",stroke:"#000"};D&&(X.path=D),J.type="path",J.path=[],J.Path=ee,m(J,X),O.canvas&&O.canvas.appendChild(Q);var U=S("skew");return U.on=!0,Q.appendChild(U),J.skew=U,J.transform(ee),J},v._engine.rect=function(D,O,Q,J,X,U){var z=v._rectPath(O,Q,J,X,U),ie=D.path(z),de=ie.attrs;return ie.X=de.x=O,ie.Y=de.y=Q,ie.W=de.width=J,ie.H=de.height=X,de.r=U,de.path=z,ie.type="rect",ie},v._engine.ellipse=function(D,O,Q,J,X){var U=D.path();return U.attrs,U.X=O-J,U.Y=Q-X,U.W=2*J,U.H=2*X,U.type="ellipse",m(U,{cx:O,cy:Q,rx:J,ry:X}),U},v._engine.circle=function(D,O,Q,J){var X=D.path();return X.attrs,X.X=O-J,X.Y=Q-J,X.W=X.H=2*J,X.type="circle",m(X,{cx:O,cy:Q,r:J}),X},v._engine.image=function(D,O,Q,J,X,U){var z=v._rectPath(Q,J,X,U),ie=D.path(z).attr({stroke:"none"}),de=ie.attrs,me=ie.node,pe=me.getElementsByTagName("fill")[0];return de.src=O,ie.X=de.x=Q,ie.Y=de.y=J,ie.W=de.width=X,ie.H=de.height=U,de.path=z,ie.type="image",pe.parentNode==me&&me.removeChild(pe),pe.rotate=!0,pe.src=O,pe.type="tile",ie._.fillpos=[Q,J],ie._.fillsize=[X,U],me.appendChild(pe),y(ie,1,1,0,0,0),ie},v._engine.text=function(D,O,Q,J){var X=S("shape"),U=S("path"),z=S("textpath");O=O||0,Q=Q||0,J=J||"",U.v=v.format("m{0},{1}l{2},{1}",M(O*he),M(Q*he),M(O*he)+1),U.textpathok=!0,z.string=A(J),z.on=!0,X.style.cssText=le,X.coordsize=he+N+he,X.coordorigin="0 0";var ie=new T(X,D),de={fill:"#000",stroke:"none",font:v._availableAttrs.font,text:J};ie.shape=X,ie.path=U,ie.textpath=z,ie.type="text",ie.attrs.text=A(J),ie.attrs.x=O,ie.attrs.y=Q,ie.attrs.w=1,ie.attrs.h=1,m(ie,de),X.appendChild(z),X.appendChild(U),D.canvas.appendChild(X);var me=S("skew");return me.on=!0,X.appendChild(me),ie.skew=me,ie.transform(ee),ie},v._engine.setSize=function(D,O){var Q=this.canvas.style;return this.width=D,this.height=O,D==+D&&(D+="px"),O==+O&&(O+="px"),Q.width=D,Q.height=O,Q.clip="rect(0 "+D+" "+O+" 0)",this._viewBox&&v._engine.setViewBox.apply(this,this._viewBox),this},v._engine.setViewBox=function(D,O,Q,J,X){v.eve("raphael.setViewBox",this,this._viewBox,[D,O,Q,J,X]);var U,z,ie=this.getSize(),de=ie.width,me=ie.height;return X&&(Q*(U=me/J)<de&&(D-=(de-Q*U)/2/U),J*(z=de/Q)<me&&(O-=(me-J*z)/2/z)),this._viewBox=[D,O,Q,J,!!X],this._viewBoxShift={dx:-D,dy:-O,scale:ie},this.forEach(function(pe){pe.transform("...")}),this},v._engine.initWin=function(D){var O=D.document;O.styleSheets.length<31?O.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):O.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!O.namespaces.rvml&&O.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),S=function(Q){return O.createElement("<rvml:"+Q+' class="rvml">')}}catch{S=function(J){return O.createElement("<"+J+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},v._engine.initWin(v._g.win),v._engine.create=function(){var D=v._getContainer.apply(0,arguments),O=D.container,Q=D.height,J=D.width,X=D.x,U=D.y;if(!O)throw new Error("VML container not found.");var z=new v._Paper,ie=z.canvas=v._g.doc.createElement("div"),de=ie.style;return X=X||0,U=U||0,J=J||512,Q=Q||342,z.width=J,z.height=Q,J==+J&&(J+="px"),Q==+Q&&(Q+="px"),z.coordsize=216e5+N+216e5,z.coordorigin="0 0",z.span=v._g.doc.createElement("span"),z.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",ie.appendChild(z.span),de.cssText=v.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",J,Q),O==1?(v._g.doc.body.appendChild(ie),de.left=X+"px",de.top=U+"px",de.position="absolute"):O.firstChild?O.insertBefore(ie,O.firstChild):O.appendChild(ie),z.renderfix=function(){},z},v.prototype.clear=function(){v.eve("raphael.clear",this),this.canvas.innerHTML=ee,this.span=v._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},v.prototype.remove=function(){for(var D in v.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[D]=typeof this[D]=="function"?v._removedFactory(D):null;return!0};var d=v.st;for(var k in b)b[w](k)&&!d[w](k)&&(d[k]=function(D){return function(){var O=arguments;return this.forEach(function(Q){Q[D].apply(Q,O)})}}(k))}}).apply(l,u))===void 0||(o.exports=h)}])})})(raphael_min);var raphael_minExports=raphael_min.exports;const Raphael=getDefaultExportFromCjs$1(raphael_minExports),Arrow=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l),this.current_pilot_widget=this.pilot_widget}draw(){this.height=this.arrow_height+this.base_height,this.$.addClass("Ldt-Arrow").css({height:1+this.height+"px","margin-top":"1px",overflow:"hidden"}),this.paper=new Raphael(this.container,this.width,1+this.height),window.myArrow=this,this.svgArrow=this.paper.path("M0,"+this.height+"L"+this.width+","+this.height),this.svgArrow.attr({stroke:this.stroke_color,"stroke-width":this.stroke_width,fill:this.fill_url?"url("+this.fill_url+")":this.fill_color}),this.moveToX(0)}drawAt(o){o=Math.max(0,Math.min(o,this.width));var l="M0,"+this.height+"L0,"+Math.min(this.height,this.arrow_height+this.base_curve)+"Q0,"+this.arrow_height+" "+Math.max(0,Math.min(this.base_curve,o-this.arrow_width/2))+","+this.arrow_height+"L"+Math.max(0,o-this.arrow_width/2)+","+this.arrow_height+"L"+Math.max(0,o-this.arrow_width/2)+","+Math.min(this.arrow_height,2*this.arrow_height*o/this.arrow_width)+"L"+o+",0L"+Math.min(this.width,o+this.arrow_width/2)+","+Math.min(this.arrow_height,2*this.arrow_height*(this.width-o)/this.arrow_width)+"L"+Math.min(this.width,o+this.arrow_width/2)+","+this.arrow_height+"L"+Math.min(this.width,Math.max(this.width-this.base_curve,o+this.arrow_width/2))+","+this.arrow_height+"Q"+this.width+","+this.arrow_height+" "+this.width+","+Math.min(this.height,this.arrow_height+this.base_curve)+"L"+this.width+","+this.height;this.svgArrow.attr({path:l})}moveToX(o){this.targetX=Math.max(0,Math.min(o,this.width)),typeof this.animInterval>"u"&&(this.animInterval=window.setInterval(this.functionWrapper("increment"),40)),this.increment()}moveToTime(o){this.media&&this.moveToX(this.width*o/this.media.duration)}increment(){typeof this.currentX>"u"&&(this.currentX=this.targetX),this.currentX<this.targetX&&(this.currentX=Math.min(this.targetX,this.currentX+this.animation_speed)),this.currentX>this.targetX&&(this.currentX=Math.max(this.targetX,this.currentX-this.animation_speed)),this.currentX===this.targetX&&(window.clearInterval(this.animInterval),this.animInterval=void 0),this.drawAt(this.currentX)}},Or(e,"defaults",{arrow_height:12,arrow_width:20,base_height:0,base_curve:0,fill_url:n.widgetsDir+"/img/pinstripe.png",fill_color:"#ffffff",stroke_color:"#b7b7b7",stroke_width:1.5,animation_speed:20}),e},controllerStyles={},Controller=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l),this.lastSearchValue=""}draw(){var o=this;this.renderTemplate(),this.$playButton=this.$.find(".Ldt-Ctrl-Play"),this.$searchBlock=this.$.find(".Ldt-Ctrl-Search"),this.$searchInput=this.$.find(".Ldt-Ctrl-SearchInput"),this.$volumeBar=this.$.find(".Ldt-Ctrl-Volume-Bar"),this.onMediaEvent("play","playButtonUpdater"),this.onMediaEvent("pause","playButtonUpdater"),this.onMediaEvent("volumechange","volumeUpdater"),this.onMediaEvent("timeupdate","timeDisplayUpdater"),this.onMediaEvent("loadedmetadata","volumeUpdater"),this.$playButton.click(this.functionWrapper("playHandler")),this.enable_quiz_toggle!==void 0?this.enable_quiz_toggle?(this.$.find(".Ldt-Ctrl-Quiz-Enable").addClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.$.find(".Ldt-Ctrl-Quiz-Create").addClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.$.find("#QuizEditContainer").show()):(this.$.find(".Ldt-Ctrl-Quiz-Enable").removeClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.$.find(".Ldt-Ctrl-Quiz-Create").removeClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.player.trigger("QuizCreator.hide"),this.$.find("#QuizEditContainer").hide()):this.$.find(".Ldt-Ctrl-Quiz-Enable").hide(),this.$.find(".Ldt-Ctrl-Annotate").click(function(){o.player.trigger("CreateAnnotation.toggle")}),this.$.find(".Ldt-Ctrl-SearchBtn").click(this.functionWrapper("searchButtonHandler")),this.$searchInput.keyup(this.functionWrapper("searchHandler")),this.$searchInput.on("search",this.functionWrapper("searchHandler")),this.$.find(".Ldt-Ctrl-Fullscreen-Button").click(this.functionWrapper("toggleFullscreen"));var l=n.getFullscreenEventname();l&&document.addEventListener(l,function(){n.isFullscreen()&&n.getFullscreenElement()==o.$[0]?o.$.addClass("Ldt-Fullscreen-Element"):o.$.removeClass("Ldt-Fullscreen-Element")}),this.$.find(".Ldt-Ctrl-Quiz-Enable").click(this.functionWrapper("toggleQuiz")),this.$.find(".Ldt-Ctrl-Quiz-Create").click(this.functionWrapper("createQuiz"));var t=this.$.find(".Ldt-Ctrl-Volume-Control");if(this.$.find(".Ldt-Ctrl-Sound").click(this.functionWrapper("muteHandler")).mouseover(function(){t.show()}).mouseout(function(){t.hide()}),t.mouseover(function(){t.show()}).mouseout(function(){t.hide()}),!this.disable_ctrl_f){var u=70,h=0;jQuery(document).keydown(function(w){if(w.keyCode===u&&(w.ctrlKey||w.metaKey)){var A=jQuery.now();return A-h>2e3&&o.searchButtonHandler(),h=A,!1}})}this.$volumeBar.slider({slide:function(w,A){o.$volumeBar.attr("title",o.l10n.volume+": "+A.value+"%"),o.media.setVolume(A.value/100)},stop:this.functionWrapper("volumeUpdater")}),this.$.hover(function(){o.player.trigger("Player.MouseOver")},function(){o.player.trigger("Player.MouseOut")}),this.timeDisplayUpdater(new n.Model.Time(0));var v=this.source.getAnnotations();v.on("search",function(w){o.$searchInput.val(w),o.showSearchBlock()}),v.on("found",function(w){o.$searchInput.css("background-color","#e1ffe1")}),v.on("not-found",function(w){o.$searchInput.css("background-color","#d62e3a")}),v.on("search-cleared",function(){o.hideSearchBlock()}),o.always_show_search&&o.showSearchBlock()}timeDisplayUpdater(o){var l=this.media.duration;this.$.find(".Ldt-Ctrl-Time-Elapsed").html(o.toString()),this.$.find(".Ldt-Ctrl-Time-Total").html(l.toString())}playButtonUpdater(){this.media.getPaused()?this.$playButton.attr("title",this.l10n.play).removeClass("Ldt-Ctrl-Play-PauseState").addClass("Ldt-Ctrl-Play-PlayState"):this.$playButton.attr("title",this.l10n.pause).removeClass("Ldt-Ctrl-Play-PlayState").addClass("Ldt-Ctrl-Play-PauseState")}toggleFullscreen(){console.log("toggleFullscreen",jQuery("video",this.player.widgets[0].$[0]));const o=jQuery("video",this.player.widgets[0].$[0])[0];n.setFullScreen(o,!n.isFullscreen())}createQuiz(){this.player.trigger("Quiz.hide"),this.media.pause(),this.player.trigger("QuizCreator.create")}toggleQuiz(){this.enable_quiz_toggle=!this.enable_quiz_toggle,this.enable_quiz_toggle?(jQuery(".Ldt-Ctrl-Quiz-Enable").addClass("Ldt-Ctrl-Quiz-Toggle-Active"),jQuery(".Ldt-Ctrl-Quiz-Create").addClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.player.trigger("Quiz.activate")):(jQuery(".Ldt-Ctrl-Quiz-Enable").removeClass("Ldt-Ctrl-Quiz-Toggle-Active"),jQuery(".Ldt-Ctrl-Quiz-Create").removeClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.player.trigger("Quiz.deactivate"),this.player.trigger("QuizCreator.hide"))}playHandler(){this.media.getPaused()?this.media.play():this.media.pause()}muteHandler(){this.media.setMuted(!this.media.getMuted())}volumeUpdater(){var o=this.media.getMuted(),l=this.media.getVolume();l===!1&&(l=.5);var t=this.$.find(".Ldt-Ctrl-Sound");t.removeClass("Ldt-Ctrl-Sound-Mute Ldt-Ctrl-Sound-Half Ldt-Ctrl-Sound-Full"),o?t.attr("title",this.l10n.unmute).addClass("Ldt-Ctrl-Sound-Mute"):t.attr("title",this.l10n.mute).addClass(l<.5?"Ldt-Ctrl-Sound-Half":"Ldt-Ctrl-Sound-Full"),this.$volumeBar.slider("value",o?0:100*l)}showSearchBlock(){this.$searchBlock.animate({width:"160px"},200),this.$searchInput.css("background-color","#fff"),this.$searchInput.focus()}hideSearchBlock(){this.always_show_search||this.$searchBlock.animate({width:0},200)}searchButtonHandler(){if(this.$searchBlock.width())this.hideSearchBlock();else{this.showSearchBlock();var o=this.$searchInput.val();o&&this.source.getAnnotations().search(o)}}searchHandler(){this.$searchBlock.width()||(this.$searchBlock.css({width:"160px"}),this.$searchInput.css("background-color","#fff"));var o=this.$searchInput.val();this._positiveMatch=!1,o!==this.lastSearchValue&&(o?this.source.getAnnotations().search(o):(this.source.getAnnotations().trigger("clear-search"),this.$searchInput.css("background-color",""))),this.lastSearchValue=o}},Or(e,"defaults",{disable_annotate_btn:!1,disable_search_btn:!1,disable_ctrl_f:!1,disable_fullscreen:!0,always_show_search:!1,enable_quiz_toggle:void 0}),Or(e,"template",'<div class="Ldt-Ctrl"><div class="Ldt-Ctrl-Left"><div class="Ldt-Ctrl-button Ldt-Ctrl-Play Ldt-Ctrl-Play-PlayState Ldt-TraceMe" title="{{l10n.play_pause}}"></div><div class="Ldt-Ctrl-spacer"></div>{{^disable_annotate_btn}}<div class="Ldt-Ctrl-button Ldt-Ctrl-Annotate Ldt-TraceMe" title="{{l10n.annotate}}"></div><div class="Ldt-Ctrl-spacer"></div>{{/disable_annotate_btn}}{{^disable_search_btn}}<div class="Ldt-Ctrl-button Ldt-Ctrl-SearchBtn Ldt-TraceMe" title="{{l10n.search}}"></div>{{/disable_search_btn}}<div class="Ldt-Ctrl-Search"><input placeholder="{{ l10n.search }}" type="search" class="Ldt-Ctrl-SearchInput Ldt-TraceMe"></input></div><div class="Ldt-Ctrl-Quiz-Enable Ldt-TraceMe" title="Activer/Désactiver le quiz"></div><div class="Ldt-Ctrl-Quiz-Create Ldt-TraceMe" ></div></div><div class="Ldt-Ctrl-Right">{{^disable_fullscreen}}<div class="Ldt-Ctrl-Fullscreen-Button Ldt-TraceMe" title="Passer le lecteur en plein-écran"></div{{/disable_fullscreen}}<div class="Ldt-Ctrl-spacer"></div><div class="Ldt-Ctrl-Time"><div class="Ldt-Ctrl-Time-Elapsed" title="{{l10n.elapsed_time}}">00:00</div><div class="Ldt-Ctrl-Time-Separator">/</div><div class="Ldt-Ctrl-Time-Total" title="{{l10n.total_time}}">00:00</div></div><div class="Ldt-Ctrl-spacer"></div><div class="Ldt-Ctrl-button Ldt-Ctrl-Sound Ldt-Ctrl-Sound-Full Ldt-TraceMe" title="{{l10n.mute_unmute}}"></div></div><div class="Ldt-Ctrl-Volume-Control" title="{{l10n.volume_control}}"><div class="Ldt-Ctrl-Volume-Bar"></div></div></div>'),Or(e,"messages",{en:{play_pause:"Play/Pause",mute_unmute:"Mute/Unmute",play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",annotate:"Annotate",search:"Search",elapsed_time:"Elapsed time",total_time:"Total duration",volume:"Volume",volume_control:"Volume control",enable_quiz:"Enable quiz"},fr:{play_pause:"Lecture/Pause",mute_unmute:"Couper/Activer le son",play:"Lecture",pause:"Pause",mute:"Couper le son",unmute:"Activer le son",annotate:"Annoter",search:"Rechercher",elapsed_time:"Temps écoulé",total_time:"Durée totale",volume:"Niveau sonore",volume_control:"Réglage du niveau sonore",enable_quiz:"Activer le quiz"}}),e},createAnnotationStyles={},CreateAnnotation=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l),this.editable_storage!=""&&window.localStorage[this.editable_storage]&&this.source.onLoad(function(){var t=this.player.sourceManager.newLocalSource({serializer:n.serializers.ldt_localstorage});t.deSerialize(window.localStorage[this.editable_storage]),_this.source.merge(t)})}draw(){var o=this;this.begin=new n.Model.Time,this.end=this.source.getDuration(),this.tag_prefix=this.tag_prefix||"",this.tag_titles&&!this.tags&&(this.tag_titles.length==1&&this.tag_titles[0]==""?this.tags=!0:this.tags=_$1(this.tag_titles).map(function(l){var t,u=o.source.getTags().searchByTitle(l,!0);return u.length?t=u[0]:(t=new n.Model.Tag(!1,o.source),o.source.getTags().push(t),t.title=l),t}).value()),this.tags||(this.tags=this.source.getTags().sortBy(function(l){return-l.getAnnotations().length}).slice(0,this.max_tags).map(function(l){return l})),this.renderTemplate(),this.show_slice?this.insertSubwidget(this.$.find(".Ldt-CreateAnnotation-Slice"),{type:"Slice",show_arrow:this.show_arrow,annotation_type:this.slice_annotation_type,onBoundsChanged:function(l,t){o.setBeginEnd(l,t)}},"slice"):(this.show_arrow&&this.insertSubwidget(this.$.find(".Ldt-CreateAnnotation-Arrow"),{type:"Arrow"},"arrow"),this.onMediaEvent("timeupdate",function(l){o.$.find(".Ldt-CreateAnnotation-Description").val().trim()==""&&(o.setBeginEnd(l,l),o.arrow&&o.arrow.moveToTime(l))})),this.$.find(".Ldt-CreateAnnotation-Cancel").click(function(){o.player.trigger("CreateAnnotation.hide")}),this.$.find(".Ldt-CreateAnnotation-Close").click(function(){return o.close_after_send?o.player.trigger("CreateAnnotation.hide"):o.showScreen("Main"),!1}),this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").click(function(){return o.addKeyword(jQuery(this).attr("data-text")),!1}),this.$.find(".Ldt-CreateAnnotation-PolemicLi").each(function(){var l=jQuery(this),t=l.attr("data-text"),u=o.l10n["polemic"+t];u&&l.attr("title",u)}),this.$.find(".Ldt-CreateAnnotation-Description").bind("change keyup input paste",this.functionWrapper("onDescriptionChange")),this.show_title_field&&this.$.find(".Ldt-CreateAnnotation-Title").bind("change keyup input paste",this.functionWrapper("onTitleChange")),this.show_creator_field&&this.$.find(".Ldt-CreateAnnotation-Creator").bind("change keyup input paste",this.functionWrapper("onCreatorChange")),this.$.find("[class^='Ldt-CreateAnnotation-Control-']").click(function(){var l=this.className.replace("Ldt-CreateAnnotation-Control-","");switch(l){case"In":this.setBegin(o.media.getCurrentTime());break;case"Out":this.setEnd(o.media.getCurrentTime()||o.media.duration);break;case"Play":this.media.setCurrentTime(o.begin),this.media.play();break}return!1}),this.start_visible?this.show():(this.$.hide(),this.hide()),this.onMdpEvent("CreateAnnotation.toggle","toggle"),this.onMdpEvent("CreateAnnotation.hide","hide"),this.onMdpEvent("CreateAnnotation.show","show"),this.$.find("form").submit(this.functionWrapper("onSubmit"))}setBegin(o){this.begin=new n.Model.Time(o||0),this.$.find(".Ldt-CreateAnnotation-Begin").html(this.begin.toString())}setEnd(o){this.end=new n.Model.Time(o||0),this.$.find(".Ldt-CreateAnnotation-End").html(this.end.toString())}setBeginEnd(o,l){this.setBegin(o),this.setEnd(l)}showScreen(o){this.$.find(".Ldt-CreateAnnotation-"+o).show().siblings().hide()}show(){this.visible||(this.visible=!0,this.pause_when_displaying&&this.media.pause(),this.showScreen("Main"),this.$.find(".Ldt-CreateAnnotation-Description").val("").css("border-color","#666666").addClass("empty"),this.show_title_field&&this.$.find(".Ldt-CreateAnnotation-Title").val("").css("border-color","#666666").addClass("empty"),this.show_creator_field&&(this.$.find(".Ldt-CreateAnnotation-Creator").val(this.creator_name).css("border-color","#666666"),this.creator_name||this.$.find(".Ldt-CreateAnnotation-Creator").addClass("empty")),this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").removeClass("selected"),this.$.slideDown(),this.minimize_annotation_widget&&this.player.trigger("Annotation.minimize"))}hide(){this.visible&&(this.always_visible||(this.visible=!1,this.$.slideUp(),this.minimize_annotation_widget&&this.player.trigger("Annotation.maximize")))}toggle(){if(!this.always_visible)if(this.visible)this.hide();else{var o=this.media.getCurrentTime()||0;this.setBeginEnd(o,o),this.slice_widget&&this.slice_widget.setBounds(this.begin,this.end),this.show(),this.$.find(".Ldt-CreateAnnotation-Description").focus()}}addKeyword(o){var l=this.$.find(".Ldt-CreateAnnotation-Description"),t=n.Model.regexpFromTextOrArray(o),u=l.val();u=u.match(t)?u.replace(t,""):u+" "+o,l.val(u.replace(/\s{2,}/g," ").replace(/(^\s+|\s+$)/g,"")),this.onDescriptionChange()}pauseOnWrite(){this.pause_on_write&&!this.media.getPaused()&&this.media.pause()}onDescriptionChange(o){if(o!==void 0&&o.keyCode==13&&!o.shiftKey)return this.onSubmit(),!0;var l=this.$.find(".Ldt-CreateAnnotation-Description"),t=l.val();return l.css("border-color",t?"#666666":"#ff0000"),t?l.removeClass("empty"):l.addClass("empty"),this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").each(function(){var u=n.Model.regexpFromTextOrArray(jQuery(this).attr("data-text"));t.match(u)?jQuery(this).addClass("selected"):jQuery(this).removeClass("selected")}),this.pauseOnWrite(),!!t}onTitleChange(){var o=this.$.find(".Ldt-CreateAnnotation-Title"),l=o.val();return o.css("border-color",l?"#666666":"#ff0000"),l?o.removeClass("empty"):o.addClass("empty"),this.pauseOnWrite(),!!l}onCreatorChange(){var o=this.$.find(".Ldt-CreateAnnotation-Creator"),l=o.val();return o.css("border-color",l?"#666666":"#ff0000"),l?o.removeClass("empty"):o.addClass("empty"),this.pauseOnWrite(),!!l}onSubmit(){if(!this.onDescriptionChange()||this.show_title_field&&!this.onTitleChange()||this.show_creator_field&&!this.onCreatorChange())return!1;var o=this,l=new n.Model.List(this.player.sourceManager),t=this.player.sourceManager.newLocalSource({serializer:n.serializers[this.api_serializer]}),u=this.player.sourceManager.newLocalSource({serializer:n.serializers.ldt_localstorage}),h=new n.Model.Annotation(!1,t),v=this.source.getAnnotationTypes().searchByTitle(this.annotation_type,!0),w=v.length?v[0]:new n.Model.AnnotationType(!1,t),A=mustache.render(this.api_endpoint_template,{id:this.source.projectId});if(v.length||(w.dont_send_id=!0,w.title=this.annotation_type),h.setMedia(this.source.currentMedia.id),this.post_at_segment_time){var E=this.media.getCurrentTime(),C=this.source.getAnnotationsByTypeTitle(this.segments_annotation_type),M=C.filter(function(I){return E>=I.begin&&E<=I.end});M.length==0?(h.setBegin(this.begin),h.setEnd(this.end)):(h.setBegin(M[0].begin),h.setEnd(M[0].end))}else h.setBeginEnd(this.begin,this.end);h.setAnnotationType(w.id),this.show_title_field&&(h.title=this.$.find(".Ldt-CreateAnnotation-Title").val()),this.project_id!=""&&(h.project_id=this.project_id),h.created=new Date,h.description=this.$.find(".Ldt-CreateAnnotation-Description").val();var P=Array.prototype.map.call(this.$.find(".Ldt-CreateAnnotation-TagLi.selected"),function(I){return jQuery(I).attr("tag-id")});if(_$1(h.description.match(/#[^\s#.,;]+/g)).each(function(I){var j,B=I.replace(/^#/,""),F=o.source.getTags().searchByTitle(B,!0);F.length?j=F[0]:(j=new n.Model.Tag(!1,o.source),o.source.getTags().push(j),j.title=B),P.indexOf(j.id)===-1&&P.push(j.id)}),h.setTags(_$1(P).uniq()),this.audio_url&&(h.audio={src:"mic",mimetype:"audio/mp3",href:this.audio_url}),this.show_creator_field?h.creator=this.$.find(".Ldt-CreateAnnotation-Creator").val():h.creator=this.creator_name,l.push(h),this.editable_storage!=""&&(u.addList("annotation",l),o.source.merge(u),window.localStorage[this.editable_storage]&&u.deSerialize(window.localStorage[this.editable_storage]),window.localStorage[o.editable_storage]=u.serialize(),o.player.trigger("AnnotationsList.refresh"),o.player.trigger("Annotation.create",h),o.$.find(".Ldt-CreateAnnotation-Description").val("")),A!==""){l.push(h),t.addList("annotation",l);var o=this;jQuery.ajax({url:A,type:this.api_method,contentType:"application/json",data:t.serialize(),success:function(j){o.showScreen("Saved"),o.after_send_timeout&&window.setTimeout(function(){o.close_after_send?o.player.trigger("CreateAnnotation.hide"):o.player.trigger("CreateAnnotation.show")},o.after_send_timeout),t.getAnnotations().removeElement(h,!0),t.deSerialize(j),o.source.merge(t),o.pause_on_write&&o.media.getPaused()&&o.media.play(),o.player.trigger("AnnotationsList.refresh")},error:function(j,B,F){n.log("Error when sending annotation",F),t.getAnnotations().removeElement(h,!0),o.showScreen("Error"),window.setTimeout(function(){o.showScreen("Main")},o.after_send_timeout||5e3)}}),this.showScreen("Wait")}return!1}},Or(e,"defaults",{show_title_field:!0,show_creator_field:!0,creator_field_readonly:!1,start_visible:!0,always_visible:!1,show_slice:!0,show_arrow:!0,show_time:!0,minimize_annotation_widget:!0,creator_name:"",creator_avatar:"",tags:!1,tag_titles:!1,pause_on_write:!0,max_tags:8,polemics:[{keyword:"++",background_color:"#00a000",text_color:"#ffffff"},{keyword:"--",background_color:"#c00000",text_color:"#ffffff"},{keyword:"??",background_color:"#0000e0",text_color:"#ffffff"},{keyword:"==",background_color:"#f0e000",text_color:"#000000"}],slice_annotation_type:"chap",annotation_type:"Contributions",post_at_segment_time:!1,segment_annotation_type:"chap",api_serializer:"ldt_annotate",api_endpoint_template:"",api_method:"POST",editable_storage:"",project_id:"",after_send_timeout:0,close_after_send:!1,tag_prefix:"#",pause_when_displaying:!1,custom_send_button:!1,custom_cancel_button:!1,custom_description_placeholder:!1,preview_mode:!1}),Or(e,"messages",{en:{from_time:"from",to_time:"to",at_time:"at",submit:"Submit",preview_submit:"You cannot submit annotations in preview mode",cancel:"Cancel",add_keywords_:"Add keywords:",add_polemic_keywords_:"Add polemic attributes :",your_name_:"Your name:",annotate_video:"New note",type_title:"Annotation title",type_description:"Enter a new note...",wait_while_processing:"Please wait while your annotation is being processed...",error_while_contacting:"An error happened while contacting the server. Your annotation has not been saved.",annotation_saved:"Thank you, your annotation has been saved.",share_annotation:"Would you like to share it on social networks ?",close_widget:"Hide the annotation form","polemic++":"Agree","polemic--":"Disagree","polemic??":"Question","polemic==":"Reference",in_tooltip:"Set begin time to current player time",out_tooltip:"Set begin time to current player time",play_tooltip:"Play the fragment"},fr:{from_time:"de",to_time:"à",at_time:"à",submit:"Envoyer",preview_submit:"Vous ne pouvez pas envoyer d'annotation en mode aperçu",cancel:"Annuler",add_keywords_:"Ajouter des mots-clés :",add_polemic_keywords_:"Ajouter des attributs polémiques :",your_name_:"Votre nom :",annotate_video:"Entrez une nouvelle note...",type_title:"Titre de l'annotation",type_description:"Prenez vos notes...",wait_while_processing:"Veuillez patienter pendant le traitement de votre annotation...",error_while_contacting:"Une erreur s'est produite en contactant le serveur. Votre annotation n'a pas été enregistrée.",annotation_saved:"Merci, votre annotation a été enregistrée.",share_annotation:"Souhaitez-vous la partager sur les réseaux sociaux ?",close_widget:"Cacher le formulaire de création d'annotations","polemic++":"Accord","polemic--":"Désaccord","polemic??":"Question","polemic==":"Référence",in_tooltip:"Utiliser le temps courant comme début",out_tooltip:"Utiliser le temps courant comme fin",play_tooltip:"Jouer le fragment"}}),Or(e,"template",'{{#show_slice}}<div class="Ldt-CreateAnnotation-Slice Ldt-TraceMe"></div>{{/show_slice}}{{^show_slice}}{{#show_arrow}}<div class="Ldt-CreateAnnotation-Arrow"></div>{{/show_arrow}}{{/show_slice}}<div class="Ldt-CreateAnnotation"><div class="Ldt-CreateAnnotation-Inner"><form class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Main"><h3><span class="Ldt-CreateAnnotation-h3Left">{{l10n.annotate_video}}{{#show_title_field}}</span></h3><h3><span class="Ldt-CreateAnnotation-h3Left"><input class="Ldt-CreateAnnotation-Title empty" placeholder="{{l10n.type_title}}" />{{/show_title_field}}{{#show_time}}<span class="Ldt-CreateAnnotation-Times"> {{#show_slice}}{{l10n.from_time}} {{/show_slice}}{{^show_slice}}{{l10n.at_time}} {{/show_slice}} <span class="Ldt-CreateAnnotation-Begin">00:00</span>{{/show_time}}{{#show_slice}} {{l10n.to_time}} <span class="Ldt-CreateAnnotation-End">{{end}}</span>{{/show_slice}}</span></span>{{#show_creator_field}}{{l10n.your_name_}} <input class="Ldt-CreateAnnotation-Creator empty" value="{{creator_name}}" {{#creator_field_readonly}}readonly{{/creator_field_readonly}}/>{{/show_creator_field}}</h3>{{#show_controls}}<div class="Ldt-CreateAnnotation-Controls"><span title="{{l10n.in_tooltip}}" class="Ldt-CreateAnnotation-Control-In">In</span><span title="{{l10n.out_tooltip}}" class="Ldt-CreateAnnotation-Control-Out">Out</span><span title="{{l10n.play_tooltip}}" class="Ldt-CreateAnnotation-Control-Play">Play</span></div>{{/show_controls}}<textarea class="Ldt-CreateAnnotation-Description Ldt-TraceMe empty" placeholder="{{#custom_description_placeholder}}{{custom_description_placeholder}}{{/custom_description_placeholder}}{{^custom_description_placeholder}}{{l10n.type_description}}{{/custom_description_placeholder}}"></textarea>{{#show_creator_field}}<div class="Ldt-CreateAnnotation-Avatar"><img src="{{creator_avatar}}" title="{{creator_name}}"></img></div>{{/show_creator_field}}<div class="Ldt-CreateAnnotation-SubmitArea Ldt-TraceMe">{{#preview_mode}}<input type="button" class="Ldt-CreateAnnotation-PreviewSubmit" title="{{l10n.preview_submit}}" value="{{#custom_send_button}}{{custom_send_button}}{{/custom_send_button}}{{^custom_send_button}}{{l10n.submit}}{{/custom_send_button}}" />{{/preview_mode}}{{^preview_mode}}<input type="submit" class="Ldt-CreateAnnotation-Submit" value="{{#custom_send_button}}{{custom_send_button}}{{/custom_send_button}}{{^custom_send_button}}{{l10n.submit}}{{/custom_send_button}}" />{{/preview_mode}}<input type="button" class="Ldt-CreateAnnotation-Cancel" value="{{#custom_cancel_button}}{{custom_cancel_button}}{{/custom_cancel_button}}{{^custom_cancel_button}}{{l10n.cancel}}{{/custom_cancel_button}}" /><div class="Ldt-CreateAnnotation-Begin Ldt-CreateAnnotation-Times">00:00</div></div>{{#tags.length}}<div class="Ldt-CreateAnnotation-Tags"><div class="Ldt-CreateAnnotation-TagTitle">{{l10n.add_keywords_}}</div><ul class="Ldt-CreateAnnotation-TagList">{{#tags}}<li class="Ldt-CreateAnnotation-TagLi" tag-id="{{id}}" data-text="{{tag_prefix}}{{title}}"><span class="Ldt-CreateAnnotation-TagButton">{{title}}</span></li>{{/tags}}</ul></div>{{/tags.length}}{{#polemics.length}}<div class="Ldt-CreateAnnotation-Polemics"><div class="Ldt-CreateAnnotation-PolemicTitle">{{l10n.add_polemic_keywords_}}</div><ul class="Ldt-CreateAnnotation-PolemicList">{{#polemics}}<li class="Ldt-CreateAnnotation-PolemicLi" style="background-color: {{background_color}}; color: {{text_color}}" data-text="{{keyword}}">{{keyword}}</li>{{/polemics}}</ul></div>{{/polemics.length}}<div style="clear: both;"></div></form><div class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Wait"><div class="Ldt-CreateAnnotation-InnerBox">{{l10n.wait_while_processing}}</div></div><div class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Error">{{^always_visible}}<a title="{{l10n.close_widget}}" class="Ldt-CreateAnnotation-Close" href="#"></a>{{/always_visible}}<div class="Ldt-CreateAnnotation-InnerBox">{{l10n.error_while_contacting}}</div></div><div class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Saved">{{^always_visible}}<a title="{{l10n.close_widget}}" class="Ldt-CreateAnnotation-Close" href="#"></a>{{/always_visible}}<div class="Ldt-CreateAnnotation-InnerBox">{{l10n.annotation_saved}}</div></div></div></div>'),e},currentSegmentInfoboxStyles={},CurrentSegmentInfobox=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){var o=this;this.segments=this.getWidgetAnnotations(),this.renderTemplate(),this.currentSegment=!1,this.clearBox(),this.refresh(),this.onMediaEvent("timeupdate","refresh"),this.onMediaEvent("settimerange",function(l){var t=l[0],u=l[1],h=o.segments.filter(function(v){return v.begin.milliseconds==t.milliseconds&&v.end.milliseconds==u.milliseconds});h.length>0&&(o.$.toggleClass("editing",!1),o.currentSegment.id!=h[0].id&&(o.currentSegment=h[0],_data={editable_segments:o.editable_segments,edit:o.custom_edit_text?o.custom_edit_text:o.l10n.edit,title:o.currentSegment.title,description:o.currentSegment.description,description_placeholder:o.empty_description_placeholder,tags:o.currentSegment.getTagTexts()},o.$.html(mustache.render(o.template,_data)),o.editable_segments&&o.currentSegment&&o.$.find(".Ldt-CurrentSegmentInfobox").click(o.functionWrapper("enableEditMode"))))}),this.editable_segments&&this.currentSegment&&this.$.find(".Ldt-CurrentSegmentInfobox").click(o.functionWrapper("enableEditMode"))}enableEditMode(){this.currentSegment&&(_data={title:this.currentSegment.title,description:this.currentSegment.description,tags:this.currentSegment.getTagTexts(),submit:this.l10n.submit,cancel:this.l10n.cancel,headers:this.show_headers,tags_header:this.custom_tags_header?this.custom_tags_header:this.l10n.tags_header,fields_header:this.custom_fields_header?this.custom_fields_header:this.l10n.fields_header,new_tag:this.l10n.new_tag,delete_tag:this.l10n.delete_tag,new_tag_button:this.new_tag_button},this.$.toggleClass("editing",!0),this.$.html(mustache.render(this.editTemplate,_data)),this.$.find(".Ldt-CurrentSegmentInfobox-CancelButton").click(this.functionWrapper("disableEditMode")),this.new_tag_button?this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagButton").click(this.functionWrapper("insertTagInput")):(this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagInput").keypress(this.functionWrapper("insertTagInputKeypress")),this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagInput-Add").click(this.functionWrapper("insertTagInputKeypress"))),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton").click(this.functionWrapper("deleteTagInput")),this.$.find(".Ldt-CurrentSegmentInfobox-SubmitButton").click(this.functionWrapper("onSubmit")))}disableEditMode(){this.currentSegment&&(_data={editable_segments:this.editable_segments,edit:this.custom_edit_text?this.custom_edit_text:this.l10n.edit,title:this.currentSegment.title,description:this.currentSegment.description,description_placeholder:this.empty_description_placeholder,tags:this.currentSegment.getTagTexts()},this.$.toggleClass("editing",!1),this.$.html(mustache.render(this.template,_data)),this.$.find(".Ldt-CurrentSegmentInfobox").click(this.functionWrapper("enableEditMode")))}insertTagInput(){!this.currentSegment.getTagTexts().length&&!this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Ul").length&&this.$.find(".Ldt-CurrentSegmentInfobox-Tags").prepend('<ul class="Ldt-CurrentSegmentInfobox-Tags-Ul"></ul>'),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Ul").append('<li class="Ldt-CurrentSegmentInfobox-Tags-Li"><input type="text" class="Ldt-CurrentSegmentInfobox-Tags-Li-Input" value=""></input><div class="Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton">'+this.l10n.delete_tag+"</div></li>"),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton").click(this.functionWrapper("deleteTagInput"))}insertTagInputKeypress(o){var l=o.keyCode?o.keyCode:o.which;if(l=="13"||o.type=="click")return!this.currentSegment.getTagTexts().length&&!this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Ul").length&&this.$.find(".Ldt-CurrentSegmentInfobox-Tags").prepend('<ul class="Ldt-CurrentSegmentInfobox-Tags-Ul"></ul>'),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Ul").append('<li class="Ldt-CurrentSegmentInfobox-Tags-Li"><input type="text" class="Ldt-CurrentSegmentInfobox-Tags-Li-Input" value="'+this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagInput").val()+'"></input><div class="Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton">'+this.l10n.delete_tag+"</div></li>"),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton").click(this.functionWrapper("deleteTagInput")),this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagInput").val(""),!1}deleteTagInput(o){jQuery(o.currentTarget).parent().remove()}onSubmit(){new_tags_titles=this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Li-Input").map(function(){if(jQuery(this).val())return jQuery(this).val()}),new_title=this.$.find(".Ldt-CurrentSegmentInfobox-TitleInput").val(),new_description=this.$.find(".Ldt-CurrentSegmentInfobox-DescriptionInput").val();var o=this,l=new n.Model.List(this.player.sourceManager),t=this.player.sourceManager.newLocalSource({serializer:n.serializers[this.api_serializer]}),u=new n.Model.Annotation(this.currentSegment.id,t);u.setAnnotationType(this.currentSegment.getAnnotationType().id),u.setMedia(this.currentSegment.getMedia().id),u.setBegin(this.currentSegment.begin),u.setEnd(this.currentSegment.end),u.created=this.currentSegment.created,u.creator=this.currentSegment.creator,u.title=new_title,u.description=new_description;var h=_$1(new_tags_titles).map(function(v){var w=o.source.getTags(!0).searchByTitle(v,!0);if(w.length)var A=w[0];else A=new n.Model.Tag(v.replace(/\W/g,"_"),o.source),A.title=v,o.source.getTags().push(A);return A.id}).value();u.setTags(h),u.project_id=this.project_id,l.push(u),t.addList("annotation",l),_url=mustache.render(this.api_endpoint_template,{annotation_id:this.currentSegment.id}),n.jQuery.ajax({url:_url,type:this.api_method,contentType:"application/json",data:t.serialize(),success:function(v){t.getAnnotations().removeElement(u,!0),t.deSerialize(v),o.source.merge(t),o.segments.forEach(function(w){w.id==u.id&&o.segments.removeElement(w)}),o.segments.push(u),o.currentSegment=u,v={editable_segments:o.editable_segments,edit:o.custom_edit_text?o.custom_edit_text:o.l10n.edit,title:o.currentSegment.title,description:o.currentSegment.description,description_placeholder:o.empty_description_placeholder,tags:o.currentSegment.getTagTexts()},o.$.html(mustache.render(o.template,v)),o.editable_segments&&o.currentSegment&&o.$.find(".Ldt-CurrentSegmentInfobox").click(o.functionWrapper("enableEditMode")),o.$.toggleClass("editing",!1)},error:function(v,w,A){n.log("Error when sending annotation",A),t.getAnnotations().removeElement(u,!0)}})}refresh(){if(!this.media.getTimeRange()){var o=this.media.getCurrentTime(),l=this.segments.filter(function(t){return t.begin<=o&&t.end>=o});l.length>0?this.currentSegment.id!=l[0].id&&(this.currentSegment=l[0],_data={editable_segments:this.editable_segments,edit:this.custom_edit_text?this.custom_edit_text:this.l10n.edit,title:this.currentSegment.title,description:this.currentSegment.description,description_placeholder:this.empty_description_placeholder,tags:this.currentSegment.getTagTexts()},this.$.html(mustache.render(this.template,_data)),this.editable_segments&&this.currentSegment&&this.$.find(".Ldt-CurrentSegmentInfobox").click(this.functionWrapper("enableEditMode"))):(this.currentSegment=!1,this.clearBox())}}clearBox(){var o=this.l10n.empty;this.empty_message&&(o=this.empty_message),this.$.find(".Ldt-CurrentSegmentInfobox").html("<div class='Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-NoSegment'>"+o+"</div>")}},Or(e,"defaults",{annotation_type:"chap",editable_segments:!1,empty_message:!1,project_id:!1,api_serializer:"ldt_annotate",api_method:"PUT",api_endpoint_template:"",new_tag_button:!0,show_headers:!1,custom_edit_text:!1,empty_description_placeholder:!1}),Or(e,"template",'<div class="Ldt-CurrentSegmentInfobox"><div class="Ldt-CurrentSegmentInfobox-SelectedSegment">{{#editable_segments}}<div class="Ldt-CurrentSegmentInfobox-EditButton">{{edit}}</div>{{/editable_segments}}<div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Title">{{title}}</div><div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Description">{{description}}</div>{{^description}}{{^tags.length}}{{#description_placeholder}}<div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Description-placeholder">{{description_placeholder}}</div>{{/description_placeholder}}{{/tags.length}}{{/description}}<div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Tags">{{#tags.length}}<ul class="Ldt-CurrentSegmentInfobox-Tags-Ul">{{#tags}}{{#.}}<li class="Ldt-CurrentSegmentInfobox-Tags-Li"><span>{{.}}</span></li>{{/.}}{{/tags}}</ul>{{/tags.length}}</div></div></div>'),Or(e,"editTemplate",'<div class="Ldt-CurrentSegmentInfobox"><div class="Ldt-CurrentSegmentInfobox-SelectedSegment">{{#headers}}<div class="Ldt-CurrentSegmentInfobox-FieldsHeader">{{fields_header}}</div>{{/headers}}<input type="text" class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-TitleInput Ldt-CurrentSegmentInfobox-Title" value="{{title}}"></input><textarea class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-DescriptionInput Ldt-CurrentSegmentInfobox-Description">{{description}}</textarea><div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Tags">{{#headers}}<div class="Ldt-CurrentSegmentInfobox-TagsHeader">{{tags_header}}</div>{{/headers}}{{#new_tag_button}}<div class="Ldt-CurrentSegmentInfobox-CreateTagButton">{{new_tag}}</div>{{/new_tag_button}}{{^new_tag_button}}<input class="Ldt-CurrentSegmentInfobox-CreateTagInput" placeholder="{{new_tag}}"></input><div class="Ldt-CurrentSegmentInfobox-CreateTagInput-Add">+</div>{{/new_tag_button}}<ul class="Ldt-CurrentSegmentInfobox-Tags-Ul">{{#tags}}{{#.}}<li class="Ldt-CurrentSegmentInfobox-Tags-Li"><input type="text" class="Ldt-CurrentSegmentInfobox-Tags-Li-Input" value="{{.}}"></input><div class="Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton">{{delete_tag}}</div></li>{{/.}}{{/tags}}</ul></div><div class="Ldt-CurrentSegmentInfobox-SubmitButton">{{submit}}</div><div class="Ldt-CurrentSegmentInfobox-CancelButton">{{cancel}}</div></div></div>'),Or(e,"messages",{fr:{submit:"Soumettre",cancel:"Annuler",edit:"Editer",new_tag:"Nouveau tag",delete_tag:"Supprimer",fields_header:"Commentaire associé à ce segment",tags_header:"Mots-clés associés à ce segment",empty:"Le player vidéo ne lit actuellement aucun segment"},en:{submit:"Submit",cancel:"Cancel",edit:"Edit",new_tag:"New tag",delete_tag:"Delete tag",fields_header:"Current segment content",tags_header:"Current segment tags",empty:"The player currently doesn't read any segment"}}),e},DailymotionPlayer=function(n){var e;return e=class extends n.Widgets.Widget{constructor(l,t){super(l,t);Or(this,"draw",function(){typeof this.video>"u"&&(this.video=this.media.video),this.height=this.height||Math.floor(this.width/this.aspect_ratio);var l=this.media,t=null,u=this,h={pause:!0,apiready:!1,volume:0,time:0,duration:0},v=this.video.match(/www.dailymotion.com\/video\/(.+)/);v&&(t=v[1]);var w=mustache.render("{{ protocol }}//www.dailymotion.com/embed/video/{{ videoid }}",{protocol:document.location.protocol.search("http")==0?document.location.protocol:"http:",videoid:t}),A={api:"postMessage",chromeless:1,id:"dm_player",related:0,autoplay:1};u.$.html(mustache.render('<iframe id="{{ id }}" src="{{ player_url }}?{{ params }}" width="{{ width }}" height="{{ height }}" frameborder="0"></iframe>',{player_url:w,params:Object.keys(A).reduce(function(C,M){return C.push(M+"="+encodeURIComponent(A[M])),C},[]).join("&"),width:this.width,height:this.height,id:A.id}));function E(){var C=u.$.find("#"+A.id)[0].contentWindow,M=function(P,I){I!==void 0&&(P=P+"="+I),C.postMessage(P,"*")};l.getCurrentTime=function(){return h.time},l.getVolume=function(){return h.volume},l.getPaused=function(){return h.pause},l.getMuted=function(){return h.muted},l.setCurrentTime=function(P){M("seek",P/1e3)},l.setVolume=function(P){M("volume",P*100)},l.mute=function(){M("muted",1)},l.unmute=function(){M("muted",0)},l.play=function(){M("play")},l.pause=function(){M("pause")}}window.addEventListener("message",function(C){if(C.data.split!==void 0){var M=C.data.split("&").map(function(P){return P.split("=")}).reduce(function(P,I){return P[I[0]]=decodeURIComponent(I[1]),P},{});switch(M.event){case"apiready":h.apiready=!0,E();break;case"durationchange":M.duration.slice(-2)=="sc"&&(h.duration=1e3*Number(M.duration.slice(0,-2)),l.setDuration(h.duration));break;case"ended":h.pause=!0;break;case"loadedmetadata":l.trigger("loadedmetadata");break;case"pause":h.pause=!0,l.trigger("pause");break;case"play":h.pause=!1,l.trigger("play");break;case"seeked":h.time=new n.Model.Time(1e3*Number(M.time)),l.trigger("seeked");break;case"timeupdate":h.time=new n.Model.Time(1e3*Number(M.time)),l.trigger("timeupdate",h.time);break;case"volumechange":h.muted=M.muted=="true",h.volume=Number(M.volume)/100;break}}},!1)})}},Or(e,"defaults",{aspect_ratio:14/9}),e},enrichedPlanStyles={},EnrichedPlan=function(n){var e;return e=class extends n.Widgets.Widget{constructor(l,t){super(l,t);Or(this,"annotationTemplate",'<div title="{{ begin }} - {{ atitle }}" data-id="{{ id }}" data-timecode="{{begintc}}" class="Ldt-EnrichedPlan-SlideItem Ldt-EnrichedPlan-Note {{category}} {{filtered}}"><span class="Ldt-EnrichedPlan-Note-Text">{{{ text }}}</span> <span class="Ldt-EnrichedPlan-Note-Author">{{ author }}</span></div>')}draw(){var l=this;l.prefix="TODO";var t=this.getWidgetAnnotations().sortBy(function(A){return A.begin}),u=this.media.getAnnotations().filter(function(A){return A.getAnnotationType().title!=l.annotation_type}).sortBy(function(A){return A.begin});t.forEach(function(A){A.annotations=u.filter(function(E){return E.begin>=A.begin&&E.begin<=A.end})}),l.renderTemplate();var h=l.$.find(".Ldt-EnrichedPlan-Container"),v=l.$.find(".Ldt-EnrichedPlan-Content");function w(A){return A.title.indexOf("Anonyme")<0?"Own":"Other"}t.forEach(function(A){var E=mustache.render(l.slideTemplate,{id:A.id,atitle:n.textFieldHtml(A.title),level:A.content.level||1,begin:A.begin.toString(),begintc:A.begin.milliseconds,thumbnail:A.thumbnail,show_slides:l.show_slides,notes:A.annotations.map(function(M){return mustache.render(l.annotationTemplate,{id:M.id,text:n.textFieldHtml(M.description||M.title),author:M.creator,begin:M.begin.toString(),begintc:M.begin.milliseconds,atitle:M.title.slice(0,20),category:"Ldt-EnrichedPlan-Note-"+w(M),filtered:w(M)=="Own"&&!l.show_own_notes||w(M)=="Other"&&!l.show_other_notes||w(M)=="Teacher"&&!l.show_teacher_notes?"filtered_out":""})}).join(`
`)}),C=n.jQuery(E);v.append(C)}),h.on("click","[data-timecode]",function(){l.media.setCurrentTime(Number(this.dataset.timecode))}),h.on("click",".Ldt-EnrichedPlan-Control-Checkbox",function(){var A=_.first(_.filter(this.classList,function(E){return E!="Ldt-EnrichedPlan-Control-Checkbox"}));A!==void 0&&(jQuery(this).is(":checked")?v.find(".Ldt-EnrichedPlan-Slide ."+A).removeClass("filtered_out"):v.find(".Ldt-EnrichedPlan-Slide ."+A).addClass("filtered_out"))}),h.find(".Ldt-EnrichedPlan-Search-Input").on("search",function(){var A=jQuery(this).val().toLocaleLowerCase();A===""?v.find(".Ldt-EnrichedPlan-Note").removeClass("non_matching"):jQuery(".Ldt-EnrichedPlan-Note").each(function(){var E=jQuery(this);E.text().toLocaleLowerCase().indexOf(A)>-1?E.removeClass("non_matching"):E.addClass("non_matching")})})}},Or(e,"defaults",{annotation_type:"Slides",annotation_types:[],show_controls:!0,show_slides:!0,show_teacher_notes:!0,show_other_notes:!0,show_own_notes:!0}),Or(e,"template",'<div class="Ldt-EnrichedPlan-Container">{{#show_controls}}<form class="Ldt-EnrichedPlan-Controls"> <input id="{{prefix}}teacher_note_checkbox" class="Ldt-EnrichedPlan-Control-Checkbox Ldt-EnrichedPlan-Note-Teacher" {{#show_teacher_notes}}checked{{/show_teacher_notes}} type="checkbox"> <label for="{{prefix}}teacher_note_checkbox" class="Ldt-EnrichedPlan-Control-Label Ldt-EnrichedPlan-Note-Teacher">Notes Enseignant</label> <input id="{{prefix}}other_note_checkbox" class="Ldt-EnrichedPlan-Control-Checkbox Ldt-EnrichedPlan-Note-Other" {{#show_other_notes}}checked{{/show_other_notes}} type="checkbox"> <label for="{{prefix}}other_note_checkbox" class="Ldt-EnrichedPlan-Control-Label Ldt-EnrichedPlan-Note-Other">Notes Autres</label> <input id="{{prefix}}simplified_plan_checkbox" class="Ldt-EnrichedPlan-Control-Checkbox Ldt-EnrichedPlan-Note-Own" {{#show_own_notes}}checked{{/show_own_notes}} type="checkbox"> <label for="{{prefix}}simplified_plan_checkbox" class="Ldt-EnrichedPlan-Control-Label Ldt-EnrichedPlan-Note-Own">Notes perso.</label> <input id="{{prefix}}slide_display_checkbox" class="Ldt-EnrichedPlan-Control-Checkbox Ldt-EnrichedPlan-Slide-Display" {{#show_slides}}checked{{/show_slides}} type="checkbox"> <label for="{{prefix}}slide_display_checkbox" class="Ldt-EnrichedPlan-Control-Label Ldt-EnrichedPlan-Slide-Display">Diapo<br/>&nbsp;</label> <input class="Ldt-EnrichedPlan-Search-Input" type="search" incremental placeholder="Recherchez"/></form>{{/show_controls}}<div class="Ldt-EnrichedPlan-Content"></div></div>'),Or(e,"slideTemplate",'<div data-id="{{ id }}" class="Ldt-EnrichedPlan-Slide">  <div class="Ldt-EnrichedPlan-SlideItem Ldt-EnrichedPlan-SlideTimecode">{{ begin }}</div>  <div data-timecode="{{begintc}}" class="Ldt-EnrichedPlan-SlideItem {{^show_slides}}filtered_out{{/show_slides}} Ldt-EnrichedPlan-SlideThumbnail Ldt-EnrichedPlan-Slide-Display"><img title="{{ begin }} - {{ atitle }}" src="{{ thumbnail }}"></div>  <div class="Ldt-EnrichedPlan-SlideContent">     <div data-timecode="{{begintc}}" class="Ldt-EnrichedPlan-SlideTitle Ldt-EnrichedPlan-SlideTitle{{ level }}">{{ atitle }}</div>     <div class="Ldt-EnrichedPlan-SlideNotes">{{{ notes }}}</div>  </div></div>'),e},highlighterStyles={},Highlighter=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l);var t=this;this.throttledRefresh=_$1.throttle(function(){t.update()},800)}update(){var o=this,l=o.media.getCurrentTime();return o.$.find(".Ldt-Highlighter-Annotation",document).toggleClass("currentAnnotation",function(){return this.dataset.media===o.media.id&&this.dataset.begin<=l&&l<this.dataset.end}),!1}draw(){for(var o=this,l=["timeupdate","seeked","loadedmetadata"],t=0;t<l.length;t++)o.onMediaEvent(l[t],o.throttledRefresh);o.throttledRefresh()}},Or(e,"defaults",{}),e},HtmlMashupPlayer=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){!this.height&&this.aspect_ratio&&(this.height=this.width/this.aspect_ratio,this.$.css("height",this.height)),this.background&&this.$.css("background",this.background);var o=this.media,l=this.$,t=this.width,u=this.height,h=this.url_transform;o.currentMedia=null,o.currentAnnotation=null,o.seeking=!1;var v,w,A=0,E;function C(){A>=o.duration&&(o.paused||(o.paused=!0,o.trigger("pause")),A=0);var P=o.getAnnotationAtTime(A);if(typeof P>"u"){o.currentMedia&&(o.currentMedia.pause(),o.paused||(o.paused=!0,o.trigger("pause")));return}o.currentAnnotation=P,v=o.currentAnnotation.annotation.begin.milliseconds,w=o.currentAnnotation.annotation.end.milliseconds,E=v-o.currentAnnotation.begin.milliseconds,o.currentMedia=o.currentAnnotation.getMedia(),o.getMedias().forEach(function(I){I!==o.currentMedia?(I.hide(),I.pause()):I.show()}),o.currentMedia.setCurrentTime(A+E),o.currentMedia.seeking=!0,o.paused||(o.currentMedia.play(),o.seeking=!0),o.trigger("timeupdate",new n.Model.Time(A))}o.getMedias().forEach(M),C(),o.trigger("loadedmetadata");function M(P){if(!P.has_player){P.has_player=!0;var I=P.video;typeof h=="function"&&(I=h(P.video));var j="video_"+P.id,B;P.show=function(){if(document.getElementById(j))return;P.loaded=!1,P.paused=!0;var ee=jQuery("<video>");if(ee.attr({id:j,width:t,height:u}).css({width:t,height:u}),typeof I=="string")ee.attr("src",I);else for(var Z=0;Z<I.length;Z++){var re=n.jQuery("<source>");re.attr({src:I[Z].src,type:I[Z].type}),ee.append(re)}l.append(ee),B=ee[0];function fe(){P.muted=B.muted,P.volume=B.volume}ee.on("loadedmetadata",function(){fe(),P.loaded=!0,P.trigger("loadedmetadata"),P.trigger("volumechange")}),ee.on("timeupdate",function(){P.trigger("timeupdate",new n.Model.Time(1e3*B.currentTime))}),ee.on("volumechange",function(){fe(),P.trigger("volumechange")}),ee.on("play",function(){P.trigger("play")}),ee.on("pause",function(){P.trigger("pause")}),ee.on("seeking",function(){P.trigger("seeking")}),ee.on("seeked",function(){P.trigger("seeked")})},P.hide=function(){B=void 0,l.find("#"+j).remove()};var F=void 0,N=void 0;P.on("setcurrenttime",function(ee){if(B&&B.readyState>=B.HAVE_METADATA)try{B.currentTime=ee/1e3,F=void 0}catch{F=ee}else F=ee}),P.on("setvolume",function(ee){B&&B.readyState>=B.HAVE_METADATA&&(P.volume=ee,B.volume=ee)}),P.on("setmuted",function(ee){B&&B.readyState>=B.HAVE_METADATA&&(P.muted=ee,B.muted=ee)}),P.on("setplay",function(){if(B&&B.readyState>=B.HAVE_METADATA)try{B.play(),N=void 0}catch{N=!0}else N=!0}),P.on("setpause",function(){if(B&&B.readyState>=B.HAVE_METADATA)try{B.pause(),N=void 0}catch{N=!1}else N=!1}),P.on("loadedmetadata",function(){typeof F<"u"&&P.setCurrentTime(F),typeof N<"u"&&(N?P.play():P.pause())}),P.on("play",function(){P===o.currentMedia&&o.trigger("play")}),P.on("pause",function(){P===o.currentMedia&&o.trigger("pause")}),P.on("timeupdate",function(ee){!o.paused&&P===o.currentMedia&&!P.seeking&&(ee<w?ee>=v?A=ee-E:(A=v-E,P.setCurrentTime(v)):(A=w-E,P.pause(),C()),o.trigger("timeupdate",new n.Model.Time(A)))}),P.on("seeked",function(){P.seeking=!1,P===o.currentMedia&&o.seeking&&(o.seeking=!1)}),P.on("volumechange",function(){o.muted=P.muted,o.volume=P.volume,o.trigger("volumechange")})}}o.on("setcurrenttime",function(P){A=P,C()}),o.on("setvolume",function(P){o.getMedias().forEach(function(I){I.setVolume(P)}),o.volume=P}),o.on("setmuted",function(P){o.getMedias().forEach(function(I){I.setMuted(P)}),o.muted=P}),o.on("setplay",function(){o.paused=!1,C()}),o.on("setpause",function(){o.paused=!0,o.currentMedia&&o.currentMedia.pause()}),o.on("loadedmetadata",function(){C()})}},Or(e,"defaults",{aspect_ratio:14/9,background:"#333333"}),e},HtmlPlayer=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){n.htmlPlayer(this.media,this.$,this)}},Or(e,"defaults",{}),e},imageDisplayStyles={},ImageDisplay=function(n){var e;return e=class extends n.Widgets.Widget{constructor(l,t){super(l,t);Or(this,"annotationTemplate","")}update(l){this.image.css("background-image","url("+l.thumbnail+")"),this.image.attr("title",n.textFieldHtml(l.title)+" - "+l.begin.toString())}draw(){var l=this.getWidgetAnnotations().sortBy(function(u){return u.begin}),t=this;t.renderTemplate(),t.image=t.$.find(".Ldt-ImageDisplay-Container"),t.$.find(".Ldt-ImageDisplay-Overlay-Left").on("click",function(){t.navigate(-1)}),t.$.find(".Ldt-ImageDisplay-Overlay-Right").on("click",function(){t.navigate(1)}),l.forEach(function(u){u.on("enter",function(){t.update(u)})}),l.length&&t.update(l[0])}},Or(e,"defaults",{annotation_type:"Slides"}),Or(e,"template",'<div class="Ldt-ImageDisplay-Container"><div class="Ldt-ImageDisplay-Overlay Ldt-ImageDisplay-Overlay-Left"></div><div class="Ldt-ImageDisplay-Overlay Ldt-ImageDisplay-Overlay-Right"></div></div>'),e};var hasOwn$1=Object.prototype.hasOwnProperty,toStr$4=Object.prototype.toString,defineProperty=Object.defineProperty,gOPD$2=Object.getOwnPropertyDescriptor,isArray$3=function(e){return typeof Array.isArray=="function"?Array.isArray(e):toStr$4.call(e)==="[object Array]"},isPlainObject=function(e){if(!e||toStr$4.call(e)!=="[object Object]")return!1;var o=hasOwn$1.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&hasOwn$1.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!l)return!1;var t;for(t in e);return typeof t>"u"||hasOwn$1.call(e,t)},setProperty=function(e,o){defineProperty&&o.name==="__proto__"?defineProperty(e,o.name,{enumerable:!0,configurable:!0,value:o.newValue,writable:!0}):e[o.name]=o.newValue},getProperty=function(e,o){if(o==="__proto__")if(hasOwn$1.call(e,o)){if(gOPD$2)return gOPD$2(e,o).value}else return;return e[o]},extend$1=function n(){var e,o,l,t,u,h,v=arguments[0],w=1,A=arguments.length,E=!1;for(typeof v=="boolean"&&(E=v,v=arguments[1]||{},w=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});w<A;++w)if(e=arguments[w],e!=null)for(o in e)l=getProperty(v,o),t=getProperty(e,o),v!==t&&(E&&t&&(isPlainObject(t)||(u=isArray$3(t)))?(u?(u=!1,h=l&&isArray$3(l)?l:[]):h=l&&isPlainObject(l)?l:{},setProperty(v,{name:o,newValue:n(E,h,t)})):typeof t<"u"&&setProperty(v,{name:o,newValue:t}));return v},cookies$1={},cookie={},empty=null;const empty$1=Object.freeze(Object.defineProperty({__proto__:null,default:empty},Symbol.toStringTag,{value:"Module"})),require$$1$5=getAugmentedNamespace(empty$1);var punycode$2={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$2.exports;var hasRequiredPunycode;function requirePunycode(){return hasRequiredPunycode||(hasRequiredPunycode=1,function(n,e){(function(o){var l=e&&!e.nodeType&&e,t=n&&!n.nodeType&&n,u=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1;(u.global===u||u.window===u||u.self===u)&&(o=u);var h,v=2147483647,w=36,A=1,E=26,C=38,M=700,P=72,I=128,j="-",B=/^xn--/,F=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,ee={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Z=w-A,re=Math.floor,fe=String.fromCharCode,V;function le(d){throw new RangeError(ee[d])}function he(d,k){for(var D=d.length,O=[];D--;)O[D]=k(d[D]);return O}function ye(d,k){var D=d.split("@"),O="";D.length>1&&(O=D[0]+"@",d=D[1]),d=d.replace(N,".");var Q=d.split("."),J=he(Q,k).join(".");return O+J}function L(d){for(var k=[],D=0,O=d.length,Q,J;D<O;)Q=d.charCodeAt(D++),Q>=55296&&Q<=56319&&D<O?(J=d.charCodeAt(D++),(J&64512)==56320?k.push(((Q&1023)<<10)+(J&1023)+65536):(k.push(Q),D--)):k.push(Q);return k}function p(d){return he(d,function(k){var D="";return k>65535&&(k-=65536,D+=fe(k>>>10&1023|55296),k=56320|k&1023),D+=fe(k),D}).join("")}function y(d){return d-48<10?d-22:d-65<26?d-65:d-97<26?d-97:w}function S(d,k){return d+22+75*(d<26)-((k!=0)<<5)}function c(d,k,D){var O=0;for(d=D?re(d/M):d>>1,d+=re(d/k);d>Z*E>>1;O+=w)d=re(d/Z);return re(O+(Z+1)*d/(d+C))}function m(d){var k=[],D=d.length,O,Q=0,J=I,X=P,U,z,ie,de,me,pe,qe,mt,st;for(U=d.lastIndexOf(j),U<0&&(U=0),z=0;z<U;++z)d.charCodeAt(z)>=128&&le("not-basic"),k.push(d.charCodeAt(z));for(ie=U>0?U+1:0;ie<D;){for(de=Q,me=1,pe=w;ie>=D&&le("invalid-input"),qe=y(d.charCodeAt(ie++)),(qe>=w||qe>re((v-Q)/me))&&le("overflow"),Q+=qe*me,mt=pe<=X?A:pe>=X+E?E:pe-X,!(qe<mt);pe+=w)st=w-mt,me>re(v/st)&&le("overflow"),me*=st;O=k.length+1,X=c(Q-de,O,de==0),re(Q/O)>v-J&&le("overflow"),J+=re(Q/O),Q%=O,k.splice(Q++,0,J)}return p(k)}function x(d){var k,D,O,Q,J,X,U,z,ie,de,me,pe=[],qe,mt,st,dt;for(d=L(d),qe=d.length,k=I,D=0,J=P,X=0;X<qe;++X)me=d[X],me<128&&pe.push(fe(me));for(O=Q=pe.length,Q&&pe.push(j);O<qe;){for(U=v,X=0;X<qe;++X)me=d[X],me>=k&&me<U&&(U=me);for(mt=O+1,U-k>re((v-D)/mt)&&le("overflow"),D+=(U-k)*mt,k=U,X=0;X<qe;++X)if(me=d[X],me<k&&++D>v&&le("overflow"),me==k){for(z=D,ie=w;de=ie<=J?A:ie>=J+E?E:ie-J,!(z<de);ie+=w)dt=z-de,st=w-de,pe.push(fe(S(de+dt%st,0))),z=re(dt/st);pe.push(fe(S(z,0))),J=c(D,mt,O==Q),D=0,++O}++D,++k}return pe.join("")}function T(d){return ye(d,function(k){return B.test(k)?m(k.slice(4).toLowerCase()):k})}function b(d){return ye(d,function(k){return F.test(k)?"xn--"+x(k):k})}if(h={version:"1.4.1",ucs2:{decode:L,encode:p},decode:m,encode:x,toASCII:b,toUnicode:T},l&&t)if(n.exports==l)t.exports=h;else for(V in h)h.hasOwnProperty(V)&&(l[V]=h[V]);else o.punycode=h})(commonjsGlobal$1)}(punycode$2,punycode$2.exports)),punycode$2.exports}var punycodeExports=requirePunycode();const require$$0$3=getDefaultExportFromCjs$1(punycodeExports);function hasOwnProperty$1(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var decode$1=function(n,e,o,l){e=e||"&",o=o||"=";var t={};if(typeof n!="string"||n.length===0)return t;var u=/\+/g;n=n.split(e);var h=1e3;l&&typeof l.maxKeys=="number"&&(h=l.maxKeys);var v=n.length;h>0&&v>h&&(v=h);for(var w=0;w<v;++w){var A=n[w].replace(u,"%20"),E=A.indexOf(o),C,M,P,I;E>=0?(C=A.substr(0,E),M=A.substr(E+1)):(C=A,M=""),P=decodeURIComponent(C),I=decodeURIComponent(M),hasOwnProperty$1(t,P)?isArray$2(t[P])?t[P].push(I):t[P]=[t[P],I]:t[P]=I}return t},isArray$2=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"},stringifyPrimitive=function(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}},encode$1=function(n,e,o,l){return e=e||"&",o=o||"=",n===null&&(n=void 0),typeof n=="object"?map(objectKeys$1(n),function(t){var u=encodeURIComponent(stringifyPrimitive(t))+o;return isArray$1(n[t])?map(n[t],function(h){return u+encodeURIComponent(stringifyPrimitive(h))}).join(e):u+encodeURIComponent(stringifyPrimitive(n[t]))}).join(e):l?encodeURIComponent(stringifyPrimitive(l))+o+encodeURIComponent(stringifyPrimitive(n)):""},isArray$1=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"};function map(n,e){if(n.map)return n.map(e);for(var o=[],l=0;l<n.length;l++)o.push(e(n[l],l));return o}var objectKeys$1=Object.keys||function(n){var e=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.push(o);return e},stringify$1,parse$3,decode=parse$3=decode$1,encode=stringify$1=encode$1;function qsEscape(n){return encodeURIComponent(n)}function qsUnescape(n){return decodeURIComponent(n)}var api$2={decode,encode,parse:parse$3,stringify:stringify$1,escape:qsEscape,unescape:qsUnescape};const querystring$2=Object.freeze(Object.defineProperty({__proto__:null,decode,default:api$2,encode,escape:qsEscape,get parse(){return parse$3},get stringify(){return stringify$1},unescape:qsUnescape},Symbol.toStringTag,{value:"Module"}));var util$1$1={isString:function(n){return typeof n=="string"},isObject:function(n){return typeof n=="object"&&n!==null},isNull:function(n){return n===null},isNullOrUndefined:function(n){return n==null}},punycode$1=require$$0$3,util$7=util$1$1,parse$2=urlParse$1,resolve$1=urlResolve,resolveObject=urlResolveObject,format$1=urlFormat,Url_1=Url;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
`,"	"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring$1=api$2;function urlParse$1(n,e,o){if(n&&util$7.isObject(n)&&n instanceof Url)return n;var l=new Url;return l.parse(n,e,o),l}Url.prototype.parse=function(n,e,o){if(!util$7.isString(n))throw new TypeError("Parameter 'url' must be a string, not "+typeof n);var l=n.indexOf("?"),t=l!==-1&&l<n.indexOf("#")?"?":"#",u=n.split(t),h=/\\/g;u[0]=u[0].replace(h,"/"),n=u.join(t);var v=n;if(v=v.trim(),!o&&n.split("#").length===1){var w=simplePathPattern.exec(v);if(w)return this.path=v,this.href=v,this.pathname=w[1],w[2]?(this.search=w[2],e?this.query=querystring$1.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var A=protocolPattern.exec(v);if(A){A=A[0];var E=A.toLowerCase();this.protocol=E,v=v.substr(A.length)}if(o||A||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var C=v.substr(0,2)==="//";C&&!(A&&hostlessProtocol[A])&&(v=v.substr(2),this.slashes=!0)}if(!hostlessProtocol[A]&&(C||A&&!slashedProtocol[A])){for(var M=-1,P=0;P<hostEndingChars.length;P++){var I=v.indexOf(hostEndingChars[P]);I!==-1&&(M===-1||I<M)&&(M=I)}var j,B;M===-1?B=v.lastIndexOf("@"):B=v.lastIndexOf("@",M),B!==-1&&(j=v.slice(0,B),v=v.slice(B+1),this.auth=decodeURIComponent(j)),M=-1;for(var P=0;P<nonHostChars.length;P++){var I=v.indexOf(nonHostChars[P]);I!==-1&&(M===-1||I<M)&&(M=I)}M===-1&&(M=v.length),this.host=v.slice(0,M),v=v.slice(M),this.parseHost(),this.hostname=this.hostname||"";var F=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!F)for(var N=this.hostname.split(/\./),P=0,ee=N.length;P<ee;P++){var Z=N[P];if(Z&&!Z.match(hostnamePartPattern)){for(var re="",fe=0,V=Z.length;fe<V;fe++)Z.charCodeAt(fe)>127?re+="x":re+=Z[fe];if(!re.match(hostnamePartPattern)){var le=N.slice(0,P),he=N.slice(P+1),ye=Z.match(hostnamePartStart);ye&&(le.push(ye[1]),he.unshift(ye[2])),he.length&&(v="/"+he.join(".")+v),this.hostname=le.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=punycode$1.toASCII(this.hostname));var L=this.port?":"+this.port:"",p=this.hostname||"";this.host=p+L,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),v[0]!=="/"&&(v="/"+v))}if(!unsafeProtocol[E])for(var P=0,ee=autoEscape.length;P<ee;P++){var y=autoEscape[P];if(v.indexOf(y)!==-1){var S=encodeURIComponent(y);S===y&&(S=escape(y)),v=v.split(y).join(S)}}var c=v.indexOf("#");c!==-1&&(this.hash=v.substr(c),v=v.slice(0,c));var m=v.indexOf("?");if(m!==-1?(this.search=v.substr(m),this.query=v.substr(m+1),e&&(this.query=querystring$1.parse(this.query)),v=v.slice(0,m)):e&&(this.search="",this.query={}),v&&(this.pathname=v),slashedProtocol[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var L=this.pathname||"",x=this.search||"";this.path=L+x}return this.href=this.format(),this};function urlFormat(n){return util$7.isString(n)&&(n=urlParse$1(n)),n instanceof Url?n.format():Url.prototype.format.call(n)}Url.prototype.format=function(){var n=this.auth||"";n&&(n=encodeURIComponent(n),n=n.replace(/%3A/i,":"),n+="@");var e=this.protocol||"",o=this.pathname||"",l=this.hash||"",t=!1,u="";this.host?t=n+this.host:this.hostname&&(t=n+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(t+=":"+this.port)),this.query&&util$7.isObject(this.query)&&Object.keys(this.query).length&&(u=querystring$1.stringify(this.query));var h=this.search||u&&"?"+u||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||slashedProtocol[e])&&t!==!1?(t="//"+(t||""),o&&o.charAt(0)!=="/"&&(o="/"+o)):t||(t=""),l&&l.charAt(0)!=="#"&&(l="#"+l),h&&h.charAt(0)!=="?"&&(h="?"+h),o=o.replace(/[?#]/g,function(v){return encodeURIComponent(v)}),h=h.replace("#","%23"),e+t+o+h+l};function urlResolve(n,e){return urlParse$1(n,!1,!0).resolve(e)}Url.prototype.resolve=function(n){return this.resolveObject(urlParse$1(n,!1,!0)).format()};function urlResolveObject(n,e){return n?urlParse$1(n,!1,!0).resolveObject(e):e}Url.prototype.resolveObject=function(n){if(util$7.isString(n)){var e=new Url;e.parse(n,!1,!0),n=e}for(var o=new Url,l=Object.keys(this),t=0;t<l.length;t++){var u=l[t];o[u]=this[u]}if(o.hash=n.hash,n.href==="")return o.href=o.format(),o;if(n.slashes&&!n.protocol){for(var h=Object.keys(n),v=0;v<h.length;v++){var w=h[v];w!=="protocol"&&(o[w]=n[w])}return slashedProtocol[o.protocol]&&o.hostname&&!o.pathname&&(o.path=o.pathname="/"),o.href=o.format(),o}if(n.protocol&&n.protocol!==o.protocol){if(!slashedProtocol[n.protocol]){for(var A=Object.keys(n),E=0;E<A.length;E++){var C=A[E];o[C]=n[C]}return o.href=o.format(),o}if(o.protocol=n.protocol,!n.host&&!hostlessProtocol[n.protocol]){for(var ee=(n.pathname||"").split("/");ee.length&&!(n.host=ee.shift()););n.host||(n.host=""),n.hostname||(n.hostname=""),ee[0]!==""&&ee.unshift(""),ee.length<2&&ee.unshift(""),o.pathname=ee.join("/")}else o.pathname=n.pathname;if(o.search=n.search,o.query=n.query,o.host=n.host||"",o.auth=n.auth,o.hostname=n.hostname||n.host,o.port=n.port,o.pathname||o.search){var M=o.pathname||"",P=o.search||"";o.path=M+P}return o.slashes=o.slashes||n.slashes,o.href=o.format(),o}var I=o.pathname&&o.pathname.charAt(0)==="/",j=n.host||n.pathname&&n.pathname.charAt(0)==="/",B=j||I||o.host&&n.pathname,F=B,N=o.pathname&&o.pathname.split("/")||[],ee=n.pathname&&n.pathname.split("/")||[],Z=o.protocol&&!slashedProtocol[o.protocol];if(Z&&(o.hostname="",o.port=null,o.host&&(N[0]===""?N[0]=o.host:N.unshift(o.host)),o.host="",n.protocol&&(n.hostname=null,n.port=null,n.host&&(ee[0]===""?ee[0]=n.host:ee.unshift(n.host)),n.host=null),B=B&&(ee[0]===""||N[0]==="")),j)o.host=n.host||n.host===""?n.host:o.host,o.hostname=n.hostname||n.hostname===""?n.hostname:o.hostname,o.search=n.search,o.query=n.query,N=ee;else if(ee.length)N||(N=[]),N.pop(),N=N.concat(ee),o.search=n.search,o.query=n.query;else if(!util$7.isNullOrUndefined(n.search)){if(Z){o.hostname=o.host=N.shift();var re=o.host&&o.host.indexOf("@")>0?o.host.split("@"):!1;re&&(o.auth=re.shift(),o.host=o.hostname=re.shift())}return o.search=n.search,o.query=n.query,(!util$7.isNull(o.pathname)||!util$7.isNull(o.search))&&(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.href=o.format(),o}if(!N.length)return o.pathname=null,o.search?o.path="/"+o.search:o.path=null,o.href=o.format(),o;for(var fe=N.slice(-1)[0],V=(o.host||n.host||N.length>1)&&(fe==="."||fe==="..")||fe==="",le=0,he=N.length;he>=0;he--)fe=N[he],fe==="."?N.splice(he,1):fe===".."?(N.splice(he,1),le++):le&&(N.splice(he,1),le--);if(!B&&!F)for(;le--;le)N.unshift("..");B&&N[0]!==""&&(!N[0]||N[0].charAt(0)!=="/")&&N.unshift(""),V&&N.join("/").substr(-1)!=="/"&&N.push("");var ye=N[0]===""||N[0]&&N[0].charAt(0)==="/";if(Z){o.hostname=o.host=ye?"":N.length?N.shift():"";var re=o.host&&o.host.indexOf("@")>0?o.host.split("@"):!1;re&&(o.auth=re.shift(),o.host=o.hostname=re.shift())}return B=B||o.host&&N.length,B&&!ye&&N.unshift(""),N.length?o.pathname=N.join("/"):(o.pathname=null,o.path=null),(!util$7.isNull(o.pathname)||!util$7.isNull(o.search))&&(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.auth=n.auth||o.auth,o.slashes=o.slashes||n.slashes,o.href=o.format(),o},Url.prototype.parseHost=function(){var n=this.host,e=portPattern.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};function normalizeArray(n,e){for(var o=0,l=n.length-1;l>=0;l--){var t=n[l];t==="."?n.splice(l,1):t===".."?(n.splice(l,1),o++):o&&(n.splice(l,1),o--)}if(e)for(;o--;o)n.unshift("..");return n}function resolve(){for(var n="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var l=o>=0?arguments[o]:"/";if(typeof l!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!l)continue;n=l+"/"+n,e=l.charAt(0)==="/"}return n=normalizeArray(filter(n.split("/"),function(t){return!!t}),!e).join("/"),(e?"/":"")+n||"."}function filter(n,e){if(n.filter)return n.filter(e);for(var o=[],l=0;l<n.length;l++)e(n[l],l,n)&&o.push(n[l]);return o}var _globalThis=function(n){function e(){var l=this||self;return delete n.prototype.__magic__,l}if(typeof globalThis=="object")return globalThis;if(this)return e();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:e});var o=__magic__;return o}(Object),formatImport=format$1,parseImport=parse$2,resolveImport=resolve$1,UrlImport=Url_1,URL$1=_globalThis.URL,URLSearchParams=_globalThis.URLSearchParams,percentRegEx=/%/g,backslashRegEx=/\\/g,newlineRegEx=/\n/g,carriageReturnRegEx=/\r/g,tabRegEx=/\t/g,CHAR_FORWARD_SLASH=47;function isURLInstance(n){var e=n??null;return!!(e!==null&&(e!=null&&e.href)&&(e!=null&&e.origin))}function getPathFromURLPosix(n){if(n.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var e=n.pathname,o=0;o<e.length;o++)if(e[o]==="%"){var l=e.codePointAt(o+2)|32;if(e[o+1]==="2"&&l===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(e)}function encodePathChars(n){return n.includes("%")&&(n=n.replace(percentRegEx,"%25")),n.includes("\\")&&(n=n.replace(backslashRegEx,"%5C")),n.includes(`
`)&&(n=n.replace(newlineRegEx,"%0A")),n.includes("\r")&&(n=n.replace(carriageReturnRegEx,"%0D")),n.includes("	")&&(n=n.replace(tabRegEx,"%09")),n}var domainToASCII=function(e){if(typeof e>"u")throw new TypeError('The "domain" argument must be specified');return new URL$1("http://"+e).hostname},domainToUnicode=function(e){if(typeof e>"u")throw new TypeError('The "domain" argument must be specified');return new URL$1("http://"+e).hostname},pathToFileURL=function(e){var o=new URL$1("file://"),l=resolve(e),t=e.charCodeAt(e.length-1);return t===CHAR_FORWARD_SLASH&&l[l.length-1]!=="/"&&(l+="/"),o.pathname=encodePathChars(l),o},fileURLToPath=function(e){if(!isURLInstance(e)&&typeof e!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+" ("+e+")");var o=new URL$1(e);if(o.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return getPathFromURLPosix(o)},formatImportWithOverloads=function(e,o){var l,t,u;if(o===void 0&&(o={}),!(e instanceof URL$1))return formatImport(e);if(typeof o!="object"||o===null)throw new TypeError('The "options" argument must be of type object.');var h=(l=o.auth)!=null?l:!0,v=(t=o.fragment)!=null?t:!0,w=(u=o.search)!=null?u:!0,A=new URL$1(e.toString());return h||(A.username="",A.password=""),v||(A.hash=""),w||(A.search=""),A.toString()},api$1={format:formatImportWithOverloads,parse:parseImport,resolve:resolveImport,resolveObject,Url:UrlImport,URL:URL$1,URLSearchParams,domainToASCII,domainToUnicode,pathToFileURL,fileURLToPath};const url=Object.freeze(Object.defineProperty({__proto__:null,URL:URL$1,URLSearchParams,Url:UrlImport,default:api$1,domainToASCII,domainToUnicode,fileURLToPath,format:formatImportWithOverloads,parse:parseImport,pathToFileURL,resolve:resolveImport,resolveObject},Symbol.toStringTag,{value:"Module"})),require$$2$2=getAugmentedNamespace(url);var util$6={},types$1={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},o=Symbol("test"),l=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var t=42;e[o]=t;for(o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==o||!Object.prototype.propertyIsEnumerable.call(e,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(e,o);if(h.value!==t||h.enumerable!==!0)return!1}return!0},hasSymbols$2=shams$1,shams=function(){return hasSymbols$2()&&!!Symbol.toStringTag},esErrors=Error,_eval=EvalError,range=RangeError,ref$1=ReferenceError,syntax=SyntaxError,type$j=TypeError,uri=URIError,origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={__proto__:null,foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!(test instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$3=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(e,o){for(var l=[],t=0;t<e.length;t+=1)l[t]=e[t];for(var u=0;u<o.length;u+=1)l[u+e.length]=o[u];return l},slicy=function(e,o){for(var l=[],t=o,u=0;t<e.length;t+=1,u+=1)l[u]=e[t];return l},joiny=function(n,e){for(var o="",l=0;l<n.length;l+=1)o+=n[l],l+1<n.length&&(o+=e);return o},implementation$5=function(e){var o=this;if(typeof o!="function"||toStr$3.apply(o)!==funcType)throw new TypeError(ERROR_MESSAGE+o);for(var l=slicy(arguments,1),t,u=function(){if(this instanceof t){var E=o.apply(this,concatty(l,arguments));return Object(E)===E?E:this}return o.apply(e,concatty(l,arguments))},h=max(0,o.length-l.length),v=[],w=0;w<h;w++)v[w]="$"+w;if(t=Function("binder","return function ("+joiny(v,",")+"){ return binder.apply(this,arguments); }")(u),o.prototype){var A=function(){};A.prototype=o.prototype,t.prototype=new A,A.prototype=null}return t},implementation$4=implementation$5,functionBind=Function.prototype.bind||implementation$4,call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind$1=functionBind,hasown=bind$1.call(call,$hasOwn),undefined$1,$Error=esErrors,$EvalError=_eval,$RangeError=range,$ReferenceError=ref$1,$SyntaxError$1=syntax,$TypeError$2=type$j,$URIError=uri,$Function=Function,getEvalledConstructor=function(n){try{return $Function('"use strict"; return ('+n+").constructor;")()}catch{}},$gOPD$1=Object.getOwnPropertyDescriptor;if($gOPD$1)try{$gOPD$1({},"")}catch{$gOPD$1=null}var throwTypeError=function(){throw new $TypeError$2},ThrowTypeError=$gOPD$1?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD$1(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto$1=Object.getPrototypeOf||(hasProto?function(n){return n.__proto__}:null),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(n){var errorProto=getProto$1(getProto$1(n));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function n(e){var o;if(e==="%AsyncFunction%")o=getEvalledConstructor("async function () {}");else if(e==="%GeneratorFunction%")o=getEvalledConstructor("function* () {}");else if(e==="%AsyncGeneratorFunction%")o=getEvalledConstructor("async function* () {}");else if(e==="%AsyncGenerator%"){var l=n("%AsyncGeneratorFunction%");l&&(o=l.prototype)}else if(e==="%AsyncIteratorPrototype%"){var t=n("%AsyncGenerator%");t&&getProto$1&&(o=getProto$1(t.prototype))}return INTRINSICS[e]=o,o},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(e){var o=$strSlice(e,0,1),l=$strSlice(e,-1);if(o==="%"&&l!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(l==="%"&&o!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var t=[];return $replace(e,rePropName,function(u,h,v,w){t[t.length]=v?$replace(w,reEscapeChar,"$1"):h||u}),t},getBaseIntrinsic=function(e,o){var l=e,t;if(hasOwn(LEGACY_ALIASES,l)&&(t=LEGACY_ALIASES[l],l="%"+t[0]+"%"),hasOwn(INTRINSICS,l)){var u=INTRINSICS[l];if(u===needsEval&&(u=doEval(l)),typeof u>"u"&&!o)throw new $TypeError$2("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:t,name:l,value:u}}throw new $SyntaxError$1("intrinsic "+e+" does not exist!")},getIntrinsic=function(e,o){if(typeof e!="string"||e.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,e)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var l=stringToPath(e),t=l.length>0?l[0]:"",u=getBaseIntrinsic("%"+t+"%",o),h=u.name,v=u.value,w=!1,A=u.alias;A&&(t=A[0],$spliceApply(l,$concat([0,1],A)));for(var E=1,C=!0;E<l.length;E+=1){var M=l[E],P=$strSlice(M,0,1),I=$strSlice(M,-1);if((P==='"'||P==="'"||P==="`"||I==='"'||I==="'"||I==="`")&&P!==I)throw new $SyntaxError$1("property names with quotes must have matching quotes");if((M==="constructor"||!C)&&(w=!0),t+="."+M,h="%"+t+"%",hasOwn(INTRINSICS,h))v=INTRINSICS[h];else if(v!=null){if(!(M in v)){if(!o)throw new $TypeError$2("base intrinsic for "+e+" exists, but the property is not available.");return}if($gOPD$1&&E+1>=l.length){var j=$gOPD$1(v,M);C=!!j,C&&"get"in j&&!("originalValue"in j.get)?v=j.get:v=v[M]}else C=hasOwn(v,M),v=v[M];C&&!w&&(INTRINSICS[h]=v)}}return v},callBind$2={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var n=getIntrinsic,e=n("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return esDefineProperty=e,esDefineProperty}var GetIntrinsic$2=getIntrinsic,$gOPD=GetIntrinsic$2("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$1=requireEsDefineProperty(),$SyntaxError=syntax,$TypeError$1=type$j,gopd=gopd$1,defineDataProperty=function(e,o,l){if(!e||typeof e!="object"&&typeof e!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var t=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,v=arguments.length>6?arguments[6]:!1,w=!!gopd&&gopd(e,o);if($defineProperty$1)$defineProperty$1(e,o,{configurable:h===null&&w?w.configurable:!h,enumerable:t===null&&w?w.enumerable:!t,value:l,writable:u===null&&w?w.writable:!u});else if(v||!t&&!u&&!h)e[o]=l;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=requireEsDefineProperty(),hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic$1=getIntrinsic,define$1=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=type$j,$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(e,o){if(typeof e!="function")throw new $TypeError("`fn` is not a function");if(typeof o!="number"||o<0||o>4294967295||$floor(o)!==o)throw new $TypeError("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],t=!0,u=!0;if("length"in e&&gOPD$1){var h=gOPD$1(e,"length");h&&!h.configurable&&(t=!1),h&&!h.writable&&(u=!1)}return(t||u||!l)&&(hasDescriptors?define$1(e,"length",o,!0,!0):define$1(e,"length",o)),e};(function(n){var e=functionBind,o=getIntrinsic,l=setFunctionLength,t=type$j,u=o("%Function.prototype.apply%"),h=o("%Function.prototype.call%"),v=o("%Reflect.apply%",!0)||e.call(h,u),w=requireEsDefineProperty(),A=o("%Math.max%");n.exports=function(M){if(typeof M!="function")throw new t("a function is required");var P=v(e,h,arguments);return l(P,1+A(0,M.length-(arguments.length-1)),!0)};var E=function(){return v(e,u,arguments)};w?w(n.exports,"apply",{value:E}):n.exports.apply=E})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$2=function(e,o){var l=GetIntrinsic(e,!!o);return typeof l=="function"&&$indexOf$1(e,".prototype.")>-1?callBind$1(l):l},hasToStringTag$3=shams(),callBound$1=callBound$2,$toString$1=callBound$1("Object.prototype.toString"),isStandardArguments=function(e){return hasToStringTag$3&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:$toString$1(e)==="[object Arguments]"},isLegacyArguments=function(e){return isStandardArguments(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&$toString$1(e)!=="[object Array]"&&$toString$1(e.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$1=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$2=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(e){if(typeof e!="function")return!1;if(isFnRegex.test(fnToStr$1.call(e)))return!0;if(!hasToStringTag$2){var o=toStr$2.call(e);return o==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var l=getGeneratorFunc();GeneratorFunction=l?getProto(l):!1}return getProto(e)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(n){n!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(e){try{var o=fnToStr.call(e);return constructorRegex.test(o)}catch{return!1}},tryFunctionObject=function(e){try{return isES6ClassFn(e)?!1:(fnToStr.call(e),!0)}catch{return!1}},toStr$1=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$1.call(all)===toStr$1.call(document.all)&&(isDDA=function(e){if((isIE68||!e)&&(typeof e>"u"||typeof e=="object"))try{var o=toStr$1.call(e);return(o===ddaClass||o===ddaClass2||o===ddaClass3||o===objectClass)&&e("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(e){if(isDDA(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{reflectApply(e,null,badArrayLike)}catch(o){if(o!==isCallableMarker)return!1}return!isES6ClassFn(e)&&tryFunctionObject(e)}:function(e){if(isDDA(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(e);if(isES6ClassFn(e))return!1;var o=toStr$1.call(e);return o!==fnClass&&o!==genClass&&!/^\[object HTML/.test(o)?!1:tryFunctionObject(e)},isCallable=isCallable$1,toStr=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,forEachArray=function(e,o,l){for(var t=0,u=e.length;t<u;t++)hasOwnProperty.call(e,t)&&(l==null?o(e[t],t,e):o.call(l,e[t],t,e))},forEachString=function(e,o,l){for(var t=0,u=e.length;t<u;t++)l==null?o(e.charAt(t),t,e):o.call(l,e.charAt(t),t,e)},forEachObject=function(e,o,l){for(var t in e)hasOwnProperty.call(e,t)&&(l==null?o(e[t],t,e):o.call(l,e[t],t,e))},forEach$1=function(e,o,l){if(!isCallable(o))throw new TypeError("iterator must be a function");var t;arguments.length>=3&&(t=l),toStr.call(e)==="[object Array]"?forEachArray(e,o,t):typeof e=="string"?forEachString(e,o,t):forEachObject(e,o,t)},forEach_1=forEach$1,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$1=typeof globalThis>"u"?commonjsGlobal$1:globalThis,availableTypedArrays$1=function(){for(var e=[],o=0;o<possibleNames.length;o++)typeof g$1[possibleNames[o]]=="function"&&(e[e.length]=possibleNames[o]);return e},forEach=forEach_1,availableTypedArrays=availableTypedArrays$1,callBind=callBindExports,callBound=callBound$2,gOPD=gopd$1,$toString=callBound("Object.prototype.toString"),hasToStringTag=shams(),g=typeof globalThis>"u"?commonjsGlobal$1:globalThis,typedArrays=availableTypedArrays(),$slice=callBound("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound("Array.prototype.indexOf",!0)||function(e,o){for(var l=0;l<e.length;l+=1)if(e[l]===o)return l;return-1},cache$1={__proto__:null};hasToStringTag&&gOPD&&getPrototypeOf?forEach(typedArrays,function(n){var e=new g[n];if(Symbol.toStringTag in e){var o=getPrototypeOf(e),l=gOPD(o,Symbol.toStringTag);if(!l){var t=getPrototypeOf(o);l=gOPD(t,Symbol.toStringTag)}cache$1["$"+n]=callBind(l.get)}}):forEach(typedArrays,function(n){var e=new g[n],o=e.slice||e.set;o&&(cache$1["$"+n]=callBind(o))});var tryTypedArrays=function(e){var o=!1;return forEach(cache$1,function(l,t){if(!o)try{"$"+l(e)===t&&(o=$slice(t,1))}catch{}}),o},trySlices=function(e){var o=!1;return forEach(cache$1,function(l,t){if(!o)try{l(e),o=$slice(t,1)}catch{}}),o},whichTypedArray$1=function(e){if(!e||typeof e!="object")return!1;if(!hasToStringTag){var o=$slice($toString(e),8,-1);return $indexOf(typedArrays,o)>-1?o:o!=="Object"?!1:trySlices(e)}return gOPD?tryTypedArrays(e):null},whichTypedArray=whichTypedArray$1,isTypedArray=function(e){return!!whichTypedArray(e)};(function(n){var e=isArguments$1,o=isGeneratorFunction,l=whichTypedArray$1,t=isTypedArray;function u(Je){return Je.call.bind(Je)}var h=typeof BigInt<"u",v=typeof Symbol<"u",w=u(Object.prototype.toString),A=u(Number.prototype.valueOf),E=u(String.prototype.valueOf),C=u(Boolean.prototype.valueOf);if(h)var M=u(BigInt.prototype.valueOf);if(v)var P=u(Symbol.prototype.valueOf);function I(Je,ht){if(typeof Je!="object")return!1;try{return ht(Je),!0}catch{return!1}}n.isArgumentsObject=e,n.isGeneratorFunction=o,n.isTypedArray=t;function j(Je){return typeof Promise<"u"&&Je instanceof Promise||Je!==null&&typeof Je=="object"&&typeof Je.then=="function"&&typeof Je.catch=="function"}n.isPromise=j;function B(Je){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Je):t(Je)||O(Je)}n.isArrayBufferView=B;function F(Je){return l(Je)==="Uint8Array"}n.isUint8Array=F;function N(Je){return l(Je)==="Uint8ClampedArray"}n.isUint8ClampedArray=N;function ee(Je){return l(Je)==="Uint16Array"}n.isUint16Array=ee;function Z(Je){return l(Je)==="Uint32Array"}n.isUint32Array=Z;function re(Je){return l(Je)==="Int8Array"}n.isInt8Array=re;function fe(Je){return l(Je)==="Int16Array"}n.isInt16Array=fe;function V(Je){return l(Je)==="Int32Array"}n.isInt32Array=V;function le(Je){return l(Je)==="Float32Array"}n.isFloat32Array=le;function he(Je){return l(Je)==="Float64Array"}n.isFloat64Array=he;function ye(Je){return l(Je)==="BigInt64Array"}n.isBigInt64Array=ye;function L(Je){return l(Je)==="BigUint64Array"}n.isBigUint64Array=L;function p(Je){return w(Je)==="[object Map]"}p.working=typeof Map<"u"&&p(new Map);function y(Je){return typeof Map>"u"?!1:p.working?p(Je):Je instanceof Map}n.isMap=y;function S(Je){return w(Je)==="[object Set]"}S.working=typeof Set<"u"&&S(new Set);function c(Je){return typeof Set>"u"?!1:S.working?S(Je):Je instanceof Set}n.isSet=c;function m(Je){return w(Je)==="[object WeakMap]"}m.working=typeof WeakMap<"u"&&m(new WeakMap);function x(Je){return typeof WeakMap>"u"?!1:m.working?m(Je):Je instanceof WeakMap}n.isWeakMap=x;function T(Je){return w(Je)==="[object WeakSet]"}T.working=typeof WeakSet<"u"&&T(new WeakSet);function b(Je){return T(Je)}n.isWeakSet=b;function d(Je){return w(Je)==="[object ArrayBuffer]"}d.working=typeof ArrayBuffer<"u"&&d(new ArrayBuffer);function k(Je){return typeof ArrayBuffer>"u"?!1:d.working?d(Je):Je instanceof ArrayBuffer}n.isArrayBuffer=k;function D(Je){return w(Je)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function O(Je){return typeof DataView>"u"?!1:D.working?D(Je):Je instanceof DataView}n.isDataView=O;var Q=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(Je){return w(Je)==="[object SharedArrayBuffer]"}function X(Je){return typeof Q>"u"?!1:(typeof J.working>"u"&&(J.working=J(new Q)),J.working?J(Je):Je instanceof Q)}n.isSharedArrayBuffer=X;function U(Je){return w(Je)==="[object AsyncFunction]"}n.isAsyncFunction=U;function z(Je){return w(Je)==="[object Map Iterator]"}n.isMapIterator=z;function ie(Je){return w(Je)==="[object Set Iterator]"}n.isSetIterator=ie;function de(Je){return w(Je)==="[object Generator]"}n.isGeneratorObject=de;function me(Je){return w(Je)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=me;function pe(Je){return I(Je,A)}n.isNumberObject=pe;function qe(Je){return I(Je,E)}n.isStringObject=qe;function mt(Je){return I(Je,C)}n.isBooleanObject=mt;function st(Je){return h&&I(Je,M)}n.isBigIntObject=st;function dt(Je){return v&&I(Je,P)}n.isSymbolObject=dt;function Tt(Je){return pe(Je)||qe(Je)||mt(Je)||st(Je)||dt(Je)}n.isBoxedPrimitive=Tt;function lt(Je){return typeof Uint8Array<"u"&&(k(Je)||X(Je))}n.isAnyArrayBuffer=lt,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Je){Object.defineProperty(n,Je,{enumerable:!1,value:function(){throw new Error(Je+" is not supported in userland")}})})})(types$1);var isBufferBrowser=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(e,o){o&&(e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(e,o){if(o){e.super_=o;var l=function(){};l.prototype=o.prototype,e.prototype=new l,e.prototype.constructor=e}};var inherits_browserExports=inherits_browser.exports;(function(n){var e=Object.getOwnPropertyDescriptors||function(O){for(var Q=Object.keys(O),J={},X=0;X<Q.length;X++)J[Q[X]]=Object.getOwnPropertyDescriptor(O,Q[X]);return J},o=/%[sdj%]/g;n.format=function(D){if(!re(D)){for(var O=[],Q=0;Q<arguments.length;Q++)O.push(h(arguments[Q]));return O.join(" ")}for(var Q=1,J=arguments,X=J.length,U=String(D).replace(o,function(ie){if(ie==="%%")return"%";if(Q>=X)return ie;switch(ie){case"%s":return String(J[Q++]);case"%d":return Number(J[Q++]);case"%j":try{return JSON.stringify(J[Q++])}catch{return"[Circular]"}default:return ie}}),z=J[Q];Q<X;z=J[++Q])N(z)||!he(z)?U+=" "+z:U+=" "+h(z);return U},n.deprecate=function(D,O){if(typeof process$1<"u"&&process$1.noDeprecation===!0)return D;if(typeof process$1>"u")return function(){return n.deprecate(D,O).apply(this,arguments)};var Q=!1;function J(){if(!Q){if(process$1.throwDeprecation)throw new Error(O);process$1.traceDeprecation?console.trace(O):console.error(O),Q=!0}return D.apply(this,arguments)}return J};var l={},t=/^$/;if(process$1.env.NODE_DEBUG){var u=process$1.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),t=new RegExp("^"+u+"$","i")}n.debuglog=function(D){if(D=D.toUpperCase(),!l[D])if(t.test(D)){var O=process$1.pid;l[D]=function(){var Q=n.format.apply(n,arguments);console.error("%s %d: %s",D,O,Q)}}else l[D]=function(){};return l[D]};function h(D,O){var Q={seen:[],stylize:w};return arguments.length>=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),F(O)?Q.showHidden=O:O&&n._extend(Q,O),V(Q.showHidden)&&(Q.showHidden=!1),V(Q.depth)&&(Q.depth=2),V(Q.colors)&&(Q.colors=!1),V(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=v),E(Q,D,Q.depth)}n.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function v(D,O){var Q=h.styles[O];return Q?"\x1B["+h.colors[Q][0]+"m"+D+"\x1B["+h.colors[Q][1]+"m":D}function w(D,O){return D}function A(D){var O={};return D.forEach(function(Q,J){O[Q]=!0}),O}function E(D,O,Q){if(D.customInspect&&O&&p(O.inspect)&&O.inspect!==n.inspect&&!(O.constructor&&O.constructor.prototype===O)){var J=O.inspect(Q,D);return re(J)||(J=E(D,J,Q)),J}var X=C(D,O);if(X)return X;var U=Object.keys(O),z=A(U);if(D.showHidden&&(U=Object.getOwnPropertyNames(O)),L(O)&&(U.indexOf("message")>=0||U.indexOf("description")>=0))return M(O);if(U.length===0){if(p(O)){var ie=O.name?": "+O.name:"";return D.stylize("[Function"+ie+"]","special")}if(le(O))return D.stylize(RegExp.prototype.toString.call(O),"regexp");if(ye(O))return D.stylize(Date.prototype.toString.call(O),"date");if(L(O))return M(O)}var de="",me=!1,pe=["{","}"];if(B(O)&&(me=!0,pe=["[","]"]),p(O)){var qe=O.name?": "+O.name:"";de=" [Function"+qe+"]"}if(le(O)&&(de=" "+RegExp.prototype.toString.call(O)),ye(O)&&(de=" "+Date.prototype.toUTCString.call(O)),L(O)&&(de=" "+M(O)),U.length===0&&(!me||O.length==0))return pe[0]+de+pe[1];if(Q<0)return le(O)?D.stylize(RegExp.prototype.toString.call(O),"regexp"):D.stylize("[Object]","special");D.seen.push(O);var mt;return me?mt=P(D,O,Q,z,U):mt=U.map(function(st){return I(D,O,Q,z,st,me)}),D.seen.pop(),j(mt,de,pe)}function C(D,O){if(V(O))return D.stylize("undefined","undefined");if(re(O)){var Q="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(Q,"string")}if(Z(O))return D.stylize(""+O,"number");if(F(O))return D.stylize(""+O,"boolean");if(N(O))return D.stylize("null","null")}function M(D){return"["+Error.prototype.toString.call(D)+"]"}function P(D,O,Q,J,X){for(var U=[],z=0,ie=O.length;z<ie;++z)T(O,String(z))?U.push(I(D,O,Q,J,String(z),!0)):U.push("");return X.forEach(function(de){de.match(/^\d+$/)||U.push(I(D,O,Q,J,de,!0))}),U}function I(D,O,Q,J,X,U){var z,ie,de;if(de=Object.getOwnPropertyDescriptor(O,X)||{value:O[X]},de.get?de.set?ie=D.stylize("[Getter/Setter]","special"):ie=D.stylize("[Getter]","special"):de.set&&(ie=D.stylize("[Setter]","special")),T(J,X)||(z="["+X+"]"),ie||(D.seen.indexOf(de.value)<0?(N(Q)?ie=E(D,de.value,null):ie=E(D,de.value,Q-1),ie.indexOf(`
`)>-1&&(U?ie=ie.split(`
`).map(function(me){return"  "+me}).join(`
`).slice(2):ie=`
`+ie.split(`
`).map(function(me){return"   "+me}).join(`
`))):ie=D.stylize("[Circular]","special")),V(z)){if(U&&X.match(/^\d+$/))return ie;z=JSON.stringify(""+X),z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(z=z.slice(1,-1),z=D.stylize(z,"name")):(z=z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),z=D.stylize(z,"string"))}return z+": "+ie}function j(D,O,Q){var J=D.reduce(function(X,U){return U.indexOf(`
`)>=0,X+U.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60?Q[0]+(O===""?"":O+`
 `)+" "+D.join(`,
  `)+" "+Q[1]:Q[0]+O+" "+D.join(", ")+" "+Q[1]}n.types=types$1;function B(D){return Array.isArray(D)}n.isArray=B;function F(D){return typeof D=="boolean"}n.isBoolean=F;function N(D){return D===null}n.isNull=N;function ee(D){return D==null}n.isNullOrUndefined=ee;function Z(D){return typeof D=="number"}n.isNumber=Z;function re(D){return typeof D=="string"}n.isString=re;function fe(D){return typeof D=="symbol"}n.isSymbol=fe;function V(D){return D===void 0}n.isUndefined=V;function le(D){return he(D)&&S(D)==="[object RegExp]"}n.isRegExp=le,n.types.isRegExp=le;function he(D){return typeof D=="object"&&D!==null}n.isObject=he;function ye(D){return he(D)&&S(D)==="[object Date]"}n.isDate=ye,n.types.isDate=ye;function L(D){return he(D)&&(S(D)==="[object Error]"||D instanceof Error)}n.isError=L,n.types.isNativeError=L;function p(D){return typeof D=="function"}n.isFunction=p;function y(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}n.isPrimitive=y,n.isBuffer=isBufferBrowser;function S(D){return Object.prototype.toString.call(D)}function c(D){return D<10?"0"+D.toString(10):D.toString(10)}var m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var D=new Date,O=[c(D.getHours()),c(D.getMinutes()),c(D.getSeconds())].join(":");return[D.getDate(),m[D.getMonth()],O].join(" ")}n.log=function(){console.log("%s - %s",x(),n.format.apply(n,arguments))},n.inherits=inherits_browserExports,n._extend=function(D,O){if(!O||!he(O))return D;for(var Q=Object.keys(O),J=Q.length;J--;)D[Q[J]]=O[Q[J]];return D};function T(D,O){return Object.prototype.hasOwnProperty.call(D,O)}var b=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');if(b&&O[b]){var Q=O[b];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,b,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Q}function Q(){for(var J,X,U=new Promise(function(de,me){J=de,X=me}),z=[],ie=0;ie<arguments.length;ie++)z.push(arguments[ie]);z.push(function(de,me){de?X(de):J(me)});try{O.apply(this,z)}catch(de){X(de)}return U}return Object.setPrototypeOf(Q,Object.getPrototypeOf(O)),b&&Object.defineProperty(Q,b,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,e(O))},n.promisify.custom=b;function d(D,O){if(!D){var Q=new Error("Promise was rejected with a falsy value");Q.reason=D,D=Q}return O(D)}function k(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function O(){for(var Q=[],J=0;J<arguments.length;J++)Q.push(arguments[J]);var X=Q.pop();if(typeof X!="function")throw new TypeError("The last argument must be of type Function");var U=this,z=function(){return X.apply(U,arguments)};D.apply(this,Q).then(function(ie){process$1.nextTick(z.bind(null,null,ie))},function(ie){process$1.nextTick(d.bind(null,ie,z))})}return Object.setPrototypeOf(O,Object.getPrototypeOf(D)),Object.defineProperties(O,e(D)),O}n.callbackify=k})(util$6);var pubsuffixPsl={},psl$1={};const require$$1$4=["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad","nom.ad","ae","co.ae","net.ae","org.ae","sch.ae","ac.ae","gov.ae","mil.ae","aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","aircraft.aero","airline.aero","airport.aero","air-surveillance.aero","airtraffic.aero","air-traffic-control.aero","ambulance.aero","amusement.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skydiving.aero","software.aero","student.aero","trader.aero","trading.aero","trainer.aero","union.aero","workinggroup.aero","works.aero","af","gov.af","com.af","org.af","net.af","edu.af","ag","com.ag","org.ag","net.ag","co.ag","nom.ag","ai","off.ai","com.ai","net.ai","org.ai","al","com.al","edu.al","gov.al","mil.al","net.al","org.al","am","co.am","com.am","commune.am","net.am","org.am","ao","ed.ao","gv.ao","og.ao","co.ao","pb.ao","it.ao","aq","ar","bet.ar","com.ar","coop.ar","edu.ar","gob.ar","gov.ar","int.ar","mil.ar","musica.ar","mutual.ar","net.ar","org.ar","senasa.ar","tur.ar","arpa","e164.arpa","in-addr.arpa","ip6.arpa","iris.arpa","uri.arpa","urn.arpa","as","gov.as","asia","at","ac.at","co.at","gv.at","or.at","sth.ac.at","au","com.au","net.au","org.au","edu.au","gov.au","asn.au","id.au","info.au","conf.au","oz.au","act.au","nsw.au","nt.au","qld.au","sa.au","tas.au","vic.au","wa.au","act.edu.au","catholic.edu.au","nsw.edu.au","nt.edu.au","qld.edu.au","sa.edu.au","tas.edu.au","vic.edu.au","wa.edu.au","qld.gov.au","sa.gov.au","tas.gov.au","vic.gov.au","wa.gov.au","schools.nsw.edu.au","aw","com.aw","ax","az","com.az","net.az","int.az","gov.az","org.az","edu.az","info.az","pp.az","mil.az","name.az","pro.az","biz.az","ba","com.ba","edu.ba","gov.ba","mil.ba","net.ba","org.ba","bb","biz.bb","co.bb","com.bb","edu.bb","gov.bb","info.bb","net.bb","org.bb","store.bb","tv.bb","*.bd","be","ac.be","bf","gov.bf","bg","a.bg","b.bg","c.bg","d.bg","e.bg","f.bg","g.bg","h.bg","i.bg","j.bg","k.bg","l.bg","m.bg","n.bg","o.bg","p.bg","q.bg","r.bg","s.bg","t.bg","u.bg","v.bg","w.bg","x.bg","y.bg","z.bg","0.bg","1.bg","2.bg","3.bg","4.bg","5.bg","6.bg","7.bg","8.bg","9.bg","bh","com.bh","edu.bh","net.bh","org.bh","gov.bh","bi","co.bi","com.bi","edu.bi","or.bi","org.bi","biz","bj","asso.bj","barreau.bj","gouv.bj","bm","com.bm","edu.bm","gov.bm","net.bm","org.bm","bn","com.bn","edu.bn","gov.bn","net.bn","org.bn","bo","com.bo","edu.bo","gob.bo","int.bo","org.bo","net.bo","mil.bo","tv.bo","web.bo","academia.bo","agro.bo","arte.bo","blog.bo","bolivia.bo","ciencia.bo","cooperativa.bo","democracia.bo","deporte.bo","ecologia.bo","economia.bo","empresa.bo","indigena.bo","industria.bo","info.bo","medicina.bo","movimiento.bo","musica.bo","natural.bo","nombre.bo","noticias.bo","patria.bo","politica.bo","profesional.bo","plurinacional.bo","pueblo.bo","revista.bo","salud.bo","tecnologia.bo","tksat.bo","transporte.bo","wiki.bo","br","9guacu.br","abc.br","adm.br","adv.br","agr.br","aju.br","am.br","anani.br","aparecida.br","app.br","arq.br","art.br","ato.br","b.br","barueri.br","belem.br","bhz.br","bib.br","bio.br","blog.br","bmd.br","boavista.br","bsb.br","campinagrande.br","campinas.br","caxias.br","cim.br","cng.br","cnt.br","com.br","contagem.br","coop.br","coz.br","cri.br","cuiaba.br","curitiba.br","def.br","des.br","det.br","dev.br","ecn.br","eco.br","edu.br","emp.br","enf.br","eng.br","esp.br","etc.br","eti.br","far.br","feira.br","flog.br","floripa.br","fm.br","fnd.br","fortal.br","fot.br","foz.br","fst.br","g12.br","geo.br","ggf.br","goiania.br","gov.br","ac.gov.br","al.gov.br","am.gov.br","ap.gov.br","ba.gov.br","ce.gov.br","df.gov.br","es.gov.br","go.gov.br","ma.gov.br","mg.gov.br","ms.gov.br","mt.gov.br","pa.gov.br","pb.gov.br","pe.gov.br","pi.gov.br","pr.gov.br","rj.gov.br","rn.gov.br","ro.gov.br","rr.gov.br","rs.gov.br","sc.gov.br","se.gov.br","sp.gov.br","to.gov.br","gru.br","imb.br","ind.br","inf.br","jab.br","jampa.br","jdf.br","joinville.br","jor.br","jus.br","leg.br","lel.br","log.br","londrina.br","macapa.br","maceio.br","manaus.br","maringa.br","mat.br","med.br","mil.br","morena.br","mp.br","mus.br","natal.br","net.br","niteroi.br","*.nom.br","not.br","ntr.br","odo.br","ong.br","org.br","osasco.br","palmas.br","poa.br","ppg.br","pro.br","psc.br","psi.br","pvh.br","qsl.br","radio.br","rec.br","recife.br","rep.br","ribeirao.br","rio.br","riobranco.br","riopreto.br","salvador.br","sampa.br","santamaria.br","santoandre.br","saobernardo.br","saogonca.br","seg.br","sjc.br","slg.br","slz.br","sorocaba.br","srv.br","taxi.br","tc.br","tec.br","teo.br","the.br","tmp.br","trd.br","tur.br","tv.br","udi.br","vet.br","vix.br","vlog.br","wiki.br","zlg.br","bs","com.bs","net.bs","org.bs","edu.bs","gov.bs","bt","com.bt","edu.bt","gov.bt","net.bt","org.bt","bv","bw","co.bw","org.bw","by","gov.by","mil.by","com.by","of.by","bz","com.bz","net.bz","org.bz","edu.bz","gov.bz","ca","ab.ca","bc.ca","mb.ca","nb.ca","nf.ca","nl.ca","ns.ca","nt.ca","nu.ca","on.ca","pe.ca","qc.ca","sk.ca","yk.ca","gc.ca","cat","cc","cd","gov.cd","cf","cg","ch","ci","org.ci","or.ci","com.ci","co.ci","edu.ci","ed.ci","ac.ci","net.ci","go.ci","asso.ci","aéroport.ci","int.ci","presse.ci","md.ci","gouv.ci","*.ck","!www.ck","cl","co.cl","gob.cl","gov.cl","mil.cl","cm","co.cm","com.cm","gov.cm","net.cm","cn","ac.cn","com.cn","edu.cn","gov.cn","net.cn","org.cn","mil.cn","公司.cn","网络.cn","網絡.cn","ah.cn","bj.cn","cq.cn","fj.cn","gd.cn","gs.cn","gz.cn","gx.cn","ha.cn","hb.cn","he.cn","hi.cn","hl.cn","hn.cn","jl.cn","js.cn","jx.cn","ln.cn","nm.cn","nx.cn","qh.cn","sc.cn","sd.cn","sh.cn","sn.cn","sx.cn","tj.cn","xj.cn","xz.cn","yn.cn","zj.cn","hk.cn","mo.cn","tw.cn","co","arts.co","com.co","edu.co","firm.co","gov.co","info.co","int.co","mil.co","net.co","nom.co","org.co","rec.co","web.co","com","coop","cr","ac.cr","co.cr","ed.cr","fi.cr","go.cr","or.cr","sa.cr","cu","com.cu","edu.cu","org.cu","net.cu","gov.cu","inf.cu","cv","com.cv","edu.cv","int.cv","nome.cv","org.cv","cw","com.cw","edu.cw","net.cw","org.cw","cx","gov.cx","cy","ac.cy","biz.cy","com.cy","ekloges.cy","gov.cy","ltd.cy","mil.cy","net.cy","org.cy","press.cy","pro.cy","tm.cy","cz","de","dj","dk","dm","com.dm","net.dm","org.dm","edu.dm","gov.dm","do","art.do","com.do","edu.do","gob.do","gov.do","mil.do","net.do","org.do","sld.do","web.do","dz","art.dz","asso.dz","com.dz","edu.dz","gov.dz","org.dz","net.dz","pol.dz","soc.dz","tm.dz","ec","com.ec","info.ec","net.ec","fin.ec","k12.ec","med.ec","pro.ec","org.ec","edu.ec","gov.ec","gob.ec","mil.ec","edu","ee","edu.ee","gov.ee","riik.ee","lib.ee","med.ee","com.ee","pri.ee","aip.ee","org.ee","fie.ee","eg","com.eg","edu.eg","eun.eg","gov.eg","mil.eg","name.eg","net.eg","org.eg","sci.eg","*.er","es","com.es","nom.es","org.es","gob.es","edu.es","et","com.et","gov.et","org.et","edu.et","biz.et","name.et","info.et","net.et","eu","fi","aland.fi","fj","ac.fj","biz.fj","com.fj","gov.fj","info.fj","mil.fj","name.fj","net.fj","org.fj","pro.fj","*.fk","com.fm","edu.fm","net.fm","org.fm","fm","fo","fr","asso.fr","com.fr","gouv.fr","nom.fr","prd.fr","tm.fr","aeroport.fr","avocat.fr","avoues.fr","cci.fr","chambagri.fr","chirurgiens-dentistes.fr","experts-comptables.fr","geometre-expert.fr","greta.fr","huissier-justice.fr","medecin.fr","notaires.fr","pharmacien.fr","port.fr","veterinaire.fr","ga","gb","edu.gd","gov.gd","gd","ge","com.ge","edu.ge","gov.ge","org.ge","mil.ge","net.ge","pvt.ge","gf","gg","co.gg","net.gg","org.gg","gh","com.gh","edu.gh","gov.gh","org.gh","mil.gh","gi","com.gi","ltd.gi","gov.gi","mod.gi","edu.gi","org.gi","gl","co.gl","com.gl","edu.gl","net.gl","org.gl","gm","gn","ac.gn","com.gn","edu.gn","gov.gn","org.gn","net.gn","gov","gp","com.gp","net.gp","mobi.gp","edu.gp","org.gp","asso.gp","gq","gr","com.gr","edu.gr","net.gr","org.gr","gov.gr","gs","gt","com.gt","edu.gt","gob.gt","ind.gt","mil.gt","net.gt","org.gt","gu","com.gu","edu.gu","gov.gu","guam.gu","info.gu","net.gu","org.gu","web.gu","gw","gy","co.gy","com.gy","edu.gy","gov.gy","net.gy","org.gy","hk","com.hk","edu.hk","gov.hk","idv.hk","net.hk","org.hk","公司.hk","教育.hk","敎育.hk","政府.hk","個人.hk","个��.hk","箇人.hk","網络.hk","网络.hk","组織.hk","網絡.hk","网絡.hk","组织.hk","組織.hk","組织.hk","hm","hn","com.hn","edu.hn","org.hn","net.hn","mil.hn","gob.hn","hr","iz.hr","from.hr","name.hr","com.hr","ht","com.ht","shop.ht","firm.ht","info.ht","adult.ht","net.ht","pro.ht","org.ht","med.ht","art.ht","coop.ht","pol.ht","asso.ht","edu.ht","rel.ht","gouv.ht","perso.ht","hu","co.hu","info.hu","org.hu","priv.hu","sport.hu","tm.hu","2000.hu","agrar.hu","bolt.hu","casino.hu","city.hu","erotica.hu","erotika.hu","film.hu","forum.hu","games.hu","hotel.hu","ingatlan.hu","jogasz.hu","konyvelo.hu","lakas.hu","media.hu","news.hu","reklam.hu","sex.hu","shop.hu","suli.hu","szex.hu","tozsde.hu","utazas.hu","video.hu","id","ac.id","biz.id","co.id","desa.id","go.id","mil.id","my.id","net.id","or.id","ponpes.id","sch.id","web.id","ie","gov.ie","il","ac.il","co.il","gov.il","idf.il","k12.il","muni.il","net.il","org.il","im","ac.im","co.im","com.im","ltd.co.im","net.im","org.im","plc.co.im","tt.im","tv.im","in","co.in","firm.in","net.in","org.in","gen.in","ind.in","nic.in","ac.in","edu.in","res.in","gov.in","mil.in","info","int","eu.int","io","com.io","iq","gov.iq","edu.iq","mil.iq","com.iq","org.iq","net.iq","ir","ac.ir","co.ir","gov.ir","id.ir","net.ir","org.ir","sch.ir","ایران.ir","ايران.ir","is","net.is","com.is","edu.is","gov.is","org.is","int.is","it","gov.it","edu.it","abr.it","abruzzo.it","aosta-valley.it","aostavalley.it","bas.it","basilicata.it","cal.it","calabria.it","cam.it","campania.it","emilia-romagna.it","emiliaromagna.it","emr.it","friuli-v-giulia.it","friuli-ve-giulia.it","friuli-vegiulia.it","friuli-venezia-giulia.it","friuli-veneziagiulia.it","friuli-vgiulia.it","friuliv-giulia.it","friulive-giulia.it","friulivegiulia.it","friulivenezia-giulia.it","friuliveneziagiulia.it","friulivgiulia.it","fvg.it","laz.it","lazio.it","lig.it","liguria.it","lom.it","lombardia.it","lombardy.it","lucania.it","mar.it","marche.it","mol.it","molise.it","piedmont.it","piemonte.it","pmn.it","pug.it","puglia.it","sar.it","sardegna.it","sardinia.it","sic.it","sicilia.it","sicily.it","taa.it","tos.it","toscana.it","trentin-sud-tirol.it","trentin-süd-tirol.it","trentin-sudtirol.it","trentin-südtirol.it","trentin-sued-tirol.it","trentin-suedtirol.it","trentino-a-adige.it","trentino-aadige.it","trentino-alto-adige.it","trentino-altoadige.it","trentino-s-tirol.it","trentino-stirol.it","trentino-sud-tirol.it","trentino-süd-tirol.it","trentino-sudtirol.it","trentino-südtirol.it","trentino-sued-tirol.it","trentino-suedtirol.it","trentino.it","trentinoa-adige.it","trentinoaadige.it","trentinoalto-adige.it","trentinoaltoadige.it","trentinos-tirol.it","trentinostirol.it","trentinosud-tirol.it","trentinosüd-tirol.it","trentinosudtirol.it","trentinosüdtirol.it","trentinosued-tirol.it","trentinosuedtirol.it","trentinsud-tirol.it","trentinsüd-tirol.it","trentinsudtirol.it","trentinsüdtirol.it","trentinsued-tirol.it","trentinsuedtirol.it","tuscany.it","umb.it","umbria.it","val-d-aosta.it","val-daosta.it","vald-aosta.it","valdaosta.it","valle-aosta.it","valle-d-aosta.it","valle-daosta.it","valleaosta.it","valled-aosta.it","valledaosta.it","vallee-aoste.it","vallée-aoste.it","vallee-d-aoste.it","vallée-d-aoste.it","valleeaoste.it","valléeaoste.it","valleedaoste.it","valléedaoste.it","vao.it","vda.it","ven.it","veneto.it","ag.it","agrigento.it","al.it","alessandria.it","alto-adige.it","altoadige.it","an.it","ancona.it","andria-barletta-trani.it","andria-trani-barletta.it","andriabarlettatrani.it","andriatranibarletta.it","ao.it","aosta.it","aoste.it","ap.it","aq.it","aquila.it","ar.it","arezzo.it","ascoli-piceno.it","ascolipiceno.it","asti.it","at.it","av.it","avellino.it","ba.it","balsan-sudtirol.it","balsan-südtirol.it","balsan-suedtirol.it","balsan.it","bari.it","barletta-trani-andria.it","barlettatraniandria.it","belluno.it","benevento.it","bergamo.it","bg.it","bi.it","biella.it","bl.it","bn.it","bo.it","bologna.it","bolzano-altoadige.it","bolzano.it","bozen-sudtirol.it","bozen-südtirol.it","bozen-suedtirol.it","bozen.it","br.it","brescia.it","brindisi.it","bs.it","bt.it","bulsan-sudtirol.it","bulsan-südtirol.it","bulsan-suedtirol.it","bulsan.it","bz.it","ca.it","cagliari.it","caltanissetta.it","campidano-medio.it","campidanomedio.it","campobasso.it","carbonia-iglesias.it","carboniaiglesias.it","carrara-massa.it","carraramassa.it","caserta.it","catania.it","catanzaro.it","cb.it","ce.it","cesena-forli.it","cesena-forlì.it","cesenaforli.it","cesenaforlì.it","ch.it","chieti.it","ci.it","cl.it","cn.it","co.it","como.it","cosenza.it","cr.it","cremona.it","crotone.it","cs.it","ct.it","cuneo.it","cz.it","dell-ogliastra.it","dellogliastra.it","en.it","enna.it","fc.it","fe.it","fermo.it","ferrara.it","fg.it","fi.it","firenze.it","florence.it","fm.it","foggia.it","forli-cesena.it","forlì-cesena.it","forlicesena.it","forlìcesena.it","fr.it","frosinone.it","ge.it","genoa.it","genova.it","go.it","gorizia.it","gr.it","grosseto.it","iglesias-carbonia.it","iglesiascarbonia.it","im.it","imperia.it","is.it","isernia.it","kr.it","la-spezia.it","laquila.it","laspezia.it","latina.it","lc.it","le.it","lecce.it","lecco.it","li.it","livorno.it","lo.it","lodi.it","lt.it","lu.it","lucca.it","macerata.it","mantova.it","massa-carrara.it","massacarrara.it","matera.it","mb.it","mc.it","me.it","medio-campidano.it","mediocampidano.it","messina.it","mi.it","milan.it","milano.it","mn.it","mo.it","modena.it","monza-brianza.it","monza-e-della-brianza.it","monza.it","monzabrianza.it","monzaebrianza.it","monzaedellabrianza.it","ms.it","mt.it","na.it","naples.it","napoli.it","no.it","novara.it","nu.it","nuoro.it","og.it","ogliastra.it","olbia-tempio.it","olbiatempio.it","or.it","oristano.it","ot.it","pa.it","padova.it","padua.it","palermo.it","parma.it","pavia.it","pc.it","pd.it","pe.it","perugia.it","pesaro-urbino.it","pesarourbino.it","pescara.it","pg.it","pi.it","piacenza.it","pisa.it","pistoia.it","pn.it","po.it","pordenone.it","potenza.it","pr.it","prato.it","pt.it","pu.it","pv.it","pz.it","ra.it","ragusa.it","ravenna.it","rc.it","re.it","reggio-calabria.it","reggio-emilia.it","reggiocalabria.it","reggioemilia.it","rg.it","ri.it","rieti.it","rimini.it","rm.it","rn.it","ro.it","roma.it","rome.it","rovigo.it","sa.it","salerno.it","sassari.it","savona.it","si.it","siena.it","siracusa.it","so.it","sondrio.it","sp.it","sr.it","ss.it","suedtirol.it","südtirol.it","sv.it","ta.it","taranto.it","te.it","tempio-olbia.it","tempioolbia.it","teramo.it","terni.it","tn.it","to.it","torino.it","tp.it","tr.it","trani-andria-barletta.it","trani-barletta-andria.it","traniandriabarletta.it","tranibarlettaandria.it","trapani.it","trento.it","treviso.it","trieste.it","ts.it","turin.it","tv.it","ud.it","udine.it","urbino-pesaro.it","urbinopesaro.it","va.it","varese.it","vb.it","vc.it","ve.it","venezia.it","venice.it","verbania.it","vercelli.it","verona.it","vi.it","vibo-valentia.it","vibovalentia.it","vicenza.it","viterbo.it","vr.it","vs.it","vt.it","vv.it","je","co.je","net.je","org.je","*.jm","jo","com.jo","org.jo","net.jo","edu.jo","sch.jo","gov.jo","mil.jo","name.jo","jobs","jp","ac.jp","ad.jp","co.jp","ed.jp","go.jp","gr.jp","lg.jp","ne.jp","or.jp","aichi.jp","akita.jp","aomori.jp","chiba.jp","ehime.jp","fukui.jp","fukuoka.jp","fukushima.jp","gifu.jp","gunma.jp","hiroshima.jp","hokkaido.jp","hyogo.jp","ibaraki.jp","ishikawa.jp","iwate.jp","kagawa.jp","kagoshima.jp","kanagawa.jp","kochi.jp","kumamoto.jp","kyoto.jp","mie.jp","miyagi.jp","miyazaki.jp","nagano.jp","nagasaki.jp","nara.jp","niigata.jp","oita.jp","okayama.jp","okinawa.jp","osaka.jp","saga.jp","saitama.jp","shiga.jp","shimane.jp","shizuoka.jp","tochigi.jp","tokushima.jp","tokyo.jp","tottori.jp","toyama.jp","wakayama.jp","yamagata.jp","yamaguchi.jp","yamanashi.jp","栃木.jp","愛知.jp","愛媛.jp","兵庫.jp","熊本.jp","茨城.jp","北海道.jp","千葉.jp","和歌山.jp","長崎.jp","長野.jp","新潟.jp","青森.jp","静岡.jp","東京.jp","石川.jp","埼玉.jp","三重.jp","京都.jp","佐賀.jp","大分.jp","大阪.jp","奈良.jp","宮城.jp","宮崎.jp","富山.jp","山口.jp","山形.jp","山梨.jp","岩手.jp","岐阜.jp","岡山.jp","島根.jp","広島.jp","徳島.jp","沖縄.jp","滋賀.jp","神奈川.jp","福井.jp","福岡.jp","福島.jp","秋田.jp","群馬.jp","香川.jp","高知.jp","鳥取.jp","鹿児島.jp","*.kawasaki.jp","*.kitakyushu.jp","*.kobe.jp","*.nagoya.jp","*.sapporo.jp","*.sendai.jp","*.yokohama.jp","!city.kawasaki.jp","!city.kitakyushu.jp","!city.kobe.jp","!city.nagoya.jp","!city.sapporo.jp","!city.sendai.jp","!city.yokohama.jp","aisai.aichi.jp","ama.aichi.jp","anjo.aichi.jp","asuke.aichi.jp","chiryu.aichi.jp","chita.aichi.jp","fuso.aichi.jp","gamagori.aichi.jp","handa.aichi.jp","hazu.aichi.jp","hekinan.aichi.jp","higashiura.aichi.jp","ichinomiya.aichi.jp","inazawa.aichi.jp","inuyama.aichi.jp","isshiki.aichi.jp","iwakura.aichi.jp","kanie.aichi.jp","kariya.aichi.jp","kasugai.aichi.jp","kira.aichi.jp","kiyosu.aichi.jp","komaki.aichi.jp","konan.aichi.jp","kota.aichi.jp","mihama.aichi.jp","miyoshi.aichi.jp","nishio.aichi.jp","nisshin.aichi.jp","obu.aichi.jp","oguchi.aichi.jp","oharu.aichi.jp","okazaki.aichi.jp","owariasahi.aichi.jp","seto.aichi.jp","shikatsu.aichi.jp","shinshiro.aichi.jp","shitara.aichi.jp","tahara.aichi.jp","takahama.aichi.jp","tobishima.aichi.jp","toei.aichi.jp","togo.aichi.jp","tokai.aichi.jp","tokoname.aichi.jp","toyoake.aichi.jp","toyohashi.aichi.jp","toyokawa.aichi.jp","toyone.aichi.jp","toyota.aichi.jp","tsushima.aichi.jp","yatomi.aichi.jp","akita.akita.jp","daisen.akita.jp","fujisato.akita.jp","gojome.akita.jp","hachirogata.akita.jp","happou.akita.jp","higashinaruse.akita.jp","honjo.akita.jp","honjyo.akita.jp","ikawa.akita.jp","kamikoani.akita.jp","kamioka.akita.jp","katagami.akita.jp","kazuno.akita.jp","kitaakita.akita.jp","kosaka.akita.jp","kyowa.akita.jp","misato.akita.jp","mitane.akita.jp","moriyoshi.akita.jp","nikaho.akita.jp","noshiro.akita.jp","odate.akita.jp","oga.akita.jp","ogata.akita.jp","semboku.akita.jp","yokote.akita.jp","yurihonjo.akita.jp","aomori.aomori.jp","gonohe.aomori.jp","hachinohe.aomori.jp","hashikami.aomori.jp","hiranai.aomori.jp","hirosaki.aomori.jp","itayanagi.aomori.jp","kuroishi.aomori.jp","misawa.aomori.jp","mutsu.aomori.jp","nakadomari.aomori.jp","noheji.aomori.jp","oirase.aomori.jp","owani.aomori.jp","rokunohe.aomori.jp","sannohe.aomori.jp","shichinohe.aomori.jp","shingo.aomori.jp","takko.aomori.jp","towada.aomori.jp","tsugaru.aomori.jp","tsuruta.aomori.jp","abiko.chiba.jp","asahi.chiba.jp","chonan.chiba.jp","chosei.chiba.jp","choshi.chiba.jp","chuo.chiba.jp","funabashi.chiba.jp","futtsu.chiba.jp","hanamigawa.chiba.jp","ichihara.chiba.jp","ichikawa.chiba.jp","ichinomiya.chiba.jp","inzai.chiba.jp","isumi.chiba.jp","kamagaya.chiba.jp","kamogawa.chiba.jp","kashiwa.chiba.jp","katori.chiba.jp","katsuura.chiba.jp","kimitsu.chiba.jp","kisarazu.chiba.jp","kozaki.chiba.jp","kujukuri.chiba.jp","kyonan.chiba.jp","matsudo.chiba.jp","midori.chiba.jp","mihama.chiba.jp","minamiboso.chiba.jp","mobara.chiba.jp","mutsuzawa.chiba.jp","nagara.chiba.jp","nagareyama.chiba.jp","narashino.chiba.jp","narita.chiba.jp","noda.chiba.jp","oamishirasato.chiba.jp","omigawa.chiba.jp","onjuku.chiba.jp","otaki.chiba.jp","sakae.chiba.jp","sakura.chiba.jp","shimofusa.chiba.jp","shirako.chiba.jp","shiroi.chiba.jp","shisui.chiba.jp","sodegaura.chiba.jp","sosa.chiba.jp","tako.chiba.jp","tateyama.chiba.jp","togane.chiba.jp","tohnosho.chiba.jp","tomisato.chiba.jp","urayasu.chiba.jp","yachimata.chiba.jp","yachiyo.chiba.jp","yokaichiba.chiba.jp","yokoshibahikari.chiba.jp","yotsukaido.chiba.jp","ainan.ehime.jp","honai.ehime.jp","ikata.ehime.jp","imabari.ehime.jp","iyo.ehime.jp","kamijima.ehime.jp","kihoku.ehime.jp","kumakogen.ehime.jp","masaki.ehime.jp","matsuno.ehime.jp","matsuyama.ehime.jp","namikata.ehime.jp","niihama.ehime.jp","ozu.ehime.jp","saijo.ehime.jp","seiyo.ehime.jp","shikokuchuo.ehime.jp","tobe.ehime.jp","toon.ehime.jp","uchiko.ehime.jp","uwajima.ehime.jp","yawatahama.ehime.jp","echizen.fukui.jp","eiheiji.fukui.jp","fukui.fukui.jp","ikeda.fukui.jp","katsuyama.fukui.jp","mihama.fukui.jp","minamiechizen.fukui.jp","obama.fukui.jp","ohi.fukui.jp","ono.fukui.jp","sabae.fukui.jp","sakai.fukui.jp","takahama.fukui.jp","tsuruga.fukui.jp","wakasa.fukui.jp","ashiya.fukuoka.jp","buzen.fukuoka.jp","chikugo.fukuoka.jp","chikuho.fukuoka.jp","chikujo.fukuoka.jp","chikushino.fukuoka.jp","chikuzen.fukuoka.jp","chuo.fukuoka.jp","dazaifu.fukuoka.jp","fukuchi.fukuoka.jp","hakata.fukuoka.jp","higashi.fukuoka.jp","hirokawa.fukuoka.jp","hisayama.fukuoka.jp","iizuka.fukuoka.jp","inatsuki.fukuoka.jp","kaho.fukuoka.jp","kasuga.fukuoka.jp","kasuya.fukuoka.jp","kawara.fukuoka.jp","keisen.fukuoka.jp","koga.fukuoka.jp","kurate.fukuoka.jp","kurogi.fukuoka.jp","kurume.fukuoka.jp","minami.fukuoka.jp","miyako.fukuoka.jp","miyama.fukuoka.jp","miyawaka.fukuoka.jp","mizumaki.fukuoka.jp","munakata.fukuoka.jp","nakagawa.fukuoka.jp","nakama.fukuoka.jp","nishi.fukuoka.jp","nogata.fukuoka.jp","ogori.fukuoka.jp","okagaki.fukuoka.jp","okawa.fukuoka.jp","oki.fukuoka.jp","omuta.fukuoka.jp","onga.fukuoka.jp","onojo.fukuoka.jp","oto.fukuoka.jp","saigawa.fukuoka.jp","sasaguri.fukuoka.jp","shingu.fukuoka.jp","shinyoshitomi.fukuoka.jp","shonai.fukuoka.jp","soeda.fukuoka.jp","sue.fukuoka.jp","tachiarai.fukuoka.jp","tagawa.fukuoka.jp","takata.fukuoka.jp","toho.fukuoka.jp","toyotsu.fukuoka.jp","tsuiki.fukuoka.jp","ukiha.fukuoka.jp","umi.fukuoka.jp","usui.fukuoka.jp","yamada.fukuoka.jp","yame.fukuoka.jp","yanagawa.fukuoka.jp","yukuhashi.fukuoka.jp","aizubange.fukushima.jp","aizumisato.fukushima.jp","aizuwakamatsu.fukushima.jp","asakawa.fukushima.jp","bandai.fukushima.jp","date.fukushima.jp","fukushima.fukushima.jp","furudono.fukushima.jp","futaba.fukushima.jp","hanawa.fukushima.jp","higashi.fukushima.jp","hirata.fukushima.jp","hirono.fukushima.jp","iitate.fukushima.jp","inawashiro.fukushima.jp","ishikawa.fukushima.jp","iwaki.fukushima.jp","izumizaki.fukushima.jp","kagamiishi.fukushima.jp","kaneyama.fukushima.jp","kawamata.fukushima.jp","kitakata.fukushima.jp","kitashiobara.fukushima.jp","koori.fukushima.jp","koriyama.fukushima.jp","kunimi.fukushima.jp","miharu.fukushima.jp","mishima.fukushima.jp","namie.fukushima.jp","nango.fukushima.jp","nishiaizu.fukushima.jp","nishigo.fukushima.jp","okuma.fukushima.jp","omotego.fukushima.jp","ono.fukushima.jp","otama.fukushima.jp","samegawa.fukushima.jp","shimogo.fukushima.jp","shirakawa.fukushima.jp","showa.fukushima.jp","soma.fukushima.jp","sukagawa.fukushima.jp","taishin.fukushima.jp","tamakawa.fukushima.jp","tanagura.fukushima.jp","tenei.fukushima.jp","yabuki.fukushima.jp","yamato.fukushima.jp","yamatsuri.fukushima.jp","yanaizu.fukushima.jp","yugawa.fukushima.jp","anpachi.gifu.jp","ena.gifu.jp","gifu.gifu.jp","ginan.gifu.jp","godo.gifu.jp","gujo.gifu.jp","hashima.gifu.jp","hichiso.gifu.jp","hida.gifu.jp","higashishirakawa.gifu.jp","ibigawa.gifu.jp","ikeda.gifu.jp","kakamigahara.gifu.jp","kani.gifu.jp","kasahara.gifu.jp","kasamatsu.gifu.jp","kawaue.gifu.jp","kitagata.gifu.jp","mino.gifu.jp","minokamo.gifu.jp","mitake.gifu.jp","mizunami.gifu.jp","motosu.gifu.jp","nakatsugawa.gifu.jp","ogaki.gifu.jp","sakahogi.gifu.jp","seki.gifu.jp","sekigahara.gifu.jp","shirakawa.gifu.jp","tajimi.gifu.jp","takayama.gifu.jp","tarui.gifu.jp","toki.gifu.jp","tomika.gifu.jp","wanouchi.gifu.jp","yamagata.gifu.jp","yaotsu.gifu.jp","yoro.gifu.jp","annaka.gunma.jp","chiyoda.gunma.jp","fujioka.gunma.jp","higashiagatsuma.gunma.jp","isesaki.gunma.jp","itakura.gunma.jp","kanna.gunma.jp","kanra.gunma.jp","katashina.gunma.jp","kawaba.gunma.jp","kiryu.gunma.jp","kusatsu.gunma.jp","maebashi.gunma.jp","meiwa.gunma.jp","midori.gunma.jp","minakami.gunma.jp","naganohara.gunma.jp","nakanojo.gunma.jp","nanmoku.gunma.jp","numata.gunma.jp","oizumi.gunma.jp","ora.gunma.jp","ota.gunma.jp","shibukawa.gunma.jp","shimonita.gunma.jp","shinto.gunma.jp","showa.gunma.jp","takasaki.gunma.jp","takayama.gunma.jp","tamamura.gunma.jp","tatebayashi.gunma.jp","tomioka.gunma.jp","tsukiyono.gunma.jp","tsumagoi.gunma.jp","ueno.gunma.jp","yoshioka.gunma.jp","asaminami.hiroshima.jp","daiwa.hiroshima.jp","etajima.hiroshima.jp","fuchu.hiroshima.jp","fukuyama.hiroshima.jp","hatsukaichi.hiroshima.jp","higashihiroshima.hiroshima.jp","hongo.hiroshima.jp","jinsekikogen.hiroshima.jp","kaita.hiroshima.jp","kui.hiroshima.jp","kumano.hiroshima.jp","kure.hiroshima.jp","mihara.hiroshima.jp","miyoshi.hiroshima.jp","naka.hiroshima.jp","onomichi.hiroshima.jp","osakikamijima.hiroshima.jp","otake.hiroshima.jp","saka.hiroshima.jp","sera.hiroshima.jp","seranishi.hiroshima.jp","shinichi.hiroshima.jp","shobara.hiroshima.jp","takehara.hiroshima.jp","abashiri.hokkaido.jp","abira.hokkaido.jp","aibetsu.hokkaido.jp","akabira.hokkaido.jp","akkeshi.hokkaido.jp","asahikawa.hokkaido.jp","ashibetsu.hokkaido.jp","ashoro.hokkaido.jp","assabu.hokkaido.jp","atsuma.hokkaido.jp","bibai.hokkaido.jp","biei.hokkaido.jp","bifuka.hokkaido.jp","bihoro.hokkaido.jp","biratori.hokkaido.jp","chippubetsu.hokkaido.jp","chitose.hokkaido.jp","date.hokkaido.jp","ebetsu.hokkaido.jp","embetsu.hokkaido.jp","eniwa.hokkaido.jp","erimo.hokkaido.jp","esan.hokkaido.jp","esashi.hokkaido.jp","fukagawa.hokkaido.jp","fukushima.hokkaido.jp","furano.hokkaido.jp","furubira.hokkaido.jp","haboro.hokkaido.jp","hakodate.hokkaido.jp","hamatonbetsu.hokkaido.jp","hidaka.hokkaido.jp","higashikagura.hokkaido.jp","higashikawa.hokkaido.jp","hiroo.hokkaido.jp","hokuryu.hokkaido.jp","hokuto.hokkaido.jp","honbetsu.hokkaido.jp","horokanai.hokkaido.jp","horonobe.hokkaido.jp","ikeda.hokkaido.jp","imakane.hokkaido.jp","ishikari.hokkaido.jp","iwamizawa.hokkaido.jp","iwanai.hokkaido.jp","kamifurano.hokkaido.jp","kamikawa.hokkaido.jp","kamishihoro.hokkaido.jp","kamisunagawa.hokkaido.jp","kamoenai.hokkaido.jp","kayabe.hokkaido.jp","kembuchi.hokkaido.jp","kikonai.hokkaido.jp","kimobetsu.hokkaido.jp","kitahiroshima.hokkaido.jp","kitami.hokkaido.jp","kiyosato.hokkaido.jp","koshimizu.hokkaido.jp","kunneppu.hokkaido.jp","kuriyama.hokkaido.jp","kuromatsunai.hokkaido.jp","kushiro.hokkaido.jp","kutchan.hokkaido.jp","kyowa.hokkaido.jp","mashike.hokkaido.jp","matsumae.hokkaido.jp","mikasa.hokkaido.jp","minamifurano.hokkaido.jp","mombetsu.hokkaido.jp","moseushi.hokkaido.jp","mukawa.hokkaido.jp","muroran.hokkaido.jp","naie.hokkaido.jp","nakagawa.hokkaido.jp","nakasatsunai.hokkaido.jp","nakatombetsu.hokkaido.jp","nanae.hokkaido.jp","nanporo.hokkaido.jp","nayoro.hokkaido.jp","nemuro.hokkaido.jp","niikappu.hokkaido.jp","niki.hokkaido.jp","nishiokoppe.hokkaido.jp","noboribetsu.hokkaido.jp","numata.hokkaido.jp","obihiro.hokkaido.jp","obira.hokkaido.jp","oketo.hokkaido.jp","okoppe.hokkaido.jp","otaru.hokkaido.jp","otobe.hokkaido.jp","otofuke.hokkaido.jp","otoineppu.hokkaido.jp","oumu.hokkaido.jp","ozora.hokkaido.jp","pippu.hokkaido.jp","rankoshi.hokkaido.jp","rebun.hokkaido.jp","rikubetsu.hokkaido.jp","rishiri.hokkaido.jp","rishirifuji.hokkaido.jp","saroma.hokkaido.jp","sarufutsu.hokkaido.jp","shakotan.hokkaido.jp","shari.hokkaido.jp","shibecha.hokkaido.jp","shibetsu.hokkaido.jp","shikabe.hokkaido.jp","shikaoi.hokkaido.jp","shimamaki.hokkaido.jp","shimizu.hokkaido.jp","shimokawa.hokkaido.jp","shinshinotsu.hokkaido.jp","shintoku.hokkaido.jp","shiranuka.hokkaido.jp","shiraoi.hokkaido.jp","shiriuchi.hokkaido.jp","sobetsu.hokkaido.jp","sunagawa.hokkaido.jp","taiki.hokkaido.jp","takasu.hokkaido.jp","takikawa.hokkaido.jp","takinoue.hokkaido.jp","teshikaga.hokkaido.jp","tobetsu.hokkaido.jp","tohma.hokkaido.jp","tomakomai.hokkaido.jp","tomari.hokkaido.jp","toya.hokkaido.jp","toyako.hokkaido.jp","toyotomi.hokkaido.jp","toyoura.hokkaido.jp","tsubetsu.hokkaido.jp","tsukigata.hokkaido.jp","urakawa.hokkaido.jp","urausu.hokkaido.jp","uryu.hokkaido.jp","utashinai.hokkaido.jp","wakkanai.hokkaido.jp","wassamu.hokkaido.jp","yakumo.hokkaido.jp","yoichi.hokkaido.jp","aioi.hyogo.jp","akashi.hyogo.jp","ako.hyogo.jp","amagasaki.hyogo.jp","aogaki.hyogo.jp","asago.hyogo.jp","ashiya.hyogo.jp","awaji.hyogo.jp","fukusaki.hyogo.jp","goshiki.hyogo.jp","harima.hyogo.jp","himeji.hyogo.jp","ichikawa.hyogo.jp","inagawa.hyogo.jp","itami.hyogo.jp","kakogawa.hyogo.jp","kamigori.hyogo.jp","kamikawa.hyogo.jp","kasai.hyogo.jp","kasuga.hyogo.jp","kawanishi.hyogo.jp","miki.hyogo.jp","minamiawaji.hyogo.jp","nishinomiya.hyogo.jp","nishiwaki.hyogo.jp","ono.hyogo.jp","sanda.hyogo.jp","sannan.hyogo.jp","sasayama.hyogo.jp","sayo.hyogo.jp","shingu.hyogo.jp","shinonsen.hyogo.jp","shiso.hyogo.jp","sumoto.hyogo.jp","taishi.hyogo.jp","taka.hyogo.jp","takarazuka.hyogo.jp","takasago.hyogo.jp","takino.hyogo.jp","tamba.hyogo.jp","tatsuno.hyogo.jp","toyooka.hyogo.jp","yabu.hyogo.jp","yashiro.hyogo.jp","yoka.hyogo.jp","yokawa.hyogo.jp","ami.ibaraki.jp","asahi.ibaraki.jp","bando.ibaraki.jp","chikusei.ibaraki.jp","daigo.ibaraki.jp","fujishiro.ibaraki.jp","hitachi.ibaraki.jp","hitachinaka.ibaraki.jp","hitachiomiya.ibaraki.jp","hitachiota.ibaraki.jp","ibaraki.ibaraki.jp","ina.ibaraki.jp","inashiki.ibaraki.jp","itako.ibaraki.jp","iwama.ibaraki.jp","joso.ibaraki.jp","kamisu.ibaraki.jp","kasama.ibaraki.jp","kashima.ibaraki.jp","kasumigaura.ibaraki.jp","koga.ibaraki.jp","miho.ibaraki.jp","mito.ibaraki.jp","moriya.ibaraki.jp","naka.ibaraki.jp","namegata.ibaraki.jp","oarai.ibaraki.jp","ogawa.ibaraki.jp","omitama.ibaraki.jp","ryugasaki.ibaraki.jp","sakai.ibaraki.jp","sakuragawa.ibaraki.jp","shimodate.ibaraki.jp","shimotsuma.ibaraki.jp","shirosato.ibaraki.jp","sowa.ibaraki.jp","suifu.ibaraki.jp","takahagi.ibaraki.jp","tamatsukuri.ibaraki.jp","tokai.ibaraki.jp","tomobe.ibaraki.jp","tone.ibaraki.jp","toride.ibaraki.jp","tsuchiura.ibaraki.jp","tsukuba.ibaraki.jp","uchihara.ibaraki.jp","ushiku.ibaraki.jp","yachiyo.ibaraki.jp","yamagata.ibaraki.jp","yawara.ibaraki.jp","yuki.ibaraki.jp","anamizu.ishikawa.jp","hakui.ishikawa.jp","hakusan.ishikawa.jp","kaga.ishikawa.jp","kahoku.ishikawa.jp","kanazawa.ishikawa.jp","kawakita.ishikawa.jp","komatsu.ishikawa.jp","nakanoto.ishikawa.jp","nanao.ishikawa.jp","nomi.ishikawa.jp","nonoichi.ishikawa.jp","noto.ishikawa.jp","shika.ishikawa.jp","suzu.ishikawa.jp","tsubata.ishikawa.jp","tsurugi.ishikawa.jp","uchinada.ishikawa.jp","wajima.ishikawa.jp","fudai.iwate.jp","fujisawa.iwate.jp","hanamaki.iwate.jp","hiraizumi.iwate.jp","hirono.iwate.jp","ichinohe.iwate.jp","ichinoseki.iwate.jp","iwaizumi.iwate.jp","iwate.iwate.jp","joboji.iwate.jp","kamaishi.iwate.jp","kanegasaki.iwate.jp","karumai.iwate.jp","kawai.iwate.jp","kitakami.iwate.jp","kuji.iwate.jp","kunohe.iwate.jp","kuzumaki.iwate.jp","miyako.iwate.jp","mizusawa.iwate.jp","morioka.iwate.jp","ninohe.iwate.jp","noda.iwate.jp","ofunato.iwate.jp","oshu.iwate.jp","otsuchi.iwate.jp","rikuzentakata.iwate.jp","shiwa.iwate.jp","shizukuishi.iwate.jp","sumita.iwate.jp","tanohata.iwate.jp","tono.iwate.jp","yahaba.iwate.jp","yamada.iwate.jp","ayagawa.kagawa.jp","higashikagawa.kagawa.jp","kanonji.kagawa.jp","kotohira.kagawa.jp","manno.kagawa.jp","marugame.kagawa.jp","mitoyo.kagawa.jp","naoshima.kagawa.jp","sanuki.kagawa.jp","tadotsu.kagawa.jp","takamatsu.kagawa.jp","tonosho.kagawa.jp","uchinomi.kagawa.jp","utazu.kagawa.jp","zentsuji.kagawa.jp","akune.kagoshima.jp","amami.kagoshima.jp","hioki.kagoshima.jp","isa.kagoshima.jp","isen.kagoshima.jp","izumi.kagoshima.jp","kagoshima.kagoshima.jp","kanoya.kagoshima.jp","kawanabe.kagoshima.jp","kinko.kagoshima.jp","kouyama.kagoshima.jp","makurazaki.kagoshima.jp","matsumoto.kagoshima.jp","minamitane.kagoshima.jp","nakatane.kagoshima.jp","nishinoomote.kagoshima.jp","satsumasendai.kagoshima.jp","soo.kagoshima.jp","tarumizu.kagoshima.jp","yusui.kagoshima.jp","aikawa.kanagawa.jp","atsugi.kanagawa.jp","ayase.kanagawa.jp","chigasaki.kanagawa.jp","ebina.kanagawa.jp","fujisawa.kanagawa.jp","hadano.kanagawa.jp","hakone.kanagawa.jp","hiratsuka.kanagawa.jp","isehara.kanagawa.jp","kaisei.kanagawa.jp","kamakura.kanagawa.jp","kiyokawa.kanagawa.jp","matsuda.kanagawa.jp","minamiashigara.kanagawa.jp","miura.kanagawa.jp","nakai.kanagawa.jp","ninomiya.kanagawa.jp","odawara.kanagawa.jp","oi.kanagawa.jp","oiso.kanagawa.jp","sagamihara.kanagawa.jp","samukawa.kanagawa.jp","tsukui.kanagawa.jp","yamakita.kanagawa.jp","yamato.kanagawa.jp","yokosuka.kanagawa.jp","yugawara.kanagawa.jp","zama.kanagawa.jp","zushi.kanagawa.jp","aki.kochi.jp","geisei.kochi.jp","hidaka.kochi.jp","higashitsuno.kochi.jp","ino.kochi.jp","kagami.kochi.jp","kami.kochi.jp","kitagawa.kochi.jp","kochi.kochi.jp","mihara.kochi.jp","motoyama.kochi.jp","muroto.kochi.jp","nahari.kochi.jp","nakamura.kochi.jp","nankoku.kochi.jp","nishitosa.kochi.jp","niyodogawa.kochi.jp","ochi.kochi.jp","okawa.kochi.jp","otoyo.kochi.jp","otsuki.kochi.jp","sakawa.kochi.jp","sukumo.kochi.jp","susaki.kochi.jp","tosa.kochi.jp","tosashimizu.kochi.jp","toyo.kochi.jp","tsuno.kochi.jp","umaji.kochi.jp","yasuda.kochi.jp","yusuhara.kochi.jp","amakusa.kumamoto.jp","arao.kumamoto.jp","aso.kumamoto.jp","choyo.kumamoto.jp","gyokuto.kumamoto.jp","kamiamakusa.kumamoto.jp","kikuchi.kumamoto.jp","kumamoto.kumamoto.jp","mashiki.kumamoto.jp","mifune.kumamoto.jp","minamata.kumamoto.jp","minamioguni.kumamoto.jp","nagasu.kumamoto.jp","nishihara.kumamoto.jp","oguni.kumamoto.jp","ozu.kumamoto.jp","sumoto.kumamoto.jp","takamori.kumamoto.jp","uki.kumamoto.jp","uto.kumamoto.jp","yamaga.kumamoto.jp","yamato.kumamoto.jp","yatsushiro.kumamoto.jp","ayabe.kyoto.jp","fukuchiyama.kyoto.jp","higashiyama.kyoto.jp","ide.kyoto.jp","ine.kyoto.jp","joyo.kyoto.jp","kameoka.kyoto.jp","kamo.kyoto.jp","kita.kyoto.jp","kizu.kyoto.jp","kumiyama.kyoto.jp","kyotamba.kyoto.jp","kyotanabe.kyoto.jp","kyotango.kyoto.jp","maizuru.kyoto.jp","minami.kyoto.jp","minamiyamashiro.kyoto.jp","miyazu.kyoto.jp","muko.kyoto.jp","nagaokakyo.kyoto.jp","nakagyo.kyoto.jp","nantan.kyoto.jp","oyamazaki.kyoto.jp","sakyo.kyoto.jp","seika.kyoto.jp","tanabe.kyoto.jp","uji.kyoto.jp","ujitawara.kyoto.jp","wazuka.kyoto.jp","yamashina.kyoto.jp","yawata.kyoto.jp","asahi.mie.jp","inabe.mie.jp","ise.mie.jp","kameyama.mie.jp","kawagoe.mie.jp","kiho.mie.jp","kisosaki.mie.jp","kiwa.mie.jp","komono.mie.jp","kumano.mie.jp","kuwana.mie.jp","matsusaka.mie.jp","meiwa.mie.jp","mihama.mie.jp","minamiise.mie.jp","misugi.mie.jp","miyama.mie.jp","nabari.mie.jp","shima.mie.jp","suzuka.mie.jp","tado.mie.jp","taiki.mie.jp","taki.mie.jp","tamaki.mie.jp","toba.mie.jp","tsu.mie.jp","udono.mie.jp","ureshino.mie.jp","watarai.mie.jp","yokkaichi.mie.jp","furukawa.miyagi.jp","higashimatsushima.miyagi.jp","ishinomaki.miyagi.jp","iwanuma.miyagi.jp","kakuda.miyagi.jp","kami.miyagi.jp","kawasaki.miyagi.jp","marumori.miyagi.jp","matsushima.miyagi.jp","minamisanriku.miyagi.jp","misato.miyagi.jp","murata.miyagi.jp","natori.miyagi.jp","ogawara.miyagi.jp","ohira.miyagi.jp","onagawa.miyagi.jp","osaki.miyagi.jp","rifu.miyagi.jp","semine.miyagi.jp","shibata.miyagi.jp","shichikashuku.miyagi.jp","shikama.miyagi.jp","shiogama.miyagi.jp","shiroishi.miyagi.jp","tagajo.miyagi.jp","taiwa.miyagi.jp","tome.miyagi.jp","tomiya.miyagi.jp","wakuya.miyagi.jp","watari.miyagi.jp","yamamoto.miyagi.jp","zao.miyagi.jp","aya.miyazaki.jp","ebino.miyazaki.jp","gokase.miyazaki.jp","hyuga.miyazaki.jp","kadogawa.miyazaki.jp","kawaminami.miyazaki.jp","kijo.miyazaki.jp","kitagawa.miyazaki.jp","kitakata.miyazaki.jp","kitaura.miyazaki.jp","kobayashi.miyazaki.jp","kunitomi.miyazaki.jp","kushima.miyazaki.jp","mimata.miyazaki.jp","miyakonojo.miyazaki.jp","miyazaki.miyazaki.jp","morotsuka.miyazaki.jp","nichinan.miyazaki.jp","nishimera.miyazaki.jp","nobeoka.miyazaki.jp","saito.miyazaki.jp","shiiba.miyazaki.jp","shintomi.miyazaki.jp","takaharu.miyazaki.jp","takanabe.miyazaki.jp","takazaki.miyazaki.jp","tsuno.miyazaki.jp","achi.nagano.jp","agematsu.nagano.jp","anan.nagano.jp","aoki.nagano.jp","asahi.nagano.jp","azumino.nagano.jp","chikuhoku.nagano.jp","chikuma.nagano.jp","chino.nagano.jp","fujimi.nagano.jp","hakuba.nagano.jp","hara.nagano.jp","hiraya.nagano.jp","iida.nagano.jp","iijima.nagano.jp","iiyama.nagano.jp","iizuna.nagano.jp","ikeda.nagano.jp","ikusaka.nagano.jp","ina.nagano.jp","karuizawa.nagano.jp","kawakami.nagano.jp","kiso.nagano.jp","kisofukushima.nagano.jp","kitaaiki.nagano.jp","komagane.nagano.jp","komoro.nagano.jp","matsukawa.nagano.jp","matsumoto.nagano.jp","miasa.nagano.jp","minamiaiki.nagano.jp","minamimaki.nagano.jp","minamiminowa.nagano.jp","minowa.nagano.jp","miyada.nagano.jp","miyota.nagano.jp","mochizuki.nagano.jp","nagano.nagano.jp","nagawa.nagano.jp","nagiso.nagano.jp","nakagawa.nagano.jp","nakano.nagano.jp","nozawaonsen.nagano.jp","obuse.nagano.jp","ogawa.nagano.jp","okaya.nagano.jp","omachi.nagano.jp","omi.nagano.jp","ookuwa.nagano.jp","ooshika.nagano.jp","otaki.nagano.jp","otari.nagano.jp","sakae.nagano.jp","sakaki.nagano.jp","saku.nagano.jp","sakuho.nagano.jp","shimosuwa.nagano.jp","shinanomachi.nagano.jp","shiojiri.nagano.jp","suwa.nagano.jp","suzaka.nagano.jp","takagi.nagano.jp","takamori.nagano.jp","takayama.nagano.jp","tateshina.nagano.jp","tatsuno.nagano.jp","togakushi.nagano.jp","togura.nagano.jp","tomi.nagano.jp","ueda.nagano.jp","wada.nagano.jp","yamagata.nagano.jp","yamanouchi.nagano.jp","yasaka.nagano.jp","yasuoka.nagano.jp","chijiwa.nagasaki.jp","futsu.nagasaki.jp","goto.nagasaki.jp","hasami.nagasaki.jp","hirado.nagasaki.jp","iki.nagasaki.jp","isahaya.nagasaki.jp","kawatana.nagasaki.jp","kuchinotsu.nagasaki.jp","matsuura.nagasaki.jp","nagasaki.nagasaki.jp","obama.nagasaki.jp","omura.nagasaki.jp","oseto.nagasaki.jp","saikai.nagasaki.jp","sasebo.nagasaki.jp","seihi.nagasaki.jp","shimabara.nagasaki.jp","shinkamigoto.nagasaki.jp","togitsu.nagasaki.jp","tsushima.nagasaki.jp","unzen.nagasaki.jp","ando.nara.jp","gose.nara.jp","heguri.nara.jp","higashiyoshino.nara.jp","ikaruga.nara.jp","ikoma.nara.jp","kamikitayama.nara.jp","kanmaki.nara.jp","kashiba.nara.jp","kashihara.nara.jp","katsuragi.nara.jp","kawai.nara.jp","kawakami.nara.jp","kawanishi.nara.jp","koryo.nara.jp","kurotaki.nara.jp","mitsue.nara.jp","miyake.nara.jp","nara.nara.jp","nosegawa.nara.jp","oji.nara.jp","ouda.nara.jp","oyodo.nara.jp","sakurai.nara.jp","sango.nara.jp","shimoichi.nara.jp","shimokitayama.nara.jp","shinjo.nara.jp","soni.nara.jp","takatori.nara.jp","tawaramoto.nara.jp","tenkawa.nara.jp","tenri.nara.jp","uda.nara.jp","yamatokoriyama.nara.jp","yamatotakada.nara.jp","yamazoe.nara.jp","yoshino.nara.jp","aga.niigata.jp","agano.niigata.jp","gosen.niigata.jp","itoigawa.niigata.jp","izumozaki.niigata.jp","joetsu.niigata.jp","kamo.niigata.jp","kariwa.niigata.jp","kashiwazaki.niigata.jp","minamiuonuma.niigata.jp","mitsuke.niigata.jp","muika.niigata.jp","murakami.niigata.jp","myoko.niigata.jp","nagaoka.niigata.jp","niigata.niigata.jp","ojiya.niigata.jp","omi.niigata.jp","sado.niigata.jp","sanjo.niigata.jp","seiro.niigata.jp","seirou.niigata.jp","sekikawa.niigata.jp","shibata.niigata.jp","tagami.niigata.jp","tainai.niigata.jp","tochio.niigata.jp","tokamachi.niigata.jp","tsubame.niigata.jp","tsunan.niigata.jp","uonuma.niigata.jp","yahiko.niigata.jp","yoita.niigata.jp","yuzawa.niigata.jp","beppu.oita.jp","bungoono.oita.jp","bungotakada.oita.jp","hasama.oita.jp","hiji.oita.jp","himeshima.oita.jp","hita.oita.jp","kamitsue.oita.jp","kokonoe.oita.jp","kuju.oita.jp","kunisaki.oita.jp","kusu.oita.jp","oita.oita.jp","saiki.oita.jp","taketa.oita.jp","tsukumi.oita.jp","usa.oita.jp","usuki.oita.jp","yufu.oita.jp","akaiwa.okayama.jp","asakuchi.okayama.jp","bizen.okayama.jp","hayashima.okayama.jp","ibara.okayama.jp","kagamino.okayama.jp","kasaoka.okayama.jp","kibichuo.okayama.jp","kumenan.okayama.jp","kurashiki.okayama.jp","maniwa.okayama.jp","misaki.okayama.jp","nagi.okayama.jp","niimi.okayama.jp","nishiawakura.okayama.jp","okayama.okayama.jp","satosho.okayama.jp","setouchi.okayama.jp","shinjo.okayama.jp","shoo.okayama.jp","soja.okayama.jp","takahashi.okayama.jp","tamano.okayama.jp","tsuyama.okayama.jp","wake.okayama.jp","yakage.okayama.jp","aguni.okinawa.jp","ginowan.okinawa.jp","ginoza.okinawa.jp","gushikami.okinawa.jp","haebaru.okinawa.jp","higashi.okinawa.jp","hirara.okinawa.jp","iheya.okinawa.jp","ishigaki.okinawa.jp","ishikawa.okinawa.jp","itoman.okinawa.jp","izena.okinawa.jp","kadena.okinawa.jp","kin.okinawa.jp","kitadaito.okinawa.jp","kitanakagusuku.okinawa.jp","kumejima.okinawa.jp","kunigami.okinawa.jp","minamidaito.okinawa.jp","motobu.okinawa.jp","nago.okinawa.jp","naha.okinawa.jp","nakagusuku.okinawa.jp","nakijin.okinawa.jp","nanjo.okinawa.jp","nishihara.okinawa.jp","ogimi.okinawa.jp","okinawa.okinawa.jp","onna.okinawa.jp","shimoji.okinawa.jp","taketomi.okinawa.jp","tarama.okinawa.jp","tokashiki.okinawa.jp","tomigusuku.okinawa.jp","tonaki.okinawa.jp","urasoe.okinawa.jp","uruma.okinawa.jp","yaese.okinawa.jp","yomitan.okinawa.jp","yonabaru.okinawa.jp","yonaguni.okinawa.jp","zamami.okinawa.jp","abeno.osaka.jp","chihayaakasaka.osaka.jp","chuo.osaka.jp","daito.osaka.jp","fujiidera.osaka.jp","habikino.osaka.jp","hannan.osaka.jp","higashiosaka.osaka.jp","higashisumiyoshi.osaka.jp","higashiyodogawa.osaka.jp","hirakata.osaka.jp","ibaraki.osaka.jp","ikeda.osaka.jp","izumi.osaka.jp","izumiotsu.osaka.jp","izumisano.osaka.jp","kadoma.osaka.jp","kaizuka.osaka.jp","kanan.osaka.jp","kashiwara.osaka.jp","katano.osaka.jp","kawachinagano.osaka.jp","kishiwada.osaka.jp","kita.osaka.jp","kumatori.osaka.jp","matsubara.osaka.jp","minato.osaka.jp","minoh.osaka.jp","misaki.osaka.jp","moriguchi.osaka.jp","neyagawa.osaka.jp","nishi.osaka.jp","nose.osaka.jp","osakasayama.osaka.jp","sakai.osaka.jp","sayama.osaka.jp","sennan.osaka.jp","settsu.osaka.jp","shijonawate.osaka.jp","shimamoto.osaka.jp","suita.osaka.jp","tadaoka.osaka.jp","taishi.osaka.jp","tajiri.osaka.jp","takaishi.osaka.jp","takatsuki.osaka.jp","tondabayashi.osaka.jp","toyonaka.osaka.jp","toyono.osaka.jp","yao.osaka.jp","ariake.saga.jp","arita.saga.jp","fukudomi.saga.jp","genkai.saga.jp","hamatama.saga.jp","hizen.saga.jp","imari.saga.jp","kamimine.saga.jp","kanzaki.saga.jp","karatsu.saga.jp","kashima.saga.jp","kitagata.saga.jp","kitahata.saga.jp","kiyama.saga.jp","kouhoku.saga.jp","kyuragi.saga.jp","nishiarita.saga.jp","ogi.saga.jp","omachi.saga.jp","ouchi.saga.jp","saga.saga.jp","shiroishi.saga.jp","taku.saga.jp","tara.saga.jp","tosu.saga.jp","yoshinogari.saga.jp","arakawa.saitama.jp","asaka.saitama.jp","chichibu.saitama.jp","fujimi.saitama.jp","fujimino.saitama.jp","fukaya.saitama.jp","hanno.saitama.jp","hanyu.saitama.jp","hasuda.saitama.jp","hatogaya.saitama.jp","hatoyama.saitama.jp","hidaka.saitama.jp","higashichichibu.saitama.jp","higashimatsuyama.saitama.jp","honjo.saitama.jp","ina.saitama.jp","iruma.saitama.jp","iwatsuki.saitama.jp","kamiizumi.saitama.jp","kamikawa.saitama.jp","kamisato.saitama.jp","kasukabe.saitama.jp","kawagoe.saitama.jp","kawaguchi.saitama.jp","kawajima.saitama.jp","kazo.saitama.jp","kitamoto.saitama.jp","koshigaya.saitama.jp","kounosu.saitama.jp","kuki.saitama.jp","kumagaya.saitama.jp","matsubushi.saitama.jp","minano.saitama.jp","misato.saitama.jp","miyashiro.saitama.jp","miyoshi.saitama.jp","moroyama.saitama.jp","nagatoro.saitama.jp","namegawa.saitama.jp","niiza.saitama.jp","ogano.saitama.jp","ogawa.saitama.jp","ogose.saitama.jp","okegawa.saitama.jp","omiya.saitama.jp","otaki.saitama.jp","ranzan.saitama.jp","ryokami.saitama.jp","saitama.saitama.jp","sakado.saitama.jp","satte.saitama.jp","sayama.saitama.jp","shiki.saitama.jp","shiraoka.saitama.jp","soka.saitama.jp","sugito.saitama.jp","toda.saitama.jp","tokigawa.saitama.jp","tokorozawa.saitama.jp","tsurugashima.saitama.jp","urawa.saitama.jp","warabi.saitama.jp","yashio.saitama.jp","yokoze.saitama.jp","yono.saitama.jp","yorii.saitama.jp","yoshida.saitama.jp","yoshikawa.saitama.jp","yoshimi.saitama.jp","aisho.shiga.jp","gamo.shiga.jp","higashiomi.shiga.jp","hikone.shiga.jp","koka.shiga.jp","konan.shiga.jp","kosei.shiga.jp","koto.shiga.jp","kusatsu.shiga.jp","maibara.shiga.jp","moriyama.shiga.jp","nagahama.shiga.jp","nishiazai.shiga.jp","notogawa.shiga.jp","omihachiman.shiga.jp","otsu.shiga.jp","ritto.shiga.jp","ryuoh.shiga.jp","takashima.shiga.jp","takatsuki.shiga.jp","torahime.shiga.jp","toyosato.shiga.jp","yasu.shiga.jp","akagi.shimane.jp","ama.shimane.jp","gotsu.shimane.jp","hamada.shimane.jp","higashiizumo.shimane.jp","hikawa.shimane.jp","hikimi.shimane.jp","izumo.shimane.jp","kakinoki.shimane.jp","masuda.shimane.jp","matsue.shimane.jp","misato.shimane.jp","nishinoshima.shimane.jp","ohda.shimane.jp","okinoshima.shimane.jp","okuizumo.shimane.jp","shimane.shimane.jp","tamayu.shimane.jp","tsuwano.shimane.jp","unnan.shimane.jp","yakumo.shimane.jp","yasugi.shimane.jp","yatsuka.shimane.jp","arai.shizuoka.jp","atami.shizuoka.jp","fuji.shizuoka.jp","fujieda.shizuoka.jp","fujikawa.shizuoka.jp","fujinomiya.shizuoka.jp","fukuroi.shizuoka.jp","gotemba.shizuoka.jp","haibara.shizuoka.jp","hamamatsu.shizuoka.jp","higashiizu.shizuoka.jp","ito.shizuoka.jp","iwata.shizuoka.jp","izu.shizuoka.jp","izunokuni.shizuoka.jp","kakegawa.shizuoka.jp","kannami.shizuoka.jp","kawanehon.shizuoka.jp","kawazu.shizuoka.jp","kikugawa.shizuoka.jp","kosai.shizuoka.jp","makinohara.shizuoka.jp","matsuzaki.shizuoka.jp","minamiizu.shizuoka.jp","mishima.shizuoka.jp","morimachi.shizuoka.jp","nishiizu.shizuoka.jp","numazu.shizuoka.jp","omaezaki.shizuoka.jp","shimada.shizuoka.jp","shimizu.shizuoka.jp","shimoda.shizuoka.jp","shizuoka.shizuoka.jp","susono.shizuoka.jp","yaizu.shizuoka.jp","yoshida.shizuoka.jp","ashikaga.tochigi.jp","bato.tochigi.jp","haga.tochigi.jp","ichikai.tochigi.jp","iwafune.tochigi.jp","kaminokawa.tochigi.jp","kanuma.tochigi.jp","karasuyama.tochigi.jp","kuroiso.tochigi.jp","mashiko.tochigi.jp","mibu.tochigi.jp","moka.tochigi.jp","motegi.tochigi.jp","nasu.tochigi.jp","nasushiobara.tochigi.jp","nikko.tochigi.jp","nishikata.tochigi.jp","nogi.tochigi.jp","ohira.tochigi.jp","ohtawara.tochigi.jp","oyama.tochigi.jp","sakura.tochigi.jp","sano.tochigi.jp","shimotsuke.tochigi.jp","shioya.tochigi.jp","takanezawa.tochigi.jp","tochigi.tochigi.jp","tsuga.tochigi.jp","ujiie.tochigi.jp","utsunomiya.tochigi.jp","yaita.tochigi.jp","aizumi.tokushima.jp","anan.tokushima.jp","ichiba.tokushima.jp","itano.tokushima.jp","kainan.tokushima.jp","komatsushima.tokushima.jp","matsushige.tokushima.jp","mima.tokushima.jp","minami.tokushima.jp","miyoshi.tokushima.jp","mugi.tokushima.jp","nakagawa.tokushima.jp","naruto.tokushima.jp","sanagochi.tokushima.jp","shishikui.tokushima.jp","tokushima.tokushima.jp","wajiki.tokushima.jp","adachi.tokyo.jp","akiruno.tokyo.jp","akishima.tokyo.jp","aogashima.tokyo.jp","arakawa.tokyo.jp","bunkyo.tokyo.jp","chiyoda.tokyo.jp","chofu.tokyo.jp","chuo.tokyo.jp","edogawa.tokyo.jp","fuchu.tokyo.jp","fussa.tokyo.jp","hachijo.tokyo.jp","hachioji.tokyo.jp","hamura.tokyo.jp","higashikurume.tokyo.jp","higashimurayama.tokyo.jp","higashiyamato.tokyo.jp","hino.tokyo.jp","hinode.tokyo.jp","hinohara.tokyo.jp","inagi.tokyo.jp","itabashi.tokyo.jp","katsushika.tokyo.jp","kita.tokyo.jp","kiyose.tokyo.jp","kodaira.tokyo.jp","koganei.tokyo.jp","kokubunji.tokyo.jp","komae.tokyo.jp","koto.tokyo.jp","kouzushima.tokyo.jp","kunitachi.tokyo.jp","machida.tokyo.jp","meguro.tokyo.jp","minato.tokyo.jp","mitaka.tokyo.jp","mizuho.tokyo.jp","musashimurayama.tokyo.jp","musashino.tokyo.jp","nakano.tokyo.jp","nerima.tokyo.jp","ogasawara.tokyo.jp","okutama.tokyo.jp","ome.tokyo.jp","oshima.tokyo.jp","ota.tokyo.jp","setagaya.tokyo.jp","shibuya.tokyo.jp","shinagawa.tokyo.jp","shinjuku.tokyo.jp","suginami.tokyo.jp","sumida.tokyo.jp","tachikawa.tokyo.jp","taito.tokyo.jp","tama.tokyo.jp","toshima.tokyo.jp","chizu.tottori.jp","hino.tottori.jp","kawahara.tottori.jp","koge.tottori.jp","kotoura.tottori.jp","misasa.tottori.jp","nanbu.tottori.jp","nichinan.tottori.jp","sakaiminato.tottori.jp","tottori.tottori.jp","wakasa.tottori.jp","yazu.tottori.jp","yonago.tottori.jp","asahi.toyama.jp","fuchu.toyama.jp","fukumitsu.toyama.jp","funahashi.toyama.jp","himi.toyama.jp","imizu.toyama.jp","inami.toyama.jp","johana.toyama.jp","kamiichi.toyama.jp","kurobe.toyama.jp","nakaniikawa.toyama.jp","namerikawa.toyama.jp","nanto.toyama.jp","nyuzen.toyama.jp","oyabe.toyama.jp","taira.toyama.jp","takaoka.toyama.jp","tateyama.toyama.jp","toga.toyama.jp","tonami.toyama.jp","toyama.toyama.jp","unazuki.toyama.jp","uozu.toyama.jp","yamada.toyama.jp","arida.wakayama.jp","aridagawa.wakayama.jp","gobo.wakayama.jp","hashimoto.wakayama.jp","hidaka.wakayama.jp","hirogawa.wakayama.jp","inami.wakayama.jp","iwade.wakayama.jp","kainan.wakayama.jp","kamitonda.wakayama.jp","katsuragi.wakayama.jp","kimino.wakayama.jp","kinokawa.wakayama.jp","kitayama.wakayama.jp","koya.wakayama.jp","koza.wakayama.jp","kozagawa.wakayama.jp","kudoyama.wakayama.jp","kushimoto.wakayama.jp","mihama.wakayama.jp","misato.wakayama.jp","nachikatsuura.wakayama.jp","shingu.wakayama.jp","shirahama.wakayama.jp","taiji.wakayama.jp","tanabe.wakayama.jp","wakayama.wakayama.jp","yuasa.wakayama.jp","yura.wakayama.jp","asahi.yamagata.jp","funagata.yamagata.jp","higashine.yamagata.jp","iide.yamagata.jp","kahoku.yamagata.jp","kaminoyama.yamagata.jp","kaneyama.yamagata.jp","kawanishi.yamagata.jp","mamurogawa.yamagata.jp","mikawa.yamagata.jp","murayama.yamagata.jp","nagai.yamagata.jp","nakayama.yamagata.jp","nanyo.yamagata.jp","nishikawa.yamagata.jp","obanazawa.yamagata.jp","oe.yamagata.jp","oguni.yamagata.jp","ohkura.yamagata.jp","oishida.yamagata.jp","sagae.yamagata.jp","sakata.yamagata.jp","sakegawa.yamagata.jp","shinjo.yamagata.jp","shirataka.yamagata.jp","shonai.yamagata.jp","takahata.yamagata.jp","tendo.yamagata.jp","tozawa.yamagata.jp","tsuruoka.yamagata.jp","yamagata.yamagata.jp","yamanobe.yamagata.jp","yonezawa.yamagata.jp","yuza.yamagata.jp","abu.yamaguchi.jp","hagi.yamaguchi.jp","hikari.yamaguchi.jp","hofu.yamaguchi.jp","iwakuni.yamaguchi.jp","kudamatsu.yamaguchi.jp","mitou.yamaguchi.jp","nagato.yamaguchi.jp","oshima.yamaguchi.jp","shimonoseki.yamaguchi.jp","shunan.yamaguchi.jp","tabuse.yamaguchi.jp","tokuyama.yamaguchi.jp","toyota.yamaguchi.jp","ube.yamaguchi.jp","yuu.yamaguchi.jp","chuo.yamanashi.jp","doshi.yamanashi.jp","fuefuki.yamanashi.jp","fujikawa.yamanashi.jp","fujikawaguchiko.yamanashi.jp","fujiyoshida.yamanashi.jp","hayakawa.yamanashi.jp","hokuto.yamanashi.jp","ichikawamisato.yamanashi.jp","kai.yamanashi.jp","kofu.yamanashi.jp","koshu.yamanashi.jp","kosuge.yamanashi.jp","minami-alps.yamanashi.jp","minobu.yamanashi.jp","nakamichi.yamanashi.jp","nanbu.yamanashi.jp","narusawa.yamanashi.jp","nirasaki.yamanashi.jp","nishikatsura.yamanashi.jp","oshino.yamanashi.jp","otsuki.yamanashi.jp","showa.yamanashi.jp","tabayama.yamanashi.jp","tsuru.yamanashi.jp","uenohara.yamanashi.jp","yamanakako.yamanashi.jp","yamanashi.yamanashi.jp","ke","ac.ke","co.ke","go.ke","info.ke","me.ke","mobi.ke","ne.ke","or.ke","sc.ke","kg","org.kg","net.kg","com.kg","edu.kg","gov.kg","mil.kg","*.kh","ki","edu.ki","biz.ki","net.ki","org.ki","gov.ki","info.ki","com.ki","km","org.km","nom.km","gov.km","prd.km","tm.km","edu.km","mil.km","ass.km","com.km","coop.km","asso.km","presse.km","medecin.km","notaires.km","pharmaciens.km","veterinaire.km","gouv.km","kn","net.kn","org.kn","edu.kn","gov.kn","kp","com.kp","edu.kp","gov.kp","org.kp","rep.kp","tra.kp","kr","ac.kr","co.kr","es.kr","go.kr","hs.kr","kg.kr","mil.kr","ms.kr","ne.kr","or.kr","pe.kr","re.kr","sc.kr","busan.kr","chungbuk.kr","chungnam.kr","daegu.kr","daejeon.kr","gangwon.kr","gwangju.kr","gyeongbuk.kr","gyeonggi.kr","gyeongnam.kr","incheon.kr","jeju.kr","jeonbuk.kr","jeonnam.kr","seoul.kr","ulsan.kr","kw","com.kw","edu.kw","emb.kw","gov.kw","ind.kw","net.kw","org.kw","ky","com.ky","edu.ky","net.ky","org.ky","kz","org.kz","edu.kz","net.kz","gov.kz","mil.kz","com.kz","la","int.la","net.la","info.la","edu.la","gov.la","per.la","com.la","org.la","lb","com.lb","edu.lb","gov.lb","net.lb","org.lb","lc","com.lc","net.lc","co.lc","org.lc","edu.lc","gov.lc","li","lk","gov.lk","sch.lk","net.lk","int.lk","com.lk","org.lk","edu.lk","ngo.lk","soc.lk","web.lk","ltd.lk","assn.lk","grp.lk","hotel.lk","ac.lk","lr","com.lr","edu.lr","gov.lr","org.lr","net.lr","ls","ac.ls","biz.ls","co.ls","edu.ls","gov.ls","info.ls","net.ls","org.ls","sc.ls","lt","gov.lt","lu","lv","com.lv","edu.lv","gov.lv","org.lv","mil.lv","id.lv","net.lv","asn.lv","conf.lv","ly","com.ly","net.ly","gov.ly","plc.ly","edu.ly","sch.ly","med.ly","org.ly","id.ly","ma","co.ma","net.ma","gov.ma","org.ma","ac.ma","press.ma","mc","tm.mc","asso.mc","md","me","co.me","net.me","org.me","edu.me","ac.me","gov.me","its.me","priv.me","mg","org.mg","nom.mg","gov.mg","prd.mg","tm.mg","edu.mg","mil.mg","com.mg","co.mg","mh","mil","mk","com.mk","org.mk","net.mk","edu.mk","gov.mk","inf.mk","name.mk","ml","com.ml","edu.ml","gouv.ml","gov.ml","net.ml","org.ml","presse.ml","*.mm","mn","gov.mn","edu.mn","org.mn","mo","com.mo","net.mo","org.mo","edu.mo","gov.mo","mobi","mp","mq","mr","gov.mr","ms","com.ms","edu.ms","gov.ms","net.ms","org.ms","mt","com.mt","edu.mt","net.mt","org.mt","mu","com.mu","net.mu","org.mu","gov.mu","ac.mu","co.mu","or.mu","museum","academy.museum","agriculture.museum","air.museum","airguard.museum","alabama.museum","alaska.museum","amber.museum","ambulance.museum","american.museum","americana.museum","americanantiques.museum","americanart.museum","amsterdam.museum","and.museum","annefrank.museum","anthro.museum","anthropology.museum","antiques.museum","aquarium.museum","arboretum.museum","archaeological.museum","archaeology.museum","architecture.museum","art.museum","artanddesign.museum","artcenter.museum","artdeco.museum","arteducation.museum","artgallery.museum","arts.museum","artsandcrafts.museum","asmatart.museum","assassination.museum","assisi.museum","association.museum","astronomy.museum","atlanta.museum","austin.museum","australia.museum","automotive.museum","aviation.museum","axis.museum","badajoz.museum","baghdad.museum","bahn.museum","bale.museum","baltimore.museum","barcelona.museum","baseball.museum","basel.museum","baths.museum","bauern.museum","beauxarts.museum","beeldengeluid.museum","bellevue.museum","bergbau.museum","berkeley.museum","berlin.museum","bern.museum","bible.museum","bilbao.museum","bill.museum","birdart.museum","birthplace.museum","bonn.museum","boston.museum","botanical.museum","botanicalgarden.museum","botanicgarden.museum","botany.museum","brandywinevalley.museum","brasil.museum","bristol.museum","british.museum","britishcolumbia.museum","broadcast.museum","brunel.museum","brussel.museum","brussels.museum","bruxelles.museum","building.museum","burghof.museum","bus.museum","bushey.museum","cadaques.museum","california.museum","cambridge.museum","can.museum","canada.museum","capebreton.museum","carrier.museum","cartoonart.museum","casadelamoneda.museum","castle.museum","castres.museum","celtic.museum","center.museum","chattanooga.museum","cheltenham.museum","chesapeakebay.museum","chicago.museum","children.museum","childrens.museum","childrensgarden.museum","chiropractic.museum","chocolate.museum","christiansburg.museum","cincinnati.museum","cinema.museum","circus.museum","civilisation.museum","civilization.museum","civilwar.museum","clinton.museum","clock.museum","coal.museum","coastaldefence.museum","cody.museum","coldwar.museum","collection.museum","colonialwilliamsburg.museum","coloradoplateau.museum","columbia.museum","columbus.museum","communication.museum","communications.museum","community.museum","computer.museum","computerhistory.museum","comunicações.museum","contemporary.museum","contemporaryart.museum","convent.museum","copenhagen.museum","corporation.museum","correios-e-telecomunicações.museum","corvette.museum","costume.museum","countryestate.museum","county.museum","crafts.museum","cranbrook.museum","creation.museum","cultural.museum","culturalcenter.museum","culture.museum","cyber.museum","cymru.museum","dali.museum","dallas.museum","database.museum","ddr.museum","decorativearts.museum","delaware.museum","delmenhorst.museum","denmark.museum","depot.museum","design.museum","detroit.museum","dinosaur.museum","discovery.museum","dolls.museum","donostia.museum","durham.museum","eastafrica.museum","eastcoast.museum","education.museum","educational.museum","egyptian.museum","eisenbahn.museum","elburg.museum","elvendrell.museum","embroidery.museum","encyclopedic.museum","england.museum","entomology.museum","environment.museum","environmentalconservation.museum","epilepsy.museum","essex.museum","estate.museum","ethnology.museum","exeter.museum","exhibition.museum","family.museum","farm.museum","farmequipment.museum","farmers.museum","farmstead.museum","field.museum","figueres.museum","filatelia.museum","film.museum","fineart.museum","finearts.museum","finland.museum","flanders.museum","florida.museum","force.museum","fortmissoula.museum","fortworth.museum","foundation.museum","francaise.museum","frankfurt.museum","franziskaner.museum","freemasonry.museum","freiburg.museum","fribourg.museum","frog.museum","fundacio.museum","furniture.museum","gallery.museum","garden.museum","gateway.museum","geelvinck.museum","gemological.museum","geology.museum","georgia.museum","giessen.museum","glas.museum","glass.museum","gorge.museum","grandrapids.museum","graz.museum","guernsey.museum","halloffame.museum","hamburg.museum","handson.museum","harvestcelebration.museum","hawaii.museum","health.museum","heimatunduhren.museum","hellas.museum","helsinki.museum","hembygdsforbund.museum","heritage.museum","histoire.museum","historical.museum","historicalsociety.museum","historichouses.museum","historisch.museum","historisches.museum","history.museum","historyofscience.museum","horology.museum","house.museum","humanities.museum","illustration.museum","imageandsound.museum","indian.museum","indiana.museum","indianapolis.museum","indianmarket.museum","intelligence.museum","interactive.museum","iraq.museum","iron.museum","isleofman.museum","jamison.museum","jefferson.museum","jerusalem.museum","jewelry.museum","jewish.museum","jewishart.museum","jfk.museum","journalism.museum","judaica.museum","judygarland.museum","juedisches.museum","juif.museum","karate.museum","karikatur.museum","kids.museum","koebenhavn.museum","koeln.museum","kunst.museum","kunstsammlung.museum","kunstunddesign.museum","labor.museum","labour.museum","lajolla.museum","lancashire.museum","landes.museum","lans.museum","läns.museum","larsson.museum","lewismiller.museum","lincoln.museum","linz.museum","living.museum","livinghistory.museum","localhistory.museum","london.museum","losangeles.museum","louvre.museum","loyalist.museum","lucerne.museum","luxembourg.museum","luzern.museum","mad.museum","madrid.museum","mallorca.museum","manchester.museum","mansion.museum","mansions.museum","manx.museum","marburg.museum","maritime.museum","maritimo.museum","maryland.museum","marylhurst.museum","media.museum","medical.museum","medizinhistorisches.museum","meeres.museum","memorial.museum","mesaverde.museum","michigan.museum","midatlantic.museum","military.museum","mill.museum","miners.museum","mining.museum","minnesota.museum","missile.museum","missoula.museum","modern.museum","moma.museum","money.museum","monmouth.museum","monticello.museum","montreal.museum","moscow.museum","motorcycle.museum","muenchen.museum","muenster.museum","mulhouse.museum","muncie.museum","museet.museum","museumcenter.museum","museumvereniging.museum","music.museum","national.museum","nationalfirearms.museum","nationalheritage.museum","nativeamerican.museum","naturalhistory.museum","naturalhistorymuseum.museum","naturalsciences.museum","nature.museum","naturhistorisches.museum","natuurwetenschappen.museum","naumburg.museum","naval.museum","nebraska.museum","neues.museum","newhampshire.museum","newjersey.museum","newmexico.museum","newport.museum","newspaper.museum","newyork.museum","niepce.museum","norfolk.museum","north.museum","nrw.museum","nyc.museum","nyny.museum","oceanographic.museum","oceanographique.museum","omaha.museum","online.museum","ontario.museum","openair.museum","oregon.museum","oregontrail.museum","otago.museum","oxford.museum","pacific.museum","paderborn.museum","palace.museum","paleo.museum","palmsprings.museum","panama.museum","paris.museum","pasadena.museum","pharmacy.museum","philadelphia.museum","philadelphiaarea.museum","philately.museum","phoenix.museum","photography.museum","pilots.museum","pittsburgh.museum","planetarium.museum","plantation.museum","plants.museum","plaza.museum","portal.museum","portland.museum","portlligat.museum","posts-and-telecommunications.museum","preservation.museum","presidio.museum","press.museum","project.museum","public.museum","pubol.museum","quebec.museum","railroad.museum","railway.museum","research.museum","resistance.museum","riodejaneiro.museum","rochester.museum","rockart.museum","roma.museum","russia.museum","saintlouis.museum","salem.museum","salvadordali.museum","salzburg.museum","sandiego.museum","sanfrancisco.museum","santabarbara.museum","santacruz.museum","santafe.museum","saskatchewan.museum","satx.museum","savannahga.museum","schlesisches.museum","schoenbrunn.museum","schokoladen.museum","school.museum","schweiz.museum","science.museum","scienceandhistory.museum","scienceandindustry.museum","sciencecenter.museum","sciencecenters.museum","science-fiction.museum","sciencehistory.museum","sciences.museum","sciencesnaturelles.museum","scotland.museum","seaport.museum","settlement.museum","settlers.museum","shell.museum","sherbrooke.museum","sibenik.museum","silk.museum","ski.museum","skole.museum","society.museum","sologne.museum","soundandvision.museum","southcarolina.museum","southwest.museum","space.museum","spy.museum","square.museum","stadt.museum","stalbans.museum","starnberg.museum","state.museum","stateofdelaware.museum","station.museum","steam.museum","steiermark.museum","stjohn.museum","stockholm.museum","stpetersburg.museum","stuttgart.museum","suisse.museum","surgeonshall.museum","surrey.museum","svizzera.museum","sweden.museum","sydney.museum","tank.museum","tcm.museum","technology.museum","telekommunikation.museum","television.museum","texas.museum","textile.museum","theater.museum","time.museum","timekeeping.museum","topology.museum","torino.museum","touch.museum","town.museum","transport.museum","tree.museum","trolley.museum","trust.museum","trustee.museum","uhren.museum","ulm.museum","undersea.museum","university.museum","usa.museum","usantiques.museum","usarts.museum","uscountryestate.museum","usculture.museum","usdecorativearts.museum","usgarden.museum","ushistory.museum","ushuaia.museum","uslivinghistory.museum","utah.museum","uvic.museum","valley.museum","vantaa.museum","versailles.museum","viking.museum","village.museum","virginia.museum","virtual.museum","virtuel.museum","vlaanderen.museum","volkenkunde.museum","wales.museum","wallonie.museum","war.museum","washingtondc.museum","watchandclock.museum","watch-and-clock.museum","western.museum","westfalen.museum","whaling.museum","wildlife.museum","williamsburg.museum","windmill.museum","workshop.museum","york.museum","yorkshire.museum","yosemite.museum","youth.museum","zoological.museum","zoology.museum","ירושלים.museum","иком.museum","mv","aero.mv","biz.mv","com.mv","coop.mv","edu.mv","gov.mv","info.mv","int.mv","mil.mv","museum.mv","name.mv","net.mv","org.mv","pro.mv","mw","ac.mw","biz.mw","co.mw","com.mw","coop.mw","edu.mw","gov.mw","int.mw","museum.mw","net.mw","org.mw","mx","com.mx","org.mx","gob.mx","edu.mx","net.mx","my","biz.my","com.my","edu.my","gov.my","mil.my","name.my","net.my","org.my","mz","ac.mz","adv.mz","co.mz","edu.mz","gov.mz","mil.mz","net.mz","org.mz","na","info.na","pro.na","name.na","school.na","or.na","dr.na","us.na","mx.na","ca.na","in.na","cc.na","tv.na","ws.na","mobi.na","co.na","com.na","org.na","name","nc","asso.nc","nom.nc","ne","net","nf","com.nf","net.nf","per.nf","rec.nf","web.nf","arts.nf","firm.nf","info.nf","other.nf","store.nf","ng","com.ng","edu.ng","gov.ng","i.ng","mil.ng","mobi.ng","name.ng","net.ng","org.ng","sch.ng","ni","ac.ni","biz.ni","co.ni","com.ni","edu.ni","gob.ni","in.ni","info.ni","int.ni","mil.ni","net.ni","nom.ni","org.ni","web.ni","nl","no","fhs.no","vgs.no","fylkesbibl.no","folkebibl.no","museum.no","idrett.no","priv.no","mil.no","stat.no","dep.no","kommune.no","herad.no","aa.no","ah.no","bu.no","fm.no","hl.no","hm.no","jan-mayen.no","mr.no","nl.no","nt.no","of.no","ol.no","oslo.no","rl.no","sf.no","st.no","svalbard.no","tm.no","tr.no","va.no","vf.no","gs.aa.no","gs.ah.no","gs.bu.no","gs.fm.no","gs.hl.no","gs.hm.no","gs.jan-mayen.no","gs.mr.no","gs.nl.no","gs.nt.no","gs.of.no","gs.ol.no","gs.oslo.no","gs.rl.no","gs.sf.no","gs.st.no","gs.svalbard.no","gs.tm.no","gs.tr.no","gs.va.no","gs.vf.no","akrehamn.no","åkrehamn.no","algard.no","ålgård.no","arna.no","brumunddal.no","bryne.no","bronnoysund.no","brønnøysund.no","drobak.no","drøbak.no","egersund.no","fetsund.no","floro.no","florø.no","fredrikstad.no","hokksund.no","honefoss.no","hønefoss.no","jessheim.no","jorpeland.no","jørpeland.no","kirkenes.no","kopervik.no","krokstadelva.no","langevag.no","langevåg.no","leirvik.no","mjondalen.no","mjøndalen.no","mo-i-rana.no","mosjoen.no","mosjøen.no","nesoddtangen.no","orkanger.no","osoyro.no","osøyro.no","raholt.no","råholt.no","sandnessjoen.no","sandnessjøen.no","skedsmokorset.no","slattum.no","spjelkavik.no","stathelle.no","stavern.no","stjordalshalsen.no","stjørdalshalsen.no","tananger.no","tranby.no","vossevangen.no","afjord.no","åfjord.no","agdenes.no","al.no","ål.no","alesund.no","ålesund.no","alstahaug.no","alta.no","áltá.no","alaheadju.no","álaheadju.no","alvdal.no","amli.no","åmli.no","amot.no","åmot.no","andebu.no","andoy.no","andøy.no","andasuolo.no","ardal.no","årdal.no","aremark.no","arendal.no","ås.no","aseral.no","åseral.no","asker.no","askim.no","askvoll.no","askoy.no","askøy.no","asnes.no","åsnes.no","audnedaln.no","aukra.no","aure.no","aurland.no","aurskog-holand.no","aurskog-høland.no","austevoll.no","austrheim.no","averoy.no","averøy.no","balestrand.no","ballangen.no","balat.no","bálát.no","balsfjord.no","bahccavuotna.no","báhccavuotna.no","bamble.no","bardu.no","beardu.no","beiarn.no","bajddar.no","bájddar.no","baidar.no","báidár.no","berg.no","bergen.no","berlevag.no","berlevåg.no","bearalvahki.no","bearalváhki.no","bindal.no","birkenes.no","bjarkoy.no","bjarkøy.no","bjerkreim.no","bjugn.no","bodo.no","bodø.no","badaddja.no","bådåddjå.no","budejju.no","bokn.no","bremanger.no","bronnoy.no","brønnøy.no","bygland.no","bykle.no","barum.no","bærum.no","bo.telemark.no","bø.telemark.no","bo.nordland.no","bø.nordland.no","bievat.no","bievát.no","bomlo.no","bømlo.no","batsfjord.no","båtsfjord.no","bahcavuotna.no","báhcavuotna.no","dovre.no","drammen.no","drangedal.no","dyroy.no","dyrøy.no","donna.no","dønna.no","eid.no","eidfjord.no","eidsberg.no","eidskog.no","eidsvoll.no","eigersund.no","elverum.no","enebakk.no","engerdal.no","etne.no","etnedal.no","evenes.no","evenassi.no","evenášši.no","evje-og-hornnes.no","farsund.no","fauske.no","fuossko.no","fuoisku.no","fedje.no","fet.no","finnoy.no","finnøy.no","fitjar.no","fjaler.no","fjell.no","flakstad.no","flatanger.no","flekkefjord.no","flesberg.no","flora.no","fla.no","flå.no","folldal.no","forsand.no","fosnes.no","frei.no","frogn.no","froland.no","frosta.no","frana.no","fræna.no","froya.no","frøya.no","fusa.no","fyresdal.no","forde.no","førde.no","gamvik.no","gangaviika.no","gáŋgaviika.no","gaular.no","gausdal.no","gildeskal.no","gildeskål.no","giske.no","gjemnes.no","gjerdrum.no","gjerstad.no","gjesdal.no","gjovik.no","gjøvik.no","gloppen.no","gol.no","gran.no","grane.no","granvin.no","gratangen.no","grimstad.no","grong.no","kraanghke.no","kråanghke.no","grue.no","gulen.no","hadsel.no","halden.no","halsa.no","hamar.no","hamaroy.no","habmer.no","hábmer.no","hapmir.no","hápmir.no","hammerfest.no","hammarfeasta.no","hámmárfeasta.no","haram.no","hareid.no","harstad.no","hasvik.no","aknoluokta.no","ákŋoluokta.no","hattfjelldal.no","aarborte.no","haugesund.no","hemne.no","hemnes.no","hemsedal.no","heroy.more-og-romsdal.no","herøy.møre-og-romsdal.no","heroy.nordland.no","herøy.nordland.no","hitra.no","hjartdal.no","hjelmeland.no","hobol.no","hobøl.no","hof.no","hol.no","hole.no","holmestrand.no","holtalen.no","holtålen.no","hornindal.no","horten.no","hurdal.no","hurum.no","hvaler.no","hyllestad.no","hagebostad.no","hægebostad.no","hoyanger.no","høyanger.no","hoylandet.no","høylandet.no","ha.no","hå.no","ibestad.no","inderoy.no","inderøy.no","iveland.no","jevnaker.no","jondal.no","jolster.no","jølster.no","karasjok.no","karasjohka.no","kárášjohka.no","karlsoy.no","galsa.no","gálsá.no","karmoy.no","karmøy.no","kautokeino.no","guovdageaidnu.no","klepp.no","klabu.no","klæbu.no","kongsberg.no","kongsvinger.no","kragero.no","kragerø.no","kristiansand.no","kristiansund.no","krodsherad.no","krødsherad.no","kvalsund.no","rahkkeravju.no","ráhkkerávju.no","kvam.no","kvinesdal.no","kvinnherad.no","kviteseid.no","kvitsoy.no","kvitsøy.no","kvafjord.no","kvæfjord.no","giehtavuoatna.no","kvanangen.no","kvænangen.no","navuotna.no","návuotna.no","kafjord.no","kåfjord.no","gaivuotna.no","gáivuotna.no","larvik.no","lavangen.no","lavagis.no","loabat.no","loabát.no","lebesby.no","davvesiida.no","leikanger.no","leirfjord.no","leka.no","leksvik.no","lenvik.no","leangaviika.no","leaŋgaviika.no","lesja.no","levanger.no","lier.no","lierne.no","lillehammer.no","lillesand.no","lindesnes.no","lindas.no","lindås.no","lom.no","loppa.no","lahppi.no","láhppi.no","lund.no","lunner.no","luroy.no","lurøy.no","luster.no","lyngdal.no","lyngen.no","ivgu.no","lardal.no","lerdal.no","lærdal.no","lodingen.no","lødingen.no","lorenskog.no","lørenskog.no","loten.no","løten.no","malvik.no","masoy.no","måsøy.no","muosat.no","muosát.no","mandal.no","marker.no","marnardal.no","masfjorden.no","meland.no","meldal.no","melhus.no","meloy.no","meløy.no","meraker.no","meråker.no","moareke.no","moåreke.no","midsund.no","midtre-gauldal.no","modalen.no","modum.no","molde.no","moskenes.no","moss.no","mosvik.no","malselv.no","målselv.no","malatvuopmi.no","málatvuopmi.no","namdalseid.no","aejrie.no","namsos.no","namsskogan.no","naamesjevuemie.no","nååmesjevuemie.no","laakesvuemie.no","nannestad.no","narvik.no","narviika.no","naustdal.no","nedre-eiker.no","nes.akershus.no","nes.buskerud.no","nesna.no","nesodden.no","nesseby.no","unjarga.no","unjárga.no","nesset.no","nissedal.no","nittedal.no","nord-aurdal.no","nord-fron.no","nord-odal.no","norddal.no","nordkapp.no","davvenjarga.no","davvenjárga.no","nordre-land.no","nordreisa.no","raisa.no","ráisa.no","nore-og-uvdal.no","notodden.no","naroy.no","nærøy.no","notteroy.no","nøtterøy.no","odda.no","oksnes.no","øksnes.no","oppdal.no","oppegard.no","oppegård.no","orkdal.no","orland.no","ørland.no","orskog.no","ørskog.no","orsta.no","ørsta.no","os.hedmark.no","os.hordaland.no","osen.no","osteroy.no","osterøy.no","ostre-toten.no","østre-toten.no","overhalla.no","ovre-eiker.no","øvre-eiker.no","oyer.no","øyer.no","oygarden.no","øygarden.no","oystre-slidre.no","øystre-slidre.no","porsanger.no","porsangu.no","porsáŋgu.no","porsgrunn.no","radoy.no","radøy.no","rakkestad.no","rana.no","ruovat.no","randaberg.no","rauma.no","rendalen.no","rennebu.no","rennesoy.no","rennesøy.no","rindal.no","ringebu.no","ringerike.no","ringsaker.no","rissa.no","risor.no","risør.no","roan.no","rollag.no","rygge.no","ralingen.no","rælingen.no","rodoy.no","rødøy.no","romskog.no","rømskog.no","roros.no","røros.no","rost.no","røst.no","royken.no","røyken.no","royrvik.no","røyrvik.no","rade.no","råde.no","salangen.no","siellak.no","saltdal.no","salat.no","sálát.no","sálat.no","samnanger.no","sande.more-og-romsdal.no","sande.møre-og-romsdal.no","sande.vestfold.no","sandefjord.no","sandnes.no","sandoy.no","sandøy.no","sarpsborg.no","sauda.no","sauherad.no","sel.no","selbu.no","selje.no","seljord.no","sigdal.no","siljan.no","sirdal.no","skaun.no","skedsmo.no","ski.no","skien.no","skiptvet.no","skjervoy.no","skjervøy.no","skierva.no","skiervá.no","skjak.no","skjåk.no","skodje.no","skanland.no","skånland.no","skanit.no","skánit.no","smola.no","smøla.no","snillfjord.no","snasa.no","snåsa.no","snoasa.no","snaase.no","snåase.no","sogndal.no","sokndal.no","sola.no","solund.no","songdalen.no","sortland.no","spydeberg.no","stange.no","stavanger.no","steigen.no","steinkjer.no","stjordal.no","stjørdal.no","stokke.no","stor-elvdal.no","stord.no","stordal.no","storfjord.no","omasvuotna.no","strand.no","stranda.no","stryn.no","sula.no","suldal.no","sund.no","sunndal.no","surnadal.no","sveio.no","svelvik.no","sykkylven.no","sogne.no","søgne.no","somna.no","sømna.no","sondre-land.no","søndre-land.no","sor-aurdal.no","sør-aurdal.no","sor-fron.no","sør-fron.no","sor-odal.no","sør-odal.no","sor-varanger.no","sør-varanger.no","matta-varjjat.no","mátta-várjjat.no","sorfold.no","sørfold.no","sorreisa.no","sørreisa.no","sorum.no","sørum.no","tana.no","deatnu.no","time.no","tingvoll.no","tinn.no","tjeldsund.no","dielddanuorri.no","tjome.no","tjøme.no","tokke.no","tolga.no","torsken.no","tranoy.no","tranøy.no","tromso.no","tromsø.no","tromsa.no","romsa.no","trondheim.no","troandin.no","trysil.no","trana.no","træna.no","trogstad.no","trøgstad.no","tvedestrand.no","tydal.no","tynset.no","tysfjord.no","divtasvuodna.no","divttasvuotna.no","tysnes.no","tysvar.no","tysvær.no","tonsberg.no","tønsberg.no","ullensaker.no","ullensvang.no","ulvik.no","utsira.no","vadso.no","vadsø.no","cahcesuolo.no","čáhcesuolo.no","vaksdal.no","valle.no","vang.no","vanylven.no","vardo.no","vardø.no","varggat.no","várggát.no","vefsn.no","vaapste.no","vega.no","vegarshei.no","vegårshei.no","vennesla.no","verdal.no","verran.no","vestby.no","vestnes.no","vestre-slidre.no","vestre-toten.no","vestvagoy.no","vestvågøy.no","vevelstad.no","vik.no","vikna.no","vindafjord.no","volda.no","voss.no","varoy.no","værøy.no","vagan.no","vågan.no","voagat.no","vagsoy.no","vågsøy.no","vaga.no","vågå.no","valer.ostfold.no","våler.østfold.no","valer.hedmark.no","våler.hedmark.no","*.np","nr","biz.nr","info.nr","gov.nr","edu.nr","org.nr","net.nr","com.nr","nu","nz","ac.nz","co.nz","cri.nz","geek.nz","gen.nz","govt.nz","health.nz","iwi.nz","kiwi.nz","maori.nz","mil.nz","māori.nz","net.nz","org.nz","parliament.nz","school.nz","om","co.om","com.om","edu.om","gov.om","med.om","museum.om","net.om","org.om","pro.om","onion","org","pa","ac.pa","gob.pa","com.pa","org.pa","sld.pa","edu.pa","net.pa","ing.pa","abo.pa","med.pa","nom.pa","pe","edu.pe","gob.pe","nom.pe","mil.pe","org.pe","com.pe","net.pe","pf","com.pf","org.pf","edu.pf","*.pg","ph","com.ph","net.ph","org.ph","gov.ph","edu.ph","ngo.ph","mil.ph","i.ph","pk","com.pk","net.pk","edu.pk","org.pk","fam.pk","biz.pk","web.pk","gov.pk","gob.pk","gok.pk","gon.pk","gop.pk","gos.pk","info.pk","pl","com.pl","net.pl","org.pl","aid.pl","agro.pl","atm.pl","auto.pl","biz.pl","edu.pl","gmina.pl","gsm.pl","info.pl","mail.pl","miasta.pl","media.pl","mil.pl","nieruchomosci.pl","nom.pl","pc.pl","powiat.pl","priv.pl","realestate.pl","rel.pl","sex.pl","shop.pl","sklep.pl","sos.pl","szkola.pl","targi.pl","tm.pl","tourism.pl","travel.pl","turystyka.pl","gov.pl","ap.gov.pl","ic.gov.pl","is.gov.pl","us.gov.pl","kmpsp.gov.pl","kppsp.gov.pl","kwpsp.gov.pl","psp.gov.pl","wskr.gov.pl","kwp.gov.pl","mw.gov.pl","ug.gov.pl","um.gov.pl","umig.gov.pl","ugim.gov.pl","upow.gov.pl","uw.gov.pl","starostwo.gov.pl","pa.gov.pl","po.gov.pl","psse.gov.pl","pup.gov.pl","rzgw.gov.pl","sa.gov.pl","so.gov.pl","sr.gov.pl","wsa.gov.pl","sko.gov.pl","uzs.gov.pl","wiih.gov.pl","winb.gov.pl","pinb.gov.pl","wios.gov.pl","witd.gov.pl","wzmiuw.gov.pl","piw.gov.pl","wiw.gov.pl","griw.gov.pl","wif.gov.pl","oum.gov.pl","sdn.gov.pl","zp.gov.pl","uppo.gov.pl","mup.gov.pl","wuoz.gov.pl","konsulat.gov.pl","oirm.gov.pl","augustow.pl","babia-gora.pl","bedzin.pl","beskidy.pl","bialowieza.pl","bialystok.pl","bielawa.pl","bieszczady.pl","boleslawiec.pl","bydgoszcz.pl","bytom.pl","cieszyn.pl","czeladz.pl","czest.pl","dlugoleka.pl","elblag.pl","elk.pl","glogow.pl","gniezno.pl","gorlice.pl","grajewo.pl","ilawa.pl","jaworzno.pl","jelenia-gora.pl","jgora.pl","kalisz.pl","kazimierz-dolny.pl","karpacz.pl","kartuzy.pl","kaszuby.pl","katowice.pl","kepno.pl","ketrzyn.pl","klodzko.pl","kobierzyce.pl","kolobrzeg.pl","konin.pl","konskowola.pl","kutno.pl","lapy.pl","lebork.pl","legnica.pl","lezajsk.pl","limanowa.pl","lomza.pl","lowicz.pl","lubin.pl","lukow.pl","malbork.pl","malopolska.pl","mazowsze.pl","mazury.pl","mielec.pl","mielno.pl","mragowo.pl","naklo.pl","nowaruda.pl","nysa.pl","olawa.pl","olecko.pl","olkusz.pl","olsztyn.pl","opoczno.pl","opole.pl","ostroda.pl","ostroleka.pl","ostrowiec.pl","ostrowwlkp.pl","pila.pl","pisz.pl","podhale.pl","podlasie.pl","polkowice.pl","pomorze.pl","pomorskie.pl","prochowice.pl","pruszkow.pl","przeworsk.pl","pulawy.pl","radom.pl","rawa-maz.pl","rybnik.pl","rzeszow.pl","sanok.pl","sejny.pl","slask.pl","slupsk.pl","sosnowiec.pl","stalowa-wola.pl","skoczow.pl","starachowice.pl","stargard.pl","suwalki.pl","swidnica.pl","swiebodzin.pl","swinoujscie.pl","szczecin.pl","szczytno.pl","tarnobrzeg.pl","tgory.pl","turek.pl","tychy.pl","ustka.pl","walbrzych.pl","warmia.pl","warszawa.pl","waw.pl","wegrow.pl","wielun.pl","wlocl.pl","wloclawek.pl","wodzislaw.pl","wolomin.pl","wroclaw.pl","zachpomor.pl","zagan.pl","zarow.pl","zgora.pl","zgorzelec.pl","pm","pn","gov.pn","co.pn","org.pn","edu.pn","net.pn","post","pr","com.pr","net.pr","org.pr","gov.pr","edu.pr","isla.pr","pro.pr","biz.pr","info.pr","name.pr","est.pr","prof.pr","ac.pr","pro","aaa.pro","aca.pro","acct.pro","avocat.pro","bar.pro","cpa.pro","eng.pro","jur.pro","law.pro","med.pro","recht.pro","ps","edu.ps","gov.ps","sec.ps","plo.ps","com.ps","org.ps","net.ps","pt","net.pt","gov.pt","org.pt","edu.pt","int.pt","publ.pt","com.pt","nome.pt","pw","co.pw","ne.pw","or.pw","ed.pw","go.pw","belau.pw","py","com.py","coop.py","edu.py","gov.py","mil.py","net.py","org.py","qa","com.qa","edu.qa","gov.qa","mil.qa","name.qa","net.qa","org.qa","sch.qa","re","asso.re","com.re","nom.re","ro","arts.ro","com.ro","firm.ro","info.ro","nom.ro","nt.ro","org.ro","rec.ro","store.ro","tm.ro","www.ro","rs","ac.rs","co.rs","edu.rs","gov.rs","in.rs","org.rs","ru","rw","ac.rw","co.rw","coop.rw","gov.rw","mil.rw","net.rw","org.rw","sa","com.sa","net.sa","org.sa","gov.sa","med.sa","pub.sa","edu.sa","sch.sa","sb","com.sb","edu.sb","gov.sb","net.sb","org.sb","sc","com.sc","gov.sc","net.sc","org.sc","edu.sc","sd","com.sd","net.sd","org.sd","edu.sd","med.sd","tv.sd","gov.sd","info.sd","se","a.se","ac.se","b.se","bd.se","brand.se","c.se","d.se","e.se","f.se","fh.se","fhsk.se","fhv.se","g.se","h.se","i.se","k.se","komforb.se","kommunalforbund.se","komvux.se","l.se","lanbib.se","m.se","n.se","naturbruksgymn.se","o.se","org.se","p.se","parti.se","pp.se","press.se","r.se","s.se","t.se","tm.se","u.se","w.se","x.se","y.se","z.se","sg","com.sg","net.sg","org.sg","gov.sg","edu.sg","per.sg","sh","com.sh","net.sh","gov.sh","org.sh","mil.sh","si","sj","sk","sl","com.sl","net.sl","edu.sl","gov.sl","org.sl","sm","sn","art.sn","com.sn","edu.sn","gouv.sn","org.sn","perso.sn","univ.sn","so","com.so","edu.so","gov.so","me.so","net.so","org.so","sr","ss","biz.ss","com.ss","edu.ss","gov.ss","me.ss","net.ss","org.ss","sch.ss","st","co.st","com.st","consulado.st","edu.st","embaixada.st","mil.st","net.st","org.st","principe.st","saotome.st","store.st","su","sv","com.sv","edu.sv","gob.sv","org.sv","red.sv","sx","gov.sx","sy","edu.sy","gov.sy","net.sy","mil.sy","com.sy","org.sy","sz","co.sz","ac.sz","org.sz","tc","td","tel","tf","tg","th","ac.th","co.th","go.th","in.th","mi.th","net.th","or.th","tj","ac.tj","biz.tj","co.tj","com.tj","edu.tj","go.tj","gov.tj","int.tj","mil.tj","name.tj","net.tj","nic.tj","org.tj","test.tj","web.tj","tk","tl","gov.tl","tm","com.tm","co.tm","org.tm","net.tm","nom.tm","gov.tm","mil.tm","edu.tm","tn","com.tn","ens.tn","fin.tn","gov.tn","ind.tn","info.tn","intl.tn","mincom.tn","nat.tn","net.tn","org.tn","perso.tn","tourism.tn","to","com.to","gov.to","net.to","org.to","edu.to","mil.to","tr","av.tr","bbs.tr","bel.tr","biz.tr","com.tr","dr.tr","edu.tr","gen.tr","gov.tr","info.tr","mil.tr","k12.tr","kep.tr","name.tr","net.tr","org.tr","pol.tr","tel.tr","tsk.tr","tv.tr","web.tr","nc.tr","gov.nc.tr","tt","co.tt","com.tt","org.tt","net.tt","biz.tt","info.tt","pro.tt","int.tt","coop.tt","jobs.tt","mobi.tt","travel.tt","museum.tt","aero.tt","name.tt","gov.tt","edu.tt","tv","tw","edu.tw","gov.tw","mil.tw","com.tw","net.tw","org.tw","idv.tw","game.tw","ebiz.tw","club.tw","網路.tw","組織.tw","商業.tw","tz","ac.tz","co.tz","go.tz","hotel.tz","info.tz","me.tz","mil.tz","mobi.tz","ne.tz","or.tz","sc.tz","tv.tz","ua","com.ua","edu.ua","gov.ua","in.ua","net.ua","org.ua","cherkassy.ua","cherkasy.ua","chernigov.ua","chernihiv.ua","chernivtsi.ua","chernovtsy.ua","ck.ua","cn.ua","cr.ua","crimea.ua","cv.ua","dn.ua","dnepropetrovsk.ua","dnipropetrovsk.ua","donetsk.ua","dp.ua","if.ua","ivano-frankivsk.ua","kh.ua","kharkiv.ua","kharkov.ua","kherson.ua","khmelnitskiy.ua","khmelnytskyi.ua","kiev.ua","kirovograd.ua","km.ua","kr.ua","krym.ua","ks.ua","kv.ua","kyiv.ua","lg.ua","lt.ua","lugansk.ua","lutsk.ua","lv.ua","lviv.ua","mk.ua","mykolaiv.ua","nikolaev.ua","od.ua","odesa.ua","odessa.ua","pl.ua","poltava.ua","rivne.ua","rovno.ua","rv.ua","sb.ua","sebastopol.ua","sevastopol.ua","sm.ua","sumy.ua","te.ua","ternopil.ua","uz.ua","uzhgorod.ua","vinnica.ua","vinnytsia.ua","vn.ua","volyn.ua","yalta.ua","zaporizhzhe.ua","zaporizhzhia.ua","zhitomir.ua","zhytomyr.ua","zp.ua","zt.ua","ug","co.ug","or.ug","ac.ug","sc.ug","go.ug","ne.ug","com.ug","org.ug","uk","ac.uk","co.uk","gov.uk","ltd.uk","me.uk","net.uk","nhs.uk","org.uk","plc.uk","police.uk","*.sch.uk","us","dni.us","fed.us","isa.us","kids.us","nsn.us","ak.us","al.us","ar.us","as.us","az.us","ca.us","co.us","ct.us","dc.us","de.us","fl.us","ga.us","gu.us","hi.us","ia.us","id.us","il.us","in.us","ks.us","ky.us","la.us","ma.us","md.us","me.us","mi.us","mn.us","mo.us","ms.us","mt.us","nc.us","nd.us","ne.us","nh.us","nj.us","nm.us","nv.us","ny.us","oh.us","ok.us","or.us","pa.us","pr.us","ri.us","sc.us","sd.us","tn.us","tx.us","ut.us","vi.us","vt.us","va.us","wa.us","wi.us","wv.us","wy.us","k12.ak.us","k12.al.us","k12.ar.us","k12.as.us","k12.az.us","k12.ca.us","k12.co.us","k12.ct.us","k12.dc.us","k12.de.us","k12.fl.us","k12.ga.us","k12.gu.us","k12.ia.us","k12.id.us","k12.il.us","k12.in.us","k12.ks.us","k12.ky.us","k12.la.us","k12.ma.us","k12.md.us","k12.me.us","k12.mi.us","k12.mn.us","k12.mo.us","k12.ms.us","k12.mt.us","k12.nc.us","k12.ne.us","k12.nh.us","k12.nj.us","k12.nm.us","k12.nv.us","k12.ny.us","k12.oh.us","k12.ok.us","k12.or.us","k12.pa.us","k12.pr.us","k12.sc.us","k12.tn.us","k12.tx.us","k12.ut.us","k12.vi.us","k12.vt.us","k12.va.us","k12.wa.us","k12.wi.us","k12.wy.us","cc.ak.us","cc.al.us","cc.ar.us","cc.as.us","cc.az.us","cc.ca.us","cc.co.us","cc.ct.us","cc.dc.us","cc.de.us","cc.fl.us","cc.ga.us","cc.gu.us","cc.hi.us","cc.ia.us","cc.id.us","cc.il.us","cc.in.us","cc.ks.us","cc.ky.us","cc.la.us","cc.ma.us","cc.md.us","cc.me.us","cc.mi.us","cc.mn.us","cc.mo.us","cc.ms.us","cc.mt.us","cc.nc.us","cc.nd.us","cc.ne.us","cc.nh.us","cc.nj.us","cc.nm.us","cc.nv.us","cc.ny.us","cc.oh.us","cc.ok.us","cc.or.us","cc.pa.us","cc.pr.us","cc.ri.us","cc.sc.us","cc.sd.us","cc.tn.us","cc.tx.us","cc.ut.us","cc.vi.us","cc.vt.us","cc.va.us","cc.wa.us","cc.wi.us","cc.wv.us","cc.wy.us","lib.ak.us","lib.al.us","lib.ar.us","lib.as.us","lib.az.us","lib.ca.us","lib.co.us","lib.ct.us","lib.dc.us","lib.fl.us","lib.ga.us","lib.gu.us","lib.hi.us","lib.ia.us","lib.id.us","lib.il.us","lib.in.us","lib.ks.us","lib.ky.us","lib.la.us","lib.ma.us","lib.md.us","lib.me.us","lib.mi.us","lib.mn.us","lib.mo.us","lib.ms.us","lib.mt.us","lib.nc.us","lib.nd.us","lib.ne.us","lib.nh.us","lib.nj.us","lib.nm.us","lib.nv.us","lib.ny.us","lib.oh.us","lib.ok.us","lib.or.us","lib.pa.us","lib.pr.us","lib.ri.us","lib.sc.us","lib.sd.us","lib.tn.us","lib.tx.us","lib.ut.us","lib.vi.us","lib.vt.us","lib.va.us","lib.wa.us","lib.wi.us","lib.wy.us","pvt.k12.ma.us","chtr.k12.ma.us","paroch.k12.ma.us","ann-arbor.mi.us","cog.mi.us","dst.mi.us","eaton.mi.us","gen.mi.us","mus.mi.us","tec.mi.us","washtenaw.mi.us","uy","com.uy","edu.uy","gub.uy","mil.uy","net.uy","org.uy","uz","co.uz","com.uz","net.uz","org.uz","va","vc","com.vc","net.vc","org.vc","gov.vc","mil.vc","edu.vc","ve","arts.ve","bib.ve","co.ve","com.ve","e12.ve","edu.ve","firm.ve","gob.ve","gov.ve","info.ve","int.ve","mil.ve","net.ve","nom.ve","org.ve","rar.ve","rec.ve","store.ve","tec.ve","web.ve","vg","vi","co.vi","com.vi","k12.vi","net.vi","org.vi","vn","com.vn","net.vn","org.vn","edu.vn","gov.vn","int.vn","ac.vn","biz.vn","info.vn","name.vn","pro.vn","health.vn","vu","com.vu","edu.vu","net.vu","org.vu","wf","ws","com.ws","net.ws","org.ws","gov.ws","edu.ws","yt","امارات","հայ","বাংলা","бг","البحرين","бел","中国","中國","الجزائر","مصر","ею","ευ","موريتانيا","გე","ελ","香港","公司.香港","教育.香港","政府.香港","個人.香港","網絡.香港","組織.香港","ಭಾರತ","ଭାରତ","ভাৰত","भारतम्","भारोत","ڀارت","ഭാരതം","भारत","بارت","بھارت","భారత్","ભારત","ਭਾਰਤ","ভারত","இந்தியா","ایران","ايران","عراق","الاردن","한국","қаз","ລາວ","ලංකා","இலங்கை","المغرب","мкд","мон","澳門","澳门","مليسيا","عمان","پاکستان","پاكستان","فلسطين","срб","пр.срб","орг.срб","обр.срб","од.срб","упр.срб","ак.срб","рф","قطر","السعودية","السعودیة","السعودیۃ","السعوديه","سودان","新加坡","சிங்கப்பூர்","سورية","سوريا","ไทย","ศึกษา.ไทย","ธุรกิจ.ไทย","รัฐบาล.ไทย","ทหาร.ไทย","เน็ต.ไทย","องค์กร.ไทย","تونس","台灣","台湾","臺灣","укр","اليمن","xxx","ye","com.ye","edu.ye","gov.ye","net.ye","mil.ye","org.ye","ac.za","agric.za","alt.za","co.za","edu.za","gov.za","grondar.za","law.za","mil.za","net.za","ngo.za","nic.za","nis.za","nom.za","org.za","school.za","tm.za","web.za","zm","ac.zm","biz.zm","co.zm","com.zm","edu.zm","gov.zm","info.zm","mil.zm","net.zm","org.zm","sch.zm","zw","ac.zw","co.zw","gov.zw","mil.zw","org.zw","aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","academy","accenture","accountant","accountants","aco","actor","adac","ads","adult","aeg","aetna","afl","africa","agakhan","agency","aig","airbus","airforce","airtel","akdn","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","aol","apartments","app","apple","aquarelle","arab","aramco","archi","army","art","arte","asda","associates","athleta","attorney","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aws","axa","azure","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bbc","bbt","bbva","bcg","bcn","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bharti","bible","bid","bike","bing","bingo","bio","black","blackfriday","blockbuster","blog","bloomberg","blue","bms","bmw","bnpparibas","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","bradesco","bridgestone","broadway","broker","brother","brussels","bugatti","build","builders","business","buy","buzz","bzh","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","catering","catholic","cba","cbn","cbre","cbs","center","ceo","cern","cfa","cfd","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","coach","codes","coffee","college","cologne","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","corsica","country","coupon","coupons","courses","cpa","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cuisinella","cymru","cyou","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dnp","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","earth","eat","eco","edeka","education","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","ericsson","erni","esq","estate","etisalat","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","flickr","flights","flir","florist","flowers","fly","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gbiz","gdn","gea","gent","genting","george","ggee","gift","gifts","gives","giving","glass","gle","global","globo","gmail","gmbh","gmo","gmx","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","grainger","graphics","gratis","green","gripe","grocery","group","guardian","gucci","guge","guide","guitars","guru","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hkt","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hsbc","hughes","hyatt","hyundai","ibm","icbc","ice","icu","ieee","ifm","ikano","imamat","imdb","immo","immobilien","inc","industries","infiniti","ing","ink","institute","insurance","insure","international","intuit","investments","ipiranga","irish","ismaili","ist","istanbul","itau","itv","jaguar","java","jcb","jeep","jetzt","jewelry","jio","jll","jmp","jnj","joburg","jot","joy","jpmorgan","jprs","juegos","juniper","kaufen","kddi","kerryhotels","kerrylogistics","kerryproperties","kfh","kia","kids","kim","kinder","kindle","kitchen","kiwi","koeln","komatsu","kosher","kpmg","kpn","krd","kred","kuokgroup","kyoto","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","ltd","ltda","lundbeck","luxe","luxury","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mckinsey","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","miami","microsoft","mini","mint","mit","mitsubishi","mlb","mls","mma","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","msd","mtn","mtr","music","mutual","nab","nagoya","natura","navy","nba","nec","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nfl","ngo","nhk","nico","nike","nikon","ninja","nissan","nissay","nokia","northwesternmutual","norton","now","nowruz","nowtv","nra","nrw","ntt","nyc","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","omega","one","ong","onl","online","ooo","open","oracle","orange","organic","origins","osaka","otsuka","ott","ovh","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pet","pfizer","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","place","play","playstation","plumbing","plus","pnc","pohl","poker","politie","porn","pramerica","praxi","press","prime","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","pub","pwc","qpon","quebec","quest","racing","radio","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","rocher","rocks","rodeo","rogers","room","rsvp","rugby","ruhr","run","rwe","ryukyu","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sbi","sbs","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","silk","sina","singles","site","ski","skin","sky","skype","sling","smart","smile","sncf","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","srl","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","sucks","supplies","supply","support","surf","surgery","suzuki","swatch","swiss","sydney","systems","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tci","tdk","team","tech","technology","temasek","tennis","teva","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tjmaxx","tjx","tkmaxx","tmall","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tube","tui","tunes","tushu","tvs","ubank","ubs","unicom","university","uno","uol","ups","vacations","vana","vanguard","vegas","ventures","verisign","versicherung","vet","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vodka","volkswagen","volvo","vote","voting","voto","voyage","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wedding","weibo","weir","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","कॉम","セール","佛山","慈善","集团","在线","点看","คอม","八卦","موقع","公益","公司","香格里拉","网站","移动","我爱你","москва","католик","онлайн","сайт","联通","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","アマゾン","삼성","商标","商店","商城","дети","ポイント","新闻","家電","كوم","中文网","中信","娱乐","谷歌","電訊盈科","购物","クラウド","通販","网店","संगठन","餐厅","网络","ком","亚马逊","诺基亚","食品","飞利浦","手机","ارامكو","العليان","اتصالات","بازار","ابوظبي","كاثوليك","همراه","닷컴","政府","شبكة","بيتك","عرب","机构","组织机构","健康","招聘","рус","大拿","みんな","グーグル","世界","書籍","网址","닷넷","コム","天主教","游戏","vermögensberater","vermögensberatung","企业","信息","嘉里大酒店","嘉里","广东","政务","xyz","yachts","yahoo","yamaxun","yandex","yodobashi","yoga","yokohama","you","youtube","yun","zappos","zara","zero","zip","zone","zuerich","cc.ua","inf.ua","ltd.ua","611.to","graphox.us","*.devcdnaccesso.com","adobeaemcloud.com","*.dev.adobeaemcloud.com","hlx.live","adobeaemcloud.net","hlx.page","hlx3.page","beep.pl","airkitapps.com","airkitapps-au.com","airkitapps.eu","aivencloud.com","barsy.ca","*.compute.estate","*.alces.network","kasserver.com","altervista.org","alwaysdata.net","cloudfront.net","*.compute.amazonaws.com","*.compute-1.amazonaws.com","*.compute.amazonaws.com.cn","us-east-1.amazonaws.com","cn-north-1.eb.amazonaws.com.cn","cn-northwest-1.eb.amazonaws.com.cn","elasticbeanstalk.com","ap-northeast-1.elasticbeanstalk.com","ap-northeast-2.elasticbeanstalk.com","ap-northeast-3.elasticbeanstalk.com","ap-south-1.elasticbeanstalk.com","ap-southeast-1.elasticbeanstalk.com","ap-southeast-2.elasticbeanstalk.com","ca-central-1.elasticbeanstalk.com","eu-central-1.elasticbeanstalk.com","eu-west-1.elasticbeanstalk.com","eu-west-2.elasticbeanstalk.com","eu-west-3.elasticbeanstalk.com","sa-east-1.elasticbeanstalk.com","us-east-1.elasticbeanstalk.com","us-east-2.elasticbeanstalk.com","us-gov-west-1.elasticbeanstalk.com","us-west-1.elasticbeanstalk.com","us-west-2.elasticbeanstalk.com","*.elb.amazonaws.com","*.elb.amazonaws.com.cn","awsglobalaccelerator.com","s3.amazonaws.com","s3-ap-northeast-1.amazonaws.com","s3-ap-northeast-2.amazonaws.com","s3-ap-south-1.amazonaws.com","s3-ap-southeast-1.amazonaws.com","s3-ap-southeast-2.amazonaws.com","s3-ca-central-1.amazonaws.com","s3-eu-central-1.amazonaws.com","s3-eu-west-1.amazonaws.com","s3-eu-west-2.amazonaws.com","s3-eu-west-3.amazonaws.com","s3-external-1.amazonaws.com","s3-fips-us-gov-west-1.amazonaws.com","s3-sa-east-1.amazonaws.com","s3-us-gov-west-1.amazonaws.com","s3-us-east-2.amazonaws.com","s3-us-west-1.amazonaws.com","s3-us-west-2.amazonaws.com","s3.ap-northeast-2.amazonaws.com","s3.ap-south-1.amazonaws.com","s3.cn-north-1.amazonaws.com.cn","s3.ca-central-1.amazonaws.com","s3.eu-central-1.amazonaws.com","s3.eu-west-2.amazonaws.com","s3.eu-west-3.amazonaws.com","s3.us-east-2.amazonaws.com","s3.dualstack.ap-northeast-1.amazonaws.com","s3.dualstack.ap-northeast-2.amazonaws.com","s3.dualstack.ap-south-1.amazonaws.com","s3.dualstack.ap-southeast-1.amazonaws.com","s3.dualstack.ap-southeast-2.amazonaws.com","s3.dualstack.ca-central-1.amazonaws.com","s3.dualstack.eu-central-1.amazonaws.com","s3.dualstack.eu-west-1.amazonaws.com","s3.dualstack.eu-west-2.amazonaws.com","s3.dualstack.eu-west-3.amazonaws.com","s3.dualstack.sa-east-1.amazonaws.com","s3.dualstack.us-east-1.amazonaws.com","s3.dualstack.us-east-2.amazonaws.com","s3-website-us-east-1.amazonaws.com","s3-website-us-west-1.amazonaws.com","s3-website-us-west-2.amazonaws.com","s3-website-ap-northeast-1.amazonaws.com","s3-website-ap-southeast-1.amazonaws.com","s3-website-ap-southeast-2.amazonaws.com","s3-website-eu-west-1.amazonaws.com","s3-website-sa-east-1.amazonaws.com","s3-website.ap-northeast-2.amazonaws.com","s3-website.ap-south-1.amazonaws.com","s3-website.ca-central-1.amazonaws.com","s3-website.eu-central-1.amazonaws.com","s3-website.eu-west-2.amazonaws.com","s3-website.eu-west-3.amazonaws.com","s3-website.us-east-2.amazonaws.com","t3l3p0rt.net","tele.amune.org","apigee.io","siiites.com","appspacehosted.com","appspaceusercontent.com","appudo.net","on-aptible.com","user.aseinet.ne.jp","gv.vc","d.gv.vc","user.party.eus","pimienta.org","poivron.org","potager.org","sweetpepper.org","myasustor.com","cdn.prod.atlassian-dev.net","translated.page","myfritz.net","onavstack.net","*.awdev.ca","*.advisor.ws","ecommerce-shop.pl","b-data.io","backplaneapp.io","balena-devices.com","rs.ba","*.banzai.cloud","app.banzaicloud.io","*.backyards.banzaicloud.io","base.ec","official.ec","buyshop.jp","fashionstore.jp","handcrafted.jp","kawaiishop.jp","supersale.jp","theshop.jp","shopselect.net","base.shop","*.beget.app","betainabox.com","bnr.la","bitbucket.io","blackbaudcdn.net","of.je","bluebite.io","boomla.net","boutir.com","boxfuse.io","square7.ch","bplaced.com","bplaced.de","square7.de","bplaced.net","square7.net","shop.brendly.rs","browsersafetymark.io","uk0.bigv.io","dh.bytemark.co.uk","vm.bytemark.co.uk","cafjs.com","mycd.eu","drr.ac","uwu.ai","carrd.co","crd.co","ju.mp","ae.org","br.com","cn.com","com.de","com.se","de.com","eu.com","gb.net","hu.net","jp.net","jpn.com","mex.com","ru.com","sa.com","se.net","uk.com","uk.net","us.com","za.bz","za.com","ar.com","hu.com","kr.com","no.com","qc.com","uy.com","africa.com","gr.com","in.net","web.in","us.org","co.com","aus.basketball","nz.basketball","radio.am","radio.fm","c.la","certmgr.org","cx.ua","discourse.group","discourse.team","cleverapps.io","clerk.app","clerkstage.app","*.lcl.dev","*.lclstage.dev","*.stg.dev","*.stgstage.dev","clickrising.net","c66.me","cloud66.ws","cloud66.zone","jdevcloud.com","wpdevcloud.com","cloudaccess.host","freesite.host","cloudaccess.net","cloudcontrolled.com","cloudcontrolapp.com","*.cloudera.site","pages.dev","trycloudflare.com","workers.dev","wnext.app","co.ca","*.otap.co","co.cz","c.cdn77.org","cdn77-ssl.net","r.cdn77.net","rsc.cdn77.org","ssl.origin.cdn77-secure.org","cloudns.asia","cloudns.biz","cloudns.club","cloudns.cc","cloudns.eu","cloudns.in","cloudns.info","cloudns.org","cloudns.pro","cloudns.pw","cloudns.us","cnpy.gdn","codeberg.page","co.nl","co.no","webhosting.be","hosting-cluster.nl","ac.ru","edu.ru","gov.ru","int.ru","mil.ru","test.ru","dyn.cosidns.de","dynamisches-dns.de","dnsupdater.de","internet-dns.de","l-o-g-i-n.de","dynamic-dns.info","feste-ip.net","knx-server.net","static-access.net","realm.cz","*.cryptonomic.net","cupcake.is","curv.dev","*.customer-oci.com","*.oci.customer-oci.com","*.ocp.customer-oci.com","*.ocs.customer-oci.com","cyon.link","cyon.site","fnwk.site","folionetwork.site","platform0.app","daplie.me","localhost.daplie.me","dattolocal.com","dattorelay.com","dattoweb.com","mydatto.com","dattolocal.net","mydatto.net","biz.dk","co.dk","firm.dk","reg.dk","store.dk","dyndns.dappnode.io","*.dapps.earth","*.bzz.dapps.earth","builtwithdark.com","demo.datadetect.com","instance.datadetect.com","edgestack.me","ddns5.com","debian.net","deno.dev","deno-staging.dev","dedyn.io","deta.app","deta.dev","*.rss.my.id","*.diher.solutions","discordsays.com","discordsez.com","jozi.biz","dnshome.de","online.th","shop.th","drayddns.com","shoparena.pl","dreamhosters.com","mydrobo.com","drud.io","drud.us","duckdns.org","bip.sh","bitbridge.net","dy.fi","tunk.org","dyndns-at-home.com","dyndns-at-work.com","dyndns-blog.com","dyndns-free.com","dyndns-home.com","dyndns-ip.com","dyndns-mail.com","dyndns-office.com","dyndns-pics.com","dyndns-remote.com","dyndns-server.com","dyndns-web.com","dyndns-wiki.com","dyndns-work.com","dyndns.biz","dyndns.info","dyndns.org","dyndns.tv","at-band-camp.net","ath.cx","barrel-of-knowledge.info","barrell-of-knowledge.info","better-than.tv","blogdns.com","blogdns.net","blogdns.org","blogsite.org","boldlygoingnowhere.org","broke-it.net","buyshouses.net","cechire.com","dnsalias.com","dnsalias.net","dnsalias.org","dnsdojo.com","dnsdojo.net","dnsdojo.org","does-it.net","doesntexist.com","doesntexist.org","dontexist.com","dontexist.net","dontexist.org","doomdns.com","doomdns.org","dvrdns.org","dyn-o-saur.com","dynalias.com","dynalias.net","dynalias.org","dynathome.net","dyndns.ws","endofinternet.net","endofinternet.org","endoftheinternet.org","est-a-la-maison.com","est-a-la-masion.com","est-le-patron.com","est-mon-blogueur.com","for-better.biz","for-more.biz","for-our.info","for-some.biz","for-the.biz","forgot.her.name","forgot.his.name","from-ak.com","from-al.com","from-ar.com","from-az.net","from-ca.com","from-co.net","from-ct.com","from-dc.com","from-de.com","from-fl.com","from-ga.com","from-hi.com","from-ia.com","from-id.com","from-il.com","from-in.com","from-ks.com","from-ky.com","from-la.net","from-ma.com","from-md.com","from-me.org","from-mi.com","from-mn.com","from-mo.com","from-ms.com","from-mt.com","from-nc.com","from-nd.com","from-ne.com","from-nh.com","from-nj.com","from-nm.com","from-nv.com","from-ny.net","from-oh.com","from-ok.com","from-or.com","from-pa.com","from-pr.com","from-ri.com","from-sc.com","from-sd.com","from-tn.com","from-tx.com","from-ut.com","from-va.com","from-vt.com","from-wa.com","from-wi.com","from-wv.com","from-wy.com","ftpaccess.cc","fuettertdasnetz.de","game-host.org","game-server.cc","getmyip.com","gets-it.net","go.dyndns.org","gotdns.com","gotdns.org","groks-the.info","groks-this.info","ham-radio-op.net","here-for-more.info","hobby-site.com","hobby-site.org","home.dyndns.org","homedns.org","homeftp.net","homeftp.org","homeip.net","homelinux.com","homelinux.net","homelinux.org","homeunix.com","homeunix.net","homeunix.org","iamallama.com","in-the-band.net","is-a-anarchist.com","is-a-blogger.com","is-a-bookkeeper.com","is-a-bruinsfan.org","is-a-bulls-fan.com","is-a-candidate.org","is-a-caterer.com","is-a-celticsfan.org","is-a-chef.com","is-a-chef.net","is-a-chef.org","is-a-conservative.com","is-a-cpa.com","is-a-cubicle-slave.com","is-a-democrat.com","is-a-designer.com","is-a-doctor.com","is-a-financialadvisor.com","is-a-geek.com","is-a-geek.net","is-a-geek.org","is-a-green.com","is-a-guru.com","is-a-hard-worker.com","is-a-hunter.com","is-a-knight.org","is-a-landscaper.com","is-a-lawyer.com","is-a-liberal.com","is-a-libertarian.com","is-a-linux-user.org","is-a-llama.com","is-a-musician.com","is-a-nascarfan.com","is-a-nurse.com","is-a-painter.com","is-a-patsfan.org","is-a-personaltrainer.com","is-a-photographer.com","is-a-player.com","is-a-republican.com","is-a-rockstar.com","is-a-socialist.com","is-a-soxfan.org","is-a-student.com","is-a-teacher.com","is-a-techie.com","is-a-therapist.com","is-an-accountant.com","is-an-actor.com","is-an-actress.com","is-an-anarchist.com","is-an-artist.com","is-an-engineer.com","is-an-entertainer.com","is-by.us","is-certified.com","is-found.org","is-gone.com","is-into-anime.com","is-into-cars.com","is-into-cartoons.com","is-into-games.com","is-leet.com","is-lost.org","is-not-certified.com","is-saved.org","is-slick.com","is-uberleet.com","is-very-bad.org","is-very-evil.org","is-very-good.org","is-very-nice.org","is-very-sweet.org","is-with-theband.com","isa-geek.com","isa-geek.net","isa-geek.org","isa-hockeynut.com","issmarterthanyou.com","isteingeek.de","istmein.de","kicks-ass.net","kicks-ass.org","knowsitall.info","land-4-sale.us","lebtimnetz.de","leitungsen.de","likes-pie.com","likescandy.com","merseine.nu","mine.nu","misconfused.org","mypets.ws","myphotos.cc","neat-url.com","office-on-the.net","on-the-web.tv","podzone.net","podzone.org","readmyblog.org","saves-the-whales.com","scrapper-site.net","scrapping.cc","selfip.biz","selfip.com","selfip.info","selfip.net","selfip.org","sells-for-less.com","sells-for-u.com","sells-it.net","sellsyourhome.org","servebbs.com","servebbs.net","servebbs.org","serveftp.net","serveftp.org","servegame.org","shacknet.nu","simple-url.com","space-to-rent.com","stuff-4-sale.org","stuff-4-sale.us","teaches-yoga.com","thruhere.net","traeumtgerade.de","webhop.biz","webhop.info","webhop.net","webhop.org","worse-than.tv","writesthisblog.com","ddnss.de","dyn.ddnss.de","dyndns.ddnss.de","dyndns1.de","dyn-ip24.de","home-webserver.de","dyn.home-webserver.de","myhome-server.de","ddnss.org","definima.net","definima.io","ondigitalocean.app","*.digitaloceanspaces.com","bci.dnstrace.pro","ddnsfree.com","ddnsgeek.com","giize.com","gleeze.com","kozow.com","loseyourip.com","ooguy.com","theworkpc.com","casacam.net","dynu.net","accesscam.org","camdvr.org","freeddns.org","mywire.org","webredirect.org","myddns.rocks","blogsite.xyz","dynv6.net","e4.cz","eero.online","eero-stage.online","elementor.cloud","elementor.cool","en-root.fr","mytuleap.com","tuleap-partners.com","encr.app","encoreapi.com","onred.one","staging.onred.one","eu.encoway.cloud","eu.org","al.eu.org","asso.eu.org","at.eu.org","au.eu.org","be.eu.org","bg.eu.org","ca.eu.org","cd.eu.org","ch.eu.org","cn.eu.org","cy.eu.org","cz.eu.org","de.eu.org","dk.eu.org","edu.eu.org","ee.eu.org","es.eu.org","fi.eu.org","fr.eu.org","gr.eu.org","hr.eu.org","hu.eu.org","ie.eu.org","il.eu.org","in.eu.org","int.eu.org","is.eu.org","it.eu.org","jp.eu.org","kr.eu.org","lt.eu.org","lu.eu.org","lv.eu.org","mc.eu.org","me.eu.org","mk.eu.org","mt.eu.org","my.eu.org","net.eu.org","ng.eu.org","nl.eu.org","no.eu.org","nz.eu.org","paris.eu.org","pl.eu.org","pt.eu.org","q-a.eu.org","ro.eu.org","ru.eu.org","se.eu.org","si.eu.org","sk.eu.org","tr.eu.org","uk.eu.org","us.eu.org","eurodir.ru","eu-1.evennode.com","eu-2.evennode.com","eu-3.evennode.com","eu-4.evennode.com","us-1.evennode.com","us-2.evennode.com","us-3.evennode.com","us-4.evennode.com","twmail.cc","twmail.net","twmail.org","mymailer.com.tw","url.tw","onfabrica.com","apps.fbsbx.com","ru.net","adygeya.ru","bashkiria.ru","bir.ru","cbg.ru","com.ru","dagestan.ru","grozny.ru","kalmykia.ru","kustanai.ru","marine.ru","mordovia.ru","msk.ru","mytis.ru","nalchik.ru","nov.ru","pyatigorsk.ru","spb.ru","vladikavkaz.ru","vladimir.ru","abkhazia.su","adygeya.su","aktyubinsk.su","arkhangelsk.su","armenia.su","ashgabad.su","azerbaijan.su","balashov.su","bashkiria.su","bryansk.su","bukhara.su","chimkent.su","dagestan.su","east-kazakhstan.su","exnet.su","georgia.su","grozny.su","ivanovo.su","jambyl.su","kalmykia.su","kaluga.su","karacol.su","karaganda.su","karelia.su","khakassia.su","krasnodar.su","kurgan.su","kustanai.su","lenug.su","mangyshlak.su","mordovia.su","msk.su","murmansk.su","nalchik.su","navoi.su","north-kazakhstan.su","nov.su","obninsk.su","penza.su","pokrovsk.su","sochi.su","spb.su","tashkent.su","termez.su","togliatti.su","troitsk.su","tselinograd.su","tula.su","tuva.su","vladikavkaz.su","vladimir.su","vologda.su","channelsdvr.net","u.channelsdvr.net","edgecompute.app","fastly-terrarium.com","fastlylb.net","map.fastlylb.net","freetls.fastly.net","map.fastly.net","a.prod.fastly.net","global.prod.fastly.net","a.ssl.fastly.net","b.ssl.fastly.net","global.ssl.fastly.net","fastvps-server.com","fastvps.host","myfast.host","fastvps.site","myfast.space","fedorainfracloud.org","fedorapeople.org","cloud.fedoraproject.org","app.os.fedoraproject.org","app.os.stg.fedoraproject.org","conn.uk","copro.uk","hosp.uk","mydobiss.com","fh-muenster.io","filegear.me","filegear-au.me","filegear-de.me","filegear-gb.me","filegear-ie.me","filegear-jp.me","filegear-sg.me","firebaseapp.com","fireweb.app","flap.id","onflashdrive.app","fldrv.com","fly.dev","edgeapp.net","shw.io","flynnhosting.net","forgeblocks.com","id.forgerock.io","framer.app","framercanvas.com","*.frusky.de","ravpage.co.il","0e.vc","freebox-os.com","freeboxos.com","fbx-os.fr","fbxos.fr","freebox-os.fr","freeboxos.fr","freedesktop.org","freemyip.com","wien.funkfeuer.at","*.futurecms.at","*.ex.futurecms.at","*.in.futurecms.at","futurehosting.at","futuremailing.at","*.ex.ortsinfo.at","*.kunden.ortsinfo.at","*.statics.cloud","independent-commission.uk","independent-inquest.uk","independent-inquiry.uk","independent-panel.uk","independent-review.uk","public-inquiry.uk","royal-commission.uk","campaign.gov.uk","service.gov.uk","api.gov.uk","gehirn.ne.jp","usercontent.jp","gentapps.com","gentlentapis.com","lab.ms","cdn-edges.net","ghost.io","gsj.bz","githubusercontent.com","githubpreview.dev","github.io","gitlab.io","gitapp.si","gitpage.si","glitch.me","nog.community","co.ro","shop.ro","lolipop.io","angry.jp","babyblue.jp","babymilk.jp","backdrop.jp","bambina.jp","bitter.jp","blush.jp","boo.jp","boy.jp","boyfriend.jp","but.jp","candypop.jp","capoo.jp","catfood.jp","cheap.jp","chicappa.jp","chillout.jp","chips.jp","chowder.jp","chu.jp","ciao.jp","cocotte.jp","coolblog.jp","cranky.jp","cutegirl.jp","daa.jp","deca.jp","deci.jp","digick.jp","egoism.jp","fakefur.jp","fem.jp","flier.jp","floppy.jp","fool.jp","frenchkiss.jp","girlfriend.jp","girly.jp","gloomy.jp","gonna.jp","greater.jp","hacca.jp","heavy.jp","her.jp","hiho.jp","hippy.jp","holy.jp","hungry.jp","icurus.jp","itigo.jp","jellybean.jp","kikirara.jp","kill.jp","kilo.jp","kuron.jp","littlestar.jp","lolipopmc.jp","lolitapunk.jp","lomo.jp","lovepop.jp","lovesick.jp","main.jp","mods.jp","mond.jp","mongolian.jp","moo.jp","namaste.jp","nikita.jp","nobushi.jp","noor.jp","oops.jp","parallel.jp","parasite.jp","pecori.jp","peewee.jp","penne.jp","pepper.jp","perma.jp","pigboat.jp","pinoko.jp","punyu.jp","pupu.jp","pussycat.jp","pya.jp","raindrop.jp","readymade.jp","sadist.jp","schoolbus.jp","secret.jp","staba.jp","stripper.jp","sub.jp","sunnyday.jp","thick.jp","tonkotsu.jp","under.jp","upper.jp","velvet.jp","verse.jp","versus.jp","vivian.jp","watson.jp","weblike.jp","whitesnow.jp","zombie.jp","heteml.net","cloudapps.digital","london.cloudapps.digital","pymnt.uk","homeoffice.gov.uk","ro.im","goip.de","run.app","a.run.app","web.app","*.0emm.com","appspot.com","*.r.appspot.com","codespot.com","googleapis.com","googlecode.com","pagespeedmobilizer.com","publishproxy.com","withgoogle.com","withyoutube.com","*.gateway.dev","cloud.goog","translate.goog","*.usercontent.goog","cloudfunctions.net","blogspot.ae","blogspot.al","blogspot.am","blogspot.ba","blogspot.be","blogspot.bg","blogspot.bj","blogspot.ca","blogspot.cf","blogspot.ch","blogspot.cl","blogspot.co.at","blogspot.co.id","blogspot.co.il","blogspot.co.ke","blogspot.co.nz","blogspot.co.uk","blogspot.co.za","blogspot.com","blogspot.com.ar","blogspot.com.au","blogspot.com.br","blogspot.com.by","blogspot.com.co","blogspot.com.cy","blogspot.com.ee","blogspot.com.eg","blogspot.com.es","blogspot.com.mt","blogspot.com.ng","blogspot.com.tr","blogspot.com.uy","blogspot.cv","blogspot.cz","blogspot.de","blogspot.dk","blogspot.fi","blogspot.fr","blogspot.gr","blogspot.hk","blogspot.hr","blogspot.hu","blogspot.ie","blogspot.in","blogspot.is","blogspot.it","blogspot.jp","blogspot.kr","blogspot.li","blogspot.lt","blogspot.lu","blogspot.md","blogspot.mk","blogspot.mr","blogspot.mx","blogspot.my","blogspot.nl","blogspot.no","blogspot.pe","blogspot.pt","blogspot.qa","blogspot.re","blogspot.ro","blogspot.rs","blogspot.ru","blogspot.se","blogspot.sg","blogspot.si","blogspot.sk","blogspot.sn","blogspot.td","blogspot.tw","blogspot.ug","blogspot.vn","goupile.fr","gov.nl","awsmppl.com","günstigbestellen.de","günstigliefern.de","fin.ci","free.hr","caa.li","ua.rs","conf.se","hs.zone","hs.run","hashbang.sh","hasura.app","hasura-app.io","pages.it.hs-heilbronn.de","hepforge.org","herokuapp.com","herokussl.com","ravendb.cloud","myravendb.com","ravendb.community","ravendb.me","development.run","ravendb.run","homesklep.pl","secaas.hk","hoplix.shop","orx.biz","biz.gl","col.ng","firm.ng","gen.ng","ltd.ng","ngo.ng","edu.scot","sch.so","hostyhosting.io","häkkinen.fi","*.moonscale.io","moonscale.net","iki.fi","ibxos.it","iliadboxos.it","impertrixcdn.com","impertrix.com","smushcdn.com","wphostedmail.com","wpmucdn.com","tempurl.host","wpmudev.host","dyn-berlin.de","in-berlin.de","in-brb.de","in-butter.de","in-dsl.de","in-dsl.net","in-dsl.org","in-vpn.de","in-vpn.net","in-vpn.org","biz.at","info.at","info.cx","ac.leg.br","al.leg.br","am.leg.br","ap.leg.br","ba.leg.br","ce.leg.br","df.leg.br","es.leg.br","go.leg.br","ma.leg.br","mg.leg.br","ms.leg.br","mt.leg.br","pa.leg.br","pb.leg.br","pe.leg.br","pi.leg.br","pr.leg.br","rj.leg.br","rn.leg.br","ro.leg.br","rr.leg.br","rs.leg.br","sc.leg.br","se.leg.br","sp.leg.br","to.leg.br","pixolino.com","na4u.ru","iopsys.se","ipifony.net","iservschule.de","mein-iserv.de","schulplattform.de","schulserver.de","test-iserv.de","iserv.dev","iobb.net","mel.cloudlets.com.au","cloud.interhostsolutions.be","users.scale.virtualcloud.com.br","mycloud.by","alp1.ae.flow.ch","appengine.flow.ch","es-1.axarnet.cloud","diadem.cloud","vip.jelastic.cloud","jele.cloud","it1.eur.aruba.jenv-aruba.cloud","it1.jenv-aruba.cloud","keliweb.cloud","cs.keliweb.cloud","oxa.cloud","tn.oxa.cloud","uk.oxa.cloud","primetel.cloud","uk.primetel.cloud","ca.reclaim.cloud","uk.reclaim.cloud","us.reclaim.cloud","ch.trendhosting.cloud","de.trendhosting.cloud","jele.club","amscompute.com","clicketcloud.com","dopaas.com","hidora.com","paas.hosted-by-previder.com","rag-cloud.hosteur.com","rag-cloud-ch.hosteur.com","jcloud.ik-server.com","jcloud-ver-jpc.ik-server.com","demo.jelastic.com","kilatiron.com","paas.massivegrid.com","jed.wafaicloud.com","lon.wafaicloud.com","ryd.wafaicloud.com","j.scaleforce.com.cy","jelastic.dogado.eu","fi.cloudplatform.fi","demo.datacenter.fi","paas.datacenter.fi","jele.host","mircloud.host","paas.beebyte.io","sekd1.beebyteapp.io","jele.io","cloud-fr1.unispace.io","jc.neen.it","cloud.jelastic.open.tim.it","jcloud.kz","upaas.kazteleport.kz","cloudjiffy.net","fra1-de.cloudjiffy.net","west1-us.cloudjiffy.net","jls-sto1.elastx.net","jls-sto2.elastx.net","jls-sto3.elastx.net","faststacks.net","fr-1.paas.massivegrid.net","lon-1.paas.massivegrid.net","lon-2.paas.massivegrid.net","ny-1.paas.massivegrid.net","ny-2.paas.massivegrid.net","sg-1.paas.massivegrid.net","jelastic.saveincloud.net","nordeste-idc.saveincloud.net","j.scaleforce.net","jelastic.tsukaeru.net","sdscloud.pl","unicloud.pl","mircloud.ru","jelastic.regruhosting.ru","enscaled.sg","jele.site","jelastic.team","orangecloud.tn","j.layershift.co.uk","phx.enscaled.us","mircloud.us","myjino.ru","*.hosting.myjino.ru","*.landing.myjino.ru","*.spectrum.myjino.ru","*.vps.myjino.ru","jotelulu.cloud","*.triton.zone","*.cns.joyent.com","js.org","kaas.gg","khplay.nl","ktistory.com","kapsi.fi","keymachine.de","kinghost.net","uni5.net","knightpoint.systems","koobin.events","oya.to","kuleuven.cloud","ezproxy.kuleuven.be","co.krd","edu.krd","krellian.net","webthings.io","git-repos.de","lcube-server.de","svn-repos.de","leadpages.co","lpages.co","lpusercontent.com","lelux.site","co.business","co.education","co.events","co.financial","co.network","co.place","co.technology","app.lmpm.com","linkyard.cloud","linkyard-cloud.ch","members.linode.com","*.nodebalancer.linode.com","*.linodeobjects.com","ip.linodeusercontent.com","we.bs","*.user.localcert.dev","localzone.xyz","loginline.app","loginline.dev","loginline.io","loginline.services","loginline.site","servers.run","lohmus.me","krasnik.pl","leczna.pl","lubartow.pl","lublin.pl","poniatowa.pl","swidnik.pl","glug.org.uk","lug.org.uk","lugs.org.uk","barsy.bg","barsy.co.uk","barsyonline.co.uk","barsycenter.com","barsyonline.com","barsy.club","barsy.de","barsy.eu","barsy.in","barsy.info","barsy.io","barsy.me","barsy.menu","barsy.mobi","barsy.net","barsy.online","barsy.org","barsy.pro","barsy.pub","barsy.ro","barsy.shop","barsy.site","barsy.support","barsy.uk","*.magentosite.cloud","mayfirst.info","mayfirst.org","hb.cldmail.ru","cn.vu","mazeplay.com","mcpe.me","mcdir.me","mcdir.ru","mcpre.ru","vps.mcdir.ru","mediatech.by","mediatech.dev","hra.health","miniserver.com","memset.net","messerli.app","*.cloud.metacentrum.cz","custom.metacentrum.cz","flt.cloud.muni.cz","usr.cloud.muni.cz","meteorapp.com","eu.meteorapp.com","co.pl","*.azurecontainer.io","azurewebsites.net","azure-mobile.net","cloudapp.net","azurestaticapps.net","1.azurestaticapps.net","centralus.azurestaticapps.net","eastasia.azurestaticapps.net","eastus2.azurestaticapps.net","westeurope.azurestaticapps.net","westus2.azurestaticapps.net","csx.cc","mintere.site","forte.id","mozilla-iot.org","bmoattachments.org","net.ru","org.ru","pp.ru","hostedpi.com","customer.mythic-beasts.com","caracal.mythic-beasts.com","fentiger.mythic-beasts.com","lynx.mythic-beasts.com","ocelot.mythic-beasts.com","oncilla.mythic-beasts.com","onza.mythic-beasts.com","sphinx.mythic-beasts.com","vs.mythic-beasts.com","x.mythic-beasts.com","yali.mythic-beasts.com","cust.retrosnub.co.uk","ui.nabu.casa","pony.club","of.fashion","in.london","of.london","from.marketing","with.marketing","for.men","repair.men","and.mom","for.mom","for.one","under.one","for.sale","that.win","from.work","to.work","cloud.nospamproxy.com","netlify.app","4u.com","ngrok.io","nh-serv.co.uk","nfshost.com","*.developer.app","noop.app","*.northflank.app","*.build.run","*.code.run","*.database.run","*.migration.run","noticeable.news","dnsking.ch","mypi.co","n4t.co","001www.com","ddnslive.com","myiphost.com","forumz.info","16-b.it","32-b.it","64-b.it","soundcast.me","tcp4.me","dnsup.net","hicam.net","now-dns.net","ownip.net","vpndns.net","dynserv.org","now-dns.org","x443.pw","now-dns.top","ntdll.top","freeddns.us","crafting.xyz","zapto.xyz","nsupdate.info","nerdpol.ovh","blogsyte.com","brasilia.me","cable-modem.org","ciscofreak.com","collegefan.org","couchpotatofries.org","damnserver.com","ddns.me","ditchyourip.com","dnsfor.me","dnsiskinky.com","dvrcam.info","dynns.com","eating-organic.net","fantasyleague.cc","geekgalaxy.com","golffan.us","health-carereform.com","homesecuritymac.com","homesecuritypc.com","hopto.me","ilovecollege.info","loginto.me","mlbfan.org","mmafan.biz","myactivedirectory.com","mydissent.net","myeffect.net","mymediapc.net","mypsx.net","mysecuritycamera.com","mysecuritycamera.net","mysecuritycamera.org","net-freaks.com","nflfan.org","nhlfan.net","no-ip.ca","no-ip.co.uk","no-ip.net","noip.us","onthewifi.com","pgafan.net","point2this.com","pointto.us","privatizehealthinsurance.net","quicksytes.com","read-books.org","securitytactics.com","serveexchange.com","servehumour.com","servep2p.com","servesarcasm.com","stufftoread.com","ufcfan.org","unusualperson.com","workisboring.com","3utilities.com","bounceme.net","ddns.net","ddnsking.com","gotdns.ch","hopto.org","myftp.biz","myftp.org","myvnc.com","no-ip.biz","no-ip.info","no-ip.org","noip.me","redirectme.net","servebeer.com","serveblog.net","servecounterstrike.com","serveftp.com","servegame.com","servehalflife.com","servehttp.com","serveirc.com","serveminecraft.net","servemp3.com","servepics.com","servequake.com","sytes.net","webhop.me","zapto.org","stage.nodeart.io","pcloud.host","nyc.mn","static.observableusercontent.com","cya.gg","omg.lol","cloudycluster.net","omniwe.site","service.one","nid.io","opensocial.site","opencraft.hosting","orsites.com","operaunite.com","tech.orange","authgear-staging.com","authgearapps.com","skygearapp.com","outsystemscloud.com","*.webpaas.ovh.net","*.hosting.ovh.net","ownprovider.com","own.pm","*.owo.codes","ox.rs","oy.lc","pgfog.com","pagefrontapp.com","pagexl.com","*.paywhirl.com","bar0.net","bar1.net","bar2.net","rdv.to","art.pl","gliwice.pl","krakow.pl","poznan.pl","wroc.pl","zakopane.pl","pantheonsite.io","gotpantheon.com","mypep.link","perspecta.cloud","lk3.ru","on-web.fr","bc.platform.sh","ent.platform.sh","eu.platform.sh","us.platform.sh","*.platformsh.site","*.tst.site","platter-app.com","platter-app.dev","platterp.us","pdns.page","plesk.page","pleskns.com","dyn53.io","onporter.run","co.bn","postman-echo.com","pstmn.io","mock.pstmn.io","httpbin.org","prequalifyme.today","xen.prgmr.com","priv.at","prvcy.page","*.dweb.link","protonet.io","chirurgiens-dentistes-en-france.fr","byen.site","pubtls.org","pythonanywhere.com","eu.pythonanywhere.com","qoto.io","qualifioapp.com","qbuser.com","cloudsite.builders","instances.spawn.cc","instantcloud.cn","ras.ru","qa2.com","qcx.io","*.sys.qcx.io","dev-myqnapcloud.com","alpha-myqnapcloud.com","myqnapcloud.com","*.quipelements.com","vapor.cloud","vaporcloud.io","rackmaze.com","rackmaze.net","g.vbrplsbx.io","*.on-k3s.io","*.on-rancher.cloud","*.on-rio.io","readthedocs.io","rhcloud.com","app.render.com","onrender.com","repl.co","id.repl.co","repl.run","resindevice.io","devices.resinstaging.io","hzc.io","wellbeingzone.eu","wellbeingzone.co.uk","adimo.co.uk","itcouldbewor.se","git-pages.rit.edu","rocky.page","биз.рус","ком.рус","крым.рус","мир.рус","мск.рус","орг.рус","самара.рус","сочи.рус","спб.рус","я.рус","*.builder.code.com","*.dev-builder.code.com","*.stg-builder.code.com","sandcats.io","logoip.de","logoip.com","fr-par-1.baremetal.scw.cloud","fr-par-2.baremetal.scw.cloud","nl-ams-1.baremetal.scw.cloud","fnc.fr-par.scw.cloud","functions.fnc.fr-par.scw.cloud","k8s.fr-par.scw.cloud","nodes.k8s.fr-par.scw.cloud","s3.fr-par.scw.cloud","s3-website.fr-par.scw.cloud","whm.fr-par.scw.cloud","priv.instances.scw.cloud","pub.instances.scw.cloud","k8s.scw.cloud","k8s.nl-ams.scw.cloud","nodes.k8s.nl-ams.scw.cloud","s3.nl-ams.scw.cloud","s3-website.nl-ams.scw.cloud","whm.nl-ams.scw.cloud","k8s.pl-waw.scw.cloud","nodes.k8s.pl-waw.scw.cloud","s3.pl-waw.scw.cloud","s3-website.pl-waw.scw.cloud","scalebook.scw.cloud","smartlabeling.scw.cloud","dedibox.fr","schokokeks.net","gov.scot","service.gov.scot","scrysec.com","firewall-gateway.com","firewall-gateway.de","my-gateway.de","my-router.de","spdns.de","spdns.eu","firewall-gateway.net","my-firewall.org","myfirewall.org","spdns.org","seidat.net","sellfy.store","senseering.net","minisite.ms","magnet.page","biz.ua","co.ua","pp.ua","shiftcrypto.dev","shiftcrypto.io","shiftedit.io","myshopblocks.com","myshopify.com","shopitsite.com","shopware.store","mo-siemens.io","1kapp.com","appchizi.com","applinzi.com","sinaapp.com","vipsinaapp.com","siteleaf.net","bounty-full.com","alpha.bounty-full.com","beta.bounty-full.com","small-web.org","vp4.me","try-snowplow.com","srht.site","stackhero-network.com","musician.io","novecore.site","static.land","dev.static.land","sites.static.land","storebase.store","vps-host.net","atl.jelastic.vps-host.net","njs.jelastic.vps-host.net","ric.jelastic.vps-host.net","playstation-cloud.com","apps.lair.io","*.stolos.io","spacekit.io","customer.speedpartner.de","myspreadshop.at","myspreadshop.com.au","myspreadshop.be","myspreadshop.ca","myspreadshop.ch","myspreadshop.com","myspreadshop.de","myspreadshop.dk","myspreadshop.es","myspreadshop.fi","myspreadshop.fr","myspreadshop.ie","myspreadshop.it","myspreadshop.net","myspreadshop.nl","myspreadshop.no","myspreadshop.pl","myspreadshop.se","myspreadshop.co.uk","api.stdlib.com","storj.farm","utwente.io","soc.srcf.net","user.srcf.net","temp-dns.com","supabase.co","supabase.in","supabase.net","su.paba.se","*.s5y.io","*.sensiosite.cloud","syncloud.it","dscloud.biz","direct.quickconnect.cn","dsmynas.com","familyds.com","diskstation.me","dscloud.me","i234.me","myds.me","synology.me","dscloud.mobi","dsmynas.net","familyds.net","dsmynas.org","familyds.org","vpnplus.to","direct.quickconnect.to","tabitorder.co.il","taifun-dns.de","beta.tailscale.net","ts.net","gda.pl","gdansk.pl","gdynia.pl","med.pl","sopot.pl","site.tb-hosting.com","edugit.io","s3.teckids.org","telebit.app","telebit.io","*.telebit.xyz","gwiddle.co.uk","*.firenet.ch","*.svc.firenet.ch","reservd.com","thingdustdata.com","cust.dev.thingdust.io","cust.disrec.thingdust.io","cust.prod.thingdust.io","cust.testing.thingdust.io","reservd.dev.thingdust.io","reservd.disrec.thingdust.io","reservd.testing.thingdust.io","tickets.io","arvo.network","azimuth.network","tlon.network","torproject.net","pages.torproject.net","bloxcms.com","townnews-staging.com","tbits.me","12hp.at","2ix.at","4lima.at","lima-city.at","12hp.ch","2ix.ch","4lima.ch","lima-city.ch","trafficplex.cloud","de.cool","12hp.de","2ix.de","4lima.de","lima-city.de","1337.pictures","clan.rip","lima-city.rocks","webspace.rocks","lima.zone","*.transurl.be","*.transurl.eu","*.transurl.nl","site.transip.me","tuxfamily.org","dd-dns.de","diskstation.eu","diskstation.org","dray-dns.de","draydns.de","dyn-vpn.de","dynvpn.de","mein-vigor.de","my-vigor.de","my-wan.de","syno-ds.de","synology-diskstation.de","synology-ds.de","typedream.app","pro.typeform.com","uber.space","*.uberspace.de","hk.com","hk.org","ltd.hk","inc.hk","name.pm","sch.tf","biz.wf","sch.wf","org.yt","virtualuser.de","virtual-user.de","upli.io","urown.cloud","dnsupdate.info","lib.de.us","2038.io","vercel.app","vercel.dev","now.sh","router.management","v-info.info","voorloper.cloud","neko.am","nyaa.am","be.ax","cat.ax","es.ax","eu.ax","gg.ax","mc.ax","us.ax","xy.ax","nl.ci","xx.gl","app.gp","blog.gt","de.gt","to.gt","be.gy","cc.hn","blog.kg","io.kg","jp.kg","tv.kg","uk.kg","us.kg","de.ls","at.md","de.md","jp.md","to.md","indie.porn","vxl.sh","ch.tc","me.tc","we.tc","nyan.to","at.vg","blog.vu","dev.vu","me.vu","v.ua","*.vultrobjects.com","wafflecell.com","*.webhare.dev","reserve-online.net","reserve-online.com","bookonline.app","hotelwithflight.com","wedeploy.io","wedeploy.me","wedeploy.sh","remotewd.com","pages.wiardweb.com","wmflabs.org","toolforge.org","wmcloud.org","panel.gg","daemon.panel.gg","messwithdns.com","woltlab-demo.com","myforum.community","community-pro.de","diskussionsbereich.de","community-pro.net","meinforum.net","affinitylottery.org.uk","raffleentry.org.uk","weeklylottery.org.uk","wpenginepowered.com","js.wpenginepowered.com","wixsite.com","editorx.io","half.host","xnbay.com","u2.xnbay.com","u2-local.xnbay.com","cistron.nl","demon.nl","xs4all.space","yandexcloud.net","storage.yandexcloud.net","website.yandexcloud.net","official.academy","yolasite.com","ybo.faith","yombo.me","homelink.one","ybo.party","ybo.review","ybo.science","ybo.trade","ynh.fr","nohost.me","noho.st","za.net","za.org","bss.design","basicserver.io","virtualserver.io","enterprisecloud.nu"];(function(n){var e=requirePunycode(),o={};o.rules=require$$1$4.map(function(l){return{rule:l,suffix:l.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:l.charAt(0)==="*",exception:l.charAt(0)==="!"}}),o.endsWith=function(l,t){return l.indexOf(t,l.length-t.length)!==-1},o.findRule=function(l){var t=e.toASCII(l);return o.rules.reduce(function(u,h){return h.punySuffix===-1&&(h.punySuffix=e.toASCII(h.suffix)),!o.endsWith(t,"."+h.punySuffix)&&t!==h.punySuffix?u:h},null)},n.errorCodes={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."},o.validate=function(l){var t=e.toASCII(l);if(t.length<1)return"DOMAIN_TOO_SHORT";if(t.length>255)return"DOMAIN_TOO_LONG";for(var u=t.split("."),h,v=0;v<u.length;++v){if(h=u[v],!h.length)return"LABEL_TOO_SHORT";if(h.length>63)return"LABEL_TOO_LONG";if(h.charAt(0)==="-")return"LABEL_STARTS_WITH_DASH";if(h.charAt(h.length-1)==="-")return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-]+$/.test(h))return"LABEL_INVALID_CHARS"}},n.parse=function(l){if(typeof l!="string")throw new TypeError("Domain name must be a string.");var t=l.slice(0).toLowerCase();t.charAt(t.length-1)==="."&&(t=t.slice(0,t.length-1));var u=o.validate(t);if(u)return{input:l,error:{message:n.errorCodes[u],code:u}};var h={input:l,tld:null,sld:null,domain:null,subdomain:null,listed:!1},v=t.split(".");if(v[v.length-1]==="local")return h;var w=function(){return/xn--/.test(t)&&(h.domain&&(h.domain=e.toASCII(h.domain)),h.subdomain&&(h.subdomain=e.toASCII(h.subdomain))),h},A=o.findRule(t);if(!A)return v.length<2?h:(h.tld=v.pop(),h.sld=v.pop(),h.domain=[h.sld,h.tld].join("."),v.length&&(h.subdomain=v.pop()),w());h.listed=!0;var E=A.suffix.split("."),C=v.slice(0,v.length-E.length);return A.exception&&C.push(E.shift()),h.tld=E.join("."),!C.length||(A.wildcard&&(E.unshift(C.pop()),h.tld=E.join(".")),!C.length)||(h.sld=C.pop(),h.domain=[h.sld,h.tld].join("."),C.length&&(h.subdomain=C.join("."))),w()},n.get=function(l){return l&&n.parse(l).domain||null},n.isValid=function(l){var t=n.parse(l);return!!(t.domain&&t.listed)}})(psl$1);/*!
 * Copyright (c) 2018, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */var psl=psl$1;function getPublicSuffix(n){return psl.get(n)}pubsuffixPsl.getPublicSuffix=getPublicSuffix;var store={};/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */function Store$2(){}store.Store=Store$2,Store$2.prototype.synchronous=!1,Store$2.prototype.findCookie=function(n,e,o,l){throw new Error("findCookie is not implemented")},Store$2.prototype.findCookies=function(n,e,o){throw new Error("findCookies is not implemented")},Store$2.prototype.putCookie=function(n,e){throw new Error("putCookie is not implemented")},Store$2.prototype.updateCookie=function(n,e,o){throw new Error("updateCookie is not implemented")},Store$2.prototype.removeCookie=function(n,e,o,l){throw new Error("removeCookie is not implemented")},Store$2.prototype.removeCookies=function(n,e,o){throw new Error("removeCookies is not implemented")},Store$2.prototype.removeAllCookies=function(n){throw new Error("removeAllCookies is not implemented")},Store$2.prototype.getAllCookies=function(n){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")};var memstore={},permuteDomain$2={};/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */var pubsuffix$1=pubsuffixPsl;function permuteDomain$1(n){var e=pubsuffix$1.getPublicSuffix(n);if(!e)return null;if(e==n)return[n];for(var o=n.slice(0,-(e.length+1)),l=o.split(".").reverse(),t=e,u=[t];l.length;)t=l.shift()+"."+t,u.push(t);return u}permuteDomain$2.permuteDomain=permuteDomain$1;var pathMatch$3={};/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */function pathMatch$2(n,e){if(e===n)return!0;var o=n.indexOf(e);return o===0&&(e.substr(-1)==="/"||n.substr(e.length,1)==="/")}pathMatch$3.pathMatch=pathMatch$2;/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */var Store$1=store.Store,permuteDomain=permuteDomain$2.permuteDomain,pathMatch$1=pathMatch$3.pathMatch,util$5=util$6;function MemoryCookieStore$1(){Store$1.call(this),this.idx={}}util$5.inherits(MemoryCookieStore$1,Store$1),memstore.MemoryCookieStore=MemoryCookieStore$1,MemoryCookieStore$1.prototype.idx=null,MemoryCookieStore$1.prototype.synchronous=!0,MemoryCookieStore$1.prototype.inspect=function(){return"{ idx: "+util$5.inspect(this.idx,!1,2)+" }"},util$5.inspect.custom&&(MemoryCookieStore$1.prototype[util$5.inspect.custom]=MemoryCookieStore$1.prototype.inspect),MemoryCookieStore$1.prototype.findCookie=function(n,e,o,l){return!this.idx[n]||!this.idx[n][e]?l(null,void 0):l(null,this.idx[n][e][o]||null)},MemoryCookieStore$1.prototype.findCookies=function(n,e,o){var l=[];if(!n)return o(null,[]);var t;e?t=function(w){Object.keys(w).forEach(function(A){if(pathMatch$1(e,A)){var E=w[A];for(var C in E)l.push(E[C])}})}:t=function(w){for(var A in w){var E=w[A];for(var C in E)l.push(E[C])}};var u=permuteDomain(n)||[n],h=this.idx;u.forEach(function(v){var w=h[v];w&&t(w)}),o(null,l)},MemoryCookieStore$1.prototype.putCookie=function(n,e){this.idx[n.domain]||(this.idx[n.domain]={}),this.idx[n.domain][n.path]||(this.idx[n.domain][n.path]={}),this.idx[n.domain][n.path][n.key]=n,e(null)},MemoryCookieStore$1.prototype.updateCookie=function(n,e,o){this.putCookie(e,o)},MemoryCookieStore$1.prototype.removeCookie=function(n,e,o,l){this.idx[n]&&this.idx[n][e]&&this.idx[n][e][o]&&delete this.idx[n][e][o],l(null)},MemoryCookieStore$1.prototype.removeCookies=function(n,e,o){return this.idx[n]&&(e?delete this.idx[n][e]:delete this.idx[n]),o(null)},MemoryCookieStore$1.prototype.removeAllCookies=function(n){return this.idx={},n(null)},MemoryCookieStore$1.prototype.getAllCookies=function(n){var e=[],o=this.idx,l=Object.keys(o);l.forEach(function(t){var u=Object.keys(o[t]);u.forEach(function(h){var v=Object.keys(o[t][h]);v.forEach(function(w){w!==null&&e.push(o[t][h][w])})})}),e.sort(function(t,u){return(t.creationIndex||0)-(u.creationIndex||0)}),n(null,e)};var version$2="2.5.0";/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */var net=require$$1$5,urlParse=require$$2$2.parse,util$4=util$6,pubsuffix=pubsuffixPsl,Store=store.Store,MemoryCookieStore=memstore.MemoryCookieStore,pathMatch=pathMatch$3.pathMatch,VERSION=version$2,punycode;try{punycode=requirePunycode()}catch(n){console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization")}var COOKIE_OCTETS=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/,CONTROL_CHARS=/[\x00-\x1F]/,TERMINATORS=[`
`,"\r","\0"],PATH_VALUE=/[\x20-\x3A\x3C-\x7E]+/,DATE_DELIM=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,MONTH_TO_NUM={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},NUM_TO_MONTH=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],NUM_TO_DAY=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MAX_TIME=2147483647e3,MIN_TIME=0;function parseDigits(n,e,o,l){for(var t=0;t<n.length;){var u=n.charCodeAt(t);if(u<=47||u>=58)break;t++}return t<e||t>o||!l&&t!=n.length?null:parseInt(n.substr(0,t),10)}function parseTime(n){var e=n.split(":"),o=[0,0,0];if(e.length!==3)return null;for(var l=0;l<3;l++){var t=l==2,u=parseDigits(e[l],1,2,t);if(u===null)return null;o[l]=u}return o}function parseMonth(n){n=String(n).substr(0,3).toLowerCase();var e=MONTH_TO_NUM[n];return e>=0?e:null}function parseDate(n){if(n){var e=n.split(DATE_DELIM);if(e){for(var o=null,l=null,t=null,u=null,h=null,v=null,w=0;w<e.length;w++){var A=e[w].trim();if(A.length){var E;if(t===null&&(E=parseTime(A),E)){o=E[0],l=E[1],t=E[2];continue}if(u===null&&(E=parseDigits(A,1,2,!0),E!==null)){u=E;continue}if(h===null&&(E=parseMonth(A),E!==null)){h=E;continue}v===null&&(E=parseDigits(A,2,4,!0),E!==null&&(v=E,v>=70&&v<=99?v+=1900:v>=0&&v<=69&&(v+=2e3)))}}if(!(u===null||h===null||v===null||t===null||u<1||u>31||v<1601||o>23||l>59||t>59))return new Date(Date.UTC(v,h,u,o,l,t))}}}function formatDate(n){var e=n.getUTCDate();e=e>=10?e:"0"+e;var o=n.getUTCHours();o=o>=10?o:"0"+o;var l=n.getUTCMinutes();l=l>=10?l:"0"+l;var t=n.getUTCSeconds();return t=t>=10?t:"0"+t,NUM_TO_DAY[n.getUTCDay()]+", "+e+" "+NUM_TO_MONTH[n.getUTCMonth()]+" "+n.getUTCFullYear()+" "+o+":"+l+":"+t+" GMT"}function canonicalDomain(n){return n==null?null:(n=n.trim().replace(/^\./,""),punycode&&/[^\u0001-\u007f]/.test(n)&&(n=punycode.toASCII(n)),n.toLowerCase())}function domainMatch(n,e,o){if(n==null||e==null)return null;if(o!==!1&&(n=canonicalDomain(n),e=canonicalDomain(e)),n==e)return!0;if(net.isIP(n))return!1;var l=n.indexOf(e);return!(l<=0||n.length!==e.length+l||n.substr(l-1,1)!==".")}function defaultPath(n){if(!n||n.substr(0,1)!=="/")return"/";if(n==="/")return n;var e=n.lastIndexOf("/");return e===0?"/":n.slice(0,e)}function trimTerminator(n){for(var e=0;e<TERMINATORS.length;e++){var o=n.indexOf(TERMINATORS[e]);o!==-1&&(n=n.substr(0,o))}return n}function parseCookiePair(n,e){n=trimTerminator(n);var o=n.indexOf("=");if(e)o===0&&(n=n.substr(1),o=n.indexOf("="));else if(o<=0)return;var l,t;if(o<=0?(l="",t=n.trim()):(l=n.substr(0,o).trim(),t=n.substr(o+1).trim()),!(CONTROL_CHARS.test(l)||CONTROL_CHARS.test(t))){var u=new Cookie$1;return u.key=l,u.value=t,u}}function parse$1(n,e){(!e||typeof e!="object")&&(e={}),n=n.trim();var o=n.indexOf(";"),l=o===-1?n:n.substr(0,o),t=parseCookiePair(l,!!e.loose);if(t){if(o===-1)return t;var u=n.slice(o+1).trim();if(u.length===0)return t;for(var h=u.split(";");h.length;){var v=h.shift().trim();if(v.length!==0){var w=v.indexOf("="),A,E;switch(w===-1?(A=v,E=null):(A=v.substr(0,w),E=v.substr(w+1)),A=A.trim().toLowerCase(),E&&(E=E.trim()),A){case"expires":if(E){var C=parseDate(E);C&&(t.expires=C)}break;case"max-age":if(E&&/^-?[0-9]+$/.test(E)){var M=parseInt(E,10);t.setMaxAge(M)}break;case"domain":if(E){var P=E.trim().replace(/^\./,"");P&&(t.domain=P.toLowerCase())}break;case"path":t.path=E&&E[0]==="/"?E:null;break;case"secure":t.secure=!0;break;case"httponly":t.httpOnly=!0;break;default:t.extensions=t.extensions||[],t.extensions.push(v);break}}}return t}}function jsonParse(n){var e;try{e=JSON.parse(n)}catch(o){return o}return e}function fromJSON(n){if(!n)return null;var e;if(typeof n=="string"){if(e=jsonParse(n),e instanceof Error)return null}else e=n;for(var o=new Cookie$1,l=0;l<Cookie$1.serializableProperties.length;l++){var t=Cookie$1.serializableProperties[l];e[t]===void 0||e[t]===Cookie$1.prototype[t]||(t==="expires"||t==="creation"||t==="lastAccessed"?e[t]===null?o[t]=null:o[t]=e[t]=="Infinity"?"Infinity":new Date(e[t]):o[t]=e[t])}return o}function cookieCompare(n,e){var o=0,l=n.path?n.path.length:0,t=e.path?e.path.length:0;if(o=t-l,o!==0)return o;var u=n.creation?n.creation.getTime():MAX_TIME,h=e.creation?e.creation.getTime():MAX_TIME;return o=u-h,o!==0||(o=n.creationIndex-e.creationIndex),o}function permutePath(n){if(n==="/")return["/"];n.lastIndexOf("/")===n.length-1&&(n=n.substr(0,n.length-1));for(var e=[n];n.length>1;){var o=n.lastIndexOf("/");if(o===0)break;n=n.substr(0,o),e.push(n)}return e.push("/"),e}function getCookieContext(n){if(n instanceof Object)return n;try{n=decodeURI(n)}catch{}return urlParse(n)}function Cookie$1(n){n=n||{},Object.keys(n).forEach(function(e){Cookie$1.prototype.hasOwnProperty(e)&&Cookie$1.prototype[e]!==n[e]&&e.substr(0,1)!=="_"&&(this[e]=n[e])},this),this.creation=this.creation||new Date,Object.defineProperty(this,"creationIndex",{configurable:!1,enumerable:!1,writable:!0,value:++Cookie$1.cookiesCreated})}Cookie$1.cookiesCreated=0,Cookie$1.parse=parse$1,Cookie$1.fromJSON=fromJSON,Cookie$1.prototype.key="",Cookie$1.prototype.value="",Cookie$1.prototype.expires="Infinity",Cookie$1.prototype.maxAge=null,Cookie$1.prototype.domain=null,Cookie$1.prototype.path=null,Cookie$1.prototype.secure=!1,Cookie$1.prototype.httpOnly=!1,Cookie$1.prototype.extensions=null,Cookie$1.prototype.hostOnly=null,Cookie$1.prototype.pathIsDefault=null,Cookie$1.prototype.creation=null,Cookie$1.prototype.lastAccessed=null,Object.defineProperty(Cookie$1.prototype,"creationIndex",{configurable:!0,enumerable:!1,writable:!0,value:0}),Cookie$1.serializableProperties=Object.keys(Cookie$1.prototype).filter(function(n){return!(Cookie$1.prototype[n]instanceof Function||n==="creationIndex"||n.substr(0,1)==="_")}),Cookie$1.prototype.inspect=function(){var e=Date.now();return'Cookie="'+this.toString()+"; hostOnly="+(this.hostOnly!=null?this.hostOnly:"?")+"; aAge="+(this.lastAccessed?e-this.lastAccessed.getTime()+"ms":"?")+"; cAge="+(this.creation?e-this.creation.getTime()+"ms":"?")+'"'},util$4.inspect.custom&&(Cookie$1.prototype[util$4.inspect.custom]=Cookie$1.prototype.inspect),Cookie$1.prototype.toJSON=function(){for(var n={},e=Cookie$1.serializableProperties,o=0;o<e.length;o++){var l=e[o];this[l]!==Cookie$1.prototype[l]&&(l==="expires"||l==="creation"||l==="lastAccessed"?this[l]===null?n[l]=null:n[l]=this[l]=="Infinity"?"Infinity":this[l].toISOString():l==="maxAge"?this[l]!==null&&(n[l]=this[l]==1/0||this[l]==-1/0?this[l].toString():this[l]):this[l]!==Cookie$1.prototype[l]&&(n[l]=this[l]))}return n},Cookie$1.prototype.clone=function(){return fromJSON(this.toJSON())},Cookie$1.prototype.validate=function(){if(!COOKIE_OCTETS.test(this.value)||this.expires!=1/0&&!(this.expires instanceof Date)&&!parseDate(this.expires)||this.maxAge!=null&&this.maxAge<=0||this.path!=null&&!PATH_VALUE.test(this.path))return!1;var e=this.cdomain();if(e){if(e.match(/\.$/))return!1;var o=pubsuffix.getPublicSuffix(e);if(o==null)return!1}return!0},Cookie$1.prototype.setExpires=function(e){e instanceof Date?this.expires=e:this.expires=parseDate(e)||"Infinity"},Cookie$1.prototype.setMaxAge=function(e){e===1/0||e===-1/0?this.maxAge=e.toString():this.maxAge=e},Cookie$1.prototype.cookieString=function(){var e=this.value;return e==null&&(e=""),this.key===""?e:this.key+"="+e},Cookie$1.prototype.toString=function(){var e=this.cookieString();return this.expires!=1/0&&(this.expires instanceof Date?e+="; Expires="+formatDate(this.expires):e+="; Expires="+this.expires),this.maxAge!=null&&this.maxAge!=1/0&&(e+="; Max-Age="+this.maxAge),this.domain&&!this.hostOnly&&(e+="; Domain="+this.domain),this.path&&(e+="; Path="+this.path),this.secure&&(e+="; Secure"),this.httpOnly&&(e+="; HttpOnly"),this.extensions&&this.extensions.forEach(function(o){e+="; "+o}),e},Cookie$1.prototype.TTL=function(e){if(this.maxAge!=null)return this.maxAge<=0?0:this.maxAge*1e3;var o=this.expires;return o!=1/0?(o instanceof Date||(o=parseDate(o)||1/0),o==1/0?1/0:o.getTime()-(e||Date.now())):1/0},Cookie$1.prototype.expiryTime=function(e){if(this.maxAge!=null){var o=e||this.creation||new Date,l=this.maxAge<=0?-1/0:this.maxAge*1e3;return o.getTime()+l}return this.expires==1/0?1/0:this.expires.getTime()},Cookie$1.prototype.expiryDate=function(e){var o=this.expiryTime(e);return o==1/0?new Date(MAX_TIME):o==-1/0?new Date(MIN_TIME):new Date(o)},Cookie$1.prototype.isPersistent=function(){return this.maxAge!=null||this.expires!=1/0},Cookie$1.prototype.cdomain=Cookie$1.prototype.canonicalizedDomain=function(){return this.domain==null?null:canonicalDomain(this.domain)};function CookieJar$1(n,e){typeof e=="boolean"?e={rejectPublicSuffixes:e}:e==null&&(e={}),e.rejectPublicSuffixes!=null&&(this.rejectPublicSuffixes=e.rejectPublicSuffixes),e.looseMode!=null&&(this.enableLooseMode=e.looseMode),n||(n=new MemoryCookieStore),this.store=n}CookieJar$1.prototype.store=null,CookieJar$1.prototype.rejectPublicSuffixes=!0,CookieJar$1.prototype.enableLooseMode=!1;var CAN_BE_SYNC=[];CAN_BE_SYNC.push("setCookie"),CookieJar$1.prototype.setCookie=function(n,e,o,l){var t,u=getCookieContext(e);o instanceof Function&&(l=o,o={});var h=canonicalDomain(u.hostname),v=this.enableLooseMode;if(o.loose!=null&&(v=o.loose),n instanceof Cookie$1||(n=Cookie$1.parse(n,{loose:v})),!n)return t=new Error("Cookie failed to parse"),l(o.ignoreError?null:t);var w=o.now||new Date;if(this.rejectPublicSuffixes&&n.domain){var A=pubsuffix.getPublicSuffix(n.cdomain());if(A==null)return t=new Error("Cookie has domain set to a public suffix"),l(o.ignoreError?null:t)}if(n.domain){if(!domainMatch(h,n.cdomain(),!1))return t=new Error("Cookie not in this host's domain. Cookie:"+n.cdomain()+" Request:"+h),l(o.ignoreError?null:t);n.hostOnly==null&&(n.hostOnly=!1)}else n.hostOnly=!0,n.domain=h;if((!n.path||n.path[0]!=="/")&&(n.path=defaultPath(u.pathname),n.pathIsDefault=!0),o.http===!1&&n.httpOnly)return t=new Error("Cookie is HttpOnly and this isn't an HTTP API"),l(o.ignoreError?null:t);var E=this.store;E.updateCookie||(E.updateCookie=function(M,P,I){this.putCookie(P,I)});function C(M,P){if(M)return l(M);var I=function(j){if(j)return l(j);l(null,n)};if(P){if(o.http===!1&&P.httpOnly)return M=new Error("old Cookie is HttpOnly and this isn't an HTTP API"),l(o.ignoreError?null:M);n.creation=P.creation,n.creationIndex=P.creationIndex,n.lastAccessed=w,E.updateCookie(P,n,I)}else n.creation=n.lastAccessed=w,E.putCookie(n,I)}E.findCookie(n.domain,n.path,n.key,C)},CAN_BE_SYNC.push("getCookies"),CookieJar$1.prototype.getCookies=function(n,e,o){var l=getCookieContext(n);e instanceof Function&&(o=e,e={});var t=canonicalDomain(l.hostname),u=l.pathname||"/",h=e.secure;h==null&&l.protocol&&(l.protocol=="https:"||l.protocol=="wss:")&&(h=!0);var v=e.http;v==null&&(v=!0);var w=e.now||Date.now(),A=e.expire!==!1,E=!!e.allPaths,C=this.store;function M(P){if(P.hostOnly){if(P.domain!=t)return!1}else if(!domainMatch(t,P.domain,!1))return!1;return!E&&!pathMatch(u,P.path)||P.secure&&!h||P.httpOnly&&!v?!1:A&&P.expiryTime()<=w?(C.removeCookie(P.domain,P.path,P.key,function(){}),!1):!0}C.findCookies(t,E?null:u,function(P,I){if(P)return o(P);I=I.filter(M),e.sort!==!1&&(I=I.sort(cookieCompare));var j=new Date;I.forEach(function(B){B.lastAccessed=j}),o(null,I)})},CAN_BE_SYNC.push("getCookieString"),CookieJar$1.prototype.getCookieString=function(){var n=Array.prototype.slice.call(arguments,0),e=n.pop(),o=function(l,t){l?e(l):e(null,t.sort(cookieCompare).map(function(u){return u.cookieString()}).join("; "))};n.push(o),this.getCookies.apply(this,n)},CAN_BE_SYNC.push("getSetCookieStrings"),CookieJar$1.prototype.getSetCookieStrings=function(){var n=Array.prototype.slice.call(arguments,0),e=n.pop(),o=function(l,t){l?e(l):e(null,t.map(function(u){return u.toString()}))};n.push(o),this.getCookies.apply(this,n)},CAN_BE_SYNC.push("serialize"),CookieJar$1.prototype.serialize=function(n){var e=this.store.constructor.name;e==="Object"&&(e=null);var o={version:"tough-cookie@"+VERSION,storeType:e,rejectPublicSuffixes:!!this.rejectPublicSuffixes,cookies:[]};if(!(this.store.getAllCookies&&typeof this.store.getAllCookies=="function"))return n(new Error("store does not support getAllCookies and cannot be serialized"));this.store.getAllCookies(function(l,t){return l?n(l):(o.cookies=t.map(function(u){return u=u instanceof Cookie$1?u.toJSON():u,delete u.creationIndex,u}),n(null,o))})},CookieJar$1.prototype.toJSON=function(){return this.serializeSync()},CAN_BE_SYNC.push("_importCookies"),CookieJar$1.prototype._importCookies=function(n,e){var o=this,l=n.cookies;if(!l||!Array.isArray(l))return e(new Error("serialized jar has no cookies array"));l=l.slice();function t(u){if(u)return e(u);if(!l.length)return e(u,o);var h;try{h=fromJSON(l.shift())}catch(v){return e(v)}if(h===null)return t(null);o.store.putCookie(h,t)}t()},CookieJar$1.deserialize=function(n,e,o){arguments.length!==3&&(o=e,e=null);var l;if(typeof n=="string"){if(l=jsonParse(n),l instanceof Error)return o(l)}else l=n;var t=new CookieJar$1(e,l.rejectPublicSuffixes);t._importCookies(l,function(u){if(u)return o(u);o(null,t)})},CookieJar$1.deserializeSync=function(n,e){var o=typeof n=="string"?JSON.parse(n):n,l=new CookieJar$1(e,o.rejectPublicSuffixes);if(!l.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");return l._importCookiesSync(o),l},CookieJar$1.fromJSON=CookieJar$1.deserializeSync,CookieJar$1.prototype.clone=function(n,e){arguments.length===1&&(e=n,n=null),this.serialize(function(o,l){if(o)return e(o);CookieJar$1.deserialize(l,n,e)})},CAN_BE_SYNC.push("removeAllCookies"),CookieJar$1.prototype.removeAllCookies=function(n){var e=this.store;if(e.removeAllCookies instanceof Function&&e.removeAllCookies!==Store.prototype.removeAllCookies)return e.removeAllCookies(n);e.getAllCookies(function(o,l){if(o)return n(o);if(l.length===0)return n(null);var t=0,u=[];function h(v){if(v&&u.push(v),t++,t===l.length)return n(u.length?u[0]:null)}l.forEach(function(v){e.removeCookie(v.domain,v.path,v.key,h)})})},CookieJar$1.prototype._cloneSync=syncWrap("clone"),CookieJar$1.prototype.cloneSync=function(n){if(!n.synchronous)throw new Error("CookieJar clone destination store is not synchronous; use async API instead.");return this._cloneSync(n)};function syncWrap(n){return function(){if(!this.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");var e=Array.prototype.slice.call(arguments),o,l;if(e.push(function(u,h){o=u,l=h}),this[n].apply(this,e),o)throw o;return l}}CAN_BE_SYNC.forEach(function(n){CookieJar$1.prototype[n+"Sync"]=syncWrap(n)}),cookie.version=VERSION,cookie.CookieJar=CookieJar$1,cookie.Cookie=Cookie$1,cookie.Store=Store,cookie.MemoryCookieStore=MemoryCookieStore,cookie.parseDate=parseDate,cookie.formatDate=formatDate,cookie.parse=parse$1,cookie.fromJSON=fromJSON,cookie.domainMatch=domainMatch,cookie.defaultPath=defaultPath,cookie.pathMatch=pathMatch,cookie.getPublicSuffix=pubsuffix.getPublicSuffix,cookie.cookieCompare=cookieCompare,cookie.permuteDomain=permuteDomain$2.permuteDomain,cookie.permutePath=permutePath,cookie.canonicalDomain=canonicalDomain;var tough=cookie,Cookie=tough.Cookie,CookieJar=tough.CookieJar;cookies$1.parse=function(n){if(n&&n.uri&&(n=n.uri),typeof n!="string")throw new Error("The cookie function only accepts STRING as param");return Cookie.parse(n,{loose:!0})};function RequestJar(n){var e=this;e._jar=new CookieJar(n,{looseMode:!0})}RequestJar.prototype.setCookie=function(n,e,o){var l=this;return l._jar.setCookieSync(n,e,o||{})},RequestJar.prototype.getCookieString=function(n){var e=this;return e._jar.getCookieStringSync(n)},RequestJar.prototype.getCookies=function(n){var e=this;return e._jar.getCookiesSync(n)},cookies$1.jar=function(n){return new RequestJar(n)};var helpers$1={},stringify={exports:{}};(function(n,e){e=n.exports=o,e.getSerialize=l;function o(t,u,h,v){return JSON.stringify(t,l(u,v),h)}function l(t,u){var h=[],v=[];return u==null&&(u=function(w,A){return h[0]===A?"[Circular ~]":"[Circular ~."+v.slice(0,h.indexOf(A)).join(".")+"]"}),function(w,A){if(h.length>0){var E=h.indexOf(this);~E?h.splice(E+1):h.push(this),~E?v.splice(E,1/0,w):v.push(w),~h.indexOf(A)&&(A=u.call(this,w,A))}else h.push(A);return t==null?A:t.call(this,w,A)}}})(stringify,stringify.exports);var stringifyExports=stringify.exports,cryptoBrowserify={},browser$d={exports:{}},safeBuffer$2={exports:{}};const require$$0$2=getAugmentedNamespace(dist);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(n,e){var o=require$$0$2,l=o.Buffer;function t(h,v){for(var w in h)v[w]=h[w]}l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow?n.exports=o:(t(o,e),e.Buffer=u);function u(h,v,w){return l(h,v,w)}u.prototype=Object.create(l.prototype),t(l,u),u.from=function(h,v,w){if(typeof h=="number")throw new TypeError("Argument must not be a number");return l(h,v,w)},u.alloc=function(h,v,w){if(typeof h!="number")throw new TypeError("Argument must be a number");var A=l(h);return v!==void 0?typeof w=="string"?A.fill(v,w):A.fill(v):A.fill(0),A},u.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return l(h)},u.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(h)}})(safeBuffer$2,safeBuffer$2.exports);var safeBufferExports$1=safeBuffer$2.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$B=safeBufferExports$1.Buffer,crypto$3=commonjsGlobal$1.crypto||commonjsGlobal$1.msCrypto;crypto$3&&crypto$3.getRandomValues?browser$d.exports=randomBytes$2:browser$d.exports=oldBrowser$1;function randomBytes$2(n,e){if(n>MAX_UINT32)throw new RangeError("requested too many random bytes");var o=Buffer$B.allocUnsafe(n);if(n>0)if(n>MAX_BYTES)for(var l=0;l<n;l+=MAX_BYTES)crypto$3.getRandomValues(o.slice(l,l+MAX_BYTES));else crypto$3.getRandomValues(o);return typeof e=="function"?process$1.nextTick(function(){e(null,o)}):o}var browserExports=browser$d.exports,events={exports:{}},hasRequiredEvents;function requireEvents(){if(hasRequiredEvents)return events.exports;hasRequiredEvents=1;var n=typeof Reflect=="object"?Reflect:null,e=n&&typeof n.apply=="function"?n.apply:function(re,fe,V){return Function.prototype.apply.call(re,fe,V)},o;n&&typeof n.ownKeys=="function"?o=n.ownKeys:Object.getOwnPropertySymbols?o=function(re){return Object.getOwnPropertyNames(re).concat(Object.getOwnPropertySymbols(re))}:o=function(re){return Object.getOwnPropertyNames(re)};function l(Z){console&&console.warn&&console.warn(Z)}var t=Number.isNaN||function(re){return re!==re};function u(){u.init.call(this)}events.exports=u,events.exports.once=F,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var h=10;function v(Z){if(typeof Z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(Z){if(typeof Z!="number"||Z<0||t(Z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");h=Z}}),u.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(re){if(typeof re!="number"||re<0||t(re))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+re+".");return this._maxListeners=re,this};function w(Z){return Z._maxListeners===void 0?u.defaultMaxListeners:Z._maxListeners}u.prototype.getMaxListeners=function(){return w(this)},u.prototype.emit=function(re){for(var fe=[],V=1;V<arguments.length;V++)fe.push(arguments[V]);var le=re==="error",he=this._events;if(he!==void 0)le=le&&he.error===void 0;else if(!le)return!1;if(le){var ye;if(fe.length>0&&(ye=fe[0]),ye instanceof Error)throw ye;var L=new Error("Unhandled error."+(ye?" ("+ye.message+")":""));throw L.context=ye,L}var p=he[re];if(p===void 0)return!1;if(typeof p=="function")e(p,this,fe);else for(var y=p.length,S=I(p,y),V=0;V<y;++V)e(S[V],this,fe);return!0};function A(Z,re,fe,V){var le,he,ye;if(v(fe),he=Z._events,he===void 0?(he=Z._events=Object.create(null),Z._eventsCount=0):(he.newListener!==void 0&&(Z.emit("newListener",re,fe.listener?fe.listener:fe),he=Z._events),ye=he[re]),ye===void 0)ye=he[re]=fe,++Z._eventsCount;else if(typeof ye=="function"?ye=he[re]=V?[fe,ye]:[ye,fe]:V?ye.unshift(fe):ye.push(fe),le=w(Z),le>0&&ye.length>le&&!ye.warned){ye.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+ye.length+" "+String(re)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=Z,L.type=re,L.count=ye.length,l(L)}return Z}u.prototype.addListener=function(re,fe){return A(this,re,fe,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(re,fe){return A(this,re,fe,!0)};function E(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(Z,re,fe){var V={fired:!1,wrapFn:void 0,target:Z,type:re,listener:fe},le=E.bind(V);return le.listener=fe,V.wrapFn=le,le}u.prototype.once=function(re,fe){return v(fe),this.on(re,C(this,re,fe)),this},u.prototype.prependOnceListener=function(re,fe){return v(fe),this.prependListener(re,C(this,re,fe)),this},u.prototype.removeListener=function(re,fe){var V,le,he,ye,L;if(v(fe),le=this._events,le===void 0)return this;if(V=le[re],V===void 0)return this;if(V===fe||V.listener===fe)--this._eventsCount===0?this._events=Object.create(null):(delete le[re],le.removeListener&&this.emit("removeListener",re,V.listener||fe));else if(typeof V!="function"){for(he=-1,ye=V.length-1;ye>=0;ye--)if(V[ye]===fe||V[ye].listener===fe){L=V[ye].listener,he=ye;break}if(he<0)return this;he===0?V.shift():j(V,he),V.length===1&&(le[re]=V[0]),le.removeListener!==void 0&&this.emit("removeListener",re,L||fe)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(re){var fe,V,le;if(V=this._events,V===void 0)return this;if(V.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):V[re]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete V[re]),this;if(arguments.length===0){var he=Object.keys(V),ye;for(le=0;le<he.length;++le)ye=he[le],ye!=="removeListener"&&this.removeAllListeners(ye);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(fe=V[re],typeof fe=="function")this.removeListener(re,fe);else if(fe!==void 0)for(le=fe.length-1;le>=0;le--)this.removeListener(re,fe[le]);return this};function M(Z,re,fe){var V=Z._events;if(V===void 0)return[];var le=V[re];return le===void 0?[]:typeof le=="function"?fe?[le.listener||le]:[le]:fe?B(le):I(le,le.length)}u.prototype.listeners=function(re){return M(this,re,!0)},u.prototype.rawListeners=function(re){return M(this,re,!1)},u.listenerCount=function(Z,re){return typeof Z.listenerCount=="function"?Z.listenerCount(re):P.call(Z,re)},u.prototype.listenerCount=P;function P(Z){var re=this._events;if(re!==void 0){var fe=re[Z];if(typeof fe=="function")return 1;if(fe!==void 0)return fe.length}return 0}u.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]};function I(Z,re){for(var fe=new Array(re),V=0;V<re;++V)fe[V]=Z[V];return fe}function j(Z,re){for(;re+1<Z.length;re++)Z[re]=Z[re+1];Z.pop()}function B(Z){for(var re=new Array(Z.length),fe=0;fe<re.length;++fe)re[fe]=Z[fe].listener||Z[fe];return re}function F(Z,re){return new Promise(function(fe,V){function le(ye){Z.removeListener(re,he),V(ye)}function he(){typeof Z.removeListener=="function"&&Z.removeListener("error",le),fe([].slice.call(arguments))}ee(Z,re,he,{once:!0}),re!=="error"&&N(Z,le,{once:!0})})}function N(Z,re,fe){typeof Z.on=="function"&&ee(Z,"error",re,fe)}function ee(Z,re,fe,V){if(typeof Z.on=="function")V.once?Z.once(re,fe):Z.on(re,fe);else if(typeof Z.addEventListener=="function")Z.addEventListener(re,function le(he){V.once&&Z.removeEventListener(re,le),fe(he)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}return events.exports}var streamBrowser$1,hasRequiredStreamBrowser;function requireStreamBrowser(){return hasRequiredStreamBrowser||(hasRequiredStreamBrowser=1,streamBrowser$1=requireEvents().EventEmitter),streamBrowser$1}var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function n(I,j){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(I);j&&(F=F.filter(function(N){return Object.getOwnPropertyDescriptor(I,N).enumerable})),B.push.apply(B,F)}return B}function e(I){for(var j=1;j<arguments.length;j++){var B=arguments[j]!=null?arguments[j]:{};j%2?n(Object(B),!0).forEach(function(F){o(I,F,B[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(B)):n(Object(B)).forEach(function(F){Object.defineProperty(I,F,Object.getOwnPropertyDescriptor(B,F))})}return I}function o(I,j,B){return j=h(j),j in I?Object.defineProperty(I,j,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[j]=B,I}function l(I,j){if(!(I instanceof j))throw new TypeError("Cannot call a class as a function")}function t(I,j){for(var B=0;B<j.length;B++){var F=j[B];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,h(F.key),F)}}function u(I,j,B){return j&&t(I.prototype,j),Object.defineProperty(I,"prototype",{writable:!1}),I}function h(I){var j=v(I,"string");return typeof j=="symbol"?j:String(j)}function v(I,j){if(typeof I!="object"||I===null)return I;var B=I[Symbol.toPrimitive];if(B!==void 0){var F=B.call(I,j||"default");if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(I)}var w=require$$0$2,A=w.Buffer,E=util$6,C=E.inspect,M=C&&C.custom||"inspect";function P(I,j,B){A.prototype.copy.call(I,j,B)}return buffer_list=function(){function I(){l(this,I),this.head=null,this.tail=null,this.length=0}return u(I,[{key:"push",value:function(B){var F={data:B,next:null};this.length>0?this.tail.next=F:this.head=F,this.tail=F,++this.length}},{key:"unshift",value:function(B){var F={data:B,next:this.head};this.length===0&&(this.tail=F),this.head=F,++this.length}},{key:"shift",value:function(){if(this.length!==0){var B=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,B}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(B){if(this.length===0)return"";for(var F=this.head,N=""+F.data;F=F.next;)N+=B+F.data;return N}},{key:"concat",value:function(B){if(this.length===0)return A.alloc(0);for(var F=A.allocUnsafe(B>>>0),N=this.head,ee=0;N;)P(N.data,F,ee),ee+=N.data.length,N=N.next;return F}},{key:"consume",value:function(B,F){var N;return B<this.head.data.length?(N=this.head.data.slice(0,B),this.head.data=this.head.data.slice(B)):B===this.head.data.length?N=this.shift():N=F?this._getString(B):this._getBuffer(B),N}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(B){var F=this.head,N=1,ee=F.data;for(B-=ee.length;F=F.next;){var Z=F.data,re=B>Z.length?Z.length:B;if(re===Z.length?ee+=Z:ee+=Z.slice(0,B),B-=re,B===0){re===Z.length?(++N,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=Z.slice(re));break}++N}return this.length-=N,ee}},{key:"_getBuffer",value:function(B){var F=A.allocUnsafe(B),N=this.head,ee=1;for(N.data.copy(F),B-=N.data.length;N=N.next;){var Z=N.data,re=B>Z.length?Z.length:B;if(Z.copy(F,F.length-B,0,re),B-=re,B===0){re===Z.length?(++ee,N.next?this.head=N.next:this.head=this.tail=null):(this.head=N,N.data=Z.slice(re));break}++ee}return this.length-=ee,F}},{key:M,value:function(B,F){return C(this,e(e({},F),{},{depth:0,customInspect:!1}))}}]),I}(),buffer_list}var destroy_1$1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1$1;hasRequiredDestroy=1;function n(h,v){var w=this,A=this._readableState&&this._readableState.destroyed,E=this._writableState&&this._writableState.destroyed;return A||E?(v?v(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(t,this,h)):process$1.nextTick(t,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(C){!v&&C?w._writableState?w._writableState.errorEmitted?process$1.nextTick(o,w):(w._writableState.errorEmitted=!0,process$1.nextTick(e,w,C)):process$1.nextTick(e,w,C):v?(process$1.nextTick(o,w),v(C)):process$1.nextTick(o,w)}),this)}function e(h,v){t(h,v),o(h)}function o(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function l(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function t(h,v){h.emit("error",v)}function u(h,v){var w=h._readableState,A=h._writableState;w&&w.autoDestroy||A&&A.autoDestroy?h.destroy(v):h.emit("error",v)}return destroy_1$1={destroy:n,undestroy:l,errorOrDestroy:u},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function n(v,w){v.prototype=Object.create(w.prototype),v.prototype.constructor=v,v.__proto__=w}var e={};function o(v,w,A){A||(A=Error);function E(M,P,I){return typeof w=="string"?w:w(M,P,I)}var C=function(M){n(P,M);function P(I,j,B){return M.call(this,E(I,j,B))||this}return P}(A);C.prototype.name=A.name,C.prototype.code=v,e[v]=C}function l(v,w){if(Array.isArray(v)){var A=v.length;return v=v.map(function(E){return String(E)}),A>2?"one of ".concat(w," ").concat(v.slice(0,A-1).join(", "),", or ")+v[A-1]:A===2?"one of ".concat(w," ").concat(v[0]," or ").concat(v[1]):"of ".concat(w," ").concat(v[0])}else return"of ".concat(w," ").concat(String(v))}function t(v,w,A){return v.substr(0,w.length)===w}function u(v,w,A){return(A===void 0||A>v.length)&&(A=v.length),v.substring(A-w.length,A)===w}function h(v,w,A){return typeof A!="number"&&(A=0),A+w.length>v.length?!1:v.indexOf(w,A)!==-1}return o("ERR_INVALID_OPT_VALUE",function(v,w){return'The value "'+w+'" is invalid for option "'+v+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(v,w,A){var E;typeof w=="string"&&t(w,"not ")?(E="must not be",w=w.replace(/^not /,"")):E="must be";var C;if(u(v," argument"))C="The ".concat(v," ").concat(E," ").concat(l(w,"type"));else{var M=h(v,".")?"property":"argument";C='The "'.concat(v,'" ').concat(M," ").concat(E," ").concat(l(w,"type"))}return C+=". Received type ".concat(typeof A),C},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=e,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var n=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function e(l,t,u){return l.highWaterMark!=null?l.highWaterMark:t?l[u]:null}function o(l,t,u,h){var v=e(t,h,u);if(v!=null){if(!(isFinite(v)&&Math.floor(v)===v)||v<0){var w=h?u:"highWaterMark";throw new n(w,v)}return Math.floor(v)}return l.objectMode?16:16*1024}return state={getHighWaterMark:o},state}var browser$c,hasRequiredBrowser$5;function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$c;hasRequiredBrowser$5=1,browser$c=n;function n(o,l){if(e("noDeprecation"))return o;var t=!1;function u(){if(!t){if(e("throwDeprecation"))throw new Error(l);e("traceDeprecation")?console.trace(l):console.warn(l),t=!0}return o.apply(this,arguments)}return u}function e(o){try{if(!commonjsGlobal$1.localStorage)return!1}catch{return!1}var l=commonjsGlobal$1.localStorage[o];return l==null?!1:String(l).toLowerCase()==="true"}return browser$c}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=le;function n(X){var U=this;this.next=null,this.entry=null,this.finish=function(){J(U,X)}}var e;le.WritableState=fe;var o={deprecate:requireBrowser$5()},l=requireStreamBrowser(),t=require$$0$2.Buffer,u=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(X){return t.from(X)}function v(X){return t.isBuffer(X)||X instanceof u}var w=requireDestroy(),A=requireState(),E=A.getHighWaterMark,C=requireErrorsBrowser().codes,M=C.ERR_INVALID_ARG_TYPE,P=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_MULTIPLE_CALLBACK,j=C.ERR_STREAM_CANNOT_PIPE,B=C.ERR_STREAM_DESTROYED,F=C.ERR_STREAM_NULL_VALUES,N=C.ERR_STREAM_WRITE_AFTER_END,ee=C.ERR_UNKNOWN_ENCODING,Z=w.errorOrDestroy;inherits_browserExports(le,l);function re(){}function fe(X,U,z){e=e||require_stream_duplex$1(),X=X||{},typeof z!="boolean"&&(z=U instanceof e),this.objectMode=!!X.objectMode,z&&(this.objectMode=this.objectMode||!!X.writableObjectMode),this.highWaterMark=E(this,X,"writableHighWaterMark",z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=X.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(de){m(U,de)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=X.emitClose!==!1,this.autoDestroy=!!X.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}fe.prototype.getBuffer=function(){for(var U=this.bufferedRequest,z=[];U;)z.push(U),U=U.next;return z},function(){try{Object.defineProperty(fe.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var V;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(V=Function.prototype[Symbol.hasInstance],Object.defineProperty(le,Symbol.hasInstance,{value:function(U){return V.call(this,U)?!0:this!==le?!1:U&&U._writableState instanceof fe}})):V=function(U){return U instanceof this};function le(X){e=e||require_stream_duplex$1();var U=this instanceof e;if(!U&&!V.call(le,this))return new le(X);this._writableState=new fe(X,this,U),this.writable=!0,X&&(typeof X.write=="function"&&(this._write=X.write),typeof X.writev=="function"&&(this._writev=X.writev),typeof X.destroy=="function"&&(this._destroy=X.destroy),typeof X.final=="function"&&(this._final=X.final)),l.call(this)}le.prototype.pipe=function(){Z(this,new j)};function he(X,U){var z=new N;Z(X,z),process$1.nextTick(U,z)}function ye(X,U,z,ie){var de;return z===null?de=new F:typeof z!="string"&&!U.objectMode&&(de=new M("chunk",["string","Buffer"],z)),de?(Z(X,de),process$1.nextTick(ie,de),!1):!0}le.prototype.write=function(X,U,z){var ie=this._writableState,de=!1,me=!ie.objectMode&&v(X);return me&&!t.isBuffer(X)&&(X=h(X)),typeof U=="function"&&(z=U,U=null),me?U="buffer":U||(U=ie.defaultEncoding),typeof z!="function"&&(z=re),ie.ending?he(this,z):(me||ye(this,ie,X,z))&&(ie.pendingcb++,de=p(this,ie,me,X,U,z)),de},le.prototype.cork=function(){this._writableState.corked++},le.prototype.uncork=function(){var X=this._writableState;X.corked&&(X.corked--,!X.writing&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&b(this,X))},le.prototype.setDefaultEncoding=function(U){if(typeof U=="string"&&(U=U.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((U+"").toLowerCase())>-1))throw new ee(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(le.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function L(X,U,z){return!X.objectMode&&X.decodeStrings!==!1&&typeof U=="string"&&(U=t.from(U,z)),U}Object.defineProperty(le.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function p(X,U,z,ie,de,me){if(!z){var pe=L(U,ie,de);ie!==pe&&(z=!0,de="buffer",ie=pe)}var qe=U.objectMode?1:ie.length;U.length+=qe;var mt=U.length<U.highWaterMark;if(mt||(U.needDrain=!0),U.writing||U.corked){var st=U.lastBufferedRequest;U.lastBufferedRequest={chunk:ie,encoding:de,isBuf:z,callback:me,next:null},st?st.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else y(X,U,!1,qe,ie,de,me);return mt}function y(X,U,z,ie,de,me,pe){U.writelen=ie,U.writecb=pe,U.writing=!0,U.sync=!0,U.destroyed?U.onwrite(new B("write")):z?X._writev(de,U.onwrite):X._write(de,me,U.onwrite),U.sync=!1}function S(X,U,z,ie,de){--U.pendingcb,z?(process$1.nextTick(de,ie),process$1.nextTick(O,X,U),X._writableState.errorEmitted=!0,Z(X,ie)):(de(ie),X._writableState.errorEmitted=!0,Z(X,ie),O(X,U))}function c(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0}function m(X,U){var z=X._writableState,ie=z.sync,de=z.writecb;if(typeof de!="function")throw new I;if(c(z),U)S(X,z,ie,U,de);else{var me=d(z)||X.destroyed;!me&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&b(X,z),ie?process$1.nextTick(x,X,z,me,de):x(X,z,me,de)}}function x(X,U,z,ie){z||T(X,U),U.pendingcb--,ie(),O(X,U)}function T(X,U){U.length===0&&U.needDrain&&(U.needDrain=!1,X.emit("drain"))}function b(X,U){U.bufferProcessing=!0;var z=U.bufferedRequest;if(X._writev&&z&&z.next){var ie=U.bufferedRequestCount,de=new Array(ie),me=U.corkedRequestsFree;me.entry=z;for(var pe=0,qe=!0;z;)de[pe]=z,z.isBuf||(qe=!1),z=z.next,pe+=1;de.allBuffers=qe,y(X,U,!0,U.length,de,"",me.finish),U.pendingcb++,U.lastBufferedRequest=null,me.next?(U.corkedRequestsFree=me.next,me.next=null):U.corkedRequestsFree=new n(U),U.bufferedRequestCount=0}else{for(;z;){var mt=z.chunk,st=z.encoding,dt=z.callback,Tt=U.objectMode?1:mt.length;if(y(X,U,!1,Tt,mt,st,dt),z=z.next,U.bufferedRequestCount--,U.writing)break}z===null&&(U.lastBufferedRequest=null)}U.bufferedRequest=z,U.bufferProcessing=!1}le.prototype._write=function(X,U,z){z(new P("_write()"))},le.prototype._writev=null,le.prototype.end=function(X,U,z){var ie=this._writableState;return typeof X=="function"?(z=X,X=null,U=null):typeof U=="function"&&(z=U,U=null),X!=null&&this.write(X,U),ie.corked&&(ie.corked=1,this.uncork()),ie.ending||Q(this,ie,z),this},Object.defineProperty(le.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function d(X){return X.ending&&X.length===0&&X.bufferedRequest===null&&!X.finished&&!X.writing}function k(X,U){X._final(function(z){U.pendingcb--,z&&Z(X,z),U.prefinished=!0,X.emit("prefinish"),O(X,U)})}function D(X,U){!U.prefinished&&!U.finalCalled&&(typeof X._final=="function"&&!U.destroyed?(U.pendingcb++,U.finalCalled=!0,process$1.nextTick(k,X,U)):(U.prefinished=!0,X.emit("prefinish")))}function O(X,U){var z=d(U);if(z&&(D(X,U),U.pendingcb===0&&(U.finished=!0,X.emit("finish"),U.autoDestroy))){var ie=X._readableState;(!ie||ie.autoDestroy&&ie.endEmitted)&&X.destroy()}return z}function Q(X,U,z){U.ending=!0,O(X,U),z&&(U.finished?process$1.nextTick(z):X.once("finish",z)),U.ended=!0,X.writable=!1}function J(X,U,z){var ie=X.entry;for(X.entry=null;ie;){var de=ie.callback;U.pendingcb--,de(z),ie=ie.next}U.corkedRequestsFree.next=X}return Object.defineProperty(le.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(U){this._writableState&&(this._writableState.destroyed=U)}}),le.prototype.destroy=w.destroy,le.prototype._undestroy=w.undestroy,le.prototype._destroy=function(X,U){U(X)},_stream_writable$1}var _stream_duplex$1,hasRequired_stream_duplex$1;function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var n=Object.keys||function(A){var E=[];for(var C in A)E.push(C);return E};_stream_duplex$1=h;var e=require_stream_readable$1(),o=require_stream_writable$1();inherits_browserExports(h,e);for(var l=n(o.prototype),t=0;t<l.length;t++){var u=l[t];h.prototype[u]||(h.prototype[u]=o.prototype[u])}function h(A){if(!(this instanceof h))return new h(A);e.call(this,A),o.call(this,A),this.allowHalfOpen=!0,A&&(A.readable===!1&&(this.readable=!1),A.writable===!1&&(this.writable=!1),A.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",v)))}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function v(){this._writableState.ended||process$1.nextTick(w,this)}function w(A){A.end()}return Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=E,this._writableState.destroyed=E)}}),_stream_duplex$1}var string_decoder={},Buffer$A=safeBufferExports$1.Buffer,isEncoding=Buffer$A.isEncoding||function(n){switch(n=""+n,n&&n.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(n){if(!n)return"utf8";for(var e;;)switch(n){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return n;default:if(e)return;n=(""+n).toLowerCase(),e=!0}}function normalizeEncoding(n){var e=_normalizeEncoding(n);if(typeof e!="string"&&(Buffer$A.isEncoding===isEncoding||!isEncoding(n)))throw new Error("Unknown encoding: "+n);return e||n}string_decoder.StringDecoder=StringDecoder$1;function StringDecoder$1(n){this.encoding=normalizeEncoding(n);var e;switch(this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,e=4;break;case"utf8":this.fillLast=utf8FillLast,e=4;break;case"base64":this.text=base64Text,this.end=base64End,e=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer$A.allocUnsafe(e)}StringDecoder$1.prototype.write=function(n){if(n.length===0)return"";var e,o;if(this.lastNeed){if(e=this.fillLast(n),e===void 0)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o<n.length?e?e+this.text(n,o):this.text(n,o):e||""},StringDecoder$1.prototype.end=utf8End,StringDecoder$1.prototype.text=utf8Text,StringDecoder$1.prototype.fillLast=function(n){if(this.lastNeed<=n.length)return n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,n.length),this.lastNeed-=n.length};function utf8CheckByte(n){return n<=127?0:n>>5===6?2:n>>4===14?3:n>>3===30?4:n>>6===2?-1:-2}function utf8CheckIncomplete(n,e,o){var l=e.length-1;if(l<o)return 0;var t=utf8CheckByte(e[l]);return t>=0?(t>0&&(n.lastNeed=t-1),t):--l<o||t===-2?0:(t=utf8CheckByte(e[l]),t>=0?(t>0&&(n.lastNeed=t-2),t):--l<o||t===-2?0:(t=utf8CheckByte(e[l]),t>=0?(t>0&&(t===2?t=0:n.lastNeed=t-3),t):0))}function utf8CheckExtraBytes(n,e,o){if((e[0]&192)!==128)return n.lastNeed=0,"�";if(n.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return n.lastNeed=1,"�";if(n.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return n.lastNeed=2,"�"}}function utf8FillLast(n){var e=this.lastTotal-this.lastNeed,o=utf8CheckExtraBytes(this,n);if(o!==void 0)return o;if(this.lastNeed<=n.length)return n.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,e,0,n.length),this.lastNeed-=n.length}function utf8Text(n,e){var o=utf8CheckIncomplete(this,n,e);if(!this.lastNeed)return n.toString("utf8",e);this.lastTotal=o;var l=n.length-(o-this.lastNeed);return n.copy(this.lastChar,0,l),n.toString("utf8",e,l)}function utf8End(n){var e=n&&n.length?this.write(n):"";return this.lastNeed?e+"�":e}function utf16Text(n,e){if((n.length-e)%2===0){var o=n.toString("utf16le",e);if(o){var l=o.charCodeAt(o.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",e,n.length-1)}function utf16End(n){var e=n&&n.length?this.write(n):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,o)}return e}function base64Text(n,e){var o=(n.length-e)%3;return o===0?n.toString("base64",e):(this.lastNeed=3-o,this.lastTotal=3,o===1?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",e,n.length-o))}function base64End(n){var e=n&&n.length?this.write(n):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function simpleWrite(n){return n.toString(this.encoding)}function simpleEnd(n){return n&&n.length?this.write(n):""}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var n=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function e(u){var h=!1;return function(){if(!h){h=!0;for(var v=arguments.length,w=new Array(v),A=0;A<v;A++)w[A]=arguments[A];u.apply(this,w)}}}function o(){}function l(u){return u.setHeader&&typeof u.abort=="function"}function t(u,h,v){if(typeof h=="function")return t(u,null,h);h||(h={}),v=e(v||o);var w=h.readable||h.readable!==!1&&u.readable,A=h.writable||h.writable!==!1&&u.writable,E=function(){u.writable||M()},C=u._writableState&&u._writableState.finished,M=function(){A=!1,C=!0,w||v.call(u)},P=u._readableState&&u._readableState.endEmitted,I=function(){w=!1,P=!0,A||v.call(u)},j=function(ee){v.call(u,ee)},B=function(){var ee;if(w&&!P)return(!u._readableState||!u._readableState.ended)&&(ee=new n),v.call(u,ee);if(A&&!C)return(!u._writableState||!u._writableState.ended)&&(ee=new n),v.call(u,ee)},F=function(){u.req.on("finish",M)};return l(u)?(u.on("complete",M),u.on("abort",B),u.req?F():u.on("request",F)):A&&!u._writableState&&(u.on("end",E),u.on("close",E)),u.on("end",I),u.on("finish",M),h.error!==!1&&u.on("error",j),u.on("close",B),function(){u.removeListener("complete",M),u.removeListener("abort",B),u.removeListener("request",F),u.req&&u.req.removeListener("finish",M),u.removeListener("end",E),u.removeListener("close",E),u.removeListener("finish",M),u.removeListener("end",I),u.removeListener("error",j),u.removeListener("close",B)}}return endOfStream=t,endOfStream}var async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var n;function e(ee,Z,re){return Z=o(Z),Z in ee?Object.defineProperty(ee,Z,{value:re,enumerable:!0,configurable:!0,writable:!0}):ee[Z]=re,ee}function o(ee){var Z=l(ee,"string");return typeof Z=="symbol"?Z:String(Z)}function l(ee,Z){if(typeof ee!="object"||ee===null)return ee;var re=ee[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(ee,Z||"default");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Z==="string"?String:Number)(ee)}var t=requireEndOfStream(),u=Symbol("lastResolve"),h=Symbol("lastReject"),v=Symbol("error"),w=Symbol("ended"),A=Symbol("lastPromise"),E=Symbol("handlePromise"),C=Symbol("stream");function M(ee,Z){return{value:ee,done:Z}}function P(ee){var Z=ee[u];if(Z!==null){var re=ee[C].read();re!==null&&(ee[A]=null,ee[u]=null,ee[h]=null,Z(M(re,!1)))}}function I(ee){process$1.nextTick(P,ee)}function j(ee,Z){return function(re,fe){ee.then(function(){if(Z[w]){re(M(void 0,!0));return}Z[E](re,fe)},fe)}}var B=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((n={get stream(){return this[C]},next:function(){var Z=this,re=this[v];if(re!==null)return Promise.reject(re);if(this[w])return Promise.resolve(M(void 0,!0));if(this[C].destroyed)return new Promise(function(he,ye){process$1.nextTick(function(){Z[v]?ye(Z[v]):he(M(void 0,!0))})});var fe=this[A],V;if(fe)V=new Promise(j(fe,this));else{var le=this[C].read();if(le!==null)return Promise.resolve(M(le,!1));V=new Promise(this[E])}return this[A]=V,V}},e(n,Symbol.asyncIterator,function(){return this}),e(n,"return",function(){var Z=this;return new Promise(function(re,fe){Z[C].destroy(null,function(V){if(V){fe(V);return}re(M(void 0,!0))})})}),n),B),N=function(Z){var re,fe=Object.create(F,(re={},e(re,C,{value:Z,writable:!0}),e(re,u,{value:null,writable:!0}),e(re,h,{value:null,writable:!0}),e(re,v,{value:null,writable:!0}),e(re,w,{value:Z._readableState.endEmitted,writable:!0}),e(re,E,{value:function(le,he){var ye=fe[C].read();ye?(fe[A]=null,fe[u]=null,fe[h]=null,le(M(ye,!1))):(fe[u]=le,fe[h]=he)},writable:!0}),re));return fe[A]=null,t(Z,function(V){if(V&&V.code!=="ERR_STREAM_PREMATURE_CLOSE"){var le=fe[h];le!==null&&(fe[A]=null,fe[u]=null,fe[h]=null,le(V)),fe[v]=V;return}var he=fe[u];he!==null&&(fe[A]=null,fe[u]=null,fe[h]=null,he(M(void 0,!0))),fe[w]=!0}),Z.on("readable",I.bind(null,fe)),fe};return async_iterator=N,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable$1,hasRequired_stream_readable$1;function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1,_stream_readable$1=he;var n;he.ReadableState=le,requireEvents().EventEmitter;var e=function(pe,qe){return pe.listeners(qe).length},o=requireStreamBrowser(),l=require$$0$2.Buffer,t=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(me){return l.from(me)}function h(me){return l.isBuffer(me)||me instanceof t}var v=util$6,w;v&&v.debuglog?w=v.debuglog("stream"):w=function(){};var A=requireBuffer_list(),E=requireDestroy(),C=requireState(),M=C.getHighWaterMark,P=requireErrorsBrowser().codes,I=P.ERR_INVALID_ARG_TYPE,j=P.ERR_STREAM_PUSH_AFTER_EOF,B=P.ERR_METHOD_NOT_IMPLEMENTED,F=P.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,N,ee,Z;inherits_browserExports(he,o);var re=E.errorOrDestroy,fe=["error","close","destroy","pause","resume"];function V(me,pe,qe){if(typeof me.prependListener=="function")return me.prependListener(pe,qe);!me._events||!me._events[pe]?me.on(pe,qe):Array.isArray(me._events[pe])?me._events[pe].unshift(qe):me._events[pe]=[qe,me._events[pe]]}function le(me,pe,qe){n=n||require_stream_duplex$1(),me=me||{},typeof qe!="boolean"&&(qe=pe instanceof n),this.objectMode=!!me.objectMode,qe&&(this.objectMode=this.objectMode||!!me.readableObjectMode),this.highWaterMark=M(this,me,"readableHighWaterMark",qe),this.buffer=new A,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=me.emitClose!==!1,this.autoDestroy=!!me.autoDestroy,this.destroyed=!1,this.defaultEncoding=me.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,me.encoding&&(N||(N=string_decoder.StringDecoder),this.decoder=new N(me.encoding),this.encoding=me.encoding)}function he(me){if(n=n||require_stream_duplex$1(),!(this instanceof he))return new he(me);var pe=this instanceof n;this._readableState=new le(me,this,pe),this.readable=!0,me&&(typeof me.read=="function"&&(this._read=me.read),typeof me.destroy=="function"&&(this._destroy=me.destroy)),o.call(this)}Object.defineProperty(he.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(pe){this._readableState&&(this._readableState.destroyed=pe)}}),he.prototype.destroy=E.destroy,he.prototype._undestroy=E.undestroy,he.prototype._destroy=function(me,pe){pe(me)},he.prototype.push=function(me,pe){var qe=this._readableState,mt;return qe.objectMode?mt=!0:typeof me=="string"&&(pe=pe||qe.defaultEncoding,pe!==qe.encoding&&(me=l.from(me,pe),pe=""),mt=!0),ye(this,me,pe,!1,mt)},he.prototype.unshift=function(me){return ye(this,me,null,!0,!1)};function ye(me,pe,qe,mt,st){w("readableAddChunk",pe);var dt=me._readableState;if(pe===null)dt.reading=!1,m(me,dt);else{var Tt;if(st||(Tt=p(dt,pe)),Tt)re(me,Tt);else if(dt.objectMode||pe&&pe.length>0)if(typeof pe!="string"&&!dt.objectMode&&Object.getPrototypeOf(pe)!==l.prototype&&(pe=u(pe)),mt)dt.endEmitted?re(me,new F):L(me,dt,pe,!0);else if(dt.ended)re(me,new j);else{if(dt.destroyed)return!1;dt.reading=!1,dt.decoder&&!qe?(pe=dt.decoder.write(pe),dt.objectMode||pe.length!==0?L(me,dt,pe,!1):b(me,dt)):L(me,dt,pe,!1)}else mt||(dt.reading=!1,b(me,dt))}return!dt.ended&&(dt.length<dt.highWaterMark||dt.length===0)}function L(me,pe,qe,mt){pe.flowing&&pe.length===0&&!pe.sync?(pe.awaitDrain=0,me.emit("data",qe)):(pe.length+=pe.objectMode?1:qe.length,mt?pe.buffer.unshift(qe):pe.buffer.push(qe),pe.needReadable&&x(me)),b(me,pe)}function p(me,pe){var qe;return!h(pe)&&typeof pe!="string"&&pe!==void 0&&!me.objectMode&&(qe=new I("chunk",["string","Buffer","Uint8Array"],pe)),qe}he.prototype.isPaused=function(){return this._readableState.flowing===!1},he.prototype.setEncoding=function(me){N||(N=string_decoder.StringDecoder);var pe=new N(me);this._readableState.decoder=pe,this._readableState.encoding=this._readableState.decoder.encoding;for(var qe=this._readableState.buffer.head,mt="";qe!==null;)mt+=pe.write(qe.data),qe=qe.next;return this._readableState.buffer.clear(),mt!==""&&this._readableState.buffer.push(mt),this._readableState.length=mt.length,this};var y=1073741824;function S(me){return me>=y?me=y:(me--,me|=me>>>1,me|=me>>>2,me|=me>>>4,me|=me>>>8,me|=me>>>16,me++),me}function c(me,pe){return me<=0||pe.length===0&&pe.ended?0:pe.objectMode?1:me!==me?pe.flowing&&pe.length?pe.buffer.head.data.length:pe.length:(me>pe.highWaterMark&&(pe.highWaterMark=S(me)),me<=pe.length?me:pe.ended?pe.length:(pe.needReadable=!0,0))}he.prototype.read=function(me){w("read",me),me=parseInt(me,10);var pe=this._readableState,qe=me;if(me!==0&&(pe.emittedReadable=!1),me===0&&pe.needReadable&&((pe.highWaterMark!==0?pe.length>=pe.highWaterMark:pe.length>0)||pe.ended))return w("read: emitReadable",pe.length,pe.ended),pe.length===0&&pe.ended?z(this):x(this),null;if(me=c(me,pe),me===0&&pe.ended)return pe.length===0&&z(this),null;var mt=pe.needReadable;w("need readable",mt),(pe.length===0||pe.length-me<pe.highWaterMark)&&(mt=!0,w("length less than watermark",mt)),pe.ended||pe.reading?(mt=!1,w("reading or ended",mt)):mt&&(w("do read"),pe.reading=!0,pe.sync=!0,pe.length===0&&(pe.needReadable=!0),this._read(pe.highWaterMark),pe.sync=!1,pe.reading||(me=c(qe,pe)));var st;return me>0?st=U(me,pe):st=null,st===null?(pe.needReadable=pe.length<=pe.highWaterMark,me=0):(pe.length-=me,pe.awaitDrain=0),pe.length===0&&(pe.ended||(pe.needReadable=!0),qe!==me&&pe.ended&&z(this)),st!==null&&this.emit("data",st),st};function m(me,pe){if(w("onEofChunk"),!pe.ended){if(pe.decoder){var qe=pe.decoder.end();qe&&qe.length&&(pe.buffer.push(qe),pe.length+=pe.objectMode?1:qe.length)}pe.ended=!0,pe.sync?x(me):(pe.needReadable=!1,pe.emittedReadable||(pe.emittedReadable=!0,T(me)))}}function x(me){var pe=me._readableState;w("emitReadable",pe.needReadable,pe.emittedReadable),pe.needReadable=!1,pe.emittedReadable||(w("emitReadable",pe.flowing),pe.emittedReadable=!0,process$1.nextTick(T,me))}function T(me){var pe=me._readableState;w("emitReadable_",pe.destroyed,pe.length,pe.ended),!pe.destroyed&&(pe.length||pe.ended)&&(me.emit("readable"),pe.emittedReadable=!1),pe.needReadable=!pe.flowing&&!pe.ended&&pe.length<=pe.highWaterMark,X(me)}function b(me,pe){pe.readingMore||(pe.readingMore=!0,process$1.nextTick(d,me,pe))}function d(me,pe){for(;!pe.reading&&!pe.ended&&(pe.length<pe.highWaterMark||pe.flowing&&pe.length===0);){var qe=pe.length;if(w("maybeReadMore read 0"),me.read(0),qe===pe.length)break}pe.readingMore=!1}he.prototype._read=function(me){re(this,new B("_read()"))},he.prototype.pipe=function(me,pe){var qe=this,mt=this._readableState;switch(mt.pipesCount){case 0:mt.pipes=me;break;case 1:mt.pipes=[mt.pipes,me];break;default:mt.pipes.push(me);break}mt.pipesCount+=1,w("pipe count=%d opts=%j",mt.pipesCount,pe);var st=(!pe||pe.end!==!1)&&me!==process$1.stdout&&me!==process$1.stderr,dt=st?lt:Wt;mt.endEmitted?process$1.nextTick(dt):qe.once("end",dt),me.on("unpipe",Tt);function Tt(Et,Ct){w("onunpipe"),Et===qe&&Ct&&Ct.hasUnpiped===!1&&(Ct.hasUnpiped=!0,at())}function lt(){w("onend"),me.end()}var Je=k(qe);me.on("drain",Je);var ht=!1;function at(){w("cleanup"),me.removeListener("close",Ge),me.removeListener("finish",Qe),me.removeListener("drain",Je),me.removeListener("error",jt),me.removeListener("unpipe",Tt),qe.removeListener("end",lt),qe.removeListener("end",Wt),qe.removeListener("data",bt),ht=!0,mt.awaitDrain&&(!me._writableState||me._writableState.needDrain)&&Je()}qe.on("data",bt);function bt(Et){w("ondata");var Ct=me.write(Et);w("dest.write",Ct),Ct===!1&&((mt.pipesCount===1&&mt.pipes===me||mt.pipesCount>1&&de(mt.pipes,me)!==-1)&&!ht&&(w("false write response, pause",mt.awaitDrain),mt.awaitDrain++),qe.pause())}function jt(Et){w("onerror",Et),Wt(),me.removeListener("error",jt),e(me,"error")===0&&re(me,Et)}V(me,"error",jt);function Ge(){me.removeListener("finish",Qe),Wt()}me.once("close",Ge);function Qe(){w("onfinish"),me.removeListener("close",Ge),Wt()}me.once("finish",Qe);function Wt(){w("unpipe"),qe.unpipe(me)}return me.emit("pipe",qe),mt.flowing||(w("pipe resume"),qe.resume()),me};function k(me){return function(){var qe=me._readableState;w("pipeOnDrain",qe.awaitDrain),qe.awaitDrain&&qe.awaitDrain--,qe.awaitDrain===0&&e(me,"data")&&(qe.flowing=!0,X(me))}}he.prototype.unpipe=function(me){var pe=this._readableState,qe={hasUnpiped:!1};if(pe.pipesCount===0)return this;if(pe.pipesCount===1)return me&&me!==pe.pipes?this:(me||(me=pe.pipes),pe.pipes=null,pe.pipesCount=0,pe.flowing=!1,me&&me.emit("unpipe",this,qe),this);if(!me){var mt=pe.pipes,st=pe.pipesCount;pe.pipes=null,pe.pipesCount=0,pe.flowing=!1;for(var dt=0;dt<st;dt++)mt[dt].emit("unpipe",this,{hasUnpiped:!1});return this}var Tt=de(pe.pipes,me);return Tt===-1?this:(pe.pipes.splice(Tt,1),pe.pipesCount-=1,pe.pipesCount===1&&(pe.pipes=pe.pipes[0]),me.emit("unpipe",this,qe),this)},he.prototype.on=function(me,pe){var qe=o.prototype.on.call(this,me,pe),mt=this._readableState;return me==="data"?(mt.readableListening=this.listenerCount("readable")>0,mt.flowing!==!1&&this.resume()):me==="readable"&&!mt.endEmitted&&!mt.readableListening&&(mt.readableListening=mt.needReadable=!0,mt.flowing=!1,mt.emittedReadable=!1,w("on readable",mt.length,mt.reading),mt.length?x(this):mt.reading||process$1.nextTick(O,this)),qe},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(me,pe){var qe=o.prototype.removeListener.call(this,me,pe);return me==="readable"&&process$1.nextTick(D,this),qe},he.prototype.removeAllListeners=function(me){var pe=o.prototype.removeAllListeners.apply(this,arguments);return(me==="readable"||me===void 0)&&process$1.nextTick(D,this),pe};function D(me){var pe=me._readableState;pe.readableListening=me.listenerCount("readable")>0,pe.resumeScheduled&&!pe.paused?pe.flowing=!0:me.listenerCount("data")>0&&me.resume()}function O(me){w("readable nexttick read 0"),me.read(0)}he.prototype.resume=function(){var me=this._readableState;return me.flowing||(w("resume"),me.flowing=!me.readableListening,Q(this,me)),me.paused=!1,this};function Q(me,pe){pe.resumeScheduled||(pe.resumeScheduled=!0,process$1.nextTick(J,me,pe))}function J(me,pe){w("resume",pe.reading),pe.reading||me.read(0),pe.resumeScheduled=!1,me.emit("resume"),X(me),pe.flowing&&!pe.reading&&me.read(0)}he.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function X(me){var pe=me._readableState;for(w("flow",pe.flowing);pe.flowing&&me.read()!==null;);}he.prototype.wrap=function(me){var pe=this,qe=this._readableState,mt=!1;me.on("end",function(){if(w("wrapped end"),qe.decoder&&!qe.ended){var Tt=qe.decoder.end();Tt&&Tt.length&&pe.push(Tt)}pe.push(null)}),me.on("data",function(Tt){if(w("wrapped data"),qe.decoder&&(Tt=qe.decoder.write(Tt)),!(qe.objectMode&&Tt==null)&&!(!qe.objectMode&&(!Tt||!Tt.length))){var lt=pe.push(Tt);lt||(mt=!0,me.pause())}});for(var st in me)this[st]===void 0&&typeof me[st]=="function"&&(this[st]=function(lt){return function(){return me[lt].apply(me,arguments)}}(st));for(var dt=0;dt<fe.length;dt++)me.on(fe[dt],this.emit.bind(this,fe[dt]));return this._read=function(Tt){w("wrapped _read",Tt),mt&&(mt=!1,me.resume())},this},typeof Symbol=="function"&&(he.prototype[Symbol.asyncIterator]=function(){return ee===void 0&&(ee=requireAsync_iterator()),ee(this)}),Object.defineProperty(he.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(he.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(he.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(pe){this._readableState&&(this._readableState.flowing=pe)}}),he._fromList=U,Object.defineProperty(he.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function U(me,pe){if(pe.length===0)return null;var qe;return pe.objectMode?qe=pe.buffer.shift():!me||me>=pe.length?(pe.decoder?qe=pe.buffer.join(""):pe.buffer.length===1?qe=pe.buffer.first():qe=pe.buffer.concat(pe.length),pe.buffer.clear()):qe=pe.buffer.consume(me,pe.decoder),qe}function z(me){var pe=me._readableState;w("endReadable",pe.endEmitted),pe.endEmitted||(pe.ended=!0,process$1.nextTick(ie,pe,me))}function ie(me,pe){if(w("endReadableNT",me.endEmitted,me.length),!me.endEmitted&&me.length===0&&(me.endEmitted=!0,pe.readable=!1,pe.emit("end"),me.autoDestroy)){var qe=pe._writableState;(!qe||qe.autoDestroy&&qe.finished)&&pe.destroy()}}typeof Symbol=="function"&&(he.from=function(me,pe){return Z===void 0&&(Z=requireFromBrowser()),Z(he,me,pe)});function de(me,pe){for(var qe=0,mt=me.length;qe<mt;qe++)if(me[qe]===pe)return qe;return-1}return _stream_readable$1}var _stream_transform$1,hasRequired_stream_transform;function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform$1;hasRequired_stream_transform=1,_stream_transform$1=v;var n=requireErrorsBrowser().codes,e=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,l=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,t=n.ERR_TRANSFORM_WITH_LENGTH_0,u=require_stream_duplex$1();inherits_browserExports(v,u);function h(E,C){var M=this._transformState;M.transforming=!1;var P=M.writecb;if(P===null)return this.emit("error",new o);M.writechunk=null,M.writecb=null,C!=null&&this.push(C),P(E);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function v(E){if(!(this instanceof v))return new v(E);u.call(this,E),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&(typeof E.transform=="function"&&(this._transform=E.transform),typeof E.flush=="function"&&(this._flush=E.flush)),this.on("prefinish",w)}function w(){var E=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(C,M){A(E,C,M)}):A(this,null,null)}v.prototype.push=function(E,C){return this._transformState.needTransform=!1,u.prototype.push.call(this,E,C)},v.prototype._transform=function(E,C,M){M(new e("_transform()"))},v.prototype._write=function(E,C,M){var P=this._transformState;if(P.writecb=M,P.writechunk=E,P.writeencoding=C,!P.transforming){var I=this._readableState;(P.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},v.prototype._read=function(E){var C=this._transformState;C.writechunk!==null&&!C.transforming?(C.transforming=!0,this._transform(C.writechunk,C.writeencoding,C.afterTransform)):C.needTransform=!0},v.prototype._destroy=function(E,C){u.prototype._destroy.call(this,E,function(M){C(M)})};function A(E,C,M){if(C)return E.emit("error",C);if(M!=null&&E.push(M),E._writableState.length)throw new t;if(E._transformState.transforming)throw new l;return E.push(null)}return _stream_transform$1}var _stream_passthrough$1,hasRequired_stream_passthrough;function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough$1;hasRequired_stream_passthrough=1,_stream_passthrough$1=e;var n=require_stream_transform();inherits_browserExports(e,n);function e(o){if(!(this instanceof e))return new e(o);n.call(this,o)}return e.prototype._transform=function(o,l,t){t(null,o)},_stream_passthrough$1}var pipeline_1,hasRequiredPipeline;function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;hasRequiredPipeline=1;var n;function e(M){var P=!1;return function(){P||(P=!0,M.apply(void 0,arguments))}}var o=requireErrorsBrowser().codes,l=o.ERR_MISSING_ARGS,t=o.ERR_STREAM_DESTROYED;function u(M){if(M)throw M}function h(M){return M.setHeader&&typeof M.abort=="function"}function v(M,P,I,j){j=e(j);var B=!1;M.on("close",function(){B=!0}),n===void 0&&(n=requireEndOfStream()),n(M,{readable:P,writable:I},function(N){if(N)return j(N);B=!0,j()});var F=!1;return function(N){if(!B&&!F){if(F=!0,h(M))return M.abort();if(typeof M.destroy=="function")return M.destroy();j(N||new t("pipe"))}}}function w(M){M()}function A(M,P){return M.pipe(P)}function E(M){return!M.length||typeof M[M.length-1]!="function"?u:M.pop()}function C(){for(var M=arguments.length,P=new Array(M),I=0;I<M;I++)P[I]=arguments[I];var j=E(P);if(Array.isArray(P[0])&&(P=P[0]),P.length<2)throw new l("streams");var B,F=P.map(function(N,ee){var Z=ee<P.length-1,re=ee>0;return v(N,Z,re,function(fe){B||(B=fe),fe&&F.forEach(w),!Z&&(F.forEach(w),j(B))})});return P.reduce(A)}return pipeline_1=C,pipeline_1}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=o;var n=requireEvents().EventEmitter,e=inherits_browserExports;e(o,n),o.Readable=require_stream_readable$1(),o.Writable=require_stream_writable$1(),o.Duplex=require_stream_duplex$1(),o.Transform=require_stream_transform(),o.PassThrough=require_stream_passthrough(),o.finished=requireEndOfStream(),o.pipeline=requirePipeline(),o.Stream=o;function o(){n.call(this)}return o.prototype.pipe=function(l,t){var u=this;function h(P){l.writable&&l.write(P)===!1&&u.pause&&u.pause()}u.on("data",h);function v(){u.readable&&u.resume&&u.resume()}l.on("drain",v),!l._isStdio&&(!t||t.end!==!1)&&(u.on("end",A),u.on("close",E));var w=!1;function A(){w||(w=!0,l.end())}function E(){w||(w=!0,typeof l.destroy=="function"&&l.destroy())}function C(P){if(M(),n.listenerCount(this,"error")===0)throw P}u.on("error",C),l.on("error",C);function M(){u.removeListener("data",h),l.removeListener("drain",v),u.removeListener("end",A),u.removeListener("close",E),u.removeListener("error",C),l.removeListener("error",C),u.removeListener("end",M),u.removeListener("close",M),l.removeListener("close",M)}return u.on("end",M),u.on("close",M),l.on("close",M),l.emit("pipe",u),l},streamBrowserify}var Buffer$z=safeBufferExports$1.Buffer,Transform$7=requireStreamBrowserify().Transform,inherits$p=inherits_browserExports;function throwIfNotStringOrBuffer(n,e){if(!Buffer$z.isBuffer(n)&&typeof n!="string")throw new TypeError(e+" must be a string or a buffer")}function HashBase$2(n){Transform$7.call(this),this._block=Buffer$z.allocUnsafe(n),this._blockSize=n,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$p(HashBase$2,Transform$7),HashBase$2.prototype._transform=function(n,e,o){var l=null;try{this.update(n,e)}catch(t){l=t}o(l)},HashBase$2.prototype._flush=function(n){var e=null;try{this.push(this.digest())}catch(o){e=o}n(e)},HashBase$2.prototype.update=function(n,e){if(throwIfNotStringOrBuffer(n,"Data"),this._finalized)throw new Error("Digest already called");Buffer$z.isBuffer(n)||(n=Buffer$z.from(n,e));for(var o=this._block,l=0;this._blockOffset+n.length-l>=this._blockSize;){for(var t=this._blockOffset;t<this._blockSize;)o[t++]=n[l++];this._update(),this._blockOffset=0}for(;l<n.length;)o[this._blockOffset++]=n[l++];for(var u=0,h=n.length*8;h>0;++u)this._length[u]+=h,h=this._length[u]/4294967296|0,h>0&&(this._length[u]-=4294967296*h);return this},HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")},HashBase$2.prototype.digest=function(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();n!==void 0&&(e=e.toString(n)),this._block.fill(0),this._blockOffset=0;for(var o=0;o<4;++o)this._length[o]=0;return e},HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$o=inherits_browserExports,HashBase$1=hashBase,Buffer$y=safeBufferExports$1.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$o(MD5$3,HashBase$1),MD5$3.prototype._update=function(){for(var n=ARRAY16$1,e=0;e<16;++e)n[e]=this._block.readInt32LE(e*4);var o=this._a,l=this._b,t=this._c,u=this._d;o=fnF(o,l,t,u,n[0],3614090360,7),u=fnF(u,o,l,t,n[1],3905402710,12),t=fnF(t,u,o,l,n[2],606105819,17),l=fnF(l,t,u,o,n[3],3250441966,22),o=fnF(o,l,t,u,n[4],4118548399,7),u=fnF(u,o,l,t,n[5],1200080426,12),t=fnF(t,u,o,l,n[6],2821735955,17),l=fnF(l,t,u,o,n[7],4249261313,22),o=fnF(o,l,t,u,n[8],1770035416,7),u=fnF(u,o,l,t,n[9],2336552879,12),t=fnF(t,u,o,l,n[10],4294925233,17),l=fnF(l,t,u,o,n[11],2304563134,22),o=fnF(o,l,t,u,n[12],1804603682,7),u=fnF(u,o,l,t,n[13],4254626195,12),t=fnF(t,u,o,l,n[14],2792965006,17),l=fnF(l,t,u,o,n[15],1236535329,22),o=fnG(o,l,t,u,n[1],4129170786,5),u=fnG(u,o,l,t,n[6],3225465664,9),t=fnG(t,u,o,l,n[11],643717713,14),l=fnG(l,t,u,o,n[0],3921069994,20),o=fnG(o,l,t,u,n[5],3593408605,5),u=fnG(u,o,l,t,n[10],38016083,9),t=fnG(t,u,o,l,n[15],3634488961,14),l=fnG(l,t,u,o,n[4],3889429448,20),o=fnG(o,l,t,u,n[9],568446438,5),u=fnG(u,o,l,t,n[14],3275163606,9),t=fnG(t,u,o,l,n[3],4107603335,14),l=fnG(l,t,u,o,n[8],1163531501,20),o=fnG(o,l,t,u,n[13],2850285829,5),u=fnG(u,o,l,t,n[2],4243563512,9),t=fnG(t,u,o,l,n[7],1735328473,14),l=fnG(l,t,u,o,n[12],2368359562,20),o=fnH(o,l,t,u,n[5],4294588738,4),u=fnH(u,o,l,t,n[8],2272392833,11),t=fnH(t,u,o,l,n[11],1839030562,16),l=fnH(l,t,u,o,n[14],4259657740,23),o=fnH(o,l,t,u,n[1],2763975236,4),u=fnH(u,o,l,t,n[4],1272893353,11),t=fnH(t,u,o,l,n[7],4139469664,16),l=fnH(l,t,u,o,n[10],3200236656,23),o=fnH(o,l,t,u,n[13],681279174,4),u=fnH(u,o,l,t,n[0],3936430074,11),t=fnH(t,u,o,l,n[3],3572445317,16),l=fnH(l,t,u,o,n[6],76029189,23),o=fnH(o,l,t,u,n[9],3654602809,4),u=fnH(u,o,l,t,n[12],3873151461,11),t=fnH(t,u,o,l,n[15],530742520,16),l=fnH(l,t,u,o,n[2],3299628645,23),o=fnI(o,l,t,u,n[0],4096336452,6),u=fnI(u,o,l,t,n[7],1126891415,10),t=fnI(t,u,o,l,n[14],2878612391,15),l=fnI(l,t,u,o,n[5],4237533241,21),o=fnI(o,l,t,u,n[12],1700485571,6),u=fnI(u,o,l,t,n[3],2399980690,10),t=fnI(t,u,o,l,n[10],4293915773,15),l=fnI(l,t,u,o,n[1],2240044497,21),o=fnI(o,l,t,u,n[8],1873313359,6),u=fnI(u,o,l,t,n[15],4264355552,10),t=fnI(t,u,o,l,n[6],2734768916,15),l=fnI(l,t,u,o,n[13],1309151649,21),o=fnI(o,l,t,u,n[4],4149444226,6),u=fnI(u,o,l,t,n[11],3174756917,10),t=fnI(t,u,o,l,n[2],718787259,15),l=fnI(l,t,u,o,n[9],3951481745,21),this._a=this._a+o|0,this._b=this._b+l|0,this._c=this._c+t|0,this._d=this._d+u|0},MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var n=Buffer$y.allocUnsafe(16);return n.writeInt32LE(this._a,0),n.writeInt32LE(this._b,4),n.writeInt32LE(this._c,8),n.writeInt32LE(this._d,12),n};function rotl$1(n,e){return n<<e|n>>>32-e}function fnF(n,e,o,l,t,u,h){return rotl$1(n+(e&o|~e&l)+t+u|0,h)+e|0}function fnG(n,e,o,l,t,u,h){return rotl$1(n+(e&l|o&~l)+t+u|0,h)+e|0}function fnH(n,e,o,l,t,u,h){return rotl$1(n+(e^o^l)+t+u|0,h)+e|0}function fnI(n,e,o,l,t,u,h){return rotl$1(n+(o^(e|~l))+t+u|0,h)+e|0}var md5_js=MD5$3,Buffer$x=require$$0$2.Buffer,inherits$n=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$4(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$n(RIPEMD160$4,HashBase),RIPEMD160$4.prototype._update=function(){for(var n=ARRAY16,e=0;e<16;++e)n[e]=this._block.readInt32LE(e*4);for(var o=this._a|0,l=this._b|0,t=this._c|0,u=this._d|0,h=this._e|0,v=this._a|0,w=this._b|0,A=this._c|0,E=this._d|0,C=this._e|0,M=0;M<80;M+=1){var P,I;M<16?(P=fn1(o,l,t,u,h,n[zl[M]],hl[0],sl[M]),I=fn5(v,w,A,E,C,n[zr[M]],hr[0],sr[M])):M<32?(P=fn2(o,l,t,u,h,n[zl[M]],hl[1],sl[M]),I=fn4(v,w,A,E,C,n[zr[M]],hr[1],sr[M])):M<48?(P=fn3(o,l,t,u,h,n[zl[M]],hl[2],sl[M]),I=fn3(v,w,A,E,C,n[zr[M]],hr[2],sr[M])):M<64?(P=fn4(o,l,t,u,h,n[zl[M]],hl[3],sl[M]),I=fn2(v,w,A,E,C,n[zr[M]],hr[3],sr[M])):(P=fn5(o,l,t,u,h,n[zl[M]],hl[4],sl[M]),I=fn1(v,w,A,E,C,n[zr[M]],hr[4],sr[M])),o=h,h=u,u=rotl(t,10),t=l,l=P,v=C,C=E,E=rotl(A,10),A=w,w=I}var j=this._b+t+E|0;this._b=this._c+u+C|0,this._c=this._d+h+v|0,this._d=this._e+o+w|0,this._e=this._a+l+A|0,this._a=j},RIPEMD160$4.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var n=Buffer$x.alloc?Buffer$x.alloc(20):new Buffer$x(20);return n.writeInt32LE(this._a,0),n.writeInt32LE(this._b,4),n.writeInt32LE(this._c,8),n.writeInt32LE(this._d,12),n.writeInt32LE(this._e,16),n};function rotl(n,e){return n<<e|n>>>32-e}function fn1(n,e,o,l,t,u,h,v){return rotl(n+(e^o^l)+u+h|0,v)+t|0}function fn2(n,e,o,l,t,u,h,v){return rotl(n+(e&o|~e&l)+u+h|0,v)+t|0}function fn3(n,e,o,l,t,u,h,v){return rotl(n+((e|~o)^l)+u+h|0,v)+t|0}function fn4(n,e,o,l,t,u,h,v){return rotl(n+(e&l|o&~l)+u+h|0,v)+t|0}function fn5(n,e,o,l,t,u,h,v){return rotl(n+(e^(o|~l))+u+h|0,v)+t|0}var ripemd160=RIPEMD160$4,sha_js={exports:{}},Buffer$w=safeBufferExports$1.Buffer;function Hash$7(n,e){this._block=Buffer$w.alloc(n),this._finalSize=e,this._blockSize=n,this._len=0}Hash$7.prototype.update=function(n,e){typeof n=="string"&&(e=e||"utf8",n=Buffer$w.from(n,e));for(var o=this._block,l=this._blockSize,t=n.length,u=this._len,h=0;h<t;){for(var v=u%l,w=Math.min(t-h,l-v),A=0;A<w;A++)o[v+A]=n[h+A];u+=w,h+=w,u%l===0&&this._update(o)}return this._len+=t,this},Hash$7.prototype.digest=function(n){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=this._len*8;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var l=(o&4294967295)>>>0,t=(o-l)/4294967296;this._block.writeUInt32BE(t,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var u=this._hash();return n?u.toString(n):u},Hash$7.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$3=Hash$7,inherits$m=inherits_browserExports,Hash$6=hash$3,Buffer$v=safeBufferExports$1.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$6.call(this,64,56)}inherits$m(Sha,Hash$6),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(n){return n<<5|n>>>27}function rotl30$1(n){return n<<30|n>>>2}function ft$1(n,e,o,l){return n===0?e&o|~e&l:n===2?e&o|e&l|o&l:e^o^l}Sha.prototype._update=function(n){for(var e=this._w,o=this._a|0,l=this._b|0,t=this._c|0,u=this._d|0,h=this._e|0,v=0;v<16;++v)e[v]=n.readInt32BE(v*4);for(;v<80;++v)e[v]=e[v-3]^e[v-8]^e[v-14]^e[v-16];for(var w=0;w<80;++w){var A=~~(w/20),E=rotl5$1(o)+ft$1(A,l,t,u)+h+e[w]+K$4[A]|0;h=u,u=t,t=rotl30$1(l),l=o,o=E}this._a=o+this._a|0,this._b=l+this._b|0,this._c=t+this._c|0,this._d=u+this._d|0,this._e=h+this._e|0},Sha.prototype._hash=function(){var n=Buffer$v.allocUnsafe(20);return n.writeInt32BE(this._a|0,0),n.writeInt32BE(this._b|0,4),n.writeInt32BE(this._c|0,8),n.writeInt32BE(this._d|0,12),n.writeInt32BE(this._e|0,16),n};var sha$4=Sha,inherits$l=inherits_browserExports,Hash$5=hash$3,Buffer$u=safeBufferExports$1.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$5.call(this,64,56)}inherits$l(Sha1,Hash$5),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(n){return n<<1|n>>>31}function rotl5(n){return n<<5|n>>>27}function rotl30(n){return n<<30|n>>>2}function ft(n,e,o,l){return n===0?e&o|~e&l:n===2?e&o|e&l|o&l:e^o^l}Sha1.prototype._update=function(n){for(var e=this._w,o=this._a|0,l=this._b|0,t=this._c|0,u=this._d|0,h=this._e|0,v=0;v<16;++v)e[v]=n.readInt32BE(v*4);for(;v<80;++v)e[v]=rotl1(e[v-3]^e[v-8]^e[v-14]^e[v-16]);for(var w=0;w<80;++w){var A=~~(w/20),E=rotl5(o)+ft(A,l,t,u)+h+e[w]+K$3[A]|0;h=u,u=t,t=rotl30(l),l=o,o=E}this._a=o+this._a|0,this._b=l+this._b|0,this._c=t+this._c|0,this._d=u+this._d|0,this._e=h+this._e|0},Sha1.prototype._hash=function(){var n=Buffer$u.allocUnsafe(20);return n.writeInt32BE(this._a|0,0),n.writeInt32BE(this._b|0,4),n.writeInt32BE(this._c|0,8),n.writeInt32BE(this._d|0,12),n.writeInt32BE(this._e|0,16),n};var sha1$2=Sha1,inherits$k=inherits_browserExports,Hash$4=hash$3,Buffer$t=safeBufferExports$1.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$4.call(this,64,56)}inherits$k(Sha256$1,Hash$4),Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(n,e,o){return o^n&(e^o)}function maj$1(n,e,o){return n&e|o&(n|e)}function sigma0$1(n){return(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10)}function sigma1$1(n){return(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7)}function gamma0(n){return(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3}function gamma1(n){return(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10}Sha256$1.prototype._update=function(n){for(var e=this._w,o=this._a|0,l=this._b|0,t=this._c|0,u=this._d|0,h=this._e|0,v=this._f|0,w=this._g|0,A=this._h|0,E=0;E<16;++E)e[E]=n.readInt32BE(E*4);for(;E<64;++E)e[E]=gamma1(e[E-2])+e[E-7]+gamma0(e[E-15])+e[E-16]|0;for(var C=0;C<64;++C){var M=A+sigma1$1(h)+ch(h,v,w)+K$2[C]+e[C]|0,P=sigma0$1(o)+maj$1(o,l,t)|0;A=w,w=v,v=h,h=u+M|0,u=t,t=l,l=o,o=M+P|0}this._a=o+this._a|0,this._b=l+this._b|0,this._c=t+this._c|0,this._d=u+this._d|0,this._e=h+this._e|0,this._f=v+this._f|0,this._g=w+this._g|0,this._h=A+this._h|0},Sha256$1.prototype._hash=function(){var n=Buffer$t.allocUnsafe(32);return n.writeInt32BE(this._a,0),n.writeInt32BE(this._b,4),n.writeInt32BE(this._c,8),n.writeInt32BE(this._d,12),n.writeInt32BE(this._e,16),n.writeInt32BE(this._f,20),n.writeInt32BE(this._g,24),n.writeInt32BE(this._h,28),n};var sha256$1=Sha256$1,inherits$j=inherits_browserExports,Sha256=sha256$1,Hash$3=hash$3,Buffer$s=safeBufferExports$1.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$3.call(this,64,56)}inherits$j(Sha224,Sha256),Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Sha224.prototype._hash=function(){var n=Buffer$s.allocUnsafe(28);return n.writeInt32BE(this._a,0),n.writeInt32BE(this._b,4),n.writeInt32BE(this._c,8),n.writeInt32BE(this._d,12),n.writeInt32BE(this._e,16),n.writeInt32BE(this._f,20),n.writeInt32BE(this._g,24),n};var sha224$1=Sha224,inherits$i=inherits_browserExports,Hash$2=hash$3,Buffer$r=safeBufferExports$1.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$2.call(this,128,112)}inherits$i(Sha512,Hash$2),Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(n,e,o){return o^n&(e^o)}function maj(n,e,o){return n&e|o&(n|e)}function sigma0(n,e){return(n>>>28|e<<4)^(e>>>2|n<<30)^(e>>>7|n<<25)}function sigma1(n,e){return(n>>>14|e<<18)^(n>>>18|e<<14)^(e>>>9|n<<23)}function Gamma0(n,e){return(n>>>1|e<<31)^(n>>>8|e<<24)^n>>>7}function Gamma0l(n,e){return(n>>>1|e<<31)^(n>>>8|e<<24)^(n>>>7|e<<25)}function Gamma1(n,e){return(n>>>19|e<<13)^(e>>>29|n<<3)^n>>>6}function Gamma1l(n,e){return(n>>>19|e<<13)^(e>>>29|n<<3)^(n>>>6|e<<26)}function getCarry(n,e){return n>>>0<e>>>0?1:0}Sha512.prototype._update=function(n){for(var e=this._w,o=this._ah|0,l=this._bh|0,t=this._ch|0,u=this._dh|0,h=this._eh|0,v=this._fh|0,w=this._gh|0,A=this._hh|0,E=this._al|0,C=this._bl|0,M=this._cl|0,P=this._dl|0,I=this._el|0,j=this._fl|0,B=this._gl|0,F=this._hl|0,N=0;N<32;N+=2)e[N]=n.readInt32BE(N*4),e[N+1]=n.readInt32BE(N*4+4);for(;N<160;N+=2){var ee=e[N-30],Z=e[N-15*2+1],re=Gamma0(ee,Z),fe=Gamma0l(Z,ee);ee=e[N-2*2],Z=e[N-2*2+1];var V=Gamma1(ee,Z),le=Gamma1l(Z,ee),he=e[N-7*2],ye=e[N-7*2+1],L=e[N-16*2],p=e[N-16*2+1],y=fe+ye|0,S=re+he+getCarry(y,fe)|0;y=y+le|0,S=S+V+getCarry(y,le)|0,y=y+p|0,S=S+L+getCarry(y,p)|0,e[N]=S,e[N+1]=y}for(var c=0;c<160;c+=2){S=e[c],y=e[c+1];var m=maj(o,l,t),x=maj(E,C,M),T=sigma0(o,E),b=sigma0(E,o),d=sigma1(h,I),k=sigma1(I,h),D=K$1[c],O=K$1[c+1],Q=Ch(h,v,w),J=Ch(I,j,B),X=F+k|0,U=A+d+getCarry(X,F)|0;X=X+J|0,U=U+Q+getCarry(X,J)|0,X=X+O|0,U=U+D+getCarry(X,O)|0,X=X+y|0,U=U+S+getCarry(X,y)|0;var z=b+x|0,ie=T+m+getCarry(z,b)|0;A=w,F=B,w=v,B=j,v=h,j=I,I=P+X|0,h=u+U+getCarry(I,P)|0,u=t,P=M,t=l,M=C,l=o,C=E,E=X+z|0,o=U+ie+getCarry(E,X)|0}this._al=this._al+E|0,this._bl=this._bl+C|0,this._cl=this._cl+M|0,this._dl=this._dl+P|0,this._el=this._el+I|0,this._fl=this._fl+j|0,this._gl=this._gl+B|0,this._hl=this._hl+F|0,this._ah=this._ah+o+getCarry(this._al,E)|0,this._bh=this._bh+l+getCarry(this._bl,C)|0,this._ch=this._ch+t+getCarry(this._cl,M)|0,this._dh=this._dh+u+getCarry(this._dl,P)|0,this._eh=this._eh+h+getCarry(this._el,I)|0,this._fh=this._fh+v+getCarry(this._fl,j)|0,this._gh=this._gh+w+getCarry(this._gl,B)|0,this._hh=this._hh+A+getCarry(this._hl,F)|0},Sha512.prototype._hash=function(){var n=Buffer$r.allocUnsafe(64);function e(o,l,t){n.writeInt32BE(o,t),n.writeInt32BE(l,t+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),n};var sha512$1=Sha512,inherits$h=inherits_browserExports,SHA512$2=sha512$1,Hash$1=hash$3,Buffer$q=safeBufferExports$1.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$1.call(this,128,112)}inherits$h(Sha384,SHA512$2),Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Sha384.prototype._hash=function(){var n=Buffer$q.allocUnsafe(48);function e(o,l,t){n.writeInt32BE(o,t),n.writeInt32BE(l,t+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),n};var sha384$1=Sha384,exports$1=sha_js.exports=function(e){e=e.toLowerCase();var o=exports$1[e];if(!o)throw new Error(e+" is not supported (we accept pull requests)");return new o};exports$1.sha=sha$4,exports$1.sha1=sha1$2,exports$1.sha224=sha224$1,exports$1.sha256=sha256$1,exports$1.sha384=sha384$1,exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,Buffer$p=safeBufferExports$1.Buffer,Transform$6=requireStreamBrowserify().Transform,StringDecoder=string_decoder.StringDecoder,inherits$g=inherits_browserExports;function CipherBase$1(n){Transform$6.call(this),this.hashMode=typeof n=="string",this.hashMode?this[n]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$g(CipherBase$1,Transform$6),CipherBase$1.prototype.update=function(n,e,o){typeof n=="string"&&(n=Buffer$p.from(n,e));var l=this._update(n);return this.hashMode?this:(o&&(l=this._toString(l,o)),l)},CipherBase$1.prototype.setAutoPadding=function(){},CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},CipherBase$1.prototype._transform=function(n,e,o){var l;try{this.hashMode?this._update(n):this.push(this._update(n))}catch(t){l=t}finally{o(l)}},CipherBase$1.prototype._flush=function(n){var e;try{this.push(this.__final())}catch(o){e=o}n(e)},CipherBase$1.prototype._finalOrDigest=function(n){var e=this.__final()||Buffer$p.alloc(0);return n&&(e=this._toString(e,n,!0)),e},CipherBase$1.prototype._toString=function(n,e,o){if(this._decoder||(this._decoder=new StringDecoder(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var l=this._decoder.write(n);return o&&(l+=this._decoder.end()),l};var cipherBase=CipherBase$1,inherits$f=inherits_browserExports,MD5$2=md5_js,RIPEMD160$3=ripemd160,sha$3=sha_jsExports,Base$5=cipherBase;function Hash(n){Base$5.call(this,"digest"),this._hash=n}inherits$f(Hash,Base$5),Hash.prototype._update=function(n){this._hash.update(n)},Hash.prototype._final=function(){return this._hash.digest()};var browser$b=function(e){return e=e.toLowerCase(),e==="md5"?new MD5$2:e==="rmd160"||e==="ripemd160"?new RIPEMD160$3:new Hash(sha$3(e))},inherits$e=inherits_browserExports,Buffer$o=safeBufferExports$1.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$o.alloc(128),blocksize=64;function Hmac$3(n,e){Base$4.call(this,"digest"),typeof e=="string"&&(e=Buffer$o.from(e)),this._alg=n,this._key=e,e.length>blocksize?e=n(e):e.length<blocksize&&(e=Buffer$o.concat([e,ZEROS$2],blocksize));for(var o=this._ipad=Buffer$o.allocUnsafe(blocksize),l=this._opad=Buffer$o.allocUnsafe(blocksize),t=0;t<blocksize;t++)o[t]=e[t]^54,l[t]=e[t]^92;this._hash=[o]}inherits$e(Hmac$3,Base$4),Hmac$3.prototype._update=function(n){this._hash.push(n)},Hmac$3.prototype._final=function(){var n=this._alg(Buffer$o.concat(this._hash));return this._alg(Buffer$o.concat([this._opad,n]))};var legacy=Hmac$3,MD5$1=md5_js,md5$3=function(n){return new MD5$1().update(n).digest()},inherits$d=inherits_browserExports,Legacy=legacy,Base$3=cipherBase,Buffer$n=safeBufferExports$1.Buffer,md5$2=md5$3,RIPEMD160$2=ripemd160,sha$2=sha_jsExports,ZEROS$1=Buffer$n.alloc(128);function Hmac$2(n,e){Base$3.call(this,"digest"),typeof e=="string"&&(e=Buffer$n.from(e));var o=n==="sha512"||n==="sha384"?128:64;if(this._alg=n,this._key=e,e.length>o){var l=n==="rmd160"?new RIPEMD160$2:sha$2(n);e=l.update(e).digest()}else e.length<o&&(e=Buffer$n.concat([e,ZEROS$1],o));for(var t=this._ipad=Buffer$n.allocUnsafe(o),u=this._opad=Buffer$n.allocUnsafe(o),h=0;h<o;h++)t[h]=e[h]^54,u[h]=e[h]^92;this._hash=n==="rmd160"?new RIPEMD160$2:sha$2(n),this._hash.update(t)}inherits$d(Hmac$2,Base$3),Hmac$2.prototype._update=function(n){this._hash.update(n)},Hmac$2.prototype._final=function(){var n=this._hash.digest(),e=this._alg==="rmd160"?new RIPEMD160$2:sha$2(this._alg);return e.update(this._opad).update(n).digest()};var browser$a=function(e,o){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new Hmac$2("rmd160",o):e==="md5"?new Legacy(md5$2,o):new Hmac$2(e,o)};const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256={sign:"ecdsa",hash:"sha256",id:""},sha224={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6$1={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256,sha224,sha384,sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos=require$$6$1,browser$9={},MAX_ALLOC=Math.pow(2,30)-1,precondition=function(n,e){if(typeof n!="number")throw new TypeError("Iterations not a number");if(n<0)throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>MAX_ALLOC||e!==e)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal$1.process&&commonjsGlobal$1.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal$1.process&&commonjsGlobal$1.process.version){var pVersionMajor=parseInt(process$1.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$m=safeBufferExports$1.Buffer,toBuffer$2=function(n,e,o){if(Buffer$m.isBuffer(n))return n;if(typeof n=="string")return Buffer$m.from(n,e);if(ArrayBuffer.isView(n))return Buffer$m.from(n.buffer);throw new TypeError(o+" must be a string, a Buffer, a typed array or a DataView")},md5$1=md5$3,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Buffer$l=safeBufferExports$1.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer$2,ZEROS=Buffer$l.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(n,e,o){var l=getDigest(n),t=n==="sha512"||n==="sha384"?128:64;e.length>t?e=l(e):e.length<t&&(e=Buffer$l.concat([e,ZEROS],t));for(var u=Buffer$l.allocUnsafe(t+sizes[n]),h=Buffer$l.allocUnsafe(t+sizes[n]),v=0;v<t;v++)u[v]=e[v]^54,h[v]=e[v]^92;var w=Buffer$l.allocUnsafe(t+o+4);u.copy(w,0,0,t),this.ipad1=w,this.ipad2=u,this.opad=h,this.alg=n,this.blocksize=t,this.hash=l,this.size=sizes[n]}Hmac$1.prototype.run=function(n,e){n.copy(e,this.blocksize);var o=this.hash(e);return o.copy(this.opad,this.blocksize),this.hash(this.opad)};function getDigest(n){function e(l){return sha$1(n).update(l).digest()}function o(l){return new RIPEMD160$1().update(l).digest()}return n==="rmd160"||n==="ripemd160"?o:n==="md5"?md5$1:e}function pbkdf2(n,e,o,l,t){checkParameters$1(o,l),n=toBuffer$1(n,defaultEncoding$1,"Password"),e=toBuffer$1(e,defaultEncoding$1,"Salt"),t=t||"sha1";var u=new Hmac$1(t,n,e.length),h=Buffer$l.allocUnsafe(l),v=Buffer$l.allocUnsafe(e.length+4);e.copy(v,0,0,e.length);for(var w=0,A=sizes[t],E=Math.ceil(l/A),C=1;C<=E;C++){v.writeUInt32BE(C,e.length);for(var M=u.run(v,u.ipad1),P=M,I=1;I<o;I++){P=u.run(P,u.ipad2);for(var j=0;j<A;j++)M[j]^=P[j]}M.copy(h,w),w+=A}return h}var syncBrowser=pbkdf2,Buffer$k=safeBufferExports$1.Buffer,checkParameters=precondition,defaultEncoding=defaultEncoding_1,sync=syncBrowser,toBuffer=toBuffer$2,ZERO_BUF,subtle=commonjsGlobal$1.crypto&&commonjsGlobal$1.crypto.subtle,toBrowser={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},checks=[];function checkNative(n){if(commonjsGlobal$1.process&&!commonjsGlobal$1.process.browser||!subtle||!subtle.importKey||!subtle.deriveBits)return Promise.resolve(!1);if(checks[n]!==void 0)return checks[n];ZERO_BUF=ZERO_BUF||Buffer$k.alloc(8);var e=browserPbkdf2(ZERO_BUF,ZERO_BUF,10,128,n).then(function(){return!0}).catch(function(){return!1});return checks[n]=e,e}var nextTick$1;function getNextTick(){return nextTick$1||(commonjsGlobal$1.process&&commonjsGlobal$1.process.nextTick?nextTick$1=commonjsGlobal$1.process.nextTick:commonjsGlobal$1.queueMicrotask?nextTick$1=commonjsGlobal$1.queueMicrotask:commonjsGlobal$1.setImmediate?nextTick$1=commonjsGlobal$1.setImmediate:nextTick$1=commonjsGlobal$1.setTimeout,nextTick$1)}function browserPbkdf2(n,e,o,l,t){return subtle.importKey("raw",n,{name:"PBKDF2"},!1,["deriveBits"]).then(function(u){return subtle.deriveBits({name:"PBKDF2",salt:e,iterations:o,hash:{name:t}},u,l<<3)}).then(function(u){return Buffer$k.from(u)})}function resolvePromise(n,e){n.then(function(o){getNextTick()(function(){e(null,o)})},function(o){getNextTick()(function(){e(o)})})}var async$1=function(n,e,o,l,t,u){typeof t=="function"&&(u=t,t=void 0),t=t||"sha1";var h=toBrowser[t.toLowerCase()];if(!h||typeof commonjsGlobal$1.Promise!="function"){getNextTick()(function(){var v;try{v=sync(n,e,o,l,t)}catch(w){return u(w)}u(null,v)});return}if(checkParameters(o,l),n=toBuffer(n,defaultEncoding,"Password"),e=toBuffer(e,defaultEncoding,"Salt"),typeof u!="function")throw new Error("No callback provided to pbkdf2");resolvePromise(checkNative(h).then(function(v){return v?browserPbkdf2(n,e,o,l,h):sync(n,e,o,l,t)}),u)};browser$9.pbkdf2=async$1,browser$9.pbkdf2Sync=syncBrowser;var browser$8={},des$2={},utils$q={};utils$q.readUInt32BE=function(e,o){var l=e[0+o]<<24|e[1+o]<<16|e[2+o]<<8|e[3+o];return l>>>0},utils$q.writeUInt32BE=function(e,o,l){e[0+l]=o>>>24,e[1+l]=o>>>16&255,e[2+l]=o>>>8&255,e[3+l]=o&255},utils$q.ip=function(e,o,l,t){for(var u=0,h=0,v=6;v>=0;v-=2){for(var w=0;w<=24;w+=8)u<<=1,u|=o>>>w+v&1;for(var w=0;w<=24;w+=8)u<<=1,u|=e>>>w+v&1}for(var v=6;v>=0;v-=2){for(var w=1;w<=25;w+=8)h<<=1,h|=o>>>w+v&1;for(var w=1;w<=25;w+=8)h<<=1,h|=e>>>w+v&1}l[t+0]=u>>>0,l[t+1]=h>>>0},utils$q.rip=function(e,o,l,t){for(var u=0,h=0,v=0;v<4;v++)for(var w=24;w>=0;w-=8)u<<=1,u|=o>>>w+v&1,u<<=1,u|=e>>>w+v&1;for(var v=4;v<8;v++)for(var w=24;w>=0;w-=8)h<<=1,h|=o>>>w+v&1,h<<=1,h|=e>>>w+v&1;l[t+0]=u>>>0,l[t+1]=h>>>0},utils$q.pc1=function(e,o,l,t){for(var u=0,h=0,v=7;v>=5;v--){for(var w=0;w<=24;w+=8)u<<=1,u|=o>>w+v&1;for(var w=0;w<=24;w+=8)u<<=1,u|=e>>w+v&1}for(var w=0;w<=24;w+=8)u<<=1,u|=o>>w+v&1;for(var v=1;v<=3;v++){for(var w=0;w<=24;w+=8)h<<=1,h|=o>>w+v&1;for(var w=0;w<=24;w+=8)h<<=1,h|=e>>w+v&1}for(var w=0;w<=24;w+=8)h<<=1,h|=e>>w+v&1;l[t+0]=u>>>0,l[t+1]=h>>>0},utils$q.r28shl=function(e,o){return e<<o&268435455|e>>>28-o};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$q.pc2=function(e,o,l,t){for(var u=0,h=0,v=pc2table.length>>>1,w=0;w<v;w++)u<<=1,u|=e>>>pc2table[w]&1;for(var w=v;w<pc2table.length;w++)h<<=1,h|=o>>>pc2table[w]&1;l[t+0]=u>>>0,l[t+1]=h>>>0},utils$q.expand=function(e,o,l){var t=0,u=0;t=(e&1)<<5|e>>>27;for(var h=23;h>=15;h-=4)t<<=6,t|=e>>>h&63;for(var h=11;h>=3;h-=4)u|=e>>>h&63,u<<=6;u|=(e&31)<<1|e>>>31,o[l+0]=t>>>0,o[l+1]=u>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$q.substitute=function(e,o){for(var l=0,t=0;t<4;t++){var u=e>>>18-t*6&63,h=sTable[t*64+u];l<<=4,l|=h}for(var t=0;t<4;t++){var u=o>>>18-t*6&63,h=sTable[4*64+t*64+u];l<<=4,l|=h}return l>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$q.permute=function(e){for(var o=0,l=0;l<permuteTable.length;l++)o<<=1,o|=e>>>permuteTable[l]&1;return o>>>0},utils$q.padSplit=function(e,o,l){for(var t=e.toString(2);t.length<o;)t="0"+t;for(var u=[],h=0;h<o;h+=l)u.push(t.slice(h,h+l));return u.join(" ")};var minimalisticAssert=assert$j;function assert$j(n,e){if(!n)throw new Error(e||"Assertion failed")}assert$j.equal=function(e,o,l){if(e!=o)throw new Error(l||"Assertion failed: "+e+" != "+o)};var assert$i=minimalisticAssert;function Cipher$3(n){this.options=n,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=n.padding!==!1}var cipher=Cipher$3;Cipher$3.prototype._init=function(){},Cipher$3.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)},Cipher$3.prototype._buffer=function(e,o){for(var l=Math.min(this.buffer.length-this.bufferOff,e.length-o),t=0;t<l;t++)this.buffer[this.bufferOff+t]=e[o+t];return this.bufferOff+=l,l},Cipher$3.prototype._flushBuffer=function(e,o){return this._update(this.buffer,0,e,o),this.bufferOff=0,this.blockSize},Cipher$3.prototype._updateEncrypt=function(e){var o=0,l=0,t=(this.bufferOff+e.length)/this.blockSize|0,u=new Array(t*this.blockSize);this.bufferOff!==0&&(o+=this._buffer(e,o),this.bufferOff===this.buffer.length&&(l+=this._flushBuffer(u,l)));for(var h=e.length-(e.length-o)%this.blockSize;o<h;o+=this.blockSize)this._update(e,o,u,l),l+=this.blockSize;for(;o<e.length;o++,this.bufferOff++)this.buffer[this.bufferOff]=e[o];return u},Cipher$3.prototype._updateDecrypt=function(e){for(var o=0,l=0,t=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,u=new Array(t*this.blockSize);t>0;t--)o+=this._buffer(e,o),l+=this._flushBuffer(u,l);return o+=this._buffer(e,o),u},Cipher$3.prototype.final=function(e){var o;e&&(o=this.update(e));var l;return this.type==="encrypt"?l=this._finalEncrypt():l=this._finalDecrypt(),o?o.concat(l):l},Cipher$3.prototype._pad=function(e,o){if(o===0)return!1;for(;o<e.length;)e[o++]=0;return!0},Cipher$3.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},Cipher$3.prototype._unpad=function(e){return e},Cipher$3.prototype._finalDecrypt=function(){assert$i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)};var assert$h=minimalisticAssert,inherits$c=inherits_browserExports,utils$p=utils$q,Cipher$2=cipher;function DESState(){this.tmp=new Array(2),this.keys=null}function DES$3(n){Cipher$2.call(this,n);var e=new DESState;this._desState=e,this.deriveKeys(e,n.key)}inherits$c(DES$3,Cipher$2);var des$1=DES$3;DES$3.create=function(e){return new DES$3(e)};var shiftTable=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];DES$3.prototype.deriveKeys=function(e,o){e.keys=new Array(16*2),assert$h.equal(o.length,this.blockSize,"Invalid key length");var l=utils$p.readUInt32BE(o,0),t=utils$p.readUInt32BE(o,4);utils$p.pc1(l,t,e.tmp,0),l=e.tmp[0],t=e.tmp[1];for(var u=0;u<e.keys.length;u+=2){var h=shiftTable[u>>>1];l=utils$p.r28shl(l,h),t=utils$p.r28shl(t,h),utils$p.pc2(l,t,e.keys,u)}},DES$3.prototype._update=function(e,o,l,t){var u=this._desState,h=utils$p.readUInt32BE(e,o),v=utils$p.readUInt32BE(e,o+4);utils$p.ip(h,v,u.tmp,0),h=u.tmp[0],v=u.tmp[1],this.type==="encrypt"?this._encrypt(u,h,v,u.tmp,0):this._decrypt(u,h,v,u.tmp,0),h=u.tmp[0],v=u.tmp[1],utils$p.writeUInt32BE(l,h,t),utils$p.writeUInt32BE(l,v,t+4)},DES$3.prototype._pad=function(e,o){if(this.padding===!1)return!1;for(var l=e.length-o,t=o;t<e.length;t++)e[t]=l;return!0},DES$3.prototype._unpad=function(e){if(this.padding===!1)return e;for(var o=e[e.length-1],l=e.length-o;l<e.length;l++)assert$h.equal(e[l],o);return e.slice(0,e.length-o)},DES$3.prototype._encrypt=function(e,o,l,t,u){for(var h=o,v=l,w=0;w<e.keys.length;w+=2){var A=e.keys[w],E=e.keys[w+1];utils$p.expand(v,e.tmp,0),A^=e.tmp[0],E^=e.tmp[1];var C=utils$p.substitute(A,E),M=utils$p.permute(C),P=v;v=(h^M)>>>0,h=P}utils$p.rip(v,h,t,u)},DES$3.prototype._decrypt=function(e,o,l,t,u){for(var h=l,v=o,w=e.keys.length-2;w>=0;w-=2){var A=e.keys[w],E=e.keys[w+1];utils$p.expand(h,e.tmp,0),A^=e.tmp[0],E^=e.tmp[1];var C=utils$p.substitute(A,E),M=utils$p.permute(C),P=h;h=(v^M)>>>0,v=P}utils$p.rip(h,v,t,u)};var cbc$1={},assert$g=minimalisticAssert,inherits$b=inherits_browserExports,proto={};function CBCState(n){assert$g.equal(n.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=n[e]}function instantiate(n){function e(u){n.call(this,u),this._cbcInit()}inherits$b(e,n);for(var o=Object.keys(proto),l=0;l<o.length;l++){var t=o[l];e.prototype[t]=proto[t]}return e.create=function(h){return new e(h)},e}cbc$1.instantiate=instantiate,proto._cbcInit=function(){var e=new CBCState(this.options.iv);this._cbcState=e},proto._update=function(e,o,l,t){var u=this._cbcState,h=this.constructor.super_.prototype,v=u.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)v[w]^=e[o+w];h._update.call(this,v,0,l,t);for(var w=0;w<this.blockSize;w++)v[w]=l[t+w]}else{h._update.call(this,e,o,l,t);for(var w=0;w<this.blockSize;w++)l[t+w]^=v[w];for(var w=0;w<this.blockSize;w++)v[w]=e[o+w]}};var assert$f=minimalisticAssert,inherits$a=inherits_browserExports,Cipher$1=cipher,DES$2=des$1;function EDEState(n,e){assert$f.equal(e.length,24,"Invalid key length");var o=e.slice(0,8),l=e.slice(8,16),t=e.slice(16,24);n==="encrypt"?this.ciphers=[DES$2.create({type:"encrypt",key:o}),DES$2.create({type:"decrypt",key:l}),DES$2.create({type:"encrypt",key:t})]:this.ciphers=[DES$2.create({type:"decrypt",key:t}),DES$2.create({type:"encrypt",key:l}),DES$2.create({type:"decrypt",key:o})]}function EDE(n){Cipher$1.call(this,n);var e=new EDEState(this.type,this.options.key);this._edeState=e}inherits$a(EDE,Cipher$1);var ede=EDE;EDE.create=function(e){return new EDE(e)},EDE.prototype._update=function(e,o,l,t){var u=this._edeState;u.ciphers[0]._update(e,o,l,t),u.ciphers[1]._update(l,t,l,t),u.ciphers[2]._update(l,t,l,t)},EDE.prototype._pad=DES$2.prototype._pad,EDE.prototype._unpad=DES$2.prototype._unpad,des$2.utils=utils$q,des$2.Cipher=cipher,des$2.DES=des$1,des$2.CBC=cbc$1,des$2.EDE=ede;var CipherBase=cipherBase,des=des$2,inherits$9=inherits_browserExports,Buffer$j=safeBufferExports$1.Buffer,modes$3={"des-ede3-cbc":des.CBC.instantiate(des.EDE),"des-ede3":des.EDE,"des-ede-cbc":des.CBC.instantiate(des.EDE),"des-ede":des.EDE,"des-cbc":des.CBC.instantiate(des.DES),"des-ecb":des.DES};modes$3.des=modes$3["des-cbc"],modes$3.des3=modes$3["des-ede3-cbc"];var browserifyDes=DES$1;inherits$9(DES$1,CipherBase);function DES$1(n){CipherBase.call(this);var e=n.mode.toLowerCase(),o=modes$3[e],l;n.decrypt?l="decrypt":l="encrypt";var t=n.key;Buffer$j.isBuffer(t)||(t=Buffer$j.from(t)),(e==="des-ede"||e==="des-ede-cbc")&&(t=Buffer$j.concat([t,t.slice(0,8)]));var u=n.iv;Buffer$j.isBuffer(u)||(u=Buffer$j.from(u)),this._des=o.create({key:t,iv:u,type:l})}DES$1.prototype._update=function(n){return Buffer$j.from(this._des.update(n))},DES$1.prototype._final=function(){return Buffer$j.from(this._des.final())};var browser$7={},encrypter={},ecb={};ecb.encrypt=function(n,e){return n._cipher.encryptBlock(e)},ecb.decrypt=function(n,e){return n._cipher.decryptBlock(e)};var cbc={},bufferXor=function(e,o){for(var l=Math.min(e.length,o.length),t=new Buffer$C(l),u=0;u<l;++u)t[u]=e[u]^o[u];return t},xor$7=bufferXor;cbc.encrypt=function(n,e){var o=xor$7(e,n._prev);return n._prev=n._cipher.encryptBlock(o),n._prev},cbc.decrypt=function(n,e){var o=n._prev;n._prev=e;var l=n._cipher.decryptBlock(e);return xor$7(l,o)};var cfb={},Buffer$i=safeBufferExports$1.Buffer,xor$6=bufferXor;function encryptStart(n,e,o){var l=e.length,t=xor$6(e,n._cache);return n._cache=n._cache.slice(l),n._prev=Buffer$i.concat([n._prev,o?e:t]),t}cfb.encrypt=function(n,e,o){for(var l=Buffer$i.allocUnsafe(0),t;e.length;)if(n._cache.length===0&&(n._cache=n._cipher.encryptBlock(n._prev),n._prev=Buffer$i.allocUnsafe(0)),n._cache.length<=e.length)t=n._cache.length,l=Buffer$i.concat([l,encryptStart(n,e.slice(0,t),o)]),e=e.slice(t);else{l=Buffer$i.concat([l,encryptStart(n,e,o)]);break}return l};var cfb8={},Buffer$h=safeBufferExports$1.Buffer;function encryptByte$1(n,e,o){var l=n._cipher.encryptBlock(n._prev),t=l[0]^e;return n._prev=Buffer$h.concat([n._prev.slice(1),Buffer$h.from([o?e:t])]),t}cfb8.encrypt=function(n,e,o){for(var l=e.length,t=Buffer$h.allocUnsafe(l),u=-1;++u<l;)t[u]=encryptByte$1(n,e[u],o);return t};var cfb1={},Buffer$g=safeBufferExports$1.Buffer;function encryptByte(n,e,o){for(var l,t=-1,u=8,h=0,v,w;++t<u;)l=n._cipher.encryptBlock(n._prev),v=e&1<<7-t?128:0,w=l[0]^v,h+=(w&128)>>t%8,n._prev=shiftIn(n._prev,o?v:w);return h}function shiftIn(n,e){var o=n.length,l=-1,t=Buffer$g.allocUnsafe(n.length);for(n=Buffer$g.concat([n,Buffer$g.from([e])]);++l<o;)t[l]=n[l]<<1|n[l+1]>>7;return t}cfb1.encrypt=function(n,e,o){for(var l=e.length,t=Buffer$g.allocUnsafe(l),u=-1;++u<l;)t[u]=encryptByte(n,e[u],o);return t};var ofb={},xor$5=bufferXor;function getBlock$1(n){return n._prev=n._cipher.encryptBlock(n._prev),n._prev}ofb.encrypt=function(n,e){for(;n._cache.length<e.length;)n._cache=Buffer$C.concat([n._cache,getBlock$1(n)]);var o=n._cache.slice(0,e.length);return n._cache=n._cache.slice(e.length),xor$5(e,o)};var ctr={};function incr32$2(n){for(var e=n.length,o;e--;)if(o=n.readUInt8(e),o===255)n.writeUInt8(0,e);else{o++,n.writeUInt8(o,e);break}}var incr32_1=incr32$2,xor$4=bufferXor,Buffer$f=safeBufferExports$1.Buffer,incr32$1=incr32_1;function getBlock(n){var e=n._cipher.encryptBlockRaw(n._prev);return incr32$1(n._prev),e}var blockSize=16;ctr.encrypt=function(n,e){var o=Math.ceil(e.length/blockSize),l=n._cache.length;n._cache=Buffer$f.concat([n._cache,Buffer$f.allocUnsafe(o*blockSize)]);for(var t=0;t<o;t++){var u=getBlock(n),h=l+t*blockSize;n._cache.writeUInt32BE(u[0],h+0),n._cache.writeUInt32BE(u[1],h+4),n._cache.writeUInt32BE(u[2],h+8),n._cache.writeUInt32BE(u[3],h+12)}var v=n._cache.slice(0,e.length);return n._cache=n._cache.slice(e.length),xor$4(e,v)};const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2$1={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modeModules={ECB:ecb,CBC:cbc,CFB:cfb,CFB8:cfb8,CFB1:cfb1,OFB:ofb,CTR:ctr,GCM:ctr},modes$2=require$$2$1;for(var key$3 in modes$2)modes$2[key$3].module=modeModules[modes$2[key$3].mode];var modes_1=modes$2,aes$5={},Buffer$e=safeBufferExports$1.Buffer;function asUInt32Array(n){Buffer$e.isBuffer(n)||(n=Buffer$e.from(n));for(var e=n.length/4|0,o=new Array(e),l=0;l<e;l++)o[l]=n.readUInt32BE(l*4);return o}function scrubVec(n){for(var e=0;e<n.length;n++)n[e]=0}function cryptBlock(n,e,o,l,t){for(var u=o[0],h=o[1],v=o[2],w=o[3],A=n[0]^e[0],E=n[1]^e[1],C=n[2]^e[2],M=n[3]^e[3],P,I,j,B,F=4,N=1;N<t;N++)P=u[A>>>24]^h[E>>>16&255]^v[C>>>8&255]^w[M&255]^e[F++],I=u[E>>>24]^h[C>>>16&255]^v[M>>>8&255]^w[A&255]^e[F++],j=u[C>>>24]^h[M>>>16&255]^v[A>>>8&255]^w[E&255]^e[F++],B=u[M>>>24]^h[A>>>16&255]^v[E>>>8&255]^w[C&255]^e[F++],A=P,E=I,C=j,M=B;return P=(l[A>>>24]<<24|l[E>>>16&255]<<16|l[C>>>8&255]<<8|l[M&255])^e[F++],I=(l[E>>>24]<<24|l[C>>>16&255]<<16|l[M>>>8&255]<<8|l[A&255])^e[F++],j=(l[C>>>24]<<24|l[M>>>16&255]<<16|l[A>>>8&255]<<8|l[E&255])^e[F++],B=(l[M>>>24]<<24|l[A>>>16&255]<<16|l[E>>>8&255]<<8|l[C&255])^e[F++],P=P>>>0,I=I>>>0,j=j>>>0,B=B>>>0,[P,I,j,B]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var n=new Array(256),e=0;e<256;e++)e<128?n[e]=e<<1:n[e]=e<<1^283;for(var o=[],l=[],t=[[],[],[],[]],u=[[],[],[],[]],h=0,v=0,w=0;w<256;++w){var A=v^v<<1^v<<2^v<<3^v<<4;A=A>>>8^A&255^99,o[h]=A,l[A]=h;var E=n[h],C=n[E],M=n[C],P=n[A]*257^A*16843008;t[0][h]=P<<24|P>>>8,t[1][h]=P<<16|P>>>16,t[2][h]=P<<8|P>>>24,t[3][h]=P,P=M*16843009^C*65537^E*257^h*16843008,u[0][A]=P<<24|P>>>8,u[1][A]=P<<16|P>>>16,u[2][A]=P<<8|P>>>24,u[3][A]=P,h===0?h=v=1:(h=E^n[n[n[M^E]]],v^=n[n[v]])}return{SBOX:o,INV_SBOX:l,SUB_MIX:t,INV_SUB_MIX:u}}();function AES(n){this._key=asUInt32Array(n),this._reset()}AES.blockSize=4*4,AES.keySize=256/8,AES.prototype.blockSize=AES.blockSize,AES.prototype.keySize=AES.keySize,AES.prototype._reset=function(){for(var n=this._key,e=n.length,o=e+6,l=(o+1)*4,t=[],u=0;u<e;u++)t[u]=n[u];for(u=e;u<l;u++){var h=t[u-1];u%e===0?(h=h<<8|h>>>24,h=G.SBOX[h>>>24]<<24|G.SBOX[h>>>16&255]<<16|G.SBOX[h>>>8&255]<<8|G.SBOX[h&255],h^=RCON[u/e|0]<<24):e>6&&u%e===4&&(h=G.SBOX[h>>>24]<<24|G.SBOX[h>>>16&255]<<16|G.SBOX[h>>>8&255]<<8|G.SBOX[h&255]),t[u]=t[u-e]^h}for(var v=[],w=0;w<l;w++){var A=l-w,E=t[A-(w%4?0:4)];w<4||A<=4?v[w]=E:v[w]=G.INV_SUB_MIX[0][G.SBOX[E>>>24]]^G.INV_SUB_MIX[1][G.SBOX[E>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[E>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[E&255]]}this._nRounds=o,this._keySchedule=t,this._invKeySchedule=v},AES.prototype.encryptBlockRaw=function(n){return n=asUInt32Array(n),cryptBlock(n,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)},AES.prototype.encryptBlock=function(n){var e=this.encryptBlockRaw(n),o=Buffer$e.allocUnsafe(16);return o.writeUInt32BE(e[0],0),o.writeUInt32BE(e[1],4),o.writeUInt32BE(e[2],8),o.writeUInt32BE(e[3],12),o},AES.prototype.decryptBlock=function(n){n=asUInt32Array(n);var e=n[1];n[1]=n[3],n[3]=e;var o=cryptBlock(n,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),l=Buffer$e.allocUnsafe(16);return l.writeUInt32BE(o[0],0),l.writeUInt32BE(o[3],4),l.writeUInt32BE(o[2],8),l.writeUInt32BE(o[1],12),l},AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)},aes$5.AES=AES;var Buffer$d=safeBufferExports$1.Buffer,ZEROES=Buffer$d.alloc(16,0);function toArray$1(n){return[n.readUInt32BE(0),n.readUInt32BE(4),n.readUInt32BE(8),n.readUInt32BE(12)]}function fromArray(n){var e=Buffer$d.allocUnsafe(16);return e.writeUInt32BE(n[0]>>>0,0),e.writeUInt32BE(n[1]>>>0,4),e.writeUInt32BE(n[2]>>>0,8),e.writeUInt32BE(n[3]>>>0,12),e}function GHASH$1(n){this.h=n,this.state=Buffer$d.alloc(16,0),this.cache=Buffer$d.allocUnsafe(0)}GHASH$1.prototype.ghash=function(n){for(var e=-1;++e<n.length;)this.state[e]^=n[e];this._multiply()},GHASH$1.prototype._multiply=function(){for(var n=toArray$1(this.h),e=[0,0,0,0],o,l,t,u=-1;++u<128;){for(l=(this.state[~~(u/8)]&1<<7-u%8)!==0,l&&(e[0]^=n[0],e[1]^=n[1],e[2]^=n[2],e[3]^=n[3]),t=(n[3]&1)!==0,o=3;o>0;o--)n[o]=n[o]>>>1|(n[o-1]&1)<<31;n[0]=n[0]>>>1,t&&(n[0]=n[0]^225<<24)}this.state=fromArray(e)},GHASH$1.prototype.update=function(n){this.cache=Buffer$d.concat([this.cache,n]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},GHASH$1.prototype.final=function(n,e){return this.cache.length&&this.ghash(Buffer$d.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,n,0,e])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$c=safeBufferExports$1.Buffer,Transform$5=cipherBase,inherits$8=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(n,e){var o=0;n.length!==e.length&&o++;for(var l=Math.min(n.length,e.length),t=0;t<l;++t)o+=n[t]^e[t];return o}function calcIv(n,e,o){if(e.length===12)return n._finID=Buffer$c.concat([e,Buffer$c.from([0,0,0,1])]),Buffer$c.concat([e,Buffer$c.from([0,0,0,2])]);var l=new GHASH(o),t=e.length,u=t%16;l.update(e),u&&(u=16-u,l.update(Buffer$c.alloc(u,0))),l.update(Buffer$c.alloc(8,0));var h=t*8,v=Buffer$c.alloc(8);v.writeUIntBE(h,0,8),l.update(v),n._finID=l.state;var w=Buffer$c.from(n._finID);return incr32(w),w}function StreamCipher$3(n,e,o,l){Transform$5.call(this);var t=Buffer$c.alloc(4,0);this._cipher=new aes$4.AES(e);var u=this._cipher.encryptBlock(t);this._ghash=new GHASH(u),o=calcIv(this,o,u),this._prev=Buffer$c.from(o),this._cache=Buffer$c.allocUnsafe(0),this._secCache=Buffer$c.allocUnsafe(0),this._decrypt=l,this._alen=0,this._len=0,this._mode=n,this._authTag=null,this._called=!1}inherits$8(StreamCipher$3,Transform$5),StreamCipher$3.prototype._update=function(n){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=Buffer$c.alloc(e,0),this._ghash.update(e))}this._called=!0;var o=this._mode.encrypt(this,n);return this._decrypt?this._ghash.update(n):this._ghash.update(o),this._len+=n.length,o},StreamCipher$3.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var n=xor$3(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&xorTest(n,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=n,this._cipher.scrub()},StreamCipher$3.prototype.getAuthTag=function(){if(this._decrypt||!Buffer$c.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},StreamCipher$3.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},StreamCipher$3.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};var authCipher=StreamCipher$3,aes$3=aes$5,Buffer$b=safeBufferExports$1.Buffer,Transform$4=cipherBase,inherits$7=inherits_browserExports;function StreamCipher$2(n,e,o,l){Transform$4.call(this),this._cipher=new aes$3.AES(e),this._prev=Buffer$b.from(o),this._cache=Buffer$b.allocUnsafe(0),this._secCache=Buffer$b.allocUnsafe(0),this._decrypt=l,this._mode=n}inherits$7(StreamCipher$2,Transform$4),StreamCipher$2.prototype._update=function(n){return this._mode.encrypt(this,n,this._decrypt)},StreamCipher$2.prototype._final=function(){this._cipher.scrub()};var streamCipher=StreamCipher$2,Buffer$a=safeBufferExports$1.Buffer,MD5=md5_js;function EVP_BytesToKey(n,e,o,l){if(Buffer$a.isBuffer(n)||(n=Buffer$a.from(n,"binary")),e&&(Buffer$a.isBuffer(e)||(e=Buffer$a.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var t=o/8,u=Buffer$a.alloc(t),h=Buffer$a.alloc(l||0),v=Buffer$a.alloc(0);t>0||l>0;){var w=new MD5;w.update(v),w.update(n),e&&w.update(e),v=w.digest();var A=0;if(t>0){var E=u.length-t;A=Math.min(t,v.length),v.copy(u,E,0,A),t-=A}if(A<v.length&&l>0){var C=h.length-l,M=Math.min(l,v.length-A);v.copy(h,C,A,A+M),l-=M}}return v.fill(0),{key:u,iv:h}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$9=safeBufferExports$1.Buffer,StreamCipher$1=streamCipher,Transform$3=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$6=inherits_browserExports;function Cipher(n,e,o){Transform$3.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(e),this._prev=Buffer$9.from(o),this._mode=n,this._autopadding=!0}inherits$6(Cipher,Transform$3),Cipher.prototype._update=function(n){this._cache.add(n);for(var e,o,l=[];e=this._cache.get();)o=this._mode.encrypt(this,e),l.push(o);return Buffer$9.concat(l)};var PADDING=Buffer$9.alloc(16,16);Cipher.prototype._final=function(){var n=this._cache.flush();if(this._autopadding)return n=this._mode.encrypt(this,n),this._cipher.scrub(),n;if(!n.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")},Cipher.prototype.setAutoPadding=function(n){return this._autopadding=!!n,this};function Splitter$1(){this.cache=Buffer$9.allocUnsafe(0)}Splitter$1.prototype.add=function(n){this.cache=Buffer$9.concat([this.cache,n])},Splitter$1.prototype.get=function(){if(this.cache.length>15){var n=this.cache.slice(0,16);return this.cache=this.cache.slice(16),n}return null},Splitter$1.prototype.flush=function(){for(var n=16-this.cache.length,e=Buffer$9.allocUnsafe(n),o=-1;++o<n;)e.writeUInt8(n,o);return Buffer$9.concat([this.cache,e])};function createCipheriv$1(n,e,o){var l=MODES$1[n.toLowerCase()];if(!l)throw new TypeError("invalid suite type");if(typeof e=="string"&&(e=Buffer$9.from(e)),e.length!==l.key/8)throw new TypeError("invalid key length "+e.length);if(typeof o=="string"&&(o=Buffer$9.from(o)),l.mode!=="GCM"&&o.length!==l.iv)throw new TypeError("invalid iv length "+o.length);return l.type==="stream"?new StreamCipher$1(l.module,e,o):l.type==="auth"?new AuthCipher$1(l.module,e,o):new Cipher(l.module,e,o)}function createCipher$1(n,e){var o=MODES$1[n.toLowerCase()];if(!o)throw new TypeError("invalid suite type");var l=ebtk$2(e,!1,o.key,o.iv);return createCipheriv$1(n,l.key,l.iv)}encrypter.createCipheriv=createCipheriv$1,encrypter.createCipher=createCipher$1;var decrypter={},AuthCipher=authCipher,Buffer$8=safeBufferExports$1.Buffer,MODES=modes_1,StreamCipher=streamCipher,Transform$2=cipherBase,aes$1=aes$5,ebtk$1=evp_bytestokey,inherits$5=inherits_browserExports;function Decipher(n,e,o){Transform$2.call(this),this._cache=new Splitter,this._last=void 0,this._cipher=new aes$1.AES(e),this._prev=Buffer$8.from(o),this._mode=n,this._autopadding=!0}inherits$5(Decipher,Transform$2),Decipher.prototype._update=function(n){this._cache.add(n);for(var e,o,l=[];e=this._cache.get(this._autopadding);)o=this._mode.decrypt(this,e),l.push(o);return Buffer$8.concat(l)},Decipher.prototype._final=function(){var n=this._cache.flush();if(this._autopadding)return unpad(this._mode.decrypt(this,n));if(n)throw new Error("data not multiple of block length")},Decipher.prototype.setAutoPadding=function(n){return this._autopadding=!!n,this};function Splitter(){this.cache=Buffer$8.allocUnsafe(0)}Splitter.prototype.add=function(n){this.cache=Buffer$8.concat([this.cache,n])},Splitter.prototype.get=function(n){var e;if(n){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(n){var e=n[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var o=-1;++o<e;)if(n[o+(16-e)]!==e)throw new Error("unable to decrypt data");if(e!==16)return n.slice(0,16-e)}function createDecipheriv$1(n,e,o){var l=MODES[n.toLowerCase()];if(!l)throw new TypeError("invalid suite type");if(typeof o=="string"&&(o=Buffer$8.from(o)),l.mode!=="GCM"&&o.length!==l.iv)throw new TypeError("invalid iv length "+o.length);if(typeof e=="string"&&(e=Buffer$8.from(e)),e.length!==l.key/8)throw new TypeError("invalid key length "+e.length);return l.type==="stream"?new StreamCipher(l.module,e,o,!0):l.type==="auth"?new AuthCipher(l.module,e,o,!0):new Decipher(l.module,e,o)}function createDecipher$1(n,e){var o=MODES[n.toLowerCase()];if(!o)throw new TypeError("invalid suite type");var l=ebtk$1(e,!1,o.key,o.iv);return createDecipheriv$1(n,l.key,l.iv)}decrypter.createDecipher=createDecipher$1,decrypter.createDecipheriv=createDecipheriv$1;var ciphers$2=encrypter,deciphers=decrypter,modes$1=require$$2$1;function getCiphers$1(){return Object.keys(modes$1)}browser$7.createCipher=browser$7.Cipher=ciphers$2.createCipher,browser$7.createCipheriv=browser$7.Cipheriv=ciphers$2.createCipheriv,browser$7.createDecipher=browser$7.Decipher=deciphers.createDecipher,browser$7.createDecipheriv=browser$7.Decipheriv=deciphers.createDecipheriv,browser$7.listCiphers=browser$7.getCiphers=getCiphers$1;var modes={};(function(n){n["des-ecb"]={key:8,iv:0},n["des-cbc"]=n.des={key:8,iv:8},n["des-ede3-cbc"]=n.des3={key:24,iv:8},n["des-ede3"]={key:24,iv:0},n["des-ede-cbc"]={key:16,iv:8},n["des-ede"]={key:16,iv:0}})(modes);var DES=browserifyDes,aes=browser$7,aesModes=modes_1,desModes=modes,ebtk=evp_bytestokey;function createCipher(n,e){n=n.toLowerCase();var o,l;if(aesModes[n])o=aesModes[n].key,l=aesModes[n].iv;else if(desModes[n])o=desModes[n].key*8,l=desModes[n].iv;else throw new TypeError("invalid suite type");var t=ebtk(e,!1,o,l);return createCipheriv(n,t.key,t.iv)}function createDecipher(n,e){n=n.toLowerCase();var o,l;if(aesModes[n])o=aesModes[n].key,l=aesModes[n].iv;else if(desModes[n])o=desModes[n].key*8,l=desModes[n].iv;else throw new TypeError("invalid suite type");var t=ebtk(e,!1,o,l);return createDecipheriv(n,t.key,t.iv)}function createCipheriv(n,e,o){if(n=n.toLowerCase(),aesModes[n])return aes.createCipheriv(n,e,o);if(desModes[n])return new DES({key:e,iv:o,mode:n});throw new TypeError("invalid suite type")}function createDecipheriv(n,e,o){if(n=n.toLowerCase(),aesModes[n])return aes.createDecipheriv(n,e,o);if(desModes[n])return new DES({key:e,iv:o,mode:n,decrypt:!0});throw new TypeError("invalid suite type")}function getCiphers(){return Object.keys(desModes).concat(aes.getCiphers())}browser$8.createCipher=browser$8.Cipher=createCipher,browser$8.createCipheriv=browser$8.Cipheriv=createCipheriv,browser$8.createDecipher=browser$8.Decipher=createDecipher,browser$8.createDecipheriv=browser$8.Decipheriv=createDecipheriv,browser$8.listCiphers=browser$8.getCiphers=getCiphers;var browser$6={},bn$6={exports:{}};bn$6.exports,function(n){(function(e,o){function l(L,p){if(!L)throw new Error(p||"Assertion failed")}function t(L,p){L.super_=p;var y=function(){};y.prototype=p.prototype,L.prototype=new y,L.prototype.constructor=L}function u(L,p,y){if(u.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,L!==null&&((p==="le"||p==="be")&&(y=p,p=10),this._init(L||0,p||10,y||"be"))}typeof e=="object"?e.exports=u:o.BN=u,u.BN=u,u.wordSize=26;var h;try{typeof window<"u"&&typeof window.Buffer<"u"?h=window.Buffer:h=require$$0$2.Buffer}catch{}u.isBN=function(p){return p instanceof u?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===u.wordSize&&Array.isArray(p.words)},u.max=function(p,y){return p.cmp(y)>0?p:y},u.min=function(p,y){return p.cmp(y)<0?p:y},u.prototype._init=function(p,y,S){if(typeof p=="number")return this._initNumber(p,y,S);if(typeof p=="object")return this._initArray(p,y,S);y==="hex"&&(y=16),l(y===(y|0)&&y>=2&&y<=36),p=p.toString().replace(/\s+/g,"");var c=0;p[0]==="-"&&(c++,this.negative=1),c<p.length&&(y===16?this._parseHex(p,c,S):(this._parseBase(p,y,c),S==="le"&&this._initArray(this.toArray(),y,S)))},u.prototype._initNumber=function(p,y,S){p<0&&(this.negative=1,p=-p),p<67108864?(this.words=[p&67108863],this.length=1):p<4503599627370496?(this.words=[p&67108863,p/67108864&67108863],this.length=2):(l(p<9007199254740992),this.words=[p&67108863,p/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),y,S)},u.prototype._initArray=function(p,y,S){if(l(typeof p.length=="number"),p.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(p.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m,x,T=0;if(S==="be")for(c=p.length-1,m=0;c>=0;c-=3)x=p[c]|p[c-1]<<8|p[c-2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);else if(S==="le")for(c=0,m=0;c<p.length;c+=3)x=p[c]|p[c+1]<<8|p[c+2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);return this.strip()};function v(L,p){var y=L.charCodeAt(p);return y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:y-48&15}function w(L,p,y){var S=v(L,y);return y-1>=p&&(S|=v(L,y-1)<<4),S}u.prototype._parseHex=function(p,y,S){this.length=Math.ceil((p.length-y)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m=0,x=0,T;if(S==="be")for(c=p.length-1;c>=y;c-=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8;else{var b=p.length-y;for(c=b%2===0?y+1:y;c<p.length;c+=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8}this.strip()};function A(L,p,y,S){for(var c=0,m=Math.min(L.length,y),x=p;x<m;x++){var T=L.charCodeAt(x)-48;c*=S,T>=49?c+=T-49+10:T>=17?c+=T-17+10:c+=T}return c}u.prototype._parseBase=function(p,y,S){this.words=[0],this.length=1;for(var c=0,m=1;m<=67108863;m*=y)c++;c--,m=m/y|0;for(var x=p.length-S,T=x%c,b=Math.min(x,x-T)+S,d=0,k=S;k<b;k+=c)d=A(p,k,k+c,y),this.imuln(m),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(T!==0){var D=1;for(d=A(p,k,p.length,y),k=0;k<T;k++)D*=y;this.imuln(D),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}this.strip()},u.prototype.copy=function(p){p.words=new Array(this.length);for(var y=0;y<this.length;y++)p.words[y]=this.words[y];p.length=this.length,p.negative=this.negative,p.red=this.red},u.prototype.clone=function(){var p=new u(null);return this.copy(p),p},u.prototype._expand=function(p){for(;this.length<p;)this.words[this.length++]=0;return this},u.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},u.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(p,y){p=p||10,y=y|0||1;var S;if(p===16||p==="hex"){S="";for(var c=0,m=0,x=0;x<this.length;x++){var T=this.words[x],b=((T<<c|m)&16777215).toString(16);m=T>>>24-c&16777215,m!==0||x!==this.length-1?S=E[6-b.length]+b+S:S=b+S,c+=2,c>=26&&(c-=26,x--)}for(m!==0&&(S=m.toString(16)+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(p===(p|0)&&p>=2&&p<=36){var d=C[p],k=M[p];S="";var D=this.clone();for(D.negative=0;!D.isZero();){var O=D.modn(k).toString(p);D=D.idivn(k),D.isZero()?S=O+S:S=E[d-O.length]+O+S}for(this.isZero()&&(S="0"+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}l(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},u.prototype.toJSON=function(){return this.toString(16)},u.prototype.toBuffer=function(p,y){return l(typeof h<"u"),this.toArrayLike(h,p,y)},u.prototype.toArray=function(p,y){return this.toArrayLike(Array,p,y)},u.prototype.toArrayLike=function(p,y,S){var c=this.byteLength(),m=S||Math.max(1,c);l(c<=m,"byte array longer than desired length"),l(m>0,"Requested array length <= 0"),this.strip();var x=y==="le",T=new p(m),b,d,k=this.clone();if(x){for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[d]=b;for(;d<m;d++)T[d]=0}else{for(d=0;d<m-c;d++)T[d]=0;for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[m-d-1]=b}return T},Math.clz32?u.prototype._countBits=function(p){return 32-Math.clz32(p)}:u.prototype._countBits=function(p){var y=p,S=0;return y>=4096&&(S+=13,y>>>=13),y>=64&&(S+=7,y>>>=7),y>=8&&(S+=4,y>>>=4),y>=2&&(S+=2,y>>>=2),S+y},u.prototype._zeroBits=function(p){if(p===0)return 26;var y=p,S=0;return y&8191||(S+=13,y>>>=13),y&127||(S+=7,y>>>=7),y&15||(S+=4,y>>>=4),y&3||(S+=2,y>>>=2),y&1||S++,S},u.prototype.bitLength=function(){var p=this.words[this.length-1],y=this._countBits(p);return(this.length-1)*26+y};function P(L){for(var p=new Array(L.bitLength()),y=0;y<p.length;y++){var S=y/26|0,c=y%26;p[y]=(L.words[S]&1<<c)>>>c}return p}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,y=0;y<this.length;y++){var S=this._zeroBits(this.words[y]);if(p+=S,S!==26)break}return p},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(p){return this.negative!==0?this.abs().inotn(p).iaddn(1):this.clone()},u.prototype.fromTwos=function(p){return this.testn(p-1)?this.notn(p).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(p){for(;this.length<p.length;)this.words[this.length++]=0;for(var y=0;y<p.length;y++)this.words[y]=this.words[y]|p.words[y];return this.strip()},u.prototype.ior=function(p){return l((this.negative|p.negative)===0),this.iuor(p)},u.prototype.or=function(p){return this.length>p.length?this.clone().ior(p):p.clone().ior(this)},u.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},u.prototype.iuand=function(p){var y;this.length>p.length?y=p:y=this;for(var S=0;S<y.length;S++)this.words[S]=this.words[S]&p.words[S];return this.length=y.length,this.strip()},u.prototype.iand=function(p){return l((this.negative|p.negative)===0),this.iuand(p)},u.prototype.and=function(p){return this.length>p.length?this.clone().iand(p):p.clone().iand(this)},u.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},u.prototype.iuxor=function(p){var y,S;this.length>p.length?(y=this,S=p):(y=p,S=this);for(var c=0;c<S.length;c++)this.words[c]=y.words[c]^S.words[c];if(this!==y)for(;c<y.length;c++)this.words[c]=y.words[c];return this.length=y.length,this.strip()},u.prototype.ixor=function(p){return l((this.negative|p.negative)===0),this.iuxor(p)},u.prototype.xor=function(p){return this.length>p.length?this.clone().ixor(p):p.clone().ixor(this)},u.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},u.prototype.inotn=function(p){l(typeof p=="number"&&p>=0);var y=Math.ceil(p/26)|0,S=p%26;this._expand(y),S>0&&y--;for(var c=0;c<y;c++)this.words[c]=~this.words[c]&67108863;return S>0&&(this.words[c]=~this.words[c]&67108863>>26-S),this.strip()},u.prototype.notn=function(p){return this.clone().inotn(p)},u.prototype.setn=function(p,y){l(typeof p=="number"&&p>=0);var S=p/26|0,c=p%26;return this._expand(S+1),y?this.words[S]=this.words[S]|1<<c:this.words[S]=this.words[S]&~(1<<c),this.strip()},u.prototype.iadd=function(p){var y;if(this.negative!==0&&p.negative===0)return this.negative=0,y=this.isub(p),this.negative^=1,this._normSign();if(this.negative===0&&p.negative!==0)return p.negative=0,y=this.isub(p),p.negative=1,y._normSign();var S,c;this.length>p.length?(S=this,c=p):(S=p,c=this);for(var m=0,x=0;x<c.length;x++)y=(S.words[x]|0)+(c.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;for(;m!==0&&x<S.length;x++)y=(S.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;if(this.length=S.length,m!==0)this.words[this.length]=m,this.length++;else if(S!==this)for(;x<S.length;x++)this.words[x]=S.words[x];return this},u.prototype.add=function(p){var y;return p.negative!==0&&this.negative===0?(p.negative=0,y=this.sub(p),p.negative^=1,y):p.negative===0&&this.negative!==0?(this.negative=0,y=p.sub(this),this.negative=1,y):this.length>p.length?this.clone().iadd(p):p.clone().iadd(this)},u.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var y=this.iadd(p);return p.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var S=this.cmp(p);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,m;S>0?(c=this,m=p):(c=p,m=this);for(var x=0,T=0;T<m.length;T++)y=(c.words[T]|0)-(m.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;for(;x!==0&&T<c.length;T++)y=(c.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;if(x===0&&T<c.length&&c!==this)for(;T<c.length;T++)this.words[T]=c.words[T];return this.length=Math.max(this.length,T),c!==this&&(this.negative=1),this.strip()},u.prototype.sub=function(p){return this.clone().isub(p)};function I(L,p,y){y.negative=p.negative^L.negative;var S=L.length+p.length|0;y.length=S,S=S-1|0;var c=L.words[0]|0,m=p.words[0]|0,x=c*m,T=x&67108863,b=x/67108864|0;y.words[0]=T;for(var d=1;d<S;d++){for(var k=b>>>26,D=b&67108863,O=Math.min(d,p.length-1),Q=Math.max(0,d-L.length+1);Q<=O;Q++){var J=d-Q|0;c=L.words[J]|0,m=p.words[Q]|0,x=c*m+D,k+=x/67108864|0,D=x&67108863}y.words[d]=D|0,b=k|0}return b!==0?y.words[d]=b|0:y.length--,y.strip()}var j=function(p,y,S){var c=p.words,m=y.words,x=S.words,T=0,b,d,k,D=c[0]|0,O=D&8191,Q=D>>>13,J=c[1]|0,X=J&8191,U=J>>>13,z=c[2]|0,ie=z&8191,de=z>>>13,me=c[3]|0,pe=me&8191,qe=me>>>13,mt=c[4]|0,st=mt&8191,dt=mt>>>13,Tt=c[5]|0,lt=Tt&8191,Je=Tt>>>13,ht=c[6]|0,at=ht&8191,bt=ht>>>13,jt=c[7]|0,Ge=jt&8191,Qe=jt>>>13,Wt=c[8]|0,Et=Wt&8191,Ct=Wt>>>13,Kt=c[9]|0,Me=Kt&8191,te=Kt>>>13,_e=m[0]|0,je=_e&8191,We=_e>>>13,et=m[1]|0,Ye=et&8191,De=et>>>13,Ht=m[2]|0,Mt=Ht&8191,ge=Ht>>>13,Dt=m[3]|0,yt=Dt&8191,Ne=Dt>>>13,_t=m[4]|0,pt=_t&8191,Bt=_t>>>13,ur=m[5]|0,kt=ur&8191,Ut=ur>>>13,Wr=m[6]|0,zt=Wr&8191,Qt=Wr>>>13,$e=m[7]|0,be=$e&8191,ve=$e>>>13,se=m[8]|0,Pe=se&8191,ze=se>>>13,xt=m[9]|0,ot=xt&8191,wt=xt>>>13;S.negative=p.negative^y.negative,S.length=19,b=Math.imul(O,je),d=Math.imul(O,We),d=d+Math.imul(Q,je)|0,k=Math.imul(Q,We);var Yt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,b=Math.imul(X,je),d=Math.imul(X,We),d=d+Math.imul(U,je)|0,k=Math.imul(U,We),b=b+Math.imul(O,Ye)|0,d=d+Math.imul(O,De)|0,d=d+Math.imul(Q,Ye)|0,k=k+Math.imul(Q,De)|0;var Jt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,b=Math.imul(ie,je),d=Math.imul(ie,We),d=d+Math.imul(de,je)|0,k=Math.imul(de,We),b=b+Math.imul(X,Ye)|0,d=d+Math.imul(X,De)|0,d=d+Math.imul(U,Ye)|0,k=k+Math.imul(U,De)|0,b=b+Math.imul(O,Mt)|0,d=d+Math.imul(O,ge)|0,d=d+Math.imul(Q,Mt)|0,k=k+Math.imul(Q,ge)|0;var wr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(wr>>>26)|0,wr&=67108863,b=Math.imul(pe,je),d=Math.imul(pe,We),d=d+Math.imul(qe,je)|0,k=Math.imul(qe,We),b=b+Math.imul(ie,Ye)|0,d=d+Math.imul(ie,De)|0,d=d+Math.imul(de,Ye)|0,k=k+Math.imul(de,De)|0,b=b+Math.imul(X,Mt)|0,d=d+Math.imul(X,ge)|0,d=d+Math.imul(U,Mt)|0,k=k+Math.imul(U,ge)|0,b=b+Math.imul(O,yt)|0,d=d+Math.imul(O,Ne)|0,d=d+Math.imul(Q,yt)|0,k=k+Math.imul(Q,Ne)|0;var lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(lr>>>26)|0,lr&=67108863,b=Math.imul(st,je),d=Math.imul(st,We),d=d+Math.imul(dt,je)|0,k=Math.imul(dt,We),b=b+Math.imul(pe,Ye)|0,d=d+Math.imul(pe,De)|0,d=d+Math.imul(qe,Ye)|0,k=k+Math.imul(qe,De)|0,b=b+Math.imul(ie,Mt)|0,d=d+Math.imul(ie,ge)|0,d=d+Math.imul(de,Mt)|0,k=k+Math.imul(de,ge)|0,b=b+Math.imul(X,yt)|0,d=d+Math.imul(X,Ne)|0,d=d+Math.imul(U,yt)|0,k=k+Math.imul(U,Ne)|0,b=b+Math.imul(O,pt)|0,d=d+Math.imul(O,Bt)|0,d=d+Math.imul(Q,pt)|0,k=k+Math.imul(Q,Bt)|0;var Rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,b=Math.imul(lt,je),d=Math.imul(lt,We),d=d+Math.imul(Je,je)|0,k=Math.imul(Je,We),b=b+Math.imul(st,Ye)|0,d=d+Math.imul(st,De)|0,d=d+Math.imul(dt,Ye)|0,k=k+Math.imul(dt,De)|0,b=b+Math.imul(pe,Mt)|0,d=d+Math.imul(pe,ge)|0,d=d+Math.imul(qe,Mt)|0,k=k+Math.imul(qe,ge)|0,b=b+Math.imul(ie,yt)|0,d=d+Math.imul(ie,Ne)|0,d=d+Math.imul(de,yt)|0,k=k+Math.imul(de,Ne)|0,b=b+Math.imul(X,pt)|0,d=d+Math.imul(X,Bt)|0,d=d+Math.imul(U,pt)|0,k=k+Math.imul(U,Bt)|0,b=b+Math.imul(O,kt)|0,d=d+Math.imul(O,Ut)|0,d=d+Math.imul(Q,kt)|0,k=k+Math.imul(Q,Ut)|0;var vr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(vr>>>26)|0,vr&=67108863,b=Math.imul(at,je),d=Math.imul(at,We),d=d+Math.imul(bt,je)|0,k=Math.imul(bt,We),b=b+Math.imul(lt,Ye)|0,d=d+Math.imul(lt,De)|0,d=d+Math.imul(Je,Ye)|0,k=k+Math.imul(Je,De)|0,b=b+Math.imul(st,Mt)|0,d=d+Math.imul(st,ge)|0,d=d+Math.imul(dt,Mt)|0,k=k+Math.imul(dt,ge)|0,b=b+Math.imul(pe,yt)|0,d=d+Math.imul(pe,Ne)|0,d=d+Math.imul(qe,yt)|0,k=k+Math.imul(qe,Ne)|0,b=b+Math.imul(ie,pt)|0,d=d+Math.imul(ie,Bt)|0,d=d+Math.imul(de,pt)|0,k=k+Math.imul(de,Bt)|0,b=b+Math.imul(X,kt)|0,d=d+Math.imul(X,Ut)|0,d=d+Math.imul(U,kt)|0,k=k+Math.imul(U,Ut)|0,b=b+Math.imul(O,zt)|0,d=d+Math.imul(O,Qt)|0,d=d+Math.imul(Q,zt)|0,k=k+Math.imul(Q,Qt)|0;var dr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(dr>>>26)|0,dr&=67108863,b=Math.imul(Ge,je),d=Math.imul(Ge,We),d=d+Math.imul(Qe,je)|0,k=Math.imul(Qe,We),b=b+Math.imul(at,Ye)|0,d=d+Math.imul(at,De)|0,d=d+Math.imul(bt,Ye)|0,k=k+Math.imul(bt,De)|0,b=b+Math.imul(lt,Mt)|0,d=d+Math.imul(lt,ge)|0,d=d+Math.imul(Je,Mt)|0,k=k+Math.imul(Je,ge)|0,b=b+Math.imul(st,yt)|0,d=d+Math.imul(st,Ne)|0,d=d+Math.imul(dt,yt)|0,k=k+Math.imul(dt,Ne)|0,b=b+Math.imul(pe,pt)|0,d=d+Math.imul(pe,Bt)|0,d=d+Math.imul(qe,pt)|0,k=k+Math.imul(qe,Bt)|0,b=b+Math.imul(ie,kt)|0,d=d+Math.imul(ie,Ut)|0,d=d+Math.imul(de,kt)|0,k=k+Math.imul(de,Ut)|0,b=b+Math.imul(X,zt)|0,d=d+Math.imul(X,Qt)|0,d=d+Math.imul(U,zt)|0,k=k+Math.imul(U,Qt)|0,b=b+Math.imul(O,be)|0,d=d+Math.imul(O,ve)|0,d=d+Math.imul(Q,be)|0,k=k+Math.imul(Q,ve)|0;var Ir=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,b=Math.imul(Et,je),d=Math.imul(Et,We),d=d+Math.imul(Ct,je)|0,k=Math.imul(Ct,We),b=b+Math.imul(Ge,Ye)|0,d=d+Math.imul(Ge,De)|0,d=d+Math.imul(Qe,Ye)|0,k=k+Math.imul(Qe,De)|0,b=b+Math.imul(at,Mt)|0,d=d+Math.imul(at,ge)|0,d=d+Math.imul(bt,Mt)|0,k=k+Math.imul(bt,ge)|0,b=b+Math.imul(lt,yt)|0,d=d+Math.imul(lt,Ne)|0,d=d+Math.imul(Je,yt)|0,k=k+Math.imul(Je,Ne)|0,b=b+Math.imul(st,pt)|0,d=d+Math.imul(st,Bt)|0,d=d+Math.imul(dt,pt)|0,k=k+Math.imul(dt,Bt)|0,b=b+Math.imul(pe,kt)|0,d=d+Math.imul(pe,Ut)|0,d=d+Math.imul(qe,kt)|0,k=k+Math.imul(qe,Ut)|0,b=b+Math.imul(ie,zt)|0,d=d+Math.imul(ie,Qt)|0,d=d+Math.imul(de,zt)|0,k=k+Math.imul(de,Qt)|0,b=b+Math.imul(X,be)|0,d=d+Math.imul(X,ve)|0,d=d+Math.imul(U,be)|0,k=k+Math.imul(U,ve)|0,b=b+Math.imul(O,Pe)|0,d=d+Math.imul(O,ze)|0,d=d+Math.imul(Q,Pe)|0,k=k+Math.imul(Q,ze)|0;var kr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(kr>>>26)|0,kr&=67108863,b=Math.imul(Me,je),d=Math.imul(Me,We),d=d+Math.imul(te,je)|0,k=Math.imul(te,We),b=b+Math.imul(Et,Ye)|0,d=d+Math.imul(Et,De)|0,d=d+Math.imul(Ct,Ye)|0,k=k+Math.imul(Ct,De)|0,b=b+Math.imul(Ge,Mt)|0,d=d+Math.imul(Ge,ge)|0,d=d+Math.imul(Qe,Mt)|0,k=k+Math.imul(Qe,ge)|0,b=b+Math.imul(at,yt)|0,d=d+Math.imul(at,Ne)|0,d=d+Math.imul(bt,yt)|0,k=k+Math.imul(bt,Ne)|0,b=b+Math.imul(lt,pt)|0,d=d+Math.imul(lt,Bt)|0,d=d+Math.imul(Je,pt)|0,k=k+Math.imul(Je,Bt)|0,b=b+Math.imul(st,kt)|0,d=d+Math.imul(st,Ut)|0,d=d+Math.imul(dt,kt)|0,k=k+Math.imul(dt,Ut)|0,b=b+Math.imul(pe,zt)|0,d=d+Math.imul(pe,Qt)|0,d=d+Math.imul(qe,zt)|0,k=k+Math.imul(qe,Qt)|0,b=b+Math.imul(ie,be)|0,d=d+Math.imul(ie,ve)|0,d=d+Math.imul(de,be)|0,k=k+Math.imul(de,ve)|0,b=b+Math.imul(X,Pe)|0,d=d+Math.imul(X,ze)|0,d=d+Math.imul(U,Pe)|0,k=k+Math.imul(U,ze)|0,b=b+Math.imul(O,ot)|0,d=d+Math.imul(O,wt)|0,d=d+Math.imul(Q,ot)|0,k=k+Math.imul(Q,wt)|0;var Fr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,b=Math.imul(Me,Ye),d=Math.imul(Me,De),d=d+Math.imul(te,Ye)|0,k=Math.imul(te,De),b=b+Math.imul(Et,Mt)|0,d=d+Math.imul(Et,ge)|0,d=d+Math.imul(Ct,Mt)|0,k=k+Math.imul(Ct,ge)|0,b=b+Math.imul(Ge,yt)|0,d=d+Math.imul(Ge,Ne)|0,d=d+Math.imul(Qe,yt)|0,k=k+Math.imul(Qe,Ne)|0,b=b+Math.imul(at,pt)|0,d=d+Math.imul(at,Bt)|0,d=d+Math.imul(bt,pt)|0,k=k+Math.imul(bt,Bt)|0,b=b+Math.imul(lt,kt)|0,d=d+Math.imul(lt,Ut)|0,d=d+Math.imul(Je,kt)|0,k=k+Math.imul(Je,Ut)|0,b=b+Math.imul(st,zt)|0,d=d+Math.imul(st,Qt)|0,d=d+Math.imul(dt,zt)|0,k=k+Math.imul(dt,Qt)|0,b=b+Math.imul(pe,be)|0,d=d+Math.imul(pe,ve)|0,d=d+Math.imul(qe,be)|0,k=k+Math.imul(qe,ve)|0,b=b+Math.imul(ie,Pe)|0,d=d+Math.imul(ie,ze)|0,d=d+Math.imul(de,Pe)|0,k=k+Math.imul(de,ze)|0,b=b+Math.imul(X,ot)|0,d=d+Math.imul(X,wt)|0,d=d+Math.imul(U,ot)|0,k=k+Math.imul(U,wt)|0;var jr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(jr>>>26)|0,jr&=67108863,b=Math.imul(Me,Mt),d=Math.imul(Me,ge),d=d+Math.imul(te,Mt)|0,k=Math.imul(te,ge),b=b+Math.imul(Et,yt)|0,d=d+Math.imul(Et,Ne)|0,d=d+Math.imul(Ct,yt)|0,k=k+Math.imul(Ct,Ne)|0,b=b+Math.imul(Ge,pt)|0,d=d+Math.imul(Ge,Bt)|0,d=d+Math.imul(Qe,pt)|0,k=k+Math.imul(Qe,Bt)|0,b=b+Math.imul(at,kt)|0,d=d+Math.imul(at,Ut)|0,d=d+Math.imul(bt,kt)|0,k=k+Math.imul(bt,Ut)|0,b=b+Math.imul(lt,zt)|0,d=d+Math.imul(lt,Qt)|0,d=d+Math.imul(Je,zt)|0,k=k+Math.imul(Je,Qt)|0,b=b+Math.imul(st,be)|0,d=d+Math.imul(st,ve)|0,d=d+Math.imul(dt,be)|0,k=k+Math.imul(dt,ve)|0,b=b+Math.imul(pe,Pe)|0,d=d+Math.imul(pe,ze)|0,d=d+Math.imul(qe,Pe)|0,k=k+Math.imul(qe,ze)|0,b=b+Math.imul(ie,ot)|0,d=d+Math.imul(ie,wt)|0,d=d+Math.imul(de,ot)|0,k=k+Math.imul(de,wt)|0;var Cr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,b=Math.imul(Me,yt),d=Math.imul(Me,Ne),d=d+Math.imul(te,yt)|0,k=Math.imul(te,Ne),b=b+Math.imul(Et,pt)|0,d=d+Math.imul(Et,Bt)|0,d=d+Math.imul(Ct,pt)|0,k=k+Math.imul(Ct,Bt)|0,b=b+Math.imul(Ge,kt)|0,d=d+Math.imul(Ge,Ut)|0,d=d+Math.imul(Qe,kt)|0,k=k+Math.imul(Qe,Ut)|0,b=b+Math.imul(at,zt)|0,d=d+Math.imul(at,Qt)|0,d=d+Math.imul(bt,zt)|0,k=k+Math.imul(bt,Qt)|0,b=b+Math.imul(lt,be)|0,d=d+Math.imul(lt,ve)|0,d=d+Math.imul(Je,be)|0,k=k+Math.imul(Je,ve)|0,b=b+Math.imul(st,Pe)|0,d=d+Math.imul(st,ze)|0,d=d+Math.imul(dt,Pe)|0,k=k+Math.imul(dt,ze)|0,b=b+Math.imul(pe,ot)|0,d=d+Math.imul(pe,wt)|0,d=d+Math.imul(qe,ot)|0,k=k+Math.imul(qe,wt)|0;var Lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,b=Math.imul(Me,pt),d=Math.imul(Me,Bt),d=d+Math.imul(te,pt)|0,k=Math.imul(te,Bt),b=b+Math.imul(Et,kt)|0,d=d+Math.imul(Et,Ut)|0,d=d+Math.imul(Ct,kt)|0,k=k+Math.imul(Ct,Ut)|0,b=b+Math.imul(Ge,zt)|0,d=d+Math.imul(Ge,Qt)|0,d=d+Math.imul(Qe,zt)|0,k=k+Math.imul(Qe,Qt)|0,b=b+Math.imul(at,be)|0,d=d+Math.imul(at,ve)|0,d=d+Math.imul(bt,be)|0,k=k+Math.imul(bt,ve)|0,b=b+Math.imul(lt,Pe)|0,d=d+Math.imul(lt,ze)|0,d=d+Math.imul(Je,Pe)|0,k=k+Math.imul(Je,ze)|0,b=b+Math.imul(st,ot)|0,d=d+Math.imul(st,wt)|0,d=d+Math.imul(dt,ot)|0,k=k+Math.imul(dt,wt)|0;var Ar=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,b=Math.imul(Me,kt),d=Math.imul(Me,Ut),d=d+Math.imul(te,kt)|0,k=Math.imul(te,Ut),b=b+Math.imul(Et,zt)|0,d=d+Math.imul(Et,Qt)|0,d=d+Math.imul(Ct,zt)|0,k=k+Math.imul(Ct,Qt)|0,b=b+Math.imul(Ge,be)|0,d=d+Math.imul(Ge,ve)|0,d=d+Math.imul(Qe,be)|0,k=k+Math.imul(Qe,ve)|0,b=b+Math.imul(at,Pe)|0,d=d+Math.imul(at,ze)|0,d=d+Math.imul(bt,Pe)|0,k=k+Math.imul(bt,ze)|0,b=b+Math.imul(lt,ot)|0,d=d+Math.imul(lt,wt)|0,d=d+Math.imul(Je,ot)|0,k=k+Math.imul(Je,wt)|0;var Tr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(Me,zt),d=Math.imul(Me,Qt),d=d+Math.imul(te,zt)|0,k=Math.imul(te,Qt),b=b+Math.imul(Et,be)|0,d=d+Math.imul(Et,ve)|0,d=d+Math.imul(Ct,be)|0,k=k+Math.imul(Ct,ve)|0,b=b+Math.imul(Ge,Pe)|0,d=d+Math.imul(Ge,ze)|0,d=d+Math.imul(Qe,Pe)|0,k=k+Math.imul(Qe,ze)|0,b=b+Math.imul(at,ot)|0,d=d+Math.imul(at,wt)|0,d=d+Math.imul(bt,ot)|0,k=k+Math.imul(bt,wt)|0;var Sr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,b=Math.imul(Me,be),d=Math.imul(Me,ve),d=d+Math.imul(te,be)|0,k=Math.imul(te,ve),b=b+Math.imul(Et,Pe)|0,d=d+Math.imul(Et,ze)|0,d=d+Math.imul(Ct,Pe)|0,k=k+Math.imul(Ct,ze)|0,b=b+Math.imul(Ge,ot)|0,d=d+Math.imul(Ge,wt)|0,d=d+Math.imul(Qe,ot)|0,k=k+Math.imul(Qe,wt)|0;var rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(rr>>>26)|0,rr&=67108863,b=Math.imul(Me,Pe),d=Math.imul(Me,ze),d=d+Math.imul(te,Pe)|0,k=Math.imul(te,ze),b=b+Math.imul(Et,ot)|0,d=d+Math.imul(Et,wt)|0,d=d+Math.imul(Ct,ot)|0,k=k+Math.imul(Ct,wt)|0;var Nt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,b=Math.imul(Me,ot),d=Math.imul(Me,wt),d=d+Math.imul(te,ot)|0,k=Math.imul(te,wt);var Gt=(T+b|0)+((d&8191)<<13)|0;return T=(k+(d>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,x[0]=Yt,x[1]=Jt,x[2]=wr,x[3]=lr,x[4]=Rr,x[5]=vr,x[6]=dr,x[7]=Ir,x[8]=kr,x[9]=Fr,x[10]=jr,x[11]=Cr,x[12]=Lr,x[13]=Ar,x[14]=Tr,x[15]=Sr,x[16]=rr,x[17]=Nt,x[18]=Gt,T!==0&&(x[19]=T,S.length++),S};Math.imul||(j=I);function B(L,p,y){y.negative=p.negative^L.negative,y.length=L.length+p.length;for(var S=0,c=0,m=0;m<y.length-1;m++){var x=c;c=0;for(var T=S&67108863,b=Math.min(m,p.length-1),d=Math.max(0,m-L.length+1);d<=b;d++){var k=m-d,D=L.words[k]|0,O=p.words[d]|0,Q=D*O,J=Q&67108863;x=x+(Q/67108864|0)|0,J=J+T|0,T=J&67108863,x=x+(J>>>26)|0,c+=x>>>26,x&=67108863}y.words[m]=T,S=x,x=c}return S!==0?y.words[m]=S:y.length--,y.strip()}function F(L,p,y){var S=new N;return S.mulp(L,p,y)}u.prototype.mulTo=function(p,y){var S,c=this.length+p.length;return this.length===10&&p.length===10?S=j(this,p,y):c<63?S=I(this,p,y):c<1024?S=B(this,p,y):S=F(this,p,y),S};function N(L,p){this.x=L,this.y=p}N.prototype.makeRBT=function(p){for(var y=new Array(p),S=u.prototype._countBits(p)-1,c=0;c<p;c++)y[c]=this.revBin(c,S,p);return y},N.prototype.revBin=function(p,y,S){if(p===0||p===S-1)return p;for(var c=0,m=0;m<y;m++)c|=(p&1)<<y-m-1,p>>=1;return c},N.prototype.permute=function(p,y,S,c,m,x){for(var T=0;T<x;T++)c[T]=y[p[T]],m[T]=S[p[T]]},N.prototype.transform=function(p,y,S,c,m,x){this.permute(x,p,y,S,c,m);for(var T=1;T<m;T<<=1)for(var b=T<<1,d=Math.cos(2*Math.PI/b),k=Math.sin(2*Math.PI/b),D=0;D<m;D+=b)for(var O=d,Q=k,J=0;J<T;J++){var X=S[D+J],U=c[D+J],z=S[D+J+T],ie=c[D+J+T],de=O*z-Q*ie;ie=O*ie+Q*z,z=de,S[D+J]=X+z,c[D+J]=U+ie,S[D+J+T]=X-z,c[D+J+T]=U-ie,J!==b&&(de=d*O-k*Q,Q=d*Q+k*O,O=de)}},N.prototype.guessLen13b=function(p,y){var S=Math.max(y,p)|1,c=S&1,m=0;for(S=S/2|0;S;S=S>>>1)m++;return 1<<m+1+c},N.prototype.conjugate=function(p,y,S){if(!(S<=1))for(var c=0;c<S/2;c++){var m=p[c];p[c]=p[S-c-1],p[S-c-1]=m,m=y[c],y[c]=-y[S-c-1],y[S-c-1]=-m}},N.prototype.normalize13b=function(p,y){for(var S=0,c=0;c<y/2;c++){var m=Math.round(p[2*c+1]/y)*8192+Math.round(p[2*c]/y)+S;p[c]=m&67108863,m<67108864?S=0:S=m/67108864|0}return p},N.prototype.convert13b=function(p,y,S,c){for(var m=0,x=0;x<y;x++)m=m+(p[x]|0),S[2*x]=m&8191,m=m>>>13,S[2*x+1]=m&8191,m=m>>>13;for(x=2*y;x<c;++x)S[x]=0;l(m===0),l((m&-8192)===0)},N.prototype.stub=function(p){for(var y=new Array(p),S=0;S<p;S++)y[S]=0;return y},N.prototype.mulp=function(p,y,S){var c=2*this.guessLen13b(p.length,y.length),m=this.makeRBT(c),x=this.stub(c),T=new Array(c),b=new Array(c),d=new Array(c),k=new Array(c),D=new Array(c),O=new Array(c),Q=S.words;Q.length=c,this.convert13b(p.words,p.length,T,c),this.convert13b(y.words,y.length,k,c),this.transform(T,x,b,d,c,m),this.transform(k,x,D,O,c,m);for(var J=0;J<c;J++){var X=b[J]*D[J]-d[J]*O[J];d[J]=b[J]*O[J]+d[J]*D[J],b[J]=X}return this.conjugate(b,d,c),this.transform(b,d,Q,x,c,m),this.conjugate(Q,x,c),this.normalize13b(Q,c),S.negative=p.negative^y.negative,S.length=p.length+y.length,S.strip()},u.prototype.mul=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),this.mulTo(p,y)},u.prototype.mulf=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),F(this,p,y)},u.prototype.imul=function(p){return this.clone().mulTo(p,this)},u.prototype.imuln=function(p){l(typeof p=="number"),l(p<67108864);for(var y=0,S=0;S<this.length;S++){var c=(this.words[S]|0)*p,m=(c&67108863)+(y&67108863);y>>=26,y+=c/67108864|0,y+=m>>>26,this.words[S]=m&67108863}return y!==0&&(this.words[S]=y,this.length++),this},u.prototype.muln=function(p){return this.clone().imuln(p)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(p){var y=P(p);if(y.length===0)return new u(1);for(var S=this,c=0;c<y.length&&y[c]===0;c++,S=S.sqr());if(++c<y.length)for(var m=S.sqr();c<y.length;c++,m=m.sqr())y[c]!==0&&(S=S.mul(m));return S},u.prototype.iushln=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=67108863>>>26-y<<26-y,m;if(y!==0){var x=0;for(m=0;m<this.length;m++){var T=this.words[m]&c,b=(this.words[m]|0)-T<<y;this.words[m]=b|x,x=T>>>26-y}x&&(this.words[m]=x,this.length++)}if(S!==0){for(m=this.length-1;m>=0;m--)this.words[m+S]=this.words[m];for(m=0;m<S;m++)this.words[m]=0;this.length+=S}return this.strip()},u.prototype.ishln=function(p){return l(this.negative===0),this.iushln(p)},u.prototype.iushrn=function(p,y,S){l(typeof p=="number"&&p>=0);var c;y?c=(y-y%26)/26:c=0;var m=p%26,x=Math.min((p-m)/26,this.length),T=67108863^67108863>>>m<<m,b=S;if(c-=x,c=Math.max(0,c),b){for(var d=0;d<x;d++)b.words[d]=this.words[d];b.length=x}if(x!==0)if(this.length>x)for(this.length-=x,d=0;d<this.length;d++)this.words[d]=this.words[d+x];else this.words[0]=0,this.length=1;var k=0;for(d=this.length-1;d>=0&&(k!==0||d>=c);d--){var D=this.words[d]|0;this.words[d]=k<<26-m|D>>>m,k=D&T}return b&&k!==0&&(b.words[b.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(p,y,S){return l(this.negative===0),this.iushrn(p,y,S)},u.prototype.shln=function(p){return this.clone().ishln(p)},u.prototype.ushln=function(p){return this.clone().iushln(p)},u.prototype.shrn=function(p){return this.clone().ishrn(p)},u.prototype.ushrn=function(p){return this.clone().iushrn(p)},u.prototype.testn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return!1;var m=this.words[S];return!!(m&c)},u.prototype.imaskn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(y!==0&&S++,this.length=Math.min(S,this.length),y!==0){var c=67108863^67108863>>>y<<y;this.words[this.length-1]&=c}return this.strip()},u.prototype.maskn=function(p){return this.clone().imaskn(p)},u.prototype.iaddn=function(p){return l(typeof p=="number"),l(p<67108864),p<0?this.isubn(-p):this.negative!==0?this.length===1&&(this.words[0]|0)<p?(this.words[0]=p-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(p),this.negative=1,this):this._iaddn(p)},u.prototype._iaddn=function(p){this.words[0]+=p;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},u.prototype.isubn=function(p){if(l(typeof p=="number"),l(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this.strip()},u.prototype.addn=function(p){return this.clone().iaddn(p)},u.prototype.subn=function(p){return this.clone().isubn(p)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(p,y,S){var c=p.length+S,m;this._expand(c);var x,T=0;for(m=0;m<p.length;m++){x=(this.words[m+S]|0)+T;var b=(p.words[m]|0)*y;x-=b&67108863,T=(x>>26)-(b/67108864|0),this.words[m+S]=x&67108863}for(;m<this.length-S;m++)x=(this.words[m+S]|0)+T,T=x>>26,this.words[m+S]=x&67108863;if(T===0)return this.strip();for(l(T===-1),T=0,m=0;m<this.length;m++)x=-(this.words[m]|0)+T,T=x>>26,this.words[m]=x&67108863;return this.negative=1,this.strip()},u.prototype._wordDiv=function(p,y){var S=this.length-p.length,c=this.clone(),m=p,x=m.words[m.length-1]|0,T=this._countBits(x);S=26-T,S!==0&&(m=m.ushln(S),c.iushln(S),x=m.words[m.length-1]|0);var b=c.length-m.length,d;if(y!=="mod"){d=new u(null),d.length=b+1,d.words=new Array(d.length);for(var k=0;k<d.length;k++)d.words[k]=0}var D=c.clone()._ishlnsubmul(m,1,b);D.negative===0&&(c=D,d&&(d.words[b]=1));for(var O=b-1;O>=0;O--){var Q=(c.words[m.length+O]|0)*67108864+(c.words[m.length+O-1]|0);for(Q=Math.min(Q/x|0,67108863),c._ishlnsubmul(m,Q,O);c.negative!==0;)Q--,c.negative=0,c._ishlnsubmul(m,1,O),c.isZero()||(c.negative^=1);d&&(d.words[O]=Q)}return d&&d.strip(),c.strip(),y!=="div"&&S!==0&&c.iushrn(S),{div:d||null,mod:c}},u.prototype.divmod=function(p,y,S){if(l(!p.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var c,m,x;return this.negative!==0&&p.negative===0?(x=this.neg().divmod(p,y),y!=="mod"&&(c=x.div.neg()),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.iadd(p)),{div:c,mod:m}):this.negative===0&&p.negative!==0?(x=this.divmod(p.neg(),y),y!=="mod"&&(c=x.div.neg()),{div:c,mod:x.mod}):this.negative&p.negative?(x=this.neg().divmod(p.neg(),y),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.isub(p)),{div:x.div,mod:m}):p.length>this.length||this.cmp(p)<0?{div:new u(0),mod:this}:p.length===1?y==="div"?{div:this.divn(p.words[0]),mod:null}:y==="mod"?{div:null,mod:new u(this.modn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new u(this.modn(p.words[0]))}:this._wordDiv(p,y)},u.prototype.div=function(p){return this.divmod(p,"div",!1).div},u.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},u.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},u.prototype.divRound=function(p){var y=this.divmod(p);if(y.mod.isZero())return y.div;var S=y.div.negative!==0?y.mod.isub(p):y.mod,c=p.ushrn(1),m=p.andln(1),x=S.cmp(c);return x<0||m===1&&x===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},u.prototype.modn=function(p){l(p<=67108863);for(var y=(1<<26)%p,S=0,c=this.length-1;c>=0;c--)S=(y*S+(this.words[c]|0))%p;return S},u.prototype.idivn=function(p){l(p<=67108863);for(var y=0,S=this.length-1;S>=0;S--){var c=(this.words[S]|0)+y*67108864;this.words[S]=c/p|0,y=c%p}return this.strip()},u.prototype.divn=function(p){return this.clone().idivn(p)},u.prototype.egcd=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=new u(0),T=new u(1),b=0;y.isEven()&&S.isEven();)y.iushrn(1),S.iushrn(1),++b;for(var d=S.clone(),k=y.clone();!y.isZero();){for(var D=0,O=1;!(y.words[0]&O)&&D<26;++D,O<<=1);if(D>0)for(y.iushrn(D);D-- >0;)(c.isOdd()||m.isOdd())&&(c.iadd(d),m.isub(k)),c.iushrn(1),m.iushrn(1);for(var Q=0,J=1;!(S.words[0]&J)&&Q<26;++Q,J<<=1);if(Q>0)for(S.iushrn(Q);Q-- >0;)(x.isOdd()||T.isOdd())&&(x.iadd(d),T.isub(k)),x.iushrn(1),T.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(x),m.isub(T)):(S.isub(y),x.isub(c),T.isub(m))}return{a:x,b:T,gcd:S.iushln(b)}},u.prototype._invmp=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=S.clone();y.cmpn(1)>0&&S.cmpn(1)>0;){for(var T=0,b=1;!(y.words[0]&b)&&T<26;++T,b<<=1);if(T>0)for(y.iushrn(T);T-- >0;)c.isOdd()&&c.iadd(x),c.iushrn(1);for(var d=0,k=1;!(S.words[0]&k)&&d<26;++d,k<<=1);if(d>0)for(S.iushrn(d);d-- >0;)m.isOdd()&&m.iadd(x),m.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(m)):(S.isub(y),m.isub(c))}var D;return y.cmpn(1)===0?D=c:D=m,D.cmpn(0)<0&&D.iadd(p),D},u.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var y=this.clone(),S=p.clone();y.negative=0,S.negative=0;for(var c=0;y.isEven()&&S.isEven();c++)y.iushrn(1),S.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;S.isEven();)S.iushrn(1);var m=y.cmp(S);if(m<0){var x=y;y=S,S=x}else if(m===0||S.cmpn(1)===0)break;y.isub(S)}while(!0);return S.iushln(c)},u.prototype.invm=function(p){return this.egcd(p).a.umod(p)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(p){return this.words[0]&p},u.prototype.bincn=function(p){l(typeof p=="number");var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return this._expand(S+1),this.words[S]|=c,this;for(var m=c,x=S;m!==0&&x<this.length;x++){var T=this.words[x]|0;T+=m,m=T>>>26,T&=67108863,this.words[x]=T}return m!==0&&(this.words[x]=m,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(p){var y=p<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this.strip();var S;if(this.length>1)S=1;else{y&&(p=-p),l(p<=67108863,"Number is too big");var c=this.words[0]|0;S=c===p?0:c<p?-1:1}return this.negative!==0?-S|0:S},u.prototype.cmp=function(p){if(this.negative!==0&&p.negative===0)return-1;if(this.negative===0&&p.negative!==0)return 1;var y=this.ucmp(p);return this.negative!==0?-y|0:y},u.prototype.ucmp=function(p){if(this.length>p.length)return 1;if(this.length<p.length)return-1;for(var y=0,S=this.length-1;S>=0;S--){var c=this.words[S]|0,m=p.words[S]|0;if(c!==m){c<m?y=-1:c>m&&(y=1);break}}return y},u.prototype.gtn=function(p){return this.cmpn(p)===1},u.prototype.gt=function(p){return this.cmp(p)===1},u.prototype.gten=function(p){return this.cmpn(p)>=0},u.prototype.gte=function(p){return this.cmp(p)>=0},u.prototype.ltn=function(p){return this.cmpn(p)===-1},u.prototype.lt=function(p){return this.cmp(p)===-1},u.prototype.lten=function(p){return this.cmpn(p)<=0},u.prototype.lte=function(p){return this.cmp(p)<=0},u.prototype.eqn=function(p){return this.cmpn(p)===0},u.prototype.eq=function(p){return this.cmp(p)===0},u.red=function(p){return new he(p)},u.prototype.toRed=function(p){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},u.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(p){return this.red=p,this},u.prototype.forceRed=function(p){return l(!this.red,"Already a number in reduction context"),this._forceRed(p)},u.prototype.redAdd=function(p){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},u.prototype.redIAdd=function(p){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},u.prototype.redSub=function(p){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},u.prototype.redISub=function(p){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},u.prototype.redShl=function(p){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},u.prototype.redMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},u.prototype.redIMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},u.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(p){return l(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var ee={k256:null,p224:null,p192:null,p25519:null};function Z(L,p){this.name=L,this.p=new u(p,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Z.prototype._tmp=function(){var p=new u(null);return p.words=new Array(Math.ceil(this.n/13)),p},Z.prototype.ireduce=function(p){var y=p,S;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),S=y.bitLength();while(S>this.n);var c=S<this.n?-1:y.ucmp(this.p);return c===0?(y.words[0]=0,y.length=1):c>0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},Z.prototype.split=function(p,y){p.iushrn(this.n,0,y)},Z.prototype.imulK=function(p){return p.imul(this.k)};function re(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}t(re,Z),re.prototype.split=function(p,y){for(var S=4194303,c=Math.min(p.length,9),m=0;m<c;m++)y.words[m]=p.words[m];if(y.length=c,p.length<=9){p.words[0]=0,p.length=1;return}var x=p.words[9];for(y.words[y.length++]=x&S,m=10;m<p.length;m++){var T=p.words[m]|0;p.words[m-10]=(T&S)<<4|x>>>22,x=T}x>>>=22,p.words[m-10]=x,x===0&&p.length>10?p.length-=10:p.length-=9},re.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var y=0,S=0;S<p.length;S++){var c=p.words[S]|0;y+=c*977,p.words[S]=y&67108863,y=c*64+(y/67108864|0)}return p.words[p.length-1]===0&&(p.length--,p.words[p.length-1]===0&&p.length--),p};function fe(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}t(fe,Z);function V(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}t(V,Z);function le(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}t(le,Z),le.prototype.imulK=function(p){for(var y=0,S=0;S<p.length;S++){var c=(p.words[S]|0)*19+y,m=c&67108863;c>>>=26,p.words[S]=m,y=c}return y!==0&&(p.words[p.length++]=y),p},u._prime=function(p){if(ee[p])return ee[p];var y;if(p==="k256")y=new re;else if(p==="p224")y=new fe;else if(p==="p192")y=new V;else if(p==="p25519")y=new le;else throw new Error("Unknown prime "+p);return ee[p]=y,y};function he(L){if(typeof L=="string"){var p=u._prime(L);this.m=p.p,this.prime=p}else l(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}he.prototype._verify1=function(p){l(p.negative===0,"red works only with positives"),l(p.red,"red works only with red numbers")},he.prototype._verify2=function(p,y){l((p.negative|y.negative)===0,"red works only with positives"),l(p.red&&p.red===y.red,"red works only with red numbers")},he.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):p.umod(this.m)._forceRed(this)},he.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},he.prototype.add=function(p,y){this._verify2(p,y);var S=p.add(y);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},he.prototype.iadd=function(p,y){this._verify2(p,y);var S=p.iadd(y);return S.cmp(this.m)>=0&&S.isub(this.m),S},he.prototype.sub=function(p,y){this._verify2(p,y);var S=p.sub(y);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},he.prototype.isub=function(p,y){this._verify2(p,y);var S=p.isub(y);return S.cmpn(0)<0&&S.iadd(this.m),S},he.prototype.shl=function(p,y){return this._verify1(p),this.imod(p.ushln(y))},he.prototype.imul=function(p,y){return this._verify2(p,y),this.imod(p.imul(y))},he.prototype.mul=function(p,y){return this._verify2(p,y),this.imod(p.mul(y))},he.prototype.isqr=function(p){return this.imul(p,p.clone())},he.prototype.sqr=function(p){return this.mul(p,p)},he.prototype.sqrt=function(p){if(p.isZero())return p.clone();var y=this.m.andln(3);if(l(y%2===1),y===3){var S=this.m.add(new u(1)).iushrn(2);return this.pow(p,S)}for(var c=this.m.subn(1),m=0;!c.isZero()&&c.andln(1)===0;)m++,c.iushrn(1);l(!c.isZero());var x=new u(1).toRed(this),T=x.redNeg(),b=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new u(2*d*d).toRed(this);this.pow(d,b).cmp(T)!==0;)d.redIAdd(T);for(var k=this.pow(d,c),D=this.pow(p,c.addn(1).iushrn(1)),O=this.pow(p,c),Q=m;O.cmp(x)!==0;){for(var J=O,X=0;J.cmp(x)!==0;X++)J=J.redSqr();l(X<Q);var U=this.pow(k,new u(1).iushln(Q-X-1));D=D.redMul(U),k=U.redSqr(),O=O.redMul(k),Q=X}return D},he.prototype.invm=function(p){var y=p._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},he.prototype.pow=function(p,y){if(y.isZero())return new u(1).toRed(this);if(y.cmpn(1)===0)return p.clone();var S=4,c=new Array(1<<S);c[0]=new u(1).toRed(this),c[1]=p;for(var m=2;m<c.length;m++)c[m]=this.mul(c[m-1],p);var x=c[0],T=0,b=0,d=y.bitLength()%26;for(d===0&&(d=26),m=y.length-1;m>=0;m--){for(var k=y.words[m],D=d-1;D>=0;D--){var O=k>>D&1;if(x!==c[0]&&(x=this.sqr(x)),O===0&&T===0){b=0;continue}T<<=1,T|=O,b++,!(b!==S&&(m!==0||D!==0))&&(x=this.mul(x,c[T]),b=0,T=0)}d=26}return x},he.prototype.convertTo=function(p){var y=p.umod(this.m);return y===p?y.clone():y},he.prototype.convertFrom=function(p){var y=p.clone();return y.red=null,y},u.mont=function(p){return new ye(p)};function ye(L){he.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}t(ye,he),ye.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},ye.prototype.convertFrom=function(p){var y=this.imod(p.mul(this.rinv));return y.red=null,y},ye.prototype.imul=function(p,y){if(p.isZero()||y.isZero())return p.words[0]=0,p.length=1,p;var S=p.imul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.mul=function(p,y){if(p.isZero()||y.isZero())return new u(0)._forceRed(this);var S=p.mul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.invm=function(p){var y=this.imod(p._invmp(this.m).mul(this.r2));return y._forceRed(this)}})(n,commonjsGlobal$1)}(bn$6);var bnExports$6=bn$6.exports,bn$5={exports:{}};bn$5.exports,function(n){(function(e,o){function l(L,p){if(!L)throw new Error(p||"Assertion failed")}function t(L,p){L.super_=p;var y=function(){};y.prototype=p.prototype,L.prototype=new y,L.prototype.constructor=L}function u(L,p,y){if(u.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,L!==null&&((p==="le"||p==="be")&&(y=p,p=10),this._init(L||0,p||10,y||"be"))}typeof e=="object"?e.exports=u:o.BN=u,u.BN=u,u.wordSize=26;var h;try{typeof window<"u"&&typeof window.Buffer<"u"?h=window.Buffer:h=require$$0$2.Buffer}catch{}u.isBN=function(p){return p instanceof u?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===u.wordSize&&Array.isArray(p.words)},u.max=function(p,y){return p.cmp(y)>0?p:y},u.min=function(p,y){return p.cmp(y)<0?p:y},u.prototype._init=function(p,y,S){if(typeof p=="number")return this._initNumber(p,y,S);if(typeof p=="object")return this._initArray(p,y,S);y==="hex"&&(y=16),l(y===(y|0)&&y>=2&&y<=36),p=p.toString().replace(/\s+/g,"");var c=0;p[0]==="-"&&(c++,this.negative=1),c<p.length&&(y===16?this._parseHex(p,c,S):(this._parseBase(p,y,c),S==="le"&&this._initArray(this.toArray(),y,S)))},u.prototype._initNumber=function(p,y,S){p<0&&(this.negative=1,p=-p),p<67108864?(this.words=[p&67108863],this.length=1):p<4503599627370496?(this.words=[p&67108863,p/67108864&67108863],this.length=2):(l(p<9007199254740992),this.words=[p&67108863,p/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),y,S)},u.prototype._initArray=function(p,y,S){if(l(typeof p.length=="number"),p.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(p.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m,x,T=0;if(S==="be")for(c=p.length-1,m=0;c>=0;c-=3)x=p[c]|p[c-1]<<8|p[c-2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);else if(S==="le")for(c=0,m=0;c<p.length;c+=3)x=p[c]|p[c+1]<<8|p[c+2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);return this.strip()};function v(L,p){var y=L.charCodeAt(p);return y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:y-48&15}function w(L,p,y){var S=v(L,y);return y-1>=p&&(S|=v(L,y-1)<<4),S}u.prototype._parseHex=function(p,y,S){this.length=Math.ceil((p.length-y)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m=0,x=0,T;if(S==="be")for(c=p.length-1;c>=y;c-=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8;else{var b=p.length-y;for(c=b%2===0?y+1:y;c<p.length;c+=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8}this.strip()};function A(L,p,y,S){for(var c=0,m=Math.min(L.length,y),x=p;x<m;x++){var T=L.charCodeAt(x)-48;c*=S,T>=49?c+=T-49+10:T>=17?c+=T-17+10:c+=T}return c}u.prototype._parseBase=function(p,y,S){this.words=[0],this.length=1;for(var c=0,m=1;m<=67108863;m*=y)c++;c--,m=m/y|0;for(var x=p.length-S,T=x%c,b=Math.min(x,x-T)+S,d=0,k=S;k<b;k+=c)d=A(p,k,k+c,y),this.imuln(m),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(T!==0){var D=1;for(d=A(p,k,p.length,y),k=0;k<T;k++)D*=y;this.imuln(D),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}this.strip()},u.prototype.copy=function(p){p.words=new Array(this.length);for(var y=0;y<this.length;y++)p.words[y]=this.words[y];p.length=this.length,p.negative=this.negative,p.red=this.red},u.prototype.clone=function(){var p=new u(null);return this.copy(p),p},u.prototype._expand=function(p){for(;this.length<p;)this.words[this.length++]=0;return this},u.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},u.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(p,y){p=p||10,y=y|0||1;var S;if(p===16||p==="hex"){S="";for(var c=0,m=0,x=0;x<this.length;x++){var T=this.words[x],b=((T<<c|m)&16777215).toString(16);m=T>>>24-c&16777215,m!==0||x!==this.length-1?S=E[6-b.length]+b+S:S=b+S,c+=2,c>=26&&(c-=26,x--)}for(m!==0&&(S=m.toString(16)+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(p===(p|0)&&p>=2&&p<=36){var d=C[p],k=M[p];S="";var D=this.clone();for(D.negative=0;!D.isZero();){var O=D.modn(k).toString(p);D=D.idivn(k),D.isZero()?S=O+S:S=E[d-O.length]+O+S}for(this.isZero()&&(S="0"+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}l(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},u.prototype.toJSON=function(){return this.toString(16)},u.prototype.toBuffer=function(p,y){return l(typeof h<"u"),this.toArrayLike(h,p,y)},u.prototype.toArray=function(p,y){return this.toArrayLike(Array,p,y)},u.prototype.toArrayLike=function(p,y,S){var c=this.byteLength(),m=S||Math.max(1,c);l(c<=m,"byte array longer than desired length"),l(m>0,"Requested array length <= 0"),this.strip();var x=y==="le",T=new p(m),b,d,k=this.clone();if(x){for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[d]=b;for(;d<m;d++)T[d]=0}else{for(d=0;d<m-c;d++)T[d]=0;for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[m-d-1]=b}return T},Math.clz32?u.prototype._countBits=function(p){return 32-Math.clz32(p)}:u.prototype._countBits=function(p){var y=p,S=0;return y>=4096&&(S+=13,y>>>=13),y>=64&&(S+=7,y>>>=7),y>=8&&(S+=4,y>>>=4),y>=2&&(S+=2,y>>>=2),S+y},u.prototype._zeroBits=function(p){if(p===0)return 26;var y=p,S=0;return y&8191||(S+=13,y>>>=13),y&127||(S+=7,y>>>=7),y&15||(S+=4,y>>>=4),y&3||(S+=2,y>>>=2),y&1||S++,S},u.prototype.bitLength=function(){var p=this.words[this.length-1],y=this._countBits(p);return(this.length-1)*26+y};function P(L){for(var p=new Array(L.bitLength()),y=0;y<p.length;y++){var S=y/26|0,c=y%26;p[y]=(L.words[S]&1<<c)>>>c}return p}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,y=0;y<this.length;y++){var S=this._zeroBits(this.words[y]);if(p+=S,S!==26)break}return p},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(p){return this.negative!==0?this.abs().inotn(p).iaddn(1):this.clone()},u.prototype.fromTwos=function(p){return this.testn(p-1)?this.notn(p).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(p){for(;this.length<p.length;)this.words[this.length++]=0;for(var y=0;y<p.length;y++)this.words[y]=this.words[y]|p.words[y];return this.strip()},u.prototype.ior=function(p){return l((this.negative|p.negative)===0),this.iuor(p)},u.prototype.or=function(p){return this.length>p.length?this.clone().ior(p):p.clone().ior(this)},u.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},u.prototype.iuand=function(p){var y;this.length>p.length?y=p:y=this;for(var S=0;S<y.length;S++)this.words[S]=this.words[S]&p.words[S];return this.length=y.length,this.strip()},u.prototype.iand=function(p){return l((this.negative|p.negative)===0),this.iuand(p)},u.prototype.and=function(p){return this.length>p.length?this.clone().iand(p):p.clone().iand(this)},u.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},u.prototype.iuxor=function(p){var y,S;this.length>p.length?(y=this,S=p):(y=p,S=this);for(var c=0;c<S.length;c++)this.words[c]=y.words[c]^S.words[c];if(this!==y)for(;c<y.length;c++)this.words[c]=y.words[c];return this.length=y.length,this.strip()},u.prototype.ixor=function(p){return l((this.negative|p.negative)===0),this.iuxor(p)},u.prototype.xor=function(p){return this.length>p.length?this.clone().ixor(p):p.clone().ixor(this)},u.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},u.prototype.inotn=function(p){l(typeof p=="number"&&p>=0);var y=Math.ceil(p/26)|0,S=p%26;this._expand(y),S>0&&y--;for(var c=0;c<y;c++)this.words[c]=~this.words[c]&67108863;return S>0&&(this.words[c]=~this.words[c]&67108863>>26-S),this.strip()},u.prototype.notn=function(p){return this.clone().inotn(p)},u.prototype.setn=function(p,y){l(typeof p=="number"&&p>=0);var S=p/26|0,c=p%26;return this._expand(S+1),y?this.words[S]=this.words[S]|1<<c:this.words[S]=this.words[S]&~(1<<c),this.strip()},u.prototype.iadd=function(p){var y;if(this.negative!==0&&p.negative===0)return this.negative=0,y=this.isub(p),this.negative^=1,this._normSign();if(this.negative===0&&p.negative!==0)return p.negative=0,y=this.isub(p),p.negative=1,y._normSign();var S,c;this.length>p.length?(S=this,c=p):(S=p,c=this);for(var m=0,x=0;x<c.length;x++)y=(S.words[x]|0)+(c.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;for(;m!==0&&x<S.length;x++)y=(S.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;if(this.length=S.length,m!==0)this.words[this.length]=m,this.length++;else if(S!==this)for(;x<S.length;x++)this.words[x]=S.words[x];return this},u.prototype.add=function(p){var y;return p.negative!==0&&this.negative===0?(p.negative=0,y=this.sub(p),p.negative^=1,y):p.negative===0&&this.negative!==0?(this.negative=0,y=p.sub(this),this.negative=1,y):this.length>p.length?this.clone().iadd(p):p.clone().iadd(this)},u.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var y=this.iadd(p);return p.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var S=this.cmp(p);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,m;S>0?(c=this,m=p):(c=p,m=this);for(var x=0,T=0;T<m.length;T++)y=(c.words[T]|0)-(m.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;for(;x!==0&&T<c.length;T++)y=(c.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;if(x===0&&T<c.length&&c!==this)for(;T<c.length;T++)this.words[T]=c.words[T];return this.length=Math.max(this.length,T),c!==this&&(this.negative=1),this.strip()},u.prototype.sub=function(p){return this.clone().isub(p)};function I(L,p,y){y.negative=p.negative^L.negative;var S=L.length+p.length|0;y.length=S,S=S-1|0;var c=L.words[0]|0,m=p.words[0]|0,x=c*m,T=x&67108863,b=x/67108864|0;y.words[0]=T;for(var d=1;d<S;d++){for(var k=b>>>26,D=b&67108863,O=Math.min(d,p.length-1),Q=Math.max(0,d-L.length+1);Q<=O;Q++){var J=d-Q|0;c=L.words[J]|0,m=p.words[Q]|0,x=c*m+D,k+=x/67108864|0,D=x&67108863}y.words[d]=D|0,b=k|0}return b!==0?y.words[d]=b|0:y.length--,y.strip()}var j=function(p,y,S){var c=p.words,m=y.words,x=S.words,T=0,b,d,k,D=c[0]|0,O=D&8191,Q=D>>>13,J=c[1]|0,X=J&8191,U=J>>>13,z=c[2]|0,ie=z&8191,de=z>>>13,me=c[3]|0,pe=me&8191,qe=me>>>13,mt=c[4]|0,st=mt&8191,dt=mt>>>13,Tt=c[5]|0,lt=Tt&8191,Je=Tt>>>13,ht=c[6]|0,at=ht&8191,bt=ht>>>13,jt=c[7]|0,Ge=jt&8191,Qe=jt>>>13,Wt=c[8]|0,Et=Wt&8191,Ct=Wt>>>13,Kt=c[9]|0,Me=Kt&8191,te=Kt>>>13,_e=m[0]|0,je=_e&8191,We=_e>>>13,et=m[1]|0,Ye=et&8191,De=et>>>13,Ht=m[2]|0,Mt=Ht&8191,ge=Ht>>>13,Dt=m[3]|0,yt=Dt&8191,Ne=Dt>>>13,_t=m[4]|0,pt=_t&8191,Bt=_t>>>13,ur=m[5]|0,kt=ur&8191,Ut=ur>>>13,Wr=m[6]|0,zt=Wr&8191,Qt=Wr>>>13,$e=m[7]|0,be=$e&8191,ve=$e>>>13,se=m[8]|0,Pe=se&8191,ze=se>>>13,xt=m[9]|0,ot=xt&8191,wt=xt>>>13;S.negative=p.negative^y.negative,S.length=19,b=Math.imul(O,je),d=Math.imul(O,We),d=d+Math.imul(Q,je)|0,k=Math.imul(Q,We);var Yt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,b=Math.imul(X,je),d=Math.imul(X,We),d=d+Math.imul(U,je)|0,k=Math.imul(U,We),b=b+Math.imul(O,Ye)|0,d=d+Math.imul(O,De)|0,d=d+Math.imul(Q,Ye)|0,k=k+Math.imul(Q,De)|0;var Jt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,b=Math.imul(ie,je),d=Math.imul(ie,We),d=d+Math.imul(de,je)|0,k=Math.imul(de,We),b=b+Math.imul(X,Ye)|0,d=d+Math.imul(X,De)|0,d=d+Math.imul(U,Ye)|0,k=k+Math.imul(U,De)|0,b=b+Math.imul(O,Mt)|0,d=d+Math.imul(O,ge)|0,d=d+Math.imul(Q,Mt)|0,k=k+Math.imul(Q,ge)|0;var wr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(wr>>>26)|0,wr&=67108863,b=Math.imul(pe,je),d=Math.imul(pe,We),d=d+Math.imul(qe,je)|0,k=Math.imul(qe,We),b=b+Math.imul(ie,Ye)|0,d=d+Math.imul(ie,De)|0,d=d+Math.imul(de,Ye)|0,k=k+Math.imul(de,De)|0,b=b+Math.imul(X,Mt)|0,d=d+Math.imul(X,ge)|0,d=d+Math.imul(U,Mt)|0,k=k+Math.imul(U,ge)|0,b=b+Math.imul(O,yt)|0,d=d+Math.imul(O,Ne)|0,d=d+Math.imul(Q,yt)|0,k=k+Math.imul(Q,Ne)|0;var lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(lr>>>26)|0,lr&=67108863,b=Math.imul(st,je),d=Math.imul(st,We),d=d+Math.imul(dt,je)|0,k=Math.imul(dt,We),b=b+Math.imul(pe,Ye)|0,d=d+Math.imul(pe,De)|0,d=d+Math.imul(qe,Ye)|0,k=k+Math.imul(qe,De)|0,b=b+Math.imul(ie,Mt)|0,d=d+Math.imul(ie,ge)|0,d=d+Math.imul(de,Mt)|0,k=k+Math.imul(de,ge)|0,b=b+Math.imul(X,yt)|0,d=d+Math.imul(X,Ne)|0,d=d+Math.imul(U,yt)|0,k=k+Math.imul(U,Ne)|0,b=b+Math.imul(O,pt)|0,d=d+Math.imul(O,Bt)|0,d=d+Math.imul(Q,pt)|0,k=k+Math.imul(Q,Bt)|0;var Rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,b=Math.imul(lt,je),d=Math.imul(lt,We),d=d+Math.imul(Je,je)|0,k=Math.imul(Je,We),b=b+Math.imul(st,Ye)|0,d=d+Math.imul(st,De)|0,d=d+Math.imul(dt,Ye)|0,k=k+Math.imul(dt,De)|0,b=b+Math.imul(pe,Mt)|0,d=d+Math.imul(pe,ge)|0,d=d+Math.imul(qe,Mt)|0,k=k+Math.imul(qe,ge)|0,b=b+Math.imul(ie,yt)|0,d=d+Math.imul(ie,Ne)|0,d=d+Math.imul(de,yt)|0,k=k+Math.imul(de,Ne)|0,b=b+Math.imul(X,pt)|0,d=d+Math.imul(X,Bt)|0,d=d+Math.imul(U,pt)|0,k=k+Math.imul(U,Bt)|0,b=b+Math.imul(O,kt)|0,d=d+Math.imul(O,Ut)|0,d=d+Math.imul(Q,kt)|0,k=k+Math.imul(Q,Ut)|0;var vr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(vr>>>26)|0,vr&=67108863,b=Math.imul(at,je),d=Math.imul(at,We),d=d+Math.imul(bt,je)|0,k=Math.imul(bt,We),b=b+Math.imul(lt,Ye)|0,d=d+Math.imul(lt,De)|0,d=d+Math.imul(Je,Ye)|0,k=k+Math.imul(Je,De)|0,b=b+Math.imul(st,Mt)|0,d=d+Math.imul(st,ge)|0,d=d+Math.imul(dt,Mt)|0,k=k+Math.imul(dt,ge)|0,b=b+Math.imul(pe,yt)|0,d=d+Math.imul(pe,Ne)|0,d=d+Math.imul(qe,yt)|0,k=k+Math.imul(qe,Ne)|0,b=b+Math.imul(ie,pt)|0,d=d+Math.imul(ie,Bt)|0,d=d+Math.imul(de,pt)|0,k=k+Math.imul(de,Bt)|0,b=b+Math.imul(X,kt)|0,d=d+Math.imul(X,Ut)|0,d=d+Math.imul(U,kt)|0,k=k+Math.imul(U,Ut)|0,b=b+Math.imul(O,zt)|0,d=d+Math.imul(O,Qt)|0,d=d+Math.imul(Q,zt)|0,k=k+Math.imul(Q,Qt)|0;var dr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(dr>>>26)|0,dr&=67108863,b=Math.imul(Ge,je),d=Math.imul(Ge,We),d=d+Math.imul(Qe,je)|0,k=Math.imul(Qe,We),b=b+Math.imul(at,Ye)|0,d=d+Math.imul(at,De)|0,d=d+Math.imul(bt,Ye)|0,k=k+Math.imul(bt,De)|0,b=b+Math.imul(lt,Mt)|0,d=d+Math.imul(lt,ge)|0,d=d+Math.imul(Je,Mt)|0,k=k+Math.imul(Je,ge)|0,b=b+Math.imul(st,yt)|0,d=d+Math.imul(st,Ne)|0,d=d+Math.imul(dt,yt)|0,k=k+Math.imul(dt,Ne)|0,b=b+Math.imul(pe,pt)|0,d=d+Math.imul(pe,Bt)|0,d=d+Math.imul(qe,pt)|0,k=k+Math.imul(qe,Bt)|0,b=b+Math.imul(ie,kt)|0,d=d+Math.imul(ie,Ut)|0,d=d+Math.imul(de,kt)|0,k=k+Math.imul(de,Ut)|0,b=b+Math.imul(X,zt)|0,d=d+Math.imul(X,Qt)|0,d=d+Math.imul(U,zt)|0,k=k+Math.imul(U,Qt)|0,b=b+Math.imul(O,be)|0,d=d+Math.imul(O,ve)|0,d=d+Math.imul(Q,be)|0,k=k+Math.imul(Q,ve)|0;var Ir=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,b=Math.imul(Et,je),d=Math.imul(Et,We),d=d+Math.imul(Ct,je)|0,k=Math.imul(Ct,We),b=b+Math.imul(Ge,Ye)|0,d=d+Math.imul(Ge,De)|0,d=d+Math.imul(Qe,Ye)|0,k=k+Math.imul(Qe,De)|0,b=b+Math.imul(at,Mt)|0,d=d+Math.imul(at,ge)|0,d=d+Math.imul(bt,Mt)|0,k=k+Math.imul(bt,ge)|0,b=b+Math.imul(lt,yt)|0,d=d+Math.imul(lt,Ne)|0,d=d+Math.imul(Je,yt)|0,k=k+Math.imul(Je,Ne)|0,b=b+Math.imul(st,pt)|0,d=d+Math.imul(st,Bt)|0,d=d+Math.imul(dt,pt)|0,k=k+Math.imul(dt,Bt)|0,b=b+Math.imul(pe,kt)|0,d=d+Math.imul(pe,Ut)|0,d=d+Math.imul(qe,kt)|0,k=k+Math.imul(qe,Ut)|0,b=b+Math.imul(ie,zt)|0,d=d+Math.imul(ie,Qt)|0,d=d+Math.imul(de,zt)|0,k=k+Math.imul(de,Qt)|0,b=b+Math.imul(X,be)|0,d=d+Math.imul(X,ve)|0,d=d+Math.imul(U,be)|0,k=k+Math.imul(U,ve)|0,b=b+Math.imul(O,Pe)|0,d=d+Math.imul(O,ze)|0,d=d+Math.imul(Q,Pe)|0,k=k+Math.imul(Q,ze)|0;var kr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(kr>>>26)|0,kr&=67108863,b=Math.imul(Me,je),d=Math.imul(Me,We),d=d+Math.imul(te,je)|0,k=Math.imul(te,We),b=b+Math.imul(Et,Ye)|0,d=d+Math.imul(Et,De)|0,d=d+Math.imul(Ct,Ye)|0,k=k+Math.imul(Ct,De)|0,b=b+Math.imul(Ge,Mt)|0,d=d+Math.imul(Ge,ge)|0,d=d+Math.imul(Qe,Mt)|0,k=k+Math.imul(Qe,ge)|0,b=b+Math.imul(at,yt)|0,d=d+Math.imul(at,Ne)|0,d=d+Math.imul(bt,yt)|0,k=k+Math.imul(bt,Ne)|0,b=b+Math.imul(lt,pt)|0,d=d+Math.imul(lt,Bt)|0,d=d+Math.imul(Je,pt)|0,k=k+Math.imul(Je,Bt)|0,b=b+Math.imul(st,kt)|0,d=d+Math.imul(st,Ut)|0,d=d+Math.imul(dt,kt)|0,k=k+Math.imul(dt,Ut)|0,b=b+Math.imul(pe,zt)|0,d=d+Math.imul(pe,Qt)|0,d=d+Math.imul(qe,zt)|0,k=k+Math.imul(qe,Qt)|0,b=b+Math.imul(ie,be)|0,d=d+Math.imul(ie,ve)|0,d=d+Math.imul(de,be)|0,k=k+Math.imul(de,ve)|0,b=b+Math.imul(X,Pe)|0,d=d+Math.imul(X,ze)|0,d=d+Math.imul(U,Pe)|0,k=k+Math.imul(U,ze)|0,b=b+Math.imul(O,ot)|0,d=d+Math.imul(O,wt)|0,d=d+Math.imul(Q,ot)|0,k=k+Math.imul(Q,wt)|0;var Fr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,b=Math.imul(Me,Ye),d=Math.imul(Me,De),d=d+Math.imul(te,Ye)|0,k=Math.imul(te,De),b=b+Math.imul(Et,Mt)|0,d=d+Math.imul(Et,ge)|0,d=d+Math.imul(Ct,Mt)|0,k=k+Math.imul(Ct,ge)|0,b=b+Math.imul(Ge,yt)|0,d=d+Math.imul(Ge,Ne)|0,d=d+Math.imul(Qe,yt)|0,k=k+Math.imul(Qe,Ne)|0,b=b+Math.imul(at,pt)|0,d=d+Math.imul(at,Bt)|0,d=d+Math.imul(bt,pt)|0,k=k+Math.imul(bt,Bt)|0,b=b+Math.imul(lt,kt)|0,d=d+Math.imul(lt,Ut)|0,d=d+Math.imul(Je,kt)|0,k=k+Math.imul(Je,Ut)|0,b=b+Math.imul(st,zt)|0,d=d+Math.imul(st,Qt)|0,d=d+Math.imul(dt,zt)|0,k=k+Math.imul(dt,Qt)|0,b=b+Math.imul(pe,be)|0,d=d+Math.imul(pe,ve)|0,d=d+Math.imul(qe,be)|0,k=k+Math.imul(qe,ve)|0,b=b+Math.imul(ie,Pe)|0,d=d+Math.imul(ie,ze)|0,d=d+Math.imul(de,Pe)|0,k=k+Math.imul(de,ze)|0,b=b+Math.imul(X,ot)|0,d=d+Math.imul(X,wt)|0,d=d+Math.imul(U,ot)|0,k=k+Math.imul(U,wt)|0;var jr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(jr>>>26)|0,jr&=67108863,b=Math.imul(Me,Mt),d=Math.imul(Me,ge),d=d+Math.imul(te,Mt)|0,k=Math.imul(te,ge),b=b+Math.imul(Et,yt)|0,d=d+Math.imul(Et,Ne)|0,d=d+Math.imul(Ct,yt)|0,k=k+Math.imul(Ct,Ne)|0,b=b+Math.imul(Ge,pt)|0,d=d+Math.imul(Ge,Bt)|0,d=d+Math.imul(Qe,pt)|0,k=k+Math.imul(Qe,Bt)|0,b=b+Math.imul(at,kt)|0,d=d+Math.imul(at,Ut)|0,d=d+Math.imul(bt,kt)|0,k=k+Math.imul(bt,Ut)|0,b=b+Math.imul(lt,zt)|0,d=d+Math.imul(lt,Qt)|0,d=d+Math.imul(Je,zt)|0,k=k+Math.imul(Je,Qt)|0,b=b+Math.imul(st,be)|0,d=d+Math.imul(st,ve)|0,d=d+Math.imul(dt,be)|0,k=k+Math.imul(dt,ve)|0,b=b+Math.imul(pe,Pe)|0,d=d+Math.imul(pe,ze)|0,d=d+Math.imul(qe,Pe)|0,k=k+Math.imul(qe,ze)|0,b=b+Math.imul(ie,ot)|0,d=d+Math.imul(ie,wt)|0,d=d+Math.imul(de,ot)|0,k=k+Math.imul(de,wt)|0;var Cr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,b=Math.imul(Me,yt),d=Math.imul(Me,Ne),d=d+Math.imul(te,yt)|0,k=Math.imul(te,Ne),b=b+Math.imul(Et,pt)|0,d=d+Math.imul(Et,Bt)|0,d=d+Math.imul(Ct,pt)|0,k=k+Math.imul(Ct,Bt)|0,b=b+Math.imul(Ge,kt)|0,d=d+Math.imul(Ge,Ut)|0,d=d+Math.imul(Qe,kt)|0,k=k+Math.imul(Qe,Ut)|0,b=b+Math.imul(at,zt)|0,d=d+Math.imul(at,Qt)|0,d=d+Math.imul(bt,zt)|0,k=k+Math.imul(bt,Qt)|0,b=b+Math.imul(lt,be)|0,d=d+Math.imul(lt,ve)|0,d=d+Math.imul(Je,be)|0,k=k+Math.imul(Je,ve)|0,b=b+Math.imul(st,Pe)|0,d=d+Math.imul(st,ze)|0,d=d+Math.imul(dt,Pe)|0,k=k+Math.imul(dt,ze)|0,b=b+Math.imul(pe,ot)|0,d=d+Math.imul(pe,wt)|0,d=d+Math.imul(qe,ot)|0,k=k+Math.imul(qe,wt)|0;var Lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,b=Math.imul(Me,pt),d=Math.imul(Me,Bt),d=d+Math.imul(te,pt)|0,k=Math.imul(te,Bt),b=b+Math.imul(Et,kt)|0,d=d+Math.imul(Et,Ut)|0,d=d+Math.imul(Ct,kt)|0,k=k+Math.imul(Ct,Ut)|0,b=b+Math.imul(Ge,zt)|0,d=d+Math.imul(Ge,Qt)|0,d=d+Math.imul(Qe,zt)|0,k=k+Math.imul(Qe,Qt)|0,b=b+Math.imul(at,be)|0,d=d+Math.imul(at,ve)|0,d=d+Math.imul(bt,be)|0,k=k+Math.imul(bt,ve)|0,b=b+Math.imul(lt,Pe)|0,d=d+Math.imul(lt,ze)|0,d=d+Math.imul(Je,Pe)|0,k=k+Math.imul(Je,ze)|0,b=b+Math.imul(st,ot)|0,d=d+Math.imul(st,wt)|0,d=d+Math.imul(dt,ot)|0,k=k+Math.imul(dt,wt)|0;var Ar=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,b=Math.imul(Me,kt),d=Math.imul(Me,Ut),d=d+Math.imul(te,kt)|0,k=Math.imul(te,Ut),b=b+Math.imul(Et,zt)|0,d=d+Math.imul(Et,Qt)|0,d=d+Math.imul(Ct,zt)|0,k=k+Math.imul(Ct,Qt)|0,b=b+Math.imul(Ge,be)|0,d=d+Math.imul(Ge,ve)|0,d=d+Math.imul(Qe,be)|0,k=k+Math.imul(Qe,ve)|0,b=b+Math.imul(at,Pe)|0,d=d+Math.imul(at,ze)|0,d=d+Math.imul(bt,Pe)|0,k=k+Math.imul(bt,ze)|0,b=b+Math.imul(lt,ot)|0,d=d+Math.imul(lt,wt)|0,d=d+Math.imul(Je,ot)|0,k=k+Math.imul(Je,wt)|0;var Tr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(Me,zt),d=Math.imul(Me,Qt),d=d+Math.imul(te,zt)|0,k=Math.imul(te,Qt),b=b+Math.imul(Et,be)|0,d=d+Math.imul(Et,ve)|0,d=d+Math.imul(Ct,be)|0,k=k+Math.imul(Ct,ve)|0,b=b+Math.imul(Ge,Pe)|0,d=d+Math.imul(Ge,ze)|0,d=d+Math.imul(Qe,Pe)|0,k=k+Math.imul(Qe,ze)|0,b=b+Math.imul(at,ot)|0,d=d+Math.imul(at,wt)|0,d=d+Math.imul(bt,ot)|0,k=k+Math.imul(bt,wt)|0;var Sr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,b=Math.imul(Me,be),d=Math.imul(Me,ve),d=d+Math.imul(te,be)|0,k=Math.imul(te,ve),b=b+Math.imul(Et,Pe)|0,d=d+Math.imul(Et,ze)|0,d=d+Math.imul(Ct,Pe)|0,k=k+Math.imul(Ct,ze)|0,b=b+Math.imul(Ge,ot)|0,d=d+Math.imul(Ge,wt)|0,d=d+Math.imul(Qe,ot)|0,k=k+Math.imul(Qe,wt)|0;var rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(rr>>>26)|0,rr&=67108863,b=Math.imul(Me,Pe),d=Math.imul(Me,ze),d=d+Math.imul(te,Pe)|0,k=Math.imul(te,ze),b=b+Math.imul(Et,ot)|0,d=d+Math.imul(Et,wt)|0,d=d+Math.imul(Ct,ot)|0,k=k+Math.imul(Ct,wt)|0;var Nt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,b=Math.imul(Me,ot),d=Math.imul(Me,wt),d=d+Math.imul(te,ot)|0,k=Math.imul(te,wt);var Gt=(T+b|0)+((d&8191)<<13)|0;return T=(k+(d>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,x[0]=Yt,x[1]=Jt,x[2]=wr,x[3]=lr,x[4]=Rr,x[5]=vr,x[6]=dr,x[7]=Ir,x[8]=kr,x[9]=Fr,x[10]=jr,x[11]=Cr,x[12]=Lr,x[13]=Ar,x[14]=Tr,x[15]=Sr,x[16]=rr,x[17]=Nt,x[18]=Gt,T!==0&&(x[19]=T,S.length++),S};Math.imul||(j=I);function B(L,p,y){y.negative=p.negative^L.negative,y.length=L.length+p.length;for(var S=0,c=0,m=0;m<y.length-1;m++){var x=c;c=0;for(var T=S&67108863,b=Math.min(m,p.length-1),d=Math.max(0,m-L.length+1);d<=b;d++){var k=m-d,D=L.words[k]|0,O=p.words[d]|0,Q=D*O,J=Q&67108863;x=x+(Q/67108864|0)|0,J=J+T|0,T=J&67108863,x=x+(J>>>26)|0,c+=x>>>26,x&=67108863}y.words[m]=T,S=x,x=c}return S!==0?y.words[m]=S:y.length--,y.strip()}function F(L,p,y){var S=new N;return S.mulp(L,p,y)}u.prototype.mulTo=function(p,y){var S,c=this.length+p.length;return this.length===10&&p.length===10?S=j(this,p,y):c<63?S=I(this,p,y):c<1024?S=B(this,p,y):S=F(this,p,y),S};function N(L,p){this.x=L,this.y=p}N.prototype.makeRBT=function(p){for(var y=new Array(p),S=u.prototype._countBits(p)-1,c=0;c<p;c++)y[c]=this.revBin(c,S,p);return y},N.prototype.revBin=function(p,y,S){if(p===0||p===S-1)return p;for(var c=0,m=0;m<y;m++)c|=(p&1)<<y-m-1,p>>=1;return c},N.prototype.permute=function(p,y,S,c,m,x){for(var T=0;T<x;T++)c[T]=y[p[T]],m[T]=S[p[T]]},N.prototype.transform=function(p,y,S,c,m,x){this.permute(x,p,y,S,c,m);for(var T=1;T<m;T<<=1)for(var b=T<<1,d=Math.cos(2*Math.PI/b),k=Math.sin(2*Math.PI/b),D=0;D<m;D+=b)for(var O=d,Q=k,J=0;J<T;J++){var X=S[D+J],U=c[D+J],z=S[D+J+T],ie=c[D+J+T],de=O*z-Q*ie;ie=O*ie+Q*z,z=de,S[D+J]=X+z,c[D+J]=U+ie,S[D+J+T]=X-z,c[D+J+T]=U-ie,J!==b&&(de=d*O-k*Q,Q=d*Q+k*O,O=de)}},N.prototype.guessLen13b=function(p,y){var S=Math.max(y,p)|1,c=S&1,m=0;for(S=S/2|0;S;S=S>>>1)m++;return 1<<m+1+c},N.prototype.conjugate=function(p,y,S){if(!(S<=1))for(var c=0;c<S/2;c++){var m=p[c];p[c]=p[S-c-1],p[S-c-1]=m,m=y[c],y[c]=-y[S-c-1],y[S-c-1]=-m}},N.prototype.normalize13b=function(p,y){for(var S=0,c=0;c<y/2;c++){var m=Math.round(p[2*c+1]/y)*8192+Math.round(p[2*c]/y)+S;p[c]=m&67108863,m<67108864?S=0:S=m/67108864|0}return p},N.prototype.convert13b=function(p,y,S,c){for(var m=0,x=0;x<y;x++)m=m+(p[x]|0),S[2*x]=m&8191,m=m>>>13,S[2*x+1]=m&8191,m=m>>>13;for(x=2*y;x<c;++x)S[x]=0;l(m===0),l((m&-8192)===0)},N.prototype.stub=function(p){for(var y=new Array(p),S=0;S<p;S++)y[S]=0;return y},N.prototype.mulp=function(p,y,S){var c=2*this.guessLen13b(p.length,y.length),m=this.makeRBT(c),x=this.stub(c),T=new Array(c),b=new Array(c),d=new Array(c),k=new Array(c),D=new Array(c),O=new Array(c),Q=S.words;Q.length=c,this.convert13b(p.words,p.length,T,c),this.convert13b(y.words,y.length,k,c),this.transform(T,x,b,d,c,m),this.transform(k,x,D,O,c,m);for(var J=0;J<c;J++){var X=b[J]*D[J]-d[J]*O[J];d[J]=b[J]*O[J]+d[J]*D[J],b[J]=X}return this.conjugate(b,d,c),this.transform(b,d,Q,x,c,m),this.conjugate(Q,x,c),this.normalize13b(Q,c),S.negative=p.negative^y.negative,S.length=p.length+y.length,S.strip()},u.prototype.mul=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),this.mulTo(p,y)},u.prototype.mulf=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),F(this,p,y)},u.prototype.imul=function(p){return this.clone().mulTo(p,this)},u.prototype.imuln=function(p){l(typeof p=="number"),l(p<67108864);for(var y=0,S=0;S<this.length;S++){var c=(this.words[S]|0)*p,m=(c&67108863)+(y&67108863);y>>=26,y+=c/67108864|0,y+=m>>>26,this.words[S]=m&67108863}return y!==0&&(this.words[S]=y,this.length++),this},u.prototype.muln=function(p){return this.clone().imuln(p)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(p){var y=P(p);if(y.length===0)return new u(1);for(var S=this,c=0;c<y.length&&y[c]===0;c++,S=S.sqr());if(++c<y.length)for(var m=S.sqr();c<y.length;c++,m=m.sqr())y[c]!==0&&(S=S.mul(m));return S},u.prototype.iushln=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=67108863>>>26-y<<26-y,m;if(y!==0){var x=0;for(m=0;m<this.length;m++){var T=this.words[m]&c,b=(this.words[m]|0)-T<<y;this.words[m]=b|x,x=T>>>26-y}x&&(this.words[m]=x,this.length++)}if(S!==0){for(m=this.length-1;m>=0;m--)this.words[m+S]=this.words[m];for(m=0;m<S;m++)this.words[m]=0;this.length+=S}return this.strip()},u.prototype.ishln=function(p){return l(this.negative===0),this.iushln(p)},u.prototype.iushrn=function(p,y,S){l(typeof p=="number"&&p>=0);var c;y?c=(y-y%26)/26:c=0;var m=p%26,x=Math.min((p-m)/26,this.length),T=67108863^67108863>>>m<<m,b=S;if(c-=x,c=Math.max(0,c),b){for(var d=0;d<x;d++)b.words[d]=this.words[d];b.length=x}if(x!==0)if(this.length>x)for(this.length-=x,d=0;d<this.length;d++)this.words[d]=this.words[d+x];else this.words[0]=0,this.length=1;var k=0;for(d=this.length-1;d>=0&&(k!==0||d>=c);d--){var D=this.words[d]|0;this.words[d]=k<<26-m|D>>>m,k=D&T}return b&&k!==0&&(b.words[b.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(p,y,S){return l(this.negative===0),this.iushrn(p,y,S)},u.prototype.shln=function(p){return this.clone().ishln(p)},u.prototype.ushln=function(p){return this.clone().iushln(p)},u.prototype.shrn=function(p){return this.clone().ishrn(p)},u.prototype.ushrn=function(p){return this.clone().iushrn(p)},u.prototype.testn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return!1;var m=this.words[S];return!!(m&c)},u.prototype.imaskn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(y!==0&&S++,this.length=Math.min(S,this.length),y!==0){var c=67108863^67108863>>>y<<y;this.words[this.length-1]&=c}return this.strip()},u.prototype.maskn=function(p){return this.clone().imaskn(p)},u.prototype.iaddn=function(p){return l(typeof p=="number"),l(p<67108864),p<0?this.isubn(-p):this.negative!==0?this.length===1&&(this.words[0]|0)<p?(this.words[0]=p-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(p),this.negative=1,this):this._iaddn(p)},u.prototype._iaddn=function(p){this.words[0]+=p;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},u.prototype.isubn=function(p){if(l(typeof p=="number"),l(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this.strip()},u.prototype.addn=function(p){return this.clone().iaddn(p)},u.prototype.subn=function(p){return this.clone().isubn(p)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(p,y,S){var c=p.length+S,m;this._expand(c);var x,T=0;for(m=0;m<p.length;m++){x=(this.words[m+S]|0)+T;var b=(p.words[m]|0)*y;x-=b&67108863,T=(x>>26)-(b/67108864|0),this.words[m+S]=x&67108863}for(;m<this.length-S;m++)x=(this.words[m+S]|0)+T,T=x>>26,this.words[m+S]=x&67108863;if(T===0)return this.strip();for(l(T===-1),T=0,m=0;m<this.length;m++)x=-(this.words[m]|0)+T,T=x>>26,this.words[m]=x&67108863;return this.negative=1,this.strip()},u.prototype._wordDiv=function(p,y){var S=this.length-p.length,c=this.clone(),m=p,x=m.words[m.length-1]|0,T=this._countBits(x);S=26-T,S!==0&&(m=m.ushln(S),c.iushln(S),x=m.words[m.length-1]|0);var b=c.length-m.length,d;if(y!=="mod"){d=new u(null),d.length=b+1,d.words=new Array(d.length);for(var k=0;k<d.length;k++)d.words[k]=0}var D=c.clone()._ishlnsubmul(m,1,b);D.negative===0&&(c=D,d&&(d.words[b]=1));for(var O=b-1;O>=0;O--){var Q=(c.words[m.length+O]|0)*67108864+(c.words[m.length+O-1]|0);for(Q=Math.min(Q/x|0,67108863),c._ishlnsubmul(m,Q,O);c.negative!==0;)Q--,c.negative=0,c._ishlnsubmul(m,1,O),c.isZero()||(c.negative^=1);d&&(d.words[O]=Q)}return d&&d.strip(),c.strip(),y!=="div"&&S!==0&&c.iushrn(S),{div:d||null,mod:c}},u.prototype.divmod=function(p,y,S){if(l(!p.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var c,m,x;return this.negative!==0&&p.negative===0?(x=this.neg().divmod(p,y),y!=="mod"&&(c=x.div.neg()),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.iadd(p)),{div:c,mod:m}):this.negative===0&&p.negative!==0?(x=this.divmod(p.neg(),y),y!=="mod"&&(c=x.div.neg()),{div:c,mod:x.mod}):this.negative&p.negative?(x=this.neg().divmod(p.neg(),y),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.isub(p)),{div:x.div,mod:m}):p.length>this.length||this.cmp(p)<0?{div:new u(0),mod:this}:p.length===1?y==="div"?{div:this.divn(p.words[0]),mod:null}:y==="mod"?{div:null,mod:new u(this.modn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new u(this.modn(p.words[0]))}:this._wordDiv(p,y)},u.prototype.div=function(p){return this.divmod(p,"div",!1).div},u.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},u.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},u.prototype.divRound=function(p){var y=this.divmod(p);if(y.mod.isZero())return y.div;var S=y.div.negative!==0?y.mod.isub(p):y.mod,c=p.ushrn(1),m=p.andln(1),x=S.cmp(c);return x<0||m===1&&x===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},u.prototype.modn=function(p){l(p<=67108863);for(var y=(1<<26)%p,S=0,c=this.length-1;c>=0;c--)S=(y*S+(this.words[c]|0))%p;return S},u.prototype.idivn=function(p){l(p<=67108863);for(var y=0,S=this.length-1;S>=0;S--){var c=(this.words[S]|0)+y*67108864;this.words[S]=c/p|0,y=c%p}return this.strip()},u.prototype.divn=function(p){return this.clone().idivn(p)},u.prototype.egcd=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=new u(0),T=new u(1),b=0;y.isEven()&&S.isEven();)y.iushrn(1),S.iushrn(1),++b;for(var d=S.clone(),k=y.clone();!y.isZero();){for(var D=0,O=1;!(y.words[0]&O)&&D<26;++D,O<<=1);if(D>0)for(y.iushrn(D);D-- >0;)(c.isOdd()||m.isOdd())&&(c.iadd(d),m.isub(k)),c.iushrn(1),m.iushrn(1);for(var Q=0,J=1;!(S.words[0]&J)&&Q<26;++Q,J<<=1);if(Q>0)for(S.iushrn(Q);Q-- >0;)(x.isOdd()||T.isOdd())&&(x.iadd(d),T.isub(k)),x.iushrn(1),T.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(x),m.isub(T)):(S.isub(y),x.isub(c),T.isub(m))}return{a:x,b:T,gcd:S.iushln(b)}},u.prototype._invmp=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=S.clone();y.cmpn(1)>0&&S.cmpn(1)>0;){for(var T=0,b=1;!(y.words[0]&b)&&T<26;++T,b<<=1);if(T>0)for(y.iushrn(T);T-- >0;)c.isOdd()&&c.iadd(x),c.iushrn(1);for(var d=0,k=1;!(S.words[0]&k)&&d<26;++d,k<<=1);if(d>0)for(S.iushrn(d);d-- >0;)m.isOdd()&&m.iadd(x),m.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(m)):(S.isub(y),m.isub(c))}var D;return y.cmpn(1)===0?D=c:D=m,D.cmpn(0)<0&&D.iadd(p),D},u.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var y=this.clone(),S=p.clone();y.negative=0,S.negative=0;for(var c=0;y.isEven()&&S.isEven();c++)y.iushrn(1),S.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;S.isEven();)S.iushrn(1);var m=y.cmp(S);if(m<0){var x=y;y=S,S=x}else if(m===0||S.cmpn(1)===0)break;y.isub(S)}while(!0);return S.iushln(c)},u.prototype.invm=function(p){return this.egcd(p).a.umod(p)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(p){return this.words[0]&p},u.prototype.bincn=function(p){l(typeof p=="number");var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return this._expand(S+1),this.words[S]|=c,this;for(var m=c,x=S;m!==0&&x<this.length;x++){var T=this.words[x]|0;T+=m,m=T>>>26,T&=67108863,this.words[x]=T}return m!==0&&(this.words[x]=m,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(p){var y=p<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this.strip();var S;if(this.length>1)S=1;else{y&&(p=-p),l(p<=67108863,"Number is too big");var c=this.words[0]|0;S=c===p?0:c<p?-1:1}return this.negative!==0?-S|0:S},u.prototype.cmp=function(p){if(this.negative!==0&&p.negative===0)return-1;if(this.negative===0&&p.negative!==0)return 1;var y=this.ucmp(p);return this.negative!==0?-y|0:y},u.prototype.ucmp=function(p){if(this.length>p.length)return 1;if(this.length<p.length)return-1;for(var y=0,S=this.length-1;S>=0;S--){var c=this.words[S]|0,m=p.words[S]|0;if(c!==m){c<m?y=-1:c>m&&(y=1);break}}return y},u.prototype.gtn=function(p){return this.cmpn(p)===1},u.prototype.gt=function(p){return this.cmp(p)===1},u.prototype.gten=function(p){return this.cmpn(p)>=0},u.prototype.gte=function(p){return this.cmp(p)>=0},u.prototype.ltn=function(p){return this.cmpn(p)===-1},u.prototype.lt=function(p){return this.cmp(p)===-1},u.prototype.lten=function(p){return this.cmpn(p)<=0},u.prototype.lte=function(p){return this.cmp(p)<=0},u.prototype.eqn=function(p){return this.cmpn(p)===0},u.prototype.eq=function(p){return this.cmp(p)===0},u.red=function(p){return new he(p)},u.prototype.toRed=function(p){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},u.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(p){return this.red=p,this},u.prototype.forceRed=function(p){return l(!this.red,"Already a number in reduction context"),this._forceRed(p)},u.prototype.redAdd=function(p){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},u.prototype.redIAdd=function(p){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},u.prototype.redSub=function(p){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},u.prototype.redISub=function(p){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},u.prototype.redShl=function(p){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},u.prototype.redMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},u.prototype.redIMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},u.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(p){return l(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var ee={k256:null,p224:null,p192:null,p25519:null};function Z(L,p){this.name=L,this.p=new u(p,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Z.prototype._tmp=function(){var p=new u(null);return p.words=new Array(Math.ceil(this.n/13)),p},Z.prototype.ireduce=function(p){var y=p,S;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),S=y.bitLength();while(S>this.n);var c=S<this.n?-1:y.ucmp(this.p);return c===0?(y.words[0]=0,y.length=1):c>0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},Z.prototype.split=function(p,y){p.iushrn(this.n,0,y)},Z.prototype.imulK=function(p){return p.imul(this.k)};function re(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}t(re,Z),re.prototype.split=function(p,y){for(var S=4194303,c=Math.min(p.length,9),m=0;m<c;m++)y.words[m]=p.words[m];if(y.length=c,p.length<=9){p.words[0]=0,p.length=1;return}var x=p.words[9];for(y.words[y.length++]=x&S,m=10;m<p.length;m++){var T=p.words[m]|0;p.words[m-10]=(T&S)<<4|x>>>22,x=T}x>>>=22,p.words[m-10]=x,x===0&&p.length>10?p.length-=10:p.length-=9},re.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var y=0,S=0;S<p.length;S++){var c=p.words[S]|0;y+=c*977,p.words[S]=y&67108863,y=c*64+(y/67108864|0)}return p.words[p.length-1]===0&&(p.length--,p.words[p.length-1]===0&&p.length--),p};function fe(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}t(fe,Z);function V(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}t(V,Z);function le(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}t(le,Z),le.prototype.imulK=function(p){for(var y=0,S=0;S<p.length;S++){var c=(p.words[S]|0)*19+y,m=c&67108863;c>>>=26,p.words[S]=m,y=c}return y!==0&&(p.words[p.length++]=y),p},u._prime=function(p){if(ee[p])return ee[p];var y;if(p==="k256")y=new re;else if(p==="p224")y=new fe;else if(p==="p192")y=new V;else if(p==="p25519")y=new le;else throw new Error("Unknown prime "+p);return ee[p]=y,y};function he(L){if(typeof L=="string"){var p=u._prime(L);this.m=p.p,this.prime=p}else l(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}he.prototype._verify1=function(p){l(p.negative===0,"red works only with positives"),l(p.red,"red works only with red numbers")},he.prototype._verify2=function(p,y){l((p.negative|y.negative)===0,"red works only with positives"),l(p.red&&p.red===y.red,"red works only with red numbers")},he.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):p.umod(this.m)._forceRed(this)},he.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},he.prototype.add=function(p,y){this._verify2(p,y);var S=p.add(y);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},he.prototype.iadd=function(p,y){this._verify2(p,y);var S=p.iadd(y);return S.cmp(this.m)>=0&&S.isub(this.m),S},he.prototype.sub=function(p,y){this._verify2(p,y);var S=p.sub(y);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},he.prototype.isub=function(p,y){this._verify2(p,y);var S=p.isub(y);return S.cmpn(0)<0&&S.iadd(this.m),S},he.prototype.shl=function(p,y){return this._verify1(p),this.imod(p.ushln(y))},he.prototype.imul=function(p,y){return this._verify2(p,y),this.imod(p.imul(y))},he.prototype.mul=function(p,y){return this._verify2(p,y),this.imod(p.mul(y))},he.prototype.isqr=function(p){return this.imul(p,p.clone())},he.prototype.sqr=function(p){return this.mul(p,p)},he.prototype.sqrt=function(p){if(p.isZero())return p.clone();var y=this.m.andln(3);if(l(y%2===1),y===3){var S=this.m.add(new u(1)).iushrn(2);return this.pow(p,S)}for(var c=this.m.subn(1),m=0;!c.isZero()&&c.andln(1)===0;)m++,c.iushrn(1);l(!c.isZero());var x=new u(1).toRed(this),T=x.redNeg(),b=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new u(2*d*d).toRed(this);this.pow(d,b).cmp(T)!==0;)d.redIAdd(T);for(var k=this.pow(d,c),D=this.pow(p,c.addn(1).iushrn(1)),O=this.pow(p,c),Q=m;O.cmp(x)!==0;){for(var J=O,X=0;J.cmp(x)!==0;X++)J=J.redSqr();l(X<Q);var U=this.pow(k,new u(1).iushln(Q-X-1));D=D.redMul(U),k=U.redSqr(),O=O.redMul(k),Q=X}return D},he.prototype.invm=function(p){var y=p._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},he.prototype.pow=function(p,y){if(y.isZero())return new u(1).toRed(this);if(y.cmpn(1)===0)return p.clone();var S=4,c=new Array(1<<S);c[0]=new u(1).toRed(this),c[1]=p;for(var m=2;m<c.length;m++)c[m]=this.mul(c[m-1],p);var x=c[0],T=0,b=0,d=y.bitLength()%26;for(d===0&&(d=26),m=y.length-1;m>=0;m--){for(var k=y.words[m],D=d-1;D>=0;D--){var O=k>>D&1;if(x!==c[0]&&(x=this.sqr(x)),O===0&&T===0){b=0;continue}T<<=1,T|=O,b++,!(b!==S&&(m!==0||D!==0))&&(x=this.mul(x,c[T]),b=0,T=0)}d=26}return x},he.prototype.convertTo=function(p){var y=p.umod(this.m);return y===p?y.clone():y},he.prototype.convertFrom=function(p){var y=p.clone();return y.red=null,y},u.mont=function(p){return new ye(p)};function ye(L){he.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}t(ye,he),ye.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},ye.prototype.convertFrom=function(p){var y=this.imod(p.mul(this.rinv));return y.red=null,y},ye.prototype.imul=function(p,y){if(p.isZero()||y.isZero())return p.words[0]=0,p.length=1,p;var S=p.imul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.mul=function(p,y){if(p.isZero()||y.isZero())return new u(0)._forceRed(this);var S=p.mul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.invm=function(p){var y=this.imod(p._invmp(this.m).mul(this.r2));return y._forceRed(this)}})(n,commonjsGlobal$1)}(bn$5);var bnExports$5=bn$5.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var n;brorand.exports=function(t){return n||(n=new e(null)),n.generate(t)};function e(l){this.rand=l}if(brorand.exports.Rand=e,e.prototype.generate=function(t){return this._rand(t)},e.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var u=new Uint8Array(t),h=0;h<u.length;h++)u[h]=this.rand.getByte();return u},typeof self=="object")self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(t){var u=new Uint8Array(t);return self.crypto.getRandomValues(u),u}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(t){var u=new Uint8Array(t);return self.msCrypto.getRandomValues(u),u}:typeof window=="object"&&(e.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=requireCryptoBrowserify();if(typeof o.randomBytes!="function")throw new Error("Not supported");e.prototype._rand=function(t){return o.randomBytes(t)}}catch{}return brorand.exports}var mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var n=bnExports$5,e=requireBrorand();function o(l){this.rand=l||new e.Rand}return mr=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var u=t.bitLength(),h=Math.ceil(u/8);do var v=new n(this.rand.generate(h));while(v.cmp(t)>=0);return v},o.prototype._randrange=function(t,u){var h=u.sub(t);return t.add(this._randbelow(h))},o.prototype.test=function(t,u,h){var v=t.bitLength(),w=n.mont(t),A=new n(1).toRed(w);u||(u=Math.max(1,v/48|0));for(var E=t.subn(1),C=0;!E.testn(C);C++);for(var M=t.shrn(C),P=E.toRed(w),I=!0;u>0;u--){var j=this._randrange(new n(2),E);h&&h(j);var B=j.toRed(w).redPow(M);if(!(B.cmp(A)===0||B.cmp(P)===0)){for(var F=1;F<C;F++){if(B=B.redSqr(),B.cmp(A)===0)return!1;if(B.cmp(P)===0)break}if(F===C)return!1}}return I},o.prototype.getDivisor=function(t,u){var h=t.bitLength(),v=n.mont(t),w=new n(1).toRed(v);u||(u=Math.max(1,h/48|0));for(var A=t.subn(1),E=0;!A.testn(E);E++);for(var C=t.shrn(E),M=A.toRed(v);u>0;u--){var P=this._randrange(new n(2),A),I=t.gcd(P);if(I.cmpn(1)!==0)return I;var j=P.toRed(v).redPow(C);if(!(j.cmp(w)===0||j.cmp(M)===0)){for(var B=1;B<E;B++){if(j=j.redSqr(),j.cmp(w)===0)return j.fromRed().subn(1).gcd(t);if(j.cmp(M)===0)break}if(B===E)return j=j.redSqr(),j.fromRed().subn(1).gcd(t)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var n=browserExports;generatePrime=B,B.simpleSieve=I,B.fermatTest=j;var e=bnExports$6,o=new e(24),l=requireMr(),t=new l,u=new e(1),h=new e(2),v=new e(5);new e(16),new e(8);var w=new e(10),A=new e(3);new e(7);var E=new e(11),C=new e(4);new e(12);var M=null;function P(){if(M!==null)return M;var F=1048576,N=[];N[0]=2;for(var ee=1,Z=3;Z<F;Z+=2){for(var re=Math.ceil(Math.sqrt(Z)),fe=0;fe<ee&&N[fe]<=re&&Z%N[fe]!==0;fe++);ee!==fe&&N[fe]<=re||(N[ee++]=Z)}return M=N,N}function I(F){for(var N=P(),ee=0;ee<N.length;ee++)if(F.modn(N[ee])===0)return F.cmpn(N[ee])===0;return!0}function j(F){var N=e.mont(F);return h.toRed(N).redPow(F.subn(1)).fromRed().cmpn(1)===0}function B(F,N){if(F<16)return N===2||N===5?new e([140,123]):new e([140,39]);N=new e(N);for(var ee,Z;;){for(ee=new e(n(Math.ceil(F/8)));ee.bitLength()>F;)ee.ishrn(1);if(ee.isEven()&&ee.iadd(u),ee.testn(1)||ee.iadd(h),N.cmp(h)){if(!N.cmp(v))for(;ee.mod(w).cmp(A);)ee.iadd(C)}else for(;ee.mod(o).cmp(E);)ee.iadd(C);if(Z=ee.shrn(1),I(Z)&&I(ee)&&j(Z)&&j(ee)&&t.test(Z)&&t.test(ee))return ee}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$3={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var n=bnExports$6,e=requireMr(),o=new e,l=new n(24),t=new n(11),u=new n(10),h=new n(3),v=new n(7),w=requireGeneratePrime(),A=browserExports;dh=I;function E(B,F){return F=F||"utf8",Buffer$C.isBuffer(B)||(B=new Buffer$C(B,F)),this._pub=new n(B),this}function C(B,F){return F=F||"utf8",Buffer$C.isBuffer(B)||(B=new Buffer$C(B,F)),this._priv=new n(B),this}var M={};function P(B,F){var N=F.toString("hex"),ee=[N,B.toString(16)].join("_");if(ee in M)return M[ee];var Z=0;if(B.isEven()||!w.simpleSieve||!w.fermatTest(B)||!o.test(B))return Z+=1,N==="02"||N==="05"?Z+=8:Z+=4,M[ee]=Z,Z;o.test(B.shrn(1))||(Z+=2);var re;switch(N){case"02":B.mod(l).cmp(t)&&(Z+=8);break;case"05":re=B.mod(u),re.cmp(h)&&re.cmp(v)&&(Z+=8);break;default:Z+=4}return M[ee]=Z,Z}function I(B,F,N){this.setGenerator(F),this.__prime=new n(B),this._prime=n.mont(this.__prime),this._primeLen=B.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,N?(this.setPublicKey=E,this.setPrivateKey=C):this._primeCode=8}Object.defineProperty(I.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=P(this.__prime,this.__gen)),this._primeCode}}),I.prototype.generateKeys=function(){return this._priv||(this._priv=new n(A(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},I.prototype.computeSecret=function(B){B=new n(B),B=B.toRed(this._prime);var F=B.redPow(this._priv).fromRed(),N=new Buffer$C(F.toArray()),ee=this.getPrime();if(N.length<ee.length){var Z=new Buffer$C(ee.length-N.length);Z.fill(0),N=Buffer$C.concat([Z,N])}return N},I.prototype.getPublicKey=function(F){return j(this._pub,F)},I.prototype.getPrivateKey=function(F){return j(this._priv,F)},I.prototype.getPrime=function(B){return j(this.__prime,B)},I.prototype.getGenerator=function(B){return j(this._gen,B)},I.prototype.setGenerator=function(B,F){return F=F||"utf8",Buffer$C.isBuffer(B)||(B=new Buffer$C(B,F)),this.__gen=B,this._gen=new n(B),this};function j(B,F){var N=new Buffer$C(B.toArray());return F?N.toString(F):N}return dh}var hasRequiredBrowser$4;function requireBrowser$4(){if(hasRequiredBrowser$4)return browser$6;hasRequiredBrowser$4=1;var n=requireGeneratePrime(),e=require$$1$3,o=requireDh();function l(h){var v=new Buffer$C(e[h].prime,"hex"),w=new Buffer$C(e[h].gen,"hex");return new o(v,w)}var t={binary:!0,hex:!0,base64:!0};function u(h,v,w,A){return Buffer$C.isBuffer(v)||t[v]===void 0?u(h,"binary",v,w):(v=v||"binary",A=A||"binary",w=w||new Buffer$C([2]),Buffer$C.isBuffer(w)||(w=new Buffer$C(w,A)),typeof h=="number"?new o(n(h,w),w,!0):(Buffer$C.isBuffer(h)||(h=new Buffer$C(h,v)),new o(h,w,!0)))}return browser$6.DiffieHellmanGroup=browser$6.createDiffieHellmanGroup=browser$6.getDiffieHellman=l,browser$6.createDiffieHellman=browser$6.DiffieHellman=u,browser$6}var readableBrowser$1={exports:{}},processNextickArgs={exports:{}};typeof process$1>"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick}:processNextickArgs.exports=process$1;function nextTick(n,e,o,l){if(typeof n!="function")throw new TypeError('"callback" argument must be a function');var t=arguments.length,u,h;switch(t){case 0:case 1:return process$1.nextTick(n);case 2:return process$1.nextTick(function(){n.call(null,e)});case 3:return process$1.nextTick(function(){n.call(null,e,o)});case 4:return process$1.nextTick(function(){n.call(null,e,o,l)});default:for(u=new Array(t-1),h=0;h<u.length;)u[h++]=arguments[h];return process$1.nextTick(function(){n.apply(null,u)})}}var processNextickArgsExports=processNextickArgs.exports,toString={}.toString,isarray=Array.isArray||function(n){return toString.call(n)=="[object Array]"},streamBrowser=requireEvents().EventEmitter,safeBuffer$1={exports:{}};(function(n,e){var o=require$$0$2,l=o.Buffer;function t(h,v){for(var w in h)v[w]=h[w]}l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow?n.exports=o:(t(o,e),e.Buffer=u);function u(h,v,w){return l(h,v,w)}t(l,u),u.from=function(h,v,w){if(typeof h=="number")throw new TypeError("Argument must not be a number");return l(h,v,w)},u.alloc=function(h,v,w){if(typeof h!="number")throw new TypeError("Argument must be a number");var A=l(h);return v!==void 0?typeof w=="string"?A.fill(v,w):A.fill(v):A.fill(0),A},u.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return l(h)},u.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(h)}})(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,util$3={};function isArray(n){return Array.isArray?Array.isArray(n):objectToString(n)==="[object Array]"}util$3.isArray=isArray;function isBoolean(n){return typeof n=="boolean"}util$3.isBoolean=isBoolean;function isNull(n){return n===null}util$3.isNull=isNull;function isNullOrUndefined(n){return n==null}util$3.isNullOrUndefined=isNullOrUndefined;function isNumber(n){return typeof n=="number"}util$3.isNumber=isNumber;function isString(n){return typeof n=="string"}util$3.isString=isString;function isSymbol(n){return typeof n=="symbol"}util$3.isSymbol=isSymbol;function isUndefined(n){return n===void 0}util$3.isUndefined=isUndefined;function isRegExp(n){return objectToString(n)==="[object RegExp]"}util$3.isRegExp=isRegExp;function isObject(n){return typeof n=="object"&&n!==null}util$3.isObject=isObject;function isDate(n){return objectToString(n)==="[object Date]"}util$3.isDate=isDate;function isError(n){return objectToString(n)==="[object Error]"||n instanceof Error}util$3.isError=isError;function isFunction(n){return typeof n=="function"}util$3.isFunction=isFunction;function isPrimitive(n){return n===null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||typeof n=="symbol"||typeof n>"u"}util$3.isPrimitive=isPrimitive,util$3.isBuffer=Buffer$C.isBuffer;function objectToString(n){return Object.prototype.toString.call(n)}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(n){function e(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}var o=safeBufferExports.Buffer,l=util$6;function t(u,h,v){u.copy(h,v)}n.exports=function(){function u(){e(this,u),this.head=null,this.tail=null,this.length=0}return u.prototype.push=function(v){var w={data:v,next:null};this.length>0?this.tail.next=w:this.head=w,this.tail=w,++this.length},u.prototype.unshift=function(v){var w={data:v,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length},u.prototype.shift=function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}},u.prototype.clear=function(){this.head=this.tail=null,this.length=0},u.prototype.join=function(v){if(this.length===0)return"";for(var w=this.head,A=""+w.data;w=w.next;)A+=v+w.data;return A},u.prototype.concat=function(v){if(this.length===0)return o.alloc(0);for(var w=o.allocUnsafe(v>>>0),A=this.head,E=0;A;)t(A.data,w,E),E+=A.data.length,A=A.next;return w},u}(),l&&l.inspect&&l.inspect.custom&&(n.exports.prototype[l.inspect.custom]=function(){var u=l.inspect({length:this.length});return this.constructor.name+" "+u})}(BufferList)),BufferList.exports}var pna=processNextickArgsExports;function destroy(n,e){var o=this,l=this._readableState&&this._readableState.destroyed,t=this._writableState&&this._writableState.destroyed;return l||t?(e?e(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,this,n)):pna.nextTick(emitErrorNT,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(u){!e&&u?o._writableState?o._writableState.errorEmitted||(o._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,o,u)):pna.nextTick(emitErrorNT,o,u):e&&e(u)}),this)}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(n,e){n.emit("error",e)}var destroy_1={destroy,undestroy},_stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var n=processNextickArgsExports;_stream_writable=j;function e(x){var T=this;this.next=null,this.entry=null,this.finish=function(){m(T,x)}}var o=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:n.nextTick,l;j.WritableState=P;var t=Object.create(util$3);t.inherits=inherits_browserExports;var u={deprecate:requireBrowser$5()},h=streamBrowser,v=safeBufferExports.Buffer,w=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function A(x){return v.from(x)}function E(x){return v.isBuffer(x)||x instanceof w}var C=destroy_1;t.inherits(j,h);function M(){}function P(x,T){l=l||require_stream_duplex(),x=x||{};var b=T instanceof l;this.objectMode=!!x.objectMode,b&&(this.objectMode=this.objectMode||!!x.writableObjectMode);var d=x.highWaterMark,k=x.writableHighWaterMark,D=this.objectMode?16:16*1024;d||d===0?this.highWaterMark=d:b&&(k||k===0)?this.highWaterMark=k:this.highWaterMark=D,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=x.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=x.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Q){V(T,Q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}P.prototype.getBuffer=function(){for(var T=this.bufferedRequest,b=[];T;)b.push(T),T=T.next;return b},function(){try{Object.defineProperty(P.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(x){return I.call(this,x)?!0:this!==j?!1:x&&x._writableState instanceof P}})):I=function(x){return x instanceof this};function j(x){if(l=l||require_stream_duplex(),!I.call(j,this)&&!(this instanceof l))return new j(x);this._writableState=new P(x,this),this.writable=!0,x&&(typeof x.write=="function"&&(this._write=x.write),typeof x.writev=="function"&&(this._writev=x.writev),typeof x.destroy=="function"&&(this._destroy=x.destroy),typeof x.final=="function"&&(this._final=x.final)),h.call(this)}j.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function B(x,T){var b=new Error("write after end");x.emit("error",b),n.nextTick(T,b)}function F(x,T,b,d){var k=!0,D=!1;return b===null?D=new TypeError("May not write null values to stream"):typeof b!="string"&&b!==void 0&&!T.objectMode&&(D=new TypeError("Invalid non-string/buffer chunk")),D&&(x.emit("error",D),n.nextTick(d,D),k=!1),k}j.prototype.write=function(x,T,b){var d=this._writableState,k=!1,D=!d.objectMode&&E(x);return D&&!v.isBuffer(x)&&(x=A(x)),typeof T=="function"&&(b=T,T=null),D?T="buffer":T||(T=d.defaultEncoding),typeof b!="function"&&(b=M),d.ended?B(this,b):(D||F(this,d,x,b))&&(d.pendingcb++,k=ee(this,d,D,x,T,b)),k},j.prototype.cork=function(){var x=this._writableState;x.corked++},j.prototype.uncork=function(){var x=this._writableState;x.corked&&(x.corked--,!x.writing&&!x.corked&&!x.bufferProcessing&&x.bufferedRequest&&ye(this,x))},j.prototype.setDefaultEncoding=function(T){if(typeof T=="string"&&(T=T.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((T+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+T);return this._writableState.defaultEncoding=T,this};function N(x,T,b){return!x.objectMode&&x.decodeStrings!==!1&&typeof T=="string"&&(T=v.from(T,b)),T}Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(x,T,b,d,k,D){if(!b){var O=N(T,d,k);d!==O&&(b=!0,k="buffer",d=O)}var Q=T.objectMode?1:d.length;T.length+=Q;var J=T.length<T.highWaterMark;if(J||(T.needDrain=!0),T.writing||T.corked){var X=T.lastBufferedRequest;T.lastBufferedRequest={chunk:d,encoding:k,isBuf:b,callback:D,next:null},X?X.next=T.lastBufferedRequest:T.bufferedRequest=T.lastBufferedRequest,T.bufferedRequestCount+=1}else Z(x,T,!1,Q,d,k,D);return J}function Z(x,T,b,d,k,D,O){T.writelen=d,T.writecb=O,T.writing=!0,T.sync=!0,b?x._writev(k,T.onwrite):x._write(k,D,T.onwrite),T.sync=!1}function re(x,T,b,d,k){--T.pendingcb,b?(n.nextTick(k,d),n.nextTick(S,x,T),x._writableState.errorEmitted=!0,x.emit("error",d)):(k(d),x._writableState.errorEmitted=!0,x.emit("error",d),S(x,T))}function fe(x){x.writing=!1,x.writecb=null,x.length-=x.writelen,x.writelen=0}function V(x,T){var b=x._writableState,d=b.sync,k=b.writecb;if(fe(b),T)re(x,b,d,T,k);else{var D=L(b);!D&&!b.corked&&!b.bufferProcessing&&b.bufferedRequest&&ye(x,b),d?o(le,x,b,D,k):le(x,b,D,k)}}function le(x,T,b,d){b||he(x,T),T.pendingcb--,d(),S(x,T)}function he(x,T){T.length===0&&T.needDrain&&(T.needDrain=!1,x.emit("drain"))}function ye(x,T){T.bufferProcessing=!0;var b=T.bufferedRequest;if(x._writev&&b&&b.next){var d=T.bufferedRequestCount,k=new Array(d),D=T.corkedRequestsFree;D.entry=b;for(var O=0,Q=!0;b;)k[O]=b,b.isBuf||(Q=!1),b=b.next,O+=1;k.allBuffers=Q,Z(x,T,!0,T.length,k,"",D.finish),T.pendingcb++,T.lastBufferedRequest=null,D.next?(T.corkedRequestsFree=D.next,D.next=null):T.corkedRequestsFree=new e(T),T.bufferedRequestCount=0}else{for(;b;){var J=b.chunk,X=b.encoding,U=b.callback,z=T.objectMode?1:J.length;if(Z(x,T,!1,z,J,X,U),b=b.next,T.bufferedRequestCount--,T.writing)break}b===null&&(T.lastBufferedRequest=null)}T.bufferedRequest=b,T.bufferProcessing=!1}j.prototype._write=function(x,T,b){b(new Error("_write() is not implemented"))},j.prototype._writev=null,j.prototype.end=function(x,T,b){var d=this._writableState;typeof x=="function"?(b=x,x=null,T=null):typeof T=="function"&&(b=T,T=null),x!=null&&this.write(x,T),d.corked&&(d.corked=1,this.uncork()),d.ending||c(this,d,b)};function L(x){return x.ending&&x.length===0&&x.bufferedRequest===null&&!x.finished&&!x.writing}function p(x,T){x._final(function(b){T.pendingcb--,b&&x.emit("error",b),T.prefinished=!0,x.emit("prefinish"),S(x,T)})}function y(x,T){!T.prefinished&&!T.finalCalled&&(typeof x._final=="function"?(T.pendingcb++,T.finalCalled=!0,n.nextTick(p,x,T)):(T.prefinished=!0,x.emit("prefinish")))}function S(x,T){var b=L(T);return b&&(y(x,T),T.pendingcb===0&&(T.finished=!0,x.emit("finish"))),b}function c(x,T,b){T.ending=!0,S(x,T),b&&(T.finished?n.nextTick(b):x.once("finish",b)),T.ended=!0,x.writable=!1}function m(x,T,b){var d=x.entry;for(x.entry=null;d;){var k=d.callback;T.pendingcb--,k(b),d=d.next}T.corkedRequestsFree.next=x}return Object.defineProperty(j.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(x){this._writableState&&(this._writableState.destroyed=x)}}),j.prototype.destroy=C.destroy,j.prototype._undestroy=C.undestroy,j.prototype._destroy=function(x,T){this.end(),T(x)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var n=processNextickArgsExports,e=Object.keys||function(C){var M=[];for(var P in C)M.push(P);return M};_stream_duplex=w;var o=Object.create(util$3);o.inherits=inherits_browserExports;var l=require_stream_readable(),t=require_stream_writable();o.inherits(w,l);for(var u=e(t.prototype),h=0;h<u.length;h++){var v=u[h];w.prototype[v]||(w.prototype[v]=t.prototype[v])}function w(C){if(!(this instanceof w))return new w(C);l.call(this,C),t.call(this,C),C&&C.readable===!1&&(this.readable=!1),C&&C.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,C&&C.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",A)}Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function A(){this.allowHalfOpen||this._writableState.ended||n.nextTick(E,this)}function E(C){C.end()}return Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(C){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=C,this._writableState.destroyed=C)}}),w.prototype._destroy=function(C,M){this.push(null),this.end(),n.nextTick(M,C)},_stream_duplex}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1;var n=processNextickArgsExports;_stream_readable=N;var e=isarray,o;N.ReadableState=F,requireEvents().EventEmitter;var l=function(U,z){return U.listeners(z).length},t=streamBrowser,u=safeBufferExports.Buffer,h=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function v(U){return u.from(U)}function w(U){return u.isBuffer(U)||U instanceof h}var A=Object.create(util$3);A.inherits=inherits_browserExports;var E=util$6,C=void 0;E&&E.debuglog?C=E.debuglog("stream"):C=function(){};var M=requireBufferList(),P=destroy_1,I;A.inherits(N,t);var j=["error","close","destroy","pause","resume"];function B(U,z,ie){if(typeof U.prependListener=="function")return U.prependListener(z,ie);!U._events||!U._events[z]?U.on(z,ie):e(U._events[z])?U._events[z].unshift(ie):U._events[z]=[ie,U._events[z]]}function F(U,z){o=o||require_stream_duplex(),U=U||{};var ie=z instanceof o;this.objectMode=!!U.objectMode,ie&&(this.objectMode=this.objectMode||!!U.readableObjectMode);var de=U.highWaterMark,me=U.readableHighWaterMark,pe=this.objectMode?16:16*1024;de||de===0?this.highWaterMark=de:ie&&(me||me===0)?this.highWaterMark=me:this.highWaterMark=pe,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new M,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=U.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,U.encoding&&(I||(I=string_decoder.StringDecoder),this.decoder=new I(U.encoding),this.encoding=U.encoding)}function N(U){if(o=o||require_stream_duplex(),!(this instanceof N))return new N(U);this._readableState=new F(U,this),this.readable=!0,U&&(typeof U.read=="function"&&(this._read=U.read),typeof U.destroy=="function"&&(this._destroy=U.destroy)),t.call(this)}Object.defineProperty(N.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),N.prototype.destroy=P.destroy,N.prototype._undestroy=P.undestroy,N.prototype._destroy=function(U,z){this.push(null),z(U)},N.prototype.push=function(U,z){var ie=this._readableState,de;return ie.objectMode?de=!0:typeof U=="string"&&(z=z||ie.defaultEncoding,z!==ie.encoding&&(U=u.from(U,z),z=""),de=!0),ee(this,U,z,!1,de)},N.prototype.unshift=function(U){return ee(this,U,null,!0,!1)};function ee(U,z,ie,de,me){var pe=U._readableState;if(z===null)pe.reading=!1,ye(U,pe);else{var qe;me||(qe=re(pe,z)),qe?U.emit("error",qe):pe.objectMode||z&&z.length>0?(typeof z!="string"&&!pe.objectMode&&Object.getPrototypeOf(z)!==u.prototype&&(z=v(z)),de?pe.endEmitted?U.emit("error",new Error("stream.unshift() after end event")):Z(U,pe,z,!0):pe.ended?U.emit("error",new Error("stream.push() after EOF")):(pe.reading=!1,pe.decoder&&!ie?(z=pe.decoder.write(z),pe.objectMode||z.length!==0?Z(U,pe,z,!1):y(U,pe)):Z(U,pe,z,!1))):de||(pe.reading=!1)}return fe(pe)}function Z(U,z,ie,de){z.flowing&&z.length===0&&!z.sync?(U.emit("data",ie),U.read(0)):(z.length+=z.objectMode?1:ie.length,de?z.buffer.unshift(ie):z.buffer.push(ie),z.needReadable&&L(U)),y(U,z)}function re(U,z){var ie;return!w(z)&&typeof z!="string"&&z!==void 0&&!U.objectMode&&(ie=new TypeError("Invalid non-string/buffer chunk")),ie}function fe(U){return!U.ended&&(U.needReadable||U.length<U.highWaterMark||U.length===0)}N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(U){return I||(I=string_decoder.StringDecoder),this._readableState.decoder=new I(U),this._readableState.encoding=U,this};var V=8388608;function le(U){return U>=V?U=V:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}function he(U,z){return U<=0||z.length===0&&z.ended?0:z.objectMode?1:U!==U?z.flowing&&z.length?z.buffer.head.data.length:z.length:(U>z.highWaterMark&&(z.highWaterMark=le(U)),U<=z.length?U:z.ended?z.length:(z.needReadable=!0,0))}N.prototype.read=function(U){C("read",U),U=parseInt(U,10);var z=this._readableState,ie=U;if(U!==0&&(z.emittedReadable=!1),U===0&&z.needReadable&&(z.length>=z.highWaterMark||z.ended))return C("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?Q(this):L(this),null;if(U=he(U,z),U===0&&z.ended)return z.length===0&&Q(this),null;var de=z.needReadable;C("need readable",de),(z.length===0||z.length-U<z.highWaterMark)&&(de=!0,C("length less than watermark",de)),z.ended||z.reading?(de=!1,C("reading or ended",de)):de&&(C("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(U=he(ie,z)));var me;return U>0?me=d(U,z):me=null,me===null?(z.needReadable=!0,U=0):z.length-=U,z.length===0&&(z.ended||(z.needReadable=!0),ie!==U&&z.ended&&Q(this)),me!==null&&this.emit("data",me),me};function ye(U,z){if(!z.ended){if(z.decoder){var ie=z.decoder.end();ie&&ie.length&&(z.buffer.push(ie),z.length+=z.objectMode?1:ie.length)}z.ended=!0,L(U)}}function L(U){var z=U._readableState;z.needReadable=!1,z.emittedReadable||(C("emitReadable",z.flowing),z.emittedReadable=!0,z.sync?n.nextTick(p,U):p(U))}function p(U){C("emit readable"),U.emit("readable"),b(U)}function y(U,z){z.readingMore||(z.readingMore=!0,n.nextTick(S,U,z))}function S(U,z){for(var ie=z.length;!z.reading&&!z.flowing&&!z.ended&&z.length<z.highWaterMark&&(C("maybeReadMore read 0"),U.read(0),ie!==z.length);)ie=z.length;z.readingMore=!1}N.prototype._read=function(U){this.emit("error",new Error("_read() is not implemented"))},N.prototype.pipe=function(U,z){var ie=this,de=this._readableState;switch(de.pipesCount){case 0:de.pipes=U;break;case 1:de.pipes=[de.pipes,U];break;default:de.pipes.push(U);break}de.pipesCount+=1,C("pipe count=%d opts=%j",de.pipesCount,z);var me=(!z||z.end!==!1)&&U!==process$1.stdout&&U!==process$1.stderr,pe=me?mt:jt;de.endEmitted?n.nextTick(pe):ie.once("end",pe),U.on("unpipe",qe);function qe(Ge,Qe){C("onunpipe"),Ge===ie&&Qe&&Qe.hasUnpiped===!1&&(Qe.hasUnpiped=!0,Tt())}function mt(){C("onend"),U.end()}var st=c(ie);U.on("drain",st);var dt=!1;function Tt(){C("cleanup"),U.removeListener("close",at),U.removeListener("finish",bt),U.removeListener("drain",st),U.removeListener("error",ht),U.removeListener("unpipe",qe),ie.removeListener("end",mt),ie.removeListener("end",jt),ie.removeListener("data",Je),dt=!0,de.awaitDrain&&(!U._writableState||U._writableState.needDrain)&&st()}var lt=!1;ie.on("data",Je);function Je(Ge){C("ondata"),lt=!1;var Qe=U.write(Ge);Qe===!1&&!lt&&((de.pipesCount===1&&de.pipes===U||de.pipesCount>1&&X(de.pipes,U)!==-1)&&!dt&&(C("false write response, pause",de.awaitDrain),de.awaitDrain++,lt=!0),ie.pause())}function ht(Ge){C("onerror",Ge),jt(),U.removeListener("error",ht),l(U,"error")===0&&U.emit("error",Ge)}B(U,"error",ht);function at(){U.removeListener("finish",bt),jt()}U.once("close",at);function bt(){C("onfinish"),U.removeListener("close",at),jt()}U.once("finish",bt);function jt(){C("unpipe"),ie.unpipe(U)}return U.emit("pipe",ie),de.flowing||(C("pipe resume"),ie.resume()),U};function c(U){return function(){var z=U._readableState;C("pipeOnDrain",z.awaitDrain),z.awaitDrain&&z.awaitDrain--,z.awaitDrain===0&&l(U,"data")&&(z.flowing=!0,b(U))}}N.prototype.unpipe=function(U){var z=this._readableState,ie={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return U&&U!==z.pipes?this:(U||(U=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,U&&U.emit("unpipe",this,ie),this);if(!U){var de=z.pipes,me=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var pe=0;pe<me;pe++)de[pe].emit("unpipe",this,{hasUnpiped:!1});return this}var qe=X(z.pipes,U);return qe===-1?this:(z.pipes.splice(qe,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),U.emit("unpipe",this,ie),this)},N.prototype.on=function(U,z){var ie=t.prototype.on.call(this,U,z);if(U==="data")this._readableState.flowing!==!1&&this.resume();else if(U==="readable"){var de=this._readableState;!de.endEmitted&&!de.readableListening&&(de.readableListening=de.needReadable=!0,de.emittedReadable=!1,de.reading?de.length&&L(this):n.nextTick(m,this))}return ie},N.prototype.addListener=N.prototype.on;function m(U){C("readable nexttick read 0"),U.read(0)}N.prototype.resume=function(){var U=this._readableState;return U.flowing||(C("resume"),U.flowing=!0,x(this,U)),this};function x(U,z){z.resumeScheduled||(z.resumeScheduled=!0,n.nextTick(T,U,z))}function T(U,z){z.reading||(C("resume read 0"),U.read(0)),z.resumeScheduled=!1,z.awaitDrain=0,U.emit("resume"),b(U),z.flowing&&!z.reading&&U.read(0)}N.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function b(U){var z=U._readableState;for(C("flow",z.flowing);z.flowing&&U.read()!==null;);}N.prototype.wrap=function(U){var z=this,ie=this._readableState,de=!1;U.on("end",function(){if(C("wrapped end"),ie.decoder&&!ie.ended){var qe=ie.decoder.end();qe&&qe.length&&z.push(qe)}z.push(null)}),U.on("data",function(qe){if(C("wrapped data"),ie.decoder&&(qe=ie.decoder.write(qe)),!(ie.objectMode&&qe==null)&&!(!ie.objectMode&&(!qe||!qe.length))){var mt=z.push(qe);mt||(de=!0,U.pause())}});for(var me in U)this[me]===void 0&&typeof U[me]=="function"&&(this[me]=function(qe){return function(){return U[qe].apply(U,arguments)}}(me));for(var pe=0;pe<j.length;pe++)U.on(j[pe],this.emit.bind(this,j[pe]));return this._read=function(qe){C("wrapped _read",qe),de&&(de=!1,U.resume())},this},Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),N._fromList=d;function d(U,z){if(z.length===0)return null;var ie;return z.objectMode?ie=z.buffer.shift():!U||U>=z.length?(z.decoder?ie=z.buffer.join(""):z.buffer.length===1?ie=z.buffer.head.data:ie=z.buffer.concat(z.length),z.buffer.clear()):ie=k(U,z.buffer,z.decoder),ie}function k(U,z,ie){var de;return U<z.head.data.length?(de=z.head.data.slice(0,U),z.head.data=z.head.data.slice(U)):U===z.head.data.length?de=z.shift():de=ie?D(U,z):O(U,z),de}function D(U,z){var ie=z.head,de=1,me=ie.data;for(U-=me.length;ie=ie.next;){var pe=ie.data,qe=U>pe.length?pe.length:U;if(qe===pe.length?me+=pe:me+=pe.slice(0,U),U-=qe,U===0){qe===pe.length?(++de,ie.next?z.head=ie.next:z.head=z.tail=null):(z.head=ie,ie.data=pe.slice(qe));break}++de}return z.length-=de,me}function O(U,z){var ie=u.allocUnsafe(U),de=z.head,me=1;for(de.data.copy(ie),U-=de.data.length;de=de.next;){var pe=de.data,qe=U>pe.length?pe.length:U;if(pe.copy(ie,ie.length-U,0,qe),U-=qe,U===0){qe===pe.length?(++me,de.next?z.head=de.next:z.head=z.tail=null):(z.head=de,de.data=pe.slice(qe));break}++me}return z.length-=me,ie}function Q(U){var z=U._readableState;if(z.length>0)throw new Error('"endReadable()" called on non-empty stream');z.endEmitted||(z.ended=!0,n.nextTick(J,z,U))}function J(U,z){!U.endEmitted&&U.length===0&&(U.endEmitted=!0,z.readable=!1,z.emit("end"))}function X(U,z){for(var ie=0,de=U.length;ie<de;ie++)if(U[ie]===z)return ie;return-1}return _stream_readable}var _stream_transform=Transform$1,Duplex=require_stream_duplex(),util$2=Object.create(util$3);util$2.inherits=inherits_browserExports,util$2.inherits(Transform$1,Duplex);function afterTransform(n,e){var o=this._transformState;o.transforming=!1;var l=o.writecb;if(!l)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,e!=null&&this.push(e),l(n);var t=this._readableState;t.reading=!1,(t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}function Transform$1(n){if(!(this instanceof Transform$1))return new Transform$1(n);Duplex.call(this,n),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,n&&(typeof n.transform=="function"&&(this._transform=n.transform),typeof n.flush=="function"&&(this._flush=n.flush)),this.on("prefinish",prefinish)}function prefinish(){var n=this;typeof this._flush=="function"?this._flush(function(e,o){done(n,e,o)}):done(this,null,null)}Transform$1.prototype.push=function(n,e){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,n,e)},Transform$1.prototype._transform=function(n,e,o){throw new Error("_transform() is not implemented")},Transform$1.prototype._write=function(n,e,o){var l=this._transformState;if(l.writecb=o,l.writechunk=n,l.writeencoding=e,!l.transforming){var t=this._readableState;(l.needTransform||t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}},Transform$1.prototype._read=function(n){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},Transform$1.prototype._destroy=function(n,e){var o=this;Duplex.prototype._destroy.call(this,n,function(l){e(l),o.emit("close")})};function done(n,e,o){if(e)return n.emit("error",e);if(o!=null&&n.push(o),n._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(n._transformState.transforming)throw new Error("Calling transform done when still transforming");return n.push(null)}var _stream_passthrough=PassThrough,Transform=_stream_transform,util$1=Object.create(util$3);util$1.inherits=inherits_browserExports,util$1.inherits(PassThrough,Transform);function PassThrough(n){if(!(this instanceof PassThrough))return new PassThrough(n);Transform.call(this,n)}PassThrough.prototype._transform=function(n,e,o){o(null,n)},function(n,e){e=n.exports=require_stream_readable(),e.Stream=e,e.Readable=e,e.Writable=require_stream_writable(),e.Duplex=require_stream_duplex(),e.Transform=_stream_transform,e.PassThrough=_stream_passthrough}(readableBrowser$1,readableBrowser$1.exports);var readableBrowserExports=readableBrowser$1.exports,sign={exports:{}},bn$4={exports:{}};bn$4.exports,function(n){(function(e,o){function l(y,S){if(!y)throw new Error(S||"Assertion failed")}function t(y,S){y.super_=S;var c=function(){};c.prototype=S.prototype,y.prototype=new c,y.prototype.constructor=y}function u(y,S,c){if(u.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((S==="le"||S==="be")&&(c=S,S=10),this._init(y||0,S||10,c||"be"))}typeof e=="object"?e.exports=u:o.BN=u,u.BN=u,u.wordSize=26;var h;try{typeof window<"u"&&typeof window.Buffer<"u"?h=window.Buffer:h=require$$0$2.Buffer}catch{}u.isBN=function(S){return S instanceof u?!0:S!==null&&typeof S=="object"&&S.constructor.wordSize===u.wordSize&&Array.isArray(S.words)},u.max=function(S,c){return S.cmp(c)>0?S:c},u.min=function(S,c){return S.cmp(c)<0?S:c},u.prototype._init=function(S,c,m){if(typeof S=="number")return this._initNumber(S,c,m);if(typeof S=="object")return this._initArray(S,c,m);c==="hex"&&(c=16),l(c===(c|0)&&c>=2&&c<=36),S=S.toString().replace(/\s+/g,"");var x=0;S[0]==="-"&&(x++,this.negative=1),x<S.length&&(c===16?this._parseHex(S,x,m):(this._parseBase(S,c,x),m==="le"&&this._initArray(this.toArray(),c,m)))},u.prototype._initNumber=function(S,c,m){S<0&&(this.negative=1,S=-S),S<67108864?(this.words=[S&67108863],this.length=1):S<4503599627370496?(this.words=[S&67108863,S/67108864&67108863],this.length=2):(l(S<9007199254740992),this.words=[S&67108863,S/67108864&67108863,1],this.length=3),m==="le"&&this._initArray(this.toArray(),c,m)},u.prototype._initArray=function(S,c,m){if(l(typeof S.length=="number"),S.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(S.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var T,b,d=0;if(m==="be")for(x=S.length-1,T=0;x>=0;x-=3)b=S[x]|S[x-1]<<8|S[x-2]<<16,this.words[T]|=b<<d&67108863,this.words[T+1]=b>>>26-d&67108863,d+=24,d>=26&&(d-=26,T++);else if(m==="le")for(x=0,T=0;x<S.length;x+=3)b=S[x]|S[x+1]<<8|S[x+2]<<16,this.words[T]|=b<<d&67108863,this.words[T+1]=b>>>26-d&67108863,d+=24,d>=26&&(d-=26,T++);return this._strip()};function v(y,S){var c=y.charCodeAt(S);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;l(!1,"Invalid character in "+y)}function w(y,S,c){var m=v(y,c);return c-1>=S&&(m|=v(y,c-1)<<4),m}u.prototype._parseHex=function(S,c,m){this.length=Math.ceil((S.length-c)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var T=0,b=0,d;if(m==="be")for(x=S.length-1;x>=c;x-=2)d=w(S,c,x)<<T,this.words[b]|=d&67108863,T>=18?(T-=18,b+=1,this.words[b]|=d>>>26):T+=8;else{var k=S.length-c;for(x=k%2===0?c+1:c;x<S.length;x+=2)d=w(S,c,x)<<T,this.words[b]|=d&67108863,T>=18?(T-=18,b+=1,this.words[b]|=d>>>26):T+=8}this._strip()};function A(y,S,c,m){for(var x=0,T=0,b=Math.min(y.length,c),d=S;d<b;d++){var k=y.charCodeAt(d)-48;x*=m,k>=49?T=k-49+10:k>=17?T=k-17+10:T=k,l(k>=0&&T<m,"Invalid character"),x+=T}return x}u.prototype._parseBase=function(S,c,m){this.words=[0],this.length=1;for(var x=0,T=1;T<=67108863;T*=c)x++;x--,T=T/c|0;for(var b=S.length-m,d=b%x,k=Math.min(b,b-d)+m,D=0,O=m;O<k;O+=x)D=A(S,O,O+x,c),this.imuln(T),this.words[0]+D<67108864?this.words[0]+=D:this._iaddn(D);if(d!==0){var Q=1;for(D=A(S,O,S.length,c),O=0;O<d;O++)Q*=c;this.imuln(Q),this.words[0]+D<67108864?this.words[0]+=D:this._iaddn(D)}this._strip()},u.prototype.copy=function(S){S.words=new Array(this.length);for(var c=0;c<this.length;c++)S.words[c]=this.words[c];S.length=this.length,S.negative=this.negative,S.red=this.red};function E(y,S){y.words=S.words,y.length=S.length,y.negative=S.negative,y.red=S.red}if(u.prototype._move=function(S){E(S,this)},u.prototype.clone=function(){var S=new u(null);return this.copy(S),S},u.prototype._expand=function(S){for(;this.length<S;)this.words[this.length++]=0;return this},u.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{u.prototype[Symbol.for("nodejs.util.inspect.custom")]=C}catch{u.prototype.inspect=C}else u.prototype.inspect=C;function C(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],P=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(S,c){S=S||10,c=c|0||1;var m;if(S===16||S==="hex"){m="";for(var x=0,T=0,b=0;b<this.length;b++){var d=this.words[b],k=((d<<x|T)&16777215).toString(16);T=d>>>24-x&16777215,x+=2,x>=26&&(x-=26,b--),T!==0||b!==this.length-1?m=M[6-k.length]+k+m:m=k+m}for(T!==0&&(m=T.toString(16)+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(S===(S|0)&&S>=2&&S<=36){var D=P[S],O=I[S];m="";var Q=this.clone();for(Q.negative=0;!Q.isZero();){var J=Q.modrn(O).toString(S);Q=Q.idivn(O),Q.isZero()?m=J+m:m=M[D-J.length]+J+m}for(this.isZero()&&(m="0"+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}l(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var S=this.words[0];return this.length===2?S+=this.words[1]*67108864:this.length===3&&this.words[2]===1?S+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-S:S},u.prototype.toJSON=function(){return this.toString(16,2)},h&&(u.prototype.toBuffer=function(S,c){return this.toArrayLike(h,S,c)}),u.prototype.toArray=function(S,c){return this.toArrayLike(Array,S,c)};var j=function(S,c){return S.allocUnsafe?S.allocUnsafe(c):new S(c)};u.prototype.toArrayLike=function(S,c,m){this._strip();var x=this.byteLength(),T=m||Math.max(1,x);l(x<=T,"byte array longer than desired length"),l(T>0,"Requested array length <= 0");var b=j(S,T),d=c==="le"?"LE":"BE";return this["_toArrayLike"+d](b,x),b},u.prototype._toArrayLikeLE=function(S,c){for(var m=0,x=0,T=0,b=0;T<this.length;T++){var d=this.words[T]<<b|x;S[m++]=d&255,m<S.length&&(S[m++]=d>>8&255),m<S.length&&(S[m++]=d>>16&255),b===6?(m<S.length&&(S[m++]=d>>24&255),x=0,b=0):(x=d>>>24,b+=2)}if(m<S.length)for(S[m++]=x;m<S.length;)S[m++]=0},u.prototype._toArrayLikeBE=function(S,c){for(var m=S.length-1,x=0,T=0,b=0;T<this.length;T++){var d=this.words[T]<<b|x;S[m--]=d&255,m>=0&&(S[m--]=d>>8&255),m>=0&&(S[m--]=d>>16&255),b===6?(m>=0&&(S[m--]=d>>24&255),x=0,b=0):(x=d>>>24,b+=2)}if(m>=0)for(S[m--]=x;m>=0;)S[m--]=0},Math.clz32?u.prototype._countBits=function(S){return 32-Math.clz32(S)}:u.prototype._countBits=function(S){var c=S,m=0;return c>=4096&&(m+=13,c>>>=13),c>=64&&(m+=7,c>>>=7),c>=8&&(m+=4,c>>>=4),c>=2&&(m+=2,c>>>=2),m+c},u.prototype._zeroBits=function(S){if(S===0)return 26;var c=S,m=0;return c&8191||(m+=13,c>>>=13),c&127||(m+=7,c>>>=7),c&15||(m+=4,c>>>=4),c&3||(m+=2,c>>>=2),c&1||m++,m},u.prototype.bitLength=function(){var S=this.words[this.length-1],c=this._countBits(S);return(this.length-1)*26+c};function B(y){for(var S=new Array(y.bitLength()),c=0;c<S.length;c++){var m=c/26|0,x=c%26;S[c]=y.words[m]>>>x&1}return S}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var S=0,c=0;c<this.length;c++){var m=this._zeroBits(this.words[c]);if(S+=m,m!==26)break}return S},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(S){return this.negative!==0?this.abs().inotn(S).iaddn(1):this.clone()},u.prototype.fromTwos=function(S){return this.testn(S-1)?this.notn(S).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(S){for(;this.length<S.length;)this.words[this.length++]=0;for(var c=0;c<S.length;c++)this.words[c]=this.words[c]|S.words[c];return this._strip()},u.prototype.ior=function(S){return l((this.negative|S.negative)===0),this.iuor(S)},u.prototype.or=function(S){return this.length>S.length?this.clone().ior(S):S.clone().ior(this)},u.prototype.uor=function(S){return this.length>S.length?this.clone().iuor(S):S.clone().iuor(this)},u.prototype.iuand=function(S){var c;this.length>S.length?c=S:c=this;for(var m=0;m<c.length;m++)this.words[m]=this.words[m]&S.words[m];return this.length=c.length,this._strip()},u.prototype.iand=function(S){return l((this.negative|S.negative)===0),this.iuand(S)},u.prototype.and=function(S){return this.length>S.length?this.clone().iand(S):S.clone().iand(this)},u.prototype.uand=function(S){return this.length>S.length?this.clone().iuand(S):S.clone().iuand(this)},u.prototype.iuxor=function(S){var c,m;this.length>S.length?(c=this,m=S):(c=S,m=this);for(var x=0;x<m.length;x++)this.words[x]=c.words[x]^m.words[x];if(this!==c)for(;x<c.length;x++)this.words[x]=c.words[x];return this.length=c.length,this._strip()},u.prototype.ixor=function(S){return l((this.negative|S.negative)===0),this.iuxor(S)},u.prototype.xor=function(S){return this.length>S.length?this.clone().ixor(S):S.clone().ixor(this)},u.prototype.uxor=function(S){return this.length>S.length?this.clone().iuxor(S):S.clone().iuxor(this)},u.prototype.inotn=function(S){l(typeof S=="number"&&S>=0);var c=Math.ceil(S/26)|0,m=S%26;this._expand(c),m>0&&c--;for(var x=0;x<c;x++)this.words[x]=~this.words[x]&67108863;return m>0&&(this.words[x]=~this.words[x]&67108863>>26-m),this._strip()},u.prototype.notn=function(S){return this.clone().inotn(S)},u.prototype.setn=function(S,c){l(typeof S=="number"&&S>=0);var m=S/26|0,x=S%26;return this._expand(m+1),c?this.words[m]=this.words[m]|1<<x:this.words[m]=this.words[m]&~(1<<x),this._strip()},u.prototype.iadd=function(S){var c;if(this.negative!==0&&S.negative===0)return this.negative=0,c=this.isub(S),this.negative^=1,this._normSign();if(this.negative===0&&S.negative!==0)return S.negative=0,c=this.isub(S),S.negative=1,c._normSign();var m,x;this.length>S.length?(m=this,x=S):(m=S,x=this);for(var T=0,b=0;b<x.length;b++)c=(m.words[b]|0)+(x.words[b]|0)+T,this.words[b]=c&67108863,T=c>>>26;for(;T!==0&&b<m.length;b++)c=(m.words[b]|0)+T,this.words[b]=c&67108863,T=c>>>26;if(this.length=m.length,T!==0)this.words[this.length]=T,this.length++;else if(m!==this)for(;b<m.length;b++)this.words[b]=m.words[b];return this},u.prototype.add=function(S){var c;return S.negative!==0&&this.negative===0?(S.negative=0,c=this.sub(S),S.negative^=1,c):S.negative===0&&this.negative!==0?(this.negative=0,c=S.sub(this),this.negative=1,c):this.length>S.length?this.clone().iadd(S):S.clone().iadd(this)},u.prototype.isub=function(S){if(S.negative!==0){S.negative=0;var c=this.iadd(S);return S.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(S),this.negative=1,this._normSign();var m=this.cmp(S);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,T;m>0?(x=this,T=S):(x=S,T=this);for(var b=0,d=0;d<T.length;d++)c=(x.words[d]|0)-(T.words[d]|0)+b,b=c>>26,this.words[d]=c&67108863;for(;b!==0&&d<x.length;d++)c=(x.words[d]|0)+b,b=c>>26,this.words[d]=c&67108863;if(b===0&&d<x.length&&x!==this)for(;d<x.length;d++)this.words[d]=x.words[d];return this.length=Math.max(this.length,d),x!==this&&(this.negative=1),this._strip()},u.prototype.sub=function(S){return this.clone().isub(S)};function F(y,S,c){c.negative=S.negative^y.negative;var m=y.length+S.length|0;c.length=m,m=m-1|0;var x=y.words[0]|0,T=S.words[0]|0,b=x*T,d=b&67108863,k=b/67108864|0;c.words[0]=d;for(var D=1;D<m;D++){for(var O=k>>>26,Q=k&67108863,J=Math.min(D,S.length-1),X=Math.max(0,D-y.length+1);X<=J;X++){var U=D-X|0;x=y.words[U]|0,T=S.words[X]|0,b=x*T+Q,O+=b/67108864|0,Q=b&67108863}c.words[D]=Q|0,k=O|0}return k!==0?c.words[D]=k|0:c.length--,c._strip()}var N=function(S,c,m){var x=S.words,T=c.words,b=m.words,d=0,k,D,O,Q=x[0]|0,J=Q&8191,X=Q>>>13,U=x[1]|0,z=U&8191,ie=U>>>13,de=x[2]|0,me=de&8191,pe=de>>>13,qe=x[3]|0,mt=qe&8191,st=qe>>>13,dt=x[4]|0,Tt=dt&8191,lt=dt>>>13,Je=x[5]|0,ht=Je&8191,at=Je>>>13,bt=x[6]|0,jt=bt&8191,Ge=bt>>>13,Qe=x[7]|0,Wt=Qe&8191,Et=Qe>>>13,Ct=x[8]|0,Kt=Ct&8191,Me=Ct>>>13,te=x[9]|0,_e=te&8191,je=te>>>13,We=T[0]|0,et=We&8191,Ye=We>>>13,De=T[1]|0,Ht=De&8191,Mt=De>>>13,ge=T[2]|0,Dt=ge&8191,yt=ge>>>13,Ne=T[3]|0,_t=Ne&8191,pt=Ne>>>13,Bt=T[4]|0,ur=Bt&8191,kt=Bt>>>13,Ut=T[5]|0,Wr=Ut&8191,zt=Ut>>>13,Qt=T[6]|0,$e=Qt&8191,be=Qt>>>13,ve=T[7]|0,se=ve&8191,Pe=ve>>>13,ze=T[8]|0,xt=ze&8191,ot=ze>>>13,wt=T[9]|0,Yt=wt&8191,Jt=wt>>>13;m.negative=S.negative^c.negative,m.length=19,k=Math.imul(J,et),D=Math.imul(J,Ye),D=D+Math.imul(X,et)|0,O=Math.imul(X,Ye);var wr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(wr>>>26)|0,wr&=67108863,k=Math.imul(z,et),D=Math.imul(z,Ye),D=D+Math.imul(ie,et)|0,O=Math.imul(ie,Ye),k=k+Math.imul(J,Ht)|0,D=D+Math.imul(J,Mt)|0,D=D+Math.imul(X,Ht)|0,O=O+Math.imul(X,Mt)|0;var lr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(lr>>>26)|0,lr&=67108863,k=Math.imul(me,et),D=Math.imul(me,Ye),D=D+Math.imul(pe,et)|0,O=Math.imul(pe,Ye),k=k+Math.imul(z,Ht)|0,D=D+Math.imul(z,Mt)|0,D=D+Math.imul(ie,Ht)|0,O=O+Math.imul(ie,Mt)|0,k=k+Math.imul(J,Dt)|0,D=D+Math.imul(J,yt)|0,D=D+Math.imul(X,Dt)|0,O=O+Math.imul(X,yt)|0;var Rr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,k=Math.imul(mt,et),D=Math.imul(mt,Ye),D=D+Math.imul(st,et)|0,O=Math.imul(st,Ye),k=k+Math.imul(me,Ht)|0,D=D+Math.imul(me,Mt)|0,D=D+Math.imul(pe,Ht)|0,O=O+Math.imul(pe,Mt)|0,k=k+Math.imul(z,Dt)|0,D=D+Math.imul(z,yt)|0,D=D+Math.imul(ie,Dt)|0,O=O+Math.imul(ie,yt)|0,k=k+Math.imul(J,_t)|0,D=D+Math.imul(J,pt)|0,D=D+Math.imul(X,_t)|0,O=O+Math.imul(X,pt)|0;var vr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(vr>>>26)|0,vr&=67108863,k=Math.imul(Tt,et),D=Math.imul(Tt,Ye),D=D+Math.imul(lt,et)|0,O=Math.imul(lt,Ye),k=k+Math.imul(mt,Ht)|0,D=D+Math.imul(mt,Mt)|0,D=D+Math.imul(st,Ht)|0,O=O+Math.imul(st,Mt)|0,k=k+Math.imul(me,Dt)|0,D=D+Math.imul(me,yt)|0,D=D+Math.imul(pe,Dt)|0,O=O+Math.imul(pe,yt)|0,k=k+Math.imul(z,_t)|0,D=D+Math.imul(z,pt)|0,D=D+Math.imul(ie,_t)|0,O=O+Math.imul(ie,pt)|0,k=k+Math.imul(J,ur)|0,D=D+Math.imul(J,kt)|0,D=D+Math.imul(X,ur)|0,O=O+Math.imul(X,kt)|0;var dr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(dr>>>26)|0,dr&=67108863,k=Math.imul(ht,et),D=Math.imul(ht,Ye),D=D+Math.imul(at,et)|0,O=Math.imul(at,Ye),k=k+Math.imul(Tt,Ht)|0,D=D+Math.imul(Tt,Mt)|0,D=D+Math.imul(lt,Ht)|0,O=O+Math.imul(lt,Mt)|0,k=k+Math.imul(mt,Dt)|0,D=D+Math.imul(mt,yt)|0,D=D+Math.imul(st,Dt)|0,O=O+Math.imul(st,yt)|0,k=k+Math.imul(me,_t)|0,D=D+Math.imul(me,pt)|0,D=D+Math.imul(pe,_t)|0,O=O+Math.imul(pe,pt)|0,k=k+Math.imul(z,ur)|0,D=D+Math.imul(z,kt)|0,D=D+Math.imul(ie,ur)|0,O=O+Math.imul(ie,kt)|0,k=k+Math.imul(J,Wr)|0,D=D+Math.imul(J,zt)|0,D=D+Math.imul(X,Wr)|0,O=O+Math.imul(X,zt)|0;var Ir=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,k=Math.imul(jt,et),D=Math.imul(jt,Ye),D=D+Math.imul(Ge,et)|0,O=Math.imul(Ge,Ye),k=k+Math.imul(ht,Ht)|0,D=D+Math.imul(ht,Mt)|0,D=D+Math.imul(at,Ht)|0,O=O+Math.imul(at,Mt)|0,k=k+Math.imul(Tt,Dt)|0,D=D+Math.imul(Tt,yt)|0,D=D+Math.imul(lt,Dt)|0,O=O+Math.imul(lt,yt)|0,k=k+Math.imul(mt,_t)|0,D=D+Math.imul(mt,pt)|0,D=D+Math.imul(st,_t)|0,O=O+Math.imul(st,pt)|0,k=k+Math.imul(me,ur)|0,D=D+Math.imul(me,kt)|0,D=D+Math.imul(pe,ur)|0,O=O+Math.imul(pe,kt)|0,k=k+Math.imul(z,Wr)|0,D=D+Math.imul(z,zt)|0,D=D+Math.imul(ie,Wr)|0,O=O+Math.imul(ie,zt)|0,k=k+Math.imul(J,$e)|0,D=D+Math.imul(J,be)|0,D=D+Math.imul(X,$e)|0,O=O+Math.imul(X,be)|0;var kr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(kr>>>26)|0,kr&=67108863,k=Math.imul(Wt,et),D=Math.imul(Wt,Ye),D=D+Math.imul(Et,et)|0,O=Math.imul(Et,Ye),k=k+Math.imul(jt,Ht)|0,D=D+Math.imul(jt,Mt)|0,D=D+Math.imul(Ge,Ht)|0,O=O+Math.imul(Ge,Mt)|0,k=k+Math.imul(ht,Dt)|0,D=D+Math.imul(ht,yt)|0,D=D+Math.imul(at,Dt)|0,O=O+Math.imul(at,yt)|0,k=k+Math.imul(Tt,_t)|0,D=D+Math.imul(Tt,pt)|0,D=D+Math.imul(lt,_t)|0,O=O+Math.imul(lt,pt)|0,k=k+Math.imul(mt,ur)|0,D=D+Math.imul(mt,kt)|0,D=D+Math.imul(st,ur)|0,O=O+Math.imul(st,kt)|0,k=k+Math.imul(me,Wr)|0,D=D+Math.imul(me,zt)|0,D=D+Math.imul(pe,Wr)|0,O=O+Math.imul(pe,zt)|0,k=k+Math.imul(z,$e)|0,D=D+Math.imul(z,be)|0,D=D+Math.imul(ie,$e)|0,O=O+Math.imul(ie,be)|0,k=k+Math.imul(J,se)|0,D=D+Math.imul(J,Pe)|0,D=D+Math.imul(X,se)|0,O=O+Math.imul(X,Pe)|0;var Fr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,k=Math.imul(Kt,et),D=Math.imul(Kt,Ye),D=D+Math.imul(Me,et)|0,O=Math.imul(Me,Ye),k=k+Math.imul(Wt,Ht)|0,D=D+Math.imul(Wt,Mt)|0,D=D+Math.imul(Et,Ht)|0,O=O+Math.imul(Et,Mt)|0,k=k+Math.imul(jt,Dt)|0,D=D+Math.imul(jt,yt)|0,D=D+Math.imul(Ge,Dt)|0,O=O+Math.imul(Ge,yt)|0,k=k+Math.imul(ht,_t)|0,D=D+Math.imul(ht,pt)|0,D=D+Math.imul(at,_t)|0,O=O+Math.imul(at,pt)|0,k=k+Math.imul(Tt,ur)|0,D=D+Math.imul(Tt,kt)|0,D=D+Math.imul(lt,ur)|0,O=O+Math.imul(lt,kt)|0,k=k+Math.imul(mt,Wr)|0,D=D+Math.imul(mt,zt)|0,D=D+Math.imul(st,Wr)|0,O=O+Math.imul(st,zt)|0,k=k+Math.imul(me,$e)|0,D=D+Math.imul(me,be)|0,D=D+Math.imul(pe,$e)|0,O=O+Math.imul(pe,be)|0,k=k+Math.imul(z,se)|0,D=D+Math.imul(z,Pe)|0,D=D+Math.imul(ie,se)|0,O=O+Math.imul(ie,Pe)|0,k=k+Math.imul(J,xt)|0,D=D+Math.imul(J,ot)|0,D=D+Math.imul(X,xt)|0,O=O+Math.imul(X,ot)|0;var jr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(jr>>>26)|0,jr&=67108863,k=Math.imul(_e,et),D=Math.imul(_e,Ye),D=D+Math.imul(je,et)|0,O=Math.imul(je,Ye),k=k+Math.imul(Kt,Ht)|0,D=D+Math.imul(Kt,Mt)|0,D=D+Math.imul(Me,Ht)|0,O=O+Math.imul(Me,Mt)|0,k=k+Math.imul(Wt,Dt)|0,D=D+Math.imul(Wt,yt)|0,D=D+Math.imul(Et,Dt)|0,O=O+Math.imul(Et,yt)|0,k=k+Math.imul(jt,_t)|0,D=D+Math.imul(jt,pt)|0,D=D+Math.imul(Ge,_t)|0,O=O+Math.imul(Ge,pt)|0,k=k+Math.imul(ht,ur)|0,D=D+Math.imul(ht,kt)|0,D=D+Math.imul(at,ur)|0,O=O+Math.imul(at,kt)|0,k=k+Math.imul(Tt,Wr)|0,D=D+Math.imul(Tt,zt)|0,D=D+Math.imul(lt,Wr)|0,O=O+Math.imul(lt,zt)|0,k=k+Math.imul(mt,$e)|0,D=D+Math.imul(mt,be)|0,D=D+Math.imul(st,$e)|0,O=O+Math.imul(st,be)|0,k=k+Math.imul(me,se)|0,D=D+Math.imul(me,Pe)|0,D=D+Math.imul(pe,se)|0,O=O+Math.imul(pe,Pe)|0,k=k+Math.imul(z,xt)|0,D=D+Math.imul(z,ot)|0,D=D+Math.imul(ie,xt)|0,O=O+Math.imul(ie,ot)|0,k=k+Math.imul(J,Yt)|0,D=D+Math.imul(J,Jt)|0,D=D+Math.imul(X,Yt)|0,O=O+Math.imul(X,Jt)|0;var Cr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,k=Math.imul(_e,Ht),D=Math.imul(_e,Mt),D=D+Math.imul(je,Ht)|0,O=Math.imul(je,Mt),k=k+Math.imul(Kt,Dt)|0,D=D+Math.imul(Kt,yt)|0,D=D+Math.imul(Me,Dt)|0,O=O+Math.imul(Me,yt)|0,k=k+Math.imul(Wt,_t)|0,D=D+Math.imul(Wt,pt)|0,D=D+Math.imul(Et,_t)|0,O=O+Math.imul(Et,pt)|0,k=k+Math.imul(jt,ur)|0,D=D+Math.imul(jt,kt)|0,D=D+Math.imul(Ge,ur)|0,O=O+Math.imul(Ge,kt)|0,k=k+Math.imul(ht,Wr)|0,D=D+Math.imul(ht,zt)|0,D=D+Math.imul(at,Wr)|0,O=O+Math.imul(at,zt)|0,k=k+Math.imul(Tt,$e)|0,D=D+Math.imul(Tt,be)|0,D=D+Math.imul(lt,$e)|0,O=O+Math.imul(lt,be)|0,k=k+Math.imul(mt,se)|0,D=D+Math.imul(mt,Pe)|0,D=D+Math.imul(st,se)|0,O=O+Math.imul(st,Pe)|0,k=k+Math.imul(me,xt)|0,D=D+Math.imul(me,ot)|0,D=D+Math.imul(pe,xt)|0,O=O+Math.imul(pe,ot)|0,k=k+Math.imul(z,Yt)|0,D=D+Math.imul(z,Jt)|0,D=D+Math.imul(ie,Yt)|0,O=O+Math.imul(ie,Jt)|0;var Lr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,k=Math.imul(_e,Dt),D=Math.imul(_e,yt),D=D+Math.imul(je,Dt)|0,O=Math.imul(je,yt),k=k+Math.imul(Kt,_t)|0,D=D+Math.imul(Kt,pt)|0,D=D+Math.imul(Me,_t)|0,O=O+Math.imul(Me,pt)|0,k=k+Math.imul(Wt,ur)|0,D=D+Math.imul(Wt,kt)|0,D=D+Math.imul(Et,ur)|0,O=O+Math.imul(Et,kt)|0,k=k+Math.imul(jt,Wr)|0,D=D+Math.imul(jt,zt)|0,D=D+Math.imul(Ge,Wr)|0,O=O+Math.imul(Ge,zt)|0,k=k+Math.imul(ht,$e)|0,D=D+Math.imul(ht,be)|0,D=D+Math.imul(at,$e)|0,O=O+Math.imul(at,be)|0,k=k+Math.imul(Tt,se)|0,D=D+Math.imul(Tt,Pe)|0,D=D+Math.imul(lt,se)|0,O=O+Math.imul(lt,Pe)|0,k=k+Math.imul(mt,xt)|0,D=D+Math.imul(mt,ot)|0,D=D+Math.imul(st,xt)|0,O=O+Math.imul(st,ot)|0,k=k+Math.imul(me,Yt)|0,D=D+Math.imul(me,Jt)|0,D=D+Math.imul(pe,Yt)|0,O=O+Math.imul(pe,Jt)|0;var Ar=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,k=Math.imul(_e,_t),D=Math.imul(_e,pt),D=D+Math.imul(je,_t)|0,O=Math.imul(je,pt),k=k+Math.imul(Kt,ur)|0,D=D+Math.imul(Kt,kt)|0,D=D+Math.imul(Me,ur)|0,O=O+Math.imul(Me,kt)|0,k=k+Math.imul(Wt,Wr)|0,D=D+Math.imul(Wt,zt)|0,D=D+Math.imul(Et,Wr)|0,O=O+Math.imul(Et,zt)|0,k=k+Math.imul(jt,$e)|0,D=D+Math.imul(jt,be)|0,D=D+Math.imul(Ge,$e)|0,O=O+Math.imul(Ge,be)|0,k=k+Math.imul(ht,se)|0,D=D+Math.imul(ht,Pe)|0,D=D+Math.imul(at,se)|0,O=O+Math.imul(at,Pe)|0,k=k+Math.imul(Tt,xt)|0,D=D+Math.imul(Tt,ot)|0,D=D+Math.imul(lt,xt)|0,O=O+Math.imul(lt,ot)|0,k=k+Math.imul(mt,Yt)|0,D=D+Math.imul(mt,Jt)|0,D=D+Math.imul(st,Yt)|0,O=O+Math.imul(st,Jt)|0;var Tr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,k=Math.imul(_e,ur),D=Math.imul(_e,kt),D=D+Math.imul(je,ur)|0,O=Math.imul(je,kt),k=k+Math.imul(Kt,Wr)|0,D=D+Math.imul(Kt,zt)|0,D=D+Math.imul(Me,Wr)|0,O=O+Math.imul(Me,zt)|0,k=k+Math.imul(Wt,$e)|0,D=D+Math.imul(Wt,be)|0,D=D+Math.imul(Et,$e)|0,O=O+Math.imul(Et,be)|0,k=k+Math.imul(jt,se)|0,D=D+Math.imul(jt,Pe)|0,D=D+Math.imul(Ge,se)|0,O=O+Math.imul(Ge,Pe)|0,k=k+Math.imul(ht,xt)|0,D=D+Math.imul(ht,ot)|0,D=D+Math.imul(at,xt)|0,O=O+Math.imul(at,ot)|0,k=k+Math.imul(Tt,Yt)|0,D=D+Math.imul(Tt,Jt)|0,D=D+Math.imul(lt,Yt)|0,O=O+Math.imul(lt,Jt)|0;var Sr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,k=Math.imul(_e,Wr),D=Math.imul(_e,zt),D=D+Math.imul(je,Wr)|0,O=Math.imul(je,zt),k=k+Math.imul(Kt,$e)|0,D=D+Math.imul(Kt,be)|0,D=D+Math.imul(Me,$e)|0,O=O+Math.imul(Me,be)|0,k=k+Math.imul(Wt,se)|0,D=D+Math.imul(Wt,Pe)|0,D=D+Math.imul(Et,se)|0,O=O+Math.imul(Et,Pe)|0,k=k+Math.imul(jt,xt)|0,D=D+Math.imul(jt,ot)|0,D=D+Math.imul(Ge,xt)|0,O=O+Math.imul(Ge,ot)|0,k=k+Math.imul(ht,Yt)|0,D=D+Math.imul(ht,Jt)|0,D=D+Math.imul(at,Yt)|0,O=O+Math.imul(at,Jt)|0;var rr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(rr>>>26)|0,rr&=67108863,k=Math.imul(_e,$e),D=Math.imul(_e,be),D=D+Math.imul(je,$e)|0,O=Math.imul(je,be),k=k+Math.imul(Kt,se)|0,D=D+Math.imul(Kt,Pe)|0,D=D+Math.imul(Me,se)|0,O=O+Math.imul(Me,Pe)|0,k=k+Math.imul(Wt,xt)|0,D=D+Math.imul(Wt,ot)|0,D=D+Math.imul(Et,xt)|0,O=O+Math.imul(Et,ot)|0,k=k+Math.imul(jt,Yt)|0,D=D+Math.imul(jt,Jt)|0,D=D+Math.imul(Ge,Yt)|0,O=O+Math.imul(Ge,Jt)|0;var Nt=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,k=Math.imul(_e,se),D=Math.imul(_e,Pe),D=D+Math.imul(je,se)|0,O=Math.imul(je,Pe),k=k+Math.imul(Kt,xt)|0,D=D+Math.imul(Kt,ot)|0,D=D+Math.imul(Me,xt)|0,O=O+Math.imul(Me,ot)|0,k=k+Math.imul(Wt,Yt)|0,D=D+Math.imul(Wt,Jt)|0,D=D+Math.imul(Et,Yt)|0,O=O+Math.imul(Et,Jt)|0;var Gt=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,k=Math.imul(_e,xt),D=Math.imul(_e,ot),D=D+Math.imul(je,xt)|0,O=Math.imul(je,ot),k=k+Math.imul(Kt,Yt)|0,D=D+Math.imul(Kt,Jt)|0,D=D+Math.imul(Me,Yt)|0,O=O+Math.imul(Me,Jt)|0;var xr=(d+k|0)+((D&8191)<<13)|0;d=(O+(D>>>13)|0)+(xr>>>26)|0,xr&=67108863,k=Math.imul(_e,Yt),D=Math.imul(_e,Jt),D=D+Math.imul(je,Yt)|0,O=Math.imul(je,Jt);var pr=(d+k|0)+((D&8191)<<13)|0;return d=(O+(D>>>13)|0)+(pr>>>26)|0,pr&=67108863,b[0]=wr,b[1]=lr,b[2]=Rr,b[3]=vr,b[4]=dr,b[5]=Ir,b[6]=kr,b[7]=Fr,b[8]=jr,b[9]=Cr,b[10]=Lr,b[11]=Ar,b[12]=Tr,b[13]=Sr,b[14]=rr,b[15]=Nt,b[16]=Gt,b[17]=xr,b[18]=pr,d!==0&&(b[19]=d,m.length++),m};Math.imul||(N=F);function ee(y,S,c){c.negative=S.negative^y.negative,c.length=y.length+S.length;for(var m=0,x=0,T=0;T<c.length-1;T++){var b=x;x=0;for(var d=m&67108863,k=Math.min(T,S.length-1),D=Math.max(0,T-y.length+1);D<=k;D++){var O=T-D,Q=y.words[O]|0,J=S.words[D]|0,X=Q*J,U=X&67108863;b=b+(X/67108864|0)|0,U=U+d|0,d=U&67108863,b=b+(U>>>26)|0,x+=b>>>26,b&=67108863}c.words[T]=d,m=b,b=x}return m!==0?c.words[T]=m:c.length--,c._strip()}function Z(y,S,c){return ee(y,S,c)}u.prototype.mulTo=function(S,c){var m,x=this.length+S.length;return this.length===10&&S.length===10?m=N(this,S,c):x<63?m=F(this,S,c):x<1024?m=ee(this,S,c):m=Z(this,S,c),m},u.prototype.mul=function(S){var c=new u(null);return c.words=new Array(this.length+S.length),this.mulTo(S,c)},u.prototype.mulf=function(S){var c=new u(null);return c.words=new Array(this.length+S.length),Z(this,S,c)},u.prototype.imul=function(S){return this.clone().mulTo(S,this)},u.prototype.imuln=function(S){var c=S<0;c&&(S=-S),l(typeof S=="number"),l(S<67108864);for(var m=0,x=0;x<this.length;x++){var T=(this.words[x]|0)*S,b=(T&67108863)+(m&67108863);m>>=26,m+=T/67108864|0,m+=b>>>26,this.words[x]=b&67108863}return m!==0&&(this.words[x]=m,this.length++),c?this.ineg():this},u.prototype.muln=function(S){return this.clone().imuln(S)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(S){var c=B(S);if(c.length===0)return new u(1);for(var m=this,x=0;x<c.length&&c[x]===0;x++,m=m.sqr());if(++x<c.length)for(var T=m.sqr();x<c.length;x++,T=T.sqr())c[x]!==0&&(m=m.mul(T));return m},u.prototype.iushln=function(S){l(typeof S=="number"&&S>=0);var c=S%26,m=(S-c)/26,x=67108863>>>26-c<<26-c,T;if(c!==0){var b=0;for(T=0;T<this.length;T++){var d=this.words[T]&x,k=(this.words[T]|0)-d<<c;this.words[T]=k|b,b=d>>>26-c}b&&(this.words[T]=b,this.length++)}if(m!==0){for(T=this.length-1;T>=0;T--)this.words[T+m]=this.words[T];for(T=0;T<m;T++)this.words[T]=0;this.length+=m}return this._strip()},u.prototype.ishln=function(S){return l(this.negative===0),this.iushln(S)},u.prototype.iushrn=function(S,c,m){l(typeof S=="number"&&S>=0);var x;c?x=(c-c%26)/26:x=0;var T=S%26,b=Math.min((S-T)/26,this.length),d=67108863^67108863>>>T<<T,k=m;if(x-=b,x=Math.max(0,x),k){for(var D=0;D<b;D++)k.words[D]=this.words[D];k.length=b}if(b!==0)if(this.length>b)for(this.length-=b,D=0;D<this.length;D++)this.words[D]=this.words[D+b];else this.words[0]=0,this.length=1;var O=0;for(D=this.length-1;D>=0&&(O!==0||D>=x);D--){var Q=this.words[D]|0;this.words[D]=O<<26-T|Q>>>T,O=Q&d}return k&&O!==0&&(k.words[k.length++]=O),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},u.prototype.ishrn=function(S,c,m){return l(this.negative===0),this.iushrn(S,c,m)},u.prototype.shln=function(S){return this.clone().ishln(S)},u.prototype.ushln=function(S){return this.clone().iushln(S)},u.prototype.shrn=function(S){return this.clone().ishrn(S)},u.prototype.ushrn=function(S){return this.clone().iushrn(S)},u.prototype.testn=function(S){l(typeof S=="number"&&S>=0);var c=S%26,m=(S-c)/26,x=1<<c;if(this.length<=m)return!1;var T=this.words[m];return!!(T&x)},u.prototype.imaskn=function(S){l(typeof S=="number"&&S>=0);var c=S%26,m=(S-c)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(c!==0&&m++,this.length=Math.min(m,this.length),c!==0){var x=67108863^67108863>>>c<<c;this.words[this.length-1]&=x}return this._strip()},u.prototype.maskn=function(S){return this.clone().imaskn(S)},u.prototype.iaddn=function(S){return l(typeof S=="number"),l(S<67108864),S<0?this.isubn(-S):this.negative!==0?this.length===1&&(this.words[0]|0)<=S?(this.words[0]=S-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(S),this.negative=1,this):this._iaddn(S)},u.prototype._iaddn=function(S){this.words[0]+=S;for(var c=0;c<this.length&&this.words[c]>=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},u.prototype.isubn=function(S){if(l(typeof S=="number"),l(S<67108864),S<0)return this.iaddn(-S);if(this.negative!==0)return this.negative=0,this.iaddn(S),this.negative=1,this;if(this.words[0]-=S,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c<this.length&&this.words[c]<0;c++)this.words[c]+=67108864,this.words[c+1]-=1;return this._strip()},u.prototype.addn=function(S){return this.clone().iaddn(S)},u.prototype.subn=function(S){return this.clone().isubn(S)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(S,c,m){var x=S.length+m,T;this._expand(x);var b,d=0;for(T=0;T<S.length;T++){b=(this.words[T+m]|0)+d;var k=(S.words[T]|0)*c;b-=k&67108863,d=(b>>26)-(k/67108864|0),this.words[T+m]=b&67108863}for(;T<this.length-m;T++)b=(this.words[T+m]|0)+d,d=b>>26,this.words[T+m]=b&67108863;if(d===0)return this._strip();for(l(d===-1),d=0,T=0;T<this.length;T++)b=-(this.words[T]|0)+d,d=b>>26,this.words[T]=b&67108863;return this.negative=1,this._strip()},u.prototype._wordDiv=function(S,c){var m=this.length-S.length,x=this.clone(),T=S,b=T.words[T.length-1]|0,d=this._countBits(b);m=26-d,m!==0&&(T=T.ushln(m),x.iushln(m),b=T.words[T.length-1]|0);var k=x.length-T.length,D;if(c!=="mod"){D=new u(null),D.length=k+1,D.words=new Array(D.length);for(var O=0;O<D.length;O++)D.words[O]=0}var Q=x.clone()._ishlnsubmul(T,1,k);Q.negative===0&&(x=Q,D&&(D.words[k]=1));for(var J=k-1;J>=0;J--){var X=(x.words[T.length+J]|0)*67108864+(x.words[T.length+J-1]|0);for(X=Math.min(X/b|0,67108863),x._ishlnsubmul(T,X,J);x.negative!==0;)X--,x.negative=0,x._ishlnsubmul(T,1,J),x.isZero()||(x.negative^=1);D&&(D.words[J]=X)}return D&&D._strip(),x._strip(),c!=="div"&&m!==0&&x.iushrn(m),{div:D||null,mod:x}},u.prototype.divmod=function(S,c,m){if(l(!S.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var x,T,b;return this.negative!==0&&S.negative===0?(b=this.neg().divmod(S,c),c!=="mod"&&(x=b.div.neg()),c!=="div"&&(T=b.mod.neg(),m&&T.negative!==0&&T.iadd(S)),{div:x,mod:T}):this.negative===0&&S.negative!==0?(b=this.divmod(S.neg(),c),c!=="mod"&&(x=b.div.neg()),{div:x,mod:b.mod}):this.negative&S.negative?(b=this.neg().divmod(S.neg(),c),c!=="div"&&(T=b.mod.neg(),m&&T.negative!==0&&T.isub(S)),{div:b.div,mod:T}):S.length>this.length||this.cmp(S)<0?{div:new u(0),mod:this}:S.length===1?c==="div"?{div:this.divn(S.words[0]),mod:null}:c==="mod"?{div:null,mod:new u(this.modrn(S.words[0]))}:{div:this.divn(S.words[0]),mod:new u(this.modrn(S.words[0]))}:this._wordDiv(S,c)},u.prototype.div=function(S){return this.divmod(S,"div",!1).div},u.prototype.mod=function(S){return this.divmod(S,"mod",!1).mod},u.prototype.umod=function(S){return this.divmod(S,"mod",!0).mod},u.prototype.divRound=function(S){var c=this.divmod(S);if(c.mod.isZero())return c.div;var m=c.div.negative!==0?c.mod.isub(S):c.mod,x=S.ushrn(1),T=S.andln(1),b=m.cmp(x);return b<0||T===1&&b===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},u.prototype.modrn=function(S){var c=S<0;c&&(S=-S),l(S<=67108863);for(var m=(1<<26)%S,x=0,T=this.length-1;T>=0;T--)x=(m*x+(this.words[T]|0))%S;return c?-x:x},u.prototype.modn=function(S){return this.modrn(S)},u.prototype.idivn=function(S){var c=S<0;c&&(S=-S),l(S<=67108863);for(var m=0,x=this.length-1;x>=0;x--){var T=(this.words[x]|0)+m*67108864;this.words[x]=T/S|0,m=T%S}return this._strip(),c?this.ineg():this},u.prototype.divn=function(S){return this.clone().idivn(S)},u.prototype.egcd=function(S){l(S.negative===0),l(!S.isZero());var c=this,m=S.clone();c.negative!==0?c=c.umod(S):c=c.clone();for(var x=new u(1),T=new u(0),b=new u(0),d=new u(1),k=0;c.isEven()&&m.isEven();)c.iushrn(1),m.iushrn(1),++k;for(var D=m.clone(),O=c.clone();!c.isZero();){for(var Q=0,J=1;!(c.words[0]&J)&&Q<26;++Q,J<<=1);if(Q>0)for(c.iushrn(Q);Q-- >0;)(x.isOdd()||T.isOdd())&&(x.iadd(D),T.isub(O)),x.iushrn(1),T.iushrn(1);for(var X=0,U=1;!(m.words[0]&U)&&X<26;++X,U<<=1);if(X>0)for(m.iushrn(X);X-- >0;)(b.isOdd()||d.isOdd())&&(b.iadd(D),d.isub(O)),b.iushrn(1),d.iushrn(1);c.cmp(m)>=0?(c.isub(m),x.isub(b),T.isub(d)):(m.isub(c),b.isub(x),d.isub(T))}return{a:b,b:d,gcd:m.iushln(k)}},u.prototype._invmp=function(S){l(S.negative===0),l(!S.isZero());var c=this,m=S.clone();c.negative!==0?c=c.umod(S):c=c.clone();for(var x=new u(1),T=new u(0),b=m.clone();c.cmpn(1)>0&&m.cmpn(1)>0;){for(var d=0,k=1;!(c.words[0]&k)&&d<26;++d,k<<=1);if(d>0)for(c.iushrn(d);d-- >0;)x.isOdd()&&x.iadd(b),x.iushrn(1);for(var D=0,O=1;!(m.words[0]&O)&&D<26;++D,O<<=1);if(D>0)for(m.iushrn(D);D-- >0;)T.isOdd()&&T.iadd(b),T.iushrn(1);c.cmp(m)>=0?(c.isub(m),x.isub(T)):(m.isub(c),T.isub(x))}var Q;return c.cmpn(1)===0?Q=x:Q=T,Q.cmpn(0)<0&&Q.iadd(S),Q},u.prototype.gcd=function(S){if(this.isZero())return S.abs();if(S.isZero())return this.abs();var c=this.clone(),m=S.clone();c.negative=0,m.negative=0;for(var x=0;c.isEven()&&m.isEven();x++)c.iushrn(1),m.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;m.isEven();)m.iushrn(1);var T=c.cmp(m);if(T<0){var b=c;c=m,m=b}else if(T===0||m.cmpn(1)===0)break;c.isub(m)}while(!0);return m.iushln(x)},u.prototype.invm=function(S){return this.egcd(S).a.umod(S)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(S){return this.words[0]&S},u.prototype.bincn=function(S){l(typeof S=="number");var c=S%26,m=(S-c)/26,x=1<<c;if(this.length<=m)return this._expand(m+1),this.words[m]|=x,this;for(var T=x,b=m;T!==0&&b<this.length;b++){var d=this.words[b]|0;d+=T,T=d>>>26,d&=67108863,this.words[b]=d}return T!==0&&(this.words[b]=T,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(S){var c=S<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var m;if(this.length>1)m=1;else{c&&(S=-S),l(S<=67108863,"Number is too big");var x=this.words[0]|0;m=x===S?0:x<S?-1:1}return this.negative!==0?-m|0:m},u.prototype.cmp=function(S){if(this.negative!==0&&S.negative===0)return-1;if(this.negative===0&&S.negative!==0)return 1;var c=this.ucmp(S);return this.negative!==0?-c|0:c},u.prototype.ucmp=function(S){if(this.length>S.length)return 1;if(this.length<S.length)return-1;for(var c=0,m=this.length-1;m>=0;m--){var x=this.words[m]|0,T=S.words[m]|0;if(x!==T){x<T?c=-1:x>T&&(c=1);break}}return c},u.prototype.gtn=function(S){return this.cmpn(S)===1},u.prototype.gt=function(S){return this.cmp(S)===1},u.prototype.gten=function(S){return this.cmpn(S)>=0},u.prototype.gte=function(S){return this.cmp(S)>=0},u.prototype.ltn=function(S){return this.cmpn(S)===-1},u.prototype.lt=function(S){return this.cmp(S)===-1},u.prototype.lten=function(S){return this.cmpn(S)<=0},u.prototype.lte=function(S){return this.cmp(S)<=0},u.prototype.eqn=function(S){return this.cmpn(S)===0},u.prototype.eq=function(S){return this.cmp(S)===0},u.red=function(S){return new L(S)},u.prototype.toRed=function(S){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),S.convertTo(this)._forceRed(S)},u.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(S){return this.red=S,this},u.prototype.forceRed=function(S){return l(!this.red,"Already a number in reduction context"),this._forceRed(S)},u.prototype.redAdd=function(S){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,S)},u.prototype.redIAdd=function(S){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,S)},u.prototype.redSub=function(S){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,S)},u.prototype.redISub=function(S){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,S)},u.prototype.redShl=function(S){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,S)},u.prototype.redMul=function(S){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.mul(this,S)},u.prototype.redIMul=function(S){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.imul(this,S)},u.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(S){return l(this.red&&!S.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,S)};var re={k256:null,p224:null,p192:null,p25519:null};function fe(y,S){this.name=y,this.p=new u(S,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}fe.prototype._tmp=function(){var S=new u(null);return S.words=new Array(Math.ceil(this.n/13)),S},fe.prototype.ireduce=function(S){var c=S,m;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),m=c.bitLength();while(m>this.n);var x=m<this.n?-1:c.ucmp(this.p);return x===0?(c.words[0]=0,c.length=1):x>0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},fe.prototype.split=function(S,c){S.iushrn(this.n,0,c)},fe.prototype.imulK=function(S){return S.imul(this.k)};function V(){fe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}t(V,fe),V.prototype.split=function(S,c){for(var m=4194303,x=Math.min(S.length,9),T=0;T<x;T++)c.words[T]=S.words[T];if(c.length=x,S.length<=9){S.words[0]=0,S.length=1;return}var b=S.words[9];for(c.words[c.length++]=b&m,T=10;T<S.length;T++){var d=S.words[T]|0;S.words[T-10]=(d&m)<<4|b>>>22,b=d}b>>>=22,S.words[T-10]=b,b===0&&S.length>10?S.length-=10:S.length-=9},V.prototype.imulK=function(S){S.words[S.length]=0,S.words[S.length+1]=0,S.length+=2;for(var c=0,m=0;m<S.length;m++){var x=S.words[m]|0;c+=x*977,S.words[m]=c&67108863,c=x*64+(c/67108864|0)}return S.words[S.length-1]===0&&(S.length--,S.words[S.length-1]===0&&S.length--),S};function le(){fe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}t(le,fe);function he(){fe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}t(he,fe);function ye(){fe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}t(ye,fe),ye.prototype.imulK=function(S){for(var c=0,m=0;m<S.length;m++){var x=(S.words[m]|0)*19+c,T=x&67108863;x>>>=26,S.words[m]=T,c=x}return c!==0&&(S.words[S.length++]=c),S},u._prime=function(S){if(re[S])return re[S];var c;if(S==="k256")c=new V;else if(S==="p224")c=new le;else if(S==="p192")c=new he;else if(S==="p25519")c=new ye;else throw new Error("Unknown prime "+S);return re[S]=c,c};function L(y){if(typeof y=="string"){var S=u._prime(y);this.m=S.p,this.prime=S}else l(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}L.prototype._verify1=function(S){l(S.negative===0,"red works only with positives"),l(S.red,"red works only with red numbers")},L.prototype._verify2=function(S,c){l((S.negative|c.negative)===0,"red works only with positives"),l(S.red&&S.red===c.red,"red works only with red numbers")},L.prototype.imod=function(S){return this.prime?this.prime.ireduce(S)._forceRed(this):(E(S,S.umod(this.m)._forceRed(this)),S)},L.prototype.neg=function(S){return S.isZero()?S.clone():this.m.sub(S)._forceRed(this)},L.prototype.add=function(S,c){this._verify2(S,c);var m=S.add(c);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},L.prototype.iadd=function(S,c){this._verify2(S,c);var m=S.iadd(c);return m.cmp(this.m)>=0&&m.isub(this.m),m},L.prototype.sub=function(S,c){this._verify2(S,c);var m=S.sub(c);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},L.prototype.isub=function(S,c){this._verify2(S,c);var m=S.isub(c);return m.cmpn(0)<0&&m.iadd(this.m),m},L.prototype.shl=function(S,c){return this._verify1(S),this.imod(S.ushln(c))},L.prototype.imul=function(S,c){return this._verify2(S,c),this.imod(S.imul(c))},L.prototype.mul=function(S,c){return this._verify2(S,c),this.imod(S.mul(c))},L.prototype.isqr=function(S){return this.imul(S,S.clone())},L.prototype.sqr=function(S){return this.mul(S,S)},L.prototype.sqrt=function(S){if(S.isZero())return S.clone();var c=this.m.andln(3);if(l(c%2===1),c===3){var m=this.m.add(new u(1)).iushrn(2);return this.pow(S,m)}for(var x=this.m.subn(1),T=0;!x.isZero()&&x.andln(1)===0;)T++,x.iushrn(1);l(!x.isZero());var b=new u(1).toRed(this),d=b.redNeg(),k=this.m.subn(1).iushrn(1),D=this.m.bitLength();for(D=new u(2*D*D).toRed(this);this.pow(D,k).cmp(d)!==0;)D.redIAdd(d);for(var O=this.pow(D,x),Q=this.pow(S,x.addn(1).iushrn(1)),J=this.pow(S,x),X=T;J.cmp(b)!==0;){for(var U=J,z=0;U.cmp(b)!==0;z++)U=U.redSqr();l(z<X);var ie=this.pow(O,new u(1).iushln(X-z-1));Q=Q.redMul(ie),O=ie.redSqr(),J=J.redMul(O),X=z}return Q},L.prototype.invm=function(S){var c=S._invmp(this.m);return c.negative!==0?(c.negative=0,this.imod(c).redNeg()):this.imod(c)},L.prototype.pow=function(S,c){if(c.isZero())return new u(1).toRed(this);if(c.cmpn(1)===0)return S.clone();var m=4,x=new Array(1<<m);x[0]=new u(1).toRed(this),x[1]=S;for(var T=2;T<x.length;T++)x[T]=this.mul(x[T-1],S);var b=x[0],d=0,k=0,D=c.bitLength()%26;for(D===0&&(D=26),T=c.length-1;T>=0;T--){for(var O=c.words[T],Q=D-1;Q>=0;Q--){var J=O>>Q&1;if(b!==x[0]&&(b=this.sqr(b)),J===0&&d===0){k=0;continue}d<<=1,d|=J,k++,!(k!==m&&(T!==0||Q!==0))&&(b=this.mul(b,x[d]),k=0,d=0)}D=26}return b},L.prototype.convertTo=function(S){var c=S.umod(this.m);return c===S?c.clone():c},L.prototype.convertFrom=function(S){var c=S.clone();return c.red=null,c},u.mont=function(S){return new p(S)};function p(y){L.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}t(p,L),p.prototype.convertTo=function(S){return this.imod(S.ushln(this.shift))},p.prototype.convertFrom=function(S){var c=this.imod(S.mul(this.rinv));return c.red=null,c},p.prototype.imul=function(S,c){if(S.isZero()||c.isZero())return S.words[0]=0,S.length=1,S;var m=S.imul(c),x=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=m.isub(x).iushrn(this.shift),b=T;return T.cmp(this.m)>=0?b=T.isub(this.m):T.cmpn(0)<0&&(b=T.iadd(this.m)),b._forceRed(this)},p.prototype.mul=function(S,c){if(S.isZero()||c.isZero())return new u(0)._forceRed(this);var m=S.mul(c),x=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=m.isub(x).iushrn(this.shift),b=T;return T.cmp(this.m)>=0?b=T.isub(this.m):T.cmpn(0)<0&&(b=T.iadd(this.m)),b._forceRed(this)},p.prototype.invm=function(S){var c=this.imod(S._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(n,commonjsGlobal$1)}(bn$4);var bnExports$4=bn$4.exports,BN$a=bnExports$4,randomBytes$1=browserExports;function blind(n){var e=getr(n),o=e.toRed(BN$a.mont(n.modulus)).redPow(new BN$a(n.publicExponent)).fromRed();return{blinder:o,unblinder:e.invm(n.modulus)}}function getr(n){var e=n.modulus.byteLength(),o;do o=new BN$a(randomBytes$1(e));while(o.cmp(n.modulus)>=0||!o.umod(n.prime1)||!o.umod(n.prime2));return o}function crt$2(n,e){var o=blind(e),l=e.modulus.byteLength(),t=new BN$a(n).mul(o.blinder).umod(e.modulus),u=t.toRed(BN$a.mont(e.prime1)),h=t.toRed(BN$a.mont(e.prime2)),v=e.coefficient,w=e.prime1,A=e.prime2,E=u.redPow(e.exponent1).fromRed(),C=h.redPow(e.exponent2).fromRed(),M=E.isub(C).imul(v).umod(w).imul(A);return C.iadd(M).imul(o.unblinder).umod(e.modulus).toArrayLike(Buffer$C,"be",l)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic={};const name="elliptic",version$1="6.5.7",description$1="EC cryptography",main$1="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny <fedor@indutny.com>",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies$1={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0$1={name,version:version$1,description:description$1,main:main$1,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies:dependencies$1};var utils$o={},bn$3={exports:{}};bn$3.exports,function(n){(function(e,o){function l(L,p){if(!L)throw new Error(p||"Assertion failed")}function t(L,p){L.super_=p;var y=function(){};y.prototype=p.prototype,L.prototype=new y,L.prototype.constructor=L}function u(L,p,y){if(u.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,L!==null&&((p==="le"||p==="be")&&(y=p,p=10),this._init(L||0,p||10,y||"be"))}typeof e=="object"?e.exports=u:o.BN=u,u.BN=u,u.wordSize=26;var h;try{typeof window<"u"&&typeof window.Buffer<"u"?h=window.Buffer:h=require$$0$2.Buffer}catch{}u.isBN=function(p){return p instanceof u?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===u.wordSize&&Array.isArray(p.words)},u.max=function(p,y){return p.cmp(y)>0?p:y},u.min=function(p,y){return p.cmp(y)<0?p:y},u.prototype._init=function(p,y,S){if(typeof p=="number")return this._initNumber(p,y,S);if(typeof p=="object")return this._initArray(p,y,S);y==="hex"&&(y=16),l(y===(y|0)&&y>=2&&y<=36),p=p.toString().replace(/\s+/g,"");var c=0;p[0]==="-"&&(c++,this.negative=1),c<p.length&&(y===16?this._parseHex(p,c,S):(this._parseBase(p,y,c),S==="le"&&this._initArray(this.toArray(),y,S)))},u.prototype._initNumber=function(p,y,S){p<0&&(this.negative=1,p=-p),p<67108864?(this.words=[p&67108863],this.length=1):p<4503599627370496?(this.words=[p&67108863,p/67108864&67108863],this.length=2):(l(p<9007199254740992),this.words=[p&67108863,p/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),y,S)},u.prototype._initArray=function(p,y,S){if(l(typeof p.length=="number"),p.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(p.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m,x,T=0;if(S==="be")for(c=p.length-1,m=0;c>=0;c-=3)x=p[c]|p[c-1]<<8|p[c-2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);else if(S==="le")for(c=0,m=0;c<p.length;c+=3)x=p[c]|p[c+1]<<8|p[c+2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);return this.strip()};function v(L,p){var y=L.charCodeAt(p);return y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:y-48&15}function w(L,p,y){var S=v(L,y);return y-1>=p&&(S|=v(L,y-1)<<4),S}u.prototype._parseHex=function(p,y,S){this.length=Math.ceil((p.length-y)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m=0,x=0,T;if(S==="be")for(c=p.length-1;c>=y;c-=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8;else{var b=p.length-y;for(c=b%2===0?y+1:y;c<p.length;c+=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8}this.strip()};function A(L,p,y,S){for(var c=0,m=Math.min(L.length,y),x=p;x<m;x++){var T=L.charCodeAt(x)-48;c*=S,T>=49?c+=T-49+10:T>=17?c+=T-17+10:c+=T}return c}u.prototype._parseBase=function(p,y,S){this.words=[0],this.length=1;for(var c=0,m=1;m<=67108863;m*=y)c++;c--,m=m/y|0;for(var x=p.length-S,T=x%c,b=Math.min(x,x-T)+S,d=0,k=S;k<b;k+=c)d=A(p,k,k+c,y),this.imuln(m),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(T!==0){var D=1;for(d=A(p,k,p.length,y),k=0;k<T;k++)D*=y;this.imuln(D),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}this.strip()},u.prototype.copy=function(p){p.words=new Array(this.length);for(var y=0;y<this.length;y++)p.words[y]=this.words[y];p.length=this.length,p.negative=this.negative,p.red=this.red},u.prototype.clone=function(){var p=new u(null);return this.copy(p),p},u.prototype._expand=function(p){for(;this.length<p;)this.words[this.length++]=0;return this},u.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},u.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(p,y){p=p||10,y=y|0||1;var S;if(p===16||p==="hex"){S="";for(var c=0,m=0,x=0;x<this.length;x++){var T=this.words[x],b=((T<<c|m)&16777215).toString(16);m=T>>>24-c&16777215,m!==0||x!==this.length-1?S=E[6-b.length]+b+S:S=b+S,c+=2,c>=26&&(c-=26,x--)}for(m!==0&&(S=m.toString(16)+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(p===(p|0)&&p>=2&&p<=36){var d=C[p],k=M[p];S="";var D=this.clone();for(D.negative=0;!D.isZero();){var O=D.modn(k).toString(p);D=D.idivn(k),D.isZero()?S=O+S:S=E[d-O.length]+O+S}for(this.isZero()&&(S="0"+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}l(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},u.prototype.toJSON=function(){return this.toString(16)},u.prototype.toBuffer=function(p,y){return l(typeof h<"u"),this.toArrayLike(h,p,y)},u.prototype.toArray=function(p,y){return this.toArrayLike(Array,p,y)},u.prototype.toArrayLike=function(p,y,S){var c=this.byteLength(),m=S||Math.max(1,c);l(c<=m,"byte array longer than desired length"),l(m>0,"Requested array length <= 0"),this.strip();var x=y==="le",T=new p(m),b,d,k=this.clone();if(x){for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[d]=b;for(;d<m;d++)T[d]=0}else{for(d=0;d<m-c;d++)T[d]=0;for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[m-d-1]=b}return T},Math.clz32?u.prototype._countBits=function(p){return 32-Math.clz32(p)}:u.prototype._countBits=function(p){var y=p,S=0;return y>=4096&&(S+=13,y>>>=13),y>=64&&(S+=7,y>>>=7),y>=8&&(S+=4,y>>>=4),y>=2&&(S+=2,y>>>=2),S+y},u.prototype._zeroBits=function(p){if(p===0)return 26;var y=p,S=0;return y&8191||(S+=13,y>>>=13),y&127||(S+=7,y>>>=7),y&15||(S+=4,y>>>=4),y&3||(S+=2,y>>>=2),y&1||S++,S},u.prototype.bitLength=function(){var p=this.words[this.length-1],y=this._countBits(p);return(this.length-1)*26+y};function P(L){for(var p=new Array(L.bitLength()),y=0;y<p.length;y++){var S=y/26|0,c=y%26;p[y]=(L.words[S]&1<<c)>>>c}return p}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,y=0;y<this.length;y++){var S=this._zeroBits(this.words[y]);if(p+=S,S!==26)break}return p},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(p){return this.negative!==0?this.abs().inotn(p).iaddn(1):this.clone()},u.prototype.fromTwos=function(p){return this.testn(p-1)?this.notn(p).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(p){for(;this.length<p.length;)this.words[this.length++]=0;for(var y=0;y<p.length;y++)this.words[y]=this.words[y]|p.words[y];return this.strip()},u.prototype.ior=function(p){return l((this.negative|p.negative)===0),this.iuor(p)},u.prototype.or=function(p){return this.length>p.length?this.clone().ior(p):p.clone().ior(this)},u.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},u.prototype.iuand=function(p){var y;this.length>p.length?y=p:y=this;for(var S=0;S<y.length;S++)this.words[S]=this.words[S]&p.words[S];return this.length=y.length,this.strip()},u.prototype.iand=function(p){return l((this.negative|p.negative)===0),this.iuand(p)},u.prototype.and=function(p){return this.length>p.length?this.clone().iand(p):p.clone().iand(this)},u.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},u.prototype.iuxor=function(p){var y,S;this.length>p.length?(y=this,S=p):(y=p,S=this);for(var c=0;c<S.length;c++)this.words[c]=y.words[c]^S.words[c];if(this!==y)for(;c<y.length;c++)this.words[c]=y.words[c];return this.length=y.length,this.strip()},u.prototype.ixor=function(p){return l((this.negative|p.negative)===0),this.iuxor(p)},u.prototype.xor=function(p){return this.length>p.length?this.clone().ixor(p):p.clone().ixor(this)},u.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},u.prototype.inotn=function(p){l(typeof p=="number"&&p>=0);var y=Math.ceil(p/26)|0,S=p%26;this._expand(y),S>0&&y--;for(var c=0;c<y;c++)this.words[c]=~this.words[c]&67108863;return S>0&&(this.words[c]=~this.words[c]&67108863>>26-S),this.strip()},u.prototype.notn=function(p){return this.clone().inotn(p)},u.prototype.setn=function(p,y){l(typeof p=="number"&&p>=0);var S=p/26|0,c=p%26;return this._expand(S+1),y?this.words[S]=this.words[S]|1<<c:this.words[S]=this.words[S]&~(1<<c),this.strip()},u.prototype.iadd=function(p){var y;if(this.negative!==0&&p.negative===0)return this.negative=0,y=this.isub(p),this.negative^=1,this._normSign();if(this.negative===0&&p.negative!==0)return p.negative=0,y=this.isub(p),p.negative=1,y._normSign();var S,c;this.length>p.length?(S=this,c=p):(S=p,c=this);for(var m=0,x=0;x<c.length;x++)y=(S.words[x]|0)+(c.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;for(;m!==0&&x<S.length;x++)y=(S.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;if(this.length=S.length,m!==0)this.words[this.length]=m,this.length++;else if(S!==this)for(;x<S.length;x++)this.words[x]=S.words[x];return this},u.prototype.add=function(p){var y;return p.negative!==0&&this.negative===0?(p.negative=0,y=this.sub(p),p.negative^=1,y):p.negative===0&&this.negative!==0?(this.negative=0,y=p.sub(this),this.negative=1,y):this.length>p.length?this.clone().iadd(p):p.clone().iadd(this)},u.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var y=this.iadd(p);return p.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var S=this.cmp(p);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,m;S>0?(c=this,m=p):(c=p,m=this);for(var x=0,T=0;T<m.length;T++)y=(c.words[T]|0)-(m.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;for(;x!==0&&T<c.length;T++)y=(c.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;if(x===0&&T<c.length&&c!==this)for(;T<c.length;T++)this.words[T]=c.words[T];return this.length=Math.max(this.length,T),c!==this&&(this.negative=1),this.strip()},u.prototype.sub=function(p){return this.clone().isub(p)};function I(L,p,y){y.negative=p.negative^L.negative;var S=L.length+p.length|0;y.length=S,S=S-1|0;var c=L.words[0]|0,m=p.words[0]|0,x=c*m,T=x&67108863,b=x/67108864|0;y.words[0]=T;for(var d=1;d<S;d++){for(var k=b>>>26,D=b&67108863,O=Math.min(d,p.length-1),Q=Math.max(0,d-L.length+1);Q<=O;Q++){var J=d-Q|0;c=L.words[J]|0,m=p.words[Q]|0,x=c*m+D,k+=x/67108864|0,D=x&67108863}y.words[d]=D|0,b=k|0}return b!==0?y.words[d]=b|0:y.length--,y.strip()}var j=function(p,y,S){var c=p.words,m=y.words,x=S.words,T=0,b,d,k,D=c[0]|0,O=D&8191,Q=D>>>13,J=c[1]|0,X=J&8191,U=J>>>13,z=c[2]|0,ie=z&8191,de=z>>>13,me=c[3]|0,pe=me&8191,qe=me>>>13,mt=c[4]|0,st=mt&8191,dt=mt>>>13,Tt=c[5]|0,lt=Tt&8191,Je=Tt>>>13,ht=c[6]|0,at=ht&8191,bt=ht>>>13,jt=c[7]|0,Ge=jt&8191,Qe=jt>>>13,Wt=c[8]|0,Et=Wt&8191,Ct=Wt>>>13,Kt=c[9]|0,Me=Kt&8191,te=Kt>>>13,_e=m[0]|0,je=_e&8191,We=_e>>>13,et=m[1]|0,Ye=et&8191,De=et>>>13,Ht=m[2]|0,Mt=Ht&8191,ge=Ht>>>13,Dt=m[3]|0,yt=Dt&8191,Ne=Dt>>>13,_t=m[4]|0,pt=_t&8191,Bt=_t>>>13,ur=m[5]|0,kt=ur&8191,Ut=ur>>>13,Wr=m[6]|0,zt=Wr&8191,Qt=Wr>>>13,$e=m[7]|0,be=$e&8191,ve=$e>>>13,se=m[8]|0,Pe=se&8191,ze=se>>>13,xt=m[9]|0,ot=xt&8191,wt=xt>>>13;S.negative=p.negative^y.negative,S.length=19,b=Math.imul(O,je),d=Math.imul(O,We),d=d+Math.imul(Q,je)|0,k=Math.imul(Q,We);var Yt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,b=Math.imul(X,je),d=Math.imul(X,We),d=d+Math.imul(U,je)|0,k=Math.imul(U,We),b=b+Math.imul(O,Ye)|0,d=d+Math.imul(O,De)|0,d=d+Math.imul(Q,Ye)|0,k=k+Math.imul(Q,De)|0;var Jt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,b=Math.imul(ie,je),d=Math.imul(ie,We),d=d+Math.imul(de,je)|0,k=Math.imul(de,We),b=b+Math.imul(X,Ye)|0,d=d+Math.imul(X,De)|0,d=d+Math.imul(U,Ye)|0,k=k+Math.imul(U,De)|0,b=b+Math.imul(O,Mt)|0,d=d+Math.imul(O,ge)|0,d=d+Math.imul(Q,Mt)|0,k=k+Math.imul(Q,ge)|0;var wr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(wr>>>26)|0,wr&=67108863,b=Math.imul(pe,je),d=Math.imul(pe,We),d=d+Math.imul(qe,je)|0,k=Math.imul(qe,We),b=b+Math.imul(ie,Ye)|0,d=d+Math.imul(ie,De)|0,d=d+Math.imul(de,Ye)|0,k=k+Math.imul(de,De)|0,b=b+Math.imul(X,Mt)|0,d=d+Math.imul(X,ge)|0,d=d+Math.imul(U,Mt)|0,k=k+Math.imul(U,ge)|0,b=b+Math.imul(O,yt)|0,d=d+Math.imul(O,Ne)|0,d=d+Math.imul(Q,yt)|0,k=k+Math.imul(Q,Ne)|0;var lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(lr>>>26)|0,lr&=67108863,b=Math.imul(st,je),d=Math.imul(st,We),d=d+Math.imul(dt,je)|0,k=Math.imul(dt,We),b=b+Math.imul(pe,Ye)|0,d=d+Math.imul(pe,De)|0,d=d+Math.imul(qe,Ye)|0,k=k+Math.imul(qe,De)|0,b=b+Math.imul(ie,Mt)|0,d=d+Math.imul(ie,ge)|0,d=d+Math.imul(de,Mt)|0,k=k+Math.imul(de,ge)|0,b=b+Math.imul(X,yt)|0,d=d+Math.imul(X,Ne)|0,d=d+Math.imul(U,yt)|0,k=k+Math.imul(U,Ne)|0,b=b+Math.imul(O,pt)|0,d=d+Math.imul(O,Bt)|0,d=d+Math.imul(Q,pt)|0,k=k+Math.imul(Q,Bt)|0;var Rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,b=Math.imul(lt,je),d=Math.imul(lt,We),d=d+Math.imul(Je,je)|0,k=Math.imul(Je,We),b=b+Math.imul(st,Ye)|0,d=d+Math.imul(st,De)|0,d=d+Math.imul(dt,Ye)|0,k=k+Math.imul(dt,De)|0,b=b+Math.imul(pe,Mt)|0,d=d+Math.imul(pe,ge)|0,d=d+Math.imul(qe,Mt)|0,k=k+Math.imul(qe,ge)|0,b=b+Math.imul(ie,yt)|0,d=d+Math.imul(ie,Ne)|0,d=d+Math.imul(de,yt)|0,k=k+Math.imul(de,Ne)|0,b=b+Math.imul(X,pt)|0,d=d+Math.imul(X,Bt)|0,d=d+Math.imul(U,pt)|0,k=k+Math.imul(U,Bt)|0,b=b+Math.imul(O,kt)|0,d=d+Math.imul(O,Ut)|0,d=d+Math.imul(Q,kt)|0,k=k+Math.imul(Q,Ut)|0;var vr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(vr>>>26)|0,vr&=67108863,b=Math.imul(at,je),d=Math.imul(at,We),d=d+Math.imul(bt,je)|0,k=Math.imul(bt,We),b=b+Math.imul(lt,Ye)|0,d=d+Math.imul(lt,De)|0,d=d+Math.imul(Je,Ye)|0,k=k+Math.imul(Je,De)|0,b=b+Math.imul(st,Mt)|0,d=d+Math.imul(st,ge)|0,d=d+Math.imul(dt,Mt)|0,k=k+Math.imul(dt,ge)|0,b=b+Math.imul(pe,yt)|0,d=d+Math.imul(pe,Ne)|0,d=d+Math.imul(qe,yt)|0,k=k+Math.imul(qe,Ne)|0,b=b+Math.imul(ie,pt)|0,d=d+Math.imul(ie,Bt)|0,d=d+Math.imul(de,pt)|0,k=k+Math.imul(de,Bt)|0,b=b+Math.imul(X,kt)|0,d=d+Math.imul(X,Ut)|0,d=d+Math.imul(U,kt)|0,k=k+Math.imul(U,Ut)|0,b=b+Math.imul(O,zt)|0,d=d+Math.imul(O,Qt)|0,d=d+Math.imul(Q,zt)|0,k=k+Math.imul(Q,Qt)|0;var dr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(dr>>>26)|0,dr&=67108863,b=Math.imul(Ge,je),d=Math.imul(Ge,We),d=d+Math.imul(Qe,je)|0,k=Math.imul(Qe,We),b=b+Math.imul(at,Ye)|0,d=d+Math.imul(at,De)|0,d=d+Math.imul(bt,Ye)|0,k=k+Math.imul(bt,De)|0,b=b+Math.imul(lt,Mt)|0,d=d+Math.imul(lt,ge)|0,d=d+Math.imul(Je,Mt)|0,k=k+Math.imul(Je,ge)|0,b=b+Math.imul(st,yt)|0,d=d+Math.imul(st,Ne)|0,d=d+Math.imul(dt,yt)|0,k=k+Math.imul(dt,Ne)|0,b=b+Math.imul(pe,pt)|0,d=d+Math.imul(pe,Bt)|0,d=d+Math.imul(qe,pt)|0,k=k+Math.imul(qe,Bt)|0,b=b+Math.imul(ie,kt)|0,d=d+Math.imul(ie,Ut)|0,d=d+Math.imul(de,kt)|0,k=k+Math.imul(de,Ut)|0,b=b+Math.imul(X,zt)|0,d=d+Math.imul(X,Qt)|0,d=d+Math.imul(U,zt)|0,k=k+Math.imul(U,Qt)|0,b=b+Math.imul(O,be)|0,d=d+Math.imul(O,ve)|0,d=d+Math.imul(Q,be)|0,k=k+Math.imul(Q,ve)|0;var Ir=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,b=Math.imul(Et,je),d=Math.imul(Et,We),d=d+Math.imul(Ct,je)|0,k=Math.imul(Ct,We),b=b+Math.imul(Ge,Ye)|0,d=d+Math.imul(Ge,De)|0,d=d+Math.imul(Qe,Ye)|0,k=k+Math.imul(Qe,De)|0,b=b+Math.imul(at,Mt)|0,d=d+Math.imul(at,ge)|0,d=d+Math.imul(bt,Mt)|0,k=k+Math.imul(bt,ge)|0,b=b+Math.imul(lt,yt)|0,d=d+Math.imul(lt,Ne)|0,d=d+Math.imul(Je,yt)|0,k=k+Math.imul(Je,Ne)|0,b=b+Math.imul(st,pt)|0,d=d+Math.imul(st,Bt)|0,d=d+Math.imul(dt,pt)|0,k=k+Math.imul(dt,Bt)|0,b=b+Math.imul(pe,kt)|0,d=d+Math.imul(pe,Ut)|0,d=d+Math.imul(qe,kt)|0,k=k+Math.imul(qe,Ut)|0,b=b+Math.imul(ie,zt)|0,d=d+Math.imul(ie,Qt)|0,d=d+Math.imul(de,zt)|0,k=k+Math.imul(de,Qt)|0,b=b+Math.imul(X,be)|0,d=d+Math.imul(X,ve)|0,d=d+Math.imul(U,be)|0,k=k+Math.imul(U,ve)|0,b=b+Math.imul(O,Pe)|0,d=d+Math.imul(O,ze)|0,d=d+Math.imul(Q,Pe)|0,k=k+Math.imul(Q,ze)|0;var kr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(kr>>>26)|0,kr&=67108863,b=Math.imul(Me,je),d=Math.imul(Me,We),d=d+Math.imul(te,je)|0,k=Math.imul(te,We),b=b+Math.imul(Et,Ye)|0,d=d+Math.imul(Et,De)|0,d=d+Math.imul(Ct,Ye)|0,k=k+Math.imul(Ct,De)|0,b=b+Math.imul(Ge,Mt)|0,d=d+Math.imul(Ge,ge)|0,d=d+Math.imul(Qe,Mt)|0,k=k+Math.imul(Qe,ge)|0,b=b+Math.imul(at,yt)|0,d=d+Math.imul(at,Ne)|0,d=d+Math.imul(bt,yt)|0,k=k+Math.imul(bt,Ne)|0,b=b+Math.imul(lt,pt)|0,d=d+Math.imul(lt,Bt)|0,d=d+Math.imul(Je,pt)|0,k=k+Math.imul(Je,Bt)|0,b=b+Math.imul(st,kt)|0,d=d+Math.imul(st,Ut)|0,d=d+Math.imul(dt,kt)|0,k=k+Math.imul(dt,Ut)|0,b=b+Math.imul(pe,zt)|0,d=d+Math.imul(pe,Qt)|0,d=d+Math.imul(qe,zt)|0,k=k+Math.imul(qe,Qt)|0,b=b+Math.imul(ie,be)|0,d=d+Math.imul(ie,ve)|0,d=d+Math.imul(de,be)|0,k=k+Math.imul(de,ve)|0,b=b+Math.imul(X,Pe)|0,d=d+Math.imul(X,ze)|0,d=d+Math.imul(U,Pe)|0,k=k+Math.imul(U,ze)|0,b=b+Math.imul(O,ot)|0,d=d+Math.imul(O,wt)|0,d=d+Math.imul(Q,ot)|0,k=k+Math.imul(Q,wt)|0;var Fr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,b=Math.imul(Me,Ye),d=Math.imul(Me,De),d=d+Math.imul(te,Ye)|0,k=Math.imul(te,De),b=b+Math.imul(Et,Mt)|0,d=d+Math.imul(Et,ge)|0,d=d+Math.imul(Ct,Mt)|0,k=k+Math.imul(Ct,ge)|0,b=b+Math.imul(Ge,yt)|0,d=d+Math.imul(Ge,Ne)|0,d=d+Math.imul(Qe,yt)|0,k=k+Math.imul(Qe,Ne)|0,b=b+Math.imul(at,pt)|0,d=d+Math.imul(at,Bt)|0,d=d+Math.imul(bt,pt)|0,k=k+Math.imul(bt,Bt)|0,b=b+Math.imul(lt,kt)|0,d=d+Math.imul(lt,Ut)|0,d=d+Math.imul(Je,kt)|0,k=k+Math.imul(Je,Ut)|0,b=b+Math.imul(st,zt)|0,d=d+Math.imul(st,Qt)|0,d=d+Math.imul(dt,zt)|0,k=k+Math.imul(dt,Qt)|0,b=b+Math.imul(pe,be)|0,d=d+Math.imul(pe,ve)|0,d=d+Math.imul(qe,be)|0,k=k+Math.imul(qe,ve)|0,b=b+Math.imul(ie,Pe)|0,d=d+Math.imul(ie,ze)|0,d=d+Math.imul(de,Pe)|0,k=k+Math.imul(de,ze)|0,b=b+Math.imul(X,ot)|0,d=d+Math.imul(X,wt)|0,d=d+Math.imul(U,ot)|0,k=k+Math.imul(U,wt)|0;var jr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(jr>>>26)|0,jr&=67108863,b=Math.imul(Me,Mt),d=Math.imul(Me,ge),d=d+Math.imul(te,Mt)|0,k=Math.imul(te,ge),b=b+Math.imul(Et,yt)|0,d=d+Math.imul(Et,Ne)|0,d=d+Math.imul(Ct,yt)|0,k=k+Math.imul(Ct,Ne)|0,b=b+Math.imul(Ge,pt)|0,d=d+Math.imul(Ge,Bt)|0,d=d+Math.imul(Qe,pt)|0,k=k+Math.imul(Qe,Bt)|0,b=b+Math.imul(at,kt)|0,d=d+Math.imul(at,Ut)|0,d=d+Math.imul(bt,kt)|0,k=k+Math.imul(bt,Ut)|0,b=b+Math.imul(lt,zt)|0,d=d+Math.imul(lt,Qt)|0,d=d+Math.imul(Je,zt)|0,k=k+Math.imul(Je,Qt)|0,b=b+Math.imul(st,be)|0,d=d+Math.imul(st,ve)|0,d=d+Math.imul(dt,be)|0,k=k+Math.imul(dt,ve)|0,b=b+Math.imul(pe,Pe)|0,d=d+Math.imul(pe,ze)|0,d=d+Math.imul(qe,Pe)|0,k=k+Math.imul(qe,ze)|0,b=b+Math.imul(ie,ot)|0,d=d+Math.imul(ie,wt)|0,d=d+Math.imul(de,ot)|0,k=k+Math.imul(de,wt)|0;var Cr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,b=Math.imul(Me,yt),d=Math.imul(Me,Ne),d=d+Math.imul(te,yt)|0,k=Math.imul(te,Ne),b=b+Math.imul(Et,pt)|0,d=d+Math.imul(Et,Bt)|0,d=d+Math.imul(Ct,pt)|0,k=k+Math.imul(Ct,Bt)|0,b=b+Math.imul(Ge,kt)|0,d=d+Math.imul(Ge,Ut)|0,d=d+Math.imul(Qe,kt)|0,k=k+Math.imul(Qe,Ut)|0,b=b+Math.imul(at,zt)|0,d=d+Math.imul(at,Qt)|0,d=d+Math.imul(bt,zt)|0,k=k+Math.imul(bt,Qt)|0,b=b+Math.imul(lt,be)|0,d=d+Math.imul(lt,ve)|0,d=d+Math.imul(Je,be)|0,k=k+Math.imul(Je,ve)|0,b=b+Math.imul(st,Pe)|0,d=d+Math.imul(st,ze)|0,d=d+Math.imul(dt,Pe)|0,k=k+Math.imul(dt,ze)|0,b=b+Math.imul(pe,ot)|0,d=d+Math.imul(pe,wt)|0,d=d+Math.imul(qe,ot)|0,k=k+Math.imul(qe,wt)|0;var Lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,b=Math.imul(Me,pt),d=Math.imul(Me,Bt),d=d+Math.imul(te,pt)|0,k=Math.imul(te,Bt),b=b+Math.imul(Et,kt)|0,d=d+Math.imul(Et,Ut)|0,d=d+Math.imul(Ct,kt)|0,k=k+Math.imul(Ct,Ut)|0,b=b+Math.imul(Ge,zt)|0,d=d+Math.imul(Ge,Qt)|0,d=d+Math.imul(Qe,zt)|0,k=k+Math.imul(Qe,Qt)|0,b=b+Math.imul(at,be)|0,d=d+Math.imul(at,ve)|0,d=d+Math.imul(bt,be)|0,k=k+Math.imul(bt,ve)|0,b=b+Math.imul(lt,Pe)|0,d=d+Math.imul(lt,ze)|0,d=d+Math.imul(Je,Pe)|0,k=k+Math.imul(Je,ze)|0,b=b+Math.imul(st,ot)|0,d=d+Math.imul(st,wt)|0,d=d+Math.imul(dt,ot)|0,k=k+Math.imul(dt,wt)|0;var Ar=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,b=Math.imul(Me,kt),d=Math.imul(Me,Ut),d=d+Math.imul(te,kt)|0,k=Math.imul(te,Ut),b=b+Math.imul(Et,zt)|0,d=d+Math.imul(Et,Qt)|0,d=d+Math.imul(Ct,zt)|0,k=k+Math.imul(Ct,Qt)|0,b=b+Math.imul(Ge,be)|0,d=d+Math.imul(Ge,ve)|0,d=d+Math.imul(Qe,be)|0,k=k+Math.imul(Qe,ve)|0,b=b+Math.imul(at,Pe)|0,d=d+Math.imul(at,ze)|0,d=d+Math.imul(bt,Pe)|0,k=k+Math.imul(bt,ze)|0,b=b+Math.imul(lt,ot)|0,d=d+Math.imul(lt,wt)|0,d=d+Math.imul(Je,ot)|0,k=k+Math.imul(Je,wt)|0;var Tr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(Me,zt),d=Math.imul(Me,Qt),d=d+Math.imul(te,zt)|0,k=Math.imul(te,Qt),b=b+Math.imul(Et,be)|0,d=d+Math.imul(Et,ve)|0,d=d+Math.imul(Ct,be)|0,k=k+Math.imul(Ct,ve)|0,b=b+Math.imul(Ge,Pe)|0,d=d+Math.imul(Ge,ze)|0,d=d+Math.imul(Qe,Pe)|0,k=k+Math.imul(Qe,ze)|0,b=b+Math.imul(at,ot)|0,d=d+Math.imul(at,wt)|0,d=d+Math.imul(bt,ot)|0,k=k+Math.imul(bt,wt)|0;var Sr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,b=Math.imul(Me,be),d=Math.imul(Me,ve),d=d+Math.imul(te,be)|0,k=Math.imul(te,ve),b=b+Math.imul(Et,Pe)|0,d=d+Math.imul(Et,ze)|0,d=d+Math.imul(Ct,Pe)|0,k=k+Math.imul(Ct,ze)|0,b=b+Math.imul(Ge,ot)|0,d=d+Math.imul(Ge,wt)|0,d=d+Math.imul(Qe,ot)|0,k=k+Math.imul(Qe,wt)|0;var rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(rr>>>26)|0,rr&=67108863,b=Math.imul(Me,Pe),d=Math.imul(Me,ze),d=d+Math.imul(te,Pe)|0,k=Math.imul(te,ze),b=b+Math.imul(Et,ot)|0,d=d+Math.imul(Et,wt)|0,d=d+Math.imul(Ct,ot)|0,k=k+Math.imul(Ct,wt)|0;var Nt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,b=Math.imul(Me,ot),d=Math.imul(Me,wt),d=d+Math.imul(te,ot)|0,k=Math.imul(te,wt);var Gt=(T+b|0)+((d&8191)<<13)|0;return T=(k+(d>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,x[0]=Yt,x[1]=Jt,x[2]=wr,x[3]=lr,x[4]=Rr,x[5]=vr,x[6]=dr,x[7]=Ir,x[8]=kr,x[9]=Fr,x[10]=jr,x[11]=Cr,x[12]=Lr,x[13]=Ar,x[14]=Tr,x[15]=Sr,x[16]=rr,x[17]=Nt,x[18]=Gt,T!==0&&(x[19]=T,S.length++),S};Math.imul||(j=I);function B(L,p,y){y.negative=p.negative^L.negative,y.length=L.length+p.length;for(var S=0,c=0,m=0;m<y.length-1;m++){var x=c;c=0;for(var T=S&67108863,b=Math.min(m,p.length-1),d=Math.max(0,m-L.length+1);d<=b;d++){var k=m-d,D=L.words[k]|0,O=p.words[d]|0,Q=D*O,J=Q&67108863;x=x+(Q/67108864|0)|0,J=J+T|0,T=J&67108863,x=x+(J>>>26)|0,c+=x>>>26,x&=67108863}y.words[m]=T,S=x,x=c}return S!==0?y.words[m]=S:y.length--,y.strip()}function F(L,p,y){var S=new N;return S.mulp(L,p,y)}u.prototype.mulTo=function(p,y){var S,c=this.length+p.length;return this.length===10&&p.length===10?S=j(this,p,y):c<63?S=I(this,p,y):c<1024?S=B(this,p,y):S=F(this,p,y),S};function N(L,p){this.x=L,this.y=p}N.prototype.makeRBT=function(p){for(var y=new Array(p),S=u.prototype._countBits(p)-1,c=0;c<p;c++)y[c]=this.revBin(c,S,p);return y},N.prototype.revBin=function(p,y,S){if(p===0||p===S-1)return p;for(var c=0,m=0;m<y;m++)c|=(p&1)<<y-m-1,p>>=1;return c},N.prototype.permute=function(p,y,S,c,m,x){for(var T=0;T<x;T++)c[T]=y[p[T]],m[T]=S[p[T]]},N.prototype.transform=function(p,y,S,c,m,x){this.permute(x,p,y,S,c,m);for(var T=1;T<m;T<<=1)for(var b=T<<1,d=Math.cos(2*Math.PI/b),k=Math.sin(2*Math.PI/b),D=0;D<m;D+=b)for(var O=d,Q=k,J=0;J<T;J++){var X=S[D+J],U=c[D+J],z=S[D+J+T],ie=c[D+J+T],de=O*z-Q*ie;ie=O*ie+Q*z,z=de,S[D+J]=X+z,c[D+J]=U+ie,S[D+J+T]=X-z,c[D+J+T]=U-ie,J!==b&&(de=d*O-k*Q,Q=d*Q+k*O,O=de)}},N.prototype.guessLen13b=function(p,y){var S=Math.max(y,p)|1,c=S&1,m=0;for(S=S/2|0;S;S=S>>>1)m++;return 1<<m+1+c},N.prototype.conjugate=function(p,y,S){if(!(S<=1))for(var c=0;c<S/2;c++){var m=p[c];p[c]=p[S-c-1],p[S-c-1]=m,m=y[c],y[c]=-y[S-c-1],y[S-c-1]=-m}},N.prototype.normalize13b=function(p,y){for(var S=0,c=0;c<y/2;c++){var m=Math.round(p[2*c+1]/y)*8192+Math.round(p[2*c]/y)+S;p[c]=m&67108863,m<67108864?S=0:S=m/67108864|0}return p},N.prototype.convert13b=function(p,y,S,c){for(var m=0,x=0;x<y;x++)m=m+(p[x]|0),S[2*x]=m&8191,m=m>>>13,S[2*x+1]=m&8191,m=m>>>13;for(x=2*y;x<c;++x)S[x]=0;l(m===0),l((m&-8192)===0)},N.prototype.stub=function(p){for(var y=new Array(p),S=0;S<p;S++)y[S]=0;return y},N.prototype.mulp=function(p,y,S){var c=2*this.guessLen13b(p.length,y.length),m=this.makeRBT(c),x=this.stub(c),T=new Array(c),b=new Array(c),d=new Array(c),k=new Array(c),D=new Array(c),O=new Array(c),Q=S.words;Q.length=c,this.convert13b(p.words,p.length,T,c),this.convert13b(y.words,y.length,k,c),this.transform(T,x,b,d,c,m),this.transform(k,x,D,O,c,m);for(var J=0;J<c;J++){var X=b[J]*D[J]-d[J]*O[J];d[J]=b[J]*O[J]+d[J]*D[J],b[J]=X}return this.conjugate(b,d,c),this.transform(b,d,Q,x,c,m),this.conjugate(Q,x,c),this.normalize13b(Q,c),S.negative=p.negative^y.negative,S.length=p.length+y.length,S.strip()},u.prototype.mul=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),this.mulTo(p,y)},u.prototype.mulf=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),F(this,p,y)},u.prototype.imul=function(p){return this.clone().mulTo(p,this)},u.prototype.imuln=function(p){l(typeof p=="number"),l(p<67108864);for(var y=0,S=0;S<this.length;S++){var c=(this.words[S]|0)*p,m=(c&67108863)+(y&67108863);y>>=26,y+=c/67108864|0,y+=m>>>26,this.words[S]=m&67108863}return y!==0&&(this.words[S]=y,this.length++),this},u.prototype.muln=function(p){return this.clone().imuln(p)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(p){var y=P(p);if(y.length===0)return new u(1);for(var S=this,c=0;c<y.length&&y[c]===0;c++,S=S.sqr());if(++c<y.length)for(var m=S.sqr();c<y.length;c++,m=m.sqr())y[c]!==0&&(S=S.mul(m));return S},u.prototype.iushln=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=67108863>>>26-y<<26-y,m;if(y!==0){var x=0;for(m=0;m<this.length;m++){var T=this.words[m]&c,b=(this.words[m]|0)-T<<y;this.words[m]=b|x,x=T>>>26-y}x&&(this.words[m]=x,this.length++)}if(S!==0){for(m=this.length-1;m>=0;m--)this.words[m+S]=this.words[m];for(m=0;m<S;m++)this.words[m]=0;this.length+=S}return this.strip()},u.prototype.ishln=function(p){return l(this.negative===0),this.iushln(p)},u.prototype.iushrn=function(p,y,S){l(typeof p=="number"&&p>=0);var c;y?c=(y-y%26)/26:c=0;var m=p%26,x=Math.min((p-m)/26,this.length),T=67108863^67108863>>>m<<m,b=S;if(c-=x,c=Math.max(0,c),b){for(var d=0;d<x;d++)b.words[d]=this.words[d];b.length=x}if(x!==0)if(this.length>x)for(this.length-=x,d=0;d<this.length;d++)this.words[d]=this.words[d+x];else this.words[0]=0,this.length=1;var k=0;for(d=this.length-1;d>=0&&(k!==0||d>=c);d--){var D=this.words[d]|0;this.words[d]=k<<26-m|D>>>m,k=D&T}return b&&k!==0&&(b.words[b.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(p,y,S){return l(this.negative===0),this.iushrn(p,y,S)},u.prototype.shln=function(p){return this.clone().ishln(p)},u.prototype.ushln=function(p){return this.clone().iushln(p)},u.prototype.shrn=function(p){return this.clone().ishrn(p)},u.prototype.ushrn=function(p){return this.clone().iushrn(p)},u.prototype.testn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return!1;var m=this.words[S];return!!(m&c)},u.prototype.imaskn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(y!==0&&S++,this.length=Math.min(S,this.length),y!==0){var c=67108863^67108863>>>y<<y;this.words[this.length-1]&=c}return this.strip()},u.prototype.maskn=function(p){return this.clone().imaskn(p)},u.prototype.iaddn=function(p){return l(typeof p=="number"),l(p<67108864),p<0?this.isubn(-p):this.negative!==0?this.length===1&&(this.words[0]|0)<p?(this.words[0]=p-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(p),this.negative=1,this):this._iaddn(p)},u.prototype._iaddn=function(p){this.words[0]+=p;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},u.prototype.isubn=function(p){if(l(typeof p=="number"),l(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this.strip()},u.prototype.addn=function(p){return this.clone().iaddn(p)},u.prototype.subn=function(p){return this.clone().isubn(p)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(p,y,S){var c=p.length+S,m;this._expand(c);var x,T=0;for(m=0;m<p.length;m++){x=(this.words[m+S]|0)+T;var b=(p.words[m]|0)*y;x-=b&67108863,T=(x>>26)-(b/67108864|0),this.words[m+S]=x&67108863}for(;m<this.length-S;m++)x=(this.words[m+S]|0)+T,T=x>>26,this.words[m+S]=x&67108863;if(T===0)return this.strip();for(l(T===-1),T=0,m=0;m<this.length;m++)x=-(this.words[m]|0)+T,T=x>>26,this.words[m]=x&67108863;return this.negative=1,this.strip()},u.prototype._wordDiv=function(p,y){var S=this.length-p.length,c=this.clone(),m=p,x=m.words[m.length-1]|0,T=this._countBits(x);S=26-T,S!==0&&(m=m.ushln(S),c.iushln(S),x=m.words[m.length-1]|0);var b=c.length-m.length,d;if(y!=="mod"){d=new u(null),d.length=b+1,d.words=new Array(d.length);for(var k=0;k<d.length;k++)d.words[k]=0}var D=c.clone()._ishlnsubmul(m,1,b);D.negative===0&&(c=D,d&&(d.words[b]=1));for(var O=b-1;O>=0;O--){var Q=(c.words[m.length+O]|0)*67108864+(c.words[m.length+O-1]|0);for(Q=Math.min(Q/x|0,67108863),c._ishlnsubmul(m,Q,O);c.negative!==0;)Q--,c.negative=0,c._ishlnsubmul(m,1,O),c.isZero()||(c.negative^=1);d&&(d.words[O]=Q)}return d&&d.strip(),c.strip(),y!=="div"&&S!==0&&c.iushrn(S),{div:d||null,mod:c}},u.prototype.divmod=function(p,y,S){if(l(!p.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var c,m,x;return this.negative!==0&&p.negative===0?(x=this.neg().divmod(p,y),y!=="mod"&&(c=x.div.neg()),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.iadd(p)),{div:c,mod:m}):this.negative===0&&p.negative!==0?(x=this.divmod(p.neg(),y),y!=="mod"&&(c=x.div.neg()),{div:c,mod:x.mod}):this.negative&p.negative?(x=this.neg().divmod(p.neg(),y),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.isub(p)),{div:x.div,mod:m}):p.length>this.length||this.cmp(p)<0?{div:new u(0),mod:this}:p.length===1?y==="div"?{div:this.divn(p.words[0]),mod:null}:y==="mod"?{div:null,mod:new u(this.modn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new u(this.modn(p.words[0]))}:this._wordDiv(p,y)},u.prototype.div=function(p){return this.divmod(p,"div",!1).div},u.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},u.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},u.prototype.divRound=function(p){var y=this.divmod(p);if(y.mod.isZero())return y.div;var S=y.div.negative!==0?y.mod.isub(p):y.mod,c=p.ushrn(1),m=p.andln(1),x=S.cmp(c);return x<0||m===1&&x===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},u.prototype.modn=function(p){l(p<=67108863);for(var y=(1<<26)%p,S=0,c=this.length-1;c>=0;c--)S=(y*S+(this.words[c]|0))%p;return S},u.prototype.idivn=function(p){l(p<=67108863);for(var y=0,S=this.length-1;S>=0;S--){var c=(this.words[S]|0)+y*67108864;this.words[S]=c/p|0,y=c%p}return this.strip()},u.prototype.divn=function(p){return this.clone().idivn(p)},u.prototype.egcd=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=new u(0),T=new u(1),b=0;y.isEven()&&S.isEven();)y.iushrn(1),S.iushrn(1),++b;for(var d=S.clone(),k=y.clone();!y.isZero();){for(var D=0,O=1;!(y.words[0]&O)&&D<26;++D,O<<=1);if(D>0)for(y.iushrn(D);D-- >0;)(c.isOdd()||m.isOdd())&&(c.iadd(d),m.isub(k)),c.iushrn(1),m.iushrn(1);for(var Q=0,J=1;!(S.words[0]&J)&&Q<26;++Q,J<<=1);if(Q>0)for(S.iushrn(Q);Q-- >0;)(x.isOdd()||T.isOdd())&&(x.iadd(d),T.isub(k)),x.iushrn(1),T.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(x),m.isub(T)):(S.isub(y),x.isub(c),T.isub(m))}return{a:x,b:T,gcd:S.iushln(b)}},u.prototype._invmp=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=S.clone();y.cmpn(1)>0&&S.cmpn(1)>0;){for(var T=0,b=1;!(y.words[0]&b)&&T<26;++T,b<<=1);if(T>0)for(y.iushrn(T);T-- >0;)c.isOdd()&&c.iadd(x),c.iushrn(1);for(var d=0,k=1;!(S.words[0]&k)&&d<26;++d,k<<=1);if(d>0)for(S.iushrn(d);d-- >0;)m.isOdd()&&m.iadd(x),m.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(m)):(S.isub(y),m.isub(c))}var D;return y.cmpn(1)===0?D=c:D=m,D.cmpn(0)<0&&D.iadd(p),D},u.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var y=this.clone(),S=p.clone();y.negative=0,S.negative=0;for(var c=0;y.isEven()&&S.isEven();c++)y.iushrn(1),S.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;S.isEven();)S.iushrn(1);var m=y.cmp(S);if(m<0){var x=y;y=S,S=x}else if(m===0||S.cmpn(1)===0)break;y.isub(S)}while(!0);return S.iushln(c)},u.prototype.invm=function(p){return this.egcd(p).a.umod(p)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(p){return this.words[0]&p},u.prototype.bincn=function(p){l(typeof p=="number");var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return this._expand(S+1),this.words[S]|=c,this;for(var m=c,x=S;m!==0&&x<this.length;x++){var T=this.words[x]|0;T+=m,m=T>>>26,T&=67108863,this.words[x]=T}return m!==0&&(this.words[x]=m,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(p){var y=p<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this.strip();var S;if(this.length>1)S=1;else{y&&(p=-p),l(p<=67108863,"Number is too big");var c=this.words[0]|0;S=c===p?0:c<p?-1:1}return this.negative!==0?-S|0:S},u.prototype.cmp=function(p){if(this.negative!==0&&p.negative===0)return-1;if(this.negative===0&&p.negative!==0)return 1;var y=this.ucmp(p);return this.negative!==0?-y|0:y},u.prototype.ucmp=function(p){if(this.length>p.length)return 1;if(this.length<p.length)return-1;for(var y=0,S=this.length-1;S>=0;S--){var c=this.words[S]|0,m=p.words[S]|0;if(c!==m){c<m?y=-1:c>m&&(y=1);break}}return y},u.prototype.gtn=function(p){return this.cmpn(p)===1},u.prototype.gt=function(p){return this.cmp(p)===1},u.prototype.gten=function(p){return this.cmpn(p)>=0},u.prototype.gte=function(p){return this.cmp(p)>=0},u.prototype.ltn=function(p){return this.cmpn(p)===-1},u.prototype.lt=function(p){return this.cmp(p)===-1},u.prototype.lten=function(p){return this.cmpn(p)<=0},u.prototype.lte=function(p){return this.cmp(p)<=0},u.prototype.eqn=function(p){return this.cmpn(p)===0},u.prototype.eq=function(p){return this.cmp(p)===0},u.red=function(p){return new he(p)},u.prototype.toRed=function(p){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},u.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(p){return this.red=p,this},u.prototype.forceRed=function(p){return l(!this.red,"Already a number in reduction context"),this._forceRed(p)},u.prototype.redAdd=function(p){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},u.prototype.redIAdd=function(p){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},u.prototype.redSub=function(p){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},u.prototype.redISub=function(p){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},u.prototype.redShl=function(p){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},u.prototype.redMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},u.prototype.redIMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},u.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(p){return l(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var ee={k256:null,p224:null,p192:null,p25519:null};function Z(L,p){this.name=L,this.p=new u(p,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Z.prototype._tmp=function(){var p=new u(null);return p.words=new Array(Math.ceil(this.n/13)),p},Z.prototype.ireduce=function(p){var y=p,S;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),S=y.bitLength();while(S>this.n);var c=S<this.n?-1:y.ucmp(this.p);return c===0?(y.words[0]=0,y.length=1):c>0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},Z.prototype.split=function(p,y){p.iushrn(this.n,0,y)},Z.prototype.imulK=function(p){return p.imul(this.k)};function re(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}t(re,Z),re.prototype.split=function(p,y){for(var S=4194303,c=Math.min(p.length,9),m=0;m<c;m++)y.words[m]=p.words[m];if(y.length=c,p.length<=9){p.words[0]=0,p.length=1;return}var x=p.words[9];for(y.words[y.length++]=x&S,m=10;m<p.length;m++){var T=p.words[m]|0;p.words[m-10]=(T&S)<<4|x>>>22,x=T}x>>>=22,p.words[m-10]=x,x===0&&p.length>10?p.length-=10:p.length-=9},re.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var y=0,S=0;S<p.length;S++){var c=p.words[S]|0;y+=c*977,p.words[S]=y&67108863,y=c*64+(y/67108864|0)}return p.words[p.length-1]===0&&(p.length--,p.words[p.length-1]===0&&p.length--),p};function fe(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}t(fe,Z);function V(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}t(V,Z);function le(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}t(le,Z),le.prototype.imulK=function(p){for(var y=0,S=0;S<p.length;S++){var c=(p.words[S]|0)*19+y,m=c&67108863;c>>>=26,p.words[S]=m,y=c}return y!==0&&(p.words[p.length++]=y),p},u._prime=function(p){if(ee[p])return ee[p];var y;if(p==="k256")y=new re;else if(p==="p224")y=new fe;else if(p==="p192")y=new V;else if(p==="p25519")y=new le;else throw new Error("Unknown prime "+p);return ee[p]=y,y};function he(L){if(typeof L=="string"){var p=u._prime(L);this.m=p.p,this.prime=p}else l(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}he.prototype._verify1=function(p){l(p.negative===0,"red works only with positives"),l(p.red,"red works only with red numbers")},he.prototype._verify2=function(p,y){l((p.negative|y.negative)===0,"red works only with positives"),l(p.red&&p.red===y.red,"red works only with red numbers")},he.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):p.umod(this.m)._forceRed(this)},he.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},he.prototype.add=function(p,y){this._verify2(p,y);var S=p.add(y);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},he.prototype.iadd=function(p,y){this._verify2(p,y);var S=p.iadd(y);return S.cmp(this.m)>=0&&S.isub(this.m),S},he.prototype.sub=function(p,y){this._verify2(p,y);var S=p.sub(y);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},he.prototype.isub=function(p,y){this._verify2(p,y);var S=p.isub(y);return S.cmpn(0)<0&&S.iadd(this.m),S},he.prototype.shl=function(p,y){return this._verify1(p),this.imod(p.ushln(y))},he.prototype.imul=function(p,y){return this._verify2(p,y),this.imod(p.imul(y))},he.prototype.mul=function(p,y){return this._verify2(p,y),this.imod(p.mul(y))},he.prototype.isqr=function(p){return this.imul(p,p.clone())},he.prototype.sqr=function(p){return this.mul(p,p)},he.prototype.sqrt=function(p){if(p.isZero())return p.clone();var y=this.m.andln(3);if(l(y%2===1),y===3){var S=this.m.add(new u(1)).iushrn(2);return this.pow(p,S)}for(var c=this.m.subn(1),m=0;!c.isZero()&&c.andln(1)===0;)m++,c.iushrn(1);l(!c.isZero());var x=new u(1).toRed(this),T=x.redNeg(),b=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new u(2*d*d).toRed(this);this.pow(d,b).cmp(T)!==0;)d.redIAdd(T);for(var k=this.pow(d,c),D=this.pow(p,c.addn(1).iushrn(1)),O=this.pow(p,c),Q=m;O.cmp(x)!==0;){for(var J=O,X=0;J.cmp(x)!==0;X++)J=J.redSqr();l(X<Q);var U=this.pow(k,new u(1).iushln(Q-X-1));D=D.redMul(U),k=U.redSqr(),O=O.redMul(k),Q=X}return D},he.prototype.invm=function(p){var y=p._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},he.prototype.pow=function(p,y){if(y.isZero())return new u(1).toRed(this);if(y.cmpn(1)===0)return p.clone();var S=4,c=new Array(1<<S);c[0]=new u(1).toRed(this),c[1]=p;for(var m=2;m<c.length;m++)c[m]=this.mul(c[m-1],p);var x=c[0],T=0,b=0,d=y.bitLength()%26;for(d===0&&(d=26),m=y.length-1;m>=0;m--){for(var k=y.words[m],D=d-1;D>=0;D--){var O=k>>D&1;if(x!==c[0]&&(x=this.sqr(x)),O===0&&T===0){b=0;continue}T<<=1,T|=O,b++,!(b!==S&&(m!==0||D!==0))&&(x=this.mul(x,c[T]),b=0,T=0)}d=26}return x},he.prototype.convertTo=function(p){var y=p.umod(this.m);return y===p?y.clone():y},he.prototype.convertFrom=function(p){var y=p.clone();return y.red=null,y},u.mont=function(p){return new ye(p)};function ye(L){he.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}t(ye,he),ye.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},ye.prototype.convertFrom=function(p){var y=this.imod(p.mul(this.rinv));return y.red=null,y},ye.prototype.imul=function(p,y){if(p.isZero()||y.isZero())return p.words[0]=0,p.length=1,p;var S=p.imul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.mul=function(p,y){if(p.isZero()||y.isZero())return new u(0)._forceRed(this);var S=p.mul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.invm=function(p){var y=this.imod(p._invmp(this.m).mul(this.r2));return y._forceRed(this)}})(n,commonjsGlobal$1)}(bn$3);var bnExports$3=bn$3.exports,utils$n={};(function(n){var e=n;function o(u,h){if(Array.isArray(u))return u.slice();if(!u)return[];var v=[];if(typeof u!="string"){for(var w=0;w<u.length;w++)v[w]=u[w]|0;return v}if(h==="hex"){u=u.replace(/[^a-z0-9]+/ig,""),u.length%2!==0&&(u="0"+u);for(var w=0;w<u.length;w+=2)v.push(parseInt(u[w]+u[w+1],16))}else for(var w=0;w<u.length;w++){var A=u.charCodeAt(w),E=A>>8,C=A&255;E?v.push(E,C):v.push(C)}return v}e.toArray=o;function l(u){return u.length===1?"0"+u:u}e.zero2=l;function t(u){for(var h="",v=0;v<u.length;v++)h+=l(u[v].toString(16));return h}e.toHex=t,e.encode=function(h,v){return v==="hex"?t(h):h}})(utils$n),function(n){var e=n,o=bnExports$3,l=minimalisticAssert,t=utils$n;e.assert=l,e.toArray=t.toArray,e.zero2=t.zero2,e.toHex=t.toHex,e.encode=t.encode;function u(E,C,M){var P=new Array(Math.max(E.bitLength(),M)+1),I;for(I=0;I<P.length;I+=1)P[I]=0;var j=1<<C+1,B=E.clone();for(I=0;I<P.length;I++){var F,N=B.andln(j-1);B.isOdd()?(N>(j>>1)-1?F=(j>>1)-N:F=N,B.isubn(F)):F=0,P[I]=F,B.iushrn(1)}return P}e.getNAF=u;function h(E,C){var M=[[],[]];E=E.clone(),C=C.clone();for(var P=0,I=0,j;E.cmpn(-P)>0||C.cmpn(-I)>0;){var B=E.andln(3)+P&3,F=C.andln(3)+I&3;B===3&&(B=-1),F===3&&(F=-1);var N;B&1?(j=E.andln(7)+P&7,(j===3||j===5)&&F===2?N=-B:N=B):N=0,M[0].push(N);var ee;F&1?(j=C.andln(7)+I&7,(j===3||j===5)&&B===2?ee=-F:ee=F):ee=0,M[1].push(ee),2*P===N+1&&(P=1-P),2*I===ee+1&&(I=1-I),E.iushrn(1),C.iushrn(1)}return M}e.getJSF=h;function v(E,C,M){var P="_"+C;E.prototype[C]=function(){return this[P]!==void 0?this[P]:this[P]=M.call(this)}}e.cachedProperty=v;function w(E){return typeof E=="string"?e.toArray(E,"hex"):E}e.parseBytes=w;function A(E){return new o(E,"hex","le")}e.intFromLE=A}(utils$o);var curve={},BN$9=bnExports$3,utils$m=utils$o,getNAF=utils$m.getNAF,getJSF=utils$m.getJSF,assert$e=utils$m.assert;function BaseCurve(n,e){this.type=n,this.p=new BN$9(e.p,16),this.red=e.prime?BN$9.red(e.prime):BN$9.mont(this.p),this.zero=new BN$9(0).toRed(this.red),this.one=new BN$9(1).toRed(this.red),this.two=new BN$9(2).toRed(this.red),this.n=e.n&&new BN$9(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var o=this.n&&this.p.div(this.n);!o||o.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$1=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")},BaseCurve.prototype.validate=function(){throw new Error("Not implemented")},BaseCurve.prototype._fixedNafMul=function(e,o){assert$e(e.precomputed);var l=e._getDoubles(),t=getNAF(o,1,this._bitLength),u=(1<<l.step+1)-(l.step%2===0?2:1);u/=3;var h=[],v,w;for(v=0;v<t.length;v+=l.step){w=0;for(var A=v+l.step-1;A>=v;A--)w=(w<<1)+t[A];h.push(w)}for(var E=this.jpoint(null,null,null),C=this.jpoint(null,null,null),M=u;M>0;M--){for(v=0;v<h.length;v++)w=h[v],w===M?C=C.mixedAdd(l.points[v]):w===-M&&(C=C.mixedAdd(l.points[v].neg()));E=E.add(C)}return E.toP()},BaseCurve.prototype._wnafMul=function(e,o){var l=4,t=e._getNAFPoints(l);l=t.wnd;for(var u=t.points,h=getNAF(o,l,this._bitLength),v=this.jpoint(null,null,null),w=h.length-1;w>=0;w--){for(var A=0;w>=0&&h[w]===0;w--)A++;if(w>=0&&A++,v=v.dblp(A),w<0)break;var E=h[w];assert$e(E!==0),e.type==="affine"?E>0?v=v.mixedAdd(u[E-1>>1]):v=v.mixedAdd(u[-E-1>>1].neg()):E>0?v=v.add(u[E-1>>1]):v=v.add(u[-E-1>>1].neg())}return e.type==="affine"?v.toP():v},BaseCurve.prototype._wnafMulAdd=function(e,o,l,t,u){var h=this._wnafT1,v=this._wnafT2,w=this._wnafT3,A=0,E,C,M;for(E=0;E<t;E++){M=o[E];var P=M._getNAFPoints(e);h[E]=P.wnd,v[E]=P.points}for(E=t-1;E>=1;E-=2){var I=E-1,j=E;if(h[I]!==1||h[j]!==1){w[I]=getNAF(l[I],h[I],this._bitLength),w[j]=getNAF(l[j],h[j],this._bitLength),A=Math.max(w[I].length,A),A=Math.max(w[j].length,A);continue}var B=[o[I],null,null,o[j]];o[I].y.cmp(o[j].y)===0?(B[1]=o[I].add(o[j]),B[2]=o[I].toJ().mixedAdd(o[j].neg())):o[I].y.cmp(o[j].y.redNeg())===0?(B[1]=o[I].toJ().mixedAdd(o[j]),B[2]=o[I].add(o[j].neg())):(B[1]=o[I].toJ().mixedAdd(o[j]),B[2]=o[I].toJ().mixedAdd(o[j].neg()));var F=[-3,-1,-5,-7,0,7,5,1,3],N=getJSF(l[I],l[j]);for(A=Math.max(N[0].length,A),w[I]=new Array(A),w[j]=new Array(A),C=0;C<A;C++){var ee=N[0][C]|0,Z=N[1][C]|0;w[I][C]=F[(ee+1)*3+(Z+1)],w[j][C]=0,v[I]=B}}var re=this.jpoint(null,null,null),fe=this._wnafT4;for(E=A;E>=0;E--){for(var V=0;E>=0;){var le=!0;for(C=0;C<t;C++)fe[C]=w[C][E]|0,fe[C]!==0&&(le=!1);if(!le)break;V++,E--}if(E>=0&&V++,re=re.dblp(V),E<0)break;for(C=0;C<t;C++){var he=fe[C];he!==0&&(he>0?M=v[C][he-1>>1]:he<0&&(M=v[C][-he-1>>1].neg()),M.type==="affine"?re=re.mixedAdd(M):re=re.add(M))}}for(E=0;E<t;E++)v[E]=null;return u?re:re.toP()};function BasePoint(n,e){this.curve=n,this.type=e,this.precomputed=null}BaseCurve.BasePoint=BasePoint,BasePoint.prototype.eq=function(){throw new Error("Not implemented")},BasePoint.prototype.validate=function(){return this.curve.validate(this)},BaseCurve.prototype.decodePoint=function(e,o){e=utils$m.toArray(e,o);var l=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*l){e[0]===6?assert$e(e[e.length-1]%2===0):e[0]===7&&assert$e(e[e.length-1]%2===1);var t=this.point(e.slice(1,1+l),e.slice(1+l,1+2*l));return t}else if((e[0]===2||e[0]===3)&&e.length-1===l)return this.pointFromX(e.slice(1,1+l),e[0]===3);throw new Error("Unknown point format")},BasePoint.prototype.encodeCompressed=function(e){return this.encode(e,!0)},BasePoint.prototype._encode=function(e){var o=this.curve.p.byteLength(),l=this.getX().toArray("be",o);return e?[this.getY().isEven()?2:3].concat(l):[4].concat(l,this.getY().toArray("be",o))},BasePoint.prototype.encode=function(e,o){return utils$m.encode(this._encode(o),e)},BasePoint.prototype.precompute=function(e){if(this.precomputed)return this;var o={doubles:null,naf:null,beta:null};return o.naf=this._getNAFPoints(8),o.doubles=this._getDoubles(4,e),o.beta=this._getBeta(),this.precomputed=o,this},BasePoint.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var o=this.precomputed.doubles;return o?o.points.length>=Math.ceil((e.bitLength()+1)/o.step):!1},BasePoint.prototype._getDoubles=function(e,o){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var l=[this],t=this,u=0;u<o;u+=e){for(var h=0;h<e;h++)t=t.dbl();l.push(t)}return{step:e,points:l}},BasePoint.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var o=[this],l=(1<<e)-1,t=l===1?null:this.dbl(),u=1;u<l;u++)o[u]=o[u-1].add(t);return{wnd:e,points:o}},BasePoint.prototype._getBeta=function(){return null},BasePoint.prototype.dblp=function(e){for(var o=this,l=0;l<e;l++)o=o.dbl();return o};var utils$l=utils$o,BN$8=bnExports$3,inherits$4=inherits_browserExports,Base$2=base$1,assert$d=utils$l.assert;function ShortCurve(n){Base$2.call(this,"short",n),this.a=new BN$8(n.a,16).toRed(this.red),this.b=new BN$8(n.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(n),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}inherits$4(ShortCurve,Base$2);var short=ShortCurve;ShortCurve.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var o,l;if(e.beta)o=new BN$8(e.beta,16).toRed(this.red);else{var t=this._getEndoRoots(this.p);o=t[0].cmp(t[1])<0?t[0]:t[1],o=o.toRed(this.red)}if(e.lambda)l=new BN$8(e.lambda,16);else{var u=this._getEndoRoots(this.n);this.g.mul(u[0]).x.cmp(this.g.x.redMul(o))===0?l=u[0]:(l=u[1],assert$d(this.g.mul(l).x.cmp(this.g.x.redMul(o))===0))}var h;return e.basis?h=e.basis.map(function(v){return{a:new BN$8(v.a,16),b:new BN$8(v.b,16)}}):h=this._getEndoBasis(l),{beta:o,lambda:l,basis:h}}},ShortCurve.prototype._getEndoRoots=function(e){var o=e===this.p?this.red:BN$8.mont(e),l=new BN$8(2).toRed(o).redInvm(),t=l.redNeg(),u=new BN$8(3).toRed(o).redNeg().redSqrt().redMul(l),h=t.redAdd(u).fromRed(),v=t.redSub(u).fromRed();return[h,v]},ShortCurve.prototype._getEndoBasis=function(e){for(var o=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,t=this.n.clone(),u=new BN$8(1),h=new BN$8(0),v=new BN$8(0),w=new BN$8(1),A,E,C,M,P,I,j,B=0,F,N;l.cmpn(0)!==0;){var ee=t.div(l);F=t.sub(ee.mul(l)),N=v.sub(ee.mul(u));var Z=w.sub(ee.mul(h));if(!C&&F.cmp(o)<0)A=j.neg(),E=u,C=F.neg(),M=N;else if(C&&++B===2)break;j=F,t=l,l=F,v=u,u=N,w=h,h=Z}P=F.neg(),I=N;var re=C.sqr().add(M.sqr()),fe=P.sqr().add(I.sqr());return fe.cmp(re)>=0&&(P=A,I=E),C.negative&&(C=C.neg(),M=M.neg()),P.negative&&(P=P.neg(),I=I.neg()),[{a:C,b:M},{a:P,b:I}]},ShortCurve.prototype._endoSplit=function(e){var o=this.endo.basis,l=o[0],t=o[1],u=t.b.mul(e).divRound(this.n),h=l.b.neg().mul(e).divRound(this.n),v=u.mul(l.a),w=h.mul(t.a),A=u.mul(l.b),E=h.mul(t.b),C=e.sub(v).sub(w),M=A.add(E).neg();return{k1:C,k2:M}},ShortCurve.prototype.pointFromX=function(e,o){e=new BN$8(e,16),e.red||(e=e.toRed(this.red));var l=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),t=l.redSqrt();if(t.redSqr().redSub(l).cmp(this.zero)!==0)throw new Error("invalid point");var u=t.fromRed().isOdd();return(o&&!u||!o&&u)&&(t=t.redNeg()),this.point(e,t)},ShortCurve.prototype.validate=function(e){if(e.inf)return!0;var o=e.x,l=e.y,t=this.a.redMul(o),u=o.redSqr().redMul(o).redIAdd(t).redIAdd(this.b);return l.redSqr().redISub(u).cmpn(0)===0},ShortCurve.prototype._endoWnafMulAdd=function(e,o,l){for(var t=this._endoWnafT1,u=this._endoWnafT2,h=0;h<e.length;h++){var v=this._endoSplit(o[h]),w=e[h],A=w._getBeta();v.k1.negative&&(v.k1.ineg(),w=w.neg(!0)),v.k2.negative&&(v.k2.ineg(),A=A.neg(!0)),t[h*2]=w,t[h*2+1]=A,u[h*2]=v.k1,u[h*2+1]=v.k2}for(var E=this._wnafMulAdd(1,t,u,h*2,l),C=0;C<h*2;C++)t[C]=null,u[C]=null;return E};function Point$2(n,e,o,l){Base$2.BasePoint.call(this,n,"affine"),e===null&&o===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new BN$8(e,16),this.y=new BN$8(o,16),l&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}inherits$4(Point$2,Base$2.BasePoint),ShortCurve.prototype.point=function(e,o,l){return new Point$2(this,e,o,l)},ShortCurve.prototype.pointFromJSON=function(e,o){return Point$2.fromJSON(this,e,o)},Point$2.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var o=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var l=this.curve,t=function(u){return l.point(u.x.redMul(l.endo.beta),u.y)};e.beta=o,o.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(t)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(t)}}}return o}},Point$2.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Point$2.fromJSON=function(e,o,l){typeof o=="string"&&(o=JSON.parse(o));var t=e.point(o[0],o[1],l);if(!o[2])return t;function u(v){return e.point(v[0],v[1],l)}var h=o[2];return t.precomputed={beta:null,doubles:h.doubles&&{step:h.doubles.step,points:[t].concat(h.doubles.points.map(u))},naf:h.naf&&{wnd:h.naf.wnd,points:[t].concat(h.naf.points.map(u))}},t},Point$2.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Point$2.prototype.isInfinity=function(){return this.inf},Point$2.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var o=this.y.redSub(e.y);o.cmpn(0)!==0&&(o=o.redMul(this.x.redSub(e.x).redInvm()));var l=o.redSqr().redISub(this.x).redISub(e.x),t=o.redMul(this.x.redSub(l)).redISub(this.y);return this.curve.point(l,t)},Point$2.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var o=this.curve.a,l=this.x.redSqr(),t=e.redInvm(),u=l.redAdd(l).redIAdd(l).redIAdd(o).redMul(t),h=u.redSqr().redISub(this.x.redAdd(this.x)),v=u.redMul(this.x.redSub(h)).redISub(this.y);return this.curve.point(h,v)},Point$2.prototype.getX=function(){return this.x.fromRed()},Point$2.prototype.getY=function(){return this.y.fromRed()},Point$2.prototype.mul=function(e){return e=new BN$8(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Point$2.prototype.mulAdd=function(e,o,l){var t=[this,o],u=[e,l];return this.curve.endo?this.curve._endoWnafMulAdd(t,u):this.curve._wnafMulAdd(1,t,u,2)},Point$2.prototype.jmulAdd=function(e,o,l){var t=[this,o],u=[e,l];return this.curve.endo?this.curve._endoWnafMulAdd(t,u,!0):this.curve._wnafMulAdd(1,t,u,2,!0)},Point$2.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},Point$2.prototype.neg=function(e){if(this.inf)return this;var o=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var l=this.precomputed,t=function(u){return u.neg()};o.precomputed={naf:l.naf&&{wnd:l.naf.wnd,points:l.naf.points.map(t)},doubles:l.doubles&&{step:l.doubles.step,points:l.doubles.points.map(t)}}}return o},Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function JPoint(n,e,o,l){Base$2.BasePoint.call(this,n,"jacobian"),e===null&&o===null&&l===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$8(0)):(this.x=new BN$8(e,16),this.y=new BN$8(o,16),this.z=new BN$8(l,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$4(JPoint,Base$2.BasePoint),ShortCurve.prototype.jpoint=function(e,o,l){return new JPoint(this,e,o,l)},JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),o=e.redSqr(),l=this.x.redMul(o),t=this.y.redMul(o).redMul(e);return this.curve.point(l,t)},JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},JPoint.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var o=e.z.redSqr(),l=this.z.redSqr(),t=this.x.redMul(o),u=e.x.redMul(l),h=this.y.redMul(o.redMul(e.z)),v=e.y.redMul(l.redMul(this.z)),w=t.redSub(u),A=h.redSub(v);if(w.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var E=w.redSqr(),C=E.redMul(w),M=t.redMul(E),P=A.redSqr().redIAdd(C).redISub(M).redISub(M),I=A.redMul(M.redISub(P)).redISub(h.redMul(C)),j=this.z.redMul(e.z).redMul(w);return this.curve.jpoint(P,I,j)},JPoint.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var o=this.z.redSqr(),l=this.x,t=e.x.redMul(o),u=this.y,h=e.y.redMul(o).redMul(this.z),v=l.redSub(t),w=u.redSub(h);if(v.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var A=v.redSqr(),E=A.redMul(v),C=l.redMul(A),M=w.redSqr().redIAdd(E).redISub(C).redISub(C),P=w.redMul(C.redISub(M)).redISub(u.redMul(E)),I=this.z.redMul(v);return this.curve.jpoint(M,P,I)},JPoint.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var o;if(this.curve.zeroA||this.curve.threeA){var l=this;for(o=0;o<e;o++)l=l.dbl();return l}var t=this.curve.a,u=this.curve.tinv,h=this.x,v=this.y,w=this.z,A=w.redSqr().redSqr(),E=v.redAdd(v);for(o=0;o<e;o++){var C=h.redSqr(),M=E.redSqr(),P=M.redSqr(),I=C.redAdd(C).redIAdd(C).redIAdd(t.redMul(A)),j=h.redMul(M),B=I.redSqr().redISub(j.redAdd(j)),F=j.redISub(B),N=I.redMul(F);N=N.redIAdd(N).redISub(P);var ee=E.redMul(w);o+1<e&&(A=A.redMul(P)),h=B,w=ee,E=N}return this.curve.jpoint(h,E.redMul(u),w)},JPoint.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},JPoint.prototype._zeroDbl=function(){var e,o,l;if(this.zOne){var t=this.x.redSqr(),u=this.y.redSqr(),h=u.redSqr(),v=this.x.redAdd(u).redSqr().redISub(t).redISub(h);v=v.redIAdd(v);var w=t.redAdd(t).redIAdd(t),A=w.redSqr().redISub(v).redISub(v),E=h.redIAdd(h);E=E.redIAdd(E),E=E.redIAdd(E),e=A,o=w.redMul(v.redISub(A)).redISub(E),l=this.y.redAdd(this.y)}else{var C=this.x.redSqr(),M=this.y.redSqr(),P=M.redSqr(),I=this.x.redAdd(M).redSqr().redISub(C).redISub(P);I=I.redIAdd(I);var j=C.redAdd(C).redIAdd(C),B=j.redSqr(),F=P.redIAdd(P);F=F.redIAdd(F),F=F.redIAdd(F),e=B.redISub(I).redISub(I),o=j.redMul(I.redISub(e)).redISub(F),l=this.y.redMul(this.z),l=l.redIAdd(l)}return this.curve.jpoint(e,o,l)},JPoint.prototype._threeDbl=function(){var e,o,l;if(this.zOne){var t=this.x.redSqr(),u=this.y.redSqr(),h=u.redSqr(),v=this.x.redAdd(u).redSqr().redISub(t).redISub(h);v=v.redIAdd(v);var w=t.redAdd(t).redIAdd(t).redIAdd(this.curve.a),A=w.redSqr().redISub(v).redISub(v);e=A;var E=h.redIAdd(h);E=E.redIAdd(E),E=E.redIAdd(E),o=w.redMul(v.redISub(A)).redISub(E),l=this.y.redAdd(this.y)}else{var C=this.z.redSqr(),M=this.y.redSqr(),P=this.x.redMul(M),I=this.x.redSub(C).redMul(this.x.redAdd(C));I=I.redAdd(I).redIAdd(I);var j=P.redIAdd(P);j=j.redIAdd(j);var B=j.redAdd(j);e=I.redSqr().redISub(B),l=this.y.redAdd(this.z).redSqr().redISub(M).redISub(C);var F=M.redSqr();F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F),o=I.redMul(j.redISub(e)).redISub(F)}return this.curve.jpoint(e,o,l)},JPoint.prototype._dbl=function(){var e=this.curve.a,o=this.x,l=this.y,t=this.z,u=t.redSqr().redSqr(),h=o.redSqr(),v=l.redSqr(),w=h.redAdd(h).redIAdd(h).redIAdd(e.redMul(u)),A=o.redAdd(o);A=A.redIAdd(A);var E=A.redMul(v),C=w.redSqr().redISub(E.redAdd(E)),M=E.redISub(C),P=v.redSqr();P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var I=w.redMul(M).redISub(P),j=l.redAdd(l).redMul(t);return this.curve.jpoint(C,I,j)},JPoint.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),o=this.y.redSqr(),l=this.z.redSqr(),t=o.redSqr(),u=e.redAdd(e).redIAdd(e),h=u.redSqr(),v=this.x.redAdd(o).redSqr().redISub(e).redISub(t);v=v.redIAdd(v),v=v.redAdd(v).redIAdd(v),v=v.redISub(h);var w=v.redSqr(),A=t.redIAdd(t);A=A.redIAdd(A),A=A.redIAdd(A),A=A.redIAdd(A);var E=u.redIAdd(v).redSqr().redISub(h).redISub(w).redISub(A),C=o.redMul(E);C=C.redIAdd(C),C=C.redIAdd(C);var M=this.x.redMul(w).redISub(C);M=M.redIAdd(M),M=M.redIAdd(M);var P=this.y.redMul(E.redMul(A.redISub(E)).redISub(v.redMul(w)));P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var I=this.z.redAdd(v).redSqr().redISub(l).redISub(w);return this.curve.jpoint(M,P,I)},JPoint.prototype.mul=function(e,o){return e=new BN$8(e,o),this.curve._wnafMul(this,e)},JPoint.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var o=this.z.redSqr(),l=e.z.redSqr();if(this.x.redMul(l).redISub(e.x.redMul(o)).cmpn(0)!==0)return!1;var t=o.redMul(this.z),u=l.redMul(e.z);return this.y.redMul(u).redISub(e.y.redMul(t)).cmpn(0)===0},JPoint.prototype.eqXToP=function(e){var o=this.z.redSqr(),l=e.toRed(this.curve.red).redMul(o);if(this.x.cmp(l)===0)return!0;for(var t=e.clone(),u=this.curve.redN.redMul(o);;){if(t.iadd(this.curve.n),t.cmp(this.curve.p)>=0)return!1;if(l.redIAdd(u),this.x.cmp(l)===0)return!0}},JPoint.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$7=bnExports$3,inherits$3=inherits_browserExports,Base$1=base$1,utils$k=utils$o;function MontCurve(n){Base$1.call(this,"mont",n),this.a=new BN$7(n.a,16).toRed(this.red),this.b=new BN$7(n.b,16).toRed(this.red),this.i4=new BN$7(4).toRed(this.red).redInvm(),this.two=new BN$7(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$3(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(e){var o=e.normalize().x,l=o.redSqr(),t=l.redMul(o).redAdd(l.redMul(this.a)).redAdd(o),u=t.redSqrt();return u.redSqr().cmp(t)===0};function Point$1(n,e,o){Base$1.BasePoint.call(this,n,"projective"),e===null&&o===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$7(e,16),this.z=new BN$7(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$3(Point$1,Base$1.BasePoint),MontCurve.prototype.decodePoint=function(e,o){return this.point(utils$k.toArray(e,o),1)},MontCurve.prototype.point=function(e,o){return new Point$1(this,e,o)},MontCurve.prototype.pointFromJSON=function(e){return Point$1.fromJSON(this,e)},Point$1.prototype.precompute=function(){},Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Point$1.fromJSON=function(e,o){return new Point$1(e,o[0],o[1]||e.one)},Point$1.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Point$1.prototype.dbl=function(){var e=this.x.redAdd(this.z),o=e.redSqr(),l=this.x.redSub(this.z),t=l.redSqr(),u=o.redSub(t),h=o.redMul(t),v=u.redMul(t.redAdd(this.curve.a24.redMul(u)));return this.curve.point(h,v)},Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Point$1.prototype.diffAdd=function(e,o){var l=this.x.redAdd(this.z),t=this.x.redSub(this.z),u=e.x.redAdd(e.z),h=e.x.redSub(e.z),v=h.redMul(l),w=u.redMul(t),A=o.z.redMul(v.redAdd(w).redSqr()),E=o.x.redMul(v.redISub(w).redSqr());return this.curve.point(A,E)},Point$1.prototype.mul=function(e){for(var o=e.clone(),l=this,t=this.curve.point(null,null),u=this,h=[];o.cmpn(0)!==0;o.iushrn(1))h.push(o.andln(1));for(var v=h.length-1;v>=0;v--)h[v]===0?(l=l.diffAdd(t,u),t=t.dbl()):(t=l.diffAdd(t,u),l=l.dbl());return t},Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Point$1.prototype.eq=function(e){return this.getX().cmp(e.getX())===0},Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$j=utils$o,BN$6=bnExports$3,inherits$2=inherits_browserExports,Base=base$1,assert$c=utils$j.assert;function EdwardsCurve(n){this.twisted=(n.a|0)!==1,this.mOneA=this.twisted&&(n.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",n),this.a=new BN$6(n.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$6(n.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$6(n.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$c(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(n.c|0)===1}inherits$2(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},EdwardsCurve.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},EdwardsCurve.prototype.jpoint=function(e,o,l,t){return this.point(e,o,l,t)},EdwardsCurve.prototype.pointFromX=function(e,o){e=new BN$6(e,16),e.red||(e=e.toRed(this.red));var l=e.redSqr(),t=this.c2.redSub(this.a.redMul(l)),u=this.one.redSub(this.c2.redMul(this.d).redMul(l)),h=t.redMul(u.redInvm()),v=h.redSqrt();if(v.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");var w=v.fromRed().isOdd();return(o&&!w||!o&&w)&&(v=v.redNeg()),this.point(e,v)},EdwardsCurve.prototype.pointFromY=function(e,o){e=new BN$6(e,16),e.red||(e=e.toRed(this.red));var l=e.redSqr(),t=l.redSub(this.c2),u=l.redMul(this.d).redMul(this.c2).redSub(this.a),h=t.redMul(u.redInvm());if(h.cmp(this.zero)===0){if(o)throw new Error("invalid point");return this.point(this.zero,e)}var v=h.redSqrt();if(v.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");return v.fromRed().isOdd()!==o&&(v=v.redNeg()),this.point(v,e)},EdwardsCurve.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var o=e.x.redSqr(),l=e.y.redSqr(),t=o.redMul(this.a).redAdd(l),u=this.c2.redMul(this.one.redAdd(this.d.redMul(o).redMul(l)));return t.cmp(u)===0};function Point(n,e,o,l,t){Base.BasePoint.call(this,n,"projective"),e===null&&o===null&&l===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$6(e,16),this.y=new BN$6(o,16),this.z=l?new BN$6(l,16):this.curve.one,this.t=t&&new BN$6(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$2(Point,Base.BasePoint),EdwardsCurve.prototype.pointFromJSON=function(e){return Point.fromJSON(this,e)},EdwardsCurve.prototype.point=function(e,o,l,t){return new Point(this,e,o,l,t)},Point.fromJSON=function(e,o){return new Point(e,o[0],o[1],o[2])},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},Point.prototype._extDbl=function(){var e=this.x.redSqr(),o=this.y.redSqr(),l=this.z.redSqr();l=l.redIAdd(l);var t=this.curve._mulA(e),u=this.x.redAdd(this.y).redSqr().redISub(e).redISub(o),h=t.redAdd(o),v=h.redSub(l),w=t.redSub(o),A=u.redMul(v),E=h.redMul(w),C=u.redMul(w),M=v.redMul(h);return this.curve.point(A,E,M,C)},Point.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),l=this.y.redSqr(),t,u,h,v,w,A;if(this.curve.twisted){v=this.curve._mulA(o);var E=v.redAdd(l);this.zOne?(t=e.redSub(o).redSub(l).redMul(E.redSub(this.curve.two)),u=E.redMul(v.redSub(l)),h=E.redSqr().redSub(E).redSub(E)):(w=this.z.redSqr(),A=E.redSub(w).redISub(w),t=e.redSub(o).redISub(l).redMul(A),u=E.redMul(v.redSub(l)),h=E.redMul(A))}else v=o.redAdd(l),w=this.curve._mulC(this.z).redSqr(),A=v.redSub(w).redSub(w),t=this.curve._mulC(e.redISub(v)).redMul(A),u=this.curve._mulC(v).redMul(o.redISub(l)),h=v.redMul(A);return this.curve.point(t,u,h)},Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point.prototype._extAdd=function(e){var o=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),l=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),t=this.t.redMul(this.curve.dd).redMul(e.t),u=this.z.redMul(e.z.redAdd(e.z)),h=l.redSub(o),v=u.redSub(t),w=u.redAdd(t),A=l.redAdd(o),E=h.redMul(v),C=w.redMul(A),M=h.redMul(A),P=v.redMul(w);return this.curve.point(E,C,P,M)},Point.prototype._projAdd=function(e){var o=this.z.redMul(e.z),l=o.redSqr(),t=this.x.redMul(e.x),u=this.y.redMul(e.y),h=this.curve.d.redMul(t).redMul(u),v=l.redSub(h),w=l.redAdd(h),A=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(t).redISub(u),E=o.redMul(v).redMul(A),C,M;return this.curve.twisted?(C=o.redMul(w).redMul(u.redSub(this.curve._mulA(t))),M=v.redMul(w)):(C=o.redMul(w).redMul(u.redSub(t)),M=this.curve._mulC(v).redMul(w)),this.curve.point(E,C,M)},Point.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Point.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Point.prototype.mulAdd=function(e,o,l){return this.curve._wnafMulAdd(1,[this,o],[e,l],2,!1)},Point.prototype.jmulAdd=function(e,o,l){return this.curve._wnafMulAdd(1,[this,o],[e,l],2,!0)},Point.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Point.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},Point.prototype.eqXToP=function(e){var o=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(o)===0)return!0;for(var l=e.clone(),t=this.curve.redN.redMul(this.z);;){if(l.iadd(this.curve.n),l.cmp(this.curve.p)>=0)return!1;if(o.redIAdd(t),this.x.cmp(o)===0)return!0}},Point.prototype.toP=Point.prototype.normalize,Point.prototype.mixedAdd=Point.prototype.add,function(n){var e=n;e.base=base$1,e.short=short,e.mont=mont,e.edwards=edwards}(curve);var curves$1={},hash$2={},utils$i={},assert$b=minimalisticAssert,inherits$1=inherits_browserExports;utils$i.inherits=inherits$1;function isSurrogatePair(n,e){return(n.charCodeAt(e)&64512)!==55296||e<0||e+1>=n.length?!1:(n.charCodeAt(e+1)&64512)===56320}function toArray(n,e){if(Array.isArray(n))return n.slice();if(!n)return[];var o=[];if(typeof n=="string")if(e){if(e==="hex")for(n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n),t=0;t<n.length;t+=2)o.push(parseInt(n[t]+n[t+1],16))}else for(var l=0,t=0;t<n.length;t++){var u=n.charCodeAt(t);u<128?o[l++]=u:u<2048?(o[l++]=u>>6|192,o[l++]=u&63|128):isSurrogatePair(n,t)?(u=65536+((u&1023)<<10)+(n.charCodeAt(++t)&1023),o[l++]=u>>18|240,o[l++]=u>>12&63|128,o[l++]=u>>6&63|128,o[l++]=u&63|128):(o[l++]=u>>12|224,o[l++]=u>>6&63|128,o[l++]=u&63|128)}else for(t=0;t<n.length;t++)o[t]=n[t]|0;return o}utils$i.toArray=toArray;function toHex(n){for(var e="",o=0;o<n.length;o++)e+=zero2(n[o].toString(16));return e}utils$i.toHex=toHex;function htonl(n){var e=n>>>24|n>>>8&65280|n<<8&16711680|(n&255)<<24;return e>>>0}utils$i.htonl=htonl;function toHex32(n,e){for(var o="",l=0;l<n.length;l++){var t=n[l];e==="little"&&(t=htonl(t)),o+=zero8(t.toString(16))}return o}utils$i.toHex32=toHex32;function zero2(n){return n.length===1?"0"+n:n}utils$i.zero2=zero2;function zero8(n){return n.length===7?"0"+n:n.length===6?"00"+n:n.length===5?"000"+n:n.length===4?"0000"+n:n.length===3?"00000"+n:n.length===2?"000000"+n:n.length===1?"0000000"+n:n}utils$i.zero8=zero8;function join32(n,e,o,l){var t=o-e;assert$b(t%4===0);for(var u=new Array(t/4),h=0,v=e;h<u.length;h++,v+=4){var w;l==="big"?w=n[v]<<24|n[v+1]<<16|n[v+2]<<8|n[v+3]:w=n[v+3]<<24|n[v+2]<<16|n[v+1]<<8|n[v],u[h]=w>>>0}return u}utils$i.join32=join32;function split32(n,e){for(var o=new Array(n.length*4),l=0,t=0;l<n.length;l++,t+=4){var u=n[l];e==="big"?(o[t]=u>>>24,o[t+1]=u>>>16&255,o[t+2]=u>>>8&255,o[t+3]=u&255):(o[t+3]=u>>>24,o[t+2]=u>>>16&255,o[t+1]=u>>>8&255,o[t]=u&255)}return o}utils$i.split32=split32;function rotr32$1(n,e){return n>>>e|n<<32-e}utils$i.rotr32=rotr32$1;function rotl32$2(n,e){return n<<e|n>>>32-e}utils$i.rotl32=rotl32$2;function sum32$3(n,e){return n+e>>>0}utils$i.sum32=sum32$3;function sum32_3$1(n,e,o){return n+e+o>>>0}utils$i.sum32_3=sum32_3$1;function sum32_4$2(n,e,o,l){return n+e+o+l>>>0}utils$i.sum32_4=sum32_4$2;function sum32_5$2(n,e,o,l,t){return n+e+o+l+t>>>0}utils$i.sum32_5=sum32_5$2;function sum64$1(n,e,o,l){var t=n[e],u=n[e+1],h=l+u>>>0,v=(h<l?1:0)+o+t;n[e]=v>>>0,n[e+1]=h}utils$i.sum64=sum64$1;function sum64_hi$1(n,e,o,l){var t=e+l>>>0,u=(t<e?1:0)+n+o;return u>>>0}utils$i.sum64_hi=sum64_hi$1;function sum64_lo$1(n,e,o,l){var t=e+l;return t>>>0}utils$i.sum64_lo=sum64_lo$1;function sum64_4_hi$1(n,e,o,l,t,u,h,v){var w=0,A=e;A=A+l>>>0,w+=A<e?1:0,A=A+u>>>0,w+=A<u?1:0,A=A+v>>>0,w+=A<v?1:0;var E=n+o+t+h+w;return E>>>0}utils$i.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(n,e,o,l,t,u,h,v){var w=e+l+u+v;return w>>>0}utils$i.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(n,e,o,l,t,u,h,v,w,A){var E=0,C=e;C=C+l>>>0,E+=C<e?1:0,C=C+u>>>0,E+=C<u?1:0,C=C+v>>>0,E+=C<v?1:0,C=C+A>>>0,E+=C<A?1:0;var M=n+o+t+h+w+E;return M>>>0}utils$i.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(n,e,o,l,t,u,h,v,w,A){var E=e+l+u+v+A;return E>>>0}utils$i.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(n,e,o){var l=e<<32-o|n>>>o;return l>>>0}utils$i.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(n,e,o){var l=n<<32-o|e>>>o;return l>>>0}utils$i.rotr64_lo=rotr64_lo$1;function shr64_hi$1(n,e,o){return n>>>o}utils$i.shr64_hi=shr64_hi$1;function shr64_lo$1(n,e,o){var l=n<<32-o|e>>>o;return l>>>0}utils$i.shr64_lo=shr64_lo$1;var common$6={},utils$h=utils$i,assert$a=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$6.BlockHash=BlockHash$4,BlockHash$4.prototype.update=function(e,o){if(e=utils$h.toArray(e,o),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var l=e.length%this._delta8;this.pending=e.slice(e.length-l,e.length),this.pending.length===0&&(this.pending=null),e=utils$h.join32(e,0,e.length-l,this.endian);for(var t=0;t<e.length;t+=this._delta32)this._update(e,t,t+this._delta32)}return this},BlockHash$4.prototype.digest=function(e){return this.update(this._pad()),assert$a(this.pending===null),this._digest(e)},BlockHash$4.prototype._pad=function(){var e=this.pendingTotal,o=this._delta8,l=o-(e+this.padLength)%o,t=new Array(l+this.padLength);t[0]=128;for(var u=1;u<l;u++)t[u]=0;if(e<<=3,this.endian==="big"){for(var h=8;h<this.padLength;h++)t[u++]=0;t[u++]=0,t[u++]=0,t[u++]=0,t[u++]=0,t[u++]=e>>>24&255,t[u++]=e>>>16&255,t[u++]=e>>>8&255,t[u++]=e&255}else for(t[u++]=e&255,t[u++]=e>>>8&255,t[u++]=e>>>16&255,t[u++]=e>>>24&255,t[u++]=0,t[u++]=0,t[u++]=0,t[u++]=0,h=8;h<this.padLength;h++)t[u++]=0;return t};var sha={},common$5={},utils$g=utils$i,rotr32=utils$g.rotr32;function ft_1$1(n,e,o,l){if(n===0)return ch32$1(e,o,l);if(n===1||n===3)return p32(e,o,l);if(n===2)return maj32$1(e,o,l)}common$5.ft_1=ft_1$1;function ch32$1(n,e,o){return n&e^~n&o}common$5.ch32=ch32$1;function maj32$1(n,e,o){return n&e^n&o^e&o}common$5.maj32=maj32$1;function p32(n,e,o){return n^e^o}common$5.p32=p32;function s0_256$1(n){return rotr32(n,2)^rotr32(n,13)^rotr32(n,22)}common$5.s0_256=s0_256$1;function s1_256$1(n){return rotr32(n,6)^rotr32(n,11)^rotr32(n,25)}common$5.s1_256=s1_256$1;function g0_256$1(n){return rotr32(n,7)^rotr32(n,18)^n>>>3}common$5.g0_256=g0_256$1;function g1_256$1(n){return rotr32(n,17)^rotr32(n,19)^n>>>10}common$5.g1_256=g1_256$1;var utils$f=utils$i,common$4=common$6,shaCommon$1=common$5,rotl32$1=utils$f.rotl32,sum32$2=utils$f.sum32,sum32_5$1=utils$f.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$4.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$f.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512,SHA1.outSize=160,SHA1.hmacStrength=80,SHA1.padLength=64,SHA1.prototype._update=function(e,o){for(var l=this.W,t=0;t<16;t++)l[t]=e[o+t];for(;t<l.length;t++)l[t]=rotl32$1(l[t-3]^l[t-8]^l[t-14]^l[t-16],1);var u=this.h[0],h=this.h[1],v=this.h[2],w=this.h[3],A=this.h[4];for(t=0;t<l.length;t++){var E=~~(t/20),C=sum32_5$1(rotl32$1(u,5),ft_1(E,h,v,w),A,l[t],sha1_K[E]);A=w,w=v,v=rotl32$1(h,30),h=u,u=C}this.h[0]=sum32$2(this.h[0],u),this.h[1]=sum32$2(this.h[1],h),this.h[2]=sum32$2(this.h[2],v),this.h[3]=sum32$2(this.h[3],w),this.h[4]=sum32$2(this.h[4],A)},SHA1.prototype._digest=function(e){return e==="hex"?utils$f.toHex32(this.h,"big"):utils$f.split32(this.h,"big")};var utils$e=utils$i,common$3=common$6,shaCommon=common$5,assert$9=minimalisticAssert,sum32$1=utils$e.sum32,sum32_4$1=utils$e.sum32_4,sum32_5=utils$e.sum32_5,ch32=shaCommon.ch32,maj32=shaCommon.maj32,s0_256=shaCommon.s0_256,s1_256=shaCommon.s1_256,g0_256=shaCommon.g0_256,g1_256=shaCommon.g1_256,BlockHash$2=common$3.BlockHash,sha256_K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function SHA256$1(){if(!(this instanceof SHA256$1))return new SHA256$1;BlockHash$2.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=sha256_K,this.W=new Array(64)}utils$e.inherits(SHA256$1,BlockHash$2);var _256=SHA256$1;SHA256$1.blockSize=512,SHA256$1.outSize=256,SHA256$1.hmacStrength=192,SHA256$1.padLength=64,SHA256$1.prototype._update=function(e,o){for(var l=this.W,t=0;t<16;t++)l[t]=e[o+t];for(;t<l.length;t++)l[t]=sum32_4$1(g1_256(l[t-2]),l[t-7],g0_256(l[t-15]),l[t-16]);var u=this.h[0],h=this.h[1],v=this.h[2],w=this.h[3],A=this.h[4],E=this.h[5],C=this.h[6],M=this.h[7];for(assert$9(this.k.length===l.length),t=0;t<l.length;t++){var P=sum32_5(M,s1_256(A),ch32(A,E,C),this.k[t],l[t]),I=sum32$1(s0_256(u),maj32(u,h,v));M=C,C=E,E=A,A=sum32$1(w,P),w=v,v=h,h=u,u=sum32$1(P,I)}this.h[0]=sum32$1(this.h[0],u),this.h[1]=sum32$1(this.h[1],h),this.h[2]=sum32$1(this.h[2],v),this.h[3]=sum32$1(this.h[3],w),this.h[4]=sum32$1(this.h[4],A),this.h[5]=sum32$1(this.h[5],E),this.h[6]=sum32$1(this.h[6],C),this.h[7]=sum32$1(this.h[7],M)},SHA256$1.prototype._digest=function(e){return e==="hex"?utils$e.toHex32(this.h,"big"):utils$e.split32(this.h,"big")};var utils$d=utils$i,SHA256=_256;function SHA224(){if(!(this instanceof SHA224))return new SHA224;SHA256.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}utils$d.inherits(SHA224,SHA256);var _224=SHA224;SHA224.blockSize=512,SHA224.outSize=224,SHA224.hmacStrength=192,SHA224.padLength=64,SHA224.prototype._digest=function(e){return e==="hex"?utils$d.toHex32(this.h.slice(0,7),"big"):utils$d.split32(this.h.slice(0,7),"big")};var utils$c=utils$i,common$2=common$6,assert$8=minimalisticAssert,rotr64_hi=utils$c.rotr64_hi,rotr64_lo=utils$c.rotr64_lo,shr64_hi=utils$c.shr64_hi,shr64_lo=utils$c.shr64_lo,sum64=utils$c.sum64,sum64_hi=utils$c.sum64_hi,sum64_lo=utils$c.sum64_lo,sum64_4_hi=utils$c.sum64_4_hi,sum64_4_lo=utils$c.sum64_4_lo,sum64_5_hi=utils$c.sum64_5_hi,sum64_5_lo=utils$c.sum64_5_lo,BlockHash$1=common$2.BlockHash,sha512_K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function SHA512$1(){if(!(this instanceof SHA512$1))return new SHA512$1;BlockHash$1.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=sha512_K,this.W=new Array(160)}utils$c.inherits(SHA512$1,BlockHash$1);var _512=SHA512$1;SHA512$1.blockSize=1024,SHA512$1.outSize=512,SHA512$1.hmacStrength=192,SHA512$1.padLength=128,SHA512$1.prototype._prepareBlock=function(e,o){for(var l=this.W,t=0;t<32;t++)l[t]=e[o+t];for(;t<l.length;t+=2){var u=g1_512_hi(l[t-4],l[t-3]),h=g1_512_lo(l[t-4],l[t-3]),v=l[t-14],w=l[t-13],A=g0_512_hi(l[t-30],l[t-29]),E=g0_512_lo(l[t-30],l[t-29]),C=l[t-32],M=l[t-31];l[t]=sum64_4_hi(u,h,v,w,A,E,C,M),l[t+1]=sum64_4_lo(u,h,v,w,A,E,C,M)}},SHA512$1.prototype._update=function(e,o){this._prepareBlock(e,o);var l=this.W,t=this.h[0],u=this.h[1],h=this.h[2],v=this.h[3],w=this.h[4],A=this.h[5],E=this.h[6],C=this.h[7],M=this.h[8],P=this.h[9],I=this.h[10],j=this.h[11],B=this.h[12],F=this.h[13],N=this.h[14],ee=this.h[15];assert$8(this.k.length===l.length);for(var Z=0;Z<l.length;Z+=2){var re=N,fe=ee,V=s1_512_hi(M,P),le=s1_512_lo(M,P),he=ch64_hi(M,P,I,j,B),ye=ch64_lo(M,P,I,j,B,F),L=this.k[Z],p=this.k[Z+1],y=l[Z],S=l[Z+1],c=sum64_5_hi(re,fe,V,le,he,ye,L,p,y,S),m=sum64_5_lo(re,fe,V,le,he,ye,L,p,y,S);re=s0_512_hi(t,u),fe=s0_512_lo(t,u),V=maj64_hi(t,u,h,v,w),le=maj64_lo(t,u,h,v,w,A);var x=sum64_hi(re,fe,V,le),T=sum64_lo(re,fe,V,le);N=B,ee=F,B=I,F=j,I=M,j=P,M=sum64_hi(E,C,c,m),P=sum64_lo(C,C,c,m),E=w,C=A,w=h,A=v,h=t,v=u,t=sum64_hi(c,m,x,T),u=sum64_lo(c,m,x,T)}sum64(this.h,0,t,u),sum64(this.h,2,h,v),sum64(this.h,4,w,A),sum64(this.h,6,E,C),sum64(this.h,8,M,P),sum64(this.h,10,I,j),sum64(this.h,12,B,F),sum64(this.h,14,N,ee)},SHA512$1.prototype._digest=function(e){return e==="hex"?utils$c.toHex32(this.h,"big"):utils$c.split32(this.h,"big")};function ch64_hi(n,e,o,l,t){var u=n&o^~n&t;return u<0&&(u+=4294967296),u}function ch64_lo(n,e,o,l,t,u){var h=e&l^~e&u;return h<0&&(h+=4294967296),h}function maj64_hi(n,e,o,l,t){var u=n&o^n&t^o&t;return u<0&&(u+=4294967296),u}function maj64_lo(n,e,o,l,t,u){var h=e&l^e&u^l&u;return h<0&&(h+=4294967296),h}function s0_512_hi(n,e){var o=rotr64_hi(n,e,28),l=rotr64_hi(e,n,2),t=rotr64_hi(e,n,7),u=o^l^t;return u<0&&(u+=4294967296),u}function s0_512_lo(n,e){var o=rotr64_lo(n,e,28),l=rotr64_lo(e,n,2),t=rotr64_lo(e,n,7),u=o^l^t;return u<0&&(u+=4294967296),u}function s1_512_hi(n,e){var o=rotr64_hi(n,e,14),l=rotr64_hi(n,e,18),t=rotr64_hi(e,n,9),u=o^l^t;return u<0&&(u+=4294967296),u}function s1_512_lo(n,e){var o=rotr64_lo(n,e,14),l=rotr64_lo(n,e,18),t=rotr64_lo(e,n,9),u=o^l^t;return u<0&&(u+=4294967296),u}function g0_512_hi(n,e){var o=rotr64_hi(n,e,1),l=rotr64_hi(n,e,8),t=shr64_hi(n,e,7),u=o^l^t;return u<0&&(u+=4294967296),u}function g0_512_lo(n,e){var o=rotr64_lo(n,e,1),l=rotr64_lo(n,e,8),t=shr64_lo(n,e,7),u=o^l^t;return u<0&&(u+=4294967296),u}function g1_512_hi(n,e){var o=rotr64_hi(n,e,19),l=rotr64_hi(e,n,29),t=shr64_hi(n,e,6),u=o^l^t;return u<0&&(u+=4294967296),u}function g1_512_lo(n,e){var o=rotr64_lo(n,e,19),l=rotr64_lo(e,n,29),t=shr64_lo(n,e,6),u=o^l^t;return u<0&&(u+=4294967296),u}var utils$b=utils$i,SHA512=_512;function SHA384(){if(!(this instanceof SHA384))return new SHA384;SHA512.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}utils$b.inherits(SHA384,SHA512);var _384=SHA384;SHA384.blockSize=1024,SHA384.outSize=384,SHA384.hmacStrength=192,SHA384.padLength=128,SHA384.prototype._digest=function(e){return e==="hex"?utils$b.toHex32(this.h.slice(0,12),"big"):utils$b.split32(this.h.slice(0,12),"big")},sha.sha1=_1,sha.sha224=_224,sha.sha256=_256,sha.sha384=_384,sha.sha512=_512;var ripemd={},utils$a=utils$i,common$1=common$6,rotl32=utils$a.rotl32,sum32=utils$a.sum32,sum32_3=utils$a.sum32_3,sum32_4=utils$a.sum32_4,BlockHash=common$1.BlockHash;function RIPEMD160(){if(!(this instanceof RIPEMD160))return new RIPEMD160;BlockHash.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}utils$a.inherits(RIPEMD160,BlockHash),ripemd.ripemd160=RIPEMD160,RIPEMD160.blockSize=512,RIPEMD160.outSize=160,RIPEMD160.hmacStrength=192,RIPEMD160.padLength=64,RIPEMD160.prototype._update=function(e,o){for(var l=this.h[0],t=this.h[1],u=this.h[2],h=this.h[3],v=this.h[4],w=l,A=t,E=u,C=h,M=v,P=0;P<80;P++){var I=sum32(rotl32(sum32_4(l,f(P,t,u,h),e[r[P]+o],K(P)),s[P]),v);l=v,v=h,h=rotl32(u,10),u=t,t=I,I=sum32(rotl32(sum32_4(w,f(79-P,A,E,C),e[rh[P]+o],Kh(P)),sh[P]),M),w=M,M=C,C=rotl32(E,10),E=A,A=I}I=sum32_3(this.h[1],u,C),this.h[1]=sum32_3(this.h[2],h,M),this.h[2]=sum32_3(this.h[3],v,w),this.h[3]=sum32_3(this.h[4],l,A),this.h[4]=sum32_3(this.h[0],t,E),this.h[0]=I},RIPEMD160.prototype._digest=function(e){return e==="hex"?utils$a.toHex32(this.h,"little"):utils$a.split32(this.h,"little")};function f(n,e,o,l){return n<=15?e^o^l:n<=31?e&o|~e&l:n<=47?(e|~o)^l:n<=63?e&l|o&~l:e^(o|~l)}function K(n){return n<=15?0:n<=31?1518500249:n<=47?1859775393:n<=63?2400959708:2840853838}function Kh(n){return n<=15?1352829926:n<=31?1548603684:n<=47?1836072691:n<=63?2053994217:0}var r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],rh=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sh=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],utils$9=utils$i,assert$7=minimalisticAssert;function Hmac(n,e,o){if(!(this instanceof Hmac))return new Hmac(n,e,o);this.Hash=n,this.blockSize=n.blockSize/8,this.outSize=n.outSize/8,this.inner=null,this.outer=null,this._init(utils$9.toArray(e,o))}var hmac=Hmac;Hmac.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),assert$7(e.length<=this.blockSize);for(var o=e.length;o<this.blockSize;o++)e.push(0);for(o=0;o<e.length;o++)e[o]^=54;for(this.inner=new this.Hash().update(e),o=0;o<e.length;o++)e[o]^=106;this.outer=new this.Hash().update(e)},Hmac.prototype.update=function(e,o){return this.inner.update(e,o),this},Hmac.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},function(n){var e=n;e.utils=utils$i,e.common=common$6,e.sha=sha,e.ripemd=ripemd,e.hmac=hmac,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(hash$2);var secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1}(function(n){var e=n,o=hash$2,l=curve,t=utils$o,u=t.assert;function h(A){A.type==="short"?this.curve=new l.short(A):A.type==="edwards"?this.curve=new l.edwards(A):this.curve=new l.mont(A),this.g=this.curve.g,this.n=this.curve.n,this.hash=A.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=h;function v(A,E){Object.defineProperty(e,A,{configurable:!0,enumerable:!0,get:function(){var C=new h(E);return Object.defineProperty(e,A,{configurable:!0,enumerable:!0,value:C}),C}})}v("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),v("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),v("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),v("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),v("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),v("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),v("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var w;try{w=requireSecp256k1()}catch{w=void 0}v("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",w]})})(curves$1);var hash$1=hash$2,utils$8=utils$n,assert$6=minimalisticAssert;function HmacDRBG(n){if(!(this instanceof HmacDRBG))return new HmacDRBG(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=utils$8.toArray(n.entropy,n.entropyEnc||"hex"),o=utils$8.toArray(n.nonce,n.nonceEnc||"hex"),l=utils$8.toArray(n.pers,n.persEnc||"hex");assert$6(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,o,l)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(e,o,l){var t=e.concat(o).concat(l);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var u=0;u<this.V.length;u++)this.K[u]=0,this.V[u]=1;this._update(t),this._reseed=1,this.reseedInterval=281474976710656},HmacDRBG.prototype._hmac=function(){return new hash$1.hmac(this.hash,this.K)},HmacDRBG.prototype._update=function(e){var o=this._hmac().update(this.V).update([0]);e&&(o=o.update(e)),this.K=o.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},HmacDRBG.prototype.reseed=function(e,o,l,t){typeof o!="string"&&(t=l,l=o,o=null),e=utils$8.toArray(e,o),l=utils$8.toArray(l,t),assert$6(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(l||[])),this._reseed=1},HmacDRBG.prototype.generate=function(e,o,l,t){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof o!="string"&&(t=l,l=o,o=null),l&&(l=utils$8.toArray(l,t||"hex"),this._update(l));for(var u=[];u.length<e;)this.V=this._hmac().update(this.V).digest(),u=u.concat(this.V);var h=u.slice(0,e);return this._update(l),this._reseed++,utils$8.encode(h,o)};var BN$5=bnExports$3,utils$7=utils$o,assert$5=utils$7.assert;function KeyPair$2(n,e){this.ec=n,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var key$2=KeyPair$2;KeyPair$2.fromPublic=function(e,o,l){return o instanceof KeyPair$2?o:new KeyPair$2(e,{pub:o,pubEnc:l})},KeyPair$2.fromPrivate=function(e,o,l){return o instanceof KeyPair$2?o:new KeyPair$2(e,{priv:o,privEnc:l})},KeyPair$2.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},KeyPair$2.prototype.getPublic=function(e,o){return typeof e=="string"&&(o=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),o?this.pub.encode(o,e):this.pub},KeyPair$2.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv},KeyPair$2.prototype._importPrivate=function(e,o){this.priv=new BN$5(e,o||16),this.priv=this.priv.umod(this.ec.curve.n)},KeyPair$2.prototype._importPublic=function(e,o){if(e.x||e.y){this.ec.curve.type==="mont"?assert$5(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&assert$5(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,o)},KeyPair$2.prototype.derive=function(e){return e.validate()||assert$5(e.validate(),"public point not validated"),e.mul(this.priv).getX()},KeyPair$2.prototype.sign=function(e,o,l){return this.ec.sign(e,this,o,l)},KeyPair$2.prototype.verify=function(e,o){return this.ec.verify(e,o,this)},KeyPair$2.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var BN$4=bnExports$3,utils$6=utils$o,assert$4=utils$6.assert;function Signature$2(n,e){if(n instanceof Signature$2)return n;this._importDER(n,e)||(assert$4(n.r&&n.s,"Signature without r or s"),this.r=new BN$4(n.r,16),this.s=new BN$4(n.s,16),n.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=n.recoveryParam)}var signature$2=Signature$2;function Position(){this.place=0}function getLength(n,e){var o=n[e.place++];if(!(o&128))return o;var l=o&15;if(l===0||l>4||n[e.place]===0)return!1;for(var t=0,u=0,h=e.place;u<l;u++,h++)t<<=8,t|=n[h],t>>>=0;return t<=127?!1:(e.place=h,t)}function rmPadding(n){for(var e=0,o=n.length-1;!n[e]&&!(n[e+1]&128)&&e<o;)e++;return e===0?n:n.slice(e)}Signature$2.prototype._importDER=function(e,o){e=utils$6.toArray(e,o);var l=new Position;if(e[l.place++]!==48)return!1;var t=getLength(e,l);if(t===!1||t+l.place!==e.length||e[l.place++]!==2)return!1;var u=getLength(e,l);if(u===!1||e[l.place]&128)return!1;var h=e.slice(l.place,u+l.place);if(l.place+=u,e[l.place++]!==2)return!1;var v=getLength(e,l);if(v===!1||e.length!==v+l.place||e[l.place]&128)return!1;var w=e.slice(l.place,v+l.place);if(h[0]===0)if(h[1]&128)h=h.slice(1);else return!1;if(w[0]===0)if(w[1]&128)w=w.slice(1);else return!1;return this.r=new BN$4(h),this.s=new BN$4(w),this.recoveryParam=null,!0};function constructLength(n,e){if(e<128){n.push(e);return}var o=1+(Math.log(e)/Math.LN2>>>3);for(n.push(o|128);--o;)n.push(e>>>(o<<3)&255);n.push(e)}Signature$2.prototype.toDER=function(e){var o=this.r.toArray(),l=this.s.toArray();for(o[0]&128&&(o=[0].concat(o)),l[0]&128&&(l=[0].concat(l)),o=rmPadding(o),l=rmPadding(l);!l[0]&&!(l[1]&128);)l=l.slice(1);var t=[2];constructLength(t,o.length),t=t.concat(o),t.push(2),constructLength(t,l.length);var u=t.concat(l),h=[48];return constructLength(h,u.length),h=h.concat(u),utils$6.encode(h,e)};var ec$1,hasRequiredEc$1;function requireEc$1(){if(hasRequiredEc$1)return ec$1;hasRequiredEc$1=1;var n=bnExports$3,e=hmacDrbg,o=utils$o,l=curves$1,t=requireBrorand(),u=o.assert,h=key$2,v=signature$2;function w(A){if(!(this instanceof w))return new w(A);typeof A=="string"&&(u(Object.prototype.hasOwnProperty.call(l,A),"Unknown curve "+A),A=l[A]),A instanceof l.PresetCurve&&(A={curve:A}),this.curve=A.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=A.curve.g,this.g.precompute(A.curve.n.bitLength()+1),this.hash=A.hash||A.curve.hash}return ec$1=w,w.prototype.keyPair=function(E){return new h(this,E)},w.prototype.keyFromPrivate=function(E,C){return h.fromPrivate(this,E,C)},w.prototype.keyFromPublic=function(E,C){return h.fromPublic(this,E,C)},w.prototype.genKeyPair=function(E){E||(E={});for(var C=new e({hash:this.hash,pers:E.pers,persEnc:E.persEnc||"utf8",entropy:E.entropy||t(this.hash.hmacStrength),entropyEnc:E.entropy&&E.entropyEnc||"utf8",nonce:this.n.toArray()}),M=this.n.byteLength(),P=this.n.sub(new n(2));;){var I=new n(C.generate(M));if(!(I.cmp(P)>0))return I.iaddn(1),this.keyFromPrivate(I)}},w.prototype._truncateToN=function(E,C){var M=E.byteLength()*8-this.n.bitLength();return M>0&&(E=E.ushrn(M)),!C&&E.cmp(this.n)>=0?E.sub(this.n):E},w.prototype.sign=function(E,C,M,P){typeof M=="object"&&(P=M,M=null),P||(P={}),C=this.keyFromPrivate(C,M),E=this._truncateToN(new n(E,16));for(var I=this.n.byteLength(),j=C.getPrivate().toArray("be",I),B=E.toArray("be",I),F=new e({hash:this.hash,entropy:j,nonce:B,pers:P.pers,persEnc:P.persEnc||"utf8"}),N=this.n.sub(new n(1)),ee=0;;ee++){var Z=P.k?P.k(ee):new n(F.generate(this.n.byteLength()));if(Z=this._truncateToN(Z,!0),!(Z.cmpn(1)<=0||Z.cmp(N)>=0)){var re=this.g.mul(Z);if(!re.isInfinity()){var fe=re.getX(),V=fe.umod(this.n);if(V.cmpn(0)!==0){var le=Z.invm(this.n).mul(V.mul(C.getPrivate()).iadd(E));if(le=le.umod(this.n),le.cmpn(0)!==0){var he=(re.getY().isOdd()?1:0)|(fe.cmp(V)!==0?2:0);return P.canonical&&le.cmp(this.nh)>0&&(le=this.n.sub(le),he^=1),new v({r:V,s:le,recoveryParam:he})}}}}}},w.prototype.verify=function(E,C,M,P){E=this._truncateToN(new n(E,16)),M=this.keyFromPublic(M,P),C=new v(C,"hex");var I=C.r,j=C.s;if(I.cmpn(1)<0||I.cmp(this.n)>=0||j.cmpn(1)<0||j.cmp(this.n)>=0)return!1;var B=j.invm(this.n),F=B.mul(E).umod(this.n),N=B.mul(I).umod(this.n),ee;return this.curve._maxwellTrick?(ee=this.g.jmulAdd(F,M.getPublic(),N),ee.isInfinity()?!1:ee.eqXToP(I)):(ee=this.g.mulAdd(F,M.getPublic(),N),ee.isInfinity()?!1:ee.getX().umod(this.n).cmp(I)===0)},w.prototype.recoverPubKey=function(A,E,C,M){u((3&C)===C,"The recovery param is more than two bits"),E=new v(E,M);var P=this.n,I=new n(A),j=E.r,B=E.s,F=C&1,N=C>>1;if(j.cmp(this.curve.p.umod(this.curve.n))>=0&&N)throw new Error("Unable to find sencond key candinate");N?j=this.curve.pointFromX(j.add(this.curve.n),F):j=this.curve.pointFromX(j,F);var ee=E.r.invm(P),Z=P.sub(I).mul(ee).umod(P),re=B.mul(ee).umod(P);return this.g.mulAdd(Z,j,re)},w.prototype.getKeyRecoveryParam=function(A,E,C,M){if(E=new v(E,M),E.recoveryParam!==null)return E.recoveryParam;for(var P=0;P<4;P++){var I;try{I=this.recoverPubKey(A,E,P)}catch{continue}if(I.eq(C))return P}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$5=utils$o,assert$3=utils$5.assert,parseBytes$2=utils$5.parseBytes,cachedProperty$1=utils$5.cachedProperty;function KeyPair$1(n,e){this.eddsa=n,this._secret=parseBytes$2(e.secret),n.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=parseBytes$2(e.pub)}KeyPair$1.fromPublic=function(e,o){return o instanceof KeyPair$1?o:new KeyPair$1(e,{pub:o})},KeyPair$1.fromSecret=function(e,o){return o instanceof KeyPair$1?o:new KeyPair$1(e,{secret:o})},KeyPair$1.prototype.secret=function(){return this._secret},cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),cachedProperty$1(KeyPair$1,"privBytes",function(){var e=this.eddsa,o=this.hash(),l=e.encodingLength-1,t=o.slice(0,e.encodingLength);return t[0]&=248,t[l]&=127,t[l]|=64,t}),cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),KeyPair$1.prototype.sign=function(e){return assert$3(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},KeyPair$1.prototype.verify=function(e,o){return this.eddsa.verify(e,o,this)},KeyPair$1.prototype.getSecret=function(e){return assert$3(this._secret,"KeyPair is public only"),utils$5.encode(this.secret(),e)},KeyPair$1.prototype.getPublic=function(e){return utils$5.encode(this.pubBytes(),e)};var key$1=KeyPair$1,BN$3=bnExports$3,utils$4=utils$o,assert$2=utils$4.assert,cachedProperty=utils$4.cachedProperty,parseBytes$1=utils$4.parseBytes;function Signature$1(n,e){this.eddsa=n,typeof e!="object"&&(e=parseBytes$1(e)),Array.isArray(e)&&(assert$2(e.length===n.encodingLength*2,"Signature has invalid size"),e={R:e.slice(0,n.encodingLength),S:e.slice(n.encodingLength)}),assert$2(e.R&&e.S,"Signature without R or S"),n.isPoint(e.R)&&(this._R=e.R),e.S instanceof BN$3&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Signature$1.prototype.toHex=function(){return utils$4.encode(this.toBytes(),"hex").toUpperCase()};var signature$1=Signature$1,hash=hash$2,curves=curves$1,utils$3=utils$o,assert$1=utils$3.assert,parseBytes=utils$3.parseBytes,KeyPair=key$1,Signature=signature$1;function EDDSA(n){if(assert$1(n==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(n);n=curves[n].curve,this.curve=n,this.g=n.g,this.g.precompute(n.n.bitLength()+1),this.pointClass=n.point().constructor,this.encodingLength=Math.ceil(n.n.bitLength()/8),this.hash=hash.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(e,o){e=parseBytes(e);var l=this.keyFromSecret(o),t=this.hashInt(l.messagePrefix(),e),u=this.g.mul(t),h=this.encodePoint(u),v=this.hashInt(h,l.pubBytes(),e).mul(l.priv()),w=t.add(v).umod(this.curve.n);return this.makeSignature({R:u,S:w,Rencoded:h})},EDDSA.prototype.verify=function(e,o,l){if(e=parseBytes(e),o=this.makeSignature(o),o.S().gte(o.eddsa.curve.n)||o.S().isNeg())return!1;var t=this.keyFromPublic(l),u=this.hashInt(o.Rencoded(),t.pubBytes(),e),h=this.g.mul(o.S()),v=o.R().add(t.pub().mul(u));return v.eq(h)},EDDSA.prototype.hashInt=function(){for(var e=this.hash(),o=0;o<arguments.length;o++)e.update(arguments[o]);return utils$3.intFromLE(e.digest()).umod(this.curve.n)},EDDSA.prototype.keyFromPublic=function(e){return KeyPair.fromPublic(this,e)},EDDSA.prototype.keyFromSecret=function(e){return KeyPair.fromSecret(this,e)},EDDSA.prototype.makeSignature=function(e){return e instanceof Signature?e:new Signature(this,e)},EDDSA.prototype.encodePoint=function(e){var o=e.getY().toArray("le",this.encodingLength);return o[this.encodingLength-1]|=e.getX().isOdd()?128:0,o},EDDSA.prototype.decodePoint=function(e){e=utils$3.parseBytes(e);var o=e.length-1,l=e.slice(0,o).concat(e[o]&-129),t=(e[o]&128)!==0,u=utils$3.intFromLE(l);return this.curve.pointFromY(u,t)},EDDSA.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},EDDSA.prototype.decodeInt=function(e){return utils$3.intFromLE(e)},EDDSA.prototype.isPoint=function(e){return e instanceof this.pointClass};var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,function(n){var e=n;e.version=require$$0$1.version,e.utils=utils$o,e.rand=requireBrorand(),e.curve=curve,e.curves=curves$1,e.ec=requireEc$1(),e.eddsa=eddsa}(elliptic)),elliptic}var asn1$3={},asn1$2={},bn$2={exports:{}};bn$2.exports,function(n){(function(e,o){function l(L,p){if(!L)throw new Error(p||"Assertion failed")}function t(L,p){L.super_=p;var y=function(){};y.prototype=p.prototype,L.prototype=new y,L.prototype.constructor=L}function u(L,p,y){if(u.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,L!==null&&((p==="le"||p==="be")&&(y=p,p=10),this._init(L||0,p||10,y||"be"))}typeof e=="object"?e.exports=u:o.BN=u,u.BN=u,u.wordSize=26;var h;try{typeof window<"u"&&typeof window.Buffer<"u"?h=window.Buffer:h=require$$0$2.Buffer}catch{}u.isBN=function(p){return p instanceof u?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===u.wordSize&&Array.isArray(p.words)},u.max=function(p,y){return p.cmp(y)>0?p:y},u.min=function(p,y){return p.cmp(y)<0?p:y},u.prototype._init=function(p,y,S){if(typeof p=="number")return this._initNumber(p,y,S);if(typeof p=="object")return this._initArray(p,y,S);y==="hex"&&(y=16),l(y===(y|0)&&y>=2&&y<=36),p=p.toString().replace(/\s+/g,"");var c=0;p[0]==="-"&&(c++,this.negative=1),c<p.length&&(y===16?this._parseHex(p,c,S):(this._parseBase(p,y,c),S==="le"&&this._initArray(this.toArray(),y,S)))},u.prototype._initNumber=function(p,y,S){p<0&&(this.negative=1,p=-p),p<67108864?(this.words=[p&67108863],this.length=1):p<4503599627370496?(this.words=[p&67108863,p/67108864&67108863],this.length=2):(l(p<9007199254740992),this.words=[p&67108863,p/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),y,S)},u.prototype._initArray=function(p,y,S){if(l(typeof p.length=="number"),p.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(p.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m,x,T=0;if(S==="be")for(c=p.length-1,m=0;c>=0;c-=3)x=p[c]|p[c-1]<<8|p[c-2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);else if(S==="le")for(c=0,m=0;c<p.length;c+=3)x=p[c]|p[c+1]<<8|p[c+2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);return this.strip()};function v(L,p){var y=L.charCodeAt(p);return y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:y-48&15}function w(L,p,y){var S=v(L,y);return y-1>=p&&(S|=v(L,y-1)<<4),S}u.prototype._parseHex=function(p,y,S){this.length=Math.ceil((p.length-y)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m=0,x=0,T;if(S==="be")for(c=p.length-1;c>=y;c-=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8;else{var b=p.length-y;for(c=b%2===0?y+1:y;c<p.length;c+=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8}this.strip()};function A(L,p,y,S){for(var c=0,m=Math.min(L.length,y),x=p;x<m;x++){var T=L.charCodeAt(x)-48;c*=S,T>=49?c+=T-49+10:T>=17?c+=T-17+10:c+=T}return c}u.prototype._parseBase=function(p,y,S){this.words=[0],this.length=1;for(var c=0,m=1;m<=67108863;m*=y)c++;c--,m=m/y|0;for(var x=p.length-S,T=x%c,b=Math.min(x,x-T)+S,d=0,k=S;k<b;k+=c)d=A(p,k,k+c,y),this.imuln(m),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(T!==0){var D=1;for(d=A(p,k,p.length,y),k=0;k<T;k++)D*=y;this.imuln(D),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}this.strip()},u.prototype.copy=function(p){p.words=new Array(this.length);for(var y=0;y<this.length;y++)p.words[y]=this.words[y];p.length=this.length,p.negative=this.negative,p.red=this.red},u.prototype.clone=function(){var p=new u(null);return this.copy(p),p},u.prototype._expand=function(p){for(;this.length<p;)this.words[this.length++]=0;return this},u.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},u.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(p,y){p=p||10,y=y|0||1;var S;if(p===16||p==="hex"){S="";for(var c=0,m=0,x=0;x<this.length;x++){var T=this.words[x],b=((T<<c|m)&16777215).toString(16);m=T>>>24-c&16777215,m!==0||x!==this.length-1?S=E[6-b.length]+b+S:S=b+S,c+=2,c>=26&&(c-=26,x--)}for(m!==0&&(S=m.toString(16)+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(p===(p|0)&&p>=2&&p<=36){var d=C[p],k=M[p];S="";var D=this.clone();for(D.negative=0;!D.isZero();){var O=D.modn(k).toString(p);D=D.idivn(k),D.isZero()?S=O+S:S=E[d-O.length]+O+S}for(this.isZero()&&(S="0"+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}l(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},u.prototype.toJSON=function(){return this.toString(16)},u.prototype.toBuffer=function(p,y){return l(typeof h<"u"),this.toArrayLike(h,p,y)},u.prototype.toArray=function(p,y){return this.toArrayLike(Array,p,y)},u.prototype.toArrayLike=function(p,y,S){var c=this.byteLength(),m=S||Math.max(1,c);l(c<=m,"byte array longer than desired length"),l(m>0,"Requested array length <= 0"),this.strip();var x=y==="le",T=new p(m),b,d,k=this.clone();if(x){for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[d]=b;for(;d<m;d++)T[d]=0}else{for(d=0;d<m-c;d++)T[d]=0;for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[m-d-1]=b}return T},Math.clz32?u.prototype._countBits=function(p){return 32-Math.clz32(p)}:u.prototype._countBits=function(p){var y=p,S=0;return y>=4096&&(S+=13,y>>>=13),y>=64&&(S+=7,y>>>=7),y>=8&&(S+=4,y>>>=4),y>=2&&(S+=2,y>>>=2),S+y},u.prototype._zeroBits=function(p){if(p===0)return 26;var y=p,S=0;return y&8191||(S+=13,y>>>=13),y&127||(S+=7,y>>>=7),y&15||(S+=4,y>>>=4),y&3||(S+=2,y>>>=2),y&1||S++,S},u.prototype.bitLength=function(){var p=this.words[this.length-1],y=this._countBits(p);return(this.length-1)*26+y};function P(L){for(var p=new Array(L.bitLength()),y=0;y<p.length;y++){var S=y/26|0,c=y%26;p[y]=(L.words[S]&1<<c)>>>c}return p}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,y=0;y<this.length;y++){var S=this._zeroBits(this.words[y]);if(p+=S,S!==26)break}return p},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(p){return this.negative!==0?this.abs().inotn(p).iaddn(1):this.clone()},u.prototype.fromTwos=function(p){return this.testn(p-1)?this.notn(p).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(p){for(;this.length<p.length;)this.words[this.length++]=0;for(var y=0;y<p.length;y++)this.words[y]=this.words[y]|p.words[y];return this.strip()},u.prototype.ior=function(p){return l((this.negative|p.negative)===0),this.iuor(p)},u.prototype.or=function(p){return this.length>p.length?this.clone().ior(p):p.clone().ior(this)},u.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},u.prototype.iuand=function(p){var y;this.length>p.length?y=p:y=this;for(var S=0;S<y.length;S++)this.words[S]=this.words[S]&p.words[S];return this.length=y.length,this.strip()},u.prototype.iand=function(p){return l((this.negative|p.negative)===0),this.iuand(p)},u.prototype.and=function(p){return this.length>p.length?this.clone().iand(p):p.clone().iand(this)},u.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},u.prototype.iuxor=function(p){var y,S;this.length>p.length?(y=this,S=p):(y=p,S=this);for(var c=0;c<S.length;c++)this.words[c]=y.words[c]^S.words[c];if(this!==y)for(;c<y.length;c++)this.words[c]=y.words[c];return this.length=y.length,this.strip()},u.prototype.ixor=function(p){return l((this.negative|p.negative)===0),this.iuxor(p)},u.prototype.xor=function(p){return this.length>p.length?this.clone().ixor(p):p.clone().ixor(this)},u.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},u.prototype.inotn=function(p){l(typeof p=="number"&&p>=0);var y=Math.ceil(p/26)|0,S=p%26;this._expand(y),S>0&&y--;for(var c=0;c<y;c++)this.words[c]=~this.words[c]&67108863;return S>0&&(this.words[c]=~this.words[c]&67108863>>26-S),this.strip()},u.prototype.notn=function(p){return this.clone().inotn(p)},u.prototype.setn=function(p,y){l(typeof p=="number"&&p>=0);var S=p/26|0,c=p%26;return this._expand(S+1),y?this.words[S]=this.words[S]|1<<c:this.words[S]=this.words[S]&~(1<<c),this.strip()},u.prototype.iadd=function(p){var y;if(this.negative!==0&&p.negative===0)return this.negative=0,y=this.isub(p),this.negative^=1,this._normSign();if(this.negative===0&&p.negative!==0)return p.negative=0,y=this.isub(p),p.negative=1,y._normSign();var S,c;this.length>p.length?(S=this,c=p):(S=p,c=this);for(var m=0,x=0;x<c.length;x++)y=(S.words[x]|0)+(c.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;for(;m!==0&&x<S.length;x++)y=(S.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;if(this.length=S.length,m!==0)this.words[this.length]=m,this.length++;else if(S!==this)for(;x<S.length;x++)this.words[x]=S.words[x];return this},u.prototype.add=function(p){var y;return p.negative!==0&&this.negative===0?(p.negative=0,y=this.sub(p),p.negative^=1,y):p.negative===0&&this.negative!==0?(this.negative=0,y=p.sub(this),this.negative=1,y):this.length>p.length?this.clone().iadd(p):p.clone().iadd(this)},u.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var y=this.iadd(p);return p.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var S=this.cmp(p);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,m;S>0?(c=this,m=p):(c=p,m=this);for(var x=0,T=0;T<m.length;T++)y=(c.words[T]|0)-(m.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;for(;x!==0&&T<c.length;T++)y=(c.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;if(x===0&&T<c.length&&c!==this)for(;T<c.length;T++)this.words[T]=c.words[T];return this.length=Math.max(this.length,T),c!==this&&(this.negative=1),this.strip()},u.prototype.sub=function(p){return this.clone().isub(p)};function I(L,p,y){y.negative=p.negative^L.negative;var S=L.length+p.length|0;y.length=S,S=S-1|0;var c=L.words[0]|0,m=p.words[0]|0,x=c*m,T=x&67108863,b=x/67108864|0;y.words[0]=T;for(var d=1;d<S;d++){for(var k=b>>>26,D=b&67108863,O=Math.min(d,p.length-1),Q=Math.max(0,d-L.length+1);Q<=O;Q++){var J=d-Q|0;c=L.words[J]|0,m=p.words[Q]|0,x=c*m+D,k+=x/67108864|0,D=x&67108863}y.words[d]=D|0,b=k|0}return b!==0?y.words[d]=b|0:y.length--,y.strip()}var j=function(p,y,S){var c=p.words,m=y.words,x=S.words,T=0,b,d,k,D=c[0]|0,O=D&8191,Q=D>>>13,J=c[1]|0,X=J&8191,U=J>>>13,z=c[2]|0,ie=z&8191,de=z>>>13,me=c[3]|0,pe=me&8191,qe=me>>>13,mt=c[4]|0,st=mt&8191,dt=mt>>>13,Tt=c[5]|0,lt=Tt&8191,Je=Tt>>>13,ht=c[6]|0,at=ht&8191,bt=ht>>>13,jt=c[7]|0,Ge=jt&8191,Qe=jt>>>13,Wt=c[8]|0,Et=Wt&8191,Ct=Wt>>>13,Kt=c[9]|0,Me=Kt&8191,te=Kt>>>13,_e=m[0]|0,je=_e&8191,We=_e>>>13,et=m[1]|0,Ye=et&8191,De=et>>>13,Ht=m[2]|0,Mt=Ht&8191,ge=Ht>>>13,Dt=m[3]|0,yt=Dt&8191,Ne=Dt>>>13,_t=m[4]|0,pt=_t&8191,Bt=_t>>>13,ur=m[5]|0,kt=ur&8191,Ut=ur>>>13,Wr=m[6]|0,zt=Wr&8191,Qt=Wr>>>13,$e=m[7]|0,be=$e&8191,ve=$e>>>13,se=m[8]|0,Pe=se&8191,ze=se>>>13,xt=m[9]|0,ot=xt&8191,wt=xt>>>13;S.negative=p.negative^y.negative,S.length=19,b=Math.imul(O,je),d=Math.imul(O,We),d=d+Math.imul(Q,je)|0,k=Math.imul(Q,We);var Yt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,b=Math.imul(X,je),d=Math.imul(X,We),d=d+Math.imul(U,je)|0,k=Math.imul(U,We),b=b+Math.imul(O,Ye)|0,d=d+Math.imul(O,De)|0,d=d+Math.imul(Q,Ye)|0,k=k+Math.imul(Q,De)|0;var Jt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,b=Math.imul(ie,je),d=Math.imul(ie,We),d=d+Math.imul(de,je)|0,k=Math.imul(de,We),b=b+Math.imul(X,Ye)|0,d=d+Math.imul(X,De)|0,d=d+Math.imul(U,Ye)|0,k=k+Math.imul(U,De)|0,b=b+Math.imul(O,Mt)|0,d=d+Math.imul(O,ge)|0,d=d+Math.imul(Q,Mt)|0,k=k+Math.imul(Q,ge)|0;var wr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(wr>>>26)|0,wr&=67108863,b=Math.imul(pe,je),d=Math.imul(pe,We),d=d+Math.imul(qe,je)|0,k=Math.imul(qe,We),b=b+Math.imul(ie,Ye)|0,d=d+Math.imul(ie,De)|0,d=d+Math.imul(de,Ye)|0,k=k+Math.imul(de,De)|0,b=b+Math.imul(X,Mt)|0,d=d+Math.imul(X,ge)|0,d=d+Math.imul(U,Mt)|0,k=k+Math.imul(U,ge)|0,b=b+Math.imul(O,yt)|0,d=d+Math.imul(O,Ne)|0,d=d+Math.imul(Q,yt)|0,k=k+Math.imul(Q,Ne)|0;var lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(lr>>>26)|0,lr&=67108863,b=Math.imul(st,je),d=Math.imul(st,We),d=d+Math.imul(dt,je)|0,k=Math.imul(dt,We),b=b+Math.imul(pe,Ye)|0,d=d+Math.imul(pe,De)|0,d=d+Math.imul(qe,Ye)|0,k=k+Math.imul(qe,De)|0,b=b+Math.imul(ie,Mt)|0,d=d+Math.imul(ie,ge)|0,d=d+Math.imul(de,Mt)|0,k=k+Math.imul(de,ge)|0,b=b+Math.imul(X,yt)|0,d=d+Math.imul(X,Ne)|0,d=d+Math.imul(U,yt)|0,k=k+Math.imul(U,Ne)|0,b=b+Math.imul(O,pt)|0,d=d+Math.imul(O,Bt)|0,d=d+Math.imul(Q,pt)|0,k=k+Math.imul(Q,Bt)|0;var Rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,b=Math.imul(lt,je),d=Math.imul(lt,We),d=d+Math.imul(Je,je)|0,k=Math.imul(Je,We),b=b+Math.imul(st,Ye)|0,d=d+Math.imul(st,De)|0,d=d+Math.imul(dt,Ye)|0,k=k+Math.imul(dt,De)|0,b=b+Math.imul(pe,Mt)|0,d=d+Math.imul(pe,ge)|0,d=d+Math.imul(qe,Mt)|0,k=k+Math.imul(qe,ge)|0,b=b+Math.imul(ie,yt)|0,d=d+Math.imul(ie,Ne)|0,d=d+Math.imul(de,yt)|0,k=k+Math.imul(de,Ne)|0,b=b+Math.imul(X,pt)|0,d=d+Math.imul(X,Bt)|0,d=d+Math.imul(U,pt)|0,k=k+Math.imul(U,Bt)|0,b=b+Math.imul(O,kt)|0,d=d+Math.imul(O,Ut)|0,d=d+Math.imul(Q,kt)|0,k=k+Math.imul(Q,Ut)|0;var vr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(vr>>>26)|0,vr&=67108863,b=Math.imul(at,je),d=Math.imul(at,We),d=d+Math.imul(bt,je)|0,k=Math.imul(bt,We),b=b+Math.imul(lt,Ye)|0,d=d+Math.imul(lt,De)|0,d=d+Math.imul(Je,Ye)|0,k=k+Math.imul(Je,De)|0,b=b+Math.imul(st,Mt)|0,d=d+Math.imul(st,ge)|0,d=d+Math.imul(dt,Mt)|0,k=k+Math.imul(dt,ge)|0,b=b+Math.imul(pe,yt)|0,d=d+Math.imul(pe,Ne)|0,d=d+Math.imul(qe,yt)|0,k=k+Math.imul(qe,Ne)|0,b=b+Math.imul(ie,pt)|0,d=d+Math.imul(ie,Bt)|0,d=d+Math.imul(de,pt)|0,k=k+Math.imul(de,Bt)|0,b=b+Math.imul(X,kt)|0,d=d+Math.imul(X,Ut)|0,d=d+Math.imul(U,kt)|0,k=k+Math.imul(U,Ut)|0,b=b+Math.imul(O,zt)|0,d=d+Math.imul(O,Qt)|0,d=d+Math.imul(Q,zt)|0,k=k+Math.imul(Q,Qt)|0;var dr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(dr>>>26)|0,dr&=67108863,b=Math.imul(Ge,je),d=Math.imul(Ge,We),d=d+Math.imul(Qe,je)|0,k=Math.imul(Qe,We),b=b+Math.imul(at,Ye)|0,d=d+Math.imul(at,De)|0,d=d+Math.imul(bt,Ye)|0,k=k+Math.imul(bt,De)|0,b=b+Math.imul(lt,Mt)|0,d=d+Math.imul(lt,ge)|0,d=d+Math.imul(Je,Mt)|0,k=k+Math.imul(Je,ge)|0,b=b+Math.imul(st,yt)|0,d=d+Math.imul(st,Ne)|0,d=d+Math.imul(dt,yt)|0,k=k+Math.imul(dt,Ne)|0,b=b+Math.imul(pe,pt)|0,d=d+Math.imul(pe,Bt)|0,d=d+Math.imul(qe,pt)|0,k=k+Math.imul(qe,Bt)|0,b=b+Math.imul(ie,kt)|0,d=d+Math.imul(ie,Ut)|0,d=d+Math.imul(de,kt)|0,k=k+Math.imul(de,Ut)|0,b=b+Math.imul(X,zt)|0,d=d+Math.imul(X,Qt)|0,d=d+Math.imul(U,zt)|0,k=k+Math.imul(U,Qt)|0,b=b+Math.imul(O,be)|0,d=d+Math.imul(O,ve)|0,d=d+Math.imul(Q,be)|0,k=k+Math.imul(Q,ve)|0;var Ir=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,b=Math.imul(Et,je),d=Math.imul(Et,We),d=d+Math.imul(Ct,je)|0,k=Math.imul(Ct,We),b=b+Math.imul(Ge,Ye)|0,d=d+Math.imul(Ge,De)|0,d=d+Math.imul(Qe,Ye)|0,k=k+Math.imul(Qe,De)|0,b=b+Math.imul(at,Mt)|0,d=d+Math.imul(at,ge)|0,d=d+Math.imul(bt,Mt)|0,k=k+Math.imul(bt,ge)|0,b=b+Math.imul(lt,yt)|0,d=d+Math.imul(lt,Ne)|0,d=d+Math.imul(Je,yt)|0,k=k+Math.imul(Je,Ne)|0,b=b+Math.imul(st,pt)|0,d=d+Math.imul(st,Bt)|0,d=d+Math.imul(dt,pt)|0,k=k+Math.imul(dt,Bt)|0,b=b+Math.imul(pe,kt)|0,d=d+Math.imul(pe,Ut)|0,d=d+Math.imul(qe,kt)|0,k=k+Math.imul(qe,Ut)|0,b=b+Math.imul(ie,zt)|0,d=d+Math.imul(ie,Qt)|0,d=d+Math.imul(de,zt)|0,k=k+Math.imul(de,Qt)|0,b=b+Math.imul(X,be)|0,d=d+Math.imul(X,ve)|0,d=d+Math.imul(U,be)|0,k=k+Math.imul(U,ve)|0,b=b+Math.imul(O,Pe)|0,d=d+Math.imul(O,ze)|0,d=d+Math.imul(Q,Pe)|0,k=k+Math.imul(Q,ze)|0;var kr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(kr>>>26)|0,kr&=67108863,b=Math.imul(Me,je),d=Math.imul(Me,We),d=d+Math.imul(te,je)|0,k=Math.imul(te,We),b=b+Math.imul(Et,Ye)|0,d=d+Math.imul(Et,De)|0,d=d+Math.imul(Ct,Ye)|0,k=k+Math.imul(Ct,De)|0,b=b+Math.imul(Ge,Mt)|0,d=d+Math.imul(Ge,ge)|0,d=d+Math.imul(Qe,Mt)|0,k=k+Math.imul(Qe,ge)|0,b=b+Math.imul(at,yt)|0,d=d+Math.imul(at,Ne)|0,d=d+Math.imul(bt,yt)|0,k=k+Math.imul(bt,Ne)|0,b=b+Math.imul(lt,pt)|0,d=d+Math.imul(lt,Bt)|0,d=d+Math.imul(Je,pt)|0,k=k+Math.imul(Je,Bt)|0,b=b+Math.imul(st,kt)|0,d=d+Math.imul(st,Ut)|0,d=d+Math.imul(dt,kt)|0,k=k+Math.imul(dt,Ut)|0,b=b+Math.imul(pe,zt)|0,d=d+Math.imul(pe,Qt)|0,d=d+Math.imul(qe,zt)|0,k=k+Math.imul(qe,Qt)|0,b=b+Math.imul(ie,be)|0,d=d+Math.imul(ie,ve)|0,d=d+Math.imul(de,be)|0,k=k+Math.imul(de,ve)|0,b=b+Math.imul(X,Pe)|0,d=d+Math.imul(X,ze)|0,d=d+Math.imul(U,Pe)|0,k=k+Math.imul(U,ze)|0,b=b+Math.imul(O,ot)|0,d=d+Math.imul(O,wt)|0,d=d+Math.imul(Q,ot)|0,k=k+Math.imul(Q,wt)|0;var Fr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,b=Math.imul(Me,Ye),d=Math.imul(Me,De),d=d+Math.imul(te,Ye)|0,k=Math.imul(te,De),b=b+Math.imul(Et,Mt)|0,d=d+Math.imul(Et,ge)|0,d=d+Math.imul(Ct,Mt)|0,k=k+Math.imul(Ct,ge)|0,b=b+Math.imul(Ge,yt)|0,d=d+Math.imul(Ge,Ne)|0,d=d+Math.imul(Qe,yt)|0,k=k+Math.imul(Qe,Ne)|0,b=b+Math.imul(at,pt)|0,d=d+Math.imul(at,Bt)|0,d=d+Math.imul(bt,pt)|0,k=k+Math.imul(bt,Bt)|0,b=b+Math.imul(lt,kt)|0,d=d+Math.imul(lt,Ut)|0,d=d+Math.imul(Je,kt)|0,k=k+Math.imul(Je,Ut)|0,b=b+Math.imul(st,zt)|0,d=d+Math.imul(st,Qt)|0,d=d+Math.imul(dt,zt)|0,k=k+Math.imul(dt,Qt)|0,b=b+Math.imul(pe,be)|0,d=d+Math.imul(pe,ve)|0,d=d+Math.imul(qe,be)|0,k=k+Math.imul(qe,ve)|0,b=b+Math.imul(ie,Pe)|0,d=d+Math.imul(ie,ze)|0,d=d+Math.imul(de,Pe)|0,k=k+Math.imul(de,ze)|0,b=b+Math.imul(X,ot)|0,d=d+Math.imul(X,wt)|0,d=d+Math.imul(U,ot)|0,k=k+Math.imul(U,wt)|0;var jr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(jr>>>26)|0,jr&=67108863,b=Math.imul(Me,Mt),d=Math.imul(Me,ge),d=d+Math.imul(te,Mt)|0,k=Math.imul(te,ge),b=b+Math.imul(Et,yt)|0,d=d+Math.imul(Et,Ne)|0,d=d+Math.imul(Ct,yt)|0,k=k+Math.imul(Ct,Ne)|0,b=b+Math.imul(Ge,pt)|0,d=d+Math.imul(Ge,Bt)|0,d=d+Math.imul(Qe,pt)|0,k=k+Math.imul(Qe,Bt)|0,b=b+Math.imul(at,kt)|0,d=d+Math.imul(at,Ut)|0,d=d+Math.imul(bt,kt)|0,k=k+Math.imul(bt,Ut)|0,b=b+Math.imul(lt,zt)|0,d=d+Math.imul(lt,Qt)|0,d=d+Math.imul(Je,zt)|0,k=k+Math.imul(Je,Qt)|0,b=b+Math.imul(st,be)|0,d=d+Math.imul(st,ve)|0,d=d+Math.imul(dt,be)|0,k=k+Math.imul(dt,ve)|0,b=b+Math.imul(pe,Pe)|0,d=d+Math.imul(pe,ze)|0,d=d+Math.imul(qe,Pe)|0,k=k+Math.imul(qe,ze)|0,b=b+Math.imul(ie,ot)|0,d=d+Math.imul(ie,wt)|0,d=d+Math.imul(de,ot)|0,k=k+Math.imul(de,wt)|0;var Cr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,b=Math.imul(Me,yt),d=Math.imul(Me,Ne),d=d+Math.imul(te,yt)|0,k=Math.imul(te,Ne),b=b+Math.imul(Et,pt)|0,d=d+Math.imul(Et,Bt)|0,d=d+Math.imul(Ct,pt)|0,k=k+Math.imul(Ct,Bt)|0,b=b+Math.imul(Ge,kt)|0,d=d+Math.imul(Ge,Ut)|0,d=d+Math.imul(Qe,kt)|0,k=k+Math.imul(Qe,Ut)|0,b=b+Math.imul(at,zt)|0,d=d+Math.imul(at,Qt)|0,d=d+Math.imul(bt,zt)|0,k=k+Math.imul(bt,Qt)|0,b=b+Math.imul(lt,be)|0,d=d+Math.imul(lt,ve)|0,d=d+Math.imul(Je,be)|0,k=k+Math.imul(Je,ve)|0,b=b+Math.imul(st,Pe)|0,d=d+Math.imul(st,ze)|0,d=d+Math.imul(dt,Pe)|0,k=k+Math.imul(dt,ze)|0,b=b+Math.imul(pe,ot)|0,d=d+Math.imul(pe,wt)|0,d=d+Math.imul(qe,ot)|0,k=k+Math.imul(qe,wt)|0;var Lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,b=Math.imul(Me,pt),d=Math.imul(Me,Bt),d=d+Math.imul(te,pt)|0,k=Math.imul(te,Bt),b=b+Math.imul(Et,kt)|0,d=d+Math.imul(Et,Ut)|0,d=d+Math.imul(Ct,kt)|0,k=k+Math.imul(Ct,Ut)|0,b=b+Math.imul(Ge,zt)|0,d=d+Math.imul(Ge,Qt)|0,d=d+Math.imul(Qe,zt)|0,k=k+Math.imul(Qe,Qt)|0,b=b+Math.imul(at,be)|0,d=d+Math.imul(at,ve)|0,d=d+Math.imul(bt,be)|0,k=k+Math.imul(bt,ve)|0,b=b+Math.imul(lt,Pe)|0,d=d+Math.imul(lt,ze)|0,d=d+Math.imul(Je,Pe)|0,k=k+Math.imul(Je,ze)|0,b=b+Math.imul(st,ot)|0,d=d+Math.imul(st,wt)|0,d=d+Math.imul(dt,ot)|0,k=k+Math.imul(dt,wt)|0;var Ar=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,b=Math.imul(Me,kt),d=Math.imul(Me,Ut),d=d+Math.imul(te,kt)|0,k=Math.imul(te,Ut),b=b+Math.imul(Et,zt)|0,d=d+Math.imul(Et,Qt)|0,d=d+Math.imul(Ct,zt)|0,k=k+Math.imul(Ct,Qt)|0,b=b+Math.imul(Ge,be)|0,d=d+Math.imul(Ge,ve)|0,d=d+Math.imul(Qe,be)|0,k=k+Math.imul(Qe,ve)|0,b=b+Math.imul(at,Pe)|0,d=d+Math.imul(at,ze)|0,d=d+Math.imul(bt,Pe)|0,k=k+Math.imul(bt,ze)|0,b=b+Math.imul(lt,ot)|0,d=d+Math.imul(lt,wt)|0,d=d+Math.imul(Je,ot)|0,k=k+Math.imul(Je,wt)|0;var Tr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(Me,zt),d=Math.imul(Me,Qt),d=d+Math.imul(te,zt)|0,k=Math.imul(te,Qt),b=b+Math.imul(Et,be)|0,d=d+Math.imul(Et,ve)|0,d=d+Math.imul(Ct,be)|0,k=k+Math.imul(Ct,ve)|0,b=b+Math.imul(Ge,Pe)|0,d=d+Math.imul(Ge,ze)|0,d=d+Math.imul(Qe,Pe)|0,k=k+Math.imul(Qe,ze)|0,b=b+Math.imul(at,ot)|0,d=d+Math.imul(at,wt)|0,d=d+Math.imul(bt,ot)|0,k=k+Math.imul(bt,wt)|0;var Sr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,b=Math.imul(Me,be),d=Math.imul(Me,ve),d=d+Math.imul(te,be)|0,k=Math.imul(te,ve),b=b+Math.imul(Et,Pe)|0,d=d+Math.imul(Et,ze)|0,d=d+Math.imul(Ct,Pe)|0,k=k+Math.imul(Ct,ze)|0,b=b+Math.imul(Ge,ot)|0,d=d+Math.imul(Ge,wt)|0,d=d+Math.imul(Qe,ot)|0,k=k+Math.imul(Qe,wt)|0;var rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(rr>>>26)|0,rr&=67108863,b=Math.imul(Me,Pe),d=Math.imul(Me,ze),d=d+Math.imul(te,Pe)|0,k=Math.imul(te,ze),b=b+Math.imul(Et,ot)|0,d=d+Math.imul(Et,wt)|0,d=d+Math.imul(Ct,ot)|0,k=k+Math.imul(Ct,wt)|0;var Nt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,b=Math.imul(Me,ot),d=Math.imul(Me,wt),d=d+Math.imul(te,ot)|0,k=Math.imul(te,wt);var Gt=(T+b|0)+((d&8191)<<13)|0;return T=(k+(d>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,x[0]=Yt,x[1]=Jt,x[2]=wr,x[3]=lr,x[4]=Rr,x[5]=vr,x[6]=dr,x[7]=Ir,x[8]=kr,x[9]=Fr,x[10]=jr,x[11]=Cr,x[12]=Lr,x[13]=Ar,x[14]=Tr,x[15]=Sr,x[16]=rr,x[17]=Nt,x[18]=Gt,T!==0&&(x[19]=T,S.length++),S};Math.imul||(j=I);function B(L,p,y){y.negative=p.negative^L.negative,y.length=L.length+p.length;for(var S=0,c=0,m=0;m<y.length-1;m++){var x=c;c=0;for(var T=S&67108863,b=Math.min(m,p.length-1),d=Math.max(0,m-L.length+1);d<=b;d++){var k=m-d,D=L.words[k]|0,O=p.words[d]|0,Q=D*O,J=Q&67108863;x=x+(Q/67108864|0)|0,J=J+T|0,T=J&67108863,x=x+(J>>>26)|0,c+=x>>>26,x&=67108863}y.words[m]=T,S=x,x=c}return S!==0?y.words[m]=S:y.length--,y.strip()}function F(L,p,y){var S=new N;return S.mulp(L,p,y)}u.prototype.mulTo=function(p,y){var S,c=this.length+p.length;return this.length===10&&p.length===10?S=j(this,p,y):c<63?S=I(this,p,y):c<1024?S=B(this,p,y):S=F(this,p,y),S};function N(L,p){this.x=L,this.y=p}N.prototype.makeRBT=function(p){for(var y=new Array(p),S=u.prototype._countBits(p)-1,c=0;c<p;c++)y[c]=this.revBin(c,S,p);return y},N.prototype.revBin=function(p,y,S){if(p===0||p===S-1)return p;for(var c=0,m=0;m<y;m++)c|=(p&1)<<y-m-1,p>>=1;return c},N.prototype.permute=function(p,y,S,c,m,x){for(var T=0;T<x;T++)c[T]=y[p[T]],m[T]=S[p[T]]},N.prototype.transform=function(p,y,S,c,m,x){this.permute(x,p,y,S,c,m);for(var T=1;T<m;T<<=1)for(var b=T<<1,d=Math.cos(2*Math.PI/b),k=Math.sin(2*Math.PI/b),D=0;D<m;D+=b)for(var O=d,Q=k,J=0;J<T;J++){var X=S[D+J],U=c[D+J],z=S[D+J+T],ie=c[D+J+T],de=O*z-Q*ie;ie=O*ie+Q*z,z=de,S[D+J]=X+z,c[D+J]=U+ie,S[D+J+T]=X-z,c[D+J+T]=U-ie,J!==b&&(de=d*O-k*Q,Q=d*Q+k*O,O=de)}},N.prototype.guessLen13b=function(p,y){var S=Math.max(y,p)|1,c=S&1,m=0;for(S=S/2|0;S;S=S>>>1)m++;return 1<<m+1+c},N.prototype.conjugate=function(p,y,S){if(!(S<=1))for(var c=0;c<S/2;c++){var m=p[c];p[c]=p[S-c-1],p[S-c-1]=m,m=y[c],y[c]=-y[S-c-1],y[S-c-1]=-m}},N.prototype.normalize13b=function(p,y){for(var S=0,c=0;c<y/2;c++){var m=Math.round(p[2*c+1]/y)*8192+Math.round(p[2*c]/y)+S;p[c]=m&67108863,m<67108864?S=0:S=m/67108864|0}return p},N.prototype.convert13b=function(p,y,S,c){for(var m=0,x=0;x<y;x++)m=m+(p[x]|0),S[2*x]=m&8191,m=m>>>13,S[2*x+1]=m&8191,m=m>>>13;for(x=2*y;x<c;++x)S[x]=0;l(m===0),l((m&-8192)===0)},N.prototype.stub=function(p){for(var y=new Array(p),S=0;S<p;S++)y[S]=0;return y},N.prototype.mulp=function(p,y,S){var c=2*this.guessLen13b(p.length,y.length),m=this.makeRBT(c),x=this.stub(c),T=new Array(c),b=new Array(c),d=new Array(c),k=new Array(c),D=new Array(c),O=new Array(c),Q=S.words;Q.length=c,this.convert13b(p.words,p.length,T,c),this.convert13b(y.words,y.length,k,c),this.transform(T,x,b,d,c,m),this.transform(k,x,D,O,c,m);for(var J=0;J<c;J++){var X=b[J]*D[J]-d[J]*O[J];d[J]=b[J]*O[J]+d[J]*D[J],b[J]=X}return this.conjugate(b,d,c),this.transform(b,d,Q,x,c,m),this.conjugate(Q,x,c),this.normalize13b(Q,c),S.negative=p.negative^y.negative,S.length=p.length+y.length,S.strip()},u.prototype.mul=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),this.mulTo(p,y)},u.prototype.mulf=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),F(this,p,y)},u.prototype.imul=function(p){return this.clone().mulTo(p,this)},u.prototype.imuln=function(p){l(typeof p=="number"),l(p<67108864);for(var y=0,S=0;S<this.length;S++){var c=(this.words[S]|0)*p,m=(c&67108863)+(y&67108863);y>>=26,y+=c/67108864|0,y+=m>>>26,this.words[S]=m&67108863}return y!==0&&(this.words[S]=y,this.length++),this},u.prototype.muln=function(p){return this.clone().imuln(p)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(p){var y=P(p);if(y.length===0)return new u(1);for(var S=this,c=0;c<y.length&&y[c]===0;c++,S=S.sqr());if(++c<y.length)for(var m=S.sqr();c<y.length;c++,m=m.sqr())y[c]!==0&&(S=S.mul(m));return S},u.prototype.iushln=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=67108863>>>26-y<<26-y,m;if(y!==0){var x=0;for(m=0;m<this.length;m++){var T=this.words[m]&c,b=(this.words[m]|0)-T<<y;this.words[m]=b|x,x=T>>>26-y}x&&(this.words[m]=x,this.length++)}if(S!==0){for(m=this.length-1;m>=0;m--)this.words[m+S]=this.words[m];for(m=0;m<S;m++)this.words[m]=0;this.length+=S}return this.strip()},u.prototype.ishln=function(p){return l(this.negative===0),this.iushln(p)},u.prototype.iushrn=function(p,y,S){l(typeof p=="number"&&p>=0);var c;y?c=(y-y%26)/26:c=0;var m=p%26,x=Math.min((p-m)/26,this.length),T=67108863^67108863>>>m<<m,b=S;if(c-=x,c=Math.max(0,c),b){for(var d=0;d<x;d++)b.words[d]=this.words[d];b.length=x}if(x!==0)if(this.length>x)for(this.length-=x,d=0;d<this.length;d++)this.words[d]=this.words[d+x];else this.words[0]=0,this.length=1;var k=0;for(d=this.length-1;d>=0&&(k!==0||d>=c);d--){var D=this.words[d]|0;this.words[d]=k<<26-m|D>>>m,k=D&T}return b&&k!==0&&(b.words[b.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(p,y,S){return l(this.negative===0),this.iushrn(p,y,S)},u.prototype.shln=function(p){return this.clone().ishln(p)},u.prototype.ushln=function(p){return this.clone().iushln(p)},u.prototype.shrn=function(p){return this.clone().ishrn(p)},u.prototype.ushrn=function(p){return this.clone().iushrn(p)},u.prototype.testn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return!1;var m=this.words[S];return!!(m&c)},u.prototype.imaskn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(y!==0&&S++,this.length=Math.min(S,this.length),y!==0){var c=67108863^67108863>>>y<<y;this.words[this.length-1]&=c}return this.strip()},u.prototype.maskn=function(p){return this.clone().imaskn(p)},u.prototype.iaddn=function(p){return l(typeof p=="number"),l(p<67108864),p<0?this.isubn(-p):this.negative!==0?this.length===1&&(this.words[0]|0)<p?(this.words[0]=p-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(p),this.negative=1,this):this._iaddn(p)},u.prototype._iaddn=function(p){this.words[0]+=p;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},u.prototype.isubn=function(p){if(l(typeof p=="number"),l(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this.strip()},u.prototype.addn=function(p){return this.clone().iaddn(p)},u.prototype.subn=function(p){return this.clone().isubn(p)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(p,y,S){var c=p.length+S,m;this._expand(c);var x,T=0;for(m=0;m<p.length;m++){x=(this.words[m+S]|0)+T;var b=(p.words[m]|0)*y;x-=b&67108863,T=(x>>26)-(b/67108864|0),this.words[m+S]=x&67108863}for(;m<this.length-S;m++)x=(this.words[m+S]|0)+T,T=x>>26,this.words[m+S]=x&67108863;if(T===0)return this.strip();for(l(T===-1),T=0,m=0;m<this.length;m++)x=-(this.words[m]|0)+T,T=x>>26,this.words[m]=x&67108863;return this.negative=1,this.strip()},u.prototype._wordDiv=function(p,y){var S=this.length-p.length,c=this.clone(),m=p,x=m.words[m.length-1]|0,T=this._countBits(x);S=26-T,S!==0&&(m=m.ushln(S),c.iushln(S),x=m.words[m.length-1]|0);var b=c.length-m.length,d;if(y!=="mod"){d=new u(null),d.length=b+1,d.words=new Array(d.length);for(var k=0;k<d.length;k++)d.words[k]=0}var D=c.clone()._ishlnsubmul(m,1,b);D.negative===0&&(c=D,d&&(d.words[b]=1));for(var O=b-1;O>=0;O--){var Q=(c.words[m.length+O]|0)*67108864+(c.words[m.length+O-1]|0);for(Q=Math.min(Q/x|0,67108863),c._ishlnsubmul(m,Q,O);c.negative!==0;)Q--,c.negative=0,c._ishlnsubmul(m,1,O),c.isZero()||(c.negative^=1);d&&(d.words[O]=Q)}return d&&d.strip(),c.strip(),y!=="div"&&S!==0&&c.iushrn(S),{div:d||null,mod:c}},u.prototype.divmod=function(p,y,S){if(l(!p.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var c,m,x;return this.negative!==0&&p.negative===0?(x=this.neg().divmod(p,y),y!=="mod"&&(c=x.div.neg()),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.iadd(p)),{div:c,mod:m}):this.negative===0&&p.negative!==0?(x=this.divmod(p.neg(),y),y!=="mod"&&(c=x.div.neg()),{div:c,mod:x.mod}):this.negative&p.negative?(x=this.neg().divmod(p.neg(),y),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.isub(p)),{div:x.div,mod:m}):p.length>this.length||this.cmp(p)<0?{div:new u(0),mod:this}:p.length===1?y==="div"?{div:this.divn(p.words[0]),mod:null}:y==="mod"?{div:null,mod:new u(this.modn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new u(this.modn(p.words[0]))}:this._wordDiv(p,y)},u.prototype.div=function(p){return this.divmod(p,"div",!1).div},u.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},u.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},u.prototype.divRound=function(p){var y=this.divmod(p);if(y.mod.isZero())return y.div;var S=y.div.negative!==0?y.mod.isub(p):y.mod,c=p.ushrn(1),m=p.andln(1),x=S.cmp(c);return x<0||m===1&&x===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},u.prototype.modn=function(p){l(p<=67108863);for(var y=(1<<26)%p,S=0,c=this.length-1;c>=0;c--)S=(y*S+(this.words[c]|0))%p;return S},u.prototype.idivn=function(p){l(p<=67108863);for(var y=0,S=this.length-1;S>=0;S--){var c=(this.words[S]|0)+y*67108864;this.words[S]=c/p|0,y=c%p}return this.strip()},u.prototype.divn=function(p){return this.clone().idivn(p)},u.prototype.egcd=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=new u(0),T=new u(1),b=0;y.isEven()&&S.isEven();)y.iushrn(1),S.iushrn(1),++b;for(var d=S.clone(),k=y.clone();!y.isZero();){for(var D=0,O=1;!(y.words[0]&O)&&D<26;++D,O<<=1);if(D>0)for(y.iushrn(D);D-- >0;)(c.isOdd()||m.isOdd())&&(c.iadd(d),m.isub(k)),c.iushrn(1),m.iushrn(1);for(var Q=0,J=1;!(S.words[0]&J)&&Q<26;++Q,J<<=1);if(Q>0)for(S.iushrn(Q);Q-- >0;)(x.isOdd()||T.isOdd())&&(x.iadd(d),T.isub(k)),x.iushrn(1),T.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(x),m.isub(T)):(S.isub(y),x.isub(c),T.isub(m))}return{a:x,b:T,gcd:S.iushln(b)}},u.prototype._invmp=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=S.clone();y.cmpn(1)>0&&S.cmpn(1)>0;){for(var T=0,b=1;!(y.words[0]&b)&&T<26;++T,b<<=1);if(T>0)for(y.iushrn(T);T-- >0;)c.isOdd()&&c.iadd(x),c.iushrn(1);for(var d=0,k=1;!(S.words[0]&k)&&d<26;++d,k<<=1);if(d>0)for(S.iushrn(d);d-- >0;)m.isOdd()&&m.iadd(x),m.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(m)):(S.isub(y),m.isub(c))}var D;return y.cmpn(1)===0?D=c:D=m,D.cmpn(0)<0&&D.iadd(p),D},u.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var y=this.clone(),S=p.clone();y.negative=0,S.negative=0;for(var c=0;y.isEven()&&S.isEven();c++)y.iushrn(1),S.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;S.isEven();)S.iushrn(1);var m=y.cmp(S);if(m<0){var x=y;y=S,S=x}else if(m===0||S.cmpn(1)===0)break;y.isub(S)}while(!0);return S.iushln(c)},u.prototype.invm=function(p){return this.egcd(p).a.umod(p)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(p){return this.words[0]&p},u.prototype.bincn=function(p){l(typeof p=="number");var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return this._expand(S+1),this.words[S]|=c,this;for(var m=c,x=S;m!==0&&x<this.length;x++){var T=this.words[x]|0;T+=m,m=T>>>26,T&=67108863,this.words[x]=T}return m!==0&&(this.words[x]=m,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(p){var y=p<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this.strip();var S;if(this.length>1)S=1;else{y&&(p=-p),l(p<=67108863,"Number is too big");var c=this.words[0]|0;S=c===p?0:c<p?-1:1}return this.negative!==0?-S|0:S},u.prototype.cmp=function(p){if(this.negative!==0&&p.negative===0)return-1;if(this.negative===0&&p.negative!==0)return 1;var y=this.ucmp(p);return this.negative!==0?-y|0:y},u.prototype.ucmp=function(p){if(this.length>p.length)return 1;if(this.length<p.length)return-1;for(var y=0,S=this.length-1;S>=0;S--){var c=this.words[S]|0,m=p.words[S]|0;if(c!==m){c<m?y=-1:c>m&&(y=1);break}}return y},u.prototype.gtn=function(p){return this.cmpn(p)===1},u.prototype.gt=function(p){return this.cmp(p)===1},u.prototype.gten=function(p){return this.cmpn(p)>=0},u.prototype.gte=function(p){return this.cmp(p)>=0},u.prototype.ltn=function(p){return this.cmpn(p)===-1},u.prototype.lt=function(p){return this.cmp(p)===-1},u.prototype.lten=function(p){return this.cmpn(p)<=0},u.prototype.lte=function(p){return this.cmp(p)<=0},u.prototype.eqn=function(p){return this.cmpn(p)===0},u.prototype.eq=function(p){return this.cmp(p)===0},u.red=function(p){return new he(p)},u.prototype.toRed=function(p){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},u.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(p){return this.red=p,this},u.prototype.forceRed=function(p){return l(!this.red,"Already a number in reduction context"),this._forceRed(p)},u.prototype.redAdd=function(p){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},u.prototype.redIAdd=function(p){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},u.prototype.redSub=function(p){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},u.prototype.redISub=function(p){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},u.prototype.redShl=function(p){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},u.prototype.redMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},u.prototype.redIMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},u.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(p){return l(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var ee={k256:null,p224:null,p192:null,p25519:null};function Z(L,p){this.name=L,this.p=new u(p,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Z.prototype._tmp=function(){var p=new u(null);return p.words=new Array(Math.ceil(this.n/13)),p},Z.prototype.ireduce=function(p){var y=p,S;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),S=y.bitLength();while(S>this.n);var c=S<this.n?-1:y.ucmp(this.p);return c===0?(y.words[0]=0,y.length=1):c>0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},Z.prototype.split=function(p,y){p.iushrn(this.n,0,y)},Z.prototype.imulK=function(p){return p.imul(this.k)};function re(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}t(re,Z),re.prototype.split=function(p,y){for(var S=4194303,c=Math.min(p.length,9),m=0;m<c;m++)y.words[m]=p.words[m];if(y.length=c,p.length<=9){p.words[0]=0,p.length=1;return}var x=p.words[9];for(y.words[y.length++]=x&S,m=10;m<p.length;m++){var T=p.words[m]|0;p.words[m-10]=(T&S)<<4|x>>>22,x=T}x>>>=22,p.words[m-10]=x,x===0&&p.length>10?p.length-=10:p.length-=9},re.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var y=0,S=0;S<p.length;S++){var c=p.words[S]|0;y+=c*977,p.words[S]=y&67108863,y=c*64+(y/67108864|0)}return p.words[p.length-1]===0&&(p.length--,p.words[p.length-1]===0&&p.length--),p};function fe(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}t(fe,Z);function V(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}t(V,Z);function le(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}t(le,Z),le.prototype.imulK=function(p){for(var y=0,S=0;S<p.length;S++){var c=(p.words[S]|0)*19+y,m=c&67108863;c>>>=26,p.words[S]=m,y=c}return y!==0&&(p.words[p.length++]=y),p},u._prime=function(p){if(ee[p])return ee[p];var y;if(p==="k256")y=new re;else if(p==="p224")y=new fe;else if(p==="p192")y=new V;else if(p==="p25519")y=new le;else throw new Error("Unknown prime "+p);return ee[p]=y,y};function he(L){if(typeof L=="string"){var p=u._prime(L);this.m=p.p,this.prime=p}else l(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}he.prototype._verify1=function(p){l(p.negative===0,"red works only with positives"),l(p.red,"red works only with red numbers")},he.prototype._verify2=function(p,y){l((p.negative|y.negative)===0,"red works only with positives"),l(p.red&&p.red===y.red,"red works only with red numbers")},he.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):p.umod(this.m)._forceRed(this)},he.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},he.prototype.add=function(p,y){this._verify2(p,y);var S=p.add(y);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},he.prototype.iadd=function(p,y){this._verify2(p,y);var S=p.iadd(y);return S.cmp(this.m)>=0&&S.isub(this.m),S},he.prototype.sub=function(p,y){this._verify2(p,y);var S=p.sub(y);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},he.prototype.isub=function(p,y){this._verify2(p,y);var S=p.isub(y);return S.cmpn(0)<0&&S.iadd(this.m),S},he.prototype.shl=function(p,y){return this._verify1(p),this.imod(p.ushln(y))},he.prototype.imul=function(p,y){return this._verify2(p,y),this.imod(p.imul(y))},he.prototype.mul=function(p,y){return this._verify2(p,y),this.imod(p.mul(y))},he.prototype.isqr=function(p){return this.imul(p,p.clone())},he.prototype.sqr=function(p){return this.mul(p,p)},he.prototype.sqrt=function(p){if(p.isZero())return p.clone();var y=this.m.andln(3);if(l(y%2===1),y===3){var S=this.m.add(new u(1)).iushrn(2);return this.pow(p,S)}for(var c=this.m.subn(1),m=0;!c.isZero()&&c.andln(1)===0;)m++,c.iushrn(1);l(!c.isZero());var x=new u(1).toRed(this),T=x.redNeg(),b=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new u(2*d*d).toRed(this);this.pow(d,b).cmp(T)!==0;)d.redIAdd(T);for(var k=this.pow(d,c),D=this.pow(p,c.addn(1).iushrn(1)),O=this.pow(p,c),Q=m;O.cmp(x)!==0;){for(var J=O,X=0;J.cmp(x)!==0;X++)J=J.redSqr();l(X<Q);var U=this.pow(k,new u(1).iushln(Q-X-1));D=D.redMul(U),k=U.redSqr(),O=O.redMul(k),Q=X}return D},he.prototype.invm=function(p){var y=p._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},he.prototype.pow=function(p,y){if(y.isZero())return new u(1).toRed(this);if(y.cmpn(1)===0)return p.clone();var S=4,c=new Array(1<<S);c[0]=new u(1).toRed(this),c[1]=p;for(var m=2;m<c.length;m++)c[m]=this.mul(c[m-1],p);var x=c[0],T=0,b=0,d=y.bitLength()%26;for(d===0&&(d=26),m=y.length-1;m>=0;m--){for(var k=y.words[m],D=d-1;D>=0;D--){var O=k>>D&1;if(x!==c[0]&&(x=this.sqr(x)),O===0&&T===0){b=0;continue}T<<=1,T|=O,b++,!(b!==S&&(m!==0||D!==0))&&(x=this.mul(x,c[T]),b=0,T=0)}d=26}return x},he.prototype.convertTo=function(p){var y=p.umod(this.m);return y===p?y.clone():y},he.prototype.convertFrom=function(p){var y=p.clone();return y.red=null,y},u.mont=function(p){return new ye(p)};function ye(L){he.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}t(ye,he),ye.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},ye.prototype.convertFrom=function(p){var y=this.imod(p.mul(this.rinv));return y.red=null,y},ye.prototype.imul=function(p,y){if(p.isZero()||y.isZero())return p.words[0]=0,p.length=1,p;var S=p.imul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.mul=function(p,y){if(p.isZero()||y.isZero())return new u(0)._forceRed(this);var S=p.mul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.invm=function(p){var y=this.imod(p._invmp(this.m).mul(this.r2));return y._forceRed(this)}})(n,commonjsGlobal$1)}(bn$2);var bnExports$2=bn$2.exports,api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(n,e){if(n.indexOf)return n.indexOf(e);for(var o=0;o<n.length;o++)if(n[o]===e)return o;return-1},Object_keys=function(n){if(Object.keys)return Object.keys(n);var e=[];for(var o in n)e.push(o);return e},forEach=function(n,e){if(n.forEach)return n.forEach(e);for(var o=0;o<n.length;o++)e(n[o],o,n)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(n,e,o){Object.defineProperty(n,e,{writable:!0,enumerable:!1,configurable:!0,value:o})}}catch{return function(e,o,l){e[o]=l}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(n){if(!(n instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var o=e.contentWindow,l=o.eval,t=o.execScript;!l&&t&&(t.call(o,"null"),l=o.eval),forEach(Object_keys(n),function(v){o[v]=n[v]}),forEach(globals,function(v){n[v]&&(o[v]=n[v])});var u=Object_keys(o),h=l.call(o,this.code);return forEach(Object_keys(o),function(v){(v in n||indexOf(u,v)===-1)&&(n[v]=o[v])}),forEach(globals,function(v){v in n||defineProp(n,v,o[v])}),document.body.removeChild(e),h},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(n){var e=Script.createContext(n),o=this.runInContext(e);return n&&forEach(Object_keys(e),function(l){n[l]=e[l]}),o},forEach(Object_keys(Script.prototype),function(n){exports[n]=Script[n]=function(e){var o=Script(e);return o[n].apply(o,[].slice.call(arguments,1))}}),exports.isContext=function(n){return n instanceof Context},exports.createScript=function(n){return exports.Script(n)},exports.createContext=Script.createContext=function(n){var e=new Context;return typeof n=="object"&&forEach(Object_keys(n),function(o){e[o]=n[o]}),e}}(vmBrowserify)),vmBrowserify}var hasRequiredApi;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,function(n){var e=requireAsn1(),o=inherits_browserExports,l=n;l.define=function(h,v){return new t(h,v)};function t(u,h){this.name=u,this.body=h,this.decoders={},this.encoders={}}t.prototype._createNamed=function(h){var v;try{v=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
  this._initNamed(entity);
})`)}catch{v=function(A){this._initNamed(A)}}return o(v,h),v.prototype._initNamed=function(A){h.call(this,A)},new v(this)},t.prototype._getDecoder=function(h){return h=h||"der",this.decoders.hasOwnProperty(h)||(this.decoders[h]=this._createNamed(e.decoders[h])),this.decoders[h]},t.prototype.decode=function(h,v,w){return this._getDecoder(v).decode(h,w)},t.prototype._getEncoder=function(h){return h=h||"der",this.encoders.hasOwnProperty(h)||(this.encoders[h]=this._createNamed(e.encoders[h])),this.encoders[h]},t.prototype.encode=function(h,v,w){return this._getEncoder(v).encode(h,w)}}(api)),api}var base={},reporter={},inherits=inherits_browserExports;function Reporter(n){this._reporterState={obj:null,path:[],options:n||{},errors:[]}}reporter.Reporter=Reporter,Reporter.prototype.isError=function n(e){return e instanceof ReporterError},Reporter.prototype.save=function n(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},Reporter.prototype.restore=function n(e){var o=this._reporterState;o.obj=e.obj,o.path=o.path.slice(0,e.pathLen)},Reporter.prototype.enterKey=function n(e){return this._reporterState.path.push(e)},Reporter.prototype.exitKey=function n(e){var o=this._reporterState;o.path=o.path.slice(0,e-1)},Reporter.prototype.leaveKey=function n(e,o,l){var t=this._reporterState;this.exitKey(e),t.obj!==null&&(t.obj[o]=l)},Reporter.prototype.path=function n(){return this._reporterState.path.join("/")},Reporter.prototype.enterObject=function n(){var e=this._reporterState,o=e.obj;return e.obj={},o},Reporter.prototype.leaveObject=function n(e){var o=this._reporterState,l=o.obj;return o.obj=e,l},Reporter.prototype.error=function n(e){var o,l=this._reporterState,t=e instanceof ReporterError;if(t?o=e:o=new ReporterError(l.path.map(function(u){return"["+JSON.stringify(u)+"]"}).join(""),e.message||e,e.stack),!l.options.partial)throw o;return t||l.errors.push(o),o},Reporter.prototype.wrapResult=function n(e){var o=this._reporterState;return o.options.partial?{result:this.isError(e)?null:e,errors:o.errors}:e};function ReporterError(n,e){this.path=n,this.rethrow(e)}inherits(ReporterError,Error),ReporterError.prototype.rethrow=function n(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(o){this.stack=o.stack}return this};var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var n=inherits_browserExports,e=requireBase().Reporter,o=require$$0$2.Buffer;function l(u,h){if(e.call(this,h),!o.isBuffer(u)){this.error("Input not Buffer");return}this.base=u,this.offset=0,this.length=u.length}n(l,e),buffer.DecoderBuffer=l,l.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},l.prototype.restore=function(h){var v=new l(this.base);return v.offset=h.offset,v.length=this.offset,this.offset=h.offset,e.prototype.restore.call(this,h.reporter),v},l.prototype.isEmpty=function(){return this.offset===this.length},l.prototype.readUInt8=function(h){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(h||"DecoderBuffer overrun")},l.prototype.skip=function(h,v){if(!(this.offset+h<=this.length))return this.error(v||"DecoderBuffer overrun");var w=new l(this.base);return w._reporterState=this._reporterState,w.offset=this.offset,w.length=this.offset+h,this.offset+=h,w},l.prototype.raw=function(h){return this.base.slice(h?h.offset:this.offset,this.length)};function t(u,h){if(Array.isArray(u))this.length=0,this.value=u.map(function(v){return v instanceof t||(v=new t(v,h)),this.length+=v.length,v},this);else if(typeof u=="number"){if(!(0<=u&&u<=255))return h.error("non-byte EncoderBuffer value");this.value=u,this.length=1}else if(typeof u=="string")this.value=u,this.length=o.byteLength(u);else if(o.isBuffer(u))this.value=u,this.length=u.length;else return h.error("Unsupported type: "+typeof u)}return buffer.EncoderBuffer=t,t.prototype.join=function(h,v){return h||(h=new o(this.length)),v||(v=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(w){w.join(h,v),v+=w.length}):(typeof this.value=="number"?h[v]=this.value:typeof this.value=="string"?h.write(this.value,v):o.isBuffer(this.value)&&this.value.copy(h,v),v+=this.length)),h},buffer}var node,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;var n=requireBase().Reporter,e=requireBase().EncoderBuffer,o=requireBase().DecoderBuffer,l=minimalisticAssert,t=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(t),h=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function v(A,E){var C={};this._baseState=C,C.enc=A,C.parent=E||null,C.children=null,C.tag=null,C.args=null,C.reverseArgs=null,C.choice=null,C.optional=!1,C.any=!1,C.obj=!1,C.use=null,C.useDecoder=null,C.key=null,C.default=null,C.explicit=null,C.implicit=null,C.contains=null,C.parent||(C.children=[],this._wrap())}node=v;var w=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return v.prototype.clone=function(){var E=this._baseState,C={};w.forEach(function(P){C[P]=E[P]});var M=new this.constructor(C.parent);return M._baseState=C,M},v.prototype._wrap=function(){var E=this._baseState;u.forEach(function(C){this[C]=function(){var P=new this.constructor(this);return E.children.push(P),P[C].apply(P,arguments)}},this)},v.prototype._init=function(E){var C=this._baseState;l(C.parent===null),E.call(this),C.children=C.children.filter(function(M){return M._baseState.parent===this},this),l.equal(C.children.length,1,"Root node can have only one child")},v.prototype._useArgs=function(E){var C=this._baseState,M=E.filter(function(P){return P instanceof this.constructor},this);E=E.filter(function(P){return!(P instanceof this.constructor)},this),M.length!==0&&(l(C.children===null),C.children=M,M.forEach(function(P){P._baseState.parent=this},this)),E.length!==0&&(l(C.args===null),C.args=E,C.reverseArgs=E.map(function(P){if(typeof P!="object"||P.constructor!==Object)return P;var I={};return Object.keys(P).forEach(function(j){j==(j|0)&&(j|=0);var B=P[j];I[B]=j}),I}))},h.forEach(function(A){v.prototype[A]=function(){var C=this._baseState;throw new Error(A+" not implemented for encoding: "+C.enc)}}),t.forEach(function(A){v.prototype[A]=function(){var C=this._baseState,M=Array.prototype.slice.call(arguments);return l(C.tag===null),C.tag=A,this._useArgs(M),this}}),v.prototype.use=function(E){l(E);var C=this._baseState;return l(C.use===null),C.use=E,this},v.prototype.optional=function(){var E=this._baseState;return E.optional=!0,this},v.prototype.def=function(E){var C=this._baseState;return l(C.default===null),C.default=E,C.optional=!0,this},v.prototype.explicit=function(E){var C=this._baseState;return l(C.explicit===null&&C.implicit===null),C.explicit=E,this},v.prototype.implicit=function(E){var C=this._baseState;return l(C.explicit===null&&C.implicit===null),C.implicit=E,this},v.prototype.obj=function(){var E=this._baseState,C=Array.prototype.slice.call(arguments);return E.obj=!0,C.length!==0&&this._useArgs(C),this},v.prototype.key=function(E){var C=this._baseState;return l(C.key===null),C.key=E,this},v.prototype.any=function(){var E=this._baseState;return E.any=!0,this},v.prototype.choice=function(E){var C=this._baseState;return l(C.choice===null),C.choice=E,this._useArgs(Object.keys(E).map(function(M){return E[M]})),this},v.prototype.contains=function(E){var C=this._baseState;return l(C.use===null),C.contains=E,this},v.prototype._decode=function(E,C){var M=this._baseState;if(M.parent===null)return E.wrapResult(M.children[0]._decode(E,C));var P=M.default,I=!0,j=null;if(M.key!==null&&(j=E.enterKey(M.key)),M.optional){var B=null;if(M.explicit!==null?B=M.explicit:M.implicit!==null?B=M.implicit:M.tag!==null&&(B=M.tag),B===null&&!M.any){var F=E.save();try{M.choice===null?this._decodeGeneric(M.tag,E,C):this._decodeChoice(E,C),I=!0}catch{I=!1}E.restore(F)}else if(I=this._peekTag(E,B,M.any),E.isError(I))return I}var N;if(M.obj&&I&&(N=E.enterObject()),I){if(M.explicit!==null){var ee=this._decodeTag(E,M.explicit);if(E.isError(ee))return ee;E=ee}var Z=E.offset;if(M.use===null&&M.choice===null){if(M.any)var F=E.save();var re=this._decodeTag(E,M.implicit!==null?M.implicit:M.tag,M.any);if(E.isError(re))return re;M.any?P=E.raw(F):E=re}if(C&&C.track&&M.tag!==null&&C.track(E.path(),Z,E.length,"tagged"),C&&C.track&&M.tag!==null&&C.track(E.path(),E.offset,E.length,"content"),M.any?P=P:M.choice===null?P=this._decodeGeneric(M.tag,E,C):P=this._decodeChoice(E,C),E.isError(P))return P;if(!M.any&&M.choice===null&&M.children!==null&&M.children.forEach(function(le){le._decode(E,C)}),M.contains&&(M.tag==="octstr"||M.tag==="bitstr")){var fe=new o(P);P=this._getUse(M.contains,E._reporterState.obj)._decode(fe,C)}}return M.obj&&I&&(P=E.leaveObject(N)),M.key!==null&&(P!==null||I===!0)?E.leaveKey(j,M.key,P):j!==null&&E.exitKey(j),P},v.prototype._decodeGeneric=function(E,C,M){var P=this._baseState;return E==="seq"||E==="set"?null:E==="seqof"||E==="setof"?this._decodeList(C,E,P.args[0],M):/str$/.test(E)?this._decodeStr(C,E,M):E==="objid"&&P.args?this._decodeObjid(C,P.args[0],P.args[1],M):E==="objid"?this._decodeObjid(C,null,null,M):E==="gentime"||E==="utctime"?this._decodeTime(C,E,M):E==="null_"?this._decodeNull(C,M):E==="bool"?this._decodeBool(C,M):E==="objDesc"?this._decodeStr(C,E,M):E==="int"||E==="enum"?this._decodeInt(C,P.args&&P.args[0],M):P.use!==null?this._getUse(P.use,C._reporterState.obj)._decode(C,M):C.error("unknown tag: "+E)},v.prototype._getUse=function(E,C){var M=this._baseState;return M.useDecoder=this._use(E,C),l(M.useDecoder._baseState.parent===null),M.useDecoder=M.useDecoder._baseState.children[0],M.implicit!==M.useDecoder._baseState.implicit&&(M.useDecoder=M.useDecoder.clone(),M.useDecoder._baseState.implicit=M.implicit),M.useDecoder},v.prototype._decodeChoice=function(E,C){var M=this._baseState,P=null,I=!1;return Object.keys(M.choice).some(function(j){var B=E.save(),F=M.choice[j];try{var N=F._decode(E,C);if(E.isError(N))return!1;P={type:j,value:N},I=!0}catch{return E.restore(B),!1}return!0},this),I?P:E.error("Choice not matched")},v.prototype._createEncoderBuffer=function(E){return new e(E,this.reporter)},v.prototype._encode=function(E,C,M){var P=this._baseState;if(!(P.default!==null&&P.default===E)){var I=this._encodeValue(E,C,M);if(I!==void 0&&!this._skipDefault(I,C,M))return I}},v.prototype._encodeValue=function(E,C,M){var P=this._baseState;if(P.parent===null)return P.children[0]._encode(E,C||new n);var F=null;if(this.reporter=C,P.optional&&E===void 0)if(P.default!==null)E=P.default;else return;var I=null,j=!1;if(P.any)F=this._createEncoderBuffer(E);else if(P.choice)F=this._encodeChoice(E,C);else if(P.contains)I=this._getUse(P.contains,M)._encode(E,C),j=!0;else if(P.children)I=P.children.map(function(Z){if(Z._baseState.tag==="null_")return Z._encode(null,C,E);if(Z._baseState.key===null)return C.error("Child should have a key");var re=C.enterKey(Z._baseState.key);if(typeof E!="object")return C.error("Child expected, but input is not object");var fe=Z._encode(E[Z._baseState.key],C,E);return C.leaveKey(re),fe},this).filter(function(Z){return Z}),I=this._createEncoderBuffer(I);else if(P.tag==="seqof"||P.tag==="setof"){if(!(P.args&&P.args.length===1))return C.error("Too many args for : "+P.tag);if(!Array.isArray(E))return C.error("seqof/setof, but data is not Array");var B=this.clone();B._baseState.implicit=null,I=this._createEncoderBuffer(E.map(function(Z){var re=this._baseState;return this._getUse(re.args[0],E)._encode(Z,C)},B))}else P.use!==null?F=this._getUse(P.use,M)._encode(E,C):(I=this._encodePrimitive(P.tag,E),j=!0);var F;if(!P.any&&P.choice===null){var N=P.implicit!==null?P.implicit:P.tag,ee=P.implicit===null?"universal":"context";N===null?P.use===null&&C.error("Tag could be omitted only for .use()"):P.use===null&&(F=this._encodeComposite(N,j,ee,I))}return P.explicit!==null&&(F=this._encodeComposite(P.explicit,!1,"context",F)),F},v.prototype._encodeChoice=function(E,C){var M=this._baseState,P=M.choice[E.type];return P||l(!1,E.type+" not found in "+JSON.stringify(Object.keys(M.choice))),P._encode(E.value,C)},v.prototype._encodePrimitive=function(E,C){var M=this._baseState;if(/str$/.test(E))return this._encodeStr(C,E);if(E==="objid"&&M.args)return this._encodeObjid(C,M.reverseArgs[0],M.args[1]);if(E==="objid")return this._encodeObjid(C,null,null);if(E==="gentime"||E==="utctime")return this._encodeTime(C,E);if(E==="null_")return this._encodeNull();if(E==="int"||E==="enum")return this._encodeInt(C,M.args&&M.reverseArgs[0]);if(E==="bool")return this._encodeBool(C);if(E==="objDesc")return this._encodeStr(C,E);throw new Error("Unsupported tag: "+E)},v.prototype._isNumstr=function(E){return/^[0-9 ]*$/.test(E)},v.prototype._isPrintstr=function(E){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(E)},node}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(n){var e=n;e.Reporter=reporter.Reporter,e.DecoderBuffer=requireBuffer().DecoderBuffer,e.EncoderBuffer=requireBuffer().EncoderBuffer,e.Node=requireNode()}(base)),base}var constants$1={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(n){var e=requireConstants$1();n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=e._reverse(n.tagClass),n.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},n.tagByName=e._reverse(n.tag)}(der)),der}var hasRequiredConstants$1;function requireConstants$1(){return hasRequiredConstants$1||(hasRequiredConstants$1=1,function(n){var e=n;e._reverse=function(l){var t={};return Object.keys(l).forEach(function(u){(u|0)==u&&(u=u|0);var h=l[u];t[h]=u}),t},e.der=requireDer$2()}(constants$1)),constants$1}var decoders={},der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var n=inherits_browserExports,e=requireAsn1(),o=e.base,l=e.bignum,t=e.constants.der;function u(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new h,this.tree._init(A.body)}der_1$1=u,u.prototype.decode=function(E,C){return E instanceof o.DecoderBuffer||(E=new o.DecoderBuffer(E,C)),this.tree._decode(E,C)};function h(A){o.Node.call(this,"der",A)}n(h,o.Node),h.prototype._peekTag=function(E,C,M){if(E.isEmpty())return!1;var P=E.save(),I=v(E,'Failed to peek tag: "'+C+'"');return E.isError(I)?I:(E.restore(P),I.tag===C||I.tagStr===C||I.tagStr+"of"===C||M)},h.prototype._decodeTag=function(E,C,M){var P=v(E,'Failed to decode tag of "'+C+'"');if(E.isError(P))return P;var I=w(E,P.primitive,'Failed to get length of "'+C+'"');if(E.isError(I))return I;if(!M&&P.tag!==C&&P.tagStr!==C&&P.tagStr+"of"!==C)return E.error('Failed to match tag: "'+C+'"');if(P.primitive||I!==null)return E.skip(I,'Failed to match body of: "'+C+'"');var j=E.save(),B=this._skipUntilEnd(E,'Failed to skip indefinite length body: "'+this.tag+'"');return E.isError(B)?B:(I=E.offset-j.offset,E.restore(j),E.skip(I,'Failed to match body of: "'+C+'"'))},h.prototype._skipUntilEnd=function(E,C){for(;;){var M=v(E,C);if(E.isError(M))return M;var P=w(E,M.primitive,C);if(E.isError(P))return P;var I;if(M.primitive||P!==null?I=E.skip(P):I=this._skipUntilEnd(E,C),E.isError(I))return I;if(M.tagStr==="end")break}},h.prototype._decodeList=function(E,C,M,P){for(var I=[];!E.isEmpty();){var j=this._peekTag(E,"end");if(E.isError(j))return j;var B=M.decode(E,"der",P);if(E.isError(B)&&j)break;I.push(B)}return I},h.prototype._decodeStr=function(E,C){if(C==="bitstr"){var M=E.readUInt8();return E.isError(M)?M:{unused:M,data:E.raw()}}else if(C==="bmpstr"){var P=E.raw();if(P.length%2===1)return E.error("Decoding of string type: bmpstr length mismatch");for(var I="",j=0;j<P.length/2;j++)I+=String.fromCharCode(P.readUInt16BE(j*2));return I}else if(C==="numstr"){var B=E.raw().toString("ascii");return this._isNumstr(B)?B:E.error("Decoding of string type: numstr unsupported characters")}else{if(C==="octstr")return E.raw();if(C==="objDesc")return E.raw();if(C==="printstr"){var F=E.raw().toString("ascii");return this._isPrintstr(F)?F:E.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(C)?E.raw().toString():E.error("Decoding of string type: "+C+" unsupported")}},h.prototype._decodeObjid=function(E,C,M){for(var P,I=[],j=0;!E.isEmpty();){var B=E.readUInt8();j<<=7,j|=B&127,B&128||(I.push(j),j=0)}B&128&&I.push(j);var F=I[0]/40|0,N=I[0]%40;if(M?P=I:P=[F,N].concat(I.slice(1)),C){var ee=C[P.join(" ")];ee===void 0&&(ee=C[P.join(".")]),ee!==void 0&&(P=ee)}return P},h.prototype._decodeTime=function(E,C){var M=E.raw().toString();if(C==="gentime")var P=M.slice(0,4)|0,I=M.slice(4,6)|0,j=M.slice(6,8)|0,B=M.slice(8,10)|0,F=M.slice(10,12)|0,N=M.slice(12,14)|0;else if(C==="utctime"){var P=M.slice(0,2)|0,I=M.slice(2,4)|0,j=M.slice(4,6)|0,B=M.slice(6,8)|0,F=M.slice(8,10)|0,N=M.slice(10,12)|0;P<70?P=2e3+P:P=1900+P}else return E.error("Decoding "+C+" time is not supported yet");return Date.UTC(P,I-1,j,B,F,N,0)},h.prototype._decodeNull=function(E){return null},h.prototype._decodeBool=function(E){var C=E.readUInt8();return E.isError(C)?C:C!==0},h.prototype._decodeInt=function(E,C){var M=E.raw(),P=new l(M);return C&&(P=C[P.toString(10)]||P),P},h.prototype._use=function(E,C){return typeof E=="function"&&(E=E(C)),E._getDecoder("der").tree};function v(A,E){var C=A.readUInt8(E);if(A.isError(C))return C;var M=t.tagClass[C>>6],P=(C&32)===0;if((C&31)===31){var I=C;for(C=0;(I&128)===128;){if(I=A.readUInt8(E),A.isError(I))return I;C<<=7,C|=I&127}}else C&=31;var j=t.tag[C];return{cls:M,primitive:P,tag:C,tagStr:j}}function w(A,E,C){var M=A.readUInt8(C);if(A.isError(M))return M;if(!E&&M===128)return null;if(!(M&128))return M;var P=M&127;if(P>4)return A.error("length octect is too long");M=0;for(var I=0;I<P;I++){M<<=8;var j=A.readUInt8(C);if(A.isError(j))return j;M|=j}return M}return der_1$1}var pem$2,hasRequiredPem$2;function requirePem$2(){if(hasRequiredPem$2)return pem$2;hasRequiredPem$2=1;var n=inherits_browserExports,e=require$$0$2.Buffer,o=requireDer$1();function l(t){o.call(this,t),this.enc="pem"}return n(l,o),pem$2=l,l.prototype.decode=function(u,h){for(var v=u.toString().split(/[\r\n]+/g),w=h.label.toUpperCase(),A=/^-----(BEGIN|END) ([^-]+)-----$/,E=-1,C=-1,M=0;M<v.length;M++){var P=v[M].match(A);if(P!==null&&P[2]===w)if(E===-1){if(P[1]!=="BEGIN")break;E=M}else{if(P[1]!=="END")break;C=M;break}}if(E===-1||C===-1)throw new Error("PEM section not found for: "+w);var I=v.slice(E+1,C).join("");I.replace(/[^a-z0-9\+\/=]+/gi,"");var j=new e(I,"base64");return o.prototype.decode.call(this,j,h)},pem$2}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,function(n){var e=n;e.der=requireDer$1(),e.pem=requirePem$2()}(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var n=inherits_browserExports,e=require$$0$2.Buffer,o=requireAsn1(),l=o.base,t=o.constants.der;function u(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new h,this.tree._init(A.body)}der_1=u,u.prototype.encode=function(E,C){return this.tree._encode(E,C).join()};function h(A){l.Node.call(this,"der",A)}n(h,l.Node),h.prototype._encodeComposite=function(E,C,M,P){var I=w(E,C,M,this.reporter);if(P.length<128){var F=new e(2);return F[0]=I,F[1]=P.length,this._createEncoderBuffer([F,P])}for(var j=1,B=P.length;B>=256;B>>=8)j++;var F=new e(2+j);F[0]=I,F[1]=128|j;for(var B=1+j,N=P.length;N>0;B--,N>>=8)F[B]=N&255;return this._createEncoderBuffer([F,P])},h.prototype._encodeStr=function(E,C){if(C==="bitstr")return this._createEncoderBuffer([E.unused|0,E.data]);if(C==="bmpstr"){for(var M=new e(E.length*2),P=0;P<E.length;P++)M.writeUInt16BE(E.charCodeAt(P),P*2);return this._createEncoderBuffer(M)}else return C==="numstr"?this._isNumstr(E)?this._createEncoderBuffer(E):this.reporter.error("Encoding of string type: numstr supports only digits and space"):C==="printstr"?this._isPrintstr(E)?this._createEncoderBuffer(E):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(C)?this._createEncoderBuffer(E):C==="objDesc"?this._createEncoderBuffer(E):this.reporter.error("Encoding of string type: "+C+" unsupported")},h.prototype._encodeObjid=function(E,C,M){if(typeof E=="string"){if(!C)return this.reporter.error("string objid given, but no values map found");if(!C.hasOwnProperty(E))return this.reporter.error("objid not found in values map");E=C[E].split(/[\s\.]+/g);for(var P=0;P<E.length;P++)E[P]|=0}else if(Array.isArray(E)){E=E.slice();for(var P=0;P<E.length;P++)E[P]|=0}if(!Array.isArray(E))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(E));if(!M){if(E[1]>=40)return this.reporter.error("Second objid identifier OOB");E.splice(0,2,E[0]*40+E[1])}for(var I=0,P=0;P<E.length;P++){var j=E[P];for(I++;j>=128;j>>=7)I++}for(var B=new e(I),F=B.length-1,P=E.length-1;P>=0;P--){var j=E[P];for(B[F--]=j&127;(j>>=7)>0;)B[F--]=128|j&127}return this._createEncoderBuffer(B)};function v(A){return A<10?"0"+A:A}h.prototype._encodeTime=function(E,C){var M,P=new Date(E);return C==="gentime"?M=[v(P.getFullYear()),v(P.getUTCMonth()+1),v(P.getUTCDate()),v(P.getUTCHours()),v(P.getUTCMinutes()),v(P.getUTCSeconds()),"Z"].join(""):C==="utctime"?M=[v(P.getFullYear()%100),v(P.getUTCMonth()+1),v(P.getUTCDate()),v(P.getUTCHours()),v(P.getUTCMinutes()),v(P.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+C+" time is not supported yet"),this._encodeStr(M,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(E,C){if(typeof E=="string"){if(!C)return this.reporter.error("String int or enum given, but no values map");if(!C.hasOwnProperty(E))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(E));E=C[E]}if(typeof E!="number"&&!e.isBuffer(E)){var M=E.toArray();!E.sign&&M[0]&128&&M.unshift(0),E=new e(M)}if(e.isBuffer(E)){var P=E.length;E.length===0&&P++;var j=new e(P);return E.copy(j),E.length===0&&(j[0]=0),this._createEncoderBuffer(j)}if(E<128)return this._createEncoderBuffer(E);if(E<256)return this._createEncoderBuffer([0,E]);for(var P=1,I=E;I>=256;I>>=8)P++;for(var j=new Array(P),I=j.length-1;I>=0;I--)j[I]=E&255,E>>=8;return j[0]&128&&j.unshift(0),this._createEncoderBuffer(new e(j))},h.prototype._encodeBool=function(E){return this._createEncoderBuffer(E?255:0)},h.prototype._use=function(E,C){return typeof E=="function"&&(E=E(C)),E._getEncoder("der").tree},h.prototype._skipDefault=function(E,C,M){var P=this._baseState,I;if(P.default===null)return!1;var j=E.join();if(P.defaultBuffer===void 0&&(P.defaultBuffer=this._encodeValue(P.default,C,M).join()),j.length!==P.defaultBuffer.length)return!1;for(I=0;I<j.length;I++)if(j[I]!==P.defaultBuffer[I])return!1;return!0};function w(A,E,C,M){var P;if(A==="seqof"?A="seq":A==="setof"&&(A="set"),t.tagByName.hasOwnProperty(A))P=t.tagByName[A];else if(typeof A=="number"&&(A|0)===A)P=A;else return M.error("Unknown tag: "+A);return P>=31?M.error("Multi-octet tag encoding unsupported"):(E||(P|=32),P|=t.tagClassByName[C||"universal"]<<6,P)}return der_1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var n=inherits_browserExports,e=requireDer();function o(l){e.call(this,l),this.enc="pem"}return n(o,e),pem$1=o,o.prototype.encode=function(t,u){for(var h=e.prototype.encode.call(this,t),v=h.toString("base64"),w=["-----BEGIN "+u.label+"-----"],A=0;A<v.length;A+=64)w.push(v.slice(A,A+64));return w.push("-----END "+u.label+"-----"),w.join(`
`)},pem$1}var hasRequiredEncoders;function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,function(n){var e=n;e.der=requireDer(),e.pem=requirePem$1()}(encoders)),encoders}var hasRequiredAsn1;function requireAsn1(){return hasRequiredAsn1||(hasRequiredAsn1=1,function(n){var e=n;e.bignum=bnExports$2,e.define=requireApi().define,e.base=requireBase(),e.constants=requireConstants$1(),e.decoders=requireDecoders(),e.encoders=requireEncoders()}(asn1$2)),asn1$2}var asn=requireAsn1(),Time=asn.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),AttributeTypeValue=asn.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),AlgorithmIdentifier$1=asn.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),SubjectPublicKeyInfo=asn.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier$1),this.key("subjectPublicKey").bitstr())}),RelativeDistinguishedName=asn.define("RelativeDistinguishedName",function(){this.setof(AttributeTypeValue)}),RDNSequence=asn.define("RDNSequence",function(){this.seqof(RelativeDistinguishedName)}),Name=asn.define("Name",function(){this.choice({rdnSequence:this.use(RDNSequence)})}),Validity=asn.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Time),this.key("notAfter").use(Time))}),Extension=asn.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),TBSCertificate=asn.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(AlgorithmIdentifier$1),this.key("issuer").use(Name),this.key("validity").use(Validity),this.key("subject").use(Name),this.key("subjectPublicKeyInfo").use(SubjectPublicKeyInfo),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(Extension).optional())}),X509Certificate=asn.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(TBSCertificate),this.key("signatureAlgorithm").use(AlgorithmIdentifier$1),this.key("signatureValue").bitstr())}),certificate$1=X509Certificate,asn1$1=requireAsn1();asn1$3.certificate=certificate$1;var RSAPrivateKey=asn1$1.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});asn1$3.RSAPrivateKey=RSAPrivateKey;var RSAPublicKey=asn1$1.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});asn1$3.RSAPublicKey=RSAPublicKey;var AlgorithmIdentifier=asn1$1.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),PublicKey=asn1$1.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPublicKey").bitstr())});asn1$3.PublicKey=PublicKey;var PrivateKeyInfo=asn1$1.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPrivateKey").octstr())});asn1$3.PrivateKey=PrivateKeyInfo;var EncryptedPrivateKeyInfo=asn1$1.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});asn1$3.EncryptedPrivateKey=EncryptedPrivateKeyInfo;var DSAPrivateKey=asn1$1.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});asn1$3.DSAPrivateKey=DSAPrivateKey,asn1$3.DSAparam=asn1$1.define("DSAparam",function(){this.int()});var ECParameters=asn1$1.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),ECPrivateKey=asn1$1.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(ECParameters),this.key("publicKey").optional().explicit(1).bitstr())});asn1$3.ECPrivateKey=ECPrivateKey,asn1$3.signature=asn1$1.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});const require$$1$2={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var findProc=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,startRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,fullRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,evp=evp_bytestokey,ciphers$1=browser$7,Buffer$7=safeBufferExports$1.Buffer,fixProc$1=function(n,e){var o=n.toString(),l=o.match(findProc),t;if(l){var h="aes"+l[1],v=Buffer$7.from(l[2],"hex"),w=Buffer$7.from(l[3].replace(/[\r\n]/g,""),"base64"),A=evp(e,v.slice(0,8),parseInt(l[1],10)).key,E=[],C=ciphers$1.createDecipheriv(h,A,v);E.push(C.update(w)),E.push(C.final()),t=Buffer$7.concat(E)}else{var u=o.match(fullRegex);t=Buffer$7.from(u[2].replace(/[\r\n]/g,""),"base64")}var M=o.match(startRegex)[1];return{tag:M,data:t}},asn1=asn1$3,aesid=require$$1$2,fixProc=fixProc$1,ciphers=browser$7,compat=browser$9,Buffer$6=safeBufferExports$1.Buffer;function decrypt(n,e){var o=n.algorithm.decrypt.kde.kdeparams.salt,l=parseInt(n.algorithm.decrypt.kde.kdeparams.iters.toString(),10),t=aesid[n.algorithm.decrypt.cipher.algo.join(".")],u=n.algorithm.decrypt.cipher.iv,h=n.subjectPrivateKey,v=parseInt(t.split("-")[1],10)/8,w=compat.pbkdf2Sync(e,o,l,v,"sha1"),A=ciphers.createDecipheriv(t,w,u),E=[];return E.push(A.update(h)),E.push(A.final()),Buffer$6.concat(E)}function parseKeys$2(n){var e;typeof n=="object"&&!Buffer$6.isBuffer(n)&&(e=n.passphrase,n=n.key),typeof n=="string"&&(n=Buffer$6.from(n));var o=fixProc(n,e),l=o.tag,t=o.data,u,h;switch(l){case"CERTIFICATE":h=asn1.certificate.decode(t,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=asn1.PublicKey.decode(t,"der")),u=h.algorithm.algorithm.join("."),u){case"1.2.840.113549.1.1.1":return asn1.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=asn1.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+u)}case"ENCRYPTED PRIVATE KEY":t=asn1.EncryptedPrivateKey.decode(t,"der"),t=decrypt(t,e);case"PRIVATE KEY":switch(h=asn1.PrivateKey.decode(t,"der"),u=h.algorithm.algorithm.join("."),u){case"1.2.840.113549.1.1.1":return asn1.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:asn1.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=asn1.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+u)}case"RSA PUBLIC KEY":return asn1.RSAPublicKey.decode(t,"der");case"RSA PRIVATE KEY":return asn1.RSAPrivateKey.decode(t,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:asn1.DSAPrivateKey.decode(t,"der")};case"EC PRIVATE KEY":return t=asn1.ECPrivateKey.decode(t,"der"),{curve:t.parameters.value,privateKey:t.privateKey};default:throw new Error("unknown key type "+l)}}parseKeys$2.signature=asn1.signature;var parseAsn1=parseKeys$2;const require$$4$1={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign.exports;hasRequiredSign=1;var n=safeBufferExports$1.Buffer,e=browser$a,o=browserifyRsa,l=requireElliptic().ec,t=bnExports$4,u=parseAsn1,h=require$$4$1,v=1;function w(F,N,ee,Z,re){var fe=u(N);if(fe.curve){if(Z!=="ecdsa"&&Z!=="ecdsa/rsa")throw new Error("wrong private key type");return A(F,fe)}else if(fe.type==="dsa"){if(Z!=="dsa")throw new Error("wrong private key type");return E(F,fe,ee)}if(Z!=="rsa"&&Z!=="ecdsa/rsa")throw new Error("wrong private key type");if(N.padding!==void 0&&N.padding!==v)throw new Error("illegal or unsupported padding mode");F=n.concat([re,F]);for(var V=fe.modulus.byteLength(),le=[0,1];F.length+le.length+1<V;)le.push(255);le.push(0);for(var he=-1;++he<F.length;)le.push(F[he]);var ye=o(le,fe);return ye}function A(F,N){var ee=h[N.curve.join(".")];if(!ee)throw new Error("unknown curve "+N.curve.join("."));var Z=new l(ee),re=Z.keyFromPrivate(N.privateKey),fe=re.sign(F);return n.from(fe.toDER())}function E(F,N,ee){for(var Z=N.params.priv_key,re=N.params.p,fe=N.params.q,V=N.params.g,le=new t(0),he,ye=P(F,fe).mod(fe),L=!1,p=M(Z,fe,F,ee);L===!1;)he=j(fe,p,ee),le=B(V,he,re,fe),L=he.invm(fe).imul(ye.add(Z.mul(le))).mod(fe),L.cmpn(0)===0&&(L=!1,le=new t(0));return C(le,L)}function C(F,N){F=F.toArray(),N=N.toArray(),F[0]&128&&(F=[0].concat(F)),N[0]&128&&(N=[0].concat(N));var ee=F.length+N.length+4,Z=[48,ee,2,F.length];return Z=Z.concat(F,[2,N.length],N),n.from(Z)}function M(F,N,ee,Z){if(F=n.from(F.toArray()),F.length<N.byteLength()){var re=n.alloc(N.byteLength()-F.length);F=n.concat([re,F])}var fe=ee.length,V=I(ee,N),le=n.alloc(fe);le.fill(1);var he=n.alloc(fe);return he=e(Z,he).update(le).update(n.from([0])).update(F).update(V).digest(),le=e(Z,he).update(le).digest(),he=e(Z,he).update(le).update(n.from([1])).update(F).update(V).digest(),le=e(Z,he).update(le).digest(),{k:he,v:le}}function P(F,N){var ee=new t(F),Z=(F.length<<3)-N.bitLength();return Z>0&&ee.ishrn(Z),ee}function I(F,N){F=P(F,N),F=F.mod(N);var ee=n.from(F.toArray());if(ee.length<N.byteLength()){var Z=n.alloc(N.byteLength()-ee.length);ee=n.concat([Z,ee])}return ee}function j(F,N,ee){var Z,re;do{for(Z=n.alloc(0);Z.length*8<F.bitLength();)N.v=e(ee,N.k).update(N.v).digest(),Z=n.concat([Z,N.v]);re=P(Z,F),N.k=e(ee,N.k).update(N.v).update(n.from([0])).digest(),N.v=e(ee,N.k).update(N.v).digest()}while(re.cmp(F)!==-1);return re}function B(F,N,ee,Z){return F.toRed(t.mont(ee)).redPow(N).fromRed().mod(Z)}return sign.exports=w,sign.exports.getKey=M,sign.exports.makeKey=j,sign.exports}var verify_1,hasRequiredVerify$1;function requireVerify$1(){if(hasRequiredVerify$1)return verify_1;hasRequiredVerify$1=1;var n=safeBufferExports$1.Buffer,e=bnExports$4,o=requireElliptic().ec,l=parseAsn1,t=require$$4$1;function u(A,E,C,M,P){var I=l(C);if(I.type==="ec"){if(M!=="ecdsa"&&M!=="ecdsa/rsa")throw new Error("wrong public key type");return h(A,E,I)}else if(I.type==="dsa"){if(M!=="dsa")throw new Error("wrong public key type");return v(A,E,I)}if(M!=="rsa"&&M!=="ecdsa/rsa")throw new Error("wrong public key type");E=n.concat([P,E]);for(var j=I.modulus.byteLength(),B=[1],F=0;E.length+B.length+2<j;)B.push(255),F+=1;B.push(0);for(var N=-1;++N<E.length;)B.push(E[N]);B=n.from(B);var ee=e.mont(I.modulus);A=new e(A).toRed(ee),A=A.redPow(new e(I.publicExponent)),A=n.from(A.fromRed().toArray());var Z=F<8?1:0;for(j=Math.min(A.length,B.length),A.length!==B.length&&(Z=1),N=-1;++N<j;)Z|=A[N]^B[N];return Z===0}function h(A,E,C){var M=t[C.data.algorithm.curve.join(".")];if(!M)throw new Error("unknown curve "+C.data.algorithm.curve.join("."));var P=new o(M),I=C.data.subjectPrivateKey.data;return P.verify(E,A,I)}function v(A,E,C){var M=C.data.p,P=C.data.q,I=C.data.g,j=C.data.pub_key,B=l.signature.decode(A,"der"),F=B.s,N=B.r;w(F,P),w(N,P);var ee=e.mont(M),Z=F.invm(P),re=I.toRed(ee).redPow(new e(E).mul(Z).mod(P)).fromRed().mul(j.toRed(ee).redPow(N.mul(Z).mod(P)).fromRed()).mod(M).mod(P);return re.cmp(N)===0}function w(A,E){if(A.cmpn(0)<=0)throw new Error("invalid sig");if(A.cmp(E)>=0)throw new Error("invalid sig")}return verify_1=u,verify_1}var browser$5,hasRequiredBrowser$3;function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$5;hasRequiredBrowser$3=1;var n=safeBufferExports$1.Buffer,e=browser$b,o=readableBrowserExports,l=inherits_browserExports,t=requireSign(),u=requireVerify$1(),h=require$$6$1;Object.keys(h).forEach(function(C){h[C].id=n.from(h[C].id,"hex"),h[C.toLowerCase()]=h[C]});function v(C){o.Writable.call(this);var M=h[C];if(!M)throw new Error("Unknown message digest");this._hashType=M.hash,this._hash=e(M.hash),this._tag=M.id,this._signType=M.sign}l(v,o.Writable),v.prototype._write=function(M,P,I){this._hash.update(M),I()},v.prototype.update=function(M,P){return this._hash.update(typeof M=="string"?n.from(M,P):M),this},v.prototype.sign=function(M,P){this.end();var I=this._hash.digest(),j=t(I,M,this._hashType,this._signType,this._tag);return P?j.toString(P):j};function w(C){o.Writable.call(this);var M=h[C];if(!M)throw new Error("Unknown message digest");this._hash=e(M.hash),this._tag=M.id,this._signType=M.sign}l(w,o.Writable),w.prototype._write=function(M,P,I){this._hash.update(M),I()},w.prototype.update=function(M,P){return this._hash.update(typeof M=="string"?n.from(M,P):M),this},w.prototype.verify=function(M,P,I){var j=typeof P=="string"?n.from(P,I):P;this.end();var B=this._hash.digest();return u(j,B,M,this._signType,this._tag)};function A(C){return new v(C)}function E(C){return new w(C)}return browser$5={Sign:A,Verify:E,createSign:A,createVerify:E},browser$5}var bn$1={exports:{}};bn$1.exports,function(n){(function(e,o){function l(L,p){if(!L)throw new Error(p||"Assertion failed")}function t(L,p){L.super_=p;var y=function(){};y.prototype=p.prototype,L.prototype=new y,L.prototype.constructor=L}function u(L,p,y){if(u.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,L!==null&&((p==="le"||p==="be")&&(y=p,p=10),this._init(L||0,p||10,y||"be"))}typeof e=="object"?e.exports=u:o.BN=u,u.BN=u,u.wordSize=26;var h;try{typeof window<"u"&&typeof window.Buffer<"u"?h=window.Buffer:h=require$$0$2.Buffer}catch{}u.isBN=function(p){return p instanceof u?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===u.wordSize&&Array.isArray(p.words)},u.max=function(p,y){return p.cmp(y)>0?p:y},u.min=function(p,y){return p.cmp(y)<0?p:y},u.prototype._init=function(p,y,S){if(typeof p=="number")return this._initNumber(p,y,S);if(typeof p=="object")return this._initArray(p,y,S);y==="hex"&&(y=16),l(y===(y|0)&&y>=2&&y<=36),p=p.toString().replace(/\s+/g,"");var c=0;p[0]==="-"&&(c++,this.negative=1),c<p.length&&(y===16?this._parseHex(p,c,S):(this._parseBase(p,y,c),S==="le"&&this._initArray(this.toArray(),y,S)))},u.prototype._initNumber=function(p,y,S){p<0&&(this.negative=1,p=-p),p<67108864?(this.words=[p&67108863],this.length=1):p<4503599627370496?(this.words=[p&67108863,p/67108864&67108863],this.length=2):(l(p<9007199254740992),this.words=[p&67108863,p/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),y,S)},u.prototype._initArray=function(p,y,S){if(l(typeof p.length=="number"),p.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(p.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m,x,T=0;if(S==="be")for(c=p.length-1,m=0;c>=0;c-=3)x=p[c]|p[c-1]<<8|p[c-2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);else if(S==="le")for(c=0,m=0;c<p.length;c+=3)x=p[c]|p[c+1]<<8|p[c+2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);return this.strip()};function v(L,p){var y=L.charCodeAt(p);return y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:y-48&15}function w(L,p,y){var S=v(L,y);return y-1>=p&&(S|=v(L,y-1)<<4),S}u.prototype._parseHex=function(p,y,S){this.length=Math.ceil((p.length-y)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m=0,x=0,T;if(S==="be")for(c=p.length-1;c>=y;c-=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8;else{var b=p.length-y;for(c=b%2===0?y+1:y;c<p.length;c+=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8}this.strip()};function A(L,p,y,S){for(var c=0,m=Math.min(L.length,y),x=p;x<m;x++){var T=L.charCodeAt(x)-48;c*=S,T>=49?c+=T-49+10:T>=17?c+=T-17+10:c+=T}return c}u.prototype._parseBase=function(p,y,S){this.words=[0],this.length=1;for(var c=0,m=1;m<=67108863;m*=y)c++;c--,m=m/y|0;for(var x=p.length-S,T=x%c,b=Math.min(x,x-T)+S,d=0,k=S;k<b;k+=c)d=A(p,k,k+c,y),this.imuln(m),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(T!==0){var D=1;for(d=A(p,k,p.length,y),k=0;k<T;k++)D*=y;this.imuln(D),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}this.strip()},u.prototype.copy=function(p){p.words=new Array(this.length);for(var y=0;y<this.length;y++)p.words[y]=this.words[y];p.length=this.length,p.negative=this.negative,p.red=this.red},u.prototype.clone=function(){var p=new u(null);return this.copy(p),p},u.prototype._expand=function(p){for(;this.length<p;)this.words[this.length++]=0;return this},u.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},u.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(p,y){p=p||10,y=y|0||1;var S;if(p===16||p==="hex"){S="";for(var c=0,m=0,x=0;x<this.length;x++){var T=this.words[x],b=((T<<c|m)&16777215).toString(16);m=T>>>24-c&16777215,m!==0||x!==this.length-1?S=E[6-b.length]+b+S:S=b+S,c+=2,c>=26&&(c-=26,x--)}for(m!==0&&(S=m.toString(16)+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(p===(p|0)&&p>=2&&p<=36){var d=C[p],k=M[p];S="";var D=this.clone();for(D.negative=0;!D.isZero();){var O=D.modn(k).toString(p);D=D.idivn(k),D.isZero()?S=O+S:S=E[d-O.length]+O+S}for(this.isZero()&&(S="0"+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}l(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},u.prototype.toJSON=function(){return this.toString(16)},u.prototype.toBuffer=function(p,y){return l(typeof h<"u"),this.toArrayLike(h,p,y)},u.prototype.toArray=function(p,y){return this.toArrayLike(Array,p,y)},u.prototype.toArrayLike=function(p,y,S){var c=this.byteLength(),m=S||Math.max(1,c);l(c<=m,"byte array longer than desired length"),l(m>0,"Requested array length <= 0"),this.strip();var x=y==="le",T=new p(m),b,d,k=this.clone();if(x){for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[d]=b;for(;d<m;d++)T[d]=0}else{for(d=0;d<m-c;d++)T[d]=0;for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[m-d-1]=b}return T},Math.clz32?u.prototype._countBits=function(p){return 32-Math.clz32(p)}:u.prototype._countBits=function(p){var y=p,S=0;return y>=4096&&(S+=13,y>>>=13),y>=64&&(S+=7,y>>>=7),y>=8&&(S+=4,y>>>=4),y>=2&&(S+=2,y>>>=2),S+y},u.prototype._zeroBits=function(p){if(p===0)return 26;var y=p,S=0;return y&8191||(S+=13,y>>>=13),y&127||(S+=7,y>>>=7),y&15||(S+=4,y>>>=4),y&3||(S+=2,y>>>=2),y&1||S++,S},u.prototype.bitLength=function(){var p=this.words[this.length-1],y=this._countBits(p);return(this.length-1)*26+y};function P(L){for(var p=new Array(L.bitLength()),y=0;y<p.length;y++){var S=y/26|0,c=y%26;p[y]=(L.words[S]&1<<c)>>>c}return p}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,y=0;y<this.length;y++){var S=this._zeroBits(this.words[y]);if(p+=S,S!==26)break}return p},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(p){return this.negative!==0?this.abs().inotn(p).iaddn(1):this.clone()},u.prototype.fromTwos=function(p){return this.testn(p-1)?this.notn(p).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(p){for(;this.length<p.length;)this.words[this.length++]=0;for(var y=0;y<p.length;y++)this.words[y]=this.words[y]|p.words[y];return this.strip()},u.prototype.ior=function(p){return l((this.negative|p.negative)===0),this.iuor(p)},u.prototype.or=function(p){return this.length>p.length?this.clone().ior(p):p.clone().ior(this)},u.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},u.prototype.iuand=function(p){var y;this.length>p.length?y=p:y=this;for(var S=0;S<y.length;S++)this.words[S]=this.words[S]&p.words[S];return this.length=y.length,this.strip()},u.prototype.iand=function(p){return l((this.negative|p.negative)===0),this.iuand(p)},u.prototype.and=function(p){return this.length>p.length?this.clone().iand(p):p.clone().iand(this)},u.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},u.prototype.iuxor=function(p){var y,S;this.length>p.length?(y=this,S=p):(y=p,S=this);for(var c=0;c<S.length;c++)this.words[c]=y.words[c]^S.words[c];if(this!==y)for(;c<y.length;c++)this.words[c]=y.words[c];return this.length=y.length,this.strip()},u.prototype.ixor=function(p){return l((this.negative|p.negative)===0),this.iuxor(p)},u.prototype.xor=function(p){return this.length>p.length?this.clone().ixor(p):p.clone().ixor(this)},u.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},u.prototype.inotn=function(p){l(typeof p=="number"&&p>=0);var y=Math.ceil(p/26)|0,S=p%26;this._expand(y),S>0&&y--;for(var c=0;c<y;c++)this.words[c]=~this.words[c]&67108863;return S>0&&(this.words[c]=~this.words[c]&67108863>>26-S),this.strip()},u.prototype.notn=function(p){return this.clone().inotn(p)},u.prototype.setn=function(p,y){l(typeof p=="number"&&p>=0);var S=p/26|0,c=p%26;return this._expand(S+1),y?this.words[S]=this.words[S]|1<<c:this.words[S]=this.words[S]&~(1<<c),this.strip()},u.prototype.iadd=function(p){var y;if(this.negative!==0&&p.negative===0)return this.negative=0,y=this.isub(p),this.negative^=1,this._normSign();if(this.negative===0&&p.negative!==0)return p.negative=0,y=this.isub(p),p.negative=1,y._normSign();var S,c;this.length>p.length?(S=this,c=p):(S=p,c=this);for(var m=0,x=0;x<c.length;x++)y=(S.words[x]|0)+(c.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;for(;m!==0&&x<S.length;x++)y=(S.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;if(this.length=S.length,m!==0)this.words[this.length]=m,this.length++;else if(S!==this)for(;x<S.length;x++)this.words[x]=S.words[x];return this},u.prototype.add=function(p){var y;return p.negative!==0&&this.negative===0?(p.negative=0,y=this.sub(p),p.negative^=1,y):p.negative===0&&this.negative!==0?(this.negative=0,y=p.sub(this),this.negative=1,y):this.length>p.length?this.clone().iadd(p):p.clone().iadd(this)},u.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var y=this.iadd(p);return p.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var S=this.cmp(p);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,m;S>0?(c=this,m=p):(c=p,m=this);for(var x=0,T=0;T<m.length;T++)y=(c.words[T]|0)-(m.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;for(;x!==0&&T<c.length;T++)y=(c.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;if(x===0&&T<c.length&&c!==this)for(;T<c.length;T++)this.words[T]=c.words[T];return this.length=Math.max(this.length,T),c!==this&&(this.negative=1),this.strip()},u.prototype.sub=function(p){return this.clone().isub(p)};function I(L,p,y){y.negative=p.negative^L.negative;var S=L.length+p.length|0;y.length=S,S=S-1|0;var c=L.words[0]|0,m=p.words[0]|0,x=c*m,T=x&67108863,b=x/67108864|0;y.words[0]=T;for(var d=1;d<S;d++){for(var k=b>>>26,D=b&67108863,O=Math.min(d,p.length-1),Q=Math.max(0,d-L.length+1);Q<=O;Q++){var J=d-Q|0;c=L.words[J]|0,m=p.words[Q]|0,x=c*m+D,k+=x/67108864|0,D=x&67108863}y.words[d]=D|0,b=k|0}return b!==0?y.words[d]=b|0:y.length--,y.strip()}var j=function(p,y,S){var c=p.words,m=y.words,x=S.words,T=0,b,d,k,D=c[0]|0,O=D&8191,Q=D>>>13,J=c[1]|0,X=J&8191,U=J>>>13,z=c[2]|0,ie=z&8191,de=z>>>13,me=c[3]|0,pe=me&8191,qe=me>>>13,mt=c[4]|0,st=mt&8191,dt=mt>>>13,Tt=c[5]|0,lt=Tt&8191,Je=Tt>>>13,ht=c[6]|0,at=ht&8191,bt=ht>>>13,jt=c[7]|0,Ge=jt&8191,Qe=jt>>>13,Wt=c[8]|0,Et=Wt&8191,Ct=Wt>>>13,Kt=c[9]|0,Me=Kt&8191,te=Kt>>>13,_e=m[0]|0,je=_e&8191,We=_e>>>13,et=m[1]|0,Ye=et&8191,De=et>>>13,Ht=m[2]|0,Mt=Ht&8191,ge=Ht>>>13,Dt=m[3]|0,yt=Dt&8191,Ne=Dt>>>13,_t=m[4]|0,pt=_t&8191,Bt=_t>>>13,ur=m[5]|0,kt=ur&8191,Ut=ur>>>13,Wr=m[6]|0,zt=Wr&8191,Qt=Wr>>>13,$e=m[7]|0,be=$e&8191,ve=$e>>>13,se=m[8]|0,Pe=se&8191,ze=se>>>13,xt=m[9]|0,ot=xt&8191,wt=xt>>>13;S.negative=p.negative^y.negative,S.length=19,b=Math.imul(O,je),d=Math.imul(O,We),d=d+Math.imul(Q,je)|0,k=Math.imul(Q,We);var Yt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,b=Math.imul(X,je),d=Math.imul(X,We),d=d+Math.imul(U,je)|0,k=Math.imul(U,We),b=b+Math.imul(O,Ye)|0,d=d+Math.imul(O,De)|0,d=d+Math.imul(Q,Ye)|0,k=k+Math.imul(Q,De)|0;var Jt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,b=Math.imul(ie,je),d=Math.imul(ie,We),d=d+Math.imul(de,je)|0,k=Math.imul(de,We),b=b+Math.imul(X,Ye)|0,d=d+Math.imul(X,De)|0,d=d+Math.imul(U,Ye)|0,k=k+Math.imul(U,De)|0,b=b+Math.imul(O,Mt)|0,d=d+Math.imul(O,ge)|0,d=d+Math.imul(Q,Mt)|0,k=k+Math.imul(Q,ge)|0;var wr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(wr>>>26)|0,wr&=67108863,b=Math.imul(pe,je),d=Math.imul(pe,We),d=d+Math.imul(qe,je)|0,k=Math.imul(qe,We),b=b+Math.imul(ie,Ye)|0,d=d+Math.imul(ie,De)|0,d=d+Math.imul(de,Ye)|0,k=k+Math.imul(de,De)|0,b=b+Math.imul(X,Mt)|0,d=d+Math.imul(X,ge)|0,d=d+Math.imul(U,Mt)|0,k=k+Math.imul(U,ge)|0,b=b+Math.imul(O,yt)|0,d=d+Math.imul(O,Ne)|0,d=d+Math.imul(Q,yt)|0,k=k+Math.imul(Q,Ne)|0;var lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(lr>>>26)|0,lr&=67108863,b=Math.imul(st,je),d=Math.imul(st,We),d=d+Math.imul(dt,je)|0,k=Math.imul(dt,We),b=b+Math.imul(pe,Ye)|0,d=d+Math.imul(pe,De)|0,d=d+Math.imul(qe,Ye)|0,k=k+Math.imul(qe,De)|0,b=b+Math.imul(ie,Mt)|0,d=d+Math.imul(ie,ge)|0,d=d+Math.imul(de,Mt)|0,k=k+Math.imul(de,ge)|0,b=b+Math.imul(X,yt)|0,d=d+Math.imul(X,Ne)|0,d=d+Math.imul(U,yt)|0,k=k+Math.imul(U,Ne)|0,b=b+Math.imul(O,pt)|0,d=d+Math.imul(O,Bt)|0,d=d+Math.imul(Q,pt)|0,k=k+Math.imul(Q,Bt)|0;var Rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,b=Math.imul(lt,je),d=Math.imul(lt,We),d=d+Math.imul(Je,je)|0,k=Math.imul(Je,We),b=b+Math.imul(st,Ye)|0,d=d+Math.imul(st,De)|0,d=d+Math.imul(dt,Ye)|0,k=k+Math.imul(dt,De)|0,b=b+Math.imul(pe,Mt)|0,d=d+Math.imul(pe,ge)|0,d=d+Math.imul(qe,Mt)|0,k=k+Math.imul(qe,ge)|0,b=b+Math.imul(ie,yt)|0,d=d+Math.imul(ie,Ne)|0,d=d+Math.imul(de,yt)|0,k=k+Math.imul(de,Ne)|0,b=b+Math.imul(X,pt)|0,d=d+Math.imul(X,Bt)|0,d=d+Math.imul(U,pt)|0,k=k+Math.imul(U,Bt)|0,b=b+Math.imul(O,kt)|0,d=d+Math.imul(O,Ut)|0,d=d+Math.imul(Q,kt)|0,k=k+Math.imul(Q,Ut)|0;var vr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(vr>>>26)|0,vr&=67108863,b=Math.imul(at,je),d=Math.imul(at,We),d=d+Math.imul(bt,je)|0,k=Math.imul(bt,We),b=b+Math.imul(lt,Ye)|0,d=d+Math.imul(lt,De)|0,d=d+Math.imul(Je,Ye)|0,k=k+Math.imul(Je,De)|0,b=b+Math.imul(st,Mt)|0,d=d+Math.imul(st,ge)|0,d=d+Math.imul(dt,Mt)|0,k=k+Math.imul(dt,ge)|0,b=b+Math.imul(pe,yt)|0,d=d+Math.imul(pe,Ne)|0,d=d+Math.imul(qe,yt)|0,k=k+Math.imul(qe,Ne)|0,b=b+Math.imul(ie,pt)|0,d=d+Math.imul(ie,Bt)|0,d=d+Math.imul(de,pt)|0,k=k+Math.imul(de,Bt)|0,b=b+Math.imul(X,kt)|0,d=d+Math.imul(X,Ut)|0,d=d+Math.imul(U,kt)|0,k=k+Math.imul(U,Ut)|0,b=b+Math.imul(O,zt)|0,d=d+Math.imul(O,Qt)|0,d=d+Math.imul(Q,zt)|0,k=k+Math.imul(Q,Qt)|0;var dr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(dr>>>26)|0,dr&=67108863,b=Math.imul(Ge,je),d=Math.imul(Ge,We),d=d+Math.imul(Qe,je)|0,k=Math.imul(Qe,We),b=b+Math.imul(at,Ye)|0,d=d+Math.imul(at,De)|0,d=d+Math.imul(bt,Ye)|0,k=k+Math.imul(bt,De)|0,b=b+Math.imul(lt,Mt)|0,d=d+Math.imul(lt,ge)|0,d=d+Math.imul(Je,Mt)|0,k=k+Math.imul(Je,ge)|0,b=b+Math.imul(st,yt)|0,d=d+Math.imul(st,Ne)|0,d=d+Math.imul(dt,yt)|0,k=k+Math.imul(dt,Ne)|0,b=b+Math.imul(pe,pt)|0,d=d+Math.imul(pe,Bt)|0,d=d+Math.imul(qe,pt)|0,k=k+Math.imul(qe,Bt)|0,b=b+Math.imul(ie,kt)|0,d=d+Math.imul(ie,Ut)|0,d=d+Math.imul(de,kt)|0,k=k+Math.imul(de,Ut)|0,b=b+Math.imul(X,zt)|0,d=d+Math.imul(X,Qt)|0,d=d+Math.imul(U,zt)|0,k=k+Math.imul(U,Qt)|0,b=b+Math.imul(O,be)|0,d=d+Math.imul(O,ve)|0,d=d+Math.imul(Q,be)|0,k=k+Math.imul(Q,ve)|0;var Ir=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,b=Math.imul(Et,je),d=Math.imul(Et,We),d=d+Math.imul(Ct,je)|0,k=Math.imul(Ct,We),b=b+Math.imul(Ge,Ye)|0,d=d+Math.imul(Ge,De)|0,d=d+Math.imul(Qe,Ye)|0,k=k+Math.imul(Qe,De)|0,b=b+Math.imul(at,Mt)|0,d=d+Math.imul(at,ge)|0,d=d+Math.imul(bt,Mt)|0,k=k+Math.imul(bt,ge)|0,b=b+Math.imul(lt,yt)|0,d=d+Math.imul(lt,Ne)|0,d=d+Math.imul(Je,yt)|0,k=k+Math.imul(Je,Ne)|0,b=b+Math.imul(st,pt)|0,d=d+Math.imul(st,Bt)|0,d=d+Math.imul(dt,pt)|0,k=k+Math.imul(dt,Bt)|0,b=b+Math.imul(pe,kt)|0,d=d+Math.imul(pe,Ut)|0,d=d+Math.imul(qe,kt)|0,k=k+Math.imul(qe,Ut)|0,b=b+Math.imul(ie,zt)|0,d=d+Math.imul(ie,Qt)|0,d=d+Math.imul(de,zt)|0,k=k+Math.imul(de,Qt)|0,b=b+Math.imul(X,be)|0,d=d+Math.imul(X,ve)|0,d=d+Math.imul(U,be)|0,k=k+Math.imul(U,ve)|0,b=b+Math.imul(O,Pe)|0,d=d+Math.imul(O,ze)|0,d=d+Math.imul(Q,Pe)|0,k=k+Math.imul(Q,ze)|0;var kr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(kr>>>26)|0,kr&=67108863,b=Math.imul(Me,je),d=Math.imul(Me,We),d=d+Math.imul(te,je)|0,k=Math.imul(te,We),b=b+Math.imul(Et,Ye)|0,d=d+Math.imul(Et,De)|0,d=d+Math.imul(Ct,Ye)|0,k=k+Math.imul(Ct,De)|0,b=b+Math.imul(Ge,Mt)|0,d=d+Math.imul(Ge,ge)|0,d=d+Math.imul(Qe,Mt)|0,k=k+Math.imul(Qe,ge)|0,b=b+Math.imul(at,yt)|0,d=d+Math.imul(at,Ne)|0,d=d+Math.imul(bt,yt)|0,k=k+Math.imul(bt,Ne)|0,b=b+Math.imul(lt,pt)|0,d=d+Math.imul(lt,Bt)|0,d=d+Math.imul(Je,pt)|0,k=k+Math.imul(Je,Bt)|0,b=b+Math.imul(st,kt)|0,d=d+Math.imul(st,Ut)|0,d=d+Math.imul(dt,kt)|0,k=k+Math.imul(dt,Ut)|0,b=b+Math.imul(pe,zt)|0,d=d+Math.imul(pe,Qt)|0,d=d+Math.imul(qe,zt)|0,k=k+Math.imul(qe,Qt)|0,b=b+Math.imul(ie,be)|0,d=d+Math.imul(ie,ve)|0,d=d+Math.imul(de,be)|0,k=k+Math.imul(de,ve)|0,b=b+Math.imul(X,Pe)|0,d=d+Math.imul(X,ze)|0,d=d+Math.imul(U,Pe)|0,k=k+Math.imul(U,ze)|0,b=b+Math.imul(O,ot)|0,d=d+Math.imul(O,wt)|0,d=d+Math.imul(Q,ot)|0,k=k+Math.imul(Q,wt)|0;var Fr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,b=Math.imul(Me,Ye),d=Math.imul(Me,De),d=d+Math.imul(te,Ye)|0,k=Math.imul(te,De),b=b+Math.imul(Et,Mt)|0,d=d+Math.imul(Et,ge)|0,d=d+Math.imul(Ct,Mt)|0,k=k+Math.imul(Ct,ge)|0,b=b+Math.imul(Ge,yt)|0,d=d+Math.imul(Ge,Ne)|0,d=d+Math.imul(Qe,yt)|0,k=k+Math.imul(Qe,Ne)|0,b=b+Math.imul(at,pt)|0,d=d+Math.imul(at,Bt)|0,d=d+Math.imul(bt,pt)|0,k=k+Math.imul(bt,Bt)|0,b=b+Math.imul(lt,kt)|0,d=d+Math.imul(lt,Ut)|0,d=d+Math.imul(Je,kt)|0,k=k+Math.imul(Je,Ut)|0,b=b+Math.imul(st,zt)|0,d=d+Math.imul(st,Qt)|0,d=d+Math.imul(dt,zt)|0,k=k+Math.imul(dt,Qt)|0,b=b+Math.imul(pe,be)|0,d=d+Math.imul(pe,ve)|0,d=d+Math.imul(qe,be)|0,k=k+Math.imul(qe,ve)|0,b=b+Math.imul(ie,Pe)|0,d=d+Math.imul(ie,ze)|0,d=d+Math.imul(de,Pe)|0,k=k+Math.imul(de,ze)|0,b=b+Math.imul(X,ot)|0,d=d+Math.imul(X,wt)|0,d=d+Math.imul(U,ot)|0,k=k+Math.imul(U,wt)|0;var jr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(jr>>>26)|0,jr&=67108863,b=Math.imul(Me,Mt),d=Math.imul(Me,ge),d=d+Math.imul(te,Mt)|0,k=Math.imul(te,ge),b=b+Math.imul(Et,yt)|0,d=d+Math.imul(Et,Ne)|0,d=d+Math.imul(Ct,yt)|0,k=k+Math.imul(Ct,Ne)|0,b=b+Math.imul(Ge,pt)|0,d=d+Math.imul(Ge,Bt)|0,d=d+Math.imul(Qe,pt)|0,k=k+Math.imul(Qe,Bt)|0,b=b+Math.imul(at,kt)|0,d=d+Math.imul(at,Ut)|0,d=d+Math.imul(bt,kt)|0,k=k+Math.imul(bt,Ut)|0,b=b+Math.imul(lt,zt)|0,d=d+Math.imul(lt,Qt)|0,d=d+Math.imul(Je,zt)|0,k=k+Math.imul(Je,Qt)|0,b=b+Math.imul(st,be)|0,d=d+Math.imul(st,ve)|0,d=d+Math.imul(dt,be)|0,k=k+Math.imul(dt,ve)|0,b=b+Math.imul(pe,Pe)|0,d=d+Math.imul(pe,ze)|0,d=d+Math.imul(qe,Pe)|0,k=k+Math.imul(qe,ze)|0,b=b+Math.imul(ie,ot)|0,d=d+Math.imul(ie,wt)|0,d=d+Math.imul(de,ot)|0,k=k+Math.imul(de,wt)|0;var Cr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,b=Math.imul(Me,yt),d=Math.imul(Me,Ne),d=d+Math.imul(te,yt)|0,k=Math.imul(te,Ne),b=b+Math.imul(Et,pt)|0,d=d+Math.imul(Et,Bt)|0,d=d+Math.imul(Ct,pt)|0,k=k+Math.imul(Ct,Bt)|0,b=b+Math.imul(Ge,kt)|0,d=d+Math.imul(Ge,Ut)|0,d=d+Math.imul(Qe,kt)|0,k=k+Math.imul(Qe,Ut)|0,b=b+Math.imul(at,zt)|0,d=d+Math.imul(at,Qt)|0,d=d+Math.imul(bt,zt)|0,k=k+Math.imul(bt,Qt)|0,b=b+Math.imul(lt,be)|0,d=d+Math.imul(lt,ve)|0,d=d+Math.imul(Je,be)|0,k=k+Math.imul(Je,ve)|0,b=b+Math.imul(st,Pe)|0,d=d+Math.imul(st,ze)|0,d=d+Math.imul(dt,Pe)|0,k=k+Math.imul(dt,ze)|0,b=b+Math.imul(pe,ot)|0,d=d+Math.imul(pe,wt)|0,d=d+Math.imul(qe,ot)|0,k=k+Math.imul(qe,wt)|0;var Lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,b=Math.imul(Me,pt),d=Math.imul(Me,Bt),d=d+Math.imul(te,pt)|0,k=Math.imul(te,Bt),b=b+Math.imul(Et,kt)|0,d=d+Math.imul(Et,Ut)|0,d=d+Math.imul(Ct,kt)|0,k=k+Math.imul(Ct,Ut)|0,b=b+Math.imul(Ge,zt)|0,d=d+Math.imul(Ge,Qt)|0,d=d+Math.imul(Qe,zt)|0,k=k+Math.imul(Qe,Qt)|0,b=b+Math.imul(at,be)|0,d=d+Math.imul(at,ve)|0,d=d+Math.imul(bt,be)|0,k=k+Math.imul(bt,ve)|0,b=b+Math.imul(lt,Pe)|0,d=d+Math.imul(lt,ze)|0,d=d+Math.imul(Je,Pe)|0,k=k+Math.imul(Je,ze)|0,b=b+Math.imul(st,ot)|0,d=d+Math.imul(st,wt)|0,d=d+Math.imul(dt,ot)|0,k=k+Math.imul(dt,wt)|0;var Ar=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,b=Math.imul(Me,kt),d=Math.imul(Me,Ut),d=d+Math.imul(te,kt)|0,k=Math.imul(te,Ut),b=b+Math.imul(Et,zt)|0,d=d+Math.imul(Et,Qt)|0,d=d+Math.imul(Ct,zt)|0,k=k+Math.imul(Ct,Qt)|0,b=b+Math.imul(Ge,be)|0,d=d+Math.imul(Ge,ve)|0,d=d+Math.imul(Qe,be)|0,k=k+Math.imul(Qe,ve)|0,b=b+Math.imul(at,Pe)|0,d=d+Math.imul(at,ze)|0,d=d+Math.imul(bt,Pe)|0,k=k+Math.imul(bt,ze)|0,b=b+Math.imul(lt,ot)|0,d=d+Math.imul(lt,wt)|0,d=d+Math.imul(Je,ot)|0,k=k+Math.imul(Je,wt)|0;var Tr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(Me,zt),d=Math.imul(Me,Qt),d=d+Math.imul(te,zt)|0,k=Math.imul(te,Qt),b=b+Math.imul(Et,be)|0,d=d+Math.imul(Et,ve)|0,d=d+Math.imul(Ct,be)|0,k=k+Math.imul(Ct,ve)|0,b=b+Math.imul(Ge,Pe)|0,d=d+Math.imul(Ge,ze)|0,d=d+Math.imul(Qe,Pe)|0,k=k+Math.imul(Qe,ze)|0,b=b+Math.imul(at,ot)|0,d=d+Math.imul(at,wt)|0,d=d+Math.imul(bt,ot)|0,k=k+Math.imul(bt,wt)|0;var Sr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,b=Math.imul(Me,be),d=Math.imul(Me,ve),d=d+Math.imul(te,be)|0,k=Math.imul(te,ve),b=b+Math.imul(Et,Pe)|0,d=d+Math.imul(Et,ze)|0,d=d+Math.imul(Ct,Pe)|0,k=k+Math.imul(Ct,ze)|0,b=b+Math.imul(Ge,ot)|0,d=d+Math.imul(Ge,wt)|0,d=d+Math.imul(Qe,ot)|0,k=k+Math.imul(Qe,wt)|0;var rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(rr>>>26)|0,rr&=67108863,b=Math.imul(Me,Pe),d=Math.imul(Me,ze),d=d+Math.imul(te,Pe)|0,k=Math.imul(te,ze),b=b+Math.imul(Et,ot)|0,d=d+Math.imul(Et,wt)|0,d=d+Math.imul(Ct,ot)|0,k=k+Math.imul(Ct,wt)|0;var Nt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,b=Math.imul(Me,ot),d=Math.imul(Me,wt),d=d+Math.imul(te,ot)|0,k=Math.imul(te,wt);var Gt=(T+b|0)+((d&8191)<<13)|0;return T=(k+(d>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,x[0]=Yt,x[1]=Jt,x[2]=wr,x[3]=lr,x[4]=Rr,x[5]=vr,x[6]=dr,x[7]=Ir,x[8]=kr,x[9]=Fr,x[10]=jr,x[11]=Cr,x[12]=Lr,x[13]=Ar,x[14]=Tr,x[15]=Sr,x[16]=rr,x[17]=Nt,x[18]=Gt,T!==0&&(x[19]=T,S.length++),S};Math.imul||(j=I);function B(L,p,y){y.negative=p.negative^L.negative,y.length=L.length+p.length;for(var S=0,c=0,m=0;m<y.length-1;m++){var x=c;c=0;for(var T=S&67108863,b=Math.min(m,p.length-1),d=Math.max(0,m-L.length+1);d<=b;d++){var k=m-d,D=L.words[k]|0,O=p.words[d]|0,Q=D*O,J=Q&67108863;x=x+(Q/67108864|0)|0,J=J+T|0,T=J&67108863,x=x+(J>>>26)|0,c+=x>>>26,x&=67108863}y.words[m]=T,S=x,x=c}return S!==0?y.words[m]=S:y.length--,y.strip()}function F(L,p,y){var S=new N;return S.mulp(L,p,y)}u.prototype.mulTo=function(p,y){var S,c=this.length+p.length;return this.length===10&&p.length===10?S=j(this,p,y):c<63?S=I(this,p,y):c<1024?S=B(this,p,y):S=F(this,p,y),S};function N(L,p){this.x=L,this.y=p}N.prototype.makeRBT=function(p){for(var y=new Array(p),S=u.prototype._countBits(p)-1,c=0;c<p;c++)y[c]=this.revBin(c,S,p);return y},N.prototype.revBin=function(p,y,S){if(p===0||p===S-1)return p;for(var c=0,m=0;m<y;m++)c|=(p&1)<<y-m-1,p>>=1;return c},N.prototype.permute=function(p,y,S,c,m,x){for(var T=0;T<x;T++)c[T]=y[p[T]],m[T]=S[p[T]]},N.prototype.transform=function(p,y,S,c,m,x){this.permute(x,p,y,S,c,m);for(var T=1;T<m;T<<=1)for(var b=T<<1,d=Math.cos(2*Math.PI/b),k=Math.sin(2*Math.PI/b),D=0;D<m;D+=b)for(var O=d,Q=k,J=0;J<T;J++){var X=S[D+J],U=c[D+J],z=S[D+J+T],ie=c[D+J+T],de=O*z-Q*ie;ie=O*ie+Q*z,z=de,S[D+J]=X+z,c[D+J]=U+ie,S[D+J+T]=X-z,c[D+J+T]=U-ie,J!==b&&(de=d*O-k*Q,Q=d*Q+k*O,O=de)}},N.prototype.guessLen13b=function(p,y){var S=Math.max(y,p)|1,c=S&1,m=0;for(S=S/2|0;S;S=S>>>1)m++;return 1<<m+1+c},N.prototype.conjugate=function(p,y,S){if(!(S<=1))for(var c=0;c<S/2;c++){var m=p[c];p[c]=p[S-c-1],p[S-c-1]=m,m=y[c],y[c]=-y[S-c-1],y[S-c-1]=-m}},N.prototype.normalize13b=function(p,y){for(var S=0,c=0;c<y/2;c++){var m=Math.round(p[2*c+1]/y)*8192+Math.round(p[2*c]/y)+S;p[c]=m&67108863,m<67108864?S=0:S=m/67108864|0}return p},N.prototype.convert13b=function(p,y,S,c){for(var m=0,x=0;x<y;x++)m=m+(p[x]|0),S[2*x]=m&8191,m=m>>>13,S[2*x+1]=m&8191,m=m>>>13;for(x=2*y;x<c;++x)S[x]=0;l(m===0),l((m&-8192)===0)},N.prototype.stub=function(p){for(var y=new Array(p),S=0;S<p;S++)y[S]=0;return y},N.prototype.mulp=function(p,y,S){var c=2*this.guessLen13b(p.length,y.length),m=this.makeRBT(c),x=this.stub(c),T=new Array(c),b=new Array(c),d=new Array(c),k=new Array(c),D=new Array(c),O=new Array(c),Q=S.words;Q.length=c,this.convert13b(p.words,p.length,T,c),this.convert13b(y.words,y.length,k,c),this.transform(T,x,b,d,c,m),this.transform(k,x,D,O,c,m);for(var J=0;J<c;J++){var X=b[J]*D[J]-d[J]*O[J];d[J]=b[J]*O[J]+d[J]*D[J],b[J]=X}return this.conjugate(b,d,c),this.transform(b,d,Q,x,c,m),this.conjugate(Q,x,c),this.normalize13b(Q,c),S.negative=p.negative^y.negative,S.length=p.length+y.length,S.strip()},u.prototype.mul=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),this.mulTo(p,y)},u.prototype.mulf=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),F(this,p,y)},u.prototype.imul=function(p){return this.clone().mulTo(p,this)},u.prototype.imuln=function(p){l(typeof p=="number"),l(p<67108864);for(var y=0,S=0;S<this.length;S++){var c=(this.words[S]|0)*p,m=(c&67108863)+(y&67108863);y>>=26,y+=c/67108864|0,y+=m>>>26,this.words[S]=m&67108863}return y!==0&&(this.words[S]=y,this.length++),this},u.prototype.muln=function(p){return this.clone().imuln(p)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(p){var y=P(p);if(y.length===0)return new u(1);for(var S=this,c=0;c<y.length&&y[c]===0;c++,S=S.sqr());if(++c<y.length)for(var m=S.sqr();c<y.length;c++,m=m.sqr())y[c]!==0&&(S=S.mul(m));return S},u.prototype.iushln=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=67108863>>>26-y<<26-y,m;if(y!==0){var x=0;for(m=0;m<this.length;m++){var T=this.words[m]&c,b=(this.words[m]|0)-T<<y;this.words[m]=b|x,x=T>>>26-y}x&&(this.words[m]=x,this.length++)}if(S!==0){for(m=this.length-1;m>=0;m--)this.words[m+S]=this.words[m];for(m=0;m<S;m++)this.words[m]=0;this.length+=S}return this.strip()},u.prototype.ishln=function(p){return l(this.negative===0),this.iushln(p)},u.prototype.iushrn=function(p,y,S){l(typeof p=="number"&&p>=0);var c;y?c=(y-y%26)/26:c=0;var m=p%26,x=Math.min((p-m)/26,this.length),T=67108863^67108863>>>m<<m,b=S;if(c-=x,c=Math.max(0,c),b){for(var d=0;d<x;d++)b.words[d]=this.words[d];b.length=x}if(x!==0)if(this.length>x)for(this.length-=x,d=0;d<this.length;d++)this.words[d]=this.words[d+x];else this.words[0]=0,this.length=1;var k=0;for(d=this.length-1;d>=0&&(k!==0||d>=c);d--){var D=this.words[d]|0;this.words[d]=k<<26-m|D>>>m,k=D&T}return b&&k!==0&&(b.words[b.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(p,y,S){return l(this.negative===0),this.iushrn(p,y,S)},u.prototype.shln=function(p){return this.clone().ishln(p)},u.prototype.ushln=function(p){return this.clone().iushln(p)},u.prototype.shrn=function(p){return this.clone().ishrn(p)},u.prototype.ushrn=function(p){return this.clone().iushrn(p)},u.prototype.testn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return!1;var m=this.words[S];return!!(m&c)},u.prototype.imaskn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(y!==0&&S++,this.length=Math.min(S,this.length),y!==0){var c=67108863^67108863>>>y<<y;this.words[this.length-1]&=c}return this.strip()},u.prototype.maskn=function(p){return this.clone().imaskn(p)},u.prototype.iaddn=function(p){return l(typeof p=="number"),l(p<67108864),p<0?this.isubn(-p):this.negative!==0?this.length===1&&(this.words[0]|0)<p?(this.words[0]=p-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(p),this.negative=1,this):this._iaddn(p)},u.prototype._iaddn=function(p){this.words[0]+=p;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},u.prototype.isubn=function(p){if(l(typeof p=="number"),l(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this.strip()},u.prototype.addn=function(p){return this.clone().iaddn(p)},u.prototype.subn=function(p){return this.clone().isubn(p)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(p,y,S){var c=p.length+S,m;this._expand(c);var x,T=0;for(m=0;m<p.length;m++){x=(this.words[m+S]|0)+T;var b=(p.words[m]|0)*y;x-=b&67108863,T=(x>>26)-(b/67108864|0),this.words[m+S]=x&67108863}for(;m<this.length-S;m++)x=(this.words[m+S]|0)+T,T=x>>26,this.words[m+S]=x&67108863;if(T===0)return this.strip();for(l(T===-1),T=0,m=0;m<this.length;m++)x=-(this.words[m]|0)+T,T=x>>26,this.words[m]=x&67108863;return this.negative=1,this.strip()},u.prototype._wordDiv=function(p,y){var S=this.length-p.length,c=this.clone(),m=p,x=m.words[m.length-1]|0,T=this._countBits(x);S=26-T,S!==0&&(m=m.ushln(S),c.iushln(S),x=m.words[m.length-1]|0);var b=c.length-m.length,d;if(y!=="mod"){d=new u(null),d.length=b+1,d.words=new Array(d.length);for(var k=0;k<d.length;k++)d.words[k]=0}var D=c.clone()._ishlnsubmul(m,1,b);D.negative===0&&(c=D,d&&(d.words[b]=1));for(var O=b-1;O>=0;O--){var Q=(c.words[m.length+O]|0)*67108864+(c.words[m.length+O-1]|0);for(Q=Math.min(Q/x|0,67108863),c._ishlnsubmul(m,Q,O);c.negative!==0;)Q--,c.negative=0,c._ishlnsubmul(m,1,O),c.isZero()||(c.negative^=1);d&&(d.words[O]=Q)}return d&&d.strip(),c.strip(),y!=="div"&&S!==0&&c.iushrn(S),{div:d||null,mod:c}},u.prototype.divmod=function(p,y,S){if(l(!p.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var c,m,x;return this.negative!==0&&p.negative===0?(x=this.neg().divmod(p,y),y!=="mod"&&(c=x.div.neg()),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.iadd(p)),{div:c,mod:m}):this.negative===0&&p.negative!==0?(x=this.divmod(p.neg(),y),y!=="mod"&&(c=x.div.neg()),{div:c,mod:x.mod}):this.negative&p.negative?(x=this.neg().divmod(p.neg(),y),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.isub(p)),{div:x.div,mod:m}):p.length>this.length||this.cmp(p)<0?{div:new u(0),mod:this}:p.length===1?y==="div"?{div:this.divn(p.words[0]),mod:null}:y==="mod"?{div:null,mod:new u(this.modn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new u(this.modn(p.words[0]))}:this._wordDiv(p,y)},u.prototype.div=function(p){return this.divmod(p,"div",!1).div},u.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},u.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},u.prototype.divRound=function(p){var y=this.divmod(p);if(y.mod.isZero())return y.div;var S=y.div.negative!==0?y.mod.isub(p):y.mod,c=p.ushrn(1),m=p.andln(1),x=S.cmp(c);return x<0||m===1&&x===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},u.prototype.modn=function(p){l(p<=67108863);for(var y=(1<<26)%p,S=0,c=this.length-1;c>=0;c--)S=(y*S+(this.words[c]|0))%p;return S},u.prototype.idivn=function(p){l(p<=67108863);for(var y=0,S=this.length-1;S>=0;S--){var c=(this.words[S]|0)+y*67108864;this.words[S]=c/p|0,y=c%p}return this.strip()},u.prototype.divn=function(p){return this.clone().idivn(p)},u.prototype.egcd=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=new u(0),T=new u(1),b=0;y.isEven()&&S.isEven();)y.iushrn(1),S.iushrn(1),++b;for(var d=S.clone(),k=y.clone();!y.isZero();){for(var D=0,O=1;!(y.words[0]&O)&&D<26;++D,O<<=1);if(D>0)for(y.iushrn(D);D-- >0;)(c.isOdd()||m.isOdd())&&(c.iadd(d),m.isub(k)),c.iushrn(1),m.iushrn(1);for(var Q=0,J=1;!(S.words[0]&J)&&Q<26;++Q,J<<=1);if(Q>0)for(S.iushrn(Q);Q-- >0;)(x.isOdd()||T.isOdd())&&(x.iadd(d),T.isub(k)),x.iushrn(1),T.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(x),m.isub(T)):(S.isub(y),x.isub(c),T.isub(m))}return{a:x,b:T,gcd:S.iushln(b)}},u.prototype._invmp=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=S.clone();y.cmpn(1)>0&&S.cmpn(1)>0;){for(var T=0,b=1;!(y.words[0]&b)&&T<26;++T,b<<=1);if(T>0)for(y.iushrn(T);T-- >0;)c.isOdd()&&c.iadd(x),c.iushrn(1);for(var d=0,k=1;!(S.words[0]&k)&&d<26;++d,k<<=1);if(d>0)for(S.iushrn(d);d-- >0;)m.isOdd()&&m.iadd(x),m.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(m)):(S.isub(y),m.isub(c))}var D;return y.cmpn(1)===0?D=c:D=m,D.cmpn(0)<0&&D.iadd(p),D},u.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var y=this.clone(),S=p.clone();y.negative=0,S.negative=0;for(var c=0;y.isEven()&&S.isEven();c++)y.iushrn(1),S.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;S.isEven();)S.iushrn(1);var m=y.cmp(S);if(m<0){var x=y;y=S,S=x}else if(m===0||S.cmpn(1)===0)break;y.isub(S)}while(!0);return S.iushln(c)},u.prototype.invm=function(p){return this.egcd(p).a.umod(p)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(p){return this.words[0]&p},u.prototype.bincn=function(p){l(typeof p=="number");var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return this._expand(S+1),this.words[S]|=c,this;for(var m=c,x=S;m!==0&&x<this.length;x++){var T=this.words[x]|0;T+=m,m=T>>>26,T&=67108863,this.words[x]=T}return m!==0&&(this.words[x]=m,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(p){var y=p<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this.strip();var S;if(this.length>1)S=1;else{y&&(p=-p),l(p<=67108863,"Number is too big");var c=this.words[0]|0;S=c===p?0:c<p?-1:1}return this.negative!==0?-S|0:S},u.prototype.cmp=function(p){if(this.negative!==0&&p.negative===0)return-1;if(this.negative===0&&p.negative!==0)return 1;var y=this.ucmp(p);return this.negative!==0?-y|0:y},u.prototype.ucmp=function(p){if(this.length>p.length)return 1;if(this.length<p.length)return-1;for(var y=0,S=this.length-1;S>=0;S--){var c=this.words[S]|0,m=p.words[S]|0;if(c!==m){c<m?y=-1:c>m&&(y=1);break}}return y},u.prototype.gtn=function(p){return this.cmpn(p)===1},u.prototype.gt=function(p){return this.cmp(p)===1},u.prototype.gten=function(p){return this.cmpn(p)>=0},u.prototype.gte=function(p){return this.cmp(p)>=0},u.prototype.ltn=function(p){return this.cmpn(p)===-1},u.prototype.lt=function(p){return this.cmp(p)===-1},u.prototype.lten=function(p){return this.cmpn(p)<=0},u.prototype.lte=function(p){return this.cmp(p)<=0},u.prototype.eqn=function(p){return this.cmpn(p)===0},u.prototype.eq=function(p){return this.cmp(p)===0},u.red=function(p){return new he(p)},u.prototype.toRed=function(p){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},u.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(p){return this.red=p,this},u.prototype.forceRed=function(p){return l(!this.red,"Already a number in reduction context"),this._forceRed(p)},u.prototype.redAdd=function(p){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},u.prototype.redIAdd=function(p){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},u.prototype.redSub=function(p){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},u.prototype.redISub=function(p){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},u.prototype.redShl=function(p){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},u.prototype.redMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},u.prototype.redIMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},u.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(p){return l(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var ee={k256:null,p224:null,p192:null,p25519:null};function Z(L,p){this.name=L,this.p=new u(p,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Z.prototype._tmp=function(){var p=new u(null);return p.words=new Array(Math.ceil(this.n/13)),p},Z.prototype.ireduce=function(p){var y=p,S;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),S=y.bitLength();while(S>this.n);var c=S<this.n?-1:y.ucmp(this.p);return c===0?(y.words[0]=0,y.length=1):c>0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},Z.prototype.split=function(p,y){p.iushrn(this.n,0,y)},Z.prototype.imulK=function(p){return p.imul(this.k)};function re(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}t(re,Z),re.prototype.split=function(p,y){for(var S=4194303,c=Math.min(p.length,9),m=0;m<c;m++)y.words[m]=p.words[m];if(y.length=c,p.length<=9){p.words[0]=0,p.length=1;return}var x=p.words[9];for(y.words[y.length++]=x&S,m=10;m<p.length;m++){var T=p.words[m]|0;p.words[m-10]=(T&S)<<4|x>>>22,x=T}x>>>=22,p.words[m-10]=x,x===0&&p.length>10?p.length-=10:p.length-=9},re.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var y=0,S=0;S<p.length;S++){var c=p.words[S]|0;y+=c*977,p.words[S]=y&67108863,y=c*64+(y/67108864|0)}return p.words[p.length-1]===0&&(p.length--,p.words[p.length-1]===0&&p.length--),p};function fe(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}t(fe,Z);function V(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}t(V,Z);function le(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}t(le,Z),le.prototype.imulK=function(p){for(var y=0,S=0;S<p.length;S++){var c=(p.words[S]|0)*19+y,m=c&67108863;c>>>=26,p.words[S]=m,y=c}return y!==0&&(p.words[p.length++]=y),p},u._prime=function(p){if(ee[p])return ee[p];var y;if(p==="k256")y=new re;else if(p==="p224")y=new fe;else if(p==="p192")y=new V;else if(p==="p25519")y=new le;else throw new Error("Unknown prime "+p);return ee[p]=y,y};function he(L){if(typeof L=="string"){var p=u._prime(L);this.m=p.p,this.prime=p}else l(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}he.prototype._verify1=function(p){l(p.negative===0,"red works only with positives"),l(p.red,"red works only with red numbers")},he.prototype._verify2=function(p,y){l((p.negative|y.negative)===0,"red works only with positives"),l(p.red&&p.red===y.red,"red works only with red numbers")},he.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):p.umod(this.m)._forceRed(this)},he.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},he.prototype.add=function(p,y){this._verify2(p,y);var S=p.add(y);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},he.prototype.iadd=function(p,y){this._verify2(p,y);var S=p.iadd(y);return S.cmp(this.m)>=0&&S.isub(this.m),S},he.prototype.sub=function(p,y){this._verify2(p,y);var S=p.sub(y);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},he.prototype.isub=function(p,y){this._verify2(p,y);var S=p.isub(y);return S.cmpn(0)<0&&S.iadd(this.m),S},he.prototype.shl=function(p,y){return this._verify1(p),this.imod(p.ushln(y))},he.prototype.imul=function(p,y){return this._verify2(p,y),this.imod(p.imul(y))},he.prototype.mul=function(p,y){return this._verify2(p,y),this.imod(p.mul(y))},he.prototype.isqr=function(p){return this.imul(p,p.clone())},he.prototype.sqr=function(p){return this.mul(p,p)},he.prototype.sqrt=function(p){if(p.isZero())return p.clone();var y=this.m.andln(3);if(l(y%2===1),y===3){var S=this.m.add(new u(1)).iushrn(2);return this.pow(p,S)}for(var c=this.m.subn(1),m=0;!c.isZero()&&c.andln(1)===0;)m++,c.iushrn(1);l(!c.isZero());var x=new u(1).toRed(this),T=x.redNeg(),b=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new u(2*d*d).toRed(this);this.pow(d,b).cmp(T)!==0;)d.redIAdd(T);for(var k=this.pow(d,c),D=this.pow(p,c.addn(1).iushrn(1)),O=this.pow(p,c),Q=m;O.cmp(x)!==0;){for(var J=O,X=0;J.cmp(x)!==0;X++)J=J.redSqr();l(X<Q);var U=this.pow(k,new u(1).iushln(Q-X-1));D=D.redMul(U),k=U.redSqr(),O=O.redMul(k),Q=X}return D},he.prototype.invm=function(p){var y=p._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},he.prototype.pow=function(p,y){if(y.isZero())return new u(1).toRed(this);if(y.cmpn(1)===0)return p.clone();var S=4,c=new Array(1<<S);c[0]=new u(1).toRed(this),c[1]=p;for(var m=2;m<c.length;m++)c[m]=this.mul(c[m-1],p);var x=c[0],T=0,b=0,d=y.bitLength()%26;for(d===0&&(d=26),m=y.length-1;m>=0;m--){for(var k=y.words[m],D=d-1;D>=0;D--){var O=k>>D&1;if(x!==c[0]&&(x=this.sqr(x)),O===0&&T===0){b=0;continue}T<<=1,T|=O,b++,!(b!==S&&(m!==0||D!==0))&&(x=this.mul(x,c[T]),b=0,T=0)}d=26}return x},he.prototype.convertTo=function(p){var y=p.umod(this.m);return y===p?y.clone():y},he.prototype.convertFrom=function(p){var y=p.clone();return y.red=null,y},u.mont=function(p){return new ye(p)};function ye(L){he.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}t(ye,he),ye.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},ye.prototype.convertFrom=function(p){var y=this.imod(p.mul(this.rinv));return y.red=null,y},ye.prototype.imul=function(p,y){if(p.isZero()||y.isZero())return p.words[0]=0,p.length=1,p;var S=p.imul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.mul=function(p,y){if(p.isZero()||y.isZero())return new u(0)._forceRed(this);var S=p.mul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.invm=function(p){var y=this.imod(p._invmp(this.m).mul(this.r2));return y._forceRed(this)}})(n,commonjsGlobal$1)}(bn$1);var bnExports$1=bn$1.exports,browser$4,hasRequiredBrowser$2;function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$4;hasRequiredBrowser$2=1;var n=requireElliptic(),e=bnExports$1;browser$4=function(h){return new l(h)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1;function l(u){this.curveType=o[u],this.curveType||(this.curveType={name:u}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}l.prototype.generateKeys=function(u,h){return this.keys=this.curve.genKeyPair(),this.getPublicKey(u,h)},l.prototype.computeSecret=function(u,h,v){h=h||"utf8",Buffer$C.isBuffer(u)||(u=new Buffer$C(u,h));var w=this.curve.keyFromPublic(u).getPublic(),A=w.mul(this.keys.getPrivate()).getX();return t(A,v,this.curveType.byteLength)},l.prototype.getPublicKey=function(u,h){var v=this.keys.getPublic(h==="compressed",!0);return h==="hybrid"&&(v[v.length-1]%2?v[0]=7:v[0]=6),t(v,u)},l.prototype.getPrivateKey=function(u){return t(this.keys.getPrivate(),u)},l.prototype.setPublicKey=function(u,h){return h=h||"utf8",Buffer$C.isBuffer(u)||(u=new Buffer$C(u,h)),this.keys._importPublic(u),this},l.prototype.setPrivateKey=function(u,h){h=h||"utf8",Buffer$C.isBuffer(u)||(u=new Buffer$C(u,h));var v=new e(u);return v=v.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(v),this};function t(u,h,v){Array.isArray(u)||(u=u.toArray());var w=new Buffer$C(u);if(v&&w.length<v){var A=new Buffer$C(v-w.length);A.fill(0),w=Buffer$C.concat([A,w])}return h?w.toString(h):w}return browser$4}var browser$3={},createHash$2=browser$b,Buffer$5=safeBufferExports$1.Buffer,mgf$2=function(n,e){for(var o=Buffer$5.alloc(0),l=0,t;o.length<e;)t=i2ops(l++),o=Buffer$5.concat([o,createHash$2("sha1").update(n).update(t).digest()]);return o.slice(0,e)};function i2ops(n){var e=Buffer$5.allocUnsafe(4);return e.writeUInt32BE(n,0),e}var xor$2=function n(e,o){for(var l=e.length,t=-1;++t<l;)e[t]^=o[t];return e},bn={exports:{}};bn.exports,function(n){(function(e,o){function l(L,p){if(!L)throw new Error(p||"Assertion failed")}function t(L,p){L.super_=p;var y=function(){};y.prototype=p.prototype,L.prototype=new y,L.prototype.constructor=L}function u(L,p,y){if(u.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,L!==null&&((p==="le"||p==="be")&&(y=p,p=10),this._init(L||0,p||10,y||"be"))}typeof e=="object"?e.exports=u:o.BN=u,u.BN=u,u.wordSize=26;var h;try{typeof window<"u"&&typeof window.Buffer<"u"?h=window.Buffer:h=require$$0$2.Buffer}catch{}u.isBN=function(p){return p instanceof u?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===u.wordSize&&Array.isArray(p.words)},u.max=function(p,y){return p.cmp(y)>0?p:y},u.min=function(p,y){return p.cmp(y)<0?p:y},u.prototype._init=function(p,y,S){if(typeof p=="number")return this._initNumber(p,y,S);if(typeof p=="object")return this._initArray(p,y,S);y==="hex"&&(y=16),l(y===(y|0)&&y>=2&&y<=36),p=p.toString().replace(/\s+/g,"");var c=0;p[0]==="-"&&(c++,this.negative=1),c<p.length&&(y===16?this._parseHex(p,c,S):(this._parseBase(p,y,c),S==="le"&&this._initArray(this.toArray(),y,S)))},u.prototype._initNumber=function(p,y,S){p<0&&(this.negative=1,p=-p),p<67108864?(this.words=[p&67108863],this.length=1):p<4503599627370496?(this.words=[p&67108863,p/67108864&67108863],this.length=2):(l(p<9007199254740992),this.words=[p&67108863,p/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),y,S)},u.prototype._initArray=function(p,y,S){if(l(typeof p.length=="number"),p.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(p.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m,x,T=0;if(S==="be")for(c=p.length-1,m=0;c>=0;c-=3)x=p[c]|p[c-1]<<8|p[c-2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);else if(S==="le")for(c=0,m=0;c<p.length;c+=3)x=p[c]|p[c+1]<<8|p[c+2]<<16,this.words[m]|=x<<T&67108863,this.words[m+1]=x>>>26-T&67108863,T+=24,T>=26&&(T-=26,m++);return this.strip()};function v(L,p){var y=L.charCodeAt(p);return y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:y-48&15}function w(L,p,y){var S=v(L,y);return y-1>=p&&(S|=v(L,y-1)<<4),S}u.prototype._parseHex=function(p,y,S){this.length=Math.ceil((p.length-y)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var m=0,x=0,T;if(S==="be")for(c=p.length-1;c>=y;c-=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8;else{var b=p.length-y;for(c=b%2===0?y+1:y;c<p.length;c+=2)T=w(p,y,c)<<m,this.words[x]|=T&67108863,m>=18?(m-=18,x+=1,this.words[x]|=T>>>26):m+=8}this.strip()};function A(L,p,y,S){for(var c=0,m=Math.min(L.length,y),x=p;x<m;x++){var T=L.charCodeAt(x)-48;c*=S,T>=49?c+=T-49+10:T>=17?c+=T-17+10:c+=T}return c}u.prototype._parseBase=function(p,y,S){this.words=[0],this.length=1;for(var c=0,m=1;m<=67108863;m*=y)c++;c--,m=m/y|0;for(var x=p.length-S,T=x%c,b=Math.min(x,x-T)+S,d=0,k=S;k<b;k+=c)d=A(p,k,k+c,y),this.imuln(m),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(T!==0){var D=1;for(d=A(p,k,p.length,y),k=0;k<T;k++)D*=y;this.imuln(D),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}this.strip()},u.prototype.copy=function(p){p.words=new Array(this.length);for(var y=0;y<this.length;y++)p.words[y]=this.words[y];p.length=this.length,p.negative=this.negative,p.red=this.red},u.prototype.clone=function(){var p=new u(null);return this.copy(p),p},u.prototype._expand=function(p){for(;this.length<p;)this.words[this.length++]=0;return this},u.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},u.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(p,y){p=p||10,y=y|0||1;var S;if(p===16||p==="hex"){S="";for(var c=0,m=0,x=0;x<this.length;x++){var T=this.words[x],b=((T<<c|m)&16777215).toString(16);m=T>>>24-c&16777215,m!==0||x!==this.length-1?S=E[6-b.length]+b+S:S=b+S,c+=2,c>=26&&(c-=26,x--)}for(m!==0&&(S=m.toString(16)+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(p===(p|0)&&p>=2&&p<=36){var d=C[p],k=M[p];S="";var D=this.clone();for(D.negative=0;!D.isZero();){var O=D.modn(k).toString(p);D=D.idivn(k),D.isZero()?S=O+S:S=E[d-O.length]+O+S}for(this.isZero()&&(S="0"+S);S.length%y!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}l(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},u.prototype.toJSON=function(){return this.toString(16)},u.prototype.toBuffer=function(p,y){return l(typeof h<"u"),this.toArrayLike(h,p,y)},u.prototype.toArray=function(p,y){return this.toArrayLike(Array,p,y)},u.prototype.toArrayLike=function(p,y,S){var c=this.byteLength(),m=S||Math.max(1,c);l(c<=m,"byte array longer than desired length"),l(m>0,"Requested array length <= 0"),this.strip();var x=y==="le",T=new p(m),b,d,k=this.clone();if(x){for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[d]=b;for(;d<m;d++)T[d]=0}else{for(d=0;d<m-c;d++)T[d]=0;for(d=0;!k.isZero();d++)b=k.andln(255),k.iushrn(8),T[m-d-1]=b}return T},Math.clz32?u.prototype._countBits=function(p){return 32-Math.clz32(p)}:u.prototype._countBits=function(p){var y=p,S=0;return y>=4096&&(S+=13,y>>>=13),y>=64&&(S+=7,y>>>=7),y>=8&&(S+=4,y>>>=4),y>=2&&(S+=2,y>>>=2),S+y},u.prototype._zeroBits=function(p){if(p===0)return 26;var y=p,S=0;return y&8191||(S+=13,y>>>=13),y&127||(S+=7,y>>>=7),y&15||(S+=4,y>>>=4),y&3||(S+=2,y>>>=2),y&1||S++,S},u.prototype.bitLength=function(){var p=this.words[this.length-1],y=this._countBits(p);return(this.length-1)*26+y};function P(L){for(var p=new Array(L.bitLength()),y=0;y<p.length;y++){var S=y/26|0,c=y%26;p[y]=(L.words[S]&1<<c)>>>c}return p}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,y=0;y<this.length;y++){var S=this._zeroBits(this.words[y]);if(p+=S,S!==26)break}return p},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(p){return this.negative!==0?this.abs().inotn(p).iaddn(1):this.clone()},u.prototype.fromTwos=function(p){return this.testn(p-1)?this.notn(p).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(p){for(;this.length<p.length;)this.words[this.length++]=0;for(var y=0;y<p.length;y++)this.words[y]=this.words[y]|p.words[y];return this.strip()},u.prototype.ior=function(p){return l((this.negative|p.negative)===0),this.iuor(p)},u.prototype.or=function(p){return this.length>p.length?this.clone().ior(p):p.clone().ior(this)},u.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},u.prototype.iuand=function(p){var y;this.length>p.length?y=p:y=this;for(var S=0;S<y.length;S++)this.words[S]=this.words[S]&p.words[S];return this.length=y.length,this.strip()},u.prototype.iand=function(p){return l((this.negative|p.negative)===0),this.iuand(p)},u.prototype.and=function(p){return this.length>p.length?this.clone().iand(p):p.clone().iand(this)},u.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},u.prototype.iuxor=function(p){var y,S;this.length>p.length?(y=this,S=p):(y=p,S=this);for(var c=0;c<S.length;c++)this.words[c]=y.words[c]^S.words[c];if(this!==y)for(;c<y.length;c++)this.words[c]=y.words[c];return this.length=y.length,this.strip()},u.prototype.ixor=function(p){return l((this.negative|p.negative)===0),this.iuxor(p)},u.prototype.xor=function(p){return this.length>p.length?this.clone().ixor(p):p.clone().ixor(this)},u.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},u.prototype.inotn=function(p){l(typeof p=="number"&&p>=0);var y=Math.ceil(p/26)|0,S=p%26;this._expand(y),S>0&&y--;for(var c=0;c<y;c++)this.words[c]=~this.words[c]&67108863;return S>0&&(this.words[c]=~this.words[c]&67108863>>26-S),this.strip()},u.prototype.notn=function(p){return this.clone().inotn(p)},u.prototype.setn=function(p,y){l(typeof p=="number"&&p>=0);var S=p/26|0,c=p%26;return this._expand(S+1),y?this.words[S]=this.words[S]|1<<c:this.words[S]=this.words[S]&~(1<<c),this.strip()},u.prototype.iadd=function(p){var y;if(this.negative!==0&&p.negative===0)return this.negative=0,y=this.isub(p),this.negative^=1,this._normSign();if(this.negative===0&&p.negative!==0)return p.negative=0,y=this.isub(p),p.negative=1,y._normSign();var S,c;this.length>p.length?(S=this,c=p):(S=p,c=this);for(var m=0,x=0;x<c.length;x++)y=(S.words[x]|0)+(c.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;for(;m!==0&&x<S.length;x++)y=(S.words[x]|0)+m,this.words[x]=y&67108863,m=y>>>26;if(this.length=S.length,m!==0)this.words[this.length]=m,this.length++;else if(S!==this)for(;x<S.length;x++)this.words[x]=S.words[x];return this},u.prototype.add=function(p){var y;return p.negative!==0&&this.negative===0?(p.negative=0,y=this.sub(p),p.negative^=1,y):p.negative===0&&this.negative!==0?(this.negative=0,y=p.sub(this),this.negative=1,y):this.length>p.length?this.clone().iadd(p):p.clone().iadd(this)},u.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var y=this.iadd(p);return p.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var S=this.cmp(p);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,m;S>0?(c=this,m=p):(c=p,m=this);for(var x=0,T=0;T<m.length;T++)y=(c.words[T]|0)-(m.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;for(;x!==0&&T<c.length;T++)y=(c.words[T]|0)+x,x=y>>26,this.words[T]=y&67108863;if(x===0&&T<c.length&&c!==this)for(;T<c.length;T++)this.words[T]=c.words[T];return this.length=Math.max(this.length,T),c!==this&&(this.negative=1),this.strip()},u.prototype.sub=function(p){return this.clone().isub(p)};function I(L,p,y){y.negative=p.negative^L.negative;var S=L.length+p.length|0;y.length=S,S=S-1|0;var c=L.words[0]|0,m=p.words[0]|0,x=c*m,T=x&67108863,b=x/67108864|0;y.words[0]=T;for(var d=1;d<S;d++){for(var k=b>>>26,D=b&67108863,O=Math.min(d,p.length-1),Q=Math.max(0,d-L.length+1);Q<=O;Q++){var J=d-Q|0;c=L.words[J]|0,m=p.words[Q]|0,x=c*m+D,k+=x/67108864|0,D=x&67108863}y.words[d]=D|0,b=k|0}return b!==0?y.words[d]=b|0:y.length--,y.strip()}var j=function(p,y,S){var c=p.words,m=y.words,x=S.words,T=0,b,d,k,D=c[0]|0,O=D&8191,Q=D>>>13,J=c[1]|0,X=J&8191,U=J>>>13,z=c[2]|0,ie=z&8191,de=z>>>13,me=c[3]|0,pe=me&8191,qe=me>>>13,mt=c[4]|0,st=mt&8191,dt=mt>>>13,Tt=c[5]|0,lt=Tt&8191,Je=Tt>>>13,ht=c[6]|0,at=ht&8191,bt=ht>>>13,jt=c[7]|0,Ge=jt&8191,Qe=jt>>>13,Wt=c[8]|0,Et=Wt&8191,Ct=Wt>>>13,Kt=c[9]|0,Me=Kt&8191,te=Kt>>>13,_e=m[0]|0,je=_e&8191,We=_e>>>13,et=m[1]|0,Ye=et&8191,De=et>>>13,Ht=m[2]|0,Mt=Ht&8191,ge=Ht>>>13,Dt=m[3]|0,yt=Dt&8191,Ne=Dt>>>13,_t=m[4]|0,pt=_t&8191,Bt=_t>>>13,ur=m[5]|0,kt=ur&8191,Ut=ur>>>13,Wr=m[6]|0,zt=Wr&8191,Qt=Wr>>>13,$e=m[7]|0,be=$e&8191,ve=$e>>>13,se=m[8]|0,Pe=se&8191,ze=se>>>13,xt=m[9]|0,ot=xt&8191,wt=xt>>>13;S.negative=p.negative^y.negative,S.length=19,b=Math.imul(O,je),d=Math.imul(O,We),d=d+Math.imul(Q,je)|0,k=Math.imul(Q,We);var Yt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,b=Math.imul(X,je),d=Math.imul(X,We),d=d+Math.imul(U,je)|0,k=Math.imul(U,We),b=b+Math.imul(O,Ye)|0,d=d+Math.imul(O,De)|0,d=d+Math.imul(Q,Ye)|0,k=k+Math.imul(Q,De)|0;var Jt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,b=Math.imul(ie,je),d=Math.imul(ie,We),d=d+Math.imul(de,je)|0,k=Math.imul(de,We),b=b+Math.imul(X,Ye)|0,d=d+Math.imul(X,De)|0,d=d+Math.imul(U,Ye)|0,k=k+Math.imul(U,De)|0,b=b+Math.imul(O,Mt)|0,d=d+Math.imul(O,ge)|0,d=d+Math.imul(Q,Mt)|0,k=k+Math.imul(Q,ge)|0;var wr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(wr>>>26)|0,wr&=67108863,b=Math.imul(pe,je),d=Math.imul(pe,We),d=d+Math.imul(qe,je)|0,k=Math.imul(qe,We),b=b+Math.imul(ie,Ye)|0,d=d+Math.imul(ie,De)|0,d=d+Math.imul(de,Ye)|0,k=k+Math.imul(de,De)|0,b=b+Math.imul(X,Mt)|0,d=d+Math.imul(X,ge)|0,d=d+Math.imul(U,Mt)|0,k=k+Math.imul(U,ge)|0,b=b+Math.imul(O,yt)|0,d=d+Math.imul(O,Ne)|0,d=d+Math.imul(Q,yt)|0,k=k+Math.imul(Q,Ne)|0;var lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(lr>>>26)|0,lr&=67108863,b=Math.imul(st,je),d=Math.imul(st,We),d=d+Math.imul(dt,je)|0,k=Math.imul(dt,We),b=b+Math.imul(pe,Ye)|0,d=d+Math.imul(pe,De)|0,d=d+Math.imul(qe,Ye)|0,k=k+Math.imul(qe,De)|0,b=b+Math.imul(ie,Mt)|0,d=d+Math.imul(ie,ge)|0,d=d+Math.imul(de,Mt)|0,k=k+Math.imul(de,ge)|0,b=b+Math.imul(X,yt)|0,d=d+Math.imul(X,Ne)|0,d=d+Math.imul(U,yt)|0,k=k+Math.imul(U,Ne)|0,b=b+Math.imul(O,pt)|0,d=d+Math.imul(O,Bt)|0,d=d+Math.imul(Q,pt)|0,k=k+Math.imul(Q,Bt)|0;var Rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,b=Math.imul(lt,je),d=Math.imul(lt,We),d=d+Math.imul(Je,je)|0,k=Math.imul(Je,We),b=b+Math.imul(st,Ye)|0,d=d+Math.imul(st,De)|0,d=d+Math.imul(dt,Ye)|0,k=k+Math.imul(dt,De)|0,b=b+Math.imul(pe,Mt)|0,d=d+Math.imul(pe,ge)|0,d=d+Math.imul(qe,Mt)|0,k=k+Math.imul(qe,ge)|0,b=b+Math.imul(ie,yt)|0,d=d+Math.imul(ie,Ne)|0,d=d+Math.imul(de,yt)|0,k=k+Math.imul(de,Ne)|0,b=b+Math.imul(X,pt)|0,d=d+Math.imul(X,Bt)|0,d=d+Math.imul(U,pt)|0,k=k+Math.imul(U,Bt)|0,b=b+Math.imul(O,kt)|0,d=d+Math.imul(O,Ut)|0,d=d+Math.imul(Q,kt)|0,k=k+Math.imul(Q,Ut)|0;var vr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(vr>>>26)|0,vr&=67108863,b=Math.imul(at,je),d=Math.imul(at,We),d=d+Math.imul(bt,je)|0,k=Math.imul(bt,We),b=b+Math.imul(lt,Ye)|0,d=d+Math.imul(lt,De)|0,d=d+Math.imul(Je,Ye)|0,k=k+Math.imul(Je,De)|0,b=b+Math.imul(st,Mt)|0,d=d+Math.imul(st,ge)|0,d=d+Math.imul(dt,Mt)|0,k=k+Math.imul(dt,ge)|0,b=b+Math.imul(pe,yt)|0,d=d+Math.imul(pe,Ne)|0,d=d+Math.imul(qe,yt)|0,k=k+Math.imul(qe,Ne)|0,b=b+Math.imul(ie,pt)|0,d=d+Math.imul(ie,Bt)|0,d=d+Math.imul(de,pt)|0,k=k+Math.imul(de,Bt)|0,b=b+Math.imul(X,kt)|0,d=d+Math.imul(X,Ut)|0,d=d+Math.imul(U,kt)|0,k=k+Math.imul(U,Ut)|0,b=b+Math.imul(O,zt)|0,d=d+Math.imul(O,Qt)|0,d=d+Math.imul(Q,zt)|0,k=k+Math.imul(Q,Qt)|0;var dr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(dr>>>26)|0,dr&=67108863,b=Math.imul(Ge,je),d=Math.imul(Ge,We),d=d+Math.imul(Qe,je)|0,k=Math.imul(Qe,We),b=b+Math.imul(at,Ye)|0,d=d+Math.imul(at,De)|0,d=d+Math.imul(bt,Ye)|0,k=k+Math.imul(bt,De)|0,b=b+Math.imul(lt,Mt)|0,d=d+Math.imul(lt,ge)|0,d=d+Math.imul(Je,Mt)|0,k=k+Math.imul(Je,ge)|0,b=b+Math.imul(st,yt)|0,d=d+Math.imul(st,Ne)|0,d=d+Math.imul(dt,yt)|0,k=k+Math.imul(dt,Ne)|0,b=b+Math.imul(pe,pt)|0,d=d+Math.imul(pe,Bt)|0,d=d+Math.imul(qe,pt)|0,k=k+Math.imul(qe,Bt)|0,b=b+Math.imul(ie,kt)|0,d=d+Math.imul(ie,Ut)|0,d=d+Math.imul(de,kt)|0,k=k+Math.imul(de,Ut)|0,b=b+Math.imul(X,zt)|0,d=d+Math.imul(X,Qt)|0,d=d+Math.imul(U,zt)|0,k=k+Math.imul(U,Qt)|0,b=b+Math.imul(O,be)|0,d=d+Math.imul(O,ve)|0,d=d+Math.imul(Q,be)|0,k=k+Math.imul(Q,ve)|0;var Ir=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,b=Math.imul(Et,je),d=Math.imul(Et,We),d=d+Math.imul(Ct,je)|0,k=Math.imul(Ct,We),b=b+Math.imul(Ge,Ye)|0,d=d+Math.imul(Ge,De)|0,d=d+Math.imul(Qe,Ye)|0,k=k+Math.imul(Qe,De)|0,b=b+Math.imul(at,Mt)|0,d=d+Math.imul(at,ge)|0,d=d+Math.imul(bt,Mt)|0,k=k+Math.imul(bt,ge)|0,b=b+Math.imul(lt,yt)|0,d=d+Math.imul(lt,Ne)|0,d=d+Math.imul(Je,yt)|0,k=k+Math.imul(Je,Ne)|0,b=b+Math.imul(st,pt)|0,d=d+Math.imul(st,Bt)|0,d=d+Math.imul(dt,pt)|0,k=k+Math.imul(dt,Bt)|0,b=b+Math.imul(pe,kt)|0,d=d+Math.imul(pe,Ut)|0,d=d+Math.imul(qe,kt)|0,k=k+Math.imul(qe,Ut)|0,b=b+Math.imul(ie,zt)|0,d=d+Math.imul(ie,Qt)|0,d=d+Math.imul(de,zt)|0,k=k+Math.imul(de,Qt)|0,b=b+Math.imul(X,be)|0,d=d+Math.imul(X,ve)|0,d=d+Math.imul(U,be)|0,k=k+Math.imul(U,ve)|0,b=b+Math.imul(O,Pe)|0,d=d+Math.imul(O,ze)|0,d=d+Math.imul(Q,Pe)|0,k=k+Math.imul(Q,ze)|0;var kr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(kr>>>26)|0,kr&=67108863,b=Math.imul(Me,je),d=Math.imul(Me,We),d=d+Math.imul(te,je)|0,k=Math.imul(te,We),b=b+Math.imul(Et,Ye)|0,d=d+Math.imul(Et,De)|0,d=d+Math.imul(Ct,Ye)|0,k=k+Math.imul(Ct,De)|0,b=b+Math.imul(Ge,Mt)|0,d=d+Math.imul(Ge,ge)|0,d=d+Math.imul(Qe,Mt)|0,k=k+Math.imul(Qe,ge)|0,b=b+Math.imul(at,yt)|0,d=d+Math.imul(at,Ne)|0,d=d+Math.imul(bt,yt)|0,k=k+Math.imul(bt,Ne)|0,b=b+Math.imul(lt,pt)|0,d=d+Math.imul(lt,Bt)|0,d=d+Math.imul(Je,pt)|0,k=k+Math.imul(Je,Bt)|0,b=b+Math.imul(st,kt)|0,d=d+Math.imul(st,Ut)|0,d=d+Math.imul(dt,kt)|0,k=k+Math.imul(dt,Ut)|0,b=b+Math.imul(pe,zt)|0,d=d+Math.imul(pe,Qt)|0,d=d+Math.imul(qe,zt)|0,k=k+Math.imul(qe,Qt)|0,b=b+Math.imul(ie,be)|0,d=d+Math.imul(ie,ve)|0,d=d+Math.imul(de,be)|0,k=k+Math.imul(de,ve)|0,b=b+Math.imul(X,Pe)|0,d=d+Math.imul(X,ze)|0,d=d+Math.imul(U,Pe)|0,k=k+Math.imul(U,ze)|0,b=b+Math.imul(O,ot)|0,d=d+Math.imul(O,wt)|0,d=d+Math.imul(Q,ot)|0,k=k+Math.imul(Q,wt)|0;var Fr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,b=Math.imul(Me,Ye),d=Math.imul(Me,De),d=d+Math.imul(te,Ye)|0,k=Math.imul(te,De),b=b+Math.imul(Et,Mt)|0,d=d+Math.imul(Et,ge)|0,d=d+Math.imul(Ct,Mt)|0,k=k+Math.imul(Ct,ge)|0,b=b+Math.imul(Ge,yt)|0,d=d+Math.imul(Ge,Ne)|0,d=d+Math.imul(Qe,yt)|0,k=k+Math.imul(Qe,Ne)|0,b=b+Math.imul(at,pt)|0,d=d+Math.imul(at,Bt)|0,d=d+Math.imul(bt,pt)|0,k=k+Math.imul(bt,Bt)|0,b=b+Math.imul(lt,kt)|0,d=d+Math.imul(lt,Ut)|0,d=d+Math.imul(Je,kt)|0,k=k+Math.imul(Je,Ut)|0,b=b+Math.imul(st,zt)|0,d=d+Math.imul(st,Qt)|0,d=d+Math.imul(dt,zt)|0,k=k+Math.imul(dt,Qt)|0,b=b+Math.imul(pe,be)|0,d=d+Math.imul(pe,ve)|0,d=d+Math.imul(qe,be)|0,k=k+Math.imul(qe,ve)|0,b=b+Math.imul(ie,Pe)|0,d=d+Math.imul(ie,ze)|0,d=d+Math.imul(de,Pe)|0,k=k+Math.imul(de,ze)|0,b=b+Math.imul(X,ot)|0,d=d+Math.imul(X,wt)|0,d=d+Math.imul(U,ot)|0,k=k+Math.imul(U,wt)|0;var jr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(jr>>>26)|0,jr&=67108863,b=Math.imul(Me,Mt),d=Math.imul(Me,ge),d=d+Math.imul(te,Mt)|0,k=Math.imul(te,ge),b=b+Math.imul(Et,yt)|0,d=d+Math.imul(Et,Ne)|0,d=d+Math.imul(Ct,yt)|0,k=k+Math.imul(Ct,Ne)|0,b=b+Math.imul(Ge,pt)|0,d=d+Math.imul(Ge,Bt)|0,d=d+Math.imul(Qe,pt)|0,k=k+Math.imul(Qe,Bt)|0,b=b+Math.imul(at,kt)|0,d=d+Math.imul(at,Ut)|0,d=d+Math.imul(bt,kt)|0,k=k+Math.imul(bt,Ut)|0,b=b+Math.imul(lt,zt)|0,d=d+Math.imul(lt,Qt)|0,d=d+Math.imul(Je,zt)|0,k=k+Math.imul(Je,Qt)|0,b=b+Math.imul(st,be)|0,d=d+Math.imul(st,ve)|0,d=d+Math.imul(dt,be)|0,k=k+Math.imul(dt,ve)|0,b=b+Math.imul(pe,Pe)|0,d=d+Math.imul(pe,ze)|0,d=d+Math.imul(qe,Pe)|0,k=k+Math.imul(qe,ze)|0,b=b+Math.imul(ie,ot)|0,d=d+Math.imul(ie,wt)|0,d=d+Math.imul(de,ot)|0,k=k+Math.imul(de,wt)|0;var Cr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,b=Math.imul(Me,yt),d=Math.imul(Me,Ne),d=d+Math.imul(te,yt)|0,k=Math.imul(te,Ne),b=b+Math.imul(Et,pt)|0,d=d+Math.imul(Et,Bt)|0,d=d+Math.imul(Ct,pt)|0,k=k+Math.imul(Ct,Bt)|0,b=b+Math.imul(Ge,kt)|0,d=d+Math.imul(Ge,Ut)|0,d=d+Math.imul(Qe,kt)|0,k=k+Math.imul(Qe,Ut)|0,b=b+Math.imul(at,zt)|0,d=d+Math.imul(at,Qt)|0,d=d+Math.imul(bt,zt)|0,k=k+Math.imul(bt,Qt)|0,b=b+Math.imul(lt,be)|0,d=d+Math.imul(lt,ve)|0,d=d+Math.imul(Je,be)|0,k=k+Math.imul(Je,ve)|0,b=b+Math.imul(st,Pe)|0,d=d+Math.imul(st,ze)|0,d=d+Math.imul(dt,Pe)|0,k=k+Math.imul(dt,ze)|0,b=b+Math.imul(pe,ot)|0,d=d+Math.imul(pe,wt)|0,d=d+Math.imul(qe,ot)|0,k=k+Math.imul(qe,wt)|0;var Lr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,b=Math.imul(Me,pt),d=Math.imul(Me,Bt),d=d+Math.imul(te,pt)|0,k=Math.imul(te,Bt),b=b+Math.imul(Et,kt)|0,d=d+Math.imul(Et,Ut)|0,d=d+Math.imul(Ct,kt)|0,k=k+Math.imul(Ct,Ut)|0,b=b+Math.imul(Ge,zt)|0,d=d+Math.imul(Ge,Qt)|0,d=d+Math.imul(Qe,zt)|0,k=k+Math.imul(Qe,Qt)|0,b=b+Math.imul(at,be)|0,d=d+Math.imul(at,ve)|0,d=d+Math.imul(bt,be)|0,k=k+Math.imul(bt,ve)|0,b=b+Math.imul(lt,Pe)|0,d=d+Math.imul(lt,ze)|0,d=d+Math.imul(Je,Pe)|0,k=k+Math.imul(Je,ze)|0,b=b+Math.imul(st,ot)|0,d=d+Math.imul(st,wt)|0,d=d+Math.imul(dt,ot)|0,k=k+Math.imul(dt,wt)|0;var Ar=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,b=Math.imul(Me,kt),d=Math.imul(Me,Ut),d=d+Math.imul(te,kt)|0,k=Math.imul(te,Ut),b=b+Math.imul(Et,zt)|0,d=d+Math.imul(Et,Qt)|0,d=d+Math.imul(Ct,zt)|0,k=k+Math.imul(Ct,Qt)|0,b=b+Math.imul(Ge,be)|0,d=d+Math.imul(Ge,ve)|0,d=d+Math.imul(Qe,be)|0,k=k+Math.imul(Qe,ve)|0,b=b+Math.imul(at,Pe)|0,d=d+Math.imul(at,ze)|0,d=d+Math.imul(bt,Pe)|0,k=k+Math.imul(bt,ze)|0,b=b+Math.imul(lt,ot)|0,d=d+Math.imul(lt,wt)|0,d=d+Math.imul(Je,ot)|0,k=k+Math.imul(Je,wt)|0;var Tr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(Me,zt),d=Math.imul(Me,Qt),d=d+Math.imul(te,zt)|0,k=Math.imul(te,Qt),b=b+Math.imul(Et,be)|0,d=d+Math.imul(Et,ve)|0,d=d+Math.imul(Ct,be)|0,k=k+Math.imul(Ct,ve)|0,b=b+Math.imul(Ge,Pe)|0,d=d+Math.imul(Ge,ze)|0,d=d+Math.imul(Qe,Pe)|0,k=k+Math.imul(Qe,ze)|0,b=b+Math.imul(at,ot)|0,d=d+Math.imul(at,wt)|0,d=d+Math.imul(bt,ot)|0,k=k+Math.imul(bt,wt)|0;var Sr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,b=Math.imul(Me,be),d=Math.imul(Me,ve),d=d+Math.imul(te,be)|0,k=Math.imul(te,ve),b=b+Math.imul(Et,Pe)|0,d=d+Math.imul(Et,ze)|0,d=d+Math.imul(Ct,Pe)|0,k=k+Math.imul(Ct,ze)|0,b=b+Math.imul(Ge,ot)|0,d=d+Math.imul(Ge,wt)|0,d=d+Math.imul(Qe,ot)|0,k=k+Math.imul(Qe,wt)|0;var rr=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(rr>>>26)|0,rr&=67108863,b=Math.imul(Me,Pe),d=Math.imul(Me,ze),d=d+Math.imul(te,Pe)|0,k=Math.imul(te,ze),b=b+Math.imul(Et,ot)|0,d=d+Math.imul(Et,wt)|0,d=d+Math.imul(Ct,ot)|0,k=k+Math.imul(Ct,wt)|0;var Nt=(T+b|0)+((d&8191)<<13)|0;T=(k+(d>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,b=Math.imul(Me,ot),d=Math.imul(Me,wt),d=d+Math.imul(te,ot)|0,k=Math.imul(te,wt);var Gt=(T+b|0)+((d&8191)<<13)|0;return T=(k+(d>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,x[0]=Yt,x[1]=Jt,x[2]=wr,x[3]=lr,x[4]=Rr,x[5]=vr,x[6]=dr,x[7]=Ir,x[8]=kr,x[9]=Fr,x[10]=jr,x[11]=Cr,x[12]=Lr,x[13]=Ar,x[14]=Tr,x[15]=Sr,x[16]=rr,x[17]=Nt,x[18]=Gt,T!==0&&(x[19]=T,S.length++),S};Math.imul||(j=I);function B(L,p,y){y.negative=p.negative^L.negative,y.length=L.length+p.length;for(var S=0,c=0,m=0;m<y.length-1;m++){var x=c;c=0;for(var T=S&67108863,b=Math.min(m,p.length-1),d=Math.max(0,m-L.length+1);d<=b;d++){var k=m-d,D=L.words[k]|0,O=p.words[d]|0,Q=D*O,J=Q&67108863;x=x+(Q/67108864|0)|0,J=J+T|0,T=J&67108863,x=x+(J>>>26)|0,c+=x>>>26,x&=67108863}y.words[m]=T,S=x,x=c}return S!==0?y.words[m]=S:y.length--,y.strip()}function F(L,p,y){var S=new N;return S.mulp(L,p,y)}u.prototype.mulTo=function(p,y){var S,c=this.length+p.length;return this.length===10&&p.length===10?S=j(this,p,y):c<63?S=I(this,p,y):c<1024?S=B(this,p,y):S=F(this,p,y),S};function N(L,p){this.x=L,this.y=p}N.prototype.makeRBT=function(p){for(var y=new Array(p),S=u.prototype._countBits(p)-1,c=0;c<p;c++)y[c]=this.revBin(c,S,p);return y},N.prototype.revBin=function(p,y,S){if(p===0||p===S-1)return p;for(var c=0,m=0;m<y;m++)c|=(p&1)<<y-m-1,p>>=1;return c},N.prototype.permute=function(p,y,S,c,m,x){for(var T=0;T<x;T++)c[T]=y[p[T]],m[T]=S[p[T]]},N.prototype.transform=function(p,y,S,c,m,x){this.permute(x,p,y,S,c,m);for(var T=1;T<m;T<<=1)for(var b=T<<1,d=Math.cos(2*Math.PI/b),k=Math.sin(2*Math.PI/b),D=0;D<m;D+=b)for(var O=d,Q=k,J=0;J<T;J++){var X=S[D+J],U=c[D+J],z=S[D+J+T],ie=c[D+J+T],de=O*z-Q*ie;ie=O*ie+Q*z,z=de,S[D+J]=X+z,c[D+J]=U+ie,S[D+J+T]=X-z,c[D+J+T]=U-ie,J!==b&&(de=d*O-k*Q,Q=d*Q+k*O,O=de)}},N.prototype.guessLen13b=function(p,y){var S=Math.max(y,p)|1,c=S&1,m=0;for(S=S/2|0;S;S=S>>>1)m++;return 1<<m+1+c},N.prototype.conjugate=function(p,y,S){if(!(S<=1))for(var c=0;c<S/2;c++){var m=p[c];p[c]=p[S-c-1],p[S-c-1]=m,m=y[c],y[c]=-y[S-c-1],y[S-c-1]=-m}},N.prototype.normalize13b=function(p,y){for(var S=0,c=0;c<y/2;c++){var m=Math.round(p[2*c+1]/y)*8192+Math.round(p[2*c]/y)+S;p[c]=m&67108863,m<67108864?S=0:S=m/67108864|0}return p},N.prototype.convert13b=function(p,y,S,c){for(var m=0,x=0;x<y;x++)m=m+(p[x]|0),S[2*x]=m&8191,m=m>>>13,S[2*x+1]=m&8191,m=m>>>13;for(x=2*y;x<c;++x)S[x]=0;l(m===0),l((m&-8192)===0)},N.prototype.stub=function(p){for(var y=new Array(p),S=0;S<p;S++)y[S]=0;return y},N.prototype.mulp=function(p,y,S){var c=2*this.guessLen13b(p.length,y.length),m=this.makeRBT(c),x=this.stub(c),T=new Array(c),b=new Array(c),d=new Array(c),k=new Array(c),D=new Array(c),O=new Array(c),Q=S.words;Q.length=c,this.convert13b(p.words,p.length,T,c),this.convert13b(y.words,y.length,k,c),this.transform(T,x,b,d,c,m),this.transform(k,x,D,O,c,m);for(var J=0;J<c;J++){var X=b[J]*D[J]-d[J]*O[J];d[J]=b[J]*O[J]+d[J]*D[J],b[J]=X}return this.conjugate(b,d,c),this.transform(b,d,Q,x,c,m),this.conjugate(Q,x,c),this.normalize13b(Q,c),S.negative=p.negative^y.negative,S.length=p.length+y.length,S.strip()},u.prototype.mul=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),this.mulTo(p,y)},u.prototype.mulf=function(p){var y=new u(null);return y.words=new Array(this.length+p.length),F(this,p,y)},u.prototype.imul=function(p){return this.clone().mulTo(p,this)},u.prototype.imuln=function(p){l(typeof p=="number"),l(p<67108864);for(var y=0,S=0;S<this.length;S++){var c=(this.words[S]|0)*p,m=(c&67108863)+(y&67108863);y>>=26,y+=c/67108864|0,y+=m>>>26,this.words[S]=m&67108863}return y!==0&&(this.words[S]=y,this.length++),this},u.prototype.muln=function(p){return this.clone().imuln(p)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(p){var y=P(p);if(y.length===0)return new u(1);for(var S=this,c=0;c<y.length&&y[c]===0;c++,S=S.sqr());if(++c<y.length)for(var m=S.sqr();c<y.length;c++,m=m.sqr())y[c]!==0&&(S=S.mul(m));return S},u.prototype.iushln=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=67108863>>>26-y<<26-y,m;if(y!==0){var x=0;for(m=0;m<this.length;m++){var T=this.words[m]&c,b=(this.words[m]|0)-T<<y;this.words[m]=b|x,x=T>>>26-y}x&&(this.words[m]=x,this.length++)}if(S!==0){for(m=this.length-1;m>=0;m--)this.words[m+S]=this.words[m];for(m=0;m<S;m++)this.words[m]=0;this.length+=S}return this.strip()},u.prototype.ishln=function(p){return l(this.negative===0),this.iushln(p)},u.prototype.iushrn=function(p,y,S){l(typeof p=="number"&&p>=0);var c;y?c=(y-y%26)/26:c=0;var m=p%26,x=Math.min((p-m)/26,this.length),T=67108863^67108863>>>m<<m,b=S;if(c-=x,c=Math.max(0,c),b){for(var d=0;d<x;d++)b.words[d]=this.words[d];b.length=x}if(x!==0)if(this.length>x)for(this.length-=x,d=0;d<this.length;d++)this.words[d]=this.words[d+x];else this.words[0]=0,this.length=1;var k=0;for(d=this.length-1;d>=0&&(k!==0||d>=c);d--){var D=this.words[d]|0;this.words[d]=k<<26-m|D>>>m,k=D&T}return b&&k!==0&&(b.words[b.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(p,y,S){return l(this.negative===0),this.iushrn(p,y,S)},u.prototype.shln=function(p){return this.clone().ishln(p)},u.prototype.ushln=function(p){return this.clone().iushln(p)},u.prototype.shrn=function(p){return this.clone().ishrn(p)},u.prototype.ushrn=function(p){return this.clone().iushrn(p)},u.prototype.testn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return!1;var m=this.words[S];return!!(m&c)},u.prototype.imaskn=function(p){l(typeof p=="number"&&p>=0);var y=p%26,S=(p-y)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(y!==0&&S++,this.length=Math.min(S,this.length),y!==0){var c=67108863^67108863>>>y<<y;this.words[this.length-1]&=c}return this.strip()},u.prototype.maskn=function(p){return this.clone().imaskn(p)},u.prototype.iaddn=function(p){return l(typeof p=="number"),l(p<67108864),p<0?this.isubn(-p):this.negative!==0?this.length===1&&(this.words[0]|0)<p?(this.words[0]=p-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(p),this.negative=1,this):this._iaddn(p)},u.prototype._iaddn=function(p){this.words[0]+=p;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},u.prototype.isubn=function(p){if(l(typeof p=="number"),l(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this.strip()},u.prototype.addn=function(p){return this.clone().iaddn(p)},u.prototype.subn=function(p){return this.clone().isubn(p)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(p,y,S){var c=p.length+S,m;this._expand(c);var x,T=0;for(m=0;m<p.length;m++){x=(this.words[m+S]|0)+T;var b=(p.words[m]|0)*y;x-=b&67108863,T=(x>>26)-(b/67108864|0),this.words[m+S]=x&67108863}for(;m<this.length-S;m++)x=(this.words[m+S]|0)+T,T=x>>26,this.words[m+S]=x&67108863;if(T===0)return this.strip();for(l(T===-1),T=0,m=0;m<this.length;m++)x=-(this.words[m]|0)+T,T=x>>26,this.words[m]=x&67108863;return this.negative=1,this.strip()},u.prototype._wordDiv=function(p,y){var S=this.length-p.length,c=this.clone(),m=p,x=m.words[m.length-1]|0,T=this._countBits(x);S=26-T,S!==0&&(m=m.ushln(S),c.iushln(S),x=m.words[m.length-1]|0);var b=c.length-m.length,d;if(y!=="mod"){d=new u(null),d.length=b+1,d.words=new Array(d.length);for(var k=0;k<d.length;k++)d.words[k]=0}var D=c.clone()._ishlnsubmul(m,1,b);D.negative===0&&(c=D,d&&(d.words[b]=1));for(var O=b-1;O>=0;O--){var Q=(c.words[m.length+O]|0)*67108864+(c.words[m.length+O-1]|0);for(Q=Math.min(Q/x|0,67108863),c._ishlnsubmul(m,Q,O);c.negative!==0;)Q--,c.negative=0,c._ishlnsubmul(m,1,O),c.isZero()||(c.negative^=1);d&&(d.words[O]=Q)}return d&&d.strip(),c.strip(),y!=="div"&&S!==0&&c.iushrn(S),{div:d||null,mod:c}},u.prototype.divmod=function(p,y,S){if(l(!p.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var c,m,x;return this.negative!==0&&p.negative===0?(x=this.neg().divmod(p,y),y!=="mod"&&(c=x.div.neg()),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.iadd(p)),{div:c,mod:m}):this.negative===0&&p.negative!==0?(x=this.divmod(p.neg(),y),y!=="mod"&&(c=x.div.neg()),{div:c,mod:x.mod}):this.negative&p.negative?(x=this.neg().divmod(p.neg(),y),y!=="div"&&(m=x.mod.neg(),S&&m.negative!==0&&m.isub(p)),{div:x.div,mod:m}):p.length>this.length||this.cmp(p)<0?{div:new u(0),mod:this}:p.length===1?y==="div"?{div:this.divn(p.words[0]),mod:null}:y==="mod"?{div:null,mod:new u(this.modn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new u(this.modn(p.words[0]))}:this._wordDiv(p,y)},u.prototype.div=function(p){return this.divmod(p,"div",!1).div},u.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},u.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},u.prototype.divRound=function(p){var y=this.divmod(p);if(y.mod.isZero())return y.div;var S=y.div.negative!==0?y.mod.isub(p):y.mod,c=p.ushrn(1),m=p.andln(1),x=S.cmp(c);return x<0||m===1&&x===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},u.prototype.modn=function(p){l(p<=67108863);for(var y=(1<<26)%p,S=0,c=this.length-1;c>=0;c--)S=(y*S+(this.words[c]|0))%p;return S},u.prototype.idivn=function(p){l(p<=67108863);for(var y=0,S=this.length-1;S>=0;S--){var c=(this.words[S]|0)+y*67108864;this.words[S]=c/p|0,y=c%p}return this.strip()},u.prototype.divn=function(p){return this.clone().idivn(p)},u.prototype.egcd=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=new u(0),T=new u(1),b=0;y.isEven()&&S.isEven();)y.iushrn(1),S.iushrn(1),++b;for(var d=S.clone(),k=y.clone();!y.isZero();){for(var D=0,O=1;!(y.words[0]&O)&&D<26;++D,O<<=1);if(D>0)for(y.iushrn(D);D-- >0;)(c.isOdd()||m.isOdd())&&(c.iadd(d),m.isub(k)),c.iushrn(1),m.iushrn(1);for(var Q=0,J=1;!(S.words[0]&J)&&Q<26;++Q,J<<=1);if(Q>0)for(S.iushrn(Q);Q-- >0;)(x.isOdd()||T.isOdd())&&(x.iadd(d),T.isub(k)),x.iushrn(1),T.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(x),m.isub(T)):(S.isub(y),x.isub(c),T.isub(m))}return{a:x,b:T,gcd:S.iushln(b)}},u.prototype._invmp=function(p){l(p.negative===0),l(!p.isZero());var y=this,S=p.clone();y.negative!==0?y=y.umod(p):y=y.clone();for(var c=new u(1),m=new u(0),x=S.clone();y.cmpn(1)>0&&S.cmpn(1)>0;){for(var T=0,b=1;!(y.words[0]&b)&&T<26;++T,b<<=1);if(T>0)for(y.iushrn(T);T-- >0;)c.isOdd()&&c.iadd(x),c.iushrn(1);for(var d=0,k=1;!(S.words[0]&k)&&d<26;++d,k<<=1);if(d>0)for(S.iushrn(d);d-- >0;)m.isOdd()&&m.iadd(x),m.iushrn(1);y.cmp(S)>=0?(y.isub(S),c.isub(m)):(S.isub(y),m.isub(c))}var D;return y.cmpn(1)===0?D=c:D=m,D.cmpn(0)<0&&D.iadd(p),D},u.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var y=this.clone(),S=p.clone();y.negative=0,S.negative=0;for(var c=0;y.isEven()&&S.isEven();c++)y.iushrn(1),S.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;S.isEven();)S.iushrn(1);var m=y.cmp(S);if(m<0){var x=y;y=S,S=x}else if(m===0||S.cmpn(1)===0)break;y.isub(S)}while(!0);return S.iushln(c)},u.prototype.invm=function(p){return this.egcd(p).a.umod(p)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(p){return this.words[0]&p},u.prototype.bincn=function(p){l(typeof p=="number");var y=p%26,S=(p-y)/26,c=1<<y;if(this.length<=S)return this._expand(S+1),this.words[S]|=c,this;for(var m=c,x=S;m!==0&&x<this.length;x++){var T=this.words[x]|0;T+=m,m=T>>>26,T&=67108863,this.words[x]=T}return m!==0&&(this.words[x]=m,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(p){var y=p<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this.strip();var S;if(this.length>1)S=1;else{y&&(p=-p),l(p<=67108863,"Number is too big");var c=this.words[0]|0;S=c===p?0:c<p?-1:1}return this.negative!==0?-S|0:S},u.prototype.cmp=function(p){if(this.negative!==0&&p.negative===0)return-1;if(this.negative===0&&p.negative!==0)return 1;var y=this.ucmp(p);return this.negative!==0?-y|0:y},u.prototype.ucmp=function(p){if(this.length>p.length)return 1;if(this.length<p.length)return-1;for(var y=0,S=this.length-1;S>=0;S--){var c=this.words[S]|0,m=p.words[S]|0;if(c!==m){c<m?y=-1:c>m&&(y=1);break}}return y},u.prototype.gtn=function(p){return this.cmpn(p)===1},u.prototype.gt=function(p){return this.cmp(p)===1},u.prototype.gten=function(p){return this.cmpn(p)>=0},u.prototype.gte=function(p){return this.cmp(p)>=0},u.prototype.ltn=function(p){return this.cmpn(p)===-1},u.prototype.lt=function(p){return this.cmp(p)===-1},u.prototype.lten=function(p){return this.cmpn(p)<=0},u.prototype.lte=function(p){return this.cmp(p)<=0},u.prototype.eqn=function(p){return this.cmpn(p)===0},u.prototype.eq=function(p){return this.cmp(p)===0},u.red=function(p){return new he(p)},u.prototype.toRed=function(p){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},u.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(p){return this.red=p,this},u.prototype.forceRed=function(p){return l(!this.red,"Already a number in reduction context"),this._forceRed(p)},u.prototype.redAdd=function(p){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},u.prototype.redIAdd=function(p){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},u.prototype.redSub=function(p){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},u.prototype.redISub=function(p){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},u.prototype.redShl=function(p){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},u.prototype.redMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},u.prototype.redIMul=function(p){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},u.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(p){return l(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var ee={k256:null,p224:null,p192:null,p25519:null};function Z(L,p){this.name=L,this.p=new u(p,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Z.prototype._tmp=function(){var p=new u(null);return p.words=new Array(Math.ceil(this.n/13)),p},Z.prototype.ireduce=function(p){var y=p,S;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),S=y.bitLength();while(S>this.n);var c=S<this.n?-1:y.ucmp(this.p);return c===0?(y.words[0]=0,y.length=1):c>0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},Z.prototype.split=function(p,y){p.iushrn(this.n,0,y)},Z.prototype.imulK=function(p){return p.imul(this.k)};function re(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}t(re,Z),re.prototype.split=function(p,y){for(var S=4194303,c=Math.min(p.length,9),m=0;m<c;m++)y.words[m]=p.words[m];if(y.length=c,p.length<=9){p.words[0]=0,p.length=1;return}var x=p.words[9];for(y.words[y.length++]=x&S,m=10;m<p.length;m++){var T=p.words[m]|0;p.words[m-10]=(T&S)<<4|x>>>22,x=T}x>>>=22,p.words[m-10]=x,x===0&&p.length>10?p.length-=10:p.length-=9},re.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var y=0,S=0;S<p.length;S++){var c=p.words[S]|0;y+=c*977,p.words[S]=y&67108863,y=c*64+(y/67108864|0)}return p.words[p.length-1]===0&&(p.length--,p.words[p.length-1]===0&&p.length--),p};function fe(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}t(fe,Z);function V(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}t(V,Z);function le(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}t(le,Z),le.prototype.imulK=function(p){for(var y=0,S=0;S<p.length;S++){var c=(p.words[S]|0)*19+y,m=c&67108863;c>>>=26,p.words[S]=m,y=c}return y!==0&&(p.words[p.length++]=y),p},u._prime=function(p){if(ee[p])return ee[p];var y;if(p==="k256")y=new re;else if(p==="p224")y=new fe;else if(p==="p192")y=new V;else if(p==="p25519")y=new le;else throw new Error("Unknown prime "+p);return ee[p]=y,y};function he(L){if(typeof L=="string"){var p=u._prime(L);this.m=p.p,this.prime=p}else l(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}he.prototype._verify1=function(p){l(p.negative===0,"red works only with positives"),l(p.red,"red works only with red numbers")},he.prototype._verify2=function(p,y){l((p.negative|y.negative)===0,"red works only with positives"),l(p.red&&p.red===y.red,"red works only with red numbers")},he.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):p.umod(this.m)._forceRed(this)},he.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},he.prototype.add=function(p,y){this._verify2(p,y);var S=p.add(y);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},he.prototype.iadd=function(p,y){this._verify2(p,y);var S=p.iadd(y);return S.cmp(this.m)>=0&&S.isub(this.m),S},he.prototype.sub=function(p,y){this._verify2(p,y);var S=p.sub(y);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},he.prototype.isub=function(p,y){this._verify2(p,y);var S=p.isub(y);return S.cmpn(0)<0&&S.iadd(this.m),S},he.prototype.shl=function(p,y){return this._verify1(p),this.imod(p.ushln(y))},he.prototype.imul=function(p,y){return this._verify2(p,y),this.imod(p.imul(y))},he.prototype.mul=function(p,y){return this._verify2(p,y),this.imod(p.mul(y))},he.prototype.isqr=function(p){return this.imul(p,p.clone())},he.prototype.sqr=function(p){return this.mul(p,p)},he.prototype.sqrt=function(p){if(p.isZero())return p.clone();var y=this.m.andln(3);if(l(y%2===1),y===3){var S=this.m.add(new u(1)).iushrn(2);return this.pow(p,S)}for(var c=this.m.subn(1),m=0;!c.isZero()&&c.andln(1)===0;)m++,c.iushrn(1);l(!c.isZero());var x=new u(1).toRed(this),T=x.redNeg(),b=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new u(2*d*d).toRed(this);this.pow(d,b).cmp(T)!==0;)d.redIAdd(T);for(var k=this.pow(d,c),D=this.pow(p,c.addn(1).iushrn(1)),O=this.pow(p,c),Q=m;O.cmp(x)!==0;){for(var J=O,X=0;J.cmp(x)!==0;X++)J=J.redSqr();l(X<Q);var U=this.pow(k,new u(1).iushln(Q-X-1));D=D.redMul(U),k=U.redSqr(),O=O.redMul(k),Q=X}return D},he.prototype.invm=function(p){var y=p._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},he.prototype.pow=function(p,y){if(y.isZero())return new u(1).toRed(this);if(y.cmpn(1)===0)return p.clone();var S=4,c=new Array(1<<S);c[0]=new u(1).toRed(this),c[1]=p;for(var m=2;m<c.length;m++)c[m]=this.mul(c[m-1],p);var x=c[0],T=0,b=0,d=y.bitLength()%26;for(d===0&&(d=26),m=y.length-1;m>=0;m--){for(var k=y.words[m],D=d-1;D>=0;D--){var O=k>>D&1;if(x!==c[0]&&(x=this.sqr(x)),O===0&&T===0){b=0;continue}T<<=1,T|=O,b++,!(b!==S&&(m!==0||D!==0))&&(x=this.mul(x,c[T]),b=0,T=0)}d=26}return x},he.prototype.convertTo=function(p){var y=p.umod(this.m);return y===p?y.clone():y},he.prototype.convertFrom=function(p){var y=p.clone();return y.red=null,y},u.mont=function(p){return new ye(p)};function ye(L){he.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}t(ye,he),ye.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},ye.prototype.convertFrom=function(p){var y=this.imod(p.mul(this.rinv));return y.red=null,y},ye.prototype.imul=function(p,y){if(p.isZero()||y.isZero())return p.words[0]=0,p.length=1,p;var S=p.imul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.mul=function(p,y){if(p.isZero()||y.isZero())return new u(0)._forceRed(this);var S=p.mul(y),c=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=S.isub(c).iushrn(this.shift),x=m;return m.cmp(this.m)>=0?x=m.isub(this.m):m.cmpn(0)<0&&(x=m.iadd(this.m)),x._forceRed(this)},ye.prototype.invm=function(p){var y=this.imod(p._invmp(this.m).mul(this.r2));return y._forceRed(this)}})(n,commonjsGlobal$1)}(bn);var bnExports=bn.exports,BN$2=bnExports,Buffer$4=safeBufferExports$1.Buffer;function withPublic$2(n,e){return Buffer$4.from(n.toRed(BN$2.mont(e.modulus)).redPow(new BN$2(e.publicExponent)).fromRed().toArray())}var withPublic_1=withPublic$2,parseKeys$1=parseAsn1,randomBytes=browserExports,createHash$1=browser$b,mgf$1=mgf$2,xor$1=xor$2,BN$1=bnExports,withPublic$1=withPublic_1,crt$1=browserifyRsa,Buffer$3=safeBufferExports$1.Buffer,publicEncrypt=function n(e,o,l){var t;e.padding?t=e.padding:l?t=1:t=4;var u=parseKeys$1(e),h;if(t===4)h=oaep$1(u,o);else if(t===1)h=pkcs1$2(u,o,l);else if(t===3){if(h=new BN$1(o),h.cmp(u.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return l?crt$1(h,u):withPublic$1(h,u)};function oaep$1(n,e){var o=n.modulus.byteLength(),l=e.length,t=createHash$1("sha1").update(Buffer$3.alloc(0)).digest(),u=t.length,h=2*u;if(l>o-h-2)throw new Error("message too long");var v=Buffer$3.alloc(o-l-h-2),w=o-u-1,A=randomBytes(u),E=xor$1(Buffer$3.concat([t,v,Buffer$3.alloc(1,1),e],w),mgf$1(A,w)),C=xor$1(A,mgf$1(E,u));return new BN$1(Buffer$3.concat([Buffer$3.alloc(1),C,E],o))}function pkcs1$2(n,e,o){var l=e.length,t=n.modulus.byteLength();if(l>t-11)throw new Error("message too long");var u;return o?u=Buffer$3.alloc(t-l-3,255):u=nonZero(t-l-3),new BN$1(Buffer$3.concat([Buffer$3.from([0,o?1:2]),u,Buffer$3.alloc(1),e],t))}function nonZero(n){for(var e=Buffer$3.allocUnsafe(n),o=0,l=randomBytes(n*2),t=0,u;o<n;)t===l.length&&(l=randomBytes(n*2),t=0),u=l[t++],u&&(e[o++]=u);return e}var parseKeys=parseAsn1,mgf=mgf$2,xor=xor$2,BN=bnExports,crt=browserifyRsa,createHash=browser$b,withPublic=withPublic_1,Buffer$2=safeBufferExports$1.Buffer,privateDecrypt=function n(e,o,l){var t;e.padding?t=e.padding:l?t=1:t=4;var u=parseKeys(e),h=u.modulus.byteLength();if(o.length>h||new BN(o).cmp(u.modulus)>=0)throw new Error("decryption error");var v;l?v=withPublic(new BN(o),u):v=crt(o,u);var w=Buffer$2.alloc(h-v.length);if(v=Buffer$2.concat([w,v],h),t===4)return oaep(u,v);if(t===1)return pkcs1$1(u,v,l);if(t===3)return v;throw new Error("unknown padding")};function oaep(n,e){var o=n.modulus.byteLength(),l=createHash("sha1").update(Buffer$2.alloc(0)).digest(),t=l.length;if(e[0]!==0)throw new Error("decryption error");var u=e.slice(1,t+1),h=e.slice(t+1),v=xor(u,mgf(h,t)),w=xor(h,mgf(v,o-t-1));if(compare(l,w.slice(0,t)))throw new Error("decryption error");for(var A=t;w[A]===0;)A++;if(w[A++]!==1)throw new Error("decryption error");return w.slice(A)}function pkcs1$1(n,e,o){for(var l=e.slice(0,2),t=2,u=0;e[t++]!==0;)if(t>=e.length){u++;break}var h=e.slice(2,t-1);if((l.toString("hex")!=="0002"&&!o||l.toString("hex")!=="0001"&&o)&&u++,h.length<8&&u++,u)throw new Error("decryption error");return e.slice(t)}function compare(n,e){n=Buffer$2.from(n),e=Buffer$2.from(e);var o=0,l=n.length;n.length!==e.length&&(o++,l=Math.min(n.length,e.length));for(var t=-1;++t<l;)o+=n[t]^e[t];return o}(function(n){n.publicEncrypt=publicEncrypt,n.privateDecrypt=privateDecrypt,n.privateEncrypt=function(o,l){return n.publicEncrypt(o,l,!0)},n.publicDecrypt=function(o,l){return n.privateDecrypt(o,l,!0)}})(browser$3);var browser$2={};function oldBrowser(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var safeBuffer=safeBufferExports$1,randombytes=browserExports,Buffer$1=safeBuffer.Buffer,kBufferMaxLength=safeBuffer.kMaxLength,crypto$2=commonjsGlobal$1.crypto||commonjsGlobal$1.msCrypto,kMaxUint32=Math.pow(2,32)-1;function assertOffset(n,e){if(typeof n!="number"||n!==n)throw new TypeError("offset must be a number");if(n>kMaxUint32||n<0)throw new TypeError("offset must be a uint32");if(n>kBufferMaxLength||n>e)throw new RangeError("offset out of range")}function assertSize(n,e,o){if(typeof n!="number"||n!==n)throw new TypeError("size must be a number");if(n>kMaxUint32||n<0)throw new TypeError("size must be a uint32");if(n+e>o||n>kBufferMaxLength)throw new RangeError("buffer too small")}crypto$2&&crypto$2.getRandomValues||!process$1.browser?(browser$2.randomFill=randomFill,browser$2.randomFillSync=randomFillSync):(browser$2.randomFill=oldBrowser,browser$2.randomFillSync=oldBrowser);function randomFill(n,e,o,l){if(!Buffer$1.isBuffer(n)&&!(n instanceof commonjsGlobal$1.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")l=e,e=0,o=n.length;else if(typeof o=="function")l=o,o=n.length-e;else if(typeof l!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(e,n.length),assertSize(o,e,n.length),actualFill(n,e,o,l)}function actualFill(n,e,o,l){if(process$1.browser){var t=n.buffer,u=new Uint8Array(t,e,o);if(crypto$2.getRandomValues(u),l){process$1.nextTick(function(){l(null,n)});return}return n}if(l){randombytes(o,function(v,w){if(v)return l(v);w.copy(n,e),l(null,n)});return}var h=randombytes(o);return h.copy(n,e),n}function randomFillSync(n,e,o){if(typeof e>"u"&&(e=0),!Buffer$1.isBuffer(n)&&!(n instanceof commonjsGlobal$1.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(e,n.length),o===void 0&&(o=n.length-e),assertSize(o,e,n.length),actualFill(n,e,o)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$b,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$a;var n=algos,e=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);cryptoBrowserify.getHashes=function(){return o};var l=browser$9;cryptoBrowserify.pbkdf2=l.pbkdf2,cryptoBrowserify.pbkdf2Sync=l.pbkdf2Sync;var t=browser$8;cryptoBrowserify.Cipher=t.Cipher,cryptoBrowserify.createCipher=t.createCipher,cryptoBrowserify.Cipheriv=t.Cipheriv,cryptoBrowserify.createCipheriv=t.createCipheriv,cryptoBrowserify.Decipher=t.Decipher,cryptoBrowserify.createDecipher=t.createDecipher,cryptoBrowserify.Decipheriv=t.Decipheriv,cryptoBrowserify.createDecipheriv=t.createDecipheriv,cryptoBrowserify.getCiphers=t.getCiphers,cryptoBrowserify.listCiphers=t.listCiphers;var u=requireBrowser$4();cryptoBrowserify.DiffieHellmanGroup=u.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=u.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=u.getDiffieHellman,cryptoBrowserify.createDiffieHellman=u.createDiffieHellman,cryptoBrowserify.DiffieHellman=u.DiffieHellman;var h=requireBrowser$3();cryptoBrowserify.createSign=h.createSign,cryptoBrowserify.Sign=h.Sign,cryptoBrowserify.createVerify=h.createVerify,cryptoBrowserify.Verify=h.Verify,cryptoBrowserify.createECDH=requireBrowser$2();var v=browser$3;cryptoBrowserify.publicEncrypt=v.publicEncrypt,cryptoBrowserify.privateEncrypt=v.privateEncrypt,cryptoBrowserify.publicDecrypt=v.publicDecrypt,cryptoBrowserify.privateDecrypt=v.privateDecrypt;var w=browser$2;return cryptoBrowserify.randomFill=w.randomFill,cryptoBrowserify.randomFillSync=w.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var jsonSafeStringify=stringifyExports,crypto$1=requireCryptoBrowserify(),Buffer=safeBufferExports$1.Buffer,defer=typeof setImmediate>"u"?process$1.nextTick:setImmediate;function paramsHaveRequestBody$1(n){return n.body||n.requestBodyStream||n.json&&typeof n.json!="boolean"||n.multipart}function safeStringify(n,e){var o;try{o=JSON.stringify(n,e)}catch{o=jsonSafeStringify(n,e)}return o}function md5(n){return crypto$1.createHash("md5").update(n).digest("hex")}function isReadStream(n){return n.readable&&n.path&&n.mode}function toBase64(n){return Buffer.from(n||"","utf8").toString("base64")}function copy(n){var e={};return Object.keys(n).forEach(function(o){e[o]=n[o]}),e}function version(){var n=process$1.version.replace("v","").split(".");return{major:parseInt(n[0],10),minor:parseInt(n[1],10),patch:parseInt(n[2],10)}}helpers$1.paramsHaveRequestBody=paramsHaveRequestBody$1,helpers$1.safeStringify=safeStringify,helpers$1.md5=md5,helpers$1.isReadStream=isReadStream,helpers$1.toBase64=toBase64,helpers$1.copy=copy,helpers$1.version=version,helpers$1.defer=defer;var streamHttp={},request$3={exports:{}},capability={},hasRequiredCapability;function requireCapability(){return hasRequiredCapability||(hasRequiredCapability=1,function(n){n.fetch=t(commonjsGlobal$1.fetch)&&t(commonjsGlobal$1.ReadableStream),n.writableStream=t(commonjsGlobal$1.WritableStream),n.abortController=t(commonjsGlobal$1.AbortController);var e;function o(){if(e!==void 0)return e;if(commonjsGlobal$1.XMLHttpRequest){e=new commonjsGlobal$1.XMLHttpRequest;try{e.open("GET",commonjsGlobal$1.XDomainRequest?"/":"https://example.com")}catch{e=null}}else e=null;return e}function l(u){var h=o();if(!h)return!1;try{return h.responseType=u,h.responseType===u}catch{}return!1}n.arraybuffer=n.fetch||l("arraybuffer"),n.msstream=!n.fetch&&l("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&l("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||(o()?t(o().overrideMimeType):!1);function t(u){return typeof u=="function"}e=null}(capability)),capability}var response={},readableBrowser={exports:{}},hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,function(n,e){e=n.exports=require_stream_readable$1(),e.Stream=e,e.Readable=e,e.Writable=require_stream_writable$1(),e.Duplex=require_stream_duplex$1(),e.Transform=require_stream_transform(),e.PassThrough=require_stream_passthrough(),e.finished=requireEndOfStream(),e.pipeline=requirePipeline()}(readableBrowser,readableBrowser.exports)),readableBrowser.exports}var hasRequiredResponse;function requireResponse(){if(hasRequiredResponse)return response;hasRequiredResponse=1;var n=requireCapability(),e=inherits_browserExports,o=requireReadableBrowser(),l=response.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=response.IncomingMessage=function(u,h,v,w){var A=this;if(o.Readable.call(A),A._mode=v,A.headers={},A.rawHeaders=[],A.trailers={},A.rawTrailers=[],A.on("end",function(){process$1.nextTick(function(){A.emit("close")})}),v==="fetch"){let j=function(){C.read().then(function(B){if(!A._destroyed){if(w(B.done),B.done){A.push(null);return}A.push(Buffer$C.from(B.value)),j()}}).catch(function(B){w(!0),A._destroyed||A.emit("error",B)})};if(A._fetchResponse=h,A.url=h.url,A.statusCode=h.status,A.statusMessage=h.statusText,h.headers.forEach(function(B,F){A.headers[F.toLowerCase()]=B,A.rawHeaders.push(F,B)}),n.writableStream){var E=new WritableStream({write:function(B){return w(!1),new Promise(function(F,N){A._destroyed?N():A.push(Buffer$C.from(B))?F():A._resumeFetch=F})},close:function(){w(!0),A._destroyed||A.push(null)},abort:function(B){w(!0),A._destroyed||A.emit("error",B)}});try{h.body.pipeTo(E).catch(function(B){w(!0),A._destroyed||A.emit("error",B)});return}catch{}}var C=h.body.getReader();j()}else{A._xhr=u,A._pos=0,A.url=u.responseURL,A.statusCode=u.status,A.statusMessage=u.statusText;var M=u.getAllResponseHeaders().split(/\r?\n/);if(M.forEach(function(j){var B=j.match(/^([^:]+):\s*(.*)/);if(B){var F=B[1].toLowerCase();F==="set-cookie"?(A.headers[F]===void 0&&(A.headers[F]=[]),A.headers[F].push(B[2])):A.headers[F]!==void 0?A.headers[F]+=", "+B[2]:A.headers[F]=B[2],A.rawHeaders.push(B[1],B[2])}}),A._charset="x-user-defined",!n.overrideMimeType){var P=A.rawHeaders["mime-type"];if(P){var I=P.match(/;\s*charset=([^;])(;|$)/);I&&(A._charset=I[1].toLowerCase())}A._charset||(A._charset="utf-8")}}};return e(t,o.Readable),t.prototype._read=function(){var u=this,h=u._resumeFetch;h&&(u._resumeFetch=null,h())},t.prototype._onXHRProgress=function(u){var h=this,v=h._xhr,w=null;switch(h._mode){case"text":if(w=v.responseText,w.length>h._pos){var A=w.substr(h._pos);if(h._charset==="x-user-defined"){for(var E=Buffer$C.alloc(A.length),C=0;C<A.length;C++)E[C]=A.charCodeAt(C)&255;h.push(E)}else h.push(A,h._charset);h._pos=w.length}break;case"arraybuffer":if(v.readyState!==l.DONE||!v.response)break;w=v.response,h.push(Buffer$C.from(new Uint8Array(w)));break;case"moz-chunked-arraybuffer":if(w=v.response,v.readyState!==l.LOADING||!w)break;h.push(Buffer$C.from(new Uint8Array(w)));break;case"ms-stream":if(w=v.response,v.readyState!==l.LOADING)break;var M=new commonjsGlobal$1.MSStreamReader;M.onprogress=function(){M.result.byteLength>h._pos&&(h.push(Buffer$C.from(new Uint8Array(M.result.slice(h._pos)))),h._pos=M.result.byteLength)},M.onload=function(){u(!0),h.push(null)},M.readAsArrayBuffer(w);break}h._xhr.readyState===l.DONE&&h._mode!=="ms-stream"&&(u(!0),h.push(null))},response}var hasRequiredRequest$1;function requireRequest$1(){if(hasRequiredRequest$1)return request$3.exports;hasRequiredRequest$1=1;var n=requireCapability(),e=inherits_browserExports,o=requireResponse(),l=requireReadableBrowser(),t=o.IncomingMessage,u=o.readyStates;function h(E,C){return n.fetch&&C?"fetch":n.mozchunkedarraybuffer?"moz-chunked-arraybuffer":n.msstream?"ms-stream":n.arraybuffer&&E?"arraybuffer":"text"}var v=request$3.exports=function(E){var C=this;l.Writable.call(C),C._opts=E,C._body=[],C._headers={},E.auth&&C.setHeader("Authorization","Basic "+Buffer$C.from(E.auth).toString("base64")),Object.keys(E.headers).forEach(function(I){C.setHeader(I,E.headers[I])});var M,P=!0;if(E.mode==="disable-fetch"||"requestTimeout"in E&&!n.abortController)P=!1,M=!0;else if(E.mode==="prefer-streaming")M=!1;else if(E.mode==="allow-wrong-content-type")M=!n.overrideMimeType;else if(!E.mode||E.mode==="default"||E.mode==="prefer-fast")M=!0;else throw new Error("Invalid value for opts.mode");C._mode=h(M,P),C._fetchTimer=null,C._socketTimeout=null,C._socketTimer=null,C.on("finish",function(){C._onFinish()})};e(v,l.Writable),v.prototype.setHeader=function(E,C){var M=this,P=E.toLowerCase();A.indexOf(P)===-1&&(M._headers[P]={name:E,value:C})},v.prototype.getHeader=function(E){var C=this._headers[E.toLowerCase()];return C?C.value:null},v.prototype.removeHeader=function(E){var C=this;delete C._headers[E.toLowerCase()]},v.prototype._onFinish=function(){var E=this;if(!E._destroyed){var C=E._opts;"timeout"in C&&C.timeout!==0&&E.setTimeout(C.timeout);var M=E._headers,P=null;C.method!=="GET"&&C.method!=="HEAD"&&(P=new Blob(E._body,{type:(M["content-type"]||{}).value||""}));var I=[];if(Object.keys(M).forEach(function(N){var ee=M[N].name,Z=M[N].value;Array.isArray(Z)?Z.forEach(function(re){I.push([ee,re])}):I.push([ee,Z])}),E._mode==="fetch"){var j=null;if(n.abortController){var B=new AbortController;j=B.signal,E._fetchAbortController=B,"requestTimeout"in C&&C.requestTimeout!==0&&(E._fetchTimer=commonjsGlobal$1.setTimeout(function(){E.emit("requestTimeout"),E._fetchAbortController&&E._fetchAbortController.abort()},C.requestTimeout))}commonjsGlobal$1.fetch(E._opts.url,{method:E._opts.method,headers:I,body:P||void 0,mode:"cors",credentials:C.withCredentials?"include":"same-origin",signal:j}).then(function(N){E._fetchResponse=N,E._resetTimers(!1),E._connect()},function(N){E._resetTimers(!0),E._destroyed||E.emit("error",N)})}else{var F=E._xhr=new commonjsGlobal$1.XMLHttpRequest;try{F.open(E._opts.method,E._opts.url,!0)}catch(N){process$1.nextTick(function(){E.emit("error",N)});return}"responseType"in F&&(F.responseType=E._mode),"withCredentials"in F&&(F.withCredentials=!!C.withCredentials),E._mode==="text"&&"overrideMimeType"in F&&F.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in C&&(F.timeout=C.requestTimeout,F.ontimeout=function(){E.emit("requestTimeout")}),I.forEach(function(N){F.setRequestHeader(N[0],N[1])}),E._response=null,F.onreadystatechange=function(){switch(F.readyState){case u.LOADING:case u.DONE:E._onXHRProgress();break}},E._mode==="moz-chunked-arraybuffer"&&(F.onprogress=function(){E._onXHRProgress()}),F.onerror=function(){E._destroyed||(E._resetTimers(!0),E.emit("error",new Error("XHR error")))};try{F.send(P)}catch(N){process$1.nextTick(function(){E.emit("error",N)});return}}}};function w(E){try{var C=E.status;return C!==null&&C!==0}catch{return!1}}v.prototype._onXHRProgress=function(){var E=this;E._resetTimers(!1),!(!w(E._xhr)||E._destroyed)&&(E._response||E._connect(),E._response._onXHRProgress(E._resetTimers.bind(E)))},v.prototype._connect=function(){var E=this;E._destroyed||(E._response=new t(E._xhr,E._fetchResponse,E._mode,E._resetTimers.bind(E)),E._response.on("error",function(C){E.emit("error",C)}),E.emit("response",E._response))},v.prototype._write=function(E,C,M){var P=this;P._body.push(E),M()},v.prototype._resetTimers=function(E){var C=this;commonjsGlobal$1.clearTimeout(C._socketTimer),C._socketTimer=null,E?(commonjsGlobal$1.clearTimeout(C._fetchTimer),C._fetchTimer=null):C._socketTimeout&&(C._socketTimer=commonjsGlobal$1.setTimeout(function(){C.emit("timeout")},C._socketTimeout))},v.prototype.abort=v.prototype.destroy=function(E){var C=this;C._destroyed=!0,C._resetTimers(!0),C._response&&(C._response._destroyed=!0),C._xhr?C._xhr.abort():C._fetchAbortController&&C._fetchAbortController.abort(),E&&C.emit("error",E)},v.prototype.end=function(E,C,M){var P=this;typeof E=="function"&&(M=E,E=void 0),l.Writable.prototype.end.call(P,E,C,M)},v.prototype.setTimeout=function(E,C){var M=this;C&&M.once("timeout",C),M._socketTimeout=E,M._resetTimers(!1)},v.prototype.flushHeaders=function(){},v.prototype.setNoDelay=function(){},v.prototype.setSocketKeepAlive=function(){};var A=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return request$3.exports}var immutable,hasRequiredImmutable;function requireImmutable(){if(hasRequiredImmutable)return immutable;hasRequiredImmutable=1,immutable=e;var n=Object.prototype.hasOwnProperty;function e(){for(var o={},l=0;l<arguments.length;l++){var t=arguments[l];for(var u in t)n.call(t,u)&&(o[u]=t[u])}return o}return immutable}var browser$1,hasRequiredBrowser$1;function requireBrowser$1(){return hasRequiredBrowser$1||(hasRequiredBrowser$1=1,browser$1={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),browser$1}var hasRequiredStreamHttp;function requireStreamHttp(){return hasRequiredStreamHttp||(hasRequiredStreamHttp=1,function(n){var e=requireRequest$1(),o=requireResponse(),l=requireImmutable(),t=requireBrowser$1(),u=require$$2$2,h=n;h.request=function(v,w){typeof v=="string"?v=u.parse(v):v=l(v);var A=commonjsGlobal$1.location.protocol.search(/^https?:$/)===-1?"http:":"",E=v.protocol||A,C=v.hostname||v.host,M=v.port,P=v.path||"/";C&&C.indexOf(":")!==-1&&(C="["+C+"]"),v.url=(C?E+"//"+C:"")+(M?":"+M:"")+P,v.method=(v.method||"GET").toUpperCase(),v.headers=v.headers||{};var I=new e(v);return w&&I.on("response",w),I},h.get=function(w,A){var E=h.request(w,A);return E.end(),E},h.ClientRequest=e,h.IncomingMessage=o.IncomingMessage,h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.globalAgent=new h.Agent,h.STATUS_CODES=t,h.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(streamHttp)),streamHttp}var httpsBrowserify={exports:{}},hasRequiredHttpsBrowserify;function requireHttpsBrowserify(){return hasRequiredHttpsBrowserify||(hasRequiredHttpsBrowserify=1,function(n){var e=requireStreamHttp(),o=require$$2$2,l=n.exports;for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);l.request=function(h,v){return h=u(h),e.request.call(this,h,v)},l.get=function(h,v){return h=u(h),e.get.call(this,h,v)};function u(h){if(typeof h=="string"&&(h=o.parse(h)),h.protocol||(h.protocol="https:"),h.protocol!=="https:")throw new Error('Protocol "'+h.protocol+'" not supported. Expected "https:"');return h}}(httpsBrowserify)),httpsBrowserify.exports}var lib$5={},binding={},assert={exports:{}},errors$2={},hasRequiredErrors$2;function requireErrors$2(){if(hasRequiredErrors$2)return errors$2;hasRequiredErrors$2=1;function n(N){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ee){return typeof ee}:function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},n(N)}function e(N,ee,Z){return Object.defineProperty(N,"prototype",{writable:!1}),N}function o(N,ee){if(!(N instanceof ee))throw new TypeError("Cannot call a class as a function")}function l(N,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(ee&&ee.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),ee&&t(N,ee)}function t(N,ee){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(re,fe){return re.__proto__=fe,re},t(N,ee)}function u(N){var ee=w();return function(){var re=A(N),fe;if(ee){var V=A(this).constructor;fe=Reflect.construct(re,arguments,V)}else fe=re.apply(this,arguments);return h(this,fe)}}function h(N,ee){if(ee&&(n(ee)==="object"||typeof ee=="function"))return ee;if(ee!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(N)}function v(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function A(N){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},A(N)}var E={},C,M;function P(N,ee,Z){Z||(Z=Error);function re(V,le,he){return typeof ee=="string"?ee:ee(V,le,he)}var fe=function(V){l(he,V);var le=u(he);function he(ye,L,p){var y;return o(this,he),y=le.call(this,re(ye,L,p)),y.code=N,y}return e(he)}(Z);E[N]=fe}function I(N,ee){if(Array.isArray(N)){var Z=N.length;return N=N.map(function(re){return String(re)}),Z>2?"one of ".concat(ee," ").concat(N.slice(0,Z-1).join(", "),", or ")+N[Z-1]:Z===2?"one of ".concat(ee," ").concat(N[0]," or ").concat(N[1]):"of ".concat(ee," ").concat(N[0])}else return"of ".concat(ee," ").concat(String(N))}function j(N,ee,Z){return N.substr(0,ee.length)===ee}function B(N,ee,Z){return(Z===void 0||Z>N.length)&&(Z=N.length),N.substring(Z-ee.length,Z)===ee}function F(N,ee,Z){return typeof Z!="number"&&(Z=0),Z+ee.length>N.length?!1:N.indexOf(ee,Z)!==-1}return P("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),P("ERR_INVALID_ARG_TYPE",function(N,ee,Z){C===void 0&&(C=requireAssert$1()),C(typeof N=="string","'name' must be a string");var re;typeof ee=="string"&&j(ee,"not ")?(re="must not be",ee=ee.replace(/^not /,"")):re="must be";var fe;if(B(N," argument"))fe="The ".concat(N," ").concat(re," ").concat(I(ee,"type"));else{var V=F(N,".")?"property":"argument";fe='The "'.concat(N,'" ').concat(V," ").concat(re," ").concat(I(ee,"type"))}return fe+=". Received type ".concat(n(Z)),fe},TypeError),P("ERR_INVALID_ARG_VALUE",function(N,ee){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";M===void 0&&(M=util$6);var re=M.inspect(ee);return re.length>128&&(re="".concat(re.slice(0,128),"...")),"The argument '".concat(N,"' ").concat(Z,". Received ").concat(re)},TypeError),P("ERR_INVALID_RETURN_VALUE",function(N,ee,Z){var re;return Z&&Z.constructor&&Z.constructor.name?re="instance of ".concat(Z.constructor.name):re="type ".concat(n(Z)),"Expected ".concat(N,' to be returned from the "').concat(ee,'"')+" function but got ".concat(re,".")},TypeError),P("ERR_MISSING_ARGS",function(){for(var N=arguments.length,ee=new Array(N),Z=0;Z<N;Z++)ee[Z]=arguments[Z];C===void 0&&(C=requireAssert$1()),C(ee.length>0,"At least one arg needs to be specified");var re="The ",fe=ee.length;switch(ee=ee.map(function(V){return'"'.concat(V,'"')}),fe){case 1:re+="".concat(ee[0]," argument");break;case 2:re+="".concat(ee[0]," and ").concat(ee[1]," arguments");break;default:re+=ee.slice(0,fe-1).join(", "),re+=", and ".concat(ee[fe-1]," arguments");break}return"".concat(re," must be specified")},TypeError),errors$2.codes=E,errors$2}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function n(b,d){var k=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);d&&(D=D.filter(function(O){return Object.getOwnPropertyDescriptor(b,O).enumerable})),k.push.apply(k,D)}return k}function e(b){for(var d=1;d<arguments.length;d++){var k=arguments[d]!=null?arguments[d]:{};d%2?n(Object(k),!0).forEach(function(D){o(b,D,k[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(k)):n(Object(k)).forEach(function(D){Object.defineProperty(b,D,Object.getOwnPropertyDescriptor(k,D))})}return b}function o(b,d,k){return d=h(d),d in b?Object.defineProperty(b,d,{value:k,enumerable:!0,configurable:!0,writable:!0}):b[d]=k,b}function l(b,d){if(!(b instanceof d))throw new TypeError("Cannot call a class as a function")}function t(b,d){for(var k=0;k<d.length;k++){var D=d[k];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,h(D.key),D)}}function u(b,d,k){return d&&t(b.prototype,d),Object.defineProperty(b,"prototype",{writable:!1}),b}function h(b){var d=v(b,"string");return N(d)==="symbol"?d:String(d)}function v(b,d){if(N(b)!=="object"||b===null)return b;var k=b[Symbol.toPrimitive];if(k!==void 0){var D=k.call(b,d||"default");if(N(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(b)}function w(b,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),d&&B(b,d)}function A(b){var d=I();return function(){var D=F(b),O;if(d){var Q=F(this).constructor;O=Reflect.construct(D,arguments,Q)}else O=D.apply(this,arguments);return E(this,O)}}function E(b,d){if(d&&(N(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(b)}function C(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function M(b){var d=typeof Map=="function"?new Map:void 0;return M=function(D){if(D===null||!j(D))return D;if(typeof D!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d<"u"){if(d.has(D))return d.get(D);d.set(D,O)}function O(){return P(D,arguments,F(this).constructor)}return O.prototype=Object.create(D.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),B(O,D)},M(b)}function P(b,d,k){return I()?P=Reflect.construct.bind():P=function(O,Q,J){var X=[null];X.push.apply(X,Q);var U=Function.bind.apply(O,X),z=new U;return J&&B(z,J.prototype),z},P.apply(null,arguments)}function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(b){return Function.toString.call(b).indexOf("[native code]")!==-1}function B(b,d){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,O){return D.__proto__=O,D},B(b,d)}function F(b){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},F(b)}function N(b){"@babel/helpers - typeof";return N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},N(b)}var ee=util$6,Z=ee.inspect,re=requireErrors$2(),fe=re.codes.ERR_INVALID_ARG_TYPE;function V(b,d,k){return(k===void 0||k>b.length)&&(k=b.length),b.substring(k-d.length,k)===d}function le(b,d){if(d=Math.floor(d),b.length==0||d==0)return"";var k=b.length*d;for(d=Math.floor(Math.log(d)/Math.log(2));d;)b+=b,d--;return b+=b.substring(0,k-b.length),b}var he="",ye="",L="",p="",y={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},S=10;function c(b){var d=Object.keys(b),k=Object.create(Object.getPrototypeOf(b));return d.forEach(function(D){k[D]=b[D]}),Object.defineProperty(k,"message",{value:b.message}),k}function m(b){return Z(b,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function x(b,d,k){var D="",O="",Q=0,J="",X=!1,U=m(b),z=U.split(`
`),ie=m(d).split(`
`),de=0,me="";if(k==="strictEqual"&&N(b)==="object"&&N(d)==="object"&&b!==null&&d!==null&&(k="strictEqualObject"),z.length===1&&ie.length===1&&z[0]!==ie[0]){var pe=z[0].length+ie[0].length;if(pe<=S){if((N(b)!=="object"||b===null)&&(N(d)!=="object"||d===null)&&(b!==0||d!==0))return"".concat(y[k],`

`)+"".concat(z[0]," !== ").concat(ie[0],`
`)}else if(k!=="strictEqualObject"){var qe=process$1.stderr&&process$1.stderr.isTTY?process$1.stderr.columns:80;if(pe<qe){for(;z[0][de]===ie[0][de];)de++;de>2&&(me=`
  `.concat(le(" ",de),"^"),de=0)}}}for(var mt=z[z.length-1],st=ie[ie.length-1];mt===st&&(de++<2?J=`
  `.concat(mt).concat(J):D=mt,z.pop(),ie.pop(),!(z.length===0||ie.length===0));)mt=z[z.length-1],st=ie[ie.length-1];var dt=Math.max(z.length,ie.length);if(dt===0){var Tt=U.split(`
`);if(Tt.length>30)for(Tt[26]="".concat(he,"...").concat(p);Tt.length>27;)Tt.pop();return"".concat(y.notIdentical,`

`).concat(Tt.join(`
`),`
`)}de>3&&(J=`
`.concat(he,"...").concat(p).concat(J),X=!0),D!==""&&(J=`
  `.concat(D).concat(J),D="");var lt=0,Je=y[k]+`
`.concat(ye,"+ actual").concat(p," ").concat(L,"- expected").concat(p),ht=" ".concat(he,"...").concat(p," Lines skipped");for(de=0;de<dt;de++){var at=de-Q;if(z.length<de+1)at>1&&de>2&&(at>4?(O+=`
`.concat(he,"...").concat(p),X=!0):at>3&&(O+=`
  `.concat(ie[de-2]),lt++),O+=`
  `.concat(ie[de-1]),lt++),Q=de,D+=`
`.concat(L,"-").concat(p," ").concat(ie[de]),lt++;else if(ie.length<de+1)at>1&&de>2&&(at>4?(O+=`
`.concat(he,"...").concat(p),X=!0):at>3&&(O+=`
  `.concat(z[de-2]),lt++),O+=`
  `.concat(z[de-1]),lt++),Q=de,O+=`
`.concat(ye,"+").concat(p," ").concat(z[de]),lt++;else{var bt=ie[de],jt=z[de],Ge=jt!==bt&&(!V(jt,",")||jt.slice(0,-1)!==bt);Ge&&V(bt,",")&&bt.slice(0,-1)===jt&&(Ge=!1,jt+=","),Ge?(at>1&&de>2&&(at>4?(O+=`
`.concat(he,"...").concat(p),X=!0):at>3&&(O+=`
  `.concat(z[de-2]),lt++),O+=`
  `.concat(z[de-1]),lt++),Q=de,O+=`
`.concat(ye,"+").concat(p," ").concat(jt),D+=`
`.concat(L,"-").concat(p," ").concat(bt),lt+=2):(O+=D,D="",(at===1||de===0)&&(O+=`
  `.concat(jt),lt++))}if(lt>20&&de<dt-2)return"".concat(Je).concat(ht,`
`).concat(O,`
`).concat(he,"...").concat(p).concat(D,`
`)+"".concat(he,"...").concat(p)}return"".concat(Je).concat(X?ht:"",`
`).concat(O).concat(D).concat(J).concat(me)}var T=function(b,d){w(D,b);var k=A(D);function D(O){var Q;if(l(this,D),N(O)!=="object"||O===null)throw new fe("options","Object",O);var J=O.message,X=O.operator,U=O.stackStartFn,z=O.actual,ie=O.expected,de=Error.stackTraceLimit;if(Error.stackTraceLimit=0,J!=null)Q=k.call(this,String(J));else if(process$1.stderr&&process$1.stderr.isTTY&&(process$1.stderr&&process$1.stderr.getColorDepth&&process$1.stderr.getColorDepth()!==1?(he="\x1B[34m",ye="\x1B[32m",p="\x1B[39m",L="\x1B[31m"):(he="",ye="",p="",L="")),N(z)==="object"&&z!==null&&N(ie)==="object"&&ie!==null&&"stack"in z&&z instanceof Error&&"stack"in ie&&ie instanceof Error&&(z=c(z),ie=c(ie)),X==="deepStrictEqual"||X==="strictEqual")Q=k.call(this,x(z,ie,X));else if(X==="notDeepStrictEqual"||X==="notStrictEqual"){var me=y[X],pe=m(z).split(`
`);if(X==="notStrictEqual"&&N(z)==="object"&&z!==null&&(me=y.notStrictEqualObject),pe.length>30)for(pe[26]="".concat(he,"...").concat(p);pe.length>27;)pe.pop();pe.length===1?Q=k.call(this,"".concat(me," ").concat(pe[0])):Q=k.call(this,"".concat(me,`

`).concat(pe.join(`
`),`
`))}else{var qe=m(z),mt="",st=y[X];X==="notDeepEqual"||X==="notEqual"?(qe="".concat(y[X],`

`).concat(qe),qe.length>1024&&(qe="".concat(qe.slice(0,1021),"..."))):(mt="".concat(m(ie)),qe.length>512&&(qe="".concat(qe.slice(0,509),"...")),mt.length>512&&(mt="".concat(mt.slice(0,509),"...")),X==="deepEqual"||X==="equal"?qe="".concat(st,`

`).concat(qe,`

should equal

`):mt=" ".concat(X," ").concat(mt)),Q=k.call(this,"".concat(qe).concat(mt))}return Error.stackTraceLimit=de,Q.generatedMessage=!J,Object.defineProperty(C(Q),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),Q.code="ERR_ASSERTION",Q.actual=z,Q.expected=ie,Q.operator=X,Error.captureStackTrace&&Error.captureStackTrace(C(Q),U),Q.stack,Q.name="AssertionError",E(Q)}return u(D,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d,value:function(Q,J){return Z(this,e(e({},J),{},{customInspect:!1,depth:0}))}}]),D}(M(Error),Z.custom);return assertion_error=T,assertion_error}var isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var n=Object.prototype.toString;return isArguments=function(o){var l=n.call(o),t=l==="[object Arguments]";return t||(t=l!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&n.call(o.callee)==="[object Function]"),t},isArguments}var implementation$3,hasRequiredImplementation$3;function requireImplementation$3(){if(hasRequiredImplementation$3)return implementation$3;hasRequiredImplementation$3=1;var n;if(!Object.keys){var e=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=requireIsArguments(),t=Object.prototype.propertyIsEnumerable,u=!t.call({toString:null},"toString"),h=t.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],w=function(M){var P=M.constructor;return P&&P.prototype===M},A={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},E=function(){if(typeof window>"u")return!1;for(var M in window)try{if(!A["$"+M]&&e.call(window,M)&&window[M]!==null&&typeof window[M]=="object")try{w(window[M])}catch{return!0}}catch{return!0}return!1}(),C=function(M){if(typeof window>"u"||!E)return w(M);try{return w(M)}catch{return!1}};n=function(P){var I=P!==null&&typeof P=="object",j=o.call(P)==="[object Function]",B=l(P),F=I&&o.call(P)==="[object String]",N=[];if(!I&&!j&&!B)throw new TypeError("Object.keys called on a non-object");var ee=h&&j;if(F&&P.length>0&&!e.call(P,0))for(var Z=0;Z<P.length;++Z)N.push(String(Z));if(B&&P.length>0)for(var re=0;re<P.length;++re)N.push(String(re));else for(var fe in P)!(ee&&fe==="prototype")&&e.call(P,fe)&&N.push(String(fe));if(u)for(var V=C(P),le=0;le<v.length;++le)!(V&&v[le]==="constructor")&&e.call(P,v[le])&&N.push(v[le]);return N}}return implementation$3=n,implementation$3}var objectKeys,hasRequiredObjectKeys;function requireObjectKeys(){if(hasRequiredObjectKeys)return objectKeys;hasRequiredObjectKeys=1;var n=Array.prototype.slice,e=requireIsArguments(),o=Object.keys,l=o?function(h){return o(h)}:requireImplementation$3(),t=Object.keys;return l.shim=function(){if(Object.keys){var h=function(){var v=Object.keys(arguments);return v&&v.length===arguments.length}(1,2);h||(Object.keys=function(w){return e(w)?t(n.call(w)):t(w)})}else Object.keys=l;return Object.keys||l},objectKeys=l,objectKeys}var implementation$2,hasRequiredImplementation$2;function requireImplementation$2(){if(hasRequiredImplementation$2)return implementation$2;hasRequiredImplementation$2=1;var n=requireObjectKeys(),e=shams$1(),o=callBound$2,l=Object,t=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),h=e?Object.getOwnPropertySymbols:null;return implementation$2=function(w,A){if(w==null)throw new TypeError("target must be an object");var E=l(w);if(arguments.length===1)return E;for(var C=1;C<arguments.length;++C){var M=l(arguments[C]),P=n(M),I=e&&(Object.getOwnPropertySymbols||h);if(I)for(var j=I(M),B=0;B<j.length;++B){var F=j[B];u(M,F)&&t(P,F)}for(var N=0;N<P.length;++N){var ee=P[N];if(u(M,ee)){var Z=M[ee];E[ee]=Z}}}return E},implementation$2}var polyfill$2,hasRequiredPolyfill$2;function requirePolyfill$2(){if(hasRequiredPolyfill$2)return polyfill$2;hasRequiredPolyfill$2=1;var n=requireImplementation$2(),e=function(){if(!Object.assign)return!1;for(var l="abcdefghijklmnopqrst",t=l.split(""),u={},h=0;h<t.length;++h)u[t[h]]=t[h];var v=Object.assign({},u),w="";for(var A in v)w+=A;return l!==w},o=function(){if(!Object.assign||!Object.preventExtensions)return!1;var l=Object.preventExtensions({1:2});try{Object.assign(l,"xy")}catch{return l[1]==="y"}return!1};return polyfill$2=function(){return!Object.assign||e()||o()?n:Object.assign},polyfill$2}var implementation$1,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$1;hasRequiredImplementation$1=1;var n=function(e){return e!==e};return implementation$1=function(o,l){return o===0&&l===0?1/o===1/l:!!(o===l||n(o)&&n(l))},implementation$1}var polyfill$1,hasRequiredPolyfill$1;function requirePolyfill$1(){if(hasRequiredPolyfill$1)return polyfill$1;hasRequiredPolyfill$1=1;var n=requireImplementation$1();return polyfill$1=function(){return typeof Object.is=="function"?Object.is:n},polyfill$1}var defineProperties_1,hasRequiredDefineProperties;function requireDefineProperties(){if(hasRequiredDefineProperties)return defineProperties_1;hasRequiredDefineProperties=1;var n=requireObjectKeys(),e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",o=Object.prototype.toString,l=Array.prototype.concat,t=defineDataProperty,u=function(A){return typeof A=="function"&&o.call(A)==="[object Function]"},h=hasPropertyDescriptors_1(),v=function(A,E,C,M){if(E in A){if(M===!0){if(A[E]===C)return}else if(!u(M)||!M())return}h?t(A,E,C,!0):t(A,E,C)},w=function(A,E){var C=arguments.length>2?arguments[2]:{},M=n(E);e&&(M=l.call(M,Object.getOwnPropertySymbols(E)));for(var P=0;P<M.length;P+=1)v(A,M[P],E[M[P]],C[M[P]])};return w.supportsDescriptors=!!h,defineProperties_1=w,defineProperties_1}var shim$1,hasRequiredShim$1;function requireShim$1(){if(hasRequiredShim$1)return shim$1;hasRequiredShim$1=1;var n=requirePolyfill$1(),e=requireDefineProperties();return shim$1=function(){var l=n();return e(Object,{is:l},{is:function(){return Object.is!==l}}),l},shim$1}var objectIs,hasRequiredObjectIs;function requireObjectIs(){if(hasRequiredObjectIs)return objectIs;hasRequiredObjectIs=1;var n=requireDefineProperties(),e=callBindExports,o=requireImplementation$1(),l=requirePolyfill$1(),t=requireShim$1(),u=e(l(),Object);return n(u,{getPolyfill:l,implementation:o,shim:t}),objectIs=u,objectIs}var implementation,hasRequiredImplementation;function requireImplementation(){return hasRequiredImplementation||(hasRequiredImplementation=1,implementation=function(e){return e!==e}),implementation}var polyfill,hasRequiredPolyfill;function requirePolyfill(){if(hasRequiredPolyfill)return polyfill;hasRequiredPolyfill=1;var n=requireImplementation();return polyfill=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n},polyfill}var shim,hasRequiredShim;function requireShim(){if(hasRequiredShim)return shim;hasRequiredShim=1;var n=requireDefineProperties(),e=requirePolyfill();return shim=function(){var l=e();return n(Number,{isNaN:l},{isNaN:function(){return Number.isNaN!==l}}),l},shim}var isNan,hasRequiredIsNan;function requireIsNan(){if(hasRequiredIsNan)return isNan;hasRequiredIsNan=1;var n=callBindExports,e=requireDefineProperties(),o=requireImplementation(),l=requirePolyfill(),t=requireShim(),u=n(l(),Number);return e(u,{getPolyfill:l,implementation:o,shim:t}),isNan=u,isNan}var comparisons,hasRequiredComparisons;function requireComparisons(){if(hasRequiredComparisons)return comparisons;hasRequiredComparisons=1;function n(Ge,Qe){return u(Ge)||t(Ge,Qe)||o(Ge,Qe)||e()}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(Ge,Qe){if(Ge){if(typeof Ge=="string")return l(Ge,Qe);var Wt=Object.prototype.toString.call(Ge).slice(8,-1);if(Wt==="Object"&&Ge.constructor&&(Wt=Ge.constructor.name),Wt==="Map"||Wt==="Set")return Array.from(Ge);if(Wt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Wt))return l(Ge,Qe)}}function l(Ge,Qe){(Qe==null||Qe>Ge.length)&&(Qe=Ge.length);for(var Wt=0,Et=new Array(Qe);Wt<Qe;Wt++)Et[Wt]=Ge[Wt];return Et}function t(Ge,Qe){var Wt=Ge==null?null:typeof Symbol<"u"&&Ge[Symbol.iterator]||Ge["@@iterator"];if(Wt!=null){var Et,Ct,Kt,Me,te=[],_e=!0,je=!1;try{if(Kt=(Wt=Wt.call(Ge)).next,Qe!==0)for(;!(_e=(Et=Kt.call(Wt)).done)&&(te.push(Et.value),te.length!==Qe);_e=!0);}catch(We){je=!0,Ct=We}finally{try{if(!_e&&Wt.return!=null&&(Me=Wt.return(),Object(Me)!==Me))return}finally{if(je)throw Ct}}return te}}function u(Ge){if(Array.isArray(Ge))return Ge}function h(Ge){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Qe){return typeof Qe}:function(Qe){return Qe&&typeof Symbol=="function"&&Qe.constructor===Symbol&&Qe!==Symbol.prototype?"symbol":typeof Qe},h(Ge)}var v=/a/g.flags!==void 0,w=function(Qe){var Wt=[];return Qe.forEach(function(Et){return Wt.push(Et)}),Wt},A=function(Qe){var Wt=[];return Qe.forEach(function(Et,Ct){return Wt.push([Ct,Et])}),Wt},E=Object.is?Object.is:requireObjectIs(),C=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},M=Number.isNaN?Number.isNaN:requireIsNan();function P(Ge){return Ge.call.bind(Ge)}var I=P(Object.prototype.hasOwnProperty),j=P(Object.prototype.propertyIsEnumerable),B=P(Object.prototype.toString),F=util$6.types,N=F.isAnyArrayBuffer,ee=F.isArrayBufferView,Z=F.isDate,re=F.isMap,fe=F.isRegExp,V=F.isSet,le=F.isNativeError,he=F.isBoxedPrimitive,ye=F.isNumberObject,L=F.isStringObject,p=F.isBooleanObject,y=F.isBigIntObject,S=F.isSymbolObject,c=F.isFloat32Array,m=F.isFloat64Array;function x(Ge){if(Ge.length===0||Ge.length>10)return!0;for(var Qe=0;Qe<Ge.length;Qe++){var Wt=Ge.charCodeAt(Qe);if(Wt<48||Wt>57)return!0}return Ge.length===10&&Ge>=Math.pow(2,32)}function T(Ge){return Object.keys(Ge).filter(x).concat(C(Ge).filter(Object.prototype.propertyIsEnumerable.bind(Ge)))}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */function b(Ge,Qe){if(Ge===Qe)return 0;for(var Wt=Ge.length,Et=Qe.length,Ct=0,Kt=Math.min(Wt,Et);Ct<Kt;++Ct)if(Ge[Ct]!==Qe[Ct]){Wt=Ge[Ct],Et=Qe[Ct];break}return Wt<Et?-1:Et<Wt?1:0}var d=!0,k=!1,D=0,O=1,Q=2,J=3;function X(Ge,Qe){return v?Ge.source===Qe.source&&Ge.flags===Qe.flags:RegExp.prototype.toString.call(Ge)===RegExp.prototype.toString.call(Qe)}function U(Ge,Qe){if(Ge.byteLength!==Qe.byteLength)return!1;for(var Wt=0;Wt<Ge.byteLength;Wt++)if(Ge[Wt]!==Qe[Wt])return!1;return!0}function z(Ge,Qe){return Ge.byteLength!==Qe.byteLength?!1:b(new Uint8Array(Ge.buffer,Ge.byteOffset,Ge.byteLength),new Uint8Array(Qe.buffer,Qe.byteOffset,Qe.byteLength))===0}function ie(Ge,Qe){return Ge.byteLength===Qe.byteLength&&b(new Uint8Array(Ge),new Uint8Array(Qe))===0}function de(Ge,Qe){return ye(Ge)?ye(Qe)&&E(Number.prototype.valueOf.call(Ge),Number.prototype.valueOf.call(Qe)):L(Ge)?L(Qe)&&String.prototype.valueOf.call(Ge)===String.prototype.valueOf.call(Qe):p(Ge)?p(Qe)&&Boolean.prototype.valueOf.call(Ge)===Boolean.prototype.valueOf.call(Qe):y(Ge)?y(Qe)&&BigInt.prototype.valueOf.call(Ge)===BigInt.prototype.valueOf.call(Qe):S(Qe)&&Symbol.prototype.valueOf.call(Ge)===Symbol.prototype.valueOf.call(Qe)}function me(Ge,Qe,Wt,Et){if(Ge===Qe)return Ge!==0?!0:Wt?E(Ge,Qe):!0;if(Wt){if(h(Ge)!=="object")return typeof Ge=="number"&&M(Ge)&&M(Qe);if(h(Qe)!=="object"||Ge===null||Qe===null||Object.getPrototypeOf(Ge)!==Object.getPrototypeOf(Qe))return!1}else{if(Ge===null||h(Ge)!=="object")return Qe===null||h(Qe)!=="object"?Ge==Qe:!1;if(Qe===null||h(Qe)!=="object")return!1}var Ct=B(Ge),Kt=B(Qe);if(Ct!==Kt)return!1;if(Array.isArray(Ge)){if(Ge.length!==Qe.length)return!1;var Me=T(Ge),te=T(Qe);return Me.length!==te.length?!1:qe(Ge,Qe,Wt,Et,O,Me)}if(Ct==="[object Object]"&&(!re(Ge)&&re(Qe)||!V(Ge)&&V(Qe)))return!1;if(Z(Ge)){if(!Z(Qe)||Date.prototype.getTime.call(Ge)!==Date.prototype.getTime.call(Qe))return!1}else if(fe(Ge)){if(!fe(Qe)||!X(Ge,Qe))return!1}else if(le(Ge)||Ge instanceof Error){if(Ge.message!==Qe.message||Ge.name!==Qe.name)return!1}else if(ee(Ge)){if(!Wt&&(c(Ge)||m(Ge))){if(!U(Ge,Qe))return!1}else if(!z(Ge,Qe))return!1;var _e=T(Ge),je=T(Qe);return _e.length!==je.length?!1:qe(Ge,Qe,Wt,Et,D,_e)}else{if(V(Ge))return!V(Qe)||Ge.size!==Qe.size?!1:qe(Ge,Qe,Wt,Et,Q);if(re(Ge))return!re(Qe)||Ge.size!==Qe.size?!1:qe(Ge,Qe,Wt,Et,J);if(N(Ge)){if(!ie(Ge,Qe))return!1}else if(he(Ge)&&!de(Ge,Qe))return!1}return qe(Ge,Qe,Wt,Et,D)}function pe(Ge,Qe){return Qe.filter(function(Wt){return j(Ge,Wt)})}function qe(Ge,Qe,Wt,Et,Ct,Kt){if(arguments.length===5){Kt=Object.keys(Ge);var Me=Object.keys(Qe);if(Kt.length!==Me.length)return!1}for(var te=0;te<Kt.length;te++)if(!I(Qe,Kt[te]))return!1;if(Wt&&arguments.length===5){var _e=C(Ge);if(_e.length!==0){var je=0;for(te=0;te<_e.length;te++){var We=_e[te];if(j(Ge,We)){if(!j(Qe,We))return!1;Kt.push(We),je++}else if(j(Qe,We))return!1}var et=C(Qe);if(_e.length!==et.length&&pe(Qe,et).length!==je)return!1}else{var Ye=C(Qe);if(Ye.length!==0&&pe(Qe,Ye).length!==0)return!1}}if(Kt.length===0&&(Ct===D||Ct===O&&Ge.length===0||Ge.size===0))return!0;if(Et===void 0)Et={val1:new Map,val2:new Map,position:0};else{var De=Et.val1.get(Ge);if(De!==void 0){var Ht=Et.val2.get(Qe);if(Ht!==void 0)return De===Ht}Et.position++}Et.val1.set(Ge,Et.position),Et.val2.set(Qe,Et.position);var Mt=at(Ge,Qe,Wt,Kt,Et,Ct);return Et.val1.delete(Ge),Et.val2.delete(Qe),Mt}function mt(Ge,Qe,Wt,Et){for(var Ct=w(Ge),Kt=0;Kt<Ct.length;Kt++){var Me=Ct[Kt];if(me(Qe,Me,Wt,Et))return Ge.delete(Me),!0}return!1}function st(Ge){switch(h(Ge)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":Ge=+Ge;case"number":if(M(Ge))return!1}return!0}function dt(Ge,Qe,Wt){var Et=st(Wt);return Et??(Qe.has(Et)&&!Ge.has(Et))}function Tt(Ge,Qe,Wt,Et,Ct){var Kt=st(Wt);if(Kt!=null)return Kt;var Me=Qe.get(Kt);return Me===void 0&&!Qe.has(Kt)||!me(Et,Me,!1,Ct)?!1:!Ge.has(Kt)&&me(Et,Me,!1,Ct)}function lt(Ge,Qe,Wt,Et){for(var Ct=null,Kt=w(Ge),Me=0;Me<Kt.length;Me++){var te=Kt[Me];if(h(te)==="object"&&te!==null)Ct===null&&(Ct=new Set),Ct.add(te);else if(!Qe.has(te)){if(Wt||!dt(Ge,Qe,te))return!1;Ct===null&&(Ct=new Set),Ct.add(te)}}if(Ct!==null){for(var _e=w(Qe),je=0;je<_e.length;je++){var We=_e[je];if(h(We)==="object"&&We!==null){if(!mt(Ct,We,Wt,Et))return!1}else if(!Wt&&!Ge.has(We)&&!mt(Ct,We,Wt,Et))return!1}return Ct.size===0}return!0}function Je(Ge,Qe,Wt,Et,Ct,Kt){for(var Me=w(Ge),te=0;te<Me.length;te++){var _e=Me[te];if(me(Wt,_e,Ct,Kt)&&me(Et,Qe.get(_e),Ct,Kt))return Ge.delete(_e),!0}return!1}function ht(Ge,Qe,Wt,Et){for(var Ct=null,Kt=A(Ge),Me=0;Me<Kt.length;Me++){var te=n(Kt[Me],2),_e=te[0],je=te[1];if(h(_e)==="object"&&_e!==null)Ct===null&&(Ct=new Set),Ct.add(_e);else{var We=Qe.get(_e);if(We===void 0&&!Qe.has(_e)||!me(je,We,Wt,Et)){if(Wt||!Tt(Ge,Qe,_e,je,Et))return!1;Ct===null&&(Ct=new Set),Ct.add(_e)}}}if(Ct!==null){for(var et=A(Qe),Ye=0;Ye<et.length;Ye++){var De=n(et[Ye],2),Ht=De[0],Mt=De[1];if(h(Ht)==="object"&&Ht!==null){if(!Je(Ct,Ge,Ht,Mt,Wt,Et))return!1}else if(!Wt&&(!Ge.has(Ht)||!me(Ge.get(Ht),Mt,!1,Et))&&!Je(Ct,Ge,Ht,Mt,!1,Et))return!1}return Ct.size===0}return!0}function at(Ge,Qe,Wt,Et,Ct,Kt){var Me=0;if(Kt===Q){if(!lt(Ge,Qe,Wt,Ct))return!1}else if(Kt===J){if(!ht(Ge,Qe,Wt,Ct))return!1}else if(Kt===O)for(;Me<Ge.length;Me++)if(I(Ge,Me)){if(!I(Qe,Me)||!me(Ge[Me],Qe[Me],Wt,Ct))return!1}else{if(I(Qe,Me))return!1;for(var te=Object.keys(Ge);Me<te.length;Me++){var _e=te[Me];if(!I(Qe,_e)||!me(Ge[_e],Qe[_e],Wt,Ct))return!1}return te.length===Object.keys(Qe).length}for(Me=0;Me<Et.length;Me++){var je=Et[Me];if(!me(Ge[je],Qe[je],Wt,Ct))return!1}return!0}function bt(Ge,Qe){return me(Ge,Qe,k)}function jt(Ge,Qe){return me(Ge,Qe,d)}return comparisons={isDeepEqual:bt,isDeepStrictEqual:jt},comparisons}var hasRequiredAssert$1;function requireAssert$1(){if(hasRequiredAssert$1)return assert.exports;hasRequiredAssert$1=1;function n(Q){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},n(Q)}function e(Q,J,X){return Object.defineProperty(Q,"prototype",{writable:!1}),Q}function o(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")}var l=requireErrors$2(),t=l.codes,u=t.ERR_AMBIGUOUS_ARGUMENT,h=t.ERR_INVALID_ARG_TYPE,v=t.ERR_INVALID_ARG_VALUE,w=t.ERR_INVALID_RETURN_VALUE,A=t.ERR_MISSING_ARGS,E=requireAssertion_error(),C=util$6,M=C.inspect,P=util$6.types,I=P.isPromise,j=P.isRegExp,B=requirePolyfill$2()(),F=requirePolyfill$1()(),N=callBound$2("RegExp.prototype.test"),ee,Z;function re(){var Q=requireComparisons();ee=Q.isDeepEqual,Z=Q.isDeepStrictEqual}var fe=!1,V=assert.exports=p,le={};function he(Q){throw Q.message instanceof Error?Q.message:new E(Q)}function ye(Q,J,X,U,z){var ie=arguments.length,de;if(ie===0)de="Failed";else if(ie===1)X=Q,Q=void 0;else{if(fe===!1){fe=!0;var me=process$1.emitWarning?process$1.emitWarning:console.warn.bind(console);me("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}ie===2&&(U="!=")}if(X instanceof Error)throw X;var pe={actual:Q,expected:J,operator:U===void 0?"fail":U,stackStartFn:z||ye};X!==void 0&&(pe.message=X);var qe=new E(pe);throw de&&(qe.message=de,qe.generatedMessage=!0),qe}V.fail=ye,V.AssertionError=E;function L(Q,J,X,U){if(!X){var z=!1;if(J===0)z=!0,U="No value argument passed to `assert.ok()`";else if(U instanceof Error)throw U;var ie=new E({actual:X,expected:!0,message:U,operator:"==",stackStartFn:Q});throw ie.generatedMessage=z,ie}}function p(){for(var Q=arguments.length,J=new Array(Q),X=0;X<Q;X++)J[X]=arguments[X];L.apply(void 0,[p,J.length].concat(J))}V.ok=p,V.equal=function Q(J,X,U){if(arguments.length<2)throw new A("actual","expected");J!=X&&he({actual:J,expected:X,message:U,operator:"==",stackStartFn:Q})},V.notEqual=function Q(J,X,U){if(arguments.length<2)throw new A("actual","expected");J==X&&he({actual:J,expected:X,message:U,operator:"!=",stackStartFn:Q})},V.deepEqual=function Q(J,X,U){if(arguments.length<2)throw new A("actual","expected");ee===void 0&&re(),ee(J,X)||he({actual:J,expected:X,message:U,operator:"deepEqual",stackStartFn:Q})},V.notDeepEqual=function Q(J,X,U){if(arguments.length<2)throw new A("actual","expected");ee===void 0&&re(),ee(J,X)&&he({actual:J,expected:X,message:U,operator:"notDeepEqual",stackStartFn:Q})},V.deepStrictEqual=function Q(J,X,U){if(arguments.length<2)throw new A("actual","expected");ee===void 0&&re(),Z(J,X)||he({actual:J,expected:X,message:U,operator:"deepStrictEqual",stackStartFn:Q})},V.notDeepStrictEqual=y;function y(Q,J,X){if(arguments.length<2)throw new A("actual","expected");ee===void 0&&re(),Z(Q,J)&&he({actual:Q,expected:J,message:X,operator:"notDeepStrictEqual",stackStartFn:y})}V.strictEqual=function Q(J,X,U){if(arguments.length<2)throw new A("actual","expected");F(J,X)||he({actual:J,expected:X,message:U,operator:"strictEqual",stackStartFn:Q})},V.notStrictEqual=function Q(J,X,U){if(arguments.length<2)throw new A("actual","expected");F(J,X)&&he({actual:J,expected:X,message:U,operator:"notStrictEqual",stackStartFn:Q})};var S=e(function Q(J,X,U){var z=this;o(this,Q),X.forEach(function(ie){ie in J&&(U!==void 0&&typeof U[ie]=="string"&&j(J[ie])&&N(J[ie],U[ie])?z[ie]=U[ie]:z[ie]=J[ie])})});function c(Q,J,X,U,z,ie){if(!(X in Q)||!Z(Q[X],J[X])){if(!U){var de=new S(Q,z),me=new S(J,z,Q),pe=new E({actual:de,expected:me,operator:"deepStrictEqual",stackStartFn:ie});throw pe.actual=Q,pe.expected=J,pe.operator=ie.name,pe}he({actual:Q,expected:J,message:U,operator:ie.name,stackStartFn:ie})}}function m(Q,J,X,U){if(typeof J!="function"){if(j(J))return N(J,Q);if(arguments.length===2)throw new h("expected",["Function","RegExp"],J);if(n(Q)!=="object"||Q===null){var z=new E({actual:Q,expected:J,message:X,operator:"deepStrictEqual",stackStartFn:U});throw z.operator=U.name,z}var ie=Object.keys(J);if(J instanceof Error)ie.push("name","message");else if(ie.length===0)throw new v("error",J,"may not be an empty object");return ee===void 0&&re(),ie.forEach(function(de){typeof Q[de]=="string"&&j(J[de])&&N(J[de],Q[de])||c(Q,J,de,X,ie,U)}),!0}return J.prototype!==void 0&&Q instanceof J?!0:Error.isPrototypeOf(J)?!1:J.call({},Q)===!0}function x(Q){if(typeof Q!="function")throw new h("fn","Function",Q);try{Q()}catch(J){return J}return le}function T(Q){return I(Q)||Q!==null&&n(Q)==="object"&&typeof Q.then=="function"&&typeof Q.catch=="function"}function b(Q){return Promise.resolve().then(function(){var J;if(typeof Q=="function"){if(J=Q(),!T(J))throw new w("instance of Promise","promiseFn",J)}else if(T(Q))J=Q;else throw new h("promiseFn",["Function","Promise"],Q);return Promise.resolve().then(function(){return J}).then(function(){return le}).catch(function(X){return X})})}function d(Q,J,X,U){if(typeof X=="string"){if(arguments.length===4)throw new h("error",["Object","Error","Function","RegExp"],X);if(n(J)==="object"&&J!==null){if(J.message===X)throw new u("error/message",'The error message "'.concat(J.message,'" is identical to the message.'))}else if(J===X)throw new u("error/message",'The error "'.concat(J,'" is identical to the message.'));U=X,X=void 0}else if(X!=null&&n(X)!=="object"&&typeof X!="function")throw new h("error",["Object","Error","Function","RegExp"],X);if(J===le){var z="";X&&X.name&&(z+=" (".concat(X.name,")")),z+=U?": ".concat(U):".";var ie=Q.name==="rejects"?"rejection":"exception";he({actual:void 0,expected:X,operator:Q.name,message:"Missing expected ".concat(ie).concat(z),stackStartFn:Q})}if(X&&!m(J,X,U,Q))throw J}function k(Q,J,X,U){if(J!==le){if(typeof X=="string"&&(U=X,X=void 0),!X||m(J,X)){var z=U?": ".concat(U):".",ie=Q.name==="doesNotReject"?"rejection":"exception";he({actual:J,expected:X,operator:Q.name,message:"Got unwanted ".concat(ie).concat(z,`
`)+'Actual message: "'.concat(J&&J.message,'"'),stackStartFn:Q})}throw J}}V.throws=function Q(J){for(var X=arguments.length,U=new Array(X>1?X-1:0),z=1;z<X;z++)U[z-1]=arguments[z];d.apply(void 0,[Q,x(J)].concat(U))},V.rejects=function Q(J){for(var X=arguments.length,U=new Array(X>1?X-1:0),z=1;z<X;z++)U[z-1]=arguments[z];return b(J).then(function(ie){return d.apply(void 0,[Q,ie].concat(U))})},V.doesNotThrow=function Q(J){for(var X=arguments.length,U=new Array(X>1?X-1:0),z=1;z<X;z++)U[z-1]=arguments[z];k.apply(void 0,[Q,x(J)].concat(U))},V.doesNotReject=function Q(J){for(var X=arguments.length,U=new Array(X>1?X-1:0),z=1;z<X;z++)U[z-1]=arguments[z];return b(J).then(function(ie){return k.apply(void 0,[Q,ie].concat(U))})},V.ifError=function Q(J){if(J!=null){var X="ifError got unwanted exception: ";n(J)==="object"&&typeof J.message=="string"?J.message.length===0&&J.constructor?X+=J.constructor.name:X+=J.message:X+=M(J);var U=new E({actual:J,expected:null,operator:"ifError",message:X,stackStartFn:Q}),z=J.stack;if(typeof z=="string"){var ie=z.split(`
`);ie.shift();for(var de=U.stack.split(`
`),me=0;me<ie.length;me++){var pe=de.indexOf(ie[me]);if(pe!==-1){de=de.slice(0,pe);break}}U.stack="".concat(de.join(`
`),`
`).concat(ie.join(`
`))}throw U}};function D(Q,J,X,U,z){if(!j(J))throw new h("regexp","RegExp",J);var ie=z==="match";if(typeof Q!="string"||N(J,Q)!==ie){if(X instanceof Error)throw X;var de=!X;X=X||(typeof Q!="string"?'The "string" argument must be of type string. Received type '+"".concat(n(Q)," (").concat(M(Q),")"):(ie?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(M(J),`. Input:

`).concat(M(Q),`
`));var me=new E({actual:Q,expected:J,message:X,operator:z,stackStartFn:U});throw me.generatedMessage=de,me}}V.match=function Q(J,X,U){D(J,X,U,Q,"match")},V.doesNotMatch=function Q(J,X,U){D(J,X,U,Q,"doesNotMatch")};function O(){for(var Q=arguments.length,J=new Array(Q),X=0;X<Q;X++)J[X]=arguments[X];L.apply(void 0,[O,J.length].concat(J))}return V.strict=B(O,V,{equal:V.strictEqual,deepEqual:V.deepStrictEqual,notEqual:V.notStrictEqual,notDeepEqual:V.notDeepStrictEqual}),V.strict.strict=V.strict,assert.exports}var zstream,hasRequiredZstream;function requireZstream(){if(hasRequiredZstream)return zstream;hasRequiredZstream=1;function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return zstream=n,zstream}var deflate={},common={},hasRequiredCommon;function requireCommon(){return hasRequiredCommon||(hasRequiredCommon=1,function(n){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(u,h){return Object.prototype.hasOwnProperty.call(u,h)}n.assign=function(u){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var v=h.shift();if(v){if(typeof v!="object")throw new TypeError(v+"must be non-object");for(var w in v)o(v,w)&&(u[w]=v[w])}}return u},n.shrinkBuf=function(u,h){return u.length===h?u:u.subarray?u.subarray(0,h):(u.length=h,u)};var l={arraySet:function(u,h,v,w,A){if(h.subarray&&u.subarray){u.set(h.subarray(v,v+w),A);return}for(var E=0;E<w;E++)u[A+E]=h[v+E]},flattenChunks:function(u){var h,v,w,A,E,C;for(w=0,h=0,v=u.length;h<v;h++)w+=u[h].length;for(C=new Uint8Array(w),A=0,h=0,v=u.length;h<v;h++)E=u[h],C.set(E,A),A+=E.length;return C}},t={arraySet:function(u,h,v,w,A){for(var E=0;E<w;E++)u[A+E]=h[v+E]},flattenChunks:function(u){return[].concat.apply([],u)}};n.setTyped=function(u){u?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,l)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,t))},n.setTyped(e)}(common)),common}var trees={},hasRequiredTrees;function requireTrees(){if(hasRequiredTrees)return trees;hasRequiredTrees=1;var n=requireCommon(),e=4,o=0,l=1,t=2;function u(te){for(var _e=te.length;--_e>=0;)te[_e]=0}var h=0,v=1,w=2,A=3,E=258,C=29,M=256,P=M+1+C,I=30,j=19,B=2*P+1,F=15,N=16,ee=7,Z=256,re=16,fe=17,V=18,le=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],he=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ye=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=512,y=new Array((P+2)*2);u(y);var S=new Array(I*2);u(S);var c=new Array(p);u(c);var m=new Array(E-A+1);u(m);var x=new Array(C);u(x);var T=new Array(I);u(T);function b(te,_e,je,We,et){this.static_tree=te,this.extra_bits=_e,this.extra_base=je,this.elems=We,this.max_length=et,this.has_stree=te&&te.length}var d,k,D;function O(te,_e){this.dyn_tree=te,this.max_code=0,this.stat_desc=_e}function Q(te){return te<256?c[te]:c[256+(te>>>7)]}function J(te,_e){te.pending_buf[te.pending++]=_e&255,te.pending_buf[te.pending++]=_e>>>8&255}function X(te,_e,je){te.bi_valid>N-je?(te.bi_buf|=_e<<te.bi_valid&65535,J(te,te.bi_buf),te.bi_buf=_e>>N-te.bi_valid,te.bi_valid+=je-N):(te.bi_buf|=_e<<te.bi_valid&65535,te.bi_valid+=je)}function U(te,_e,je){X(te,je[_e*2],je[_e*2+1])}function z(te,_e){var je=0;do je|=te&1,te>>>=1,je<<=1;while(--_e>0);return je>>>1}function ie(te){te.bi_valid===16?(J(te,te.bi_buf),te.bi_buf=0,te.bi_valid=0):te.bi_valid>=8&&(te.pending_buf[te.pending++]=te.bi_buf&255,te.bi_buf>>=8,te.bi_valid-=8)}function de(te,_e){var je=_e.dyn_tree,We=_e.max_code,et=_e.stat_desc.static_tree,Ye=_e.stat_desc.has_stree,De=_e.stat_desc.extra_bits,Ht=_e.stat_desc.extra_base,Mt=_e.stat_desc.max_length,ge,Dt,yt,Ne,_t,pt,Bt=0;for(Ne=0;Ne<=F;Ne++)te.bl_count[Ne]=0;for(je[te.heap[te.heap_max]*2+1]=0,ge=te.heap_max+1;ge<B;ge++)Dt=te.heap[ge],Ne=je[je[Dt*2+1]*2+1]+1,Ne>Mt&&(Ne=Mt,Bt++),je[Dt*2+1]=Ne,!(Dt>We)&&(te.bl_count[Ne]++,_t=0,Dt>=Ht&&(_t=De[Dt-Ht]),pt=je[Dt*2],te.opt_len+=pt*(Ne+_t),Ye&&(te.static_len+=pt*(et[Dt*2+1]+_t)));if(Bt!==0){do{for(Ne=Mt-1;te.bl_count[Ne]===0;)Ne--;te.bl_count[Ne]--,te.bl_count[Ne+1]+=2,te.bl_count[Mt]--,Bt-=2}while(Bt>0);for(Ne=Mt;Ne!==0;Ne--)for(Dt=te.bl_count[Ne];Dt!==0;)yt=te.heap[--ge],!(yt>We)&&(je[yt*2+1]!==Ne&&(te.opt_len+=(Ne-je[yt*2+1])*je[yt*2],je[yt*2+1]=Ne),Dt--)}}function me(te,_e,je){var We=new Array(F+1),et=0,Ye,De;for(Ye=1;Ye<=F;Ye++)We[Ye]=et=et+je[Ye-1]<<1;for(De=0;De<=_e;De++){var Ht=te[De*2+1];Ht!==0&&(te[De*2]=z(We[Ht]++,Ht))}}function pe(){var te,_e,je,We,et,Ye=new Array(F+1);for(je=0,We=0;We<C-1;We++)for(x[We]=je,te=0;te<1<<le[We];te++)m[je++]=We;for(m[je-1]=We,et=0,We=0;We<16;We++)for(T[We]=et,te=0;te<1<<he[We];te++)c[et++]=We;for(et>>=7;We<I;We++)for(T[We]=et<<7,te=0;te<1<<he[We]-7;te++)c[256+et++]=We;for(_e=0;_e<=F;_e++)Ye[_e]=0;for(te=0;te<=143;)y[te*2+1]=8,te++,Ye[8]++;for(;te<=255;)y[te*2+1]=9,te++,Ye[9]++;for(;te<=279;)y[te*2+1]=7,te++,Ye[7]++;for(;te<=287;)y[te*2+1]=8,te++,Ye[8]++;for(me(y,P+1,Ye),te=0;te<I;te++)S[te*2+1]=5,S[te*2]=z(te,5);d=new b(y,le,M+1,P,F),k=new b(S,he,0,I,F),D=new b(new Array(0),ye,0,j,ee)}function qe(te){var _e;for(_e=0;_e<P;_e++)te.dyn_ltree[_e*2]=0;for(_e=0;_e<I;_e++)te.dyn_dtree[_e*2]=0;for(_e=0;_e<j;_e++)te.bl_tree[_e*2]=0;te.dyn_ltree[Z*2]=1,te.opt_len=te.static_len=0,te.last_lit=te.matches=0}function mt(te){te.bi_valid>8?J(te,te.bi_buf):te.bi_valid>0&&(te.pending_buf[te.pending++]=te.bi_buf),te.bi_buf=0,te.bi_valid=0}function st(te,_e,je,We){mt(te),J(te,je),J(te,~je),n.arraySet(te.pending_buf,te.window,_e,je,te.pending),te.pending+=je}function dt(te,_e,je,We){var et=_e*2,Ye=je*2;return te[et]<te[Ye]||te[et]===te[Ye]&&We[_e]<=We[je]}function Tt(te,_e,je){for(var We=te.heap[je],et=je<<1;et<=te.heap_len&&(et<te.heap_len&&dt(_e,te.heap[et+1],te.heap[et],te.depth)&&et++,!dt(_e,We,te.heap[et],te.depth));)te.heap[je]=te.heap[et],je=et,et<<=1;te.heap[je]=We}function lt(te,_e,je){var We,et,Ye=0,De,Ht;if(te.last_lit!==0)do We=te.pending_buf[te.d_buf+Ye*2]<<8|te.pending_buf[te.d_buf+Ye*2+1],et=te.pending_buf[te.l_buf+Ye],Ye++,We===0?U(te,et,_e):(De=m[et],U(te,De+M+1,_e),Ht=le[De],Ht!==0&&(et-=x[De],X(te,et,Ht)),We--,De=Q(We),U(te,De,je),Ht=he[De],Ht!==0&&(We-=T[De],X(te,We,Ht)));while(Ye<te.last_lit);U(te,Z,_e)}function Je(te,_e){var je=_e.dyn_tree,We=_e.stat_desc.static_tree,et=_e.stat_desc.has_stree,Ye=_e.stat_desc.elems,De,Ht,Mt=-1,ge;for(te.heap_len=0,te.heap_max=B,De=0;De<Ye;De++)je[De*2]!==0?(te.heap[++te.heap_len]=Mt=De,te.depth[De]=0):je[De*2+1]=0;for(;te.heap_len<2;)ge=te.heap[++te.heap_len]=Mt<2?++Mt:0,je[ge*2]=1,te.depth[ge]=0,te.opt_len--,et&&(te.static_len-=We[ge*2+1]);for(_e.max_code=Mt,De=te.heap_len>>1;De>=1;De--)Tt(te,je,De);ge=Ye;do De=te.heap[1],te.heap[1]=te.heap[te.heap_len--],Tt(te,je,1),Ht=te.heap[1],te.heap[--te.heap_max]=De,te.heap[--te.heap_max]=Ht,je[ge*2]=je[De*2]+je[Ht*2],te.depth[ge]=(te.depth[De]>=te.depth[Ht]?te.depth[De]:te.depth[Ht])+1,je[De*2+1]=je[Ht*2+1]=ge,te.heap[1]=ge++,Tt(te,je,1);while(te.heap_len>=2);te.heap[--te.heap_max]=te.heap[1],de(te,_e),me(je,Mt,te.bl_count)}function ht(te,_e,je){var We,et=-1,Ye,De=_e[0*2+1],Ht=0,Mt=7,ge=4;for(De===0&&(Mt=138,ge=3),_e[(je+1)*2+1]=65535,We=0;We<=je;We++)Ye=De,De=_e[(We+1)*2+1],!(++Ht<Mt&&Ye===De)&&(Ht<ge?te.bl_tree[Ye*2]+=Ht:Ye!==0?(Ye!==et&&te.bl_tree[Ye*2]++,te.bl_tree[re*2]++):Ht<=10?te.bl_tree[fe*2]++:te.bl_tree[V*2]++,Ht=0,et=Ye,De===0?(Mt=138,ge=3):Ye===De?(Mt=6,ge=3):(Mt=7,ge=4))}function at(te,_e,je){var We,et=-1,Ye,De=_e[0*2+1],Ht=0,Mt=7,ge=4;for(De===0&&(Mt=138,ge=3),We=0;We<=je;We++)if(Ye=De,De=_e[(We+1)*2+1],!(++Ht<Mt&&Ye===De)){if(Ht<ge)do U(te,Ye,te.bl_tree);while(--Ht!==0);else Ye!==0?(Ye!==et&&(U(te,Ye,te.bl_tree),Ht--),U(te,re,te.bl_tree),X(te,Ht-3,2)):Ht<=10?(U(te,fe,te.bl_tree),X(te,Ht-3,3)):(U(te,V,te.bl_tree),X(te,Ht-11,7));Ht=0,et=Ye,De===0?(Mt=138,ge=3):Ye===De?(Mt=6,ge=3):(Mt=7,ge=4)}}function bt(te){var _e;for(ht(te,te.dyn_ltree,te.l_desc.max_code),ht(te,te.dyn_dtree,te.d_desc.max_code),Je(te,te.bl_desc),_e=j-1;_e>=3&&te.bl_tree[L[_e]*2+1]===0;_e--);return te.opt_len+=3*(_e+1)+5+5+4,_e}function jt(te,_e,je,We){var et;for(X(te,_e-257,5),X(te,je-1,5),X(te,We-4,4),et=0;et<We;et++)X(te,te.bl_tree[L[et]*2+1],3);at(te,te.dyn_ltree,_e-1),at(te,te.dyn_dtree,je-1)}function Ge(te){var _e=4093624447,je;for(je=0;je<=31;je++,_e>>>=1)if(_e&1&&te.dyn_ltree[je*2]!==0)return o;if(te.dyn_ltree[9*2]!==0||te.dyn_ltree[10*2]!==0||te.dyn_ltree[13*2]!==0)return l;for(je=32;je<M;je++)if(te.dyn_ltree[je*2]!==0)return l;return o}var Qe=!1;function Wt(te){Qe||(pe(),Qe=!0),te.l_desc=new O(te.dyn_ltree,d),te.d_desc=new O(te.dyn_dtree,k),te.bl_desc=new O(te.bl_tree,D),te.bi_buf=0,te.bi_valid=0,qe(te)}function Et(te,_e,je,We){X(te,(h<<1)+(We?1:0),3),st(te,_e,je)}function Ct(te){X(te,v<<1,3),U(te,Z,y),ie(te)}function Kt(te,_e,je,We){var et,Ye,De=0;te.level>0?(te.strm.data_type===t&&(te.strm.data_type=Ge(te)),Je(te,te.l_desc),Je(te,te.d_desc),De=bt(te),et=te.opt_len+3+7>>>3,Ye=te.static_len+3+7>>>3,Ye<=et&&(et=Ye)):et=Ye=je+5,je+4<=et&&_e!==-1?Et(te,_e,je,We):te.strategy===e||Ye===et?(X(te,(v<<1)+(We?1:0),3),lt(te,y,S)):(X(te,(w<<1)+(We?1:0),3),jt(te,te.l_desc.max_code+1,te.d_desc.max_code+1,De+1),lt(te,te.dyn_ltree,te.dyn_dtree)),qe(te),We&&mt(te)}function Me(te,_e,je){return te.pending_buf[te.d_buf+te.last_lit*2]=_e>>>8&255,te.pending_buf[te.d_buf+te.last_lit*2+1]=_e&255,te.pending_buf[te.l_buf+te.last_lit]=je&255,te.last_lit++,_e===0?te.dyn_ltree[je*2]++:(te.matches++,_e--,te.dyn_ltree[(m[je]+M+1)*2]++,te.dyn_dtree[Q(_e)*2]++),te.last_lit===te.lit_bufsize-1}return trees._tr_init=Wt,trees._tr_stored_block=Et,trees._tr_flush_block=Kt,trees._tr_tally=Me,trees._tr_align=Ct,trees}var adler32_1,hasRequiredAdler32;function requireAdler32(){if(hasRequiredAdler32)return adler32_1;hasRequiredAdler32=1;function n(e,o,l,t){for(var u=e&65535|0,h=e>>>16&65535|0,v=0;l!==0;){v=l>2e3?2e3:l,l-=v;do u=u+o[t++]|0,h=h+u|0;while(--v);u%=65521,h%=65521}return u|h<<16|0}return adler32_1=n,adler32_1}var crc32_1,hasRequiredCrc32;function requireCrc32(){if(hasRequiredCrc32)return crc32_1;hasRequiredCrc32=1;function n(){for(var l,t=[],u=0;u<256;u++){l=u;for(var h=0;h<8;h++)l=l&1?3988292384^l>>>1:l>>>1;t[u]=l}return t}var e=n();function o(l,t,u,h){var v=e,w=h+u;l^=-1;for(var A=h;A<w;A++)l=l>>>8^v[(l^t[A])&255];return l^-1}return crc32_1=o,crc32_1}var messages,hasRequiredMessages;function requireMessages(){return hasRequiredMessages||(hasRequiredMessages=1,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),messages}var hasRequiredDeflate;function requireDeflate(){if(hasRequiredDeflate)return deflate;hasRequiredDeflate=1;var n=requireCommon(),e=requireTrees(),o=requireAdler32(),l=requireCrc32(),t=requireMessages(),u=0,h=1,v=3,w=4,A=5,E=0,C=1,M=-2,P=-3,I=-5,j=-1,B=1,F=2,N=3,ee=4,Z=0,re=2,fe=8,V=9,le=15,he=8,ye=29,L=256,p=L+1+ye,y=30,S=19,c=2*p+1,m=15,x=3,T=258,b=T+x+1,d=32,k=42,D=69,O=73,Q=91,J=103,X=113,U=666,z=1,ie=2,de=3,me=4,pe=3;function qe(ge,Dt){return ge.msg=t[Dt],Dt}function mt(ge){return(ge<<1)-(ge>4?9:0)}function st(ge){for(var Dt=ge.length;--Dt>=0;)ge[Dt]=0}function dt(ge){var Dt=ge.state,yt=Dt.pending;yt>ge.avail_out&&(yt=ge.avail_out),yt!==0&&(n.arraySet(ge.output,Dt.pending_buf,Dt.pending_out,yt,ge.next_out),ge.next_out+=yt,Dt.pending_out+=yt,ge.total_out+=yt,ge.avail_out-=yt,Dt.pending-=yt,Dt.pending===0&&(Dt.pending_out=0))}function Tt(ge,Dt){e._tr_flush_block(ge,ge.block_start>=0?ge.block_start:-1,ge.strstart-ge.block_start,Dt),ge.block_start=ge.strstart,dt(ge.strm)}function lt(ge,Dt){ge.pending_buf[ge.pending++]=Dt}function Je(ge,Dt){ge.pending_buf[ge.pending++]=Dt>>>8&255,ge.pending_buf[ge.pending++]=Dt&255}function ht(ge,Dt,yt,Ne){var _t=ge.avail_in;return _t>Ne&&(_t=Ne),_t===0?0:(ge.avail_in-=_t,n.arraySet(Dt,ge.input,ge.next_in,_t,yt),ge.state.wrap===1?ge.adler=o(ge.adler,Dt,_t,yt):ge.state.wrap===2&&(ge.adler=l(ge.adler,Dt,_t,yt)),ge.next_in+=_t,ge.total_in+=_t,_t)}function at(ge,Dt){var yt=ge.max_chain_length,Ne=ge.strstart,_t,pt,Bt=ge.prev_length,ur=ge.nice_match,kt=ge.strstart>ge.w_size-b?ge.strstart-(ge.w_size-b):0,Ut=ge.window,Wr=ge.w_mask,zt=ge.prev,Qt=ge.strstart+T,$e=Ut[Ne+Bt-1],be=Ut[Ne+Bt];ge.prev_length>=ge.good_match&&(yt>>=2),ur>ge.lookahead&&(ur=ge.lookahead);do if(_t=Dt,!(Ut[_t+Bt]!==be||Ut[_t+Bt-1]!==$e||Ut[_t]!==Ut[Ne]||Ut[++_t]!==Ut[Ne+1])){Ne+=2,_t++;do;while(Ut[++Ne]===Ut[++_t]&&Ut[++Ne]===Ut[++_t]&&Ut[++Ne]===Ut[++_t]&&Ut[++Ne]===Ut[++_t]&&Ut[++Ne]===Ut[++_t]&&Ut[++Ne]===Ut[++_t]&&Ut[++Ne]===Ut[++_t]&&Ut[++Ne]===Ut[++_t]&&Ne<Qt);if(pt=T-(Qt-Ne),Ne=Qt-T,pt>Bt){if(ge.match_start=Dt,Bt=pt,pt>=ur)break;$e=Ut[Ne+Bt-1],be=Ut[Ne+Bt]}}while((Dt=zt[Dt&Wr])>kt&&--yt!==0);return Bt<=ge.lookahead?Bt:ge.lookahead}function bt(ge){var Dt=ge.w_size,yt,Ne,_t,pt,Bt;do{if(pt=ge.window_size-ge.lookahead-ge.strstart,ge.strstart>=Dt+(Dt-b)){n.arraySet(ge.window,ge.window,Dt,Dt,0),ge.match_start-=Dt,ge.strstart-=Dt,ge.block_start-=Dt,Ne=ge.hash_size,yt=Ne;do _t=ge.head[--yt],ge.head[yt]=_t>=Dt?_t-Dt:0;while(--Ne);Ne=Dt,yt=Ne;do _t=ge.prev[--yt],ge.prev[yt]=_t>=Dt?_t-Dt:0;while(--Ne);pt+=Dt}if(ge.strm.avail_in===0)break;if(Ne=ht(ge.strm,ge.window,ge.strstart+ge.lookahead,pt),ge.lookahead+=Ne,ge.lookahead+ge.insert>=x)for(Bt=ge.strstart-ge.insert,ge.ins_h=ge.window[Bt],ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[Bt+1])&ge.hash_mask;ge.insert&&(ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[Bt+x-1])&ge.hash_mask,ge.prev[Bt&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=Bt,Bt++,ge.insert--,!(ge.lookahead+ge.insert<x)););}while(ge.lookahead<b&&ge.strm.avail_in!==0)}function jt(ge,Dt){var yt=65535;for(yt>ge.pending_buf_size-5&&(yt=ge.pending_buf_size-5);;){if(ge.lookahead<=1){if(bt(ge),ge.lookahead===0&&Dt===u)return z;if(ge.lookahead===0)break}ge.strstart+=ge.lookahead,ge.lookahead=0;var Ne=ge.block_start+yt;if((ge.strstart===0||ge.strstart>=Ne)&&(ge.lookahead=ge.strstart-Ne,ge.strstart=Ne,Tt(ge,!1),ge.strm.avail_out===0)||ge.strstart-ge.block_start>=ge.w_size-b&&(Tt(ge,!1),ge.strm.avail_out===0))return z}return ge.insert=0,Dt===w?(Tt(ge,!0),ge.strm.avail_out===0?de:me):(ge.strstart>ge.block_start&&(Tt(ge,!1),ge.strm.avail_out===0),z)}function Ge(ge,Dt){for(var yt,Ne;;){if(ge.lookahead<b){if(bt(ge),ge.lookahead<b&&Dt===u)return z;if(ge.lookahead===0)break}if(yt=0,ge.lookahead>=x&&(ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+x-1])&ge.hash_mask,yt=ge.prev[ge.strstart&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=ge.strstart),yt!==0&&ge.strstart-yt<=ge.w_size-b&&(ge.match_length=at(ge,yt)),ge.match_length>=x)if(Ne=e._tr_tally(ge,ge.strstart-ge.match_start,ge.match_length-x),ge.lookahead-=ge.match_length,ge.match_length<=ge.max_lazy_match&&ge.lookahead>=x){ge.match_length--;do ge.strstart++,ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+x-1])&ge.hash_mask,yt=ge.prev[ge.strstart&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=ge.strstart;while(--ge.match_length!==0);ge.strstart++}else ge.strstart+=ge.match_length,ge.match_length=0,ge.ins_h=ge.window[ge.strstart],ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+1])&ge.hash_mask;else Ne=e._tr_tally(ge,0,ge.window[ge.strstart]),ge.lookahead--,ge.strstart++;if(Ne&&(Tt(ge,!1),ge.strm.avail_out===0))return z}return ge.insert=ge.strstart<x-1?ge.strstart:x-1,Dt===w?(Tt(ge,!0),ge.strm.avail_out===0?de:me):ge.last_lit&&(Tt(ge,!1),ge.strm.avail_out===0)?z:ie}function Qe(ge,Dt){for(var yt,Ne,_t;;){if(ge.lookahead<b){if(bt(ge),ge.lookahead<b&&Dt===u)return z;if(ge.lookahead===0)break}if(yt=0,ge.lookahead>=x&&(ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+x-1])&ge.hash_mask,yt=ge.prev[ge.strstart&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=ge.strstart),ge.prev_length=ge.match_length,ge.prev_match=ge.match_start,ge.match_length=x-1,yt!==0&&ge.prev_length<ge.max_lazy_match&&ge.strstart-yt<=ge.w_size-b&&(ge.match_length=at(ge,yt),ge.match_length<=5&&(ge.strategy===B||ge.match_length===x&&ge.strstart-ge.match_start>4096)&&(ge.match_length=x-1)),ge.prev_length>=x&&ge.match_length<=ge.prev_length){_t=ge.strstart+ge.lookahead-x,Ne=e._tr_tally(ge,ge.strstart-1-ge.prev_match,ge.prev_length-x),ge.lookahead-=ge.prev_length-1,ge.prev_length-=2;do++ge.strstart<=_t&&(ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[ge.strstart+x-1])&ge.hash_mask,yt=ge.prev[ge.strstart&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=ge.strstart);while(--ge.prev_length!==0);if(ge.match_available=0,ge.match_length=x-1,ge.strstart++,Ne&&(Tt(ge,!1),ge.strm.avail_out===0))return z}else if(ge.match_available){if(Ne=e._tr_tally(ge,0,ge.window[ge.strstart-1]),Ne&&Tt(ge,!1),ge.strstart++,ge.lookahead--,ge.strm.avail_out===0)return z}else ge.match_available=1,ge.strstart++,ge.lookahead--}return ge.match_available&&(Ne=e._tr_tally(ge,0,ge.window[ge.strstart-1]),ge.match_available=0),ge.insert=ge.strstart<x-1?ge.strstart:x-1,Dt===w?(Tt(ge,!0),ge.strm.avail_out===0?de:me):ge.last_lit&&(Tt(ge,!1),ge.strm.avail_out===0)?z:ie}function Wt(ge,Dt){for(var yt,Ne,_t,pt,Bt=ge.window;;){if(ge.lookahead<=T){if(bt(ge),ge.lookahead<=T&&Dt===u)return z;if(ge.lookahead===0)break}if(ge.match_length=0,ge.lookahead>=x&&ge.strstart>0&&(_t=ge.strstart-1,Ne=Bt[_t],Ne===Bt[++_t]&&Ne===Bt[++_t]&&Ne===Bt[++_t])){pt=ge.strstart+T;do;while(Ne===Bt[++_t]&&Ne===Bt[++_t]&&Ne===Bt[++_t]&&Ne===Bt[++_t]&&Ne===Bt[++_t]&&Ne===Bt[++_t]&&Ne===Bt[++_t]&&Ne===Bt[++_t]&&_t<pt);ge.match_length=T-(pt-_t),ge.match_length>ge.lookahead&&(ge.match_length=ge.lookahead)}if(ge.match_length>=x?(yt=e._tr_tally(ge,1,ge.match_length-x),ge.lookahead-=ge.match_length,ge.strstart+=ge.match_length,ge.match_length=0):(yt=e._tr_tally(ge,0,ge.window[ge.strstart]),ge.lookahead--,ge.strstart++),yt&&(Tt(ge,!1),ge.strm.avail_out===0))return z}return ge.insert=0,Dt===w?(Tt(ge,!0),ge.strm.avail_out===0?de:me):ge.last_lit&&(Tt(ge,!1),ge.strm.avail_out===0)?z:ie}function Et(ge,Dt){for(var yt;;){if(ge.lookahead===0&&(bt(ge),ge.lookahead===0)){if(Dt===u)return z;break}if(ge.match_length=0,yt=e._tr_tally(ge,0,ge.window[ge.strstart]),ge.lookahead--,ge.strstart++,yt&&(Tt(ge,!1),ge.strm.avail_out===0))return z}return ge.insert=0,Dt===w?(Tt(ge,!0),ge.strm.avail_out===0?de:me):ge.last_lit&&(Tt(ge,!1),ge.strm.avail_out===0)?z:ie}function Ct(ge,Dt,yt,Ne,_t){this.good_length=ge,this.max_lazy=Dt,this.nice_length=yt,this.max_chain=Ne,this.func=_t}var Kt;Kt=[new Ct(0,0,0,0,jt),new Ct(4,4,8,4,Ge),new Ct(4,5,16,8,Ge),new Ct(4,6,32,32,Ge),new Ct(4,4,16,16,Qe),new Ct(8,16,32,32,Qe),new Ct(8,16,128,128,Qe),new Ct(8,32,128,256,Qe),new Ct(32,128,258,1024,Qe),new Ct(32,258,258,4096,Qe)];function Me(ge){ge.window_size=2*ge.w_size,st(ge.head),ge.max_lazy_match=Kt[ge.level].max_lazy,ge.good_match=Kt[ge.level].good_length,ge.nice_match=Kt[ge.level].nice_length,ge.max_chain_length=Kt[ge.level].max_chain,ge.strstart=0,ge.block_start=0,ge.lookahead=0,ge.insert=0,ge.match_length=ge.prev_length=x-1,ge.match_available=0,ge.ins_h=0}function te(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=fe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new n.Buf16(c*2),this.dyn_dtree=new n.Buf16((2*y+1)*2),this.bl_tree=new n.Buf16((2*S+1)*2),st(this.dyn_ltree),st(this.dyn_dtree),st(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(m+1),this.heap=new n.Buf16(2*p+1),st(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*p+1),st(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function _e(ge){var Dt;return!ge||!ge.state?qe(ge,M):(ge.total_in=ge.total_out=0,ge.data_type=re,Dt=ge.state,Dt.pending=0,Dt.pending_out=0,Dt.wrap<0&&(Dt.wrap=-Dt.wrap),Dt.status=Dt.wrap?k:X,ge.adler=Dt.wrap===2?0:1,Dt.last_flush=u,e._tr_init(Dt),E)}function je(ge){var Dt=_e(ge);return Dt===E&&Me(ge.state),Dt}function We(ge,Dt){return!ge||!ge.state||ge.state.wrap!==2?M:(ge.state.gzhead=Dt,E)}function et(ge,Dt,yt,Ne,_t,pt){if(!ge)return M;var Bt=1;if(Dt===j&&(Dt=6),Ne<0?(Bt=0,Ne=-Ne):Ne>15&&(Bt=2,Ne-=16),_t<1||_t>V||yt!==fe||Ne<8||Ne>15||Dt<0||Dt>9||pt<0||pt>ee)return qe(ge,M);Ne===8&&(Ne=9);var ur=new te;return ge.state=ur,ur.strm=ge,ur.wrap=Bt,ur.gzhead=null,ur.w_bits=Ne,ur.w_size=1<<ur.w_bits,ur.w_mask=ur.w_size-1,ur.hash_bits=_t+7,ur.hash_size=1<<ur.hash_bits,ur.hash_mask=ur.hash_size-1,ur.hash_shift=~~((ur.hash_bits+x-1)/x),ur.window=new n.Buf8(ur.w_size*2),ur.head=new n.Buf16(ur.hash_size),ur.prev=new n.Buf16(ur.w_size),ur.lit_bufsize=1<<_t+6,ur.pending_buf_size=ur.lit_bufsize*4,ur.pending_buf=new n.Buf8(ur.pending_buf_size),ur.d_buf=1*ur.lit_bufsize,ur.l_buf=3*ur.lit_bufsize,ur.level=Dt,ur.strategy=pt,ur.method=yt,je(ge)}function Ye(ge,Dt){return et(ge,Dt,fe,le,he,Z)}function De(ge,Dt){var yt,Ne,_t,pt;if(!ge||!ge.state||Dt>A||Dt<0)return ge?qe(ge,M):M;if(Ne=ge.state,!ge.output||!ge.input&&ge.avail_in!==0||Ne.status===U&&Dt!==w)return qe(ge,ge.avail_out===0?I:M);if(Ne.strm=ge,yt=Ne.last_flush,Ne.last_flush=Dt,Ne.status===k)if(Ne.wrap===2)ge.adler=0,lt(Ne,31),lt(Ne,139),lt(Ne,8),Ne.gzhead?(lt(Ne,(Ne.gzhead.text?1:0)+(Ne.gzhead.hcrc?2:0)+(Ne.gzhead.extra?4:0)+(Ne.gzhead.name?8:0)+(Ne.gzhead.comment?16:0)),lt(Ne,Ne.gzhead.time&255),lt(Ne,Ne.gzhead.time>>8&255),lt(Ne,Ne.gzhead.time>>16&255),lt(Ne,Ne.gzhead.time>>24&255),lt(Ne,Ne.level===9?2:Ne.strategy>=F||Ne.level<2?4:0),lt(Ne,Ne.gzhead.os&255),Ne.gzhead.extra&&Ne.gzhead.extra.length&&(lt(Ne,Ne.gzhead.extra.length&255),lt(Ne,Ne.gzhead.extra.length>>8&255)),Ne.gzhead.hcrc&&(ge.adler=l(ge.adler,Ne.pending_buf,Ne.pending,0)),Ne.gzindex=0,Ne.status=D):(lt(Ne,0),lt(Ne,0),lt(Ne,0),lt(Ne,0),lt(Ne,0),lt(Ne,Ne.level===9?2:Ne.strategy>=F||Ne.level<2?4:0),lt(Ne,pe),Ne.status=X);else{var Bt=fe+(Ne.w_bits-8<<4)<<8,ur=-1;Ne.strategy>=F||Ne.level<2?ur=0:Ne.level<6?ur=1:Ne.level===6?ur=2:ur=3,Bt|=ur<<6,Ne.strstart!==0&&(Bt|=d),Bt+=31-Bt%31,Ne.status=X,Je(Ne,Bt),Ne.strstart!==0&&(Je(Ne,ge.adler>>>16),Je(Ne,ge.adler&65535)),ge.adler=1}if(Ne.status===D)if(Ne.gzhead.extra){for(_t=Ne.pending;Ne.gzindex<(Ne.gzhead.extra.length&65535)&&!(Ne.pending===Ne.pending_buf_size&&(Ne.gzhead.hcrc&&Ne.pending>_t&&(ge.adler=l(ge.adler,Ne.pending_buf,Ne.pending-_t,_t)),dt(ge),_t=Ne.pending,Ne.pending===Ne.pending_buf_size));)lt(Ne,Ne.gzhead.extra[Ne.gzindex]&255),Ne.gzindex++;Ne.gzhead.hcrc&&Ne.pending>_t&&(ge.adler=l(ge.adler,Ne.pending_buf,Ne.pending-_t,_t)),Ne.gzindex===Ne.gzhead.extra.length&&(Ne.gzindex=0,Ne.status=O)}else Ne.status=O;if(Ne.status===O)if(Ne.gzhead.name){_t=Ne.pending;do{if(Ne.pending===Ne.pending_buf_size&&(Ne.gzhead.hcrc&&Ne.pending>_t&&(ge.adler=l(ge.adler,Ne.pending_buf,Ne.pending-_t,_t)),dt(ge),_t=Ne.pending,Ne.pending===Ne.pending_buf_size)){pt=1;break}Ne.gzindex<Ne.gzhead.name.length?pt=Ne.gzhead.name.charCodeAt(Ne.gzindex++)&255:pt=0,lt(Ne,pt)}while(pt!==0);Ne.gzhead.hcrc&&Ne.pending>_t&&(ge.adler=l(ge.adler,Ne.pending_buf,Ne.pending-_t,_t)),pt===0&&(Ne.gzindex=0,Ne.status=Q)}else Ne.status=Q;if(Ne.status===Q)if(Ne.gzhead.comment){_t=Ne.pending;do{if(Ne.pending===Ne.pending_buf_size&&(Ne.gzhead.hcrc&&Ne.pending>_t&&(ge.adler=l(ge.adler,Ne.pending_buf,Ne.pending-_t,_t)),dt(ge),_t=Ne.pending,Ne.pending===Ne.pending_buf_size)){pt=1;break}Ne.gzindex<Ne.gzhead.comment.length?pt=Ne.gzhead.comment.charCodeAt(Ne.gzindex++)&255:pt=0,lt(Ne,pt)}while(pt!==0);Ne.gzhead.hcrc&&Ne.pending>_t&&(ge.adler=l(ge.adler,Ne.pending_buf,Ne.pending-_t,_t)),pt===0&&(Ne.status=J)}else Ne.status=J;if(Ne.status===J&&(Ne.gzhead.hcrc?(Ne.pending+2>Ne.pending_buf_size&&dt(ge),Ne.pending+2<=Ne.pending_buf_size&&(lt(Ne,ge.adler&255),lt(Ne,ge.adler>>8&255),ge.adler=0,Ne.status=X)):Ne.status=X),Ne.pending!==0){if(dt(ge),ge.avail_out===0)return Ne.last_flush=-1,E}else if(ge.avail_in===0&&mt(Dt)<=mt(yt)&&Dt!==w)return qe(ge,I);if(Ne.status===U&&ge.avail_in!==0)return qe(ge,I);if(ge.avail_in!==0||Ne.lookahead!==0||Dt!==u&&Ne.status!==U){var kt=Ne.strategy===F?Et(Ne,Dt):Ne.strategy===N?Wt(Ne,Dt):Kt[Ne.level].func(Ne,Dt);if((kt===de||kt===me)&&(Ne.status=U),kt===z||kt===de)return ge.avail_out===0&&(Ne.last_flush=-1),E;if(kt===ie&&(Dt===h?e._tr_align(Ne):Dt!==A&&(e._tr_stored_block(Ne,0,0,!1),Dt===v&&(st(Ne.head),Ne.lookahead===0&&(Ne.strstart=0,Ne.block_start=0,Ne.insert=0))),dt(ge),ge.avail_out===0))return Ne.last_flush=-1,E}return Dt!==w?E:Ne.wrap<=0?C:(Ne.wrap===2?(lt(Ne,ge.adler&255),lt(Ne,ge.adler>>8&255),lt(Ne,ge.adler>>16&255),lt(Ne,ge.adler>>24&255),lt(Ne,ge.total_in&255),lt(Ne,ge.total_in>>8&255),lt(Ne,ge.total_in>>16&255),lt(Ne,ge.total_in>>24&255)):(Je(Ne,ge.adler>>>16),Je(Ne,ge.adler&65535)),dt(ge),Ne.wrap>0&&(Ne.wrap=-Ne.wrap),Ne.pending!==0?E:C)}function Ht(ge){var Dt;return!ge||!ge.state?M:(Dt=ge.state.status,Dt!==k&&Dt!==D&&Dt!==O&&Dt!==Q&&Dt!==J&&Dt!==X&&Dt!==U?qe(ge,M):(ge.state=null,Dt===X?qe(ge,P):E))}function Mt(ge,Dt){var yt=Dt.length,Ne,_t,pt,Bt,ur,kt,Ut,Wr;if(!ge||!ge.state||(Ne=ge.state,Bt=Ne.wrap,Bt===2||Bt===1&&Ne.status!==k||Ne.lookahead))return M;for(Bt===1&&(ge.adler=o(ge.adler,Dt,yt,0)),Ne.wrap=0,yt>=Ne.w_size&&(Bt===0&&(st(Ne.head),Ne.strstart=0,Ne.block_start=0,Ne.insert=0),Wr=new n.Buf8(Ne.w_size),n.arraySet(Wr,Dt,yt-Ne.w_size,Ne.w_size,0),Dt=Wr,yt=Ne.w_size),ur=ge.avail_in,kt=ge.next_in,Ut=ge.input,ge.avail_in=yt,ge.next_in=0,ge.input=Dt,bt(Ne);Ne.lookahead>=x;){_t=Ne.strstart,pt=Ne.lookahead-(x-1);do Ne.ins_h=(Ne.ins_h<<Ne.hash_shift^Ne.window[_t+x-1])&Ne.hash_mask,Ne.prev[_t&Ne.w_mask]=Ne.head[Ne.ins_h],Ne.head[Ne.ins_h]=_t,_t++;while(--pt);Ne.strstart=_t,Ne.lookahead=x-1,bt(Ne)}return Ne.strstart+=Ne.lookahead,Ne.block_start=Ne.strstart,Ne.insert=Ne.lookahead,Ne.lookahead=0,Ne.match_length=Ne.prev_length=x-1,Ne.match_available=0,ge.next_in=kt,ge.input=Ut,ge.avail_in=ur,Ne.wrap=Bt,E}return deflate.deflateInit=Ye,deflate.deflateInit2=et,deflate.deflateReset=je,deflate.deflateResetKeep=_e,deflate.deflateSetHeader=We,deflate.deflate=De,deflate.deflateEnd=Ht,deflate.deflateSetDictionary=Mt,deflate.deflateInfo="pako deflate (from Nodeca project)",deflate}var inflate={},inffast,hasRequiredInffast;function requireInffast(){if(hasRequiredInffast)return inffast;hasRequiredInffast=1;var n=30,e=12;return inffast=function(l,t){var u,h,v,w,A,E,C,M,P,I,j,B,F,N,ee,Z,re,fe,V,le,he,ye,L,p,y;u=l.state,h=l.next_in,p=l.input,v=h+(l.avail_in-5),w=l.next_out,y=l.output,A=w-(t-l.avail_out),E=w+(l.avail_out-257),C=u.dmax,M=u.wsize,P=u.whave,I=u.wnext,j=u.window,B=u.hold,F=u.bits,N=u.lencode,ee=u.distcode,Z=(1<<u.lenbits)-1,re=(1<<u.distbits)-1;e:do{F<15&&(B+=p[h++]<<F,F+=8,B+=p[h++]<<F,F+=8),fe=N[B&Z];t:for(;;){if(V=fe>>>24,B>>>=V,F-=V,V=fe>>>16&255,V===0)y[w++]=fe&65535;else if(V&16){le=fe&65535,V&=15,V&&(F<V&&(B+=p[h++]<<F,F+=8),le+=B&(1<<V)-1,B>>>=V,F-=V),F<15&&(B+=p[h++]<<F,F+=8,B+=p[h++]<<F,F+=8),fe=ee[B&re];r:for(;;){if(V=fe>>>24,B>>>=V,F-=V,V=fe>>>16&255,V&16){if(he=fe&65535,V&=15,F<V&&(B+=p[h++]<<F,F+=8,F<V&&(B+=p[h++]<<F,F+=8)),he+=B&(1<<V)-1,he>C){l.msg="invalid distance too far back",u.mode=n;break e}if(B>>>=V,F-=V,V=w-A,he>V){if(V=he-V,V>P&&u.sane){l.msg="invalid distance too far back",u.mode=n;break e}if(ye=0,L=j,I===0){if(ye+=M-V,V<le){le-=V;do y[w++]=j[ye++];while(--V);ye=w-he,L=y}}else if(I<V){if(ye+=M+I-V,V-=I,V<le){le-=V;do y[w++]=j[ye++];while(--V);if(ye=0,I<le){V=I,le-=V;do y[w++]=j[ye++];while(--V);ye=w-he,L=y}}}else if(ye+=I-V,V<le){le-=V;do y[w++]=j[ye++];while(--V);ye=w-he,L=y}for(;le>2;)y[w++]=L[ye++],y[w++]=L[ye++],y[w++]=L[ye++],le-=3;le&&(y[w++]=L[ye++],le>1&&(y[w++]=L[ye++]))}else{ye=w-he;do y[w++]=y[ye++],y[w++]=y[ye++],y[w++]=y[ye++],le-=3;while(le>2);le&&(y[w++]=y[ye++],le>1&&(y[w++]=y[ye++]))}}else if(V&64){l.msg="invalid distance code",u.mode=n;break e}else{fe=ee[(fe&65535)+(B&(1<<V)-1)];continue r}break}}else if(V&64)if(V&32){u.mode=e;break e}else{l.msg="invalid literal/length code",u.mode=n;break e}else{fe=N[(fe&65535)+(B&(1<<V)-1)];continue t}break}}while(h<v&&w<E);le=F>>3,h-=le,F-=le<<3,B&=(1<<F)-1,l.next_in=h,l.next_out=w,l.avail_in=h<v?5+(v-h):5-(h-v),l.avail_out=w<E?257+(E-w):257-(w-E),u.hold=B,u.bits=F},inffast}var inftrees,hasRequiredInftrees;function requireInftrees(){if(hasRequiredInftrees)return inftrees;hasRequiredInftrees=1;var n=requireCommon(),e=15,o=852,l=592,t=0,u=1,h=2,v=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],w=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],A=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],E=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return inftrees=function(M,P,I,j,B,F,N,ee){var Z=ee.bits,re=0,fe=0,V=0,le=0,he=0,ye=0,L=0,p=0,y=0,S=0,c,m,x,T,b,d=null,k=0,D,O=new n.Buf16(e+1),Q=new n.Buf16(e+1),J=null,X=0,U,z,ie;for(re=0;re<=e;re++)O[re]=0;for(fe=0;fe<j;fe++)O[P[I+fe]]++;for(he=Z,le=e;le>=1&&O[le]===0;le--);if(he>le&&(he=le),le===0)return B[F++]=1<<24|64<<16|0,B[F++]=1<<24|64<<16|0,ee.bits=1,0;for(V=1;V<le&&O[V]===0;V++);for(he<V&&(he=V),p=1,re=1;re<=e;re++)if(p<<=1,p-=O[re],p<0)return-1;if(p>0&&(M===t||le!==1))return-1;for(Q[1]=0,re=1;re<e;re++)Q[re+1]=Q[re]+O[re];for(fe=0;fe<j;fe++)P[I+fe]!==0&&(N[Q[P[I+fe]]++]=fe);if(M===t?(d=J=N,D=19):M===u?(d=v,k-=257,J=w,X-=257,D=256):(d=A,J=E,D=-1),S=0,fe=0,re=V,b=F,ye=he,L=0,x=-1,y=1<<he,T=y-1,M===u&&y>o||M===h&&y>l)return 1;for(;;){U=re-L,N[fe]<D?(z=0,ie=N[fe]):N[fe]>D?(z=J[X+N[fe]],ie=d[k+N[fe]]):(z=96,ie=0),c=1<<re-L,m=1<<ye,V=m;do m-=c,B[b+(S>>L)+m]=U<<24|z<<16|ie|0;while(m!==0);for(c=1<<re-1;S&c;)c>>=1;if(c!==0?(S&=c-1,S+=c):S=0,fe++,--O[re]===0){if(re===le)break;re=P[I+N[fe]]}if(re>he&&(S&T)!==x){for(L===0&&(L=he),b+=V,ye=re-L,p=1<<ye;ye+L<le&&(p-=O[ye+L],!(p<=0));)ye++,p<<=1;if(y+=1<<ye,M===u&&y>o||M===h&&y>l)return 1;x=S&T,B[x]=he<<24|ye<<16|b-F|0}}return S!==0&&(B[b+S]=re-L<<24|64<<16|0),ee.bits=he,0},inftrees}var hasRequiredInflate;function requireInflate(){if(hasRequiredInflate)return inflate;hasRequiredInflate=1;var n=requireCommon(),e=requireAdler32(),o=requireCrc32(),l=requireInffast(),t=requireInftrees(),u=0,h=1,v=2,w=4,A=5,E=6,C=0,M=1,P=2,I=-2,j=-3,B=-4,F=-5,N=8,ee=1,Z=2,re=3,fe=4,V=5,le=6,he=7,ye=8,L=9,p=10,y=11,S=12,c=13,m=14,x=15,T=16,b=17,d=18,k=19,D=20,O=21,Q=22,J=23,X=24,U=25,z=26,ie=27,de=28,me=29,pe=30,qe=31,mt=32,st=852,dt=592,Tt=15,lt=Tt;function Je(et){return(et>>>24&255)+(et>>>8&65280)+((et&65280)<<8)+((et&255)<<24)}function ht(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function at(et){var Ye;return!et||!et.state?I:(Ye=et.state,et.total_in=et.total_out=Ye.total=0,et.msg="",Ye.wrap&&(et.adler=Ye.wrap&1),Ye.mode=ee,Ye.last=0,Ye.havedict=0,Ye.dmax=32768,Ye.head=null,Ye.hold=0,Ye.bits=0,Ye.lencode=Ye.lendyn=new n.Buf32(st),Ye.distcode=Ye.distdyn=new n.Buf32(dt),Ye.sane=1,Ye.back=-1,C)}function bt(et){var Ye;return!et||!et.state?I:(Ye=et.state,Ye.wsize=0,Ye.whave=0,Ye.wnext=0,at(et))}function jt(et,Ye){var De,Ht;return!et||!et.state||(Ht=et.state,Ye<0?(De=0,Ye=-Ye):(De=(Ye>>4)+1,Ye<48&&(Ye&=15)),Ye&&(Ye<8||Ye>15))?I:(Ht.window!==null&&Ht.wbits!==Ye&&(Ht.window=null),Ht.wrap=De,Ht.wbits=Ye,bt(et))}function Ge(et,Ye){var De,Ht;return et?(Ht=new ht,et.state=Ht,Ht.window=null,De=jt(et,Ye),De!==C&&(et.state=null),De):I}function Qe(et){return Ge(et,lt)}var Wt=!0,Et,Ct;function Kt(et){if(Wt){var Ye;for(Et=new n.Buf32(512),Ct=new n.Buf32(32),Ye=0;Ye<144;)et.lens[Ye++]=8;for(;Ye<256;)et.lens[Ye++]=9;for(;Ye<280;)et.lens[Ye++]=7;for(;Ye<288;)et.lens[Ye++]=8;for(t(h,et.lens,0,288,Et,0,et.work,{bits:9}),Ye=0;Ye<32;)et.lens[Ye++]=5;t(v,et.lens,0,32,Ct,0,et.work,{bits:5}),Wt=!1}et.lencode=Et,et.lenbits=9,et.distcode=Ct,et.distbits=5}function Me(et,Ye,De,Ht){var Mt,ge=et.state;return ge.window===null&&(ge.wsize=1<<ge.wbits,ge.wnext=0,ge.whave=0,ge.window=new n.Buf8(ge.wsize)),Ht>=ge.wsize?(n.arraySet(ge.window,Ye,De-ge.wsize,ge.wsize,0),ge.wnext=0,ge.whave=ge.wsize):(Mt=ge.wsize-ge.wnext,Mt>Ht&&(Mt=Ht),n.arraySet(ge.window,Ye,De-Ht,Mt,ge.wnext),Ht-=Mt,Ht?(n.arraySet(ge.window,Ye,De-Ht,Ht,0),ge.wnext=Ht,ge.whave=ge.wsize):(ge.wnext+=Mt,ge.wnext===ge.wsize&&(ge.wnext=0),ge.whave<ge.wsize&&(ge.whave+=Mt))),0}function te(et,Ye){var De,Ht,Mt,ge,Dt,yt,Ne,_t,pt,Bt,ur,kt,Ut,Wr,zt=0,Qt,$e,be,ve,se,Pe,ze,xt,ot=new n.Buf8(4),wt,Yt,Jt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!et||!et.state||!et.output||!et.input&&et.avail_in!==0)return I;De=et.state,De.mode===S&&(De.mode=c),Dt=et.next_out,Mt=et.output,Ne=et.avail_out,ge=et.next_in,Ht=et.input,yt=et.avail_in,_t=De.hold,pt=De.bits,Bt=yt,ur=Ne,xt=C;e:for(;;)switch(De.mode){case ee:if(De.wrap===0){De.mode=c;break}for(;pt<16;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if(De.wrap&2&&_t===35615){De.check=0,ot[0]=_t&255,ot[1]=_t>>>8&255,De.check=o(De.check,ot,2,0),_t=0,pt=0,De.mode=Z;break}if(De.flags=0,De.head&&(De.head.done=!1),!(De.wrap&1)||(((_t&255)<<8)+(_t>>8))%31){et.msg="incorrect header check",De.mode=pe;break}if((_t&15)!==N){et.msg="unknown compression method",De.mode=pe;break}if(_t>>>=4,pt-=4,ze=(_t&15)+8,De.wbits===0)De.wbits=ze;else if(ze>De.wbits){et.msg="invalid window size",De.mode=pe;break}De.dmax=1<<ze,et.adler=De.check=1,De.mode=_t&512?p:S,_t=0,pt=0;break;case Z:for(;pt<16;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if(De.flags=_t,(De.flags&255)!==N){et.msg="unknown compression method",De.mode=pe;break}if(De.flags&57344){et.msg="unknown header flags set",De.mode=pe;break}De.head&&(De.head.text=_t>>8&1),De.flags&512&&(ot[0]=_t&255,ot[1]=_t>>>8&255,De.check=o(De.check,ot,2,0)),_t=0,pt=0,De.mode=re;case re:for(;pt<32;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}De.head&&(De.head.time=_t),De.flags&512&&(ot[0]=_t&255,ot[1]=_t>>>8&255,ot[2]=_t>>>16&255,ot[3]=_t>>>24&255,De.check=o(De.check,ot,4,0)),_t=0,pt=0,De.mode=fe;case fe:for(;pt<16;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}De.head&&(De.head.xflags=_t&255,De.head.os=_t>>8),De.flags&512&&(ot[0]=_t&255,ot[1]=_t>>>8&255,De.check=o(De.check,ot,2,0)),_t=0,pt=0,De.mode=V;case V:if(De.flags&1024){for(;pt<16;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}De.length=_t,De.head&&(De.head.extra_len=_t),De.flags&512&&(ot[0]=_t&255,ot[1]=_t>>>8&255,De.check=o(De.check,ot,2,0)),_t=0,pt=0}else De.head&&(De.head.extra=null);De.mode=le;case le:if(De.flags&1024&&(kt=De.length,kt>yt&&(kt=yt),kt&&(De.head&&(ze=De.head.extra_len-De.length,De.head.extra||(De.head.extra=new Array(De.head.extra_len)),n.arraySet(De.head.extra,Ht,ge,kt,ze)),De.flags&512&&(De.check=o(De.check,Ht,kt,ge)),yt-=kt,ge+=kt,De.length-=kt),De.length))break e;De.length=0,De.mode=he;case he:if(De.flags&2048){if(yt===0)break e;kt=0;do ze=Ht[ge+kt++],De.head&&ze&&De.length<65536&&(De.head.name+=String.fromCharCode(ze));while(ze&&kt<yt);if(De.flags&512&&(De.check=o(De.check,Ht,kt,ge)),yt-=kt,ge+=kt,ze)break e}else De.head&&(De.head.name=null);De.length=0,De.mode=ye;case ye:if(De.flags&4096){if(yt===0)break e;kt=0;do ze=Ht[ge+kt++],De.head&&ze&&De.length<65536&&(De.head.comment+=String.fromCharCode(ze));while(ze&&kt<yt);if(De.flags&512&&(De.check=o(De.check,Ht,kt,ge)),yt-=kt,ge+=kt,ze)break e}else De.head&&(De.head.comment=null);De.mode=L;case L:if(De.flags&512){for(;pt<16;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if(_t!==(De.check&65535)){et.msg="header crc mismatch",De.mode=pe;break}_t=0,pt=0}De.head&&(De.head.hcrc=De.flags>>9&1,De.head.done=!0),et.adler=De.check=0,De.mode=S;break;case p:for(;pt<32;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}et.adler=De.check=Je(_t),_t=0,pt=0,De.mode=y;case y:if(De.havedict===0)return et.next_out=Dt,et.avail_out=Ne,et.next_in=ge,et.avail_in=yt,De.hold=_t,De.bits=pt,P;et.adler=De.check=1,De.mode=S;case S:if(Ye===A||Ye===E)break e;case c:if(De.last){_t>>>=pt&7,pt-=pt&7,De.mode=ie;break}for(;pt<3;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}switch(De.last=_t&1,_t>>>=1,pt-=1,_t&3){case 0:De.mode=m;break;case 1:if(Kt(De),De.mode=D,Ye===E){_t>>>=2,pt-=2;break e}break;case 2:De.mode=b;break;case 3:et.msg="invalid block type",De.mode=pe}_t>>>=2,pt-=2;break;case m:for(_t>>>=pt&7,pt-=pt&7;pt<32;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if((_t&65535)!==(_t>>>16^65535)){et.msg="invalid stored block lengths",De.mode=pe;break}if(De.length=_t&65535,_t=0,pt=0,De.mode=x,Ye===E)break e;case x:De.mode=T;case T:if(kt=De.length,kt){if(kt>yt&&(kt=yt),kt>Ne&&(kt=Ne),kt===0)break e;n.arraySet(Mt,Ht,ge,kt,Dt),yt-=kt,ge+=kt,Ne-=kt,Dt+=kt,De.length-=kt;break}De.mode=S;break;case b:for(;pt<14;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if(De.nlen=(_t&31)+257,_t>>>=5,pt-=5,De.ndist=(_t&31)+1,_t>>>=5,pt-=5,De.ncode=(_t&15)+4,_t>>>=4,pt-=4,De.nlen>286||De.ndist>30){et.msg="too many length or distance symbols",De.mode=pe;break}De.have=0,De.mode=d;case d:for(;De.have<De.ncode;){for(;pt<3;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}De.lens[Jt[De.have++]]=_t&7,_t>>>=3,pt-=3}for(;De.have<19;)De.lens[Jt[De.have++]]=0;if(De.lencode=De.lendyn,De.lenbits=7,wt={bits:De.lenbits},xt=t(u,De.lens,0,19,De.lencode,0,De.work,wt),De.lenbits=wt.bits,xt){et.msg="invalid code lengths set",De.mode=pe;break}De.have=0,De.mode=k;case k:for(;De.have<De.nlen+De.ndist;){for(;zt=De.lencode[_t&(1<<De.lenbits)-1],Qt=zt>>>24,$e=zt>>>16&255,be=zt&65535,!(Qt<=pt);){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if(be<16)_t>>>=Qt,pt-=Qt,De.lens[De.have++]=be;else{if(be===16){for(Yt=Qt+2;pt<Yt;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if(_t>>>=Qt,pt-=Qt,De.have===0){et.msg="invalid bit length repeat",De.mode=pe;break}ze=De.lens[De.have-1],kt=3+(_t&3),_t>>>=2,pt-=2}else if(be===17){for(Yt=Qt+3;pt<Yt;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}_t>>>=Qt,pt-=Qt,ze=0,kt=3+(_t&7),_t>>>=3,pt-=3}else{for(Yt=Qt+7;pt<Yt;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}_t>>>=Qt,pt-=Qt,ze=0,kt=11+(_t&127),_t>>>=7,pt-=7}if(De.have+kt>De.nlen+De.ndist){et.msg="invalid bit length repeat",De.mode=pe;break}for(;kt--;)De.lens[De.have++]=ze}}if(De.mode===pe)break;if(De.lens[256]===0){et.msg="invalid code -- missing end-of-block",De.mode=pe;break}if(De.lenbits=9,wt={bits:De.lenbits},xt=t(h,De.lens,0,De.nlen,De.lencode,0,De.work,wt),De.lenbits=wt.bits,xt){et.msg="invalid literal/lengths set",De.mode=pe;break}if(De.distbits=6,De.distcode=De.distdyn,wt={bits:De.distbits},xt=t(v,De.lens,De.nlen,De.ndist,De.distcode,0,De.work,wt),De.distbits=wt.bits,xt){et.msg="invalid distances set",De.mode=pe;break}if(De.mode=D,Ye===E)break e;case D:De.mode=O;case O:if(yt>=6&&Ne>=258){et.next_out=Dt,et.avail_out=Ne,et.next_in=ge,et.avail_in=yt,De.hold=_t,De.bits=pt,l(et,ur),Dt=et.next_out,Mt=et.output,Ne=et.avail_out,ge=et.next_in,Ht=et.input,yt=et.avail_in,_t=De.hold,pt=De.bits,De.mode===S&&(De.back=-1);break}for(De.back=0;zt=De.lencode[_t&(1<<De.lenbits)-1],Qt=zt>>>24,$e=zt>>>16&255,be=zt&65535,!(Qt<=pt);){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if($e&&!($e&240)){for(ve=Qt,se=$e,Pe=be;zt=De.lencode[Pe+((_t&(1<<ve+se)-1)>>ve)],Qt=zt>>>24,$e=zt>>>16&255,be=zt&65535,!(ve+Qt<=pt);){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}_t>>>=ve,pt-=ve,De.back+=ve}if(_t>>>=Qt,pt-=Qt,De.back+=Qt,De.length=be,$e===0){De.mode=z;break}if($e&32){De.back=-1,De.mode=S;break}if($e&64){et.msg="invalid literal/length code",De.mode=pe;break}De.extra=$e&15,De.mode=Q;case Q:if(De.extra){for(Yt=De.extra;pt<Yt;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}De.length+=_t&(1<<De.extra)-1,_t>>>=De.extra,pt-=De.extra,De.back+=De.extra}De.was=De.length,De.mode=J;case J:for(;zt=De.distcode[_t&(1<<De.distbits)-1],Qt=zt>>>24,$e=zt>>>16&255,be=zt&65535,!(Qt<=pt);){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if(!($e&240)){for(ve=Qt,se=$e,Pe=be;zt=De.distcode[Pe+((_t&(1<<ve+se)-1)>>ve)],Qt=zt>>>24,$e=zt>>>16&255,be=zt&65535,!(ve+Qt<=pt);){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}_t>>>=ve,pt-=ve,De.back+=ve}if(_t>>>=Qt,pt-=Qt,De.back+=Qt,$e&64){et.msg="invalid distance code",De.mode=pe;break}De.offset=be,De.extra=$e&15,De.mode=X;case X:if(De.extra){for(Yt=De.extra;pt<Yt;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}De.offset+=_t&(1<<De.extra)-1,_t>>>=De.extra,pt-=De.extra,De.back+=De.extra}if(De.offset>De.dmax){et.msg="invalid distance too far back",De.mode=pe;break}De.mode=U;case U:if(Ne===0)break e;if(kt=ur-Ne,De.offset>kt){if(kt=De.offset-kt,kt>De.whave&&De.sane){et.msg="invalid distance too far back",De.mode=pe;break}kt>De.wnext?(kt-=De.wnext,Ut=De.wsize-kt):Ut=De.wnext-kt,kt>De.length&&(kt=De.length),Wr=De.window}else Wr=Mt,Ut=Dt-De.offset,kt=De.length;kt>Ne&&(kt=Ne),Ne-=kt,De.length-=kt;do Mt[Dt++]=Wr[Ut++];while(--kt);De.length===0&&(De.mode=O);break;case z:if(Ne===0)break e;Mt[Dt++]=De.length,Ne--,De.mode=O;break;case ie:if(De.wrap){for(;pt<32;){if(yt===0)break e;yt--,_t|=Ht[ge++]<<pt,pt+=8}if(ur-=Ne,et.total_out+=ur,De.total+=ur,ur&&(et.adler=De.check=De.flags?o(De.check,Mt,ur,Dt-ur):e(De.check,Mt,ur,Dt-ur)),ur=Ne,(De.flags?_t:Je(_t))!==De.check){et.msg="incorrect data check",De.mode=pe;break}_t=0,pt=0}De.mode=de;case de:if(De.wrap&&De.flags){for(;pt<32;){if(yt===0)break e;yt--,_t+=Ht[ge++]<<pt,pt+=8}if(_t!==(De.total&4294967295)){et.msg="incorrect length check",De.mode=pe;break}_t=0,pt=0}De.mode=me;case me:xt=M;break e;case pe:xt=j;break e;case qe:return B;case mt:default:return I}return et.next_out=Dt,et.avail_out=Ne,et.next_in=ge,et.avail_in=yt,De.hold=_t,De.bits=pt,(De.wsize||ur!==et.avail_out&&De.mode<pe&&(De.mode<ie||Ye!==w))&&Me(et,et.output,et.next_out,ur-et.avail_out),Bt-=et.avail_in,ur-=et.avail_out,et.total_in+=Bt,et.total_out+=ur,De.total+=ur,De.wrap&&ur&&(et.adler=De.check=De.flags?o(De.check,Mt,ur,et.next_out-ur):e(De.check,Mt,ur,et.next_out-ur)),et.data_type=De.bits+(De.last?64:0)+(De.mode===S?128:0)+(De.mode===D||De.mode===x?256:0),(Bt===0&&ur===0||Ye===w)&&xt===C&&(xt=F),xt}function _e(et){if(!et||!et.state)return I;var Ye=et.state;return Ye.window&&(Ye.window=null),et.state=null,C}function je(et,Ye){var De;return!et||!et.state||(De=et.state,!(De.wrap&2))?I:(De.head=Ye,Ye.done=!1,C)}function We(et,Ye){var De=Ye.length,Ht,Mt,ge;return!et||!et.state||(Ht=et.state,Ht.wrap!==0&&Ht.mode!==y)?I:Ht.mode===y&&(Mt=1,Mt=e(Mt,Ye,De,0),Mt!==Ht.check)?j:(ge=Me(et,Ye,De,De),ge?(Ht.mode=qe,B):(Ht.havedict=1,C))}return inflate.inflateReset=bt,inflate.inflateReset2=jt,inflate.inflateResetKeep=at,inflate.inflateInit=Qe,inflate.inflateInit2=Ge,inflate.inflate=te,inflate.inflateEnd=_e,inflate.inflateGetHeader=je,inflate.inflateSetDictionary=We,inflate.inflateInfo="pako inflate (from Nodeca project)",inflate}var constants,hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,constants={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),constants}var hasRequiredBinding;function requireBinding(){return hasRequiredBinding||(hasRequiredBinding=1,function(n){var e=requireAssert$1(),o=requireZstream(),l=requireDeflate(),t=requireInflate(),u=requireConstants();for(var h in u)n[h]=u[h];n.NONE=0,n.DEFLATE=1,n.INFLATE=2,n.GZIP=3,n.GUNZIP=4,n.DEFLATERAW=5,n.INFLATERAW=6,n.UNZIP=7;var v=31,w=139;function A(E){if(typeof E!="number"||E<n.DEFLATE||E>n.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=E,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}A.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,e(this.init_done,"close before init"),e(this.mode<=n.UNZIP),this.mode===n.DEFLATE||this.mode===n.GZIP||this.mode===n.DEFLATERAW?l.deflateEnd(this.strm):(this.mode===n.INFLATE||this.mode===n.GUNZIP||this.mode===n.INFLATERAW||this.mode===n.UNZIP)&&t.inflateEnd(this.strm),this.mode=n.NONE,this.dictionary=null},A.prototype.write=function(E,C,M,P,I,j,B){return this._write(!0,E,C,M,P,I,j,B)},A.prototype.writeSync=function(E,C,M,P,I,j,B){return this._write(!1,E,C,M,P,I,j,B)},A.prototype._write=function(E,C,M,P,I,j,B,F){if(e.equal(arguments.length,8),e(this.init_done,"write before init"),e(this.mode!==n.NONE,"already finalized"),e.equal(!1,this.write_in_progress,"write already in progress"),e.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,e.equal(!1,C===void 0,"must provide flush value"),this.write_in_progress=!0,C!==n.Z_NO_FLUSH&&C!==n.Z_PARTIAL_FLUSH&&C!==n.Z_SYNC_FLUSH&&C!==n.Z_FULL_FLUSH&&C!==n.Z_FINISH&&C!==n.Z_BLOCK)throw new Error("Invalid flush value");if(M==null&&(M=Buffer$C.alloc(0),I=0,P=0),this.strm.avail_in=I,this.strm.input=M,this.strm.next_in=P,this.strm.avail_out=F,this.strm.output=j,this.strm.next_out=B,this.flush=C,!E)return this._process(),this._checkError()?this._afterSync():void 0;var N=this;return process$1.nextTick(function(){N._process(),N._after()}),this},A.prototype._afterSync=function(){var E=this.strm.avail_out,C=this.strm.avail_in;return this.write_in_progress=!1,[C,E]},A.prototype._process=function(){var E=null;switch(this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:this.err=l.deflate(this.strm,this.flush);break;case n.UNZIP:switch(this.strm.avail_in>0&&(E=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(E===null)break;if(this.strm.input[E]===v){if(this.gzip_id_bytes_read=1,E++,this.strm.avail_in===1)break}else{this.mode=n.INFLATE;break}case 1:if(E===null)break;this.strm.input[E]===w?(this.gzip_id_bytes_read=2,this.mode=n.GUNZIP):this.mode=n.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:for(this.err=t.inflate(this.strm,this.flush),this.err===n.Z_NEED_DICT&&this.dictionary&&(this.err=t.inflateSetDictionary(this.strm,this.dictionary),this.err===n.Z_OK?this.err=t.inflate(this.strm,this.flush):this.err===n.Z_DATA_ERROR&&(this.err=n.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===n.GUNZIP&&this.err===n.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=t.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},A.prototype._checkError=function(){switch(this.err){case n.Z_OK:case n.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===n.Z_FINISH)return this._error("unexpected end of file"),!1;break;case n.Z_STREAM_END:break;case n.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},A.prototype._after=function(){if(this._checkError()){var E=this.strm.avail_out,C=this.strm.avail_in;this.write_in_progress=!1,this.callback(C,E),this.pending_close&&this.close()}},A.prototype._error=function(E){this.strm.msg&&(E=this.strm.msg),this.onerror(E,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},A.prototype.init=function(E,C,M,P,I){e(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),e(E>=8&&E<=15,"invalid windowBits"),e(C>=-1&&C<=9,"invalid compression level"),e(M>=1&&M<=9,"invalid memlevel"),e(P===n.Z_FILTERED||P===n.Z_HUFFMAN_ONLY||P===n.Z_RLE||P===n.Z_FIXED||P===n.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(C,E,M,P,I),this._setDictionary()},A.prototype.params=function(){throw new Error("deflateParams Not supported")},A.prototype.reset=function(){this._reset(),this._setDictionary()},A.prototype._init=function(E,C,M,P,I){switch(this.level=E,this.windowBits=C,this.memLevel=M,this.strategy=P,this.flush=n.Z_NO_FLUSH,this.err=n.Z_OK,(this.mode===n.GZIP||this.mode===n.GUNZIP)&&(this.windowBits+=16),this.mode===n.UNZIP&&(this.windowBits+=32),(this.mode===n.DEFLATERAW||this.mode===n.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:this.err=l.deflateInit2(this.strm,this.level,n.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:case n.UNZIP:this.err=t.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==n.Z_OK&&this._error("Init error"),this.dictionary=I,this.write_in_progress=!1,this.init_done=!0},A.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=n.Z_OK,this.mode){case n.DEFLATE:case n.DEFLATERAW:this.err=l.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==n.Z_OK&&this._error("Failed to set dictionary")}},A.prototype._reset=function(){switch(this.err=n.Z_OK,this.mode){case n.DEFLATE:case n.DEFLATERAW:case n.GZIP:this.err=l.deflateReset(this.strm);break;case n.INFLATE:case n.INFLATERAW:case n.GUNZIP:this.err=t.inflateReset(this.strm);break}this.err!==n.Z_OK&&this._error("Failed to reset stream")},n.Zlib=A}(binding)),binding}var hasRequiredLib$5;function requireLib$5(){return hasRequiredLib$5||(hasRequiredLib$5=1,function(n){var e=require$$0$2.Buffer,o=requireStreamBrowserify().Transform,l=requireBinding(),t=util$6,u=requireAssert$1().ok,h=require$$0$2.kMaxLength,v="Cannot create final Buffer. It would be larger than 0x"+h.toString(16)+" bytes";l.Z_MIN_WINDOWBITS=8,l.Z_MAX_WINDOWBITS=15,l.Z_DEFAULT_WINDOWBITS=15,l.Z_MIN_CHUNK=64,l.Z_MAX_CHUNK=1/0,l.Z_DEFAULT_CHUNK=16*1024,l.Z_MIN_MEMLEVEL=1,l.Z_MAX_MEMLEVEL=9,l.Z_DEFAULT_MEMLEVEL=8,l.Z_MIN_LEVEL=-1,l.Z_MAX_LEVEL=9,l.Z_DEFAULT_LEVEL=l.Z_DEFAULT_COMPRESSION;for(var w=Object.keys(l),A=0;A<w.length;A++){var E=w[A];E.match(/^Z/)&&Object.defineProperty(n,E,{enumerable:!0,value:l[E],writable:!1})}for(var C={Z_OK:l.Z_OK,Z_STREAM_END:l.Z_STREAM_END,Z_NEED_DICT:l.Z_NEED_DICT,Z_ERRNO:l.Z_ERRNO,Z_STREAM_ERROR:l.Z_STREAM_ERROR,Z_DATA_ERROR:l.Z_DATA_ERROR,Z_MEM_ERROR:l.Z_MEM_ERROR,Z_BUF_ERROR:l.Z_BUF_ERROR,Z_VERSION_ERROR:l.Z_VERSION_ERROR},M=Object.keys(C),P=0;P<M.length;P++){var I=M[P];C[C[I]]=I}Object.defineProperty(n,"codes",{enumerable:!0,value:Object.freeze(C),writable:!1}),n.Deflate=F,n.Inflate=N,n.Gzip=ee,n.Gunzip=Z,n.DeflateRaw=re,n.InflateRaw=fe,n.Unzip=V,n.createDeflate=function(p){return new F(p)},n.createInflate=function(p){return new N(p)},n.createDeflateRaw=function(p){return new re(p)},n.createInflateRaw=function(p){return new fe(p)},n.createGzip=function(p){return new ee(p)},n.createGunzip=function(p){return new Z(p)},n.createUnzip=function(p){return new V(p)},n.deflate=function(p,y,S){return typeof y=="function"&&(S=y,y={}),j(new F(y),p,S)},n.deflateSync=function(p,y){return B(new F(y),p)},n.gzip=function(p,y,S){return typeof y=="function"&&(S=y,y={}),j(new ee(y),p,S)},n.gzipSync=function(p,y){return B(new ee(y),p)},n.deflateRaw=function(p,y,S){return typeof y=="function"&&(S=y,y={}),j(new re(y),p,S)},n.deflateRawSync=function(p,y){return B(new re(y),p)},n.unzip=function(p,y,S){return typeof y=="function"&&(S=y,y={}),j(new V(y),p,S)},n.unzipSync=function(p,y){return B(new V(y),p)},n.inflate=function(p,y,S){return typeof y=="function"&&(S=y,y={}),j(new N(y),p,S)},n.inflateSync=function(p,y){return B(new N(y),p)},n.gunzip=function(p,y,S){return typeof y=="function"&&(S=y,y={}),j(new Z(y),p,S)},n.gunzipSync=function(p,y){return B(new Z(y),p)},n.inflateRaw=function(p,y,S){return typeof y=="function"&&(S=y,y={}),j(new fe(y),p,S)},n.inflateRawSync=function(p,y){return B(new fe(y),p)};function j(p,y,S){var c=[],m=0;p.on("error",T),p.on("end",b),p.end(y),x();function x(){for(var d;(d=p.read())!==null;)c.push(d),m+=d.length;p.once("readable",x)}function T(d){p.removeListener("end",b),p.removeListener("readable",x),S(d)}function b(){var d,k=null;m>=h?k=new RangeError(v):d=e.concat(c,m),c=[],p.close(),S(k,d)}}function B(p,y){if(typeof y=="string"&&(y=e.from(y)),!e.isBuffer(y))throw new TypeError("Not a string or buffer");var S=p._finishFlushFlag;return p._processChunk(y,S)}function F(p){if(!(this instanceof F))return new F(p);he.call(this,p,l.DEFLATE)}function N(p){if(!(this instanceof N))return new N(p);he.call(this,p,l.INFLATE)}function ee(p){if(!(this instanceof ee))return new ee(p);he.call(this,p,l.GZIP)}function Z(p){if(!(this instanceof Z))return new Z(p);he.call(this,p,l.GUNZIP)}function re(p){if(!(this instanceof re))return new re(p);he.call(this,p,l.DEFLATERAW)}function fe(p){if(!(this instanceof fe))return new fe(p);he.call(this,p,l.INFLATERAW)}function V(p){if(!(this instanceof V))return new V(p);he.call(this,p,l.UNZIP)}function le(p){return p===l.Z_NO_FLUSH||p===l.Z_PARTIAL_FLUSH||p===l.Z_SYNC_FLUSH||p===l.Z_FULL_FLUSH||p===l.Z_FINISH||p===l.Z_BLOCK}function he(p,y){var S=this;if(this._opts=p=p||{},this._chunkSize=p.chunkSize||n.Z_DEFAULT_CHUNK,o.call(this,p),p.flush&&!le(p.flush))throw new Error("Invalid flush flag: "+p.flush);if(p.finishFlush&&!le(p.finishFlush))throw new Error("Invalid flush flag: "+p.finishFlush);if(this._flushFlag=p.flush||l.Z_NO_FLUSH,this._finishFlushFlag=typeof p.finishFlush<"u"?p.finishFlush:l.Z_FINISH,p.chunkSize&&(p.chunkSize<n.Z_MIN_CHUNK||p.chunkSize>n.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+p.chunkSize);if(p.windowBits&&(p.windowBits<n.Z_MIN_WINDOWBITS||p.windowBits>n.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+p.windowBits);if(p.level&&(p.level<n.Z_MIN_LEVEL||p.level>n.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+p.level);if(p.memLevel&&(p.memLevel<n.Z_MIN_MEMLEVEL||p.memLevel>n.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+p.memLevel);if(p.strategy&&p.strategy!=n.Z_FILTERED&&p.strategy!=n.Z_HUFFMAN_ONLY&&p.strategy!=n.Z_RLE&&p.strategy!=n.Z_FIXED&&p.strategy!=n.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+p.strategy);if(p.dictionary&&!e.isBuffer(p.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new l.Zlib(y);var c=this;this._hadError=!1,this._handle.onerror=function(T,b){ye(c),c._hadError=!0;var d=new Error(T);d.errno=b,d.code=n.codes[b],c.emit("error",d)};var m=n.Z_DEFAULT_COMPRESSION;typeof p.level=="number"&&(m=p.level);var x=n.Z_DEFAULT_STRATEGY;typeof p.strategy=="number"&&(x=p.strategy),this._handle.init(p.windowBits||n.Z_DEFAULT_WINDOWBITS,m,p.memLevel||n.Z_DEFAULT_MEMLEVEL,x,p.dictionary),this._buffer=e.allocUnsafe(this._chunkSize),this._offset=0,this._level=m,this._strategy=x,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!S._handle},configurable:!0,enumerable:!0})}t.inherits(he,o),he.prototype.params=function(p,y,S){if(p<n.Z_MIN_LEVEL||p>n.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+p);if(y!=n.Z_FILTERED&&y!=n.Z_HUFFMAN_ONLY&&y!=n.Z_RLE&&y!=n.Z_FIXED&&y!=n.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+y);if(this._level!==p||this._strategy!==y){var c=this;this.flush(l.Z_SYNC_FLUSH,function(){u(c._handle,"zlib binding closed"),c._handle.params(p,y),c._hadError||(c._level=p,c._strategy=y,S&&S())})}else process$1.nextTick(S)},he.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},he.prototype._flush=function(p){this._transform(e.alloc(0),"",p)},he.prototype.flush=function(p,y){var S=this,c=this._writableState;(typeof p=="function"||p===void 0&&!y)&&(y=p,p=l.Z_FULL_FLUSH),c.ended?y&&process$1.nextTick(y):c.ending?y&&this.once("end",y):c.needDrain?y&&this.once("drain",function(){return S.flush(p,y)}):(this._flushFlag=p,this.write(e.alloc(0),"",y))},he.prototype.close=function(p){ye(this,p),process$1.nextTick(L,this)};function ye(p,y){y&&process$1.nextTick(y),p._handle&&(p._handle.close(),p._handle=null)}function L(p){p.emit("close")}he.prototype._transform=function(p,y,S){var c,m=this._writableState,x=m.ending||m.ended,T=x&&(!p||m.length===p.length);if(p!==null&&!e.isBuffer(p))return S(new Error("invalid input"));if(!this._handle)return S(new Error("zlib binding closed"));T?c=this._finishFlushFlag:(c=this._flushFlag,p.length>=m.length&&(this._flushFlag=this._opts.flush||l.Z_NO_FLUSH)),this._processChunk(p,c,S)},he.prototype._processChunk=function(p,y,S){var c=p&&p.length,m=this._chunkSize-this._offset,x=0,T=this,b=typeof S=="function";if(!b){var d=[],k=0,D;this.on("error",function(U){D=U}),u(this._handle,"zlib binding closed");do var O=this._handle.writeSync(y,p,x,c,this._buffer,this._offset,m);while(!this._hadError&&X(O[0],O[1]));if(this._hadError)throw D;if(k>=h)throw ye(this),new RangeError(v);var Q=e.concat(d,k);return ye(this),Q}u(this._handle,"zlib binding closed");var J=this._handle.write(y,p,x,c,this._buffer,this._offset,m);J.buffer=p,J.callback=X;function X(U,z){if(this&&(this.buffer=null,this.callback=null),!T._hadError){var ie=m-z;if(u(ie>=0,"have should not go down"),ie>0){var de=T._buffer.slice(T._offset,T._offset+ie);T._offset+=ie,b?T.push(de):(d.push(de),k+=de.length)}if((z===0||T._offset>=T._chunkSize)&&(m=T._chunkSize,T._offset=0,T._buffer=e.allocUnsafe(T._chunkSize)),z===0){if(x+=c-U,c=U,!b)return!0;var me=T._handle.write(y,p,x,c,T._buffer,T._offset,T._chunkSize);me.callback=X,me.buffer=p;return}if(!b)return!1;S()}}},t.inherits(F,he),t.inherits(N,he),t.inherits(ee,he),t.inherits(Z,he),t.inherits(re,he),t.inherits(fe,he),t.inherits(V,he)}(lib$5)),lib$5}var awsSign2={exports:{}},hasRequiredAwsSign2;function requireAwsSign2(){if(hasRequiredAwsSign2)return awsSign2.exports;hasRequiredAwsSign2=1;/*!
 *  Copyright 2010 LearnBoost <dev@learnboost.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var n=requireCryptoBrowserify(),e=require$$2$2.parse,o=["acl","location","logging","notification","partNumber","policy","requestPayment","torrent","uploadId","uploads","versionId","versioning","versions","website"];function l(C){return"AWS "+C.key+":"+u(C)}awsSign2.exports=l,awsSign2.exports.authorization=l;function t(C){return n.createHmac("sha1",C.secret).update(C.message).digest("base64")}awsSign2.exports.hmacSha1=t;function u(C){return C.message=v(C),t(C)}awsSign2.exports.sign=u;function h(C){return C.message=w(C),t(C)}awsSign2.exports.signQuery=h;function v(C){var M=C.amazonHeaders||"";M&&(M+=`
`);var P=[C.verb,C.md5,C.contentType,C.date?C.date.toUTCString():"",M+C.resource];return P.join(`
`)}awsSign2.exports.stringToSign=v;function w(C){return`GET


`+C.date+`
`+C.resource}awsSign2.exports.queryStringToSign=w;function A(C){for(var M=[],P=Object.keys(C),I=0,j=P.length;I<j;++I){var F=P[I],B=C[F],F=F.toLowerCase();F.indexOf("x-amz")===0&&M.push(F+":"+B)}return M.sort().join(`
`)}awsSign2.exports.canonicalizeHeaders=A;function E(C){var M=e(C,!0),P=M.pathname,I=[];return Object.keys(M.query).forEach(function(j){if(~o.indexOf(j)){var B=M.query[j]==""?"":"="+encodeURIComponent(M.query[j]);I.push(j+B)}}),P+(I.length?"?"+I.sort().join("&"):"")}return awsSign2.exports.canonicalizeResource=E,awsSign2.exports}var aws4={};const require$$1$1=getAugmentedNamespace(querystring$2);var lru,hasRequiredLru;function requireLru(){if(hasRequiredLru)return lru;hasRequiredLru=1,lru=function(l){return new n(l)};function n(l){this.capacity=l|0,this.map=Object.create(null),this.list=new e}n.prototype.get=function(l){var t=this.map[l];if(t!=null)return this.used(t),t.val},n.prototype.set=function(l,t){var u=this.map[l];if(u!=null)u.val=t;else{if(this.capacity||this.prune(),!this.capacity)return!1;u=new o(l,t),this.map[l]=u,this.capacity--}return this.used(u),!0},n.prototype.used=function(l){this.list.moveToFront(l)},n.prototype.prune=function(){var l=this.list.pop();l!=null&&(delete this.map[l.key],this.capacity++)};function e(){this.firstNode=null,this.lastNode=null}e.prototype.moveToFront=function(l){this.firstNode!=l&&(this.remove(l),this.firstNode==null?(this.firstNode=l,this.lastNode=l,l.prev=null,l.next=null):(l.prev=null,l.next=this.firstNode,l.next.prev=l,this.firstNode=l))},e.prototype.pop=function(){var l=this.lastNode;return l!=null&&this.remove(l),l},e.prototype.remove=function(l){this.firstNode==l?this.firstNode=l.next:l.prev!=null&&(l.prev.next=l.next),this.lastNode==l?this.lastNode=l.prev:l.next!=null&&(l.next.prev=l.prev)};function o(l,t){this.key=l,this.val=t,this.prev=null,this.next=null}return lru}var hasRequiredAws4;function requireAws4(){return hasRequiredAws4||(hasRequiredAws4=1,function(n){var e=n,o=require$$2$2,l=require$$1$1,t=requireCryptoBrowserify(),u=requireLru(),h=u(1e3);function v(P,I,j){return t.createHmac("sha256",P).update(I,"utf8").digest(j)}function w(P,I){return t.createHash("sha256").update(P,"utf8").digest(I)}function A(P){return P.replace(/[!'()*]/g,function(I){return"%"+I.charCodeAt(0).toString(16).toUpperCase()})}function E(P){return A(encodeURIComponent(P))}var C={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0};function M(P,I){typeof P=="string"&&(P=o.parse(P));var j=P.headers=Object.assign({},P.headers||{}),B=(!this.service||!this.region)&&this.matchHost(P.hostname||P.host||j.Host||j.host);this.request=P,this.credentials=I||this.defaultCredentials(),this.service=P.service||B[0]||"",this.region=P.region||B[1]||"us-east-1",this.service==="email"&&(this.service="ses"),!P.method&&P.body&&(P.method="POST"),!j.Host&&!j.host&&(j.Host=P.hostname||P.host||this.createHost(),P.port&&(j.Host+=":"+P.port)),!P.hostname&&!P.host&&(P.hostname=j.Host||j.host),this.isCodeCommitGit=this.service==="codecommit"&&P.method==="GIT",this.extraHeadersToIgnore=P.extraHeadersToIgnore||Object.create(null),this.extraHeadersToInclude=P.extraHeadersToInclude||Object.create(null)}M.prototype.matchHost=function(P){var I=(P||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/),j=(I||[]).slice(1,3);if((j[1]==="es"||j[1]==="aoss")&&(j=j.reverse()),j[1]=="s3")j[0]="s3",j[1]="us-east-1";else for(var B=0;B<2;B++)if(/^s3-/.test(j[B])){j[1]=j[B].slice(3),j[0]="s3";break}return j},M.prototype.isSingleRegion=function(){return["s3","sdb"].indexOf(this.service)>=0&&this.region==="us-east-1"?!0:["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0},M.prototype.createHost=function(){var P=this.isSingleRegion()?"":"."+this.region,I=this.service==="ses"?"email":this.service;return I+P+".amazonaws.com"},M.prototype.prepareRequest=function(){this.parsePath();var P=this.request,I=P.headers,j;P.signQuery?(this.parsedPath.query=j=this.parsedPath.query||{},this.credentials.sessionToken&&(j["X-Amz-Security-Token"]=this.credentials.sessionToken),this.service==="s3"&&!j["X-Amz-Expires"]&&(j["X-Amz-Expires"]=86400),j["X-Amz-Date"]?this.datetime=j["X-Amz-Date"]:j["X-Amz-Date"]=this.getDateTime(),j["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",j["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString(),j["X-Amz-SignedHeaders"]=this.signedHeaders()):(!P.doNotModifyHeaders&&!this.isCodeCommitGit&&(P.body&&!I["Content-Type"]&&!I["content-type"]&&(I["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8"),P.body&&!I["Content-Length"]&&!I["content-length"]&&(I["Content-Length"]=Buffer$C.byteLength(P.body)),this.credentials.sessionToken&&!I["X-Amz-Security-Token"]&&!I["x-amz-security-token"]&&(I["X-Amz-Security-Token"]=this.credentials.sessionToken),this.service==="s3"&&!I["X-Amz-Content-Sha256"]&&!I["x-amz-content-sha256"]&&(I["X-Amz-Content-Sha256"]=w(this.request.body||"","hex")),I["X-Amz-Date"]||I["x-amz-date"]?this.datetime=I["X-Amz-Date"]||I["x-amz-date"]:I["X-Amz-Date"]=this.getDateTime()),delete I.Authorization,delete I.authorization)},M.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["X-Amz-Signature"]=this.signature():this.request.headers.Authorization=this.authHeader(),this.request.path=this.formatPath(),this.request},M.prototype.getDateTime=function(){if(!this.datetime){var P=this.request.headers,I=new Date(P.Date||P.date||new Date);this.datetime=I.toISOString().replace(/[:\-]|\.\d{3}/g,""),this.isCodeCommitGit&&(this.datetime=this.datetime.slice(0,-1))}return this.datetime},M.prototype.getDate=function(){return this.getDateTime().substr(0,8)},M.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")},M.prototype.signature=function(){var P=this.getDate(),I=[this.credentials.secretAccessKey,P,this.region,this.service].join(),j,B,F,N=h.get(I);return N||(j=v("AWS4"+this.credentials.secretAccessKey,P),B=v(j,this.region),F=v(B,this.service),N=v(F,"aws4_request"),h.set(I,N)),v(N,this.stringToSign(),"hex")},M.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),w(this.canonicalString(),"hex")].join(`
`)},M.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var P=this.parsedPath.path,I=this.parsedPath.query,j=this.request.headers,B="",F=this.service!=="s3",N=this.service==="s3"||this.request.doNotEncodePath,ee=this.service==="s3",Z=this.service==="s3",re;if(this.service==="s3"&&this.request.signQuery?re="UNSIGNED-PAYLOAD":this.isCodeCommitGit?re="":re=j["X-Amz-Content-Sha256"]||j["x-amz-content-sha256"]||w(this.request.body||"","hex"),I){var fe=Object.keys(I).reduce(function(le,he){return he&&(le[E(he)]=Array.isArray(I[he])&&Z?I[he][0]:I[he]),le},{}),V=[];Object.keys(fe).sort().forEach(function(le){Array.isArray(fe[le])?fe[le].map(E).sort().forEach(function(he){V.push(le+"="+he)}):V.push(le+"="+E(fe[le]))}),B=V.join("&")}return P!=="/"&&(F&&(P=P.replace(/\/{2,}/g,"/")),P=P.split("/").reduce(function(le,he){return F&&he===".."?le.pop():(!F||he!==".")&&(N&&(he=decodeURIComponent(he.replace(/\+/g," "))),le.push(E(he))),le},[]).join("/"),P[0]!=="/"&&(P="/"+P),ee&&(P=P.replace(/%2F/g,"/"))),[this.request.method||"GET",P,B,this.canonicalHeaders()+`
`,this.signedHeaders(),re].join(`
`)},M.prototype.filterHeaders=function(){var P=this.request.headers,I=this.extraHeadersToInclude,j=this.extraHeadersToIgnore;this.filteredHeaders=Object.keys(P).map(function(B){return[B.toLowerCase(),P[B]]}).filter(function(B){return I[B[0]]||C[B[0]]==null&&!j[B[0]]}).sort(function(B,F){return B[0]<F[0]?-1:1})},M.prototype.canonicalHeaders=function(){return this.filteredHeaders||this.filterHeaders(),this.filteredHeaders.map(function(P){return P[0]+":"+P[1].toString().trim().replace(/\s+/g," ")}).join(`
`)},M.prototype.signedHeaders=function(){return this.filteredHeaders||this.filterHeaders(),this.filteredHeaders.map(function(P){return P[0]}).join(";")},M.prototype.credentialString=function(){return[this.getDate(),this.region,this.service,"aws4_request"].join("/")},M.prototype.defaultCredentials=function(){var P=process$1.env;return{accessKeyId:P.AWS_ACCESS_KEY_ID||P.AWS_ACCESS_KEY,secretAccessKey:P.AWS_SECRET_ACCESS_KEY||P.AWS_SECRET_KEY,sessionToken:P.AWS_SESSION_TOKEN}},M.prototype.parsePath=function(){var P=this.request.path||"/";/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(P)&&(P=encodeURI(decodeURI(P)));var I=P.indexOf("?"),j=null;I>=0&&(j=l.parse(P.slice(I+1)),P=P.slice(0,I)),this.parsedPath={path:P,query:j}},M.prototype.formatPath=function(){var P=this.parsedPath.path,I=this.parsedPath.query;return I?(I[""]!=null&&delete I[""],P+"?"+A(l.stringify(I))):P},e.RequestSigner=M,e.sign=function(P,I){return new M(P,I).sign()}}(aws4)),aws4}var assert_1,hasRequiredAssert;function requireAssert(){if(hasRequiredAssert)return assert_1;hasRequiredAssert=1;var n=requireAssert$1(),e=requireStreamBrowserify().Stream,o=util$6,l=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function t(E){return E.charAt(0).toUpperCase()+E.slice(1)}function u(E,C,M,P,I){throw new n.AssertionError({message:o.format("%s (%s) is required",E,C),actual:I===void 0?typeof P:I(P),expected:C,operator:M||"===",stackStartFunction:u.caller})}function h(E){return Object.prototype.toString.call(E).slice(8,-1)}function v(){}var w={bool:{check:function(E){return typeof E=="boolean"}},func:{check:function(E){return typeof E=="function"}},string:{check:function(E){return typeof E=="string"}},object:{check:function(E){return typeof E=="object"&&E!==null}},number:{check:function(E){return typeof E=="number"&&!isNaN(E)}},finite:{check:function(E){return typeof E=="number"&&!isNaN(E)&&isFinite(E)}},buffer:{check:function(E){return Buffer$C.isBuffer(E)},operator:"Buffer.isBuffer"},array:{check:function(E){return Array.isArray(E)},operator:"Array.isArray"},stream:{check:function(E){return E instanceof e},operator:"instanceof",actual:h},date:{check:function(E){return E instanceof Date},operator:"instanceof",actual:h},regexp:{check:function(E){return E instanceof RegExp},operator:"instanceof",actual:h},uuid:{check:function(E){return typeof E=="string"&&l.test(E)},operator:"isUUID"}};function A(E){var C=Object.keys(w),M;return process$1.env.NODE_NDEBUG?M=v:M=function(P,I){P||u(I,"true",P)},C.forEach(function(P){if(E){M[P]=v;return}var I=w[P];M[P]=function(j,B){I.check(j)||u(B,P,I.operator,j,I.actual)}}),C.forEach(function(P){var I="optional"+t(P);if(E){M[I]=v;return}var j=w[P];M[I]=function(B,F){B!=null&&(j.check(B)||u(F,P,j.operator,B,j.actual))}}),C.forEach(function(P){var I="arrayOf"+t(P);if(E){M[I]=v;return}var j=w[P],B="["+P+"]";M[I]=function(F,N){Array.isArray(F)||u(N,B,j.operator,F,j.actual);var ee;for(ee=0;ee<F.length;ee++)j.check(F[ee])||u(N,B,j.operator,F,j.actual)}}),C.forEach(function(P){var I="optionalArrayOf"+t(P);if(E){M[I]=v;return}var j=w[P],B="["+P+"]";M[I]=function(F,N){if(F!=null){Array.isArray(F)||u(N,B,j.operator,F,j.actual);var ee;for(ee=0;ee<F.length;ee++)j.check(F[ee])||u(N,B,j.operator,F,j.actual)}}}),Object.keys(n).forEach(function(P){if(P==="AssertionError"){M[P]=n[P];return}if(E){M[P]=v;return}M[P]=n[P]}),M._setExports=A,M}return assert_1=A(process$1.env.NODE_NDEBUG),assert_1}var safer_1,hasRequiredSafer;function requireSafer(){if(hasRequiredSafer)return safer_1;hasRequiredSafer=1;var n=require$$0$2,e=n.Buffer,o={},l;for(l in n)n.hasOwnProperty(l)&&(l==="SlowBuffer"||l==="Buffer"||(o[l]=n[l]));var t=o.Buffer={};for(l in e)e.hasOwnProperty(l)&&(l==="allocUnsafe"||l==="allocUnsafeSlow"||(t[l]=e[l]));if(o.Buffer.prototype=e.prototype,(!t.from||t.from===Uint8Array.from)&&(t.from=function(u,h,v){if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof u);if(u&&typeof u.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);return e(u,h,v)}),t.alloc||(t.alloc=function(u,h,v){if(typeof u!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof u);if(u<0||u>=2*(1<<30))throw new RangeError('The value "'+u+'" is invalid for option "size"');var w=e(u);return!h||h.length===0?w.fill(0):typeof v=="string"?w.fill(h,v):w.fill(h),w}),!o.kStringMaxLength)try{o.kStringMaxLength=process$1.binding("buffer").kStringMaxLength}catch{}return o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),safer_1=o,safer_1}var algs,hasRequiredAlgs;function requireAlgs(){if(hasRequiredAlgs)return algs;hasRequiredAlgs=1;var n=requireSafer().Buffer,e={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}};e.curve25519=e.ed25519;var o={dsa:{parts:["p","q","g","y","x"]},rsa:{parts:["n","e","d","iqmp","p","q"]},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}};o.curve25519=o.ed25519;var l={md5:!0,sha1:!0,sha256:!0,sha384:!0,sha512:!0},t={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:n.from("00ffffffff 00000001 00000000 0000000000000000 ffffffff ffffffff ffffffff".replace(/ /g,""),"hex"),a:n.from("00FFFFFFFF 00000001 00000000 0000000000000000 FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:n.from("5ac635d8 aa3a93e7 b3ebbd55 769886bc651d06b0 cc53b0f6 3bce3c3e 27d2604b".replace(/ /g,""),"hex"),s:n.from("00c49d3608 86e70493 6a6678e1 139d26b7819f7e90".replace(/ /g,""),"hex"),n:n.from("00ffffffff 00000000 ffffffff ffffffffbce6faad a7179e84 f3b9cac2 fc632551".replace(/ /g,""),"hex"),G:n.from("046b17d1f2 e12c4247 f8bce6e5 63a440f277037d81 2deb33a0 f4a13945 d898c2964fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e162bce3357 6b315ece cbb64068 37bf51f5".replace(/ /g,""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:n.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffeffffffff 00000000 00000000 ffffffff".replace(/ /g,""),"hex"),a:n.from("00FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFEFFFFFFFF 00000000 00000000 FFFFFFFC".replace(/ /g,""),"hex"),b:n.from("b3312fa7 e23ee7e4 988e056b e3f82d19181d9c6e fe814112 0314088f 5013875ac656398d 8a2ed19d 2a85c8ed d3ec2aef".replace(/ /g,""),"hex"),s:n.from("00a335926a a319a27a 1d00896a 6773a4827acdac73".replace(/ /g,""),"hex"),n:n.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff c7634d81 f4372ddf581a0db2 48b0a77a ecec196a ccc52973".replace(/ /g,""),"hex"),G:n.from("04aa87ca22 be8b0537 8eb1c71e f320ad746e1d3b62 8ba79b98 59f741e0 82542a385502f25d bf55296c 3a545e38 72760ab73617de4a 96262c6f 5d9e98bf 9292dc29f8f41dbd 289a147c e9da3113 b5f0b8c00a60b1ce 1d7e819d 7a431d7c 90ea0e5f".replace(/ /g,""),"hex")},nistp521:{size:521,pkcs8oid:"1.3.132.0.35",p:n.from("01ffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffff".replace(/ /g,""),"hex"),a:n.from("01FFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:n.from("51953eb961 8e1c9a1f 929a21a0 b68540eea2da725b 99b315f3 b8b48991 8ef109e156193951 ec7e937b 1652c0bd 3bb1bf073573df88 3d2c34f1 ef451fd4 6b503f00".replace(/ /g,""),"hex"),s:n.from("00d09e8800 291cb853 96cc6717 393284aaa0da64ba".replace(/ /g,""),"hex"),n:n.from("01ffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffa51868783 bf2f966b 7fcc0148 f709a5d03bb5c9b8 899c47ae bb6fb71e 91386409".replace(/ /g,""),"hex"),G:n.from("0400c6 858e06b7 0404e9cd 9e3ecb66 2395b4429c648139 053fb521 f828af60 6b4d3dbaa14b5e77 efe75928 fe1dc127 a2ffa8de3348b3c1 856a429b f97e7e31 c2e5bd660118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd998f54449 579b4468 17afbd17 273e662c97ee7299 5ef42640 c550b901 3fad0761353c7086 a272c240 88be9476 9fd16650".replace(/ /g,""),"hex")}};return algs={info:e,privInfo:o,hashAlgs:l,curves:t},algs}var errors$1,hasRequiredErrors$1;function requireErrors$1(){if(hasRequiredErrors$1)return errors$1;hasRequiredErrors$1=1,requireAssert();var n=util$6;function e(v,w){Error.captureStackTrace&&Error.captureStackTrace(this,e),this.name="FingerprintFormatError",this.fingerprint=v,this.format=w,this.message="Fingerprint format is not supported, or is invalid: ",v!==void 0&&(this.message+=" fingerprint = "+v),w!==void 0&&(this.message+=" format = "+w)}n.inherits(e,Error);function o(v){Error.captureStackTrace&&Error.captureStackTrace(this,o),this.name="InvalidAlgorithmError",this.algorithm=v,this.message='Algorithm "'+v+'" is not supported'}n.inherits(o,Error);function l(v,w,A){Error.captureStackTrace&&Error.captureStackTrace(this,l),this.name="KeyParseError",this.format=w,this.keyName=v,this.innerErr=A,this.message="Failed to parse "+v+" as a valid "+w+" format key: "+A.message}n.inherits(l,Error);function t(v,w,A){Error.captureStackTrace&&Error.captureStackTrace(this,t),this.name="SignatureParseError",this.type=v,this.format=w,this.innerErr=A,this.message="Failed to parse the given data as a "+v+" signature in "+w+" format: "+A.message}n.inherits(t,Error);function u(v,w,A){Error.captureStackTrace&&Error.captureStackTrace(this,u),this.name="CertificateParseError",this.format=w,this.certName=v,this.innerErr=A,this.message="Failed to parse "+v+" as a valid "+w+" format certificate: "+A.message}n.inherits(u,Error);function h(v,w){Error.captureStackTrace&&Error.captureStackTrace(this,h),this.name="KeyEncryptedError",this.format=w,this.keyName=v,this.message="The "+w+" format key "+v+" is encrypted (password-protected), and no passphrase was provided in `options`"}return n.inherits(h,Error),errors$1={FingerprintFormatError:e,InvalidAlgorithmError:o,KeyParseError:l,SignatureParseError:t,KeyEncryptedError:h,CertificateParseError:u},errors$1}var ber={exports:{}},errors,hasRequiredErrors;function requireErrors(){return hasRequiredErrors||(hasRequiredErrors=1,errors={newInvalidAsn1Error:function(n){var e=new Error;return e.name="InvalidAsn1Error",e.message=n||"",e}}),errors}var types,hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,types={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}),types}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1;var n=requireAssert$1(),e=requireSafer().Buffer,o=requireTypes(),l=requireErrors(),t=l.newInvalidAsn1Error;function u(h){if(!h||!e.isBuffer(h))throw new TypeError("data must be a node Buffer");this._buf=h,this._size=h.length,this._len=0,this._offset=0}return Object.defineProperty(u.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(u.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(u.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),u.prototype.readByte=function(h){if(this._size-this._offset<1)return null;var v=this._buf[this._offset]&255;return h||(this._offset+=1),v},u.prototype.peek=function(){return this.readByte(!0)},u.prototype.readLength=function(h){if(h===void 0&&(h=this._offset),h>=this._size)return null;var v=this._buf[h++]&255;if(v===null)return null;if((v&128)===128){if(v&=127,v===0)throw t("Indefinite length not supported");if(v>4)throw t("encoding too long");if(this._size-h<v)return null;this._len=0;for(var w=0;w<v;w++)this._len=(this._len<<8)+(this._buf[h++]&255)}else this._len=v;return h},u.prototype.readSequence=function(h){var v=this.peek();if(v===null)return null;if(h!==void 0&&h!==v)throw t("Expected 0x"+h.toString(16)+": got 0x"+v.toString(16));var w=this.readLength(this._offset+1);return w===null?null:(this._offset=w,v)},u.prototype.readInt=function(){return this._readTag(o.Integer)},u.prototype.readBoolean=function(){return this._readTag(o.Boolean)!==0},u.prototype.readEnumeration=function(){return this._readTag(o.Enumeration)},u.prototype.readString=function(h,v){h||(h=o.OctetString);var w=this.peek();if(w===null)return null;if(w!==h)throw t("Expected 0x"+h.toString(16)+": got 0x"+w.toString(16));var A=this.readLength(this._offset+1);if(A===null||this.length>this._size-A)return null;if(this._offset=A,this.length===0)return v?e.alloc(0):"";var E=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,v?E:E.toString("utf8")},u.prototype.readOID=function(h){h||(h=o.OID);var v=this.readString(h,!0);if(v===null)return null;for(var w=[],A=0,E=0;E<v.length;E++){var C=v[E]&255;A<<=7,A+=C&127,C&128||(w.push(A),A=0)}return A=w.shift(),w.unshift(A%40),w.unshift(A/40>>0),w.join(".")},u.prototype._readTag=function(h){n.ok(h!==void 0);var v=this.peek();if(v===null)return null;if(v!==h)throw t("Expected 0x"+h.toString(16)+": got 0x"+v.toString(16));var w=this.readLength(this._offset+1);if(w===null)return null;if(this.length>4)throw t("Integer too long: "+this.length);if(this.length>this._size-w)return null;this._offset=w;for(var A=this._buf[this._offset],E=0,C=0;C<this.length;C++)E<<=8,E|=this._buf[this._offset++]&255;return(A&128)===128&&C!==4&&(E-=1<<C*8),E>>0},reader=u,reader}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1;var n=requireAssert$1(),e=requireSafer().Buffer,o=requireTypes(),l=requireErrors(),t=l.newInvalidAsn1Error,u={size:1024,growthFactor:8};function h(w,A){n.ok(w),n.equal(typeof w,"object"),n.ok(A),n.equal(typeof A,"object");var E=Object.getOwnPropertyNames(w);return E.forEach(function(C){if(!A[C]){var M=Object.getOwnPropertyDescriptor(w,C);Object.defineProperty(A,C,M)}}),A}function v(w){w=h(u,w||{}),this._buf=e.alloc(w.size||1024),this._size=this._buf.length,this._offset=0,this._options=w,this._seq=[]}return Object.defineProperty(v.prototype,"buffer",{get:function(){if(this._seq.length)throw t(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}}),v.prototype.writeByte=function(w){if(typeof w!="number")throw new TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=w},v.prototype.writeInt=function(w,A){if(typeof w!="number")throw new TypeError("argument must be a Number");typeof A!="number"&&(A=o.Integer);for(var E=4;(!(w&4286578688)||(w&4286578688)===-8388608)&&E>1;)E--,w<<=8;if(E>4)throw t("BER ints cannot be > 0xffffffff");for(this._ensure(2+E),this._buf[this._offset++]=A,this._buf[this._offset++]=E;E-- >0;)this._buf[this._offset++]=(w&4278190080)>>>24,w<<=8},v.prototype.writeNull=function(){this.writeByte(o.Null),this.writeByte(0)},v.prototype.writeEnumeration=function(w,A){if(typeof w!="number")throw new TypeError("argument must be a Number");return typeof A!="number"&&(A=o.Enumeration),this.writeInt(w,A)},v.prototype.writeBoolean=function(w,A){if(typeof w!="boolean")throw new TypeError("argument must be a Boolean");typeof A!="number"&&(A=o.Boolean),this._ensure(3),this._buf[this._offset++]=A,this._buf[this._offset++]=1,this._buf[this._offset++]=w?255:0},v.prototype.writeString=function(w,A){if(typeof w!="string")throw new TypeError("argument must be a string (was: "+typeof w+")");typeof A!="number"&&(A=o.OctetString);var E=e.byteLength(w);this.writeByte(A),this.writeLength(E),E&&(this._ensure(E),this._buf.write(w,this._offset),this._offset+=E)},v.prototype.writeBuffer=function(w,A){if(typeof A!="number")throw new TypeError("tag must be a number");if(!e.isBuffer(w))throw new TypeError("argument must be a buffer");this.writeByte(A),this.writeLength(w.length),this._ensure(w.length),w.copy(this._buf,this._offset,0,w.length),this._offset+=w.length},v.prototype.writeStringArray=function(w){if(!w instanceof Array)throw new TypeError("argument must be an Array[String]");var A=this;w.forEach(function(E){A.writeString(E)})},v.prototype.writeOID=function(w,A){if(typeof w!="string")throw new TypeError("argument must be a string");if(typeof A!="number"&&(A=o.OID),!/^([0-9]+\.){3,}[0-9]+$/.test(w))throw new Error("argument is not a valid OID string");function E(I,j){j<128?I.push(j):j<16384?(I.push(j>>>7|128),I.push(j&127)):j<2097152?(I.push(j>>>14|128),I.push((j>>>7|128)&255),I.push(j&127)):j<268435456?(I.push(j>>>21|128),I.push((j>>>14|128)&255),I.push((j>>>7|128)&255),I.push(j&127)):(I.push((j>>>28|128)&255),I.push((j>>>21|128)&255),I.push((j>>>14|128)&255),I.push((j>>>7|128)&255),I.push(j&127))}var C=w.split("."),M=[];M.push(parseInt(C[0],10)*40+parseInt(C[1],10)),C.slice(2).forEach(function(I){E(M,parseInt(I,10))});var P=this;this._ensure(2+M.length),this.writeByte(A),this.writeLength(M.length),M.forEach(function(I){P.writeByte(I)})},v.prototype.writeLength=function(w){if(typeof w!="number")throw new TypeError("argument must be a Number");if(this._ensure(4),w<=127)this._buf[this._offset++]=w;else if(w<=255)this._buf[this._offset++]=129,this._buf[this._offset++]=w;else if(w<=65535)this._buf[this._offset++]=130,this._buf[this._offset++]=w>>8,this._buf[this._offset++]=w;else if(w<=16777215)this._buf[this._offset++]=131,this._buf[this._offset++]=w>>16,this._buf[this._offset++]=w>>8,this._buf[this._offset++]=w;else throw t("Length too long (> 4 bytes)")},v.prototype.startSequence=function(w){typeof w!="number"&&(w=o.Sequence|o.Constructor),this.writeByte(w),this._seq.push(this._offset),this._ensure(3),this._offset+=3},v.prototype.endSequence=function(){var w=this._seq.pop(),A=w+3,E=this._offset-A;if(E<=127)this._shift(A,E,-2),this._buf[w]=E;else if(E<=255)this._shift(A,E,-1),this._buf[w]=129,this._buf[w+1]=E;else if(E<=65535)this._buf[w]=130,this._buf[w+1]=E>>8,this._buf[w+2]=E;else if(E<=16777215)this._shift(A,E,1),this._buf[w]=131,this._buf[w+1]=E>>16,this._buf[w+2]=E>>8,this._buf[w+3]=E;else throw t("Sequence too long")},v.prototype._shift=function(w,A,E){n.ok(w!==void 0),n.ok(A!==void 0),n.ok(E),this._buf.copy(this._buf,w+E,w,w+A),this._offset+=E},v.prototype._ensure=function(w){if(n.ok(w),this._size-this._offset<w){var A=this._size*this._options.growthFactor;A-this._offset<w&&(A+=w);var E=e.alloc(A);this._buf.copy(E,0,0,this._offset),this._buf=E,this._size=A}},writer=v,writer}var hasRequiredBer;function requireBer(){return hasRequiredBer||(hasRequiredBer=1,function(n){var e=requireErrors(),o=requireTypes(),l=requireReader(),t=requireWriter();n.exports={Reader:l,Writer:t};for(var u in o)o.hasOwnProperty(u)&&(n.exports[u]=o[u]);for(var h in e)e.hasOwnProperty(h)&&(n.exports[h]=e[h])}(ber)),ber.exports}var lib$4,hasRequiredLib$4;function requireLib$4(){if(hasRequiredLib$4)return lib$4;hasRequiredLib$4=1;var n=requireBer();return lib$4={Ber:n,BerReader:n.Reader,BerWriter:n.Writer},lib$4}var jsbn={exports:{}},hasRequiredJsbn;function requireJsbn(){return hasRequiredJsbn||(hasRequiredJsbn=1,function(n,e){(function(){var o,l=0xdeadbeefcafe,t=(l&16777215)==15715070;function u(we,Ae,Re){we!=null&&(typeof we=="number"?this.fromNumber(we,Ae,Re):Ae==null&&typeof we!="string"?this.fromString(we,256):this.fromString(we,Ae))}function h(){return new u(null)}function v(we,Ae,Re,rt,St,Lt){for(;--Lt>=0;){var Ft=Ae*this[we++]+Re[rt]+St;St=Math.floor(Ft/67108864),Re[rt++]=Ft&67108863}return St}function w(we,Ae,Re,rt,St,Lt){for(var Ft=Ae&32767,$t=Ae>>15;--Lt>=0;){var nr=this[we]&32767,gr=this[we++]>>15,fr=$t*nr+gr*Ft;nr=Ft*nr+((fr&32767)<<15)+Re[rt]+(St&1073741823),St=(nr>>>30)+(fr>>>15)+$t*gr+(St>>>30),Re[rt++]=nr&1073741823}return St}function A(we,Ae,Re,rt,St,Lt){for(var Ft=Ae&16383,$t=Ae>>14;--Lt>=0;){var nr=this[we]&16383,gr=this[we++]>>14,fr=$t*nr+gr*Ft;nr=Ft*nr+((fr&16383)<<14)+Re[rt]+St,St=(nr>>28)+(fr>>14)+$t*gr,Re[rt++]=nr&268435455}return St}var E=typeof navigator<"u";E&&t&&navigator.appName=="Microsoft Internet Explorer"?(u.prototype.am=w,o=30):E&&t&&navigator.appName!="Netscape"?(u.prototype.am=v,o=26):(u.prototype.am=A,o=28),u.prototype.DB=o,u.prototype.DM=(1<<o)-1,u.prototype.DV=1<<o;var C=52;u.prototype.FV=Math.pow(2,C),u.prototype.F1=C-o,u.prototype.F2=2*o-C;var M="0123456789abcdefghijklmnopqrstuvwxyz",P=new Array,I,j;for(I=48,j=0;j<=9;++j)P[I++]=j;for(I=97,j=10;j<36;++j)P[I++]=j;for(I=65,j=10;j<36;++j)P[I++]=j;function B(we){return M.charAt(we)}function F(we,Ae){var Re=P[we.charCodeAt(Ae)];return Re??-1}function N(we){for(var Ae=this.t-1;Ae>=0;--Ae)we[Ae]=this[Ae];we.t=this.t,we.s=this.s}function ee(we){this.t=1,this.s=we<0?-1:0,we>0?this[0]=we:we<-1?this[0]=we+this.DV:this.t=0}function Z(we){var Ae=h();return Ae.fromInt(we),Ae}function re(we,Ae){var Re;if(Ae==16)Re=4;else if(Ae==8)Re=3;else if(Ae==256)Re=8;else if(Ae==2)Re=1;else if(Ae==32)Re=5;else if(Ae==4)Re=2;else{this.fromRadix(we,Ae);return}this.t=0,this.s=0;for(var rt=we.length,St=!1,Lt=0;--rt>=0;){var Ft=Re==8?we[rt]&255:F(we,rt);if(Ft<0){we.charAt(rt)=="-"&&(St=!0);continue}St=!1,Lt==0?this[this.t++]=Ft:Lt+Re>this.DB?(this[this.t-1]|=(Ft&(1<<this.DB-Lt)-1)<<Lt,this[this.t++]=Ft>>this.DB-Lt):this[this.t-1]|=Ft<<Lt,Lt+=Re,Lt>=this.DB&&(Lt-=this.DB)}Re==8&&we[0]&128&&(this.s=-1,Lt>0&&(this[this.t-1]|=(1<<this.DB-Lt)-1<<Lt)),this.clamp(),St&&u.ZERO.subTo(this,this)}function fe(){for(var we=this.s&this.DM;this.t>0&&this[this.t-1]==we;)--this.t}function V(we){if(this.s<0)return"-"+this.negate().toString(we);var Ae;if(we==16)Ae=4;else if(we==8)Ae=3;else if(we==2)Ae=1;else if(we==32)Ae=5;else if(we==4)Ae=2;else return this.toRadix(we);var Re=(1<<Ae)-1,rt,St=!1,Lt="",Ft=this.t,$t=this.DB-Ft*this.DB%Ae;if(Ft-- >0)for($t<this.DB&&(rt=this[Ft]>>$t)>0&&(St=!0,Lt=B(rt));Ft>=0;)$t<Ae?(rt=(this[Ft]&(1<<$t)-1)<<Ae-$t,rt|=this[--Ft]>>($t+=this.DB-Ae)):(rt=this[Ft]>>($t-=Ae)&Re,$t<=0&&($t+=this.DB,--Ft)),rt>0&&(St=!0),St&&(Lt+=B(rt));return St?Lt:"0"}function le(){var we=h();return u.ZERO.subTo(this,we),we}function he(){return this.s<0?this.negate():this}function ye(we){var Ae=this.s-we.s;if(Ae!=0)return Ae;var Re=this.t;if(Ae=Re-we.t,Ae!=0)return this.s<0?-Ae:Ae;for(;--Re>=0;)if((Ae=this[Re]-we[Re])!=0)return Ae;return 0}function L(we){var Ae=1,Re;return(Re=we>>>16)!=0&&(we=Re,Ae+=16),(Re=we>>8)!=0&&(we=Re,Ae+=8),(Re=we>>4)!=0&&(we=Re,Ae+=4),(Re=we>>2)!=0&&(we=Re,Ae+=2),(Re=we>>1)!=0&&(we=Re,Ae+=1),Ae}function p(){return this.t<=0?0:this.DB*(this.t-1)+L(this[this.t-1]^this.s&this.DM)}function y(we,Ae){var Re;for(Re=this.t-1;Re>=0;--Re)Ae[Re+we]=this[Re];for(Re=we-1;Re>=0;--Re)Ae[Re]=0;Ae.t=this.t+we,Ae.s=this.s}function S(we,Ae){for(var Re=we;Re<this.t;++Re)Ae[Re-we]=this[Re];Ae.t=Math.max(this.t-we,0),Ae.s=this.s}function c(we,Ae){var Re=we%this.DB,rt=this.DB-Re,St=(1<<rt)-1,Lt=Math.floor(we/this.DB),Ft=this.s<<Re&this.DM,$t;for($t=this.t-1;$t>=0;--$t)Ae[$t+Lt+1]=this[$t]>>rt|Ft,Ft=(this[$t]&St)<<Re;for($t=Lt-1;$t>=0;--$t)Ae[$t]=0;Ae[Lt]=Ft,Ae.t=this.t+Lt+1,Ae.s=this.s,Ae.clamp()}function m(we,Ae){Ae.s=this.s;var Re=Math.floor(we/this.DB);if(Re>=this.t){Ae.t=0;return}var rt=we%this.DB,St=this.DB-rt,Lt=(1<<rt)-1;Ae[0]=this[Re]>>rt;for(var Ft=Re+1;Ft<this.t;++Ft)Ae[Ft-Re-1]|=(this[Ft]&Lt)<<St,Ae[Ft-Re]=this[Ft]>>rt;rt>0&&(Ae[this.t-Re-1]|=(this.s&Lt)<<St),Ae.t=this.t-Re,Ae.clamp()}function x(we,Ae){for(var Re=0,rt=0,St=Math.min(we.t,this.t);Re<St;)rt+=this[Re]-we[Re],Ae[Re++]=rt&this.DM,rt>>=this.DB;if(we.t<this.t){for(rt-=we.s;Re<this.t;)rt+=this[Re],Ae[Re++]=rt&this.DM,rt>>=this.DB;rt+=this.s}else{for(rt+=this.s;Re<we.t;)rt-=we[Re],Ae[Re++]=rt&this.DM,rt>>=this.DB;rt-=we.s}Ae.s=rt<0?-1:0,rt<-1?Ae[Re++]=this.DV+rt:rt>0&&(Ae[Re++]=rt),Ae.t=Re,Ae.clamp()}function T(we,Ae){var Re=this.abs(),rt=we.abs(),St=Re.t;for(Ae.t=St+rt.t;--St>=0;)Ae[St]=0;for(St=0;St<rt.t;++St)Ae[St+Re.t]=Re.am(0,rt[St],Ae,St,0,Re.t);Ae.s=0,Ae.clamp(),this.s!=we.s&&u.ZERO.subTo(Ae,Ae)}function b(we){for(var Ae=this.abs(),Re=we.t=2*Ae.t;--Re>=0;)we[Re]=0;for(Re=0;Re<Ae.t-1;++Re){var rt=Ae.am(Re,Ae[Re],we,2*Re,0,1);(we[Re+Ae.t]+=Ae.am(Re+1,2*Ae[Re],we,2*Re+1,rt,Ae.t-Re-1))>=Ae.DV&&(we[Re+Ae.t]-=Ae.DV,we[Re+Ae.t+1]=1)}we.t>0&&(we[we.t-1]+=Ae.am(Re,Ae[Re],we,2*Re,0,1)),we.s=0,we.clamp()}function d(we,Ae,Re){var rt=we.abs();if(!(rt.t<=0)){var St=this.abs();if(St.t<rt.t){Ae!=null&&Ae.fromInt(0),Re!=null&&this.copyTo(Re);return}Re==null&&(Re=h());var Lt=h(),Ft=this.s,$t=we.s,nr=this.DB-L(rt[rt.t-1]);nr>0?(rt.lShiftTo(nr,Lt),St.lShiftTo(nr,Re)):(rt.copyTo(Lt),St.copyTo(Re));var gr=Lt.t,fr=Lt[gr-1];if(fr!=0){var ar=fr*(1<<this.F1)+(gr>1?Lt[gr-2]>>this.F2:0),Ur=this.FV/ar,Er=(1<<this.F1)/ar,Pr=1<<this.F2,_r=Re.t,ti=_r-gr,Qr=Ae??h();for(Lt.dlShiftTo(ti,Qr),Re.compareTo(Qr)>=0&&(Re[Re.t++]=1,Re.subTo(Qr,Re)),u.ONE.dlShiftTo(gr,Qr),Qr.subTo(Lt,Lt);Lt.t<gr;)Lt[Lt.t++]=0;for(;--ti>=0;){var ri=Re[--_r]==fr?this.DM:Math.floor(Re[_r]*Ur+(Re[_r-1]+Pr)*Er);if((Re[_r]+=Lt.am(0,ri,Re,ti,0,gr))<ri)for(Lt.dlShiftTo(ti,Qr),Re.subTo(Qr,Re);Re[_r]<--ri;)Re.subTo(Qr,Re)}Ae!=null&&(Re.drShiftTo(gr,Ae),Ft!=$t&&u.ZERO.subTo(Ae,Ae)),Re.t=gr,Re.clamp(),nr>0&&Re.rShiftTo(nr,Re),Ft<0&&u.ZERO.subTo(Re,Re)}}}function k(we){var Ae=h();return this.abs().divRemTo(we,null,Ae),this.s<0&&Ae.compareTo(u.ZERO)>0&&we.subTo(Ae,Ae),Ae}function D(we){this.m=we}function O(we){return we.s<0||we.compareTo(this.m)>=0?we.mod(this.m):we}function Q(we){return we}function J(we){we.divRemTo(this.m,null,we)}function X(we,Ae,Re){we.multiplyTo(Ae,Re),this.reduce(Re)}function U(we,Ae){we.squareTo(Ae),this.reduce(Ae)}D.prototype.convert=O,D.prototype.revert=Q,D.prototype.reduce=J,D.prototype.mulTo=X,D.prototype.sqrTo=U;function z(){if(this.t<1)return 0;var we=this[0];if(!(we&1))return 0;var Ae=we&3;return Ae=Ae*(2-(we&15)*Ae)&15,Ae=Ae*(2-(we&255)*Ae)&255,Ae=Ae*(2-((we&65535)*Ae&65535))&65535,Ae=Ae*(2-we*Ae%this.DV)%this.DV,Ae>0?this.DV-Ae:-Ae}function ie(we){this.m=we,this.mp=we.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<we.DB-15)-1,this.mt2=2*we.t}function de(we){var Ae=h();return we.abs().dlShiftTo(this.m.t,Ae),Ae.divRemTo(this.m,null,Ae),we.s<0&&Ae.compareTo(u.ZERO)>0&&this.m.subTo(Ae,Ae),Ae}function me(we){var Ae=h();return we.copyTo(Ae),this.reduce(Ae),Ae}function pe(we){for(;we.t<=this.mt2;)we[we.t++]=0;for(var Ae=0;Ae<this.m.t;++Ae){var Re=we[Ae]&32767,rt=Re*this.mpl+((Re*this.mph+(we[Ae]>>15)*this.mpl&this.um)<<15)&we.DM;for(Re=Ae+this.m.t,we[Re]+=this.m.am(0,rt,we,Ae,0,this.m.t);we[Re]>=we.DV;)we[Re]-=we.DV,we[++Re]++}we.clamp(),we.drShiftTo(this.m.t,we),we.compareTo(this.m)>=0&&we.subTo(this.m,we)}function qe(we,Ae){we.squareTo(Ae),this.reduce(Ae)}function mt(we,Ae,Re){we.multiplyTo(Ae,Re),this.reduce(Re)}ie.prototype.convert=de,ie.prototype.revert=me,ie.prototype.reduce=pe,ie.prototype.mulTo=mt,ie.prototype.sqrTo=qe;function st(){return(this.t>0?this[0]&1:this.s)==0}function dt(we,Ae){if(we>4294967295||we<1)return u.ONE;var Re=h(),rt=h(),St=Ae.convert(this),Lt=L(we)-1;for(St.copyTo(Re);--Lt>=0;)if(Ae.sqrTo(Re,rt),(we&1<<Lt)>0)Ae.mulTo(rt,St,Re);else{var Ft=Re;Re=rt,rt=Ft}return Ae.revert(Re)}function Tt(we,Ae){var Re;return we<256||Ae.isEven()?Re=new D(Ae):Re=new ie(Ae),this.exp(we,Re)}u.prototype.copyTo=N,u.prototype.fromInt=ee,u.prototype.fromString=re,u.prototype.clamp=fe,u.prototype.dlShiftTo=y,u.prototype.drShiftTo=S,u.prototype.lShiftTo=c,u.prototype.rShiftTo=m,u.prototype.subTo=x,u.prototype.multiplyTo=T,u.prototype.squareTo=b,u.prototype.divRemTo=d,u.prototype.invDigit=z,u.prototype.isEven=st,u.prototype.exp=dt,u.prototype.toString=V,u.prototype.negate=le,u.prototype.abs=he,u.prototype.compareTo=ye,u.prototype.bitLength=p,u.prototype.mod=k,u.prototype.modPowInt=Tt,u.ZERO=Z(0),u.ONE=Z(1);function lt(){var we=h();return this.copyTo(we),we}function Je(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ht(){return this.t==0?this.s:this[0]<<24>>24}function at(){return this.t==0?this.s:this[0]<<16>>16}function bt(we){return Math.floor(Math.LN2*this.DB/Math.log(we))}function jt(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ge(we){if(we==null&&(we=10),this.signum()==0||we<2||we>36)return"0";var Ae=this.chunkSize(we),Re=Math.pow(we,Ae),rt=Z(Re),St=h(),Lt=h(),Ft="";for(this.divRemTo(rt,St,Lt);St.signum()>0;)Ft=(Re+Lt.intValue()).toString(we).substr(1)+Ft,St.divRemTo(rt,St,Lt);return Lt.intValue().toString(we)+Ft}function Qe(we,Ae){this.fromInt(0),Ae==null&&(Ae=10);for(var Re=this.chunkSize(Ae),rt=Math.pow(Ae,Re),St=!1,Lt=0,Ft=0,$t=0;$t<we.length;++$t){var nr=F(we,$t);if(nr<0){we.charAt($t)=="-"&&this.signum()==0&&(St=!0);continue}Ft=Ae*Ft+nr,++Lt>=Re&&(this.dMultiply(rt),this.dAddOffset(Ft,0),Lt=0,Ft=0)}Lt>0&&(this.dMultiply(Math.pow(Ae,Lt)),this.dAddOffset(Ft,0)),St&&u.ZERO.subTo(this,this)}function Wt(we,Ae,Re){if(typeof Ae=="number")if(we<2)this.fromInt(1);else for(this.fromNumber(we,Re),this.testBit(we-1)||this.bitwiseTo(u.ONE.shiftLeft(we-1),We,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(Ae);)this.dAddOffset(2,0),this.bitLength()>we&&this.subTo(u.ONE.shiftLeft(we-1),this);else{var rt=new Array,St=we&7;rt.length=(we>>3)+1,Ae.nextBytes(rt),St>0?rt[0]&=(1<<St)-1:rt[0]=0,this.fromString(rt,256)}}function Et(){var we=this.t,Ae=new Array;Ae[0]=this.s;var Re=this.DB-we*this.DB%8,rt,St=0;if(we-- >0)for(Re<this.DB&&(rt=this[we]>>Re)!=(this.s&this.DM)>>Re&&(Ae[St++]=rt|this.s<<this.DB-Re);we>=0;)Re<8?(rt=(this[we]&(1<<Re)-1)<<8-Re,rt|=this[--we]>>(Re+=this.DB-8)):(rt=this[we]>>(Re-=8)&255,Re<=0&&(Re+=this.DB,--we)),rt&128&&(rt|=-256),St==0&&(this.s&128)!=(rt&128)&&++St,(St>0||rt!=this.s)&&(Ae[St++]=rt);return Ae}function Ct(we){return this.compareTo(we)==0}function Kt(we){return this.compareTo(we)<0?this:we}function Me(we){return this.compareTo(we)>0?this:we}function te(we,Ae,Re){var rt,St,Lt=Math.min(we.t,this.t);for(rt=0;rt<Lt;++rt)Re[rt]=Ae(this[rt],we[rt]);if(we.t<this.t){for(St=we.s&this.DM,rt=Lt;rt<this.t;++rt)Re[rt]=Ae(this[rt],St);Re.t=this.t}else{for(St=this.s&this.DM,rt=Lt;rt<we.t;++rt)Re[rt]=Ae(St,we[rt]);Re.t=we.t}Re.s=Ae(this.s,we.s),Re.clamp()}function _e(we,Ae){return we&Ae}function je(we){var Ae=h();return this.bitwiseTo(we,_e,Ae),Ae}function We(we,Ae){return we|Ae}function et(we){var Ae=h();return this.bitwiseTo(we,We,Ae),Ae}function Ye(we,Ae){return we^Ae}function De(we){var Ae=h();return this.bitwiseTo(we,Ye,Ae),Ae}function Ht(we,Ae){return we&~Ae}function Mt(we){var Ae=h();return this.bitwiseTo(we,Ht,Ae),Ae}function ge(){for(var we=h(),Ae=0;Ae<this.t;++Ae)we[Ae]=this.DM&~this[Ae];return we.t=this.t,we.s=~this.s,we}function Dt(we){var Ae=h();return we<0?this.rShiftTo(-we,Ae):this.lShiftTo(we,Ae),Ae}function yt(we){var Ae=h();return we<0?this.lShiftTo(-we,Ae):this.rShiftTo(we,Ae),Ae}function Ne(we){if(we==0)return-1;var Ae=0;return we&65535||(we>>=16,Ae+=16),we&255||(we>>=8,Ae+=8),we&15||(we>>=4,Ae+=4),we&3||(we>>=2,Ae+=2),we&1||++Ae,Ae}function _t(){for(var we=0;we<this.t;++we)if(this[we]!=0)return we*this.DB+Ne(this[we]);return this.s<0?this.t*this.DB:-1}function pt(we){for(var Ae=0;we!=0;)we&=we-1,++Ae;return Ae}function Bt(){for(var we=0,Ae=this.s&this.DM,Re=0;Re<this.t;++Re)we+=pt(this[Re]^Ae);return we}function ur(we){var Ae=Math.floor(we/this.DB);return Ae>=this.t?this.s!=0:(this[Ae]&1<<we%this.DB)!=0}function kt(we,Ae){var Re=u.ONE.shiftLeft(we);return this.bitwiseTo(Re,Ae,Re),Re}function Ut(we){return this.changeBit(we,We)}function Wr(we){return this.changeBit(we,Ht)}function zt(we){return this.changeBit(we,Ye)}function Qt(we,Ae){for(var Re=0,rt=0,St=Math.min(we.t,this.t);Re<St;)rt+=this[Re]+we[Re],Ae[Re++]=rt&this.DM,rt>>=this.DB;if(we.t<this.t){for(rt+=we.s;Re<this.t;)rt+=this[Re],Ae[Re++]=rt&this.DM,rt>>=this.DB;rt+=this.s}else{for(rt+=this.s;Re<we.t;)rt+=we[Re],Ae[Re++]=rt&this.DM,rt>>=this.DB;rt+=we.s}Ae.s=rt<0?-1:0,rt>0?Ae[Re++]=rt:rt<-1&&(Ae[Re++]=this.DV+rt),Ae.t=Re,Ae.clamp()}function $e(we){var Ae=h();return this.addTo(we,Ae),Ae}function be(we){var Ae=h();return this.subTo(we,Ae),Ae}function ve(we){var Ae=h();return this.multiplyTo(we,Ae),Ae}function se(){var we=h();return this.squareTo(we),we}function Pe(we){var Ae=h();return this.divRemTo(we,Ae,null),Ae}function ze(we){var Ae=h();return this.divRemTo(we,null,Ae),Ae}function xt(we){var Ae=h(),Re=h();return this.divRemTo(we,Ae,Re),new Array(Ae,Re)}function ot(we){this[this.t]=this.am(0,we-1,this,0,0,this.t),++this.t,this.clamp()}function wt(we,Ae){if(we!=0){for(;this.t<=Ae;)this[this.t++]=0;for(this[Ae]+=we;this[Ae]>=this.DV;)this[Ae]-=this.DV,++Ae>=this.t&&(this[this.t++]=0),++this[Ae]}}function Yt(){}function Jt(we){return we}function wr(we,Ae,Re){we.multiplyTo(Ae,Re)}function lr(we,Ae){we.squareTo(Ae)}Yt.prototype.convert=Jt,Yt.prototype.revert=Jt,Yt.prototype.mulTo=wr,Yt.prototype.sqrTo=lr;function Rr(we){return this.exp(we,new Yt)}function vr(we,Ae,Re){var rt=Math.min(this.t+we.t,Ae);for(Re.s=0,Re.t=rt;rt>0;)Re[--rt]=0;var St;for(St=Re.t-this.t;rt<St;++rt)Re[rt+this.t]=this.am(0,we[rt],Re,rt,0,this.t);for(St=Math.min(we.t,Ae);rt<St;++rt)this.am(0,we[rt],Re,rt,0,Ae-rt);Re.clamp()}function dr(we,Ae,Re){--Ae;var rt=Re.t=this.t+we.t-Ae;for(Re.s=0;--rt>=0;)Re[rt]=0;for(rt=Math.max(Ae-this.t,0);rt<we.t;++rt)Re[this.t+rt-Ae]=this.am(Ae-rt,we[rt],Re,0,0,this.t+rt-Ae);Re.clamp(),Re.drShiftTo(1,Re)}function Ir(we){this.r2=h(),this.q3=h(),u.ONE.dlShiftTo(2*we.t,this.r2),this.mu=this.r2.divide(we),this.m=we}function kr(we){if(we.s<0||we.t>2*this.m.t)return we.mod(this.m);if(we.compareTo(this.m)<0)return we;var Ae=h();return we.copyTo(Ae),this.reduce(Ae),Ae}function Fr(we){return we}function jr(we){for(we.drShiftTo(this.m.t-1,this.r2),we.t>this.m.t+1&&(we.t=this.m.t+1,we.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);we.compareTo(this.r2)<0;)we.dAddOffset(1,this.m.t+1);for(we.subTo(this.r2,we);we.compareTo(this.m)>=0;)we.subTo(this.m,we)}function Cr(we,Ae){we.squareTo(Ae),this.reduce(Ae)}function Lr(we,Ae,Re){we.multiplyTo(Ae,Re),this.reduce(Re)}Ir.prototype.convert=kr,Ir.prototype.revert=Fr,Ir.prototype.reduce=jr,Ir.prototype.mulTo=Lr,Ir.prototype.sqrTo=Cr;function Ar(we,Ae){var Re=we.bitLength(),rt,St=Z(1),Lt;if(Re<=0)return St;Re<18?rt=1:Re<48?rt=3:Re<144?rt=4:Re<768?rt=5:rt=6,Re<8?Lt=new D(Ae):Ae.isEven()?Lt=new Ir(Ae):Lt=new ie(Ae);var Ft=new Array,$t=3,nr=rt-1,gr=(1<<rt)-1;if(Ft[1]=Lt.convert(this),rt>1){var fr=h();for(Lt.sqrTo(Ft[1],fr);$t<=gr;)Ft[$t]=h(),Lt.mulTo(fr,Ft[$t-2],Ft[$t]),$t+=2}var ar=we.t-1,Ur,Er=!0,Pr=h(),_r;for(Re=L(we[ar])-1;ar>=0;){for(Re>=nr?Ur=we[ar]>>Re-nr&gr:(Ur=(we[ar]&(1<<Re+1)-1)<<nr-Re,ar>0&&(Ur|=we[ar-1]>>this.DB+Re-nr)),$t=rt;!(Ur&1);)Ur>>=1,--$t;if((Re-=$t)<0&&(Re+=this.DB,--ar),Er)Ft[Ur].copyTo(St),Er=!1;else{for(;$t>1;)Lt.sqrTo(St,Pr),Lt.sqrTo(Pr,St),$t-=2;$t>0?Lt.sqrTo(St,Pr):(_r=St,St=Pr,Pr=_r),Lt.mulTo(Pr,Ft[Ur],St)}for(;ar>=0&&!(we[ar]&1<<Re);)Lt.sqrTo(St,Pr),_r=St,St=Pr,Pr=_r,--Re<0&&(Re=this.DB-1,--ar)}return Lt.revert(St)}function Tr(we){var Ae=this.s<0?this.negate():this.clone(),Re=we.s<0?we.negate():we.clone();if(Ae.compareTo(Re)<0){var rt=Ae;Ae=Re,Re=rt}var St=Ae.getLowestSetBit(),Lt=Re.getLowestSetBit();if(Lt<0)return Ae;for(St<Lt&&(Lt=St),Lt>0&&(Ae.rShiftTo(Lt,Ae),Re.rShiftTo(Lt,Re));Ae.signum()>0;)(St=Ae.getLowestSetBit())>0&&Ae.rShiftTo(St,Ae),(St=Re.getLowestSetBit())>0&&Re.rShiftTo(St,Re),Ae.compareTo(Re)>=0?(Ae.subTo(Re,Ae),Ae.rShiftTo(1,Ae)):(Re.subTo(Ae,Re),Re.rShiftTo(1,Re));return Lt>0&&Re.lShiftTo(Lt,Re),Re}function Sr(we){if(we<=0)return 0;var Ae=this.DV%we,Re=this.s<0?we-1:0;if(this.t>0)if(Ae==0)Re=this[0]%we;else for(var rt=this.t-1;rt>=0;--rt)Re=(Ae*Re+this[rt])%we;return Re}function rr(we){var Ae=we.isEven();if(this.isEven()&&Ae||we.signum()==0)return u.ZERO;for(var Re=we.clone(),rt=this.clone(),St=Z(1),Lt=Z(0),Ft=Z(0),$t=Z(1);Re.signum()!=0;){for(;Re.isEven();)Re.rShiftTo(1,Re),Ae?((!St.isEven()||!Lt.isEven())&&(St.addTo(this,St),Lt.subTo(we,Lt)),St.rShiftTo(1,St)):Lt.isEven()||Lt.subTo(we,Lt),Lt.rShiftTo(1,Lt);for(;rt.isEven();)rt.rShiftTo(1,rt),Ae?((!Ft.isEven()||!$t.isEven())&&(Ft.addTo(this,Ft),$t.subTo(we,$t)),Ft.rShiftTo(1,Ft)):$t.isEven()||$t.subTo(we,$t),$t.rShiftTo(1,$t);Re.compareTo(rt)>=0?(Re.subTo(rt,Re),Ae&&St.subTo(Ft,St),Lt.subTo($t,Lt)):(rt.subTo(Re,rt),Ae&&Ft.subTo(St,Ft),$t.subTo(Lt,$t))}if(rt.compareTo(u.ONE)!=0)return u.ZERO;if($t.compareTo(we)>=0)return $t.subtract(we);if($t.signum()<0)$t.addTo(we,$t);else return $t;return $t.signum()<0?$t.add(we):$t}var Nt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Gt=(1<<26)/Nt[Nt.length-1];function xr(we){var Ae,Re=this.abs();if(Re.t==1&&Re[0]<=Nt[Nt.length-1]){for(Ae=0;Ae<Nt.length;++Ae)if(Re[0]==Nt[Ae])return!0;return!1}if(Re.isEven())return!1;for(Ae=1;Ae<Nt.length;){for(var rt=Nt[Ae],St=Ae+1;St<Nt.length&&rt<Gt;)rt*=Nt[St++];for(rt=Re.modInt(rt);Ae<St;)if(rt%Nt[Ae++]==0)return!1}return Re.millerRabin(we)}function pr(we){var Ae=this.subtract(u.ONE),Re=Ae.getLowestSetBit();if(Re<=0)return!1;var rt=Ae.shiftRight(Re);we=we+1>>1,we>Nt.length&&(we=Nt.length);for(var St=h(),Lt=0;Lt<we;++Lt){St.fromInt(Nt[Math.floor(Math.random()*Nt.length)]);var Ft=St.modPow(rt,this);if(Ft.compareTo(u.ONE)!=0&&Ft.compareTo(Ae)!=0){for(var $t=1;$t++<Re&&Ft.compareTo(Ae)!=0;)if(Ft=Ft.modPowInt(2,this),Ft.compareTo(u.ONE)==0)return!1;if(Ft.compareTo(Ae)!=0)return!1}}return!0}u.prototype.chunkSize=bt,u.prototype.toRadix=Ge,u.prototype.fromRadix=Qe,u.prototype.fromNumber=Wt,u.prototype.bitwiseTo=te,u.prototype.changeBit=kt,u.prototype.addTo=Qt,u.prototype.dMultiply=ot,u.prototype.dAddOffset=wt,u.prototype.multiplyLowerTo=vr,u.prototype.multiplyUpperTo=dr,u.prototype.modInt=Sr,u.prototype.millerRabin=pr,u.prototype.clone=lt,u.prototype.intValue=Je,u.prototype.byteValue=ht,u.prototype.shortValue=at,u.prototype.signum=jt,u.prototype.toByteArray=Et,u.prototype.equals=Ct,u.prototype.min=Kt,u.prototype.max=Me,u.prototype.and=je,u.prototype.or=et,u.prototype.xor=De,u.prototype.andNot=Mt,u.prototype.not=ge,u.prototype.shiftLeft=Dt,u.prototype.shiftRight=yt,u.prototype.getLowestSetBit=_t,u.prototype.bitCount=Bt,u.prototype.testBit=ur,u.prototype.setBit=Ut,u.prototype.clearBit=Wr,u.prototype.flipBit=zt,u.prototype.add=$e,u.prototype.subtract=be,u.prototype.multiply=ve,u.prototype.divide=Pe,u.prototype.remainder=ze,u.prototype.divideAndRemainder=xt,u.prototype.modPow=Ar,u.prototype.modInverse=rr,u.prototype.pow=Rr,u.prototype.gcd=Tr,u.prototype.isProbablePrime=xr,u.prototype.square=se,u.prototype.Barrett=Ir;var tr,br,Nr;function Yr(we){br[Nr++]^=we&255,br[Nr++]^=we>>8&255,br[Nr++]^=we>>16&255,br[Nr++]^=we>>24&255,Nr>=ct&&(Nr-=ct)}function ei(){Yr(new Date().getTime())}if(br==null){br=new Array,Nr=0;var Hr;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var Pt=new Uint8Array(32);for(window.crypto.getRandomValues(Pt),Hr=0;Hr<32;++Hr)br[Nr++]=Pt[Hr]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Jr=window.crypto.random(32);for(Hr=0;Hr<Jr.length;++Hr)br[Nr++]=Jr.charCodeAt(Hr)&255}}for(;Nr<ct;)Hr=Math.floor(65536*Math.random()),br[Nr++]=Hr>>>8,br[Nr++]=Hr&255;Nr=0,ei()}function Xr(){if(tr==null){for(ei(),tr=Xe(),tr.init(br),Nr=0;Nr<br.length;++Nr)br[Nr]=0;Nr=0}return tr.next()}function fi(we){var Ae;for(Ae=0;Ae<we.length;++Ae)we[Ae]=Xr()}function ce(){}ce.prototype.nextBytes=fi;function xe(){this.i=0,this.j=0,this.S=new Array}function Be(we){var Ae,Re,rt;for(Ae=0;Ae<256;++Ae)this.S[Ae]=Ae;for(Re=0,Ae=0;Ae<256;++Ae)Re=Re+this.S[Ae]+we[Ae%we.length]&255,rt=this.S[Ae],this.S[Ae]=this.S[Re],this.S[Re]=rt;this.i=0,this.j=0}function Fe(){var we;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,we=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=we,this.S[we+this.S[this.i]&255]}xe.prototype.init=Be,xe.prototype.next=Fe;function Xe(){return new xe}var ct=256;u.SecureRandom=ce,u.BigInteger=u,n.exports=u}).call(commonjsGlobal$1)}(jsbn)),jsbn.exports}var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var n=requireJsbn().BigInteger,e=n.prototype.Barrett;function o(c,m){this.x=m,this.q=c}function l(c){return c==this?!0:this.q.equals(c.q)&&this.x.equals(c.x)}function t(){return this.x}function u(){return new o(this.q,this.x.negate().mod(this.q))}function h(c){return new o(this.q,this.x.add(c.toBigInteger()).mod(this.q))}function v(c){return new o(this.q,this.x.subtract(c.toBigInteger()).mod(this.q))}function w(c){return new o(this.q,this.x.multiply(c.toBigInteger()).mod(this.q))}function A(){return new o(this.q,this.x.square().mod(this.q))}function E(c){return new o(this.q,this.x.multiply(c.toBigInteger().modInverse(this.q)).mod(this.q))}o.prototype.equals=l,o.prototype.toBigInteger=t,o.prototype.negate=u,o.prototype.add=h,o.prototype.subtract=v,o.prototype.multiply=w,o.prototype.square=A,o.prototype.divide=E;function C(c,m,x,T){this.curve=c,this.x=m,this.y=x,T==null?this.z=n.ONE:this.z=T,this.zinv=null}function M(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var c=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(c),this.curve.fromBigInteger(c)}function P(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var c=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(c),this.curve.fromBigInteger(c)}function I(c){if(c==this)return!0;if(this.isInfinity())return c.isInfinity();if(c.isInfinity())return this.isInfinity();var m,x;return m=c.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(c.z)).mod(this.curve.q),m.equals(n.ZERO)?(x=c.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(c.z)).mod(this.curve.q),x.equals(n.ZERO)):!1}function j(){return this.x==null&&this.y==null?!0:this.z.equals(n.ZERO)&&!this.y.toBigInteger().equals(n.ZERO)}function B(){return new C(this.curve,this.x,this.y.negate(),this.z)}function F(c){if(this.isInfinity())return c;if(c.isInfinity())return this;var m=c.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(c.z)).mod(this.curve.q),x=c.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(c.z)).mod(this.curve.q);if(n.ZERO.equals(x))return n.ZERO.equals(m)?this.twice():this.curve.getInfinity();var T=new n("3"),b=this.x.toBigInteger(),d=this.y.toBigInteger();c.x.toBigInteger(),c.y.toBigInteger();var k=x.square(),D=k.multiply(x),O=b.multiply(k),Q=m.square().multiply(this.z),J=Q.subtract(O.shiftLeft(1)).multiply(c.z).subtract(D).multiply(x).mod(this.curve.q),X=O.multiply(T).multiply(m).subtract(d.multiply(D)).subtract(Q.multiply(m)).multiply(c.z).add(m.multiply(D)).mod(this.curve.q),U=D.multiply(this.z).multiply(c.z).mod(this.curve.q);return new C(this.curve,this.curve.fromBigInteger(J),this.curve.fromBigInteger(X),U)}function N(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var c=new n("3"),m=this.x.toBigInteger(),x=this.y.toBigInteger(),T=x.multiply(this.z),b=T.multiply(x).mod(this.curve.q),d=this.curve.a.toBigInteger(),k=m.square().multiply(c);n.ZERO.equals(d)||(k=k.add(this.z.square().multiply(d))),k=k.mod(this.curve.q);var D=k.square().subtract(m.shiftLeft(3).multiply(b)).shiftLeft(1).multiply(T).mod(this.curve.q),O=k.multiply(c).multiply(m).subtract(b.shiftLeft(1)).shiftLeft(2).multiply(b).subtract(k.square().multiply(k)).mod(this.curve.q),Q=T.square().multiply(T).shiftLeft(3).mod(this.curve.q);return new C(this.curve,this.curve.fromBigInteger(D),this.curve.fromBigInteger(O),Q)}function ee(c){if(this.isInfinity())return this;if(c.signum()==0)return this.curve.getInfinity();var m=c,x=m.multiply(new n("3")),T=this.negate(),b=this,d;for(d=x.bitLength()-2;d>0;--d){b=b.twice();var k=x.testBit(d),D=m.testBit(d);k!=D&&(b=b.add(k?this:T))}return b}function Z(c,m,x){var T;c.bitLength()>x.bitLength()?T=c.bitLength()-1:T=x.bitLength()-1;for(var b=this.curve.getInfinity(),d=this.add(m);T>=0;)b=b.twice(),c.testBit(T)?x.testBit(T)?b=b.add(d):b=b.add(this):x.testBit(T)&&(b=b.add(m)),--T;return b}C.prototype.getX=M,C.prototype.getY=P,C.prototype.equals=I,C.prototype.isInfinity=j,C.prototype.negate=B,C.prototype.add=F,C.prototype.twice=N,C.prototype.multiply=ee,C.prototype.multiplyTwo=Z;function re(c,m,x){this.q=c,this.a=this.fromBigInteger(m),this.b=this.fromBigInteger(x),this.infinity=new C(this,null,null),this.reducer=new e(this.q)}function fe(){return this.q}function V(){return this.a}function le(){return this.b}function he(c){return c==this?!0:this.q.equals(c.q)&&this.a.equals(c.a)&&this.b.equals(c.b)}function ye(){return this.infinity}function L(c){return new o(this.q,c)}function p(c){this.reducer.reduce(c)}function y(c){if(c.isInfinity())return"00";var m=c.getX().toBigInteger().toString(16),x=c.getY().toBigInteger().toString(16),T=this.getQ().toString(16).length;for(T%2!=0&&T++;m.length<T;)m="0"+m;for(;x.length<T;)x="0"+x;return"04"+m+x}re.prototype.getQ=fe,re.prototype.getA=V,re.prototype.getB=le,re.prototype.equals=he,re.prototype.getInfinity=ye,re.prototype.fromBigInteger=L,re.prototype.reduce=p,re.prototype.encodePointHex=y,re.prototype.decodePointHex=function(c){var m;switch(parseInt(c.substr(0,2),16)){case 0:return this.infinity;case 2:m=!1;case 3:m==null&&(m=!0);var k=c.length-2,D=c.substr(2,k),x=this.fromBigInteger(new n(D,16)),T=x.multiply(x.square().add(this.getA())).add(this.getB()),b=T.sqrt();if(b==null)throw"Invalid point compression";var d=b.toBigInteger();return d.testBit(0)!=m&&(b=this.fromBigInteger(this.getQ().subtract(d))),new C(this,x,b);case 4:case 6:case 7:var k=(c.length-2)/2,D=c.substr(2,k),O=c.substr(k+2,k);return new C(this,this.fromBigInteger(new n(D,16)),this.fromBigInteger(new n(O,16)));default:return null}},re.prototype.encodeCompressedPointHex=function(c){if(c.isInfinity())return"00";var m=c.getX().toBigInteger().toString(16),x=this.getQ().toString(16).length;for(x%2!=0&&x++;m.length<x;)m="0"+m;var T;return c.getY().toBigInteger().isEven()?T="02":T="03",T+m},o.prototype.getR=function(){if(this.r!=null)return this.r;this.r=null;var c=this.q.bitLength();if(c>128){var m=this.q.shiftRight(c-64);m.intValue()==-1&&(this.r=n.ONE.shiftLeft(c).subtract(this.q))}return this.r},o.prototype.modMult=function(c,m){return this.modReduce(c.multiply(m))},o.prototype.modReduce=function(c){if(this.getR()!=null){for(var m=q.bitLength();c.bitLength()>m+1;){var x=c.shiftRight(m),T=c.subtract(x.shiftLeft(m));this.getR().equals(n.ONE)||(x=x.multiply(this.getR())),c=x.add(T)}for(;c.compareTo(q)>=0;)c=c.subtract(q)}else c=c.mod(q);return c},o.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var c=new o(this.q,this.x.modPow(this.q.shiftRight(2).add(n.ONE),this.q));return c.square().equals(this)?c:null}var m=this.q.subtract(n.ONE),x=m.shiftRight(1);if(!this.x.modPow(x,this.q).equals(n.ONE))return null;var T=m.shiftRight(2),b=T.shiftLeft(1).add(n.ONE),d=this.x,k=modDouble(modDouble(d)),D,O;do{var Q;do Q=new n(this.q.bitLength(),new SecureRandom);while(Q.compareTo(this.q)>=0||!Q.multiply(Q).subtract(k).modPow(x,this.q).equals(m));var J=this.lucasSequence(Q,d,b);if(D=J[0],O=J[1],this.modMult(O,O).equals(k))return O.testBit(0)&&(O=O.add(q)),O=O.shiftRight(1),new o(q,O)}while(D.equals(n.ONE)||D.equals(m));return null},o.prototype.lucasSequence=function(c,m,x){for(var T=x.bitLength(),b=x.getLowestSetBit(),d=n.ONE,k=n.TWO,D=c,O=n.ONE,Q=n.ONE,J=T-1;J>=b+1;--J)O=this.modMult(O,Q),x.testBit(J)?(Q=this.modMult(O,m),d=this.modMult(d,D),k=this.modReduce(D.multiply(k).subtract(c.multiply(O))),D=this.modReduce(D.multiply(D).subtract(Q.shiftLeft(1)))):(Q=O,d=this.modReduce(d.multiply(k).subtract(O)),D=this.modReduce(D.multiply(k).subtract(c.multiply(O))),k=this.modReduce(k.multiply(k).subtract(O.shiftLeft(1))));O=this.modMult(O,Q),Q=this.modMult(O,m),d=this.modReduce(d.multiply(k).subtract(O)),k=this.modReduce(D.multiply(k).subtract(c.multiply(O))),O=this.modMult(O,Q);for(var J=1;J<=b;++J)d=this.modMult(d,k),k=this.modReduce(k.multiply(k).subtract(O.shiftLeft(1))),O=this.modMult(O,O);return[d,k]};var S={ECCurveFp:re,ECPointFp:C,ECFieldElementFp:o};return ec=S,ec}function commonjsRequire(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var naclFast={exports:{}},hasRequiredNaclFast;function requireNaclFast(){return hasRequiredNaclFast||(hasRequiredNaclFast=1,function(n){(function(e){var o=function($e){var be,ve=new Float64Array(16);if($e)for(be=0;be<$e.length;be++)ve[be]=$e[be];return ve},l=function(){throw new Error("no PRNG")},t=new Uint8Array(16),u=new Uint8Array(32);u[0]=9;var h=o(),v=o([1]),w=o([56129,1]),A=o([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),E=o([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),C=o([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),M=o([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),P=o([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function I($e,be,ve,se){$e[be]=ve>>24&255,$e[be+1]=ve>>16&255,$e[be+2]=ve>>8&255,$e[be+3]=ve&255,$e[be+4]=se>>24&255,$e[be+5]=se>>16&255,$e[be+6]=se>>8&255,$e[be+7]=se&255}function j($e,be,ve,se,Pe){var ze,xt=0;for(ze=0;ze<Pe;ze++)xt|=$e[be+ze]^ve[se+ze];return(1&xt-1>>>8)-1}function B($e,be,ve,se){return j($e,be,ve,se,16)}function F($e,be,ve,se){return j($e,be,ve,se,32)}function N($e,be,ve,se){for(var Pe=se[0]&255|(se[1]&255)<<8|(se[2]&255)<<16|(se[3]&255)<<24,ze=ve[0]&255|(ve[1]&255)<<8|(ve[2]&255)<<16|(ve[3]&255)<<24,xt=ve[4]&255|(ve[5]&255)<<8|(ve[6]&255)<<16|(ve[7]&255)<<24,ot=ve[8]&255|(ve[9]&255)<<8|(ve[10]&255)<<16|(ve[11]&255)<<24,wt=ve[12]&255|(ve[13]&255)<<8|(ve[14]&255)<<16|(ve[15]&255)<<24,Yt=se[4]&255|(se[5]&255)<<8|(se[6]&255)<<16|(se[7]&255)<<24,Jt=be[0]&255|(be[1]&255)<<8|(be[2]&255)<<16|(be[3]&255)<<24,wr=be[4]&255|(be[5]&255)<<8|(be[6]&255)<<16|(be[7]&255)<<24,lr=be[8]&255|(be[9]&255)<<8|(be[10]&255)<<16|(be[11]&255)<<24,Rr=be[12]&255|(be[13]&255)<<8|(be[14]&255)<<16|(be[15]&255)<<24,vr=se[8]&255|(se[9]&255)<<8|(se[10]&255)<<16|(se[11]&255)<<24,dr=ve[16]&255|(ve[17]&255)<<8|(ve[18]&255)<<16|(ve[19]&255)<<24,Ir=ve[20]&255|(ve[21]&255)<<8|(ve[22]&255)<<16|(ve[23]&255)<<24,kr=ve[24]&255|(ve[25]&255)<<8|(ve[26]&255)<<16|(ve[27]&255)<<24,Fr=ve[28]&255|(ve[29]&255)<<8|(ve[30]&255)<<16|(ve[31]&255)<<24,jr=se[12]&255|(se[13]&255)<<8|(se[14]&255)<<16|(se[15]&255)<<24,Cr=Pe,Lr=ze,Ar=xt,Tr=ot,Sr=wt,rr=Yt,Nt=Jt,Gt=wr,xr=lr,pr=Rr,tr=vr,br=dr,Nr=Ir,Yr=kr,ei=Fr,Hr=jr,Pt,Jr=0;Jr<20;Jr+=2)Pt=Cr+Nr|0,Sr^=Pt<<7|Pt>>>25,Pt=Sr+Cr|0,xr^=Pt<<9|Pt>>>23,Pt=xr+Sr|0,Nr^=Pt<<13|Pt>>>19,Pt=Nr+xr|0,Cr^=Pt<<18|Pt>>>14,Pt=rr+Lr|0,pr^=Pt<<7|Pt>>>25,Pt=pr+rr|0,Yr^=Pt<<9|Pt>>>23,Pt=Yr+pr|0,Lr^=Pt<<13|Pt>>>19,Pt=Lr+Yr|0,rr^=Pt<<18|Pt>>>14,Pt=tr+Nt|0,ei^=Pt<<7|Pt>>>25,Pt=ei+tr|0,Ar^=Pt<<9|Pt>>>23,Pt=Ar+ei|0,Nt^=Pt<<13|Pt>>>19,Pt=Nt+Ar|0,tr^=Pt<<18|Pt>>>14,Pt=Hr+br|0,Tr^=Pt<<7|Pt>>>25,Pt=Tr+Hr|0,Gt^=Pt<<9|Pt>>>23,Pt=Gt+Tr|0,br^=Pt<<13|Pt>>>19,Pt=br+Gt|0,Hr^=Pt<<18|Pt>>>14,Pt=Cr+Tr|0,Lr^=Pt<<7|Pt>>>25,Pt=Lr+Cr|0,Ar^=Pt<<9|Pt>>>23,Pt=Ar+Lr|0,Tr^=Pt<<13|Pt>>>19,Pt=Tr+Ar|0,Cr^=Pt<<18|Pt>>>14,Pt=rr+Sr|0,Nt^=Pt<<7|Pt>>>25,Pt=Nt+rr|0,Gt^=Pt<<9|Pt>>>23,Pt=Gt+Nt|0,Sr^=Pt<<13|Pt>>>19,Pt=Sr+Gt|0,rr^=Pt<<18|Pt>>>14,Pt=tr+pr|0,br^=Pt<<7|Pt>>>25,Pt=br+tr|0,xr^=Pt<<9|Pt>>>23,Pt=xr+br|0,pr^=Pt<<13|Pt>>>19,Pt=pr+xr|0,tr^=Pt<<18|Pt>>>14,Pt=Hr+ei|0,Nr^=Pt<<7|Pt>>>25,Pt=Nr+Hr|0,Yr^=Pt<<9|Pt>>>23,Pt=Yr+Nr|0,ei^=Pt<<13|Pt>>>19,Pt=ei+Yr|0,Hr^=Pt<<18|Pt>>>14;Cr=Cr+Pe|0,Lr=Lr+ze|0,Ar=Ar+xt|0,Tr=Tr+ot|0,Sr=Sr+wt|0,rr=rr+Yt|0,Nt=Nt+Jt|0,Gt=Gt+wr|0,xr=xr+lr|0,pr=pr+Rr|0,tr=tr+vr|0,br=br+dr|0,Nr=Nr+Ir|0,Yr=Yr+kr|0,ei=ei+Fr|0,Hr=Hr+jr|0,$e[0]=Cr>>>0&255,$e[1]=Cr>>>8&255,$e[2]=Cr>>>16&255,$e[3]=Cr>>>24&255,$e[4]=Lr>>>0&255,$e[5]=Lr>>>8&255,$e[6]=Lr>>>16&255,$e[7]=Lr>>>24&255,$e[8]=Ar>>>0&255,$e[9]=Ar>>>8&255,$e[10]=Ar>>>16&255,$e[11]=Ar>>>24&255,$e[12]=Tr>>>0&255,$e[13]=Tr>>>8&255,$e[14]=Tr>>>16&255,$e[15]=Tr>>>24&255,$e[16]=Sr>>>0&255,$e[17]=Sr>>>8&255,$e[18]=Sr>>>16&255,$e[19]=Sr>>>24&255,$e[20]=rr>>>0&255,$e[21]=rr>>>8&255,$e[22]=rr>>>16&255,$e[23]=rr>>>24&255,$e[24]=Nt>>>0&255,$e[25]=Nt>>>8&255,$e[26]=Nt>>>16&255,$e[27]=Nt>>>24&255,$e[28]=Gt>>>0&255,$e[29]=Gt>>>8&255,$e[30]=Gt>>>16&255,$e[31]=Gt>>>24&255,$e[32]=xr>>>0&255,$e[33]=xr>>>8&255,$e[34]=xr>>>16&255,$e[35]=xr>>>24&255,$e[36]=pr>>>0&255,$e[37]=pr>>>8&255,$e[38]=pr>>>16&255,$e[39]=pr>>>24&255,$e[40]=tr>>>0&255,$e[41]=tr>>>8&255,$e[42]=tr>>>16&255,$e[43]=tr>>>24&255,$e[44]=br>>>0&255,$e[45]=br>>>8&255,$e[46]=br>>>16&255,$e[47]=br>>>24&255,$e[48]=Nr>>>0&255,$e[49]=Nr>>>8&255,$e[50]=Nr>>>16&255,$e[51]=Nr>>>24&255,$e[52]=Yr>>>0&255,$e[53]=Yr>>>8&255,$e[54]=Yr>>>16&255,$e[55]=Yr>>>24&255,$e[56]=ei>>>0&255,$e[57]=ei>>>8&255,$e[58]=ei>>>16&255,$e[59]=ei>>>24&255,$e[60]=Hr>>>0&255,$e[61]=Hr>>>8&255,$e[62]=Hr>>>16&255,$e[63]=Hr>>>24&255}function ee($e,be,ve,se){for(var Pe=se[0]&255|(se[1]&255)<<8|(se[2]&255)<<16|(se[3]&255)<<24,ze=ve[0]&255|(ve[1]&255)<<8|(ve[2]&255)<<16|(ve[3]&255)<<24,xt=ve[4]&255|(ve[5]&255)<<8|(ve[6]&255)<<16|(ve[7]&255)<<24,ot=ve[8]&255|(ve[9]&255)<<8|(ve[10]&255)<<16|(ve[11]&255)<<24,wt=ve[12]&255|(ve[13]&255)<<8|(ve[14]&255)<<16|(ve[15]&255)<<24,Yt=se[4]&255|(se[5]&255)<<8|(se[6]&255)<<16|(se[7]&255)<<24,Jt=be[0]&255|(be[1]&255)<<8|(be[2]&255)<<16|(be[3]&255)<<24,wr=be[4]&255|(be[5]&255)<<8|(be[6]&255)<<16|(be[7]&255)<<24,lr=be[8]&255|(be[9]&255)<<8|(be[10]&255)<<16|(be[11]&255)<<24,Rr=be[12]&255|(be[13]&255)<<8|(be[14]&255)<<16|(be[15]&255)<<24,vr=se[8]&255|(se[9]&255)<<8|(se[10]&255)<<16|(se[11]&255)<<24,dr=ve[16]&255|(ve[17]&255)<<8|(ve[18]&255)<<16|(ve[19]&255)<<24,Ir=ve[20]&255|(ve[21]&255)<<8|(ve[22]&255)<<16|(ve[23]&255)<<24,kr=ve[24]&255|(ve[25]&255)<<8|(ve[26]&255)<<16|(ve[27]&255)<<24,Fr=ve[28]&255|(ve[29]&255)<<8|(ve[30]&255)<<16|(ve[31]&255)<<24,jr=se[12]&255|(se[13]&255)<<8|(se[14]&255)<<16|(se[15]&255)<<24,Cr=Pe,Lr=ze,Ar=xt,Tr=ot,Sr=wt,rr=Yt,Nt=Jt,Gt=wr,xr=lr,pr=Rr,tr=vr,br=dr,Nr=Ir,Yr=kr,ei=Fr,Hr=jr,Pt,Jr=0;Jr<20;Jr+=2)Pt=Cr+Nr|0,Sr^=Pt<<7|Pt>>>25,Pt=Sr+Cr|0,xr^=Pt<<9|Pt>>>23,Pt=xr+Sr|0,Nr^=Pt<<13|Pt>>>19,Pt=Nr+xr|0,Cr^=Pt<<18|Pt>>>14,Pt=rr+Lr|0,pr^=Pt<<7|Pt>>>25,Pt=pr+rr|0,Yr^=Pt<<9|Pt>>>23,Pt=Yr+pr|0,Lr^=Pt<<13|Pt>>>19,Pt=Lr+Yr|0,rr^=Pt<<18|Pt>>>14,Pt=tr+Nt|0,ei^=Pt<<7|Pt>>>25,Pt=ei+tr|0,Ar^=Pt<<9|Pt>>>23,Pt=Ar+ei|0,Nt^=Pt<<13|Pt>>>19,Pt=Nt+Ar|0,tr^=Pt<<18|Pt>>>14,Pt=Hr+br|0,Tr^=Pt<<7|Pt>>>25,Pt=Tr+Hr|0,Gt^=Pt<<9|Pt>>>23,Pt=Gt+Tr|0,br^=Pt<<13|Pt>>>19,Pt=br+Gt|0,Hr^=Pt<<18|Pt>>>14,Pt=Cr+Tr|0,Lr^=Pt<<7|Pt>>>25,Pt=Lr+Cr|0,Ar^=Pt<<9|Pt>>>23,Pt=Ar+Lr|0,Tr^=Pt<<13|Pt>>>19,Pt=Tr+Ar|0,Cr^=Pt<<18|Pt>>>14,Pt=rr+Sr|0,Nt^=Pt<<7|Pt>>>25,Pt=Nt+rr|0,Gt^=Pt<<9|Pt>>>23,Pt=Gt+Nt|0,Sr^=Pt<<13|Pt>>>19,Pt=Sr+Gt|0,rr^=Pt<<18|Pt>>>14,Pt=tr+pr|0,br^=Pt<<7|Pt>>>25,Pt=br+tr|0,xr^=Pt<<9|Pt>>>23,Pt=xr+br|0,pr^=Pt<<13|Pt>>>19,Pt=pr+xr|0,tr^=Pt<<18|Pt>>>14,Pt=Hr+ei|0,Nr^=Pt<<7|Pt>>>25,Pt=Nr+Hr|0,Yr^=Pt<<9|Pt>>>23,Pt=Yr+Nr|0,ei^=Pt<<13|Pt>>>19,Pt=ei+Yr|0,Hr^=Pt<<18|Pt>>>14;$e[0]=Cr>>>0&255,$e[1]=Cr>>>8&255,$e[2]=Cr>>>16&255,$e[3]=Cr>>>24&255,$e[4]=rr>>>0&255,$e[5]=rr>>>8&255,$e[6]=rr>>>16&255,$e[7]=rr>>>24&255,$e[8]=tr>>>0&255,$e[9]=tr>>>8&255,$e[10]=tr>>>16&255,$e[11]=tr>>>24&255,$e[12]=Hr>>>0&255,$e[13]=Hr>>>8&255,$e[14]=Hr>>>16&255,$e[15]=Hr>>>24&255,$e[16]=Nt>>>0&255,$e[17]=Nt>>>8&255,$e[18]=Nt>>>16&255,$e[19]=Nt>>>24&255,$e[20]=Gt>>>0&255,$e[21]=Gt>>>8&255,$e[22]=Gt>>>16&255,$e[23]=Gt>>>24&255,$e[24]=xr>>>0&255,$e[25]=xr>>>8&255,$e[26]=xr>>>16&255,$e[27]=xr>>>24&255,$e[28]=pr>>>0&255,$e[29]=pr>>>8&255,$e[30]=pr>>>16&255,$e[31]=pr>>>24&255}function Z($e,be,ve,se){N($e,be,ve,se)}function re($e,be,ve,se){ee($e,be,ve,se)}var fe=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function V($e,be,ve,se,Pe,ze,xt){var ot=new Uint8Array(16),wt=new Uint8Array(64),Yt,Jt;for(Jt=0;Jt<16;Jt++)ot[Jt]=0;for(Jt=0;Jt<8;Jt++)ot[Jt]=ze[Jt];for(;Pe>=64;){for(Z(wt,ot,xt,fe),Jt=0;Jt<64;Jt++)$e[be+Jt]=ve[se+Jt]^wt[Jt];for(Yt=1,Jt=8;Jt<16;Jt++)Yt=Yt+(ot[Jt]&255)|0,ot[Jt]=Yt&255,Yt>>>=8;Pe-=64,be+=64,se+=64}if(Pe>0)for(Z(wt,ot,xt,fe),Jt=0;Jt<Pe;Jt++)$e[be+Jt]=ve[se+Jt]^wt[Jt];return 0}function le($e,be,ve,se,Pe){var ze=new Uint8Array(16),xt=new Uint8Array(64),ot,wt;for(wt=0;wt<16;wt++)ze[wt]=0;for(wt=0;wt<8;wt++)ze[wt]=se[wt];for(;ve>=64;){for(Z(xt,ze,Pe,fe),wt=0;wt<64;wt++)$e[be+wt]=xt[wt];for(ot=1,wt=8;wt<16;wt++)ot=ot+(ze[wt]&255)|0,ze[wt]=ot&255,ot>>>=8;ve-=64,be+=64}if(ve>0)for(Z(xt,ze,Pe,fe),wt=0;wt<ve;wt++)$e[be+wt]=xt[wt];return 0}function he($e,be,ve,se,Pe){var ze=new Uint8Array(32);re(ze,se,Pe,fe);for(var xt=new Uint8Array(8),ot=0;ot<8;ot++)xt[ot]=se[ot+16];return le($e,be,ve,xt,ze)}function ye($e,be,ve,se,Pe,ze,xt){var ot=new Uint8Array(32);re(ot,ze,xt,fe);for(var wt=new Uint8Array(8),Yt=0;Yt<8;Yt++)wt[Yt]=ze[Yt+16];return V($e,be,ve,se,Pe,wt,ot)}var L=function($e){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var be,ve,se,Pe,ze,xt,ot,wt;be=$e[0]&255|($e[1]&255)<<8,this.r[0]=be&8191,ve=$e[2]&255|($e[3]&255)<<8,this.r[1]=(be>>>13|ve<<3)&8191,se=$e[4]&255|($e[5]&255)<<8,this.r[2]=(ve>>>10|se<<6)&7939,Pe=$e[6]&255|($e[7]&255)<<8,this.r[3]=(se>>>7|Pe<<9)&8191,ze=$e[8]&255|($e[9]&255)<<8,this.r[4]=(Pe>>>4|ze<<12)&255,this.r[5]=ze>>>1&8190,xt=$e[10]&255|($e[11]&255)<<8,this.r[6]=(ze>>>14|xt<<2)&8191,ot=$e[12]&255|($e[13]&255)<<8,this.r[7]=(xt>>>11|ot<<5)&8065,wt=$e[14]&255|($e[15]&255)<<8,this.r[8]=(ot>>>8|wt<<8)&8191,this.r[9]=wt>>>5&127,this.pad[0]=$e[16]&255|($e[17]&255)<<8,this.pad[1]=$e[18]&255|($e[19]&255)<<8,this.pad[2]=$e[20]&255|($e[21]&255)<<8,this.pad[3]=$e[22]&255|($e[23]&255)<<8,this.pad[4]=$e[24]&255|($e[25]&255)<<8,this.pad[5]=$e[26]&255|($e[27]&255)<<8,this.pad[6]=$e[28]&255|($e[29]&255)<<8,this.pad[7]=$e[30]&255|($e[31]&255)<<8};L.prototype.blocks=function($e,be,ve){for(var se=this.fin?0:2048,Pe,ze,xt,ot,wt,Yt,Jt,wr,lr,Rr,vr,dr,Ir,kr,Fr,jr,Cr,Lr,Ar,Tr=this.h[0],Sr=this.h[1],rr=this.h[2],Nt=this.h[3],Gt=this.h[4],xr=this.h[5],pr=this.h[6],tr=this.h[7],br=this.h[8],Nr=this.h[9],Yr=this.r[0],ei=this.r[1],Hr=this.r[2],Pt=this.r[3],Jr=this.r[4],Xr=this.r[5],fi=this.r[6],ce=this.r[7],xe=this.r[8],Be=this.r[9];ve>=16;)Pe=$e[be+0]&255|($e[be+1]&255)<<8,Tr+=Pe&8191,ze=$e[be+2]&255|($e[be+3]&255)<<8,Sr+=(Pe>>>13|ze<<3)&8191,xt=$e[be+4]&255|($e[be+5]&255)<<8,rr+=(ze>>>10|xt<<6)&8191,ot=$e[be+6]&255|($e[be+7]&255)<<8,Nt+=(xt>>>7|ot<<9)&8191,wt=$e[be+8]&255|($e[be+9]&255)<<8,Gt+=(ot>>>4|wt<<12)&8191,xr+=wt>>>1&8191,Yt=$e[be+10]&255|($e[be+11]&255)<<8,pr+=(wt>>>14|Yt<<2)&8191,Jt=$e[be+12]&255|($e[be+13]&255)<<8,tr+=(Yt>>>11|Jt<<5)&8191,wr=$e[be+14]&255|($e[be+15]&255)<<8,br+=(Jt>>>8|wr<<8)&8191,Nr+=wr>>>5|se,lr=0,Rr=lr,Rr+=Tr*Yr,Rr+=Sr*(5*Be),Rr+=rr*(5*xe),Rr+=Nt*(5*ce),Rr+=Gt*(5*fi),lr=Rr>>>13,Rr&=8191,Rr+=xr*(5*Xr),Rr+=pr*(5*Jr),Rr+=tr*(5*Pt),Rr+=br*(5*Hr),Rr+=Nr*(5*ei),lr+=Rr>>>13,Rr&=8191,vr=lr,vr+=Tr*ei,vr+=Sr*Yr,vr+=rr*(5*Be),vr+=Nt*(5*xe),vr+=Gt*(5*ce),lr=vr>>>13,vr&=8191,vr+=xr*(5*fi),vr+=pr*(5*Xr),vr+=tr*(5*Jr),vr+=br*(5*Pt),vr+=Nr*(5*Hr),lr+=vr>>>13,vr&=8191,dr=lr,dr+=Tr*Hr,dr+=Sr*ei,dr+=rr*Yr,dr+=Nt*(5*Be),dr+=Gt*(5*xe),lr=dr>>>13,dr&=8191,dr+=xr*(5*ce),dr+=pr*(5*fi),dr+=tr*(5*Xr),dr+=br*(5*Jr),dr+=Nr*(5*Pt),lr+=dr>>>13,dr&=8191,Ir=lr,Ir+=Tr*Pt,Ir+=Sr*Hr,Ir+=rr*ei,Ir+=Nt*Yr,Ir+=Gt*(5*Be),lr=Ir>>>13,Ir&=8191,Ir+=xr*(5*xe),Ir+=pr*(5*ce),Ir+=tr*(5*fi),Ir+=br*(5*Xr),Ir+=Nr*(5*Jr),lr+=Ir>>>13,Ir&=8191,kr=lr,kr+=Tr*Jr,kr+=Sr*Pt,kr+=rr*Hr,kr+=Nt*ei,kr+=Gt*Yr,lr=kr>>>13,kr&=8191,kr+=xr*(5*Be),kr+=pr*(5*xe),kr+=tr*(5*ce),kr+=br*(5*fi),kr+=Nr*(5*Xr),lr+=kr>>>13,kr&=8191,Fr=lr,Fr+=Tr*Xr,Fr+=Sr*Jr,Fr+=rr*Pt,Fr+=Nt*Hr,Fr+=Gt*ei,lr=Fr>>>13,Fr&=8191,Fr+=xr*Yr,Fr+=pr*(5*Be),Fr+=tr*(5*xe),Fr+=br*(5*ce),Fr+=Nr*(5*fi),lr+=Fr>>>13,Fr&=8191,jr=lr,jr+=Tr*fi,jr+=Sr*Xr,jr+=rr*Jr,jr+=Nt*Pt,jr+=Gt*Hr,lr=jr>>>13,jr&=8191,jr+=xr*ei,jr+=pr*Yr,jr+=tr*(5*Be),jr+=br*(5*xe),jr+=Nr*(5*ce),lr+=jr>>>13,jr&=8191,Cr=lr,Cr+=Tr*ce,Cr+=Sr*fi,Cr+=rr*Xr,Cr+=Nt*Jr,Cr+=Gt*Pt,lr=Cr>>>13,Cr&=8191,Cr+=xr*Hr,Cr+=pr*ei,Cr+=tr*Yr,Cr+=br*(5*Be),Cr+=Nr*(5*xe),lr+=Cr>>>13,Cr&=8191,Lr=lr,Lr+=Tr*xe,Lr+=Sr*ce,Lr+=rr*fi,Lr+=Nt*Xr,Lr+=Gt*Jr,lr=Lr>>>13,Lr&=8191,Lr+=xr*Pt,Lr+=pr*Hr,Lr+=tr*ei,Lr+=br*Yr,Lr+=Nr*(5*Be),lr+=Lr>>>13,Lr&=8191,Ar=lr,Ar+=Tr*Be,Ar+=Sr*xe,Ar+=rr*ce,Ar+=Nt*fi,Ar+=Gt*Xr,lr=Ar>>>13,Ar&=8191,Ar+=xr*Jr,Ar+=pr*Pt,Ar+=tr*Hr,Ar+=br*ei,Ar+=Nr*Yr,lr+=Ar>>>13,Ar&=8191,lr=(lr<<2)+lr|0,lr=lr+Rr|0,Rr=lr&8191,lr=lr>>>13,vr+=lr,Tr=Rr,Sr=vr,rr=dr,Nt=Ir,Gt=kr,xr=Fr,pr=jr,tr=Cr,br=Lr,Nr=Ar,be+=16,ve-=16;this.h[0]=Tr,this.h[1]=Sr,this.h[2]=rr,this.h[3]=Nt,this.h[4]=Gt,this.h[5]=xr,this.h[6]=pr,this.h[7]=tr,this.h[8]=br,this.h[9]=Nr},L.prototype.finish=function($e,be){var ve=new Uint16Array(10),se,Pe,ze,xt;if(this.leftover){for(xt=this.leftover,this.buffer[xt++]=1;xt<16;xt++)this.buffer[xt]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(se=this.h[1]>>>13,this.h[1]&=8191,xt=2;xt<10;xt++)this.h[xt]+=se,se=this.h[xt]>>>13,this.h[xt]&=8191;for(this.h[0]+=se*5,se=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=se,se=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=se,ve[0]=this.h[0]+5,se=ve[0]>>>13,ve[0]&=8191,xt=1;xt<10;xt++)ve[xt]=this.h[xt]+se,se=ve[xt]>>>13,ve[xt]&=8191;for(ve[9]-=8192,Pe=(se^1)-1,xt=0;xt<10;xt++)ve[xt]&=Pe;for(Pe=~Pe,xt=0;xt<10;xt++)this.h[xt]=this.h[xt]&Pe|ve[xt];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,ze=this.h[0]+this.pad[0],this.h[0]=ze&65535,xt=1;xt<8;xt++)ze=(this.h[xt]+this.pad[xt]|0)+(ze>>>16)|0,this.h[xt]=ze&65535;$e[be+0]=this.h[0]>>>0&255,$e[be+1]=this.h[0]>>>8&255,$e[be+2]=this.h[1]>>>0&255,$e[be+3]=this.h[1]>>>8&255,$e[be+4]=this.h[2]>>>0&255,$e[be+5]=this.h[2]>>>8&255,$e[be+6]=this.h[3]>>>0&255,$e[be+7]=this.h[3]>>>8&255,$e[be+8]=this.h[4]>>>0&255,$e[be+9]=this.h[4]>>>8&255,$e[be+10]=this.h[5]>>>0&255,$e[be+11]=this.h[5]>>>8&255,$e[be+12]=this.h[6]>>>0&255,$e[be+13]=this.h[6]>>>8&255,$e[be+14]=this.h[7]>>>0&255,$e[be+15]=this.h[7]>>>8&255},L.prototype.update=function($e,be,ve){var se,Pe;if(this.leftover){for(Pe=16-this.leftover,Pe>ve&&(Pe=ve),se=0;se<Pe;se++)this.buffer[this.leftover+se]=$e[be+se];if(ve-=Pe,be+=Pe,this.leftover+=Pe,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(ve>=16&&(Pe=ve-ve%16,this.blocks($e,be,Pe),be+=Pe,ve-=Pe),ve){for(se=0;se<ve;se++)this.buffer[this.leftover+se]=$e[be+se];this.leftover+=ve}};function p($e,be,ve,se,Pe,ze){var xt=new L(ze);return xt.update(ve,se,Pe),xt.finish($e,be),0}function y($e,be,ve,se,Pe,ze){var xt=new Uint8Array(16);return p(xt,0,ve,se,Pe,ze),B($e,be,xt,0)}function S($e,be,ve,se,Pe){var ze;if(ve<32)return-1;for(ye($e,0,be,0,ve,se,Pe),p($e,16,$e,32,ve-32,$e),ze=0;ze<16;ze++)$e[ze]=0;return 0}function c($e,be,ve,se,Pe){var ze,xt=new Uint8Array(32);if(ve<32||(he(xt,0,32,se,Pe),y(be,16,be,32,ve-32,xt)!==0))return-1;for(ye($e,0,be,0,ve,se,Pe),ze=0;ze<32;ze++)$e[ze]=0;return 0}function m($e,be){var ve;for(ve=0;ve<16;ve++)$e[ve]=be[ve]|0}function x($e){var be,ve,se=1;for(be=0;be<16;be++)ve=$e[be]+se+65535,se=Math.floor(ve/65536),$e[be]=ve-se*65536;$e[0]+=se-1+37*(se-1)}function T($e,be,ve){for(var se,Pe=~(ve-1),ze=0;ze<16;ze++)se=Pe&($e[ze]^be[ze]),$e[ze]^=se,be[ze]^=se}function b($e,be){var ve,se,Pe,ze=o(),xt=o();for(ve=0;ve<16;ve++)xt[ve]=be[ve];for(x(xt),x(xt),x(xt),se=0;se<2;se++){for(ze[0]=xt[0]-65517,ve=1;ve<15;ve++)ze[ve]=xt[ve]-65535-(ze[ve-1]>>16&1),ze[ve-1]&=65535;ze[15]=xt[15]-32767-(ze[14]>>16&1),Pe=ze[15]>>16&1,ze[14]&=65535,T(xt,ze,1-Pe)}for(ve=0;ve<16;ve++)$e[2*ve]=xt[ve]&255,$e[2*ve+1]=xt[ve]>>8}function d($e,be){var ve=new Uint8Array(32),se=new Uint8Array(32);return b(ve,$e),b(se,be),F(ve,0,se,0)}function k($e){var be=new Uint8Array(32);return b(be,$e),be[0]&1}function D($e,be){var ve;for(ve=0;ve<16;ve++)$e[ve]=be[2*ve]+(be[2*ve+1]<<8);$e[15]&=32767}function O($e,be,ve){for(var se=0;se<16;se++)$e[se]=be[se]+ve[se]}function Q($e,be,ve){for(var se=0;se<16;se++)$e[se]=be[se]-ve[se]}function J($e,be,ve){var se,Pe,ze=0,xt=0,ot=0,wt=0,Yt=0,Jt=0,wr=0,lr=0,Rr=0,vr=0,dr=0,Ir=0,kr=0,Fr=0,jr=0,Cr=0,Lr=0,Ar=0,Tr=0,Sr=0,rr=0,Nt=0,Gt=0,xr=0,pr=0,tr=0,br=0,Nr=0,Yr=0,ei=0,Hr=0,Pt=ve[0],Jr=ve[1],Xr=ve[2],fi=ve[3],ce=ve[4],xe=ve[5],Be=ve[6],Fe=ve[7],Xe=ve[8],ct=ve[9],we=ve[10],Ae=ve[11],Re=ve[12],rt=ve[13],St=ve[14],Lt=ve[15];se=be[0],ze+=se*Pt,xt+=se*Jr,ot+=se*Xr,wt+=se*fi,Yt+=se*ce,Jt+=se*xe,wr+=se*Be,lr+=se*Fe,Rr+=se*Xe,vr+=se*ct,dr+=se*we,Ir+=se*Ae,kr+=se*Re,Fr+=se*rt,jr+=se*St,Cr+=se*Lt,se=be[1],xt+=se*Pt,ot+=se*Jr,wt+=se*Xr,Yt+=se*fi,Jt+=se*ce,wr+=se*xe,lr+=se*Be,Rr+=se*Fe,vr+=se*Xe,dr+=se*ct,Ir+=se*we,kr+=se*Ae,Fr+=se*Re,jr+=se*rt,Cr+=se*St,Lr+=se*Lt,se=be[2],ot+=se*Pt,wt+=se*Jr,Yt+=se*Xr,Jt+=se*fi,wr+=se*ce,lr+=se*xe,Rr+=se*Be,vr+=se*Fe,dr+=se*Xe,Ir+=se*ct,kr+=se*we,Fr+=se*Ae,jr+=se*Re,Cr+=se*rt,Lr+=se*St,Ar+=se*Lt,se=be[3],wt+=se*Pt,Yt+=se*Jr,Jt+=se*Xr,wr+=se*fi,lr+=se*ce,Rr+=se*xe,vr+=se*Be,dr+=se*Fe,Ir+=se*Xe,kr+=se*ct,Fr+=se*we,jr+=se*Ae,Cr+=se*Re,Lr+=se*rt,Ar+=se*St,Tr+=se*Lt,se=be[4],Yt+=se*Pt,Jt+=se*Jr,wr+=se*Xr,lr+=se*fi,Rr+=se*ce,vr+=se*xe,dr+=se*Be,Ir+=se*Fe,kr+=se*Xe,Fr+=se*ct,jr+=se*we,Cr+=se*Ae,Lr+=se*Re,Ar+=se*rt,Tr+=se*St,Sr+=se*Lt,se=be[5],Jt+=se*Pt,wr+=se*Jr,lr+=se*Xr,Rr+=se*fi,vr+=se*ce,dr+=se*xe,Ir+=se*Be,kr+=se*Fe,Fr+=se*Xe,jr+=se*ct,Cr+=se*we,Lr+=se*Ae,Ar+=se*Re,Tr+=se*rt,Sr+=se*St,rr+=se*Lt,se=be[6],wr+=se*Pt,lr+=se*Jr,Rr+=se*Xr,vr+=se*fi,dr+=se*ce,Ir+=se*xe,kr+=se*Be,Fr+=se*Fe,jr+=se*Xe,Cr+=se*ct,Lr+=se*we,Ar+=se*Ae,Tr+=se*Re,Sr+=se*rt,rr+=se*St,Nt+=se*Lt,se=be[7],lr+=se*Pt,Rr+=se*Jr,vr+=se*Xr,dr+=se*fi,Ir+=se*ce,kr+=se*xe,Fr+=se*Be,jr+=se*Fe,Cr+=se*Xe,Lr+=se*ct,Ar+=se*we,Tr+=se*Ae,Sr+=se*Re,rr+=se*rt,Nt+=se*St,Gt+=se*Lt,se=be[8],Rr+=se*Pt,vr+=se*Jr,dr+=se*Xr,Ir+=se*fi,kr+=se*ce,Fr+=se*xe,jr+=se*Be,Cr+=se*Fe,Lr+=se*Xe,Ar+=se*ct,Tr+=se*we,Sr+=se*Ae,rr+=se*Re,Nt+=se*rt,Gt+=se*St,xr+=se*Lt,se=be[9],vr+=se*Pt,dr+=se*Jr,Ir+=se*Xr,kr+=se*fi,Fr+=se*ce,jr+=se*xe,Cr+=se*Be,Lr+=se*Fe,Ar+=se*Xe,Tr+=se*ct,Sr+=se*we,rr+=se*Ae,Nt+=se*Re,Gt+=se*rt,xr+=se*St,pr+=se*Lt,se=be[10],dr+=se*Pt,Ir+=se*Jr,kr+=se*Xr,Fr+=se*fi,jr+=se*ce,Cr+=se*xe,Lr+=se*Be,Ar+=se*Fe,Tr+=se*Xe,Sr+=se*ct,rr+=se*we,Nt+=se*Ae,Gt+=se*Re,xr+=se*rt,pr+=se*St,tr+=se*Lt,se=be[11],Ir+=se*Pt,kr+=se*Jr,Fr+=se*Xr,jr+=se*fi,Cr+=se*ce,Lr+=se*xe,Ar+=se*Be,Tr+=se*Fe,Sr+=se*Xe,rr+=se*ct,Nt+=se*we,Gt+=se*Ae,xr+=se*Re,pr+=se*rt,tr+=se*St,br+=se*Lt,se=be[12],kr+=se*Pt,Fr+=se*Jr,jr+=se*Xr,Cr+=se*fi,Lr+=se*ce,Ar+=se*xe,Tr+=se*Be,Sr+=se*Fe,rr+=se*Xe,Nt+=se*ct,Gt+=se*we,xr+=se*Ae,pr+=se*Re,tr+=se*rt,br+=se*St,Nr+=se*Lt,se=be[13],Fr+=se*Pt,jr+=se*Jr,Cr+=se*Xr,Lr+=se*fi,Ar+=se*ce,Tr+=se*xe,Sr+=se*Be,rr+=se*Fe,Nt+=se*Xe,Gt+=se*ct,xr+=se*we,pr+=se*Ae,tr+=se*Re,br+=se*rt,Nr+=se*St,Yr+=se*Lt,se=be[14],jr+=se*Pt,Cr+=se*Jr,Lr+=se*Xr,Ar+=se*fi,Tr+=se*ce,Sr+=se*xe,rr+=se*Be,Nt+=se*Fe,Gt+=se*Xe,xr+=se*ct,pr+=se*we,tr+=se*Ae,br+=se*Re,Nr+=se*rt,Yr+=se*St,ei+=se*Lt,se=be[15],Cr+=se*Pt,Lr+=se*Jr,Ar+=se*Xr,Tr+=se*fi,Sr+=se*ce,rr+=se*xe,Nt+=se*Be,Gt+=se*Fe,xr+=se*Xe,pr+=se*ct,tr+=se*we,br+=se*Ae,Nr+=se*Re,Yr+=se*rt,ei+=se*St,Hr+=se*Lt,ze+=38*Lr,xt+=38*Ar,ot+=38*Tr,wt+=38*Sr,Yt+=38*rr,Jt+=38*Nt,wr+=38*Gt,lr+=38*xr,Rr+=38*pr,vr+=38*tr,dr+=38*br,Ir+=38*Nr,kr+=38*Yr,Fr+=38*ei,jr+=38*Hr,Pe=1,se=ze+Pe+65535,Pe=Math.floor(se/65536),ze=se-Pe*65536,se=xt+Pe+65535,Pe=Math.floor(se/65536),xt=se-Pe*65536,se=ot+Pe+65535,Pe=Math.floor(se/65536),ot=se-Pe*65536,se=wt+Pe+65535,Pe=Math.floor(se/65536),wt=se-Pe*65536,se=Yt+Pe+65535,Pe=Math.floor(se/65536),Yt=se-Pe*65536,se=Jt+Pe+65535,Pe=Math.floor(se/65536),Jt=se-Pe*65536,se=wr+Pe+65535,Pe=Math.floor(se/65536),wr=se-Pe*65536,se=lr+Pe+65535,Pe=Math.floor(se/65536),lr=se-Pe*65536,se=Rr+Pe+65535,Pe=Math.floor(se/65536),Rr=se-Pe*65536,se=vr+Pe+65535,Pe=Math.floor(se/65536),vr=se-Pe*65536,se=dr+Pe+65535,Pe=Math.floor(se/65536),dr=se-Pe*65536,se=Ir+Pe+65535,Pe=Math.floor(se/65536),Ir=se-Pe*65536,se=kr+Pe+65535,Pe=Math.floor(se/65536),kr=se-Pe*65536,se=Fr+Pe+65535,Pe=Math.floor(se/65536),Fr=se-Pe*65536,se=jr+Pe+65535,Pe=Math.floor(se/65536),jr=se-Pe*65536,se=Cr+Pe+65535,Pe=Math.floor(se/65536),Cr=se-Pe*65536,ze+=Pe-1+37*(Pe-1),Pe=1,se=ze+Pe+65535,Pe=Math.floor(se/65536),ze=se-Pe*65536,se=xt+Pe+65535,Pe=Math.floor(se/65536),xt=se-Pe*65536,se=ot+Pe+65535,Pe=Math.floor(se/65536),ot=se-Pe*65536,se=wt+Pe+65535,Pe=Math.floor(se/65536),wt=se-Pe*65536,se=Yt+Pe+65535,Pe=Math.floor(se/65536),Yt=se-Pe*65536,se=Jt+Pe+65535,Pe=Math.floor(se/65536),Jt=se-Pe*65536,se=wr+Pe+65535,Pe=Math.floor(se/65536),wr=se-Pe*65536,se=lr+Pe+65535,Pe=Math.floor(se/65536),lr=se-Pe*65536,se=Rr+Pe+65535,Pe=Math.floor(se/65536),Rr=se-Pe*65536,se=vr+Pe+65535,Pe=Math.floor(se/65536),vr=se-Pe*65536,se=dr+Pe+65535,Pe=Math.floor(se/65536),dr=se-Pe*65536,se=Ir+Pe+65535,Pe=Math.floor(se/65536),Ir=se-Pe*65536,se=kr+Pe+65535,Pe=Math.floor(se/65536),kr=se-Pe*65536,se=Fr+Pe+65535,Pe=Math.floor(se/65536),Fr=se-Pe*65536,se=jr+Pe+65535,Pe=Math.floor(se/65536),jr=se-Pe*65536,se=Cr+Pe+65535,Pe=Math.floor(se/65536),Cr=se-Pe*65536,ze+=Pe-1+37*(Pe-1),$e[0]=ze,$e[1]=xt,$e[2]=ot,$e[3]=wt,$e[4]=Yt,$e[5]=Jt,$e[6]=wr,$e[7]=lr,$e[8]=Rr,$e[9]=vr,$e[10]=dr,$e[11]=Ir,$e[12]=kr,$e[13]=Fr,$e[14]=jr,$e[15]=Cr}function X($e,be){J($e,be,be)}function U($e,be){var ve=o(),se;for(se=0;se<16;se++)ve[se]=be[se];for(se=253;se>=0;se--)X(ve,ve),se!==2&&se!==4&&J(ve,ve,be);for(se=0;se<16;se++)$e[se]=ve[se]}function z($e,be){var ve=o(),se;for(se=0;se<16;se++)ve[se]=be[se];for(se=250;se>=0;se--)X(ve,ve),se!==1&&J(ve,ve,be);for(se=0;se<16;se++)$e[se]=ve[se]}function ie($e,be,ve){var se=new Uint8Array(32),Pe=new Float64Array(80),ze,xt,ot=o(),wt=o(),Yt=o(),Jt=o(),wr=o(),lr=o();for(xt=0;xt<31;xt++)se[xt]=be[xt];for(se[31]=be[31]&127|64,se[0]&=248,D(Pe,ve),xt=0;xt<16;xt++)wt[xt]=Pe[xt],Jt[xt]=ot[xt]=Yt[xt]=0;for(ot[0]=Jt[0]=1,xt=254;xt>=0;--xt)ze=se[xt>>>3]>>>(xt&7)&1,T(ot,wt,ze),T(Yt,Jt,ze),O(wr,ot,Yt),Q(ot,ot,Yt),O(Yt,wt,Jt),Q(wt,wt,Jt),X(Jt,wr),X(lr,ot),J(ot,Yt,ot),J(Yt,wt,wr),O(wr,ot,Yt),Q(ot,ot,Yt),X(wt,ot),Q(Yt,Jt,lr),J(ot,Yt,w),O(ot,ot,Jt),J(Yt,Yt,ot),J(ot,Jt,lr),J(Jt,wt,Pe),X(wt,wr),T(ot,wt,ze),T(Yt,Jt,ze);for(xt=0;xt<16;xt++)Pe[xt+16]=ot[xt],Pe[xt+32]=Yt[xt],Pe[xt+48]=wt[xt],Pe[xt+64]=Jt[xt];var Rr=Pe.subarray(32),vr=Pe.subarray(16);return U(Rr,Rr),J(vr,vr,Rr),b($e,vr),0}function de($e,be){return ie($e,be,u)}function me($e,be){return l(be,32),de($e,be)}function pe($e,be,ve){var se=new Uint8Array(32);return ie(se,ve,be),re($e,t,se,fe)}var qe=S,mt=c;function st($e,be,ve,se,Pe,ze){var xt=new Uint8Array(32);return pe(xt,Pe,ze),qe($e,be,ve,se,xt)}function dt($e,be,ve,se,Pe,ze){var xt=new Uint8Array(32);return pe(xt,Pe,ze),mt($e,be,ve,se,xt)}var Tt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function lt($e,be,ve,se){for(var Pe=new Int32Array(16),ze=new Int32Array(16),xt,ot,wt,Yt,Jt,wr,lr,Rr,vr,dr,Ir,kr,Fr,jr,Cr,Lr,Ar,Tr,Sr,rr,Nt,Gt,xr,pr,tr,br,Nr=$e[0],Yr=$e[1],ei=$e[2],Hr=$e[3],Pt=$e[4],Jr=$e[5],Xr=$e[6],fi=$e[7],ce=be[0],xe=be[1],Be=be[2],Fe=be[3],Xe=be[4],ct=be[5],we=be[6],Ae=be[7],Re=0;se>=128;){for(Sr=0;Sr<16;Sr++)rr=8*Sr+Re,Pe[Sr]=ve[rr+0]<<24|ve[rr+1]<<16|ve[rr+2]<<8|ve[rr+3],ze[Sr]=ve[rr+4]<<24|ve[rr+5]<<16|ve[rr+6]<<8|ve[rr+7];for(Sr=0;Sr<80;Sr++)if(xt=Nr,ot=Yr,wt=ei,Yt=Hr,Jt=Pt,wr=Jr,lr=Xr,Rr=fi,vr=ce,dr=xe,Ir=Be,kr=Fe,Fr=Xe,jr=ct,Cr=we,Lr=Ae,Nt=fi,Gt=Ae,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=(Pt>>>14|Xe<<18)^(Pt>>>18|Xe<<14)^(Xe>>>9|Pt<<23),Gt=(Xe>>>14|Pt<<18)^(Xe>>>18|Pt<<14)^(Pt>>>9|Xe<<23),xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,Nt=Pt&Jr^~Pt&Xr,Gt=Xe&ct^~Xe&we,xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,Nt=Tt[Sr*2],Gt=Tt[Sr*2+1],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,Nt=Pe[Sr%16],Gt=ze[Sr%16],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,Ar=tr&65535|br<<16,Tr=xr&65535|pr<<16,Nt=Ar,Gt=Tr,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=(Nr>>>28|ce<<4)^(ce>>>2|Nr<<30)^(ce>>>7|Nr<<25),Gt=(ce>>>28|Nr<<4)^(Nr>>>2|ce<<30)^(Nr>>>7|ce<<25),xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,Nt=Nr&Yr^Nr&ei^Yr&ei,Gt=ce&xe^ce&Be^xe&Be,xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,Rr=tr&65535|br<<16,Lr=xr&65535|pr<<16,Nt=Yt,Gt=kr,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=Ar,Gt=Tr,xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,Yt=tr&65535|br<<16,kr=xr&65535|pr<<16,Yr=xt,ei=ot,Hr=wt,Pt=Yt,Jr=Jt,Xr=wr,fi=lr,Nr=Rr,xe=vr,Be=dr,Fe=Ir,Xe=kr,ct=Fr,we=jr,Ae=Cr,ce=Lr,Sr%16===15)for(rr=0;rr<16;rr++)Nt=Pe[rr],Gt=ze[rr],xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=Pe[(rr+9)%16],Gt=ze[(rr+9)%16],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,Ar=Pe[(rr+1)%16],Tr=ze[(rr+1)%16],Nt=(Ar>>>1|Tr<<31)^(Ar>>>8|Tr<<24)^Ar>>>7,Gt=(Tr>>>1|Ar<<31)^(Tr>>>8|Ar<<24)^(Tr>>>7|Ar<<25),xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,Ar=Pe[(rr+14)%16],Tr=ze[(rr+14)%16],Nt=(Ar>>>19|Tr<<13)^(Tr>>>29|Ar<<3)^Ar>>>6,Gt=(Tr>>>19|Ar<<13)^(Ar>>>29|Tr<<3)^(Tr>>>6|Ar<<26),xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,Pe[rr]=tr&65535|br<<16,ze[rr]=xr&65535|pr<<16;Nt=Nr,Gt=ce,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=$e[0],Gt=be[0],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,$e[0]=Nr=tr&65535|br<<16,be[0]=ce=xr&65535|pr<<16,Nt=Yr,Gt=xe,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=$e[1],Gt=be[1],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,$e[1]=Yr=tr&65535|br<<16,be[1]=xe=xr&65535|pr<<16,Nt=ei,Gt=Be,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=$e[2],Gt=be[2],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,$e[2]=ei=tr&65535|br<<16,be[2]=Be=xr&65535|pr<<16,Nt=Hr,Gt=Fe,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=$e[3],Gt=be[3],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,$e[3]=Hr=tr&65535|br<<16,be[3]=Fe=xr&65535|pr<<16,Nt=Pt,Gt=Xe,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=$e[4],Gt=be[4],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,$e[4]=Pt=tr&65535|br<<16,be[4]=Xe=xr&65535|pr<<16,Nt=Jr,Gt=ct,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=$e[5],Gt=be[5],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,$e[5]=Jr=tr&65535|br<<16,be[5]=ct=xr&65535|pr<<16,Nt=Xr,Gt=we,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=$e[6],Gt=be[6],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,$e[6]=Xr=tr&65535|br<<16,be[6]=we=xr&65535|pr<<16,Nt=fi,Gt=Ae,xr=Gt&65535,pr=Gt>>>16,tr=Nt&65535,br=Nt>>>16,Nt=$e[7],Gt=be[7],xr+=Gt&65535,pr+=Gt>>>16,tr+=Nt&65535,br+=Nt>>>16,pr+=xr>>>16,tr+=pr>>>16,br+=tr>>>16,$e[7]=fi=tr&65535|br<<16,be[7]=Ae=xr&65535|pr<<16,Re+=128,se-=128}return se}function Je($e,be,ve){var se=new Int32Array(8),Pe=new Int32Array(8),ze=new Uint8Array(256),xt,ot=ve;for(se[0]=1779033703,se[1]=3144134277,se[2]=1013904242,se[3]=2773480762,se[4]=1359893119,se[5]=2600822924,se[6]=528734635,se[7]=1541459225,Pe[0]=4089235720,Pe[1]=2227873595,Pe[2]=4271175723,Pe[3]=1595750129,Pe[4]=2917565137,Pe[5]=725511199,Pe[6]=4215389547,Pe[7]=327033209,lt(se,Pe,be,ve),ve%=128,xt=0;xt<ve;xt++)ze[xt]=be[ot-ve+xt];for(ze[ve]=128,ve=256-128*(ve<112?1:0),ze[ve-9]=0,I(ze,ve-8,ot/536870912|0,ot<<3),lt(se,Pe,ze,ve),xt=0;xt<8;xt++)I($e,8*xt,se[xt],Pe[xt]);return 0}function ht($e,be){var ve=o(),se=o(),Pe=o(),ze=o(),xt=o(),ot=o(),wt=o(),Yt=o(),Jt=o();Q(ve,$e[1],$e[0]),Q(Jt,be[1],be[0]),J(ve,ve,Jt),O(se,$e[0],$e[1]),O(Jt,be[0],be[1]),J(se,se,Jt),J(Pe,$e[3],be[3]),J(Pe,Pe,E),J(ze,$e[2],be[2]),O(ze,ze,ze),Q(xt,se,ve),Q(ot,ze,Pe),O(wt,ze,Pe),O(Yt,se,ve),J($e[0],xt,ot),J($e[1],Yt,wt),J($e[2],wt,ot),J($e[3],xt,Yt)}function at($e,be,ve){var se;for(se=0;se<4;se++)T($e[se],be[se],ve)}function bt($e,be){var ve=o(),se=o(),Pe=o();U(Pe,be[2]),J(ve,be[0],Pe),J(se,be[1],Pe),b($e,se),$e[31]^=k(ve)<<7}function jt($e,be,ve){var se,Pe;for(m($e[0],h),m($e[1],v),m($e[2],v),m($e[3],h),Pe=255;Pe>=0;--Pe)se=ve[Pe/8|0]>>(Pe&7)&1,at($e,be,se),ht(be,$e),ht($e,$e),at($e,be,se)}function Ge($e,be){var ve=[o(),o(),o(),o()];m(ve[0],C),m(ve[1],M),m(ve[2],v),J(ve[3],C,M),jt($e,ve,be)}function Qe($e,be,ve){var se=new Uint8Array(64),Pe=[o(),o(),o(),o()],ze;for(ve||l(be,32),Je(se,be,32),se[0]&=248,se[31]&=127,se[31]|=64,Ge(Pe,se),bt($e,Pe),ze=0;ze<32;ze++)be[ze+32]=$e[ze];return 0}var Wt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Et($e,be){var ve,se,Pe,ze;for(se=63;se>=32;--se){for(ve=0,Pe=se-32,ze=se-12;Pe<ze;++Pe)be[Pe]+=ve-16*be[se]*Wt[Pe-(se-32)],ve=be[Pe]+128>>8,be[Pe]-=ve*256;be[Pe]+=ve,be[se]=0}for(ve=0,Pe=0;Pe<32;Pe++)be[Pe]+=ve-(be[31]>>4)*Wt[Pe],ve=be[Pe]>>8,be[Pe]&=255;for(Pe=0;Pe<32;Pe++)be[Pe]-=ve*Wt[Pe];for(se=0;se<32;se++)be[se+1]+=be[se]>>8,$e[se]=be[se]&255}function Ct($e){var be=new Float64Array(64),ve;for(ve=0;ve<64;ve++)be[ve]=$e[ve];for(ve=0;ve<64;ve++)$e[ve]=0;Et($e,be)}function Kt($e,be,ve,se){var Pe=new Uint8Array(64),ze=new Uint8Array(64),xt=new Uint8Array(64),ot,wt,Yt=new Float64Array(64),Jt=[o(),o(),o(),o()];Je(Pe,se,32),Pe[0]&=248,Pe[31]&=127,Pe[31]|=64;var wr=ve+64;for(ot=0;ot<ve;ot++)$e[64+ot]=be[ot];for(ot=0;ot<32;ot++)$e[32+ot]=Pe[32+ot];for(Je(xt,$e.subarray(32),ve+32),Ct(xt),Ge(Jt,xt),bt($e,Jt),ot=32;ot<64;ot++)$e[ot]=se[ot];for(Je(ze,$e,ve+64),Ct(ze),ot=0;ot<64;ot++)Yt[ot]=0;for(ot=0;ot<32;ot++)Yt[ot]=xt[ot];for(ot=0;ot<32;ot++)for(wt=0;wt<32;wt++)Yt[ot+wt]+=ze[ot]*Pe[wt];return Et($e.subarray(32),Yt),wr}function Me($e,be){var ve=o(),se=o(),Pe=o(),ze=o(),xt=o(),ot=o(),wt=o();return m($e[2],v),D($e[1],be),X(Pe,$e[1]),J(ze,Pe,A),Q(Pe,Pe,$e[2]),O(ze,$e[2],ze),X(xt,ze),X(ot,xt),J(wt,ot,xt),J(ve,wt,Pe),J(ve,ve,ze),z(ve,ve),J(ve,ve,Pe),J(ve,ve,ze),J(ve,ve,ze),J($e[0],ve,ze),X(se,$e[0]),J(se,se,ze),d(se,Pe)&&J($e[0],$e[0],P),X(se,$e[0]),J(se,se,ze),d(se,Pe)?-1:(k($e[0])===be[31]>>7&&Q($e[0],h,$e[0]),J($e[3],$e[0],$e[1]),0)}function te($e,be,ve,se){var Pe,ze,xt=new Uint8Array(32),ot=new Uint8Array(64),wt=[o(),o(),o(),o()],Yt=[o(),o(),o(),o()];if(ze=-1,ve<64||Me(Yt,se))return-1;for(Pe=0;Pe<ve;Pe++)$e[Pe]=be[Pe];for(Pe=0;Pe<32;Pe++)$e[Pe+32]=se[Pe];if(Je(ot,$e,ve),Ct(ot),jt(wt,Yt,ot),Ge(Yt,be.subarray(32)),ht(wt,Yt),bt(xt,wt),ve-=64,F(be,0,xt,0)){for(Pe=0;Pe<ve;Pe++)$e[Pe]=0;return-1}for(Pe=0;Pe<ve;Pe++)$e[Pe]=be[Pe+64];return ze=ve,ze}var _e=32,je=24,We=32,et=16,Ye=32,De=32,Ht=32,Mt=32,ge=32,Dt=je,yt=We,Ne=et,_t=64,pt=32,Bt=64,ur=32,kt=64;e.lowlevel={crypto_core_hsalsa20:re,crypto_stream_xor:ye,crypto_stream:he,crypto_stream_salsa20_xor:V,crypto_stream_salsa20:le,crypto_onetimeauth:p,crypto_onetimeauth_verify:y,crypto_verify_16:B,crypto_verify_32:F,crypto_secretbox:S,crypto_secretbox_open:c,crypto_scalarmult:ie,crypto_scalarmult_base:de,crypto_box_beforenm:pe,crypto_box_afternm:qe,crypto_box:st,crypto_box_open:dt,crypto_box_keypair:me,crypto_hash:Je,crypto_sign:Kt,crypto_sign_keypair:Qe,crypto_sign_open:te,crypto_secretbox_KEYBYTES:_e,crypto_secretbox_NONCEBYTES:je,crypto_secretbox_ZEROBYTES:We,crypto_secretbox_BOXZEROBYTES:et,crypto_scalarmult_BYTES:Ye,crypto_scalarmult_SCALARBYTES:De,crypto_box_PUBLICKEYBYTES:Ht,crypto_box_SECRETKEYBYTES:Mt,crypto_box_BEFORENMBYTES:ge,crypto_box_NONCEBYTES:Dt,crypto_box_ZEROBYTES:yt,crypto_box_BOXZEROBYTES:Ne,crypto_sign_BYTES:_t,crypto_sign_PUBLICKEYBYTES:pt,crypto_sign_SECRETKEYBYTES:Bt,crypto_sign_SEEDBYTES:ur,crypto_hash_BYTES:kt};function Ut($e,be){if($e.length!==_e)throw new Error("bad key size");if(be.length!==je)throw new Error("bad nonce size")}function Wr($e,be){if($e.length!==Ht)throw new Error("bad public key size");if(be.length!==Mt)throw new Error("bad secret key size")}function zt(){var $e,be;for(be=0;be<arguments.length;be++)if(($e=Object.prototype.toString.call(arguments[be]))!=="[object Uint8Array]")throw new TypeError("unexpected type "+$e+", use Uint8Array")}function Qt($e){for(var be=0;be<$e.length;be++)$e[be]=0}e.util||(e.util={},e.util.decodeUTF8=e.util.encodeUTF8=e.util.encodeBase64=e.util.decodeBase64=function(){throw new Error("nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js")}),e.randomBytes=function($e){var be=new Uint8Array($e);return l(be,$e),be},e.secretbox=function($e,be,ve){zt($e,be,ve),Ut(ve,be);for(var se=new Uint8Array(We+$e.length),Pe=new Uint8Array(se.length),ze=0;ze<$e.length;ze++)se[ze+We]=$e[ze];return S(Pe,se,se.length,be,ve),Pe.subarray(et)},e.secretbox.open=function($e,be,ve){zt($e,be,ve),Ut(ve,be);for(var se=new Uint8Array(et+$e.length),Pe=new Uint8Array(se.length),ze=0;ze<$e.length;ze++)se[ze+et]=$e[ze];return se.length<32||c(Pe,se,se.length,be,ve)!==0?!1:Pe.subarray(We)},e.secretbox.keyLength=_e,e.secretbox.nonceLength=je,e.secretbox.overheadLength=et,e.scalarMult=function($e,be){if(zt($e,be),$e.length!==De)throw new Error("bad n size");if(be.length!==Ye)throw new Error("bad p size");var ve=new Uint8Array(Ye);return ie(ve,$e,be),ve},e.scalarMult.base=function($e){if(zt($e),$e.length!==De)throw new Error("bad n size");var be=new Uint8Array(Ye);return de(be,$e),be},e.scalarMult.scalarLength=De,e.scalarMult.groupElementLength=Ye,e.box=function($e,be,ve,se){var Pe=e.box.before(ve,se);return e.secretbox($e,be,Pe)},e.box.before=function($e,be){zt($e,be),Wr($e,be);var ve=new Uint8Array(ge);return pe(ve,$e,be),ve},e.box.after=e.secretbox,e.box.open=function($e,be,ve,se){var Pe=e.box.before(ve,se);return e.secretbox.open($e,be,Pe)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var $e=new Uint8Array(Ht),be=new Uint8Array(Mt);return me($e,be),{publicKey:$e,secretKey:be}},e.box.keyPair.fromSecretKey=function($e){if(zt($e),$e.length!==Mt)throw new Error("bad secret key size");var be=new Uint8Array(Ht);return de(be,$e),{publicKey:be,secretKey:new Uint8Array($e)}},e.box.publicKeyLength=Ht,e.box.secretKeyLength=Mt,e.box.sharedKeyLength=ge,e.box.nonceLength=Dt,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function($e,be){if(zt($e,be),be.length!==Bt)throw new Error("bad secret key size");var ve=new Uint8Array(_t+$e.length);return Kt(ve,$e,$e.length,be),ve},e.sign.open=function($e,be){if(arguments.length!==2)throw new Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");if(zt($e,be),be.length!==pt)throw new Error("bad public key size");var ve=new Uint8Array($e.length),se=te(ve,$e,$e.length,be);if(se<0)return null;for(var Pe=new Uint8Array(se),ze=0;ze<Pe.length;ze++)Pe[ze]=ve[ze];return Pe},e.sign.detached=function($e,be){for(var ve=e.sign($e,be),se=new Uint8Array(_t),Pe=0;Pe<se.length;Pe++)se[Pe]=ve[Pe];return se},e.sign.detached.verify=function($e,be,ve){if(zt($e,be,ve),be.length!==_t)throw new Error("bad signature size");if(ve.length!==pt)throw new Error("bad public key size");var se=new Uint8Array(_t+$e.length),Pe=new Uint8Array(_t+$e.length),ze;for(ze=0;ze<_t;ze++)se[ze]=be[ze];for(ze=0;ze<$e.length;ze++)se[ze+_t]=$e[ze];return te(Pe,se,se.length,ve)>=0},e.sign.keyPair=function(){var $e=new Uint8Array(pt),be=new Uint8Array(Bt);return Qe($e,be),{publicKey:$e,secretKey:be}},e.sign.keyPair.fromSecretKey=function($e){if(zt($e),$e.length!==Bt)throw new Error("bad secret key size");for(var be=new Uint8Array(pt),ve=0;ve<be.length;ve++)be[ve]=$e[32+ve];return{publicKey:be,secretKey:new Uint8Array($e)}},e.sign.keyPair.fromSeed=function($e){if(zt($e),$e.length!==ur)throw new Error("bad seed size");for(var be=new Uint8Array(pt),ve=new Uint8Array(Bt),se=0;se<32;se++)ve[se]=$e[se];return Qe(be,ve,!0),{publicKey:be,secretKey:ve}},e.sign.publicKeyLength=pt,e.sign.secretKeyLength=Bt,e.sign.seedLength=ur,e.sign.signatureLength=_t,e.hash=function($e){zt($e);var be=new Uint8Array(kt);return Je(be,$e,$e.length),be},e.hash.hashLength=kt,e.verify=function($e,be){return zt($e,be),$e.length===0||be.length===0||$e.length!==be.length?!1:j($e,0,be,0,$e.length)===0},e.setPRNG=function($e){l=$e},function(){var $e=typeof self<"u"?self.crypto||self.msCrypto:null;if($e&&$e.getRandomValues){var be=65536;e.setPRNG(function(ve,se){var Pe,ze=new Uint8Array(se);for(Pe=0;Pe<se;Pe+=be)$e.getRandomValues(ze.subarray(Pe,Pe+Math.min(se-Pe,be)));for(Pe=0;Pe<se;Pe++)ve[Pe]=ze[Pe];Qt(ze)})}else typeof commonjsRequire<"u"&&($e=requireCryptoBrowserify(),$e&&$e.randomBytes&&e.setPRNG(function(ve,se){var Pe,ze=$e.randomBytes(se);for(Pe=0;Pe<se;Pe++)ve[Pe]=ze[Pe];Qt(ze)}))}()})(n.exports?n.exports:self.nacl=self.nacl||{})}(naclFast)),naclFast.exports}var utils$2,hasRequiredUtils$2;function requireUtils$2(){if(hasRequiredUtils$2)return utils$2;hasRequiredUtils$2=1,utils$2={bufferSplit:N,addRSAMissing:y,calculateDSAPublic:ye,calculateED25519Public:L,calculateX25519Public:p,mpNormalize:fe,mpDenormalize:V,ecNormalize:ee,countZeros:F,assertCompatible:M,isCompatible:C,opensslKeyDeriv:j,opensshCipherInfo:c,publicFromPrivateECDSA:S,zeroPadToLength:le,writeBitString:re,readBitString:Z,pbkdf2:B};var n=requireAssert(),e=requireSafer().Buffer,o=requirePrivateKey(),l=requireKey(),t=requireCryptoBrowserify(),u=requireAlgs(),h=requireLib$4(),v=requireEc(),w=requireJsbn().BigInteger,A=requireNaclFast(),E=3;function C(m,x,T){if(m===null||typeof m!="object")return!1;if(T===void 0&&(T=x.prototype._sshpkApiVersion),m instanceof x&&x.prototype._sshpkApiVersion[0]==T[0])return!0;for(var b=Object.getPrototypeOf(m),d=0;b.constructor.name!==x.name;)if(b=Object.getPrototypeOf(b),!b||++d>E)return!1;if(b.constructor.name!==x.name)return!1;var k=b._sshpkApiVersion;return k===void 0&&(k=x._oldVersionDetect(m)),!(k[0]!=T[0]||k[1]<T[1])}function M(m,x,T,b){if(b===void 0&&(b="object"),n.ok(m,b+" must not be null"),n.object(m,b+" must be an object"),T===void 0&&(T=x.prototype._sshpkApiVersion),!(m instanceof x&&x.prototype._sshpkApiVersion[0]==T[0])){for(var d=Object.getPrototypeOf(m),k=0;d.constructor.name!==x.name;)d=Object.getPrototypeOf(d),n.ok(d&&++k<=E,b+" must be a "+x.name+" instance");n.strictEqual(d.constructor.name,x.name,b+" must be a "+x.name+" instance");var D=d._sshpkApiVersion;D===void 0&&(D=x._oldVersionDetect(m)),n.ok(D[0]==T[0]&&D[1]>=T[1],b+" must be compatible with "+x.name+" klass version "+T[0]+"."+T[1])}}var P={"des-ede3-cbc":{key:24,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}},I=8;function j(m,x,T,b){n.buffer(x,"salt"),n.buffer(T,"passphrase"),n.number(b,"iteration count");var d=P[m];n.object(d,"supported cipher"),x=x.slice(0,I);for(var k,D,O,Q=e.alloc(0);Q.length<d.key+d.iv;){O=[],D&&O.push(D),O.push(T),O.push(x),k=e.concat(O);for(var J=0;J<b;++J)k=t.createHash("md5").update(k).digest();Q=e.concat([Q,k]),D=k}return{key:Q.slice(0,d.key),iv:Q.slice(d.key,d.key+d.iv)}}function B(m,x,T,b,d){var k=e.alloc(x.length+4);x.copy(k);for(var D=0,O=[],Q=1;D<b;){var J=X(Q++);D+=J.length,O.push(J)}return e.concat(O).slice(0,b);function X(U){k.writeUInt32BE(U,k.length-4);var z=t.createHmac(m,d);z.update(k);for(var ie=z.digest(),de=ie,me=1;me++<T;){z=t.createHmac(m,d),z.update(de),de=z.digest();for(var pe=0;pe<ie.length;++pe)ie[pe]^=de[pe]}return ie}}function F(m){for(var x=0,T=8;x<m.length;){var b=1<<T;if((m[x]&b)===b)break;T--,T<0&&(x++,T=8)}return x*8+(8-T)-1}function N(m,x){n.buffer(m),n.string(x);for(var T=[],b=0,d=0,k=0;k<m.length;++k)if(m[k]===x.charCodeAt(d)?++d:m[k]===x.charCodeAt(0)?d=1:d=0,d>=x.length){var D=k+1;T.push(m.slice(b,D-d)),b=D,d=0}return b<=m.length&&T.push(m.slice(b,m.length)),T}function ee(m,x){if(n.buffer(m),m[0]===0&&m[1]===4)return x?m:m.slice(1);if(m[0]===4){if(!x)return m}else{for(;m[0]===0;)m=m.slice(1);if(m[0]===2||m[0]===3)throw new Error("Compressed elliptic curve points are not supported");if(m[0]!==4)throw new Error("Not a valid elliptic curve point");if(!x)return m}var T=e.alloc(m.length+1);return T[0]=0,m.copy(T,1),T}function Z(m,x){x===void 0&&(x=h.Ber.BitString);var T=m.readString(x,!0);return n.strictEqual(T[0],0,"bit strings with unused bits are not supported (0x"+T[0].toString(16)+")"),T.slice(1)}function re(m,x,T){T===void 0&&(T=h.Ber.BitString);var b=e.alloc(x.length+1);b[0]=0,x.copy(b,1),m.writeBuffer(b,T)}function fe(m){for(n.buffer(m);m.length>1&&m[0]===0&&!(m[1]&128);)m=m.slice(1);if((m[0]&128)===128){var x=e.alloc(m.length+1);x[0]=0,m.copy(x,1),m=x}return m}function V(m){for(n.buffer(m);m.length>1&&m[0]===0;)m=m.slice(1);return m}function le(m,x){for(n.buffer(m),n.number(x);m.length>x;)n.equal(m[0],0),m=m.slice(1);for(;m.length<x;){var T=e.alloc(m.length+1);T[0]=0,m.copy(T,1),m=T}return m}function he(m){var x=e.from(m.toByteArray());return x=fe(x),x}function ye(m,x,T){n.buffer(m),n.buffer(x),n.buffer(T),m=new w(m),x=new w(x),T=new w(T);var b=m.modPow(T,x),d=he(b);return d}function L(m){n.buffer(m);var x=A.sign.keyPair.fromSeed(new Uint8Array(m));return e.from(x.publicKey)}function p(m){n.buffer(m);var x=A.box.keyPair.fromSeed(new Uint8Array(m));return e.from(x.publicKey)}function y(m){n.object(m),M(m,o,[1,1]);var x=new w(m.part.d.data),T;if(!m.part.dmodp){var b=new w(m.part.p.data),d=x.mod(b.subtract(1));T=he(d),m.part.dmodp={name:"dmodp",data:T},m.parts.push(m.part.dmodp)}if(!m.part.dmodq){var k=new w(m.part.q.data),D=x.mod(k.subtract(1));T=he(D),m.part.dmodq={name:"dmodq",data:T},m.parts.push(m.part.dmodq)}}function S(m,x){n.string(m,"curveName"),n.buffer(x);var T=u.curves[m],b=new w(T.p),d=new w(T.a),k=new w(T.b),D=new v.ECCurveFp(b,d,k),O=D.decodePointHex(T.G.toString("hex")),Q=new w(fe(x)),J=O.multiply(Q);J=e.from(D.encodePointHex(J),"hex");var X=[];X.push({name:"curve",data:e.from(m)}),X.push({name:"Q",data:J});var U=new l({type:"ecdsa",curve:D,parts:X});return U}function c(m){var x={};switch(m){case"3des-cbc":x.keySize=24,x.blockSize=8,x.opensslName="des-ede3-cbc";break;case"blowfish-cbc":x.keySize=16,x.blockSize=8,x.opensslName="bf-cbc";break;case"aes128-cbc":case"aes128-ctr":case"aes128-gcm@openssh.com":x.keySize=16,x.blockSize=16,x.opensslName="aes-128-"+m.slice(7,10);break;case"aes192-cbc":case"aes192-ctr":case"aes192-gcm@openssh.com":x.keySize=24,x.blockSize=16,x.opensslName="aes-192-"+m.slice(7,10);break;case"aes256-cbc":case"aes256-ctr":case"aes256-gcm@openssh.com":x.keySize=32,x.blockSize=16,x.opensslName="aes-256-"+m.slice(7,10);break;default:throw new Error('Unsupported openssl cipher "'+m+'"')}return x}return utils$2}var sshBuffer,hasRequiredSshBuffer;function requireSshBuffer(){if(hasRequiredSshBuffer)return sshBuffer;hasRequiredSshBuffer=1,sshBuffer=o;var n=requireAssert(),e=requireSafer().Buffer;function o(l){n.object(l,"options"),l.buffer!==void 0&&n.buffer(l.buffer,"options.buffer"),this._size=l.buffer?l.buffer.length:1024,this._buffer=l.buffer||e.alloc(this._size),this._offset=0}return o.prototype.toBuffer=function(){return this._buffer.slice(0,this._offset)},o.prototype.atEnd=function(){return this._offset>=this._buffer.length},o.prototype.remainder=function(){return this._buffer.slice(this._offset)},o.prototype.skip=function(l){this._offset+=l},o.prototype.expand=function(){this._size*=2;var l=e.alloc(this._size);this._buffer.copy(l,0),this._buffer=l},o.prototype.readPart=function(){return{data:this.readBuffer()}},o.prototype.readBuffer=function(){var l=this._buffer.readUInt32BE(this._offset);this._offset+=4,n.ok(this._offset+l<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var t=this._buffer.slice(this._offset,this._offset+l);return this._offset+=l,t},o.prototype.readString=function(){return this.readBuffer().toString()},o.prototype.readCString=function(){for(var l=this._offset;l<this._buffer.length&&this._buffer[l]!==0;)l++;n.ok(l<this._buffer.length,"c string does not terminate");var t=this._buffer.slice(this._offset,l).toString();return this._offset=l+1,t},o.prototype.readInt=function(){var l=this._buffer.readUInt32BE(this._offset);return this._offset+=4,l},o.prototype.readInt64=function(){n.ok(this._offset+8<this._buffer.length,"buffer not long enough to read Int64");var l=this._buffer.slice(this._offset,this._offset+8);return this._offset+=8,l},o.prototype.readChar=function(){var l=this._buffer[this._offset++];return l},o.prototype.writeBuffer=function(l){for(;this._offset+4+l.length>this._size;)this.expand();this._buffer.writeUInt32BE(l.length,this._offset),this._offset+=4,l.copy(this._buffer,this._offset),this._offset+=l.length},o.prototype.writeString=function(l){this.writeBuffer(e.from(l,"utf8"))},o.prototype.writeCString=function(l){for(;this._offset+1+l.length>this._size;)this.expand();this._buffer.write(l,this._offset),this._offset+=l.length,this._buffer[this._offset++]=0},o.prototype.writeInt=function(l){for(;this._offset+4>this._size;)this.expand();this._buffer.writeUInt32BE(l,this._offset),this._offset+=4},o.prototype.writeInt64=function(l){if(n.buffer(l,"value"),l.length>8){for(var t=l.slice(0,l.length-8),u=0;u<t.length;++u)n.strictEqual(t[u],0,"must fit in 64 bits of precision");l=l.slice(l.length-8,l.length)}for(;this._offset+8>this._size;)this.expand();l.copy(this._buffer,this._offset),this._offset+=8},o.prototype.writeChar=function(l){for(;this._offset+1>this._size;)this.expand();this._buffer[this._offset++]=l},o.prototype.writePart=function(l){this.writeBuffer(l.data)},o.prototype.write=function(l){for(;this._offset+l.length>this._size;)this.expand();l.copy(this._buffer,this._offset),this._offset+=l.length},sshBuffer}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1,signature=w;var n=requireAssert(),e=requireSafer().Buffer;requireAlgs(),requireCryptoBrowserify();var o=requireErrors$1(),l=requireUtils$2(),t=requireLib$4(),u=requireSshBuffer(),h=o.InvalidAlgorithmError,v=o.SignatureParseError;function w(P){n.object(P,"options"),n.arrayOfObject(P.parts,"options.parts"),n.string(P.type,"options.type");for(var I={},j=0;j<P.parts.length;++j){var B=P.parts[j];I[B.name]=B}this.type=P.type,this.hashAlgorithm=P.hashAlgo,this.curve=P.curve,this.parts=P.parts,this.part=I}w.prototype.toBuffer=function(P){P===void 0&&(P="asn1"),n.string(P,"format");var I,j="ssh-"+this.type;switch(this.type){case"rsa":switch(this.hashAlgorithm){case"sha256":j="rsa-sha2-256";break;case"sha512":j="rsa-sha2-512";break;case"sha1":case void 0:break;default:throw new Error("SSH signature format does not support hash algorithm "+this.hashAlgorithm)}return P==="ssh"?(I=new u({}),I.writeString(j),I.writePart(this.part.sig),I.toBuffer()):this.part.sig.data;case"ed25519":return P==="ssh"?(I=new u({}),I.writeString(j),I.writePart(this.part.sig),I.toBuffer()):this.part.sig.data;case"dsa":case"ecdsa":var B,F;if(P==="asn1"){var N=new t.BerWriter;return N.startSequence(),B=l.mpNormalize(this.part.r.data),F=l.mpNormalize(this.part.s.data),N.writeBuffer(B,t.Ber.Integer),N.writeBuffer(F,t.Ber.Integer),N.endSequence(),N.buffer}else if(P==="ssh"&&this.type==="dsa"){if(I=new u({}),I.writeString("ssh-dss"),B=this.part.r.data,B.length>20&&B[0]===0&&(B=B.slice(1)),F=this.part.s.data,F.length>20&&F[0]===0&&(F=F.slice(1)),this.hashAlgorithm&&this.hashAlgorithm!=="sha1"||B.length+F.length!==40)throw new Error("OpenSSH only supports DSA signatures with SHA1 hash");return I.writeBuffer(e.concat([B,F])),I.toBuffer()}else if(P==="ssh"&&this.type==="ecdsa"){var ee=new u({});B=this.part.r.data,ee.writeBuffer(B),ee.writePart(this.part.s),I=new u({});var Z;B[0]===0&&(B=B.slice(1));var re=B.length*8;return re===256?Z="nistp256":re===384?Z="nistp384":re===528&&(Z="nistp521"),I.writeString("ecdsa-sha2-"+Z),I.writeBuffer(ee.toBuffer()),I.toBuffer()}throw new Error("Invalid signature format");default:throw new Error("Invalid signature data")}},w.prototype.toString=function(P){return n.optionalString(P,"format"),this.toBuffer(P).toString("base64")},w.parse=function(P,I,j){typeof P=="string"&&(P=e.from(P,"base64")),n.buffer(P,"data"),n.string(j,"format"),n.string(I,"type");var B={};B.type=I.toLowerCase(),B.parts=[];try{switch(n.ok(P.length>0,"signature must not be empty"),B.type){case"rsa":return A(P,I,j,B);case"ed25519":return A(P,I,j,B);case"dsa":case"ecdsa":return j==="asn1"?E(P,I,j,B):B.type==="dsa"?C(P,I,j,B):M(P,I,j,B);default:throw new h(I)}}catch(F){throw F instanceof h?F:new v(I,j,F)}};function A(P,I,j,B){if(j==="ssh"){try{var F=new u({buffer:P}),N=F.readString()}catch{}if(F!==void 0){var ee="SSH signature does not match expected type (expected "+I+", got "+N+")";switch(N){case"ssh-rsa":n.strictEqual(I,"rsa",ee),B.hashAlgo="sha1";break;case"rsa-sha2-256":n.strictEqual(I,"rsa",ee),B.hashAlgo="sha256";break;case"rsa-sha2-512":n.strictEqual(I,"rsa",ee),B.hashAlgo="sha512";break;case"ssh-ed25519":n.strictEqual(I,"ed25519",ee),B.hashAlgo="sha512";break;default:throw new Error("Unknown SSH signature type: "+N)}var Z=F.readPart();return n.ok(F.atEnd(),"extra trailing bytes"),Z.name="sig",B.parts.push(Z),new w(B)}}return B.parts.push({name:"sig",data:P}),new w(B)}function E(P,I,j,B){var F=new t.BerReader(P);F.readSequence();var N=F.readString(t.Ber.Integer,!0),ee=F.readString(t.Ber.Integer,!0);return B.parts.push({name:"r",data:l.mpNormalize(N)}),B.parts.push({name:"s",data:l.mpNormalize(ee)}),new w(B)}function C(P,I,j,B){if(P.length!=40){var F=new u({buffer:P}),N=F.readBuffer();N.toString("ascii")==="ssh-dss"&&(N=F.readBuffer()),n.ok(F.atEnd(),"extra trailing bytes"),n.strictEqual(N.length,40,"invalid inner length"),P=N}return B.parts.push({name:"r",data:P.slice(0,20)}),B.parts.push({name:"s",data:P.slice(20,40)}),new w(B)}function M(P,I,j,B){var F=new u({buffer:P}),N,ee,Z=F.readBuffer(),re=Z.toString("ascii");if(re.slice(0,6)==="ecdsa-"){var fe=re.split("-");switch(n.strictEqual(fe[0],"ecdsa"),n.strictEqual(fe[1],"sha2"),B.curve=fe[2],B.curve){case"nistp256":B.hashAlgo="sha256";break;case"nistp384":B.hashAlgo="sha384";break;case"nistp521":B.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+B.curve)}Z=F.readBuffer(),n.ok(F.atEnd(),"extra trailing bytes on outer"),F=new u({buffer:Z}),N=F.readPart()}else N={data:Z};return ee=F.readPart(),n.ok(F.atEnd(),"extra trailing bytes"),N.name="r",ee.name="s",B.parts.push(N),B.parts.push(ee),new w(B)}return w.isSignature=function(P,I){return l.isCompatible(P,w,I)},w.prototype._sshpkApiVersion=[2,1],w._oldVersionDetect=function(P){return n.func(P.toBuffer),P.hasOwnProperty("hashAlgorithm")?[2,0]:[1,0]},signature}var eccJsbn={},sec,hasRequiredSec;function requireSec(){if(hasRequiredSec)return sec;hasRequiredSec=1;var n=requireJsbn().BigInteger,e=requireEc().ECCurveFp;function o(j,B,F,N){this.curve=j,this.g=B,this.n=F,this.h=N}function l(){return this.curve}function t(){return this.g}function u(){return this.n}function h(){return this.h}o.prototype.getCurve=l,o.prototype.getG=t,o.prototype.getN=u,o.prototype.getH=h;function v(j){return new n(j,16)}function w(){var j=v("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF"),B=v("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC"),F=v("E87579C11079F43DD824993C2CEE5ED3"),N=v("FFFFFFFE0000000075A30D1B9038A115"),ee=n.ONE,Z=new e(j,B,F),re=Z.decodePointHex("04161FF7528B899B2D0C28607CA52C5B86CF5AC8395BAFEB13C02DA292DDED7A83");return new o(Z,re,N,ee)}function A(){var j=v("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73"),B=n.ZERO,F=v("7"),N=v("0100000000000000000001B8FA16DFAB9ACA16B6B3"),ee=n.ONE,Z=new e(j,B,F),re=Z.decodePointHex("043B4C382CE37AA192A4019E763036F4F5DD4D7EBB938CF935318FDCED6BC28286531733C3F03C4FEE");return new o(Z,re,N,ee)}function E(){var j=v("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF"),B=v("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC"),F=v("1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45"),N=v("0100000000000000000001F4C8F927AED3CA752257"),ee=n.ONE,Z=new e(j,B,F),re=Z.decodePointHex("044A96B5688EF573284664698968C38BB913CBFC8223A628553168947D59DCC912042351377AC5FB32");return new o(Z,re,N,ee)}function C(){var j=v("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37"),B=n.ZERO,F=v("3"),N=v("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D"),ee=n.ONE,Z=new e(j,B,F),re=Z.decodePointHex("04DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D");return new o(Z,re,N,ee)}function M(){var j=v("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF"),B=v("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC"),F=v("64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1"),N=v("FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831"),ee=n.ONE,Z=new e(j,B,F),re=Z.decodePointHex("04188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF101207192B95FFC8DA78631011ED6B24CDD573F977A11E794811");return new o(Z,re,N,ee)}function P(){var j=v("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001"),B=v("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE"),F=v("B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4"),N=v("FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D"),ee=n.ONE,Z=new e(j,B,F),re=Z.decodePointHex("04B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34");return new o(Z,re,N,ee)}function I(){var j=v("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF"),B=v("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC"),F=v("5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B"),N=v("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551"),ee=n.ONE,Z=new e(j,B,F),re=Z.decodePointHex("046B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C2964FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5");return new o(Z,re,N,ee)}return sec={secp128r1:w,secp160k1:A,secp160r1:E,secp192k1:C,secp192r1:M,secp224r1:P,secp256r1:I},sec}var hasRequiredEccJsbn;function requireEccJsbn(){if(hasRequiredEccJsbn)return eccJsbn;hasRequiredEccJsbn=1;var n=requireCryptoBrowserify(),e=requireJsbn().BigInteger;requireEc().ECPointFp;var o=requireSafer().Buffer;eccJsbn.ECCurves=requireSec();function l(t,u){return t.length>=u?t:l("0"+t,u)}return eccJsbn.ECKey=function(t,u,h){var v,w=t(),A=w.getN(),E=Math.floor(A.bitLength()/8);if(u)if(h){var t=w.getCurve();this.P=t.decodePointHex(u.toString("hex"))}else{if(u.length!=E)return!1;v=new e(u.toString("hex"),16)}else{var C=A.subtract(e.ONE),M=new e(n.randomBytes(A.bitLength()));v=M.mod(C).add(e.ONE),this.P=w.getG().multiply(v)}this.P&&(this.PublicKey=o.from(w.getCurve().encodeCompressedPointHex(this.P),"hex")),v&&(this.PrivateKey=o.from(l(v.toString(16),E*2),"hex"),this.deriveSharedSecret=function(P){if(!P||!P.P)return!1;var I=P.P.multiply(v);return o.from(l(I.getX().toBigInteger().toString(16),E*2),"hex")})},eccJsbn}var dhe,hasRequiredDhe;function requireDhe(){if(hasRequiredDhe)return dhe;hasRequiredDhe=1,dhe={DiffieHellman:C,generateECDSA:B,generateED25519:j};var n=requireAssert(),e=requireCryptoBrowserify(),o=requireSafer().Buffer,l=requireAlgs(),t=requireUtils$2(),u=requireNaclFast(),h=requireKey(),v=requirePrivateKey(),w=e.createECDH!==void 0;requireEccJsbn();var A=requireEc(),E=requireJsbn().BigInteger;function C(F){if(t.assertCompatible(F,h,[1,4],"key"),this._isPriv=v.isPrivateKey(F,[1,3]),this._algo=F.type,this._curve=F.curve,this._key=F,F.type==="dsa"){if(!w)throw new Error("Due to bugs in the node 0.10 crypto API, node 0.12.x or later is required to use DH");this._dh=e.createDiffieHellman(F.part.p.data,void 0,F.part.g.data,void 0),this._p=F.part.p,this._g=F.part.g,this._isPriv&&this._dh.setPrivateKey(F.part.x.data),this._dh.setPublicKey(F.part.y.data)}else if(F.type==="ecdsa"){if(!w){this._ecParams=new M(this._curve),this._isPriv&&(this._priv=new I(this._ecParams,F.part.d.data));return}var N={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[F.curve];if(this._dh=e.createECDH(N),typeof this._dh!="object"||typeof this._dh.setPrivateKey!="function"){w=!1,C.call(this,F);return}this._isPriv&&this._dh.setPrivateKey(F.part.d.data),this._dh.setPublicKey(F.part.Q.data)}else if(F.type==="curve25519")this._isPriv&&(t.assertCompatible(F,v,[1,5],"key"),this._priv=F.part.k.data);else throw new Error("DH not supported for "+F.type+" keys")}C.prototype.getPublicKey=function(){return this._isPriv?this._key.toPublic():this._key},C.prototype.getPrivateKey=function(){if(this._isPriv)return this._key},C.prototype.getKey=C.prototype.getPrivateKey,C.prototype._keyCheck=function(F,N){if(n.object(F,"key"),N||t.assertCompatible(F,v,[1,3],"key"),t.assertCompatible(F,h,[1,4],"key"),F.type!==this._algo)throw new Error("A "+F.type+" key cannot be used in "+this._algo+" Diffie-Hellman");if(F.curve!==this._curve)throw new Error("A key from the "+F.curve+" curve cannot be used with a "+this._curve+" Diffie-Hellman");F.type==="dsa"&&(n.deepEqual(F.part.p,this._p,"DSA key prime does not match"),n.deepEqual(F.part.g,this._g,"DSA key generator does not match"))},C.prototype.setKey=function(F){if(this._keyCheck(F),F.type==="dsa")this._dh.setPrivateKey(F.part.x.data),this._dh.setPublicKey(F.part.y.data);else if(F.type==="ecdsa")w?(this._dh.setPrivateKey(F.part.d.data),this._dh.setPublicKey(F.part.Q.data)):this._priv=new I(this._ecParams,F.part.d.data);else if(F.type==="curve25519"){var N=F.part.k;F.part.k||(N=F.part.r),this._priv=N.data,this._priv[0]===0&&(this._priv=this._priv.slice(1)),this._priv=this._priv.slice(0,32)}this._key=F,this._isPriv=!0},C.prototype.setPrivateKey=C.prototype.setKey,C.prototype.computeSecret=function(F){if(this._keyCheck(F,!0),!this._isPriv)throw new Error("DH exchange has not been initialized with a private key yet");var N;if(this._algo==="dsa")return this._dh.computeSecret(F.part.y.data);if(this._algo==="ecdsa")return w?this._dh.computeSecret(F.part.Q.data):(N=new P(this._ecParams,F.part.Q.data),this._priv.deriveSharedSecret(N));if(this._algo==="curve25519"){for(N=F.part.A.data;N[0]===0&&N.length>32;)N=N.slice(1);var ee=this._priv;n.strictEqual(N.length,32),n.strictEqual(ee.length,32);var Z=u.box.before(new Uint8Array(N),new Uint8Array(ee));return o.from(Z)}throw new Error("Invalid algorithm: "+this._algo)},C.prototype.generateKey=function(){var F=[],N,ee;if(this._algo==="dsa")return this._dh.generateKeys(),F.push({name:"p",data:this._p.data}),F.push({name:"q",data:this._key.part.q.data}),F.push({name:"g",data:this._g.data}),F.push({name:"y",data:this._dh.getPublicKey()}),F.push({name:"x",data:this._dh.getPrivateKey()}),this._key=new v({type:"dsa",parts:F}),this._isPriv=!0,this._key;if(this._algo==="ecdsa"){if(w)return this._dh.generateKeys(),F.push({name:"curve",data:o.from(this._curve)}),F.push({name:"Q",data:this._dh.getPublicKey()}),F.push({name:"d",data:this._dh.getPrivateKey()}),this._key=new v({type:"ecdsa",curve:this._curve,parts:F}),this._isPriv=!0,this._key;var Z=this._ecParams.getN(),re=new E(e.randomBytes(Z.bitLength())),fe=Z.subtract(E.ONE);return N=re.mod(fe).add(E.ONE),ee=this._ecParams.getG().multiply(N),N=o.from(N.toByteArray()),ee=o.from(this._ecParams.getCurve().encodePointHex(ee),"hex"),this._priv=new I(this._ecParams,N),F.push({name:"curve",data:o.from(this._curve)}),F.push({name:"Q",data:ee}),F.push({name:"d",data:N}),this._key=new v({type:"ecdsa",curve:this._curve,parts:F}),this._isPriv=!0,this._key}else if(this._algo==="curve25519"){var V=u.box.keyPair();return N=o.from(V.secretKey),ee=o.from(V.publicKey),N=o.concat([N,ee]),n.strictEqual(N.length,64),n.strictEqual(ee.length,32),F.push({name:"A",data:ee}),F.push({name:"k",data:N}),this._key=new v({type:"curve25519",parts:F}),this._isPriv=!0,this._key}throw new Error("Invalid algorithm: "+this._algo)},C.prototype.generateKeys=C.prototype.generateKey;function M(F){var N=l.curves[F];n.object(N);var ee=new E(N.p),Z=new E(N.a),re=new E(N.b),fe=new E(N.n),V=E.ONE,le=new A.ECCurveFp(ee,Z,re),he=le.decodePointHex(N.G.toString("hex"));this.curve=le,this.g=he,this.n=fe,this.h=V}M.prototype.getCurve=function(){return this.curve},M.prototype.getG=function(){return this.g},M.prototype.getN=function(){return this.n},M.prototype.getH=function(){return this.h};function P(F,N){this._params=F,N[0]===0&&(N=N.slice(1)),this._pub=F.getCurve().decodePointHex(N.toString("hex"))}function I(F,N){this._params=F,this._priv=new E(t.mpNormalize(N))}I.prototype.deriveSharedSecret=function(F){n.ok(F instanceof P);var N=F._pub.multiply(this._priv);return o.from(N.getX().toBigInteger().toByteArray())};function j(){var F=u.sign.keyPair(),N=o.from(F.secretKey),ee=o.from(F.publicKey);n.strictEqual(N.length,64),n.strictEqual(ee.length,32);var Z=[];Z.push({name:"A",data:ee}),Z.push({name:"k",data:N.slice(0,32)});var re=new v({type:"ed25519",parts:Z});return re}function B(F){var N=[],ee;if(w){var Z={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[F],re=e.createECDH(Z);return re.generateKeys(),N.push({name:"curve",data:o.from(F)}),N.push({name:"Q",data:re.getPublicKey()}),N.push({name:"d",data:re.getPrivateKey()}),ee=new v({type:"ecdsa",curve:F,parts:N}),ee}else{var fe=new M(F),V=fe.getN(),le=Math.ceil((V.bitLength()+64)/8),he=new E(e.randomBytes(le)),ye=V.subtract(E.ONE),L=he.mod(ye).add(E.ONE),p=fe.getG().multiply(L);return L=o.from(L.toByteArray()),p=o.from(fe.getCurve().encodePointHex(p),"hex"),N.push({name:"curve",data:o.from(F)}),N.push({name:"Q",data:p}),N.push({name:"d",data:L}),ee=new v({type:"ecdsa",curve:F,parts:N}),ee}}return dhe}var edCompat,hasRequiredEdCompat;function requireEdCompat(){if(hasRequiredEdCompat)return edCompat;hasRequiredEdCompat=1,edCompat={Verifier:h,Signer:v};var n=requireNaclFast(),e=requireStreamBrowserify(),o=util$6,l=requireAssert(),t=requireSafer().Buffer,u=requireSignature();function h(w,A){if(A.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=w,this.chunks=[],e.Writable.call(this,{})}o.inherits(h,e.Writable),h.prototype._write=function(w,A,E){this.chunks.push(w),E()},h.prototype.update=function(w){typeof w=="string"&&(w=t.from(w,"binary")),this.chunks.push(w)},h.prototype.verify=function(w,A){var E;if(u.isSignature(w,[2,0])){if(w.type!=="ed25519")return!1;E=w.toBuffer("raw")}else if(typeof w=="string")E=t.from(w,"base64");else if(u.isSignature(w,[1,0]))throw new Error("signature was created by too old a version of sshpk and cannot be verified");return l.buffer(E),n.sign.detached.verify(new Uint8Array(t.concat(this.chunks)),new Uint8Array(E),new Uint8Array(this.key.part.A.data))};function v(w,A){if(A.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=w,this.chunks=[],e.Writable.call(this,{})}return o.inherits(v,e.Writable),v.prototype._write=function(w,A,E){this.chunks.push(w),E()},v.prototype.update=function(w){typeof w=="string"&&(w=t.from(w,"binary")),this.chunks.push(w)},v.prototype.sign=function(){var w=n.sign.detached(new Uint8Array(t.concat(this.chunks)),new Uint8Array(t.concat([this.key.part.k.data,this.key.part.A.data]))),A=t.from(w),E=u.parse(A,"ed25519","raw");return E.hashAlgorithm="sha512",E},edCompat}var pkcs8,hasRequiredPkcs8;function requirePkcs8(){if(hasRequiredPkcs8)return pkcs8;hasRequiredPkcs8=1,pkcs8={read:w,readPkcs8:C,write:A,writePkcs8:le,pkcs8ToBuffer:V,readECDSACurve:B,writeECDSACurve:y};var n=requireAssert(),e=requireLib$4(),o=requireSafer().Buffer,l=requireAlgs(),t=requireUtils$2(),u=requireKey(),h=requirePrivateKey(),v=requirePem();function w(T,b){return v.read(T,b,"pkcs8")}function A(T,b){return v.write(T,b,"pkcs8")}function E(T,b){return n.strictEqual(T.peek(),e.Ber.Integer,b+" is not an Integer"),t.mpNormalize(T.readString(e.Ber.Integer,!0))}function C(T,b,d){d.peek()===e.Ber.Integer&&(n.strictEqual(b,"private","unexpected Integer at start of public key"),d.readString(e.Ber.Integer,!0)),d.readSequence();var k=d.offset+d.length,D=d.readOID();switch(D){case"1.2.840.113549.1.1.1":return d._offset=k,b==="public"?M(d):P(d);case"1.2.840.10040.4.1":return b==="public"?I(d):j(d);case"1.2.840.10045.2.1":return b==="public"?N(d):F(d);case"1.3.101.112":return b==="public"?ee(d):re(d);case"1.3.101.110":return b==="public"?Z(d):fe(d);default:throw new Error("Unknown key type OID "+D)}}function M(T){T.readSequence(e.Ber.BitString),T.readByte(),T.readSequence();var b=E(T,"modulus"),d=E(T,"exponent"),k={type:"rsa",source:T.originalInput,parts:[{name:"e",data:d},{name:"n",data:b}]};return new u(k)}function P(T){T.readSequence(e.Ber.OctetString),T.readSequence();var b=E(T,"version");n.equal(b[0],0,"unknown RSA private key version");var d=E(T,"modulus"),k=E(T,"public exponent"),D=E(T,"private exponent"),O=E(T,"prime1"),Q=E(T,"prime2"),J=E(T,"exponent1"),X=E(T,"exponent2"),U=E(T,"iqmp"),z={type:"rsa",parts:[{name:"n",data:d},{name:"e",data:k},{name:"d",data:D},{name:"iqmp",data:U},{name:"p",data:O},{name:"q",data:Q},{name:"dmodp",data:J},{name:"dmodq",data:X}]};return new h(z)}function I(T){T.readSequence();var b=E(T,"p"),d=E(T,"q"),k=E(T,"g");T.readSequence(e.Ber.BitString),T.readByte();var D=E(T,"y"),O={type:"dsa",parts:[{name:"p",data:b},{name:"q",data:d},{name:"g",data:k},{name:"y",data:D}]};return new u(O)}function j(T){T.readSequence();var b=E(T,"p"),d=E(T,"q"),k=E(T,"g");T.readSequence(e.Ber.OctetString);var D=E(T,"x"),O=t.calculateDSAPublic(k,b,D),Q={type:"dsa",parts:[{name:"p",data:b},{name:"q",data:d},{name:"g",data:k},{name:"y",data:O},{name:"x",data:D}]};return new h(Q)}function B(T){var b,d,k,D,O;if(T.peek()===e.Ber.OID){var Q=T.readOID();for(d=Object.keys(l.curves),k=0;k<d.length;++k)if(D=d[k],O=l.curves[D],O.pkcs8oid===Q){b=D;break}}else{T.readSequence();var J=T.readString(e.Ber.Integer,!0);n.strictEqual(J[0],1,"ECDSA key not version 1");var X={};T.readSequence();var U=T.readOID();n.strictEqual(U,"1.2.840.10045.1.1","ECDSA key is not from a prime-field");var z=X.p=t.mpNormalize(T.readString(e.Ber.Integer,!0));X.size=z.length*8-t.countZeros(z),T.readSequence(),X.a=t.mpNormalize(T.readString(e.Ber.OctetString,!0)),X.b=t.mpNormalize(T.readString(e.Ber.OctetString,!0)),T.peek()===e.Ber.BitString&&(X.s=T.readString(e.Ber.BitString,!0)),X.G=T.readString(e.Ber.OctetString,!0),n.strictEqual(X.G[0],4,"uncompressed G is required"),X.n=t.mpNormalize(T.readString(e.Ber.Integer,!0)),X.h=t.mpNormalize(T.readString(e.Ber.Integer,!0)),n.strictEqual(X.h[0],1,"a cofactor=1 curve is required"),d=Object.keys(l.curves);var ie=Object.keys(X);for(k=0;k<d.length;++k){D=d[k],O=l.curves[D];for(var de=!0,me=0;me<ie.length;++me){var pe=ie[me];if(O[pe]!==void 0){if(typeof O[pe]=="object"&&O[pe].equals!==void 0){if(!O[pe].equals(X[pe])){de=!1;break}}else if(o.isBuffer(O[pe])){if(O[pe].toString("binary")!==X[pe].toString("binary")){de=!1;break}}else if(O[pe]!==X[pe]){de=!1;break}}}if(de){b=D;break}}}return b}function F(T){var b=B(T);n.string(b,"a known elliptic curve"),T.readSequence(e.Ber.OctetString),T.readSequence();var d=E(T,"version");n.equal(d[0],1,"unknown version of ECDSA key");var k=T.readString(e.Ber.OctetString,!0),D;if(T.peek()==160&&(T.readSequence(160),T._offset+=T.length),T.peek()==161&&(T.readSequence(161),D=T.readString(e.Ber.BitString,!0),D=t.ecNormalize(D)),D===void 0){var O=t.publicFromPrivateECDSA(b,k);D=O.part.Q.data}var Q={type:"ecdsa",parts:[{name:"curve",data:o.from(b)},{name:"Q",data:D},{name:"d",data:k}]};return new h(Q)}function N(T){var b=B(T);n.string(b,"a known elliptic curve");var d=T.readString(e.Ber.BitString,!0);d=t.ecNormalize(d);var k={type:"ecdsa",parts:[{name:"curve",data:o.from(b)},{name:"Q",data:d}]};return new u(k)}function ee(T){T.peek()===0&&T.readByte();var b=t.readBitString(T),d={type:"ed25519",parts:[{name:"A",data:t.zeroPadToLength(b,32)}]};return new u(d)}function Z(T){var b=t.readBitString(T),d={type:"curve25519",parts:[{name:"A",data:t.zeroPadToLength(b,32)}]};return new u(d)}function re(T){T.peek()===0&&T.readByte(),T.readSequence(e.Ber.OctetString);var b=T.readString(e.Ber.OctetString,!0);b=t.zeroPadToLength(b,32);for(var d,k;(k=T.peek())!==null;)k===(e.Ber.Context|1)?d=t.readBitString(T,k):(T.readSequence(k),T._offset+=T.length);d===void 0&&(d=t.calculateED25519Public(b));var D={type:"ed25519",parts:[{name:"A",data:t.zeroPadToLength(d,32)},{name:"k",data:t.zeroPadToLength(b,32)}]};return new h(D)}function fe(T){T.peek()===0&&T.readByte(),T.readSequence(e.Ber.OctetString);var b=T.readString(e.Ber.OctetString,!0);b=t.zeroPadToLength(b,32);var d=t.calculateX25519Public(b),k={type:"curve25519",parts:[{name:"A",data:t.zeroPadToLength(d,32)},{name:"k",data:t.zeroPadToLength(b,32)}]};return new h(k)}function V(T){var b=new e.BerWriter;return le(b,T),b.buffer}function le(T,b){if(T.startSequence(),h.isPrivateKey(b)){var d=0;b.type==="ed25519"&&(d=1);var k=o.from([d]);T.writeBuffer(k,e.Ber.Integer)}switch(T.startSequence(),b.type){case"rsa":T.writeOID("1.2.840.113549.1.1.1"),h.isPrivateKey(b)?he(b,T):ye(b,T);break;case"dsa":T.writeOID("1.2.840.10040.4.1"),h.isPrivateKey(b)?L(b,T):p(b,T);break;case"ecdsa":T.writeOID("1.2.840.10045.2.1"),h.isPrivateKey(b)?c(b,T):S(b,T);break;case"ed25519":T.writeOID("1.3.101.112"),h.isPrivateKey(b)?x(b,T):m(b,T);break;default:throw new Error("Unsupported key type: "+b.type)}T.endSequence()}function he(T,b){b.writeNull(),b.endSequence(),b.startSequence(e.Ber.OctetString),b.startSequence();var d=o.from([0]);b.writeBuffer(d,e.Ber.Integer),b.writeBuffer(T.part.n.data,e.Ber.Integer),b.writeBuffer(T.part.e.data,e.Ber.Integer),b.writeBuffer(T.part.d.data,e.Ber.Integer),b.writeBuffer(T.part.p.data,e.Ber.Integer),b.writeBuffer(T.part.q.data,e.Ber.Integer),(!T.part.dmodp||!T.part.dmodq)&&t.addRSAMissing(T),b.writeBuffer(T.part.dmodp.data,e.Ber.Integer),b.writeBuffer(T.part.dmodq.data,e.Ber.Integer),b.writeBuffer(T.part.iqmp.data,e.Ber.Integer),b.endSequence(),b.endSequence()}function ye(T,b){b.writeNull(),b.endSequence(),b.startSequence(e.Ber.BitString),b.writeByte(0),b.startSequence(),b.writeBuffer(T.part.n.data,e.Ber.Integer),b.writeBuffer(T.part.e.data,e.Ber.Integer),b.endSequence(),b.endSequence()}function L(T,b){b.startSequence(),b.writeBuffer(T.part.p.data,e.Ber.Integer),b.writeBuffer(T.part.q.data,e.Ber.Integer),b.writeBuffer(T.part.g.data,e.Ber.Integer),b.endSequence(),b.endSequence(),b.startSequence(e.Ber.OctetString),b.writeBuffer(T.part.x.data,e.Ber.Integer),b.endSequence()}function p(T,b){b.startSequence(),b.writeBuffer(T.part.p.data,e.Ber.Integer),b.writeBuffer(T.part.q.data,e.Ber.Integer),b.writeBuffer(T.part.g.data,e.Ber.Integer),b.endSequence(),b.endSequence(),b.startSequence(e.Ber.BitString),b.writeByte(0),b.writeBuffer(T.part.y.data,e.Ber.Integer),b.endSequence()}function y(T,b){var d=l.curves[T.curve];if(d.pkcs8oid)b.writeOID(d.pkcs8oid);else{b.startSequence();var k=o.from([1]);b.writeBuffer(k,e.Ber.Integer),b.startSequence(),b.writeOID("1.2.840.10045.1.1"),b.writeBuffer(d.p,e.Ber.Integer),b.endSequence(),b.startSequence();var D=d.p;D[0]===0&&(D=D.slice(1)),b.writeBuffer(D,e.Ber.OctetString),b.writeBuffer(d.b,e.Ber.OctetString),b.writeBuffer(d.s,e.Ber.BitString),b.endSequence(),b.writeBuffer(d.G,e.Ber.OctetString),b.writeBuffer(d.n,e.Ber.Integer);var O=d.h;O||(O=o.from([1])),b.writeBuffer(O,e.Ber.Integer),b.endSequence()}}function S(T,b){y(T,b),b.endSequence();var d=t.ecNormalize(T.part.Q.data,!0);b.writeBuffer(d,e.Ber.BitString)}function c(T,b){y(T,b),b.endSequence(),b.startSequence(e.Ber.OctetString),b.startSequence();var d=o.from([1]);b.writeBuffer(d,e.Ber.Integer),b.writeBuffer(T.part.d.data,e.Ber.OctetString),b.startSequence(161);var k=t.ecNormalize(T.part.Q.data,!0);b.writeBuffer(k,e.Ber.BitString),b.endSequence(),b.endSequence(),b.endSequence()}function m(T,b){b.endSequence(),t.writeBitString(b,T.part.A.data)}function x(T,b){b.endSequence(),b.startSequence(e.Ber.OctetString);for(var d=t.mpNormalize(T.part.k.data);d.length>32&&d[0]===0;)d=d.slice(1);b.writeBuffer(d,e.Ber.OctetString),b.endSequence(),t.writeBitString(b,T.part.A.data,e.Ber.Context|1)}return pkcs8}var pkcs1,hasRequiredPkcs1;function requirePkcs1(){if(hasRequiredPkcs1)return pkcs1;hasRequiredPkcs1=1,pkcs1={read:E,readPkcs1:P,write:C,writePkcs1:re};var n=requireAssert(),e=requireLib$4(),o=requireSafer().Buffer,l=requireAlgs(),t=requireUtils$2(),u=requireKey(),h=requirePrivateKey(),v=requirePem(),w=requirePkcs8(),A=w.readECDSACurve;function E(S,c){return v.read(S,c,"pkcs1")}function C(S,c){return v.write(S,c,"pkcs1")}function M(S,c){return n.strictEqual(S.peek(),e.Ber.Integer,c+" is not an Integer"),t.mpNormalize(S.readString(e.Ber.Integer,!0))}function P(S,c,m){switch(S){case"RSA":if(c==="public")return I(m);if(c==="private")return j(m);throw new Error("Unknown key type: "+c);case"DSA":if(c==="public")return N(m);if(c==="private")return B(m);throw new Error("Unknown key type: "+c);case"EC":case"ECDSA":if(c==="private")return Z(m);if(c==="public")return ee(m);throw new Error("Unknown key type: "+c);case"EDDSA":case"EdDSA":if(c==="private")return F(m);throw new Error(c+" keys not supported with EdDSA");default:throw new Error("Unknown key algo: "+S)}}function I(S){var c=M(S,"modulus"),m=M(S,"exponent"),x={type:"rsa",parts:[{name:"e",data:m},{name:"n",data:c}]};return new u(x)}function j(S){var c=M(S,"version");n.strictEqual(c[0],0);var m=M(S,"modulus"),x=M(S,"public exponent"),T=M(S,"private exponent"),b=M(S,"prime1"),d=M(S,"prime2"),k=M(S,"exponent1"),D=M(S,"exponent2"),O=M(S,"iqmp"),Q={type:"rsa",parts:[{name:"n",data:m},{name:"e",data:x},{name:"d",data:T},{name:"iqmp",data:O},{name:"p",data:b},{name:"q",data:d},{name:"dmodp",data:k},{name:"dmodq",data:D}]};return new h(Q)}function B(S){var c=M(S,"version");n.strictEqual(c.readUInt8(0),0);var m=M(S,"p"),x=M(S,"q"),T=M(S,"g"),b=M(S,"y"),d=M(S,"x"),k={type:"dsa",parts:[{name:"p",data:m},{name:"q",data:x},{name:"g",data:T},{name:"y",data:b},{name:"x",data:d}]};return new h(k)}function F(S){var c=M(S,"version");n.strictEqual(c.readUInt8(0),1);var m=S.readString(e.Ber.OctetString,!0);S.readSequence(160);var x=S.readOID();n.strictEqual(x,"1.3.101.112","the ed25519 curve identifier"),S.readSequence(161);var T=t.readBitString(S),b={type:"ed25519",parts:[{name:"A",data:t.zeroPadToLength(T,32)},{name:"k",data:m}]};return new h(b)}function N(S){var c=M(S,"y"),m=M(S,"p"),x=M(S,"q"),T=M(S,"g"),b={type:"dsa",parts:[{name:"y",data:c},{name:"p",data:m},{name:"q",data:x},{name:"g",data:T}]};return new u(b)}function ee(S){S.readSequence();var c=S.readOID();n.strictEqual(c,"1.2.840.10045.2.1","must be ecPublicKey");for(var m=S.readOID(),x,T=Object.keys(l.curves),b=0;b<T.length;++b){var d=T[b],k=l.curves[d];if(k.pkcs8oid===m){x=d;break}}n.string(x,"a known ECDSA named curve");var D=S.readString(e.Ber.BitString,!0);D=t.ecNormalize(D);var O={type:"ecdsa",parts:[{name:"curve",data:o.from(x)},{name:"Q",data:D}]};return new u(O)}function Z(S){var c=M(S,"version");n.strictEqual(c.readUInt8(0),1);var m=S.readString(e.Ber.OctetString,!0);S.readSequence(160);var x=A(S);n.string(x,"a known elliptic curve"),S.readSequence(161);var T=S.readString(e.Ber.BitString,!0);T=t.ecNormalize(T);var b={type:"ecdsa",parts:[{name:"curve",data:o.from(x)},{name:"Q",data:T},{name:"d",data:m}]};return new h(b)}function re(S,c){switch(S.startSequence(),c.type){case"rsa":h.isPrivateKey(c)?V(S,c):fe(S,c);break;case"dsa":h.isPrivateKey(c)?le(S,c):he(S,c);break;case"ecdsa":h.isPrivateKey(c)?L(S,c):ye(S,c);break;case"ed25519":h.isPrivateKey(c)?p(S,c):y();break;default:throw new Error("Unknown key algo: "+c.type)}S.endSequence()}function fe(S,c){S.writeBuffer(c.part.n.data,e.Ber.Integer),S.writeBuffer(c.part.e.data,e.Ber.Integer)}function V(S,c){var m=o.from([0]);S.writeBuffer(m,e.Ber.Integer),S.writeBuffer(c.part.n.data,e.Ber.Integer),S.writeBuffer(c.part.e.data,e.Ber.Integer),S.writeBuffer(c.part.d.data,e.Ber.Integer),S.writeBuffer(c.part.p.data,e.Ber.Integer),S.writeBuffer(c.part.q.data,e.Ber.Integer),(!c.part.dmodp||!c.part.dmodq)&&t.addRSAMissing(c),S.writeBuffer(c.part.dmodp.data,e.Ber.Integer),S.writeBuffer(c.part.dmodq.data,e.Ber.Integer),S.writeBuffer(c.part.iqmp.data,e.Ber.Integer)}function le(S,c){var m=o.from([0]);S.writeBuffer(m,e.Ber.Integer),S.writeBuffer(c.part.p.data,e.Ber.Integer),S.writeBuffer(c.part.q.data,e.Ber.Integer),S.writeBuffer(c.part.g.data,e.Ber.Integer),S.writeBuffer(c.part.y.data,e.Ber.Integer),S.writeBuffer(c.part.x.data,e.Ber.Integer)}function he(S,c){S.writeBuffer(c.part.y.data,e.Ber.Integer),S.writeBuffer(c.part.p.data,e.Ber.Integer),S.writeBuffer(c.part.q.data,e.Ber.Integer),S.writeBuffer(c.part.g.data,e.Ber.Integer)}function ye(S,c){S.startSequence(),S.writeOID("1.2.840.10045.2.1");var m=c.part.curve.data.toString(),x=l.curves[m].pkcs8oid;n.string(x,"a known ECDSA named curve"),S.writeOID(x),S.endSequence();var T=t.ecNormalize(c.part.Q.data,!0);S.writeBuffer(T,e.Ber.BitString)}function L(S,c){var m=o.from([1]);S.writeBuffer(m,e.Ber.Integer),S.writeBuffer(c.part.d.data,e.Ber.OctetString),S.startSequence(160);var x=c.part.curve.data.toString(),T=l.curves[x].pkcs8oid;n.string(T,"a known ECDSA named curve"),S.writeOID(T),S.endSequence(),S.startSequence(161);var b=t.ecNormalize(c.part.Q.data,!0);S.writeBuffer(b,e.Ber.BitString),S.endSequence()}function p(S,c){var m=o.from([1]);S.writeBuffer(m,e.Ber.Integer),S.writeBuffer(c.part.k.data,e.Ber.OctetString),S.startSequence(160),S.writeOID("1.3.101.112"),S.endSequence(),S.startSequence(161),t.writeBitString(S,c.part.A.data),S.endSequence()}function y(S,c){throw new Error("Public keys are not supported for EdDSA PKCS#1")}return pkcs1}var rfc4253,hasRequiredRfc4253;function requireRfc4253(){if(hasRequiredRfc4253)return rfc4253;hasRequiredRfc4253=1,rfc4253={read:A.bind(void 0,!1,void 0),readType:A.bind(void 0,!1),write:E,readPartial:A.bind(void 0,!0),readInternal:A,keyTypeToAlg:w,algToKeyType:v};var n=requireAssert(),e=requireSafer().Buffer,o=requireAlgs(),l=requireUtils$2(),t=requireKey(),u=requirePrivateKey(),h=requireSshBuffer();function v(C){if(n.string(C),C==="ssh-dss")return"dsa";if(C==="ssh-rsa")return"rsa";if(C==="ssh-ed25519")return"ed25519";if(C==="ssh-curve25519")return"curve25519";if(C.match(/^ecdsa-sha2-/))return"ecdsa";throw new Error("Unknown algorithm "+C)}function w(C){if(n.object(C),C.type==="dsa")return"ssh-dss";if(C.type==="rsa")return"ssh-rsa";if(C.type==="ed25519")return"ssh-ed25519";if(C.type==="curve25519")return"ssh-curve25519";if(C.type==="ecdsa")return"ecdsa-sha2-"+C.part.curve.data.toString();throw new Error("Unknown key type "+C.type)}function A(C,M,P,I){typeof P=="string"&&(P=e.from(P)),n.buffer(P,"buf");var j={},B=j.parts=[],F=new h({buffer:P}),N=F.readString();n.ok(!F.atEnd(),"key must have at least one part"),j.type=v(N);var ee=o.info[j.type].parts.length;for(M&&M==="private"&&(ee=o.privInfo[j.type].parts.length);!F.atEnd()&&B.length<ee;)B.push(F.readPart());for(;!C&&!F.atEnd();)B.push(F.readPart());n.ok(B.length>=1,"key must have at least one part"),n.ok(C||F.atEnd(),"leftover bytes at end of key");var Z=t,re=o.info[j.type];if((M==="private"||re.parts.length!==B.length)&&(re=o.privInfo[j.type],Z=u),n.strictEqual(re.parts.length,B.length),j.type==="ecdsa"){var fe=/^ecdsa-sha2-(.+)$/.exec(N);n.ok(fe!==null),n.strictEqual(fe[1],B[0].data.toString())}for(var V=!0,le=0;le<re.parts.length;++le){var he=B[le];if(he.name=re.parts[le],j.type==="ed25519"&&he.name==="k"&&(he.data=he.data.slice(0,32)),he.name!=="curve"&&re.normalize!==!1){var ye;j.type==="ed25519"?ye=l.zeroPadToLength(he.data,32):ye=l.mpNormalize(he.data),ye.toString("binary")!==he.data.toString("binary")&&(he.data=ye,V=!1)}}return V&&(j._rfc4253Cache=F.toBuffer()),C&&typeof C=="object"&&(C.remainder=F.remainder(),C.consumed=F._offset),new Z(j)}function E(C,M){n.object(C);var P=w(C),I,j=o.info[C.type];u.isPrivateKey(C)&&(j=o.privInfo[C.type]);var B=j.parts,F=new h({});for(F.writeString(P),I=0;I<B.length;++I){var N=C.part[B[I]].data;j.normalize!==!1&&(C.type==="ed25519"?N=l.zeroPadToLength(N,32):N=l.mpNormalize(N)),C.type==="ed25519"&&B[I]==="k"&&(N=e.concat([N,C.part.A.data])),F.writeBuffer(N)}return F.toBuffer()}return rfc4253}var bcryptPbkdf,hasRequiredBcryptPbkdf;function requireBcryptPbkdf(){if(hasRequiredBcryptPbkdf)return bcryptPbkdf;hasRequiredBcryptPbkdf=1;var n=requireNaclFast().lowlevel.crypto_hash,e=0,o=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])],this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function l(A,E,C){return(A[0][E[C+3]]+A[1][E[C+2]]^A[2][E[C+1]])+A[3][E[C]]}o.prototype.encipher=function(A,E){E===void 0&&(E=new Uint8Array(A.buffer),A.byteOffset!==0&&(E=E.subarray(A.byteOffset))),A[0]^=this.P[0];for(var C=1;C<16;C+=2)A[1]^=l(this.S,E,0)^this.P[C],A[0]^=l(this.S,E,4)^this.P[C+1];var M=A[0];A[0]=A[1]^this.P[17],A[1]=M},o.prototype.decipher=function(A){var E=new Uint8Array(A.buffer);A.byteOffset!==0&&(E=E.subarray(A.byteOffset)),A[0]^=this.P[17];for(var C=16;C>0;C-=2)A[1]^=l(this.S,E,0)^this.P[C],A[0]^=l(this.S,E,4)^this.P[C-1];var M=A[0];A[0]=A[1]^this.P[0],A[1]=M};function t(A,E){var C,M=0;for(C=0;C<4;C++,e++)e>=E&&(e=0),M=M<<8|A[e];return M}o.prototype.expand0state=function(A,E){var C=new Uint32Array(2),M,P,I=new Uint8Array(C.buffer);for(M=0,e=0;M<18;M++)this.P[M]^=t(A,E);for(e=0,M=0;M<18;M+=2)this.encipher(C,I),this.P[M]=C[0],this.P[M+1]=C[1];for(M=0;M<4;M++)for(P=0;P<256;P+=2)this.encipher(C,I),this.S[M][P]=C[0],this.S[M][P+1]=C[1]},o.prototype.expandstate=function(A,E,C,M){var P=new Uint32Array(2),I,j;for(I=0,e=0;I<18;I++)this.P[I]^=t(C,M);for(I=0,e=0;I<18;I+=2)P[0]^=t(A,E),P[1]^=t(A,E),this.encipher(P),this.P[I]=P[0],this.P[I+1]=P[1];for(I=0;I<4;I++)for(j=0;j<256;j+=2)P[0]^=t(A,E),P[1]^=t(A,E),this.encipher(P),this.S[I][j]=P[0],this.S[I][j+1]=P[1];e=0},o.prototype.enc=function(A,E){for(var C=0;C<E;C++)this.encipher(A.subarray(C*2))},o.prototype.dec=function(A,E){for(var C=0;C<E;C++)this.decipher(A.subarray(C*2))};var u=8,h=32;function v(A,E,C){var M=new o,P=new Uint32Array(u),I,j=new Uint8Array([79,120,121,99,104,114,111,109,97,116,105,99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109,105,116,101]);for(M.expandstate(E,64,A,64),I=0;I<64;I++)M.expand0state(E,64),M.expand0state(A,64);for(I=0;I<u;I++)P[I]=t(j,j.byteLength);for(I=0;I<64;I++)M.enc(P,P.byteLength/8);for(I=0;I<u;I++)C[4*I+3]=P[I]>>>24,C[4*I+2]=P[I]>>>16,C[4*I+1]=P[I]>>>8,C[4*I+0]=P[I]}function w(A,E,C,M,P,I,j){var B=new Uint8Array(64),F=new Uint8Array(64),N=new Uint8Array(h),ee=new Uint8Array(h),Z=new Uint8Array(M+4),re,fe,V,le,he,ye,L=I;if(j<1||E===0||M===0||I===0||I>N.byteLength*N.byteLength||M>1<<20)return-1;for(le=Math.floor((I+N.byteLength-1)/N.byteLength),V=Math.floor((I+le-1)/le),re=0;re<M;re++)Z[re]=C[re];for(n(B,A,E),ye=1;I>0;ye++){for(Z[M+0]=ye>>>24,Z[M+1]=ye>>>16,Z[M+2]=ye>>>8,Z[M+3]=ye,n(F,Z,M+4),v(B,F,ee),re=N.byteLength;re--;)N[re]=ee[re];for(re=1;re<j;re++)for(n(F,ee,ee.byteLength),v(B,F,ee),fe=0;fe<N.byteLength;fe++)N[fe]^=ee[fe];for(V=Math.min(V,I),re=0;re<V&&(he=re*le+(ye-1),!(he>=L));re++)P[he]=N[re];I-=re}return 0}return bcryptPbkdf={BLOCKS:u,HASHSIZE:h,hash:v,pbkdf:w},bcryptPbkdf}var sshPrivate,hasRequiredSshPrivate;function requireSshPrivate(){if(hasRequiredSshPrivate)return sshPrivate;hasRequiredSshPrivate=1,sshPrivate={read:E,readSSHPrivate:M,write:P};var n=requireAssert();requireLib$4();var e=requireSafer().Buffer;requireAlgs();var o=requireUtils$2(),l=requireCryptoBrowserify();requireKey();var t=requirePrivateKey(),u=requirePem(),h=requireRfc4253(),v=requireSshBuffer(),w=requireErrors$1(),A;function E(I,j){return u.read(I,j)}var C="openssh-key-v1";function M(I,j,B){j=new v({buffer:j});var F=j.readCString();n.strictEqual(F,C,"bad magic string");var N=j.readString(),ee=j.readString(),Z=j.readBuffer(),re=j.readInt();if(re!==1)throw new Error("OpenSSH-format key file contains multiple keys: this is unsupported.");var fe=j.readBuffer();if(I==="public")return n.ok(j.atEnd(),"excess bytes left after key"),h.read(fe);var V=j.readBuffer();n.ok(j.atEnd(),"excess bytes left after key");var le=new v({buffer:Z});switch(ee){case"none":if(N!=="none")throw new Error('OpenSSH-format key uses KDF "none" but specifies a cipher other than "none"');break;case"bcrypt":var he=le.readBuffer(),ye=le.readInt(),L=o.opensshCipherInfo(N);if(A===void 0&&(A=requireBcryptPbkdf()),typeof B.passphrase=="string"&&(B.passphrase=e.from(B.passphrase,"utf-8")),!e.isBuffer(B.passphrase))throw new w.KeyEncryptedError(B.filename,"OpenSSH");var p=new Uint8Array(B.passphrase),y=new Uint8Array(he),S=new Uint8Array(L.keySize+L.blockSize),c=A.pbkdf(p,p.length,y,y.length,S,S.length,ye);if(c!==0)throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");S=e.from(S);var m=S.slice(0,L.keySize),x=S.slice(L.keySize,L.keySize+L.blockSize),T=l.createDecipheriv(L.opensslName,m,x);T.setAutoPadding(!1);var b,d=[];for(T.once("error",function(X){throw X.toString().indexOf("bad decrypt")!==-1?new Error("Incorrect passphrase supplied, could not decrypt key"):X}),T.write(V),T.end();(b=T.read())!==null;)d.push(b);V=e.concat(d);break;default:throw new Error('OpenSSH-format key uses unknown KDF "'+ee+'"')}j=new v({buffer:V});var k=j.readInt(),D=j.readInt();if(k!==D)throw new Error("Incorrect passphrase supplied, could not decrypt key");var O={},Q=h.readInternal(O,"private",j.remainder());j.skip(O.consumed);var J=j.readString();return Q.comment=J,Q}function P(I,j){var B;t.isPrivateKey(I)?B=I.toPublic():B=I;var F="none",N="none",ee=e.alloc(0),Z={blockSize:8},re;j!==void 0&&(re=j.passphrase,typeof re=="string"&&(re=e.from(re,"utf-8")),re!==void 0&&(n.buffer(re,"options.passphrase"),n.optionalString(j.cipher,"options.cipher"),F=j.cipher,F===void 0&&(F="aes128-ctr"),Z=o.opensshCipherInfo(F),N="bcrypt"));var fe;if(t.isPrivateKey(I)){fe=new v({});var V=l.randomBytes(4).readUInt32BE(0);fe.writeInt(V),fe.writeInt(V),fe.write(I.toBuffer("rfc4253")),fe.writeString(I.comment||"");for(var le=1;fe._offset%Z.blockSize!==0;)fe.writeChar(le++);fe=fe.toBuffer()}switch(N){case"none":break;case"bcrypt":var he=l.randomBytes(16),ye=16,L=new v({});L.writeBuffer(he),L.writeInt(ye),ee=L.toBuffer(),A===void 0&&(A=requireBcryptPbkdf());var p=new Uint8Array(re),y=new Uint8Array(he),S=new Uint8Array(Z.keySize+Z.blockSize),c=A.pbkdf(p,p.length,y,y.length,S,S.length,ye);if(c!==0)throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");S=e.from(S);var m=S.slice(0,Z.keySize),x=S.slice(Z.keySize,Z.keySize+Z.blockSize),T=l.createCipheriv(Z.opensslName,m,x);T.setAutoPadding(!1);var b,d=[];for(T.once("error",function(z){throw z}),T.write(fe),T.end();(b=T.read())!==null;)d.push(b);fe=e.concat(d);break;default:throw new Error("Unsupported kdf "+N)}var k=new v({});k.writeCString(C),k.writeString(F),k.writeString(N),k.writeBuffer(ee),k.writeInt(1),k.writeBuffer(B.toBuffer("rfc4253")),fe&&k.writeBuffer(fe),k=k.toBuffer();var D;t.isPrivateKey(I)?D="OPENSSH PRIVATE KEY":D="OPENSSH PUBLIC KEY";var O=k.toString("base64"),Q=O.length+O.length/70+18+16+D.length*2+10;k=e.alloc(Q);var J=0;J+=k.write("-----BEGIN "+D+`-----
`,J);for(var X=0;X<O.length;){var U=X+70;U>O.length&&(U=O.length),J+=k.write(O.slice(X,U),J),k[J++]=10,X=U}return J+=k.write("-----END "+D+`-----
`,J),k.slice(0,J)}return sshPrivate}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1,pem={read:B,write:F};var n=requireAssert(),e=requireLib$4(),o=requireCryptoBrowserify(),l=requireSafer().Buffer;requireAlgs();var t=requireUtils$2(),u=requireKey(),h=requirePrivateKey(),v=requirePkcs1(),w=requirePkcs8(),A=requireSshPrivate(),E=requireRfc4253(),C=requireErrors$1(),M="1.2.840.113549.1.5.13",P="1.2.840.113549.1.5.12",I={"1.2.840.113549.3.7":"3des-cbc","2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"};Object.keys(I).forEach(function(N){});var j={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"};Object.keys(j).forEach(function(N){});function B(N,ee,Z){var re=N;typeof N!="string"&&(n.buffer(N,"buf"),N=N.toString("ascii"));for(var fe=N.trim().split(/[\r\n]+/g),V,le=-1;!V&&le<fe.length;)V=fe[++le].match(/[-]+[ ]*BEGIN ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);n.ok(V,"invalid PEM header");for(var he,ye=fe.length;!he&&ye>0;)he=fe[--ye].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);n.ok(he,"invalid PEM footer"),n.equal(V[2],he[2]);var L=V[2].toLowerCase(),p;V[1]&&(n.equal(V[1],he[1],"PEM header and footer mismatch"),p=V[1].trim()),fe=fe.slice(le,ye+1);for(var y={};fe=fe.slice(1),V=fe[0].match(/^([A-Za-z0-9-]+): (.+)$/),!!V;)y[V[1].toLowerCase()]=V[2];fe=fe.slice(0,-1).join(""),N=l.from(fe,"base64");var S,c,m;if(y["proc-type"]){var x=y["proc-type"].split(",");if(x[0]==="4"&&x[1]==="ENCRYPTED")if(typeof ee.passphrase=="string"&&(ee.passphrase=l.from(ee.passphrase,"utf-8")),l.isBuffer(ee.passphrase))x=y["dek-info"].split(","),n.ok(x.length===2),S=x[0].toLowerCase(),m=l.from(x[1],"hex"),c=t.opensslKeyDeriv(S,m,ee.passphrase,1).key;else throw new C.KeyEncryptedError(ee.filename,"PEM")}if(p&&p.toLowerCase()==="encrypted"){var T=new e.BerReader(N),b;T.readSequence(),T.readSequence(),b=T.offset+T.length;var d=T.readOID();if(d!==M)throw new Error("Unsupported PEM/PKCS8 encryption scheme: "+d);T.readSequence(),T.readSequence();var k=T.offset+T.length,D=T.readOID();if(D!==P)throw new Error("Unsupported PBES2 KDF: "+D);T.readSequence();var O=T.readString(e.Ber.OctetString,!0),Q=T.readInt(),J="sha1";if(T.offset<k){T.readSequence();var X=T.readOID();if(J=j[X],J===void 0)throw new Error("Unsupported PBKDF2 hash: "+X)}T._offset=k,T.readSequence();var U=T.readOID();if(S=I[U],S===void 0)throw new Error("Unsupported PBES2 cipher: "+U);if(m=T.readString(e.Ber.OctetString,!0),T._offset=b,N=T.readString(e.Ber.OctetString,!0),typeof ee.passphrase=="string"&&(ee.passphrase=l.from(ee.passphrase,"utf-8")),!l.isBuffer(ee.passphrase))throw new C.KeyEncryptedError(ee.filename,"PEM");var z=t.opensshCipherInfo(S);S=z.opensslName,c=t.pbkdf2(J,O,Q,z.keySize,ee.passphrase),p=void 0}if(S&&c&&m){var ie=o.createDecipheriv(S,c,m),de,me=[];for(ie.once("error",function(qe){throw qe.toString().indexOf("bad decrypt")!==-1?new Error("Incorrect passphrase supplied, could not decrypt key"):qe}),ie.write(N),ie.end();(de=ie.read())!==null;)me.push(de);N=l.concat(me)}if(p&&p.toLowerCase()==="openssh")return A.readSSHPrivate(L,N,ee);if(p&&p.toLowerCase()==="ssh2")return E.readType(L,N,ee);var pe=new e.BerReader(N);return pe.originalInput=re,pe.readSequence(),p?(Z&&n.strictEqual(Z,"pkcs1"),v.readPkcs1(p,L,pe)):(Z&&n.strictEqual(Z,"pkcs8"),w.readPkcs8(p,L,pe))}function F(N,ee,Z){n.object(N);var re={ecdsa:"EC",rsa:"RSA",dsa:"DSA",ed25519:"EdDSA"}[N.type],fe,V=new e.BerWriter;if(h.isPrivateKey(N))Z&&Z==="pkcs8"?(fe="PRIVATE KEY",w.writePkcs8(V,N)):(Z&&n.strictEqual(Z,"pkcs1"),fe=re+" PRIVATE KEY",v.writePkcs1(V,N));else if(u.isKey(N))Z&&Z==="pkcs1"?(fe=re+" PUBLIC KEY",v.writePkcs1(V,N)):(Z&&n.strictEqual(Z,"pkcs8"),fe="PUBLIC KEY",w.writePkcs8(V,N));else throw new Error("key is not a Key or PrivateKey");var le=V.buffer.toString("base64"),he=le.length+le.length/64+18+16+fe.length*2+10,ye=l.alloc(he),L=0;L+=ye.write("-----BEGIN "+fe+`-----
`,L);for(var p=0;p<le.length;){var y=p+64;y>le.length&&(y=le.length),L+=ye.write(le.slice(p,y),L),ye[L++]=10,p=y}return L+=ye.write("-----END "+fe+`-----
`,L),ye.slice(0,L)}return pem}var ssh,hasRequiredSsh;function requireSsh(){if(hasRequiredSsh)return ssh;hasRequiredSsh=1,ssh={read:h,write:v};var n=requireAssert(),e=requireSafer().Buffer,o=requireRfc4253();requireUtils$2();var l=requireKey();requirePrivateKey(),requireSshPrivate();var t=/^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/,u=/^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/;function h(w,A){typeof w!="string"&&(n.buffer(w,"buf"),w=w.toString("ascii"));var E=w.trim().replace(/[\\\r]/g,""),C=E.match(t);C||(C=E.match(u)),n.ok(C,"key must match regex");var M=o.algToKeyType(C[1]),P=e.from(C[2],"base64"),I,j={};if(C[4])try{I=o.read(P)}catch{C=E.match(u),n.ok(C,"key must match regex"),P=e.from(C[2],"base64"),I=o.readInternal(j,"public",P)}else I=o.readInternal(j,"public",P);if(n.strictEqual(M,I.type),C[4]&&C[4].length>0)I.comment=C[4];else if(j.consumed){var B=C[2]+(C[3]?C[3]:""),F=Math.ceil(j.consumed/3)*4;B=B.slice(0,F-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+B.slice(F-2);var N=j.consumed%3;for(N>0&&B.slice(F-1,F)!=="="&&F--;B.slice(F,F+1)==="=";)F++;var ee=B.slice(F);ee=ee.replace(/[\r\n]/g," ").replace(/^\s+/,""),ee.match(/^[a-zA-Z0-9]/)&&(I.comment=ee)}return I}function v(w,A){if(n.object(w),!l.isKey(w))throw new Error("Must be a public key");var E=[],C=o.keyTypeToAlg(w);E.push(C);var M=o.write(w);return E.push(M.toString("base64")),w.comment&&E.push(w.comment),e.from(E.join(" "))}return ssh}var dnssec,hasRequiredDnssec;function requireDnssec(){if(hasRequiredDnssec)return dnssec;hasRequiredDnssec=1,dnssec={read:v,write:B};var n=requireAssert(),e=requireSafer().Buffer,o=requireKey(),l=requirePrivateKey(),t=requireUtils$2();requireSshBuffer(),requireDhe();var u={"rsa-sha1":5,"rsa-sha256":8,"rsa-sha512":10,"ecdsa-p256-sha256":13,"ecdsa-p384-sha384":14},h={};Object.keys(u).forEach(function(F){h[u[F]]=F.toUpperCase()});function v(F,N){typeof F!="string"&&(n.buffer(F,"buf"),F=F.toString("ascii"));var ee=F.split(`
`);if(ee[0].match(/^Private-key-format\: v1/)){var Z=ee[1].split(" "),re=parseInt(Z[1],10),fe=Z[2];if(!h[re])throw new Error("Unsupported algorithm: "+fe);return C(re,ee.slice(2))}for(var V=0;ee[V].match(/^\;/);)V++;if((ee[V].match(/\. IN KEY /)||ee[V].match(/\. IN DNSKEY /))&&ee[V+1].length===0)return w(ee[V]);throw new Error("Cannot parse dnssec key")}function w(F){var N=F.split(" "),ee=parseInt(N[5],10);if(!h[ee])throw new Error("Unsupported algorithm: "+ee);var Z=N.slice(6,N.length).join(),re=e.from(Z,"base64");if(h[ee].match(/^RSA-/)){var fe=re.readUInt8(0);if(fe!=3&&fe!=1)throw new Error("Cannot parse dnssec key: unsupported exponent length");var V=re.slice(1,fe+1);V=t.mpNormalize(V);var le=re.slice(1+fe);le=t.mpNormalize(le);var he={type:"rsa",parts:[]};return he.parts.push({name:"e",data:V}),he.parts.push({name:"n",data:le}),new o(he)}if(h[ee]==="ECDSA-P384-SHA384"||h[ee]==="ECDSA-P256-SHA256"){var ye="nistp384",L=384;h[ee].match(/^ECDSA-P256-SHA256/)&&(ye="nistp256",L=256);var p={type:"ecdsa",curve:ye,size:L,parts:[{name:"curve",data:e.from(ye)},{name:"Q",data:t.ecNormalize(re)}]};return new o(p)}throw new Error("Unsupported algorithm: "+h[ee])}function A(F){return e.from(F.split(" ")[1],"base64")}function E(F){var N={};F.forEach(function(Z){Z.split(" ")[0]==="Modulus:"?N.n=A(Z):Z.split(" ")[0]==="PublicExponent:"?N.e=A(Z):Z.split(" ")[0]==="PrivateExponent:"?N.d=A(Z):Z.split(" ")[0]==="Prime1:"?N.p=A(Z):Z.split(" ")[0]==="Prime2:"?N.q=A(Z):Z.split(" ")[0]==="Exponent1:"?N.dmodp=A(Z):Z.split(" ")[0]==="Exponent2:"?N.dmodq=A(Z):Z.split(" ")[0]==="Coefficient:"&&(N.iqmp=A(Z))});var ee={type:"rsa",parts:[{name:"e",data:t.mpNormalize(N.e)},{name:"n",data:t.mpNormalize(N.n)},{name:"d",data:t.mpNormalize(N.d)},{name:"p",data:t.mpNormalize(N.p)},{name:"q",data:t.mpNormalize(N.q)},{name:"dmodp",data:t.mpNormalize(N.dmodp)},{name:"dmodq",data:t.mpNormalize(N.dmodq)},{name:"iqmp",data:t.mpNormalize(N.iqmp)}]};return new l(ee)}function C(F,N){if(h[F].match(/^RSA-/))return E(N);if(h[F]==="ECDSA-P384-SHA384"||h[F]==="ECDSA-P256-SHA256"){var ee=e.from(N[0].split(" ")[1],"base64"),Z="nistp384",re=384;h[F]==="ECDSA-P256-SHA256"&&(Z="nistp256",re=256);var fe=t.publicFromPrivateECDSA(Z,ee),V=fe.part.Q.data,le={type:"ecdsa",curve:Z,size:re,parts:[{name:"curve",data:e.from(Z)},{name:"d",data:ee},{name:"Q",data:V}]};return new l(le)}throw new Error("Unsupported algorithm: "+h[F])}function M(F){var N=F.getFullYear()+"",ee=F.getMonth()+1,Z=N+ee+F.getUTCDate();return Z+=""+F.getUTCHours()+F.getUTCMinutes(),Z+=F.getUTCSeconds(),Z}function P(F){if(!F||!F.hashAlgo||F.hashAlgo==="sha1")return"5 (RSASHA1)";if(F.hashAlgo==="sha256")return"8 (RSASHA256)";if(F.hashAlgo==="sha512")return"10 (RSASHA512)";throw new Error("Unknown or unsupported hash: "+F.hashAlgo)}function I(F,N){(!F.part.dmodp||!F.part.dmodq)&&t.addRSAMissing(F);var ee="";ee+=`Private-key-format: v1.3
`,ee+="Algorithm: "+P(N)+`
`;var Z=t.mpDenormalize(F.part.n.data);ee+="Modulus: "+Z.toString("base64")+`
`;var re=t.mpDenormalize(F.part.e.data);ee+="PublicExponent: "+re.toString("base64")+`
`;var fe=t.mpDenormalize(F.part.d.data);ee+="PrivateExponent: "+fe.toString("base64")+`
`;var V=t.mpDenormalize(F.part.p.data);ee+="Prime1: "+V.toString("base64")+`
`;var le=t.mpDenormalize(F.part.q.data);ee+="Prime2: "+le.toString("base64")+`
`;var he=t.mpDenormalize(F.part.dmodp.data);ee+="Exponent1: "+he.toString("base64")+`
`;var ye=t.mpDenormalize(F.part.dmodq.data);ee+="Exponent2: "+ye.toString("base64")+`
`;var L=t.mpDenormalize(F.part.iqmp.data);ee+="Coefficient: "+L.toString("base64")+`
`;var p=new Date;return ee+="Created: "+M(p)+`
`,ee+="Publish: "+M(p)+`
`,ee+="Activate: "+M(p)+`
`,e.from(ee,"ascii")}function j(F,N){var ee="";if(ee+=`Private-key-format: v1.3
`,F.curve==="nistp256")ee+=`Algorithm: 13 (ECDSAP256SHA256)
`;else if(F.curve==="nistp384")ee+=`Algorithm: 14 (ECDSAP384SHA384)
`;else throw new Error("Unsupported curve");var Z=F.part.d.data.toString("base64");ee+="PrivateKey: "+Z+`
`;var re=new Date;return ee+="Created: "+M(re)+`
`,ee+="Publish: "+M(re)+`
`,ee+="Activate: "+M(re)+`
`,e.from(ee,"ascii")}function B(F,N){if(l.isPrivateKey(F)){if(F.type==="rsa")return I(F,N);if(F.type==="ecdsa")return j(F);throw new Error("Unsupported algorithm: "+F.type)}else throw o.isKey(F)?new Error('Format "dnssec" only supports writing private keys'):new Error("key is not a Key or PrivateKey")}return dnssec}var putty,hasRequiredPutty;function requirePutty(){if(hasRequiredPutty)return putty;hasRequiredPutty=1,putty={read:w,write:C};var n=requireAssert(),e=requireSafer().Buffer,o=requireRfc4253(),l=requireKey(),t=requireSshBuffer(),u=requireCryptoBrowserify(),h=requirePrivateKey(),v=requireErrors$1();function w(P,I){for(var j=P.toString("ascii").split(/[\r\n]+/),B=!1,F,N=0,ee;N<j.length;)if(F=E(j[N++]),F&&(ee={"putty-user-key-file-2":2,"putty-user-key-file-3":3}[F[0].toLowerCase()],ee)){B=!0;break}if(!B)throw new Error("No PuTTY format first line found");var Z=F[1];F=E(j[N++]),n.equal(F[0].toLowerCase(),"encryption");var re=F[1];F=E(j[N++]),n.equal(F[0].toLowerCase(),"comment");var fe=F[1];F=E(j[N++]),n.equal(F[0].toLowerCase(),"public-lines");var V=parseInt(F[1],10);if(!isFinite(V)||V<0||V>j.length)throw new Error("Invalid public-lines count");var le=e.from(j.slice(N,N+V).join(""),"base64"),he=o.algToKeyType(Z),ye=o.read(le);if(ye.type!==he)throw new Error("Outer key algorithm mismatch");if(N+=V,j[N]){F=E(j[N++]),n.equal(F[0].toLowerCase(),"private-lines");var L=parseInt(F[1],10);if(!isFinite(L)||L<0||L>j.length)throw new Error("Invalid private-lines count");var p=e.from(j.slice(N,N+L).join(""),"base64");if(re!=="none"&&ee===3)throw new Error("Encrypted keys arenot supported for PuTTY format version 3");if(re==="aes256-cbc"){if(!I.passphrase)throw new v.KeyEncryptedError(I.filename,"PEM");var y=e.alloc(16,0),S=u.createDecipheriv("aes-256-cbc",A(I.passphrase),y);S.setAutoPadding(!1),p=e.concat([S.update(p),S.final()])}if(ye=new h(ye),ye.type!==he)throw new Error("Outer key algorithm mismatch");var c=new t({buffer:p}),m;if(Z==="ssh-dss")m=[{name:"x",data:c.readBuffer()}];else if(Z==="ssh-rsa")m=[{name:"d",data:c.readBuffer()},{name:"p",data:c.readBuffer()},{name:"q",data:c.readBuffer()},{name:"iqmp",data:c.readBuffer()}];else if(Z.match(/^ecdsa-sha2-nistp/))m=[{name:"d",data:c.readBuffer()}];else if(Z==="ssh-ed25519")m=[{name:"k",data:c.readBuffer()}];else throw new Error("Unsupported PPK key type: "+Z);ye=new h({type:ye.type,parts:ye.parts.concat(m)})}return ye.comment=fe,ye}function A(P){var I=u.createHash("sha1").update(e.concat([e.from([0,0,0,0]),e.from(P)])).digest(),j=u.createHash("sha1").update(e.concat([e.from([0,0,0,1]),e.from(P)])).digest();return e.concat([I,j]).slice(0,32)}function E(P){var I=P.indexOf(":");if(I===-1)return null;var j=P.slice(0,I);for(++I;P[I]===" ";)++I;var B=P.slice(I);return[j,B]}function C(P,I){if(n.object(P),!l.isKey(P))throw new Error("Must be a public key");var j=o.keyTypeToAlg(P),B=o.write(P),F=P.comment||"",N=B.toString("base64"),ee=M(N);return ee.unshift("Public-Lines: "+ee.length),ee.unshift("Comment: "+F),ee.unshift("Encryption: none"),ee.unshift("PuTTY-User-Key-File-2: "+j),e.from(ee.join(`
`)+`
`)}function M(P,I){for(var j=[],B=0;B<P.length;)j.push(P.slice(B,B+64)),B+=64;return j}return putty}var auto,hasRequiredAuto;function requireAuto(){if(hasRequiredAuto)return auto;hasRequiredAuto=1,auto={read:w,write:P};var n=requireAssert(),e=requireSafer().Buffer;requireUtils$2(),requireKey(),requirePrivateKey();var o=requirePem(),l=requireSsh(),t=requireRfc4253(),u=requireDnssec(),h=requirePutty(),v="Private-key-format: v1";function w(I,j){if(typeof I=="string"){if(I.trim().match(/^[-]+[ ]*BEGIN/))return o.read(I,j);if(I.match(/^\s*ssh-[a-z]/)||I.match(/^\s*ecdsa-/))return l.read(I,j);if(I.match(/^putty-user-key-file-2:/i))return h.read(I,j);if(M(I))return u.read(I,j);I=e.from(I,"binary")}else{if(n.buffer(I),C(I))return o.read(I,j);if(E(I))return l.read(I,j);if(A(I))return h.read(I,j);if(M(I))return u.read(I,j)}if(I.readUInt32BE(0)<I.length)return t.read(I,j);throw new Error("Failed to auto-detect format of key")}function A(I){for(var j=0;j<I.length&&(I[j]===32||I[j]===10||I[j]===9);)++j;return j+22<=I.length&&I.slice(j,j+22).toString("ascii").toLowerCase()==="putty-user-key-file-2:"}function E(I){for(var j=0;j<I.length&&(I[j]===32||I[j]===10||I[j]===9);)++j;return j+4<=I.length&&I.slice(j,j+4).toString("ascii")==="ssh-"||j+6<=I.length&&I.slice(j,j+6).toString("ascii")==="ecdsa-"}function C(I){for(var j=0;j<I.length&&(I[j]===32||I[j]===10);)++j;if(I[j]!==45)return!1;for(;j<I.length&&I[j]===45;)++j;for(;j<I.length&&I[j]===32;)++j;return!(j+5>I.length||I.slice(j,j+5).toString("ascii")!=="BEGIN")}function M(I){if(I.length<=v.length)return!1;var j=I.slice(0,v.length);if(j.toString("ascii")===v)return!0;typeof I!="string"&&(I=I.toString("ascii"));for(var B=I.split(`
`),F=0;B[F].match(/^\;/);)F++;return!!(B[F].toString("ascii").match(/\. IN KEY /)||B[F].toString("ascii").match(/\. IN DNSKEY /))}function P(I,j){throw new Error('"auto" format cannot be used for writing')}return auto}var privateKey,hasRequiredPrivateKey;function requirePrivateKey(){if(hasRequiredPrivateKey)return privateKey;hasRequiredPrivateKey=1,privateKey=B;var n=requireAssert(),e=requireSafer().Buffer,o=requireAlgs(),l=requireCryptoBrowserify();requireFingerprint();var t=requireSignature(),u=requireErrors$1(),h=util$6,v=requireUtils$2(),w=requireDhe(),A=w.generateECDSA,E=w.generateED25519,C=requireEdCompat(),M=requireNaclFast(),P=requireKey();u.InvalidAlgorithmError;var I=u.KeyParseError;u.KeyEncryptedError;var j={};j.auto=requireAuto(),j.pem=requirePem(),j.pkcs1=requirePkcs1(),j.pkcs8=requirePkcs8(),j.rfc4253=requireRfc4253(),j["ssh-private"]=requireSshPrivate(),j.openssh=j["ssh-private"],j.ssh=j["ssh-private"],j.dnssec=requireDnssec(),j.putty=requirePutty();function B(F){n.object(F,"options"),P.call(this,F),this._pubCache=void 0}return h.inherits(B,P),B.formats=j,B.prototype.toBuffer=function(F,N){return F===void 0&&(F="pkcs1"),n.string(F,"format"),n.object(j[F],"formats[format]"),n.optionalObject(N,"options"),j[F].write(this,N)},B.prototype.hash=function(F,N){return this.toPublic().hash(F,N)},B.prototype.fingerprint=function(F,N){return this.toPublic().fingerprint(F,N)},B.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;for(var F=o.info[this.type],N=[],ee=0;ee<F.parts.length;++ee){var Z=F.parts[ee];N.push(this.part[Z])}return this._pubCache=new P({type:this.type,source:this,parts:N}),this.comment&&(this._pubCache.comment=this.comment),this._pubCache},B.prototype.derive=function(F){n.string(F,"type");var N,ee,Z;if(this.type==="ed25519"&&F==="curve25519")return N=this.part.k.data,N[0]===0&&(N=N.slice(1)),Z=M.box.keyPair.fromSecretKey(new Uint8Array(N)),ee=e.from(Z.publicKey),new B({type:"curve25519",parts:[{name:"A",data:v.mpNormalize(ee)},{name:"k",data:v.mpNormalize(N)}]});if(this.type==="curve25519"&&F==="ed25519")return N=this.part.k.data,N[0]===0&&(N=N.slice(1)),Z=M.sign.keyPair.fromSeed(new Uint8Array(N)),ee=e.from(Z.publicKey),new B({type:"ed25519",parts:[{name:"A",data:v.mpNormalize(ee)},{name:"k",data:v.mpNormalize(N)}]});throw new Error("Key derivation not supported from "+this.type+" to "+F)},B.prototype.createVerify=function(F){return this.toPublic().createVerify(F)},B.prototype.createSign=function(F){if(F===void 0&&(F=this.defaultHashAlgorithm()),n.string(F,"hash algorithm"),this.type==="ed25519"&&C!==void 0)return new C.Signer(this,F);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for signing or verification");var N,ee,Z;try{ee=F.toUpperCase(),N=l.createSign(ee)}catch(he){Z=he}(N===void 0||Z instanceof Error&&Z.message.match(/Unknown message digest/))&&(ee="RSA-",ee+=F.toUpperCase(),N=l.createSign(ee)),n.ok(N,"failed to create verifier");var re=N.sign.bind(N),fe=this.toBuffer("pkcs1"),V=this.type,le=this.curve;return N.sign=function(){var he=re(fe);return typeof he=="string"&&(he=e.from(he,"binary")),he=t.parse(he,V,"asn1"),he.hashAlgorithm=F,he.curve=le,he},N},B.parse=function(F,N,ee){typeof F!="string"&&n.buffer(F,"data"),N===void 0&&(N="auto"),n.string(N,"format"),typeof ee=="string"&&(ee={filename:ee}),n.optionalObject(ee,"options"),ee===void 0&&(ee={}),n.optionalString(ee.filename,"options.filename"),ee.filename===void 0&&(ee.filename="(unnamed)"),n.object(j[N],"formats[format]");try{var Z=j[N].read(F,ee);return n.ok(Z instanceof B,"key is not a private key"),Z.comment||(Z.comment=ee.filename),Z}catch(re){throw re.name==="KeyEncryptedError"?re:new I(ee.filename,N,re)}},B.isPrivateKey=function(F,N){return v.isCompatible(F,B,N)},B.generate=function(F,N){switch(N===void 0&&(N={}),n.object(N,"options"),F){case"ecdsa":return N.curve===void 0&&(N.curve="nistp256"),n.string(N.curve,"options.curve"),A(N.curve);case"ed25519":return E();default:throw new Error('Key generation not supported with key type "'+F+'"')}},B.prototype._sshpkApiVersion=[1,6],B._oldVersionDetect=function(F){return n.func(F.toPublic),n.func(F.createSign),F.derive?[1,3]:F.defaultHashAlgorithm?[1,2]:F.formats.auto?[1,1]:[1,0]},privateKey}var identity,hasRequiredIdentity;function requireIdentity(){if(hasRequiredIdentity)return identity;hasRequiredIdentity=1,identity=v;var n=requireAssert();requireAlgs(),requireCryptoBrowserify(),requireFingerprint(),requireSignature(),requireErrors$1();var e=requireUtils$2(),o=requireLib$4(),l=requireSafer().Buffer,t=/^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i,u={};u.cn="2.5.4.3",u.o="2.5.4.10",u.ou="2.5.4.11",u.l="2.5.4.7",u.s="2.5.4.8",u.c="2.5.4.6",u.sn="2.5.4.4",u.postalCode="2.5.4.17",u.serialNumber="2.5.4.5",u.street="2.5.4.9",u.x500UniqueIdentifier="2.5.4.45",u.role="2.5.4.72",u.telephoneNumber="2.5.4.20",u.description="2.5.4.13",u.dc="0.9.2342.19200300.100.1.25",u.uid="0.9.2342.19200300.100.1.1",u.mail="0.9.2342.19200300.100.1.3",u.title="2.5.4.12",u.gn="2.5.4.42",u.initials="2.5.4.43",u.pseudonym="2.5.4.65",u.emailAddress="1.2.840.113549.1.9.1";var h={};Object.keys(u).forEach(function(C){h[u[C]]=C});function v(C){var M=this;if(n.object(C,"options"),n.arrayOfObject(C.components,"options.components"),this.components=C.components,this.componentLookup={},this.components.forEach(function(P){P.name&&!P.oid&&(P.oid=u[P.name]),P.oid&&!P.name&&(P.name=h[P.oid]),M.componentLookup[P.name]===void 0&&(M.componentLookup[P.name]=[]),M.componentLookup[P.name].push(P)}),this.componentLookup.cn&&this.componentLookup.cn.length>0&&(this.cn=this.componentLookup.cn[0].value),n.optionalString(C.type,"options.type"),C.type===void 0)this.components.length===1&&this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(t)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length?(this.type="host",this.hostname=this.componentLookup.dc.map(function(P){return P.value}).join(".")):this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(t)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.uid&&this.componentLookup.uid.length===1?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.mail&&this.componentLookup.mail.length===1?(this.type="email",this.email=this.componentLookup.mail[0].value):this.componentLookup.cn&&this.componentLookup.cn.length===1?(this.type="user",this.uid=this.componentLookup.cn[0].value):this.type="unknown";else if(this.type=C.type,this.type==="host")this.hostname=C.hostname;else if(this.type==="user")this.uid=C.uid;else if(this.type==="email")this.email=C.email;else throw new Error("Unknown type "+this.type)}v.prototype.toString=function(){return this.components.map(function(C){var M=C.name.toUpperCase();M=M.replace(/=/g,"\\=");var P=C.value;return P=P.replace(/,/g,"\\,"),M+"="+P}).join(", ")},v.prototype.get=function(C,M){n.string(C,"name");var P=this.componentLookup[C];if(!(P===void 0||P.length===0)){if(!M&&P.length>1)throw new Error("Multiple values for attribute "+C);return M?P.map(function(I){return I.value}):P[0].value}},v.prototype.toArray=function(C){return this.components.map(function(M){return{name:M.name,value:M.value}})};var w=/[^a-zA-Z0-9 '(),+.\/:=?-]/,A=/[^\x00-\x7f]/;v.prototype.toAsn1=function(C,M){C.startSequence(M),this.components.forEach(function(P){if(C.startSequence(o.Ber.Constructor|o.Ber.Set),C.startSequence(),C.writeOID(P.oid),P.asn1type===o.Ber.Utf8String||P.value.match(A)){var I=l.from(P.value,"utf8");C.writeBuffer(I,o.Ber.Utf8String)}else if(P.asn1type===o.Ber.IA5String||P.value.match(w))C.writeString(P.value,o.Ber.IA5String);else{var j=o.Ber.PrintableString;P.asn1type!==void 0&&(j=P.asn1type),C.writeString(P.value,j)}C.endSequence(),C.endSequence()}),C.endSequence()};function E(C,M){if(C==="**"||M==="**")return!0;var P=C.split("."),I=M.split(".");if(P.length!==I.length)return!1;for(var j=0;j<P.length;++j)if(!(P[j]==="*"||I[j]==="*")&&P[j]!==I[j])return!1;return!0}return v.prototype.equals=function(C){if(!v.isIdentity(C,[1,0])||C.components.length!==this.components.length)return!1;for(var M=0;M<this.components.length;++M)if(this.components[M].oid!==C.components[M].oid||!E(this.components[M].value,C.components[M].value))return!1;return!0},v.forHost=function(C){return n.string(C,"hostname"),new v({type:"host",hostname:C,components:[{name:"cn",value:C}]})},v.forUser=function(C){return n.string(C,"uid"),new v({type:"user",uid:C,components:[{name:"uid",value:C}]})},v.forEmail=function(C){return n.string(C,"email"),new v({type:"email",email:C,components:[{name:"mail",value:C}]})},v.parseDN=function(C){n.string(C,"dn");for(var M=[""],P=0,I=C;I.length>0;){var j;if((j=/^,/.exec(I))!==null)M[++P]="",I=I.slice(j[0].length);else if((j=/^\\,/.exec(I))!==null)M[P]+=",",I=I.slice(j[0].length);else if((j=/^\\./.exec(I))!==null)M[P]+=j[0],I=I.slice(j[0].length);else if((j=/^[^\\,]+/.exec(I))!==null)M[P]+=j[0],I=I.slice(j[0].length);else throw new Error("Failed to parse DN")}var B=M.map(function(F){F=F.trim();for(var N=F.indexOf("=");N>0&&F.charAt(N-1)==="\\";)N=F.indexOf("=",N+1);if(N===-1)throw new Error("Failed to parse DN");var ee=F.slice(0,N).toLowerCase().replace(/\\=/g,"="),Z=F.slice(N+1);return{name:ee,value:Z}});return new v({components:B})},v.fromArray=function(C){return n.arrayOfObject(C,"components"),C.forEach(function(M){if(n.object(M,"component"),n.string(M.name,"component.name"),!l.isBuffer(M.value)&&typeof M.value!="string")throw new Error("Invalid component value")}),new v({components:C})},v.parseAsn1=function(C,M){var P=[];C.readSequence(M);for(var I=C.offset+C.length;C.offset<I;){C.readSequence(o.Ber.Constructor|o.Ber.Set);var j=C.offset+C.length;C.readSequence();var B=C.readOID(),F=C.peek(),N;switch(F){case o.Ber.PrintableString:case o.Ber.IA5String:case o.Ber.OctetString:case o.Ber.T61String:N=C.readString(F);break;case o.Ber.Utf8String:N=C.readString(F,!0),N=N.toString("utf8");break;case o.Ber.CharacterString:case o.Ber.BMPString:N=C.readString(F,!0),N=N.toString("utf16le");break;default:throw new Error("Unknown asn1 type "+F)}P.push({oid:B,asn1type:F,value:N}),C._offset=j}return C._offset=I,new v({components:P})},v.isIdentity=function(C,M){return e.isCompatible(C,v,M)},v.prototype._sshpkApiVersion=[1,0],v._oldVersionDetect=function(C){return[1,0]},identity}var opensshCert,hasRequiredOpensshCert;function requireOpensshCert(){if(hasRequiredOpensshCert)return opensshCert;hasRequiredOpensshCert=1,opensshCert={read:I,verify:C,sign:N,signAsync:ee,write:Z,fromBuffer:j,toBuffer:re};var n=requireAssert(),e=requireSshBuffer(),o=requireCryptoBrowserify(),l=requireSafer().Buffer,t=requireAlgs(),u=requireKey();requirePrivateKey();var h=requireIdentity(),v=requireRfc4253(),w=requireSignature(),A=requireUtils$2(),E=requireCertificate();function C(le,he){return!1}var M={user:1,host:2};Object.keys(M).forEach(function(le){M[M[le]]=le});var P=/^ecdsa-sha2-([^@-]+)-cert-v01@openssh.com$/;function I(le,he){l.isBuffer(le)&&(le=le.toString("ascii"));var ye=le.trim().split(/[ \t\n]+/g);if(ye.length<2||ye.length>3)throw new Error("Not a valid SSH certificate line");var L=ye[0],p=ye[1];return p=l.from(p,"base64"),j(p,L)}function j(le,he,ye){var L=new e({buffer:le}),p=L.readString();if(he!==void 0&&p!==he)throw new Error("SSH certificate algorithm mismatch");he===void 0&&(he=p);var y={};y.signatures={},y.signatures.openssh={},y.signatures.openssh.nonce=L.readBuffer();var S={},c=S.parts=[];S.type=fe(he);for(var m=t.info[S.type].parts.length;c.length<m;)c.push(L.readPart());n.ok(c.length>=1,"key must have at least one part");var x=t.info[S.type];if(S.type==="ecdsa"){var T=P.exec(he);n.ok(T!==null),n.strictEqual(T[1],c[0].data.toString())}for(var b=0;b<x.parts.length;++b)if(c[b].name=x.parts[b],c[b].name!=="curve"&&x.normalize!==!1){var d=c[b];d.data=A.mpNormalize(d.data)}y.subjectKey=new u(S),y.serial=L.readInt64();var k=M[L.readInt()];n.string(k,"valid cert type"),y.signatures.openssh.keyId=L.readString();for(var D=[],O=L.readBuffer(),Q=new e({buffer:O});!Q.atEnd();)D.push(Q.readString());D.length===0&&(D=["*"]),y.subjects=D.map(function(de){if(k==="user")return h.forUser(de);if(k==="host")return h.forHost(de);throw new Error("Unknown identity type "+k)}),y.validFrom=B(L.readInt64()),y.validUntil=B(L.readInt64());for(var J=[],X=new e({buffer:L.readBuffer()}),U;!X.atEnd();)U={critical:!0},U.name=X.readString(),U.data=X.readBuffer(),J.push(U);for(X=new e({buffer:L.readBuffer()});!X.atEnd();)U={critical:!1},U.name=X.readString(),U.data=X.readBuffer(),J.push(U);y.signatures.openssh.exts=J,L.readBuffer();var z=L.readBuffer();y.issuerKey=v.read(z),y.issuer=h.forHost("**");var ie=L.readBuffer();return y.signatures.openssh.signature=w.parse(ie,y.issuerKey.type,"ssh"),ye!==void 0&&(ye.remainder=L.remainder(),ye.consumed=L._offset),new E(y)}function B(le){var he=le.readUInt32BE(0)*4294967296;he+=le.readUInt32BE(4);var ye=new Date;return ye.setTime(he*1e3),ye.sourceInt64=le,ye}function F(le){if(le.sourceInt64!==void 0)return le.sourceInt64;var he=Math.round(le.getTime()/1e3),ye=Math.floor(he/4294967296),L=Math.floor(he%4294967296),p=l.alloc(8);return p.writeUInt32BE(ye,0),p.writeUInt32BE(L,4),p}function N(le,he){le.signatures.openssh===void 0&&(le.signatures.openssh={});try{var ye=re(le,!0)}catch{return delete le.signatures.openssh,!1}var L=le.signatures.openssh,p=void 0;(he.type==="rsa"||he.type==="dsa")&&(p="sha1");var y=he.createSign(p);return y.write(ye),L.signature=y.sign(),!0}function ee(le,he,ye){le.signatures.openssh===void 0&&(le.signatures.openssh={});try{var L=re(le,!0)}catch(y){delete le.signatures.openssh,ye(y);return}var p=le.signatures.openssh;he(L,function(y,S){if(y){ye(y);return}try{S.toBuffer("ssh")}catch(c){ye(c);return}p.signature=S,ye()})}function Z(le,he){he===void 0&&(he={});var ye=re(le),L=V(le.subjectKey)+" "+ye.toString("base64");return he.comment&&(L=L+" "+he.comment),L}function re(le,he){n.object(le.signatures.openssh,"signature for openssh format");var ye=le.signatures.openssh;ye.nonce===void 0&&(ye.nonce=o.randomBytes(16));var L=new e({});L.writeString(V(le.subjectKey)),L.writeBuffer(ye.nonce);var p=le.subjectKey,y=t.info[p.type];y.parts.forEach(function(T){L.writePart(p.part[T])}),L.writeInt64(le.serial);var S=le.subjects[0].type;n.notStrictEqual(S,"unknown"),le.subjects.forEach(function(T){n.strictEqual(T.type,S)}),S=M[S],L.writeInt(S),ye.keyId===void 0&&(ye.keyId=le.subjects[0].type+"_"+(le.subjects[0].uid||le.subjects[0].hostname)),L.writeString(ye.keyId);var c=new e({});le.subjects.forEach(function(T){S===M.host?c.writeString(T.hostname):S===M.user&&c.writeString(T.uid)}),L.writeBuffer(c.toBuffer()),L.writeInt64(F(le.validFrom)),L.writeInt64(F(le.validUntil));var m=ye.exts;m===void 0&&(m=[]);var x=new e({});return m.forEach(function(T){T.critical===!0&&(x.writeString(T.name),x.writeBuffer(T.data))}),L.writeBuffer(x.toBuffer()),x=new e({}),m.forEach(function(T){T.critical!==!0&&(x.writeString(T.name),x.writeBuffer(T.data))}),L.writeBuffer(x.toBuffer()),L.writeBuffer(l.alloc(0)),c=v.write(le.issuerKey),L.writeBuffer(c),he||L.writeBuffer(ye.signature.toBuffer("ssh")),L.toBuffer()}function fe(le){if(le==="ssh-rsa-cert-v01@openssh.com")return"rsa";if(le==="ssh-dss-cert-v01@openssh.com")return"dsa";if(le.match(P))return"ecdsa";if(le==="ssh-ed25519-cert-v01@openssh.com")return"ed25519";throw new Error("Unsupported cert type "+le)}function V(le){if(le.type==="rsa")return"ssh-rsa-cert-v01@openssh.com";if(le.type==="dsa")return"ssh-dss-cert-v01@openssh.com";if(le.type==="ecdsa")return"ecdsa-sha2-"+le.curve+"-cert-v01@openssh.com";if(le.type==="ed25519")return"ssh-ed25519-cert-v01@openssh.com";throw new Error("Unsupported key type "+le.type)}return opensshCert}var x509,hasRequiredX509;function requireX509(){if(hasRequiredX509)return x509;hasRequiredX509=1,x509={read:I,verify:A,sign:y,signAsync:S,write:c};var n=requireAssert(),e=requireLib$4(),o=requireSafer().Buffer;requireAlgs();var l=requireUtils$2();requireKey(),requirePrivateKey(),requirePem();var t=requireIdentity(),u=requireSignature(),h=requireCertificate(),v=requirePkcs8();function w(b,d){return n.strictEqual(b.peek(),e.Ber.Integer,d+" is not an Integer"),l.mpNormalize(b.readString(e.Ber.Integer,!0))}function A(b,d){var k=b.signatures.x509;n.object(k,"x509 signature");var D=k.algo.split("-");if(D[0]!==d.type)return!1;var O=k.cache;if(O===void 0){var Q=new e.BerWriter;m(b,Q),O=Q.buffer}var J=d.createVerify(D[1]);return J.write(O),J.verify(k.signature)}function E(b){return e.Ber.Context|e.Ber.Constructor|b}function C(b){return e.Ber.Context|b}var M={"rsa-md5":"1.2.840.113549.1.1.4","rsa-sha1":"1.2.840.113549.1.1.5","rsa-sha256":"1.2.840.113549.1.1.11","rsa-sha384":"1.2.840.113549.1.1.12","rsa-sha512":"1.2.840.113549.1.1.13","dsa-sha1":"1.2.840.10040.4.3","dsa-sha256":"2.16.840.1.101.3.4.3.2","ecdsa-sha1":"1.2.840.10045.4.1","ecdsa-sha256":"1.2.840.10045.4.3.2","ecdsa-sha384":"1.2.840.10045.4.3.3","ecdsa-sha512":"1.2.840.10045.4.3.4","ed25519-sha512":"1.3.101.112"};Object.keys(M).forEach(function(b){M[M[b]]=b}),M["1.3.14.3.2.3"]="rsa-md5",M["1.3.14.3.2.29"]="rsa-sha1";var P={issuerKeyId:"2.5.29.35",altName:"2.5.29.17",basicConstraints:"2.5.29.19",keyUsage:"2.5.29.15",extKeyUsage:"2.5.29.37"};function I(b,d){typeof b=="string"&&(b=o.from(b,"binary")),n.buffer(b,"buf");var k=new e.BerReader(b);if(k.readSequence(),Math.abs(k.length-k.remain)>1)throw new Error("DER sequence does not contain whole byte stream");var D=k.offset;k.readSequence();var O=k.offset+k.length,Q=O;if(k.peek()===E(0)){k.readSequence(E(0));var J=k.readInt();n.ok(J<=3,"only x.509 versions up to v3 supported")}var X={};X.signatures={};var U=X.signatures.x509={};U.extras={},X.serial=w(k,"serial"),k.readSequence();var z=k.offset+k.length,ie=k.readOID(),de=M[ie];if(de===void 0)throw new Error("unknown signature algorithm "+ie);if(k._offset=z,X.issuer=t.parseAsn1(k),k.readSequence(),X.validFrom=j(k),X.validUntil=j(k),X.subjects=[t.parseAsn1(k)],k.readSequence(),z=k.offset+k.length,X.subjectKey=v.readPkcs8(void 0,"public",k),k._offset=z,k.peek()===E(1)&&(k.readSequence(E(1)),U.extras.issuerUniqueID=b.slice(k.offset,k.offset+k.length),k._offset+=k.length),k.peek()===E(2)&&(k.readSequence(E(2)),U.extras.subjectUniqueID=b.slice(k.offset,k.offset+k.length),k._offset+=k.length),k.peek()===E(3)){k.readSequence(E(3));var me=k.offset+k.length;for(k.readSequence();k.offset<me;)re(X,b,k);n.strictEqual(k.offset,me)}n.strictEqual(k.offset,O),k.readSequence(),z=k.offset+k.length;var pe=k.readOID(),qe=M[pe];if(qe===void 0)throw new Error("unknown signature algorithm "+pe);k._offset=z;var mt=k.readString(e.Ber.BitString,!0);mt[0]===0&&(mt=mt.slice(1));var st=qe.split("-");return U.signature=u.parse(mt,st[0],"asn1"),U.signature.hashAlgorithm=st[1],U.algo=qe,U.cache=b.slice(D,Q),new h(X)}function j(b){if(b.peek()===e.Ber.UTCTime)return V(b.readString(e.Ber.UTCTime));if(b.peek()===e.Ber.GeneralizedTime)return he(b.readString(e.Ber.GeneralizedTime));throw new Error("Unsupported date format")}function B(b,d){d.getUTCFullYear()>=2050||d.getUTCFullYear()<1950?b.writeString(p(d),e.Ber.GeneralizedTime):b.writeString(L(d),e.Ber.UTCTime)}var F={OtherName:E(0),RFC822Name:C(1),DNSName:C(2),X400Address:E(3),DirectoryName:E(4),EDIPartyName:E(5),URI:C(6),IPAddress:C(7),OID:C(8)},N={serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",joyentDocker:"1.3.6.1.4.1.38678.1.4.1",joyentCmon:"1.3.6.1.4.1.38678.1.4.2"},ee={};Object.keys(N).forEach(function(b){ee[N[b]]=b});var Z=["signature","identity","keyEncryption","encryption","keyAgreement","ca","crl"];function re(b,d,k){k.readSequence();var D=k.offset+k.length,O=k.readOID(),Q,J=b.signatures.x509;J.extras.exts||(J.extras.exts=[]);var X;switch(k.peek()===e.Ber.Boolean&&(X=k.readBoolean()),O){case P.basicConstraints:k.readSequence(e.Ber.OctetString),k.readSequence();var U=k.offset+k.length,z=!1;k.peek()===e.Ber.Boolean&&(z=k.readBoolean()),b.purposes===void 0&&(b.purposes=[]),z===!0&&b.purposes.push("ca");var ie={oid:O,critical:X};k.offset<U&&k.peek()===e.Ber.Integer&&(ie.pathLen=k.readInt()),J.extras.exts.push(ie);break;case P.extKeyUsage:k.readSequence(e.Ber.OctetString),k.readSequence(),b.purposes===void 0&&(b.purposes=[]);for(var de=k.offset+k.length;k.offset<de;){var me=k.readOID();b.purposes.push(ee[me]||me)}b.purposes.indexOf("serverAuth")!==-1&&b.purposes.indexOf("clientAuth")===-1?b.subjects.forEach(function(Tt){Tt.type!=="host"&&(Tt.type="host",Tt.hostname=Tt.uid||Tt.email||Tt.components[0].value)}):b.purposes.indexOf("clientAuth")!==-1&&b.purposes.indexOf("serverAuth")===-1&&b.subjects.forEach(function(Tt){Tt.type!=="user"&&(Tt.type="user",Tt.uid=Tt.hostname||Tt.email||Tt.components[0].value)}),J.extras.exts.push({oid:O,critical:X});break;case P.keyUsage:k.readSequence(e.Ber.OctetString);var pe=k.readString(e.Ber.BitString,!0),qe=x(pe,Z);qe.forEach(function(Tt){b.purposes===void 0&&(b.purposes=[]),b.purposes.indexOf(Tt)===-1&&b.purposes.push(Tt)}),J.extras.exts.push({oid:O,critical:X,bits:pe});break;case P.altName:k.readSequence(e.Ber.OctetString),k.readSequence();for(var mt=k.offset+k.length;k.offset<mt;)switch(k.peek()){case F.OtherName:case F.EDIPartyName:k.readSequence(),k._offset+=k.length;break;case F.OID:k.readOID(F.OID);break;case F.RFC822Name:var st=k.readString(F.RFC822Name);Q=t.forEmail(st),b.subjects[0].equals(Q)||b.subjects.push(Q);break;case F.DirectoryName:k.readSequence(F.DirectoryName),Q=t.parseAsn1(k),b.subjects[0].equals(Q)||b.subjects.push(Q);break;case F.DNSName:var dt=k.readString(F.DNSName);Q=t.forHost(dt),b.subjects[0].equals(Q)||b.subjects.push(Q);break;default:k.readString(k.peek());break}J.extras.exts.push({oid:O,critical:X});break;default:J.extras.exts.push({oid:O,critical:X,data:k.readString(e.Ber.OctetString,!0)});break}k._offset=D}var fe=/^([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;function V(b){var d=b.match(fe);n.ok(d,"timestamps must be in UTC");var k=new Date,D=k.getUTCFullYear(),O=Math.floor(D/100)*100,Q=parseInt(d[1],10);return D%100<50&&Q>=60?Q+=O-1:Q+=O,k.setUTCFullYear(Q,parseInt(d[2],10)-1,parseInt(d[3],10)),k.setUTCHours(parseInt(d[4],10),parseInt(d[5],10)),d[6]&&d[6].length>0&&k.setUTCSeconds(parseInt(d[6],10)),k}var le=/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;function he(b){var d=b.match(le);n.ok(d);var k=new Date;return k.setUTCFullYear(parseInt(d[1],10),parseInt(d[2],10)-1,parseInt(d[3],10)),k.setUTCHours(parseInt(d[4],10),parseInt(d[5],10)),d[6]&&d[6].length>0&&k.setUTCSeconds(parseInt(d[6],10)),k}function ye(b,d){d===void 0&&(d=2);for(var k=""+b;k.length<d;)k="0"+k;return k}function L(b){var d="";return d+=ye(b.getUTCFullYear()%100),d+=ye(b.getUTCMonth()+1),d+=ye(b.getUTCDate()),d+=ye(b.getUTCHours()),d+=ye(b.getUTCMinutes()),d+=ye(b.getUTCSeconds()),d+="Z",d}function p(b){var d="";return d+=ye(b.getUTCFullYear(),4),d+=ye(b.getUTCMonth()+1),d+=ye(b.getUTCDate()),d+=ye(b.getUTCHours()),d+=ye(b.getUTCMinutes()),d+=ye(b.getUTCSeconds()),d+="Z",d}function y(b,d){b.signatures.x509===void 0&&(b.signatures.x509={});var k=b.signatures.x509;if(k.algo=d.type+"-"+d.defaultHashAlgorithm(),M[k.algo]===void 0)return!1;var D=new e.BerWriter;m(b,D);var O=D.buffer;k.cache=O;var Q=d.createSign();return Q.write(O),b.signatures.x509.signature=Q.sign(),!0}function S(b,d,k){b.signatures.x509===void 0&&(b.signatures.x509={});var D=b.signatures.x509,O=new e.BerWriter;m(b,O);var Q=O.buffer;D.cache=Q,d(Q,function(J,X){if(J){k(J);return}if(D.algo=X.type+"-"+X.hashAlgorithm,M[D.algo]===void 0){k(new Error('Invalid signing algorithm "'+D.algo+'"'));return}D.signature=X,k()})}function c(b,d){var k=b.signatures.x509;n.object(k,"x509 signature");var D=new e.BerWriter;D.startSequence(),k.cache?(D._ensure(k.cache.length),k.cache.copy(D._buf,D._offset),D._offset+=k.cache.length):m(b,D),D.startSequence(),D.writeOID(M[k.algo]),k.algo.match(/^rsa-/)&&D.writeNull(),D.endSequence();var O=k.signature.toBuffer("asn1"),Q=o.alloc(O.length+1);return Q[0]=0,O.copy(Q,1),D.writeBuffer(Q,e.Ber.BitString),D.endSequence(),D.buffer}function m(b,d){var k=b.signatures.x509;n.object(k,"x509 signature"),d.startSequence(),d.startSequence(E(0)),d.writeInt(2),d.endSequence(),d.writeBuffer(l.mpNormalize(b.serial),e.Ber.Integer),d.startSequence(),d.writeOID(M[k.algo]),k.algo.match(/^rsa-/)&&d.writeNull(),d.endSequence(),b.issuer.toAsn1(d),d.startSequence(),B(d,b.validFrom),B(d,b.validUntil),d.endSequence();var D=b.subjects[0],O=b.subjects.slice(1);if(D.toAsn1(d),v.writePkcs8(d,b.subjectKey),k.extras&&k.extras.issuerUniqueID&&d.writeBuffer(k.extras.issuerUniqueID,E(1)),k.extras&&k.extras.subjectUniqueID&&d.writeBuffer(k.extras.subjectUniqueID,E(2)),O.length>0||D.type==="host"||b.purposes!==void 0&&b.purposes.length>0||k.extras&&k.extras.exts){d.startSequence(E(3)),d.startSequence();var Q=[];b.purposes!==void 0&&b.purposes.length>0&&(Q.push({oid:P.basicConstraints,critical:!0}),Q.push({oid:P.keyUsage,critical:!0}),Q.push({oid:P.extKeyUsage,critical:!0})),Q.push({oid:P.altName}),k.extras&&k.extras.exts&&(Q=k.extras.exts);for(var J=0;J<Q.length;++J){if(d.startSequence(),d.writeOID(Q[J].oid),Q[J].critical!==void 0&&d.writeBoolean(Q[J].critical),Q[J].oid===P.altName){d.startSequence(e.Ber.OctetString),d.startSequence(),D.type==="host"&&d.writeString(D.hostname,C(2));for(var X=0;X<O.length;++X)O[X].type==="host"?d.writeString(O[X].hostname,F.DNSName):O[X].type==="email"?d.writeString(O[X].email,F.RFC822Name):(d.startSequence(F.DirectoryName),O[X].toAsn1(d),d.endSequence());d.endSequence(),d.endSequence()}else if(Q[J].oid===P.basicConstraints){d.startSequence(e.Ber.OctetString),d.startSequence();var U=b.purposes.indexOf("ca")!==-1,z=Q[J].pathLen;d.writeBoolean(U),z!==void 0&&d.writeInt(z),d.endSequence(),d.endSequence()}else if(Q[J].oid===P.extKeyUsage)d.startSequence(e.Ber.OctetString),d.startSequence(),b.purposes.forEach(function(de){if(de!=="ca"&&Z.indexOf(de)===-1){var me=de;N[de]!==void 0&&(me=N[de]),d.writeOID(me)}}),d.endSequence(),d.endSequence();else if(Q[J].oid===P.keyUsage){if(d.startSequence(e.Ber.OctetString),Q[J].bits!==void 0)d.writeBuffer(Q[J].bits,e.Ber.BitString);else{var ie=T(b.purposes,Z);d.writeBuffer(ie,e.Ber.BitString)}d.endSequence()}else d.writeBuffer(Q[J].data,e.Ber.OctetString);d.endSequence()}d.endSequence(),d.endSequence()}d.endSequence()}function x(b,d){for(var k=8*(b.length-1)-b[0],D={},O=0;O<k;++O){var Q=1+Math.floor(O/8),J=7-O%8,X=1<<J,U=(b[Q]&X)!==0,z=d[O];U&&typeof z=="string"&&(D[z]=!0)}return Object.keys(D)}function T(b,d){var k=d.length,D=Math.ceil(k/8),O=D*8-k,Q=o.alloc(1+D);Q[0]=O;for(var J=0;J<k;++J){var X=1+Math.floor(J/8),U=7-J%8,z=1<<U,ie=d[J];if(ie!==void 0){var de=b.indexOf(ie)!==-1;de&&(Q[X]|=z)}}return Q}return x509}var x509Pem,hasRequiredX509Pem;function requireX509Pem(){if(hasRequiredX509Pem)return x509Pem;hasRequiredX509Pem=1;var n=requireX509();x509Pem={read:l,verify:n.verify,sign:n.sign,write:t};var e=requireAssert();requireLib$4();var o=requireSafer().Buffer;requireAlgs(),requireUtils$2(),requireKey(),requirePrivateKey(),requirePem(),requireIdentity(),requireSignature(),requireCertificate();function l(u,h){typeof u!="string"&&(e.buffer(u,"buf"),u=u.toString("ascii"));for(var v=u.trim().split(/[\r\n]+/g),w,A=-1;!w&&A<v.length;)w=v[++A].match(/[-]+[ ]*BEGIN CERTIFICATE[ ]*[-]+/);e.ok(w,"invalid PEM header");for(var E,C=v.length;!E&&C>0;)E=v[--C].match(/[-]+[ ]*END CERTIFICATE[ ]*[-]+/);e.ok(E,"invalid PEM footer"),v=v.slice(A,C+1);for(var M={};v=v.slice(1),w=v[0].match(/^([A-Za-z0-9-]+): (.+)$/),!!w;)M[w[1].toLowerCase()]=w[2];return v=v.slice(0,-1).join(""),u=o.from(v,"base64"),n.read(u,h)}function t(u,h){var v=n.write(u,h),w="CERTIFICATE",A=v.toString("base64"),E=A.length+A.length/64+18+16+w.length*2+10,C=o.alloc(E),M=0;M+=C.write("-----BEGIN "+w+`-----
`,M);for(var P=0;P<A.length;){var I=P+64;I>A.length&&(I=A.length),M+=C.write(A.slice(P,I),M),C[M++]=10,P=I}return M+=C.write("-----END "+w+`-----
`,M),C.slice(0,M)}return x509Pem}var certificate,hasRequiredCertificate;function requireCertificate(){if(hasRequiredCertificate)return certificate;hasRequiredCertificate=1,certificate=P;var n=requireAssert(),e=requireSafer().Buffer,o=requireAlgs(),l=requireCryptoBrowserify(),t=requireFingerprint();requireSignature();var u=requireErrors$1(),h=requireUtils$2(),v=requireKey(),w=requirePrivateKey(),A=requireIdentity(),E={};E.openssh=requireOpensshCert(),E.x509=requireX509(),E.pem=requireX509Pem();var C=u.CertificateParseError,M=u.InvalidAlgorithmError;function P(I){n.object(I,"options"),n.arrayOfObject(I.subjects,"options.subjects"),h.assertCompatible(I.subjects[0],A,[1,0],"options.subjects"),h.assertCompatible(I.subjectKey,v,[1,0],"options.subjectKey"),h.assertCompatible(I.issuer,A,[1,0],"options.issuer"),I.issuerKey!==void 0&&h.assertCompatible(I.issuerKey,v,[1,0],"options.issuerKey"),n.object(I.signatures,"options.signatures"),n.buffer(I.serial,"options.serial"),n.date(I.validFrom,"options.validFrom"),n.date(I.validUntil,"optons.validUntil"),n.optionalArrayOfString(I.purposes,"options.purposes"),this._hashCache={},this.subjects=I.subjects,this.issuer=I.issuer,this.subjectKey=I.subjectKey,this.issuerKey=I.issuerKey,this.signatures=I.signatures,this.serial=I.serial,this.validFrom=I.validFrom,this.validUntil=I.validUntil,this.purposes=I.purposes}return P.formats=E,P.prototype.toBuffer=function(I,j){return I===void 0&&(I="x509"),n.string(I,"format"),n.object(E[I],"formats[format]"),n.optionalObject(j,"options"),E[I].write(this,j)},P.prototype.toString=function(I,j){return I===void 0&&(I="pem"),this.toBuffer(I,j).toString()},P.prototype.fingerprint=function(I){I===void 0&&(I="sha256"),n.string(I,"algorithm");var j={type:"certificate",hash:this.hash(I),algorithm:I};return new t(j)},P.prototype.hash=function(I){if(n.string(I,"algorithm"),I=I.toLowerCase(),o.hashAlgs[I]===void 0)throw new M(I);if(this._hashCache[I])return this._hashCache[I];var j=l.createHash(I).update(this.toBuffer("x509")).digest();return this._hashCache[I]=j,j},P.prototype.isExpired=function(I){return I===void 0&&(I=new Date),!(I.getTime()>=this.validFrom.getTime()&&I.getTime()<this.validUntil.getTime())},P.prototype.isSignedBy=function(I){return h.assertCompatible(I,P,[1,0],"issuer"),!this.issuer.equals(I.subjects[0])||this.issuer.purposes&&this.issuer.purposes.length>0&&this.issuer.purposes.indexOf("ca")===-1?!1:this.isSignedByKey(I.subjectKey)},P.prototype.getExtension=function(I){n.string(I,"keyOrOid");var j=this.getExtensions().filter(function(B){return B.format==="x509"?B.oid===I:B.format==="openssh"?B.name===I:!1})[0];return j},P.prototype.getExtensions=function(){var I=[],j=this.signatures.x509;j&&j.extras&&j.extras.exts&&j.extras.exts.forEach(function(F){F.format="x509",I.push(F)});var B=this.signatures.openssh;return B&&B.exts&&B.exts.forEach(function(F){F.format="openssh",I.push(F)}),I},P.prototype.isSignedByKey=function(I){if(h.assertCompatible(I,v,[1,2],"issuerKey"),this.issuerKey!==void 0)return this.issuerKey.fingerprint("sha512").matches(I);var j=Object.keys(this.signatures)[0],B=E[j].verify(this,I);return B&&(this.issuerKey=I),B},P.prototype.signWith=function(I){h.assertCompatible(I,w,[1,2],"key");for(var j=Object.keys(E),B=!1,F=0;F<j.length;++F)if(j[F]!=="pem"){var N=E[j[F]].sign(this,I);N===!0&&(B=!0)}if(!B)throw new Error("Failed to sign the certificate for any available certificate formats")},P.createSelfSigned=function(I,j,B){var F;Array.isArray(I)?F=I:F=[I],n.arrayOfObject(F),F.forEach(function(ye){h.assertCompatible(ye,A,[1,0],"subject")}),h.assertCompatible(j,w,[1,2],"private key"),n.optionalObject(B,"options"),B===void 0&&(B={}),n.optionalObject(B.validFrom,"options.validFrom"),n.optionalObject(B.validUntil,"options.validUntil");var N=B.validFrom,ee=B.validUntil;if(N===void 0&&(N=new Date),ee===void 0){n.optionalNumber(B.lifetime,"options.lifetime");var Z=B.lifetime;Z===void 0&&(Z=10*365*24*3600),ee=new Date,ee.setTime(ee.getTime()+Z*1e3)}n.optionalBuffer(B.serial,"options.serial");var re=B.serial;re===void 0&&(re=e.from("0000000000000001","hex"));var fe=B.purposes;if(fe===void 0&&(fe=[]),fe.indexOf("signature")===-1&&fe.push("signature"),fe.indexOf("ca")===-1&&fe.push("ca"),fe.indexOf("crl")===-1&&fe.push("crl"),fe.length<=3){var V=F.filter(function(ye){return ye.type==="host"}),le=F.filter(function(ye){return ye.type==="user"});V.length>0&&fe.indexOf("serverAuth")===-1&&fe.push("serverAuth"),le.length>0&&fe.indexOf("clientAuth")===-1&&fe.push("clientAuth"),(le.length>0||V.length>0)&&(fe.indexOf("keyAgreement")===-1&&fe.push("keyAgreement"),j.type==="rsa"&&fe.indexOf("encryption")===-1&&fe.push("encryption"))}var he=new P({subjects:F,issuer:F[0],subjectKey:j.toPublic(),issuerKey:j.toPublic(),signatures:{},serial:re,validFrom:N,validUntil:ee,purposes:fe});return he.signWith(j),he},P.create=function(I,j,B,F,N){var ee;Array.isArray(I)?ee=I:ee=[I],n.arrayOfObject(ee),ee.forEach(function(p){h.assertCompatible(p,A,[1,0],"subject")}),h.assertCompatible(j,v,[1,0],"key"),w.isPrivateKey(j)&&(j=j.toPublic()),h.assertCompatible(B,A,[1,0],"issuer"),h.assertCompatible(F,w,[1,2],"issuer key"),n.optionalObject(N,"options"),N===void 0&&(N={}),n.optionalObject(N.validFrom,"options.validFrom"),n.optionalObject(N.validUntil,"options.validUntil");var Z=N.validFrom,re=N.validUntil;if(Z===void 0&&(Z=new Date),re===void 0){n.optionalNumber(N.lifetime,"options.lifetime");var fe=N.lifetime;fe===void 0&&(fe=10*365*24*3600),re=new Date,re.setTime(re.getTime()+fe*1e3)}n.optionalBuffer(N.serial,"options.serial");var V=N.serial;V===void 0&&(V=e.from("0000000000000001","hex"));var le=N.purposes;le===void 0&&(le=[]),le.indexOf("signature")===-1&&le.push("signature"),N.ca===!0&&(le.indexOf("ca")===-1&&le.push("ca"),le.indexOf("crl")===-1&&le.push("crl"));var he=ee.filter(function(p){return p.type==="host"}),ye=ee.filter(function(p){return p.type==="user"});he.length>0&&le.indexOf("serverAuth")===-1&&le.push("serverAuth"),ye.length>0&&le.indexOf("clientAuth")===-1&&le.push("clientAuth"),(ye.length>0||he.length>0)&&(le.indexOf("keyAgreement")===-1&&le.push("keyAgreement"),j.type==="rsa"&&le.indexOf("encryption")===-1&&le.push("encryption"));var L=new P({subjects:ee,issuer:B,subjectKey:j,issuerKey:F.toPublic(),signatures:{},serial:V,validFrom:Z,validUntil:re,purposes:le});return L.signWith(F),L},P.parse=function(I,j,B){typeof I!="string"&&n.buffer(I,"data"),j===void 0&&(j="auto"),n.string(j,"format"),typeof B=="string"&&(B={filename:B}),n.optionalObject(B,"options"),B===void 0&&(B={}),n.optionalString(B.filename,"options.filename"),B.filename===void 0&&(B.filename="(unnamed)"),n.object(E[j],"formats[format]");try{var F=E[j].read(I,B);return F}catch(N){throw new C(B.filename,j,N)}},P.isCertificate=function(I,j){return h.isCompatible(I,P,j)},P.prototype._sshpkApiVersion=[1,1],P._oldVersionDetect=function(I){return[1,0]},certificate}var fingerprint,hasRequiredFingerprint;function requireFingerprint(){if(hasRequiredFingerprint)return fingerprint;hasRequiredFingerprint=1,fingerprint=C;var n=requireAssert(),e=requireSafer().Buffer,o=requireAlgs(),l=requireCryptoBrowserify(),t=requireErrors$1(),u=requireKey(),h=requirePrivateKey(),v=requireCertificate(),w=requireUtils$2(),A=t.FingerprintFormatError,E=t.InvalidAlgorithmError;function C(F){if(n.object(F,"options"),n.string(F.type,"options.type"),n.buffer(F.hash,"options.hash"),n.string(F.algorithm,"options.algorithm"),this.algorithm=F.algorithm.toLowerCase(),o.hashAlgs[this.algorithm]!==!0)throw new E(this.algorithm);this.hash=F.hash,this.type=F.type,this.hashType=F.hashType}C.prototype.toString=function(F){switch(F===void 0&&(this.algorithm==="md5"||this.hashType==="spki"?F="hex":F="base64"),n.string(F),F){case"hex":return this.hashType==="spki"?this.hash.toString("hex"):I(this.hash.toString("hex"));case"base64":return this.hashType==="spki"?this.hash.toString("base64"):B(this.algorithm,this.hash.toString("base64"));default:throw new A(void 0,F)}},C.prototype.matches=function(F){n.object(F,"key or certificate"),this.type==="key"&&this.hashType!=="ssh"?(w.assertCompatible(F,u,[1,7],"key with spki"),h.isPrivateKey(F)&&w.assertCompatible(F,h,[1,6],"privatekey with spki support")):this.type==="key"?w.assertCompatible(F,u,[1,0],"key"):w.assertCompatible(F,v,[1,0],"certificate");var N=F.hash(this.algorithm,this.hashType),ee=l.createHash(this.algorithm).update(N).digest("base64");return this.hash2===void 0&&(this.hash2=l.createHash(this.algorithm).update(this.hash).digest("base64")),this.hash2===ee};var M=/^[A-Za-z0-9+\/=]+$/,P=/^[a-fA-F0-9]+$/;C.parse=function(F,N){n.string(F,"fingerprint");var ee,Z,re;Array.isArray(N)&&(re=N,N={}),n.optionalObject(N,"options"),N===void 0&&(N={}),N.enAlgs!==void 0&&(re=N.enAlgs),N.algorithms!==void 0&&(re=N.algorithms),n.optionalArrayOfString(re,"algorithms");var fe="ssh";N.hashType!==void 0&&(fe=N.hashType),n.string(fe,"options.hashType");var V=F.split(":");if(V.length==2){if(ee=V[0].toLowerCase(),!M.test(V[1]))throw new A(F);try{Z=e.from(V[1],"base64")}catch{throw new A(F)}}else if(V.length>2){if(ee="md5",V[0].toLowerCase()==="md5"&&(V=V.slice(1)),V=V.map(function(le){for(;le.length<2;)le="0"+le;if(le.length>2)throw new A(F);return le}),V=V.join(""),!P.test(V)||V.length%2!==0)throw new A(F);try{Z=e.from(V,"hex")}catch{throw new A(F)}}else{if(P.test(F))Z=e.from(F,"hex");else if(M.test(F))Z=e.from(F,"base64");else throw new A(F);switch(Z.length){case 32:ee="sha256";break;case 16:ee="md5";break;case 20:ee="sha1";break;case 64:ee="sha512";break;default:throw new A(F)}N.hashType===void 0&&(fe="spki")}if(ee===void 0)throw new A(F);if(o.hashAlgs[ee]===void 0)throw new E(ee);if(re!==void 0&&(re=re.map(function(le){return le.toLowerCase()}),re.indexOf(ee)===-1))throw new E(ee);return new C({algorithm:ee,hash:Z,type:N.type||"key",hashType:fe})};function I(F){return F.replace(/(.{2})(?=.)/g,"$1:")}function j(F){return F.replace(/=*$/,"")}function B(F,N){return F.toUpperCase()+":"+j(N)}return C.isFingerprint=function(F,N){return w.isCompatible(F,C,N)},C.prototype._sshpkApiVersion=[1,2],C._oldVersionDetect=function(F){return n.func(F.toString),n.func(F.matches),[1,0]},fingerprint}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1,key=P;var n=requireAssert(),e=requireAlgs(),o=requireCryptoBrowserify(),l=requireFingerprint(),t=requireSignature(),u=requireDhe().DiffieHellman,h=requireErrors$1(),v=requireUtils$2(),w=requirePrivateKey(),A;try{A=requireEdCompat()}catch{}var E=h.InvalidAlgorithmError,C=h.KeyParseError,M={};M.auto=requireAuto(),M.pem=requirePem(),M.pkcs1=requirePkcs1(),M.pkcs8=requirePkcs8(),M.rfc4253=requireRfc4253(),M.ssh=requireSsh(),M["ssh-private"]=requireSshPrivate(),M.openssh=M["ssh-private"],M.dnssec=requireDnssec(),M.putty=requirePutty(),M.ppk=M.putty;function P(I){n.object(I,"options"),n.arrayOfObject(I.parts,"options.parts"),n.string(I.type,"options.type"),n.optionalString(I.comment,"options.comment");var j=e.info[I.type];if(typeof j!="object")throw new E(I.type);for(var B={},F=0;F<I.parts.length;++F){var N=I.parts[F];B[N.name]=N}this.type=I.type,this.parts=I.parts,this.part=B,this.comment=void 0,this.source=I.source,this._rfc4253Cache=I._rfc4253Cache,this._hashCache={};var ee;if(this.curve=void 0,this.type==="ecdsa"){var Z=this.part.curve.data.toString();this.curve=Z,ee=e.curves[Z].size}else if(this.type==="ed25519"||this.type==="curve25519")ee=256,this.curve="curve25519";else{var re=this.part[j.sizePart];ee=re.data.length,ee=ee*8-v.countZeros(re.data)}this.size=ee}return P.formats=M,P.prototype.toBuffer=function(I,j){return I===void 0&&(I="ssh"),n.string(I,"format"),n.object(M[I],"formats[format]"),n.optionalObject(j,"options"),I==="rfc4253"?(this._rfc4253Cache===void 0&&(this._rfc4253Cache=M.rfc4253.write(this)),this._rfc4253Cache):M[I].write(this,j)},P.prototype.toString=function(I,j){return this.toBuffer(I,j).toString()},P.prototype.hash=function(I,j){if(n.string(I,"algorithm"),n.optionalString(j,"type"),j===void 0&&(j="ssh"),I=I.toLowerCase(),e.hashAlgs[I]===void 0)throw new E(I);var B=I+"||"+j;if(this._hashCache[B])return this._hashCache[B];var F;if(j==="ssh")F=this.toBuffer("rfc4253");else if(j==="spki")F=M.pkcs8.pkcs8ToBuffer(this);else throw new Error("Hash type "+j+" not supported");var N=o.createHash(I).update(F).digest();return this._hashCache[B]=N,N},P.prototype.fingerprint=function(I,j){I===void 0&&(I="sha256"),j===void 0&&(j="ssh"),n.string(I,"algorithm"),n.string(j,"type");var B={type:"key",hash:this.hash(I,j),algorithm:I,hashType:j};return new l(B)},P.prototype.defaultHashAlgorithm=function(){var I="sha1";return this.type==="rsa"&&(I="sha256"),this.type==="dsa"&&this.size>1024&&(I="sha256"),this.type==="ed25519"&&(I="sha512"),this.type==="ecdsa"&&(this.size<=256?I="sha256":this.size<=384?I="sha384":I="sha512"),I},P.prototype.createVerify=function(I){if(I===void 0&&(I=this.defaultHashAlgorithm()),n.string(I,"hash algorithm"),this.type==="ed25519"&&A!==void 0)return new A.Verifier(this,I);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for signing or verification");var j,B,F;try{B=I.toUpperCase(),j=o.createVerify(B)}catch(fe){F=fe}(j===void 0||F instanceof Error&&F.message.match(/Unknown message digest/))&&(B="RSA-",B+=I.toUpperCase(),j=o.createVerify(B)),n.ok(j,"failed to create verifier");var N=j.verify.bind(j),ee=this.toBuffer("pkcs8"),Z=this.curve,re=this;return j.verify=function(fe,V){if(t.isSignature(fe,[2,0]))return fe.type!==re.type||fe.hashAlgorithm&&fe.hashAlgorithm!==I||fe.curve&&re.type==="ecdsa"&&fe.curve!==Z?!1:N(ee,fe.toBuffer("asn1"));if(typeof fe=="string"||Buffer$C.isBuffer(fe))return N(ee,fe,V);throw t.isSignature(fe,[1,0])?new Error("signature was created by too old a version of sshpk and cannot be verified"):new TypeError("signature must be a string, Buffer, or Signature object")},j},P.prototype.createDiffieHellman=function(){if(this.type==="rsa")throw new Error("RSA keys do not support Diffie-Hellman");return new u(this)},P.prototype.createDH=P.prototype.createDiffieHellman,P.parse=function(I,j,B){typeof I!="string"&&n.buffer(I,"data"),j===void 0&&(j="auto"),n.string(j,"format"),typeof B=="string"&&(B={filename:B}),n.optionalObject(B,"options"),B===void 0&&(B={}),n.optionalString(B.filename,"options.filename"),B.filename===void 0&&(B.filename="(unnamed)"),n.object(M[j],"formats[format]");try{var F=M[j].read(I,B);return F instanceof w&&(F=F.toPublic()),F.comment||(F.comment=B.filename),F}catch(N){throw N.name==="KeyEncryptedError"?N:new C(B.filename,j,N)}},P.isKey=function(I,j){return v.isCompatible(I,P,j)},P.prototype._sshpkApiVersion=[1,7],P._oldVersionDetect=function(I){return n.func(I.toBuffer),n.func(I.fingerprint),I.createDH?[1,4]:I.defaultHashAlgorithm?[1,3]:I.formats.auto?[1,2]:I.formats.pkcs1?[1,1]:[1,0]},key}var lib$3,hasRequiredLib$3;function requireLib$3(){if(hasRequiredLib$3)return lib$3;hasRequiredLib$3=1;var n=requireKey(),e=requireFingerprint(),o=requireSignature(),l=requirePrivateKey(),t=requireCertificate(),u=requireIdentity(),h=requireErrors$1();return lib$3={Key:n,parseKey:n.parse,Fingerprint:e,parseFingerprint:e.parse,Signature:o,parseSignature:o.parse,PrivateKey:l,parsePrivateKey:l.parse,generatePrivateKey:l.generate,Certificate:t,parseCertificate:t.parse,createSelfSignedCertificate:t.createSelfSigned,createCertificate:t.create,Identity:u,identityFromDN:u.parseDN,identityForHost:u.forHost,identityForUser:u.forUser,identityForEmail:u.forEmail,identityFromArray:u.fromArray,FingerprintFormatError:h.FingerprintFormatError,InvalidAlgorithmError:h.InvalidAlgorithmError,KeyParseError:h.KeyParseError,SignatureParseError:h.SignatureParseError,KeyEncryptedError:h.KeyEncryptedError,CertificateParseError:h.CertificateParseError},lib$3}var utils$1,hasRequiredUtils$1;function requireUtils$1(){if(hasRequiredUtils$1)return utils$1;hasRequiredUtils$1=1;var n=requireAssert(),e=requireLib$3(),o=util$6,l={sha1:!0,sha256:!0,sha512:!0},t={rsa:!0,dsa:!0,ecdsa:!0};function u(w,A){Error.captureStackTrace&&Error.captureStackTrace(this,A||u),this.message=w,this.name=A.name}o.inherits(u,Error);function h(w){u.call(this,w,h)}o.inherits(h,u);function v(w){var A=w.toLowerCase().split("-");if(A.length!==2)throw new h(A[0].toUpperCase()+" is not a valid algorithm");if(A[0]!=="hmac"&&!t[A[0]])throw new h(A[0].toUpperCase()+" type keys are not supported");if(!l[A[1]])throw new h(A[1].toUpperCase()+" is not a supported hash algorithm");return A}return utils$1={HASH_ALGOS:l,PK_ALGOS:t,HttpSignatureError:u,InvalidAlgorithmError:h,validateAlgorithm:v,sshKeyToPEM:function(A){n.string(A,"ssh_key");var E=e.parseKey(A,"ssh");return E.toString("pem")},fingerprint:function(A){n.string(A,"ssh_key");var E=e.parseKey(A,"ssh");return E.fingerprint("md5").toString("hex")},pemToRsaSSHKey:function(A,E){n.equal("string",typeof A,"typeof pem");var C=e.parseKey(A,"pem");return C.comment=E,C.toString("ssh")}},utils$1}var parser,hasRequiredParser;function requireParser(){if(hasRequiredParser)return parser;hasRequiredParser=1;var n=requireAssert(),e=util$6,o=requireUtils$1();o.HASH_ALGOS,o.PK_ALGOS;var l=o.HttpSignatureError,t=o.InvalidAlgorithmError,u=o.validateAlgorithm,h={New:0,Params:1},v={Name:0,Quote:1,Value:2,Comma:3};function w(P){l.call(this,P,w)}e.inherits(w,l);function A(P){l.call(this,P,A)}e.inherits(A,l);function E(P){l.call(this,P,E)}e.inherits(E,l);function C(P){l.call(this,P,C)}e.inherits(C,l);function M(P){l.call(this,P,M)}return e.inherits(M,l),parser={parseRequest:function(I,j){n.object(I,"request"),n.object(I.headers,"request.headers"),j===void 0&&(j={}),j.headers===void 0&&(j.headers=[I.headers["x-date"]?"x-date":"date"]),n.object(j,"options"),n.arrayOfString(j.headers,"options.headers"),n.optionalFinite(j.clockSkew,"options.clockSkew");var B=j.authorizationHeaderName||"authorization";if(!I.headers[B])throw new C("no "+B+" header present in the request");j.clockSkew=j.clockSkew||300;var F=0,N=h.New,ee=v.Name,Z="",re="",fe={scheme:"",params:{},signingString:""},V=I.headers[B];for(F=0;F<V.length;F++){var le=V.charAt(F);switch(Number(N)){case h.New:le!==" "?fe.scheme+=le:N=h.Params;break;case h.Params:switch(Number(ee)){case v.Name:var he=le.charCodeAt(0);if(he>=65&&he<=90||he>=97&&he<=122)Z+=le;else if(le==="="){if(Z.length===0)throw new A("bad param format");ee=v.Quote}else throw new A("bad param format");break;case v.Quote:if(le==='"')re="",ee=v.Value;else throw new A("bad param format");break;case v.Value:le==='"'?(fe.params[Z]=re,ee=v.Comma):re+=le;break;case v.Comma:if(le===",")Z="",ee=v.Name;else throw new A("bad param format");break;default:throw new Error("Invalid substate")}break;default:throw new Error("Invalid substate")}}if(!fe.params.headers||fe.params.headers===""?I.headers["x-date"]?fe.params.headers=["x-date"]:fe.params.headers=["date"]:fe.params.headers=fe.params.headers.split(" "),!fe.scheme||fe.scheme!=="Signature")throw new A('scheme was not "Signature"');if(!fe.params.keyId)throw new A("keyId was not specified");if(!fe.params.algorithm)throw new A("algorithm was not specified");if(!fe.params.signature)throw new A("signature was not specified");fe.params.algorithm=fe.params.algorithm.toLowerCase();try{u(fe.params.algorithm)}catch(c){throw c instanceof t?new E(fe.params.algorithm+" is not supported"):c}for(F=0;F<fe.params.headers.length;F++){var ye=fe.params.headers[F].toLowerCase();if(fe.params.headers[F]=ye,ye==="request-line")if(!j.strict)fe.signingString+=I.method+" "+I.url+" HTTP/"+I.httpVersion;else throw new M("request-line is not a valid header with strict parsing enabled.");else if(ye==="(request-target)")fe.signingString+="(request-target): "+I.method.toLowerCase()+" "+I.url;else{var L=I.headers[ye];if(L===void 0)throw new C(ye+" was not in the request");fe.signingString+=ye+": "+L}F+1<fe.params.headers.length&&(fe.signingString+=`
`)}var p;if(I.headers.date||I.headers["x-date"]){I.headers["x-date"]?p=new Date(I.headers["x-date"]):p=new Date(I.headers.date);var y=new Date,S=Math.abs(y.getTime()-p.getTime());if(S>j.clockSkew*1e3)throw new w("clock skew of "+S/1e3+"s was greater than "+j.clockSkew+"s")}if(j.headers.forEach(function(c){if(fe.params.headers.indexOf(c.toLowerCase())<0)throw new C(c+" was not a signed header")}),j.algorithms&&j.algorithms.indexOf(fe.params.algorithm)===-1)throw new E(fe.params.algorithm+" is not a supported algorithm");return fe.algorithm=fe.params.algorithm.toUpperCase(),fe.keyId=fe.params.keyId,fe}},parser}var jsprim={},extsprintf={},hasRequiredExtsprintf;function requireExtsprintf(){if(hasRequiredExtsprintf)return extsprintf;hasRequiredExtsprintf=1;var n=requireAssert$1(),e=util$6;extsprintf.sprintf=o,extsprintf.printf=l,extsprintf.fprintf=t;function o(v){var w=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),A=new RegExp(w),E=Array.prototype.slice.call(arguments,1),C,M,P,I,j,B,F,N,ee,Z="",re=1;for(n.equal("string",typeof v);(ee=A.exec(v))!==null;){if(Z+=ee[1],v=v.substring(ee[0].length),C=ee[2]||"",M=ee[3]||0,P=ee[4]||"",I=ee[6],j=!1,F=!1,B=" ",I=="%"){Z+="%";continue}if(E.length===0)throw new Error("too few args to sprintf");if(N=E.shift(),re++,C.match(/[\' #]/))throw new Error("unsupported flags: "+C);if(P.length>0)throw new Error("non-zero precision not supported");switch(C.match(/-/)&&(j=!0),C.match(/0/)&&(B="0"),C.match(/\+/)&&(F=!0),I){case"s":if(N==null)throw new Error("argument "+re+": attempted to print undefined or null as a string");Z+=u(B,M,j,N.toString());break;case"d":N=Math.floor(N);case"f":F=F&&N>0?"+":"",Z+=F+u(B,M,j,N.toString());break;case"x":Z+=u(B,M,j,N.toString(16));break;case"j":M===0&&(M=10),Z+=e.inspect(N,!1,M);break;case"r":Z+=h(N);break;default:throw new Error("unsupported conversion: "+I)}}return Z+=v,Z}function l(){var v=Array.prototype.slice.call(arguments);v.unshift(process$1.stdout),t.apply(null,v)}function t(v){var w=Array.prototype.slice.call(arguments,1);return v.write(o.apply(this,w))}function u(v,w,A,E){for(var C=E;C.length<w;)A?C+=v:C=v+C;return C}function h(v){var w;if(!(v instanceof Error))throw new Error(o("invalid type for %%r: %j",v));if(w="EXCEPTION: "+v.constructor.name+": "+v.stack,v.cause&&typeof v.cause=="function"){var A=v.cause();A&&(w+=`
Caused by: `+h(A))}return w}return extsprintf}var verror,hasRequiredVerror;function requireVerror(){if(hasRequiredVerror)return verror;hasRequiredVerror=1;var n=requireAssert(),e=util$6,o=requireExtsprintf(),l=util$3.isError,t=o.sprintf;verror=h,h.VError=h,h.SError=v,h.WError=A,h.MultiError=w;function u(E){var C,M,P,I,j;if(n.object(E,"args"),n.bool(E.strict,"args.strict"),n.array(E.argv,"args.argv"),C=E.argv,C.length===0)M={},P=[];else if(l(C[0]))M={cause:C[0]},P=C.slice(1);else if(typeof C[0]=="object"){M={};for(j in C[0])M[j]=C[0][j];P=C.slice(1)}else n.string(C[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),M={},P=C;return n.object(M),!M.strict&&!E.strict&&(P=P.map(function(B){return B===null?"null":B===void 0?"undefined":B})),P.length===0?I="":I=t.apply(null,P),{options:M,shortmessage:I}}function h(){var E,C,M,P,I,j,B;if(E=Array.prototype.slice.call(arguments,0),!(this instanceof h))return C=Object.create(h.prototype),h.apply(C,arguments),C;if(M=u({argv:E,strict:!1}),M.options.name&&(n.string(M.options.name,`error's "name" must be a string`),this.name=M.options.name),this.jse_shortmsg=M.shortmessage,j=M.shortmessage,P=M.options.cause,P&&(n.ok(l(P),"cause is not an Error"),this.jse_cause=P,M.options.skipCauseMessage||(j+=": "+P.message)),this.jse_info={},M.options.info)for(B in M.options.info)this.jse_info[B]=M.options.info[B];return this.message=j,Error.call(this,j),Error.captureStackTrace&&(I=M.options.constructorOpt||this.constructor,Error.captureStackTrace(this,I)),this}e.inherits(h,Error),h.prototype.name="VError",h.prototype.toString=function(){var C=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(C+=": "+this.message),C},h.prototype.cause=function(){var C=h.cause(this);return C===null?void 0:C},h.cause=function(E){return n.ok(l(E),"err must be an Error"),l(E.jse_cause)?E.jse_cause:null},h.info=function(E){var C,M,P;if(n.ok(l(E),"err must be an Error"),M=h.cause(E),M!==null?C=h.info(M):C={},typeof E.jse_info=="object"&&E.jse_info!==null)for(P in E.jse_info)C[P]=E.jse_info[P];return C},h.findCauseByName=function(E,C){var M;for(n.ok(l(E),"err must be an Error"),n.string(C,"name"),n.ok(C.length>0,"name cannot be empty"),M=E;M!==null;M=h.cause(M))if(n.ok(l(M)),M.name==C)return M;return null},h.hasCauseWithName=function(E,C){return h.findCauseByName(E,C)!==null},h.fullStack=function(E){n.ok(l(E),"err must be an Error");var C=h.cause(E);return C?E.stack+`
caused by: `+h.fullStack(C):E.stack},h.errorFromList=function(E){return n.arrayOfObject(E,"errors"),E.length===0?null:(E.forEach(function(C){n.ok(l(C))}),E.length==1?E[0]:new w(E))},h.errorForEach=function(E,C){n.ok(l(E),"err must be an Error"),n.func(C,"func"),E instanceof w?E.errors().forEach(function(P){C(P)}):C(E)};function v(){var E,C,M,P;return E=Array.prototype.slice.call(arguments,0),this instanceof v?(M=u({argv:E,strict:!0}),P=M.options,h.call(this,P,"%s",M.shortmessage),this):(C=Object.create(v.prototype),v.apply(C,arguments),C)}e.inherits(v,h);function w(E){n.array(E,"list of errors"),n.ok(E.length>0,"must be at least one error"),this.ase_errors=E,h.call(this,{cause:E[0]},"first of %d error%s",E.length,E.length==1?"":"s")}e.inherits(w,h),w.prototype.name="MultiError",w.prototype.errors=function(){return this.ase_errors.slice(0)};function A(){var E,C,M,P;return E=Array.prototype.slice.call(arguments,0),this instanceof A?(M=u({argv:E,strict:!1}),P=M.options,P.skipCauseMessage=!0,h.call(this,P,"%s",M.shortmessage),this):(C=Object.create(A.prototype),A.apply(C,E),C)}return e.inherits(A,h),A.prototype.name="WError",A.prototype.toString=function(){var C=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(C+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(C+="; caused by "+this.jse_cause.toString()),C},A.prototype.cause=function(C){return l(C)&&(this.jse_cause=C),this.jse_cause},verror}var validate$1={exports:{}},hasRequiredValidate$1;function requireValidate$1(){return hasRequiredValidate$1||(hasRequiredValidate$1=1,function(n){(function(e,o){n.exports?n.exports=o():e.jsonSchema=o()})(commonjsGlobal$1,function(){var e=l;e.Integer={type:"integer"};var o={String,Boolean,Number,Object,Array,Date};e.validate=l;function l(t,u){return l(t,u,{changing:!1})}e.checkPropertyChange=function(t,u,h){return l(t,u,{changing:h||"property"})};var l=e._validate=function(t,u,h){h||(h={});var v=h.changing;function w(M){return M.type||o[M.name]==M&&M.name.toLowerCase()}var A=[];function E(M,P,I,j){var B;I+=I?typeof j=="number"?"["+j+"]":typeof j>"u"?"":"."+j:j;function F(le){A.push({property:I,message:le})}if((typeof P!="object"||P instanceof Array)&&(I||typeof P!="function")&&!(P&&w(P)))return typeof P=="function"?M instanceof P||F("is not an instance of the class/constructor "+P.name):P&&F("Invalid schema/property definition "+P),null;v&&P.readonly&&F("is a readonly field, it can not be changed"),P.extends&&E(M,P.extends,I,j);function N(le,he){if(le){if(typeof le=="string"&&le!="any"&&(le=="null"?he!==null:typeof he!=le)&&!(he instanceof Array&&le=="array")&&!(he instanceof Date&&le=="date")&&!(le=="integer"&&he%1===0))return[{property:I,message:he+" - "+typeof he+" value found, but a "+le+" is required"}];if(le instanceof Array){for(var ye=[],L=0;L<le.length&&(ye=N(le[L],he)).length;L++);if(ye.length)return ye}else if(typeof le=="object"){var p=A;A=[],E(he,le,I);var y=A;return A=p,y}}return[]}if(M===void 0)P.required&&F("is missing and it is required");else if(A=A.concat(N(w(P),M)),P.disallow&&!N(P.disallow,M).length&&F(" disallowed value was matched"),M!==null){if(M instanceof Array){if(P.items){var ee=P.items instanceof Array,Z=P.items;for(j=0,B=M.length;j<B;j+=1)ee&&(Z=P.items[j]),h.coerce&&(M[j]=h.coerce(M[j],Z)),A.concat(E(M[j],Z,I,j))}P.minItems&&M.length<P.minItems&&F("There must be a minimum of "+P.minItems+" in the array"),P.maxItems&&M.length>P.maxItems&&F("There must be a maximum of "+P.maxItems+" in the array")}else(P.properties||P.additionalProperties)&&A.concat(C(M,P.properties,I,P.additionalProperties));if(P.pattern&&typeof M=="string"&&!M.match(P.pattern)&&F("does not match the regex pattern "+P.pattern),P.maxLength&&typeof M=="string"&&M.length>P.maxLength&&F("may only be "+P.maxLength+" characters long"),P.minLength&&typeof M=="string"&&M.length<P.minLength&&F("must be at least "+P.minLength+" characters long"),typeof P.minimum<"u"&&typeof M==typeof P.minimum&&P.minimum>M&&F("must have a minimum value of "+P.minimum),typeof P.maximum<"u"&&typeof M==typeof P.maximum&&P.maximum<M&&F("must have a maximum value of "+P.maximum),P.enum){var re=P.enum;B=re.length;for(var fe,V=0;V<B;V++)if(re[V]===M){fe=1;break}fe||F("does not have a value in the enumeration "+re.join(", "))}typeof P.maxDecimal=="number"&&M.toString().match(new RegExp("\\.[0-9]{"+(P.maxDecimal+1)+",}"))&&F("may only have "+P.maxDecimal+" digits of decimal places")}return null}function C(M,P,I,j){if(typeof P=="object"){(typeof M!="object"||M instanceof Array)&&A.push({property:I,message:"an object is required"});for(var B in P)if(P.hasOwnProperty(B)&&B!="__proto__"&&B!="constructor"){var F=M.hasOwnProperty(B)?M[B]:void 0;if(F===void 0&&h.existingOnly)continue;var N=P[B];F===void 0&&N.default&&(F=M[B]=N.default),h.coerce&&B in M&&(F=M[B]=h.coerce(F,N)),E(F,N,I,B)}}for(B in M){if(M.hasOwnProperty(B)&&!(B.charAt(0)=="_"&&B.charAt(1)=="_")&&P&&!P[B]&&j===!1)if(h.filter){delete M[B];continue}else A.push({property:I,message:"The property "+B+" is not defined in the schema and the schema does not allow additional properties"});var ee=P&&P[B]&&P[B].requires;ee&&!(ee in M)&&A.push({property:I,message:"the presence of the property "+B+" requires that "+ee+" also be present"}),F=M[B],j&&(!(P&&typeof P=="object")||!(B in P))&&(h.coerce&&(F=M[B]=h.coerce(F,j)),E(F,j,I,B)),!v&&F&&F.$schema&&(A=A.concat(E(F,F.$schema,I,B)))}return A}return u&&E(t,u,"",v||""),!v&&t&&t.$schema&&E(t,t.$schema,"",""),{valid:!A.length,errors:A}};return e.mustBeValid=function(t){if(!t.valid)throw new TypeError(t.errors.map(function(u){return"for property "+u.property+": "+u.message}).join(`, 
`))},e})}(validate$1)),validate$1.exports}var hasRequiredJsprim;function requireJsprim(){if(hasRequiredJsprim)return jsprim;hasRequiredJsprim=1;var n=requireAssert(),e=requireExtsprintf(),o=requireVerror(),l=requireValidate$1();jsprim.deepCopy=t,jsprim.deepEqual=u,jsprim.isEmpty=h,jsprim.hasKey=v,jsprim.forEachKey=w,jsprim.pluck=A,jsprim.flattenObject=P,jsprim.flattenIter=C,jsprim.validateJsonObject=ie,jsprim.validateJsonObjectJS=ie,jsprim.randElt=de,jsprim.extraProperties=lt,jsprim.mergeObjects=Je,jsprim.startsWith=I,jsprim.endsWith=j,jsprim.parseInteger=J,jsprim.iso8601=B,jsprim.rfc1123=ee,jsprim.parseDateTime=Z,jsprim.hrtimediff=pe,jsprim.hrtimeDiff=pe,jsprim.hrtimeAccum=dt,jsprim.hrtimeAdd=Tt,jsprim.hrtimeNanosec=qe,jsprim.hrtimeMicrosec=mt,jsprim.hrtimeMillisec=st;function t(ht){var at,bt,jt="__deepCopy";if(ht&&ht[jt])throw new Error("attempted deep copy of cyclic object");if(ht&&ht.constructor==Object){at={},ht[jt]=!0;for(bt in ht)bt!=jt&&(at[bt]=t(ht[bt]));return delete ht[jt],at}if(ht&&ht.constructor==Array){for(at=[],ht[jt]=!0,bt=0;bt<ht.length;bt++)at.push(t(ht[bt]));return delete ht[jt],at}return ht}function u(ht,at){if(typeof ht!=typeof at)return!1;if(ht===null||at===null||typeof ht!="object")return ht===at;if(ht.constructor!=at.constructor)return!1;var bt;for(bt in ht)if(!at.hasOwnProperty(bt)||!u(ht[bt],at[bt]))return!1;for(bt in at)if(!ht.hasOwnProperty(bt))return!1;return!0}function h(ht){var at;for(at in ht)return!1;return!0}function v(ht,at){return n.equal(typeof at,"string"),Object.prototype.hasOwnProperty.call(ht,at)}function w(ht,at){for(var bt in ht)v(ht,bt)&&at(bt,ht[bt])}function A(ht,at){return n.equal(typeof at,"string"),E(ht,at)}function E(ht,at){if(!(ht===null||typeof ht!="object")){if(ht.hasOwnProperty(at))return ht[at];var bt=at.indexOf(".");if(bt!=-1){var jt=at.substr(0,bt);if(ht.hasOwnProperty(jt))return E(ht[jt],at.substr(bt+1))}}}function C(ht,at,bt){M(ht,at,[],bt)}function M(ht,at,bt,jt){var Ge,Qe;if(at===0){Ge=bt.slice(0),Ge.push(ht),jt(Ge);return}n.ok(ht!==null),n.equal(typeof ht,"object"),n.equal(typeof at,"number"),n.ok(at>=0);for(Qe in ht)Ge=bt.slice(0),Ge.push(Qe),M(ht[Qe],at-1,Ge,jt)}function P(ht,at){if(at===0)return[ht];n.ok(ht!==null),n.equal(typeof ht,"object"),n.equal(typeof at,"number"),n.ok(at>=0);var bt=[],jt;for(jt in ht)P(ht[jt],at-1).forEach(function(Ge){bt.push([jt].concat(Ge))});return bt}function I(ht,at){return ht.substr(0,at.length)==at}function j(ht,at){return ht.substr(ht.length-at.length,at.length)==at}function B(ht){return typeof ht=="number"&&(ht=new Date(ht)),n.ok(ht.constructor===Date),e.sprintf("%4d-%02d-%02dT%02d:%02d:%02d.%03dZ",ht.getUTCFullYear(),ht.getUTCMonth()+1,ht.getUTCDate(),ht.getUTCHours(),ht.getUTCMinutes(),ht.getUTCSeconds(),ht.getUTCMilliseconds())}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],N=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function ee(ht){return e.sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",N[ht.getUTCDay()],ht.getUTCDate(),F[ht.getUTCMonth()],ht.getUTCFullYear(),ht.getUTCHours(),ht.getUTCMinutes(),ht.getUTCSeconds())}function Z(ht){var at=+ht;return isNaN(at)?new Date(ht):new Date(at)}var re=Number.MAX_SAFE_INTEGER||9007199254740991,fe=Number.MIN_SAFE_INTEGER||-9007199254740991,V={base:10,allowSign:!0,allowPrefix:!1,allowTrailing:!1,allowImprecise:!1,trimWhitespace:!1,leadingZeroIsOctal:!1},le=48,he=57,ye=65,L=66,p=79,y=84,S=88,c=90,m=97,x=98,T=111,b=116,d=120,k=122,D=48,O=55,Q=87;function J(ht,at){n.string(ht,"str"),n.optionalObject(at,"options");var bt=!1,jt=V;at&&(bt=v(at,"base"),jt=Je(jt,at),n.number(jt.base,"options.base"),n.ok(jt.base>=2,"options.base >= 2"),n.ok(jt.base<=36,"options.base <= 36"),n.bool(jt.allowSign,"options.allowSign"),n.bool(jt.allowPrefix,"options.allowPrefix"),n.bool(jt.allowTrailing,"options.allowTrailing"),n.bool(jt.allowImprecise,"options.allowImprecise"),n.bool(jt.trimWhitespace,"options.trimWhitespace"),n.bool(jt.leadingZeroIsOctal,"options.leadingZeroIsOctal"),jt.leadingZeroIsOctal&&n.ok(!bt,'"base" and "leadingZeroIsOctal" are mutually exclusive'));var Ge,Qe=-1,Wt=jt.base,Et,Ct=1,Kt=0,Me=0,te=ht.length;if(jt.trimWhitespace)for(;Me<te&&U(ht.charCodeAt(Me));)++Me;for(jt.allowSign&&(ht[Me]==="-"?(Me+=1,Ct=-1):ht[Me]==="+"&&(Me+=1)),ht[Me]==="0"&&(jt.allowPrefix&&(Qe=z(ht.charCodeAt(Me+1)),Qe!==-1&&(!bt||Qe===Wt)&&(Wt=Qe,Me+=2)),Qe===-1&&jt.leadingZeroIsOctal&&(Wt=8)),Et=Me;Me<te&&(Ge=X(ht.charCodeAt(Me)),Ge!==-1&&Ge<Wt);++Me)Kt*=Wt,Kt+=Ge;if(Et===Me)return new Error("invalid number: "+JSON.stringify(ht));if(jt.trimWhitespace)for(;Me<te&&U(ht.charCodeAt(Me));)++Me;if(Me<te&&!jt.allowTrailing)return new Error("trailing characters after number: "+JSON.stringify(ht.slice(Me)));if(Kt===0)return 0;var _e=Kt*Ct;return!jt.allowImprecise&&(Kt>re||_e<fe)?new Error("number is outside of the supported range: "+JSON.stringify(ht.slice(Et,Me))):_e}function X(ht){return ht>=le&&ht<=he?ht-D:ht>=ye&&ht<=c?ht-O:ht>=m&&ht<=k?ht-Q:-1}function U(ht){return ht===32||ht>=9&&ht<=13||ht===160||ht===5760||ht===6158||ht>=8192&&ht<=8202||ht===8232||ht===8233||ht===8239||ht===8287||ht===12288||ht===65279}function z(ht){return ht===x||ht===L?2:ht===T||ht===p?8:ht===b||ht===y?10:ht===d||ht===S?16:-1}function ie(ht,at){var bt=l.validate(at,ht);if(bt.errors.length===0)return null;var jt=bt.errors[0],Ge=jt.property,Qe=jt.message.toLowerCase(),Wt,Et;(Wt=Qe.indexOf("the property "))!=-1&&(Et=Qe.indexOf(" is not defined in the schema and the schema does not allow additional properties"))!=-1&&(Wt+=13,Ge===""?Ge=Qe.substr(Wt,Et-Wt):Ge=Ge+"."+Qe.substr(Wt,Et-Wt),Qe="unsupported property");var Ct=new o.VError('property "%s": %s',Ge,Qe);return Ct.jsv_details=jt,Ct}function de(ht){return n.ok(Array.isArray(ht)&&ht.length>0,"randElt argument must be a non-empty array"),ht[Math.floor(Math.random()*ht.length)]}function me(ht){n.ok(ht[0]>=0&&ht[1]>=0,"negative numbers not allowed in hrtimes"),n.ok(ht[1]<1e9,"nanoseconds column overflow")}function pe(ht,at){me(ht),me(at),n.ok(ht[0]>at[0]||ht[0]==at[0]&&ht[1]>=at[1],"negative differences not allowed");var bt=[ht[0]-at[0],0];return ht[1]>=at[1]?bt[1]=ht[1]-at[1]:(bt[0]--,bt[1]=1e9-(at[1]-ht[1])),bt}function qe(ht){return me(ht),Math.floor(ht[0]*1e9+ht[1])}function mt(ht){return me(ht),Math.floor(ht[0]*1e6+ht[1]/1e3)}function st(ht){return me(ht),Math.floor(ht[0]*1e3+ht[1]/1e6)}function dt(ht,at){return me(ht),me(at),ht[1]+=at[1],ht[1]>=1e9&&(ht[0]++,ht[1]-=1e9),ht[0]+=at[0],ht}function Tt(ht,at){me(ht);var bt=[ht[0],ht[1]];return dt(bt,at)}function lt(ht,at){n.ok(typeof ht=="object"&&ht!==null,"obj argument must be a non-null object"),n.ok(Array.isArray(at),"allowed argument must be an array of strings");for(var bt=0;bt<at.length;bt++)n.ok(typeof at[bt]=="string","allowed argument must be an array of strings");return Object.keys(ht).filter(function(jt){return at.indexOf(jt)===-1})}function Je(ht,at,bt){var jt,Ge;if(jt={},bt)for(Ge in bt)jt[Ge]=bt[Ge];if(ht)for(Ge in ht)jt[Ge]=ht[Ge];if(at)for(Ge in at)jt[Ge]=at[Ge];return jt}return jsprim}var signer,hasRequiredSigner;function requireSigner(){if(hasRequiredSigner)return signer;hasRequiredSigner=1;var n=requireAssert(),e=requireCryptoBrowserify();requireStreamHttp();var o=util$6,l=requireLib$3(),t=requireJsprim(),u=requireUtils$1(),h=util$6.format,v=u.HASH_ALGOS,w=u.PK_ALGOS,A=u.InvalidAlgorithmError,E=u.HttpSignatureError,C=u.validateAlgorithm,M='Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"';function P(B){E.call(this,B,P)}o.inherits(P,E);function I(B){E.call(this,B,I)}o.inherits(I,E);function j(B){n.object(B,"options");var F=[];if(B.algorithm!==void 0&&(n.string(B.algorithm,"options.algorithm"),F=C(B.algorithm)),this.rs_alg=F,B.sign!==void 0)n.func(B.sign,"options.sign"),this.rs_signFunc=B.sign;else if(F[0]==="hmac"&&B.key!==void 0){if(n.string(B.keyId,"options.keyId"),this.rs_keyId=B.keyId,typeof B.key!="string"&&!Buffer$C.isBuffer(B.key))throw new TypeError("options.key for HMAC must be a string or Buffer");this.rs_signer=e.createHmac(F[1].toUpperCase(),B.key),this.rs_signer.sign=function(){var ee=this.digest("base64");return{hashAlgorithm:F[1],toString:function(){return ee}}}}else if(B.key!==void 0){var N=B.key;if((typeof N=="string"||Buffer$C.isBuffer(N))&&(N=l.parsePrivateKey(N)),n.ok(l.PrivateKey.isPrivateKey(N,[1,2]),"options.key must be a sshpk.PrivateKey"),this.rs_key=N,n.string(B.keyId,"options.keyId"),this.rs_keyId=B.keyId,!w[N.type])throw new A(N.type.toUpperCase()+" type keys are not supported");if(F[0]!==void 0&&N.type!==F[0])throw new A("options.key must be a "+F[0].toUpperCase()+" key, was given a "+N.type.toUpperCase()+" key instead");this.rs_signer=N.createSign(F[1])}else throw new TypeError("options.sign (func) or options.key is required");this.rs_headers=[],this.rs_lines=[]}return j.prototype.writeHeader=function(B,F){if(n.string(B,"header"),B=B.toLowerCase(),n.string(F,"value"),this.rs_headers.push(B),this.rs_signFunc)this.rs_lines.push(B+": "+F);else{var N=B+": "+F;this.rs_headers.length>0&&(N=`
`+N),this.rs_signer.update(N)}return F},j.prototype.writeDateHeader=function(){return this.writeHeader("date",t.rfc1123(new Date))},j.prototype.writeTarget=function(B,F){n.string(B,"method"),n.string(F,"path"),B=B.toLowerCase(),this.writeHeader("(request-target)",B+" "+F)},j.prototype.sign=function(B){if(n.func(B,"callback"),this.rs_headers.length<1)throw new Error("At least one header must be signed");var F,N;if(this.rs_signFunc){var ee=this.rs_lines.join(`
`),Z=this;this.rs_signFunc(ee,function(V,le){if(V){B(V);return}try{n.object(le,"signature"),n.string(le.keyId,"signature.keyId"),n.string(le.algorithm,"signature.algorithm"),n.string(le.signature,"signature.signature"),F=C(le.algorithm),N=h(M,le.keyId,le.algorithm,Z.rs_headers.join(" "),le.signature)}catch(he){B(he);return}B(null,N)})}else{try{var re=this.rs_signer.sign()}catch(V){B(V);return}F=(this.rs_alg[0]||this.rs_key.type)+"-"+re.hashAlgorithm;var fe=re.toString();N=h(M,this.rs_keyId,F,this.rs_headers.join(" "),fe),B(null,N)}},signer={isSigner:function(B){return typeof B=="object"&&B instanceof j},createSigner:function(F){return new j(F)},signRequest:function(F,N){n.object(F,"request"),n.object(N,"options"),n.optionalString(N.algorithm,"options.algorithm"),n.string(N.keyId,"options.keyId"),n.optionalArrayOfString(N.headers,"options.headers"),n.optionalString(N.httpVersion,"options.httpVersion"),F.getHeader("Date")||F.setHeader("Date",t.rfc1123(new Date)),N.headers||(N.headers=["date"]),N.httpVersion||(N.httpVersion="1.1");var ee=[];N.algorithm&&(N.algorithm=N.algorithm.toLowerCase(),ee=C(N.algorithm));var Z,re="";for(Z=0;Z<N.headers.length;Z++){if(typeof N.headers[Z]!="string")throw new TypeError("options.headers must be an array of Strings");var fe=N.headers[Z].toLowerCase();if(fe==="request-line")if(!N.strict)re+=F.method+" "+F.path+" HTTP/"+N.httpVersion;else throw new I("request-line is not a valid header with strict parsing enabled.");else if(fe==="(request-target)")re+="(request-target): "+F.method.toLowerCase()+" "+F.path;else{var V=F.getHeader(fe);if(V===void 0||V==="")throw new P(fe+" was not in the request");re+=fe+": "+V}Z+1<N.headers.length&&(re+=`
`)}F.hasOwnProperty("_stringToSign")&&(F._stringToSign=re);var le;if(ee[0]==="hmac"){if(typeof N.key!="string"&&!Buffer$C.isBuffer(N.key))throw new TypeError("options.key must be a string or Buffer");var he=e.createHmac(ee[1].toUpperCase(),N.key);he.update(re),le=he.digest("base64")}else{var ye=N.key;if((typeof ye=="string"||Buffer$C.isBuffer(ye))&&(ye=l.parsePrivateKey(N.key)),n.ok(l.PrivateKey.isPrivateKey(ye,[1,2]),"options.key must be a sshpk.PrivateKey"),!w[ye.type])throw new A(ye.type.toUpperCase()+" type keys are not supported");if(ee[0]!==void 0&&ye.type!==ee[0])throw new A("options.key must be a "+ee[0].toUpperCase()+" key, was given a "+ye.type.toUpperCase()+" key instead");var L=ye.createSign(ee[1]);L.update(re);var p=L.sign();if(!v[p.hashAlgorithm])throw new A(p.hashAlgorithm.toUpperCase()+" is not a supported hash algorithm");N.algorithm=ye.type+"-"+p.hashAlgorithm,le=p.toString(),n.notStrictEqual(le,"","empty signature produced")}var y=N.authorizationHeaderName||"Authorization";return F.setHeader(y,h(M,N.keyId,N.algorithm,N.headers.join(" "),le)),!0}},signer}var verify,hasRequiredVerify;function requireVerify(){if(hasRequiredVerify)return verify;hasRequiredVerify=1;var n=requireAssert(),e=requireCryptoBrowserify(),o=requireLib$3(),l=requireUtils$1();l.HASH_ALGOS,l.PK_ALGOS,l.InvalidAlgorithmError,l.HttpSignatureError;var t=l.validateAlgorithm;return verify={verifySignature:function(h,v){n.object(h,"parsedSignature"),(typeof v=="string"||Buffer$C.isBuffer(v))&&(v=o.parseKey(v)),n.ok(o.Key.isKey(v,[1,1]),"pubkey must be a sshpk.Key");var w=t(h.algorithm);if(w[0]==="hmac"||w[0]!==v.type)return!1;var A=v.createVerify(w[1]);return A.update(h.signingString),A.verify(h.params.signature,"base64")},verifyHMAC:function(h,v){n.object(h,"parsedHMAC"),n.string(v,"secret");var w=t(h.algorithm);if(w[0]!=="hmac")return!1;var A=w[1].toUpperCase(),E=e.createHmac(A,v);E.update(h.signingString);var C=e.createHmac(A,v);C.update(E.digest()),C=C.digest();var M=e.createHmac(A,v);return M.update(new Buffer$C(h.params.signature,"base64")),M=M.digest(),typeof C=="string"?C===M:Buffer$C.isBuffer(C)&&!C.equals?C.toString("binary")===M.toString("binary"):C.equals(M)}},verify}var lib$2,hasRequiredLib$2;function requireLib$2(){if(hasRequiredLib$2)return lib$2;hasRequiredLib$2=1;var n=requireParser(),e=requireSigner(),o=requireVerify(),l=requireUtils$1();return lib$2={parse:n.parseRequest,parseRequest:n.parseRequest,sign:e.signRequest,signRequest:e.signRequest,createSigner:e.createSigner,isSigner:e.isSigner,sshKeyToPEM:l.sshKeyToPEM,sshKeyFingerprint:l.fingerprint,pemToRsaSSHKey:l.pemToRsaSSHKey,verify:o.verifySignature,verifySignature:o.verifySignature,verifyHMAC:o.verifyHMAC},lib$2}var caseless={exports:{}},hasRequiredCaseless;function requireCaseless(){if(hasRequiredCaseless)return caseless.exports;hasRequiredCaseless=1;function n(e){this.dict=e||{}}return n.prototype.set=function(e,o,l){if(typeof e=="object")for(var t in e)this.set(t,e[t],o);else{typeof l>"u"&&(l=!0);var u=this.has(e);return!l&&u?this.dict[u]=this.dict[u]+","+o:this.dict[u||e]=o,u}},n.prototype.has=function(l){for(var o=Object.keys(this.dict),l=l.toLowerCase(),t=0;t<o.length;t++)if(o[t].toLowerCase()===l)return o[t];return!1},n.prototype.get=function(e){e=e.toLowerCase();var o,l,t=this.dict;return Object.keys(t).forEach(function(u){l=u.toLowerCase(),e===l&&(o=t[u])}),o},n.prototype.swap=function(e){var o=this.has(e);if(o!==e){if(!o)throw new Error('There is no header than matches "'+e+'"');this.dict[e]=this.dict[o],delete this.dict[o]}},n.prototype.del=function(e){var o=this.has(e);return delete this.dict[o||e]},caseless.exports=function(e){return new n(e)},caseless.exports.httpify=function(e,o){var l=new n(o);return e.setHeader=function(t,u,h){if(!(typeof u>"u"))return l.set(t,u,h)},e.hasHeader=function(t){return l.has(t)},e.getHeader=function(t){return l.get(t)},e.removeHeader=function(t){return l.del(t)},e.headers=l.dict,l},caseless.exports}var foreverAgent,hasRequiredForeverAgent;function requireForeverAgent(){if(hasRequiredForeverAgent)return foreverAgent;hasRequiredForeverAgent=1,foreverAgent=h,h.SSL=v;var n=util$6,e=requireStreamHttp().Agent,o=require$$1$5,l=require$$1$5,t=requireHttpsBrowserify().Agent;function u(A,E){var C="";return typeof A=="string"?C=A+":"+E:C=A.host+":"+A.port+":"+(A.localAddress?A.localAddress+":":":"),C}function h(A){var E=this;E.options=A||{},E.requests={},E.sockets={},E.freeSockets={},E.maxSockets=E.options.maxSockets||e.defaultMaxSockets,E.minSockets=E.options.minSockets||h.defaultMinSockets,E.on("free",function(C,M,P){var I=u(M,P);if(E.requests[I]&&E.requests[I].length)E.requests[I].shift().onSocket(C);else if(E.sockets[I].length<E.minSockets){E.freeSockets[I]||(E.freeSockets[I]=[]),E.freeSockets[I].push(C);var j=function(){C.destroy()};C._onIdleError=j,C.on("error",j)}else C.destroy()})}n.inherits(h,e),h.defaultMinSockets=5,h.prototype.createConnection=o.createConnection,h.prototype.addRequestNoreuse=e.prototype.addRequest,h.prototype.addRequest=function(A,E,C){var M=u(E,C);if(typeof E!="string"){var P=E;C=P.port,E=P.host}if(this.freeSockets[M]&&this.freeSockets[M].length>0&&!A.useChunkedEncodingByDefault){var I=this.freeSockets[M].pop();I.removeListener("error",I._onIdleError),delete I._onIdleError,A._reusedSocket=!0,A.onSocket(I)}else this.addRequestNoreuse(A,E,C)},h.prototype.removeSocket=function(A,E,C,M){if(this.sockets[E]){var P=this.sockets[E].indexOf(A);P!==-1&&this.sockets[E].splice(P,1)}else this.sockets[E]&&this.sockets[E].length===0&&(delete this.sockets[E],delete this.requests[E]);if(this.freeSockets[E]){var P=this.freeSockets[E].indexOf(A);P!==-1&&(this.freeSockets[E].splice(P,1),this.freeSockets[E].length===0&&delete this.freeSockets[E])}this.requests[E]&&this.requests[E].length&&this.createSocket(E,C,M).emit("free")};function v(A){h.call(this,A)}n.inherits(v,h),v.prototype.createConnection=w,v.prototype.addRequestNoreuse=t.prototype.addRequest;function w(A,E,C){return typeof A=="object"?C=A:typeof E=="object"?C=E:typeof C=="object"?C=C:C={},typeof A=="number"&&(C.port=A),typeof E=="string"&&(C.host=E),l.connect(C)}return foreverAgent}var browser,hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,browser=typeof self=="object"?self.FormData:window.FormData),browser}var isstream={exports:{}},hasRequiredIsstream;function requireIsstream(){if(hasRequiredIsstream)return isstream.exports;hasRequiredIsstream=1;var n=requireStreamBrowserify();function e(u){return u instanceof n.Stream}function o(u){return e(u)&&typeof u._read=="function"&&typeof u._readableState=="object"}function l(u){return e(u)&&typeof u._write=="function"&&typeof u._writableState=="object"}function t(u){return o(u)&&l(u)}return isstream.exports=e,isstream.exports.isReadable=o,isstream.exports.isWritable=l,isstream.exports.isDuplex=t,isstream.exports}var isTypedarray,hasRequiredIsTypedarray;function requireIsTypedarray(){if(hasRequiredIsTypedarray)return isTypedarray;hasRequiredIsTypedarray=1,isTypedarray=o,o.strict=l,o.loose=t;var n=Object.prototype.toString,e={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function o(u){return l(u)||t(u)}function l(u){return u instanceof Int8Array||u instanceof Int16Array||u instanceof Int32Array||u instanceof Uint8Array||u instanceof Uint8ClampedArray||u instanceof Uint16Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array}function t(u){return e[n.call(u)]}return isTypedarray}var getProxyFromURI_1,hasRequiredGetProxyFromURI;function requireGetProxyFromURI(){if(hasRequiredGetProxyFromURI)return getProxyFromURI_1;hasRequiredGetProxyFromURI=1;function n(t){return t.replace(/^\.*/,".").toLowerCase()}function e(t){t=t.trim().toLowerCase();var u=t.split(":",2),h=n(u[0]),v=u[1],w=t.indexOf(":")>-1;return{hostname:h,port:v,hasPort:w}}function o(t,u){var h=t.port||(t.protocol==="https:"?"443":"80"),v=n(t.hostname),w=u.split(",");return w.map(e).some(function(A){var E=v.indexOf(A.hostname),C=E>-1&&E===v.length-A.hostname.length;return A.hasPort?h===A.port&&C:C})}function l(t){var u=process$1.env.NO_PROXY||process$1.env.no_proxy||"";return u==="*"||u!==""&&o(t,u)?null:t.protocol==="http:"?process$1.env.HTTP_PROXY||process$1.env.http_proxy||null:t.protocol==="https:"&&(process$1.env.HTTPS_PROXY||process$1.env.https_proxy||process$1.env.HTTP_PROXY||process$1.env.http_proxy)||null}return getProxyFromURI_1=l,getProxyFromURI_1}var querystring={},utils,hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var n=Object.prototype.hasOwnProperty,e=function(){for(var C=[],M=0;M<256;++M)C.push("%"+((M<16?"0":"")+M.toString(16)).toUpperCase());return C}(),o=function(M){for(var P;M.length;){var I=M.pop();if(P=I.obj[I.prop],Array.isArray(P)){for(var j=[],B=0;B<P.length;++B)typeof P[B]<"u"&&j.push(P[B]);I.obj[I.prop]=j}}return P},l=function(M,P){for(var I=P&&P.plainObjects?Object.create(null):{},j=0;j<M.length;++j)typeof M[j]<"u"&&(I[j]=M[j]);return I},t=function C(M,P,I){if(!P)return M;if(typeof P!="object"){if(Array.isArray(M))M.push(P);else if(M&&typeof M=="object")(I&&(I.plainObjects||I.allowPrototypes)||!n.call(Object.prototype,P))&&(M[P]=!0);else return[M,P];return M}if(!M||typeof M!="object")return[M].concat(P);var j=M;return Array.isArray(M)&&!Array.isArray(P)&&(j=l(M,I)),Array.isArray(M)&&Array.isArray(P)?(P.forEach(function(B,F){if(n.call(M,F)){var N=M[F];N&&typeof N=="object"&&B&&typeof B=="object"?M[F]=C(N,B,I):M.push(B)}else M[F]=B}),M):Object.keys(P).reduce(function(B,F){var N=P[F];return n.call(B,F)?B[F]=C(B[F],N,I):B[F]=N,B},j)},u=function(M,P){return Object.keys(P).reduce(function(I,j){return I[j]=P[j],I},M)},h=function(C){try{return decodeURIComponent(C.replace(/\+/g," "))}catch{return C}},v=function(M){if(M.length===0)return M;for(var P=typeof M=="string"?M:String(M),I="",j=0;j<P.length;++j){var B=P.charCodeAt(j);if(B===45||B===46||B===95||B===126||B>=48&&B<=57||B>=65&&B<=90||B>=97&&B<=122){I+=P.charAt(j);continue}if(B<128){I=I+e[B];continue}if(B<2048){I=I+(e[192|B>>6]+e[128|B&63]);continue}if(B<55296||B>=57344){I=I+(e[224|B>>12]+e[128|B>>6&63]+e[128|B&63]);continue}j+=1,B=65536+((B&1023)<<10|P.charCodeAt(j)&1023),I+=e[240|B>>18]+e[128|B>>12&63]+e[128|B>>6&63]+e[128|B&63]}return I},w=function(M){for(var P=[{obj:{o:M},prop:"o"}],I=[],j=0;j<P.length;++j)for(var B=P[j],F=B.obj[B.prop],N=Object.keys(F),ee=0;ee<N.length;++ee){var Z=N[ee],re=F[Z];typeof re=="object"&&re!==null&&I.indexOf(re)===-1&&(P.push({obj:F,prop:Z}),I.push(re))}return o(P)},A=function(M){return Object.prototype.toString.call(M)==="[object RegExp]"},E=function(M){return M===null||typeof M>"u"?!1:!!(M.constructor&&M.constructor.isBuffer&&M.constructor.isBuffer(M))};return utils={arrayToObject:l,assign:u,compact:w,decode:h,encode:v,isBuffer:E,isRegExp:A,merge:t},utils}var formats,hasRequiredFormats$1;function requireFormats$1(){if(hasRequiredFormats$1)return formats;hasRequiredFormats$1=1;var n=String.prototype.replace,e=/%20/g;return formats={default:"RFC3986",formatters:{RFC1738:function(o){return n.call(o,e,"+")},RFC3986:function(o){return String(o)}},RFC1738:"RFC1738",RFC3986:"RFC3986"},formats}var stringify_1,hasRequiredStringify;function requireStringify(){if(hasRequiredStringify)return stringify_1;hasRequiredStringify=1;var n=requireUtils(),e=requireFormats$1(),o={brackets:function(E){return E+"[]"},indices:function(E,C){return E+"["+C+"]"},repeat:function(E){return E}},l=Array.isArray,t=Array.prototype.push,u=function(A,E){t.apply(A,l(E)?E:[E])},h=Date.prototype.toISOString,v={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(E){return h.call(E)},skipNulls:!1,strictNullHandling:!1},w=function A(E,C,M,P,I,j,B,F,N,ee,Z,re){var fe=E;if(typeof B=="function"?fe=B(C,fe):fe instanceof Date&&(fe=ee(fe)),fe===null){if(P)return j&&!re?j(C,v.encoder):C;fe=""}if(typeof fe=="string"||typeof fe=="number"||typeof fe=="boolean"||n.isBuffer(fe)){if(j){var V=re?C:j(C,v.encoder);return[Z(V)+"="+Z(j(fe,v.encoder))]}return[Z(C)+"="+Z(String(fe))]}var le=[];if(typeof fe>"u")return le;var he;if(l(B))he=B;else{var ye=Object.keys(fe);he=F?ye.sort(F):ye}for(var L=0;L<he.length;++L){var p=he[L];I&&fe[p]===null||(l(fe)?u(le,A(fe[p],M(C,p),M,P,I,j,B,F,N,ee,Z,re)):u(le,A(fe[p],C+(N?"."+p:"["+p+"]"),M,P,I,j,B,F,N,ee,Z,re)))}return le};return stringify_1=function(A,E){var C=A,M=E?n.assign({},E):{};if(M.encoder!==null&&typeof M.encoder<"u"&&typeof M.encoder!="function")throw new TypeError("Encoder has to be a function.");var P=typeof M.delimiter>"u"?v.delimiter:M.delimiter,I=typeof M.strictNullHandling=="boolean"?M.strictNullHandling:v.strictNullHandling,j=typeof M.skipNulls=="boolean"?M.skipNulls:v.skipNulls,B=typeof M.encode=="boolean"?M.encode:v.encode,F=typeof M.encoder=="function"?M.encoder:v.encoder,N=typeof M.sort=="function"?M.sort:null,ee=typeof M.allowDots>"u"?!1:M.allowDots,Z=typeof M.serializeDate=="function"?M.serializeDate:v.serializeDate,re=typeof M.encodeValuesOnly=="boolean"?M.encodeValuesOnly:v.encodeValuesOnly;if(typeof M.format>"u")M.format=e.default;else if(!Object.prototype.hasOwnProperty.call(e.formatters,M.format))throw new TypeError("Unknown format option provided.");var fe=e.formatters[M.format],V,le;typeof M.filter=="function"?(le=M.filter,C=le("",C)):l(M.filter)&&(le=M.filter,V=le);var he=[];if(typeof C!="object"||C===null)return"";var ye;M.arrayFormat in o?ye=M.arrayFormat:"indices"in M?ye=M.indices?"indices":"repeat":ye="indices";var L=o[ye];V||(V=Object.keys(C)),N&&V.sort(N);for(var p=0;p<V.length;++p){var y=V[p];j&&C[y]===null||u(he,w(C[y],y,L,I,j,B?F:null,le,N,ee,Z,fe,re))}var S=he.join(P),c=M.addQueryPrefix===!0?"?":"";return S.length>0?c+S:""},stringify_1}var parse,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;var n=requireUtils(),e=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},l=function(v,w){for(var A={},E=w.ignoreQueryPrefix?v.replace(/^\?/,""):v,C=w.parameterLimit===1/0?void 0:w.parameterLimit,M=E.split(w.delimiter,C),P=0;P<M.length;++P){var I=M[P],j=I.indexOf("]="),B=j===-1?I.indexOf("="):j+1,F,N;B===-1?(F=w.decoder(I,o.decoder),N=w.strictNullHandling?null:""):(F=w.decoder(I.slice(0,B),o.decoder),N=w.decoder(I.slice(B+1),o.decoder)),e.call(A,F)?A[F]=[].concat(A[F]).concat(N):A[F]=N}return A},t=function(h,v,w){for(var A=v,E=h.length-1;E>=0;--E){var C,M=h[E];if(M==="[]"&&w.parseArrays)C=[].concat(A);else{C=w.plainObjects?Object.create(null):{};var P=M.charAt(0)==="["&&M.charAt(M.length-1)==="]"?M.slice(1,-1):M,I=parseInt(P,10);!w.parseArrays&&P===""?C={0:A}:!isNaN(I)&&M!==P&&String(I)===P&&I>=0&&w.parseArrays&&I<=w.arrayLimit?(C=[],C[I]=A):P!=="__proto__"&&(C[P]=A)}A=C}return A},u=function(v,w,A){if(v){var E=A.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,C=/(\[[^[\]]*])/,M=/(\[[^[\]]*])/g,P=C.exec(E),I=P?E.slice(0,P.index):E,j=[];if(I){if(!A.plainObjects&&e.call(Object.prototype,I)&&!A.allowPrototypes)return;j.push(I)}for(var B=0;(P=M.exec(E))!==null&&B<A.depth;){if(B+=1,!A.plainObjects&&e.call(Object.prototype,P[1].slice(1,-1))&&!A.allowPrototypes)return;j.push(P[1])}return P&&j.push("["+E.slice(P.index)+"]"),t(j,w,A)}};return parse=function(h,v){var w=v?n.assign({},v):{};if(w.decoder!==null&&w.decoder!==void 0&&typeof w.decoder!="function")throw new TypeError("Decoder has to be a function.");if(w.ignoreQueryPrefix=w.ignoreQueryPrefix===!0,w.delimiter=typeof w.delimiter=="string"||n.isRegExp(w.delimiter)?w.delimiter:o.delimiter,w.depth=typeof w.depth=="number"?w.depth:o.depth,w.arrayLimit=typeof w.arrayLimit=="number"?w.arrayLimit:o.arrayLimit,w.parseArrays=w.parseArrays!==!1,w.decoder=typeof w.decoder=="function"?w.decoder:o.decoder,w.allowDots=typeof w.allowDots=="boolean"?w.allowDots:o.allowDots,w.plainObjects=typeof w.plainObjects=="boolean"?w.plainObjects:o.plainObjects,w.allowPrototypes=typeof w.allowPrototypes=="boolean"?w.allowPrototypes:o.allowPrototypes,w.parameterLimit=typeof w.parameterLimit=="number"?w.parameterLimit:o.parameterLimit,w.strictNullHandling=typeof w.strictNullHandling=="boolean"?w.strictNullHandling:o.strictNullHandling,h===""||h===null||typeof h>"u")return w.plainObjects?Object.create(null):{};for(var A=typeof h=="string"?l(h,w):h,E=w.plainObjects?Object.create(null):{},C=Object.keys(A),M=0;M<C.length;++M){var P=C[M],I=u(P,A[P],w);E=n.merge(E,I,w)}return n.compact(E)},parse}var lib$1,hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1;var n=requireStringify(),e=requireParse(),o=requireFormats$1();return lib$1={formats:o,parse:e,stringify:n},lib$1}var hasRequiredQuerystring;function requireQuerystring(){if(hasRequiredQuerystring)return querystring;hasRequiredQuerystring=1;var n=requireLib$1(),e=require$$1$1;function o(l){this.request=l,this.lib=null,this.useQuerystring=null,this.parseOptions=null,this.stringifyOptions=null}return o.prototype.init=function(l){this.lib||(this.useQuerystring=l.useQuerystring,this.lib=this.useQuerystring?e:n,this.parseOptions=l.qsParseOptions||{},this.stringifyOptions=l.qsStringifyOptions||{})},o.prototype.stringify=function(l){return this.useQuerystring?this.rfc3986(this.lib.stringify(l,this.stringifyOptions.sep||null,this.stringifyOptions.eq||null,this.stringifyOptions)):this.lib.stringify(l,this.stringifyOptions)},o.prototype.parse=function(l){return this.useQuerystring?this.lib.parse(l,this.parseOptions.sep||null,this.parseOptions.eq||null,this.parseOptions):this.lib.parse(l,this.parseOptions)},o.prototype.rfc3986=function(l){return l.replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})},o.prototype.unescape=e.unescape,querystring.Querystring=o,querystring}var har={},promise={},uri_all={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */var hasRequiredUri_all;function requireUri_all(){return hasRequiredUri_all||(hasRequiredUri_all=1,function(n,e){(function(o,l){l(e)})(commonjsGlobal$1,function(o){function l(){for(var be=arguments.length,ve=Array(be),se=0;se<be;se++)ve[se]=arguments[se];if(ve.length>1){ve[0]=ve[0].slice(0,-1);for(var Pe=ve.length-1,ze=1;ze<Pe;++ze)ve[ze]=ve[ze].slice(1,-1);return ve[Pe]=ve[Pe].slice(1),ve.join("")}else return ve[0]}function t(be){return"(?:"+be+")"}function u(be){return be===void 0?"undefined":be===null?"null":Object.prototype.toString.call(be).split(" ").pop().split("]").shift().toLowerCase()}function h(be){return be.toUpperCase()}function v(be){return be!=null?be instanceof Array?be:typeof be.length!="number"||be.split||be.setInterval||be.call?[be]:Array.prototype.slice.call(be):[]}function w(be,ve){var se=be;if(ve)for(var Pe in ve)se[Pe]=ve[Pe];return se}function A(be){var ve="[A-Za-z]",se="[0-9]",Pe=l(se,"[A-Fa-f]"),ze=t(t("%[EFef]"+Pe+"%"+Pe+Pe+"%"+Pe+Pe)+"|"+t("%[89A-Fa-f]"+Pe+"%"+Pe+Pe)+"|"+t("%"+Pe+Pe)),xt="[\\:\\/\\?\\#\\[\\]\\@]",ot="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",wt=l(xt,ot),Yt=be?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Jt=be?"[\\uE000-\\uF8FF]":"[]",wr=l(ve,se,"[\\-\\.\\_\\~]",Yt);t(ve+l(ve,se,"[\\+\\-\\.]")+"*"),t(t(ze+"|"+l(wr,ot,"[\\:]"))+"*");var lr=t(t("25[0-5]")+"|"+t("2[0-4]"+se)+"|"+t("1"+se+se)+"|"+t("0?[1-9]"+se)+"|0?0?"+se),Rr=t(lr+"\\."+lr+"\\."+lr+"\\."+lr),vr=t(Pe+"{1,4}"),dr=t(t(vr+"\\:"+vr)+"|"+Rr),Ir=t(t(vr+"\\:")+"{6}"+dr),kr=t("\\:\\:"+t(vr+"\\:")+"{5}"+dr),Fr=t(t(vr)+"?\\:\\:"+t(vr+"\\:")+"{4}"+dr),jr=t(t(t(vr+"\\:")+"{0,1}"+vr)+"?\\:\\:"+t(vr+"\\:")+"{3}"+dr),Cr=t(t(t(vr+"\\:")+"{0,2}"+vr)+"?\\:\\:"+t(vr+"\\:")+"{2}"+dr),Lr=t(t(t(vr+"\\:")+"{0,3}"+vr)+"?\\:\\:"+vr+"\\:"+dr),Ar=t(t(t(vr+"\\:")+"{0,4}"+vr)+"?\\:\\:"+dr),Tr=t(t(t(vr+"\\:")+"{0,5}"+vr)+"?\\:\\:"+vr),Sr=t(t(t(vr+"\\:")+"{0,6}"+vr)+"?\\:\\:"),rr=t([Ir,kr,Fr,jr,Cr,Lr,Ar,Tr,Sr].join("|")),Nt=t(t(wr+"|"+ze)+"+");t("[vV]"+Pe+"+\\."+l(wr,ot,"[\\:]")+"+"),t(t(ze+"|"+l(wr,ot))+"*");var Gt=t(ze+"|"+l(wr,ot,"[\\:\\@]"));return t(t(ze+"|"+l(wr,ot,"[\\@]"))+"+"),t(t(Gt+"|"+l("[\\/\\?]",Jt))+"*"),{NOT_SCHEME:new RegExp(l("[^]",ve,se,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(l("[^\\%\\:]",wr,ot),"g"),NOT_HOST:new RegExp(l("[^\\%\\[\\]\\:]",wr,ot),"g"),NOT_PATH:new RegExp(l("[^\\%\\/\\:\\@]",wr,ot),"g"),NOT_PATH_NOSCHEME:new RegExp(l("[^\\%\\/\\@]",wr,ot),"g"),NOT_QUERY:new RegExp(l("[^\\%]",wr,ot,"[\\:\\@\\/\\?]",Jt),"g"),NOT_FRAGMENT:new RegExp(l("[^\\%]",wr,ot,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(l("[^]",wr,ot),"g"),UNRESERVED:new RegExp(wr,"g"),OTHER_CHARS:new RegExp(l("[^\\%]",wr,wt),"g"),PCT_ENCODED:new RegExp(ze,"g"),IPV4ADDRESS:new RegExp("^("+Rr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+rr+")"+t(t("\\%25|\\%(?!"+Pe+"{2})")+"("+Nt+")")+"?\\]?$")}}var E=A(!1),C=A(!0),M=function(){function be(ve,se){var Pe=[],ze=!0,xt=!1,ot=void 0;try{for(var wt=ve[Symbol.iterator](),Yt;!(ze=(Yt=wt.next()).done)&&(Pe.push(Yt.value),!(se&&Pe.length===se));ze=!0);}catch(Jt){xt=!0,ot=Jt}finally{try{!ze&&wt.return&&wt.return()}finally{if(xt)throw ot}}return Pe}return function(ve,se){if(Array.isArray(ve))return ve;if(Symbol.iterator in Object(ve))return be(ve,se);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function(be){if(Array.isArray(be)){for(var ve=0,se=Array(be.length);ve<be.length;ve++)se[ve]=be[ve];return se}else return Array.from(be)},I=2147483647,j=36,B=1,F=26,N=38,ee=700,Z=72,re=128,fe="-",V=/^xn--/,le=/[^\0-\x7E]/,he=/[\x2E\u3002\uFF0E\uFF61]/g,ye={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=j-B,p=Math.floor,y=String.fromCharCode;function S(be){throw new RangeError(ye[be])}function c(be,ve){for(var se=[],Pe=be.length;Pe--;)se[Pe]=ve(be[Pe]);return se}function m(be,ve){var se=be.split("@"),Pe="";se.length>1&&(Pe=se[0]+"@",be=se[1]),be=be.replace(he,".");var ze=be.split("."),xt=c(ze,ve).join(".");return Pe+xt}function x(be){for(var ve=[],se=0,Pe=be.length;se<Pe;){var ze=be.charCodeAt(se++);if(ze>=55296&&ze<=56319&&se<Pe){var xt=be.charCodeAt(se++);(xt&64512)==56320?ve.push(((ze&1023)<<10)+(xt&1023)+65536):(ve.push(ze),se--)}else ve.push(ze)}return ve}var T=function(ve){return String.fromCodePoint.apply(String,P(ve))},b=function(ve){return ve-48<10?ve-22:ve-65<26?ve-65:ve-97<26?ve-97:j},d=function(ve,se){return ve+22+75*(ve<26)-((se!=0)<<5)},k=function(ve,se,Pe){var ze=0;for(ve=Pe?p(ve/ee):ve>>1,ve+=p(ve/se);ve>L*F>>1;ze+=j)ve=p(ve/L);return p(ze+(L+1)*ve/(ve+N))},D=function(ve){var se=[],Pe=ve.length,ze=0,xt=re,ot=Z,wt=ve.lastIndexOf(fe);wt<0&&(wt=0);for(var Yt=0;Yt<wt;++Yt)ve.charCodeAt(Yt)>=128&&S("not-basic"),se.push(ve.charCodeAt(Yt));for(var Jt=wt>0?wt+1:0;Jt<Pe;){for(var wr=ze,lr=1,Rr=j;;Rr+=j){Jt>=Pe&&S("invalid-input");var vr=b(ve.charCodeAt(Jt++));(vr>=j||vr>p((I-ze)/lr))&&S("overflow"),ze+=vr*lr;var dr=Rr<=ot?B:Rr>=ot+F?F:Rr-ot;if(vr<dr)break;var Ir=j-dr;lr>p(I/Ir)&&S("overflow"),lr*=Ir}var kr=se.length+1;ot=k(ze-wr,kr,wr==0),p(ze/kr)>I-xt&&S("overflow"),xt+=p(ze/kr),ze%=kr,se.splice(ze++,0,xt)}return String.fromCodePoint.apply(String,se)},O=function(ve){var se=[];ve=x(ve);var Pe=ve.length,ze=re,xt=0,ot=Z,wt=!0,Yt=!1,Jt=void 0;try{for(var wr=ve[Symbol.iterator](),lr;!(wt=(lr=wr.next()).done);wt=!0){var Rr=lr.value;Rr<128&&se.push(y(Rr))}}catch(Hr){Yt=!0,Jt=Hr}finally{try{!wt&&wr.return&&wr.return()}finally{if(Yt)throw Jt}}var vr=se.length,dr=vr;for(vr&&se.push(fe);dr<Pe;){var Ir=I,kr=!0,Fr=!1,jr=void 0;try{for(var Cr=ve[Symbol.iterator](),Lr;!(kr=(Lr=Cr.next()).done);kr=!0){var Ar=Lr.value;Ar>=ze&&Ar<Ir&&(Ir=Ar)}}catch(Hr){Fr=!0,jr=Hr}finally{try{!kr&&Cr.return&&Cr.return()}finally{if(Fr)throw jr}}var Tr=dr+1;Ir-ze>p((I-xt)/Tr)&&S("overflow"),xt+=(Ir-ze)*Tr,ze=Ir;var Sr=!0,rr=!1,Nt=void 0;try{for(var Gt=ve[Symbol.iterator](),xr;!(Sr=(xr=Gt.next()).done);Sr=!0){var pr=xr.value;if(pr<ze&&++xt>I&&S("overflow"),pr==ze){for(var tr=xt,br=j;;br+=j){var Nr=br<=ot?B:br>=ot+F?F:br-ot;if(tr<Nr)break;var Yr=tr-Nr,ei=j-Nr;se.push(y(d(Nr+Yr%ei,0))),tr=p(Yr/ei)}se.push(y(d(tr,0))),ot=k(xt,Tr,dr==vr),xt=0,++dr}}}catch(Hr){rr=!0,Nt=Hr}finally{try{!Sr&&Gt.return&&Gt.return()}finally{if(rr)throw Nt}}++xt,++ze}return se.join("")},Q=function(ve){return m(ve,function(se){return V.test(se)?D(se.slice(4).toLowerCase()):se})},J=function(ve){return m(ve,function(se){return le.test(se)?"xn--"+O(se):se})},X={version:"2.1.0",ucs2:{decode:x,encode:T},decode:D,encode:O,toASCII:J,toUnicode:Q},U={};function z(be){var ve=be.charCodeAt(0),se=void 0;return ve<16?se="%0"+ve.toString(16).toUpperCase():ve<128?se="%"+ve.toString(16).toUpperCase():ve<2048?se="%"+(ve>>6|192).toString(16).toUpperCase()+"%"+(ve&63|128).toString(16).toUpperCase():se="%"+(ve>>12|224).toString(16).toUpperCase()+"%"+(ve>>6&63|128).toString(16).toUpperCase()+"%"+(ve&63|128).toString(16).toUpperCase(),se}function ie(be){for(var ve="",se=0,Pe=be.length;se<Pe;){var ze=parseInt(be.substr(se+1,2),16);if(ze<128)ve+=String.fromCharCode(ze),se+=3;else if(ze>=194&&ze<224){if(Pe-se>=6){var xt=parseInt(be.substr(se+4,2),16);ve+=String.fromCharCode((ze&31)<<6|xt&63)}else ve+=be.substr(se,6);se+=6}else if(ze>=224){if(Pe-se>=9){var ot=parseInt(be.substr(se+4,2),16),wt=parseInt(be.substr(se+7,2),16);ve+=String.fromCharCode((ze&15)<<12|(ot&63)<<6|wt&63)}else ve+=be.substr(se,9);se+=9}else ve+=be.substr(se,3),se+=3}return ve}function de(be,ve){function se(Pe){var ze=ie(Pe);return ze.match(ve.UNRESERVED)?ze:Pe}return be.scheme&&(be.scheme=String(be.scheme).replace(ve.PCT_ENCODED,se).toLowerCase().replace(ve.NOT_SCHEME,"")),be.userinfo!==void 0&&(be.userinfo=String(be.userinfo).replace(ve.PCT_ENCODED,se).replace(ve.NOT_USERINFO,z).replace(ve.PCT_ENCODED,h)),be.host!==void 0&&(be.host=String(be.host).replace(ve.PCT_ENCODED,se).toLowerCase().replace(ve.NOT_HOST,z).replace(ve.PCT_ENCODED,h)),be.path!==void 0&&(be.path=String(be.path).replace(ve.PCT_ENCODED,se).replace(be.scheme?ve.NOT_PATH:ve.NOT_PATH_NOSCHEME,z).replace(ve.PCT_ENCODED,h)),be.query!==void 0&&(be.query=String(be.query).replace(ve.PCT_ENCODED,se).replace(ve.NOT_QUERY,z).replace(ve.PCT_ENCODED,h)),be.fragment!==void 0&&(be.fragment=String(be.fragment).replace(ve.PCT_ENCODED,se).replace(ve.NOT_FRAGMENT,z).replace(ve.PCT_ENCODED,h)),be}function me(be){return be.replace(/^0*(.*)/,"$1")||"0"}function pe(be,ve){var se=be.match(ve.IPV4ADDRESS)||[],Pe=M(se,2),ze=Pe[1];return ze?ze.split(".").map(me).join("."):be}function qe(be,ve){var se=be.match(ve.IPV6ADDRESS)||[],Pe=M(se,3),ze=Pe[1],xt=Pe[2];if(ze){for(var ot=ze.toLowerCase().split("::").reverse(),wt=M(ot,2),Yt=wt[0],Jt=wt[1],wr=Jt?Jt.split(":").map(me):[],lr=Yt.split(":").map(me),Rr=ve.IPV4ADDRESS.test(lr[lr.length-1]),vr=Rr?7:8,dr=lr.length-vr,Ir=Array(vr),kr=0;kr<vr;++kr)Ir[kr]=wr[kr]||lr[dr+kr]||"";Rr&&(Ir[vr-1]=pe(Ir[vr-1],ve));var Fr=Ir.reduce(function(Tr,Sr,rr){if(!Sr||Sr==="0"){var Nt=Tr[Tr.length-1];Nt&&Nt.index+Nt.length===rr?Nt.length++:Tr.push({index:rr,length:1})}return Tr},[]),jr=Fr.sort(function(Tr,Sr){return Sr.length-Tr.length})[0],Cr=void 0;if(jr&&jr.length>1){var Lr=Ir.slice(0,jr.index),Ar=Ir.slice(jr.index+jr.length);Cr=Lr.join(":")+"::"+Ar.join(":")}else Cr=Ir.join(":");return xt&&(Cr+="%"+xt),Cr}else return be}var mt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,st="".match(/(){0}/)[1]===void 0;function dt(be){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se={},Pe=ve.iri!==!1?C:E;ve.reference==="suffix"&&(be=(ve.scheme?ve.scheme+":":"")+"//"+be);var ze=be.match(mt);if(ze){st?(se.scheme=ze[1],se.userinfo=ze[3],se.host=ze[4],se.port=parseInt(ze[5],10),se.path=ze[6]||"",se.query=ze[7],se.fragment=ze[8],isNaN(se.port)&&(se.port=ze[5])):(se.scheme=ze[1]||void 0,se.userinfo=be.indexOf("@")!==-1?ze[3]:void 0,se.host=be.indexOf("//")!==-1?ze[4]:void 0,se.port=parseInt(ze[5],10),se.path=ze[6]||"",se.query=be.indexOf("?")!==-1?ze[7]:void 0,se.fragment=be.indexOf("#")!==-1?ze[8]:void 0,isNaN(se.port)&&(se.port=be.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ze[4]:void 0)),se.host&&(se.host=qe(pe(se.host,Pe),Pe)),se.scheme===void 0&&se.userinfo===void 0&&se.host===void 0&&se.port===void 0&&!se.path&&se.query===void 0?se.reference="same-document":se.scheme===void 0?se.reference="relative":se.fragment===void 0?se.reference="absolute":se.reference="uri",ve.reference&&ve.reference!=="suffix"&&ve.reference!==se.reference&&(se.error=se.error||"URI is not a "+ve.reference+" reference.");var xt=U[(ve.scheme||se.scheme||"").toLowerCase()];if(!ve.unicodeSupport&&(!xt||!xt.unicodeSupport)){if(se.host&&(ve.domainHost||xt&&xt.domainHost))try{se.host=X.toASCII(se.host.replace(Pe.PCT_ENCODED,ie).toLowerCase())}catch(ot){se.error=se.error||"Host's domain name can not be converted to ASCII via punycode: "+ot}de(se,E)}else de(se,Pe);xt&&xt.parse&&xt.parse(se,ve)}else se.error=se.error||"URI can not be parsed.";return se}function Tt(be,ve){var se=ve.iri!==!1?C:E,Pe=[];return be.userinfo!==void 0&&(Pe.push(be.userinfo),Pe.push("@")),be.host!==void 0&&Pe.push(qe(pe(String(be.host),se),se).replace(se.IPV6ADDRESS,function(ze,xt,ot){return"["+xt+(ot?"%25"+ot:"")+"]"})),(typeof be.port=="number"||typeof be.port=="string")&&(Pe.push(":"),Pe.push(String(be.port))),Pe.length?Pe.join(""):void 0}var lt=/^\.\.?\//,Je=/^\/\.(\/|$)/,ht=/^\/\.\.(\/|$)/,at=/^\/?(?:.|\n)*?(?=\/|$)/;function bt(be){for(var ve=[];be.length;)if(be.match(lt))be=be.replace(lt,"");else if(be.match(Je))be=be.replace(Je,"/");else if(be.match(ht))be=be.replace(ht,"/"),ve.pop();else if(be==="."||be==="..")be="";else{var se=be.match(at);if(se){var Pe=se[0];be=be.slice(Pe.length),ve.push(Pe)}else throw new Error("Unexpected dot segment condition")}return ve.join("")}function jt(be){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=ve.iri?C:E,Pe=[],ze=U[(ve.scheme||be.scheme||"").toLowerCase()];if(ze&&ze.serialize&&ze.serialize(be,ve),be.host&&!se.IPV6ADDRESS.test(be.host)){if(ve.domainHost||ze&&ze.domainHost)try{be.host=ve.iri?X.toUnicode(be.host):X.toASCII(be.host.replace(se.PCT_ENCODED,ie).toLowerCase())}catch(wt){be.error=be.error||"Host's domain name can not be converted to "+(ve.iri?"Unicode":"ASCII")+" via punycode: "+wt}}de(be,se),ve.reference!=="suffix"&&be.scheme&&(Pe.push(be.scheme),Pe.push(":"));var xt=Tt(be,ve);if(xt!==void 0&&(ve.reference!=="suffix"&&Pe.push("//"),Pe.push(xt),be.path&&be.path.charAt(0)!=="/"&&Pe.push("/")),be.path!==void 0){var ot=be.path;!ve.absolutePath&&(!ze||!ze.absolutePath)&&(ot=bt(ot)),xt===void 0&&(ot=ot.replace(/^\/\//,"/%2F")),Pe.push(ot)}return be.query!==void 0&&(Pe.push("?"),Pe.push(be.query)),be.fragment!==void 0&&(Pe.push("#"),Pe.push(be.fragment)),Pe.join("")}function Ge(be,ve){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Pe=arguments[3],ze={};return Pe||(be=dt(jt(be,se),se),ve=dt(jt(ve,se),se)),se=se||{},!se.tolerant&&ve.scheme?(ze.scheme=ve.scheme,ze.userinfo=ve.userinfo,ze.host=ve.host,ze.port=ve.port,ze.path=bt(ve.path||""),ze.query=ve.query):(ve.userinfo!==void 0||ve.host!==void 0||ve.port!==void 0?(ze.userinfo=ve.userinfo,ze.host=ve.host,ze.port=ve.port,ze.path=bt(ve.path||""),ze.query=ve.query):(ve.path?(ve.path.charAt(0)==="/"?ze.path=bt(ve.path):((be.userinfo!==void 0||be.host!==void 0||be.port!==void 0)&&!be.path?ze.path="/"+ve.path:be.path?ze.path=be.path.slice(0,be.path.lastIndexOf("/")+1)+ve.path:ze.path=ve.path,ze.path=bt(ze.path)),ze.query=ve.query):(ze.path=be.path,ve.query!==void 0?ze.query=ve.query:ze.query=be.query),ze.userinfo=be.userinfo,ze.host=be.host,ze.port=be.port),ze.scheme=be.scheme),ze.fragment=ve.fragment,ze}function Qe(be,ve,se){var Pe=w({scheme:"null"},se);return jt(Ge(dt(be,Pe),dt(ve,Pe),Pe,!0),Pe)}function Wt(be,ve){return typeof be=="string"?be=jt(dt(be,ve),ve):u(be)==="object"&&(be=dt(jt(be,ve),ve)),be}function Et(be,ve,se){return typeof be=="string"?be=jt(dt(be,se),se):u(be)==="object"&&(be=jt(be,se)),typeof ve=="string"?ve=jt(dt(ve,se),se):u(ve)==="object"&&(ve=jt(ve,se)),be===ve}function Ct(be,ve){return be&&be.toString().replace(!ve||!ve.iri?E.ESCAPE:C.ESCAPE,z)}function Kt(be,ve){return be&&be.toString().replace(!ve||!ve.iri?E.PCT_ENCODED:C.PCT_ENCODED,ie)}var Me={scheme:"http",domainHost:!0,parse:function(ve,se){return ve.host||(ve.error=ve.error||"HTTP URIs must have a host."),ve},serialize:function(ve,se){var Pe=String(ve.scheme).toLowerCase()==="https";return(ve.port===(Pe?443:80)||ve.port==="")&&(ve.port=void 0),ve.path||(ve.path="/"),ve}},te={scheme:"https",domainHost:Me.domainHost,parse:Me.parse,serialize:Me.serialize};function _e(be){return typeof be.secure=="boolean"?be.secure:String(be.scheme).toLowerCase()==="wss"}var je={scheme:"ws",domainHost:!0,parse:function(ve,se){var Pe=ve;return Pe.secure=_e(Pe),Pe.resourceName=(Pe.path||"/")+(Pe.query?"?"+Pe.query:""),Pe.path=void 0,Pe.query=void 0,Pe},serialize:function(ve,se){if((ve.port===(_e(ve)?443:80)||ve.port==="")&&(ve.port=void 0),typeof ve.secure=="boolean"&&(ve.scheme=ve.secure?"wss":"ws",ve.secure=void 0),ve.resourceName){var Pe=ve.resourceName.split("?"),ze=M(Pe,2),xt=ze[0],ot=ze[1];ve.path=xt&&xt!=="/"?xt:void 0,ve.query=ot,ve.resourceName=void 0}return ve.fragment=void 0,ve}},We={scheme:"wss",domainHost:je.domainHost,parse:je.parse,serialize:je.serialize},et={},Ye="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",De="[0-9A-Fa-f]",Ht=t(t("%[EFef]"+De+"%"+De+De+"%"+De+De)+"|"+t("%[89A-Fa-f]"+De+"%"+De+De)+"|"+t("%"+De+De)),Mt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ge="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Dt=l(ge,'[\\"\\\\]'),yt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ne=new RegExp(Ye,"g"),_t=new RegExp(Ht,"g"),pt=new RegExp(l("[^]",Mt,"[\\.]",'[\\"]',Dt),"g"),Bt=new RegExp(l("[^]",Ye,yt),"g"),ur=Bt;function kt(be){var ve=ie(be);return ve.match(Ne)?ve:be}var Ut={scheme:"mailto",parse:function(ve,se){var Pe=ve,ze=Pe.to=Pe.path?Pe.path.split(","):[];if(Pe.path=void 0,Pe.query){for(var xt=!1,ot={},wt=Pe.query.split("&"),Yt=0,Jt=wt.length;Yt<Jt;++Yt){var wr=wt[Yt].split("=");switch(wr[0]){case"to":for(var lr=wr[1].split(","),Rr=0,vr=lr.length;Rr<vr;++Rr)ze.push(lr[Rr]);break;case"subject":Pe.subject=Kt(wr[1],se);break;case"body":Pe.body=Kt(wr[1],se);break;default:xt=!0,ot[Kt(wr[0],se)]=Kt(wr[1],se);break}}xt&&(Pe.headers=ot)}Pe.query=void 0;for(var dr=0,Ir=ze.length;dr<Ir;++dr){var kr=ze[dr].split("@");if(kr[0]=Kt(kr[0]),se.unicodeSupport)kr[1]=Kt(kr[1],se).toLowerCase();else try{kr[1]=X.toASCII(Kt(kr[1],se).toLowerCase())}catch(Fr){Pe.error=Pe.error||"Email address's domain name can not be converted to ASCII via punycode: "+Fr}ze[dr]=kr.join("@")}return Pe},serialize:function(ve,se){var Pe=ve,ze=v(ve.to);if(ze){for(var xt=0,ot=ze.length;xt<ot;++xt){var wt=String(ze[xt]),Yt=wt.lastIndexOf("@"),Jt=wt.slice(0,Yt).replace(_t,kt).replace(_t,h).replace(pt,z),wr=wt.slice(Yt+1);try{wr=se.iri?X.toUnicode(wr):X.toASCII(Kt(wr,se).toLowerCase())}catch(dr){Pe.error=Pe.error||"Email address's domain name can not be converted to "+(se.iri?"Unicode":"ASCII")+" via punycode: "+dr}ze[xt]=Jt+"@"+wr}Pe.path=ze.join(",")}var lr=ve.headers=ve.headers||{};ve.subject&&(lr.subject=ve.subject),ve.body&&(lr.body=ve.body);var Rr=[];for(var vr in lr)lr[vr]!==et[vr]&&Rr.push(vr.replace(_t,kt).replace(_t,h).replace(Bt,z)+"="+lr[vr].replace(_t,kt).replace(_t,h).replace(ur,z));return Rr.length&&(Pe.query=Rr.join("&")),Pe}},Wr=/^([^\:]+)\:(.*)/,zt={scheme:"urn",parse:function(ve,se){var Pe=ve.path&&ve.path.match(Wr),ze=ve;if(Pe){var xt=se.scheme||ze.scheme||"urn",ot=Pe[1].toLowerCase(),wt=Pe[2],Yt=xt+":"+(se.nid||ot),Jt=U[Yt];ze.nid=ot,ze.nss=wt,ze.path=void 0,Jt&&(ze=Jt.parse(ze,se))}else ze.error=ze.error||"URN can not be parsed.";return ze},serialize:function(ve,se){var Pe=se.scheme||ve.scheme||"urn",ze=ve.nid,xt=Pe+":"+(se.nid||ze),ot=U[xt];ot&&(ve=ot.serialize(ve,se));var wt=ve,Yt=ve.nss;return wt.path=(ze||se.nid)+":"+Yt,wt}},Qt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,$e={scheme:"urn:uuid",parse:function(ve,se){var Pe=ve;return Pe.uuid=Pe.nss,Pe.nss=void 0,!se.tolerant&&(!Pe.uuid||!Pe.uuid.match(Qt))&&(Pe.error=Pe.error||"UUID is not valid."),Pe},serialize:function(ve,se){var Pe=ve;return Pe.nss=(ve.uuid||"").toLowerCase(),Pe}};U[Me.scheme]=Me,U[te.scheme]=te,U[je.scheme]=je,U[We.scheme]=We,U[Ut.scheme]=Ut,U[zt.scheme]=zt,U[$e.scheme]=$e,o.SCHEMES=U,o.pctEncChar=z,o.pctDecChars=ie,o.parse=dt,o.removeDotSegments=bt,o.serialize=jt,o.resolveComponents=Ge,o.resolve=Qe,o.normalize=Wt,o.equal=Et,o.escapeComponent=Ct,o.unescapeComponent=Kt,Object.defineProperty(o,"__esModule",{value:!0})})}(uri_all,uri_all.exports)),uri_all.exports}var fastDeepEqual,hasRequiredFastDeepEqual;function requireFastDeepEqual(){return hasRequiredFastDeepEqual||(hasRequiredFastDeepEqual=1,fastDeepEqual=function n(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var l,t,u;if(Array.isArray(e)){if(l=e.length,l!=o.length)return!1;for(t=l;t--!==0;)if(!n(e[t],o[t]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();if(u=Object.keys(e),l=u.length,l!==Object.keys(o).length)return!1;for(t=l;t--!==0;)if(!Object.prototype.hasOwnProperty.call(o,u[t]))return!1;for(t=l;t--!==0;){var h=u[t];if(!n(e[h],o[h]))return!1}return!0}return e!==e&&o!==o}),fastDeepEqual}var ucs2length,hasRequiredUcs2length;function requireUcs2length(){return hasRequiredUcs2length||(hasRequiredUcs2length=1,ucs2length=function(e){for(var o=0,l=e.length,t=0,u;t<l;)o++,u=e.charCodeAt(t++),u>=55296&&u<=56319&&t<l&&(u=e.charCodeAt(t),(u&64512)==56320&&t++);return o}),ucs2length}var util,hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1,util={copy:n,checkDataType:e,checkDataTypes:o,coerceToTypes:t,toHash:u,getProperty:w,escapeQuotes:A,equal:requireFastDeepEqual(),ucs2length:requireUcs2length(),varOccurences:E,varReplace:C,schemaHasRules:M,schemaHasRulesExcept:P,schemaUnknownRules:I,toQuotedString:j,getPathExpr:B,getPath:F,getData:Z,unescapeFragment:fe,unescapeJsonPointer:he,escapeFragment:V,escapeJsonPointer:le};function n(ye,L){L=L||{};for(var p in ye)L[p]=ye[p];return L}function e(ye,L,p,y){var S=y?" !== ":" === ",c=y?" || ":" && ",m=y?"!":"",x=y?"":"!";switch(ye){case"null":return L+S+"null";case"array":return m+"Array.isArray("+L+")";case"object":return"("+m+L+c+"typeof "+L+S+'"object"'+c+x+"Array.isArray("+L+"))";case"integer":return"(typeof "+L+S+'"number"'+c+x+"("+L+" % 1)"+c+L+S+L+(p?c+m+"isFinite("+L+")":"")+")";case"number":return"(typeof "+L+S+'"'+ye+'"'+(p?c+m+"isFinite("+L+")":"")+")";default:return"typeof "+L+S+'"'+ye+'"'}}function o(ye,L,p){switch(ye.length){case 1:return e(ye[0],L,p,!0);default:var y="",S=u(ye);S.array&&S.object&&(y=S.null?"(":"(!"+L+" || ",y+="typeof "+L+' !== "object")',delete S.null,delete S.array,delete S.object),S.number&&delete S.integer;for(var c in S)y+=(y?" && ":"")+e(c,L,p,!0);return y}}var l=u(["string","number","integer","boolean","null"]);function t(ye,L){if(Array.isArray(L)){for(var p=[],y=0;y<L.length;y++){var S=L[y];(l[S]||ye==="array"&&S==="array")&&(p[p.length]=S)}if(p.length)return p}else{if(l[L])return[L];if(ye==="array"&&L==="array")return["array"]}}function u(ye){for(var L={},p=0;p<ye.length;p++)L[ye[p]]=!0;return L}var h=/^[a-z$_][a-z$_0-9]*$/i,v=/'|\\/g;function w(ye){return typeof ye=="number"?"["+ye+"]":h.test(ye)?"."+ye:"['"+A(ye)+"']"}function A(ye){return ye.replace(v,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function E(ye,L){L+="[^0-9]";var p=ye.match(new RegExp(L,"g"));return p?p.length:0}function C(ye,L,p){return L+="([^0-9])",p=p.replace(/\$/g,"$$$$"),ye.replace(new RegExp(L,"g"),p+"$1")}function M(ye,L){if(typeof ye=="boolean")return!ye;for(var p in ye)if(L[p])return!0}function P(ye,L,p){if(typeof ye=="boolean")return!ye&&p!="not";for(var y in ye)if(y!=p&&L[y])return!0}function I(ye,L){if(typeof ye!="boolean"){for(var p in ye)if(!L[p])return p}}function j(ye){return"'"+A(ye)+"'"}function B(ye,L,p,y){var S=p?"'/' + "+L+(y?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):y?"'[' + "+L+" + ']'":"'[\\'' + "+L+" + '\\']'";return re(ye,S)}function F(ye,L,p){var y=j(p?"/"+le(L):w(L));return re(ye,y)}var N=/^\/(?:[^~]|~0|~1)*$/,ee=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Z(ye,L,p){var y,S,c,m;if(ye==="")return"rootData";if(ye[0]=="/"){if(!N.test(ye))throw new Error("Invalid JSON-pointer: "+ye);S=ye,c="rootData"}else{if(m=ye.match(ee),!m)throw new Error("Invalid JSON-pointer: "+ye);if(y=+m[1],S=m[2],S=="#"){if(y>=L)throw new Error("Cannot access property/index "+y+" levels up, current level is "+L);return p[L-y]}if(y>L)throw new Error("Cannot access data "+y+" levels up, current level is "+L);if(c="data"+(L-y||""),!S)return c}for(var x=c,T=S.split("/"),b=0;b<T.length;b++){var d=T[b];d&&(c+=w(he(d)),x+=" && "+c)}return x}function re(ye,L){return ye=='""'?L:(ye+" + "+L).replace(/([^\\])' \+ '/g,"$1")}function fe(ye){return he(decodeURIComponent(ye))}function V(ye){return encodeURIComponent(le(ye))}function le(ye){return ye.replace(/~/g,"~0").replace(/\//g,"~1")}function he(ye){return ye.replace(/~1/g,"/").replace(/~0/g,"~")}return util}var schema_obj,hasRequiredSchema_obj;function requireSchema_obj(){if(hasRequiredSchema_obj)return schema_obj;hasRequiredSchema_obj=1;var n=requireUtil();schema_obj=e;function e(o){n.copy(o,this)}return schema_obj}var jsonSchemaTraverse={exports:{}},hasRequiredJsonSchemaTraverse;function requireJsonSchemaTraverse(){if(hasRequiredJsonSchemaTraverse)return jsonSchemaTraverse.exports;hasRequiredJsonSchemaTraverse=1;var n=jsonSchemaTraverse.exports=function(l,t,u){typeof t=="function"&&(u=t,t={}),u=t.cb||u;var h=typeof u=="function"?u:u.pre||function(){},v=u.post||function(){};e(t,h,v,l,"",l)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(l,t,u,h,v,w,A,E,C,M){if(h&&typeof h=="object"&&!Array.isArray(h)){t(h,v,w,A,E,C,M);for(var P in h){var I=h[P];if(Array.isArray(I)){if(P in n.arrayKeywords)for(var j=0;j<I.length;j++)e(l,t,u,I[j],v+"/"+P+"/"+j,w,v,P,h,j)}else if(P in n.propsKeywords){if(I&&typeof I=="object")for(var B in I)e(l,t,u,I[B],v+"/"+P+"/"+o(B),w,v,P,h,B)}else(P in n.keywords||l.allKeys&&!(P in n.skipKeywords))&&e(l,t,u,I,v+"/"+P,w,v,P,h)}u(h,v,w,A,E,C,M)}}function o(l){return l.replace(/~/g,"~0").replace(/\//g,"~1")}return jsonSchemaTraverse.exports}var resolve_1,hasRequiredResolve;function requireResolve(){if(hasRequiredResolve)return resolve_1;hasRequiredResolve=1;var n=requireUri_all(),e=requireFastDeepEqual(),o=requireUtil(),l=requireSchema_obj(),t=requireJsonSchemaTraverse();resolve_1=u,u.normalizeId=F,u.fullPath=I,u.url=N,u.ids=ee,u.inlineRef=C,u.schema=h;function u(Z,re,fe){var V=this._refs[fe];if(typeof V=="string")if(this._refs[V])V=this._refs[V];else return u.call(this,Z,re,V);if(V=V||this._schemas[fe],V instanceof l)return C(V.schema,this._opts.inlineRefs)?V.schema:V.validate||this._compile(V);var le=h.call(this,re,fe),he,ye,L;return le&&(he=le.schema,re=le.root,L=le.baseId),he instanceof l?ye=he.validate||Z.call(this,he.schema,re,void 0,L):he!==void 0&&(ye=C(he,this._opts.inlineRefs)?he:Z.call(this,he,re,void 0,L)),ye}function h(Z,re){var fe=n.parse(re),V=j(fe),le=I(this._getId(Z.schema));if(Object.keys(Z.schema).length===0||V!==le){var he=F(V),ye=this._refs[he];if(typeof ye=="string")return v.call(this,Z,ye,fe);if(ye instanceof l)ye.validate||this._compile(ye),Z=ye;else if(ye=this._schemas[he],ye instanceof l){if(ye.validate||this._compile(ye),he==F(re))return{schema:ye,root:Z,baseId:le};Z=ye}else return;if(!Z.schema)return;le=I(this._getId(Z.schema))}return A.call(this,fe,le,Z.schema,Z)}function v(Z,re,fe){var V=h.call(this,Z,re);if(V){var le=V.schema,he=V.baseId;Z=V.root;var ye=this._getId(le);return ye&&(he=N(he,ye)),A.call(this,fe,he,le,Z)}}var w=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function A(Z,re,fe,V){if(Z.fragment=Z.fragment||"",Z.fragment.slice(0,1)=="/"){for(var le=Z.fragment.split("/"),he=1;he<le.length;he++){var ye=le[he];if(ye){if(ye=o.unescapeFragment(ye),fe=fe[ye],fe===void 0)break;var L;if(!w[ye]&&(L=this._getId(fe),L&&(re=N(re,L)),fe.$ref)){var p=N(re,fe.$ref),y=h.call(this,V,p);y&&(fe=y.schema,V=y.root,re=y.baseId)}}}if(fe!==void 0&&fe!==V.schema)return{schema:fe,root:V,baseId:re}}}var E=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function C(Z,re){if(re===!1)return!1;if(re===void 0||re===!0)return M(Z);if(re)return P(Z)<=re}function M(Z){var re;if(Array.isArray(Z)){for(var fe=0;fe<Z.length;fe++)if(re=Z[fe],typeof re=="object"&&!M(re))return!1}else for(var V in Z)if(V=="$ref"||(re=Z[V],typeof re=="object"&&!M(re)))return!1;return!0}function P(Z){var re=0,fe;if(Array.isArray(Z)){for(var V=0;V<Z.length;V++)if(fe=Z[V],typeof fe=="object"&&(re+=P(fe)),re==1/0)return 1/0}else for(var le in Z){if(le=="$ref")return 1/0;if(E[le])re++;else if(fe=Z[le],typeof fe=="object"&&(re+=P(fe)+1),re==1/0)return 1/0}return re}function I(Z,re){re!==!1&&(Z=F(Z));var fe=n.parse(Z);return j(fe)}function j(Z){return n.serialize(Z).split("#")[0]+"#"}var B=/#\/?$/;function F(Z){return Z?Z.replace(B,""):""}function N(Z,re){return re=F(re),n.resolve(Z,re)}function ee(Z){var re=F(this._getId(Z)),fe={"":re},V={"":I(re,!1)},le={},he=this;return t(Z,{allKeys:!0},function(ye,L,p,y,S,c,m){if(L!==""){var x=he._getId(ye),T=fe[y],b=V[y]+"/"+S;if(m!==void 0&&(b+="/"+(typeof m=="number"?m:o.escapeFragment(m))),typeof x=="string"){x=T=F(T?n.resolve(T,x):x);var d=he._refs[x];if(typeof d=="string"&&(d=he._refs[d]),d&&d.schema){if(!e(ye,d.schema))throw new Error('id "'+x+'" resolves to more than one schema')}else if(x!=F(b))if(x[0]=="#"){if(le[x]&&!e(ye,le[x]))throw new Error('id "'+x+'" resolves to more than one schema');le[x]=ye}else he._refs[x]=b}fe[L]=T,V[L]=b}}),le}return resolve_1}var error_classes,hasRequiredError_classes;function requireError_classes(){if(hasRequiredError_classes)return error_classes;hasRequiredError_classes=1;var n=requireResolve();error_classes={Validation:l(e),MissingRef:l(o)};function e(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}o.message=function(t,u){return"can't resolve reference "+u+" from id "+t};function o(t,u,h){this.message=h||o.message(t,u),this.missingRef=n.url(t,u),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function l(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}return error_classes}var fastJsonStableStringify,hasRequiredFastJsonStableStringify;function requireFastJsonStableStringify(){return hasRequiredFastJsonStableStringify||(hasRequiredFastJsonStableStringify=1,fastJsonStableStringify=function(n,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var o=typeof e.cycles=="boolean"?e.cycles:!1,l=e.cmp&&function(u){return function(h){return function(v,w){var A={key:v,value:h[v]},E={key:w,value:h[w]};return u(A,E)}}}(e.cmp),t=[];return function u(h){if(h&&h.toJSON&&typeof h.toJSON=="function"&&(h=h.toJSON()),h!==void 0){if(typeof h=="number")return isFinite(h)?""+h:"null";if(typeof h!="object")return JSON.stringify(h);var v,w;if(Array.isArray(h)){for(w="[",v=0;v<h.length;v++)v&&(w+=","),w+=u(h[v])||"null";return w+"]"}if(h===null)return"null";if(t.indexOf(h)!==-1){if(o)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var A=t.push(h)-1,E=Object.keys(h).sort(l&&l(h));for(w="",v=0;v<E.length;v++){var C=E[v],M=u(h[C]);M&&(w&&(w+=","),w+=JSON.stringify(C)+":"+M)}return t.splice(A,1),"{"+w+"}"}}(n)}),fastJsonStableStringify}var validate,hasRequiredValidate;function requireValidate(){return hasRequiredValidate||(hasRequiredValidate=1,validate=function(e,o,l){var t="",u=e.schema.$async===!0,h=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),v=e.self._getId(e.schema);if(e.opts.strictKeywords){var w=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(w){var A="unknown keyword: "+w;if(e.opts.strictKeywords==="log")e.logger.warn(A);else throw new Error(A)}}if(e.isTop&&(t+=" var validate = ",u&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",v&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" "+("/*# sourceURL="+v+" */")+" ")),typeof e.schema=="boolean"||!(h||e.schema.$ref)){var o="false schema",E=e.level,C=e.dataLevel,M=e.schema[o],P=e.schemaPath+e.util.getProperty(o),I=e.errSchemaPath+"/"+o,re=!e.opts.allErrors,le,j="data"+(C||""),Z="valid"+E;if(e.schema===!1){e.isTop?re=!0:t+=" var "+Z+" = false; ";var B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(le||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(I)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+j+" "),t+=" } "):t+=" {} ";var F=t;t=B.pop(),!e.compositeRule&&re?e.async?t+=" throw new ValidationError(["+F+"]); ":t+=" validate.errors = ["+F+"]; return false; ":t+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?u?t+=" return data; ":t+=" validate.errors = null; return true; ":t+=" var "+Z+" = true; ";return e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var N=e.isTop,E=e.level=0,C=e.dataLevel=0,j="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var ee="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(ee);else throw new Error(ee)}t+=" var vErrors = null; ",t+=" var errors = 0;     ",t+=" if (rootData === undefined) rootData = data; "}else{var E=e.level,C=e.dataLevel,j="data"+(C||"");if(v&&(e.baseId=e.resolve.url(e.baseId,v)),u&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+E+" = errors;"}var Z="valid"+E,re=!e.opts.allErrors,fe="",V="",le,he=e.schema.type,ye=Array.isArray(he);if(he&&e.opts.nullable&&e.schema.nullable===!0&&(ye?he.indexOf("null")==-1&&(he=he.concat("null")):he!="null"&&(he=[he,"null"],ye=!0)),ye&&he.length==1&&(he=he[0],ye=!1),e.schema.$ref&&h){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(h=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),he){if(e.opts.coerceTypes)var L=e.util.coerceToTypes(e.opts.coerceTypes,he);var p=e.RULES.types[he];if(L||ye||p===!0||p&&!Je(p)){var P=e.schemaPath+".type",I=e.errSchemaPath+"/type",P=e.schemaPath+".type",I=e.errSchemaPath+"/type",y=ye?"checkDataTypes":"checkDataType";if(t+=" if ("+e.util[y](he,j,e.opts.strictNumbers,!0)+") { ",L){var S="dataType"+E,c="coerced"+E;t+=" var "+S+" = typeof "+j+"; var "+c+" = undefined; ",e.opts.coerceTypes=="array"&&(t+=" if ("+S+" == 'object' && Array.isArray("+j+") && "+j+".length == 1) { "+j+" = "+j+"[0]; "+S+" = typeof "+j+"; if ("+e.util.checkDataType(e.schema.type,j,e.opts.strictNumbers)+") "+c+" = "+j+"; } "),t+=" if ("+c+" !== undefined) ; ";var m=L;if(m)for(var x,T=-1,b=m.length-1;T<b;)x=m[T+=1],x=="string"?t+=" else if ("+S+" == 'number' || "+S+" == 'boolean') "+c+" = '' + "+j+"; else if ("+j+" === null) "+c+" = ''; ":x=="number"||x=="integer"?(t+=" else if ("+S+" == 'boolean' || "+j+" === null || ("+S+" == 'string' && "+j+" && "+j+" == +"+j+" ",x=="integer"&&(t+=" && !("+j+" % 1)"),t+=")) "+c+" = +"+j+"; "):x=="boolean"?t+=" else if ("+j+" === 'false' || "+j+" === 0 || "+j+" === null) "+c+" = false; else if ("+j+" === 'true' || "+j+" === 1) "+c+" = true; ":x=="null"?t+=" else if ("+j+" === '' || "+j+" === 0 || "+j+" === false) "+c+" = null; ":e.opts.coerceTypes=="array"&&x=="array"&&(t+=" else if ("+S+" == 'string' || "+S+" == 'number' || "+S+" == 'boolean' || "+j+" == null) "+c+" = ["+j+"]; ");t+=" else {   ";var B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(le||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(I)+" , params: { type: '",ye?t+=""+he.join(","):t+=""+he,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",ye?t+=""+he.join(","):t+=""+he,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+P+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+j+" "),t+=" } "):t+=" {} ";var F=t;t=B.pop(),!e.compositeRule&&re?e.async?t+=" throw new ValidationError(["+F+"]); ":t+=" validate.errors = ["+F+"]; return false; ":t+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } if ("+c+" !== undefined) {  ";var d=C?"data"+(C-1||""):"parentData",k=C?e.dataPathArr[C]:"parentDataProperty";t+=" "+j+" = "+c+"; ",C||(t+="if ("+d+" !== undefined)"),t+=" "+d+"["+k+"] = "+c+"; } "}else{var B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(le||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(I)+" , params: { type: '",ye?t+=""+he.join(","):t+=""+he,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",ye?t+=""+he.join(","):t+=""+he,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+P+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+j+" "),t+=" } "):t+=" {} ";var F=t;t=B.pop(),!e.compositeRule&&re?e.async?t+=" throw new ValidationError(["+F+"]); ":t+=" validate.errors = ["+F+"]; return false; ":t+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } "}}if(e.schema.$ref&&!h)t+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",re&&(t+=" } if (errors === ",N?t+="0":t+="errs_"+E,t+=") { ",V+="}");else{var D=e.RULES;if(D){for(var p,O=-1,Q=D.length-1;O<Q;)if(p=D[O+=1],Je(p)){if(p.type&&(t+=" if ("+e.util.checkDataType(p.type,j,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(p.type=="object"&&e.schema.properties){var M=e.schema.properties,J=Object.keys(M),X=J;if(X)for(var U,z=-1,ie=X.length-1;z<ie;){U=X[z+=1];var de=M[U];if(de.default!==void 0){var me=j+e.util.getProperty(U);if(e.compositeRule){if(e.opts.strictDefaults){var ee="default is ignored for: "+me;if(e.opts.strictDefaults==="log")e.logger.warn(ee);else throw new Error(ee)}}else t+=" if ("+me+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+me+" === null || "+me+" === '' "),t+=" ) "+me+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(de.default)+" ":t+=" "+JSON.stringify(de.default)+" ",t+="; "}}}else if(p.type=="array"&&Array.isArray(e.schema.items)){var pe=e.schema.items;if(pe){for(var de,T=-1,qe=pe.length-1;T<qe;)if(de=pe[T+=1],de.default!==void 0){var me=j+"["+T+"]";if(e.compositeRule){if(e.opts.strictDefaults){var ee="default is ignored for: "+me;if(e.opts.strictDefaults==="log")e.logger.warn(ee);else throw new Error(ee)}}else t+=" if ("+me+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+me+" === null || "+me+" === '' "),t+=" ) "+me+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(de.default)+" ":t+=" "+JSON.stringify(de.default)+" ",t+="; "}}}}var mt=p.rules;if(mt){for(var st,dt=-1,Tt=mt.length-1;dt<Tt;)if(st=mt[dt+=1],ht(st)){var lt=st.code(e,st.keyword,p.type);lt&&(t+=" "+lt+" ",re&&(fe+="}"))}}if(re&&(t+=" "+fe+" ",fe=""),p.type&&(t+=" } ",he&&he===p.type&&!L)){t+=" else { ";var P=e.schemaPath+".type",I=e.errSchemaPath+"/type",B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(le||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(I)+" , params: { type: '",ye?t+=""+he.join(","):t+=""+he,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",ye?t+=""+he.join(","):t+=""+he,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+P+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+j+" "),t+=" } "):t+=" {} ";var F=t;t=B.pop(),!e.compositeRule&&re?e.async?t+=" throw new ValidationError(["+F+"]); ":t+=" validate.errors = ["+F+"]; return false; ":t+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "}re&&(t+=" if (errors === ",N?t+="0":t+="errs_"+E,t+=") { ",V+="}")}}}re&&(t+=" "+V+" "),N?(u?(t+=" if (errors === 0) return data;           ",t+=" else throw new ValidationError(vErrors); "):(t+=" validate.errors = vErrors; ",t+=" return errors === 0;       "),t+=" }; return validate;"):t+=" var "+Z+" = errors === errs_"+E+";";function Je(bt){for(var jt=bt.rules,Ge=0;Ge<jt.length;Ge++)if(ht(jt[Ge]))return!0}function ht(bt){return e.schema[bt.keyword]!==void 0||bt.implements&&at(bt)}function at(bt){for(var jt=bt.implements,Ge=0;Ge<jt.length;Ge++)if(e.schema[jt[Ge]]!==void 0)return!0}return t}),validate}var compile_1,hasRequiredCompile;function requireCompile(){if(hasRequiredCompile)return compile_1;hasRequiredCompile=1;var n=requireResolve(),e=requireUtil(),o=requireError_classes(),l=requireFastJsonStableStringify(),t=requireValidate(),u=e.ucs2length,h=requireFastDeepEqual(),v=o.Validation;compile_1=w;function w(F,N,ee,Z){var re=this,fe=this._opts,V=[void 0],le={},he=[],ye={},L=[],p={},y=[];N=N||{schema:F,refVal:V,refs:le};var S=A.call(this,F,N,Z),c=this._compilations[S.index];if(S.compiling)return c.callValidate=d;var m=this._formats,x=this.RULES;try{var T=k(F,N,ee,Z);c.validate=T;var b=c.callValidate;return b&&(b.schema=T.schema,b.errors=null,b.refs=T.refs,b.refVal=T.refVal,b.root=T.root,b.$async=T.$async,fe.sourceCode&&(b.source=T.source)),T}finally{E.call(this,F,N,Z)}function d(){var de=c.validate,me=de.apply(this,arguments);return d.errors=de.errors,me}function k(de,me,pe,qe){var mt=!me||me&&me.schema==de;if(me.schema!=N.schema)return w.call(re,de,me,pe,qe);var st=de.$async===!0,dt=t({isTop:!0,schema:de,isRoot:mt,baseId:qe,root:me,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:x,validate:t,util:e,resolve:n,resolveRef:D,usePattern:U,useDefault:z,useCustomRule:ie,opts:fe,formats:m,logger:re.logger,self:re});dt=B(V,I)+B(he,M)+B(L,P)+B(y,j)+dt,fe.processCode&&(dt=fe.processCode(dt,de));var Tt;try{var lt=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",dt);Tt=lt(re,x,m,N,V,L,y,h,u,v),V[0]=Tt}catch(Je){throw re.logger.error("Error compiling schema, function code:",dt),Je}return Tt.schema=de,Tt.errors=null,Tt.refs=le,Tt.refVal=V,Tt.root=mt?Tt:me,st&&(Tt.$async=!0),fe.sourceCode===!0&&(Tt.source={code:dt,patterns:he,defaults:L}),Tt}function D(de,me,pe){me=n.url(de,me);var qe=le[me],mt,st;if(qe!==void 0)return mt=V[qe],st="refVal["+qe+"]",X(mt,st);if(!pe&&N.refs){var dt=N.refs[me];if(dt!==void 0)return mt=N.refVal[dt],st=O(me,mt),X(mt,st)}st=O(me);var Tt=n.call(re,k,N,me);if(Tt===void 0){var lt=ee&&ee[me];lt&&(Tt=n.inlineRef(lt,fe.inlineRefs)?lt:w.call(re,lt,N,ee,de))}if(Tt===void 0)Q(me);else return J(me,Tt),X(Tt,st)}function O(de,me){var pe=V.length;return V[pe]=me,le[de]=pe,"refVal"+pe}function Q(de){delete le[de]}function J(de,me){var pe=le[de];V[pe]=me}function X(de,me){return typeof de=="object"||typeof de=="boolean"?{code:me,schema:de,inline:!0}:{code:me,$async:de&&!!de.$async}}function U(de){var me=ye[de];return me===void 0&&(me=ye[de]=he.length,he[me]=de),"pattern"+me}function z(de){switch(typeof de){case"boolean":case"number":return""+de;case"string":return e.toQuotedString(de);case"object":if(de===null)return"null";var me=l(de),pe=p[me];return pe===void 0&&(pe=p[me]=L.length,L[pe]=de),"default"+pe}}function ie(de,me,pe,qe){if(re._opts.validateSchema!==!1){var mt=de.definition.dependencies;if(mt&&!mt.every(function(jt){return Object.prototype.hasOwnProperty.call(pe,jt)}))throw new Error("parent schema must have all required keywords: "+mt.join(","));var st=de.definition.validateSchema;if(st){var dt=st(me);if(!dt){var Tt="keyword schema is invalid: "+re.errorsText(st.errors);if(re._opts.validateSchema=="log")re.logger.error(Tt);else throw new Error(Tt)}}}var lt=de.definition.compile,Je=de.definition.inline,ht=de.definition.macro,at;if(lt)at=lt.call(re,me,pe,qe);else if(ht)at=ht.call(re,me,pe,qe),fe.validateSchema!==!1&&re.validateSchema(at,!0);else if(Je)at=Je.call(re,qe,de.keyword,me,pe);else if(at=de.definition.validate,!at)return;if(at===void 0)throw new Error('custom keyword "'+de.keyword+'"failed to compile');var bt=y.length;return y[bt]=at,{code:"customRule"+bt,validate:at}}}function A(F,N,ee){var Z=C.call(this,F,N,ee);return Z>=0?{index:Z,compiling:!0}:(Z=this._compilations.length,this._compilations[Z]={schema:F,root:N,baseId:ee},{index:Z,compiling:!1})}function E(F,N,ee){var Z=C.call(this,F,N,ee);Z>=0&&this._compilations.splice(Z,1)}function C(F,N,ee){for(var Z=0;Z<this._compilations.length;Z++){var re=this._compilations[Z];if(re.schema==F&&re.root==N&&re.baseId==ee)return Z}return-1}function M(F,N){return"var pattern"+F+" = new RegExp("+e.toQuotedString(N[F])+");"}function P(F){return"var default"+F+" = defaults["+F+"];"}function I(F,N){return N[F]===void 0?"":"var refVal"+F+" = refVal["+F+"];"}function j(F){return"var customRule"+F+" = customRules["+F+"];"}function B(F,N){if(!F.length)return"";for(var ee="",Z=0;Z<F.length;Z++)ee+=N(Z,F);return ee}return compile_1}var cache={exports:{}},hasRequiredCache;function requireCache(){if(hasRequiredCache)return cache.exports;hasRequiredCache=1;var n=cache.exports=function(){this._cache={}};return n.prototype.put=function(o,l){this._cache[o]=l},n.prototype.get=function(o){return this._cache[o]},n.prototype.del=function(o){delete this._cache[o]},n.prototype.clear=function(){this._cache={}},cache.exports}var formats_1,hasRequiredFormats;function requireFormats(){if(hasRequiredFormats)return formats_1;hasRequiredFormats=1;var n=requireUtil(),e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],l=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,t=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,h=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,v=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,w=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,A=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,E=/^(?:\/(?:[^~/]|~0|~1)*)*$/,C=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,M=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;formats_1=P;function P(V){return V=V=="full"?"full":"fast",n.copy(P[V])}P.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":v,url:w,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:t,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:fe,uuid:A,"json-pointer":E,"json-pointer-uri-fragment":C,"relative-json-pointer":M},P.full={date:j,time:B,"date-time":N,uri:Z,"uri-reference":h,"uri-template":v,url:w,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:t,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:fe,uuid:A,"json-pointer":E,"json-pointer-uri-fragment":C,"relative-json-pointer":M};function I(V){return V%4===0&&(V%100!==0||V%400===0)}function j(V){var le=V.match(e);if(!le)return!1;var he=+le[1],ye=+le[2],L=+le[3];return ye>=1&&ye<=12&&L>=1&&L<=(ye==2&&I(he)?29:o[ye])}function B(V,le){var he=V.match(l);if(!he)return!1;var ye=he[1],L=he[2],p=he[3],y=he[5];return(ye<=23&&L<=59&&p<=59||ye==23&&L==59&&p==60)&&(!le||y)}var F=/t|\s/i;function N(V){var le=V.split(F);return le.length==2&&j(le[0])&&B(le[1],!0)}var ee=/\/|:/;function Z(V){return ee.test(V)&&u.test(V)}var re=/[^\\]\\Z/;function fe(V){if(re.test(V))return!1;try{return new RegExp(V),!0}catch{return!1}}return formats_1}var ref,hasRequiredRef;function requireRef(){return hasRequiredRef||(hasRequiredRef=1,ref=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.errSchemaPath+"/"+o,A=!e.opts.allErrors,E="data"+(h||""),C="valid"+u,M,P;if(v=="#"||v=="#/")e.isRoot?(M=e.async,P="validate"):(M=e.root.schema.$async===!0,P="root.refVal[0]");else{var I=e.resolveRef(e.baseId,v,e.isRoot);if(I===void 0){var j=e.MissingRefError.message(e.baseId,v);if(e.opts.missingRefs=="fail"){e.logger.error(j);var B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(w)+" , params: { ref: '"+e.util.escapeQuotes(v)+"' } ",e.opts.messages!==!1&&(t+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(v)+"' "),e.opts.verbose&&(t+=" , schema: "+e.util.toQuotedString(v)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+E+" "),t+=" } "):t+=" {} ";var F=t;t=B.pop(),!e.compositeRule&&A?e.async?t+=" throw new ValidationError(["+F+"]); ":t+=" validate.errors = ["+F+"]; return false; ":t+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",A&&(t+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(j),A&&(t+=" if (true) { ");else throw new e.MissingRefError(e.baseId,v,j)}else if(I.inline){var N=e.util.copy(e);N.level++;var ee="valid"+N.level;N.schema=I.schema,N.schemaPath="",N.errSchemaPath=v;var Z=e.validate(N).replace(/validate\.schema/g,I.code);t+=" "+Z+" ",A&&(t+=" if ("+ee+") { ")}else M=I.$async===!0||e.async&&I.$async!==!1,P=I.code}if(P){var B=B||[];B.push(t),t="",e.opts.passContext?t+=" "+P+".call(this, ":t+=" "+P+"( ",t+=" "+E+", (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var re=h?"data"+(h-1||""):"parentData",fe=h?e.dataPathArr[h]:"parentDataProperty";t+=" , "+re+" , "+fe+", rootData)  ";var V=t;if(t=B.pop(),M){if(!e.async)throw new Error("async schema referenced by sync schema");A&&(t+=" var "+C+"; "),t+=" try { await "+V+"; ",A&&(t+=" "+C+" = true; "),t+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",A&&(t+=" "+C+" = false; "),t+=" } ",A&&(t+=" if ("+C+") { ")}else t+=" if (!"+V+") { if (vErrors === null) vErrors = "+P+".errors; else vErrors = vErrors.concat("+P+".errors); errors = vErrors.length; } ",A&&(t+=" else { ")}return t}),ref}var allOf,hasRequiredAllOf;function requireAllOf(){return hasRequiredAllOf||(hasRequiredAllOf=1,allOf=function(e,o,l){var t=" ",u=e.schema[o],h=e.schemaPath+e.util.getProperty(o),v=e.errSchemaPath+"/"+o,w=!e.opts.allErrors,A=e.util.copy(e),E="";A.level++;var C="valid"+A.level,M=A.baseId,P=!0,I=u;if(I)for(var j,B=-1,F=I.length-1;B<F;)j=I[B+=1],(e.opts.strictKeywords?typeof j=="object"&&Object.keys(j).length>0||j===!1:e.util.schemaHasRules(j,e.RULES.all))&&(P=!1,A.schema=j,A.schemaPath=h+"["+B+"]",A.errSchemaPath=v+"/"+B,t+="  "+e.validate(A)+" ",A.baseId=M,w&&(t+=" if ("+C+") { ",E+="}"));return w&&(P?t+=" if (true) { ":t+=" "+E.slice(0,-1)+" "),t}),allOf}var anyOf,hasRequiredAnyOf;function requireAnyOf(){return hasRequiredAnyOf||(hasRequiredAnyOf=1,anyOf=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="valid"+u,P="errs__"+u,I=e.util.copy(e),j="";I.level++;var B="valid"+I.level,F=v.every(function(le){return e.opts.strictKeywords?typeof le=="object"&&Object.keys(le).length>0||le===!1:e.util.schemaHasRules(le,e.RULES.all)});if(F){var N=I.baseId;t+=" var "+P+" = errors; var "+M+" = false;  ";var ee=e.compositeRule;e.compositeRule=I.compositeRule=!0;var Z=v;if(Z)for(var re,fe=-1,V=Z.length-1;fe<V;)re=Z[fe+=1],I.schema=re,I.schemaPath=w+"["+fe+"]",I.errSchemaPath=A+"/"+fe,t+="  "+e.validate(I)+" ",I.baseId=N,t+=" "+M+" = "+M+" || "+B+"; if (!"+M+") { ",j+="}";e.compositeRule=I.compositeRule=ee,t+=" "+j+" if (!"+M+") {   var err =   ",e.createErrors!==!1?(t+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&E&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } else {  errors = "+P+"; if (vErrors !== null) { if ("+P+") vErrors.length = "+P+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else E&&(t+=" if (true) { ");return t}),anyOf}var comment,hasRequiredComment;function requireComment(){return hasRequiredComment||(hasRequiredComment=1,comment=function(e,o,l){var t=" ",u=e.schema[o],h=e.errSchemaPath+"/"+o;e.opts.allErrors;var v=e.util.toQuotedString(u);return e.opts.$comment===!0?t+=" console.log("+v+");":typeof e.opts.$comment=="function"&&(t+=" self._opts.$comment("+v+", "+e.util.toQuotedString(h)+", validate.root.schema);"),t}),comment}var _const,hasRequired_const;function require_const(){return hasRequired_const||(hasRequired_const=1,_const=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="valid"+u,P=e.opts.$data&&v&&v.$data;P&&(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; "),P||(t+=" var schema"+u+" = validate.schema"+w+";"),t+="var "+M+" = equal("+C+", schema"+u+"); if (!"+M+") {   ";var I=I||[];I.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { allowedValue: schema"+u+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to constant' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var j=t;return t=I.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",E&&(t+=" else { "),t}),_const}var contains,hasRequiredContains;function requireContains(){return hasRequiredContains||(hasRequiredContains=1,contains=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="valid"+u,P="errs__"+u,I=e.util.copy(e),j="";I.level++;var B="valid"+I.level,F="i"+u,N=I.dataLevel=e.dataLevel+1,ee="data"+N,Z=e.baseId,re=e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all);if(t+="var "+P+" = errors;var "+M+";",re){var fe=e.compositeRule;e.compositeRule=I.compositeRule=!0,I.schema=v,I.schemaPath=w,I.errSchemaPath=A,t+=" var "+B+" = false; for (var "+F+" = 0; "+F+" < "+C+".length; "+F+"++) { ",I.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,!0);var V=C+"["+F+"]";I.dataPathArr[N]=F;var le=e.validate(I);I.baseId=Z,e.util.varOccurences(le,ee)<2?t+=" "+e.util.varReplace(le,ee,V)+" ":t+=" var "+ee+" = "+V+"; "+le+" ",t+=" if ("+B+") break; }  ",e.compositeRule=I.compositeRule=fe,t+=" "+j+" if (!"+B+") {"}else t+=" if ("+C+".length == 0) {";var he=he||[];he.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should contain a valid item' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var ye=t;return t=he.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+ye+"]); ":t+=" validate.errors = ["+ye+"]; return false; ":t+=" var err = "+ye+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",re&&(t+="  errors = "+P+"; if (vErrors !== null) { if ("+P+") vErrors.length = "+P+"; else vErrors = null; } "),e.opts.allErrors&&(t+=" } "),t}),contains}var dependencies,hasRequiredDependencies;function requireDependencies(){return hasRequiredDependencies||(hasRequiredDependencies=1,dependencies=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="errs__"+u,P=e.util.copy(e),I="";P.level++;var j="valid"+P.level,B={},F={},N=e.opts.ownProperties;for(fe in v)if(fe!="__proto__"){var ee=v[fe],Z=Array.isArray(ee)?F:B;Z[fe]=ee}t+="var "+M+" = errors;";var re=e.errorPath;t+="var missing"+u+";";for(var fe in F)if(Z=F[fe],Z.length){if(t+=" if ( "+C+e.util.getProperty(fe)+" !== undefined ",N&&(t+=" && Object.prototype.hasOwnProperty.call("+C+", '"+e.util.escapeQuotes(fe)+"') "),E){t+=" && ( ";var V=Z;if(V)for(var le,he=-1,ye=V.length-1;he<ye;){le=V[he+=1],he&&(t+=" || ");var L=e.util.getProperty(le),p=C+L;t+=" ( ( "+p+" === undefined ",N&&(t+=" || ! Object.prototype.hasOwnProperty.call("+C+", '"+e.util.escapeQuotes(le)+"') "),t+=") && (missing"+u+" = "+e.util.toQuotedString(e.opts.jsonPointers?le:L)+") ) "}t+=")) {  ";var y="missing"+u,S="' + "+y+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(re,y,!0):re+" + "+y);var c=c||[];c.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { property: '"+e.util.escapeQuotes(fe)+"', missingProperty: '"+S+"', depsCount: "+Z.length+", deps: '"+e.util.escapeQuotes(Z.length==1?Z[0]:Z.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",Z.length==1?t+="property "+e.util.escapeQuotes(Z[0]):t+="properties "+e.util.escapeQuotes(Z.join(", ")),t+=" when property "+e.util.escapeQuotes(fe)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var m=t;t=c.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+m+"]); ":t+=" validate.errors = ["+m+"]; return false; ":t+=" var err = "+m+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{t+=" ) { ";var x=Z;if(x)for(var le,T=-1,b=x.length-1;T<b;){le=x[T+=1];var L=e.util.getProperty(le),S=e.util.escapeQuotes(le),p=C+L;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(re,le,e.opts.jsonPointers)),t+=" if ( "+p+" === undefined ",N&&(t+=" || ! Object.prototype.hasOwnProperty.call("+C+", '"+e.util.escapeQuotes(le)+"') "),t+=") {  var err =   ",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { property: '"+e.util.escapeQuotes(fe)+"', missingProperty: '"+S+"', depsCount: "+Z.length+", deps: '"+e.util.escapeQuotes(Z.length==1?Z[0]:Z.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",Z.length==1?t+="property "+e.util.escapeQuotes(Z[0]):t+="properties "+e.util.escapeQuotes(Z.join(", ")),t+=" when property "+e.util.escapeQuotes(fe)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t+=" }   ",E&&(I+="}",t+=" else { ")}e.errorPath=re;var d=P.baseId;for(var fe in B){var ee=B[fe];(e.opts.strictKeywords?typeof ee=="object"&&Object.keys(ee).length>0||ee===!1:e.util.schemaHasRules(ee,e.RULES.all))&&(t+=" "+j+" = true; if ( "+C+e.util.getProperty(fe)+" !== undefined ",N&&(t+=" && Object.prototype.hasOwnProperty.call("+C+", '"+e.util.escapeQuotes(fe)+"') "),t+=") { ",P.schema=ee,P.schemaPath=w+e.util.getProperty(fe),P.errSchemaPath=A+"/"+e.util.escapeFragment(fe),t+="  "+e.validate(P)+" ",P.baseId=d,t+=" }  ",E&&(t+=" if ("+j+") { ",I+="}"))}return E&&(t+="   "+I+" if ("+M+" == errors) {"),t}),dependencies}var _enum,hasRequired_enum;function require_enum(){return hasRequired_enum||(hasRequired_enum=1,_enum=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="valid"+u,P=e.opts.$data&&v&&v.$data;P&&(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ");var I="i"+u,j="schema"+u;P||(t+=" var "+j+" = validate.schema"+w+";"),t+="var "+M+";",P&&(t+=" if (schema"+u+" === undefined) "+M+" = true; else if (!Array.isArray(schema"+u+")) "+M+" = false; else {"),t+=""+M+" = false;for (var "+I+"=0; "+I+"<"+j+".length; "+I+"++) if (equal("+C+", "+j+"["+I+"])) { "+M+" = true; break; }",P&&(t+="  }  "),t+=" if (!"+M+") {   ";var B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { allowedValues: schema"+u+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var F=t;return t=B.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+F+"]); ":t+=" validate.errors = ["+F+"]; return false; ":t+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",E&&(t+=" else { "),t}),_enum}var format,hasRequiredFormat;function requireFormat(){return hasRequiredFormat||(hasRequiredFormat=1,format=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||"");if(e.opts.format===!1)return E&&(t+=" if (true) { "),t;var M=e.opts.$data&&v&&v.$data,P;M?(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ",P="schema"+u):P=v;var I=e.opts.unknownFormats,j=Array.isArray(I);if(M){var B="format"+u,F="isObject"+u,N="formatType"+u;t+=" var "+B+" = formats["+P+"]; var "+F+" = typeof "+B+" == 'object' && !("+B+" instanceof RegExp) && "+B+".validate; var "+N+" = "+F+" && "+B+".type || 'string'; if ("+F+") { ",e.async&&(t+=" var async"+u+" = "+B+".async; "),t+=" "+B+" = "+B+".validate; } if (  ",M&&(t+=" ("+P+" !== undefined && typeof "+P+" != 'string') || "),t+=" (",I!="ignore"&&(t+=" ("+P+" && !"+B+" ",j&&(t+=" && self._opts.unknownFormats.indexOf("+P+") == -1 "),t+=") || "),t+=" ("+B+" && "+N+" == '"+l+"' && !(typeof "+B+" == 'function' ? ",e.async?t+=" (async"+u+" ? await "+B+"("+C+") : "+B+"("+C+")) ":t+=" "+B+"("+C+") ",t+=" : "+B+".test("+C+"))))) {"}else{var B=e.formats[v];if(!B){if(I=="ignore")return e.logger.warn('unknown format "'+v+'" ignored in schema at path "'+e.errSchemaPath+'"'),E&&(t+=" if (true) { "),t;if(j&&I.indexOf(v)>=0)return E&&(t+=" if (true) { "),t;throw new Error('unknown format "'+v+'" is used in schema at path "'+e.errSchemaPath+'"')}var F=typeof B=="object"&&!(B instanceof RegExp)&&B.validate,N=F&&B.type||"string";if(F){var ee=B.async===!0;B=B.validate}if(N!=l)return E&&(t+=" if (true) { "),t;if(ee){if(!e.async)throw new Error("async format in sync schema");var Z="formats"+e.util.getProperty(v)+".validate";t+=" if (!(await "+Z+"("+C+"))) { "}else{t+=" if (! ";var Z="formats"+e.util.getProperty(v);F&&(Z+=".validate"),typeof B=="function"?t+=" "+Z+"("+C+") ":t+=" "+Z+".test("+C+") ",t+=") { "}}var re=re||[];re.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { format:  ",M?t+=""+P:t+=""+e.util.toQuotedString(v),t+="  } ",e.opts.messages!==!1&&(t+=` , message: 'should match format "`,M?t+="' + "+P+" + '":t+=""+e.util.escapeQuotes(v),t+=`"' `),e.opts.verbose&&(t+=" , schema:  ",M?t+="validate.schema"+w:t+=""+e.util.toQuotedString(v),t+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var fe=t;return t=re.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+fe+"]); ":t+=" validate.errors = ["+fe+"]; return false; ":t+=" var err = "+fe+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",E&&(t+=" else { "),t}),format}var _if,hasRequired_if;function require_if(){return hasRequired_if||(hasRequired_if=1,_if=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="valid"+u,P="errs__"+u,I=e.util.copy(e);I.level++;var j="valid"+I.level,B=e.schema.then,F=e.schema.else,N=B!==void 0&&(e.opts.strictKeywords?typeof B=="object"&&Object.keys(B).length>0||B===!1:e.util.schemaHasRules(B,e.RULES.all)),ee=F!==void 0&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all)),Z=I.baseId;if(N||ee){var re;I.createErrors=!1,I.schema=v,I.schemaPath=w,I.errSchemaPath=A,t+=" var "+P+" = errors; var "+M+" = true;  ";var fe=e.compositeRule;e.compositeRule=I.compositeRule=!0,t+="  "+e.validate(I)+" ",I.baseId=Z,I.createErrors=!0,t+="  errors = "+P+"; if (vErrors !== null) { if ("+P+") vErrors.length = "+P+"; else vErrors = null; }  ",e.compositeRule=I.compositeRule=fe,N?(t+=" if ("+j+") {  ",I.schema=e.schema.then,I.schemaPath=e.schemaPath+".then",I.errSchemaPath=e.errSchemaPath+"/then",t+="  "+e.validate(I)+" ",I.baseId=Z,t+=" "+M+" = "+j+"; ",N&&ee?(re="ifClause"+u,t+=" var "+re+" = 'then'; "):re="'then'",t+=" } ",ee&&(t+=" else { ")):t+=" if (!"+j+") { ",ee&&(I.schema=e.schema.else,I.schemaPath=e.schemaPath+".else",I.errSchemaPath=e.errSchemaPath+"/else",t+="  "+e.validate(I)+" ",I.baseId=Z,t+=" "+M+" = "+j+"; ",N&&ee?(re="ifClause"+u,t+=" var "+re+" = 'else'; "):re="'else'",t+=" } "),t+=" if (!"+M+") {   var err =   ",e.createErrors!==!1?(t+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { failingKeyword: "+re+" } ",e.opts.messages!==!1&&(t+=` , message: 'should match "' + `+re+` + '" schema' `),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&E&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" }   ",E&&(t+=" else { ")}else E&&(t+=" if (true) { ");return t}),_if}var items,hasRequiredItems;function requireItems(){return hasRequiredItems||(hasRequiredItems=1,items=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="valid"+u,P="errs__"+u,I=e.util.copy(e),j="";I.level++;var B="valid"+I.level,F="i"+u,N=I.dataLevel=e.dataLevel+1,ee="data"+N,Z=e.baseId;if(t+="var "+P+" = errors;var "+M+";",Array.isArray(v)){var re=e.schema.additionalItems;if(re===!1){t+=" "+M+" = "+C+".length <= "+v.length+"; ";var fe=A;A=e.errSchemaPath+"/additionalItems",t+="  if (!"+M+") {   ";var V=V||[];V.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { limit: "+v.length+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have more than "+v.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var le=t;t=V.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+le+"]); ":t+=" validate.errors = ["+le+"]; return false; ":t+=" var err = "+le+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",A=fe,E&&(j+="}",t+=" else { ")}var he=v;if(he){for(var ye,L=-1,p=he.length-1;L<p;)if(ye=he[L+=1],e.opts.strictKeywords?typeof ye=="object"&&Object.keys(ye).length>0||ye===!1:e.util.schemaHasRules(ye,e.RULES.all)){t+=" "+B+" = true; if ("+C+".length > "+L+") { ";var y=C+"["+L+"]";I.schema=ye,I.schemaPath=w+"["+L+"]",I.errSchemaPath=A+"/"+L,I.errorPath=e.util.getPathExpr(e.errorPath,L,e.opts.jsonPointers,!0),I.dataPathArr[N]=L;var S=e.validate(I);I.baseId=Z,e.util.varOccurences(S,ee)<2?t+=" "+e.util.varReplace(S,ee,y)+" ":t+=" var "+ee+" = "+y+"; "+S+" ",t+=" }  ",E&&(t+=" if ("+B+") { ",j+="}")}}if(typeof re=="object"&&(e.opts.strictKeywords?typeof re=="object"&&Object.keys(re).length>0||re===!1:e.util.schemaHasRules(re,e.RULES.all))){I.schema=re,I.schemaPath=e.schemaPath+".additionalItems",I.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+B+" = true; if ("+C+".length > "+v.length+") {  for (var "+F+" = "+v.length+"; "+F+" < "+C+".length; "+F+"++) { ",I.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,!0);var y=C+"["+F+"]";I.dataPathArr[N]=F;var S=e.validate(I);I.baseId=Z,e.util.varOccurences(S,ee)<2?t+=" "+e.util.varReplace(S,ee,y)+" ":t+=" var "+ee+" = "+y+"; "+S+" ",E&&(t+=" if (!"+B+") break; "),t+=" } }  ",E&&(t+=" if ("+B+") { ",j+="}")}}else if(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)){I.schema=v,I.schemaPath=w,I.errSchemaPath=A,t+="  for (var "+F+" = 0; "+F+" < "+C+".length; "+F+"++) { ",I.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,!0);var y=C+"["+F+"]";I.dataPathArr[N]=F;var S=e.validate(I);I.baseId=Z,e.util.varOccurences(S,ee)<2?t+=" "+e.util.varReplace(S,ee,y)+" ":t+=" var "+ee+" = "+y+"; "+S+" ",E&&(t+=" if (!"+B+") break; "),t+=" }"}return E&&(t+=" "+j+" if ("+P+" == errors) {"),t}),items}var _limit,hasRequired_limit;function require_limit(){return hasRequired_limit||(hasRequired_limit=1,_limit=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,Z,C="data"+(h||""),M=e.opts.$data&&v&&v.$data,P;M?(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ",P="schema"+u):P=v;var I=o=="maximum",j=I?"exclusiveMaximum":"exclusiveMinimum",B=e.schema[j],F=e.opts.$data&&B&&B.$data,N=I?"<":">",ee=I?">":"<",Z=void 0;if(!(M||typeof v=="number"||v===void 0))throw new Error(o+" must be number");if(!(F||B===void 0||typeof B=="number"||typeof B=="boolean"))throw new Error(j+" must be number or boolean");if(F){var re=e.util.getData(B.$data,h,e.dataPathArr),fe="exclusive"+u,V="exclType"+u,le="exclIsNumber"+u,he="op"+u,ye="' + "+he+" + '";t+=" var schemaExcl"+u+" = "+re+"; ",re="schemaExcl"+u,t+=" var "+fe+"; var "+V+" = typeof "+re+"; if ("+V+" != 'boolean' && "+V+" != 'undefined' && "+V+" != 'number') { ";var Z=j,L=L||[];L.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(Z||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: '"+j+" should be boolean' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var p=t;t=L.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+p+"]); ":t+=" validate.errors = ["+p+"]; return false; ":t+=" var err = "+p+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else if ( ",M&&(t+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),t+=" "+V+" == 'number' ? ( ("+fe+" = "+P+" === undefined || "+re+" "+N+"= "+P+") ? "+C+" "+ee+"= "+re+" : "+C+" "+ee+" "+P+" ) : ( ("+fe+" = "+re+" === true) ? "+C+" "+ee+"= "+P+" : "+C+" "+ee+" "+P+" ) || "+C+" !== "+C+") { var op"+u+" = "+fe+" ? '"+N+"' : '"+N+"='; ",v===void 0&&(Z=j,A=e.errSchemaPath+"/"+j,P=re,M=F)}else{var le=typeof B=="number",ye=N;if(le&&M){var he="'"+ye+"'";t+=" if ( ",M&&(t+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),t+=" ( "+P+" === undefined || "+B+" "+N+"= "+P+" ? "+C+" "+ee+"= "+B+" : "+C+" "+ee+" "+P+" ) || "+C+" !== "+C+") { "}else{le&&v===void 0?(fe=!0,Z=j,A=e.errSchemaPath+"/"+j,P=B,ee+="="):(le&&(P=Math[I?"min":"max"](B,v)),B===(le?P:!0)?(fe=!0,Z=j,A=e.errSchemaPath+"/"+j,ee+="="):(fe=!1,ye+="="));var he="'"+ye+"'";t+=" if ( ",M&&(t+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),t+=" "+C+" "+ee+" "+P+" || "+C+" !== "+C+") { "}}Z=Z||o;var L=L||[];L.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(Z||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { comparison: "+he+", limit: "+P+", exclusive: "+fe+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be "+ye+" ",M?t+="' + "+P:t+=""+P+"'"),e.opts.verbose&&(t+=" , schema:  ",M?t+="validate.schema"+w:t+=""+v,t+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var p=t;return t=L.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+p+"]); ":t+=" validate.errors = ["+p+"]; return false; ":t+=" var err = "+p+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",E&&(t+=" else { "),t}),_limit}var _limitItems,hasRequired_limitItems;function require_limitItems(){return hasRequired_limitItems||(hasRequired_limitItems=1,_limitItems=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,j,C="data"+(h||""),M=e.opts.$data&&v&&v.$data,P;if(M?(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ",P="schema"+u):P=v,!(M||typeof v=="number"))throw new Error(o+" must be number");var I=o=="maxItems"?">":"<";t+="if ( ",M&&(t+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),t+=" "+C+".length "+I+" "+P+") { ";var j=o,B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(j||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { limit: "+P+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",o=="maxItems"?t+="more":t+="fewer",t+=" than ",M?t+="' + "+P+" + '":t+=""+v,t+=" items' "),e.opts.verbose&&(t+=" , schema:  ",M?t+="validate.schema"+w:t+=""+v,t+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var F=t;return t=B.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+F+"]); ":t+=" validate.errors = ["+F+"]; return false; ":t+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",E&&(t+=" else { "),t}),_limitItems}var _limitLength,hasRequired_limitLength;function require_limitLength(){return hasRequired_limitLength||(hasRequired_limitLength=1,_limitLength=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,j,C="data"+(h||""),M=e.opts.$data&&v&&v.$data,P;if(M?(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ",P="schema"+u):P=v,!(M||typeof v=="number"))throw new Error(o+" must be number");var I=o=="maxLength"?">":"<";t+="if ( ",M&&(t+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),e.opts.unicode===!1?t+=" "+C+".length ":t+=" ucs2length("+C+") ",t+=" "+I+" "+P+") { ";var j=o,B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(j||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { limit: "+P+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be ",o=="maxLength"?t+="longer":t+="shorter",t+=" than ",M?t+="' + "+P+" + '":t+=""+v,t+=" characters' "),e.opts.verbose&&(t+=" , schema:  ",M?t+="validate.schema"+w:t+=""+v,t+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var F=t;return t=B.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+F+"]); ":t+=" validate.errors = ["+F+"]; return false; ":t+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",E&&(t+=" else { "),t}),_limitLength}var _limitProperties,hasRequired_limitProperties;function require_limitProperties(){return hasRequired_limitProperties||(hasRequired_limitProperties=1,_limitProperties=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,j,C="data"+(h||""),M=e.opts.$data&&v&&v.$data,P;if(M?(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ",P="schema"+u):P=v,!(M||typeof v=="number"))throw new Error(o+" must be number");var I=o=="maxProperties"?">":"<";t+="if ( ",M&&(t+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),t+=" Object.keys("+C+").length "+I+" "+P+") { ";var j=o,B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(j||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { limit: "+P+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",o=="maxProperties"?t+="more":t+="fewer",t+=" than ",M?t+="' + "+P+" + '":t+=""+v,t+=" properties' "),e.opts.verbose&&(t+=" , schema:  ",M?t+="validate.schema"+w:t+=""+v,t+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var F=t;return t=B.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+F+"]); ":t+=" validate.errors = ["+F+"]; return false; ":t+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",E&&(t+=" else { "),t}),_limitProperties}var multipleOf,hasRequiredMultipleOf;function requireMultipleOf(){return hasRequiredMultipleOf||(hasRequiredMultipleOf=1,multipleOf=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M=e.opts.$data&&v&&v.$data,P;if(M?(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ",P="schema"+u):P=v,!(M||typeof v=="number"))throw new Error(o+" must be number");t+="var division"+u+";if (",M&&(t+=" "+P+" !== undefined && ( typeof "+P+" != 'number' || "),t+=" (division"+u+" = "+C+" / "+P+", ",e.opts.multipleOfPrecision?t+=" Math.abs(Math.round(division"+u+") - division"+u+") > 1e-"+e.opts.multipleOfPrecision+" ":t+=" division"+u+" !== parseInt(division"+u+") ",t+=" ) ",M&&(t+="  )  "),t+=" ) {   ";var I=I||[];I.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { multipleOf: "+P+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be multiple of ",M?t+="' + "+P:t+=""+P+"'"),e.opts.verbose&&(t+=" , schema:  ",M?t+="validate.schema"+w:t+=""+v,t+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var j=t;return t=I.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",E&&(t+=" else { "),t}),multipleOf}var not,hasRequiredNot;function requireNot(){return hasRequiredNot||(hasRequiredNot=1,not=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="errs__"+u,P=e.util.copy(e);P.level++;var I="valid"+P.level;if(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)){P.schema=v,P.schemaPath=w,P.errSchemaPath=A,t+=" var "+M+" = errors;  ";var j=e.compositeRule;e.compositeRule=P.compositeRule=!0,P.createErrors=!1;var B;P.opts.allErrors&&(B=P.opts.allErrors,P.opts.allErrors=!1),t+=" "+e.validate(P)+" ",P.createErrors=!0,B&&(P.opts.allErrors=B),e.compositeRule=P.compositeRule=j,t+=" if ("+I+") {   ";var F=F||[];F.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var N=t;t=F.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+N+"]); ":t+=" validate.errors = ["+N+"]; return false; ":t+=" var err = "+N+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else {  errors = "+M+"; if (vErrors !== null) { if ("+M+") vErrors.length = "+M+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else t+="  var err =   ",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",E&&(t+=" if (false) { ");return t}),not}var oneOf,hasRequiredOneOf;function requireOneOf(){return hasRequiredOneOf||(hasRequiredOneOf=1,oneOf=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="valid"+u,P="errs__"+u,I=e.util.copy(e),j="";I.level++;var B="valid"+I.level,F=I.baseId,N="prevValid"+u,ee="passingSchemas"+u;t+="var "+P+" = errors , "+N+" = false , "+M+" = false , "+ee+" = null; ";var Z=e.compositeRule;e.compositeRule=I.compositeRule=!0;var re=v;if(re)for(var fe,V=-1,le=re.length-1;V<le;)fe=re[V+=1],(e.opts.strictKeywords?typeof fe=="object"&&Object.keys(fe).length>0||fe===!1:e.util.schemaHasRules(fe,e.RULES.all))?(I.schema=fe,I.schemaPath=w+"["+V+"]",I.errSchemaPath=A+"/"+V,t+="  "+e.validate(I)+" ",I.baseId=F):t+=" var "+B+" = true; ",V&&(t+=" if ("+B+" && "+N+") { "+M+" = false; "+ee+" = ["+ee+", "+V+"]; } else { ",j+="}"),t+=" if ("+B+") { "+M+" = "+N+" = true; "+ee+" = "+V+"; }";return e.compositeRule=I.compositeRule=Z,t+=""+j+"if (!"+M+") {   var err =   ",e.createErrors!==!1?(t+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { passingSchemas: "+ee+" } ",e.opts.messages!==!1&&(t+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&E&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+="} else {  errors = "+P+"; if (vErrors !== null) { if ("+P+") vErrors.length = "+P+"; else vErrors = null; }",e.opts.allErrors&&(t+=" } "),t}),oneOf}var pattern,hasRequiredPattern;function requirePattern(){return hasRequiredPattern||(hasRequiredPattern=1,pattern=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M=e.opts.$data&&v&&v.$data,P;M?(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ",P="schema"+u):P=v;var I=M?"(new RegExp("+P+"))":e.usePattern(v);t+="if ( ",M&&(t+=" ("+P+" !== undefined && typeof "+P+" != 'string') || "),t+=" !"+I+".test("+C+") ) {   ";var j=j||[];j.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { pattern:  ",M?t+=""+P:t+=""+e.util.toQuotedString(v),t+="  } ",e.opts.messages!==!1&&(t+=` , message: 'should match pattern "`,M?t+="' + "+P+" + '":t+=""+e.util.escapeQuotes(v),t+=`"' `),e.opts.verbose&&(t+=" , schema:  ",M?t+="validate.schema"+w:t+=""+e.util.toQuotedString(v),t+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var B=t;return t=j.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+B+"]); ":t+=" validate.errors = ["+B+"]; return false; ":t+=" var err = "+B+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",E&&(t+=" else { "),t}),pattern}var properties$l,hasRequiredProperties;function requireProperties(){return hasRequiredProperties||(hasRequiredProperties=1,properties$l=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="errs__"+u,P=e.util.copy(e),I="";P.level++;var j="valid"+P.level,B="key"+u,F="idx"+u,N=P.dataLevel=e.dataLevel+1,ee="data"+N,Z="dataProperties"+u,re=Object.keys(v||{}).filter(T),fe=e.schema.patternProperties||{},V=Object.keys(fe).filter(T),le=e.schema.additionalProperties,he=re.length||V.length,ye=le===!1,L=typeof le=="object"&&Object.keys(le).length,p=e.opts.removeAdditional,y=ye||L||p,S=e.opts.ownProperties,c=e.baseId,m=e.schema.required;if(m&&!(e.opts.$data&&m.$data)&&m.length<e.opts.loopRequired)var x=e.util.toHash(m);function T(Et){return Et!=="__proto__"}if(t+="var "+M+" = errors;var "+j+" = true;",S&&(t+=" var "+Z+" = undefined;"),y){if(S?t+=" "+Z+" = "+Z+" || Object.keys("+C+"); for (var "+F+"=0; "+F+"<"+Z+".length; "+F+"++) { var "+B+" = "+Z+"["+F+"]; ":t+=" for (var "+B+" in "+C+") { ",he){if(t+=" var isAdditional"+u+" = !(false ",re.length)if(re.length>8)t+=" || validate.schema"+w+".hasOwnProperty("+B+") ";else{var b=re;if(b)for(var d,k=-1,D=b.length-1;k<D;)d=b[k+=1],t+=" || "+B+" == "+e.util.toQuotedString(d)+" "}if(V.length){var O=V;if(O)for(var Q,J=-1,X=O.length-1;J<X;)Q=O[J+=1],t+=" || "+e.usePattern(Q)+".test("+B+") "}t+=" ); if (isAdditional"+u+") { "}if(p=="all")t+=" delete "+C+"["+B+"]; ";else{var U=e.errorPath,z="' + "+B+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,B,e.opts.jsonPointers)),ye)if(p)t+=" delete "+C+"["+B+"]; ";else{t+=" "+j+" = false; ";var ie=A;A=e.errSchemaPath+"/additionalProperties";var de=de||[];de.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { additionalProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is an invalid additional property":t+="should NOT have additional properties",t+="' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var me=t;t=de.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+me+"]); ":t+=" validate.errors = ["+me+"]; return false; ":t+=" var err = "+me+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",A=ie,E&&(t+=" break; ")}else if(L)if(p=="failing"){t+=" var "+M+" = errors;  ";var pe=e.compositeRule;e.compositeRule=P.compositeRule=!0,P.schema=le,P.schemaPath=e.schemaPath+".additionalProperties",P.errSchemaPath=e.errSchemaPath+"/additionalProperties",P.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,B,e.opts.jsonPointers);var qe=C+"["+B+"]";P.dataPathArr[N]=B;var mt=e.validate(P);P.baseId=c,e.util.varOccurences(mt,ee)<2?t+=" "+e.util.varReplace(mt,ee,qe)+" ":t+=" var "+ee+" = "+qe+"; "+mt+" ",t+=" if (!"+j+") { errors = "+M+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+C+"["+B+"]; }  ",e.compositeRule=P.compositeRule=pe}else{P.schema=le,P.schemaPath=e.schemaPath+".additionalProperties",P.errSchemaPath=e.errSchemaPath+"/additionalProperties",P.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,B,e.opts.jsonPointers);var qe=C+"["+B+"]";P.dataPathArr[N]=B;var mt=e.validate(P);P.baseId=c,e.util.varOccurences(mt,ee)<2?t+=" "+e.util.varReplace(mt,ee,qe)+" ":t+=" var "+ee+" = "+qe+"; "+mt+" ",E&&(t+=" if (!"+j+") break; ")}e.errorPath=U}he&&(t+=" } "),t+=" }  ",E&&(t+=" if ("+j+") { ",I+="}")}var st=e.opts.useDefaults&&!e.compositeRule;if(re.length){var dt=re;if(dt)for(var d,Tt=-1,lt=dt.length-1;Tt<lt;){d=dt[Tt+=1];var Je=v[d];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){var ht=e.util.getProperty(d),qe=C+ht,at=st&&Je.default!==void 0;P.schema=Je,P.schemaPath=w+ht,P.errSchemaPath=A+"/"+e.util.escapeFragment(d),P.errorPath=e.util.getPath(e.errorPath,d,e.opts.jsonPointers),P.dataPathArr[N]=e.util.toQuotedString(d);var mt=e.validate(P);if(P.baseId=c,e.util.varOccurences(mt,ee)<2){mt=e.util.varReplace(mt,ee,qe);var bt=qe}else{var bt=ee;t+=" var "+ee+" = "+qe+"; "}if(at)t+=" "+mt+" ";else{if(x&&x[d]){t+=" if ( "+bt+" === undefined ",S&&(t+=" || ! Object.prototype.hasOwnProperty.call("+C+", '"+e.util.escapeQuotes(d)+"') "),t+=") { "+j+" = false; ";var U=e.errorPath,ie=A,jt=e.util.escapeQuotes(d);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,d,e.opts.jsonPointers)),A=e.errSchemaPath+"/required";var de=de||[];de.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { missingProperty: '"+jt+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+jt+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var me=t;t=de.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+me+"]); ":t+=" validate.errors = ["+me+"]; return false; ":t+=" var err = "+me+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",A=ie,e.errorPath=U,t+=" } else { "}else E?(t+=" if ( "+bt+" === undefined ",S&&(t+=" || ! Object.prototype.hasOwnProperty.call("+C+", '"+e.util.escapeQuotes(d)+"') "),t+=") { "+j+" = true; } else { "):(t+=" if ("+bt+" !== undefined ",S&&(t+=" &&   Object.prototype.hasOwnProperty.call("+C+", '"+e.util.escapeQuotes(d)+"') "),t+=" ) { ");t+=" "+mt+" } "}}E&&(t+=" if ("+j+") { ",I+="}")}}if(V.length){var Ge=V;if(Ge)for(var Q,Qe=-1,Wt=Ge.length-1;Qe<Wt;){Q=Ge[Qe+=1];var Je=fe[Q];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){P.schema=Je,P.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(Q),P.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(Q),S?t+=" "+Z+" = "+Z+" || Object.keys("+C+"); for (var "+F+"=0; "+F+"<"+Z+".length; "+F+"++) { var "+B+" = "+Z+"["+F+"]; ":t+=" for (var "+B+" in "+C+") { ",t+=" if ("+e.usePattern(Q)+".test("+B+")) { ",P.errorPath=e.util.getPathExpr(e.errorPath,B,e.opts.jsonPointers);var qe=C+"["+B+"]";P.dataPathArr[N]=B;var mt=e.validate(P);P.baseId=c,e.util.varOccurences(mt,ee)<2?t+=" "+e.util.varReplace(mt,ee,qe)+" ":t+=" var "+ee+" = "+qe+"; "+mt+" ",E&&(t+=" if (!"+j+") break; "),t+=" } ",E&&(t+=" else "+j+" = true; "),t+=" }  ",E&&(t+=" if ("+j+") { ",I+="}")}}}return E&&(t+=" "+I+" if ("+M+" == errors) {"),t}),properties$l}var propertyNames,hasRequiredPropertyNames;function requirePropertyNames(){return hasRequiredPropertyNames||(hasRequiredPropertyNames=1,propertyNames=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="errs__"+u,P=e.util.copy(e),I="";P.level++;var j="valid"+P.level;if(t+="var "+M+" = errors;",e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)){P.schema=v,P.schemaPath=w,P.errSchemaPath=A;var B="key"+u,F="idx"+u,N="i"+u,ee="' + "+B+" + '",Z=P.dataLevel=e.dataLevel+1,re="data"+Z,fe="dataProperties"+u,V=e.opts.ownProperties,le=e.baseId;V&&(t+=" var "+fe+" = undefined; "),V?t+=" "+fe+" = "+fe+" || Object.keys("+C+"); for (var "+F+"=0; "+F+"<"+fe+".length; "+F+"++) { var "+B+" = "+fe+"["+F+"]; ":t+=" for (var "+B+" in "+C+") { ",t+=" var startErrs"+u+" = errors; ";var he=B,ye=e.compositeRule;e.compositeRule=P.compositeRule=!0;var L=e.validate(P);P.baseId=le,e.util.varOccurences(L,re)<2?t+=" "+e.util.varReplace(L,re,he)+" ":t+=" var "+re+" = "+he+"; "+L+" ",e.compositeRule=P.compositeRule=ye,t+=" if (!"+j+") { for (var "+N+"=startErrs"+u+"; "+N+"<errors; "+N+"++) { vErrors["+N+"].propertyName = "+B+"; }   var err =   ",e.createErrors!==!1?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { propertyName: '"+ee+"' } ",e.opts.messages!==!1&&(t+=" , message: 'property name \\'"+ee+"\\' is invalid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&E&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),E&&(t+=" break; "),t+=" } }"}return E&&(t+=" "+I+" if ("+M+" == errors) {"),t}),propertyNames}var required$h,hasRequiredRequired;function requireRequired(){return hasRequiredRequired||(hasRequiredRequired=1,required$h=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="valid"+u,P=e.opts.$data&&v&&v.$data;P&&(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ");var I="schema"+u;if(!P)if(v.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var j=[],B=v;if(B)for(var F,N=-1,ee=B.length-1;N<ee;){F=B[N+=1];var Z=e.schema.properties[F];Z&&(e.opts.strictKeywords?typeof Z=="object"&&Object.keys(Z).length>0||Z===!1:e.util.schemaHasRules(Z,e.RULES.all))||(j[j.length]=F)}}else var j=v;if(P||j.length){var re=e.errorPath,fe=P||j.length>=e.opts.loopRequired,V=e.opts.ownProperties;if(E)if(t+=" var missing"+u+"; ",fe){P||(t+=" var "+I+" = validate.schema"+w+"; ");var le="i"+u,he="schema"+u+"["+le+"]",ye="' + "+he+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(re,he,e.opts.jsonPointers)),t+=" var "+M+" = true; ",P&&(t+=" if (schema"+u+" === undefined) "+M+" = true; else if (!Array.isArray(schema"+u+")) "+M+" = false; else {"),t+=" for (var "+le+" = 0; "+le+" < "+I+".length; "+le+"++) { "+M+" = "+C+"["+I+"["+le+"]] !== undefined ",V&&(t+=" &&   Object.prototype.hasOwnProperty.call("+C+", "+I+"["+le+"]) "),t+="; if (!"+M+") break; } ",P&&(t+="  }  "),t+="  if (!"+M+") {   ";var L=L||[];L.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { missingProperty: '"+ye+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+ye+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var p=t;t=L.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+p+"]); ":t+=" validate.errors = ["+p+"]; return false; ":t+=" var err = "+p+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var y=j;if(y)for(var S,le=-1,c=y.length-1;le<c;){S=y[le+=1],le&&(t+=" || ");var m=e.util.getProperty(S),x=C+m;t+=" ( ( "+x+" === undefined ",V&&(t+=" || ! Object.prototype.hasOwnProperty.call("+C+", '"+e.util.escapeQuotes(S)+"') "),t+=") && (missing"+u+" = "+e.util.toQuotedString(e.opts.jsonPointers?S:m)+") ) "}t+=") {  ";var he="missing"+u,ye="' + "+he+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(re,he,!0):re+" + "+he);var L=L||[];L.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { missingProperty: '"+ye+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+ye+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var p=t;t=L.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+p+"]); ":t+=" validate.errors = ["+p+"]; return false; ":t+=" var err = "+p+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(fe){P||(t+=" var "+I+" = validate.schema"+w+"; ");var le="i"+u,he="schema"+u+"["+le+"]",ye="' + "+he+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(re,he,e.opts.jsonPointers)),P&&(t+=" if ("+I+" && !Array.isArray("+I+")) {  var err =   ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { missingProperty: '"+ye+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+ye+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+I+" !== undefined) { "),t+=" for (var "+le+" = 0; "+le+" < "+I+".length; "+le+"++) { if ("+C+"["+I+"["+le+"]] === undefined ",V&&(t+=" || ! Object.prototype.hasOwnProperty.call("+C+", "+I+"["+le+"]) "),t+=") {  var err =   ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { missingProperty: '"+ye+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+ye+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",P&&(t+="  }  ")}else{var T=j;if(T)for(var S,b=-1,d=T.length-1;b<d;){S=T[b+=1];var m=e.util.getProperty(S),ye=e.util.escapeQuotes(S),x=C+m;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(re,S,e.opts.jsonPointers)),t+=" if ( "+x+" === undefined ",V&&(t+=" || ! Object.prototype.hasOwnProperty.call("+C+", '"+e.util.escapeQuotes(S)+"') "),t+=") {  var err =   ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { missingProperty: '"+ye+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+ye+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=re}else E&&(t+=" if (true) {");return t}),required$h}var uniqueItems,hasRequiredUniqueItems;function requireUniqueItems(){return hasRequiredUniqueItems||(hasRequiredUniqueItems=1,uniqueItems=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C="data"+(h||""),M="valid"+u,P=e.opts.$data&&v&&v.$data,I;if(P?(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ",I="schema"+u):I=v,(v||P)&&e.opts.uniqueItems!==!1){P&&(t+=" var "+M+"; if ("+I+" === false || "+I+" === undefined) "+M+" = true; else if (typeof "+I+" != 'boolean') "+M+" = false; else { "),t+=" var i = "+C+".length , "+M+" = true , j; if (i > 1) { ";var j=e.schema.items&&e.schema.items.type,B=Array.isArray(j);if(!j||j=="object"||j=="array"||B&&(j.indexOf("object")>=0||j.indexOf("array")>=0))t+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+C+"[i], "+C+"[j])) { "+M+" = false; break outer; } } } ";else{t+=" var itemIndices = {}, item; for (;i--;) { var item = "+C+"[i]; ";var F="checkDataType"+(B?"s":"");t+=" if ("+e.util[F](j,"item",e.opts.strictNumbers,!0)+") continue; ",B&&(t+=` if (typeof item == 'string') item = '"' + item; `),t+=" if (typeof itemIndices[item] == 'number') { "+M+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}t+=" } ",P&&(t+="  }  "),t+=" if (!"+M+") {   ";var N=N||[];N.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(t+=" , schema:  ",P?t+="validate.schema"+w:t+=""+v,t+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+C+" "),t+=" } "):t+=" {} ";var ee=t;t=N.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+ee+"]); ":t+=" validate.errors = ["+ee+"]; return false; ":t+=" var err = "+ee+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",E&&(t+=" else { ")}else E&&(t+=" if (true) { ");return t}),uniqueItems}var dotjs,hasRequiredDotjs;function requireDotjs(){return hasRequiredDotjs||(hasRequiredDotjs=1,dotjs={$ref:requireRef(),allOf:requireAllOf(),anyOf:requireAnyOf(),$comment:requireComment(),const:require_const(),contains:requireContains(),dependencies:requireDependencies(),enum:require_enum(),format:requireFormat(),if:require_if(),items:requireItems(),maximum:require_limit(),minimum:require_limit(),maxItems:require_limitItems(),minItems:require_limitItems(),maxLength:require_limitLength(),minLength:require_limitLength(),maxProperties:require_limitProperties(),minProperties:require_limitProperties(),multipleOf:requireMultipleOf(),not:requireNot(),oneOf:requireOneOf(),pattern:requirePattern(),properties:requireProperties(),propertyNames:requirePropertyNames(),required:requireRequired(),uniqueItems:requireUniqueItems(),validate:requireValidate()}),dotjs}var rules,hasRequiredRules;function requireRules(){if(hasRequiredRules)return rules;hasRequiredRules=1;var n=requireDotjs(),e=requireUtil().toHash;return rules=function(){var l=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"],u=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],h=["number","integer","string","array","object","boolean","null"];return l.all=e(t),l.types=e(h),l.forEach(function(v){v.rules=v.rules.map(function(w){var A;if(typeof w=="object"){var E=Object.keys(w)[0];A=w[E],w=E,A.forEach(function(M){t.push(M),l.all[M]=!0})}t.push(w);var C=l.all[w]={keyword:w,code:n[w],implements:A};return C}),l.all.$comment={keyword:"$comment",code:n.$comment},v.type&&(l.types[v.type]=v)}),l.keywords=e(t.concat(u)),l.custom={},l},rules}var data,hasRequiredData;function requireData(){if(hasRequiredData)return data;hasRequiredData=1;var n=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return data=function(e,o){for(var l=0;l<o.length;l++){e=JSON.parse(JSON.stringify(e));var t=o[l].split("/"),u=e,h;for(h=1;h<t.length;h++)u=u[t[h]];for(h=0;h<n.length;h++){var v=n[h],w=u[v];w&&(u[v]={anyOf:[w,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},data}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var n=requireError_classes().MissingRef;async=e;function e(o,l,t){var u=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof l=="function"&&(t=l,l=void 0);var h=v(o).then(function(){var A=u._addSchema(o,void 0,l);return A.validate||w(A)});return t&&h.then(function(A){t(null,A)},t),h;function v(A){var E=A.$schema;return E&&!u.getSchema(E)?e.call(u,{$ref:E},!0):Promise.resolve()}function w(A){try{return u._compile(A)}catch(C){if(C instanceof n)return E(C);throw C}function E(C){var M=C.missingSchema;if(j(M))throw new Error("Schema "+M+" is loaded but "+C.missingRef+" cannot be resolved");var P=u._loadingSchemas[M];return P||(P=u._loadingSchemas[M]=u._opts.loadSchema(M),P.then(I,I)),P.then(function(B){if(!j(M))return v(B).then(function(){j(M)||u.addSchema(B,M,void 0,l)})}).then(function(){return w(A)});function I(){delete u._loadingSchemas[M]}function j(B){return u._refs[B]||u._schemas[B]}}}}return async}var custom,hasRequiredCustom;function requireCustom(){return hasRequiredCustom||(hasRequiredCustom=1,custom=function(e,o,l){var t=" ",u=e.level,h=e.dataLevel,v=e.schema[o],w=e.schemaPath+e.util.getProperty(o),A=e.errSchemaPath+"/"+o,E=!e.opts.allErrors,C,M="data"+(h||""),P="valid"+u,I="errs__"+u,j=e.opts.$data&&v&&v.$data,B;j?(t+=" var schema"+u+" = "+e.util.getData(v.$data,h,e.dataPathArr)+"; ",B="schema"+u):B=v;var F=this,N="definition"+u,ee=F.definition,Z="",re,fe,V,le,he;if(j&&ee.$data){he="keywordValidate"+u;var ye=ee.validateSchema;t+=" var "+N+" = RULES.custom['"+o+"'].definition; var "+he+" = "+N+".validate;"}else{if(le=e.useCustomRule(F,v,e.schema,e),!le)return;B="validate.schema"+w,he=le.code,re=ee.compile,fe=ee.inline,V=ee.macro}var L=he+".errors",p="i"+u,y="ruleErr"+u,S=ee.async;if(S&&!e.async)throw new Error("async keyword in sync schema");if(fe||V||(t+=""+L+" = null;"),t+="var "+I+" = errors;var "+P+";",j&&ee.$data&&(Z+="}",t+=" if ("+B+" === undefined) { "+P+" = true; } else { ",ye&&(Z+="}",t+=" "+P+" = "+N+".validateSchema("+B+"); if ("+P+") { ")),fe)ee.statements?t+=" "+le.validate+" ":t+=" "+P+" = "+le.validate+"; ";else if(V){var c=e.util.copy(e),Z="";c.level++;var m="valid"+c.level;c.schema=le.validate,c.schemaPath="";var x=e.compositeRule;e.compositeRule=c.compositeRule=!0;var T=e.validate(c).replace(/validate\.schema/g,he);e.compositeRule=c.compositeRule=x,t+=" "+T}else{var b=b||[];b.push(t),t="",t+="  "+he+".call( ",e.opts.passContext?t+="this":t+="self",re||ee.schema===!1?t+=" , "+M+" ":t+=" , "+B+" , "+M+" , validate.schema"+e.schemaPath+" ",t+=" , (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var d=h?"data"+(h-1||""):"parentData",k=h?e.dataPathArr[h]:"parentDataProperty";t+=" , "+d+" , "+k+" , rootData )  ";var D=t;t=b.pop(),ee.errors===!1?(t+=" "+P+" = ",S&&(t+="await "),t+=""+D+"; "):S?(L="customErrors"+u,t+=" var "+L+" = null; try { "+P+" = await "+D+"; } catch (e) { "+P+" = false; if (e instanceof ValidationError) "+L+" = e.errors; else throw e; } "):t+=" "+L+" = null; "+P+" = "+D+"; "}if(ee.modifying&&(t+=" if ("+d+") "+M+" = "+d+"["+k+"];"),t+=""+Z,ee.valid)E&&(t+=" if (true) { ");else{t+=" if ( ",ee.valid===void 0?(t+=" !",V?t+=""+m:t+=""+P):t+=" "+!ee.valid+" ",t+=") { ",C=F.keyword;var b=b||[];b.push(t),t="";var b=b||[];b.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(C||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { keyword: '"+F.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+F.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+M+" "),t+=" } "):t+=" {} ";var O=t;t=b.pop(),!e.compositeRule&&E?e.async?t+=" throw new ValidationError(["+O+"]); ":t+=" validate.errors = ["+O+"]; return false; ":t+=" var err = "+O+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var Q=t;t=b.pop(),fe?ee.errors?ee.errors!="full"&&(t+="  for (var "+p+"="+I+"; "+p+"<errors; "+p+"++) { var "+y+" = vErrors["+p+"]; if ("+y+".dataPath === undefined) "+y+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+y+".schemaPath === undefined) { "+y+'.schemaPath = "'+A+'"; } ',e.opts.verbose&&(t+=" "+y+".schema = "+B+"; "+y+".data = "+M+"; "),t+=" } "):ee.errors===!1?t+=" "+Q+" ":(t+=" if ("+I+" == errors) { "+Q+" } else {  for (var "+p+"="+I+"; "+p+"<errors; "+p+"++) { var "+y+" = vErrors["+p+"]; if ("+y+".dataPath === undefined) "+y+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+y+".schemaPath === undefined) { "+y+'.schemaPath = "'+A+'"; } ',e.opts.verbose&&(t+=" "+y+".schema = "+B+"; "+y+".data = "+M+"; "),t+=" } } "):V?(t+="   var err =   ",e.createErrors!==!1?(t+=" { keyword: '"+(C||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(A)+" , params: { keyword: '"+F.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+F.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+M+" "),t+=" } "):t+=" {} ",t+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&E&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; ")):ee.errors===!1?t+=" "+Q+" ":(t+=" if (Array.isArray("+L+")) { if (vErrors === null) vErrors = "+L+"; else vErrors = vErrors.concat("+L+"); errors = vErrors.length;  for (var "+p+"="+I+"; "+p+"<errors; "+p+"++) { var "+y+" = vErrors["+p+"]; if ("+y+".dataPath === undefined) "+y+".dataPath = (dataPath || '') + "+e.errorPath+";  "+y+'.schemaPath = "'+A+'";  ',e.opts.verbose&&(t+=" "+y+".schema = "+B+"; "+y+".data = "+M+"; "),t+=" } } else { "+Q+" } "),t+=" } ",E&&(t+=" else { ")}return t}),custom}const $schema$k="http://json-schema.org/draft-07/schema#",$id$k="http://json-schema.org/draft-07/schema#",title$1="Core schema meta-schema",definitions$1={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type$i=["object","boolean"],properties$k={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},require$$13$1={$schema:$schema$k,$id:$id$k,title:title$1,definitions:definitions$1,type:type$i,properties:properties$k,default:!0};var definition_schema,hasRequiredDefinition_schema;function requireDefinition_schema(){if(hasRequiredDefinition_schema)return definition_schema;hasRequiredDefinition_schema=1;var n=require$$13$1;return definition_schema={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},definition_schema}var keyword,hasRequiredKeyword;function requireKeyword(){if(hasRequiredKeyword)return keyword;hasRequiredKeyword=1;var n=/^[a-z_$][a-z0-9_$-]*$/i,e=requireCustom(),o=requireDefinition_schema();keyword={add:l,get:t,remove:u,validate:h};function l(v,w){var A=this.RULES;if(A.keywords[v])throw new Error("Keyword "+v+" is already defined");if(!n.test(v))throw new Error("Keyword "+v+" is not a valid identifier");if(w){this.validateKeyword(w,!0);var E=w.type;if(Array.isArray(E))for(var C=0;C<E.length;C++)P(v,E[C],w);else P(v,E,w);var M=w.metaSchema;M&&(w.$data&&this._opts.$data&&(M={anyOf:[M,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),w.validateSchema=this.compile(M,!0))}A.keywords[v]=A.all[v]=!0;function P(I,j,B){for(var F,N=0;N<A.length;N++){var ee=A[N];if(ee.type==j){F=ee;break}}F||(F={type:j,rules:[]},A.push(F));var Z={keyword:I,definition:B,custom:!0,code:e,implements:B.implements};F.rules.push(Z),A.custom[I]=Z}return this}function t(v){var w=this.RULES.custom[v];return w?w.definition:this.RULES.keywords[v]||!1}function u(v){var w=this.RULES;delete w.keywords[v],delete w.all[v],delete w.custom[v];for(var A=0;A<w.length;A++)for(var E=w[A].rules,C=0;C<E.length;C++)if(E[C].keyword==v){E.splice(C,1);break}return this}function h(v,w){h.errors=null;var A=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(A(v))return!0;if(h.errors=A.errors,w)throw new Error("custom keyword definition is invalid: "+this.errorsText(A.errors));return!1}return keyword}const $schema$j="http://json-schema.org/draft-07/schema#",$id$j="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description="Meta-schema for $data reference (JSON Schema extension proposal)",type$h="object",required$g=["$data"],properties$j={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties=!1,require$$12$1={$schema:$schema$j,$id:$id$j,description,type:type$h,required:required$g,properties:properties$j,additionalProperties};var ajv,hasRequiredAjv;function requireAjv(){if(hasRequiredAjv)return ajv;hasRequiredAjv=1;var n=requireCompile(),e=requireResolve(),o=requireCache(),l=requireSchema_obj(),t=requireFastJsonStableStringify(),u=requireFormats(),h=requireRules(),v=requireData(),w=requireUtil();ajv=I,I.prototype.validate=j,I.prototype.compile=B,I.prototype.addSchema=F,I.prototype.addMetaSchema=N,I.prototype.validateSchema=ee,I.prototype.getSchema=re,I.prototype.removeSchema=le,I.prototype.addFormat=x,I.prototype.errorsText=m,I.prototype._addSchema=ye,I.prototype._compile=L,I.prototype.compileAsync=requireAsync();var A=requireKeyword();I.prototype.addKeyword=A.add,I.prototype.getKeyword=A.get,I.prototype.removeKeyword=A.remove,I.prototype.validateKeyword=A.validate;var E=requireError_classes();I.ValidationError=E.Validation,I.MissingRefError=E.MissingRef,I.$dataMetaSchema=v;var C="http://json-schema.org/draft-07/schema",M=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],P=["/properties"];function I(X){if(!(this instanceof I))return new I(X);X=this._opts=w.copy(X)||{},Q(this),this._schemas={},this._refs={},this._fragments={},this._formats=u(X.format),this._cache=X.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=h(),this._getId=p(X),X.loopRequired=X.loopRequired||1/0,X.errorDataPath=="property"&&(X._errorDataPathProperty=!0),X.serialize===void 0&&(X.serialize=t),this._metaOpts=O(this),X.formats&&d(this),X.keywords&&k(this),T(this),typeof X.meta=="object"&&this.addMetaSchema(X.meta),X.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),b(this)}function j(X,U){var z;if(typeof X=="string"){if(z=this.getSchema(X),!z)throw new Error('no schema with key or ref "'+X+'"')}else{var ie=this._addSchema(X);z=ie.validate||this._compile(ie)}var de=z(U);return z.$async!==!0&&(this.errors=z.errors),de}function B(X,U){var z=this._addSchema(X,void 0,U);return z.validate||this._compile(z)}function F(X,U,z,ie){if(Array.isArray(X)){for(var de=0;de<X.length;de++)this.addSchema(X[de],void 0,z,ie);return this}var me=this._getId(X);if(me!==void 0&&typeof me!="string")throw new Error("schema id must be string");return U=e.normalizeId(U||me),D(this,U),this._schemas[U]=this._addSchema(X,z,ie,!0),this}function N(X,U,z){return this.addSchema(X,U,z,!0),this}function ee(X,U){var z=X.$schema;if(z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this._opts.defaultMeta||Z(this),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var ie=this.validate(z,X);if(!ie&&U){var de="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(de);else throw new Error(de)}return ie}function Z(X){var U=X._opts.meta;return X._opts.defaultMeta=typeof U=="object"?X._getId(U)||U:X.getSchema(C)?C:void 0,X._opts.defaultMeta}function re(X){var U=V(this,X);switch(typeof U){case"object":return U.validate||this._compile(U);case"string":return this.getSchema(U);case"undefined":return fe(this,X)}}function fe(X,U){var z=e.schema.call(X,{schema:{}},U);if(z){var ie=z.schema,de=z.root,me=z.baseId,pe=n.call(X,ie,de,void 0,me);return X._fragments[U]=new l({ref:U,fragment:!0,schema:ie,root:de,baseId:me,validate:pe}),pe}}function V(X,U){return U=e.normalizeId(U),X._schemas[U]||X._refs[U]||X._fragments[U]}function le(X){if(X instanceof RegExp)return he(this,this._schemas,X),he(this,this._refs,X),this;switch(typeof X){case"undefined":return he(this,this._schemas),he(this,this._refs),this._cache.clear(),this;case"string":var U=V(this,X);return U&&this._cache.del(U.cacheKey),delete this._schemas[X],delete this._refs[X],this;case"object":var z=this._opts.serialize,ie=z?z(X):X;this._cache.del(ie);var de=this._getId(X);de&&(de=e.normalizeId(de),delete this._schemas[de],delete this._refs[de])}return this}function he(X,U,z){for(var ie in U){var de=U[ie];!de.meta&&(!z||z.test(ie))&&(X._cache.del(de.cacheKey),delete U[ie])}}function ye(X,U,z,ie){if(typeof X!="object"&&typeof X!="boolean")throw new Error("schema should be object or boolean");var de=this._opts.serialize,me=de?de(X):X,pe=this._cache.get(me);if(pe)return pe;ie=ie||this._opts.addUsedSchema!==!1;var qe=e.normalizeId(this._getId(X));qe&&ie&&D(this,qe);var mt=this._opts.validateSchema!==!1&&!U,st;mt&&!(st=qe&&qe==e.normalizeId(X.$schema))&&this.validateSchema(X,!0);var dt=e.ids.call(this,X),Tt=new l({id:qe,schema:X,localRefs:dt,cacheKey:me,meta:z});return qe[0]!="#"&&ie&&(this._refs[qe]=Tt),this._cache.put(me,Tt),mt&&st&&this.validateSchema(X,!0),Tt}function L(X,U){if(X.compiling)return X.validate=de,de.schema=X.schema,de.errors=null,de.root=U||de,X.schema.$async===!0&&(de.$async=!0),de;X.compiling=!0;var z;X.meta&&(z=this._opts,this._opts=this._metaOpts);var ie;try{ie=n.call(this,X.schema,U,X.localRefs)}catch(me){throw delete X.validate,me}finally{X.compiling=!1,X.meta&&(this._opts=z)}return X.validate=ie,X.refs=ie.refs,X.refVal=ie.refVal,X.root=ie.root,ie;function de(){var me=X.validate,pe=me.apply(this,arguments);return de.errors=me.errors,pe}}function p(X){switch(X.schemaId){case"auto":return c;case"id":return y;default:return S}}function y(X){return X.$id&&this.logger.warn("schema $id ignored",X.$id),X.id}function S(X){return X.id&&this.logger.warn("schema id ignored",X.id),X.$id}function c(X){if(X.$id&&X.id&&X.$id!=X.id)throw new Error("schema $id is different from id");return X.$id||X.id}function m(X,U){if(X=X||this.errors,!X)return"No errors";U=U||{};for(var z=U.separator===void 0?", ":U.separator,ie=U.dataVar===void 0?"data":U.dataVar,de="",me=0;me<X.length;me++){var pe=X[me];pe&&(de+=ie+pe.dataPath+" "+pe.message+z)}return de.slice(0,-z.length)}function x(X,U){return typeof U=="string"&&(U=new RegExp(U)),this._formats[X]=U,this}function T(X){var U;if(X._opts.$data&&(U=require$$12$1,X.addMetaSchema(U,U.$id,!0)),X._opts.meta!==!1){var z=require$$13$1;X._opts.$data&&(z=v(z,P)),X.addMetaSchema(z,C,!0),X._refs["http://json-schema.org/schema"]=C}}function b(X){var U=X._opts.schemas;if(U)if(Array.isArray(U))X.addSchema(U);else for(var z in U)X.addSchema(U[z],z)}function d(X){for(var U in X._opts.formats){var z=X._opts.formats[U];X.addFormat(U,z)}}function k(X){for(var U in X._opts.keywords){var z=X._opts.keywords[U];X.addKeyword(U,z)}}function D(X,U){if(X._schemas[U]||X._refs[U])throw new Error('schema with key or id "'+U+'" already exists')}function O(X){for(var U=w.copy(X._opts),z=0;z<M.length;z++)delete U[M[z]];return U}function Q(X){var U=X._opts.logger;if(U===!1)X.logger={log:J,warn:J,error:J};else{if(U===void 0&&(U=console),!(typeof U=="object"&&U.log&&U.warn&&U.error))throw new Error("logger must implement log, warn and error methods");X.logger=U}}function J(){}return ajv}var error,hasRequiredError;function requireError(){if(hasRequiredError)return error;hasRequiredError=1;function n(e){var o="validation failed";this.name="HARError",this.message=o,this.errors=e,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(o).stack}return n.prototype=Error.prototype,error=n,error}const $id$i="afterRequest.json#",$schema$i="http://json-schema.org/draft-06/schema#",type$g="object",optional$4=!0,required$f=["lastAccess","eTag","hitCount"],properties$i={expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}},require$$0={$id:$id$i,$schema:$schema$i,type:type$g,optional:optional$4,required:required$f,properties:properties$i},$id$h="beforeRequest.json#",$schema$h="http://json-schema.org/draft-06/schema#",type$f="object",optional$3=!0,required$e=["lastAccess","eTag","hitCount"],properties$h={expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}},require$$1={$id:$id$h,$schema:$schema$h,type:type$f,optional:optional$3,required:required$e,properties:properties$h},$id$g="browser.json#",$schema$g="http://json-schema.org/draft-06/schema#",type$e="object",required$d=["name","version"],properties$g={name:{type:"string"},version:{type:"string"},comment:{type:"string"}},require$$2={$id:$id$g,$schema:$schema$g,type:type$e,required:required$d,properties:properties$g},$id$f="cache.json#",$schema$f="http://json-schema.org/draft-06/schema#",properties$f={beforeRequest:{oneOf:[{type:"null"},{$ref:"beforeRequest.json#"}]},afterRequest:{oneOf:[{type:"null"},{$ref:"afterRequest.json#"}]},comment:{type:"string"}},require$$3$1={$id:$id$f,$schema:$schema$f,properties:properties$f},$id$e="content.json#",$schema$e="http://json-schema.org/draft-06/schema#",type$d="object",required$c=["size","mimeType"],properties$e={size:{type:"integer"},compression:{type:"integer"},mimeType:{type:"string"},text:{type:"string"},encoding:{type:"string"},comment:{type:"string"}},require$$4={$id:$id$e,$schema:$schema$e,type:type$d,required:required$c,properties:properties$e},$id$d="cookie.json#",$schema$d="http://json-schema.org/draft-06/schema#",type$c="object",required$b=["name","value"],properties$d={name:{type:"string"},value:{type:"string"},path:{type:"string"},domain:{type:"string"},expires:{type:["string","null"],format:"date-time"},httpOnly:{type:"boolean"},secure:{type:"boolean"},comment:{type:"string"}},require$$5={$id:$id$d,$schema:$schema$d,type:type$c,required:required$b,properties:properties$d},$id$c="creator.json#",$schema$c="http://json-schema.org/draft-06/schema#",type$b="object",required$a=["name","version"],properties$c={name:{type:"string"},version:{type:"string"},comment:{type:"string"}},require$$6={$id:$id$c,$schema:$schema$c,type:type$b,required:required$a,properties:properties$c},$id$b="entry.json#",$schema$b="http://json-schema.org/draft-06/schema#",type$a="object",optional$2=!0,required$9=["startedDateTime","time","request","response","cache","timings"],properties$b={pageref:{type:"string"},startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},time:{type:"number",min:0},request:{$ref:"request.json#"},response:{$ref:"response.json#"},cache:{$ref:"cache.json#"},timings:{$ref:"timings.json#"},serverIPAddress:{type:"string",oneOf:[{format:"ipv4"},{format:"ipv6"}]},connection:{type:"string"},comment:{type:"string"}},require$$7={$id:$id$b,$schema:$schema$b,type:type$a,optional:optional$2,required:required$9,properties:properties$b},$id$a="har.json#",$schema$a="http://json-schema.org/draft-06/schema#",type$9="object",required$8=["log"],properties$a={log:{$ref:"log.json#"}},require$$8={$id:$id$a,$schema:$schema$a,type:type$9,required:required$8,properties:properties$a},$id$9="header.json#",$schema$9="http://json-schema.org/draft-06/schema#",type$8="object",required$7=["name","value"],properties$9={name:{type:"string"},value:{type:"string"},comment:{type:"string"}},require$$9={$id:$id$9,$schema:$schema$9,type:type$8,required:required$7,properties:properties$9},$id$8="log.json#",$schema$8="http://json-schema.org/draft-06/schema#",type$7="object",required$6=["version","creator","entries"],properties$8={version:{type:"string"},creator:{$ref:"creator.json#"},browser:{$ref:"browser.json#"},pages:{type:"array",items:{$ref:"page.json#"}},entries:{type:"array",items:{$ref:"entry.json#"}},comment:{type:"string"}},require$$10={$id:$id$8,$schema:$schema$8,type:type$7,required:required$6,properties:properties$8},$id$7="page.json#",$schema$7="http://json-schema.org/draft-06/schema#",type$6="object",optional$1=!0,required$5=["startedDateTime","id","title","pageTimings"],properties$7={startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},id:{type:"string",unique:!0},title:{type:"string"},pageTimings:{$ref:"pageTimings.json#"},comment:{type:"string"}},require$$11={$id:$id$7,$schema:$schema$7,type:type$6,optional:optional$1,required:required$5,properties:properties$7},$id$6="pageTimings.json#",$schema$6="http://json-schema.org/draft-06/schema#",type$5="object",properties$6={onContentLoad:{type:"number",min:-1},onLoad:{type:"number",min:-1},comment:{type:"string"}},require$$12={$id:$id$6,$schema:$schema$6,type:type$5,properties:properties$6},$id$5="postData.json#",$schema$5="http://json-schema.org/draft-06/schema#",type$4="object",optional=!0,required$4=["mimeType"],properties$5={mimeType:{type:"string"},text:{type:"string"},params:{type:"array",required:["name"],properties:{name:{type:"string"},value:{type:"string"},fileName:{type:"string"},contentType:{type:"string"},comment:{type:"string"}}},comment:{type:"string"}},require$$13={$id:$id$5,$schema:$schema$5,type:type$4,optional,required:required$4,properties:properties$5},$id$4="query.json#",$schema$4="http://json-schema.org/draft-06/schema#",type$3="object",required$3=["name","value"],properties$4={name:{type:"string"},value:{type:"string"},comment:{type:"string"}},require$$14={$id:$id$4,$schema:$schema$4,type:type$3,required:required$3,properties:properties$4},$id$3="request.json#",$schema$3="http://json-schema.org/draft-06/schema#",type$2="object",required$2=["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],properties$3={method:{type:"string"},url:{type:"string",format:"uri"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},queryString:{type:"array",items:{$ref:"query.json#"}},postData:{$ref:"postData.json#"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}},require$$15={$id:$id$3,$schema:$schema$3,type:type$2,required:required$2,properties:properties$3},$id$2="response.json#",$schema$2="http://json-schema.org/draft-06/schema#",type$1="object",required$1=["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],properties$2={status:{type:"integer"},statusText:{type:"string"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},content:{$ref:"content.json#"},redirectURL:{type:"string"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}},require$$16={$id:$id$2,$schema:$schema$2,type:type$1,required:required$1,properties:properties$2},$id$1="timings.json#",$schema$1="http://json-schema.org/draft-06/schema#",required=["send","wait","receive"],properties$1={dns:{type:"number",min:-1},connect:{type:"number",min:-1},blocked:{type:"number",min:-1},send:{type:"number",min:-1},wait:{type:"number",min:-1},receive:{type:"number",min:-1},ssl:{type:"number",min:-1},comment:{type:"string"}},require$$17={$id:$id$1,$schema:$schema$1,required,properties:properties$1};var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={afterRequest:require$$0,beforeRequest:require$$1,browser:require$$2,cache:require$$3$1,content:require$$4,cookie:require$$5,creator:require$$6,entry:require$$7,har:require$$8,header:require$$9,log:require$$10,page:require$$11,pageTimings:require$$12,postData:require$$13,query:require$$14,request:require$$15,response:require$$16,timings:require$$17}),lib}const $schema="http://json-schema.org/draft-06/schema#",$id="http://json-schema.org/draft-06/schema#",title="Core schema meta-schema",definitions={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type=["object","boolean"],properties={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},title:{type:"string"},description:{type:"string"},default:{},examples:{type:"array",items:{}},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:{},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},require$$3={$schema,$id,title,definitions,type,properties,default:{}};var hasRequiredPromise;function requirePromise(){if(hasRequiredPromise)return promise;hasRequiredPromise=1;var n=requireAjv(),e=requireError(),o=requireLib(),l;function t(){var h=new n({allErrors:!0});return h.addMetaSchema(require$$3),h.addSchema(o),h}function u(h,v){v=v||{},l=l||t();var w=l.getSchema(h+".json");return new Promise(function(A,E){var C=w(v);C?A(v):E(new e(w.errors))})}return promise.afterRequest=function(h){return u("afterRequest",h)},promise.beforeRequest=function(h){return u("beforeRequest",h)},promise.browser=function(h){return u("browser",h)},promise.cache=function(h){return u("cache",h)},promise.content=function(h){return u("content",h)},promise.cookie=function(h){return u("cookie",h)},promise.creator=function(h){return u("creator",h)},promise.entry=function(h){return u("entry",h)},promise.har=function(h){return u("har",h)},promise.header=function(h){return u("header",h)},promise.log=function(h){return u("log",h)},promise.page=function(h){return u("page",h)},promise.pageTimings=function(h){return u("pageTimings",h)},promise.postData=function(h){return u("postData",h)},promise.query=function(h){return u("query",h)},promise.request=function(h){return u("request",h)},promise.response=function(h){return u("response",h)},promise.timings=function(h){return u("timings",h)},promise}var hasRequiredHar;function requireHar(){if(hasRequiredHar)return har;hasRequiredHar=1;var n=require$$1$5,e=require$$1$1,o=requirePromise(),l=extend$1;function t(u){this.request=u}return t.prototype.reducer=function(u,h){if(u[h.name]===void 0)return u[h.name]=h.value,u;var v=[u[h.name],h.value];return u[h.name]=v,u},t.prototype.prep=function(u){if(u.queryObj={},u.headersObj={},u.postData.jsonObj=!1,u.postData.paramsObj=!1,u.queryString&&u.queryString.length&&(u.queryObj=u.queryString.reduce(this.reducer,{})),u.headers&&u.headers.length&&(u.headersObj=u.headers.reduceRight(function(w,A){return w[A.name]=A.value,w},{})),u.cookies&&u.cookies.length){var h=u.cookies.map(function(w){return w.name+"="+w.value});h.length&&(u.headersObj.cookie=h.join("; "))}function v(w){return w.some(function(A){return u.postData.mimeType.indexOf(A)===0})}if(v(["multipart/mixed","multipart/related","multipart/form-data","multipart/alternative"]))u.postData.mimeType="multipart/form-data";else if(v(["application/x-www-form-urlencoded"]))u.postData.params?(u.postData.paramsObj=u.postData.params.reduce(this.reducer,{}),u.postData.text=e.stringify(u.postData.paramsObj)):u.postData.text="";else if(v(["text/json","text/x-json","application/json","application/x-json"])&&(u.postData.mimeType="application/json",u.postData.text))try{u.postData.jsonObj=JSON.parse(u.postData.text)}catch(w){this.request.debug(w),u.postData.mimeType="text/plain"}return u},t.prototype.options=function(u){if(!u.har)return u;var h={};if(l(h,u.har),h.log&&h.log.entries&&(h=h.log.entries[0]),h.url=h.url||u.url||u.uri||u.baseUrl||"/",h.httpVersion=h.httpVersion||"HTTP/1.1",h.queryString=h.queryString||[],h.headers=h.headers||[],h.cookies=h.cookies||[],h.postData=h.postData||{},h.postData.mimeType=h.postData.mimeType||"application/octet-stream",h.bodySize=0,h.headersSize=0,h.postData.size=0,!o.request(h))return u;var v=this.prep(h);v.url&&(u.url=v.url),v.method&&(u.method=v.method),Object.keys(v.queryObj).length&&(u.qs=v.queryObj),Object.keys(v.headersObj).length&&(u.headers=v.headersObj);function w(A){return v.postData.mimeType.indexOf(A)===0}return w("application/x-www-form-urlencoded")?u.form=v.postData.paramsObj:w("application/json")?v.postData.jsonObj&&(u.body=v.postData.jsonObj,u.json=!0):w("multipart/form-data")?(u.formData={},v.postData.params.forEach(function(A){var E={};if(!A.fileName&&!A.contentType){u.formData[A.name]=A.value;return}A.fileName&&!A.value?E.value=n.createReadStream(A.fileName):A.value&&(E.value=A.value),A.fileName&&(E.options={filename:A.fileName,contentType:A.contentType?A.contentType:null}),u.formData[A.name]=E})):v.postData.text&&(u.body=v.postData.text),u},har.Har=t,har}var auth={},rngBrowser={exports:{}},hasRequiredRngBrowser;function requireRngBrowser(){if(hasRequiredRngBrowser)return rngBrowser.exports;hasRequiredRngBrowser=1;var n=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(n){var e=new Uint8Array(16);rngBrowser.exports=function(){return n(e),e}}else{var o=new Array(16);rngBrowser.exports=function(){for(var t=0,u;t<16;t++)t&3||(u=Math.random()*4294967296),o[t]=u>>>((t&3)<<3)&255;return o}}return rngBrowser.exports}var bytesToUuid_1,hasRequiredBytesToUuid;function requireBytesToUuid(){if(hasRequiredBytesToUuid)return bytesToUuid_1;hasRequiredBytesToUuid=1;for(var n=[],e=0;e<256;++e)n[e]=(e+256).toString(16).substr(1);function o(l,t){var u=t||0,h=n;return[h[l[u++]],h[l[u++]],h[l[u++]],h[l[u++]],"-",h[l[u++]],h[l[u++]],"-",h[l[u++]],h[l[u++]],"-",h[l[u++]],h[l[u++]],"-",h[l[u++]],h[l[u++]],h[l[u++]],h[l[u++]],h[l[u++]],h[l[u++]]].join("")}return bytesToUuid_1=o,bytesToUuid_1}var v4_1,hasRequiredV4;function requireV4(){if(hasRequiredV4)return v4_1;hasRequiredV4=1;var n=requireRngBrowser(),e=requireBytesToUuid();function o(l,t,u){var h=t&&u||0;typeof l=="string"&&(t=l==="binary"?new Array(16):null,l=null),l=l||{};var v=l.random||(l.rng||n)();if(v[6]=v[6]&15|64,v[8]=v[8]&63|128,t)for(var w=0;w<16;++w)t[h+w]=v[w];return t||e(v)}return v4_1=o,v4_1}var hasRequiredAuth;function requireAuth(){if(hasRequiredAuth)return auth;hasRequiredAuth=1;var n=requireCaseless(),e=requireV4(),o=helpers$1,l=o.md5,t=o.toBase64;function u(h){this.request=h,this.hasAuth=!1,this.sentAuth=!1,this.bearerToken=null,this.user=null,this.pass=null}return u.prototype.basic=function(h,v,w){var A=this;(typeof h!="string"||v!==void 0&&typeof v!="string")&&A.request.emit("error",new Error("auth() received invalid user or password")),A.user=h,A.pass=v,A.hasAuth=!0;var E=h+":"+(v||"");if(w||typeof w>"u"){var C="Basic "+t(E);return A.sentAuth=!0,C}},u.prototype.bearer=function(h,v){var w=this;if(w.bearerToken=h,w.hasAuth=!0,v||typeof v>"u"){typeof h=="function"&&(h=h());var A="Bearer "+(h||"");return w.sentAuth=!0,A}},u.prototype.digest=function(h,v,w){for(var A=this,E={},C=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;;){var M=C.exec(w);if(!M)break;E[M[1]]=M[2]||M[3]}var P=function(fe,V,le,he,ye,L){var p=l(V+":"+le+":"+he);return fe&&fe.toLowerCase()==="md5-sess"?l(p+":"+ye+":"+L):p},I=/(^|,)\s*auth\s*($|,)/.test(E.qop)&&"auth",j=I&&"00000001",B=I&&e().replace(/-/g,""),F=P(E.algorithm,A.user,E.realm,A.pass,E.nonce,B),N=l(h+":"+v),ee=l(I?F+":"+E.nonce+":"+j+":"+B+":"+I+":"+N:F+":"+E.nonce+":"+N),Z={username:A.user,realm:E.realm,nonce:E.nonce,uri:v,qop:I,response:ee,nc:j,cnonce:B,algorithm:E.algorithm,opaque:E.opaque};w=[];for(var re in Z)Z[re]&&(re==="qop"||re==="nc"||re==="algorithm"?w.push(re+"="+Z[re]):w.push(re+'="'+Z[re]+'"'));return w="Digest "+w.join(", "),A.sentAuth=!0,w},u.prototype.onRequest=function(h,v,w,A){var E=this,C=E.request,M;A===void 0&&h===void 0?E.request.emit("error",new Error("no auth mechanism defined")):A!==void 0?M=E.bearer(A,w):M=E.basic(h,v,w),M&&C.setHeader("authorization",M)},u.prototype.onResponse=function(h){var v=this,w=v.request;if(!v.hasAuth||v.sentAuth)return null;var A=n(h.headers),E=A.get("www-authenticate"),C=E&&E.split(" ")[0].toLowerCase();switch(w.debug("reauth",C),C){case"basic":return v.basic(v.user,v.pass,!0);case"bearer":return v.bearer(v.bearerToken,!0);case"digest":return v.digest(w.method,w.path,E)}},auth.Auth=u,auth}var oauth={},oauthSign={},hasRequiredOauthSign;function requireOauthSign(){if(hasRequiredOauthSign)return oauthSign;hasRequiredOauthSign=1;var n=requireCryptoBrowserify();function e(M,P,I){return n.createHmac(I,M).update(P).digest("base64")}function o(M,P){return n.createSign("RSA-SHA1").update(P).sign(M,"base64")}function l(M){return encodeURIComponent(M).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}function t(M){var P,I,j=[];for(P in M)if(I=M[P],Array.isArray(I))for(var B=0;B<I.length;B++)j.push([P,I[B]]);else if(typeof I=="object")for(var F in I)j.push([P+"["+F+"]",I[F]]);else j.push([P,I]);return j}function u(M,P){return M>P?1:M<P?-1:0}function h(M,P,I){var j=t(I).map(function(F){return[l(F[0]),l(F[1]||"")]}).sort(function(F,N){return u(F[0],N[0])||u(F[1],N[1])}).map(function(F){return F.join("=")}).join("&"),B=[l(M?M.toUpperCase():"GET"),l(P),l(j)].join("&");return B}function v(M,P,I,j,B){var F=h(M,P,I),N=[j||"",B||""].map(l).join("&");return e(N,F,"sha1")}function w(M,P,I,j,B){var F=h(M,P,I),N=[j||"",B||""].map(l).join("&");return e(N,F,"sha256")}function A(M,P,I,j,B){var F=h(M,P,I),N=j||"";return o(N,F)}function E(M,P){var I=[M||"",P||""].map(l).join("&");return I}function C(M,P,I,j,B,F){var N,ee=1;switch(M){case"RSA-SHA1":N=A;break;case"HMAC-SHA1":N=v;break;case"HMAC-SHA256":N=w;break;case"PLAINTEXT":N=E,ee=4;break;default:throw new Error("Signature method not supported: "+M)}return N.apply(null,[].slice.call(arguments,ee))}return oauthSign.hmacsign=v,oauthSign.hmacsign256=w,oauthSign.rsasign=A,oauthSign.plaintext=E,oauthSign.sign=C,oauthSign.rfc3986=l,oauthSign.generateBase=h,oauthSign}var hasRequiredOauth;function requireOauth(){if(hasRequiredOauth)return oauth;hasRequiredOauth=1;var n=require$$2$2,e=requireLib$1(),o=requireCaseless(),l=requireV4(),t=requireOauthSign(),u=requireCryptoBrowserify(),h=safeBufferExports$1.Buffer;function v(w){this.request=w,this.params=null}return v.prototype.buildParams=function(w,A,E,C,M,P){var I={};for(var j in w)I["oauth_"+j]=w[j];I.oauth_version||(I.oauth_version="1.0"),I.oauth_timestamp||(I.oauth_timestamp=Math.floor(Date.now()/1e3).toString()),I.oauth_nonce||(I.oauth_nonce=l().replace(/-/g,"")),I.oauth_signature_method||(I.oauth_signature_method="HMAC-SHA1");var B=I.oauth_consumer_secret||I.oauth_private_key;delete I.oauth_consumer_secret,delete I.oauth_private_key;var F=I.oauth_token_secret;delete I.oauth_token_secret;var N=I.oauth_realm;delete I.oauth_realm,delete I.oauth_transport_method;var ee=A.protocol+"//"+A.host+A.pathname,Z=P.parse([].concat(C,M,P.stringify(I)).join("&"));return I.oauth_signature=t.sign(I.oauth_signature_method,E,ee,Z,B,F),N&&(I.realm=N),I},v.prototype.buildBodyHash=function(w,A){["HMAC-SHA1","RSA-SHA1"].indexOf(w.signature_method||"HMAC-SHA1")<0&&this.request.emit("error",new Error("oauth: "+w.signature_method+" signature_method not supported with body_hash signing."));var E=u.createHash("sha1");E.update(A||"");var C=E.digest("hex");return h.from(C,"hex").toString("base64")},v.prototype.concatParams=function(w,A,E){E=E||"";var C=Object.keys(w).filter(function(M){return M!=="realm"&&M!=="oauth_signature"}).sort();return w.realm&&C.splice(0,0,"realm"),C.push("oauth_signature"),C.map(function(M){return M+"="+E+t.rfc3986(w[M])+E}).join(A)},v.prototype.onRequest=function(w){var A=this;A.params=w;var E=A.request.uri||{},C=A.request.method||"",M=o(A.request.headers),P=A.request.body||"",I=A.request.qsLib||e,j,B,F=M.get("content-type")||"",N="application/x-www-form-urlencoded",ee=w.transport_method||"header";F.slice(0,N.length)===N&&(F=N,j=P),E.query&&(B=E.query),ee==="body"&&(C!=="POST"||F!==N)&&A.request.emit("error",new Error("oauth: transport_method of body requires POST and content-type "+N)),!j&&typeof w.body_hash=="boolean"&&(w.body_hash=A.buildBodyHash(w,A.request.body.toString()));var Z=A.buildParams(w,E,C,B,j,I);switch(ee){case"header":A.request.setHeader("Authorization","OAuth "+A.concatParams(Z,",",'"'));break;case"query":var re=A.request.uri.href+=(B?"&":"?")+A.concatParams(Z,"&");A.request.uri=n.parse(re),A.request.path=A.request.uri.path;break;case"body":A.request.body=(j?j+"&":"")+A.concatParams(Z,"&");break;default:A.request.emit("error",new Error("oauth: transport_method invalid"))}},oauth.OAuth=v,oauth}var hawk={},hasRequiredHawk;function requireHawk(){return hasRequiredHawk||(hasRequiredHawk=1,function(n){var e=requireCryptoBrowserify();function o(t){var u=(t+1)*6,h=e.randomBytes(Math.ceil(u/8)),v=h.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return v.slice(0,t)}function l(t,u,h){var v=e.createHash(u);return v.update(`hawk.1.payload
`),v.update((h?h.split(";")[0].trim().toLowerCase():"")+`
`),v.update(t||""),v.update(`
`),v.digest("base64")}n.calculateMac=function(t,u){var h=`hawk.1.header
`+u.ts+`
`+u.nonce+`
`+(u.method||"").toUpperCase()+`
`+u.resource+`
`+u.host.toLowerCase()+`
`+u.port+`
`+(u.hash||"")+`
`;u.ext&&(h=h+u.ext.replace("\\","\\\\").replace(`
`,"\\n")),h=h+`
`,u.app&&(h=h+u.app+`
`+(u.dlg||"")+`
`);var v=e.createHmac(t.algorithm,t.key).update(h),w=v.digest("base64");return w},n.header=function(t,u,h){var v=h.timestamp||Math.floor((Date.now()+(h.localtimeOffsetMsec||0))/1e3),w=h.credentials;if(!w||!w.id||!w.key||!w.algorithm||["sha1","sha256"].indexOf(w.algorithm)===-1)return"";var A={ts:v,nonce:h.nonce||o(6),method:u,resource:t.pathname+(t.search||""),host:t.hostname,port:t.port||(t.protocol==="http:"?80:443),hash:h.hash,ext:h.ext,app:h.app,dlg:h.dlg};!A.hash&&(h.payload||h.payload==="")&&(A.hash=l(h.payload,w.algorithm,h.contentType));var E=n.calculateMac(w,A),C=A.ext!==null&&A.ext!==void 0&&A.ext!=="",M='Hawk id="'+w.id+'", ts="'+A.ts+'", nonce="'+A.nonce+(A.hash?'", hash="'+A.hash:"")+(C?'", ext="'+A.ext.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):"")+'", mac="'+E+'"';return A.app&&(M=M+', app="'+A.app+(A.dlg?'", dlg="'+A.dlg:"")+'"'),M}}(hawk)),hawk}var multipart={},delayed_stream,hasRequiredDelayed_stream;function requireDelayed_stream(){if(hasRequiredDelayed_stream)return delayed_stream;hasRequiredDelayed_stream=1;var n=requireStreamBrowserify().Stream,e=util$6;delayed_stream=o;function o(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}return e.inherits(o,n),o.create=function(l,t){var u=new this;t=t||{};for(var h in t)u[h]=t[h];u.source=l;var v=l.emit;return l.emit=function(){return u._handleEmit(arguments),v.apply(l,arguments)},l.on("error",function(){}),u.pauseStream&&l.pause(),u},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach((function(l){this.emit.apply(this,l)}).bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var l=n.prototype.pipe.apply(this,arguments);return this.resume(),l},o.prototype._handleEmit=function(l){if(this._released){this.emit.apply(this,l);return}l[0]==="data"&&(this.dataSize+=l[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(l)},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var l="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(l))}},delayed_stream}var combined_stream,hasRequiredCombined_stream;function requireCombined_stream(){if(hasRequiredCombined_stream)return combined_stream;hasRequiredCombined_stream=1;var n=util$6,e=requireStreamBrowserify().Stream,o=requireDelayed_stream();combined_stream=l;function l(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}return n.inherits(l,e),l.create=function(t){var u=new this;t=t||{};for(var h in t)u[h]=t[h];return u},l.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer$C.isBuffer(t)},l.prototype.append=function(t){var u=l.isStreamLike(t);if(u){if(!(t instanceof o)){var h=o.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=h}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this},l.prototype.pipe=function(t,u){return e.prototype.pipe.call(this,t,u),this.resume(),t},l.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},l.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var u=t;u((function(h){var v=l.isStreamLike(h);v&&(h.on("data",this._checkDataSize.bind(this)),this._handleErrors(h)),this._pipeNext(h)}).bind(this))},l.prototype._pipeNext=function(t){this._currentStream=t;var u=l.isStreamLike(t);if(u){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var h=t;this.write(h),this._getNext()},l.prototype._handleErrors=function(t){var u=this;t.on("error",function(h){u._emitError(h)})},l.prototype.write=function(t){this.emit("data",t)},l.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))},l.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")},l.prototype.end=function(){this._reset(),this.emit("end")},l.prototype.destroy=function(){this._reset(),this.emit("close")},l.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},l.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}},l.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(u){u.dataSize&&(t.dataSize+=u.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},l.prototype._emitError=function(t){this._reset(),this.emit("error",t)},combined_stream}var hasRequiredMultipart;function requireMultipart(){if(hasRequiredMultipart)return multipart;hasRequiredMultipart=1;var n=requireV4(),e=requireCombined_stream(),o=requireIsstream(),l=safeBufferExports$1.Buffer;function t(u){this.request=u,this.boundary=n(),this.chunked=!1,this.body=null}return t.prototype.isChunked=function(u){var h=this,v=!1,w=u.data||u;return w.forEach||h.request.emit("error",new Error("Argument error, options.multipart.")),u.chunked!==void 0&&(v=u.chunked),h.request.getHeader("transfer-encoding")==="chunked"&&(v=!0),v||w.forEach(function(A){typeof A.body>"u"&&h.request.emit("error",new Error("Body attribute missing in multipart.")),o(A.body)&&(v=!0)}),v},t.prototype.setHeaders=function(u){var h=this;u&&!h.request.hasHeader("transfer-encoding")&&h.request.setHeader("transfer-encoding","chunked");var v=h.request.getHeader("content-type");!v||v.indexOf("multipart")===-1?h.request.setHeader("content-type","multipart/related; boundary="+h.boundary):v.indexOf("boundary")!==-1?h.boundary=v.replace(/.*boundary=([^\s;]+).*/,"$1"):h.request.setHeader("content-type",v+"; boundary="+h.boundary)},t.prototype.build=function(u,h){var v=this,w=h?new e:[];function A(E){return typeof E=="number"&&(E=E.toString()),h?w.append(E):w.push(l.from(E))}return v.request.preambleCRLF&&A(`\r
`),u.forEach(function(E){var C="--"+v.boundary+`\r
`;Object.keys(E).forEach(function(M){M!=="body"&&(C+=M+": "+E[M]+`\r
`)}),C+=`\r
`,A(C),A(E.body),A(`\r
`)}),A("--"+v.boundary+"--"),v.request.postambleCRLF&&A(`\r
`),w},t.prototype.onRequest=function(u){var h=this,v=h.isChunked(u),w=u.data||u;h.setHeaders(v),h.chunked=v,h.body=h.build(w,v)},multipart.Multipart=t,multipart}var redirect={},hasRequiredRedirect;function requireRedirect(){if(hasRequiredRedirect)return redirect;hasRequiredRedirect=1;var n=require$$2$2,e=/^https?:/;function o(l){this.request=l,this.followRedirect=!0,this.followRedirects=!0,this.followAllRedirects=!1,this.followOriginalHttpMethod=!1,this.allowRedirect=function(){return!0},this.maxRedirects=10,this.redirects=[],this.redirectsFollowed=0,this.removeRefererHeader=!1}return o.prototype.onRequest=function(l){var t=this;l.maxRedirects!==void 0&&(t.maxRedirects=l.maxRedirects),typeof l.followRedirect=="function"&&(t.allowRedirect=l.followRedirect),l.followRedirect!==void 0&&(t.followRedirects=!!l.followRedirect),l.followAllRedirects!==void 0&&(t.followAllRedirects=l.followAllRedirects),(t.followRedirects||t.followAllRedirects)&&(t.redirects=t.redirects||[]),l.removeRefererHeader!==void 0&&(t.removeRefererHeader=l.removeRefererHeader),l.followOriginalHttpMethod!==void 0&&(t.followOriginalHttpMethod=l.followOriginalHttpMethod)},o.prototype.redirectTo=function(l){var t=this,u=t.request,h=null;if(l.statusCode>=300&&l.statusCode<400&&l.caseless.has("location")){var v=l.caseless.get("location");if(u.debug("redirect",v),t.followAllRedirects)h=v;else if(t.followRedirects)switch(u.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:h=v;break}}else if(l.statusCode===401){var w=u._auth.onResponse(l);w&&(u.setHeader("authorization",w),h=u.uri)}return h},o.prototype.onResponse=function(l){var t=this,u=t.request,h=t.redirectTo(l);if(!h||!t.allowRedirect.call(u,l))return!1;if(u.debug("redirect to",h),l.resume&&l.resume(),t.redirectsFollowed>=t.maxRedirects)return u.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+u.uri.href)),!1;t.redirectsFollowed+=1,e.test(h)||(h=n.resolve(u.uri.href,h));var v=u.uri;return u.uri=n.parse(h),u.uri.protocol!==v.protocol&&delete u.agent,t.redirects.push({statusCode:l.statusCode,redirectUri:h}),t.followAllRedirects&&u.method!=="HEAD"&&l.statusCode!==401&&l.statusCode!==307&&(u.method=t.followOriginalHttpMethod?u.method:"GET"),delete u.src,delete u.req,delete u._started,l.statusCode!==401&&l.statusCode!==307&&(delete u.body,delete u._form,u.headers&&(u.removeHeader("host"),u.removeHeader("content-type"),u.removeHeader("content-length"),u.uri.hostname!==u.originalHost.split(":")[0]&&u.removeHeader("authorization"))),t.removeRefererHeader||u.setHeader("referer",v.href),u.emit("redirect"),u.init(),!0},redirect.Redirect=o,redirect}var tunnel={},tunnelAgent={},hasRequiredTunnelAgent;function requireTunnelAgent(){if(hasRequiredTunnelAgent)return tunnelAgent;hasRequiredTunnelAgent=1;var n=require$$1$5,e=requireStreamHttp(),o=requireHttpsBrowserify(),l=requireEvents(),t=requireAssert$1(),u=util$6,h=safeBufferExports$1.Buffer;tunnelAgent.httpOverHttp=v,tunnelAgent.httpsOverHttp=w,tunnelAgent.httpOverHttps=A,tunnelAgent.httpsOverHttps=E;function v(j){var B=new C(j);return B.request=e.request,B}function w(j){var B=new C(j);return B.request=e.request,B.createSocket=M,B.defaultPort=443,B}function A(j){var B=new C(j);return B.request=o.request,B}function E(j){var B=new C(j);return B.request=o.request,B.createSocket=M,B.defaultPort=443,B}function C(j){var B=this;B.options=j||{},B.proxyOptions=B.options.proxy||{},B.maxSockets=B.options.maxSockets||e.Agent.defaultMaxSockets,B.requests=[],B.sockets=[],B.on("free",function(N,ee,Z){for(var re=0,fe=B.requests.length;re<fe;++re){var V=B.requests[re];if(V.host===ee&&V.port===Z){B.requests.splice(re,1),V.request.onSocket(N);return}}N.destroy(),B.removeSocket(N)})}u.inherits(C,l.EventEmitter),C.prototype.addRequest=function(B,F){var N=this;if(typeof F=="string"&&(F={host:F,port:arguments[2],path:arguments[3]}),N.sockets.length>=this.maxSockets){N.requests.push({host:F.host,port:F.port,request:B});return}N.createConnection({host:F.host,port:F.port,request:B})},C.prototype.createConnection=function(B){var F=this;F.createSocket(B,function(N){N.on("free",ee),N.on("close",Z),N.on("agentRemove",Z),B.request.onSocket(N);function ee(){F.emit("free",N,B.host,B.port)}function Z(re){F.removeSocket(N),N.removeListener("free",ee),N.removeListener("close",Z),N.removeListener("agentRemove",Z)}})},C.prototype.createSocket=function(B,F){var N=this,ee={};N.sockets.push(ee);var Z=P({},N.proxyOptions,{method:"CONNECT",path:B.host+":"+B.port,agent:!1});Z.proxyAuth&&(Z.headers=Z.headers||{},Z.headers["Proxy-Authorization"]="Basic "+h.from(Z.proxyAuth).toString("base64")),I("making CONNECT request");var re=N.request(Z);re.useChunkedEncodingByDefault=!1,re.once("response",fe),re.once("upgrade",V),re.once("connect",le),re.once("error",he),re.end();function fe(ye){ye.upgrade=!0}function V(ye,L,p){process$1.nextTick(function(){le(ye,L,p)})}function le(ye,L,p){if(re.removeAllListeners(),L.removeAllListeners(),ye.statusCode===200)t.equal(p.length,0),I("tunneling connection has established"),N.sockets[N.sockets.indexOf(ee)]=L,F(L);else{I("tunneling socket could not be established, statusCode=%d",ye.statusCode);var y=new Error("tunneling socket could not be established, statusCode="+ye.statusCode);y.code="ECONNRESET",B.request.emit("error",y),N.removeSocket(ee)}}function he(ye){re.removeAllListeners(),I(`tunneling socket could not be established, cause=%s
`,ye.message,ye.stack);var L=new Error("tunneling socket could not be established, cause="+ye.message);L.code="ECONNRESET",B.request.emit("error",L),N.removeSocket(ee)}},C.prototype.removeSocket=function(B){var F=this.sockets.indexOf(B);if(F!==-1){this.sockets.splice(F,1);var N=this.requests.shift();N&&this.createConnection(N)}};function M(j,B){var F=this;C.prototype.createSocket.call(F,j,function(N){var ee=n.connect(0,P({},F.options,{servername:j.host,socket:N}));F.sockets[F.sockets.indexOf(N)]=ee,B(ee)})}function P(j){for(var B=1,F=arguments.length;B<F;++B){var N=arguments[B];if(typeof N=="object")for(var ee=Object.keys(N),Z=0,re=ee.length;Z<re;++Z){var fe=ee[Z];N[fe]!==void 0&&(j[fe]=N[fe])}}return j}var I;return process$1.env.NODE_DEBUG&&/\btunnel\b/.test(process$1.env.NODE_DEBUG)?I=function(){var j=Array.prototype.slice.call(arguments);typeof j[0]=="string"?j[0]="TUNNEL: "+j[0]:j.unshift("TUNNEL:"),console.error.apply(console,j)}:I=function(){},tunnelAgent.debug=I,tunnelAgent}var hasRequiredTunnel;function requireTunnel(){if(hasRequiredTunnel)return tunnel;hasRequiredTunnel=1;var n=require$$2$2,e=requireTunnelAgent(),o=["accept","accept-charset","accept-encoding","accept-language","accept-ranges","cache-control","content-encoding","content-language","content-location","content-md5","content-range","content-type","connection","date","expect","max-forwards","pragma","referer","te","user-agent","via"],l=["proxy-authorization"];function t(E){var C=E.port,M=E.protocol,P=E.hostname+":";return C?P+=C:M==="https:"?P+="443":P+="80",P}function u(E,C){var M=C.reduce(function(P,I){return P[I.toLowerCase()]=!0,P},{});return Object.keys(E).filter(function(P){return M[P.toLowerCase()]}).reduce(function(P,I){return P[I]=E[I],P},{})}function h(E,C){var M=E.proxy,P={proxy:{host:M.hostname,port:+M.port,proxyAuth:M.auth,headers:C},headers:E.headers,ca:E.ca,cert:E.cert,key:E.key,passphrase:E.passphrase,pfx:E.pfx,ciphers:E.ciphers,rejectUnauthorized:E.rejectUnauthorized,secureOptions:E.secureOptions,secureProtocol:E.secureProtocol};return P}function v(E,C){var M=E.protocol==="https:"?"https":"http",P=C.protocol==="https:"?"Https":"Http";return[M,P].join("Over")}function w(E){var C=E.uri,M=E.proxy,P=v(C,M);return e[P]}function A(E){this.request=E,this.proxyHeaderWhiteList=o,this.proxyHeaderExclusiveList=[],typeof E.tunnel<"u"&&(this.tunnelOverride=E.tunnel)}return A.prototype.isEnabled=function(){var E=this,C=E.request;return typeof E.tunnelOverride<"u"?E.tunnelOverride:C.uri.protocol==="https:"},A.prototype.setup=function(E){var C=this,M=C.request;if(E=E||{},typeof M.proxy=="string"&&(M.proxy=n.parse(M.proxy)),!M.proxy||!M.tunnel)return!1;E.proxyHeaderWhiteList&&(C.proxyHeaderWhiteList=E.proxyHeaderWhiteList),E.proxyHeaderExclusiveList&&(C.proxyHeaderExclusiveList=E.proxyHeaderExclusiveList);var P=C.proxyHeaderExclusiveList.concat(l),I=C.proxyHeaderWhiteList.concat(P),j=u(M.headers,I);j.host=t(M.uri),P.forEach(M.removeHeader,M);var B=w(M),F=h(M,j);return M.agent=B(F),!0},A.defaultProxyHeaderWhiteList=o,A.defaultProxyHeaderExclusiveList=l,tunnel.Tunnel=A,tunnel}var performanceNow={exports:{}},hasRequiredPerformanceNow;function requirePerformanceNow(){return hasRequiredPerformanceNow||(hasRequiredPerformanceNow=1,(function(){var n,e,o,l,t,u;typeof performance<"u"&&performance!==null&&performance.now?performanceNow.exports=function(){return performance.now()}:typeof process$1<"u"&&process$1!==null&&process$1.hrtime?(performanceNow.exports=function(){return(n()-t)/1e6},e=process$1.hrtime,n=function(){var h;return h=e(),h[0]*1e9+h[1]},l=n(),u=process$1.uptime()*1e9,t=l-u):Date.now?(performanceNow.exports=function(){return Date.now()-o},o=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-o},o=new Date().getTime())}).call(commonjsGlobal$1)),performanceNow.exports}var request$2,hasRequiredRequest;function requireRequest(){if(hasRequiredRequest)return request$2;hasRequiredRequest=1;var n=requireStreamHttp(),e=requireHttpsBrowserify(),o=require$$2$2,l=util$6,t=requireStreamBrowserify(),u=requireLib$5(),h=requireAwsSign2(),v=requireAws4(),w=requireLib$2(),A=mimeTypes,E=requireCaseless(),C=requireForeverAgent(),M=requireBrowser(),P=extend$1,I=requireIsstream(),j=requireIsTypedarray().strict,B=helpers$1,F=cookies$1,N=requireGetProxyFromURI(),ee=requireQuerystring().Querystring,Z=requireHar().Har,re=requireAuth().Auth,fe=requireOauth().OAuth,V=requireHawk(),le=requireMultipart().Multipart,he=requireRedirect().Redirect,ye=requireTunnel().Tunnel,L=requirePerformanceNow(),p=safeBufferExports$1.Buffer,y=B.safeStringify,S=B.isReadStream,c=B.toBase64,m=B.defer,x=B.copy,T=B.version,b=F.jar(),d={};function k(U,z){var ie={};for(var de in z){var me=U.indexOf(de)===-1;me&&(ie[de]=z[de])}return ie}function D(U,z){var ie={};for(var de in z){var me=U.indexOf(de)!==-1,pe=typeof z[de]=="function";me&&pe||(ie[de]=z[de])}return ie}function O(){var U=this;return{uri:U.uri,method:U.method,headers:U.headers}}function Q(){var U=this;return{statusCode:U.statusCode,body:U.body,headers:U.headers,request:O.call(U.request)}}function J(U){var z=this;U.har&&(z._har=new Z(z),U=z._har.options(U)),t.Stream.call(z);var ie=Object.keys(J.prototype),de=k(ie,U);P(z,de),U=D(ie,U),z.readable=!0,z.writable=!0,U.method&&(z.explicitMethod=!0),z._qs=new ee(z),z._auth=new re(z),z._oauth=new fe(z),z._multipart=new le(z),z._redirect=new he(z),z._tunnel=new ye(z),z.init(U)}l.inherits(J,t.Stream),J.debug=process$1.env.NODE_DEBUG&&/\brequest\b/.test(process$1.env.NODE_DEBUG);function X(){J.debug&&console.error("REQUEST %s",l.format.apply(l,arguments))}return J.prototype.debug=X,J.prototype.init=function(U){var z=this;U||(U={}),z.headers=z.headers?x(z.headers):{};for(var ie in z.headers)typeof z.headers[ie]>"u"&&delete z.headers[ie];if(E.httpify(z,z.headers),z.method||(z.method=U.method||"GET"),z.localAddress||(z.localAddress=U.localAddress),z._qs.init(U),X(U),!z.pool&&z.pool!==!1&&(z.pool=d),z.dests=z.dests||[],z.__isRequestRequest=!0,!z._callback&&z.callback&&(z._callback=z.callback,z.callback=function(){z._callbackCalled||(z._callbackCalled=!0,z._callback.apply(z,arguments))},z.on("error",z.callback.bind()),z.on("complete",z.callback.bind(z,null))),!z.uri&&z.url&&(z.uri=z.url,delete z.url),z.baseUrl){if(typeof z.baseUrl!="string")return z.emit("error",new Error("options.baseUrl must be a string"));if(typeof z.uri!="string")return z.emit("error",new Error("options.uri must be a string when using options.baseUrl"));if(z.uri.indexOf("//")===0||z.uri.indexOf("://")!==-1)return z.emit("error",new Error("options.uri must be a path when using options.baseUrl"));var de=z.baseUrl.lastIndexOf("/")===z.baseUrl.length-1,me=z.uri.indexOf("/")===0;de&&me?z.uri=z.baseUrl+z.uri.slice(1):de||me?z.uri=z.baseUrl+z.uri:z.uri===""?z.uri=z.baseUrl:z.uri=z.baseUrl+"/"+z.uri,delete z.baseUrl}if(!z.uri)return z.emit("error",new Error("options.uri is a required argument"));if(typeof z.uri=="string"&&(z.uri=o.parse(z.uri)),z.uri.href||(z.uri.href=o.format(z.uri)),z.uri.protocol==="unix:")return z.emit("error",new Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"));if(z.uri.host==="unix"&&z.enableUnixSocket(),z.strictSSL===!1&&(z.rejectUnauthorized=!1),z.uri.pathname||(z.uri.pathname="/"),!(z.uri.host||z.uri.hostname&&z.uri.port)&&!z.uri.isUnix){var pe=o.format(z.uri),qe='Invalid URI "'+pe+'"';return Object.keys(U).length===0&&(qe+=". This can be caused by a crappy redirection."),z.abort(),z.emit("error",new Error(qe))}if(z.hasOwnProperty("proxy")||(z.proxy=N(z.uri)),z.tunnel=z._tunnel.isEnabled(),z.proxy&&z._tunnel.setup(U),z._redirect.onRequest(U),z.setHost=!1,!z.hasHeader("host")){var mt=z.originalHostHeaderName||"host";z.setHeader(mt,z.uri.host),z.uri.port&&(z.uri.port==="80"&&z.uri.protocol==="http:"||z.uri.port==="443"&&z.uri.protocol==="https:")&&z.setHeader(mt,z.uri.hostname),z.setHost=!0}if(z.jar(z._jar||U.jar),z.uri.port||(z.uri.protocol==="http:"?z.uri.port=80:z.uri.protocol==="https:"&&(z.uri.port=443)),z.proxy&&!z.tunnel?(z.port=z.proxy.port,z.host=z.proxy.hostname):(z.port=z.uri.port,z.host=z.uri.hostname),U.form&&z.form(U.form),U.formData){var st=U.formData,dt=z.form(),Tt=function(Kt,Me){Me&&Me.hasOwnProperty("value")&&Me.hasOwnProperty("options")?dt.append(Kt,Me.value,Me.options):dt.append(Kt,Me)};for(var lt in st)if(st.hasOwnProperty(lt)){var Je=st[lt];if(Je instanceof Array)for(var ht=0;ht<Je.length;ht++)Tt(lt,Je[ht]);else Tt(lt,Je)}}if(U.qs&&z.qs(U.qs),z.uri.path?z.path=z.uri.path:z.path=z.uri.pathname+(z.uri.search||""),z.path.length===0&&(z.path="/"),U.aws&&z.aws(U.aws),U.hawk&&z.hawk(U.hawk),U.httpSignature&&z.httpSignature(U.httpSignature),U.auth&&(Object.prototype.hasOwnProperty.call(U.auth,"username")&&(U.auth.user=U.auth.username),Object.prototype.hasOwnProperty.call(U.auth,"password")&&(U.auth.pass=U.auth.password),z.auth(U.auth.user,U.auth.pass,U.auth.sendImmediately,U.auth.bearer)),z.gzip&&!z.hasHeader("accept-encoding")&&z.setHeader("accept-encoding","gzip, deflate"),z.uri.auth&&!z.hasHeader("authorization")){var at=z.uri.auth.split(":").map(function(Kt){return z._qs.unescape(Kt)});z.auth(at[0],at.slice(1).join(":"),!0)}if(!z.tunnel&&z.proxy&&z.proxy.auth&&!z.hasHeader("proxy-authorization")){var bt=z.proxy.auth.split(":").map(function(Kt){return z._qs.unescape(Kt)}),jt="Basic "+c(bt.join(":"));z.setHeader("proxy-authorization",jt)}z.proxy&&!z.tunnel&&(z.path=z.uri.protocol+"//"+z.uri.host+z.path),U.json&&z.json(U.json),U.multipart&&z.multipart(U.multipart),U.time&&(z.timing=!0,z.elapsedTime=z.elapsedTime||0);function Ge(){if(j(z.body)&&(z.body=p.from(z.body)),!z.hasHeader("content-length")){var Kt;typeof z.body=="string"?Kt=p.byteLength(z.body):Array.isArray(z.body)?Kt=z.body.reduce(function(Me,te){return Me+te.length},0):Kt=z.body.length,Kt?z.setHeader("content-length",Kt):z.emit("error",new Error("Argument error, options.body."))}}z.body&&!I(z.body)&&Ge(),U.oauth?z.oauth(U.oauth):z._oauth.params&&z.hasHeader("authorization")&&z.oauth(z._oauth.params);var Qe=z.proxy&&!z.tunnel?z.proxy.protocol:z.uri.protocol,Wt={"http:":n,"https:":e},Et=z.httpModules||{};if(z.httpModule=Et[Qe]||Wt[Qe],!z.httpModule)return z.emit("error",new Error("Invalid protocol: "+Qe));if(U.ca&&(z.ca=U.ca),!z.agent)if(U.agentOptions&&(z.agentOptions=U.agentOptions),U.agentClass)z.agentClass=U.agentClass;else if(U.forever){var Ct=T();Ct.major===0&&Ct.minor<=10?z.agentClass=Qe==="http:"?C:C.SSL:(z.agentClass=z.httpModule.Agent,z.agentOptions=z.agentOptions||{},z.agentOptions.keepAlive=!0)}else z.agentClass=z.httpModule.Agent;z.pool===!1?z.agent=!1:z.agent=z.agent||z.getNewAgent(),z.on("pipe",function(Kt){if(z.ntick&&z._started&&z.emit("error",new Error("You cannot pipe to this stream after the outbound request has started.")),z.src=Kt,S(Kt))z.hasHeader("content-type")||z.setHeader("content-type",A.lookup(Kt.path));else{if(Kt.headers)for(var Me in Kt.headers)z.hasHeader(Me)||z.setHeader(Me,Kt.headers[Me]);z._json&&!z.hasHeader("content-type")&&z.setHeader("content-type","application/json"),Kt.method&&!z.explicitMethod&&(z.method=Kt.method)}}),m(function(){if(!z._aborted){var Kt=function(){if(z._form&&(z._auth.hasAuth?z._auth.hasAuth&&z._auth.sentAuth&&z._form.pipe(z):z._form.pipe(z)),z._multipart&&z._multipart.chunked&&z._multipart.body.pipe(z),z.body)I(z.body)?z.body.pipe(z):(Ge(),Array.isArray(z.body)?z.body.forEach(function(Me){z.write(Me)}):z.write(z.body),z.end());else if(z.requestBodyStream)console.warn("options.requestBodyStream is deprecated, please pass the request object to stream.pipe."),z.requestBodyStream.pipe(z);else if(!z.src){if(z._auth.hasAuth&&!z._auth.sentAuth){z.end();return}z.method!=="GET"&&typeof z.method<"u"&&z.setHeader("content-length",0),z.end()}};z._form&&!z.hasHeader("content-length")?(z.setHeader(z._form.getHeaders(),!0),z._form.getLength(function(Me,te){!Me&&!isNaN(te)&&z.setHeader("content-length",te),Kt()})):Kt(),z.ntick=!0}})},J.prototype.getNewAgent=function(){var U=this,z=U.agentClass,ie={};if(U.agentOptions)for(var de in U.agentOptions)ie[de]=U.agentOptions[de];U.ca&&(ie.ca=U.ca),U.ciphers&&(ie.ciphers=U.ciphers),U.secureProtocol&&(ie.secureProtocol=U.secureProtocol),U.secureOptions&&(ie.secureOptions=U.secureOptions),typeof U.rejectUnauthorized<"u"&&(ie.rejectUnauthorized=U.rejectUnauthorized),U.cert&&U.key&&(ie.key=U.key,ie.cert=U.cert),U.pfx&&(ie.pfx=U.pfx),U.passphrase&&(ie.passphrase=U.passphrase);var me="";z!==U.httpModule.Agent&&(me+=z.name);var pe=U.proxy;typeof pe=="string"&&(pe=o.parse(pe));var qe=pe&&pe.protocol==="https:"||this.uri.protocol==="https:";return qe&&(ie.ca&&(me&&(me+=":"),me+=ie.ca),typeof ie.rejectUnauthorized<"u"&&(me&&(me+=":"),me+=ie.rejectUnauthorized),ie.cert&&(me&&(me+=":"),me+=ie.cert.toString("ascii")+ie.key.toString("ascii")),ie.pfx&&(me&&(me+=":"),me+=ie.pfx.toString("ascii")),ie.ciphers&&(me&&(me+=":"),me+=ie.ciphers),ie.secureProtocol&&(me&&(me+=":"),me+=ie.secureProtocol),ie.secureOptions&&(me&&(me+=":"),me+=ie.secureOptions)),U.pool===d&&!me&&Object.keys(ie).length===0&&U.httpModule.globalAgent?U.httpModule.globalAgent:(me=U.uri.protocol+me,U.pool[me]||(U.pool[me]=new z(ie),U.pool.maxSockets&&(U.pool[me].maxSockets=U.pool.maxSockets)),U.pool[me])},J.prototype.start=function(){var U=this;if(U.timing)var z=new Date().getTime(),ie=L();if(!U._aborted){U._started=!0,U.method=U.method||"GET",U.href=U.uri.href,U.src&&U.src.stat&&U.src.stat.size&&!U.hasHeader("content-length")&&U.setHeader("content-length",U.src.stat.size),U._aws&&U.aws(U._aws,!0);var de=x(U);delete de.auth,X("make request",U.uri.href),delete de.timeout;try{U.req=U.httpModule.request(de)}catch(pe){U.emit("error",pe);return}U.timing&&(U.startTime=z,U.startTimeNow=ie,U.timings={});var me;U.timeout&&!U.timeoutTimer&&(U.timeout<0?me=0:typeof U.timeout=="number"&&isFinite(U.timeout)&&(me=U.timeout)),U.req.on("response",U.onRequestResponse.bind(U)),U.req.on("error",U.onRequestError.bind(U)),U.req.on("drain",function(){U.emit("drain")}),U.req.on("socket",function(pe){var qe=pe._connecting||pe.connecting;if(U.timing&&(U.timings.socket=L()-U.startTimeNow,qe)){var mt=function(){U.timings.lookup=L()-U.startTimeNow},st=function(){U.timings.connect=L()-U.startTimeNow};pe.once("lookup",mt),pe.once("connect",st),U.req.once("error",function(){pe.removeListener("lookup",mt),pe.removeListener("connect",st)})}var dt=function(){U.req.setTimeout(me,function(){if(U.req){U.abort();var lt=new Error("ESOCKETTIMEDOUT");lt.code="ESOCKETTIMEDOUT",lt.connect=!1,U.emit("error",lt)}})};if(me!==void 0)if(qe){var Tt=function(){pe.removeListener("connect",Tt),U.clearTimeout(),dt()};pe.on("connect",Tt),U.req.on("error",function(lt){pe.removeListener("connect",Tt)}),U.timeoutTimer=setTimeout(function(){pe.removeListener("connect",Tt),U.abort();var lt=new Error("ETIMEDOUT");lt.code="ETIMEDOUT",lt.connect=!0,U.emit("error",lt)},me)}else dt();U.emit("socket",pe)}),U.emit("request",U.req)}},J.prototype.onRequestError=function(U){var z=this;if(!z._aborted){if(z.req&&z.req._reusedSocket&&U.code==="ECONNRESET"&&z.agent.addRequestNoreuse){z.agent={addRequest:z.agent.addRequestNoreuse.bind(z.agent)},z.start(),z.req.end();return}z.clearTimeout(),z.emit("error",U)}},J.prototype.onRequestResponse=function(U){var z=this;if(z.timing&&(z.timings.response=L()-z.startTimeNow),X("onRequestResponse",z.uri.href,U.statusCode,U.headers),U.on("end",function(){z.timing&&(z.timings.end=L()-z.startTimeNow,U.timingStart=z.startTime,z.timings.socket||(z.timings.socket=0),z.timings.lookup||(z.timings.lookup=z.timings.socket),z.timings.connect||(z.timings.connect=z.timings.lookup),z.timings.response||(z.timings.response=z.timings.connect),X("elapsed time",z.timings.end),z.elapsedTime+=Math.round(z.timings.end),U.elapsedTime=z.elapsedTime,U.timings=z.timings,U.timingPhases={wait:z.timings.socket,dns:z.timings.lookup-z.timings.socket,tcp:z.timings.connect-z.timings.lookup,firstByte:z.timings.response-z.timings.connect,download:z.timings.end-z.timings.response,total:z.timings.end}),X("response end",z.uri.href,U.statusCode,U.headers)}),z._aborted){X("aborted",z.uri.href),U.resume();return}if(z.response=U,U.request=z,U.toJSON=Q,z.httpModule===e&&z.strictSSL&&(!U.hasOwnProperty("socket")||!U.socket.authorized)){X("strict ssl error",z.uri.href);var ie=U.hasOwnProperty("socket")?U.socket.authorizationError:z.uri.href+" does not support SSL";z.emit("error",new Error("SSL Error: "+ie));return}z.originalHost=z.getHeader("host"),z.originalHostHeaderName||(z.originalHostHeaderName=z.hasHeader("host")),z.setHost&&z.removeHeader("host"),z.clearTimeout();var de=z._jar&&z._jar.setCookie?z._jar:b,me=function(Tt){try{de.setCookie(Tt,z.uri.href,{ignoreError:!0})}catch(lt){z.emit("error",lt)}};if(U.caseless=E(U.headers),U.caseless.has("set-cookie")&&!z._disableCookies){var pe=U.caseless.has("set-cookie");Array.isArray(U.headers[pe])?U.headers[pe].forEach(me):me(U.headers[pe])}if(!z._redirect.onResponse(U)){{U.on("close",function(){z._ended||z.response.emit("end")}),U.once("end",function(){z._ended=!0});var qe=function(Tt){return z.method==="HEAD"||Tt>=100&&Tt<200||Tt===204||Tt===304},mt;if(z.gzip&&!qe(U.statusCode)){var st=U.headers["content-encoding"]||"identity";st=st.trim().toLowerCase();var dt={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};st==="gzip"?(mt=u.createGunzip(dt),U.pipe(mt)):st==="deflate"?(mt=u.createInflate(dt),U.pipe(mt)):(st!=="identity"&&X("ignoring unrecognized Content-Encoding "+st),mt=U)}else mt=U;z.encoding&&(z.dests.length!==0?console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid."):mt.setEncoding(z.encoding)),z._paused&&mt.pause(),z.responseContent=mt,z.emit("response",U),z.dests.forEach(function(Tt){z.pipeDest(Tt)}),mt.on("data",function(Tt){z.timing&&!z.responseStarted&&(z.responseStartTime=new Date().getTime(),U.responseStartTime=z.responseStartTime),z._destdata=!0,z.emit("data",Tt)}),mt.once("end",function(Tt){z.emit("end",Tt)}),mt.on("error",function(Tt){z.emit("error",Tt)}),mt.on("close",function(){z.emit("close")}),z.callback?z.readResponseBody(U):z.on("end",function(){if(z._aborted){X("aborted",z.uri.href);return}z.emit("complete",U)})}X("finish init function",z.uri.href)}},J.prototype.readResponseBody=function(U){var z=this;X("reading response's body");var ie=[],de=0,me=[];z.on("data",function(pe){p.isBuffer(pe)?pe.length&&(de+=pe.length,ie.push(pe)):me.push(pe)}),z.on("end",function(){if(X("end event",z.uri.href),z._aborted){X("aborted",z.uri.href),ie=[],de=0;return}if(de?(X("has body",z.uri.href,de),U.body=p.concat(ie,de),z.encoding!==null&&(U.body=U.body.toString(z.encoding)),ie=[],de=0):me.length&&(z.encoding==="utf8"&&me[0].length>0&&me[0][0]==="\uFEFF"&&(me[0]=me[0].substring(1)),U.body=me.join("")),z._json)try{U.body=JSON.parse(U.body,z._jsonReviver)}catch{X("invalid JSON received",z.uri.href)}X("emitting complete",z.uri.href),typeof U.body>"u"&&!z._json&&(U.body=z.encoding===null?p.alloc(0):""),z.emit("complete",U,U.body)})},J.prototype.abort=function(){var U=this;U._aborted=!0,U.req?U.req.abort():U.response&&U.response.destroy(),U.clearTimeout(),U.emit("abort")},J.prototype.pipeDest=function(U){var z=this,ie=z.response;if(U.headers&&!U.headersSent){if(ie.caseless.has("content-type")){var de=ie.caseless.has("content-type");U.setHeader?U.setHeader(de,ie.headers[de]):U.headers[de]=ie.headers[de]}if(ie.caseless.has("content-length")){var me=ie.caseless.has("content-length");U.setHeader?U.setHeader(me,ie.headers[me]):U.headers[me]=ie.headers[me]}}if(U.setHeader&&!U.headersSent){for(var pe in ie.headers)(!z.gzip||pe!=="content-encoding")&&U.setHeader(pe,ie.headers[pe]);U.statusCode=ie.statusCode}z.pipefilter&&z.pipefilter(ie,U)},J.prototype.qs=function(U,z){var ie=this,de;!z&&ie.uri.query?de=ie._qs.parse(ie.uri.query):de={};for(var me in U)de[me]=U[me];var pe=ie._qs.stringify(de);return pe===""||(ie.uri=o.parse(ie.uri.href.split("?")[0]+"?"+pe),ie.url=ie.uri,ie.path=ie.uri.path,ie.uri.host==="unix"&&ie.enableUnixSocket()),ie},J.prototype.form=function(U){var z=this;return U?(/^application\/x-www-form-urlencoded\b/.test(z.getHeader("content-type"))||z.setHeader("content-type","application/x-www-form-urlencoded"),z.body=typeof U=="string"?z._qs.rfc3986(U.toString("utf8")):z._qs.stringify(U).toString("utf8"),z):(z._form=new M,z._form.on("error",function(ie){ie.message="form-data: "+ie.message,z.emit("error",ie),z.abort()}),z._form)},J.prototype.multipart=function(U){var z=this;return z._multipart.onRequest(U),z._multipart.chunked||(z.body=z._multipart.body),z},J.prototype.json=function(U){var z=this;return z.hasHeader("accept")||z.setHeader("accept","application/json"),typeof z.jsonReplacer=="function"&&(z._jsonReplacer=z.jsonReplacer),z._json=!0,typeof U=="boolean"?z.body!==void 0&&(/^application\/x-www-form-urlencoded\b/.test(z.getHeader("content-type"))?z.body=z._qs.rfc3986(z.body):z.body=y(z.body,z._jsonReplacer),z.hasHeader("content-type")||z.setHeader("content-type","application/json")):(z.body=y(U,z._jsonReplacer),z.hasHeader("content-type")||z.setHeader("content-type","application/json")),typeof z.jsonReviver=="function"&&(z._jsonReviver=z.jsonReviver),z},J.prototype.getHeader=function(U,z){var ie=this,de,me,pe;return z||(z=ie.headers),Object.keys(z).forEach(function(qe){qe.length===U.length&&(me=new RegExp(U,"i"),pe=qe.match(me),pe&&(de=z[qe]))}),de},J.prototype.enableUnixSocket=function(){var U=this.uri.path.split(":"),z=U[0],ie=U[1];this.socketPath=z,this.uri.pathname=ie,this.uri.path=ie,this.uri.host=z,this.uri.hostname=z,this.uri.isUnix=!0},J.prototype.auth=function(U,z,ie,de){var me=this;return me._auth.onRequest(U,z,ie,de),me},J.prototype.aws=function(U,z){var ie=this;if(!z)return ie._aws=U,ie;if(U.sign_version===4||U.sign_version==="4"){var de={host:ie.uri.host,path:ie.uri.path,method:ie.method,headers:ie.headers,body:ie.body};U.service&&(de.service=U.service);var me=v.sign(de,{accessKeyId:U.key,secretAccessKey:U.secret,sessionToken:U.session});ie.setHeader("authorization",me.headers.Authorization),ie.setHeader("x-amz-date",me.headers["X-Amz-Date"]),me.headers["X-Amz-Security-Token"]&&ie.setHeader("x-amz-security-token",me.headers["X-Amz-Security-Token"])}else{var pe=new Date;ie.setHeader("date",pe.toUTCString());var qe={key:U.key,secret:U.secret,verb:ie.method.toUpperCase(),date:pe,contentType:ie.getHeader("content-type")||"",md5:ie.getHeader("content-md5")||"",amazonHeaders:h.canonicalizeHeaders(ie.headers)},mt=ie.uri.path;U.bucket&&mt?qe.resource="/"+U.bucket+mt:U.bucket&&!mt?qe.resource="/"+U.bucket:!U.bucket&&mt?qe.resource=mt:!U.bucket&&!mt&&(qe.resource="/"),qe.resource=h.canonicalizeResource(qe.resource),ie.setHeader("authorization",h.authorization(qe))}return ie},J.prototype.httpSignature=function(U){var z=this;return w.signRequest({getHeader:function(ie){return z.getHeader(ie,z.headers)},setHeader:function(ie,de){z.setHeader(ie,de)},method:z.method,path:z.path},U),X("httpSignature authorization",z.getHeader("authorization")),z},J.prototype.hawk=function(U){var z=this;z.setHeader("Authorization",V.header(z.uri,z.method,U))},J.prototype.oauth=function(U){var z=this;return z._oauth.onRequest(U),z},J.prototype.jar=function(U){var z=this,ie;if(z._redirect.redirectsFollowed===0&&(z.originalCookieHeader=z.getHeader("cookie")),!U)ie=!1,z._disableCookies=!0;else{var de=U.getCookieString?U:b,me=z.uri.href;de&&(ie=de.getCookieString(me))}return ie&&ie.length&&(z.originalCookieHeader?z.setHeader("cookie",z.originalCookieHeader+"; "+ie):z.setHeader("cookie",ie)),z._jar=U,z},J.prototype.pipe=function(U,z){var ie=this;if(ie.response)if(ie._destdata)ie.emit("error",new Error("You cannot pipe after data has been emitted from the response."));else if(ie._ended)ie.emit("error",new Error("You cannot pipe after the response has been ended."));else return t.Stream.prototype.pipe.call(ie,U,z),ie.pipeDest(U),U;else return ie.dests.push(U),t.Stream.prototype.pipe.call(ie,U,z),U},J.prototype.write=function(){var U=this;if(!U._aborted&&(U._started||U.start(),U.req))return U.req.write.apply(U.req,arguments)},J.prototype.end=function(U){var z=this;z._aborted||(U&&z.write(U),z._started||z.start(),z.req&&z.req.end())},J.prototype.pause=function(){var U=this;U.responseContent?U.responseContent.pause.apply(U.responseContent,arguments):U._paused=!0},J.prototype.resume=function(){var U=this;U.responseContent?U.responseContent.resume.apply(U.responseContent,arguments):U._paused=!1},J.prototype.destroy=function(){var U=this;this.clearTimeout(),U._ended?U.response&&U.response.destroy():U.end()},J.prototype.clearTimeout=function(){this.timeoutTimer&&(clearTimeout(this.timeoutTimer),this.timeoutTimer=null)},J.defaultProxyHeaderWhiteList=ye.defaultProxyHeaderWhiteList.slice(),J.defaultProxyHeaderExclusiveList=ye.defaultProxyHeaderExclusiveList.slice(),J.prototype.toJSON=O,request$2=J,request$2}var extend=extend$1,cookies=cookies$1,helpers=helpers$1,paramsHaveRequestBody=helpers.paramsHaveRequestBody;function initParams(n,e,o){typeof e=="function"&&(o=e);var l={};return e!==null&&typeof e=="object"?extend(l,e,{uri:n}):typeof n=="string"?extend(l,{uri:n}):extend(l,n),l.callback=o||l.callback,l}function request$1(n,e,o){if(typeof n>"u")throw new Error("undefined is not a valid uri or options object.");var l=initParams(n,e,o);if(l.method==="HEAD"&&paramsHaveRequestBody(l))throw new Error("HTTP HEAD requests MUST NOT include a request body.");return new request$1.Request(l)}function verbFunc(n){var e=n.toUpperCase();return function(o,l,t){var u=initParams(o,l,t);return u.method=e,request$1(u,u.callback)}}request$1.get=verbFunc("get"),request$1.head=verbFunc("head"),request$1.options=verbFunc("options"),request$1.post=verbFunc("post"),request$1.put=verbFunc("put"),request$1.patch=verbFunc("patch"),request$1.del=verbFunc("delete"),request$1.delete=verbFunc("delete"),request$1.jar=function(n){return cookies.jar(n)},request$1.cookie=function(n){return cookies.parse(n)};function wrapRequestMethod(n,e,o,l){return function(t,u,h){var v=initParams(t,u,h),w={};return extend(!0,w,e,v),w.pool=v.pool||e.pool,l&&(w.method=l.toUpperCase()),typeof o=="function"&&(n=o),n(w,w.callback)}}request$1.defaults=function(n,e){var o=this;n=n||{},typeof n=="function"&&(e=n,n={});var l=wrapRequestMethod(o,n,e),t=["get","head","post","put","patch","del","delete"];return t.forEach(function(u){l[u]=wrapRequestMethod(o[u],n,e,u)}),l.cookie=wrapRequestMethod(o.cookie,n,e),l.jar=o.jar,l.defaults=o.defaults,l},request$1.forever=function(n,e){var o={};return e&&extend(o,e),n&&(o.agentOptions=n),o.forever=!0,request$1.defaults(o)};var request_1=request$1;request$1.Request=requireRequest(),request$1.initParams=initParams,Object.defineProperty(request$1,"debug",{enumerable:!0,get:function(){return request$1.Request.debug},set:function(n){request$1.Request.debug=n}});var sha1$1={exports:{}},crypt={exports:{}};(function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(o,l){return o<<l|o>>>32-l},rotr:function(o,l){return o<<32-l|o>>>l},endian:function(o){if(o.constructor==Number)return e.rotl(o,8)&16711935|e.rotl(o,24)&4278255360;for(var l=0;l<o.length;l++)o[l]=e.endian(o[l]);return o},randomBytes:function(o){for(var l=[];o>0;o--)l.push(Math.floor(Math.random()*256));return l},bytesToWords:function(o){for(var l=[],t=0,u=0;t<o.length;t++,u+=8)l[u>>>5]|=o[t]<<24-u%32;return l},wordsToBytes:function(o){for(var l=[],t=0;t<o.length*32;t+=8)l.push(o[t>>>5]>>>24-t%32&255);return l},bytesToHex:function(o){for(var l=[],t=0;t<o.length;t++)l.push((o[t]>>>4).toString(16)),l.push((o[t]&15).toString(16));return l.join("")},hexToBytes:function(o){for(var l=[],t=0;t<o.length;t+=2)l.push(parseInt(o.substr(t,2),16));return l},bytesToBase64:function(o){for(var l=[],t=0;t<o.length;t+=3)for(var u=o[t]<<16|o[t+1]<<8|o[t+2],h=0;h<4;h++)t*8+h*6<=o.length*8?l.push(n.charAt(u>>>6*(3-h)&63)):l.push("=");return l.join("")},base64ToBytes:function(o){o=o.replace(/[^A-Z0-9+\/]/ig,"");for(var l=[],t=0,u=0;t<o.length;u=++t%4)u!=0&&l.push((n.indexOf(o.charAt(t-1))&Math.pow(2,-2*u+8)-1)<<u*2|n.indexOf(o.charAt(t))>>>6-u*2);return l}};crypt.exports=e})();var cryptExports=crypt.exports,charenc={utf8:{stringToBytes:function(n){return charenc.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(charenc.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var e=[],o=0;o<n.length;o++)e.push(n.charCodeAt(o)&255);return e},bytesToString:function(n){for(var e=[],o=0;o<n.length;o++)e.push(String.fromCharCode(n[o]));return e.join("")}}},charenc_1=charenc;(function(){var n=cryptExports,e=charenc_1.utf8,o=charenc_1.bin,l=function(u){u.constructor==String?u=e.stringToBytes(u):typeof Buffer$C<"u"&&typeof Buffer$C.isBuffer=="function"&&Buffer$C.isBuffer(u)?u=Array.prototype.slice.call(u,0):Array.isArray(u)||(u=u.toString());var h=n.bytesToWords(u),v=u.length*8,w=[],A=1732584193,E=-271733879,C=-1732584194,M=271733878,P=-1009589776;h[v>>5]|=128<<24-v%32,h[(v+64>>>9<<4)+15]=v;for(var I=0;I<h.length;I+=16){for(var j=A,B=E,F=C,N=M,ee=P,Z=0;Z<80;Z++){if(Z<16)w[Z]=h[I+Z];else{var re=w[Z-3]^w[Z-8]^w[Z-14]^w[Z-16];w[Z]=re<<1|re>>>31}var fe=(A<<5|A>>>27)+P+(w[Z]>>>0)+(Z<20?(E&C|~E&M)+1518500249:Z<40?(E^C^M)+1859775393:Z<60?(E&C|E&M|C&M)-1894007588:(E^C^M)-899497514);P=M,M=C,C=E<<30|E>>>2,E=A,A=fe}A+=j,E+=B,C+=F,M+=N,P+=ee}return[A,E,C,M,P]},t=function(u,h){var v=n.wordsToBytes(l(u));return h&&h.asBytes?v:h&&h.asString?o.bytesToString(v):n.bytesToHex(v)};t._blocksize=16,t._digestsize=20,sha1$1.exports=t})();var sha1Exports=sha1$1.exports,php2js$1={rawurlencode:function(n){return n=(n+"").toString(),encodeURIComponent(n).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/\+/g," ")},http_build_query:function(n,e,o){var l,t,u=[],h=function(w,A,E){var C,M=[];if(A===!0?A="1":A===!1&&(A="0"),A!=null)if(typeof A=="object"){for(C in A)A[C]!=null&&M.push(h(w+"["+C+"]",A[C],E));return M.join(E)}else{if(typeof A!="function")return php2js$1.urlencode(w)+"="+php2js$1.urlencode(A);throw new Error("There was an error processing for http_build_query().")}else return""};o||(o="&");for(t in n){l=n[t],e&&!isNaN(t)&&(t=String(e)+t);var v=h(t,l,o);v!==""&&u.push(v)}return u.join(o)},urlencode:function(n){return n=(n+"").toString(),encodeURIComponent(n).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}},php2js_1=php2js$1,request=request_1,sha1=sha1Exports,php2js=php2js_1,APIConfig={url:"http://api.jwplatform.com/v1/videos/create",key:"",secret:"",format:"json",kit:"php-1.4"},jwplayer$1={makeRequest:function(n,e){request({url:n,method:"GET",headers:{"Content-Type":"MyContentType","Custom-Header":"Custom Value"}},e)},setArguments:function(n,e){n.api_nonce=Math.floor(Math.random()*1e8),n.api_timestamp=Math.floor(Date.now()/1e3),n.api_key=APIConfig.key,n.api_format=APIConfig.format,n.api_kit=APIConfig.kit;var o={};Object.keys(n).sort().forEach(function(u){o[u]=n[u]});var l="";Object.keys(o).forEach(function(u){l!=""&&(l+="&"),l+=php2js.rawurlencode(u)+"="+php2js.rawurlencode(o[u])}),n.api_signature=sha1(l+APIConfig.secret);var t=APIConfig.url+"?"+php2js.http_build_query(n,"","&");jwplayer$1.makeRequest(t,e)}},jwplayer_1=jwplayer$1;const JwpPlayerWidget=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){var o={},l=jwplayer_1.Player(this.$[0]),t=!1,u=!0;typeof this.video>"u"&&(this.video=this.media.video),o.file=this.video,o.primary="flash",o.fallback=!1,o.controls=!1,o.width=this.width,this.height&&(o.height=this.height),this.autostart,this.url_transform&&(o.file=this.url_transform(o.file));var h=this.media;h.on("setcurrenttime",function(w){t=u,l.seek(w/1e3)}),h.on("setvolume",function(w){l.setVolume(Math.floor(w*100)),h.volume=w}),h.on("setmuted",function(w){l.setMute(w),h.muted=w}),h.on("setplay",function(){l.play(!0),h.paused=!1}),h.on("setpause",function(){l.pause(!0),h.paused=!0});function v(){h.muted=l.getMute(),h.volume=l.getVolume()/100}o.events={onReady:function(){v(),h.currentTime=new n.Model.Time(1e3*l.getPosition()||0),h.trigger("loadedmetadata")},onTime:function(w){t?(l.pause(!0),t=!1):u&&l.getState()==="PLAYING"&&(u=!1,h.trigger("play")),h.trigger("timeupdate",new n.Model.Time(w.position*1e3))},onPlay:function(){t||(u=!1,h.trigger("play"))},onPause:function(){u=!0,h.trigger("pause")},onSeek:function(){h.trigger("seeked")},onMute:function(w){h.muted=w.mute,h.trigger("volumechange")},onVolume:function(w){h.volume=w.volume/100,h.trigger("volumechange")}},l=l.setup(o),this.jwplayer=l}},Or(e,"defaults",{}),e},latestAnnotationStyles={},LatestAnnotation=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}importUsers(){if(!this.source.users_data){this.usernames=Array();var o=this,l=this.getWidgetAnnotations(),t="";return l.forEach(function(u){o.usernames.indexOf(u.creator)==-1&&o.usernames.push(u.creator)}),this.usernames.forEach(function(u){t+=u+","}),t=t.substring(0,t.length-1),_url=mustache.render(this.api_users_endpoint,{usernames_list_string:encodeURIComponent(t),usernames_list_length:this.usernames.length}),jQuery.ajax({async:!1,url:_url,type:"GET",success:function(u){o.source.users_data=u.objects},error:function(u,h,v){console.log(u),console.log(h),console.log(v)}})}}draw(){var o=this;this.renderTemplate(),this.annotationContainer_$=this.$.find(".Ldt-LatestAnnotation"),this.selectable_annotations&&(this.onMdpEvent("AnnotationsList.refresh",function(){o.getWidgetAnnotations().forEach(function(l){l.off("click"),l.on("click",function(){var t={},u="",h=this.source.users_data.filter(function(v){return v.username==l.creator});h.length==0?t.username=l.creator:t=h[0],u=o.make_name_string_function(t),_html=mustache.render(o.annotationTemplate,{annotation_created:l.created.toLocaleDateString()+", "+l.created.toLocaleTimeString(),annotation_creator:u,annotation_title:l.title,annotation_content:l.description,copy_and_edit_button:o.copy_and_edit_button,button_text:o.l10n.copy_and_edit}),o.annotationContainer_$.html(_html),o.selectedAnnotation=!0})})}),this.segments=o.source.getAnnotationsByTypeTitle(this.segments_annotation_type),this.segments.forEach(function(l){l.on("click",function(){o.selectedAnnotation=!1})}),this.currentSegment=!1),this.onMediaEvent("timeupdate",function(){o.refresh()}),this.onMediaEvent("settimerange",function(l){o.refresh(l)}),this.starts_hidden?(this.visible=!0,this.hide()):(this.visible=!1,this.show()),this.selectedAnnotation=!1,this.player.trigger("AnnotationsList.refresh"),this.refresh()}refresh(o){o=typeof o<"u"?o:!1;var l=this;if(this.hide_without_segment){if(!o&&!this.media.getTimeRange()){var t=this.media.getCurrentTime(),u=this.segments.filter(function(I){return t>=I.begin&&t<=I.end});u.length==0?(this.currentSegment=!1,this.selectedAnnotation=!1):this.currentSegment=u[0]}else{var h=o?o[0]:this.media.getTimeRange()[0],v=o?o[1]:this.media.getTimeRange()[1];if(!this.currentSegment||this.currentSegment.begin!=h||this.currentSegment.end!=v){var u=this.segments.filter(function(j){return j.begin==h&&j.end==v});u.length>0&&(this.selectedAnnotation=!1,this.currentSegment=u[0])}}this.currentSegment?this.visible||this.show():this.visible&&this.hide()}if(this.visible&&!this.selectedAnnotation){var w=this.getWidgetAnnotations();this.filter_by_segment&&(this.currentSegment?w=w.filter(function(I){return _annotationTime=(I.begin+I.end)/2,l.currentSegment.begin<=_annotationTime&&l.currentSegment.end>=_annotationTime}):w=w.filter(function(I){return!1})),w=w.sortBy(function(I){return I.created});var A=!1,E="",C="",M={};if(w.length!=0)A=w.pop(),_users=this.source.users_data.filter(function(I){return I.username==A.creator}),_users.length==0?M.username=A.creator:M=_users[0],C=this.make_name_string_function(M),E=mustache.render(this.annotationTemplate,{annotation_created:A.created.toLocaleDateString()+", "+A.created.toLocaleTimeString(),annotation_creator:C,annotation_title:A.title,annotation_content:A.description,copy_and_edit_button:this.copy_and_edit_button,button_text:this.l10n.copy_and_edit});else{var P=this.l10n.empty;this.empty_message&&(P=this.empty_message),E="<div class='Ldt-LatestAnnotation-Element Ldt-LatestAnnotation-NoAnnotation'>"+P+"</div>"}this.annotationContainer_$.html(E)}this.copy_and_edit_button&&(this.copyAndEditButton_$=this.$.find(".Ldt-LatestAnnotation-CopyEditButton"),this.copyAndEditButton_$.click(this.functionWrapper("copy_and_edit")))}copy_and_edit(){this.player.trigger("CreateAnnotation.show"),this.hide_annotations_list&&this.player.trigger("AnnotationsList.hide"),annotationText=jQuery(".Ldt-LatestAnnotation-Content").get(0).innerHTML,jQuery(".Ldt-CreateAnnotation-Description").removeClass("empty"),jQuery(".Ldt-CreateAnnotation-Description").val(annotationText)}hide(){this.visible&&(this.visible=!1,this.$.find(".Ldt-LatestAnnotation-header").hide(),this.annotationContainer_$.hide())}show(){this.visible||(this.visible=!0,this.$.find(".Ldt-LatestAnnotation-header").show(),this.annotationContainer_$.show())}},Or(e,"defaults",{pre_draw_callback:function(){return this.importUsers()},from_user:!1,filter_by_segment:!1,segments_annotation_type:"chap",hide_without_segment:!1,annotation_type:"contribution",show_only_annotation_from_user:!1,copy_and_edit_button:!1,hide_annotations_list:!1,selectable_annotations:!1,empty_message:!1,starts_hidden:!1,show_header:!1,custom_header:!1,make_name_string_function:function(o){return o.username?o.username:"Anonymous"}}),Or(e,"messages",{fr:{copy_and_edit:"Copier et Editer",empty:"Aucune annotation à afficher",header:"Dernière annotation"},en:{copy_and_edit:"Copy and Edit",empty:"No annotation to display",header:"Last annotation"}}),Or(e,"template","{{#show_header}}<p class='Ldt-LatestAnnotation-header'>{{#custom_header}}{{custom_header}}{{/custom_header}}{{^custom_header}}{{l10n.header}}{{/custom_header}}</p>{{/show_header}}<div class='Ldt-LatestAnnotation'></div>"),Or(e,"annotationTemplate","<div class='Ldt-LatestAnnotation-Box'>{{#copy_and_edit_button}}<div class='Ldt-LatestAnnotation-CopyEditButton'>{{button_text}}</div>{{/copy_and_edit_button}}<div class='Ldt-LatestAnnotation-Element Ldt-LatestAnnotation-CreationDate'>{{{annotation_created}}}</div><div class='Ldt-LatestAnnotation-Element Ldt-LatestAnnotation-Title'>{{{annotation_creator}}}{{#annotation_title}}: {{{annotation_title}}}{{/annotation_title}}</div><div class='Ldt-LatestAnnotation-Element Ldt-LatestAnnotation-Content'>{{{annotation_content}}}</div></div>"),e},mashupPlayerStyles={},MashupPlayer=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l),this.is_mashup=!0}draw(){var o=this,l=this.media,t=null,u=null,h,v,w=0,A=!1,E,C,M=l.getMedias();l.paused=!this.autostart&&!this.autoplay;function P(){w>=l.duration&&(l.paused||(l.paused=!0,l.trigger("pause")),w=0);var F=l.getAnnotationAtTime(w);if(typeof F>"u"){t&&(t.pause(),l.paused||(l.paused=!0,l.trigger("pause")));return}if(F!==u){u=F,h=u.annotation.begin.milliseconds,v=u.annotation.end.milliseconds,C=h-u.begin.milliseconds,t=u.getMedia();for(var N=0;N<M.length;N++)M[N].id!==t.id?(o.split_screen||M[N].hide(),M[N].pause()):M[N].show();var ee=[],Z=l.getAnnotations().filter(function(re){return re.begin>=u.end&&re.getMedia()!==t});_$1(Z).each(function(re){var fe=re.getMedia();_$1(ee).indexOf(fe.id)===-1&&(ee.push(fe.id),fe.setCurrentTime(re.annotation.begin.getSeconds()),fe.seeking=!0)})}t.setCurrentTime(w+C),t.seeking=!0,l.paused||(t.play(),A=!0,E.show()),l.trigger("timeupdate",new n.Model.Time(w))}this.height||(this.height=Math.floor(this.width/this.aspect_ratio),this.$.css({height:this.height})),this.$.css({background:this.background});var I=Math.ceil(Math.sqrt(M.length)),j=this.split_screen?this.width/I:this.width,B=this.split_screen?this.height/I:this.height;_$1(M).each(function(F,N){var ee=jQuery('<div class="Ldt-MashupPlayer-Media"><div class="Ldt-MashupPlayer-Subwidget"></div></div>');ee.css({top:o.split_screen?B*Math.floor(N/I):0,left:o.split_screen?j*(N%I):0,height:B,width:j,display:o.split_screen?"block":"none"}),o.$.append(ee),o.insertSubwidget(ee.find(".Ldt-MashupPlayer-Subwidget"),_$1({type:o.player_type,media_id:F.id,height:B,width:j,url_transform:o.url_transform}).extend(o.player_options)),F.loadedMetadata=!1,F.show=function(){ee.show()},F.hide=function(){ee.hide()},F.on("loadedmetadata",function(){F.loadedMetadata=!0;for(var Z=!0,re=0;re<M.length;re++)Z=Z&&M[re].loadedMetadata;Z&&(E.fadeOut(),P(),l.trigger("loadedmetadata"))}),F.on("timeupdate",function(Z){!l.paused&&F===t&&!F.seeking&&(Z<v?Z>=h?w=Z-C:(w=h-C,F.setCurrentTime(h)):(w=v-C,F.pause(),P()),l.trigger("timeupdate",new n.Model.Time(w)))}),F.on("seeked",function(){F.seeking=!1,F===t&&A&&(A=!1,E.hide())}),F.on("play",function(){F===t&&l.trigger("play")}),F.on("pause",function(){F===t&&l.trigger("pause")}),F.on("volumechange",function(){l.muted=F.muted,l.volume=F.volume,l.trigger("volumechange")})}),E=jQuery('<div class="Ldt-MashupPlayer-Waiting"></div>'),this.$.append(E),l.on("setcurrenttime",function(F){w=F,P()}),l.on("setvolume",function(F){for(var N=0;N<M.length;N++)M[N].setVolume(F);l.volume=F}),l.on("setmuted",function(F){for(var N=0;N<M.length;N++)M[N].setMuted(F);l.muted=F}),l.on("setplay",function(){l.paused=!1,P()}),l.on("setpause",function(){l.paused=!0,t&&t.pause()}),l.on("loadedmetadata",P)}},Or(e,"defaults",{aspect_ratio:14/9,split_screen:!1,player_type:"PopcornPlayer",background:"#000000"}),e},Mediafragment=function(n){return class extends n.Widgets.Widget{constructor(e,o){if(super(e,o),this.last_hash_key="",this.last_hash_value="",this.last_extra_key="",this.last_extra_value="",window.onhashchange=this.functionWrapper("goToHash"),typeof window.addEventListener<"u"){var l=this;window.addEventListener("message",function(t){/^#/.test(t.data)&&l.setWindowHash(t.data)})}this.onMdpEvent("Mediafragment.setHashToAnnotation","setHashToAnnotation"),this.blocked=!1}draw(){this.onMediaEvent("setpause","setHashToTime");var e=this;this.getWidgetAnnotations().forEach(function(o){o.on("click",function(){e.setHashToAnnotation(o)})}),this.media.loadedMetadata?this.goToHash():this.onMediaEvent("loadedmetadata","goToHash")}setWindowHash(e){typeof window.history<"u"&&typeof window.history.replaceState<"u"?window.history.replaceState({},"",e):document.location.hash=e}getLastHash(){var e=document.location.hash.replace(/^#/,"").split("&");return e=_$1(e).filter(function(o){return o&&!/^(id|t)=/.test(o)}),this.last_hash_key&&e.push(this.last_hash_key+"="+this.last_hash_value),this.last_extra_key&&e.push(this.last_extra_key+"="+this.last_extra_value),"#"+e.join("&")}goToHash(){if(document.location.hash!==this.getLastHash())for(var e=document.location.hash.replace(/^#/,"").split("&"),o=0;o<e.length;o++){var l=e[o].split("=");if(l[0]=="id"||l[0]=="t"){if(this.last_hash_key=l[0],this.last_hash_value=l[1],this.last_hash_key=="id"){var t=this.source.getElement(this.last_hash_value);if(typeof t<"u")this.media.setCurrentTime(t.begin);else continue}this.last_hash_key=="t"&&this.media.setCurrentTime(1e3*this.last_hash_value);break}}}setHashToAnnotation(e){this.setHash("id",e.id,"t",e.begin/1e3)}setHashToTime(){this.setHash("t",this.media.getCurrentTime().getSeconds())}setHash(e,o,l,t){if(!this.blocked&&(this.last_hash_key!==e||this.last_hash_value!==o)){this.last_hash_key=e,this.last_hash_value=o,this.last_extra_key=l,this.last_extra_value=t;var u=this.getLastHash();this.setWindowHash(u),window.parent!==window&&window.parent.postMessage(u,"*"),this.block()}}unblock(){typeof this.blockTimeout<"u"&&window.clearTimeout(this.blockTimeout),this.blockTimeout=void 0,this.blocked=!1}block(){typeof this.blockTimeout<"u"&&window.clearTimeout(this.blockTimeout),this.blocked=!0,this.blockTimeout=window.setTimeout(this.functionWrapper("unblock"),1500)}}},mediaListStyles={},MediaList=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l),this.lastMedia=!1}onSearch(o){this.searchString=typeof o<"u"?o:"";var l=this.refresh(!0);this.searchString&&(l?this.player.trigger("search.matchFound"):this.player.trigger("search.noMatchFound"))}draw(){this.$.addClass("Ldt-MediaListWidget"),this.renderTemplate();var o=this;typeof this.media.getMedias=="function"&&this.media.on("enter-annotation",function(l){o.redraw(l.getMedia())}),this.redraw()}getSegments(o){var l=this,t=this.$.width()/o.duration.milliseconds;return this.getWidgetAnnotations().filter(function(u){return u.getMedia().id==o.id}).map(function(u){var h=u.type=u.annotation;return{left:t*h.begin,width:t*(h.end-h.begin),color:typeof h.color<"u"&&h.color?h.color:l.default_color}})}redraw(o){if(typeof o<"u"){this.$.find(".Ldt-MediaList-Other h2").html(this.l10n.other_media),this.$.find(".Ldt-MediaList-NowPlaying").show(),this.$.find(".Ldt-MediaList-Now-Thumbnail").attr("src",o.thumbnail||this.default_thumbnail),this.$.find(".Ldt-MediaList-Now-Title a").html(o.title),this.$.find(".Ldt-MediaList-Now-Description").html(o.description);var l=o.url||mustache.render(this.media_url_template,{media:o.id});this.$.find(".Ldt-MediaList-NowContainer a").attr("href",l);var t=mustache.render(this.mediaViewTemplate,{segments:this.getSegments(o)});this.$.find(".Ldt-MediaList-Now-MediaView").html(t)}else this.$.find(".Ldt-MediaList-Other h2").html(this.l10n.all_media),this.$.find(".Ldt-MediaList-NowPlaying").hide();var u=this,h=this.source.getMedias().filter(function(w){return w.id!==u.lastMedia});if(h.length){this.$.find(".Ldt-MediaList-Other").show();var v=h.map(function(w){return mustache.render(u.mediaTemplate,{thumbnail:w.thumbnail||u.default_thumbnail,url:w.url||mustache.render(u.media_url_template,{media:w.id}),title:w.title,description:w.description,segments:u.getSegments(w)})}).join("");this.$.find(".Ldt-MediaList-OtherList").html(v)}else this.$.find(".Ldt-MediaList-Other").hide()}},Or(e,"messages",{fr:{now_playing:"Vidéo en cours",all_media:"Toutes les vidéos",other_media:"Autres vidéos"},en:{now_playing:"Now playing",all_media:"All videos",other_media:"Other videos"}}),Or(e,"defaults",{default_thumbnail:"https://ldt.iri.centrepompidou.fr/static/site/ldt/css/imgs/video_sequence.png",media_url_template:"https://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/",default_color:"#000080"}),Or(e,"template",'<div class="Ldt-MediaList-NowPlaying"><h2>{{l10n.now_playing}}</h2><hr /><div class="Ldt-MediaList-NowContainer"><div class="Ldt-MediaList-Now-ThumbContainer"><a href="" target="_blank"><img class="Ldt-MediaList-Now-Thumbnail" src="" /></a></div><h3 class="Ldt-MediaList-Now-Title"><a href="" target="_blank"></a></h3><p class="Ldt-MediaList-Now-Description"></p><div class="Ldt-MediaList-Now-MediaView"></div></div></div><div class="Ldt-MediaList-Other"><h2></h2><hr /><ul class="Ldt-MediaList-OtherList"></ul></div>'),Or(e,"mediaViewTemplate",'<div class="Ldt-MediaList-MediaView-Background"></div>{{#segments}}<div class="Ldt-MediaList-Segment" style="background: {{color}}; left: {{left}}px; width: {{width}}px;"></div>{{/segments}}'),Or(e,"mediaTemplate",'<li class="Ldt-MediaList-OtherList-li"><div class="Ldt-MediaList-Other-ThumbContainer"><a href="{{url}}" target="_blank"><img class="Ldt-MediaList-Other-Thumbnail" src="{{thumbnail}}" /></a></div><h3 class="Ldt-MediaList-Other-Title"><a href="{{url}}" target="_blank">{{title}}</a></h3><p class="Ldt-MediaList-Other-Description">{{description}}</p><div class="Ldt-MediaList-Other-MediaView">'+MediaList.mediaViewTemplate+"</div></li>"),e},noteTakingStyles={},NoteTaking=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){var o=this,l,t=jQuery;o.renderTemplate(),l=o.$.find(".Ldt-NoteTaking-Text");function u(){t(l).val(window.localStorage[o.editable_storage])}function h(){window.localStorage[o.editable_storage]=t(l).val()}window.localStorage[o.editable_storage]&&u(),t.fn.insertAtCaret=function(w){return this.each(function(){if(this.selectionStart!==void 0){var A=this.selectionStart,E=this.selectionEnd,C=this.scrollTop;this.value=this.value.substring(0,A)+w+this.value.substring(E,this.value.length),this.focus(),this.selectionStart=A+w.length,this.selectionEnd=A+w.length,this.scrollTop=C}else this.value+=w,this.focus(),this.value=this.value})};function v(w,A){var E=w.selectionStart;return w.value.substring(E-A,E+A)}t(l).keydown(function(w){if(w.keyCode==13&&(w.ctrlKey||w.metaKey)){w.preventDefault();var A=/\[([\d:]+)\]/.exec(v(l[0],8));A?o.media.setCurrentTime(n.timestamp2ms(A[1])):(t(l).insertAtCaret("["+new n.Model.Time(o.media.getCurrentTime()).toString()+"]"),h())}}).on("input",function(w){h()}).on("dblclick",function(w){var A=/\[([\d:]+)\]/.exec(v(l[0],8));A&&(w.preventDefault(),o.media.setCurrentTime(n.timestamp2ms(A[1])))})}},Or(e,"defaults",{editable_storage:""}),Or(e,"template",'<textarea class="Ldt-NoteTaking-Text"></textarea>'),e},placeholderPlayerStyles={},PlaceholderPlayer=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){this.renderTemplate();var o=!0,l=0,t=new n.Model.Time(0),u=this.media,h=this.$.find(".Ldt-PlaceholderPlayer");function v(){o||(t=new n.Model.Time(new Date().valueOf()-l),t<=u.duration?(u.trigger("timeupdate",t),setTimeout(v,100)):(t=u.duration,u.pause())),h.text(t.toString(!0))}u.on("setcurrenttime",function(w){l=new Date().valueOf()-w,t=new n.Model.Time(w),u.trigger("seeked"),u.trigger("timeupdate",t),h.text(t.toString(!0))}),u.on("setplay",function(){o=!1,l=new Date().valueOf()-t,u.trigger("play"),v()}),u.on("setpause",function(){o=!0,u.trigger("pause"),v()}),u.trigger("loadedmetadata"),u.trigger("setcurrenttime",0),this.autostart&&u.trigger("setplay")}},Or(e,"defaults",{autostart:!1}),Or(e,"template",'<div class="Ldt-PlaceholderPlayer">(loading)</div>'),e},polemicStyles={},Polemic=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}getPolemics(o){return(typeof o>"u"||!o)&&(o=this.default_version),this.polemics.constructor===Array?this.polemics:this.polemics[o]}drawNoStackgraph(o,l){var t=this;if(this.is_stackgraph=!1,o){let h=function(v,w,F,E,C){var M=mustache.render('<div class="Ldt-Polemic-TweetDiv Ldt-TraceMe" trace-info="annotation-id:{{id}}, media-id:{{media_id}}, polemic:{{polemic}}, time:{{time}}" polemic-color="{{color}}" tweet-title="{{title}}" annotation-id="{{id}}" style="width: {{width}}px; height: {{height}}px; top: {{top}}px; left: {{left}}px; background: {{color}}"></div>',{id:C.id,media_id:t.source.currentMedia.id,polemic:F,left:v,top:w,color:E,width:t.element_width-1,height:t.element_height,title:C.title,time:C.begin.toString()}),P=jQuery(M);P.on("mouseover",function(){C.trigger("select")}).on("mouseout",function(){C.trigger("unselect")}).on("click",function(){return C.trigger("click"),!1}),n.attachDndData(P,{title:C.title,description:C.description,image:C.thumbnail,uri:typeof C.url<"u"?C.url:document.location.href.replace(/#.*$/,"")+"#id="+C.id,text:"["+C.begin.toString()+"] "+C.title});for(var I=[],j=C.content&&C.content.polemic_version||t.default_version,B=t.getPolemics(j)||[],F,N,ee=0;ee<B.length;ee++)F=B[ee],N=n.Model.regexpFromTextOrArray(F.keywords),N.test(C.description)&&I.push(F.color);C.on("select",function(){t.tooltip&&t.tooltip.show(+Math.floor(v+(t.element_width-1)/2),+w,C.title,I.length>1?I:E),t.$tweets.each(function(){var Z=jQuery(this);Z.css("opacity",Z.attr("annotation-id")==C.id?1:.3)})}),C.on("unselect",function(){t.tooltip&&t.tooltip.hide(),t.$tweets.css("opacity",1)}),C.on("found",function(){P.css({background:t.foundcolor,opacity:1})}),C.on("not-found",function(){P.css({background:E,opacity:.3})}),t.$zone.append(P)};this.height=(2+o)*this.element_height,this.$zone.css({width:this.width+"px",height:this.height+"px",position:"relative"});var u=0;_$1(l).forEach(function(v){var w=t.height;v.annotations.forEach(function(A){w-=t.element_height,h(u,w,"none",t.defaultcolor,A)}),_$1(v.polemicStacks).forEach(function(A){var E=A.polemicDef.color,C=A.polemicDef.name;A.annotations.forEach(function(M){w-=t.element_height,h(u,w,C,E,M)})}),u+=t.element_width}),this.$tweets=this.$.find(".Ldt-Polemic-TweetDiv"),this.source.getAnnotations().on("search-cleared",function(){t.$tweets.each(function(){var v=jQuery(this);v.css({background:v.attr("polemic-color"),opacity:1})})})}else this.$zone.hide()}drawStackgraph(o,l){this.is_stackgraph=!0;var t=this;this.height=(2+this.max_elements)*this.element_height,this.$zone.css({width:this.width+"px",height:this.height+"px",position:"relative"});var u=0,h="",v=this.max_elements*this.element_height/o;function w(A,E,C,M,P,I,j,B){h+=mustache.render('<div class="Ldt-Polemic-TweetDiv Ldt-TraceMe" trace-info="annotation-block, media-id={{media_id}}, polemic={{polemic}}, time:{{begin}}" pos-x="{{posx}}" pos-y="{{top}}" annotation-counts="{{nums}}" begin-time="{{begin}}" end-time="{{end}}" style="width: {{width}}px; height: {{height}}px; top: {{top}}px; left: {{left}}px; background: {{color}}"></div>',{nums:P,posx:Math.floor(A+(t.element_width-1)/2),media_id:t.source.currentMedia.id,polemic:B,left:A,top:E,color:M,width:t.element_width-1,height:C,begin:I,end:j})}_$1(l).forEach(function(A){var E=t.height,C=A.annotations.length+"|"+t.defaultcolor+","+_$1(A.polemicStacks).map(function(P){return P.annotations.length+"|"+P.polemicDef.color}).join(",");if(A.annotations.length){var M=Math.ceil(v*A.annotations.length);E-=M,w(u,E,M,t.defaultcolor,C,A.begin,A.end,"none")}_$1(A.polemicStacks).forEach(function(P){if(P.annotations.length){var I=P.polemicDef.color,j=P.polemicDef.name,B=Math.ceil(v*P.annotations.length);E-=B,w(u,E,B,I,C,A.begin,A.end,j)}}),u+=t.element_width}),this.$zone.append(h),this.$tweets=this.$.find(".Ldt-Polemic-TweetDiv"),this.$tweets.mouseover(function(){var A=jQuery(this),E=A.attr("annotation-counts").split(","),C="<p>"+t.l10n.from_+A.attr("begin-time")+t.l10n._to_+A.attr("end-time")+"</p>";C=_$1.reduce(E,function(M,P){var I=P.split("|");return M+='<div class="Ldt-Tooltip-AltColor" style="background: '+I[1]+'"></div><p>'+I[0]+t.l10n._annotations+"</p>",M},C),t.tooltip&&t.tooltip.show(+A.attr("pos-x"),+A.attr("pos-y"),C)}).mouseout(function(){t.tooltip&&t.tooltip.hide()})}draw(){this.onMediaEvent("timeupdate","onTimeupdate"),this.$zone=jQuery("<div>"),this.$zone.addClass("Ldt-Polemic"),this.$.append(this.$zone),this.$elapsed=jQuery("<div>").css({background:"#cccccc",position:"absolute",top:0,left:0,width:0,height:"100%"}),this.$zone.append(this.$elapsed);for(var o=[],l=Math.floor(this.width/this.element_width),t=this.source.getDuration(),u=0,h=this.getWidgetAnnotations(),v=this,w=0;w<l;w++){var A=new n.Model.Time(w*t/l),E=new n.Model.Time((w+1)*t/l),C=0,M={begin:A.toString(),end:E.toString(),annotations:h.filter(function(P){return P.begin>=A&&P.begin<E}),polemicStacks:{}};M.annotations=M.annotations.filter(function(P){for(var I=P.content&&P.content.polemic_version||v.default_version,j=v.getPolemics(I)||[],B,F,N,ee,Z=!0,re=0;re<j.length;re++)B=j[re],ee=n.Model.regexpFromTextOrArray(B.keywords),ee.test(P.description)&&(F=I+"_"+B.name,N=M.polemicStacks[F]||(M.polemicStacks[F]={polemicDef:B,annotations:[]}),N.annotations.push(P),Z=!1,C++);return Z}),C+=M.annotations.length,u=Math.max(u,C),o.push(M)}u<this.max_elements?this.drawNoStackgraph(u,o):this.drawStackgraph(u,o),this.$position=jQuery("<div>").addClass("Ldt-Polemic-Position"),this.$zone.append(this.$position),this.$zone.on("click",function(P){var I=P.pageX-v.$zone.offset().left;v.media.setCurrentTime(v.media.duration*I/v.width)}),this.$.append('<div class="Ldt-Polemic-Tooltip"></div>'),this.insertSubwidget(this.$.find(".Ldt-Polemic-Tooltip"),{type:"Tooltip",min_x:0,max_x:this.width},"tooltip")}onTimeupdate(o){var l=Math.floor(this.width*o/this.media.duration);this.$elapsed.css({width:l+"px"}),this.$position.css({left:l+"px"})}},Or(e,"messages",{fr:{from_:"de ",_to_:" à ",_annotations:" annotation(s)"},en:{from_:"from ",_to_:" to ",_annotations:" annotation(s)"}}),Or(e,"defaults",{element_width:5,element_height:5,max_elements:20,annotation_type:"tweet",defaultcolor:"#585858",foundcolor:"#fc00ff",default_version:"1",polemics:{1:[{name:"OK",keywords:["++"],color:"#1D973D"},{name:"KO",keywords:["--"],color:"#CE0A15"},{name:"REF",keywords:["==","http://"],color:"#C5A62D"},{name:"Q",keywords:["?"],color:"#036AAE"}],2:[{name:"OK",keywords:["++"],color:"#1D973D"},{name:"KO",keywords:["!!"],color:"#CE0A15"},{name:"REF",keywords:["==","http://"],color:"#C5A62D"},{name:"Q",keywords:["?"],color:"#036AAE"}]}}),e},PopcornPlayer=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){typeof this.video>"u"&&(this.video=this.media.video),this.url_transform&&(this.video=this.url_transform(this.video));var o=this.video;if(/^(https?:\/\/)?(www\.)?youtube\.com/.test(this.video)){for(var l=this.video.split(/[?&]/),t={},u=1;u<l.length;u++){var h=l[u].split("=");t[h[0]]=decodeURIComponent(h[1])}t.controls=0,t.modestbranding=1,(this.autostart||this.autoplay)&&(t.autoplay=1),o=l[0]+"?"+jQuery.param(t)}var v=global$1.Popcorn.smart("#"+this.container,o);(this.autostart||this.autoplay)&&v.autoplay(!0);var w=this.media;w.on("setcurrenttime",function(E){v.currentTime(E/1e3)}),w.on("setvolume",function(E){v.volume(E),w.volume=E}),w.on("setmuted",function(E){v.muted(E),w.muted=E}),w.on("setplay",function(){v.play()}),w.on("setpause",function(){v.pause()}),w.on("settimerange",function(E){w.timeRange=E;try{(w.getCurrentTime()>E[0]||w.getCurrentTime()<E)&&v.currentTime(E[0]/1e3)}catch{}}),w.on("resettimerange",function(){w.timeRange=!1});function A(){w.muted=v.muted(),w.volume=v.volume()}v.on("loadedmetadata",function(){A(),w.trigger("loadedmetadata"),w.trigger("volumechange")}),v.on("timeupdate",function(){w.trigger("timeupdate",new n.Model.Time(1e3*v.currentTime()))}),v.on("volumechange",function(){A(),w.trigger("volumechange")}),v.on("play",function(E){w.trigger("play")}),v.on("pause",function(){w.trigger("pause")}),v.on("seeked",function(){w.trigger("seeked")})}},Or(e,"defaults",{}),e},quizStyles={},Quiz=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}update(o){var l=this;if(this.quiz_activated&&this.correct[o.id]!=1&&this.correct[o.id]!=0){l.quiz_displayed=!0,this.media.pause(),this.annotation=o;var t=o.content.data.question,u=o.content.data.answers,h=o.content.data.resource;jQuery(".Ldt-Quiz-Votes").hide(),jQuery(".Ldt-Pause-Add-Question").hide(),jQuery(".Ldt-Quiz-Container .Ldt-Quiz-Title").html(t);var v=0,w=mustache.render('<span class="Ldt-Quiz-Correct-Answer">{{ correctness.0 }}</span> / <span class="Ldt-Quiz-Incorrect-Answer">{{ correctness.1 }}</span>',{correctness:this.globalScore()});jQuery(".Ldt-Quiz-Index").html(mustache.render("Q{{index}}/{{total}}",{index:o.number+1,total:this.totalAmount})),jQuery(".Ldt-Quiz-Score").html(w),this.question=new n.Widgets.UniqueChoiceQuestion(o),this.resource=new n.Widgets.UniqueChoiceQuestion(h),o.content.data.type=="multiple_choice"?(this.question=new n.Widgets.MultipleChoiceQuestion(o),this.resource=new n.Widgets.MultipleChoiceQuestion(h)):o.content.data.type=="unique_choice"&&(this.question=new n.Widgets.UniqueChoiceQuestion(o),this.resource=new n.Widgets.UniqueChoiceQuestion(h));var A="";for(v=0;v<u.length;v++)A+='<div class="quiz-question-block"><p>'+this.question.renderQuizTemplate(u[v],v)+'<span class="quiz-question-label">'+u[v].content+"</span></p></div>";var E="";h!=null&&(E='<div class="quiz-resource-block" id="resource" >'+h+"</div>"),jQuery(".Ldt-Quiz-Questions").html(E+A),jQuery(".Ldt-Quiz-Overlay").fadeIn(),jQuery(".Ldt-Quiz-Submit").fadeIn(),jQuery(".quiz-question-label").click(function(){var C=jQuery(this).siblings("input");C.prop("checked")&&C.prop("type")=="radio"?l.answer():C.prop("checked",!C.prop("checked"))}),jQuery(".Ldt-Quiz-Submit-Skip-Link").click({media:this.media},function(C){l.hide(),l.player.trigger("QuizCreator.skip"),C.data.media.play()})}}hide(){var o=this;jQuery(".Ldt-Quiz-Votes").hide(),jQuery(".Ldt-Quiz-Overlay").hide(),jQuery(".Ldt-Pause-Add-Question").hide(),o.quiz_displayed=!1}answer(){var o=this;function l(C){return(C||"").replace(/\s(\d+:\d+)/,function(M,P){return' <a href="#t='+n.timestamp2ms(P)/1e3+'">'+P+"</a>"})}var t=o.annotation.content.data.answers,u=0,h=0,v=[];o.$.find(".Ldt-Quiz-Question-Check").each(function(C){var M=jQuery(this).is(":checked");v.push(M?1:0);var P=t[u];P.correct&&!M||!P.correct&&M?(h+=1,jQuery(this).parents(".quiz-question-block").append('<div class="quiz-question-feedback quiz-question-incorrect-feedback">'+l(P.feedback)+"</div>")):jQuery(this).parents(".quiz-question-block").append('<div class="quiz-question-feedback quiz-question-correct-feedback">'+l(P.feedback)+"</div>"),u++}),h?(jQuery(".Ldt-Quiz-Result").html("Mauvaise réponse"),jQuery(".Ldt-Quiz-Result").css({"background-color":"red"}),this.correct[this.annotation.id]=0):(jQuery(".Ldt-Quiz-Result").html("Bonne réponse !"),jQuery(".Ldt-Quiz-Result").css({"background-color":"green"}),this.correct[this.annotation.id]=1),jQuery(".Ldt-Quiz-Result").animate({height:"100%"},500,"linear",function(){jQuery(".Ldt-Quiz-Result").delay(2e3).animate({height:"0%"},500)});var w=this.annotation.number+1,A=this.globalScore(),E="";E+='<span class="Ldt-Quiz-Correct-Answer">'+A[0]+'</span> / <span class="Ldt-Quiz-Incorrect-Answer">'+A[1]+"</span>",jQuery(".Ldt-Quiz-Index").html("Q"+w+"/"+this.totalAmount),jQuery(".Ldt-Quiz-Score").html(E),this.submit(this.user,this.userid,this.annotation.id,h?"wrong_answer":"right_answer",v.join("")),jQuery(".Ldt-Quiz-Submit").fadeOut(400,function(){jQuery(".Ldt-Quiz-Votes").show()})}globalScore(){var o=_.values(this.correct),l=o.filter(function(u){return u==1}).length,t=o.filter(function(u){return u==0}).length;return[l,t]}refresh(){var o=this.getWidgetAnnotations().sortBy(function(t){return t.begin}),l=this;l.totalAmount=o.length,l.number=0,l.correct={},l.keys={},o.forEach(function(t){l.correct[t.id]=-1,l.keys[l.number]=t.id,t.number=l.number++})}draw(){var o=this;o.quiz_displayed=!1,this.onMediaEvent("enter-annotation",function(l){var t=o.getWidgetAnnotations().filter(function(u){return u===l});t.number===void 0&&o.refresh(),t.length&&o.update(t[0])}),this.onMdpEvent("Quiz.activate",function(){o.quiz_activated=!0}),this.onMdpEvent("Quiz.deactivate",function(){o.quiz_activated=!1,o.hide()}),this.onMdpEvent("Quiz.hide",function(){o.hide()}),this.onMdpEvent("Quiz.refresh",function(){o.refresh()}),this.onMediaEvent("pause",function(){o.quiz_displayed||jQuery(".Ldt-Pause-Add-Question").show()}),this.onMediaEvent("play",function(){jQuery(".Ldt-Pause-Add-Question").hide()}),o.overlay=jQuery("<div class='Ldt-Quiz-Overlay'></div>").appendTo(jQuery("#"+o.container)),o.PauseAddQuestion=jQuery("<div class='Ldt-Pause-Add-Question' title='Ajoutez une question !'>").on("click",function(){o.player.trigger("QuizCreator.create")}).appendTo(jQuery("#"+o.container)),o.overlay.html(this.template),jQuery(".Ldt-Quiz-Overlay").hide(),jQuery(".Ldt-Quiz-Submit input").click(function(){o.answer()}),jQuery(".Ldt-Quiz-Submit-Skip-Link").click({media:this.media},function(l){o.submit(o.user,o.userid,o.annotation.id,"skipped_answer",0),o.hide(),o.player.trigger("QuizCreator.skip"),l.data.media.play()}),jQuery('.Ldt-Quiz-Votes-Buttons input[type="button"], .Ldt-Quiz-Votes-Buttons a').click({media:this.media},function(l){var t,u;jQuery(this).hasClass("Ldt-Quiz-Vote-Useful")?(t="useful",u=1):jQuery(this).hasClass("Ldt-Quiz-Vote-Useless")?(t="useless",u=-1,jQuery(".Ldt-Ctrl-Quiz-Create").addClass("button_highlight").delay(5e3).queue(function(){jQuery(this).removeClass("button_highlight").dequeue()})):(t="skipped_vote",u=0),o.submit(o.user,o.userid,o.annotation.id,t,u),l.data.media.play(),o.hide(),jQuery(".Ldt-Pause-Add-Question").hide(),o.player.trigger("QuizCreator.skip")}),o.refresh()}},Or(e,"defaults",{quiz_activated:!0,api_serializer:"ldt_annotate",analytics_api:"",api_method:"POST",user:"",userid:""}),Or(e,"template",'<div class="Ldt-Quiz-Container"><div class="Ldt-Quiz-Header">  <div class="Ldt-Quiz-Index"></div><div class="Ldt-Quiz-Score"></div></div><div class="Ldt-Quiz-Content">  <h1 class="Ldt-Quiz-Title">{{question}}</h1>  <div class="Ldt-Quiz-Questions">  </div></div><div class="Ldt-Quiz-Footer">  <div class="Ldt-Quiz-Votes">      <span class="Ldt-Quiz-Votes-Question">Avez-vous trouvé cette question utile ?</span>      <div class="Ldt-Quiz-Votes-Buttons">          <div class="Ldt-Quiz-Vote-Skip-Block"><a href="#" class="Ldt-Quiz-Vote-Skip">Passer</a></div>          <div><input type="button" value="Non" class="Ldt-Quiz-Button Ldt-Quiz-Vote-Useless" /></div>          <div><input type="button" value="Oui" class="Ldt-Quiz-Button Ldt-Quiz-Vote-Useful" /></div>      </div>  </div>  <div class="Ldt-Quiz-Submit">      <div class="Ldt-Quiz-Submit-Button"><input type="button" value="Valider" class="Ldt-Quiz-Button" /></div>      <div class="Ldt-Quiz-Submit-Skip-Link"><a href="#">Passer</a></div><div style="clear:both;"></div>  </div>  <div class="Ldt-Quiz-Result">Bonne réponse</div></div></div>'),Or(e,"annotationTemplate",""),e},UniqueChoiceQuestion=function(n){return class extends n.Widgets.Widget{constructor(e){this.annotation=e}renderQuizTemplate(e,o){return'<input type="radio" class="quiz-question Ldt-Quiz-Question-Check Ldt-Quiz-Question-Check-'+o+'" name="question" data-question="'+o+'" value="'+o+'" />'}renderTemplate(e,o){var l=this.generateUid();return'<input type="radio" id="'+l+'" class="quiz-question-edition Ldt-Quiz-Question-Check Ldt-Quiz-Question-Check-'+o+'" name="question" data-question="'+o+'" value="'+o+'" /><label for="'+l+'" title="Veuillez sélectionner la réponse correcte"></label>'}renderFullTemplate(e,o){var l=e&&e.correct?"checked":"",t=this.generateUid();return'<input type="radio" id="'+t+'" '+l+' class="quiz-question-edition Ldt-Quiz-Question-Check Ldt-Quiz-Question-Check-'+o+'" name="question" data-question="'+o+'" value="'+o+'" /><label for="'+t+'"></label>'}}},MultipleChoiceQuestion=function(n){return class extends n.Widgets.Widget{constructor(e){this.annotation=e}renderQuizTemplate(e,o){return'<input type="checkbox" class="quiz-question Ldt-Quiz-Question-Check Ldt-Quiz-Question-Check-'+o+'" name="question['+o+']" data-question="'+o+'" value="'+o+'" /> '}renderTemplate(e,o){var l=this.generateUid();return'<input type="checkbox" id="'+l+'" class="quiz-question-edition Ldt-Quiz-Question-Check" name="question['+o+']" data-question="'+o+'" value="'+o+'" /><label for="'+l+'" title="Veuillez sélectionner la ou les réponses correctes"></label>'}renderFullTemplate(e,o){var l=e&&e.correct?"checked":"",t=this.generateUid();return'<input type="checkbox" id="'+t+'" '+l+' class="quiz-question-edition Ldt-Quiz-Question-Check" name="question['+o+']" data-question="'+o+'" value="'+o+'" /><label for="'+t+'"></label> '}submit(e,o,l,t,u){var h=this,v=mustache.render(this.analytics_api,{id:this.source.projectId}),w={username:e,useruuid:o,subject:l,property:t,value:u,session:h.session_id};jQuery.ajax({url:v,type:this.api_method,contentType:"application/json",data:JSON.stringify(w),success:function(A){},error:function(A,E,C){n.log("Error when sending annotation",C)}})}}},quizCreatorStyles={},QuizCreator=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}skip(){this.$.find(".Ldt-QuizCreator-Time").val(""),this.$.find(".Ldt-QuizCreator-Question-Area").val(""),this.$.find(".Ldt-QuizCreator-Resource-Area").val(""),this.$.find(".Ldt-QuizCreator-Questions-Block").html(""),this.current_annotation=void 0}nbAnswers(){var o=this.$.find(".Ldt-QuizCreator-Questions-Answer").length;return o}draw(){var o=this;this.onMediaEvent("timeupdate",function(l){o.setBegin(l)}),this.onMdpEvent("QuizCreator.show",function(){o.setBegin(o.media.currentTime)}),this.onMdpEvent("QuizCreator.create",function(){o.skip(),o.setBegin(o.media.currentTime)}),this.onMdpEvent("QuizCreator.skip",function(){o.skip()}),this.onMdpEvent("QuizCreator.edit",function(l){o.skip(),o.addQuestion(l)}),this.$.on("click",".Ldt-QuizCreator-Remove",function(){jQuery(this).parents(".Ldt-QuizCreator-Questions-Answer").remove()}),this.begin=new n.Model.Time,this.end=this.source.getDuration(),this.answers=[],this.renderTemplate(),this.question=new n.Widgets.UniqueChoiceQuestion,this.$.find(".Ldt-QuizCreator-Question-Type").bind("change",this.functionWrapper("onQuestionTypeChange")),this.$.find(".Ldt-QuizCreator-Question-Add").bind("click",this.functionWrapper("onQuestionAdd")),this.$.find(".Ldt-QuizCreator-Question-Save").bind("click",this.functionWrapper("onSave")),this.$.find(".Ldt-QuizCreator-Time").keyup(function(){var l=o.$.find(".Ldt-QuizCreator-Time").val();o.begin=n.timestamp2ms(l),o.end=o.begin+1e3}),this.onMediaEvent("timeupdate",function(l){o.getDescription()&&o.setBegin(l)})}getDescription(){return this.$.find(".Ldt-QuizCreator-Question-Area").val().trim()}addQuestion(o,l){var t=this;o.content.data.type=="multiple_choice"?this.question=new n.Widgets.MultipleChoiceQuestion(o):o.content.data.type=="unique_choice"&&(this.question=new n.Widgets.UniqueChoiceQuestion(o));var u=o.content.data.answers;this.answers=[],this.$.find(".Ldt-QuizCreator-Time").val(o.begin),this.$.find(".Ldt-QuizCreator-Question-Area").val(o.content.data.question),this.$.find(".Ldt-QuizCreator-Resource-Area").val(o.content.data.resource),this.$.find(".Ldt-QuizCreator-Questions-Block").html(""),u.forEach(function(h){t.onQuestionAdd(null,h)}),t.current_annotation=o}onQuestionTypeChange(o){var l=this.$.find(".Ldt-QuizCreator-Question-Type"),t=l.val(),u=this;switch(t){case"unique_choice":this.question=new n.Widgets.UniqueChoiceQuestion;break;case"multiple_choice":this.question=new n.Widgets.MultipleChoiceQuestion;break}var h="";u.$.find(".Ldt-QuizCreator-Questions-Block").html(h),this.pauseOnWrite()}onQuestionAdd(o,l){var t='<div class="Ldt-QuizCreator-Questions-Answer">Réponse <div class="Ldt-QuizCreator-Questions-Answer-Correct">'+this.question.renderFullTemplate(l,this.nbAnswers())+'</div><br /><div class="Ldt-QuizCreator-Questions-Answer-Content"><input type="text" class="Ldt-QuizCreator-Answer-Content" data-question="'+this.nbAnswers()+'" id="question'+this.nbAnswers()+'"'+(l?' value="'+l.content+'"':"")+'/><br />Commentaire <br/><textarea class="Ldt-QuizCreator-Answer-Feedback" data-question="'+this.nbAnswers()+'" id="feedback'+this.nbAnswers()+'">'+(l?l.feedback:"")+'</textarea></div><div class="Ldt-QuizCreator-Questions-Answer-Delete"><div class="Ldt-QuizCreator-Remove">&nbsp;</div></div></div>';this.$.find(".Ldt-QuizCreator-Questions-Block").append(t),this.$.find(".Ldt-QuizCreator-Answer-Content").last().focus(),this.pauseOnWrite()}pauseOnWrite(){this.pause_on_write&&!this.media.getPaused()&&this.media.pause()}setBegin(o){this.begin=new n.Model.Time(o||0),this.end=this.begin+500,this.$.find(".Ldt-QuizCreator-Time").val(this.begin.toString())}get_local_annotation(o){return this.player.getLocalAnnotation(o)}save_local_annotations(){this.player.saveLocalAnnotations(),this.source.merge(this.player.localSource)}delete_local_annotation(o){this.source.getAnnotations().removeId(o),this.player.deleteLocalAnnotation(o),this.current_annotation=void 0,this.refresh(!0)}show(){this.$.find(".Ldt-QuizCreator-Question-Area").focus()}hide(){this.$.find(".Ldt-QuizCreator-Questions-Block").html(""),this.$.find(".Ldt-QuizCreator-Question-Area").val(""),this.$.find(".Ldt-QuizCreator-Resource-Area").val(""),this.$.find(".Ldt-QuizCreator-Time").val("")}onSave(o,l){var t=!1;if(this.nbAnswers()<=0)return alert("Vous devez spécifier au moins une réponse à votre question !"),!1;if(!this.$.find(".quiz-question-edition:checked").length)return alert("Vous n'avez pas indiqué de bonne réponse."),!1;var u;if(this.current_annotation)t=!1,u=this.current_annotation;else{t=!0;var h=this.source.getAnnotationTypes().searchByTitle(this.annotation_type,!0),v=h.length?h[0]:new n.Model.AnnotationType(!1,this.player.localSource);h.length||(v.dont_send_id=!0,v.title=this.annotation_type),u=new n.Model.Annotation(!1,this.player.localSource),u.created=new Date,u.creator=this.creator_name,u.setAnnotationType(v.id),this.player.localSource.getMedias().push(this.source.currentMedia),u.setMedia(this.source.currentMedia.id)}u.setBeginEnd(this.begin,this.end),u.modified=new Date,u.contributor=this.creator_name,u.description=this.getDescription(),u.title=u.description,u.content={},u.content.data={},u.content.data.type=this.$.find(".Ldt-QuizCreator-Question-Type").val(),u.content.data.question=u.description,u.content.data.resource=this.$.find(".Ldt-QuizCreator-Resource-Area").val(),u.content.data.answers=jQuery.makeArray(jQuery(".Ldt-QuizCreator-Questions-Answer").map(function(w){return{content:jQuery(this).find(".Ldt-QuizCreator-Answer-Content").val(),feedback:jQuery(this).find(".Ldt-QuizCreator-Answer-Feedback").val(),correct:jQuery(this).find(".Ldt-Quiz-Question-Check").is(":checked")}})),this.current_annotation=u,t?(this.player.addLocalAnnotation(u),this.source.merge([u]),this.player.trigger("Annotation.create",u)):(this.player.saveLocalAnnotations(),this.player.trigger("Annotation.update",u)),this.player.trigger("AnnotationsList.update"),this.player.trigger("Quiz.refresh")}},Or(e,"defaults",{creator_name:"",tags:!1,tag_titles:!1,pause_on_write:!0,annotation_type:"Quiz",api_serializer:"ldt_annotate",api_endpoint_template:"",api_method:"POST"}),Or(e,"messages",{en:{},fr:{}}),Or(e,"template",'<div class="Ldt-QuizCreator-Ui Ldt-TraceMe"><div class="Ldt-QuizCreator-Question-Form"><textarea class="Ldt-QuizCreator-Question-Area" placeholder="Votre question"></textarea><br /><textarea class="Ldt-QuizCreator-Resource-Area" placeholder="Ressources (lien vers une image, etc.)"></textarea><br /></div><p>Type de question  <select name="type" class="Ldt-QuizCreator-Question-Type"><option value="unique_choice">Choix unique</option><option value="multiple_choice">Choix multiple</option></select> à <input type="text" placeholder="hh:mm:ss" size="6" class="Ldt-QuizCreator-Time" /><div class="Ldt-QuizCreator-Questions-Block"></div><div>  <button class="Ldt-QuizCreator-Question-Add">Ajouter une réponse</button><hr>  <button class="Ldt-QuizCreator-Question-Save">Sauvegarder</button></div></div>'),e},segmentsStyles={},Segments=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}do_draw(o){this.width!=this.$.parent().width()&&this.scale_to_parent&&(this.width=this.$.parent().width(),this.$.css({width:this.width+"px"}));var l=this,t=this.getWidgetAnnotations().filter(function(E){return E.getDuration()>0&&E.getMedia().id==l.media.id}),u=this.width/this.source.getDuration(),h=this.$.find(".Ldt-Segments-List"),v=[],w=1;function A(E,C,M,P){function I(B){return Math.floor(240*(1-P)+B*P)}for(var j=(65536*I(E)+256*I(C)+I(M)).toString(16);j.length<6;)j="0"+j;return"#"+j}o&&this.$.find(".Ldt-Segments-Segment").remove(),t.forEach(function(E,C){var M=E.begin*u,P=E.getDuration()*u,I=Math.floor(M+P/2),j=E.title+(E.description?"<br/>"+E.description:""),B=_$1(v).find(function(L){return!_$1(L.annotations).find(function(p){return p.begin<E.end&&p.end>E.begin})});B||(B={index:v.length,annotations:[]},v.push(B)),B.annotations.push(E);var F=(1-l.overlap)*B.index*l.line_height,N=typeof E.color<"u"&&E.color?E.color:l.colors[C%l.colors.length],ee=parseInt(N.substr(1,2),16),Z=parseInt(N.substr(3,2),16),re=parseInt(N.substr(5,2),16),fe=A(ee,Z,re,.5),V=A(ee,Z,re,.2),le={color:N,medcolor:fe,lowcolor:V,text:(E.creator?E.creator+" : ":"")+j.replace(/(\n|\r|\r\n)/gm," ").replace(/(^.{120,140})[\s].+$/m,"$1&hellip;"),left:M,width:P,top:F,height:l.line_height-1,id:E.id,media_id:E.getMedia().id,from:E.begin.toString(),to:E.end.toString()},he=mustache.render(l.constructor.annotationTemplate,le),ye=jQuery(he);ye.on("mouseover",function(){E.trigger("select")}).on("mouseout",function(){E.trigger("unselect")}).on("click",function(){l.use_timerange&&(l.media.getTimeRange()?l.media.getTimeRange()[0]==E.begin||l.media.getTimeRange()[1]==E.end?(l.media.resetTimeRange(),l.$segments.each(function(){var L=jQuery(this);L.css("background",V).removeClass("selected"),E.trigger("select")})):(l.media.setCurrentTime(E.begin),l.media.setTimeRange(E.begin,E.end),l.media.play(),l.$segments.each(function(){var L=jQuery(this);L.css("background",V).removeClass("selected")}),ye.css("background",l.selected_color).addClass("selected")):(l.media.setCurrentTime(E.begin),l.media.setTimeRange(E.begin,E.end),l.media.play(),l.$segments.each(function(){var L=jQuery(this);L.css("background",V).removeClass("selected")}),ye.css("background",l.selected_color).addClass("selected"))),E.trigger("click")}).appendTo(h),n.attachDndData(ye,{title:E.title,description:E.description,uri:typeof E.url<"u"?E.url:document.location.href.replace(/#.*$/,"")+"#id="+E.id,image:E.thumbnail,text:"["+E.begin.toString()+"] "+E.title}),E.on("select",function(){l.$segments.each(function(){var L=jQuery(this);L.css({background:L.hasClass("found")?l.faded_found_color:L.attr("data-low-color")}),L.css({background:L.hasClass("selected")?l.faded_selected_color:L.attr("data-low-color")})}),ye.css({background:ye.hasClass("found")?l.found_color:N,background:ye.hasClass("selected")?l.selected_color:N,"z-index":++w}),l.tooltip&&l.tooltip.show(I,F,le.text,le.color)}),E.on("unselect",function(){l.tooltip&&l.tooltip.hide(),l.$segments.each(function(){var L=jQuery(this);L.css("background",L.hasClass("found")?l.found_color:L.attr("data-medium-color")),L.css("background",L.hasClass("selected")?l.selected_color:L.attr("data-medium-color"))})}),E.on("found",function(){ye.css("background",l.found_color).addClass("found")}),E.on("not-found",function(){ye.css("background",V).removeClass("found")})}),this.onMediaEvent("resettimerange",function(){l.$segments.each(function(){var E=jQuery(this);E.removeClass("selected")})}),this.$.css({width:this.width+"px",height:((1-this.overlap)*v.length+this.overlap)*this.line_height+"px",background:this.background,margin:"1px 0"}),this.$segments=this.$.find(".Ldt-Segments-Segment")}draw(){var o=this;o.onMediaEvent("timeupdate","onTimeupdate"),o.renderTemplate(),o.do_draw(),this.no_tooltip||o.insertSubwidget(o.$.find(".Ldt-Segments-Tooltip"),{type:"Tooltip",min_x:0,max_x:this.width},"tooltip"),o.source.getAnnotations().on("search",function(){searching=!0}),o.source.getAnnotations().on("search-cleared",function(){searching=!1,_this.$segments.each(function(){var l=jQuery(this);l.css("background",l.attr("data-medium-color")).removeClass("found")})}),this.$.on("resize",function(){o.do_draw(!0)})}onTimeupdate(o){var l=Math.floor(this.width*o/this.media.duration);this.$.find(".Ldt-Segments-Position").css({left:l+"px"})}},Or(e,"defaults",{annotation_type:"chap",colors:["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],line_height:8,background:"#e0e0e0",overlap:.25,found_color:"#FF00FC",faded_found_color:"#ff80fc",selected_color:"#74d600",faded_selected_color:"#baf9b5",no_tooltip:!1,use_timerange:!1,scale_to_parent:!0}),Or(e,"template",'<div class="Ldt-Segments-List"></div><div class="Ldt-Segments-Position"></div><div class="Ldt-Segments-Tooltip"></div>'),Or(e,"annotationTemplate",'<div class="Ldt-Segments-Segment Ldt-TraceMe" trace-info="segment-id:{{id}}, media-id:{{media_id}}, from:{{from}}, to:{{to}}" segment-text="{{text}}"style="top:{{top}}px; height:{{height}}px; left:{{left}}px; width:{{width}}px; background:{{medcolor}}" data-base-color="{{color}}" data-low-color="{{lowcolor}}" data-medium-color="{{medcolor}}"></div>'),e},shortcutsStyles={},Shortcuts=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){var o=this;Mousetrap.bindGlobal("ctrl+space",function(l){return l.preventDefault(),o.media.getPaused()?o.media.play():o.media.pause(),!1}),Mousetrap.bindGlobal("ctrl+left",function(l){return l.preventDefault(),o.media.setCurrentTime(Math.max(0,o.media.getCurrentTime()-o.time_increment)),!1}),Mousetrap.bindGlobal("ctrl+shift+left",function(l){return l.preventDefault(),o.media.setCurrentTime(Math.max(0,o.media.getCurrentTime()-5*o.time_increment)),!1}),Mousetrap.bindGlobal("ctrl+right",function(l){return l.preventDefault(),o.media.setCurrentTime(Math.min(o.media.duration,o.media.getCurrentTime()+o.time_increment)),!1}),Mousetrap.bindGlobal("ctrl+shift+right",function(l){return l.preventDefault(),o.media.setCurrentTime(Math.min(o.media.duration,o.media.getCurrentTime()+5*o.time_increment)),!1}),Mousetrap.bindGlobal("ctrl+a",function(l){return l.preventDefault(),o.player.trigger("CreateAnnotation.toggle"),!1})}},Or(e,"defaults",{time_increment:2e3}),e},sliceStyles={},Slice=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l),this.sliding=!1}draw(){this.renderTemplate(),this.$slider=this.$.find(".Ldt-Slice"),this.show_arrow&&this.insertSubwidget(this.$.find(".Ldt-Slice-Arrow"),{type:"Arrow"},"arrow"),this.min=0,this.max=this.media.duration.valueOf();var o=this,l;this.$slider.slider({range:!0,values:[0,this.max],min:0,max:this.max,change:function(t,u){o.arrow&&o.arrow.moveToTime((u.values[0]+u.values[1])/2),o.onBoundsChanged&&o.onBoundsChanged(u.values[0],u.values[1])},start:function(){o.sliding=!0,o.media.getPaused()||o.media.pause(),l=o.media.getCurrentTime()},slide:function(t,u){o.media.setCurrentTime(u.value)},stop:function(){o.sliding=!1,o.media.setCurrentTime(l)}}),this.$slider.find(".ui-slider-handle:first").addClass("Ldt-Slice-left-handle"),this.$slider.find(".ui-slider-handle:last").addClass("Ldt-Slice-right-handle"),this.getWidgetAnnotations().forEach(function(t){t.on("enter",function(){o.setBounds(t.begin,t.end)})}),this.player.on("annotation-click",function(t){o.setBounds(t.begin,t.end)})}setBounds(o,l){this.$slider.slider("values",[o,l])}show(){this.$slider.show()}hide(){this.$slider.hide()}},Or(e,"defaults",{show_arrow:!1}),Or(e,"template",'<div class="Ldt-Slice"></div>{{#show_arrow}}<div class="Ldt-Slice-Arrow"></div>{{/show_arrow}}'),e},slidePreviewStyles={},SlidePreview=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){this.getWidgetAnnotations().sortBy(function(t){return t.begin});var o=this;o.renderTemplate();var l=o.$.find(".Ldt-SlidePreview-Slides");this.getWidgetAnnotations().forEach(function(t){var u={id:t.id,content:n.textFieldHtml(t.title),begin:t.begin.toString(),ms:t.begin.milliseconds,thumbnail:t.thumbnail},h=mustache.render(o.annotationTemplate,u),v=jQuery(h);l.append(v)}),o.$.on("click",".Ldt-SlidePreview-Item",function(){o.media.setCurrentTime(Number(this.dataset.timecode))})}},Or(e,"defaults",{annotation_type:"Slides"}),Or(e,"template",'<div class="Ldt-SlidePreview-Container"><div class="Ldt-SlidePreview-Slides"></div></div>'),Or(e,"annotationTemplate",'<div data-id="{{ id }}" data-timecode="{{ ms }}" class="Ldt-SlidePreview-Item"><img title="{{ begin }} - {{ atitle }}" class="Ldt-AnnotationsList-Thumbnail" src="{{ thumbnail }}"></div>'),e},sliderStyles={},Slider=function(n){var e;return e=class extends n.Widgets.Widget{constructor(l,t){super(l,t);Or(this,"calculateHandleCss",function(l){return{height:2+l+"px",width:2+l+"px","margin-left":-Math.ceil(2+l/2)+"px"}})}draw(){this.renderTemplate(),this.$time=this.$.find(".Ldt-Slider-Time"),this.$slider=this.$.find(".Ldt-Slider");var l=this;this.$slider.slider({range:"min",value:0,min:0,max:this.source.getDuration().milliseconds,slide:function(t,u){l.media.setCurrentTime(u.value),l.player.trigger("Mediafragment.setHashToTime")}}),this.$handle=this.$slider.find(".ui-slider-handle"),this.onMediaEvent("timeupdate","onTimeupdate"),this.onMdpEvent("Player.MouseOver","onMouseover"),this.onMdpEvent("Player.MouseOut","onMouseout"),this.minimize_timeout&&(this.$slider.css(this.calculateSliderCss(this.minimized_height)),this.$handle.css(this.calculateHandleCss(this.minimized_height)),this.maximized=!1,this.timeoutId=!1),this.$slider.mouseover(function(){l.$time.show(),l.onMouseover()}).mouseout(this.functionWrapper("onMouseout")).mousemove(function(t){var u=t.pageX-l.$.offset().left,h=new n.Model.Time(l.media.duration*u/l.width);l.$time.text(h.toString()).css("left",u)})}onTimeupdate(l){this.$slider.slider("value",l),this.player.trigger("Arrow.updatePosition",{widget:this.type,time:l})}onMouseover(){this.minimize_timeout&&(this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=!1),this.maximized||(this.animateToHeight(this.maximized_height),this.maximized=!0))}onMouseout(){if(this.$time.hide(),this.minimize_timeout){this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=!1);var l=this;this.timeoutId=window.setTimeout(function(){l.maximized&&(l.animateToHeight(l.minimized_height),l.maximized=!1),l.timeoutId=!1},this.minimize_timeout)}}animateToHeight(l){this.$slider.stop().animate(this.calculateSliderCss(l),500,function(){jQuery(this).css("overflow","visible")}),this.$handle.stop().animate(this.calculateHandleCss(l),500,function(){jQuery(this).css("overflow","visible")})}calculateSliderCss(l){return{height:l+"px","margin-top":this.minimized_height-l+"px"}}},Or(e,"defaults",{minimized_height:4,maximized_height:4,minimize_timeout:1500}),Or(e,"template",'<div class="Ldt-Slider"></div><div class="Ldt-Slider-Time">00:00</div>'),e},slideVideoPlayerStyles={},SlideVideoPlayer=function(n){var e;return e=class extends n.Widgets.Widget{constructor(l,t){super(l,t);Or(this,"template",'<div class="Ldt-SlideVideoPlayer">  <div class="Ldt-SlideVideoPlayer-slide Ldt-SlideVideoPlayer-panel">  </div>  <div class="Ldt-SlideVideoPlayer-video Ldt-SlideVideoPlayer-panel">  </div></div>')}draw(){var l=this;l.renderTemplate(),this.insertSubwidget(l.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-slide"),{type:"ImageDisplay",annotation_type:l.annotation_type},"slide"),this.insertSubwidget(l.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-video"),{type:l.playerModule,video:l.video,width:"100%",url_transform:l.url_transform},"player"),l.mode=="pip"?(l.$.find(".Ldt-SlideVideoPlayer-panel").append('<div class="Ldt-SlideVideoPlayer-pip-menu"><div class="Ldt-SlideVideoPlayer-pip-menu-toggle"></div></div>'),l.$.on("click",".Ldt-SlideVideoPlayer-pip-menu-toggle",function(){l.toggleMainDisplay()}),window.setTimeout(function(){l.setMainDisplay("video")},1500)):window.setTimeout(function(){l.$.find(".Ldt-SlideVideoPlayer").touchSplit({orientation:screen.height>screen.width?"vertical":"horizontal",leftMin:20,topMin:20})},1500)}toggleMainDisplay(){this.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-video").hasClass("Ldt-SlideVideoPlayer-pip-main")?this.setMainDisplay("slides"):this.setMainDisplay("video")}setMainDisplay(l){var t=this.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-video"),u=this.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-slide");if(l=="slides"){var h=t;t=u,u=h}t.removeClass("Ldt-SlideVideoPlayer-pip-pip").addClass("Ldt-SlideVideoPlayer-pip-main"),u.removeClass("Ldt-SlideVideoPlayer-pip-main").addClass("Ldt-SlideVideoPlayer-pip-pip")}},Or(e,"defaults",{playerModule:"HtmlPlayer",mode:"sidebyside"}),e},socialStyles={},Social=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){this.renderTemplate(),this.clipId=_$1.uniqueId("Ldt-Social-CopyBtn-"),this.$.find(".Ldt-Social-CopyBtn").attr("id",this.clipId);var o=this;this.$.find(".Ldt-Social-Url").click(function(){return o.toggleCopy(),!1}).on("dragstart",function(l){l.originalEvent.dataTransfer.setData("text/x-iri-title",o.text),l.originalEvent.dataTransfer.setData("text/x-iri-uri",o.url)}),this.$.find(".Ldt-Social-Input").focus(function(){this.select()}),this.$.find(".Ldt-Social-Ext").click(function(){return window.open(jQuery(this).attr("href"),"_blank","height=300,width=450,left=100,top=100,toolbar=0,menubar=0,status=0,location=0"),!1}),this.updateUrls(this.url,this.text)}toggleCopy(){var o=this.$.find(".Ldt-Social-UrlPop");o.toggle(),this.$.find(".Ldt-Social-Input").val(this.url).focus()}updateUrls(o,l){this.url=o,this.text=l,this.$.find(".Ldt-Social-Fb").attr("href","http://www.facebook.com/share.php?"+jQuery.param({u:o,t:l})),this.$.find(".Ldt-Social-Twitter").attr("href","https://twitter.com/intent/tweet?"+jQuery.param({url:o,text:l})),this.$.find(".Ldt-Social-Gplus").attr("href","https://plus.google.com/share?"+jQuery.param({url:o,title:l})),this.$.find(".Ldt-Social-Mail").attr("href","mailto:?"+jQuery.param({subject:l,body:l+": "+o}))}},Or(e,"defaults",{text:"",url:"",show_url:!0,show_twitter:!0,show_fb:!0,show_gplus:!0,show_mail:!0}),Or(e,"template",'<span class="Ldt-Social">{{#show_url}}<div class="Ldt-Social-Url-Container"><a href="#" draggable="true" target="_blank" class="Ldt-Social-Square Ldt-Social-Url Ldt-TraceMe" title="{{l10n.share_link}}"></a><div class="Ldt-Social-UrlPop"><input class="Ldt-Social-Input"/></div></div>{{/show_url}}{{#show_fb}}<a href="#" target="_blank" class="Ldt-Social-Fb Ldt-Social-Ext Ldt-TraceMe" title="{{l10n.share_on}} Facebook"></a>{{/show_fb}}{{#show_twitter}}<a href="#" target="_blank" class="Ldt-Social-Twitter Ldt-Social-Ext Ldt-TraceMe" title="{{l10n.share_on}} Twitter"></a>{{/show_twitter}}{{#show_gplus}}<a href="#" target="_blank" class="Ldt-Social-Gplus Ldt-Social-Ext Ldt-TraceMe" title="{{l10n.share_on}} Google+"></a>{{/show_gplus}}{{#show_mail}}<a href="#" target="_blank" class="Ldt-Social-Mail Ldt-TraceMe" title="{{l10n.share_mail}}"></a>{{/show_mail}}</span>'),Or(e,"messages",{fr:{share_on:"Partager sur",share_mail:"Envoyer par courriel",share_link:"Partager le lien hypertexte",copy:"Copier"},en:{share_on:"Share on",share_mail:"Share by e-mail",share_link:"Share hypertext link",copy:"Copy"}}),e},Sparkline=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){for(var o=[],l=this.source.getDuration(),t=0,u=this.getWidgetAnnotations(),h=0;h<this.slice_count;h++){var v=h*l/this.slice_count,w=(h+1)*l/this.slice_count,A=0;u.forEach(function(B){if(B.begin<w&&B.end>=v){var F=B.getDuration().milliseconds;F?A+=(Math.min(B.end,w)-Math.max(B.begin,v))/F:A+=1}}),t=Math.max(t,A),o.push(A)}if(t){this.paper=new Raphael(this.$[0],this.width,this.height);var E=(this.height-this.margin)/t,C=this.width/this.slice_count,M=this,P=_$1(o).map(function(B){return M.margin+M.height-E*B}).value(),I=_$1(P).reduce(function(B,F,N){return B+(N?"C"+N*C+" "+P[N-1]+" "+N*C+" "+F+" "+(N+.5)*C+" "+F:"M0 "+F+"L"+.5*C+" "+F)},"")+"L"+this.width+" "+P[P.length-1],j=I+"L"+this.width+" "+this.height+"L0 "+this.height;this.paper.path(j).attr({stroke:"none",fill:this.fillColor}),this.paper.path(I).attr({fill:"none",stroke:this.lineColor,"stroke-width":this.lineWidth}),this.rectangleProgress=this.paper.rect(0,0,0,this.height).attr({stroke:"none",fill:"#808080",opacity:.3}),this.ligneProgress=this.paper.path("M0 0L0 "+this.height).attr({stroke:"#ff00ff","line-width":2}),this.$.click(function(B){var F=B.pageX-M.$.offset().left;M.media.setCurrentTime(M.media.duration*F/M.width)}),this.onMediaEvent("timeupdate","onTimeupdate")}}onTimeupdate(o){var l=Math.floor(this.width*o/this.media.duration);this.rectangleProgress.attr({width:l}),this.ligneProgress.attr({path:"M"+l+" 0L"+l+" "+this.height})}},Or(e,"defaults",{lineColor:"#7492b4",fillColor:"#aeaeb8",lineWidth:2,slice_count:20,height:50,margin:5}),e},SpelSyncHtml=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){this.renderTemplate();var o=this.$.find("iframe")[0],l=this.src.replace(/#.*$/,"");this.getWidgetAnnotations().forEach(function(t){t.on("enter",function(){t.content&&t.content.data&&t.content.data.ref_text&&(o.src=l+"#"+t.content.data.ref_text)})})}},Or(e,"defaults",{src:"about:blank"}),Or(e,"template",'<div class="Ldt-SpelSyncHtml"><iframe src="{{src}}" {{#width}}width="{{width}}"{{/width}} {{#height}}height="{{height}}"{{/height}}</div>'),e},tagcloudStyles={},Tagcloud=function(n){var e;return e=class extends n.Widgets.Widget{constructor(l,t){super(l,t);Or(this,"stopword_lists",{fr:["aussi","avec","aux","bien","car","cette","comme","dans","des","donc","dont","elle","encore","entre","est","être","eux","faire","fait","http","ici","ils","les","leur","leurs","mais","mes","même","mon","notre","non","nos","nous","ont","par","pas","peu","peut","plus","pour","quand","que","qui","quoi","sans","ses","son","sont","sur","tes","très","the","ton","tous","tout","une","votre","vos","vous"],en:["about","again","are","and","because","being","but","can","done","have","for","from","get","here","http","like","more","one","our","she","that","the","their","then","there","they","this","very","what","when","where","who","why","will","with","www","you","your"]});this.stopwords=_$1.uniq([].concat(this.custom_stopwords).concat(this.stopword_lists[this.stopword_language]))}draw(){if(this.segment_annotation_type){var l=this;this.source.getAnnotationsByTypeTitle(this.segment_annotation_type).forEach(function(t){t.on("enter",function(){l.redraw(t.begin,t.end)})})}else this.redraw()}redraw(l,t){var u=/https?:\/\/[0-9a-zA-Z\.%\/-_]+/g,h={},v=this,w=this.getWidgetAnnotations();if(!this.include_titles&&!this.include_descriptions)var A=/[^\.&;,'"!\?\d\(\)\+\[\]\\\…\-«»\/]{3,}/g;else var A=/[^\s\.&;,'"!\?\d\(\)\+\[\]\\\…\-«»:\/]{3,}/g;if(typeof l<"u"&&typeof t<"u"&&(w=w.filter(function(P){return P.begin>=l&&P.end<=t})),this.remove_zero_duration&&(w=w.filter(function(P){return P.getDuration()>0})),w.forEach(function(P){var I=(v.include_titles?P.title:"")+" "+(v.include_descriptions?P.description:"")+" "+(v.include_tag_texts?P.getTagTexts():"");_$1(I.toLowerCase().replace(u,"").match(A)).each(function(j){j=j.trim(),_$1(v.stopwords).indexOf(j)==-1&&(!v.exclude_pattern||!v.exclude_pattern.test(j))&&(h[j]=1+(h[j]||0))})}),h=_$1(h).chain().map(function(P,I){return{word:I,count:P}}).filter(function(P){return P.count>v.min_count}).sortBy(function(P){return-P.count}).first(this.tag_count).value(),h&&h.length){var E=h[0].count,C=Math.min(h[h.length-1].count,E-1),M=(this.max_font_size-this.min_font_size)/Math.sqrt(E-C);_$1(h).each(function(P){P.size=Math.floor(v.min_font_size+M*Math.sqrt(P.count-C))})}this.$.html(mustache.render(this.constructor.template,{words:h})),this.$.find(".Ldt-Tagcloud-item").click(function(){var P=jQuery(this).attr("content");v.source.getAnnotations().searchByTags(P)}),this.source.getAnnotations().on("search",this.functionWrapper("onSearch")),this.source.getAnnotations().on("search-cleared",this.functionWrapper("onSearch"))}onSearch(l){if(l=typeof l<"u"?l:"",l)var t=n.Model.regexpFromTextOrArray(l);this.$.find(".Ldt-Tagcloud-item").each(function(){var u=jQuery(this),h=u.attr("content");l?u.html(h.replace(t,'<span class="Ldt-Tagcloud-active">$1</span>')):u.html(h)})}},Or(e,"template",'<div class="Ldt-Tagcloud-Container"><ul class="Ldt-Tagcloud-List">{{#words}}<li class="Ldt-Tagcloud-item Ldt-TraceMe" trace-info="tag:{{word}}" content="{{word}}" style="font-size: {{size}}px">{{word}}</li>{{/words}}</ul></div>'),Or(e,"defaults",{include_titles:!0,include_descriptions:!0,include_tag_texts:!0,tag_count:30,stopword_language:"fr",custom_stopwords:[],exclude_pattern:!1,annotation_type:!1,segment_annotation_type:!1,min_font_size:10,max_font_size:26,min_count:2,remove_zero_duration:!1}),e},Title=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){this.renderTemplate()}},Or(e,"defaults",{media_title:!1}),Or(e,"template",'<div class="Ldt-TitleWidget"><h2>{{#media_title}}{{media.title}}{{/media_title}}{{^media_title}}{{source.title}}{{/media_title}}</h2></div>'),e},tooltipStyles={},Tooltip=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){const o=this;this.renderTemplate(),this.$.parent().css({position:"relative"}),this.$tooltip=this.$.find(".Ldt-Tooltip"),this.$tip=this.$.find(".Ldt-Tooltip-Tip"),this.$sw=this.$.find(".Ldt-Tooltip-Border-SW"),this.$se=this.$.find(".Ldt-Tooltip-Border-SE"),this.__halfWidth=Math.floor((this.$.find(".Ldt-Tooltip-Main").width()||192)/2),this.__borderWidth=this.$.find(".Ldt-Tooltip-Border-Left").width(),this.__tipDelta=this.__halfWidth-Math.floor(this.$tip.width()/2),this.__maxShift=this.__tipDelta-this.__borderWidth,this.$.mouseover(function(){o.$tooltip.hide()}),this.hide()}show(o,l,t,u){if(typeof u<"u")if(typeof u=="string")this.$.find(".Ldt-Tooltip-Color").html(""),this.$.find(".Ldt-Tooltip-Color").show().css("background-color",u),this.$.find(".Ldt-Tooltip-Color").show().css("height","");else{var h=this.$.find(".Ldt-Tooltip-Color");h.html(""),h.show();for(var v=0;v<u.length;v++)h.append('<div style="float: left; height: 10px; width: 10px; background-color: '+u[v]+'">');this.$.find(".Ldt-Tooltip-Color").css("height",u.length*10+"px")}else this.$.find(".Ldt-Tooltip-Color").hide();this.$.find(".Ldt-Tooltip-Text").html(t),this.$tooltip.show();var w=0;typeof this.min_x<"u"&&o-this.__halfWidth<this.min_x&&(w=Math.max(o-this.__halfWidth-this.min_x,-this.__maxShift)),typeof this.max_x<"u"&&+o+this.__halfWidth>this.max_x&&(w=Math.min(+o+this.__halfWidth-this.max_x,this.__maxShift)),this.$tooltip.css({left:o-w+"px",top:l+"px"}),this.$tip.css({left:this.__tipDelta+w+"px"}),this.$sw.css({width:this.__tipDelta+w-this.__borderWidth+"px"}),this.$se.css({width:this.__tipDelta-w-this.__borderWidth+"px"})}hide(){this.$tooltip.hide()}},Or(e,"defaults",{}),Or(e,"template",'<div class="Ldt-Tooltip"><div class="Ldt-Tooltip-Main"><div class="Ldt-Tooltip-Corner-NW"></div><div class="Ldt-Tooltip-Border-Top"></div><div class="Ldt-Tooltip-Corner-NE"></div><div class="Ldt-Tooltip-Border-Left"></div><div class="Ldt-Tooltip-Border-Right"></div><div class="Ldt-Tooltip-Corner-SW"></div><div class="Ldt-Tooltip-Border-SW"></div><div class="Ldt-Tooltip-Tip"></div><div class="Ldt-Tooltip-Border-SE"></div><div class="Ldt-Tooltip-Corner-SE"></div><div class="Ldt-Tooltip-Inner"><div class="Ldt-Tooltip-Color"></div><p class="Ldt-Tooltip-Text"></p></div></div></div>'),e},transcriptStyles={},Transcript=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){var o=this.getWidgetAnnotations(),l=this,t;if(l.renderTemplate(),t=l.$.find(".Ldt-TranscriptWidget"),l.use_vtt_track){var u=l.player.widgets.filter(function(v){return v.type=="HtmlPlayer"});if(u){var h=u[0].$.find("video")[0];h.addEventListener("loadedmetadata",function(){var v=h.textTracks[0],w=v.cues,A=1;Array.prototype.forEach.apply(w,[function(E){E.id="cue"+A;var C=mustache.render(l.annotationTemplate,{id:E.id,content:E.text,begin:1e3*E.startTime,end:1e3*E.endTime});A+=1;var M=jQuery(C);t.append(M)}]),v.addEventListener("cuechange",function(){var E=v.activeCues;E.length>0&&(l.$.find(".Ldt-Transcript-Annotation.active").removeClass("active"),Array.prototype.forEach.apply(E,[function(C){l.$.find("#"+C.id).addClass("active")}]))},!1),t.on("click",".Ldt-Transcript-Annotation",function(){l.media.setCurrentTime(this.dataset.begin)})})}else console.log("cannot find a video object")}else o.forEach(function(v){var w={id:v.id,content:n.textFieldHtml(v.title),begin:v.begin.toString(),end:v.end.toString()},A=mustache.render(l.annotationTemplate,w),E=jQuery(A);t.append(E)})}},Or(e,"defaults",{annotation_type:"Caption",use_vtt_track:!1}),Or(e,"template",'<div class="Ldt-TranscriptWidget"></div>'),Or(e,"annotationTemplate",'<span data-begin="{{ begin }}" data-end="{{ end }}" data-id="{{ id }}" class="Ldt-Transcript-Annotation">{{ content }}</span>  '),e},tweetStyles={},Tweet=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l),this.lastAnnotation=!1}draw(){this.renderTemplate(),this.pinned=this.pin_at_start;var o=this;this.$.find(".Ldt-Tweet-Pin").click(function(){o.pinned=!o.pinned;var l=jQuery(this);o.pinned?(l.addClass("active").attr("title",o.l10n.dont_keep_visible),o.cancelTimeout()):(l.removeClass("active").attr("title",o.l10n.keep_visible),o.hideTimeout())}),this.$.find(".Ldt-Tweet-Close").click(function(){o.hide()}),this.$.hide(),this.getWidgetAnnotations().forEach(function(l){l.on("click",function(){o.show(l)})})}show(o){if(typeof o<"u"&&typeof o.source<"u"){var l=[[/#(\w+)/gm,function(M){return'<a href="http://twitter.com/search?q=%23'+M[1]+'" target="_blank">'},"</a>"]],t=_$1(o.source.entities.urls).sortBy(function(M){return M.indices[0]}),u=0,h="";_$1(t).each(function(M){M.indices[0]>=u&&(h+=o.source.text.substring(u,M.indices[0]),h+=typeof M.expanded_url<"u"&&M.expanded_url!==null?M.expanded_url:M.url,u=M.indices[1])}),h+=o.source.text.substring(u);for(var v=0;v<this.polemics.length;v++){var w=n.Model.regexpFromTextOrArray(this.polemics[v].keywords);l.push([w,'<span style="background: '+this.polemics[v].color+'">',"</span>"])}var w=o.found&&_this.source.getAnnotations().regexp||!1,A=o.source.user?o.source.user.profile_image_url:o.source.profile_image_url,E=o.source.user?o.source.user.screen_name:o.source.from_user,C=o.source.user?o.source.user.name:o.source.from_user_name;this.$.find(".Ldt-Tweet-Avatar").attr("src",A),this.$.find(".Ldt-Tweet-ScreenName").html("@"+E),this.$.find(".Ldt-Tweet-ProfileLink").attr("href","https://twitter.com/"+E),this.$.find(".Ldt-Tweet-FullName").html(C),this.$.find(".Ldt-Tweet-Contents").html(n.textFieldHtml(h,w,l)),this.$.find(".Ldt-Tweet-Time").html(this.l10n.original_time+new Date(o.source.created_at).toLocaleTimeString()+" / "+this.l10n.video_time+o.begin.toString()),this.$.find(".Ldt-Tweet-Retweet").attr("href","https://twitter.com/intent/retweet?tweet_id="+o.source.id_str),this.$.find(".Ldt-Tweet-Reply").attr("href","https://twitter.com/intent/tweet?in_reply_to="+o.source.id_str),this.$.find(".Ldt-Tweet-Original").attr("href","https://twitter.com/"+E+"/status/"+o.source.id_str),this.player.trigger("Annotation.minimize"),this.$.slideDown(),this.cancelTimeout(),this.pinned||this.hideTimeout()}else this.hide()}hide(){this.player.trigger("Annotation.maximize"),this.$.slideUp(),this.cancelTimeout()}cancelTimeout(){typeof this.hide_timer<"u"&&(window.clearTimeout(this.hide_timer),this.hide_timer=void 0)}hideTimeout(){this.cancelTimeout(),this.hide_timer=window.setTimeout(this.functionWrapper("hide"),this.hide_timeout)}},Or(e,"defaults",{hide_timeout:1e4,polemics:[{keywords:["++"],color:"#30d765"},{keywords:["--"],color:"#f51123"},{keywords:["=="],color:"#f1e24a"},{keywords:["??"],color:"#05aae6"}],annotation_type:"tweet",pin_at_start:!1}),Or(e,"messages",{fr:{retweet:"Retweeter",reply:"Répondre",keep_visible:"Empêcher la fermeture automatique",dont_keep_visible:"Permettre la fermeture automatique",close_widget:"Fermer l'affichage du tweet",original_time:"Heure d'envoi : ",video_time:"Temps de la vidéo : ",show_original:"Voir l'original"},en:{retweet:"Retweet",reply:"Reply",keep_visible:"Keep visible",dont_keep_visible:"Don't keep visible",close_widget:"Close tweet display",original_time:"Tweet sent at: ",video_time:"Video time: ",show_original:"Show original"}}),Or(e,"template",'<div class="Ldt-Tweet-Widget"><div class="Ldt-Tweet-Inner"><div class="Ldt-Tweet-PinClose-Buttons"><a href="#" class="Ldt-Tweet-Pin Ldt-TraceMe{{#pin_at_start}} active" title="{{l10n.dont_keep_visible}}{{/pin_at_start}}{{^pin_at_start}}" title="{{l10n.keep_visible}}{{/pin_at_start}}"></a><a href="#" class="Ldt-Tweet-Close Ldt-TraceMe" title="{{l10n.close_widget}}"></a></div><div class="Ldt-Tweet-AvatarContainer"><a href="#" class="Ldt-Tweet-ProfileLink" target="_blank"><img src="" class="Ldt-Tweet-Avatar"/></a></div><h3><a href="#" class="Ldt-Tweet-ProfileLink Ldt-Tweet-ScreenName" target="_blank"></a> (<span class="Ldt-Tweet-FullName"></span>)</h3><p class="Ldt-Tweet-Contents"></p><div class="Ldt-Tweet-Bottom"><span class="Ldt-Tweet-Time"></span><a class="Ldt-Tweet-Original" href="" target="_blank">{{l10n.show_original}}</a><a href="" target="_blank" class="Ldt-Tweet-Retweet"><div class="Ldt-Tweet-Icon"></div>{{l10n.retweet}}</a><a href="" target="_blank" class="Ldt-Tweet-Reply"><div class="Ldt-Tweet-Icon"></div>{{l10n.reply}}</a></div></div></div>'),e},AutoPlayer=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){typeof this.video>"u"&&(this.video=this.media.video);var o=["live","provider","autostart","streamer","video","height","width","url_transform","dailymotionPlayerId"],l={},t=[{regexp:/\.(mp4|m4v|mp3)$/,type:"AdaptivePlayer"},{regexp:/\.(ogg|ogv|webm)$/,type:"HtmlPlayer"},{regexp:/^(https?:\/\/)?(www\.)?youtube\.com/,type:"VideojsPlayer"},{regexp:/^(https?:\/\/)?(www\.)?vimeo\.com/,type:"VideojsPlayer"},{regexp:/^(https?:\/\/)?(www\.)?dailymotion\.com/,type:"VideojsPlayer"}];if(this.video){for(var u=0;u<t.length;u++)if(t[u].regexp.test(this.video.toLowerCase())){l.type=t[u].type;break}}if(typeof l.type>"u"&&(l.type=this.default_type),l.type==="AdaptivePlayer"){var h=document.createElement("video").canPlayType('video/mp4; codecs="avc1.42E01E"');l.type=h!=="no"?"HtmlPlayer":"JwpPlayer"}for(var u=0;u<o.length;u++)typeof this[o[u]]<"u"&&(l[o[u]]=this[o[u]]);this.insertSubwidget(this.$,l)}},Or(e,"defaults",{default_type:"HtmlPlayer"}),e},MultiSegments=function(n){var e;return e=class extends n.Widgets.Widget{constructor(o,l){super(o,l)}draw(){var o=this,l=[],t=null,u={},h={};_$1(this).each(function(v,w){/^segments_/.test(w)&&(u[w.replace(/^segments_/,"")]=v),/^annotation_/.test(w)&&(h[w.replace(/^annotation_/,"")]=v)}),this.source.getAnnotationTypes().forEach(function(v){var w=v.getAnnotations().filter(function(C){return C.getDuration()>0&&C.getMedia().id==o.media.id});if(w.length){var A=!1,E={segmentWidget:jQuery("<div>"),annotationWidget:jQuery("<div>"),hasSegmentsNow:function(){var C=o.media.getCurrentTime();return!!w.filter(function(M){return M.begin<=C&&M.end>C}).length},hide:function(){A&&(A=!1,this.annotationWidget.slideUp())},show:function(){A||(A=!0,this.annotationWidget.slideDown())}};E.segmentWidget.addClass("Ldt-MultiSegments-Segment").appendTo(o.$),o.show_all||E.segmentWidget.on("mouseenter",function(){E.hasSegmentsNow()&&(t=E)}),E.annotationWidget.addClass("Ldt-MultiSegments-Annotation").appendTo(o.$).hide(),o.insertSubwidget(E.segmentWidget,_$1({type:"Segments",annotation_type:v,width:"100%"}).extend(u).value()),o.insertSubwidget(E.annotationWidget,_$1({type:"Annotation",annotation_type:v,width:"100%"}).extend(h).value()),l.push(E)}}),jQuery(document).on("click",".Ldt-Segments-Segment",function(v){!o.show_all&&t&&!t.hasSegmentsNow()&&(t=void 0),_$1(l).each(function(w){jQuery(v.target).parent().parent()[0]==w.segmentWidget[0]?(t=w,w.show()):w.hide()})})}},Or(e,"defaults",{annotation_show_arrow:!0,annotation_start_minimized:!1,annotation_show_annotation_type:!0,show_all:!1}),e};function widgets(n){return{AdaptivePlayer:AdaptivePlayer(n),AutoPlayer:AutoPlayer(n),HelloWorld:HelloWorld(n),Annotation:Annotation(n),AnnotationsController:AnnotationsController(n),AnnotationsList:AnnotationsList(n),Arrow:Arrow(n),Controller:Controller(n),CreateAnnotation:CreateAnnotation(n),CurrentSegmentInfobox:CurrentSegmentInfobox(n),DailymotionPlayer:DailymotionPlayer(n),EnrichedPlan:EnrichedPlan(n),Highlighter:Highlighter(n),HtmlMashupPlayer:HtmlMashupPlayer(n),HtmlPlayer:HtmlPlayer(n),ImageDisplay:ImageDisplay(n),JwpPlayer:JwpPlayerWidget(n),LatestAnnotation:LatestAnnotation(n),MashupPlayer:MashupPlayer(n),Mediafragment:Mediafragment(n),MediaList:MediaList(n),MultiSegments:MultiSegments(n),NoteTaking:NoteTaking(n),PlaceholderPlayer:PlaceholderPlayer(n),Polemic:Polemic(n),PopcornPlayer:PopcornPlayer(n),Quiz:Quiz(n),UniqueChoiceQuestion:UniqueChoiceQuestion(n),MultipleChoiceQuestion:MultipleChoiceQuestion(n),QuizCreator:QuizCreator(n),Segments:Segments(n),Shortcuts:Shortcuts(n),Slice:Slice(n),SlidePreview:SlidePreview(n),Slider:Slider(n),SlideVideoPlayer:SlideVideoPlayer(n),Social:Social(n),Sparkline:Sparkline(n),SpelSyncHtml:SpelSyncHtml(n),Tagcloud:Tagcloud(n),Title:Title(n),Tooltip:Tooltip(n),Transcript:Transcript(n),Tweet:Tweet(n),VideojsPlayer:VideojsPlayerWidget(n),styles:{annotationStyles,helloWorldStyles,annotationsControllerStyles,annotationsListStyles,controllerStyles,createAnnotationStyles,currentSegmentInfoboxStyles,enrichedPlanStyles,highlighterStyles,imageDisplayStyles,latestAnnotationStyles,mashupPlayerStyles,mediaListStyles,noteTakingStyles,placeholderPlayerStyles,polemicStyles,quizStyles,quizCreatorStyles,segmentsStyles,shortcutsStyles,sliceStyles,slidePreviewStyles,sliderStyles,slideVideoPlayerStyles,socialStyles,tagcloudStyles,tooltipStyles,transcriptStyles,tweetStyles,videojsStyles}}}typeof window.IriSP>"u"&&(window.IriSP=IriSP$1),IriSP$1.Model=Model(IriSP$1),IriSP$1.htmlPlayer=htmlPlayer,Object.assign(IriSP$1,utils$s(IriSP$1)),IriSP$1.iFrameUpdater=iFrameUpdater,IriSP$1.serializers=serializers(IriSP$1),Object.assign(IriSP$1,defaults()),metadataplayer(IriSP$1),IriSP$1.Widgets=widgetsBase(IriSP$1),Object.assign(IriSP$1.Widgets,widgets(IriSP$1));const main={IriSP:IriSP$1,style:style$1};return main});
//# sourceMappingURL=LdtPlayer-core.js.map
