easyproctor-hml
Version:
Modulo web de gravação do EasyProctor
8 lines • 416 kB
JavaScript
"use strict";(()=>{var uy=Object.create;var Mc=Object.defineProperty;var dy=Object.getOwnPropertyDescriptor;var py=Object.getOwnPropertyNames;var fy=Object.getPrototypeOf,my=Object.prototype.hasOwnProperty;var pn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var H=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gy=(e,t)=>{for(var r in t)Mc(e,r,{get:t[r],enumerable:!0})},yy=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of py(t))!my.call(e,o)&&o!==r&&Mc(e,o,{get:()=>t[o],enumerable:!(n=dy(t,o))||n.enumerable});return e};var Od=(e,t,r)=>(r=e!=null?uy(fy(e)):{},yy(t||!e||!e.__esModule?Mc(r,"default",{value:e,enumerable:!0}):r,e));var zg=H((vA,Hg)=>{Hg.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var xr=H(Jr=>{var Wh,S4=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Jr.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Jr.getSymbolTotalCodewords=function(t){return S4[t]};Jr.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Jr.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Wh=t};Jr.isKanjiModeEnabled=function(){return typeof Wh<"u"};Jr.toSJIS=function(t){return Wh(t)}});var Ra=H(gt=>{gt.L={bit:1};gt.M={bit:0};gt.Q={bit:3};gt.H={bit:2};function E4(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return gt.L;case"m":case"medium":return gt.M;case"q":case"quartile":return gt.Q;case"h":case"high":return gt.H;default:throw new Error("Unknown EC Level: "+e)}}gt.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};gt.from=function(t,r){if(gt.isValid(t))return t;try{return E4(t)}catch{return r}}});var qg=H((EA,Wg)=>{function $g(){this.buffer=[],this.length=0}$g.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};Wg.exports=$g});var Kg=H((kA,Gg)=>{function si(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}si.prototype.set=function(e,t,r,n){let o=e*this.size+t;this.data[o]=r,n&&(this.reservedBit[o]=!0)};si.prototype.get=function(e,t){return this.data[e*this.size+t]};si.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};si.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};Gg.exports=si});var Xg=H(Da=>{var k4=xr().getSymbolSize;Da.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=k4(t),o=n===145?26:Math.ceil((n-13)/(2*r-2))*2,i=[n-7];for(let s=1;s<r-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()};Da.getPositions=function(t){let r=[],n=Da.getRowColCoords(t),o=n.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||r.push([n[i],n[s]]);return r}});var Qg=H(Yg=>{var C4=xr().getSymbolSize,Jg=7;Yg.getPositions=function(t){let r=C4(t);return[[0,0],[r-Jg,0],[0,r-Jg]]}});var Zg=H(X=>{X.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Yr={N1:3,N2:3,N3:40,N4:10};X.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};X.from=function(t){return X.isValid(t)?parseInt(t,10):void 0};X.getPenaltyN1=function(t){let r=t.size,n=0,o=0,i=0,s=null,a=null;for(let c=0;c<r;c++){o=i=0,s=a=null;for(let l=0;l<r;l++){let h=t.get(c,l);h===s?o++:(o>=5&&(n+=Yr.N1+(o-5)),s=h,o=1),h=t.get(l,c),h===a?i++:(i>=5&&(n+=Yr.N1+(i-5)),a=h,i=1)}o>=5&&(n+=Yr.N1+(o-5)),i>=5&&(n+=Yr.N1+(i-5))}return n};X.getPenaltyN2=function(t){let r=t.size,n=0;for(let o=0;o<r-1;o++)for(let i=0;i<r-1;i++){let s=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);(s===4||s===0)&&n++}return n*Yr.N2};X.getPenaltyN3=function(t){let r=t.size,n=0,o=0,i=0;for(let s=0;s<r;s++){o=i=0;for(let a=0;a<r;a++)o=o<<1&2047|t.get(s,a),a>=10&&(o===1488||o===93)&&n++,i=i<<1&2047|t.get(a,s),a>=10&&(i===1488||i===93)&&n++}return n*Yr.N3};X.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let i=0;i<n;i++)r+=t.data[i];return Math.abs(Math.ceil(r*100/n/5)-10)*Yr.N4};function A4(e,t,r){switch(e){case X.Patterns.PATTERN000:return(t+r)%2===0;case X.Patterns.PATTERN001:return t%2===0;case X.Patterns.PATTERN010:return r%3===0;case X.Patterns.PATTERN011:return(t+r)%3===0;case X.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case X.Patterns.PATTERN101:return t*r%2+t*r%3===0;case X.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case X.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}X.applyMask=function(t,r){let n=r.size;for(let o=0;o<n;o++)for(let i=0;i<n;i++)r.isReserved(i,o)||r.xor(i,o,A4(t,i,o))};X.getBestMask=function(t,r){let n=Object.keys(X.Patterns).length,o=0,i=1/0;for(let s=0;s<n;s++){r(s),X.applyMask(s,t);let a=X.getPenaltyN1(t)+X.getPenaltyN2(t)+X.getPenaltyN3(t)+X.getPenaltyN4(t);X.applyMask(s,t),a<i&&(i=a,o=s)}return o}});var Gh=H(qh=>{var Tr=Ra(),Oa=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Ba=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];qh.getBlocksCount=function(t,r){switch(r){case Tr.L:return Oa[(t-1)*4+0];case Tr.M:return Oa[(t-1)*4+1];case Tr.Q:return Oa[(t-1)*4+2];case Tr.H:return Oa[(t-1)*4+3];default:return}};qh.getTotalCodewordsCount=function(t,r){switch(r){case Tr.L:return Ba[(t-1)*4+0];case Tr.M:return Ba[(t-1)*4+1];case Tr.Q:return Ba[(t-1)*4+2];case Tr.H:return Ba[(t-1)*4+3];default:return}}});var e1=H(La=>{var ai=new Uint8Array(512),Ma=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)ai[r]=t,Ma[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)ai[r]=ai[r-255]})();La.log=function(t){if(t<1)throw new Error("log("+t+")");return Ma[t]};La.exp=function(t){return ai[t]};La.mul=function(t,r){return t===0||r===0?0:ai[Ma[t]+Ma[r]]}});var t1=H(ci=>{var Kh=e1();ci.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<r.length;i++)n[o+i]^=Kh.mul(t[o],r[i]);return n};ci.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let o=n[0];for(let s=0;s<r.length;s++)n[s]^=Kh.mul(r[s],o);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n};ci.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=ci.mul(r,new Uint8Array([1,Kh.exp(n)]));return r}});var o1=H((RA,n1)=>{var r1=t1();function Xh(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Xh.prototype.initialize=function(t){this.degree=t,this.genPoly=r1.generateECPolynomial(this.degree)};Xh.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=r1.mod(r,this.genPoly),o=this.degree-n.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(n,o),i}return n};n1.exports=Xh});var Jh=H(i1=>{i1.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Yh=H(ar=>{var s1="[0-9]+",x4="[A-Z $%*+\\-./:]+",li="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";li=li.replace(/u/g,"\\u");var T4="(?:(?![A-Z0-9 $%*+\\-./:]|"+li+`)(?:.|[\r
]))+`;ar.KANJI=new RegExp(li,"g");ar.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ar.BYTE=new RegExp(T4,"g");ar.NUMERIC=new RegExp(s1,"g");ar.ALPHANUMERIC=new RegExp(x4,"g");var I4=new RegExp("^"+li+"$"),P4=new RegExp("^"+s1+"$"),R4=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ar.testKanji=function(t){return I4.test(t)};ar.testNumeric=function(t){return P4.test(t)};ar.testAlphanumeric=function(t){return R4.test(t)}});var Ir=H(ve=>{var D4=Jh(),Qh=Yh();ve.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};ve.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};ve.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};ve.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};ve.MIXED={bit:-1};ve.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!D4.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};ve.getBestModeForData=function(t){return Qh.testNumeric(t)?ve.NUMERIC:Qh.testAlphanumeric(t)?ve.ALPHANUMERIC:Qh.testKanji(t)?ve.KANJI:ve.BYTE};ve.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};ve.isValid=function(t){return t&&t.bit&&t.ccBits};function O4(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return ve.NUMERIC;case"alphanumeric":return ve.ALPHANUMERIC;case"kanji":return ve.KANJI;case"byte":return ve.BYTE;default:throw new Error("Unknown mode: "+e)}}ve.from=function(t,r){if(ve.isValid(t))return t;try{return O4(t)}catch{return r}}});var u1=H(Qr=>{var Ua=xr(),B4=Gh(),a1=Ra(),Pr=Ir(),Zh=Jh(),l1=7973,c1=Ua.getBCHDigit(l1);function M4(e,t,r){for(let n=1;n<=40;n++)if(t<=Qr.getCapacity(n,r,e))return n}function h1(e,t){return Pr.getCharCountIndicator(e,t)+4}function L4(e,t){let r=0;return e.forEach(function(n){let o=h1(n.mode,t);r+=o+n.getBitsLength()}),r}function U4(e,t){for(let r=1;r<=40;r++)if(L4(e,r)<=Qr.getCapacity(r,t,Pr.MIXED))return r}Qr.from=function(t,r){return Zh.isValid(t)?parseInt(t,10):r};Qr.getCapacity=function(t,r,n){if(!Zh.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Pr.BYTE);let o=Ua.getSymbolTotalCodewords(t),i=B4.getTotalCodewordsCount(t,r),s=(o-i)*8;if(n===Pr.MIXED)return s;let a=s-h1(n,t);switch(n){case Pr.NUMERIC:return Math.floor(a/10*3);case Pr.ALPHANUMERIC:return Math.floor(a/11*2);case Pr.KANJI:return Math.floor(a/13);case Pr.BYTE:default:return Math.floor(a/8)}};Qr.getBestVersionForData=function(t,r){let n,o=a1.from(r,a1.M);if(Array.isArray(t)){if(t.length>1)return U4(t,o);if(t.length===0)return 1;n=t[0]}else n=t;return M4(n.mode,n.getLength(),o)};Qr.getEncodedBits=function(t){if(!Zh.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;Ua.getBCHDigit(r)-c1>=0;)r^=l1<<Ua.getBCHDigit(r)-c1;return t<<12|r}});var m1=H(f1=>{var eu=xr(),p1=1335,F4=21522,d1=eu.getBCHDigit(p1);f1.getEncodedBits=function(t,r){let n=t.bit<<3|r,o=n<<10;for(;eu.getBCHDigit(o)-d1>=0;)o^=p1<<eu.getBCHDigit(o)-d1;return(n<<10|o)^F4}});var y1=H((UA,g1)=>{var N4=Ir();function Zn(e){this.mode=N4.NUMERIC,this.data=e.toString()}Zn.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Zn.prototype.getLength=function(){return this.data.length};Zn.prototype.getBitsLength=function(){return Zn.getBitsLength(this.data.length)};Zn.prototype.write=function(t){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),t.put(o,10);let i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),t.put(o,i*3+1))};g1.exports=Zn});var w1=H((FA,b1)=>{var j4=Ir(),tu=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function eo(e){this.mode=j4.ALPHANUMERIC,this.data=e}eo.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};eo.prototype.getLength=function(){return this.data.length};eo.prototype.getBitsLength=function(){return eo.getBitsLength(this.data.length)};eo.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=tu.indexOf(this.data[r])*45;n+=tu.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(tu.indexOf(this.data[r]),6)};b1.exports=eo});var _1=H((NA,v1)=>{var V4=Ir();function to(e){this.mode=V4.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}to.getBitsLength=function(t){return t*8};to.prototype.getLength=function(){return this.data.length};to.prototype.getBitsLength=function(){return to.getBitsLength(this.data.length)};to.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};v1.exports=to});var E1=H((jA,S1)=>{var H4=Ir(),z4=xr();function ro(e){this.mode=H4.KANJI,this.data=e}ro.getBitsLength=function(t){return t*13};ro.prototype.getLength=function(){return this.data.length};ro.prototype.getBitsLength=function(){return ro.getBitsLength(this.data.length)};ro.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=z4.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};S1.exports=ro});var k1=H((VA,ru)=>{"use strict";var hi={single_source_shortest_paths:function(e,t,r){var n={},o={};o[t]=0;var i=hi.PriorityQueue.make();i.push(t,0);for(var s,a,c,l,h,u,p,g,m;!i.empty();){s=i.pop(),a=s.value,l=s.cost,h=e[a]||{};for(c in h)h.hasOwnProperty(c)&&(u=h[c],p=l+u,g=o[c],m=typeof o[c]>"u",(m||g>p)&&(o[c]=p,i.push(c,p),n[c]=a))}if(typeof r<"u"&&typeof o[r]>"u"){var y=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(y)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,o;n;)r.push(n),o=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=hi.single_source_shortest_paths(e,t,r);return hi.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=hi.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof ru<"u"&&(ru.exports=hi)});var D1=H(no=>{var V=Ir(),x1=y1(),T1=w1(),I1=_1(),P1=E1(),ui=Yh(),Fa=xr(),$4=k1();function C1(e){return unescape(encodeURIComponent(e)).length}function di(e,t,r){let n=[],o;for(;(o=e.exec(r))!==null;)n.push({data:o[0],index:o.index,mode:t,length:o[0].length});return n}function R1(e){let t=di(ui.NUMERIC,V.NUMERIC,e),r=di(ui.ALPHANUMERIC,V.ALPHANUMERIC,e),n,o;return Fa.isKanjiModeEnabled()?(n=di(ui.BYTE,V.BYTE,e),o=di(ui.KANJI,V.KANJI,e)):(n=di(ui.BYTE_KANJI,V.BYTE,e),o=[]),t.concat(r,n,o).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function nu(e,t){switch(t){case V.NUMERIC:return x1.getBitsLength(e);case V.ALPHANUMERIC:return T1.getBitsLength(e);case V.KANJI:return P1.getBitsLength(e);case V.BYTE:return I1.getBitsLength(e)}}function W4(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function q4(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case V.NUMERIC:t.push([n,{data:n.data,mode:V.ALPHANUMERIC,length:n.length},{data:n.data,mode:V.BYTE,length:n.length}]);break;case V.ALPHANUMERIC:t.push([n,{data:n.data,mode:V.BYTE,length:n.length}]);break;case V.KANJI:t.push([n,{data:n.data,mode:V.BYTE,length:C1(n.data)}]);break;case V.BYTE:t.push([{data:n.data,mode:V.BYTE,length:C1(n.data)}])}}return t}function G4(e,t){let r={},n={start:{}},o=["start"];for(let i=0;i<e.length;i++){let s=e[i],a=[];for(let c=0;c<s.length;c++){let l=s[c],h=""+i+c;a.push(h),r[h]={node:l,lastCount:0},n[h]={};for(let u=0;u<o.length;u++){let p=o[u];r[p]&&r[p].node.mode===l.mode?(n[p][h]=nu(r[p].lastCount+l.length,l.mode)-nu(r[p].lastCount,l.mode),r[p].lastCount+=l.length):(r[p]&&(r[p].lastCount=l.length),n[p][h]=nu(l.length,l.mode)+4+V.getCharCountIndicator(l.mode,t))}}o=a}for(let i=0;i<o.length;i++)n[o[i]].end=0;return{map:n,table:r}}function A1(e,t){let r,n=V.getBestModeForData(e);if(r=V.from(t,n),r!==V.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+V.toString(r)+`.
Suggested mode is: `+V.toString(n));switch(r===V.KANJI&&!Fa.isKanjiModeEnabled()&&(r=V.BYTE),r){case V.NUMERIC:return new x1(e);case V.ALPHANUMERIC:return new T1(e);case V.KANJI:return new P1(e);case V.BYTE:return new I1(e)}}no.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(A1(n,null)):n.data&&r.push(A1(n.data,n.mode)),r},[])};no.fromString=function(t,r){let n=R1(t,Fa.isKanjiModeEnabled()),o=q4(n),i=G4(o,r),s=$4.find_path(i.map,"start","end"),a=[];for(let c=1;c<s.length-1;c++)a.push(i.table[s[c]].node);return no.fromArray(W4(a))};no.rawSplit=function(t){return no.fromArray(R1(t,Fa.isKanjiModeEnabled()))}});var B1=H(O1=>{var ja=xr(),ou=Ra(),K4=qg(),X4=Kg(),J4=Xg(),Y4=Qg(),au=Zg(),cu=Gh(),Q4=o1(),Na=u1(),Z4=m1(),ew=Ir(),iu=D1();function tw(e,t){let r=e.size,n=Y4.getPositions(t);for(let o=0;o<n.length;o++){let i=n[o][0],s=n[o][1];for(let a=-1;a<=7;a++)if(!(i+a<=-1||r<=i+a))for(let c=-1;c<=7;c++)s+c<=-1||r<=s+c||(a>=0&&a<=6&&(c===0||c===6)||c>=0&&c<=6&&(a===0||a===6)||a>=2&&a<=4&&c>=2&&c<=4?e.set(i+a,s+c,!0,!0):e.set(i+a,s+c,!1,!0))}}function rw(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function nw(e,t){let r=J4.getPositions(t);for(let n=0;n<r.length;n++){let o=r[n][0],i=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(o+s,i+a,!0,!0):e.set(o+s,i+a,!1,!0)}}function ow(e,t){let r=e.size,n=Na.getEncodedBits(t),o,i,s;for(let a=0;a<18;a++)o=Math.floor(a/3),i=a%3+r-8-3,s=(n>>a&1)===1,e.set(o,i,s,!0),e.set(i,o,s,!0)}function su(e,t,r){let n=e.size,o=Z4.getEncodedBits(t,r),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(n-15+i,8,s,!0),i<8?e.set(8,n-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(n-8,8,1,!0)}function iw(e,t){let r=e.size,n=-1,o=r-1,i=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let c=0;c<2;c++)if(!e.isReserved(o,a-c)){let l=!1;s<t.length&&(l=(t[s]>>>i&1)===1),e.set(o,a-c,l),i--,i===-1&&(s++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function sw(e,t,r){let n=new K4;r.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),ew.getCharCountIndicator(c.mode,e)),c.write(n)});let o=ja.getSymbolTotalCodewords(e),i=cu.getTotalCodewordsCount(e,t),s=(o-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let c=0;c<a;c++)n.put(c%2?17:236,8);return aw(n,e,t)}function aw(e,t,r){let n=ja.getSymbolTotalCodewords(t),o=cu.getTotalCodewordsCount(t,r),i=n-o,s=cu.getBlocksCount(t,r),a=n%s,c=s-a,l=Math.floor(n/s),h=Math.floor(i/s),u=h+1,p=l-h,g=new Q4(p),m=0,y=new Array(s),b=new Array(s),w=0,S=new Uint8Array(e.buffer);for(let de=0;de<s;de++){let se=de<c?h:u;y[de]=S.slice(m,m+se),b[de]=g.encode(y[de]),m+=se,w=Math.max(w,se)}let A=new Uint8Array(n),B=0,O,R;for(O=0;O<w;O++)for(R=0;R<s;R++)O<y[R].length&&(A[B++]=y[R][O]);for(O=0;O<p;O++)for(R=0;R<s;R++)A[B++]=b[R][O];return A}function cw(e,t,r,n){let o;if(Array.isArray(e))o=iu.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){let h=iu.rawSplit(e);l=Na.getBestVersionForData(h,r)}o=iu.fromString(e,l||40)}else throw new Error("Invalid data");let i=Na.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+i+`.
`);let s=sw(t,r,o),a=ja.getSymbolSize(t),c=new X4(a);return tw(c,t),rw(c),nw(c,t),su(c,r,0),t>=7&&ow(c,t),iw(c,s),isNaN(n)&&(n=au.getBestMask(c,su.bind(null,c,r))),au.applyMask(n,c),su(c,r,n),{modules:c,version:t,errorCorrectionLevel:r,maskPattern:n,segments:o}}O1.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=ou.M,o,i;return typeof r<"u"&&(n=ou.from(r.errorCorrectionLevel,ou.M),o=Na.from(r.version),i=au.from(r.maskPattern),r.toSJISFunc&&ja.setToSJISFunction(r.toSJISFunc)),cw(t,o,n,i)}});var lu=H(Zr=>{function M1(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}Zr.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:n,scale:n?4:o,margin:r,color:{dark:M1(t.color.dark||"#000000ff"),light:M1(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Zr.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};Zr.getImageWidth=function(t,r){let n=Zr.getScale(t,r);return Math.floor((t+r.margin*2)*n)};Zr.qrToImageData=function(t,r,n){let o=r.modules.size,i=r.modules.data,s=Zr.getScale(o,n),a=Math.floor((o+n.margin*2)*s),c=n.margin*s,l=[n.color.light,n.color.dark];for(let h=0;h<a;h++)for(let u=0;u<a;u++){let p=(h*a+u)*4,g=n.color.light;if(h>=c&&u>=c&&h<a-c&&u<a-c){let m=Math.floor((h-c)/s),y=Math.floor((u-c)/s);g=l[i[m*o+y]?1:0]}t[p++]=g.r,t[p++]=g.g,t[p++]=g.b,t[p]=g.a}}});var L1=H(Va=>{var hu=lu();function lw(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function hw(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}Va.render=function(t,r,n){let o=n,i=r;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),r||(i=hw()),o=hu.getOptions(o);let s=hu.getImageWidth(t.modules.size,o),a=i.getContext("2d"),c=a.createImageData(s,s);return hu.qrToImageData(c.data,t,o),lw(a,i,s),a.putImageData(c,0,0),i};Va.renderToDataURL=function(t,r,n){let o=n;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),o||(o={});let i=Va.render(t,r,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}});var N1=H(F1=>{var uw=lu();function U1(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function uu(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function dw(e,t,r){let n="",o=0,i=!1,s=0;for(let a=0;a<e.length;a++){let c=Math.floor(a%t),l=Math.floor(a/t);!c&&!i&&(i=!0),e[a]?(s++,a>0&&c>0&&e[a-1]||(n+=i?uu("M",c+r,.5+l+r):uu("m",o,0),o=0,i=!1),c+1<t&&e[a+1]||(n+=uu("h",s),s=0)):o++}return n}F1.render=function(t,r,n){let o=uw.getOptions(r),i=t.modules.size,s=t.modules.data,a=i+o.margin*2,c=o.color.light.a?"<path "+U1(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+U1(o.color.dark,"stroke")+' d="'+dw(s,i,o.margin)+'"/>',h='viewBox="0 0 '+a+" "+a+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+h+' shape-rendering="crispEdges">'+c+l+`</svg>
`;return typeof n=="function"&&n(null,p),p}});var V1=H(pi=>{var pw=zg(),du=B1(),j1=L1(),fw=N1();function pu(e,t,r,n,o){let i=[].slice.call(arguments,1),s=i.length,a=typeof i[s-1]=="function";if(!a&&!pw())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(c,l){try{let h=du.create(r,n);c(e(h,t,n))}catch(h){l(h)}})}try{let c=du.create(r,n);o(null,e(c,t,n))}catch(c){o(c)}}pi.create=du.create;pi.toCanvas=pu.bind(null,j1.render);pi.toDataURL=pu.bind(null,j1.renderToDataURL);pi.toString=pu.bind(null,function(e,t,r){return fw.render(e,r)})});var $1=H((fu,mu)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof fu<"u"?t():(t(),e.FileSaver={})})(fu,function(){"use strict";function e(a,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function t(a,c,l){var h=new XMLHttpRequest;h.open("GET",a),h.responseType="blob",h.onload=function(){s(h.response,c,l)},h.onerror=function(){console.error("could not download file")},h.send()}function r(a){var c=new XMLHttpRequest;c.open("HEAD",a,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function n(a){try{a.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(a,c,l){var h=o.URL||o.webkitURL,u=document.createElement("a");c=c||a.name||"download",u.download=c,u.rel="noopener",typeof a=="string"?(u.href=a,u.origin===location.origin?n(u):r(u.href)?t(a,c,l):n(u,u.target="_blank")):(u.href=h.createObjectURL(a),setTimeout(function(){h.revokeObjectURL(u.href)},4e4),setTimeout(function(){n(u)},0))}:"msSaveOrOpenBlob"in navigator?function(a,c,l){if(c=c||a.name||"download",typeof a!="string")navigator.msSaveOrOpenBlob(e(a,l),c);else if(r(a))t(a,c,l);else{var h=document.createElement("a");h.href=a,h.target="_blank",setTimeout(function(){n(h)})}}:function(a,c,l,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof a=="string")return t(a,c,l);var u=a.type==="application/octet-stream",p=/constructor/i.test(o.HTMLElement)||o.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||u&&p||i)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var w=m.result;w=g?w:w.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=w:location=w,h=null},m.readAsDataURL(a)}else{var y=o.URL||o.webkitURL,b=y.createObjectURL(a);h?h.location=b:location.href=b,h=null,setTimeout(function(){y.revokeObjectURL(b)},4e4)}});o.saveAs=s.saveAs=s,typeof mu<"u"&&(mu.exports=s)})});async function zi(){try{let e={audio:!0,video:!0};return(await navigator.mediaDevices.getUserMedia(e)).getTracks().forEach(r=>{r.stop()}),!0}catch{return!1}}async function $i(){return new Promise((e,t)=>{let r=window.screen.isExtended;if(r)e(r);else if(navigator.userAgent.indexOf("Firefox")>-1)e(!1);else{let o=[];window.getScreenDetails().then(function(i){o=i,e(o.screens.length>=2)})}})}async function St(){let e=["OBS","ManyCam","Snap Camera","Virtual"],r=(await navigator.mediaDevices.enumerateDevices()).filter(o=>!e.some(i=>o.deviceId.includes(i)||o.label.includes(i)));return{cameras:r.filter(o=>o.kind=="videoinput"&&o.deviceId).map(o=>({label:o.label||"Generic Device",id:o.deviceId})),microphones:r.filter(o=>o.kind=="audioinput"&&o.deviceId).map(o=>({label:o.label||"Generic Device",id:o.deviceId}))}}var zr=typeof self<"u"?self:{};function Nr(){throw Error("Invalid UTF8")}function Bd(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}var Wi,Lc,by=typeof TextDecoder<"u",wy,vy=typeof TextEncoder<"u";function qp(e){if(vy)e=(wy||=new TextEncoder).encode(e);else{let r=0,n=new Uint8Array(3*e.length);for(let o=0;o<e.length;o++){var t=e.charCodeAt(o);if(t<128)n[r++]=t;else{if(t<2048)n[r++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&o<e.length){let i=e.charCodeAt(++o);if(i>=56320&&i<=57343){t=1024*(t-55296)+i-56320+65536,n[r++]=t>>18|240,n[r++]=t>>12&63|128,n[r++]=t>>6&63|128,n[r++]=63&t|128;continue}o--}t=65533}n[r++]=t>>12|224,n[r++]=t>>6&63|128}n[r++]=63&t|128}}e=r===n.length?n:n.subarray(0,r)}return e}var ml,os;e:{for(Uc=["CLOSURE_FLAGS"],qi=zr,Gi=0;Gi<Uc.length;Gi++)if((qi=qi[Uc[Gi]])==null){os=null;break e}os=qi}var Uc,qi,Gi,Oo,Md=os&&os[610401301];ml=Md!=null&&Md;var Ld=zr.navigator;function Xc(e){return!!ml&&!!Oo&&Oo.brands.some((({brand:t})=>t&&t.indexOf(e)!=-1))}function at(e){var t;return(t=zr.navigator)&&(t=t.userAgent)||(t=""),t.indexOf(e)!=-1}function pr(){return!!ml&&!!Oo&&Oo.brands.length>0}function Fc(){return pr()?Xc("Chromium"):(at("Chrome")||at("CriOS"))&&!(!pr()&&at("Edge"))||at("Silk")}function gl(e){return gl[" "](e),e}Oo=Ld&&Ld.userAgentData||null,gl[" "]=function(){};var _y=!pr()&&(at("Trident")||at("MSIE"));!at("Android")||Fc(),Fc(),at("Safari")&&(Fc()||!pr()&&at("Coast")||!pr()&&at("Opera")||!pr()&&at("Edge")||(pr()?Xc("Microsoft Edge"):at("Edg/"))||pr()&&Xc("Opera"));var Gp={},xo=null;function Sy(e){let t=e.length,r=3*t/4;r%3?r=Math.floor(r):"=.".indexOf(e[t-1])!=-1&&(r="=.".indexOf(e[t-2])!=-1?r-2:r-1);let n=new Uint8Array(r),o=0;return(function(i,s){function a(l){for(;c<i.length;){let h=i.charAt(c++),u=xo[h];if(u!=null)return u;if(!/^[\s\xa0]*$/.test(h))throw Error("Unknown base64 encoding at char: "+h)}return l}Kp();let c=0;for(;;){let l=a(-1),h=a(0),u=a(64),p=a(64);if(p===64&&l===-1)break;s(l<<2|h>>4),u!=64&&(s(h<<4&240|u>>2),p!=64&&s(u<<6&192|p))}})(e,(function(i){n[o++]=i})),o!==r?n.subarray(0,o):n}function Kp(){if(!xo){xo={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let r=0;r<5;r++){let n=e.concat(t[r].split(""));Gp[r]=n;for(let o=0;o<n.length;o++){let i=n[o];xo[i]===void 0&&(xo[i]=o)}}}}var Xp=typeof Uint8Array<"u",Jp=!_y&&typeof btoa=="function";function Ud(e){if(!Jp){var t;t===void 0&&(t=0),Kp(),t=Gp[t];var r=Array(Math.floor(e.length/3)),n=t[64]||"";let c=0,l=0;for(;c<e.length-2;c+=3){var o=e[c],i=e[c+1],s=e[c+2],a=t[o>>2];o=t[(3&o)<<4|i>>4],i=t[(15&i)<<2|s>>6],s=t[63&s],r[l++]=a+o+i+s}switch(a=0,s=n,e.length-c){case 2:s=t[(15&(a=e[c+1]))<<2]||n;case 1:e=e[c],r[l]=t[e>>2]+t[(3&e)<<4|a>>4]+s+n}return r.join("")}for(t="",r=0,n=e.length-10240;r<n;)t+=String.fromCharCode.apply(null,e.subarray(r,r+=10240));return t+=String.fromCharCode.apply(null,r?e.subarray(r):e),btoa(t)}var Fd=/[-_.]/g,Ey={"-":"+",_:"/",".":"="};function ky(e){return Ey[e]||""}function Yp(e){if(!Jp)return Sy(e);Fd.test(e)&&(e=e.replace(Fd,ky)),e=atob(e);let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function Fo(e){return Xp&&e!=null&&e instanceof Uint8Array}var Sn={};function $r(){return Cy||=new er(null,Sn)}function yl(e){Qp(Sn);var t=e.g;return(t=t==null||Fo(t)?t:typeof t=="string"?Yp(t):null)==null?t:e.g=t}var er=class{h(){return new Uint8Array(yl(this)||0)}constructor(e,t){if(Qp(t),this.g=e,e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values")}},Cy,Ay;function Qp(e){if(e!==Sn)throw Error("illegal external caller")}function Zp(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}function Jc(e){return Zp(e=Error(e),"warning"),e}var fs=typeof Symbol=="function"&&typeof Symbol()=="symbol",xy=new Set;function No(e,t,r=!1,n=!1){return e=typeof Symbol=="function"&&typeof Symbol()=="symbol"?n&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():t,r&&xy.add(e),e}var Ty=No("jas",void 0,!0,!0),Nd=No(void 0,"0di"),Nc=No(void 0,"2ex"),ko=No(void 0,"1oa",!0),En=No(void 0,Symbol(),!0),C=fs?Ty:"Ga",ef={Ga:{value:0,configurable:!0,writable:!0,enumerable:!1}},tf=Object.defineProperties;function ms(e,t){fs||C in e||tf(e,ef),e[C]|=t}function ge(e,t){fs||C in e||tf(e,ef),e[C]=t}function Dn(e){return ms(e,34),e}function Iy(e,t){ge(t,-30975&(0|e))}function Yc(e,t){ge(t,-30941&(34|e))}function bl(){return typeof BigInt=="function"}function Ve(e){return Array.prototype.slice.call(e)}var wl,jo={},rf={};function jd(e){return!(!e||typeof e!="object"||e.Ia!==rf)}function vl(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.constructor===Object}function _l(e,t){if(e!=null){if(typeof e=="string")e=e?new er(e,Sn):$r();else if(e.constructor!==er)if(Fo(e))e=e.length?new er(new Uint8Array(e),Sn):$r();else{if(!t)throw Error();e=void 0}}return e}function is(e){return!(!Array.isArray(e)||e.length)&&!!(1&(0|e[C]))}var Vd=[];function vr(e){if(2&e)throw Error()}ge(Vd,55),wl=Object.freeze(Vd);var ss=class e{constructor(t,r,n){this.l=0,this.g=t,this.h=r,this.m=n}next(){if(this.l<this.g.length){let t=this.g[this.l++];return{done:!1,value:this.h?this.h.call(this.m,t):t}}return{done:!0,value:void 0}}[Symbol.iterator](){return new e(this.g,this.h,this.m)}};function Sl(e){return En?e[En]:void 0}var Py=Object.freeze({});function gs(e){return e.Qa=!0,e}var Ry=gs((e=>typeof e=="number")),Hd=gs((e=>typeof e=="string")),Dy=gs((e=>typeof e=="boolean")),ys=typeof zr.BigInt=="function"&&typeof zr.BigInt(0)=="bigint",Qc=gs((e=>ys?e>=By&&e<=Ly:e[0]==="-"?zd(e,Oy):zd(e,My))),Oy=Number.MIN_SAFE_INTEGER.toString(),By=ys?BigInt(Number.MIN_SAFE_INTEGER):void 0,My=Number.MAX_SAFE_INTEGER.toString(),Ly=ys?BigInt(Number.MAX_SAFE_INTEGER):void 0;function zd(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(let r=0;r<e.length;r++){let n=e[r],o=t[r];if(n>o)return!1;if(n<o)return!0}}var Uy=typeof Uint8Array.prototype.slice=="function",nf,W=0,ce=0;function $d(e){let t=e>>>0;W=t,ce=(e-t)/4294967296>>>0}function kn(e){if(e<0){$d(-e);let[t,r]=Al(W,ce);W=t>>>0,ce=r>>>0}else $d(e)}function El(e){let t=nf||=new DataView(new ArrayBuffer(8));t.setFloat32(0,+e,!0),ce=0,W=t.getUint32(0,!0)}function kl(e,t){let r=4294967296*t+(e>>>0);return Number.isSafeInteger(r)?r:Bo(e,t)}function Cl(e,t){let r=2147483648&t;return r&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),typeof(e=kl(e,t))=="number"?r?-e:e:r?"-"+e:e}function Bo(e,t){if(e>>>=0,(t>>>=0)<=2097151)var r=""+(4294967296*t+e);else bl()?r=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(r=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),r+=8147497*t,t*=2,e>=1e7&&(r+=e/1e7>>>0,e%=1e7),r>=1e7&&(t+=r/1e7>>>0,r%=1e7),r=t+Wd(r)+Wd(e));return r}function Wd(e){return e=String(e),"0000000".slice(e.length)+e}function bs(e){if(e.length<16)kn(Number(e));else if(bl())e=BigInt(e),W=Number(e&BigInt(4294967295))>>>0,ce=Number(e>>BigInt(32)&BigInt(4294967295));else{let t=+(e[0]==="-");ce=W=0;let r=e.length;for(let n=t,o=(r-t)%6+t;o<=r;n=o,o+=6){let i=Number(e.slice(n,o));ce*=1e6,W=1e6*W+i,W>=4294967296&&(ce+=Math.trunc(W/4294967296),ce>>>=0,W>>>=0)}if(t){let[n,o]=Al(W,ce);W=n,ce=o}}}function Al(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}var xl=typeof BigInt=="function"?BigInt.asIntN:void 0,Fy=typeof BigInt=="function"?BigInt.asUintN:void 0,yn=Number.isSafeInteger,ws=Number.isFinite,as=Math.trunc;function _r(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function of(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}var Ny=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function vs(e){switch(typeof e){case"bigint":return!0;case"number":return ws(e);case"string":return Ny.test(e);default:return!1}}function On(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return ws(e)?0|e:void 0}function sf(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return ws(e)?e>>>0:void 0}function qd(e){if(e[0]==="-")return!1;let t=e.length;return t<20||t===20&&Number(e.substring(0,6))<184467}function Tl(e){return e=as(e),yn(e)||(kn(e),e=Cl(W,ce)),e}function Il(e){var t=as(Number(e));if(yn(t))return String(t);if((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),t=e.length,!(e[0]==="-"?t<20||t===20&&Number(e.substring(0,7))>-922337:t<19||t===19&&Number(e.substring(0,6))<922337))if(bs(e),e=W,2147483648&(t=ce))if(bl())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{let[r,n]=Al(e,t);e="-"+Bo(r,n)}else e=Bo(e,t);return e}function cs(e){return e==null?e:typeof e=="bigint"?(Qc(e)?e=Number(e):(e=xl(64,e),e=Qc(e)?Number(e):String(e)),e):vs(e)?typeof e=="number"?Tl(e):Il(e):void 0}function jy(e){if(e==null)return e;var t=typeof e;if(t==="bigint")return String(Fy(64,e));if(vs(e)){if(t==="string")return t=as(Number(e)),yn(t)&&t>=0?e=String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),qd(e)||(bs(e),e=Bo(W,ce))),e;if(t==="number")return(e=as(e))>=0&&yn(e)?e:(function(r){if(r<0){kn(r);var n=Bo(W,ce);return r=Number(n),yn(r)?r:n}return qd(n=String(r))?n:(kn(r),kl(W,ce))})(e)}}function af(e){if(typeof e!="string")throw Error();return e}function Bn(e){if(e!=null&&typeof e!="string")throw Error();return e}function Cn(e){return e==null||typeof e=="string"?e:void 0}function Pl(e,t,r,n){if(e!=null&&typeof e=="object"&&e.W===jo)return e;if(!Array.isArray(e))return r?2&n?((e=t[Nd])||(Dn((e=new t).u),e=t[Nd]=e),t=e):t=new t:t=void 0,t;let o=r=0|e[C];return o===0&&(o|=32&n),o|=2&n,o!==r&&ge(e,o),new t(e)}function Vy(e,t,r){if(t)e:{if(!vs(t=e))throw Jc("int64");switch(typeof t){case"string":t=Il(t);break e;case"bigint":if(e=t=xl(64,t),Hd(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e))}else if(Ry(e)&&!Number.isSafeInteger(e))throw Error(String(e));t=ys?BigInt(t):Dy(t)?t?"1":"0":Hd(t)?t.trim()||"0":String(t);break e;default:t=Tl(t)}}else t=cs(e);return typeof(r=(e=t)==null?r?0:void 0:e)=="string"&&yn(t=+r)?t:r}var Hy={},zy=(function(){try{return gl(new class extends Map{constructor(){super()}}),!1}catch{return!0}})(),Io=class{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,r){return this.g.set(t,r),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,r){return this.g.forEach(t,r)}[Symbol.iterator](){return this.entries()}},$y=zy?(Object.setPrototypeOf(Io.prototype,Map.prototype),Object.defineProperties(Io.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Io):class extends Map{constructor(){super()}};function Gd(e){return e}function jc(e){if(2&e.L)throw Error("Cannot mutate an immutable Map")}var lt=class extends $y{constructor(e,t,r=Gd,n=Gd){super();let o=0|e[C];o|=64,ge(e,o),this.L=o,this.S=t,this.R=r,this.Y=this.S?Wy:n;for(let i=0;i<e.length;i++){let s=e[i],a=r(s[0],!1,!0),c=s[1];t?c===void 0&&(c=null):c=n(s[1],!1,!0,void 0,void 0,o),super.set(a,c)}}na(e=Kd){if(this.size!==0)return this.X(e)}X(e=Kd){let t=[],r=super.entries();for(var n;!(n=r.next()).done;)(n=n.value)[0]=e(n[0]),n[1]=e(n[1]),t.push(n);return t}clear(){jc(this),super.clear()}delete(e){return jc(this),super.delete(this.R(e,!0,!1))}entries(){var e=this.ma();return new ss(e,qy,this)}keys(){return this.Ha()}values(){var e=this.ma();return new ss(e,lt.prototype.get,this)}forEach(e,t){super.forEach(((r,n)=>{e.call(t,this.get(n),n,this)}))}set(e,t){return jc(this),(e=this.R(e,!0,!1))==null?this:t==null?(super.delete(e),this):super.set(e,this.Y(t,!0,!0,this.S,!1,this.L))}Na(e){let t=this.R(e[0],!1,!0);e=e[1],e=this.S?e===void 0?null:e:this.Y(e,!1,!0,void 0,!1,this.L),super.set(t,e)}has(e){return super.has(this.R(e,!1,!1))}get(e){e=this.R(e,!1,!1);let t=super.get(e);if(t!==void 0){var r=this.S;return r?((r=this.Y(t,!1,!0,r,this.ra,this.L))!==t&&super.set(e,r),r):t}}ma(){return Array.from(super.keys())}Ha(){return super.keys()}[Symbol.iterator](){return this.entries()}};function Wy(e,t,r,n,o,i){return e=Pl(e,n,r,i),o&&(e=Ss(e)),e}function Kd(e){return e}function qy(e){return[e,this.get(e)]}var Gy,cf,Ky;function Xd(){return Gy||=new lt(Dn([]),void 0,void 0,void 0,Hy)}function Rl(e,t,r,n,o){if(e!=null){if(Array.isArray(e))e=is(e)?void 0:o&&2&(0|e[C])?e:Dl(e,t,r,n!==void 0,o);else if(vl(e)){let i={};for(let s in e)i[s]=Rl(e[s],t,r,n,o);e=i}else e=t(e,n);return e}}function Dl(e,t,r,n,o){let i=n||r?0|e[C]:0,s=n?!!(32&i):void 0;n=Ve(e);for(let a=0;a<n.length;a++)n[a]=Rl(n[a],t,r,s,o);return r&&((e=Sl(e))&&(n[En]=Ve(e)),r(i,n)),n}function Xy(e){return Rl(e,lf,void 0,void 0,!1)}function lf(e){return e.W===jo?e.toJSON():e instanceof lt?e.na(Xy):(function(t){switch(typeof t){case"number":return isFinite(t)?t:String(t);case"bigint":return Qc(t)?Number(t):String(t);case"boolean":return t?1:0;case"object":if(t)if(Array.isArray(t)){if(is(t))return}else{if(Fo(t))return Ud(t);if(t instanceof er){let r=t.g;return r==null?"":typeof r=="string"?r:t.g=Ud(r)}if(t instanceof lt)return t.na()}}return t})(e)}function hf(e){return Dl(e,lf,void 0,void 0,!1)}function mr(e,t,r){return e=uf(e,t[0],t[1],r?1:2),t!==cf&&r&&ms(e,16384),e}function uf(e,t,r,n){if(e==null){var o=96;r?(e=[r],o|=512):e=[],t&&(o=-33521665&o|(1023&t)<<15)}else{if(!Array.isArray(e))throw Error("narr");if(2048&(o=0|e[C]))throw Error("farr");if(64&o)return e;if(n===1||n===2||(o|=64),r&&(o|=512,r!==e[0]))throw Error("mid");e:{if(n=(r=e).length){let i=n-1;if(vl(r[i])){if((t=i-(512&(o|=256)?0:-1))>=1024)throw Error("pvtlmt");o=-33521665&o|(1023&t)<<15;break e}}if(t){if((t=Math.max(t,n-(512&o?0:-1)))>1024)throw Error("spvt");o=-33521665&o|(1023&t)<<15}}}return ge(e,o),e}function Zc(e,t,r=Yc){if(e!=null){if(Xp&&e instanceof Uint8Array)return t?e:new Uint8Array(e);if(Array.isArray(e)){var n=0|e[C];return 2&n?e:(t&&=n===0||!!(32&n)&&!(64&n||!(16&n)),t?(ge(e,-12293&(34|n)),e):Dl(e,Zc,4&n?Yc:r,!0,!0))}return e.W===jo?e=2&(n=0|(r=e.u)[C])?e:new e.constructor(_s(r,n,!0)):e instanceof lt&&!(2&e.L)&&(r=Dn(e.X(Zc)),e=new lt(r,e.S,e.R,e.Y)),e}}function _s(e,t,r){let n=r||2&t?Yc:Iy,o=!!(32&t);return e=(function(i,s,a){let c=Ve(i);var l=c.length;let h=256&s?c[l-1]:void 0;for(l+=h?-1:0,s=512&s?1:0;s<l;s++)c[s]=a(c[s]);if(h){s=c[s]={};for(let u in h)s[u]=a(h[u])}return(i=Sl(i))&&(c[En]=Ve(i)),c})(e,t,(i=>Zc(i,o,n))),ms(e,32|(r?2:0)),e}function Ss(e){let t=e.u,r=0|t[C];return 2&r?new e.constructor(_s(t,r,!1)):e}function An(e,t){return or(e=e.u,0|e[C],t)}function or(e,t,r,n){if(r===-1)return null;var o=r+(512&t?0:-1);let i=e.length-1;return o>=i&&256&t?e[i][r]:n&&256&t&&(t=e[i][r])!=null?(e[o]!=null&&Nc!=null&&((o=(e=Ay??={})[Nc]||0)>=4||(e[Nc]=o+1,Zp(e=Error(),"incident"),(function(s){zr.setTimeout((()=>{throw s}),0)})(e))),t):o<=i?e[o]:void 0}function G(e,t,r){let n=e.u,o=0|n[C];return vr(o),ne(n,o,t,r),e}function ne(e,t,r,n){let o=512&t?0:-1,i=r+o;var s=e.length-1;return i>=s&&256&t?(e[s][r]=n,t):i<=s?(e[i]=n,256&t&&r in(e=e[s])&&delete e[r],t):(n!==void 0&&(r>=(s=t>>15&1023||536870912)?n!=null&&(e[s+o]={[r]:n},ge(e,t|=256)):e[i]=n),t)}function Qi(e,t){let r=0|(e=e.u)[C],n=or(e,r,t),o=_r(n);return o!=null&&o!==n&&ne(e,r,t,o),o}function df(e){let t=0|(e=e.u)[C],r=or(e,t,1),n=_l(r,!0);return n!=null&&n!==r&&ne(e,t,1,n),n}function jr(){return Py===void 0?2:4}function Vr(e,t,r,n,o){let i=e.u,s=2&(e=0|i[C])?1:n;o=!!o;let a=0|(n=Ol(i,e,t))[C];if(!(4&a)){4&a&&(n=Ve(n),a=tr(a,e),e=ne(i,e,t,n));let c=0,l=0;for(;c<n.length;c++){let h=r(n[c]);h!=null&&(n[l++]=h)}l<c&&(n.length=l),a=Bl(a,e),r=-4097&(20|a),a=r&=-8193,ge(n,a),2&a&&Object.freeze(n)}return s===1||s===4&&32&a?Zt(a)||(o=a,a|=2,a!==o&&ge(n,a),Object.freeze(n)):(s===2&&Zt(a)&&(n=Ve(n),a=tr(a,e),a=gr(a,e,o),ge(n,a),e=ne(i,e,t,n)),Zt(a)||(t=a,a=gr(a,e,o),a!==t&&ge(n,a))),n}function Ol(e,t,r,n){return e=or(e,t,r,n),Array.isArray(e)?e:wl}function Bl(e,t){return e===0&&(e=tr(e,t)),1|e}function Zt(e){return!!(2&e)&&!!(4&e)||!!(2048&e)}function pf(e){e=Ve(e);for(let t=0;t<e.length;t++){let r=e[t]=Ve(e[t]);Array.isArray(r[1])&&(r[1]=Dn(r[1]))}return e}function el(e,t,r,n){let o=0|(e=e.u)[C];vr(o),ne(e,o,t,(n==="0"?Number(r)===0:r===n)?void 0:r)}function Mn(e,t,r,n,o){vr(t);var i=!(!(64&t)&&16384&t);let s=(o=Ol(e,t,r,o))!==wl;if(i||!s){let a=i=s?0|o[C]:0;(!s||2&a||Zt(a)||4&a&&!(32&a))&&(o=Ve(o),a=tr(a,t),t=ne(e,t,r,o)),a=-13&Bl(a,t),a=gr(n?-17&a:16|a,t,!0),a!==i&&ge(o,a)}return o}function Vc(e,t){var r=rm;return Ll(Ml(e=e.u),e,0|e[C],r)===t?t:-1}function Ml(e){if(fs)return e[ko]??(e[ko]=new Map);if(ko in e)return e[ko];let t=new Map;return Object.defineProperty(e,ko,{value:t}),t}function ff(e,t,r,n){let o=Ml(e),i=Ll(o,e,t,r);return i!==n&&(i&&(t=ne(e,t,i)),o.set(r,n)),t}function Ll(e,t,r,n){let o=e.get(n);if(o!=null)return o;o=0;for(let i=0;i<n.length;i++){let s=n[i];or(t,r,s)!=null&&(o!==0&&(r=ne(t,r,o)),o=s)}return e.set(n,o),o}function Ul(e,t,r,n){let o,i=0|e[C];if((n=or(e,i,r,n))!=null&&n.W===jo)return(t=Ss(n))!==n&&ne(e,i,r,t),t.u;if(Array.isArray(n)){let s=0|n[C];o=2&s?mr(_s(n,s,!1),t,!0):64&s?n:mr(o,t,!0)}else o=mr(void 0,t,!0);return o!==n&&ne(e,i,r,o),o}function mf(e,t,r,n){let o=0|(e=e.u)[C];return(t=Pl(n=or(e,o,r,n),t,!1,o))!==n&&t!=null&&ne(e,o,r,t),t}function U(e,t,r,n=!1){if((t=mf(e,t,r,n))==null)return t;if(!(2&(n=0|(e=e.u)[C]))){let o=Ss(t);o!==t&&ne(e,n,r,t=o)}return t}function gf(e,t,r,n,o,i,s){e=e.u;var a=!!(2&t);let c=a?1:o;i=!!i,s&&=!a;var l=0|(o=Ol(e,t,n))[C];if(!(a=!!(4&l))){var h=o,u=t;let p=!!(2&(l=Bl(l,t)));p&&(u|=2);let g=!p,m=!0,y=0,b=0;for(;y<h.length;y++){let w=Pl(h[y],r,!1,u);if(w instanceof r){if(!p){let S=!!(2&(0|w.u[C]));g&&=!S,m&&=S}h[b++]=w}}b<y&&(h.length=b),l|=4,l=m?16|l:-17&l,ge(h,l=g?8|l:-9&l),p&&Object.freeze(h)}if(s&&!(8&l||!o.length&&(c===1||c===4&&32&l))){for(Zt(l)&&(o=Ve(o),l=tr(l,t),t=ne(e,t,n,o)),r=o,s=l,h=0;h<r.length;h++)(l=r[h])!==(u=Ss(l))&&(r[h]=u);s|=8,ge(r,s=r.length?-17&s:16|s),l=s}return c===1||c===4&&32&l?Zt(l)||(t=l,(l|=!o.length||16&l&&(!a||32&l)?2:2048)!==t&&ge(o,l),Object.freeze(o)):(c===2&&Zt(l)&&(ge(o=Ve(o),l=gr(l=tr(l,t),t,i)),t=ne(e,t,n,o)),Zt(l)||(n=l,(l=gr(l,t,i))!==n&&ge(o,l))),o}function rr(e,t,r){let n=0|e.u[C];return gf(e,n,t,r,jr(),!1,!(2&n))}function x(e,t,r,n){return n==null&&(n=void 0),G(e,r,n)}function Po(e,t,r,n){n==null&&(n=void 0);e:{let o=0|(e=e.u)[C];if(vr(o),n==null){let i=Ml(e);if(Ll(i,e,o,r)!==t)break e;i.set(r,0)}else o=ff(e,o,r,t);ne(e,o,t,n)}}function tr(e,t){return-2049&(e=32|(2&t?2|e:-3&e))}function gr(e,t,r){return 32&t&&r||(e&=-33),e}function ls(e,t,r,n){let o=0|e.u[C];vr(o),e=gf(e,o,r,t,2,!0),n=n??new r,e.push(n),e[C]=2&(0|n.u[C])?-9&e[C]:-17&e[C]}function ct(e,t){return On(An(e,t))}function ht(e,t){return Cn(An(e,t))}function pe(e,t){return Qi(e,t)??0}function Mo(e,t,r){if(r!=null&&typeof r!="boolean")throw e=typeof r,Error(`Expected boolean but got ${e!="object"?e:r?Array.isArray(r)?"array":e:"null"}: ${r}`);G(e,t,r)}function jt(e,t,r){if(r!=null){if(typeof r!="number"||!ws(r))throw Jc("int32");r|=0}G(e,t,r)}function E(e,t,r){if(r!=null&&typeof r!="number")throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);G(e,t,r)}function hs(e,t,r){{let s=e.u,a=0|s[C];if(vr(a),r==null)ne(s,a,t);else{var n=e=0|r[C],o=Zt(e),i=o||Object.isFrozen(r);for(o||(e=0),i||(r=Ve(r),n=0,e=gr(e=tr(e,a),a,!0),i=!1),e|=21,o=0;o<r.length;o++){let c=r[o],l=af(c);Object.is(c,l)||(i&&(r=Ve(r),n=0,e=gr(e=tr(e,a),a,!0),i=!1),r[o]=l)}e!==n&&(i&&(r=Ve(r),e=gr(e=tr(e,a),a,!0)),ge(r,e)),ne(s,a,t,r)}}}function Es(e,t,r){vr(0|e.u[C]),Vr(e,t,Cn,2,!0).push(af(r))}function yf(e,t){return Error(`Invalid wire type: ${e} (at position ${t})`)}function Fl(){return Error("Failed to read varint, encoding is invalid.")}function bf(e,t){return Error(`Tried to read past the end of the data ${t} > ${e}`)}function Nl(e){if(typeof e=="string")return{buffer:Yp(e),N:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),N:!1};if(e.constructor===Uint8Array)return{buffer:e,N:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),N:!1};if(e.constructor===er)return{buffer:yl(e)||new Uint8Array(0),N:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),N:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function jl(e,t){let r,n=0,o=0,i=0,s=e.h,a=e.g;do r=s[a++],n|=(127&r)<<i,i+=7;while(i<32&&128&r);for(i>32&&(o|=(127&r)>>4),i=3;i<32&&128&r;i+=7)r=s[a++],o|=(127&r)<<i;if(Hr(e,a),r<128)return t(n>>>0,o>>>0);throw Fl()}function Vl(e){let t=0,r=e.g,n=r+10,o=e.h;for(;r<n;){let i=o[r++];if(t|=i,(128&i)==0)return Hr(e,r),!!(127&t)}throw Fl()}function yr(e){let t=e.h,r=e.g,n=t[r++],o=127&n;if(128&n&&(n=t[r++],o|=(127&n)<<7,128&n&&(n=t[r++],o|=(127&n)<<14,128&n&&(n=t[r++],o|=(127&n)<<21,128&n&&(n=t[r++],o|=n<<28,128&n&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++])))))throw Fl();return Hr(e,r),o}function nr(e){return yr(e)>>>0}function tl(e){var t=e.h;let r=e.g,n=t[r],o=t[r+1],i=t[r+2];return t=t[r+3],Hr(e,e.g+4),(n<<0|o<<8|i<<16|t<<24)>>>0}function rl(e){var t=tl(e);e=2*(t>>31)+1;let r=t>>>23&255;return t&=8388607,r==255?t?NaN:e*(1/