@dan-uni/dan-any 0.0.7 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- var DanAny=function(e){"use strict";var t={},n={};!function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+t+"]["+(t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",o=new RegExp("^"+n+"$");e.isExist=function(e){return void 0!==e},e.isEmptyObject=function(e){return 0===Object.keys(e).length},e.merge=function(e,t,n){if(t){const o=Object.keys(t),r=o.length;for(let i=0;i<r;i++)e[o[i]]="strict"===n?[t[o[i]]]:t[o[i]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(e){const t=o.exec(e);return!(null==t)},e.getAllMatches=function(e,t){const n=[];let o=t.exec(e);for(;o;){const r=[];r.startIndex=t.lastIndex-o[0].length;const i=o.length;for(let e=0;e<i;e++)r.push(o[e]);n.push(r),o=t.exec(e)}return n},e.nameRegexp=n}(n);const o=n,r={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function s(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const o=e.substr(n,t-n);if(t>5&&"xml"===o)return b("InvalidXml","XML declaration allowed only at the start of the document.",h(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},r,t);const n=[];let l=!1,u=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let r=0;r<e.length;r++)if("<"===e[r]&&"?"===e[r+1]){if(r+=2,r=s(e,r),r.err)return r}else{if("<"!==e[r]){if(i(e[r]))continue;return b("InvalidChar","char '"+e[r]+"' is not expected.",h(e,r))}{let g=r;if(r++,"!"===e[r]){r=a(e,r);continue}{let f=!1;"/"===e[r]&&(f=!0,r++);let E="";for(;r<e.length&&">"!==e[r]&&" "!==e[r]&&"\t"!==e[r]&&"\n"!==e[r]&&"\r"!==e[r];r++)E+=e[r];if(E=E.trim(),"/"===E[E.length-1]&&(E=E.substring(0,E.length-1),r--),m=E,!o.isName(m)){let t;return t=0===E.trim().length?"Invalid space after '<'.":"Tag '"+E+"' is an invalid name.",b("InvalidTag",t,h(e,r))}const N=c(e,r);if(!1===N)return b("InvalidAttr","Attributes for '"+E+"' have open quote.",h(e,r));let A=N.value;if(r=N.index,"/"===A[A.length-1]){const n=r-A.length;A=A.substring(0,A.length-1);const o=d(A,t);if(!0!==o)return b(o.err.code,o.err.msg,h(e,n+o.err.line));l=!0}else if(f){if(!N.tagClosed)return b("InvalidTag","Closing tag '"+E+"' doesn't have proper closing.",h(e,r));if(A.trim().length>0)return b("InvalidTag","Closing tag '"+E+"' can't have attributes or invalid starting.",h(e,g));if(0===n.length)return b("InvalidTag","Closing tag '"+E+"' has not been opened.",h(e,g));{const t=n.pop();if(E!==t.tagName){let n=h(e,t.tagStartPos);return b("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+E+"'.",h(e,g))}0==n.length&&(u=!0)}}else{const o=d(A,t);if(!0!==o)return b(o.err.code,o.err.msg,h(e,r-A.length+o.err.line));if(!0===u)return b("InvalidXml","Multiple possible root nodes found.",h(e,r));-1!==t.unpairedTags.indexOf(E)||n.push({tagName:E,tagStartPos:g}),l=!0}for(r++;r<e.length;r++)if("<"===e[r]){if("!"===e[r+1]){r++,r=a(e,r);continue}if("?"!==e[r+1])break;if(r=s(e,++r),r.err)return r}else if("&"===e[r]){const t=p(e,r);if(-1==t)return b("InvalidChar","char '&' is not expected.",h(e,r));r=t}else if(!0===u&&!i(e[r]))return b("InvalidXml","Extra text at the end",h(e,r));"<"===e[r]&&r--}}}var m;return l?1==n.length?b("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",h(e,n[0].tagStartPos)):!(n.length>0)||b("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):b("InvalidXml","Start tag expected.",1)};const l='"',u="'";function c(e,t){let n="",o="",r=!1;for(;t<e.length;t++){if(e[t]===l||e[t]===u)""===o?o=e[t]:o!==e[t]||(o="");else if(">"===e[t]&&""===o){r=!0;break}n+=e[t]}return""===o&&{value:n,index:t,tagClosed:r}}const m=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function d(e,t){const n=o.getAllMatches(e,m),r={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return b("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",f(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return b("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",f(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",f(n[e]));const o=n[e][2];if(!g(o))return b("InvalidAttr","Attribute '"+o+"' is an invalid name.",f(n[e]));if(r.hasOwnProperty(o))return b("InvalidAttr","Attribute '"+o+"' is repeated.",f(n[e]));r[o]=1}return!0}function p(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function b(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function g(e){return o.isName(e)}function h(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function f(e){return e.startIndex+e[1].length}var E={};const N={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};E.buildOptions=function(e){return Object.assign({},N,e)},E.defaultOptions=N;var A=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}};const y=n;function I(e,t){let n="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const o=e[t++];let r="";for(;t<e.length&&e[t]!==o;t++)r+=e[t];return[n,r,t]}function S(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function G(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function R(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function Y(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function W(e){if(y.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}var w=function(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let o=1,r=!1,i=!1,s="";for(;t<e.length;t++)if("<"!==e[t]||i)if(">"===e[t]){if(i?"-"===e[t-1]&&"-"===e[t-2]&&(i=!1,o--):o--,0===o)break}else"["===e[t]?r=!0:s+=e[t];else{if(r&&S(e,t)){let o,r;t+=7,[o,r,t]=I(e,t+1),-1===r.indexOf("&")&&(n[W(o)]={regx:RegExp(`&${o};`,"g"),val:r})}else r&&G(e,t)||r&&R(e,t)?t+=8:r&&Y(e,t)?t+=9:i=!0;o++,s=""}if(0!==o)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}};const V=/^[-+]?0x[a-fA-F0-9]+$/,v=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const B={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};var F=function(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1};const T=n,Z=A,x=w,C=function(e,t={}){if(t=Object.assign({},B,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if(t.hex&&V.test(n))return Number.parseInt(n,16);{const o=v.exec(n);if(o){const r=o[1],i=o[2];let s=function(e){if(e&&-1!==e.indexOf("."))return"."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e;return e}(o[3]);const a=o[4]||o[6];if(!t.leadingZeros&&i.length>0&&r&&"."!==n[2])return e;if(!t.leadingZeros&&i.length>0&&!r&&"."!==n[1])return e;{const o=Number(n),l=""+o;return-1!==l.search(/[eE]/)||a?t.eNotation?o:e:-1!==n.indexOf(".")?"0"===l&&""===s||l===s||r&&l==="-"+s?o:e:i?s===l||r+s===l?o:e:n===l||n===r+l?o:e}}return e}},k=F;function X(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];this.lastEntities[o]={regex:new RegExp("&"+o+";","g"),val:e[o]}}}function D(e,t,n,o,r,i,s){if(void 0!==e&&(this.options.trimValues&&!o&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e));const o=this.options.tagValueProcessor(t,e,n,r,i);if(null==o)return e;if(typeof o!=typeof e||o!==e)return o;if(this.options.trimValues)return z(e,this.options.parseTagValue,this.options.numberParseOptions);return e.trim()===e?z(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function U(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const L=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function K(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const n=T.getAllMatches(e,L),o=n.length,r={};for(let e=0;e<o;e++){const o=this.resolveNameSpace(n[e][1]);if(this.ignoreAttributesFn(o,t))continue;let i=n[e][4],s=this.options.attributeNamePrefix+o;if(o.length)if(this.options.transformAttributeName&&(s=this.options.transformAttributeName(s)),"__proto__"===s&&(s="#__proto__"),void 0!==i){this.options.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i);const e=this.options.attributeValueProcessor(o,i,t);r[s]=null==e?i:typeof e!=typeof i||e!==i?e:z(i,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(r[s]=!0)}if(!Object.keys(r).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=r,e}return r}}const O=function(e){e=e.replace(/\r\n?/g,"\n");const t=new Z("!xml");let n=t,o="",r="";for(let i=0;i<e.length;i++){if("<"===e[i])if("/"===e[i+1]){const t=P(e,">",i,"Closing Tag is not closed.");let s=e.substring(i+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&(o=this.saveTextToParentTag(o,n,r));const a=r.substring(r.lastIndexOf(".")+1);if(s&&-1!==this.options.unpairedTags.indexOf(s))throw new Error(`Unpaired tag can not be used as closing tag: </${s}>`);let l=0;a&&-1!==this.options.unpairedTags.indexOf(a)?(l=r.lastIndexOf(".",r.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=r.lastIndexOf("."),r=r.substring(0,l),n=this.tagsNodeStack.pop(),o="",i=t}else if("?"===e[i+1]){let t=H(e,i,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,n,r),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new Z(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,r,t.tagName)),this.addChild(n,e,r)}i=t.closeIndex+1}else if("!--"===e.substr(i+1,3)){const t=P(e,"--\x3e",i+4,"Comment is not closed.");if(this.options.commentPropName){const s=e.substring(i+4,t-2);o=this.saveTextToParentTag(o,n,r),n.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}i=t}else if("!D"===e.substr(i+1,2)){const t=x(e,i);this.docTypeEntities=t.entities,i=t.i}else if("!["===e.substr(i+1,2)){const t=P(e,"]]>",i,"CDATA is not closed.")-2,s=e.substring(i+9,t);o=this.saveTextToParentTag(o,n,r);let a=this.parseTextData(s,n.tagname,r,!0,!1,!0,!0);null==a&&(a=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}]):n.add(this.options.textNodeName,a),i=t+2}else{let s=H(e,i,this.options.removeNSPrefix),a=s.tagName;const l=s.rawTagName;let u=s.tagExp,c=s.attrExpPresent,m=s.closeIndex;this.options.transformTagName&&(a=this.options.transformTagName(a)),n&&o&&"!xml"!==n.tagname&&(o=this.saveTextToParentTag(o,n,r,!1));const d=n;if(d&&-1!==this.options.unpairedTags.indexOf(d.tagname)&&(n=this.tagsNodeStack.pop(),r=r.substring(0,r.lastIndexOf("."))),a!==t.tagname&&(r+=r?"."+a:a),this.isItStopNode(this.options.stopNodes,r,a)){let t="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)"/"===a[a.length-1]?(a=a.substr(0,a.length-1),r=r.substr(0,r.length-1),u=a):u=u.substr(0,u.length-1),i=s.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(a))i=s.closeIndex;else{const n=this.readStopNodeData(e,l,m+1);if(!n)throw new Error(`Unexpected end of ${l}`);i=n.i,t=n.tagContent}const o=new Z(a);a!==u&&c&&(o[":@"]=this.buildAttributesMap(u,r,a)),t&&(t=this.parseTextData(t,a,r,!0,c,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),o.add(this.options.textNodeName,t),this.addChild(n,o,r)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){"/"===a[a.length-1]?(a=a.substr(0,a.length-1),r=r.substr(0,r.length-1),u=a):u=u.substr(0,u.length-1),this.options.transformTagName&&(a=this.options.transformTagName(a));const e=new Z(a);a!==u&&c&&(e[":@"]=this.buildAttributesMap(u,r,a)),this.addChild(n,e,r),r=r.substr(0,r.lastIndexOf("."))}else{const e=new Z(a);this.tagsNodeStack.push(n),a!==u&&c&&(e[":@"]=this.buildAttributesMap(u,r,a)),this.addChild(n,e,r),n=e}o="",i=m}}else o+=e[i]}return t.child};function J(e,t,n){const o=this.options.updateTag(t.tagname,n,t[":@"]);!1===o||("string"==typeof o?(t.tagname=o,e.addChild(t)):e.addChild(t))}const _=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function M(e,t,n,o){return e&&(void 0===o&&(o=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,o))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function j(e,t,n){const o="*."+n;for(const n in e){const r=e[n];if(o===r||t===r)return!0}return!1}function P(e,t,n,o){const r=e.indexOf(t,n);if(-1===r)throw new Error(o);return r+t.length-1}function H(e,t,n,o=">"){const r=function(e,t,n=">"){let o,r="";for(let i=t;i<e.length;i++){let t=e[i];if(o)t===o&&(o="");else if('"'===t||"'"===t)o=t;else if(t===n[0]){if(!n[1])return{data:r,index:i};if(e[i+1]===n[1])return{data:r,index:i}}else"\t"===t&&(t=" ");r+=t}}(e,t+1,o);if(!r)return;let i=r.data;const s=r.index,a=i.search(/\s/);let l=i,u=!0;-1!==a&&(l=i.substring(0,a),i=i.substring(a+1).trimStart());const c=l;if(n){const e=l.indexOf(":");-1!==e&&(l=l.substr(e+1),u=l!==r.data.substr(e+1))}return{tagName:l,tagExp:i,closeIndex:s,attrExpPresent:u,rawTagName:c}}function Q(e,t,n){const o=n;let r=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=P(e,">",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(r--,0===r))return{tagContent:e.substring(o,n),i:i};n=i}else if("?"===e[n+1]){n=P(e,"?>",n+1,"StopNode is not closed.")}else if("!--"===e.substr(n+1,3)){n=P(e,"--\x3e",n+3,"StopNode is not closed.")}else if("!["===e.substr(n+1,2)){n=P(e,"]]>",n,"StopNode is not closed.")-2}else{const o=H(e,n,">");if(o){(o&&o.tagName)===t&&"/"!==o.tagExp[o.tagExp.length-1]&&r++,n=o.closeIndex}}}function z(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&C(e,n)}return T.isExist(e)?e:""}var $=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=X,this.parseXml=O,this.parseTextData=D,this.resolveNameSpace=U,this.buildAttributesMap=K,this.isItStopNode=j,this.replaceEntitiesValue=_,this.readStopNodeData=Q,this.saveTextToParentTag=M,this.addChild=J,this.ignoreAttributesFn=k(this.options.ignoreAttributes)}},q={};function ee(e,t,n){let o;const r={};for(let i=0;i<e.length;i++){const s=e[i],a=te(s);let l="";if(l=void 0===n?a:n+"."+a,a===t.textNodeName)void 0===o?o=s[a]:o+=""+s[a];else{if(void 0===a)continue;if(s[a]){let e=ee(s[a],t,l);const n=oe(e,t);s[":@"]?ne(e,s[":@"],l,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==r[a]&&r.hasOwnProperty(a)?(Array.isArray(r[a])||(r[a]=[r[a]]),r[a].push(e)):t.isArray(a,l,n)?r[a]=[e]:r[a]=e}}}return"string"==typeof o?o.length>0&&(r[t.textNodeName]=o):void 0!==o&&(r[t.textNodeName]=o),r}function te(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function ne(e,t,n,o){if(t){const r=Object.keys(t),i=r.length;for(let s=0;s<i;s++){const i=r[s];o.isArray(i,n+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function oe(e,t){const{textNodeName:n}=t,o=Object.keys(e).length;return 0===o||!(1!==o||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}q.prettify=function(e,t){return ee(e,t)};const{buildOptions:re}=E,ie=$,{prettify:se}=q,ae=t;var le=class{constructor(e){this.externalEntities={},this.options=re(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=ae.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new ie(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:se(o,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}};function ue(e,t,n,o){let r="",i=!1;for(let s=0;s<e.length;s++){const a=e[s],l=ce(a);if(void 0===l)continue;let u="";if(u=0===n.length?l:`${n}.${l}`,l===t.textNodeName){let e=a[l];de(u,t)||(e=t.tagValueProcessor(l,e),e=pe(e,t)),i&&(r+=o),r+=e,i=!1;continue}if(l===t.cdataPropName){i&&(r+=o),r+=`<![CDATA[${a[l][0][t.textNodeName]}]]>`,i=!1;continue}if(l===t.commentPropName){r+=o+`\x3c!--${a[l][0][t.textNodeName]}--\x3e`,i=!0;continue}if("?"===l[0]){const e=me(a[":@"],t),n="?xml"===l?"":o;let s=a[l][0][t.textNodeName];s=0!==s.length?" "+s:"",r+=n+`<${l}${s}${e}?>`,i=!0;continue}let c=o;""!==c&&(c+=t.indentBy);const m=o+`<${l}${me(a[":@"],t)}`,d=ue(a[l],t,u,c);-1!==t.unpairedTags.indexOf(l)?t.suppressUnpairedNode?r+=m+">":r+=m+"/>":d&&0!==d.length||!t.suppressEmptyNode?d&&d.endsWith(">")?r+=m+`>${d}${o}</${l}>`:(r+=m+">",d&&""!==o&&(d.includes("/>")||d.includes("</"))?r+=o+t.indentBy+d+o:r+=d,r+=`</${l}>`):r+=m+"/>",i=!0}return r}function ce(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];if(e.hasOwnProperty(o)&&":@"!==o)return o}}function me(e,t){let n="";if(e&&!t.ignoreAttributes)for(let o in e){if(!e.hasOwnProperty(o))continue;let r=t.attributeValueProcessor(o,e[o]);r=pe(r,t),!0===r&&t.suppressBooleanAttributes?n+=` ${o.substr(t.attributeNamePrefix.length)}`:n+=` ${o.substr(t.attributeNamePrefix.length)}="${r}"`}return n}function de(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let o in t.stopNodes)if(t.stopNodes[o]===e||t.stopNodes[o]==="*."+n)return!0;return!1}function pe(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const o=t.entities[n];e=e.replace(o.regex,o.val)}return e}const be=function(e,t){let n="";return t.format&&t.indentBy.length>0&&(n="\n"),ue(e,t,"",n)},ge=F,he={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function fe(e){this.options=Object.assign({},he,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=ge(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ae),this.processTextOrObjNode=Ee,this.options.format?(this.indentate=Ne,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Ee(e,t,n,o){const r=this.j2x(e,n+1,o.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function Ne(e){return this.options.indentBy.repeat(e)}function Ae(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}fe.prototype.build=function(e){return this.options.preserveOrder?be(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},fe.prototype.j2x=function(e,t,n){let o="",r="";const i=n.join(".");for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))if(void 0===e[s])this.isAttribute(s)&&(r+="");else if(null===e[s])this.isAttribute(s)?r+="":"?"===s[0]?r+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)r+=this.buildTextValNode(e[s],s,"",t);else if("object"!=typeof e[s]){const n=this.isAttribute(s);if(n&&!this.ignoreAttributesFn(n,i))o+=this.buildAttrPairStr(n,""+e[s]);else if(!n)if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,""+e[s]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[s],s,"",t)}else if(Array.isArray(e[s])){const o=e[s].length;let i="",a="";for(let l=0;l<o;l++){const o=e[s][l];if(void 0===o);else if(null===o)"?"===s[0]?r+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if("object"==typeof o)if(this.options.oneListGroup){const e=this.j2x(o,t+1,n.concat(s));i+=e.val,this.options.attributesGroupName&&o.hasOwnProperty(this.options.attributesGroupName)&&(a+=e.attrStr)}else i+=this.processTextOrObjNode(o,s,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(s,o);e=this.replaceEntitiesValue(e),i+=e}else i+=this.buildTextValNode(o,s,"",t)}this.options.oneListGroup&&(i=this.buildObjectNode(i,s,a,t)),r+=i}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const t=Object.keys(e[s]),n=t.length;for(let r=0;r<n;r++)o+=this.buildAttrPairStr(t[r],""+e[s][t[r]])}else r+=this.processTextOrObjNode(e[s],s,t,n);return{attrStr:o,val:r}},fe.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},fe.prototype.buildObjectNode=function(e,t,n,o){if(""===e)return"?"===t[0]?this.indentate(o)+"<"+t+n+"?"+this.tagEndChar:this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let r="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",r=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(o)+"<"+t+n+i+this.tagEndChar+e+this.indentate(o)+r:this.indentate(o)+"<"+t+n+i+">"+e+r}},fe.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},fe.prototype.buildTextValNode=function(e,t,n,o){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(o)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;{let r=this.options.tagValueProcessor(t,e);return r=this.replaceEntitiesValue(r),""===r?this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(o)+"<"+t+n+">"+r+"</"+t+this.tagEndChar}},fe.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};var ye,Ie={XMLParser:le,XMLValidator:t,XMLBuilder:fe};function Se(e,t){return!(null===e||"object"!=typeof e||!("$typeName"in e)||"string"!=typeof e.$typeName)&&(void 0===t||t.typeName===e.$typeName)}function Ge(){let e=0,t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(e|=(127&o)<<n,!(128&o))return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(15&n)<<28,t=(112&n)>>4,!(128&n))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];if(t|=(127&o)<<n,!(128&o))return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Re(e,t,n){for(let o=0;o<28;o+=7){const r=e>>>o,i=!(r>>>7==0&&0==t),s=255&(i?128|r:r);if(n.push(s),!i)return}const o=e>>>28&15|(7&t)<<4,r=!!(t>>3);if(n.push(255&(r?128|o:o)),r){for(let e=3;e<31;e+=7){const o=t>>>e,r=!(o>>>7==0),i=255&(r?128|o:o);if(n.push(i),!r)return}n.push(t>>>31&1)}}!function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(ye||(ye={}));const Ye=4294967296;function We(e){const t="-"===e[0];t&&(e=e.slice(1));const n=1e6;let o=0,r=0;function i(t,i){const s=Number(e.slice(t,i));r*=n,o=o*n+s,o>=Ye&&(r+=o/Ye|0,o%=Ye)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?ve(o,r):Ve(o,r)}function we(e,t){if(({lo:e,hi:t}=function(e,t){return{lo:e>>>0,hi:t>>>0}}(e,t)),t<=2097151)return String(Ye*t+e);const n=16777215&(e>>>24|t<<8),o=t>>16&65535;let r=(16777215&e)+6777216*n+6710656*o,i=n+8147497*o,s=2*o;const a=1e7;return r>=a&&(i+=Math.floor(r/a),r%=a),i>=a&&(s+=Math.floor(i/a),i%=a),s.toString()+Be(i)+Be(r)}function Ve(e,t){return{lo:0|e,hi:0|t}}function ve(e,t){return t=~t,e?e=1+~e:t+=1,Ve(e,t)}const Be=e=>{const t=String(e);return"0000000".slice(t.length)+t};function Fe(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(127&e|128),e>>=7;t.push(1)}}function Te(){let e=this.buf[this.pos++],t=127&e;if(!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<7,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<14,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<21,!(128&e))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(15&e)<<28;for(let t=5;128&e&&t<10;t++)e=this.buf[this.pos++];if(128&e)throw new Error("invalid varint");return this.assertBounds(),t>>>0}const Ze=xe();function xe(){const e=new DataView(new ArrayBuffer(8));if("function"==typeof BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64&&("object"!=typeof process||"object"!=typeof process.env||"1"!==process.env.BUF_BIGINT_DISABLE)){const t=BigInt("-9223372036854775808"),n=BigInt("9223372036854775807"),o=BigInt("0"),r=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(e){const o="bigint"==typeof e?e:BigInt(e);if(o>n||o<t)throw new Error(`invalid int64: ${e}`);return o},uParse(e){const t="bigint"==typeof e?e:BigInt(e);if(t>r||t<o)throw new Error(`invalid uint64: ${e}`);return t},enc(t){return e.setBigInt64(0,this.parse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(t){return e.setBigInt64(0,this.uParse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigInt64(0,!0)),uDec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigUint64(0,!0))}}return{zero:"0",supported:!1,parse:e=>("string"!=typeof e&&(e=e.toString()),Ce(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),ke(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),Ce(e),We(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),ke(e),We(e)),dec:(e,t)=>function(e,t){let n=Ve(e,t);const o=2147483648&n.hi;o&&(n=ve(n.lo,n.hi));const r=we(n.lo,n.hi);return o?"-"+r:r}(e,t),uDec:(e,t)=>we(e,t)}}function Ce(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function ke(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function Xe(e,t){switch(e){case ye.STRING:return"";case ye.BOOL:return!1;default:case ye.DOUBLE:case ye.FLOAT:return 0;case ye.INT64:case ye.UINT64:case ye.SFIXED64:case ye.FIXED64:case ye.SINT64:return t?"0":Ze.zero;case ye.BYTES:return new Uint8Array(0)}}class De extends Error{constructor(e,t,n="FieldValueInvalidError"){super(t),this.name=n,this.field=()=>e}}const Ue=Symbol.for("reflect unsafe local");function Le(e,t){const n=e[t.localName].case;return void 0===n?n:t.fields.find((e=>e.localName===n))}function Ke(e,t){const n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(2!=t.presence)return void 0!==e[n]&&Object.prototype.hasOwnProperty.call(e,n);switch(t.fieldKind){case"list":return e[n].length>0;case"map":return Object.keys(e[n]).length>0;case"scalar":return!function(e,t){switch(e){case ye.BOOL:return!1===t;case ye.STRING:return""===t;case ye.BYTES:return t instanceof Uint8Array&&!t.byteLength;default:return 0==t}}(t.scalar,e[n]);case"enum":return e[n]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function Oe(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]}function Je(e,t){if(t.oneof){const n=e[t.oneof.localName];return n.case===t.localName?n.value:void 0}return e[t.localName]}function _e(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function Me(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function je(e,t){var n,o,r,i;if(Me(e)&&Ue in e&&"add"in e&&"field"in e&&"function"==typeof e.field){if(void 0!==t){const s=t,a=e.field();return s.listKind==a.listKind&&s.scalar===a.scalar&&(null===(n=s.message)||void 0===n?void 0:n.typeName)===(null===(o=a.message)||void 0===o?void 0:o.typeName)&&(null===(r=s.enum)||void 0===r?void 0:r.typeName)===(null===(i=a.enum)||void 0===i?void 0:i.typeName)}return!0}return!1}function Pe(e,t){var n,o,r,i;if(Me(e)&&Ue in e&&"has"in e&&"field"in e&&"function"==typeof e.field){if(void 0!==t){const s=t,a=e.field();return s.mapKey===a.mapKey&&s.mapKind==a.mapKind&&s.scalar===a.scalar&&(null===(n=s.message)||void 0===n?void 0:n.typeName)===(null===(o=a.message)||void 0===o?void 0:o.typeName)&&(null===(r=s.enum)||void 0===r?void 0:r.typeName)===(null===(i=a.enum)||void 0===i?void 0:i.typeName)}return!0}return!1}function He(e,t){return Me(e)&&Ue in e&&"desc"in e&&Me(e.desc)&&"message"===e.desc.kind&&(void 0===t||e.desc.typeName==t.typeName)}function Qe(e){const t=e.fields[0];return ze(e.typeName)&&void 0!==t&&"scalar"==t.fieldKind&&"value"==t.name&&1==t.number}function ze(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}function $e(e,t){if(Se(t,e))return t;const n=function(e){let t;if(function(e){switch(e.file.edition){case 999:return!1;case 998:return!0;default:return e.fields.some((e=>2!=e.presence&&"message"!=e.fieldKind&&!e.oneof))}}(e)){const n=st.get(e);let o,r;if(n)({prototype:o,members:r}=n);else{o={},r=new Set;for(const t of e.members)"oneof"!=t.kind&&("scalar"!=t.fieldKind&&"enum"!=t.fieldKind||2!=t.presence&&(r.add(t),o[t.localName]=at(t)));st.set(e,{prototype:o,members:r})}t=Object.create(o),t.$typeName=e.typeName;for(const n of e.members)if(!r.has(n)){if("field"==n.kind){if("message"==n.fieldKind)continue;if(("scalar"==n.fieldKind||"enum"==n.fieldKind)&&2!=n.presence)continue}t[n.localName]=at(n)}}else{t={$typeName:e.typeName};for(const n of e.members)"oneof"!=n.kind&&2!=n.presence||(t[n.localName]=at(n))}return t}(e);return void 0!==t&&function(e,t,n){for(const o of e.members){let e,r=n[o.localName];if(null!=r){if("oneof"==o.kind){const t=Le(n,o);if(!t)continue;e=t,r=Je(n,t)}else e=o;switch(e.fieldKind){case"message":r=nt(e,r);break;case"scalar":r=qe(e,r);break;case"list":r=tt(e,r);break;case"map":r=et(e,r)}_e(t,e,r)}}}(e,n,t),n}function qe(e,t){return e.scalar==ye.BYTES?ot(t):t}function et(e,t){if(Me(t)){if(e.scalar==ye.BYTES)return rt(t,ot);if("message"==e.mapKind)return rt(t,(t=>nt(e,t)))}return t}function tt(e,t){if(Array.isArray(t)){if(e.scalar==ye.BYTES)return t.map(ot);if("message"==e.listKind)return t.map((t=>nt(e,t)))}return t}function nt(e,t){if("message"==e.fieldKind&&!e.oneof&&Qe(e.message))return qe(e.message.fields[0],t);if(Me(t)){if("google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!==e.parent.typeName)return t;if(!Se(t,e.message))return $e(e.message,t)}return t}function ot(e){return Array.isArray(e)?new Uint8Array(e):e}function rt(e,t){const n={};for(const o of Object.entries(e))n[o[0]]=t(o[1]);return n}const it=Symbol(),st=new WeakMap;function at(e){if("oneof"==e.kind)return{case:void 0};if("list"==e.fieldKind)return[];if("map"==e.fieldKind)return{};if("message"==e.fieldKind)return it;const t=e.getDefaultValue();return void 0!==t?"scalar"==e.fieldKind&&e.longAsString?t.toString():t:"scalar"==e.fieldKind?Xe(e.scalar,e.longAsString):e.enum.values[0].number}const lt=Symbol.for("@bufbuild/protobuf/text-encoding");function ut(){if(null==globalThis[lt]){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[lt]={encodeUtf8:t=>e.encode(t),decodeUtf8:e=>t.decode(e),checkUtf8(e){try{return encodeURIComponent(e),!0}catch(e){return!1}}}}return globalThis[lt]}var ct;!function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(ct||(ct={}));const mt=34028234663852886e22,dt=-34028234663852886e22,pt=4294967295,bt=2147483647,gt=-2147483648;class ht{constructor(e=ut().encodeUtf8){this.encodeUtf8=e,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e),n=0;for(let e=0;e<this.chunks.length;e++)t.set(this.chunks[e],n),n+=this.chunks[e].length;return this.chunks=[],t}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),t=this.stack.pop();if(!t)throw new Error("invalid state, fork stack empty");return this.chunks=t.chunks,this.buf=t.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Nt(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return Et(e),Fe(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.encodeUtf8(e);return this.uint32(t.byteLength),this.raw(t)}float(e){!function(e){if("string"==typeof e){const t=e;if(e=Number(e),isNaN(e)&&"NaN"!==t)throw new Error("invalid float32: "+t)}else if("number"!=typeof e)throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>mt||e<dt))throw new Error("invalid float32: "+e)}(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){Nt(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){Et(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return Et(e),Fe(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),o=Ze.enc(e);return n.setInt32(0,o.lo,!0),n.setInt32(4,o.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),o=Ze.uEnc(e);return n.setInt32(0,o.lo,!0),n.setInt32(4,o.hi,!0),this.raw(t)}int64(e){let t=Ze.enc(e);return Re(t.lo,t.hi,this.buf),this}sint64(e){let t=Ze.enc(e),n=t.hi>>31;return Re(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=Ze.uEnc(e);return Re(t.lo,t.hi,this.buf),this}}class ft{constructor(e,t=ut().decodeUtf8){this.decodeUtf8=t,this.varint64=Ge,this.uint32=Te,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.uint32(),t=e>>>3,n=7&e;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e,t){let n=this.pos;switch(e){case ct.Varint:for(;128&this.buf[this.pos++];);break;case ct.Bit64:this.pos+=4;case ct.Bit32:this.pos+=4;break;case ct.LengthDelimited:let n=this.uint32();this.pos+=n;break;case ct.StartGroup:for(;;){const[e,n]=this.tag();if(n===ct.EndGroup){if(void 0!==t&&e!==t)throw new Error("invalid end group tag");break}this.skip(n,e)}break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return Ze.dec(...this.varint64())}uint64(){return Ze.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,Ze.dec(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Ze.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ze.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.decodeUtf8(this.bytes())}}function Et(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>bt||e<gt)throw new Error("invalid int32: "+e)}function Nt(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw new Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>pt||e<0)throw new Error("invalid uint32: "+e)}function At(e,t,n){const o=yt(e,n);if(!0!==o)return new De(e,`list item #${t+1}: ${St(e,n,o)}`)}function yt(e,t){return void 0!==e.scalar?It(t,e.scalar):void 0!==e.enum?e.enum.open?Number.isInteger(t):e.enum.values.some((e=>e.number===t)):He(t,e.message)}function It(e,t){switch(t){case ye.DOUBLE:return"number"==typeof e;case ye.FLOAT:return"number"==typeof e&&(!(!Number.isNaN(e)&&Number.isFinite(e))||(!(e>mt||e<dt)||`${e.toFixed()} out of range`));case ye.INT32:case ye.SFIXED32:case ye.SINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>bt||e<gt)||`${e.toFixed()} out of range`);case ye.FIXED32:case ye.UINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>pt||e<0)||`${e.toFixed()} out of range`);case ye.BOOL:return"boolean"==typeof e;case ye.STRING:return"string"==typeof e&&(ut().checkUtf8(e)||"invalid UTF8");case ye.BYTES:return e instanceof Uint8Array;case ye.INT64:case ye.SFIXED64:case ye.SINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{Ze.parse(e)}catch(t){return`${e} out of range`}return!0;case ye.FIXED64:case ye.UINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{Ze.uParse(e)}catch(t){return`${e} out of range`}return!0}}function St(e,t,n){return n="string"==typeof n?`: ${n}`:`, got ${Gt(t)}`,void 0!==e.scalar?`expected ${function(e){switch(e){case ye.STRING:return"string";case ye.BOOL:return"boolean";case ye.INT64:case ye.SINT64:case ye.SFIXED64:return"bigint (int64)";case ye.UINT64:case ye.FIXED64:return"bigint (uint64)";case ye.BYTES:return"Uint8Array";case ye.DOUBLE:return"number (float64)";case ye.FLOAT:return"number (float32)";case ye.FIXED32:case ye.UINT32:return"number (uint32)";case ye.INT32:case ye.SFIXED32:case ye.SINT32:return"number (int32)"}}(e.scalar)}`+n:void 0!==e.enum?`expected ${e.enum.toString()}`+n:`expected ${Rt(e.message)}`+n}function Gt(e){switch(typeof e){case"object":return null===e?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:je(e)?Yt(e.field()):Pe(e)?Wt(e.field()):He(e)?Rt(e.desc):Se(e)?`message ${e.$typeName}`:"object";case"string":return e.length>30?"string":`"${e.split('"').join('\\"')}"`;case"boolean":case"number":return String(e);case"bigint":return String(e)+"n";default:return typeof e}}function Rt(e){return`ReflectMessage (${e.typeName})`}function Yt(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${ye[e.scalar]})`}}function Wt(e){switch(e.mapKind){case"message":return`ReflectMap (${ye[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${ye[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${ye[e.mapKey]}, ${ye[e.scalar]})`}}function wt(e,t,n=!0){return new Vt(e,t,n)}class Vt{get sortedFields(){var e;return null!==(e=this._sortedFields)&&void 0!==e?e:this._sortedFields=this.desc.fields.concat().sort(((e,t)=>e.number-t.number))}constructor(e,t,n=!0){this.lists=new Map,this.maps=new Map,this.check=n,this.desc=e,this.message=this[Ue]=null!=t?t:$e(e),this.fields=e.fields,this.oneofs=e.oneofs,this.members=e.members}findNumber(e){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map((e=>[e.number,e])))),this._fieldsByNumber.get(e)}oneofCase(e){return vt(this.message,e),Le(this.message,e)}isSet(e){return vt(this.message,e),Ke(this.message,e)}clear(e){vt(this.message,e),function(e,t){const n=t.localName;if(t.oneof){const o=t.oneof.localName;e[o].case===n&&(e[o]={case:void 0})}else if(2!=t.presence)delete e[n];else switch(t.fieldKind){case"map":e[n]={};break;case"list":e[n]=[];break;case"enum":e[n]=t.enum.values[0].number;break;case"scalar":e[n]=Xe(t.scalar,t.longAsString)}}(this.message,e)}get(e){vt(this.message,e);const t=Je(this.message,e);switch(e.fieldKind){case"list":let n=this.lists.get(e);return n&&n[Ue]===t||this.lists.set(e,n=new Bt(e,t,this.check)),n;case"map":let o=this.maps.get(e);return o&&o[Ue]===t||this.maps.set(e,o=new Ft(e,t,this.check)),o;case"message":return Zt(e,t,this.check);case"scalar":return void 0===t?Xe(e.scalar,!1):Ut(e,t);case"enum":return null!=t?t:e.enum.values[0].number}}set(e,t){if(vt(this.message,e),this.check){const n=function(e,t){const n="list"==e.fieldKind?je(t,e):"map"==e.fieldKind?Pe(t,e):yt(e,t);if(!0===n)return;let o;switch(e.fieldKind){case"list":o=`expected ${Yt(e)}, got ${Gt(t)}`;break;case"map":o=`expected ${Wt(e)}, got ${Gt(t)}`;break;default:o=St(e,t,n)}return new De(e,o)}(e,t);if(n)throw n}let n;n="message"==e.fieldKind?Tt(e,t):Pe(t)||je(t)?t[Ue]:Lt(e,t),_e(this.message,e,n)}getUnknown(){return this.message.$unknown}setUnknown(e){this.message.$unknown=e}}function vt(e,t){if(t.parent.typeName!==e.$typeName)throw new De(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class Bt{field(){return this._field}get size(){return this._arr.length}constructor(e,t,n){this._field=e,this._arr=this[Ue]=t,this.check=n}get(e){const t=this._arr[e];return void 0===t?void 0:Ct(this._field,t,this.check)}set(e,t){if(e<0||e>=this._arr.length)throw new De(this._field,`list item #${e+1}: out of range`);if(this.check){const n=At(this._field,e,t);if(n)throw n}this._arr[e]=xt(this._field,t)}add(e){if(this.check){const t=At(this._field,this._arr.length,e);if(t)throw t}this._arr.push(xt(this._field,e))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const e of this._arr)yield Ct(this._field,e,this.check)}*entries(){for(let e=0;e<this._arr.length;e++)yield[e,Ct(this._field,this._arr[e],this.check)]}}class Ft{constructor(e,t,n=!0){this.obj=this[Ue]=null!=t?t:{},this.check=n,this._field=e}field(){return this._field}set(e,t){if(this.check){const n=function(e,t,n){const o=It(t,e.mapKey);if(!0!==o)return new De(e,`invalid map key: ${St({scalar:e.mapKey},t,o)}`);const r=yt(e,n);return!0!==r?new De(e,`map entry ${Gt(t)}: ${St(e,n,r)}`):void 0}(this._field,e,t);if(n)throw n}return this.obj[Xt(e)]=function(e,t){if("message"==e.mapKind)return Tt(e,t);return Lt(e,t)}(this._field,t),this}delete(e){const t=Xt(e),n=Object.prototype.hasOwnProperty.call(this.obj,t);return n&&delete this.obj[t],n}clear(){for(const e of Object.keys(this.obj))delete this.obj[e]}get(e){let t=this.obj[Xt(e)];return void 0!==t&&(t=kt(this._field,t,this.check)),t}has(e){return Object.prototype.hasOwnProperty.call(this.obj,Xt(e))}*keys(){for(const e of Object.keys(this.obj))yield Dt(e,this._field.mapKey)}*entries(){for(const e of Object.entries(this.obj))yield[Dt(e[0],this._field.mapKey),kt(this._field,e[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const e of Object.values(this.obj))yield kt(this._field,e,this.check)}forEach(e,t){for(const n of this.entries())e.call(t,n[1],n[0],this)}}function Tt(e,t){return He(t)?ze(t.message.$typeName)&&!e.oneof&&"message"==e.fieldKind?t.message.value:"google.protobuf.Struct"==t.desc.typeName&&"google.protobuf.Value"!=e.parent.typeName?Ot(t.message):t.message:t}function Zt(e,t,n){return void 0!==t&&(Qe(e.message)&&!e.oneof&&"message"==e.fieldKind?t={$typeName:e.message.typeName,value:Ut(e.message.fields[0],t)}:"google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!=e.parent.typeName&&Me(t)&&(t=Kt(t))),new Vt(e.message,t,n)}function xt(e,t){return"message"==e.listKind?Tt(e,t):Lt(e,t)}function Ct(e,t,n){return"message"==e.listKind?Zt(e,t,n):Ut(e,t)}function kt(e,t,n){return"message"==e.mapKind?Zt(e,t,n):t}function Xt(e){return"string"==typeof e||"number"==typeof e?e:String(e)}function Dt(e,t){switch(t){case ye.STRING:return e;case ye.INT32:case ye.FIXED32:case ye.UINT32:case ye.SFIXED32:case ye.SINT32:{const t=Number.parseInt(e);if(Number.isFinite(t))return t;break}case ye.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case ye.UINT64:case ye.FIXED64:try{return Ze.uParse(e)}catch(e){}break;default:try{return Ze.parse(e)}catch(e){}}return e}function Ut(e,t){switch(e.scalar){case ye.INT64:case ye.SFIXED64:case ye.SINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=Ze.parse(t));break;case ye.FIXED64:case ye.UINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=Ze.uParse(t))}return t}function Lt(e,t){switch(e.scalar){case ye.INT64:case ye.SFIXED64:case ye.SINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=Ze.parse(t));break;case ye.FIXED64:case ye.UINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=Ze.uParse(t))}return t}function Kt(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(Me(e))for(const[n,o]of Object.entries(e))t.fields[n]=_t(o);return t}function Ot(e){const t={};for(const[n,o]of Object.entries(e.fields))t[n]=Jt(o);return t}function Jt(e){switch(e.kind.case){case"structValue":return Ot(e.kind.value);case"listValue":return e.kind.value.values.map(Jt);case"nullValue":case void 0:return null;default:return e.kind.value}}function _t(e){const t={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof e){case"number":t.kind={case:"numberValue",value:e};break;case"string":t.kind={case:"stringValue",value:e};break;case"boolean":t.kind={case:"boolValue",value:e};break;case"object":if(null===e){const e=0;t.kind={case:"nullValue",value:e}}else if(Array.isArray(e)){const n={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(e))for(const t of e)n.values.push(_t(t));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:Kt(e)}}return t}function Mt(e){const t=function(){if(!Pt){Pt=[];const e=function(){jt||(jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),jt.slice(0,-2).concat("-","_"));return jt}();for(let t=0;t<e.length;t++)Pt[e[t].charCodeAt(0)]=t;Pt["-".charCodeAt(0)]=e.indexOf("+"),Pt["_".charCodeAt(0)]=e.indexOf("/")}return Pt}();let n=3*e.length/4;"="==e[e.length-2]?n-=2:"="==e[e.length-1]&&(n-=1);let o,r=new Uint8Array(n),i=0,s=0,a=0;for(let n=0;n<e.length;n++){if(o=t[e.charCodeAt(n)],void 0===o)switch(e[n]){case"=":s=0;case"\n":case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string")}switch(s){case 0:a=o,s=1;break;case 1:r[i++]=a<<2|(48&o)>>4,a=o,s=2;break;case 2:r[i++]=(15&a)<<4|(60&o)>>2,a=o,s=3;break;case 3:r[i++]=(3&a)<<6|o,s=0}}if(1==s)throw Error("invalid base64 string");return r.subarray(0,i)}let jt,Pt;function Ht(e){let t=!1;const n=[];for(let o=0;o<e.length;o++){let r=e.charAt(o);switch(r){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(r),t=!1;break;default:t&&(t=!1,r=r.toUpperCase()),n.push(r)}}return n.join("")}const Qt=new Set(["constructor","toString","toJSON","valueOf"]);function zt(e){return Qt.has(e)?e+"$":e}function $t(e){for(const t of e.field)Oe(t,"jsonName")||(t.jsonName=Ht(t.name));e.nestedType.forEach($t)}function qt(e,t){switch(e){case ye.STRING:return t;case ye.BYTES:{const n=function(e){const t=[],n={tail:e,c:"",next(){return 0!=this.tail.length&&(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(e){if(this.tail.length>=e){const t=this.tail.substring(0,e);return this.tail=this.tail.substring(e),t}return!1}};for(;n.next();)if("\\"===n.c){if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const e=n.c,o=n.take(2);if(!1===o)return!1;const r=parseInt(e+o,8);if(isNaN(r))return!1;t.push(r);break}case"x":{const e=n.c,o=n.take(2);if(!1===o)return!1;const r=parseInt(e+o,16);if(isNaN(r))return!1;t.push(r);break}case"u":{const e=n.c,o=n.take(4);if(!1===o)return!1;const r=parseInt(e+o,16);if(isNaN(r))return!1;const i=new Uint8Array(4);new DataView(i.buffer).setInt32(0,r,!0),t.push(i[0],i[1],i[2],i[3]);break}case"U":{const e=n.c,o=n.take(8);if(!1===o)return!1;const r=Ze.uEnc(e+o),i=new Uint8Array(8),s=new DataView(i.buffer);s.setInt32(0,r.lo,!0),s.setInt32(4,r.hi,!0),t.push(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]);break}}}else t.push(n.c.charCodeAt(0));return new Uint8Array(t)}(t);if(!1===n)throw new Error(`cannot parse ${ye[e]} default value: ${t}`);return n}case ye.INT64:case ye.SFIXED64:case ye.SINT64:return Ze.parse(t);case ye.UINT64:case ye.FIXED64:return Ze.uParse(t);case ye.DOUBLE:case ye.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case ye.BOOL:return"true"===t;case ye.INT32:case ye.UINT32:case ye.SINT32:case ye.FIXED32:case ye.SFIXED32:return parseInt(t,10)}}function*en(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*en(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*en(t);yield*e.nestedEnums,yield*e.nestedExtensions}}function tn(...e){const t=function(){const e=new Map,t=new Map,n=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator]:()=>e.values(),get files(){return n.values()},addFile(e,t,o){if(n.set(e.proto.name,e),!t)for(const t of en(e))this.add(t);if(o)for(const n of e.dependencies)this.addFile(n,t,o)},add(n){if("extension"==n.kind){let e=t.get(n.extendee.typeName);e||t.set(n.extendee.typeName,e=new Map),e.set(n.number,n)}e.set(n.typeName,n)},get:t=>e.get(t),getFile:e=>n.get(e),getMessage(t){const n=e.get(t);return"message"==(null==n?void 0:n.kind)?n:void 0},getEnum(t){const n=e.get(t);return"enum"==(null==n?void 0:n.kind)?n:void 0},getExtension(t){const n=e.get(t);return"extension"==(null==n?void 0:n.kind)?n:void 0},getExtensionFor(e,n){var o;return null===(o=t.get(e.typeName))||void 0===o?void 0:o.get(n)},getService(t){const n=e.get(t);return"service"==(null==n?void 0:n.kind)?n:void 0}}}();if(!e.length)return t;if("$typeName"in e[0]&&"google.protobuf.FileDescriptorSet"==e[0].$typeName){for(const n of e[0].file)yn(n,t);return t}if("$typeName"in e[0]){const o=e[0],r=e[1],i=new Set;function s(e){const n=[];for(const o of e.dependency){if(null!=t.getFile(o))continue;if(i.has(o))continue;const s=r(o);if(!s)throw new Error(`Unable to resolve ${o}, imported by ${e.name}`);"kind"in s?t.addFile(s,!1,!0):(i.add(s.name),n.push(s))}return n.concat(...n.map(s))}for(const a of[o,...s(o)].reverse())yn(a,t)}else for(const l of e)for(const u of l.files)t.addFile(u);return t}const nn=998,on=999,rn=9,sn=10,an=11,ln=12,un=14,cn=3,mn=2,dn=1,pn=0,bn=1,gn=2,hn=3,fn=1,En=2,Nn=1,An={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1}};function yn(e,t){var n,o;const r={kind:"file",proto:e,deprecated:null!==(o=null===(n=e.options)||void 0===n?void 0:n.deprecated)&&void 0!==o&&o,edition:Vn(e),name:e.name.replace(/\.proto$/,""),dependencies:vn(e,t),enums:[],messages:[],extensions:[],services:[],toString:()=>`file ${e.name}`},i=new Map,s={get:e=>i.get(e),add(e){var t;kn(!0===(null===(t=e.proto.options)||void 0===t?void 0:t.mapEntry)),i.set(e.typeName,e)}};for(const n of e.enumType)Gn(n,r,void 0,t);for(const n of e.messageType)Rn(n,r,void 0,t,s);for(const n of e.service)Yn(n,r,t);In(r,t);for(const e of i.values())Sn(e,t,s);for(const e of r.messages)Sn(e,t,s),In(e,t);t.addFile(r,!0)}function In(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const o=wn(n,e,t);e.extensions.push(o),t.add(o)}break;case"message":for(const n of e.proto.extension){const o=wn(n,e,t);e.nestedExtensions.push(o),t.add(o)}for(const n of e.nestedMessages)In(n,t)}}function Sn(e,t,n){const o=e.proto.oneofDecl.map((t=>function(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:zt(Ht(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}(t,e))),r=new Set;for(const i of e.proto.field){const s=Tn(i,o),a=wn(i,e,t,s,n);e.fields.push(a),e.field[a.localName]=a,void 0===s?e.members.push(a):(s.fields.push(a),r.has(s)||(r.add(s),e.members.push(s)))}for(const t of o.filter((e=>r.has(e))))e.oneofs.push(t);for(const o of e.nestedMessages)Sn(o,t,n)}function Gn(e,t,n,o){var r,i,s;const a=function(e,t){const n=(o=e,(o.substring(0,1)+o.substring(1).replace(/[A-Z]/g,(e=>"_"+e))).toLowerCase()+"_");var o;for(const e of t){if(!e.name.toLowerCase().startsWith(n))return;const t=e.name.substring(n.length);if(0==t.length)return;if(/^\d/.test(t))return}return n}(e.name,e.value),l={kind:"enum",proto:e,deprecated:null!==(i=null===(r=e.options)||void 0===r?void 0:r.deprecated)&&void 0!==i&&i,file:t,parent:n,open:!0,name:e.name,typeName:Bn(e,n,t),value:{},values:[],sharedPrefix:a,toString(){return`enum ${this.typeName}`}};l.open=function(e){var t;return Nn==Cn("enumType",{proto:e.proto,parent:null!==(t=e.parent)&&void 0!==t?t:e.file})}(l),o.add(l),e.value.forEach((e=>{var t,n;const o=e.name;l.values.push(l.value[e.number]={kind:"enum_value",proto:e,deprecated:null!==(n=null===(t=e.options)||void 0===t?void 0:t.deprecated)&&void 0!==n&&n,parent:l,name:o,localName:zt(null==a?o:o.substring(a.length)),number:e.number,toString:()=>`enum value ${l.typeName}.${o}`})})),(null!==(s=null==n?void 0:n.nestedEnums)&&void 0!==s?s:t.enums).push(l)}function Rn(e,t,n,o,r){var i,s,a,l;const u={kind:"message",proto:e,deprecated:null!==(s=null===(i=e.options)||void 0===i?void 0:i.deprecated)&&void 0!==s&&s,file:t,parent:n,name:e.name,typeName:Bn(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};!0===(null===(a=e.options)||void 0===a?void 0:a.mapEntry)?r.add(u):((null!==(l=null==n?void 0:n.nestedMessages)&&void 0!==l?l:t.messages).push(u),o.add(u));for(const n of e.enumType)Gn(n,t,u,o);for(const n of e.nestedType)Rn(n,t,u,o,r)}function Yn(e,t,n){var o,r;const i={kind:"service",proto:e,deprecated:null!==(r=null===(o=e.options)||void 0===o?void 0:o.deprecated)&&void 0!==r&&r,file:t,name:e.name,typeName:Bn(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(i),n.add(i);for(const t of e.method){const e=Wn(t,i,n);i.methods.push(e),i.method[e.localName]=e}}function Wn(e,t,n){var o,r,i,s;let a;a=e.clientStreaming&&e.serverStreaming?"bidi_streaming":e.clientStreaming?"client_streaming":e.serverStreaming?"server_streaming":"unary";const l=n.getMessage(Fn(e.inputType)),u=n.getMessage(Fn(e.outputType));kn(l,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),kn(u,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const c=e.name;return{kind:"rpc",proto:e,deprecated:null!==(r=null===(o=e.options)||void 0===o?void 0:o.deprecated)&&void 0!==r&&r,parent:t,name:c,localName:zt(c.length?zt(c[0].toLowerCase()+c.substring(1)):c),methodKind:a,input:l,output:u,idempotency:null!==(s=null===(i=e.options)||void 0===i?void 0:i.idempotencyLevel)&&void 0!==s?s:pn,toString:()=>`rpc ${t.typeName}.${c}`}}function wn(e,t,n,o,r){var i,s,a;const l=void 0===r,u={kind:"field",proto:e,deprecated:null!==(s=null===(i=e.options)||void 0===i?void 0:i.deprecated)&&void 0!==s&&s,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:Zn(e,o,l,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(l){const o="file"==t.kind?t:t.file,r="file"==t.kind?void 0:t,i=Bn(e,r,o);u.kind="extension",u.file=o,u.parent=r,u.oneof=void 0,u.typeName=i,u.jsonName=`[${i}]`,u.toString=()=>`extension ${i}`;const s=n.getMessage(Fn(e.extendee));kn(s,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),u.extendee=s}else{const n=t;kn("message"==n.kind),u.parent=n,u.oneof=o,u.localName=o?Ht(e.name):zt(Ht(e.name)),u.jsonName=e.jsonName,u.toString=()=>`field ${n.typeName}.${e.name}`}const c=e.label,m=e.type,d=null===(a=e.options)||void 0===a?void 0:a.jstype;if(c===cn){const o=m==an?null==r?void 0:r.get(Fn(e.typeName)):void 0;if(o){u.fieldKind="map";const{key:e,value:t}=function(e){const t=e.fields.find((e=>1===e.number)),n=e.fields.find((e=>2===e.number));return kn(t&&"scalar"==t.fieldKind&&t.scalar!=ye.BYTES&&t.scalar!=ye.FLOAT&&t.scalar!=ye.DOUBLE&&n&&"list"!=n.fieldKind&&"map"!=n.fieldKind),{key:t,value:n}}(o);return u.mapKey=e.scalar,u.mapKind=t.fieldKind,u.message=t.message,u.delimitedEncoding=!1,u.enum=t.enum,u.scalar=t.scalar,u}switch(u.fieldKind="list",m){case an:case sn:u.listKind="message",u.message=n.getMessage(Fn(e.typeName)),kn(u.message),u.delimitedEncoding=xn(e,t);break;case un:u.listKind="enum",u.enum=n.getEnum(Fn(e.typeName)),kn(u.enum);break;default:u.listKind="scalar",u.scalar=m,u.longAsString=d==dn}return u.packed=function(e,t){if(e.label!=cn)return!1;switch(e.type){case rn:case ln:case sn:case an:return!1}const n=e.options;if(n&&Oe(n,"packed"))return n.packed;return fn==Cn("repeatedFieldEncoding",{proto:e,parent:t})}(e,t),u}switch(m){case an:case sn:u.fieldKind="message",u.message=n.getMessage(Fn(e.typeName)),kn(u.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.delimitedEncoding=xn(e,t),u.getDefaultValue=()=>{};break;case un:{const t=n.getEnum(Fn(e.typeName));kn(void 0!==t,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(Fn(e.typeName)),u.getDefaultValue=()=>Oe(e,"defaultValue")?function(e,t){const n=e.values.find((e=>e.name===t));if(!n)throw new Error(`cannot parse ${e} default value: ${t}`);return n.number}(t,e.defaultValue):void 0;break}default:u.fieldKind="scalar",u.scalar=m,u.longAsString=d==dn,u.getDefaultValue=()=>Oe(e,"defaultValue")?qt(m,e.defaultValue):void 0}return u}function Vn(e){switch(e.syntax){case"":case"proto2":return nn;case"proto3":return on;case"editions":if(e.edition in An)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function vn(e,t){return e.dependency.map((n=>{const o=t.getFile(n);if(!o)throw new Error(`Cannot find ${n}, imported by ${e.name}`);return o}))}function Bn(e,t,n){let o;return o=t?`${t.typeName}.${e.name}`:n.proto.package.length>0?`${n.proto.package}.${e.name}`:`${e.name}`,o}function Fn(e){return e.startsWith(".")?e.substring(1):e}function Tn(e,t){if(!Oe(e,"oneofIndex"))return;if(e.proto3Optional)return;const n=t[e.oneofIndex];return kn(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function Zn(e,t,n,o){return e.label==mn?hn:e.label==cn?gn:t||e.proto3Optional||e.type==an||n?bn:Cn("fieldPresence",{proto:e,parent:o})}function xn(e,t){return e.type==sn||En==Cn("messageEncoding",{proto:e,parent:t})}function Cn(e,t){var n,o;const r=null===(n=t.proto.options)||void 0===n?void 0:n.features;if(r){const t=r[e];if(0!=t)return t}if("kind"in t){if("message"==t.kind)return Cn(e,null!==(o=t.parent)&&void 0!==o?o:t.file);const n=An[t.edition];if(!n)throw new Error(`feature default for edition ${t.edition} not found`);return n[e]}return Cn(e,t.parent)}function kn(e,t){if(!e)throw new Error(t)}function Xn(e){const t=function(e){const t=Object.create({syntax:"",edition:0});return Object.assign(t,Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(Dn),enumType:e.enumType.map(Kn)}))}(e);t.messageType.forEach($t);return tn(t,(()=>{})).getFile(t.name)}function Dn(e){var t,n,o,r,i,s,a,l;return{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:null!==(n=null===(t=e.field)||void 0===t?void 0:t.map(Un))&&void 0!==n?n:[],extension:[],nestedType:null!==(r=null===(o=e.nestedType)||void 0===o?void 0:o.map(Dn))&&void 0!==r?r:[],enumType:null!==(s=null===(i=e.enumType)||void 0===i?void 0:i.map(Kn))&&void 0!==s?s:[],extensionRange:null!==(l=null===(a=e.extensionRange)||void 0===a?void 0:a.map((e=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},e))))&&void 0!==l?l:[],oneofDecl:[],reservedRange:[],reservedName:[]}}function Un(e){const t=Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1});return Object.assign(t,Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?Ln(e.options):void 0}))}function Ln(e){var t,n,o;const r=Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0});return Object.assign(r,Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:null!==(t=e.targets)&&void 0!==t?t:[],editionDefaults:null!==(o=null===(n=e.editionDefaults)||void 0===n?void 0:n.map((e=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},e))))&&void 0!==o?o:[],uninterpretedOption:[]}))}function Kn(e){return{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map((e=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},e)))}}function On(e,t,...n){return n.reduce(((e,t)=>e.nestedMessages[t]),e.messages[t])}const Jn=On(Xn({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false"},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false"},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]}]}),1);var _n,Mn,jn,Pn,Hn,Qn,zn,$n,qn,eo,to,no,oo,ro,io,so,ao;!function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"}(_n||(_n={})),function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(Mn||(Mn={})),function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"}(jn||(jn={})),function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"}(Pn||(Pn={})),function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"}(Hn||(Hn={})),function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"}(Qn||(Qn={})),function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"}(zn||(zn={})),function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"}($n||($n={})),function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"}(qn||(qn={})),function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"}(eo||(eo={})),function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"}(to||(to={})),function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"}(no||(no={})),function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"}(oo||(oo={})),function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"}(ro||(ro={})),function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"}(io||(io={})),function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"}(so||(so={})),function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"}(ao||(ao={}));const lo={readUnknownFields:!0};function uo(e,t,n){const o=wt(e,void 0,!1);return co(o,new ft(t),function(e){return e?Object.assign(Object.assign({},lo),e):lo}(n),!1,t.byteLength),o.message}function co(e,t,n,o,r){var i;const s=o?t.len:t.pos+r;let a,l;const u=null!==(i=e.getUnknown())&&void 0!==i?i:[];for(;t.pos<s&&([a,l]=t.tag(),!o||l!=ct.EndGroup);){const o=e.findNumber(a);if(o)mo(e,t,o,l,n);else{const e=t.skip(l,a);n.readUnknownFields&&u.push({no:a,wireType:l,data:e})}}if(o&&(l!=ct.EndGroup||a!==r))throw new Error("invalid end group tag");u.length>0&&e.setUnknown(u)}function mo(e,t,n,o,r){switch(n.fieldKind){case"scalar":e.set(n,bo(t,n.scalar));break;case"enum":e.set(n,bo(t,ye.INT32));break;case"message":e.set(n,po(t,r,n,e.get(n)));break;case"list":!function(e,t,n,o){var r;const i=n.field();if("message"===i.listKind)return void n.add(po(e,o,i));const s=null!==(r=i.scalar)&&void 0!==r?r:ye.INT32,a=t==ct.LengthDelimited&&s!=ye.STRING&&s!=ye.BYTES;if(!a)return void n.add(bo(e,s));const l=e.uint32()+e.pos;for(;e.pos<l;)n.add(bo(e,s))}(t,o,e.get(n),r);break;case"map":!function(e,t,n){const o=t.field();let r,i;const s=e.pos+e.uint32();for(;e.pos<s;){const[t]=e.tag();switch(t){case 1:r=bo(e,o.mapKey);break;case 2:switch(o.mapKind){case"scalar":i=bo(e,o.scalar);break;case"enum":i=e.int32();break;case"message":i=po(e,n,o)}}}void 0===r&&(r=Xe(o.mapKey,!1));if(void 0===i)switch(o.mapKind){case"scalar":i=Xe(o.scalar,!1);break;case"enum":i=o.enum.values[0].number;break;case"message":i=wt(o.message,void 0,!1)}t.set(r,i)}(t,e.get(n),r)}}function po(e,t,n,o){const r=n.delimitedEncoding,i=null!=o?o:wt(n.message,void 0,!1);return co(i,e,t,r,r?n.number:e.uint32()),i}function bo(e,t){switch(t){case ye.STRING:return e.string();case ye.BOOL:return e.bool();case ye.DOUBLE:return e.double();case ye.FLOAT:return e.float();case ye.INT32:return e.int32();case ye.INT64:return e.int64();case ye.UINT64:return e.uint64();case ye.FIXED64:return e.fixed64();case ye.BYTES:return e.bytes();case ye.FIXED32:return e.fixed32();case ye.SFIXED32:return e.sfixed32();case ye.SFIXED64:return e.sfixed64();case ye.SINT64:return e.sint64();case ye.UINT32:return e.uint32();case ye.SINT32:return e.sint32()}}function go(e,t){var n;const o=uo(Jn,Mt(e));o.messageType.forEach($t),o.dependency=null!==(n=null==t?void 0:t.map((e=>e.proto.name)))&&void 0!==n?n:[];const r=tn(o,(e=>null==t?void 0:t.find((t=>t.proto.name===e))));return r.getFile(o.name)}const ho=go("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),fo=On(ho,0);function Eo(e){return function(e){return $e(fo,{seconds:Ze.parse(Math.floor(e/1e3)),nanos:e%1e3*1e6})}(e.getTime())}function No(e){return new Date(function(e){return 1e3*Number(e.seconds)+Math.ceil(e.nanos/1e6)}(e))}const Ao={writeUnknownFields:!0};function yo(e,t,n){return Io(new ht,function(e){return e?Object.assign(Object.assign({},Ao),e):Ao}(n),wt(e,t)).finish()}function Io(e,t,n){var o;for(const o of n.sortedFields)if(n.isSet(o))So(e,t,n,o);else if(3==o.presence)throw new Error(`cannot encode field ${n.desc.typeName}.${o.name} to binary: required field not set`);if(t.writeUnknownFields)for(const{no:t,wireType:r,data:i}of null!==(o=n.getUnknown())&&void 0!==o?o:[])e.tag(t,r).raw(i);return e}function So(e,t,n,o){var r;switch(o.fieldKind){case"scalar":case"enum":Go(e,null!==(r=o.scalar)&&void 0!==r?r:ye.INT32,o.number,n.get(o));break;case"list":!function(e,t,n,o){var r;if("message"==n.listKind){for(const r of o)Ro(e,t,n,r);return}const i=null!==(r=n.scalar)&&void 0!==r?r:ye.INT32;if(n.packed){if(!o.size)return;e.tag(n.number,ct.LengthDelimited).fork();for(const t of o)Wo(e,i,t);return void e.join()}for(const t of o)Go(e,i,n.number,t)}(e,t,o,n.get(o));break;case"message":Ro(e,t,o,n.get(o));break;case"map":for(const[r,i]of n.get(o))Yo(e,t,o,r,i)}}function Go(e,t,n,o){Wo(e.tag(n,function(e){switch(e){case ye.BYTES:case ye.STRING:return ct.LengthDelimited;case ye.DOUBLE:case ye.FIXED64:case ye.SFIXED64:return ct.Bit64;case ye.FIXED32:case ye.SFIXED32:case ye.FLOAT:return ct.Bit32;default:return ct.Varint}}(t)),t,o)}function Ro(e,t,n,o){n.delimitedEncoding?Io(e.tag(n.number,ct.StartGroup),t,o).tag(n.number,ct.EndGroup):Io(e.tag(n.number,ct.LengthDelimited).fork(),t,o).join()}function Yo(e,t,n,o,r){var i;switch(e.tag(n.number,ct.LengthDelimited).fork(),Go(e,n.mapKey,1,o),n.mapKind){case"scalar":case"enum":Go(e,null!==(i=n.scalar)&&void 0!==i?i:ye.INT32,2,r);break;case"message":Io(e.tag(2,ct.LengthDelimited).fork(),t,r).join()}e.join()}function Wo(e,t,n){switch(t){case ye.STRING:e.string(n);break;case ye.BOOL:e.bool(n);break;case ye.DOUBLE:e.double(n);break;case ye.FLOAT:e.float(n);break;case ye.INT32:e.int32(n);break;case ye.INT64:e.int64(n);break;case ye.UINT64:e.uint64(n);break;case ye.FIXED64:e.fixed64(n);break;case ye.BYTES:e.bytes(n);break;case ye.FIXED32:e.fixed32(n);break;case ye.SFIXED32:e.sfixed32(n);break;case ye.SFIXED64:e.sfixed64(n);break;case ye.SINT64:e.sint64(n);break;case ye.UINT32:e.uint32(n);break;case ye.SINT32:e.sint32(n)}}const wo=go("Cg1iaWxpL2RtLnByb3RvEiBiaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MSJkCgZBdmF0YXISCgoCaWQYASABKAkSCwoDdXJsGAIgASgJEkEKC2F2YXRhcl90eXBlGAMgASgOMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQXZhdGFyVHlwZSIjCgZCdWJibGUSDAoEdGV4dBgBIAEoCRILCgN1cmwYAiABKAkixgEKCEJ1YmJsZVYyEgwKBHRleHQYASABKAkSCwoDdXJsGAIgASgJEkEKC2J1YmJsZV90eXBlGAMgASgOMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQnViYmxlVHlwZRIVCg1leHBvc3VyZV9vbmNlGAQgASgIEkUKDWV4cG9zdXJlX3R5cGUYBSABKA4yLi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5FeHBvc3VyZVR5cGUiWwoGQnV0dG9uEgwKBHRleHQYASABKAkSQwoGYWN0aW9uGAIgASgOMjMuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuVG9hc3RG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ckNvbmZpZxIzLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtUGxheWVyQ29uZmlnUmVxGiouYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUmVzcG9uc2USagoIRG1TZWdPdHQSLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbVNlZ090dFJlcRovLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtU2VnT3R0UmVwbHkSagoIRG1TZWdTREsSLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbVNlZ1NES1JlcRovLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtU2VnU0RLUmVwbHkSdAoMRG1FeHBvUmVwb3J0EjEuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1FeHBvUmVwb3J0UmVxGjEuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1FeHBvUmVwb3J0UmVzYgZwcm90bzM"),Vo=On(wo,30),vo=On(wo,39);var Bo,Fo,To,Zo,xo,Co,ko,Xo,Do,Uo,Lo,Ko,Oo,Jo;!function(e){e[e.AvatarTypeNone=0]="AvatarTypeNone",e[e.AvatarTypeNFT=1]="AvatarTypeNFT"}(Bo||(Bo={})),function(e){e[e.BubbleTypeNone=0]="BubbleTypeNone",e[e.BubbleTypeClickButton=1]="BubbleTypeClickButton",e[e.BubbleTypeDmSettingPanel=2]="BubbleTypeDmSettingPanel"}(Fo||(Fo={})),function(e){e[e.CheckboxTypeNone=0]="CheckboxTypeNone",e[e.CheckboxTypeEncourage=1]="CheckboxTypeEncourage",e[e.CheckboxTypeColorDM=2]="CheckboxTypeColorDM"}(To||(To={})),function(e){e[e.NoneType=0]="NoneType",e[e.VipGradualColor=60001]="VipGradualColor"}(Zo||(Zo={})),function(e){e[e.Unknown=0]="Unknown",e[e.OGV=1]="OGV",e[e.BizPic=2]="BizPic",e[e.Mute=3]="Mute",e[e.Record=4]="Record",e[e.Cloud=5]="Cloud",e[e.AIGC=6]="AIGC"}(xo||(xo={})),function(e){e[e.DmMaskWallContentTypeUnknown=0]="DmMaskWallContentTypeUnknown",e[e.DmMaskWallContentTypeText=1]="DmMaskWallContentTypeText",e[e.DmMaskWallContentTypePic=2]="DmMaskWallContentTypePic"}(Co||(Co={})),function(e){e[e.ExposureTypeNone=0]="ExposureTypeNone",e[e.ExposureTypeDMSend=1]="ExposureTypeDMSend"}(ko||(ko={})),function(e){e[e.PostPanelBizTypeNone=0]="PostPanelBizTypeNone",e[e.PostPanelBizTypeEncourage=1]="PostPanelBizTypeEncourage",e[e.PostPanelBizTypeColorDM=2]="PostPanelBizTypeColorDM",e[e.PostPanelBizTypeNFTDM=3]="PostPanelBizTypeNFTDM",e[e.PostPanelBizTypeFragClose=4]="PostPanelBizTypeFragClose",e[e.PostPanelBizTypeRecommend=5]="PostPanelBizTypeRecommend",e[e.PostPanelBizTypePlotLeak=6]="PostPanelBizTypePlotLeak",e[e.PostPanelBizTypeAntiHarassment=7]="PostPanelBizTypeAntiHarassment"}(Xo||(Xo={})),function(e){e[e.PostStatusNormal=0]="PostStatusNormal",e[e.PostStatusClosed=1]="PostStatusClosed"}(Do||(Do={})),function(e){e[e.RenderTypeNone=0]="RenderTypeNone",e[e.RenderTypeSingle=1]="RenderTypeSingle",e[e.RenderTypeRotation=2]="RenderTypeRotation"}(Uo||(Uo={})),function(e){e[e.None=0]="None",e[e.Exposure=1]="Exposure",e[e.Assist=2]="Assist"}(Lo||(Lo={})),function(e){e[e.Normal=0]="Normal",e[e.Translate=1]="Translate"}(Ko||(Ko={})),function(e){e[e.CC=0]="CC",e[e.AI=1]="AI"}(Oo||(Oo={})),function(e){e[e.ToastFunctionTypeNone=0]="ToastFunctionTypeNone",e[e.ToastFunctionTypePostPanel=1]="ToastFunctionTypePostPanel"}(Jo||(Jo={}));const _o=On(go("CgxkYW51bmkucHJvdG8SEWRhbnVuaS5kYW5tYWt1LnYxIt4CCgdEYW5tYWt1EgwKBEZDSUQYASABKAkSDAoERE1JRBgCIAEoCRIQCghwcm9ncmVzcxgDIAEoBRIlCgRtb2RlGAQgASgOMhcuZGFudW5pLmRhbm1ha3UudjEuTW9kZRIQCghmb250c2l6ZRgFIAEoBRINCgVjb2xvchgGIAEoBRIQCghzZW5kZXJJRBgHIAEoCRIPCgdjb250ZW50GAggASgJEikKBWN0aW1lGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIOCgZ3ZWlnaHQYCiABKAUSJQoEcG9vbBgLIAEoDjIXLmRhbnVuaS5kYW5tYWt1LnYxLlBvb2wSDAoEYXR0chgMIAMoCRIQCghwbGF0Zm9ybRgNIAEoCRIRCgRTUE1PGA4gASgJSACIAQESEgoFZXh0cmEYDyABKAlIAYgBAUIHCgVfU1BNT0IICgZfZXh0cmEiPAoMRGFubWFrdVJlcGx5EiwKCGRhbm1ha3VzGAEgAygLMhouZGFudW5pLmRhbm1ha3UudjEuRGFubWFrdSo9CgRNb2RlEgoKBk5vcm1hbBAAEgoKBkJvdHRvbRABEgcKA1RvcBACEgsKB1JldmVyc2UQAxIHCgNFeHQQBCopCgRQb29sEgcKA0RlZhAAEgcKA1N1YhABEgcKA0FkdhACEgYKAkl4EANQAGIGcHJvdG8z",[ho]),1);var Mo,jo;!function(e){e[e.Normal=0]="Normal",e[e.Bottom=1]="Bottom",e[e.Top=2]="Top",e[e.Reverse=3]="Reverse",e[e.Ext=4]="Ext"}(Mo||(Mo={})),function(e){e[e.Def=0]="Def",e[e.Sub=1]="Sub",e[e.Adv=2]="Adv",e[e.Ix=3]="Ix"}(jo||(jo={}));const Po="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ho="ARRAYBUFFER not supported by this environment",Qo="UINT8ARRAY not supported by this environment";function zo(e,t,n,o){let r,i,s;const a=t||[0],l=(n=n||0)>>>3,u=-1===o?3:0;for(r=0;r<e.length;r+=1)s=r+l,i=s>>>2,a.length<=i&&a.push(0),a[i]|=e[r]<<8*(u+o*(s%4));return{value:a,binLen:8*e.length+n}}function $o(e,t,n){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,o){return function(e,t,n,o){let r,i,s,a;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");const l=t||[0],u=(n=n||0)>>>3,c=-1===o?3:0;for(r=0;r<e.length;r+=2){if(i=parseInt(e.substr(r,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(r>>>1)+u,s=a>>>2;l.length<=s;)l.push(0);l[s]|=i<<8*(c+o*(a%4))}return{value:l,binLen:4*e.length+n}}(e,t,o,n)};case"TEXT":return function(e,o,r){return function(e,t,n,o,r){let i,s,a,l,u,c,m,d,p=0;const b=n||[0],g=(o=o||0)>>>3;if("UTF8"===t)for(m=-1===r?3:0,a=0;a<e.length;a+=1)for(i=e.charCodeAt(a),s=[],128>i?s.push(i):2048>i?(s.push(192|i>>>6),s.push(128|63&i)):55296>i||57344<=i?s.push(224|i>>>12,128|i>>>6&63,128|63&i):(a+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(a)),s.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),l=0;l<s.length;l+=1){for(c=p+g,u=c>>>2;b.length<=u;)b.push(0);b[u]|=s[l]<<8*(m+r*(c%4)),p+=1}else for(m=-1===r?2:0,d="UTF16LE"===t&&1!==r||"UTF16LE"!==t&&1===r,a=0;a<e.length;a+=1){for(i=e.charCodeAt(a),!0===d&&(l=255&i,i=l<<8|i>>>8),c=p+g,u=c>>>2;b.length<=u;)b.push(0);b[u]|=i<<8*(m+r*(c%4)),p+=2}return{value:b,binLen:8*p+o}}(e,t,o,r,n)};case"B64":return function(e,t,o){return function(e,t,n,o){let r,i,s,a,l,u,c,m=0;const d=t||[0],p=(n=n||0)>>>3,b=-1===o?3:0,g=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==g&&g<e.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<e.length;i+=4){for(l=e.substr(i,4),a=0,s=0;s<l.length;s+=1)r=Po.indexOf(l.charAt(s)),a|=r<<18-6*s;for(s=0;s<l.length-1;s+=1){for(c=m+p,u=c>>>2;d.length<=u;)d.push(0);d[u]|=(a>>>16-8*s&255)<<8*(b+o*(c%4)),m+=1}}return{value:d,binLen:8*m+n}}(e,t,o,n)};case"BYTES":return function(e,t,o){return function(e,t,n,o){let r,i,s,a;const l=t||[0],u=(n=n||0)>>>3,c=-1===o?3:0;for(i=0;i<e.length;i+=1)r=e.charCodeAt(i),a=i+u,s=a>>>2,l.length<=s&&l.push(0),l[s]|=r<<8*(c+o*(a%4));return{value:l,binLen:8*e.length+n}}(e,t,o,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(Ho)}return function(e,t,o){return function(e,t,n,o){return zo(new Uint8Array(e),t,n,o)}(e,t,o,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Qo)}return function(e,t,o){return zo(e,t,o,n)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function qo(e,t,n,o){switch(e){case"HEX":return function(e){return function(e,t,n,o){const r="0123456789abcdef";let i,s,a="";const l=t/8,u=-1===n?3:0;for(i=0;i<l;i+=1)s=e[i>>>2]>>>8*(u+n*(i%4)),a+=r.charAt(s>>>4&15)+r.charAt(15&s);return o.outputUpper?a.toUpperCase():a}(e,t,n,o)};case"B64":return function(e){return function(e,t,n,o){let r,i,s,a,l,u="";const c=t/8,m=-1===n?3:0;for(r=0;r<c;r+=3)for(a=r+1<c?e[r+1>>>2]:0,l=r+2<c?e[r+2>>>2]:0,s=(e[r>>>2]>>>8*(m+n*(r%4))&255)<<16|(a>>>8*(m+n*((r+1)%4))&255)<<8|l>>>8*(m+n*((r+2)%4))&255,i=0;i<4;i+=1)u+=8*r+6*i<=t?Po.charAt(s>>>6*(3-i)&63):o.b64Pad;return u}(e,t,n,o)};case"BYTES":return function(e){return function(e,t,n){let o,r,i="";const s=t/8,a=-1===n?3:0;for(o=0;o<s;o+=1)r=e[o>>>2]>>>8*(a+n*(o%4))&255,i+=String.fromCharCode(r);return i}(e,t,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(Ho)}return function(e){return function(e,t,n){let o;const r=t/8,i=new ArrayBuffer(r),s=new Uint8Array(i),a=-1===n?3:0;for(o=0;o<r;o+=1)s[o]=e[o>>>2]>>>8*(a+n*(o%4))&255;return i}(e,t,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Qo)}return function(e){return function(e,t,n){let o;const r=t/8,i=-1===n?3:0,s=new Uint8Array(r);for(o=0;o<r;o+=1)s[o]=e[o>>>2]>>>8*(i+n*(o%4))&255;return s}(e,t,n)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}const er=4294967296,tr=[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],nr=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],or=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],rr="Chosen SHA variant is not supported",ir="Cannot set numRounds with MAC";function sr(e,t){let n,o;const r=e.binLen>>>3,i=t.binLen>>>3,s=r<<3,a=4-r<<3;if(r%4!=0){for(n=0;n<i;n+=4)o=r+n>>>2,e.value[o]|=t.value[n>>>2]<<s,e.value.push(0),e.value[o+1]|=t.value[n>>>2]>>>a;return(e.value.length<<2)-4>=i+r&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function ar(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},o="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(o);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(o);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function lr(e,t,n,o){const r=e+" must include a value and format";if(!t){if(!o)throw new Error(r);return o}if(void 0===t.value||!t.format)throw new Error(r);return $o(t.format,t.encoding||"UTF8",n)(t.value)}class ur{constructor(e,t,n){const o=n||{};if(this.t=t,this.i=o.encoding||"UTF8",this.numRounds=o.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.H=!1,this.S=[],this.p=[]}update(e){let t,n=0;const o=this.m>>>5,r=this.C(e,this.h,this.u),i=r.binLen,s=r.value,a=i>>>5;for(t=0;t<a;t+=o)n+this.m<=i&&(this.U=this.v(s.slice(t,t+o),this.U),n+=this.m);return this.A+=n,this.h=s.slice(n>>>5),this.u=i%this.m,this.l=!0,this}getHash(e,t){let n,o,r=this.R;const i=ar(t);if(this.K){if(-1===i.outputLen)throw new Error("Output length must be specified in options");r=i.outputLen}const s=qo(e,r,this.T,i);if(this.H&&this.g)return s(this.g(i));for(o=this.F(this.h.slice(),this.u,this.A,this.L(this.U),r),n=1;n<this.numRounds;n+=1)this.K&&r%32!=0&&(o[o.length-1]&=16777215>>>24-r%32),o=this.F(o,r,0,this.B(this.o),r);return s(o)}setHMACKey(e,t,n){if(!this.M)throw new Error("Variant does not support HMAC");if(this.l)throw new Error("Cannot set MAC key after calling update");const o=$o(t,(n||{}).encoding||"UTF8",this.T);this.k(o(e))}k(e){const t=this.m>>>3,n=t/4-1;let o;if(1!==this.numRounds)throw new Error(ir);if(this.H)throw new Error("MAC key already set");for(t<e.binLen/8&&(e.value=this.F(e.value,e.binLen,0,this.B(this.o),this.R));e.value.length<=n;)e.value.push(0);for(o=0;o<=n;o+=1)this.S[o]=909522486^e.value[o],this.p[o]=1549556828^e.value[o];this.U=this.v(this.S,this.U),this.A=this.m,this.H=!0}getHMAC(e,t){const n=ar(t);return qo(e,this.R,this.T,n)(this.Y())}Y(){let e;if(!this.H)throw new Error("Cannot call getHMAC without first setting MAC key");const t=this.F(this.h.slice(),this.u,this.A,this.L(this.U),this.R);return e=this.v(this.p,this.B(this.o)),e=this.F(t,this.R,this.m,e,this.R),e}}function cr(e,t){return e<<t|e>>>32-t}function mr(e,t){return e>>>t|e<<32-t}function dr(e,t){return e>>>t}function pr(e,t,n){return e^t^n}function br(e,t,n){return e&t^~e&n}function gr(e,t,n){return e&t^e&n^t&n}function hr(e){return mr(e,2)^mr(e,13)^mr(e,22)}function fr(e,t){const n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function Er(e,t,n,o){const r=(65535&e)+(65535&t)+(65535&n)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(o>>>16)+(r>>>16))<<16|65535&r}function Nr(e,t,n,o,r){const i=(65535&e)+(65535&t)+(65535&n)+(65535&o)+(65535&r);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(o>>>16)+(r>>>16)+(i>>>16))<<16|65535&i}function Ar(e){return mr(e,7)^mr(e,18)^dr(e,3)}function yr(e){return mr(e,6)^mr(e,11)^mr(e,25)}function Ir(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Sr(e,t){let n,o,r,i,s,a,l;const u=[];for(n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],l=0;l<80;l+=1)u[l]=l<16?e[l]:cr(u[l-3]^u[l-8]^u[l-14]^u[l-16],1),a=l<20?Nr(cr(n,5),br(o,r,i),s,1518500249,u[l]):l<40?Nr(cr(n,5),pr(o,r,i),s,1859775393,u[l]):l<60?Nr(cr(n,5),gr(o,r,i),s,2400959708,u[l]):Nr(cr(n,5),pr(o,r,i),s,3395469782,u[l]),s=i,i=r,r=cr(o,30),o=n,n=a;return t[0]=fr(n,t[0]),t[1]=fr(o,t[1]),t[2]=fr(r,t[2]),t[3]=fr(i,t[3]),t[4]=fr(s,t[4]),t}function Gr(e,t,n,o){let r;const i=15+(t+65>>>9<<4),s=t+n;for(;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&s,e[i-1]=s/er|0,r=0;r<e.length;r+=16)o=Sr(e.slice(r,r+16),o);return o}let Rr=class extends ur{constructor(e,t,n){if("SHA-1"!==e)throw new Error(rr);super(e,t,n);const o=n||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=$o(this.t,this.i,this.T),this.v=Sr,this.L=function(e){return e.slice()},this.B=Ir,this.F=Gr,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.R=160,this.K=!1,o.hmacKey&&this.k(lr("hmacKey",o.hmacKey,this.T))}};function Yr(e){let t;return t="SHA-224"==e?nr.slice():or.slice(),t}function Wr(e,t){let n,o,r,i,s,a,l,u,c,m,d;const p=[];for(n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],d=0;d<64;d+=1)p[d]=d<16?e[d]:Er(mr(b=p[d-2],17)^mr(b,19)^dr(b,10),p[d-7],Ar(p[d-15]),p[d-16]),c=Nr(u,yr(s),br(s,a,l),tr[d],p[d]),m=fr(hr(n),gr(n,o,r)),u=l,l=a,a=s,s=fr(i,c),i=r,r=o,o=n,n=fr(c,m);var b;return t[0]=fr(n,t[0]),t[1]=fr(o,t[1]),t[2]=fr(r,t[2]),t[3]=fr(i,t[3]),t[4]=fr(s,t[4]),t[5]=fr(a,t[5]),t[6]=fr(l,t[6]),t[7]=fr(u,t[7]),t}let wr=class extends ur{constructor(e,t,n){if("SHA-224"!==e&&"SHA-256"!==e)throw new Error(rr);super(e,t,n);const o=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=$o(this.t,this.i,this.T),this.v=Wr,this.L=function(e){return e.slice()},this.B=Yr,this.F=function(t,n,o,r){return function(e,t,n,o,r){let i,s;const a=15+(t+65>>>9<<4),l=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/er|0,i=0;i<e.length;i+=16)o=Wr(e.slice(i,i+16),o);return s="SHA-224"===r?[o[0],o[1],o[2],o[3],o[4],o[5],o[6]]:o,s}(t,n,o,r,e)},this.U=Yr(e),this.m=512,this.R="SHA-224"===e?224:256,this.K=!1,o.hmacKey&&this.k(lr("hmacKey",o.hmacKey,this.T))}};class Vr{constructor(e,t){this.N=e,this.I=t}}function vr(e,t){let n;return t>32?(n=64-t,new Vr(e.I<<t|e.N>>>n,e.N<<t|e.I>>>n)):0!==t?(n=32-t,new Vr(e.N<<t|e.I>>>n,e.I<<t|e.N>>>n)):e}function Br(e,t){let n;return t<32?(n=32-t,new Vr(e.N>>>t|e.I<<n,e.I>>>t|e.N<<n)):(n=64-t,new Vr(e.I>>>t|e.N<<n,e.N>>>t|e.I<<n))}function Fr(e,t){return new Vr(e.N>>>t,e.I>>>t|e.N<<32-t)}function Tr(e,t,n){return new Vr(e.N&t.N^e.N&n.N^t.N&n.N,e.I&t.I^e.I&n.I^t.I&n.I)}function Zr(e){const t=Br(e,28),n=Br(e,34),o=Br(e,39);return new Vr(t.N^n.N^o.N,t.I^n.I^o.I)}function xr(e,t){let n,o;n=(65535&e.I)+(65535&t.I),o=(e.I>>>16)+(t.I>>>16)+(n>>>16);const r=(65535&o)<<16|65535&n;return n=(65535&e.N)+(65535&t.N)+(o>>>16),o=(e.N>>>16)+(t.N>>>16)+(n>>>16),new Vr((65535&o)<<16|65535&n,r)}function Cr(e,t,n,o){let r,i;r=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&o.I),i=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(o.I>>>16)+(r>>>16);const s=(65535&i)<<16|65535&r;return r=(65535&e.N)+(65535&t.N)+(65535&n.N)+(65535&o.N)+(i>>>16),i=(e.N>>>16)+(t.N>>>16)+(n.N>>>16)+(o.N>>>16)+(r>>>16),new Vr((65535&i)<<16|65535&r,s)}function kr(e,t,n,o,r){let i,s;i=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&o.I)+(65535&r.I),s=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(o.I>>>16)+(r.I>>>16)+(i>>>16);const a=(65535&s)<<16|65535&i;return i=(65535&e.N)+(65535&t.N)+(65535&n.N)+(65535&o.N)+(65535&r.N)+(s>>>16),s=(e.N>>>16)+(t.N>>>16)+(n.N>>>16)+(o.N>>>16)+(r.N>>>16)+(i>>>16),new Vr((65535&s)<<16|65535&i,a)}function Xr(e,t){return new Vr(e.N^t.N,e.I^t.I)}function Dr(e){const t=Br(e,19),n=Br(e,61),o=Fr(e,6);return new Vr(t.N^n.N^o.N,t.I^n.I^o.I)}function Ur(e){const t=Br(e,1),n=Br(e,8),o=Fr(e,7);return new Vr(t.N^n.N^o.N,t.I^n.I^o.I)}function Lr(e){const t=Br(e,14),n=Br(e,18),o=Br(e,41);return new Vr(t.N^n.N^o.N,t.I^n.I^o.I)}const Kr=[new Vr(tr[0],3609767458),new Vr(tr[1],602891725),new Vr(tr[2],3964484399),new Vr(tr[3],2173295548),new Vr(tr[4],4081628472),new Vr(tr[5],3053834265),new Vr(tr[6],2937671579),new Vr(tr[7],3664609560),new Vr(tr[8],2734883394),new Vr(tr[9],1164996542),new Vr(tr[10],1323610764),new Vr(tr[11],3590304994),new Vr(tr[12],4068182383),new Vr(tr[13],991336113),new Vr(tr[14],633803317),new Vr(tr[15],3479774868),new Vr(tr[16],2666613458),new Vr(tr[17],944711139),new Vr(tr[18],2341262773),new Vr(tr[19],2007800933),new Vr(tr[20],1495990901),new Vr(tr[21],1856431235),new Vr(tr[22],3175218132),new Vr(tr[23],2198950837),new Vr(tr[24],3999719339),new Vr(tr[25],766784016),new Vr(tr[26],2566594879),new Vr(tr[27],3203337956),new Vr(tr[28],1034457026),new Vr(tr[29],2466948901),new Vr(tr[30],3758326383),new Vr(tr[31],168717936),new Vr(tr[32],1188179964),new Vr(tr[33],1546045734),new Vr(tr[34],1522805485),new Vr(tr[35],2643833823),new Vr(tr[36],2343527390),new Vr(tr[37],1014477480),new Vr(tr[38],1206759142),new Vr(tr[39],344077627),new Vr(tr[40],1290863460),new Vr(tr[41],3158454273),new Vr(tr[42],3505952657),new Vr(tr[43],106217008),new Vr(tr[44],3606008344),new Vr(tr[45],1432725776),new Vr(tr[46],1467031594),new Vr(tr[47],851169720),new Vr(tr[48],3100823752),new Vr(tr[49],1363258195),new Vr(tr[50],3750685593),new Vr(tr[51],3785050280),new Vr(tr[52],3318307427),new Vr(tr[53],3812723403),new Vr(tr[54],2003034995),new Vr(tr[55],3602036899),new Vr(tr[56],1575990012),new Vr(tr[57],1125592928),new Vr(tr[58],2716904306),new Vr(tr[59],442776044),new Vr(tr[60],593698344),new Vr(tr[61],3733110249),new Vr(tr[62],2999351573),new Vr(tr[63],3815920427),new Vr(3391569614,3928383900),new Vr(3515267271,566280711),new Vr(3940187606,3454069534),new Vr(4118630271,4000239992),new Vr(116418474,1914138554),new Vr(174292421,2731055270),new Vr(289380356,3203993006),new Vr(460393269,320620315),new Vr(685471733,587496836),new Vr(852142971,1086792851),new Vr(1017036298,365543100),new Vr(1126000580,2618297676),new Vr(1288033470,3409855158),new Vr(1501505948,4234509866),new Vr(1607167915,987167468),new Vr(1816402316,1246189591)];function Or(e){return"SHA-384"===e?[new Vr(3418070365,nr[0]),new Vr(1654270250,nr[1]),new Vr(2438529370,nr[2]),new Vr(355462360,nr[3]),new Vr(1731405415,nr[4]),new Vr(41048885895,nr[5]),new Vr(3675008525,nr[6]),new Vr(1203062813,nr[7])]:[new Vr(or[0],4089235720),new Vr(or[1],2227873595),new Vr(or[2],4271175723),new Vr(or[3],1595750129),new Vr(or[4],2917565137),new Vr(or[5],725511199),new Vr(or[6],4215389547),new Vr(or[7],327033209)]}function Jr(e,t){let n,o,r,i,s,a,l,u,c,m,d,p;const b=[];for(n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],d=0;d<80;d+=1)d<16?(p=2*d,b[d]=new Vr(e[p],e[p+1])):b[d]=Cr(Dr(b[d-2]),b[d-7],Ur(b[d-15]),b[d-16]),c=kr(u,Lr(s),(h=a,f=l,new Vr((g=s).N&h.N^~g.N&f.N,g.I&h.I^~g.I&f.I)),Kr[d],b[d]),m=xr(Zr(n),Tr(n,o,r)),u=l,l=a,a=s,s=xr(i,c),i=r,r=o,o=n,n=xr(c,m);var g,h,f;return t[0]=xr(n,t[0]),t[1]=xr(o,t[1]),t[2]=xr(r,t[2]),t[3]=xr(i,t[3]),t[4]=xr(s,t[4]),t[5]=xr(a,t[5]),t[6]=xr(l,t[6]),t[7]=xr(u,t[7]),t}let _r=class extends ur{constructor(e,t,n){if("SHA-384"!==e&&"SHA-512"!==e)throw new Error(rr);super(e,t,n);const o=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=$o(this.t,this.i,this.T),this.v=Jr,this.L=function(e){return e.slice()},this.B=Or,this.F=function(t,n,o,r){return function(e,t,n,o,r){let i,s;const a=31+(t+129>>>10<<5),l=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/er|0,i=0;i<e.length;i+=32)o=Jr(e.slice(i,i+32),o);return s="SHA-384"===r?[o[0].N,o[0].I,o[1].N,o[1].I,o[2].N,o[2].I,o[3].N,o[3].I,o[4].N,o[4].I,o[5].N,o[5].I]:[o[0].N,o[0].I,o[1].N,o[1].I,o[2].N,o[2].I,o[3].N,o[3].I,o[4].N,o[4].I,o[5].N,o[5].I,o[6].N,o[6].I,o[7].N,o[7].I],s}(t,n,o,r,e)},this.U=Or(e),this.m=1024,this.R="SHA-384"===e?384:512,this.K=!1,o.hmacKey&&this.k(lr("hmacKey",o.hmacKey,this.T))}};const Mr=[new Vr(0,1),new Vr(0,32898),new Vr(2147483648,32906),new Vr(2147483648,2147516416),new Vr(0,32907),new Vr(0,2147483649),new Vr(2147483648,2147516545),new Vr(2147483648,32777),new Vr(0,138),new Vr(0,136),new Vr(0,2147516425),new Vr(0,2147483658),new Vr(0,2147516555),new Vr(2147483648,139),new Vr(2147483648,32905),new Vr(2147483648,32771),new Vr(2147483648,32770),new Vr(2147483648,128),new Vr(0,32778),new Vr(2147483648,2147483658),new Vr(2147483648,2147516545),new Vr(2147483648,32896),new Vr(0,2147483649),new Vr(2147483648,2147516424)],jr=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function Pr(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=[new Vr(0,0),new Vr(0,0),new Vr(0,0),new Vr(0,0),new Vr(0,0)];return n}function Hr(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function Qr(e,t){let n,o,r,i;const s=[],a=[];if(null!==e)for(o=0;o<e.length;o+=2)t[(o>>>1)%5][(o>>>1)/5|0]=Xr(t[(o>>>1)%5][(o>>>1)/5|0],new Vr(e[o+1],e[o]));for(n=0;n<24;n+=1){for(i=Pr(),o=0;o<5;o+=1)s[o]=(l=t[o][0],u=t[o][1],c=t[o][2],m=t[o][3],d=t[o][4],new Vr(l.N^u.N^c.N^m.N^d.N,l.I^u.I^c.I^m.I^d.I));for(o=0;o<5;o+=1)a[o]=Xr(s[(o+4)%5],vr(s[(o+1)%5],1));for(o=0;o<5;o+=1)for(r=0;r<5;r+=1)t[o][r]=Xr(t[o][r],a[o]);for(o=0;o<5;o+=1)for(r=0;r<5;r+=1)i[r][(2*o+3*r)%5]=vr(t[o][r],jr[o][r]);for(o=0;o<5;o+=1)for(r=0;r<5;r+=1)t[o][r]=Xr(i[o][r],new Vr(~i[(o+1)%5][r].N&i[(o+2)%5][r].N,~i[(o+1)%5][r].I&i[(o+2)%5][r].I));t[0][0]=Xr(t[0][0],Mr[n])}var l,u,c,m,d;return t}function zr(e){let t,n,o=0;const r=[0,0],i=[4294967295&e,e/er&2097151];for(t=6;t>=0;t--)n=i[t>>2]>>>8*t&255,0===n&&0===o||(r[o+1>>2]|=n<<8*(o+1),o+=1);return o=0!==o?o:1,r[0]|=o,{value:o+1>4?r:[r[0]],binLen:8+8*o}}function $r(e){return sr(zr(e.binLen),e)}function qr(e,t){let n,o=zr(t);o=sr(o,e);const r=t>>>2,i=(r-o.value.length%r)%r;for(n=0;n<i;n++)o.value.push(0);return o.value}let ei=class extends ur{constructor(e,t,n){let o=6,r=0;super(e,t,n);const i=n||{};if(1!==this.numRounds){if(i.kmacKey||i.hmacKey)throw new Error(ir);if("CSHAKE128"===this.o||"CSHAKE256"===this.o)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=$o(this.t,this.i,this.T),this.v=Qr,this.L=Hr,this.B=Pr,this.U=Pr(),this.K=!1,e){case"SHA3-224":this.m=r=1152,this.R=224,this.M=!0,this.g=this.Y;break;case"SHA3-256":this.m=r=1088,this.R=256,this.M=!0,this.g=this.Y;break;case"SHA3-384":this.m=r=832,this.R=384,this.M=!0,this.g=this.Y;break;case"SHA3-512":this.m=r=576,this.R=512,this.M=!0,this.g=this.Y;break;case"SHAKE128":o=31,this.m=r=1344,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"SHAKE256":o=31,this.m=r=1088,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"KMAC128":o=4,this.m=r=1344,this.X(n),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"KMAC256":o=4,this.m=r=1088,this.X(n),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"CSHAKE128":this.m=r=1344,o=this.O(n),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"CSHAKE256":this.m=r=1088,o=this.O(n),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;default:throw new Error(rr)}this.F=function(e,t,n,i,s){return function(e,t,n,o,r,i,s){let a,l,u=0;const c=[],m=r>>>5,d=t>>>5;for(a=0;a<d&&t>=r;a+=m)o=Qr(e.slice(a,a+m),o),t-=r;for(e=e.slice(a),t%=r;e.length<m;)e.push(0);for(a=t>>>3,e[a>>2]^=i<<a%4*8,e[m-1]^=2147483648,o=Qr(e,o);32*c.length<s&&(l=o[u%5][u/5|0],c.push(l.I),!(32*c.length>=s));)c.push(l.N),u+=1,0==64*u%r&&(Qr(null,o),u=0);return c}(e,t,0,i,r,o,s)},i.hmacKey&&this.k(lr("hmacKey",i.hmacKey,this.T))}O(e,t){const n=function(e){const t=e;return{funcName:lr("funcName",t.funcName,1,{value:[],binLen:0}),customization:lr("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);const o=sr($r(n.funcName),$r(n.customization));if(0!==n.customization.binLen||0!==n.funcName.binLen){const e=qr(o,this.m>>>3);for(let t=0;t<e.length;t+=this.m>>>5)this.U=this.v(e.slice(t,t+(this.m>>>5)),this.U),this.A+=this.m;return 4}return 31}X(e){const t=function(e){const t=e;return{kmacKey:lr("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:lr("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this.O(e,t.funcName);const n=qr($r(t.kmacKey),this.m>>>3);for(let e=0;e<n.length;e+=this.m>>>5)this.U=this.v(n.slice(e,e+(this.m>>>5)),this.U),this.A+=this.m;this.H=!0}_(e){const t=sr({value:this.h.slice(),binLen:this.u},function(e){let t,n,o=0;const r=[0,0],i=[4294967295&e,e/er&2097151];for(t=6;t>=0;t--)n=i[t>>2]>>>8*t&255,0===n&&0===o||(r[o>>2]|=n<<8*o,o+=1);return o=0!==o?o:1,r[o>>2]|=o<<8*o,{value:o+1>4?r:[r[0]],binLen:8+8*o}}(e.outputLen));return this.F(t.value,t.binLen,this.A,this.L(this.U),e.outputLen)}};class ti{constructor(e,t,n){if("SHA-1"==e)this.P=new Rr(e,t,n);else if("SHA-224"==e||"SHA-256"==e)this.P=new wr(e,t,n);else if("SHA-384"==e||"SHA-512"==e)this.P=new _r(e,t,n);else{if("SHA3-224"!=e&&"SHA3-256"!=e&&"SHA3-384"!=e&&"SHA3-512"!=e&&"SHAKE128"!=e&&"SHAKE256"!=e&&"CSHAKE128"!=e&&"CSHAKE256"!=e&&"KMAC128"!=e&&"KMAC256"!=e)throw new Error(rr);this.P=new ei(e,t,n)}}update(e){return this.P.update(e),this}getHash(e,t){return this.P.getHash(e,t)}setHMACKey(e,t,n){this.P.setHMACKey(e,t,n)}getHMAC(e,t){return this.P.getHMAC(e,t)}}const ni={acfun:"acfun",baha:"baha",bgm:"bgm",bili:"bili",bglobal:"bglobal",ddplay:"ddplay",tucao:"tucao"},oi=Object.keys(ni);class ri{constructor(e,t){this.id=e,this.domain=t}toString(){return`${this.id}@${this.domain}`}static fromNull(e){return new ri("anonymous",e||"danuni")}static fromBili({cid:e,mid:t,midHash:n}){return e?new ri(e.toString(),ni.bili):t?new ri(t.toString(),ni.bili):n?new ri(n,ni.bili):this.fromNull(ni.bili)}static fromUnknown(e,t){return e?new ri(e,t):this.fromNull(t)}}function ii(e="",t,n,o=8){return new ti("SHA3-256","TEXT").update(e+t+bi.transCtime(n).toISOString()).getHash("HEX").slice(0,o)}var si=Object.freeze({__proto__:null,UniID:ri,createDMID:ii,domainPreset:ni,platforms:oi});const ai=(e,t)=>"bigint"==typeof t?t.toString():t;class li{constructor(e){this.bin=e}set1(e){this.bin|=1<<e}set0(e){this.bin&=~(1<<e)}}const ui={fromBin(e=0,t){const n=(e=>{const t=[];do{t.unshift(!!(1&e)),e>>=1}while(e);return t})(e),o=[];return"bili"===t&&(n[0]&&o.push("Protect"),n[1]&&o.push("FromLive"),n[2]&&o.push("HighLike")),o},toBin(e=[],t){const n=new li(0);return"bili"===t&&(e.includes("Protect")&&n.set1(0),e.includes("FromLive")&&n.set1(1),e.includes("HighLike")&&n.set1(2)),n.bin}};var ci,mi,di,pi;!function(e){e.Chapter="ch",e.Review="rev",e.OP="op",e.Intermission="int",e.ED="ed",e.Preview="prvw",e.Cut="cut",e.Duplicates="dup",e.AdBiz="biz",e.AdUnpaid="promo"}(ci||(ci={})),function(e){e[e.Disabled=-1]="Disabled",e[e.ShowOverlay=0]="ShowOverlay",e[e.ManualSkip=1]="ManualSkip",e[e.AutoSkip=2]="AutoSkip"}(mi||(mi={})),function(e){e[e.Normal=0]="Normal",e[e.Bottom=1]="Bottom",e[e.Top=2]="Top",e[e.Reverse=3]="Reverse",e[e.Ext=4]="Ext"}(di||(di={})),function(e){e[e.Def=0]="Def",e[e.Sub=1]="Sub",e[e.Adv=2]="Adv",e[e.Ix=3]="Ix"}(pi||(pi={}));class bi{constructor(e,t=0,n=di.Normal,o=25,r=16777215,i=ri.fromNull().toString(),s="",a=new Date,l=5,u=pi.Def,c=[],m,d,p,b){this.FCID=e,this.progress=t,this.mode=n,this.fontsize=o,this.color=r,this.senderID=i,this.content=s,this.ctime=a,this.weight=l,this.pool=u,this.attr=c,this.platform=m,this.SPMO=d,this.extraStr=p,this.DMID=b,t<0&&(this.progress=0),(n<di.Normal||n>di.Ext)&&(this.mode=di.Normal),o<=0&&(this.fontsize=25),r<=0&&(this.color=16777215),(l<=0||l>10)&&(this.weight=5),(u<pi.Def||u>pi.Ix)&&(this.pool=pi.Def),b||(b=this.toDMID())}static create(e){return new bi(e.FCID||ri.fromNull().toString(),e.progress,e.mode,e.fontsize,e.color,e.senderID,e.content,e.ctime,e.weight,e.pool,e.attr,e.platform,e.SPMO,e.extra,e.DMID)}get extra(){const e=JSON.parse(this.extraStr||"{}");return"object"==typeof e?e:{}}get isFrom3rdPlatform(){return!(!this.platform||!oi.includes(this.platform))}toDMID(){return ii(this.content,this.senderID,this.ctime)}downgradeAdvcancedDan(){if(!this.extra)return this}static transCtime(e){return"number"==typeof e?new Date(e):"bigint"==typeof e?new Date(Number(e)):"string"==typeof e?/^\d+n$/.test(e)?new Date(Number(e.slice(0,-1))):new Date(e):e}static transMode(e,t){let n=di.Normal;switch(t){case"bili":switch(e){case 4:n=di.Bottom;break;case 5:n=di.Top;break;case 6:n=di.Reverse;break;case 7:case 8:case 9:n=di.Ext}break;case"dplayer":case"artplayer":1===e?n=di.Top:2===e&&(n=di.Bottom);break;case"ddplay":n=this.transMode(e,"bili");break;default:n=di.Normal}return n}static fromBili(e,t,n){e.oid&&!n&&(n=e.oid);const o=ri.fromBili({cid:n}),r=ri.fromBili({midHash:e.midHash});let i=di.Normal;const s=e.pool,a={bili:{mode:e.mode,pool:e.pool}};switch(e.mode){case 4:i=di.Bottom;break;case 5:i=di.Top;break;case 6:i=di.Reverse;break;case 7:i=di.Ext,a.bili.adv=e.content;break;case 8:i=di.Ext,a.bili.code=e.content;break;case 9:i=di.Ext,a.bili.bas=e.content;break;default:i=di.Normal}return this.create({...e,FCID:o.toString(),mode:i,senderID:r.toString(),ctime:this.transCtime(e.ctime),weight:e.weight?e.weight:s===pi.Ix?1:0,pool:s,attr:ui.fromBin(e.attr,"bili"),platform:ni.bili,SPMO:t,extra:e.mode>=7?JSON.stringify(a,ai):void 0})}static fromBiliCommand(e,t,n){e.oid&&!n&&(n=e.oid);const o=ri.fromBili({cid:n}),r=ri.fromBili({mid:e.mid});return this.create({...e,FCID:o.toString(),mode:di.Ext,senderID:r.toString(),ctime:new Date(`${e.ctime} GMT+0800`),weight:10,pool:pi.Adv,attr:["Protect"],platform:ni.bili,SPMO:t,extra:JSON.stringify({bili:{command:e}},ai)})}static fromDplayer(e,t,n){const o=ri.fromUnknown(t,n),r=ri.fromUnknown(e.midHash,n);return this.create({...e,FCID:o.toString(),mode:this.transMode(e.mode,"dplayer"),senderID:r.toString(),platform:n})}toDplayer(){let e=0;return this.mode===di.Top?e=1:this.mode===di.Bottom&&(e=2),{mode:e,progress:this.progress,color:this.color,midHash:this.senderID,content:this.content}}static fromArtplayer(e,t,n){const o=ri.fromUnknown(t,n),r=ri.fromUnknown("",n);let i=e.border?{artplayer:{border:e.border,style:{}}}:void 0;return e.style&&(i=i?{...i,artplayer:{...i.artplayer,style:e.style}}:{artplayer:{style:e.style}}),this.create({...e,FCID:o.toString(),mode:this.transMode(e.mode,"artplayer"),senderID:r.toString(),platform:n,extra:JSON.stringify(i,ai)})}toArtplayer(){let e=0;return this.mode===di.Top?e=1:this.mode===di.Bottom&&(e=2),{progress:this.progress,mode:e,color:this.color,content:this.content,style:this.extra.artplayer?.style}}static fromDDplay(e,t,n=ni.ddplay){const o=ri.fromUnknown(t,n);return this.create({...e,FCID:o.toString(),mode:this.transMode(e.mode,"ddplay"),senderID:e.uid,content:e.m,platform:n,DMID:e.cid.toString()})}toDDplay(){let e=1;return this.mode===di.Top?e=5:this.mode===di.Bottom&&(e=4),{progress:this.progress,mode:e,color:this.color,uid:this.senderID,m:this.content,cid:Number(this.DMID)||1}}}var gi=Object.freeze({__proto__:null,get ExtraDanUniChapterAction(){return mi},get ExtraDanUniChapterType(){return ci},get Modes(){return di},get Pools(){return pi},UniDM:bi});class hi{constructor(e){function t(t){return 1===new Set(e.map((e=>e[t]))).size}this.dans=e,this.shared={},t("FCID")&&(this.shared.FCID=e[0].FCID),t("senderID")&&(this.shared.senderID=e[0].senderID),t("platform")&&(this.shared.platform=e[0].platform),t("SPMO")&&(this.shared.SPMO=e[0].SPMO),t("pool")&&(this.shared.pool=e[0].pool),t("mode")&&(this.shared.mode=e[0].mode)}static create(){return new hi([])}assign(e){return e instanceof hi?new hi([...this.dans,...e.dans]):e instanceof bi?new hi([...this.dans,e]):Array.isArray(e)&&e.every((e=>e instanceof bi))?new hi([...this.dans,...e]):this}split(e){if(this.shared[e])return[this];const t=new Set(this.dans.map((t=>t[e])));return[...t].map((t=>new hi(this.dans.filter((n=>n[e]===t)))))}convert2(e){switch(e){case"danuni.json":return JSON.stringify(this.dans);case"danuni.bin":return this.toPb();case"dplayer.json":return this.toDplayer();case"artplayer.json":return this.toArtplayer();case"ddplay.json":return this.toDDplay();default:throw new Error("unknown format or unsupported now!")}}static fromPb(e){const t=uo(_o,new Uint8Array(e));return new hi(t.danmakus.map((e=>new bi(e.FCID,e.progress,e.mode,e.fontsize,e.color,e.senderID,e.content,No(e.ctime||Eo(new Date)),e.weight,e.pool,e.attr,e.platform,e.SPMO,e.extra,e.DMID))))}toPb(){return yo(_o,$e(_o,{danmakus:this.dans.map((e=>({FCID:e.FCID,DMID:e.DMID,progress:e.progress,mode:e.mode,fontsize:e.fontsize,color:e.color,senderID:e.senderID,content:e.content,ctime:Eo(e.ctime),weight:e.weight,pool:e.pool,attr:e.attr,platform:e.platform,SPMO:e.SPMO,extra:e.extraStr})))}))}static fromBiliXML(e,t){const n=new Ie.XMLParser({ignoreAttributes:!1}).parse(e),o=n.i.d;return new hi(o.map((e=>{const o=e["@_p"].split(",");return bi.fromBili({content:e["#text"],progress:Number.parseFloat(o[0]),mode:Number.parseInt(o[1]),fontsize:Number.parseInt(o[2]),color:Number.parseInt(o[3]),ctime:BigInt(o[4]),pool:Number.parseInt(o[5]),midHash:o[6],id:BigInt(o[7]),weight:Number.parseInt(o[8])},t,BigInt(n.i.chatid))})))}static fromBiliGrpc(e,t){const n=uo(Vo,new Uint8Array(e)).elems;return new hi(n.map((e=>bi.fromBili(e,t))))}static fromBiliCommandGrpc(e,t){const n=uo(vo,new Uint8Array(e)).commandDms;return new hi(n.map((e=>bi.fromBiliCommand(e,t))))}static fromDplayer(e,t,n="other"){return new hi(e.data.map((e=>bi.fromDplayer({content:e[4],progress:e[0],mode:e[1],color:e[2],midHash:e[3]},t,n))))}toDplayer(){return{code:0,data:this.dans.map((e=>{const t=e.toDplayer();return[t.progress,t.mode,t.color,t.midHash,t.content]}))}}static fromArtplayer(e,t,n="other"){return new hi(e.map((e=>bi.fromArtplayer({content:e.text,progress:e.time||0,mode:e.mode||0,color:Number((e.color||"FFFFFF").replace("#","0x")),style:e.style},t,n))))}toArtplayer(){return this.dans.map((e=>{const t=e.toArtplayer();return{text:t.content,time:t.progress,mode:t.mode,color:`#${t.color.toString(16).toUpperCase()||"FFFFFF"}`,border:t.border,style:t.style}}))}static fromDDPlay(e,t,n){return new hi(e.comments.map((e=>{const o=e.p.split(",");return bi.fromDDplay({cid:e.cid,color:Number.parseInt(o[2]),m:e.m,mode:Number.parseInt(o[1]),progress:Number.parseFloat(o[0]),uid:o[3]},t,n)})))}toDDplay(){return{count:this.dans.length,comments:this.dans.map((e=>{const t=e.toDDplay();return{cid:t.cid,p:`${t.progress},${t.mode},${t.color},${t.uid}`,m:t.m}}))}}}return e.UniDM=bi,e.UniDMTools=gi,e.UniIDTools=si,e.UniPool=hi,e}({});
1
+ var DanAny=function(e){"use strict";var t={},n={};!function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+t+"]["+(t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",r=new RegExp("^"+n+"$");e.isExist=function(e){return void 0!==e},e.isEmptyObject=function(e){return 0===Object.keys(e).length},e.merge=function(e,t,n){if(t){const r=Object.keys(t),o=r.length;for(let i=0;i<o;i++)e[r[i]]="strict"===n?[t[r[i]]]:t[r[i]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(e){const t=r.exec(e);return!(null==t)},e.getAllMatches=function(e,t){const n=[];let r=t.exec(e);for(;r;){const o=[];o.startIndex=t.lastIndex-r[0].length;const i=r.length;for(let e=0;e<i;e++)o.push(r[e]);n.push(o),r=t.exec(e)}return n},e.nameRegexp=n}(n);const r=n,o={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function s(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const r=e.substr(n,t-n);if(t>5&&"xml"===r)return b("InvalidXml","XML declaration allowed only at the start of the document.",h(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},o,t);const n=[];let l=!1,u=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,o=s(e,o),o.err)return o}else{if("<"!==e[o]){if(i(e[o]))continue;return b("InvalidChar","char '"+e[o]+"' is not expected.",h(e,o))}{let g=o;if(o++,"!"===e[o]){o=a(e,o);continue}{let f=!1;"/"===e[o]&&(f=!0,o++);let E="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)E+=e[o];if(E=E.trim(),"/"===E[E.length-1]&&(E=E.substring(0,E.length-1),o--),m=E,!r.isName(m)){let t;return t=0===E.trim().length?"Invalid space after '<'.":"Tag '"+E+"' is an invalid name.",b("InvalidTag",t,h(e,o))}const N=c(e,o);if(!1===N)return b("InvalidAttr","Attributes for '"+E+"' have open quote.",h(e,o));let A=N.value;if(o=N.index,"/"===A[A.length-1]){const n=o-A.length;A=A.substring(0,A.length-1);const r=d(A,t);if(!0!==r)return b(r.err.code,r.err.msg,h(e,n+r.err.line));l=!0}else if(f){if(!N.tagClosed)return b("InvalidTag","Closing tag '"+E+"' doesn't have proper closing.",h(e,o));if(A.trim().length>0)return b("InvalidTag","Closing tag '"+E+"' can't have attributes or invalid starting.",h(e,g));if(0===n.length)return b("InvalidTag","Closing tag '"+E+"' has not been opened.",h(e,g));{const t=n.pop();if(E!==t.tagName){let n=h(e,t.tagStartPos);return b("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+E+"'.",h(e,g))}0==n.length&&(u=!0)}}else{const r=d(A,t);if(!0!==r)return b(r.err.code,r.err.msg,h(e,o-A.length+r.err.line));if(!0===u)return b("InvalidXml","Multiple possible root nodes found.",h(e,o));-1!==t.unpairedTags.indexOf(E)||n.push({tagName:E,tagStartPos:g}),l=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=a(e,o);continue}if("?"!==e[o+1])break;if(o=s(e,++o),o.err)return o}else if("&"===e[o]){const t=p(e,o);if(-1==t)return b("InvalidChar","char '&' is not expected.",h(e,o));o=t}else if(!0===u&&!i(e[o]))return b("InvalidXml","Extra text at the end",h(e,o));"<"===e[o]&&o--}}}var m;return l?1==n.length?b("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",h(e,n[0].tagStartPos)):!(n.length>0)||b("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):b("InvalidXml","Start tag expected.",1)};const l='"',u="'";function c(e,t){let n="",r="",o=!1;for(;t<e.length;t++){if(e[t]===l||e[t]===u)""===r?r=e[t]:r!==e[t]||(r="");else if(">"===e[t]&&""===r){o=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:o}}const m=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function d(e,t){const n=r.getAllMatches(e,m),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return b("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",f(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return b("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",f(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",f(n[e]));const r=n[e][2];if(!g(r))return b("InvalidAttr","Attribute '"+r+"' is an invalid name.",f(n[e]));if(o.hasOwnProperty(r))return b("InvalidAttr","Attribute '"+r+"' is repeated.",f(n[e]));o[r]=1}return!0}function p(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function b(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function g(e){return r.isName(e)}function h(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function f(e){return e.startIndex+e[1].length}var E={};const N={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};E.buildOptions=function(e){return Object.assign({},N,e)},E.defaultOptions=N;var A=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}};const y=n;function I(e,t){let n="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const r=e[t++];let o="";for(;t<e.length&&e[t]!==r;t++)o+=e[t];return[n,o,t]}function S(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function G(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function R(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function Y(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function W(e){if(y.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}var w=function(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let r=1,o=!1,i=!1,s="";for(;t<e.length;t++)if("<"!==e[t]||i)if(">"===e[t]){if(i?"-"===e[t-1]&&"-"===e[t-2]&&(i=!1,r--):r--,0===r)break}else"["===e[t]?o=!0:s+=e[t];else{if(o&&S(e,t)){let r,o;t+=7,[r,o,t]=I(e,t+1),-1===o.indexOf("&")&&(n[W(r)]={regx:RegExp(`&${r};`,"g"),val:o})}else o&&G(e,t)||o&&R(e,t)?t+=8:o&&Y(e,t)?t+=9:i=!0;r++,s=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}};const V=/^[-+]?0x[a-fA-F0-9]+$/,v=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const B={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};var F=function(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1};const T=n,Z=A,x=w,C=function(e,t={}){if(t=Object.assign({},B,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if(t.hex&&V.test(n))return Number.parseInt(n,16);{const r=v.exec(n);if(r){const o=r[1],i=r[2];let s=function(e){if(e&&-1!==e.indexOf("."))return"."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e;return e}(r[3]);const a=r[4]||r[6];if(!t.leadingZeros&&i.length>0&&o&&"."!==n[2])return e;if(!t.leadingZeros&&i.length>0&&!o&&"."!==n[1])return e;{const r=Number(n),l=""+r;return-1!==l.search(/[eE]/)||a?t.eNotation?r:e:-1!==n.indexOf(".")?"0"===l&&""===s||l===s||o&&l==="-"+s?r:e:i?s===l||o+s===l?r:e:n===l||n===o+l?r:e}}return e}},k=F;function X(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function D(e,t,n,r,o,i,s){if(void 0!==e&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,n,o,i);if(null==r)return e;if(typeof r!=typeof e||r!==e)return r;if(this.options.trimValues)return z(e,this.options.parseTagValue,this.options.numberParseOptions);return e.trim()===e?z(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function U(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const L=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function K(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const n=T.getAllMatches(e,L),r=n.length,o={};for(let e=0;e<r;e++){const r=this.resolveNameSpace(n[e][1]);if(this.ignoreAttributesFn(r,t))continue;let i=n[e][4],s=this.options.attributeNamePrefix+r;if(r.length)if(this.options.transformAttributeName&&(s=this.options.transformAttributeName(s)),"__proto__"===s&&(s="#__proto__"),void 0!==i){this.options.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i);const e=this.options.attributeValueProcessor(r,i,t);o[s]=null==e?i:typeof e!=typeof i||e!==i?e:z(i,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[s]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=o,e}return o}}const O=function(e){e=e.replace(/\r\n?/g,"\n");const t=new Z("!xml");let n=t,r="",o="";for(let i=0;i<e.length;i++){if("<"===e[i])if("/"===e[i+1]){const t=P(e,">",i,"Closing Tag is not closed.");let s=e.substring(i+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&(r=this.saveTextToParentTag(r,n,o));const a=o.substring(o.lastIndexOf(".")+1);if(s&&-1!==this.options.unpairedTags.indexOf(s))throw new Error(`Unpaired tag can not be used as closing tag: </${s}>`);let l=0;a&&-1!==this.options.unpairedTags.indexOf(a)?(l=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=o.lastIndexOf("."),o=o.substring(0,l),n=this.tagsNodeStack.pop(),r="",i=t}else if("?"===e[i+1]){let t=H(e,i,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,o),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new Z(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,o,t.tagName)),this.addChild(n,e,o)}i=t.closeIndex+1}else if("!--"===e.substr(i+1,3)){const t=P(e,"--\x3e",i+4,"Comment is not closed.");if(this.options.commentPropName){const s=e.substring(i+4,t-2);r=this.saveTextToParentTag(r,n,o),n.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}i=t}else if("!D"===e.substr(i+1,2)){const t=x(e,i);this.docTypeEntities=t.entities,i=t.i}else if("!["===e.substr(i+1,2)){const t=P(e,"]]>",i,"CDATA is not closed.")-2,s=e.substring(i+9,t);r=this.saveTextToParentTag(r,n,o);let a=this.parseTextData(s,n.tagname,o,!0,!1,!0,!0);null==a&&(a=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}]):n.add(this.options.textNodeName,a),i=t+2}else{let s=H(e,i,this.options.removeNSPrefix),a=s.tagName;const l=s.rawTagName;let u=s.tagExp,c=s.attrExpPresent,m=s.closeIndex;this.options.transformTagName&&(a=this.options.transformTagName(a)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,o,!1));const d=n;if(d&&-1!==this.options.unpairedTags.indexOf(d.tagname)&&(n=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),a!==t.tagname&&(o+=o?"."+a:a),this.isItStopNode(this.options.stopNodes,o,a)){let t="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)"/"===a[a.length-1]?(a=a.substr(0,a.length-1),o=o.substr(0,o.length-1),u=a):u=u.substr(0,u.length-1),i=s.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(a))i=s.closeIndex;else{const n=this.readStopNodeData(e,l,m+1);if(!n)throw new Error(`Unexpected end of ${l}`);i=n.i,t=n.tagContent}const r=new Z(a);a!==u&&c&&(r[":@"]=this.buildAttributesMap(u,o,a)),t&&(t=this.parseTextData(t,a,o,!0,c,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,o)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){"/"===a[a.length-1]?(a=a.substr(0,a.length-1),o=o.substr(0,o.length-1),u=a):u=u.substr(0,u.length-1),this.options.transformTagName&&(a=this.options.transformTagName(a));const e=new Z(a);a!==u&&c&&(e[":@"]=this.buildAttributesMap(u,o,a)),this.addChild(n,e,o),o=o.substr(0,o.lastIndexOf("."))}else{const e=new Z(a);this.tagsNodeStack.push(n),a!==u&&c&&(e[":@"]=this.buildAttributesMap(u,o,a)),this.addChild(n,e,o),n=e}r="",i=m}}else r+=e[i]}return t.child};function J(e,t,n){const r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r?(t.tagname=r,e.addChild(t)):e.addChild(t))}const _=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function j(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function M(e,t,n){const r="*."+n;for(const n in e){const o=e[n];if(r===o||t===o)return!0}return!1}function P(e,t,n,r){const o=e.indexOf(t,n);if(-1===o)throw new Error(r);return o+t.length-1}function H(e,t,n,r=">"){const o=function(e,t,n=">"){let r,o="";for(let i=t;i<e.length;i++){let t=e[i];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===n[0]){if(!n[1])return{data:o,index:i};if(e[i+1]===n[1])return{data:o,index:i}}else"\t"===t&&(t=" ");o+=t}}(e,t+1,r);if(!o)return;let i=o.data;const s=o.index,a=i.search(/\s/);let l=i,u=!0;-1!==a&&(l=i.substring(0,a),i=i.substring(a+1).trimStart());const c=l;if(n){const e=l.indexOf(":");-1!==e&&(l=l.substr(e+1),u=l!==o.data.substr(e+1))}return{tagName:l,tagExp:i,closeIndex:s,attrExpPresent:u,rawTagName:c}}function Q(e,t,n){const r=n;let o=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=P(e,">",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(o--,0===o))return{tagContent:e.substring(r,n),i:i};n=i}else if("?"===e[n+1]){n=P(e,"?>",n+1,"StopNode is not closed.")}else if("!--"===e.substr(n+1,3)){n=P(e,"--\x3e",n+3,"StopNode is not closed.")}else if("!["===e.substr(n+1,2)){n=P(e,"]]>",n,"StopNode is not closed.")-2}else{const r=H(e,n,">");if(r){(r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&o++,n=r.closeIndex}}}function z(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&C(e,n)}return T.isExist(e)?e:""}var $=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=X,this.parseXml=O,this.parseTextData=D,this.resolveNameSpace=U,this.buildAttributesMap=K,this.isItStopNode=M,this.replaceEntitiesValue=_,this.readStopNodeData=Q,this.saveTextToParentTag=j,this.addChild=J,this.ignoreAttributesFn=k(this.options.ignoreAttributes)}},q={};function ee(e,t,n){let r;const o={};for(let i=0;i<e.length;i++){const s=e[i],a=te(s);let l="";if(l=void 0===n?a:n+"."+a,a===t.textNodeName)void 0===r?r=s[a]:r+=""+s[a];else{if(void 0===a)continue;if(s[a]){let e=ee(s[a],t,l);const n=re(e,t);s[":@"]?ne(e,s[":@"],l,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==o[a]&&o.hasOwnProperty(a)?(Array.isArray(o[a])||(o[a]=[o[a]]),o[a].push(e)):t.isArray(a,l,n)?o[a]=[e]:o[a]=e}}}return"string"==typeof r?r.length>0&&(o[t.textNodeName]=r):void 0!==r&&(o[t.textNodeName]=r),o}function te(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function ne(e,t,n,r){if(t){const o=Object.keys(t),i=o.length;for(let s=0;s<i;s++){const i=o[s];r.isArray(i,n+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function re(e,t){const{textNodeName:n}=t,r=Object.keys(e).length;return 0===r||!(1!==r||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}q.prettify=function(e,t){return ee(e,t)};const{buildOptions:oe}=E,ie=$,{prettify:se}=q,ae=t;var le=class{constructor(e){this.externalEntities={},this.options=oe(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=ae.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new ie(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:se(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}};function ue(e,t,n,r){let o="",i=!1;for(let s=0;s<e.length;s++){const a=e[s],l=ce(a);if(void 0===l)continue;let u="";if(u=0===n.length?l:`${n}.${l}`,l===t.textNodeName){let e=a[l];de(u,t)||(e=t.tagValueProcessor(l,e),e=pe(e,t)),i&&(o+=r),o+=e,i=!1;continue}if(l===t.cdataPropName){i&&(o+=r),o+=`<![CDATA[${a[l][0][t.textNodeName]}]]>`,i=!1;continue}if(l===t.commentPropName){o+=r+`\x3c!--${a[l][0][t.textNodeName]}--\x3e`,i=!0;continue}if("?"===l[0]){const e=me(a[":@"],t),n="?xml"===l?"":r;let s=a[l][0][t.textNodeName];s=0!==s.length?" "+s:"",o+=n+`<${l}${s}${e}?>`,i=!0;continue}let c=r;""!==c&&(c+=t.indentBy);const m=r+`<${l}${me(a[":@"],t)}`,d=ue(a[l],t,u,c);-1!==t.unpairedTags.indexOf(l)?t.suppressUnpairedNode?o+=m+">":o+=m+"/>":d&&0!==d.length||!t.suppressEmptyNode?d&&d.endsWith(">")?o+=m+`>${d}${r}</${l}>`:(o+=m+">",d&&""!==r&&(d.includes("/>")||d.includes("</"))?o+=r+t.indentBy+d+r:o+=d,o+=`</${l}>`):o+=m+"/>",i=!0}return o}function ce(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(e.hasOwnProperty(r)&&":@"!==r)return r}}function me(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){if(!e.hasOwnProperty(r))continue;let o=t.attributeValueProcessor(r,e[r]);o=pe(o,t),!0===o&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function de(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes)if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+n)return!0;return!1}function pe(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const r=t.entities[n];e=e.replace(r.regex,r.val)}return e}const be=function(e,t){let n="";return t.format&&t.indentBy.length>0&&(n="\n"),ue(e,t,"",n)},ge=F,he={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function fe(e){this.options=Object.assign({},he,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=ge(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ae),this.processTextOrObjNode=Ee,this.options.format?(this.indentate=Ne,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Ee(e,t,n,r){const o=this.j2x(e,n+1,r.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,o.attrStr,n):this.buildObjectNode(o.val,t,o.attrStr,n)}function Ne(e){return this.options.indentBy.repeat(e)}function Ae(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}fe.prototype.build=function(e){return this.options.preserveOrder?be(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},fe.prototype.j2x=function(e,t,n){let r="",o="";const i=n.join(".");for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))if(void 0===e[s])this.isAttribute(s)&&(o+="");else if(null===e[s])this.isAttribute(s)?o+="":"?"===s[0]?o+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)o+=this.buildTextValNode(e[s],s,"",t);else if("object"!=typeof e[s]){const n=this.isAttribute(s);if(n&&!this.ignoreAttributesFn(n,i))r+=this.buildAttrPairStr(n,""+e[s]);else if(!n)if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,""+e[s]);o+=this.replaceEntitiesValue(t)}else o+=this.buildTextValNode(e[s],s,"",t)}else if(Array.isArray(e[s])){const r=e[s].length;let i="",a="";for(let l=0;l<r;l++){const r=e[s][l];if(void 0===r);else if(null===r)"?"===s[0]?o+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if("object"==typeof r)if(this.options.oneListGroup){const e=this.j2x(r,t+1,n.concat(s));i+=e.val,this.options.attributesGroupName&&r.hasOwnProperty(this.options.attributesGroupName)&&(a+=e.attrStr)}else i+=this.processTextOrObjNode(r,s,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(s,r);e=this.replaceEntitiesValue(e),i+=e}else i+=this.buildTextValNode(r,s,"",t)}this.options.oneListGroup&&(i=this.buildObjectNode(i,s,a,t)),o+=i}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const t=Object.keys(e[s]),n=t.length;for(let o=0;o<n;o++)r+=this.buildAttrPairStr(t[o],""+e[s][t[o]])}else o+=this.processTextOrObjNode(e[s],s,t,n);return{attrStr:r,val:o}},fe.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},fe.prototype.buildObjectNode=function(e,t,n,r){if(""===e)return"?"===t[0]?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",o=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(r)+"<"+t+n+i+this.tagEndChar+e+this.indentate(r)+o:this.indentate(r)+"<"+t+n+i+">"+e+o}},fe.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},fe.prototype.buildTextValNode=function(e,t,n,r){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+o+"</"+t+this.tagEndChar}},fe.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};var ye,Ie={XMLParser:le,XMLValidator:t,XMLBuilder:fe};function Se(e,t){return!(null===e||"object"!=typeof e||!("$typeName"in e)||"string"!=typeof e.$typeName)&&(void 0===t||t.typeName===e.$typeName)}function Ge(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(127&r)<<n,!(128&r))return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(15&n)<<28,t=(112&n)>>4,!(128&n))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(127&r)<<n,!(128&r))return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Re(e,t,n){for(let r=0;r<28;r+=7){const o=e>>>r,i=!(o>>>7==0&&0==t),s=255&(i?128|o:o);if(n.push(s),!i)return}const r=e>>>28&15|(7&t)<<4,o=!!(t>>3);if(n.push(255&(o?128|r:r)),o){for(let e=3;e<31;e+=7){const r=t>>>e,o=!(r>>>7==0),i=255&(o?128|r:r);if(n.push(i),!o)return}n.push(t>>>31&1)}}!function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(ye||(ye={}));const Ye=4294967296;function We(e){const t="-"===e[0];t&&(e=e.slice(1));const n=1e6;let r=0,o=0;function i(t,i){const s=Number(e.slice(t,i));o*=n,r=r*n+s,r>=Ye&&(o+=r/Ye|0,r%=Ye)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?ve(r,o):Ve(r,o)}function we(e,t){if(({lo:e,hi:t}=function(e,t){return{lo:e>>>0,hi:t>>>0}}(e,t)),t<=2097151)return String(Ye*t+e);const n=16777215&(e>>>24|t<<8),r=t>>16&65535;let o=(16777215&e)+6777216*n+6710656*r,i=n+8147497*r,s=2*r;const a=1e7;return o>=a&&(i+=Math.floor(o/a),o%=a),i>=a&&(s+=Math.floor(i/a),i%=a),s.toString()+Be(i)+Be(o)}function Ve(e,t){return{lo:0|e,hi:0|t}}function ve(e,t){return t=~t,e?e=1+~e:t+=1,Ve(e,t)}const Be=e=>{const t=String(e);return"0000000".slice(t.length)+t};function Fe(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(127&e|128),e>>=7;t.push(1)}}function Te(){let e=this.buf[this.pos++],t=127&e;if(!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<7,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<14,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<21,!(128&e))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(15&e)<<28;for(let t=5;128&e&&t<10;t++)e=this.buf[this.pos++];if(128&e)throw new Error("invalid varint");return this.assertBounds(),t>>>0}const Ze=xe();function xe(){const e=new DataView(new ArrayBuffer(8));if("function"==typeof BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64&&("object"!=typeof process||"object"!=typeof process.env||"1"!==process.env.BUF_BIGINT_DISABLE)){const t=BigInt("-9223372036854775808"),n=BigInt("9223372036854775807"),r=BigInt("0"),o=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(e){const r="bigint"==typeof e?e:BigInt(e);if(r>n||r<t)throw new Error(`invalid int64: ${e}`);return r},uParse(e){const t="bigint"==typeof e?e:BigInt(e);if(t>o||t<r)throw new Error(`invalid uint64: ${e}`);return t},enc(t){return e.setBigInt64(0,this.parse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(t){return e.setBigInt64(0,this.uParse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigInt64(0,!0)),uDec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigUint64(0,!0))}}return{zero:"0",supported:!1,parse:e=>("string"!=typeof e&&(e=e.toString()),Ce(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),ke(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),Ce(e),We(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),ke(e),We(e)),dec:(e,t)=>function(e,t){let n=Ve(e,t);const r=2147483648&n.hi;r&&(n=ve(n.lo,n.hi));const o=we(n.lo,n.hi);return r?"-"+o:o}(e,t),uDec:(e,t)=>we(e,t)}}function Ce(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function ke(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function Xe(e,t){switch(e){case ye.STRING:return"";case ye.BOOL:return!1;default:case ye.DOUBLE:case ye.FLOAT:return 0;case ye.INT64:case ye.UINT64:case ye.SFIXED64:case ye.FIXED64:case ye.SINT64:return t?"0":Ze.zero;case ye.BYTES:return new Uint8Array(0)}}class De extends Error{constructor(e,t,n="FieldValueInvalidError"){super(t),this.name=n,this.field=()=>e}}const Ue=Symbol.for("reflect unsafe local");function Le(e,t){const n=e[t.localName].case;return void 0===n?n:t.fields.find((e=>e.localName===n))}function Ke(e,t){const n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(2!=t.presence)return void 0!==e[n]&&Object.prototype.hasOwnProperty.call(e,n);switch(t.fieldKind){case"list":return e[n].length>0;case"map":return Object.keys(e[n]).length>0;case"scalar":return!function(e,t){switch(e){case ye.BOOL:return!1===t;case ye.STRING:return""===t;case ye.BYTES:return t instanceof Uint8Array&&!t.byteLength;default:return 0==t}}(t.scalar,e[n]);case"enum":return e[n]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function Oe(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]}function Je(e,t){if(t.oneof){const n=e[t.oneof.localName];return n.case===t.localName?n.value:void 0}return e[t.localName]}function _e(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function je(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function Me(e,t){var n,r,o,i;if(je(e)&&Ue in e&&"add"in e&&"field"in e&&"function"==typeof e.field){if(void 0!==t){const s=t,a=e.field();return s.listKind==a.listKind&&s.scalar===a.scalar&&(null===(n=s.message)||void 0===n?void 0:n.typeName)===(null===(r=a.message)||void 0===r?void 0:r.typeName)&&(null===(o=s.enum)||void 0===o?void 0:o.typeName)===(null===(i=a.enum)||void 0===i?void 0:i.typeName)}return!0}return!1}function Pe(e,t){var n,r,o,i;if(je(e)&&Ue in e&&"has"in e&&"field"in e&&"function"==typeof e.field){if(void 0!==t){const s=t,a=e.field();return s.mapKey===a.mapKey&&s.mapKind==a.mapKind&&s.scalar===a.scalar&&(null===(n=s.message)||void 0===n?void 0:n.typeName)===(null===(r=a.message)||void 0===r?void 0:r.typeName)&&(null===(o=s.enum)||void 0===o?void 0:o.typeName)===(null===(i=a.enum)||void 0===i?void 0:i.typeName)}return!0}return!1}function He(e,t){return je(e)&&Ue in e&&"desc"in e&&je(e.desc)&&"message"===e.desc.kind&&(void 0===t||e.desc.typeName==t.typeName)}function Qe(e){const t=e.fields[0];return ze(e.typeName)&&void 0!==t&&"scalar"==t.fieldKind&&"value"==t.name&&1==t.number}function ze(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}function $e(e,t){if(Se(t,e))return t;const n=function(e){let t;if(function(e){switch(e.file.edition){case 999:return!1;case 998:return!0;default:return e.fields.some((e=>2!=e.presence&&"message"!=e.fieldKind&&!e.oneof))}}(e)){const n=st.get(e);let r,o;if(n)({prototype:r,members:o}=n);else{r={},o=new Set;for(const t of e.members)"oneof"!=t.kind&&("scalar"!=t.fieldKind&&"enum"!=t.fieldKind||2!=t.presence&&(o.add(t),r[t.localName]=at(t)));st.set(e,{prototype:r,members:o})}t=Object.create(r),t.$typeName=e.typeName;for(const n of e.members)if(!o.has(n)){if("field"==n.kind){if("message"==n.fieldKind)continue;if(("scalar"==n.fieldKind||"enum"==n.fieldKind)&&2!=n.presence)continue}t[n.localName]=at(n)}}else{t={$typeName:e.typeName};for(const n of e.members)"oneof"!=n.kind&&2!=n.presence||(t[n.localName]=at(n))}return t}(e);return void 0!==t&&function(e,t,n){for(const r of e.members){let e,o=n[r.localName];if(null!=o){if("oneof"==r.kind){const t=Le(n,r);if(!t)continue;e=t,o=Je(n,t)}else e=r;switch(e.fieldKind){case"message":o=nt(e,o);break;case"scalar":o=qe(e,o);break;case"list":o=tt(e,o);break;case"map":o=et(e,o)}_e(t,e,o)}}}(e,n,t),n}function qe(e,t){return e.scalar==ye.BYTES?rt(t):t}function et(e,t){if(je(t)){if(e.scalar==ye.BYTES)return ot(t,rt);if("message"==e.mapKind)return ot(t,(t=>nt(e,t)))}return t}function tt(e,t){if(Array.isArray(t)){if(e.scalar==ye.BYTES)return t.map(rt);if("message"==e.listKind)return t.map((t=>nt(e,t)))}return t}function nt(e,t){if("message"==e.fieldKind&&!e.oneof&&Qe(e.message))return qe(e.message.fields[0],t);if(je(t)){if("google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!==e.parent.typeName)return t;if(!Se(t,e.message))return $e(e.message,t)}return t}function rt(e){return Array.isArray(e)?new Uint8Array(e):e}function ot(e,t){const n={};for(const r of Object.entries(e))n[r[0]]=t(r[1]);return n}const it=Symbol(),st=new WeakMap;function at(e){if("oneof"==e.kind)return{case:void 0};if("list"==e.fieldKind)return[];if("map"==e.fieldKind)return{};if("message"==e.fieldKind)return it;const t=e.getDefaultValue();return void 0!==t?"scalar"==e.fieldKind&&e.longAsString?t.toString():t:"scalar"==e.fieldKind?Xe(e.scalar,e.longAsString):e.enum.values[0].number}const lt=Symbol.for("@bufbuild/protobuf/text-encoding");function ut(){if(null==globalThis[lt]){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[lt]={encodeUtf8:t=>e.encode(t),decodeUtf8:e=>t.decode(e),checkUtf8(e){try{return encodeURIComponent(e),!0}catch(e){return!1}}}}return globalThis[lt]}var ct;!function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(ct||(ct={}));const mt=34028234663852886e22,dt=-34028234663852886e22,pt=4294967295,bt=2147483647,gt=-2147483648;class ht{constructor(e=ut().encodeUtf8){this.encodeUtf8=e,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e),n=0;for(let e=0;e<this.chunks.length;e++)t.set(this.chunks[e],n),n+=this.chunks[e].length;return this.chunks=[],t}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),t=this.stack.pop();if(!t)throw new Error("invalid state, fork stack empty");return this.chunks=t.chunks,this.buf=t.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Nt(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return Et(e),Fe(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.encodeUtf8(e);return this.uint32(t.byteLength),this.raw(t)}float(e){!function(e){if("string"==typeof e){const t=e;if(e=Number(e),isNaN(e)&&"NaN"!==t)throw new Error("invalid float32: "+t)}else if("number"!=typeof e)throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>mt||e<dt))throw new Error("invalid float32: "+e)}(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){Nt(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){Et(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return Et(e),Fe(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=Ze.enc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=Ze.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=Ze.enc(e);return Re(t.lo,t.hi,this.buf),this}sint64(e){let t=Ze.enc(e),n=t.hi>>31;return Re(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=Ze.uEnc(e);return Re(t.lo,t.hi,this.buf),this}}class ft{constructor(e,t=ut().decodeUtf8){this.decodeUtf8=t,this.varint64=Ge,this.uint32=Te,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.uint32(),t=e>>>3,n=7&e;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e,t){let n=this.pos;switch(e){case ct.Varint:for(;128&this.buf[this.pos++];);break;case ct.Bit64:this.pos+=4;case ct.Bit32:this.pos+=4;break;case ct.LengthDelimited:let n=this.uint32();this.pos+=n;break;case ct.StartGroup:for(;;){const[e,n]=this.tag();if(n===ct.EndGroup){if(void 0!==t&&e!==t)throw new Error("invalid end group tag");break}this.skip(n,e)}break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return Ze.dec(...this.varint64())}uint64(){return Ze.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,Ze.dec(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Ze.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ze.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.decodeUtf8(this.bytes())}}function Et(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>bt||e<gt)throw new Error("invalid int32: "+e)}function Nt(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw new Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>pt||e<0)throw new Error("invalid uint32: "+e)}function At(e,t,n){const r=yt(e,n);if(!0!==r)return new De(e,`list item #${t+1}: ${St(e,n,r)}`)}function yt(e,t){return void 0!==e.scalar?It(t,e.scalar):void 0!==e.enum?e.enum.open?Number.isInteger(t):e.enum.values.some((e=>e.number===t)):He(t,e.message)}function It(e,t){switch(t){case ye.DOUBLE:return"number"==typeof e;case ye.FLOAT:return"number"==typeof e&&(!(!Number.isNaN(e)&&Number.isFinite(e))||(!(e>mt||e<dt)||`${e.toFixed()} out of range`));case ye.INT32:case ye.SFIXED32:case ye.SINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>bt||e<gt)||`${e.toFixed()} out of range`);case ye.FIXED32:case ye.UINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>pt||e<0)||`${e.toFixed()} out of range`);case ye.BOOL:return"boolean"==typeof e;case ye.STRING:return"string"==typeof e&&(ut().checkUtf8(e)||"invalid UTF8");case ye.BYTES:return e instanceof Uint8Array;case ye.INT64:case ye.SFIXED64:case ye.SINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{Ze.parse(e)}catch(t){return`${e} out of range`}return!0;case ye.FIXED64:case ye.UINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{Ze.uParse(e)}catch(t){return`${e} out of range`}return!0}}function St(e,t,n){return n="string"==typeof n?`: ${n}`:`, got ${Gt(t)}`,void 0!==e.scalar?`expected ${function(e){switch(e){case ye.STRING:return"string";case ye.BOOL:return"boolean";case ye.INT64:case ye.SINT64:case ye.SFIXED64:return"bigint (int64)";case ye.UINT64:case ye.FIXED64:return"bigint (uint64)";case ye.BYTES:return"Uint8Array";case ye.DOUBLE:return"number (float64)";case ye.FLOAT:return"number (float32)";case ye.FIXED32:case ye.UINT32:return"number (uint32)";case ye.INT32:case ye.SFIXED32:case ye.SINT32:return"number (int32)"}}(e.scalar)}`+n:void 0!==e.enum?`expected ${e.enum.toString()}`+n:`expected ${Rt(e.message)}`+n}function Gt(e){switch(typeof e){case"object":return null===e?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:Me(e)?Yt(e.field()):Pe(e)?Wt(e.field()):He(e)?Rt(e.desc):Se(e)?`message ${e.$typeName}`:"object";case"string":return e.length>30?"string":`"${e.split('"').join('\\"')}"`;case"boolean":case"number":return String(e);case"bigint":return String(e)+"n";default:return typeof e}}function Rt(e){return`ReflectMessage (${e.typeName})`}function Yt(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${ye[e.scalar]})`}}function Wt(e){switch(e.mapKind){case"message":return`ReflectMap (${ye[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${ye[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${ye[e.mapKey]}, ${ye[e.scalar]})`}}function wt(e,t,n=!0){return new Vt(e,t,n)}class Vt{get sortedFields(){var e;return null!==(e=this._sortedFields)&&void 0!==e?e:this._sortedFields=this.desc.fields.concat().sort(((e,t)=>e.number-t.number))}constructor(e,t,n=!0){this.lists=new Map,this.maps=new Map,this.check=n,this.desc=e,this.message=this[Ue]=null!=t?t:$e(e),this.fields=e.fields,this.oneofs=e.oneofs,this.members=e.members}findNumber(e){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map((e=>[e.number,e])))),this._fieldsByNumber.get(e)}oneofCase(e){return vt(this.message,e),Le(this.message,e)}isSet(e){return vt(this.message,e),Ke(this.message,e)}clear(e){vt(this.message,e),function(e,t){const n=t.localName;if(t.oneof){const r=t.oneof.localName;e[r].case===n&&(e[r]={case:void 0})}else if(2!=t.presence)delete e[n];else switch(t.fieldKind){case"map":e[n]={};break;case"list":e[n]=[];break;case"enum":e[n]=t.enum.values[0].number;break;case"scalar":e[n]=Xe(t.scalar,t.longAsString)}}(this.message,e)}get(e){vt(this.message,e);const t=Je(this.message,e);switch(e.fieldKind){case"list":let n=this.lists.get(e);return n&&n[Ue]===t||this.lists.set(e,n=new Bt(e,t,this.check)),n;case"map":let r=this.maps.get(e);return r&&r[Ue]===t||this.maps.set(e,r=new Ft(e,t,this.check)),r;case"message":return Zt(e,t,this.check);case"scalar":return void 0===t?Xe(e.scalar,!1):Ut(e,t);case"enum":return null!=t?t:e.enum.values[0].number}}set(e,t){if(vt(this.message,e),this.check){const n=function(e,t){const n="list"==e.fieldKind?Me(t,e):"map"==e.fieldKind?Pe(t,e):yt(e,t);if(!0===n)return;let r;switch(e.fieldKind){case"list":r=`expected ${Yt(e)}, got ${Gt(t)}`;break;case"map":r=`expected ${Wt(e)}, got ${Gt(t)}`;break;default:r=St(e,t,n)}return new De(e,r)}(e,t);if(n)throw n}let n;n="message"==e.fieldKind?Tt(e,t):Pe(t)||Me(t)?t[Ue]:Lt(e,t),_e(this.message,e,n)}getUnknown(){return this.message.$unknown}setUnknown(e){this.message.$unknown=e}}function vt(e,t){if(t.parent.typeName!==e.$typeName)throw new De(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class Bt{field(){return this._field}get size(){return this._arr.length}constructor(e,t,n){this._field=e,this._arr=this[Ue]=t,this.check=n}get(e){const t=this._arr[e];return void 0===t?void 0:Ct(this._field,t,this.check)}set(e,t){if(e<0||e>=this._arr.length)throw new De(this._field,`list item #${e+1}: out of range`);if(this.check){const n=At(this._field,e,t);if(n)throw n}this._arr[e]=xt(this._field,t)}add(e){if(this.check){const t=At(this._field,this._arr.length,e);if(t)throw t}this._arr.push(xt(this._field,e))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const e of this._arr)yield Ct(this._field,e,this.check)}*entries(){for(let e=0;e<this._arr.length;e++)yield[e,Ct(this._field,this._arr[e],this.check)]}}class Ft{constructor(e,t,n=!0){this.obj=this[Ue]=null!=t?t:{},this.check=n,this._field=e}field(){return this._field}set(e,t){if(this.check){const n=function(e,t,n){const r=It(t,e.mapKey);if(!0!==r)return new De(e,`invalid map key: ${St({scalar:e.mapKey},t,r)}`);const o=yt(e,n);return!0!==o?new De(e,`map entry ${Gt(t)}: ${St(e,n,o)}`):void 0}(this._field,e,t);if(n)throw n}return this.obj[Xt(e)]=function(e,t){if("message"==e.mapKind)return Tt(e,t);return Lt(e,t)}(this._field,t),this}delete(e){const t=Xt(e),n=Object.prototype.hasOwnProperty.call(this.obj,t);return n&&delete this.obj[t],n}clear(){for(const e of Object.keys(this.obj))delete this.obj[e]}get(e){let t=this.obj[Xt(e)];return void 0!==t&&(t=kt(this._field,t,this.check)),t}has(e){return Object.prototype.hasOwnProperty.call(this.obj,Xt(e))}*keys(){for(const e of Object.keys(this.obj))yield Dt(e,this._field.mapKey)}*entries(){for(const e of Object.entries(this.obj))yield[Dt(e[0],this._field.mapKey),kt(this._field,e[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const e of Object.values(this.obj))yield kt(this._field,e,this.check)}forEach(e,t){for(const n of this.entries())e.call(t,n[1],n[0],this)}}function Tt(e,t){return He(t)?ze(t.message.$typeName)&&!e.oneof&&"message"==e.fieldKind?t.message.value:"google.protobuf.Struct"==t.desc.typeName&&"google.protobuf.Value"!=e.parent.typeName?Ot(t.message):t.message:t}function Zt(e,t,n){return void 0!==t&&(Qe(e.message)&&!e.oneof&&"message"==e.fieldKind?t={$typeName:e.message.typeName,value:Ut(e.message.fields[0],t)}:"google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!=e.parent.typeName&&je(t)&&(t=Kt(t))),new Vt(e.message,t,n)}function xt(e,t){return"message"==e.listKind?Tt(e,t):Lt(e,t)}function Ct(e,t,n){return"message"==e.listKind?Zt(e,t,n):Ut(e,t)}function kt(e,t,n){return"message"==e.mapKind?Zt(e,t,n):t}function Xt(e){return"string"==typeof e||"number"==typeof e?e:String(e)}function Dt(e,t){switch(t){case ye.STRING:return e;case ye.INT32:case ye.FIXED32:case ye.UINT32:case ye.SFIXED32:case ye.SINT32:{const t=Number.parseInt(e);if(Number.isFinite(t))return t;break}case ye.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case ye.UINT64:case ye.FIXED64:try{return Ze.uParse(e)}catch(e){}break;default:try{return Ze.parse(e)}catch(e){}}return e}function Ut(e,t){switch(e.scalar){case ye.INT64:case ye.SFIXED64:case ye.SINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=Ze.parse(t));break;case ye.FIXED64:case ye.UINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=Ze.uParse(t))}return t}function Lt(e,t){switch(e.scalar){case ye.INT64:case ye.SFIXED64:case ye.SINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=Ze.parse(t));break;case ye.FIXED64:case ye.UINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=Ze.uParse(t))}return t}function Kt(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(je(e))for(const[n,r]of Object.entries(e))t.fields[n]=_t(r);return t}function Ot(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Jt(r);return t}function Jt(e){switch(e.kind.case){case"structValue":return Ot(e.kind.value);case"listValue":return e.kind.value.values.map(Jt);case"nullValue":case void 0:return null;default:return e.kind.value}}function _t(e){const t={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof e){case"number":t.kind={case:"numberValue",value:e};break;case"string":t.kind={case:"stringValue",value:e};break;case"boolean":t.kind={case:"boolValue",value:e};break;case"object":if(null===e){const e=0;t.kind={case:"nullValue",value:e}}else if(Array.isArray(e)){const n={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(e))for(const t of e)n.values.push(_t(t));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:Kt(e)}}return t}function jt(e){const t=function(){if(!Pt){Pt=[];const e=function(){Mt||(Mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Mt.slice(0,-2).concat("-","_"));return Mt}();for(let t=0;t<e.length;t++)Pt[e[t].charCodeAt(0)]=t;Pt["-".charCodeAt(0)]=e.indexOf("+"),Pt["_".charCodeAt(0)]=e.indexOf("/")}return Pt}();let n=3*e.length/4;"="==e[e.length-2]?n-=2:"="==e[e.length-1]&&(n-=1);let r,o=new Uint8Array(n),i=0,s=0,a=0;for(let n=0;n<e.length;n++){if(r=t[e.charCodeAt(n)],void 0===r)switch(e[n]){case"=":s=0;case"\n":case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string")}switch(s){case 0:a=r,s=1;break;case 1:o[i++]=a<<2|(48&r)>>4,a=r,s=2;break;case 2:o[i++]=(15&a)<<4|(60&r)>>2,a=r,s=3;break;case 3:o[i++]=(3&a)<<6|r,s=0}}if(1==s)throw Error("invalid base64 string");return o.subarray(0,i)}let Mt,Pt;function Ht(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let o=e.charAt(r);switch(o){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(o),t=!1;break;default:t&&(t=!1,o=o.toUpperCase()),n.push(o)}}return n.join("")}const Qt=new Set(["constructor","toString","toJSON","valueOf"]);function zt(e){return Qt.has(e)?e+"$":e}function $t(e){for(const t of e.field)Oe(t,"jsonName")||(t.jsonName=Ht(t.name));e.nestedType.forEach($t)}function qt(e,t){switch(e){case ye.STRING:return t;case ye.BYTES:{const n=function(e){const t=[],n={tail:e,c:"",next(){return 0!=this.tail.length&&(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(e){if(this.tail.length>=e){const t=this.tail.substring(0,e);return this.tail=this.tail.substring(e),t}return!1}};for(;n.next();)if("\\"===n.c){if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const e=n.c,r=n.take(2);if(!1===r)return!1;const o=parseInt(e+r,8);if(isNaN(o))return!1;t.push(o);break}case"x":{const e=n.c,r=n.take(2);if(!1===r)return!1;const o=parseInt(e+r,16);if(isNaN(o))return!1;t.push(o);break}case"u":{const e=n.c,r=n.take(4);if(!1===r)return!1;const o=parseInt(e+r,16);if(isNaN(o))return!1;const i=new Uint8Array(4);new DataView(i.buffer).setInt32(0,o,!0),t.push(i[0],i[1],i[2],i[3]);break}case"U":{const e=n.c,r=n.take(8);if(!1===r)return!1;const o=Ze.uEnc(e+r),i=new Uint8Array(8),s=new DataView(i.buffer);s.setInt32(0,o.lo,!0),s.setInt32(4,o.hi,!0),t.push(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]);break}}}else t.push(n.c.charCodeAt(0));return new Uint8Array(t)}(t);if(!1===n)throw new Error(`cannot parse ${ye[e]} default value: ${t}`);return n}case ye.INT64:case ye.SFIXED64:case ye.SINT64:return Ze.parse(t);case ye.UINT64:case ye.FIXED64:return Ze.uParse(t);case ye.DOUBLE:case ye.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case ye.BOOL:return"true"===t;case ye.INT32:case ye.UINT32:case ye.SINT32:case ye.FIXED32:case ye.SFIXED32:return parseInt(t,10)}}function*en(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*en(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*en(t);yield*e.nestedEnums,yield*e.nestedExtensions}}function tn(...e){const t=function(){const e=new Map,t=new Map,n=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator]:()=>e.values(),get files(){return n.values()},addFile(e,t,r){if(n.set(e.proto.name,e),!t)for(const t of en(e))this.add(t);if(r)for(const n of e.dependencies)this.addFile(n,t,r)},add(n){if("extension"==n.kind){let e=t.get(n.extendee.typeName);e||t.set(n.extendee.typeName,e=new Map),e.set(n.number,n)}e.set(n.typeName,n)},get:t=>e.get(t),getFile:e=>n.get(e),getMessage(t){const n=e.get(t);return"message"==(null==n?void 0:n.kind)?n:void 0},getEnum(t){const n=e.get(t);return"enum"==(null==n?void 0:n.kind)?n:void 0},getExtension(t){const n=e.get(t);return"extension"==(null==n?void 0:n.kind)?n:void 0},getExtensionFor(e,n){var r;return null===(r=t.get(e.typeName))||void 0===r?void 0:r.get(n)},getService(t){const n=e.get(t);return"service"==(null==n?void 0:n.kind)?n:void 0}}}();if(!e.length)return t;if("$typeName"in e[0]&&"google.protobuf.FileDescriptorSet"==e[0].$typeName){for(const n of e[0].file)yn(n,t);return t}if("$typeName"in e[0]){const r=e[0],o=e[1],i=new Set;function s(e){const n=[];for(const r of e.dependency){if(null!=t.getFile(r))continue;if(i.has(r))continue;const s=o(r);if(!s)throw new Error(`Unable to resolve ${r}, imported by ${e.name}`);"kind"in s?t.addFile(s,!1,!0):(i.add(s.name),n.push(s))}return n.concat(...n.map(s))}for(const a of[r,...s(r)].reverse())yn(a,t)}else for(const l of e)for(const u of l.files)t.addFile(u);return t}const nn=998,rn=999,on=9,sn=10,an=11,ln=12,un=14,cn=3,mn=2,dn=1,pn=0,bn=1,gn=2,hn=3,fn=1,En=2,Nn=1,An={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1}};function yn(e,t){var n,r;const o={kind:"file",proto:e,deprecated:null!==(r=null===(n=e.options)||void 0===n?void 0:n.deprecated)&&void 0!==r&&r,edition:Vn(e),name:e.name.replace(/\.proto$/,""),dependencies:vn(e,t),enums:[],messages:[],extensions:[],services:[],toString:()=>`file ${e.name}`},i=new Map,s={get:e=>i.get(e),add(e){var t;kn(!0===(null===(t=e.proto.options)||void 0===t?void 0:t.mapEntry)),i.set(e.typeName,e)}};for(const n of e.enumType)Gn(n,o,void 0,t);for(const n of e.messageType)Rn(n,o,void 0,t,s);for(const n of e.service)Yn(n,o,t);In(o,t);for(const e of i.values())Sn(e,t,s);for(const e of o.messages)Sn(e,t,s),In(e,t);t.addFile(o,!0)}function In(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const r=wn(n,e,t);e.extensions.push(r),t.add(r)}break;case"message":for(const n of e.proto.extension){const r=wn(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(const n of e.nestedMessages)In(n,t)}}function Sn(e,t,n){const r=e.proto.oneofDecl.map((t=>function(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:zt(Ht(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}(t,e))),o=new Set;for(const i of e.proto.field){const s=Tn(i,r),a=wn(i,e,t,s,n);e.fields.push(a),e.field[a.localName]=a,void 0===s?e.members.push(a):(s.fields.push(a),o.has(s)||(o.add(s),e.members.push(s)))}for(const t of r.filter((e=>o.has(e))))e.oneofs.push(t);for(const r of e.nestedMessages)Sn(r,t,n)}function Gn(e,t,n,r){var o,i,s;const a=function(e,t){const n=(r=e,(r.substring(0,1)+r.substring(1).replace(/[A-Z]/g,(e=>"_"+e))).toLowerCase()+"_");var r;for(const e of t){if(!e.name.toLowerCase().startsWith(n))return;const t=e.name.substring(n.length);if(0==t.length)return;if(/^\d/.test(t))return}return n}(e.name,e.value),l={kind:"enum",proto:e,deprecated:null!==(i=null===(o=e.options)||void 0===o?void 0:o.deprecated)&&void 0!==i&&i,file:t,parent:n,open:!0,name:e.name,typeName:Bn(e,n,t),value:{},values:[],sharedPrefix:a,toString(){return`enum ${this.typeName}`}};l.open=function(e){var t;return Nn==Cn("enumType",{proto:e.proto,parent:null!==(t=e.parent)&&void 0!==t?t:e.file})}(l),r.add(l),e.value.forEach((e=>{var t,n;const r=e.name;l.values.push(l.value[e.number]={kind:"enum_value",proto:e,deprecated:null!==(n=null===(t=e.options)||void 0===t?void 0:t.deprecated)&&void 0!==n&&n,parent:l,name:r,localName:zt(null==a?r:r.substring(a.length)),number:e.number,toString:()=>`enum value ${l.typeName}.${r}`})})),(null!==(s=null==n?void 0:n.nestedEnums)&&void 0!==s?s:t.enums).push(l)}function Rn(e,t,n,r,o){var i,s,a,l;const u={kind:"message",proto:e,deprecated:null!==(s=null===(i=e.options)||void 0===i?void 0:i.deprecated)&&void 0!==s&&s,file:t,parent:n,name:e.name,typeName:Bn(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};!0===(null===(a=e.options)||void 0===a?void 0:a.mapEntry)?o.add(u):((null!==(l=null==n?void 0:n.nestedMessages)&&void 0!==l?l:t.messages).push(u),r.add(u));for(const n of e.enumType)Gn(n,t,u,r);for(const n of e.nestedType)Rn(n,t,u,r,o)}function Yn(e,t,n){var r,o;const i={kind:"service",proto:e,deprecated:null!==(o=null===(r=e.options)||void 0===r?void 0:r.deprecated)&&void 0!==o&&o,file:t,name:e.name,typeName:Bn(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(i),n.add(i);for(const t of e.method){const e=Wn(t,i,n);i.methods.push(e),i.method[e.localName]=e}}function Wn(e,t,n){var r,o,i,s;let a;a=e.clientStreaming&&e.serverStreaming?"bidi_streaming":e.clientStreaming?"client_streaming":e.serverStreaming?"server_streaming":"unary";const l=n.getMessage(Fn(e.inputType)),u=n.getMessage(Fn(e.outputType));kn(l,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),kn(u,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const c=e.name;return{kind:"rpc",proto:e,deprecated:null!==(o=null===(r=e.options)||void 0===r?void 0:r.deprecated)&&void 0!==o&&o,parent:t,name:c,localName:zt(c.length?zt(c[0].toLowerCase()+c.substring(1)):c),methodKind:a,input:l,output:u,idempotency:null!==(s=null===(i=e.options)||void 0===i?void 0:i.idempotencyLevel)&&void 0!==s?s:pn,toString:()=>`rpc ${t.typeName}.${c}`}}function wn(e,t,n,r,o){var i,s,a;const l=void 0===o,u={kind:"field",proto:e,deprecated:null!==(s=null===(i=e.options)||void 0===i?void 0:i.deprecated)&&void 0!==s&&s,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:Zn(e,r,l,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(l){const r="file"==t.kind?t:t.file,o="file"==t.kind?void 0:t,i=Bn(e,o,r);u.kind="extension",u.file=r,u.parent=o,u.oneof=void 0,u.typeName=i,u.jsonName=`[${i}]`,u.toString=()=>`extension ${i}`;const s=n.getMessage(Fn(e.extendee));kn(s,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),u.extendee=s}else{const n=t;kn("message"==n.kind),u.parent=n,u.oneof=r,u.localName=r?Ht(e.name):zt(Ht(e.name)),u.jsonName=e.jsonName,u.toString=()=>`field ${n.typeName}.${e.name}`}const c=e.label,m=e.type,d=null===(a=e.options)||void 0===a?void 0:a.jstype;if(c===cn){const r=m==an?null==o?void 0:o.get(Fn(e.typeName)):void 0;if(r){u.fieldKind="map";const{key:e,value:t}=function(e){const t=e.fields.find((e=>1===e.number)),n=e.fields.find((e=>2===e.number));return kn(t&&"scalar"==t.fieldKind&&t.scalar!=ye.BYTES&&t.scalar!=ye.FLOAT&&t.scalar!=ye.DOUBLE&&n&&"list"!=n.fieldKind&&"map"!=n.fieldKind),{key:t,value:n}}(r);return u.mapKey=e.scalar,u.mapKind=t.fieldKind,u.message=t.message,u.delimitedEncoding=!1,u.enum=t.enum,u.scalar=t.scalar,u}switch(u.fieldKind="list",m){case an:case sn:u.listKind="message",u.message=n.getMessage(Fn(e.typeName)),kn(u.message),u.delimitedEncoding=xn(e,t);break;case un:u.listKind="enum",u.enum=n.getEnum(Fn(e.typeName)),kn(u.enum);break;default:u.listKind="scalar",u.scalar=m,u.longAsString=d==dn}return u.packed=function(e,t){if(e.label!=cn)return!1;switch(e.type){case on:case ln:case sn:case an:return!1}const n=e.options;if(n&&Oe(n,"packed"))return n.packed;return fn==Cn("repeatedFieldEncoding",{proto:e,parent:t})}(e,t),u}switch(m){case an:case sn:u.fieldKind="message",u.message=n.getMessage(Fn(e.typeName)),kn(u.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.delimitedEncoding=xn(e,t),u.getDefaultValue=()=>{};break;case un:{const t=n.getEnum(Fn(e.typeName));kn(void 0!==t,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(Fn(e.typeName)),u.getDefaultValue=()=>Oe(e,"defaultValue")?function(e,t){const n=e.values.find((e=>e.name===t));if(!n)throw new Error(`cannot parse ${e} default value: ${t}`);return n.number}(t,e.defaultValue):void 0;break}default:u.fieldKind="scalar",u.scalar=m,u.longAsString=d==dn,u.getDefaultValue=()=>Oe(e,"defaultValue")?qt(m,e.defaultValue):void 0}return u}function Vn(e){switch(e.syntax){case"":case"proto2":return nn;case"proto3":return rn;case"editions":if(e.edition in An)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function vn(e,t){return e.dependency.map((n=>{const r=t.getFile(n);if(!r)throw new Error(`Cannot find ${n}, imported by ${e.name}`);return r}))}function Bn(e,t,n){let r;return r=t?`${t.typeName}.${e.name}`:n.proto.package.length>0?`${n.proto.package}.${e.name}`:`${e.name}`,r}function Fn(e){return e.startsWith(".")?e.substring(1):e}function Tn(e,t){if(!Oe(e,"oneofIndex"))return;if(e.proto3Optional)return;const n=t[e.oneofIndex];return kn(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function Zn(e,t,n,r){return e.label==mn?hn:e.label==cn?gn:t||e.proto3Optional||e.type==an||n?bn:Cn("fieldPresence",{proto:e,parent:r})}function xn(e,t){return e.type==sn||En==Cn("messageEncoding",{proto:e,parent:t})}function Cn(e,t){var n,r;const o=null===(n=t.proto.options)||void 0===n?void 0:n.features;if(o){const t=o[e];if(0!=t)return t}if("kind"in t){if("message"==t.kind)return Cn(e,null!==(r=t.parent)&&void 0!==r?r:t.file);const n=An[t.edition];if(!n)throw new Error(`feature default for edition ${t.edition} not found`);return n[e]}return Cn(e,t.parent)}function kn(e,t){if(!e)throw new Error(t)}function Xn(e){const t=function(e){const t=Object.create({syntax:"",edition:0});return Object.assign(t,Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(Dn),enumType:e.enumType.map(Kn)}))}(e);t.messageType.forEach($t);return tn(t,(()=>{})).getFile(t.name)}function Dn(e){var t,n,r,o,i,s,a,l;return{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:null!==(n=null===(t=e.field)||void 0===t?void 0:t.map(Un))&&void 0!==n?n:[],extension:[],nestedType:null!==(o=null===(r=e.nestedType)||void 0===r?void 0:r.map(Dn))&&void 0!==o?o:[],enumType:null!==(s=null===(i=e.enumType)||void 0===i?void 0:i.map(Kn))&&void 0!==s?s:[],extensionRange:null!==(l=null===(a=e.extensionRange)||void 0===a?void 0:a.map((e=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},e))))&&void 0!==l?l:[],oneofDecl:[],reservedRange:[],reservedName:[]}}function Un(e){const t=Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1});return Object.assign(t,Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?Ln(e.options):void 0}))}function Ln(e){var t,n,r;const o=Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0});return Object.assign(o,Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:null!==(t=e.targets)&&void 0!==t?t:[],editionDefaults:null!==(r=null===(n=e.editionDefaults)||void 0===n?void 0:n.map((e=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},e))))&&void 0!==r?r:[],uninterpretedOption:[]}))}function Kn(e){return{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map((e=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},e)))}}function On(e,t,...n){return n.reduce(((e,t)=>e.nestedMessages[t]),e.messages[t])}const Jn=On(Xn({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false"},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false"},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]}]}),1);var _n,jn,Mn,Pn,Hn,Qn,zn,$n,qn,er,tr,nr,rr,or,ir,sr,ar;!function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"}(_n||(_n={})),function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(jn||(jn={})),function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"}(Mn||(Mn={})),function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"}(Pn||(Pn={})),function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"}(Hn||(Hn={})),function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"}(Qn||(Qn={})),function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"}(zn||(zn={})),function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"}($n||($n={})),function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"}(qn||(qn={})),function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"}(er||(er={})),function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"}(tr||(tr={})),function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"}(nr||(nr={})),function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"}(rr||(rr={})),function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"}(or||(or={})),function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"}(ir||(ir={})),function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"}(sr||(sr={})),function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"}(ar||(ar={}));const lr={readUnknownFields:!0};function ur(e,t,n){const r=wt(e,void 0,!1);return cr(r,new ft(t),function(e){return e?Object.assign(Object.assign({},lr),e):lr}(n),!1,t.byteLength),r.message}function cr(e,t,n,r,o){var i;const s=r?t.len:t.pos+o;let a,l;const u=null!==(i=e.getUnknown())&&void 0!==i?i:[];for(;t.pos<s&&([a,l]=t.tag(),!r||l!=ct.EndGroup);){const r=e.findNumber(a);if(r)mr(e,t,r,l,n);else{const e=t.skip(l,a);n.readUnknownFields&&u.push({no:a,wireType:l,data:e})}}if(r&&(l!=ct.EndGroup||a!==o))throw new Error("invalid end group tag");u.length>0&&e.setUnknown(u)}function mr(e,t,n,r,o){switch(n.fieldKind){case"scalar":e.set(n,pr(t,n.scalar));break;case"enum":e.set(n,pr(t,ye.INT32));break;case"message":e.set(n,dr(t,o,n,e.get(n)));break;case"list":!function(e,t,n,r){var o;const i=n.field();if("message"===i.listKind)return void n.add(dr(e,r,i));const s=null!==(o=i.scalar)&&void 0!==o?o:ye.INT32,a=t==ct.LengthDelimited&&s!=ye.STRING&&s!=ye.BYTES;if(!a)return void n.add(pr(e,s));const l=e.uint32()+e.pos;for(;e.pos<l;)n.add(pr(e,s))}(t,r,e.get(n),o);break;case"map":!function(e,t,n){const r=t.field();let o,i;const s=e.pos+e.uint32();for(;e.pos<s;){const[t]=e.tag();switch(t){case 1:o=pr(e,r.mapKey);break;case 2:switch(r.mapKind){case"scalar":i=pr(e,r.scalar);break;case"enum":i=e.int32();break;case"message":i=dr(e,n,r)}}}void 0===o&&(o=Xe(r.mapKey,!1));if(void 0===i)switch(r.mapKind){case"scalar":i=Xe(r.scalar,!1);break;case"enum":i=r.enum.values[0].number;break;case"message":i=wt(r.message,void 0,!1)}t.set(o,i)}(t,e.get(n),o)}}function dr(e,t,n,r){const o=n.delimitedEncoding,i=null!=r?r:wt(n.message,void 0,!1);return cr(i,e,t,o,o?n.number:e.uint32()),i}function pr(e,t){switch(t){case ye.STRING:return e.string();case ye.BOOL:return e.bool();case ye.DOUBLE:return e.double();case ye.FLOAT:return e.float();case ye.INT32:return e.int32();case ye.INT64:return e.int64();case ye.UINT64:return e.uint64();case ye.FIXED64:return e.fixed64();case ye.BYTES:return e.bytes();case ye.FIXED32:return e.fixed32();case ye.SFIXED32:return e.sfixed32();case ye.SFIXED64:return e.sfixed64();case ye.SINT64:return e.sint64();case ye.UINT32:return e.uint32();case ye.SINT32:return e.sint32()}}function br(e,t){var n;const r=ur(Jn,jt(e));r.messageType.forEach($t),r.dependency=null!==(n=null==t?void 0:t.map((e=>e.proto.name)))&&void 0!==n?n:[];const o=tn(r,(e=>null==t?void 0:t.find((t=>t.proto.name===e))));return o.getFile(r.name)}const gr=br("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),hr=On(gr,0);function fr(e){return function(e){return $e(hr,{seconds:Ze.parse(Math.floor(e/1e3)),nanos:e%1e3*1e6})}(e.getTime())}function Er(e){return new Date(function(e){return 1e3*Number(e.seconds)+Math.ceil(e.nanos/1e6)}(e))}const Nr={writeUnknownFields:!0};function Ar(e,t,n){return yr(new ht,function(e){return e?Object.assign(Object.assign({},Nr),e):Nr}(n),wt(e,t)).finish()}function yr(e,t,n){var r;for(const r of n.sortedFields)if(n.isSet(r))Ir(e,t,n,r);else if(3==r.presence)throw new Error(`cannot encode field ${n.desc.typeName}.${r.name} to binary: required field not set`);if(t.writeUnknownFields)for(const{no:t,wireType:o,data:i}of null!==(r=n.getUnknown())&&void 0!==r?r:[])e.tag(t,o).raw(i);return e}function Ir(e,t,n,r){var o;switch(r.fieldKind){case"scalar":case"enum":Sr(e,null!==(o=r.scalar)&&void 0!==o?o:ye.INT32,r.number,n.get(r));break;case"list":!function(e,t,n,r){var o;if("message"==n.listKind){for(const o of r)Gr(e,t,n,o);return}const i=null!==(o=n.scalar)&&void 0!==o?o:ye.INT32;if(n.packed){if(!r.size)return;e.tag(n.number,ct.LengthDelimited).fork();for(const t of r)Yr(e,i,t);return void e.join()}for(const t of r)Sr(e,i,n.number,t)}(e,t,r,n.get(r));break;case"message":Gr(e,t,r,n.get(r));break;case"map":for(const[o,i]of n.get(r))Rr(e,t,r,o,i)}}function Sr(e,t,n,r){Yr(e.tag(n,function(e){switch(e){case ye.BYTES:case ye.STRING:return ct.LengthDelimited;case ye.DOUBLE:case ye.FIXED64:case ye.SFIXED64:return ct.Bit64;case ye.FIXED32:case ye.SFIXED32:case ye.FLOAT:return ct.Bit32;default:return ct.Varint}}(t)),t,r)}function Gr(e,t,n,r){n.delimitedEncoding?yr(e.tag(n.number,ct.StartGroup),t,r).tag(n.number,ct.EndGroup):yr(e.tag(n.number,ct.LengthDelimited).fork(),t,r).join()}function Rr(e,t,n,r,o){var i;switch(e.tag(n.number,ct.LengthDelimited).fork(),Sr(e,n.mapKey,1,r),n.mapKind){case"scalar":case"enum":Sr(e,null!==(i=n.scalar)&&void 0!==i?i:ye.INT32,2,o);break;case"message":yr(e.tag(2,ct.LengthDelimited).fork(),t,o).join()}e.join()}function Yr(e,t,n){switch(t){case ye.STRING:e.string(n);break;case ye.BOOL:e.bool(n);break;case ye.DOUBLE:e.double(n);break;case ye.FLOAT:e.float(n);break;case ye.INT32:e.int32(n);break;case ye.INT64:e.int64(n);break;case ye.UINT64:e.uint64(n);break;case ye.FIXED64:e.fixed64(n);break;case ye.BYTES:e.bytes(n);break;case ye.FIXED32:e.fixed32(n);break;case ye.SFIXED32:e.sfixed32(n);break;case ye.SFIXED64:e.sfixed64(n);break;case ye.SINT64:e.sint64(n);break;case ye.UINT32:e.uint32(n);break;case ye.SINT32:e.sint32(n)}}const Wr=br("Cg1iaWxpL2RtLnByb3RvEiBiaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS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YmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1FeHBvUmVwb3J0UmVzYgZwcm90bzM"),wr=On(Wr,30),Vr=On(Wr,39);var vr,Br,Fr,Tr,Zr,xr,Cr,kr,Xr,Dr,Ur,Lr,Kr,Or;!function(e){e[e.AvatarTypeNone=0]="AvatarTypeNone",e[e.AvatarTypeNFT=1]="AvatarTypeNFT"}(vr||(vr={})),function(e){e[e.BubbleTypeNone=0]="BubbleTypeNone",e[e.BubbleTypeClickButton=1]="BubbleTypeClickButton",e[e.BubbleTypeDmSettingPanel=2]="BubbleTypeDmSettingPanel"}(Br||(Br={})),function(e){e[e.CheckboxTypeNone=0]="CheckboxTypeNone",e[e.CheckboxTypeEncourage=1]="CheckboxTypeEncourage",e[e.CheckboxTypeColorDM=2]="CheckboxTypeColorDM"}(Fr||(Fr={})),function(e){e[e.NoneType=0]="NoneType",e[e.VipGradualColor=60001]="VipGradualColor"}(Tr||(Tr={})),function(e){e[e.Unknown=0]="Unknown",e[e.OGV=1]="OGV",e[e.BizPic=2]="BizPic",e[e.Mute=3]="Mute",e[e.Record=4]="Record",e[e.Cloud=5]="Cloud",e[e.AIGC=6]="AIGC"}(Zr||(Zr={})),function(e){e[e.DmMaskWallContentTypeUnknown=0]="DmMaskWallContentTypeUnknown",e[e.DmMaskWallContentTypeText=1]="DmMaskWallContentTypeText",e[e.DmMaskWallContentTypePic=2]="DmMaskWallContentTypePic"}(xr||(xr={})),function(e){e[e.ExposureTypeNone=0]="ExposureTypeNone",e[e.ExposureTypeDMSend=1]="ExposureTypeDMSend"}(Cr||(Cr={})),function(e){e[e.PostPanelBizTypeNone=0]="PostPanelBizTypeNone",e[e.PostPanelBizTypeEncourage=1]="PostPanelBizTypeEncourage",e[e.PostPanelBizTypeColorDM=2]="PostPanelBizTypeColorDM",e[e.PostPanelBizTypeNFTDM=3]="PostPanelBizTypeNFTDM",e[e.PostPanelBizTypeFragClose=4]="PostPanelBizTypeFragClose",e[e.PostPanelBizTypeRecommend=5]="PostPanelBizTypeRecommend",e[e.PostPanelBizTypePlotLeak=6]="PostPanelBizTypePlotLeak",e[e.PostPanelBizTypeAntiHarassment=7]="PostPanelBizTypeAntiHarassment"}(kr||(kr={})),function(e){e[e.PostStatusNormal=0]="PostStatusNormal",e[e.PostStatusClosed=1]="PostStatusClosed"}(Xr||(Xr={})),function(e){e[e.RenderTypeNone=0]="RenderTypeNone",e[e.RenderTypeSingle=1]="RenderTypeSingle",e[e.RenderTypeRotation=2]="RenderTypeRotation"}(Dr||(Dr={})),function(e){e[e.None=0]="None",e[e.Exposure=1]="Exposure",e[e.Assist=2]="Assist"}(Ur||(Ur={})),function(e){e[e.Normal=0]="Normal",e[e.Translate=1]="Translate"}(Lr||(Lr={})),function(e){e[e.CC=0]="CC",e[e.AI=1]="AI"}(Kr||(Kr={})),function(e){e[e.ToastFunctionTypeNone=0]="ToastFunctionTypeNone",e[e.ToastFunctionTypePostPanel=1]="ToastFunctionTypePostPanel"}(Or||(Or={}));const Jr=On(br("CgxkYW51bmkucHJvdG8SEWRhbnVuaS5kYW5tYWt1LnYxIt4CCgdEYW5tYWt1EgwKBEZDSUQYASABKAkSDAoERE1JRBgCIAEoCRIQCghwcm9ncmVzcxgDIAEoBRIlCgRtb2RlGAQgASgOMhcuZGFudW5pLmRhbm1ha3UudjEuTW9kZRIQCghmb250c2l6ZRgFIAEoBRINCgVjb2xvchgGIAEoBRIQCghzZW5kZXJJRBgHIAEoCRIPCgdjb250ZW50GAggASgJEikKBWN0aW1lGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIOCgZ3ZWlnaHQYCiABKAUSJQoEcG9vbBgLIAEoDjIXLmRhbnVuaS5kYW5tYWt1LnYxLlBvb2wSDAoEYXR0chgMIAMoCRIQCghwbGF0Zm9ybRgNIAEoCRIRCgRTUE1PGA4gASgJSACIAQESEgoFZXh0cmEYDyABKAlIAYgBAUIHCgVfU1BNT0IICgZfZXh0cmEiPAoMRGFubWFrdVJlcGx5EiwKCGRhbm1ha3VzGAEgAygLMhouZGFudW5pLmRhbm1ha3UudjEuRGFubWFrdSo9CgRNb2RlEgoKBk5vcm1hbBAAEgoKBkJvdHRvbRABEgcKA1RvcBACEgsKB1JldmVyc2UQAxIHCgNFeHQQBCopCgRQb29sEgcKA0RlZhAAEgcKA1N1YhABEgcKA0FkdhACEgYKAkl4EANQAGIGcHJvdG8z",[gr]),1);var _r,jr;!function(e){e[e.Normal=0]="Normal",e[e.Bottom=1]="Bottom",e[e.Top=2]="Top",e[e.Reverse=3]="Reverse",e[e.Ext=4]="Ext"}(_r||(_r={})),function(e){e[e.Def=0]="Def",e[e.Sub=1]="Sub",e[e.Adv=2]="Adv",e[e.Ix=3]="Ix"}(jr||(jr={}));const Mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pr="ARRAYBUFFER not supported by this environment",Hr="UINT8ARRAY not supported by this environment";function Qr(e,t,n,r){let o,i,s;const a=t||[0],l=(n=n||0)>>>3,u=-1===r?3:0;for(o=0;o<e.length;o+=1)s=o+l,i=s>>>2,a.length<=i&&a.push(0),a[i]|=e[o]<<8*(u+r*(s%4));return{value:a,binLen:8*e.length+n}}function zr(e,t,n){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,r){return function(e,t,n,r){let o,i,s,a;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");const l=t||[0],u=(n=n||0)>>>3,c=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(o>>>1)+u,s=a>>>2;l.length<=s;)l.push(0);l[s]|=i<<8*(c+r*(a%4))}return{value:l,binLen:4*e.length+n}}(e,t,r,n)};case"TEXT":return function(e,r,o){return function(e,t,n,r,o){let i,s,a,l,u,c,m,d,p=0;const b=n||[0],g=(r=r||0)>>>3;if("UTF8"===t)for(m=-1===o?3:0,a=0;a<e.length;a+=1)for(i=e.charCodeAt(a),s=[],128>i?s.push(i):2048>i?(s.push(192|i>>>6),s.push(128|63&i)):55296>i||57344<=i?s.push(224|i>>>12,128|i>>>6&63,128|63&i):(a+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(a)),s.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),l=0;l<s.length;l+=1){for(c=p+g,u=c>>>2;b.length<=u;)b.push(0);b[u]|=s[l]<<8*(m+o*(c%4)),p+=1}else for(m=-1===o?2:0,d="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,a=0;a<e.length;a+=1){for(i=e.charCodeAt(a),!0===d&&(l=255&i,i=l<<8|i>>>8),c=p+g,u=c>>>2;b.length<=u;)b.push(0);b[u]|=i<<8*(m+o*(c%4)),p+=2}return{value:b,binLen:8*p+r}}(e,t,r,o,n)};case"B64":return function(e,t,r){return function(e,t,n,r){let o,i,s,a,l,u,c,m=0;const d=t||[0],p=(n=n||0)>>>3,b=-1===r?3:0,g=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==g&&g<e.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<e.length;i+=4){for(l=e.substr(i,4),a=0,s=0;s<l.length;s+=1)o=Mr.indexOf(l.charAt(s)),a|=o<<18-6*s;for(s=0;s<l.length-1;s+=1){for(c=m+p,u=c>>>2;d.length<=u;)d.push(0);d[u]|=(a>>>16-8*s&255)<<8*(b+r*(c%4)),m+=1}}return{value:d,binLen:8*m+n}}(e,t,r,n)};case"BYTES":return function(e,t,r){return function(e,t,n,r){let o,i,s,a;const l=t||[0],u=(n=n||0)>>>3,c=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),a=i+u,s=a>>>2,l.length<=s&&l.push(0),l[s]|=o<<8*(c+r*(a%4));return{value:l,binLen:8*e.length+n}}(e,t,r,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(Pr)}return function(e,t,r){return function(e,t,n,r){return Qr(new Uint8Array(e),t,n,r)}(e,t,r,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Hr)}return function(e,t,r){return Qr(e,t,r,n)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function $r(e,t,n,r){switch(e){case"HEX":return function(e){return function(e,t,n,r){const o="0123456789abcdef";let i,s,a="";const l=t/8,u=-1===n?3:0;for(i=0;i<l;i+=1)s=e[i>>>2]>>>8*(u+n*(i%4)),a+=o.charAt(s>>>4&15)+o.charAt(15&s);return r.outputUpper?a.toUpperCase():a}(e,t,n,r)};case"B64":return function(e){return function(e,t,n,r){let o,i,s,a,l,u="";const c=t/8,m=-1===n?3:0;for(o=0;o<c;o+=3)for(a=o+1<c?e[o+1>>>2]:0,l=o+2<c?e[o+2>>>2]:0,s=(e[o>>>2]>>>8*(m+n*(o%4))&255)<<16|(a>>>8*(m+n*((o+1)%4))&255)<<8|l>>>8*(m+n*((o+2)%4))&255,i=0;i<4;i+=1)u+=8*o+6*i<=t?Mr.charAt(s>>>6*(3-i)&63):r.b64Pad;return u}(e,t,n,r)};case"BYTES":return function(e){return function(e,t,n){let r,o,i="";const s=t/8,a=-1===n?3:0;for(r=0;r<s;r+=1)o=e[r>>>2]>>>8*(a+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,t,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(Pr)}return function(e){return function(e,t,n){let r;const o=t/8,i=new ArrayBuffer(o),s=new Uint8Array(i),a=-1===n?3:0;for(r=0;r<o;r+=1)s[r]=e[r>>>2]>>>8*(a+n*(r%4))&255;return i}(e,t,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Hr)}return function(e){return function(e,t,n){let r;const o=t/8,i=-1===n?3:0,s=new Uint8Array(o);for(r=0;r<o;r+=1)s[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return s}(e,t,n)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}const qr=4294967296,eo=[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],to=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],no=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],ro="Chosen SHA variant is not supported",oo="Cannot set numRounds with MAC";function io(e,t){let n,r;const o=e.binLen>>>3,i=t.binLen>>>3,s=o<<3,a=4-o<<3;if(o%4!=0){for(n=0;n<i;n+=4)r=o+n>>>2,e.value[r]|=t.value[n>>>2]<<s,e.value.push(0),e.value[r+1]|=t.value[n>>>2]>>>a;return(e.value.length<<2)-4>=i+o&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function so(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function ao(e,t,n,r){const o=e+" must include a value and format";if(!t){if(!r)throw new Error(o);return r}if(void 0===t.value||!t.format)throw new Error(o);return zr(t.format,t.encoding||"UTF8",n)(t.value)}class lo{constructor(e,t,n){const r=n||{};if(this.t=t,this.i=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.H=!1,this.S=[],this.p=[]}update(e){let t,n=0;const r=this.m>>>5,o=this.C(e,this.h,this.u),i=o.binLen,s=o.value,a=i>>>5;for(t=0;t<a;t+=r)n+this.m<=i&&(this.U=this.v(s.slice(t,t+r),this.U),n+=this.m);return this.A+=n,this.h=s.slice(n>>>5),this.u=i%this.m,this.l=!0,this}getHash(e,t){let n,r,o=this.R;const i=so(t);if(this.K){if(-1===i.outputLen)throw new Error("Output length must be specified in options");o=i.outputLen}const s=$r(e,o,this.T,i);if(this.H&&this.g)return s(this.g(i));for(r=this.F(this.h.slice(),this.u,this.A,this.L(this.U),o),n=1;n<this.numRounds;n+=1)this.K&&o%32!=0&&(r[r.length-1]&=16777215>>>24-o%32),r=this.F(r,o,0,this.B(this.o),o);return s(r)}setHMACKey(e,t,n){if(!this.M)throw new Error("Variant does not support HMAC");if(this.l)throw new Error("Cannot set MAC key after calling update");const r=zr(t,(n||{}).encoding||"UTF8",this.T);this.k(r(e))}k(e){const t=this.m>>>3,n=t/4-1;let r;if(1!==this.numRounds)throw new Error(oo);if(this.H)throw new Error("MAC key already set");for(t<e.binLen/8&&(e.value=this.F(e.value,e.binLen,0,this.B(this.o),this.R));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.S[r]=909522486^e.value[r],this.p[r]=1549556828^e.value[r];this.U=this.v(this.S,this.U),this.A=this.m,this.H=!0}getHMAC(e,t){const n=so(t);return $r(e,this.R,this.T,n)(this.Y())}Y(){let e;if(!this.H)throw new Error("Cannot call getHMAC without first setting MAC key");const t=this.F(this.h.slice(),this.u,this.A,this.L(this.U),this.R);return e=this.v(this.p,this.B(this.o)),e=this.F(t,this.R,this.m,e,this.R),e}}function uo(e,t){return e<<t|e>>>32-t}function co(e,t){return e>>>t|e<<32-t}function mo(e,t){return e>>>t}function po(e,t,n){return e^t^n}function bo(e,t,n){return e&t^~e&n}function go(e,t,n){return e&t^e&n^t&n}function ho(e){return co(e,2)^co(e,13)^co(e,22)}function fo(e,t){const n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function Eo(e,t,n,r){const o=(65535&e)+(65535&t)+(65535&n)+(65535&r);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16))<<16|65535&o}function No(e,t,n,r,o){const i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function Ao(e){return co(e,7)^co(e,18)^mo(e,3)}function yo(e){return co(e,6)^co(e,11)^co(e,25)}function Io(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function So(e,t){let n,r,o,i,s,a,l;const u=[];for(n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],l=0;l<80;l+=1)u[l]=l<16?e[l]:uo(u[l-3]^u[l-8]^u[l-14]^u[l-16],1),a=l<20?No(uo(n,5),bo(r,o,i),s,1518500249,u[l]):l<40?No(uo(n,5),po(r,o,i),s,1859775393,u[l]):l<60?No(uo(n,5),go(r,o,i),s,2400959708,u[l]):No(uo(n,5),po(r,o,i),s,3395469782,u[l]),s=i,i=o,o=uo(r,30),r=n,n=a;return t[0]=fo(n,t[0]),t[1]=fo(r,t[1]),t[2]=fo(o,t[2]),t[3]=fo(i,t[3]),t[4]=fo(s,t[4]),t}function Go(e,t,n,r){let o;const i=15+(t+65>>>9<<4),s=t+n;for(;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&s,e[i-1]=s/qr|0,o=0;o<e.length;o+=16)r=So(e.slice(o,o+16),r);return r}let Ro=class extends lo{constructor(e,t,n){if("SHA-1"!==e)throw new Error(ro);super(e,t,n);const r=n||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=zr(this.t,this.i,this.T),this.v=So,this.L=function(e){return e.slice()},this.B=Io,this.F=Go,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.R=160,this.K=!1,r.hmacKey&&this.k(ao("hmacKey",r.hmacKey,this.T))}};function Yo(e){let t;return t="SHA-224"==e?to.slice():no.slice(),t}function Wo(e,t){let n,r,o,i,s,a,l,u,c,m,d;const p=[];for(n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],d=0;d<64;d+=1)p[d]=d<16?e[d]:Eo(co(b=p[d-2],17)^co(b,19)^mo(b,10),p[d-7],Ao(p[d-15]),p[d-16]),c=No(u,yo(s),bo(s,a,l),eo[d],p[d]),m=fo(ho(n),go(n,r,o)),u=l,l=a,a=s,s=fo(i,c),i=o,o=r,r=n,n=fo(c,m);var b;return t[0]=fo(n,t[0]),t[1]=fo(r,t[1]),t[2]=fo(o,t[2]),t[3]=fo(i,t[3]),t[4]=fo(s,t[4]),t[5]=fo(a,t[5]),t[6]=fo(l,t[6]),t[7]=fo(u,t[7]),t}let wo=class extends lo{constructor(e,t,n){if("SHA-224"!==e&&"SHA-256"!==e)throw new Error(ro);super(e,t,n);const r=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=zr(this.t,this.i,this.T),this.v=Wo,this.L=function(e){return e.slice()},this.B=Yo,this.F=function(t,n,r,o){return function(e,t,n,r,o){let i,s;const a=15+(t+65>>>9<<4),l=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/qr|0,i=0;i<e.length;i+=16)r=Wo(e.slice(i,i+16),r);return s="SHA-224"===o?[r[0],r[1],r[2],r[3],r[4],r[5],r[6]]:r,s}(t,n,r,o,e)},this.U=Yo(e),this.m=512,this.R="SHA-224"===e?224:256,this.K=!1,r.hmacKey&&this.k(ao("hmacKey",r.hmacKey,this.T))}};class Vo{constructor(e,t){this.N=e,this.I=t}}function vo(e,t){let n;return t>32?(n=64-t,new Vo(e.I<<t|e.N>>>n,e.N<<t|e.I>>>n)):0!==t?(n=32-t,new Vo(e.N<<t|e.I>>>n,e.I<<t|e.N>>>n)):e}function Bo(e,t){let n;return t<32?(n=32-t,new Vo(e.N>>>t|e.I<<n,e.I>>>t|e.N<<n)):(n=64-t,new Vo(e.I>>>t|e.N<<n,e.N>>>t|e.I<<n))}function Fo(e,t){return new Vo(e.N>>>t,e.I>>>t|e.N<<32-t)}function To(e,t,n){return new Vo(e.N&t.N^e.N&n.N^t.N&n.N,e.I&t.I^e.I&n.I^t.I&n.I)}function Zo(e){const t=Bo(e,28),n=Bo(e,34),r=Bo(e,39);return new Vo(t.N^n.N^r.N,t.I^n.I^r.I)}function xo(e,t){let n,r;n=(65535&e.I)+(65535&t.I),r=(e.I>>>16)+(t.I>>>16)+(n>>>16);const o=(65535&r)<<16|65535&n;return n=(65535&e.N)+(65535&t.N)+(r>>>16),r=(e.N>>>16)+(t.N>>>16)+(n>>>16),new Vo((65535&r)<<16|65535&n,o)}function Co(e,t,n,r){let o,i;o=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I),i=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(o>>>16);const s=(65535&i)<<16|65535&o;return o=(65535&e.N)+(65535&t.N)+(65535&n.N)+(65535&r.N)+(i>>>16),i=(e.N>>>16)+(t.N>>>16)+(n.N>>>16)+(r.N>>>16)+(o>>>16),new Vo((65535&i)<<16|65535&o,s)}function ko(e,t,n,r,o){let i,s;i=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I)+(65535&o.I),s=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(o.I>>>16)+(i>>>16);const a=(65535&s)<<16|65535&i;return i=(65535&e.N)+(65535&t.N)+(65535&n.N)+(65535&r.N)+(65535&o.N)+(s>>>16),s=(e.N>>>16)+(t.N>>>16)+(n.N>>>16)+(r.N>>>16)+(o.N>>>16)+(i>>>16),new Vo((65535&s)<<16|65535&i,a)}function Xo(e,t){return new Vo(e.N^t.N,e.I^t.I)}function Do(e){const t=Bo(e,19),n=Bo(e,61),r=Fo(e,6);return new Vo(t.N^n.N^r.N,t.I^n.I^r.I)}function Uo(e){const t=Bo(e,1),n=Bo(e,8),r=Fo(e,7);return new Vo(t.N^n.N^r.N,t.I^n.I^r.I)}function Lo(e){const t=Bo(e,14),n=Bo(e,18),r=Bo(e,41);return new Vo(t.N^n.N^r.N,t.I^n.I^r.I)}const Ko=[new Vo(eo[0],3609767458),new Vo(eo[1],602891725),new Vo(eo[2],3964484399),new Vo(eo[3],2173295548),new Vo(eo[4],4081628472),new Vo(eo[5],3053834265),new Vo(eo[6],2937671579),new Vo(eo[7],3664609560),new Vo(eo[8],2734883394),new Vo(eo[9],1164996542),new Vo(eo[10],1323610764),new Vo(eo[11],3590304994),new Vo(eo[12],4068182383),new Vo(eo[13],991336113),new Vo(eo[14],633803317),new Vo(eo[15],3479774868),new Vo(eo[16],2666613458),new Vo(eo[17],944711139),new Vo(eo[18],2341262773),new Vo(eo[19],2007800933),new Vo(eo[20],1495990901),new Vo(eo[21],1856431235),new Vo(eo[22],3175218132),new Vo(eo[23],2198950837),new Vo(eo[24],3999719339),new Vo(eo[25],766784016),new Vo(eo[26],2566594879),new Vo(eo[27],3203337956),new Vo(eo[28],1034457026),new Vo(eo[29],2466948901),new Vo(eo[30],3758326383),new Vo(eo[31],168717936),new Vo(eo[32],1188179964),new Vo(eo[33],1546045734),new Vo(eo[34],1522805485),new Vo(eo[35],2643833823),new Vo(eo[36],2343527390),new Vo(eo[37],1014477480),new Vo(eo[38],1206759142),new Vo(eo[39],344077627),new Vo(eo[40],1290863460),new Vo(eo[41],3158454273),new Vo(eo[42],3505952657),new Vo(eo[43],106217008),new Vo(eo[44],3606008344),new Vo(eo[45],1432725776),new Vo(eo[46],1467031594),new Vo(eo[47],851169720),new Vo(eo[48],3100823752),new Vo(eo[49],1363258195),new Vo(eo[50],3750685593),new Vo(eo[51],3785050280),new Vo(eo[52],3318307427),new Vo(eo[53],3812723403),new Vo(eo[54],2003034995),new Vo(eo[55],3602036899),new Vo(eo[56],1575990012),new Vo(eo[57],1125592928),new Vo(eo[58],2716904306),new Vo(eo[59],442776044),new Vo(eo[60],593698344),new Vo(eo[61],3733110249),new Vo(eo[62],2999351573),new Vo(eo[63],3815920427),new Vo(3391569614,3928383900),new Vo(3515267271,566280711),new Vo(3940187606,3454069534),new Vo(4118630271,4000239992),new Vo(116418474,1914138554),new Vo(174292421,2731055270),new Vo(289380356,3203993006),new Vo(460393269,320620315),new Vo(685471733,587496836),new Vo(852142971,1086792851),new Vo(1017036298,365543100),new Vo(1126000580,2618297676),new Vo(1288033470,3409855158),new Vo(1501505948,4234509866),new Vo(1607167915,987167468),new Vo(1816402316,1246189591)];function Oo(e){return"SHA-384"===e?[new Vo(3418070365,to[0]),new Vo(1654270250,to[1]),new Vo(2438529370,to[2]),new Vo(355462360,to[3]),new Vo(1731405415,to[4]),new Vo(41048885895,to[5]),new Vo(3675008525,to[6]),new Vo(1203062813,to[7])]:[new Vo(no[0],4089235720),new Vo(no[1],2227873595),new Vo(no[2],4271175723),new Vo(no[3],1595750129),new Vo(no[4],2917565137),new Vo(no[5],725511199),new Vo(no[6],4215389547),new Vo(no[7],327033209)]}function Jo(e,t){let n,r,o,i,s,a,l,u,c,m,d,p;const b=[];for(n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],d=0;d<80;d+=1)d<16?(p=2*d,b[d]=new Vo(e[p],e[p+1])):b[d]=Co(Do(b[d-2]),b[d-7],Uo(b[d-15]),b[d-16]),c=ko(u,Lo(s),(h=a,f=l,new Vo((g=s).N&h.N^~g.N&f.N,g.I&h.I^~g.I&f.I)),Ko[d],b[d]),m=xo(Zo(n),To(n,r,o)),u=l,l=a,a=s,s=xo(i,c),i=o,o=r,r=n,n=xo(c,m);var g,h,f;return t[0]=xo(n,t[0]),t[1]=xo(r,t[1]),t[2]=xo(o,t[2]),t[3]=xo(i,t[3]),t[4]=xo(s,t[4]),t[5]=xo(a,t[5]),t[6]=xo(l,t[6]),t[7]=xo(u,t[7]),t}let _o=class extends lo{constructor(e,t,n){if("SHA-384"!==e&&"SHA-512"!==e)throw new Error(ro);super(e,t,n);const r=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=zr(this.t,this.i,this.T),this.v=Jo,this.L=function(e){return e.slice()},this.B=Oo,this.F=function(t,n,r,o){return function(e,t,n,r,o){let i,s;const a=31+(t+129>>>10<<5),l=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/qr|0,i=0;i<e.length;i+=32)r=Jo(e.slice(i,i+32),r);return s="SHA-384"===o?[r[0].N,r[0].I,r[1].N,r[1].I,r[2].N,r[2].I,r[3].N,r[3].I,r[4].N,r[4].I,r[5].N,r[5].I]:[r[0].N,r[0].I,r[1].N,r[1].I,r[2].N,r[2].I,r[3].N,r[3].I,r[4].N,r[4].I,r[5].N,r[5].I,r[6].N,r[6].I,r[7].N,r[7].I],s}(t,n,r,o,e)},this.U=Oo(e),this.m=1024,this.R="SHA-384"===e?384:512,this.K=!1,r.hmacKey&&this.k(ao("hmacKey",r.hmacKey,this.T))}};const jo=[new Vo(0,1),new Vo(0,32898),new Vo(2147483648,32906),new Vo(2147483648,2147516416),new Vo(0,32907),new Vo(0,2147483649),new Vo(2147483648,2147516545),new Vo(2147483648,32777),new Vo(0,138),new Vo(0,136),new Vo(0,2147516425),new Vo(0,2147483658),new Vo(0,2147516555),new Vo(2147483648,139),new Vo(2147483648,32905),new Vo(2147483648,32771),new Vo(2147483648,32770),new Vo(2147483648,128),new Vo(0,32778),new Vo(2147483648,2147483658),new Vo(2147483648,2147516545),new Vo(2147483648,32896),new Vo(0,2147483649),new Vo(2147483648,2147516424)],Mo=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function Po(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=[new Vo(0,0),new Vo(0,0),new Vo(0,0),new Vo(0,0),new Vo(0,0)];return n}function Ho(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function Qo(e,t){let n,r,o,i;const s=[],a=[];if(null!==e)for(r=0;r<e.length;r+=2)t[(r>>>1)%5][(r>>>1)/5|0]=Xo(t[(r>>>1)%5][(r>>>1)/5|0],new Vo(e[r+1],e[r]));for(n=0;n<24;n+=1){for(i=Po(),r=0;r<5;r+=1)s[r]=(l=t[r][0],u=t[r][1],c=t[r][2],m=t[r][3],d=t[r][4],new Vo(l.N^u.N^c.N^m.N^d.N,l.I^u.I^c.I^m.I^d.I));for(r=0;r<5;r+=1)a[r]=Xo(s[(r+4)%5],vo(s[(r+1)%5],1));for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)t[r][o]=Xo(t[r][o],a[r]);for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)i[o][(2*r+3*o)%5]=vo(t[r][o],Mo[r][o]);for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)t[r][o]=Xo(i[r][o],new Vo(~i[(r+1)%5][o].N&i[(r+2)%5][o].N,~i[(r+1)%5][o].I&i[(r+2)%5][o].I));t[0][0]=Xo(t[0][0],jo[n])}var l,u,c,m,d;return t}function zo(e){let t,n,r=0;const o=[0,0],i=[4294967295&e,e/qr&2097151];for(t=6;t>=0;t--)n=i[t>>2]>>>8*t&255,0===n&&0===r||(o[r+1>>2]|=n<<8*(r+1),r+=1);return r=0!==r?r:1,o[0]|=r,{value:r+1>4?o:[o[0]],binLen:8+8*r}}function $o(e){return io(zo(e.binLen),e)}function qo(e,t){let n,r=zo(t);r=io(r,e);const o=t>>>2,i=(o-r.value.length%o)%o;for(n=0;n<i;n++)r.value.push(0);return r.value}let ei=class extends lo{constructor(e,t,n){let r=6,o=0;super(e,t,n);const i=n||{};if(1!==this.numRounds){if(i.kmacKey||i.hmacKey)throw new Error(oo);if("CSHAKE128"===this.o||"CSHAKE256"===this.o)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=zr(this.t,this.i,this.T),this.v=Qo,this.L=Ho,this.B=Po,this.U=Po(),this.K=!1,e){case"SHA3-224":this.m=o=1152,this.R=224,this.M=!0,this.g=this.Y;break;case"SHA3-256":this.m=o=1088,this.R=256,this.M=!0,this.g=this.Y;break;case"SHA3-384":this.m=o=832,this.R=384,this.M=!0,this.g=this.Y;break;case"SHA3-512":this.m=o=576,this.R=512,this.M=!0,this.g=this.Y;break;case"SHAKE128":r=31,this.m=o=1344,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"SHAKE256":r=31,this.m=o=1088,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"KMAC128":r=4,this.m=o=1344,this.X(n),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"KMAC256":r=4,this.m=o=1088,this.X(n),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"CSHAKE128":this.m=o=1344,r=this.O(n),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"CSHAKE256":this.m=o=1088,r=this.O(n),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;default:throw new Error(ro)}this.F=function(e,t,n,i,s){return function(e,t,n,r,o,i,s){let a,l,u=0;const c=[],m=o>>>5,d=t>>>5;for(a=0;a<d&&t>=o;a+=m)r=Qo(e.slice(a,a+m),r),t-=o;for(e=e.slice(a),t%=o;e.length<m;)e.push(0);for(a=t>>>3,e[a>>2]^=i<<a%4*8,e[m-1]^=2147483648,r=Qo(e,r);32*c.length<s&&(l=r[u%5][u/5|0],c.push(l.I),!(32*c.length>=s));)c.push(l.N),u+=1,0==64*u%o&&(Qo(null,r),u=0);return c}(e,t,0,i,o,r,s)},i.hmacKey&&this.k(ao("hmacKey",i.hmacKey,this.T))}O(e,t){const n=function(e){const t=e;return{funcName:ao("funcName",t.funcName,1,{value:[],binLen:0}),customization:ao("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);const r=io($o(n.funcName),$o(n.customization));if(0!==n.customization.binLen||0!==n.funcName.binLen){const e=qo(r,this.m>>>3);for(let t=0;t<e.length;t+=this.m>>>5)this.U=this.v(e.slice(t,t+(this.m>>>5)),this.U),this.A+=this.m;return 4}return 31}X(e){const t=function(e){const t=e;return{kmacKey:ao("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:ao("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this.O(e,t.funcName);const n=qo($o(t.kmacKey),this.m>>>3);for(let e=0;e<n.length;e+=this.m>>>5)this.U=this.v(n.slice(e,e+(this.m>>>5)),this.U),this.A+=this.m;this.H=!0}_(e){const t=io({value:this.h.slice(),binLen:this.u},function(e){let t,n,r=0;const o=[0,0],i=[4294967295&e,e/qr&2097151];for(t=6;t>=0;t--)n=i[t>>2]>>>8*t&255,0===n&&0===r||(o[r>>2]|=n<<8*r,r+=1);return r=0!==r?r:1,o[r>>2]|=r<<8*r,{value:r+1>4?o:[o[0]],binLen:8+8*r}}(e.outputLen));return this.F(t.value,t.binLen,this.A,this.L(this.U),e.outputLen)}};class ti{constructor(e,t,n){if("SHA-1"==e)this.P=new Ro(e,t,n);else if("SHA-224"==e||"SHA-256"==e)this.P=new wo(e,t,n);else if("SHA-384"==e||"SHA-512"==e)this.P=new _o(e,t,n);else{if("SHA3-224"!=e&&"SHA3-256"!=e&&"SHA3-384"!=e&&"SHA3-512"!=e&&"SHAKE128"!=e&&"SHAKE256"!=e&&"CSHAKE128"!=e&&"CSHAKE256"!=e&&"KMAC128"!=e&&"KMAC256"!=e)throw new Error(ro);this.P=new ei(e,t,n)}}update(e){return this.P.update(e),this}getHash(e,t){return this.P.getHash(e,t)}setHMACKey(e,t,n){this.P.setHMACKey(e,t,n)}getHMAC(e,t){return this.P.getHMAC(e,t)}}const ni={acfun:"acfun",baha:"baha",bgm:"bgm",bili:"bili",bglobal:"bglobal",ddplay:"ddplay",tucao:"tucao"},ri=Object.keys(ni);class oi{constructor(e,t){this.id=e,this.domain=t}toString(){return`${this.id}@${this.domain}`}static fromNull(e){return new oi("anonymous",e||"danuni")}static fromBili({cid:e,mid:t,midHash:n}){return e?new oi(e.toString(),ni.bili):t?new oi(t.toString(),ni.bili):n?new oi(n,ni.bili):this.fromNull(ni.bili)}static fromUnknown(e,t){return e?new oi(e,t):this.fromNull(t)}}function ii(e="",t,n,r=8){return new ti("SHA3-256","TEXT").update(e+t+bi.transCtime(n).toISOString()).getHash("HEX").slice(0,r)}var si=Object.freeze({__proto__:null,UniID:oi,createDMID:ii,domainPreset:ni,platforms:ri});const ai=(e,t)=>"bigint"==typeof t?t.toString():t;class li{constructor(e){this.bin=e}set1(e){this.bin|=1<<e}set0(e){this.bin&=~(1<<e)}}const ui={fromBin(e=0,t){const n=(e=>{const t=[];do{t.unshift(!!(1&e)),e>>=1}while(e);return t})(e),r=[];return"bili"===t&&(n[0]&&r.push("Protect"),n[1]&&r.push("FromLive"),n[2]&&r.push("HighLike")),r},toBin(e=[],t){const n=new li(0);return"bili"===t&&(e.includes("Protect")&&n.set1(0),e.includes("FromLive")&&n.set1(1),e.includes("HighLike")&&n.set1(2)),n.bin}};var ci,mi,di,pi;!function(e){e.Chapter="ch",e.Review="rev",e.OP="op",e.Intermission="int",e.ED="ed",e.Preview="prvw",e.Cut="cut",e.Duplicates="dup",e.AdBiz="biz",e.AdUnpaid="promo"}(ci||(ci={})),function(e){e[e.Disabled=-1]="Disabled",e[e.ShowOverlay=0]="ShowOverlay",e[e.ManualSkip=1]="ManualSkip",e[e.AutoSkip=2]="AutoSkip"}(mi||(mi={})),function(e){e[e.Normal=0]="Normal",e[e.Bottom=1]="Bottom",e[e.Top=2]="Top",e[e.Reverse=3]="Reverse",e[e.Ext=4]="Ext"}(di||(di={})),function(e){e[e.Def=0]="Def",e[e.Sub=1]="Sub",e[e.Adv=2]="Adv",e[e.Ix=3]="Ix"}(pi||(pi={}));class bi{constructor(e,t=0,n=di.Normal,r=25,o=16777215,i=oi.fromNull().toString(),s="",a=new Date,l=5,u=pi.Def,c=[],m,d,p,b){this.FCID=e,this.progress=t,this.mode=n,this.fontsize=r,this.color=o,this.senderID=i,this.content=s,this.ctime=a,this.weight=l,this.pool=u,this.attr=c,this.platform=m,this.SPMO=d,this.extraStr=p,this.DMID=b,t<0&&(this.progress=0),(n<di.Normal||n>di.Ext)&&(this.mode=di.Normal),r<=0&&(this.fontsize=25),o<=0&&(this.color=16777215),(l<=0||l>10)&&(this.weight=5),(u<pi.Def||u>pi.Ix)&&(this.pool=pi.Def),b||(b=this.toDMID()),this.progress=Number.parseFloat(t.toFixed(3))}static create(e){return e?new bi(e.FCID||oi.fromNull().toString(),e.progress,e.mode,e.fontsize,e.color,e.senderID,e.content,e.ctime,e.weight,e.pool,e.attr,e.platform,e.SPMO,"object"==typeof e.extra?JSON.stringify(e.extra):e.extra||e.extraStr,e.DMID):new bi(oi.fromNull().toString())}get extra(){const e=JSON.parse(this.extraStr||"{}");return"object"==typeof e?e:{}}get isFrom3rdPlatform(){return!(!this.platform||!ri.includes(this.platform))}toDMID(){return ii(this.content,this.senderID,this.ctime)}minify(){const e=bi.create(),t=bi.create(this);for(const n in t){const r=n,o=t[r];"FCID"!==n&&(o?o===e[r]?delete t[r]:("attr"===r&&Array.isArray(o)&&0===o.length&&delete t[r],"extraStr"===r&&"{}"===o&&delete t[r]):delete t[r])}return JSON.parse(JSON.stringify(t))}downgradeAdvcancedDan(){if(!this.extra)return this}static transCtime(e,t){return"number"==typeof e||"bigint"==typeof e?(n=e,"ms"===t||"s"!==t&&n<1e8?new Date(Number(e)):new Date(1e3*Number(e))):"string"==typeof e?/^\d+n$/.test(e)?new Date(Number(e.slice(0,-1))):new Date(e):e;var n}static transMode(e,t){let n=di.Normal;switch(t){case"bili":switch(e){case 4:n=di.Bottom;break;case 5:n=di.Top;break;case 6:n=di.Reverse;break;case 7:case 8:case 9:n=di.Ext}break;case"dplayer":case"artplayer":1===e?n=di.Top:2===e&&(n=di.Bottom);break;case"ddplay":n=this.transMode(e,"bili");break;default:n=di.Normal}return n}static fromBili(e,t,n){e.oid&&!n&&(n=e.oid);const r=oi.fromBili({cid:n}),o=oi.fromBili({midHash:e.midHash});let i=di.Normal;const s=e.pool,a={bili:{mode:e.mode,pool:e.pool}};switch(e.mode){case 4:i=di.Bottom;break;case 5:i=di.Top;break;case 6:i=di.Reverse;break;case 7:i=di.Ext,a.bili.adv=e.content;break;case 8:i=di.Ext,a.bili.code=e.content;break;case 9:i=di.Ext,a.bili.bas=e.content;break;default:i=di.Normal}return this.create({...e,FCID:r.toString(),mode:i,senderID:o.toString(),ctime:this.transCtime(e.ctime,"s"),weight:e.weight?e.weight:s===pi.Ix?1:0,pool:s,attr:ui.fromBin(e.attr,"bili"),platform:ni.bili,SPMO:t,extra:e.mode>=7?JSON.stringify(a,ai):void 0})}static fromBiliCommand(e,t,n){e.oid&&!n&&(n=e.oid);const r=oi.fromBili({cid:n}),o=oi.fromBili({mid:e.mid});return this.create({...e,FCID:r.toString(),mode:di.Ext,senderID:o.toString(),ctime:new Date(`${e.ctime} GMT+0800`),weight:10,pool:pi.Adv,attr:["Protect"],platform:ni.bili,SPMO:t,extra:JSON.stringify({bili:{command:e}},ai)})}static fromDplayer(e,t,n){const r=oi.fromUnknown(t,n),o=oi.fromUnknown(e.midHash,n);return this.create({...e,FCID:r.toString(),mode:this.transMode(e.mode,"dplayer"),senderID:o.toString(),platform:n})}toDplayer(){let e=0;return this.mode===di.Top?e=1:this.mode===di.Bottom&&(e=2),{mode:e,progress:this.progress,color:this.color,midHash:this.senderID,content:this.content}}static fromArtplayer(e,t,n){const r=oi.fromUnknown(t,n),o=oi.fromUnknown("",n);let i=e.border?{artplayer:{border:e.border,style:{}}}:void 0;return e.style&&(i=i?{...i,artplayer:{...i.artplayer,style:e.style}}:{artplayer:{style:e.style}}),this.create({...e,FCID:r.toString(),mode:this.transMode(e.mode,"artplayer"),senderID:o.toString(),platform:n,extra:JSON.stringify(i,ai)})}toArtplayer(){let e=0;return this.mode===di.Top?e=1:this.mode===di.Bottom&&(e=2),{progress:this.progress,mode:e,color:this.color,content:this.content,style:this.extra.artplayer?.style}}static fromDDplay(e,t,n=ni.ddplay){const r=oi.fromUnknown(t,n);return this.create({...e,FCID:r.toString(),mode:this.transMode(e.mode,"ddplay"),senderID:e.uid,content:e.m,platform:n,DMID:e.cid.toString()})}toDDplay(){let e=1;return this.mode===di.Top?e=5:this.mode===di.Bottom&&(e=4),{progress:this.progress,mode:e,color:this.color,uid:this.senderID,m:this.content,cid:Number(this.DMID)||1}}}var gi=Object.freeze({__proto__:null,get ExtraDanUniChapterAction(){return mi},get ExtraDanUniChapterType(){return ci},get Modes(){return di},get Pools(){return pi},UniDM:bi});class hi{constructor(e){function t(t){return 1===new Set(e.map((e=>e[t]))).size}this.dans=e,this.shared={},t("FCID")&&(this.shared.FCID=e[0].FCID),t("senderID")&&(this.shared.senderID=e[0].senderID),t("platform")&&(this.shared.platform=e[0].platform),t("SPMO")&&(this.shared.SPMO=e[0].SPMO),t("pool")&&(this.shared.pool=e[0].pool),t("mode")&&(this.shared.mode=e[0].mode)}static create(){return new hi([])}assign(e){return e instanceof hi?new hi([...this.dans,...e.dans]):e instanceof bi?new hi([...this.dans,e]):Array.isArray(e)&&e.every((e=>e instanceof bi))?new hi([...this.dans,...e]):this}split(e){if(this.shared[e])return[this];const t=new Set(this.dans.map((t=>t[e])));return[...t].map((t=>new hi(this.dans.filter((n=>n[e]===t)))))}minify(){return this.dans.map((e=>e.minify()))}convert2(e){switch(e){case"danuni.json":return JSON.stringify(this.dans);case"danuni.bin":return this.toPb();case"dplayer.json":return this.toDplayer();case"artplayer.json":return this.toArtplayer();case"ddplay.json":return this.toDDplay();default:throw new Error("unknown format or unsupported now!")}}static fromPb(e){const t=ur(Jr,new Uint8Array(e));return new hi(t.danmakus.map((e=>new bi(e.FCID,e.progress,e.mode,e.fontsize,e.color,e.senderID,e.content,Er(e.ctime||fr(new Date)),e.weight,e.pool,e.attr,e.platform,e.SPMO,e.extra,e.DMID))))}toPb(){return Ar(Jr,$e(Jr,{danmakus:this.dans.map((e=>({FCID:e.FCID,DMID:e.DMID,progress:e.progress,mode:e.mode,fontsize:e.fontsize,color:e.color,senderID:e.senderID,content:e.content,ctime:fr(e.ctime),weight:e.weight,pool:e.pool,attr:e.attr,platform:e.platform,SPMO:e.SPMO,extra:e.extraStr})))}))}static fromBiliXML(e,t){const n=new Ie.XMLParser({ignoreAttributes:!1}).parse(e),r=n.i.d;return new hi(r.map((e=>{const r=e["@_p"].split(",");return bi.fromBili({content:e["#text"],progress:Number.parseFloat(r[0]),mode:Number.parseInt(r[1]),fontsize:Number.parseInt(r[2]),color:Number.parseInt(r[3]),ctime:BigInt(r[4]),pool:Number.parseInt(r[5]),midHash:r[6],id:BigInt(r[7]),weight:Number.parseInt(r[8])},t,BigInt(n.i.chatid))})))}static fromBiliGrpc(e,t){const n=ur(wr,new Uint8Array(e)).elems;return new hi(n.map((e=>bi.fromBili(e,t))))}static fromBiliCommandGrpc(e,t){const n=ur(Vr,new Uint8Array(e)).commandDms;return new hi(n.map((e=>bi.fromBiliCommand(e,t))))}static fromDplayer(e,t,n="other"){return new hi(e.data.map((e=>bi.fromDplayer({content:e[4],progress:e[0],mode:e[1],color:e[2],midHash:e[3]},t,n))))}toDplayer(){return{code:0,data:this.dans.map((e=>{const t=e.toDplayer();return[t.progress,t.mode,t.color,t.midHash,t.content]}))}}static fromArtplayer(e,t,n="other"){return new hi(e.map((e=>bi.fromArtplayer({content:e.text,progress:e.time||0,mode:e.mode||0,color:Number((e.color||"FFFFFF").replace("#","0x")),style:e.style},t,n))))}toArtplayer(){return this.dans.map((e=>{const t=e.toArtplayer();return{text:t.content,time:t.progress,mode:t.mode,color:`#${t.color.toString(16).toUpperCase()||"FFFFFF"}`,border:t.border,style:t.style}}))}static fromDDPlay(e,t,n){return new hi(e.comments.map((e=>{const r=e.p.split(",");return bi.fromDDplay({cid:e.cid,color:Number.parseInt(r[2]),m:e.m,mode:Number.parseInt(r[1]),progress:Number.parseFloat(r[0]),uid:r[3]},t,n)})))}toDDplay(){return{count:this.dans.length,comments:this.dans.map((e=>{const t=e.toDDplay();return{cid:t.cid,p:`${t.progress},${t.mode},${t.color},${t.uid}`,m:t.m}}))}}}return e.UniDM=bi,e.UniDMTools=gi,e.UniIDTools=si,e.UniPool=hi,e}({});