@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.js CHANGED
@@ -1 +1 @@
1
- var e={},t={};!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}(t);const n=t,o={allowBooleanAttributes:!1,unpairedTags:[]};function r(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function i(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 p("InvalidXml","XML declaration allowed only at the start of the document.",g(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function s(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}e.validate=function(e,t){t=Object.assign({},o,t);const a=[];let l=!1,c=!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=i(e,o),o.err)return o}else{if("<"!==e[o]){if(r(e[o]))continue;return p("InvalidChar","char '"+e[o]+"' is not expected.",g(e,o))}{let h=o;if(o++,"!"===e[o]){o=s(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--),b=E,!n.isName(b)){let t;return t=0===E.trim().length?"Invalid space after '<'.":"Tag '"+E+"' is an invalid name.",p("InvalidTag",t,g(e,o))}const N=u(e,o);if(!1===N)return p("InvalidAttr","Attributes for '"+E+"' have open quote.",g(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=m(A,t);if(!0!==r)return p(r.err.code,r.err.msg,g(e,n+r.err.line));l=!0}else if(f){if(!N.tagClosed)return p("InvalidTag","Closing tag '"+E+"' doesn't have proper closing.",g(e,o));if(A.trim().length>0)return p("InvalidTag","Closing tag '"+E+"' can't have attributes or invalid starting.",g(e,h));if(0===a.length)return p("InvalidTag","Closing tag '"+E+"' has not been opened.",g(e,h));{const t=a.pop();if(E!==t.tagName){let n=g(e,t.tagStartPos);return p("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+E+"'.",g(e,h))}0==a.length&&(c=!0)}}else{const n=m(A,t);if(!0!==n)return p(n.err.code,n.err.msg,g(e,o-A.length+n.err.line));if(!0===c)return p("InvalidXml","Multiple possible root nodes found.",g(e,o));-1!==t.unpairedTags.indexOf(E)||a.push({tagName:E,tagStartPos:h}),l=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=s(e,o);continue}if("?"!==e[o+1])break;if(o=i(e,++o),o.err)return o}else if("&"===e[o]){const t=d(e,o);if(-1==t)return p("InvalidChar","char '&' is not expected.",g(e,o));o=t}else if(!0===c&&!r(e[o]))return p("InvalidXml","Extra text at the end",g(e,o));"<"===e[o]&&o--}}}var b;return l?1==a.length?p("InvalidTag","Unclosed tag '"+a[0].tagName+"'.",g(e,a[0].tagStartPos)):!(a.length>0)||p("InvalidXml","Invalid '"+JSON.stringify(a.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):p("InvalidXml","Start tag expected.",1)};const a='"',l="'";function u(e,t){let n="",o="",r=!1;for(;t<e.length;t++){if(e[t]===a||e[t]===l)""===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 c=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function m(e,t){const o=n.getAllMatches(e,c),r={};for(let e=0;e<o.length;e++){if(0===o[e][1].length)return p("InvalidAttr","Attribute '"+o[e][2]+"' has no space in starting.",h(o[e]));if(void 0!==o[e][3]&&void 0===o[e][4])return p("InvalidAttr","Attribute '"+o[e][2]+"' is without value.",h(o[e]));if(void 0===o[e][3]&&!t.allowBooleanAttributes)return p("InvalidAttr","boolean attribute '"+o[e][2]+"' is not allowed.",h(o[e]));const n=o[e][2];if(!b(n))return p("InvalidAttr","Attribute '"+n+"' is an invalid name.",h(o[e]));if(r.hasOwnProperty(n))return p("InvalidAttr","Attribute '"+n+"' is repeated.",h(o[e]));r[n]=1}return!0}function d(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 p(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function b(e){return n.isName(e)}function g(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function h(e){return e.startIndex+e[1].length}var f={};const E={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}};f.buildOptions=function(e){return Object.assign({},E,e)},f.defaultOptions=E;var N=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 A=t;function y(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 I(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 S(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 G(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 R(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 Y(e){if(A.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&&I(e,t)){let o,r;t+=7,[o,r,t]=y(e,t+1),-1===r.indexOf("&")&&(n[Y(o)]={regx:RegExp(`&${o};`,"g"),val:r})}else r&&S(e,t)||r&&G(e,t)?t+=8:r&&R(e,t)?t+=9:i=!0;o++,s=""}if(0!==o)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}};const w=/^[-+]?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 v={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};var B=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 F=t,T=N,Z=W,x=function(e,t={}){if(t=Object.assign({},v,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&&w.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}},C=B;function k(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 X(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 Q(e,this.options.parseTagValue,this.options.numberParseOptions);return e.trim()===e?Q(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function D(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 U=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function L(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const n=F.getAllMatches(e,U),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:Q(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 K=function(e){e=e.replace(/\r\n?/g,"\n");const t=new T("!xml");let n=t,o="",r="";for(let i=0;i<e.length;i++){if("<"===e[i])if("/"===e[i+1]){const t=M(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=P(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 T(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=M(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=Z(e,i);this.docTypeEntities=t.entities,i=t.i}else if("!["===e.substr(i+1,2)){const t=M(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=P(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 T(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 T(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 T(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 O(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 J=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 _(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 M(e,t,n,o){const r=e.indexOf(t,n);if(-1===r)throw new Error(o);return r+t.length-1}function P(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 H(e,t,n){const o=n;let r=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=M(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=M(e,"?>",n+1,"StopNode is not closed.")}else if("!--"===e.substr(n+1,3)){n=M(e,"--\x3e",n+3,"StopNode is not closed.")}else if("!["===e.substr(n+1,2)){n=M(e,"]]>",n,"StopNode is not closed.")-2}else{const o=P(e,n,">");if(o){(o&&o.tagName)===t&&"/"!==o.tagExp[o.tagExp.length-1]&&r++,n=o.closeIndex}}}function Q(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&x(e,n)}return F.isExist(e)?e:""}var z=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=k,this.parseXml=K,this.parseTextData=X,this.resolveNameSpace=D,this.buildAttributesMap=L,this.isItStopNode=j,this.replaceEntitiesValue=J,this.readStopNodeData=H,this.saveTextToParentTag=_,this.addChild=O,this.ignoreAttributesFn=C(this.options.ignoreAttributes)}},$={};function q(e,t,n){let o;const r={};for(let i=0;i<e.length;i++){const s=e[i],a=ee(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=q(s[a],t,l);const n=ne(e,t);s[":@"]?te(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 ee(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function te(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 ne(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])}$.prettify=function(e,t){return q(e,t)};const{buildOptions:oe}=f,re=z,{prettify:ie}=$,se=e;var ae=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=se.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new re(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:ie(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 le(e,t,n,o){let r="",i=!1;for(let s=0;s<e.length;s++){const a=e[s],l=ue(a);if(void 0===l)continue;let u="";if(u=0===n.length?l:`${n}.${l}`,l===t.textNodeName){let e=a[l];me(u,t)||(e=t.tagValueProcessor(l,e),e=de(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=ce(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}${ce(a[":@"],t)}`,d=le(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 ue(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 ce(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=de(r,t),!0===r&&t.suppressBooleanAttributes?n+=` ${o.substr(t.attributeNamePrefix.length)}`:n+=` ${o.substr(t.attributeNamePrefix.length)}="${r}"`}return n}function me(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 de(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 pe=function(e,t){let n="";return t.format&&t.indentBy.length>0&&(n="\n"),le(e,t,"",n)},be=B,ge={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 he(e){this.options=Object.assign({},ge,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=be(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ne),this.processTextOrObjNode=fe,this.options.format?(this.indentate=Ee,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function fe(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 Ee(e){return this.options.indentBy.repeat(e)}function Ne(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}he.prototype.build=function(e){return this.options.preserveOrder?pe(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},he.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}},he.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},he.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}},he.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},he.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}},he.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 Ae,ye={XMLParser:ae,XMLValidator:e,XMLBuilder:he};function Ie(e,t){return!(null===e||"object"!=typeof e||!("$typeName"in e)||"string"!=typeof e.$typeName)&&(void 0===t||t.typeName===e.$typeName)}function Se(){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 Ge(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"}(Ae||(Ae={}));const Re=4294967296;function Ye(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>=Re&&(r+=o/Re|0,o%=Re)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?Ve(o,r):we(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(Re*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()+ve(i)+ve(r)}function we(e,t){return{lo:0|e,hi:0|t}}function Ve(e,t){return t=~t,e?e=1+~e:t+=1,we(e,t)}const ve=e=>{const t=String(e);return"0000000".slice(t.length)+t};function Be(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 Fe(){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 Te=Ze();function Ze(){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()),xe(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),Ce(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),xe(e),Ye(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),Ce(e),Ye(e)),dec:(e,t)=>function(e,t){let n=we(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 xe(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function Ce(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function ke(e,t){switch(e){case Ae.STRING:return"";case Ae.BOOL:return!1;default:case Ae.DOUBLE:case Ae.FLOAT:return 0;case Ae.INT64:case Ae.UINT64:case Ae.SFIXED64:case Ae.FIXED64:case Ae.SINT64:return t?"0":Te.zero;case Ae.BYTES:return new Uint8Array(0)}}class Xe extends Error{constructor(e,t,n="FieldValueInvalidError"){super(t),this.name=n,this.field=()=>e}}const De=Symbol.for("reflect unsafe local");function Ue(e,t){const n=e[t.localName].case;return void 0===n?n:t.fields.find((e=>e.localName===n))}function Le(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 Ae.BOOL:return!1===t;case Ae.STRING:return""===t;case Ae.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 Ke(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]}function Oe(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 Je(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function _e(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function je(e,t){var n,o,r,i;if(_e(e)&&De 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 Me(e,t){var n,o,r,i;if(_e(e)&&De 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 Pe(e,t){return _e(e)&&De in e&&"desc"in e&&_e(e.desc)&&"message"===e.desc.kind&&(void 0===t||e.desc.typeName==t.typeName)}function He(e){const t=e.fields[0];return Qe(e.typeName)&&void 0!==t&&"scalar"==t.fieldKind&&"value"==t.name&&1==t.number}function Qe(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}function ze(e,t){if(Ie(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=it.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]=st(t)));it.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]=st(n)}}else{t={$typeName:e.typeName};for(const n of e.members)"oneof"!=n.kind&&2!=n.presence||(t[n.localName]=st(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=Ue(n,o);if(!t)continue;e=t,r=Oe(n,t)}else e=o;switch(e.fieldKind){case"message":r=tt(e,r);break;case"scalar":r=$e(e,r);break;case"list":r=et(e,r);break;case"map":r=qe(e,r)}Je(t,e,r)}}}(e,n,t),n}function $e(e,t){return e.scalar==Ae.BYTES?nt(t):t}function qe(e,t){if(_e(t)){if(e.scalar==Ae.BYTES)return ot(t,nt);if("message"==e.mapKind)return ot(t,(t=>tt(e,t)))}return t}function et(e,t){if(Array.isArray(t)){if(e.scalar==Ae.BYTES)return t.map(nt);if("message"==e.listKind)return t.map((t=>tt(e,t)))}return t}function tt(e,t){if("message"==e.fieldKind&&!e.oneof&&He(e.message))return $e(e.message.fields[0],t);if(_e(t)){if("google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!==e.parent.typeName)return t;if(!Ie(t,e.message))return ze(e.message,t)}return t}function nt(e){return Array.isArray(e)?new Uint8Array(e):e}function ot(e,t){const n={};for(const o of Object.entries(e))n[o[0]]=t(o[1]);return n}const rt=Symbol(),it=new WeakMap;function st(e){if("oneof"==e.kind)return{case:void 0};if("list"==e.fieldKind)return[];if("map"==e.fieldKind)return{};if("message"==e.fieldKind)return rt;const t=e.getDefaultValue();return void 0!==t?"scalar"==e.fieldKind&&e.longAsString?t.toString():t:"scalar"==e.fieldKind?ke(e.scalar,e.longAsString):e.enum.values[0].number}const at=Symbol.for("@bufbuild/protobuf/text-encoding");function lt(){if(null==globalThis[at]){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[at]={encodeUtf8:t=>e.encode(t),decodeUtf8:e=>t.decode(e),checkUtf8(e){try{return encodeURIComponent(e),!0}catch(e){return!1}}}}return globalThis[at]}var ut;!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"}(ut||(ut={}));const ct=34028234663852886e22,mt=-34028234663852886e22,dt=4294967295,pt=2147483647,bt=-2147483648;class gt{constructor(e=lt().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(Et(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return ft(e),Be(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>ct||e<mt))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){Et(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){ft(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return ft(e),Be(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),o=Te.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=Te.uEnc(e);return n.setInt32(0,o.lo,!0),n.setInt32(4,o.hi,!0),this.raw(t)}int64(e){let t=Te.enc(e);return Ge(t.lo,t.hi,this.buf),this}sint64(e){let t=Te.enc(e),n=t.hi>>31;return Ge(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=Te.uEnc(e);return Ge(t.lo,t.hi,this.buf),this}}class ht{constructor(e,t=lt().decodeUtf8){this.decodeUtf8=t,this.varint64=Se,this.uint32=Fe,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 ut.Varint:for(;128&this.buf[this.pos++];);break;case ut.Bit64:this.pos+=4;case ut.Bit32:this.pos+=4;break;case ut.LengthDelimited:let n=this.uint32();this.pos+=n;break;case ut.StartGroup:for(;;){const[e,n]=this.tag();if(n===ut.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 Te.dec(...this.varint64())}uint64(){return Te.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,Te.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 Te.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Te.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 ft(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>pt||e<bt)throw new Error("invalid int32: "+e)}function Et(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>dt||e<0)throw new Error("invalid uint32: "+e)}function Nt(e,t,n){const o=At(e,n);if(!0!==o)return new Xe(e,`list item #${t+1}: ${It(e,n,o)}`)}function At(e,t){return void 0!==e.scalar?yt(t,e.scalar):void 0!==e.enum?e.enum.open?Number.isInteger(t):e.enum.values.some((e=>e.number===t)):Pe(t,e.message)}function yt(e,t){switch(t){case Ae.DOUBLE:return"number"==typeof e;case Ae.FLOAT:return"number"==typeof e&&(!(!Number.isNaN(e)&&Number.isFinite(e))||(!(e>ct||e<mt)||`${e.toFixed()} out of range`));case Ae.INT32:case Ae.SFIXED32:case Ae.SINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>pt||e<bt)||`${e.toFixed()} out of range`);case Ae.FIXED32:case Ae.UINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>dt||e<0)||`${e.toFixed()} out of range`);case Ae.BOOL:return"boolean"==typeof e;case Ae.STRING:return"string"==typeof e&&(lt().checkUtf8(e)||"invalid UTF8");case Ae.BYTES:return e instanceof Uint8Array;case Ae.INT64:case Ae.SFIXED64:case Ae.SINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{Te.parse(e)}catch(t){return`${e} out of range`}return!0;case Ae.FIXED64:case Ae.UINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{Te.uParse(e)}catch(t){return`${e} out of range`}return!0}}function It(e,t,n){return n="string"==typeof n?`: ${n}`:`, got ${St(t)}`,void 0!==e.scalar?`expected ${function(e){switch(e){case Ae.STRING:return"string";case Ae.BOOL:return"boolean";case Ae.INT64:case Ae.SINT64:case Ae.SFIXED64:return"bigint (int64)";case Ae.UINT64:case Ae.FIXED64:return"bigint (uint64)";case Ae.BYTES:return"Uint8Array";case Ae.DOUBLE:return"number (float64)";case Ae.FLOAT:return"number (float32)";case Ae.FIXED32:case Ae.UINT32:return"number (uint32)";case Ae.INT32:case Ae.SFIXED32:case Ae.SINT32:return"number (int32)"}}(e.scalar)}`+n:void 0!==e.enum?`expected ${e.enum.toString()}`+n:`expected ${Gt(e.message)}`+n}function St(e){switch(typeof e){case"object":return null===e?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:je(e)?Rt(e.field()):Me(e)?Yt(e.field()):Pe(e)?Gt(e.desc):Ie(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 Gt(e){return`ReflectMessage (${e.typeName})`}function Rt(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${Ae[e.scalar]})`}}function Yt(e){switch(e.mapKind){case"message":return`ReflectMap (${Ae[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${Ae[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${Ae[e.mapKey]}, ${Ae[e.scalar]})`}}function Wt(e,t,n=!0){return new wt(e,t,n)}class wt{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[De]=null!=t?t:ze(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),Ue(this.message,e)}isSet(e){return Vt(this.message,e),Le(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]=ke(t.scalar,t.longAsString)}}(this.message,e)}get(e){Vt(this.message,e);const t=Oe(this.message,e);switch(e.fieldKind){case"list":let n=this.lists.get(e);return n&&n[De]===t||this.lists.set(e,n=new vt(e,t,this.check)),n;case"map":let o=this.maps.get(e);return o&&o[De]===t||this.maps.set(e,o=new Bt(e,t,this.check)),o;case"message":return Tt(e,t,this.check);case"scalar":return void 0===t?ke(e.scalar,!1):Dt(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?Me(t,e):At(e,t);if(!0===n)return;let o;switch(e.fieldKind){case"list":o=`expected ${Rt(e)}, got ${St(t)}`;break;case"map":o=`expected ${Yt(e)}, got ${St(t)}`;break;default:o=It(e,t,n)}return new Xe(e,o)}(e,t);if(n)throw n}let n;n="message"==e.fieldKind?Ft(e,t):Me(t)||je(t)?t[De]:Ut(e,t),Je(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 Xe(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class vt{field(){return this._field}get size(){return this._arr.length}constructor(e,t,n){this._field=e,this._arr=this[De]=t,this.check=n}get(e){const t=this._arr[e];return void 0===t?void 0:xt(this._field,t,this.check)}set(e,t){if(e<0||e>=this._arr.length)throw new Xe(this._field,`list item #${e+1}: out of range`);if(this.check){const n=Nt(this._field,e,t);if(n)throw n}this._arr[e]=Zt(this._field,t)}add(e){if(this.check){const t=Nt(this._field,this._arr.length,e);if(t)throw t}this._arr.push(Zt(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 xt(this._field,e,this.check)}*entries(){for(let e=0;e<this._arr.length;e++)yield[e,xt(this._field,this._arr[e],this.check)]}}class Bt{constructor(e,t,n=!0){this.obj=this[De]=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=yt(t,e.mapKey);if(!0!==o)return new Xe(e,`invalid map key: ${It({scalar:e.mapKey},t,o)}`);const r=At(e,n);return!0!==r?new Xe(e,`map entry ${St(t)}: ${It(e,n,r)}`):void 0}(this._field,e,t);if(n)throw n}return this.obj[kt(e)]=function(e,t){if("message"==e.mapKind)return Ft(e,t);return Ut(e,t)}(this._field,t),this}delete(e){const t=kt(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[kt(e)];return void 0!==t&&(t=Ct(this._field,t,this.check)),t}has(e){return Object.prototype.hasOwnProperty.call(this.obj,kt(e))}*keys(){for(const e of Object.keys(this.obj))yield Xt(e,this._field.mapKey)}*entries(){for(const e of Object.entries(this.obj))yield[Xt(e[0],this._field.mapKey),Ct(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 Ct(this._field,e,this.check)}forEach(e,t){for(const n of this.entries())e.call(t,n[1],n[0],this)}}function Ft(e,t){return Pe(t)?Qe(t.message.$typeName)&&!e.oneof&&"message"==e.fieldKind?t.message.value:"google.protobuf.Struct"==t.desc.typeName&&"google.protobuf.Value"!=e.parent.typeName?Kt(t.message):t.message:t}function Tt(e,t,n){return void 0!==t&&(He(e.message)&&!e.oneof&&"message"==e.fieldKind?t={$typeName:e.message.typeName,value:Dt(e.message.fields[0],t)}:"google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!=e.parent.typeName&&_e(t)&&(t=Lt(t))),new wt(e.message,t,n)}function Zt(e,t){return"message"==e.listKind?Ft(e,t):Ut(e,t)}function xt(e,t,n){return"message"==e.listKind?Tt(e,t,n):Dt(e,t)}function Ct(e,t,n){return"message"==e.mapKind?Tt(e,t,n):t}function kt(e){return"string"==typeof e||"number"==typeof e?e:String(e)}function Xt(e,t){switch(t){case Ae.STRING:return e;case Ae.INT32:case Ae.FIXED32:case Ae.UINT32:case Ae.SFIXED32:case Ae.SINT32:{const t=Number.parseInt(e);if(Number.isFinite(t))return t;break}case Ae.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case Ae.UINT64:case Ae.FIXED64:try{return Te.uParse(e)}catch(e){}break;default:try{return Te.parse(e)}catch(e){}}return e}function Dt(e,t){switch(e.scalar){case Ae.INT64:case Ae.SFIXED64:case Ae.SINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=Te.parse(t));break;case Ae.FIXED64:case Ae.UINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=Te.uParse(t))}return t}function Ut(e,t){switch(e.scalar){case Ae.INT64:case Ae.SFIXED64:case Ae.SINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=Te.parse(t));break;case Ae.FIXED64:case Ae.UINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=Te.uParse(t))}return t}function Lt(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(_e(e))for(const[n,o]of Object.entries(e))t.fields[n]=Jt(o);return t}function Kt(e){const t={};for(const[n,o]of Object.entries(e.fields))t[n]=Ot(o);return t}function Ot(e){switch(e.kind.case){case"structValue":return Kt(e.kind.value);case"listValue":return e.kind.value.values.map(Ot);case"nullValue":case void 0:return null;default:return e.kind.value}}function Jt(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(Jt(t));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:Lt(e)}}return t}function _t(e){const t=function(){if(!Mt){Mt=[];const e=function(){jt||(jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),jt.slice(0,-2).concat("-","_"));return jt}();for(let t=0;t<e.length;t++)Mt[e[t].charCodeAt(0)]=t;Mt["-".charCodeAt(0)]=e.indexOf("+"),Mt["_".charCodeAt(0)]=e.indexOf("/")}return Mt}();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,Mt;function Pt(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 Ht=new Set(["constructor","toString","toJSON","valueOf"]);function Qt(e){return Ht.has(e)?e+"$":e}function zt(e){for(const t of e.field)Ke(t,"jsonName")||(t.jsonName=Pt(t.name));e.nestedType.forEach(zt)}function $t(e,t){switch(e){case Ae.STRING:return t;case Ae.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=Te.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 ${Ae[e]} default value: ${t}`);return n}case Ae.INT64:case Ae.SFIXED64:case Ae.SINT64:return Te.parse(t);case Ae.UINT64:case Ae.FIXED64:return Te.uParse(t);case Ae.DOUBLE:case Ae.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 Ae.BOOL:return"true"===t;case Ae.INT32:case Ae.UINT32:case Ae.SINT32:case Ae.FIXED32:case Ae.SFIXED32:return parseInt(t,10)}}function*qt(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*qt(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*qt(t);yield*e.nestedEnums,yield*e.nestedExtensions}}function en(...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 qt(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)An(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())An(a,t)}else for(const l of e)for(const u of l.files)t.addFile(u);return t}const tn=998,nn=999,on=9,rn=10,sn=11,an=12,ln=14,un=3,cn=2,mn=1,dn=0,pn=1,bn=2,gn=3,hn=1,fn=2,En=1,Nn={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 An(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:wn(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;Cn(!0===(null===(t=e.proto.options)||void 0===t?void 0:t.mapEntry)),i.set(e.typeName,e)}};for(const n of e.enumType)Sn(n,r,void 0,t);for(const n of e.messageType)Gn(n,r,void 0,t,s);for(const n of e.service)Rn(n,r,t);yn(r,t);for(const e of i.values())In(e,t,s);for(const e of r.messages)In(e,t,s),yn(e,t);t.addFile(r,!0)}function yn(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)yn(n,t)}}function In(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:Qt(Pt(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}(t,e))),r=new Set;for(const i of e.proto.field){const s=Fn(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)In(o,t,n)}function Sn(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:vn(e,n,t),value:{},values:[],sharedPrefix:a,toString(){return`enum ${this.typeName}`}};l.open=function(e){var t;return En==xn("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:Qt(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 Gn(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:vn(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)Sn(n,t,u,o);for(const n of e.nestedType)Gn(n,t,u,o,r)}function Rn(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:vn(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=Yn(t,i,n);i.methods.push(e),i.method[e.localName]=e}}function Yn(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(Bn(e.inputType)),u=n.getMessage(Bn(e.outputType));Cn(l,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),Cn(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:Qt(c.length?Qt(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:dn,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:Tn(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=vn(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(Bn(e.extendee));Cn(s,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),u.extendee=s}else{const n=t;Cn("message"==n.kind),u.parent=n,u.oneof=o,u.localName=o?Pt(e.name):Qt(Pt(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===un){const o=m==sn?null==r?void 0:r.get(Bn(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 Cn(t&&"scalar"==t.fieldKind&&t.scalar!=Ae.BYTES&&t.scalar!=Ae.FLOAT&&t.scalar!=Ae.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 sn:case rn:u.listKind="message",u.message=n.getMessage(Bn(e.typeName)),Cn(u.message),u.delimitedEncoding=Zn(e,t);break;case ln:u.listKind="enum",u.enum=n.getEnum(Bn(e.typeName)),Cn(u.enum);break;default:u.listKind="scalar",u.scalar=m,u.longAsString=d==mn}return u.packed=function(e,t){if(e.label!=un)return!1;switch(e.type){case on:case an:case rn:case sn:return!1}const n=e.options;if(n&&Ke(n,"packed"))return n.packed;return hn==xn("repeatedFieldEncoding",{proto:e,parent:t})}(e,t),u}switch(m){case sn:case rn:u.fieldKind="message",u.message=n.getMessage(Bn(e.typeName)),Cn(u.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.delimitedEncoding=Zn(e,t),u.getDefaultValue=()=>{};break;case ln:{const t=n.getEnum(Bn(e.typeName));Cn(void 0!==t,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(Bn(e.typeName)),u.getDefaultValue=()=>Ke(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==mn,u.getDefaultValue=()=>Ke(e,"defaultValue")?$t(m,e.defaultValue):void 0}return u}function wn(e){switch(e.syntax){case"":case"proto2":return tn;case"proto3":return nn;case"editions":if(e.edition in Nn)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 vn(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 Bn(e){return e.startsWith(".")?e.substring(1):e}function Fn(e,t){if(!Ke(e,"oneofIndex"))return;if(e.proto3Optional)return;const n=t[e.oneofIndex];return Cn(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function Tn(e,t,n,o){return e.label==cn?gn:e.label==un?bn:t||e.proto3Optional||e.type==sn||n?pn:xn("fieldPresence",{proto:e,parent:o})}function Zn(e,t){return e.type==rn||fn==xn("messageEncoding",{proto:e,parent:t})}function xn(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 xn(e,null!==(o=t.parent)&&void 0!==o?o:t.file);const n=Nn[t.edition];if(!n)throw new Error(`feature default for edition ${t.edition} not found`);return n[e]}return xn(e,t.parent)}function Cn(e,t){if(!e)throw new Error(t)}function kn(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(Xn),enumType:e.enumType.map(Ln)}))}(e);t.messageType.forEach(zt);return en(t,(()=>{})).getFile(t.name)}function Xn(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(Dn))&&void 0!==n?n:[],extension:[],nestedType:null!==(r=null===(o=e.nestedType)||void 0===o?void 0:o.map(Xn))&&void 0!==r?r:[],enumType:null!==(s=null===(i=e.enumType)||void 0===i?void 0:i.map(Ln))&&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 Dn(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?Un(e.options):void 0}))}function Un(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 Ln(e){return{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map((e=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},e)))}}function Kn(e,t,...n){return n.reduce(((e,t)=>e.nestedMessages[t]),e.messages[t])}const On=Kn(kn({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 Jn,_n,jn,Mn,Pn,Hn,Qn,zn,$n,qn,eo,to,no,oo,ro,io,so;!function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"}(Jn||(Jn={})),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"}(_n||(_n={})),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"}(Mn||(Mn={})),function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"}(Pn||(Pn={})),function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"}(Hn||(Hn={})),function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"}(Qn||(Qn={})),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"}(zn||(zn={})),function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"}($n||($n={})),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"}(qn||(qn={})),function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"}(eo||(eo={})),function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"}(to||(to={})),function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"}(no||(no={})),function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"}(oo||(oo={})),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"}(ro||(ro={})),function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"}(io||(io={})),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"}(so||(so={}));const ao={readUnknownFields:!0};function lo(e,t,n){const o=Wt(e,void 0,!1);return uo(o,new ht(t),function(e){return e?Object.assign(Object.assign({},ao),e):ao}(n),!1,t.byteLength),o.message}function uo(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!=ut.EndGroup);){const o=e.findNumber(a);if(o)co(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!=ut.EndGroup||a!==r))throw new Error("invalid end group tag");u.length>0&&e.setUnknown(u)}function co(e,t,n,o,r){switch(n.fieldKind){case"scalar":e.set(n,po(t,n.scalar));break;case"enum":e.set(n,po(t,Ae.INT32));break;case"message":e.set(n,mo(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(mo(e,o,i));const s=null!==(r=i.scalar)&&void 0!==r?r:Ae.INT32,a=t==ut.LengthDelimited&&s!=Ae.STRING&&s!=Ae.BYTES;if(!a)return void n.add(po(e,s));const l=e.uint32()+e.pos;for(;e.pos<l;)n.add(po(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=po(e,o.mapKey);break;case 2:switch(o.mapKind){case"scalar":i=po(e,o.scalar);break;case"enum":i=e.int32();break;case"message":i=mo(e,n,o)}}}void 0===r&&(r=ke(o.mapKey,!1));if(void 0===i)switch(o.mapKind){case"scalar":i=ke(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 mo(e,t,n,o){const r=n.delimitedEncoding,i=null!=o?o:Wt(n.message,void 0,!1);return uo(i,e,t,r,r?n.number:e.uint32()),i}function po(e,t){switch(t){case Ae.STRING:return e.string();case Ae.BOOL:return e.bool();case Ae.DOUBLE:return e.double();case Ae.FLOAT:return e.float();case Ae.INT32:return e.int32();case Ae.INT64:return e.int64();case Ae.UINT64:return e.uint64();case Ae.FIXED64:return e.fixed64();case Ae.BYTES:return e.bytes();case Ae.FIXED32:return e.fixed32();case Ae.SFIXED32:return e.sfixed32();case Ae.SFIXED64:return e.sfixed64();case Ae.SINT64:return e.sint64();case Ae.UINT32:return e.uint32();case Ae.SINT32:return e.sint32()}}function bo(e,t){var n;const o=lo(On,_t(e));o.messageType.forEach(zt),o.dependency=null!==(n=null==t?void 0:t.map((e=>e.proto.name)))&&void 0!==n?n:[];const r=en(o,(e=>null==t?void 0:t.find((t=>t.proto.name===e))));return r.getFile(o.name)}const go=bo("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),ho=Kn(go,0);function fo(e){return function(e){return ze(ho,{seconds:Te.parse(Math.floor(e/1e3)),nanos:e%1e3*1e6})}(e.getTime())}function Eo(e){return new Date(function(e){return 1e3*Number(e.seconds)+Math.ceil(e.nanos/1e6)}(e))}const No={writeUnknownFields:!0};function Ao(e,t,n){return yo(new gt,function(e){return e?Object.assign(Object.assign({},No),e):No}(n),Wt(e,t)).finish()}function yo(e,t,n){var o;for(const o of n.sortedFields)if(n.isSet(o))Io(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 Io(e,t,n,o){var r;switch(o.fieldKind){case"scalar":case"enum":So(e,null!==(r=o.scalar)&&void 0!==r?r:Ae.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)Go(e,t,n,r);return}const i=null!==(r=n.scalar)&&void 0!==r?r:Ae.INT32;if(n.packed){if(!o.size)return;e.tag(n.number,ut.LengthDelimited).fork();for(const t of o)Yo(e,i,t);return void e.join()}for(const t of o)So(e,i,n.number,t)}(e,t,o,n.get(o));break;case"message":Go(e,t,o,n.get(o));break;case"map":for(const[r,i]of n.get(o))Ro(e,t,o,r,i)}}function So(e,t,n,o){Yo(e.tag(n,function(e){switch(e){case Ae.BYTES:case Ae.STRING:return ut.LengthDelimited;case Ae.DOUBLE:case Ae.FIXED64:case Ae.SFIXED64:return ut.Bit64;case Ae.FIXED32:case Ae.SFIXED32:case Ae.FLOAT:return ut.Bit32;default:return ut.Varint}}(t)),t,o)}function Go(e,t,n,o){n.delimitedEncoding?yo(e.tag(n.number,ut.StartGroup),t,o).tag(n.number,ut.EndGroup):yo(e.tag(n.number,ut.LengthDelimited).fork(),t,o).join()}function Ro(e,t,n,o,r){var i;switch(e.tag(n.number,ut.LengthDelimited).fork(),So(e,n.mapKey,1,o),n.mapKind){case"scalar":case"enum":So(e,null!==(i=n.scalar)&&void 0!==i?i:Ae.INT32,2,r);break;case"message":yo(e.tag(2,ut.LengthDelimited).fork(),t,r).join()}e.join()}function Yo(e,t,n){switch(t){case Ae.STRING:e.string(n);break;case Ae.BOOL:e.bool(n);break;case Ae.DOUBLE:e.double(n);break;case Ae.FLOAT:e.float(n);break;case Ae.INT32:e.int32(n);break;case Ae.INT64:e.int64(n);break;case Ae.UINT64:e.uint64(n);break;case Ae.FIXED64:e.fixed64(n);break;case Ae.BYTES:e.bytes(n);break;case Ae.FIXED32:e.fixed32(n);break;case Ae.SFIXED32:e.sfixed32(n);break;case Ae.SFIXED64:e.sfixed64(n);break;case Ae.SINT64:e.sint64(n);break;case Ae.UINT32:e.uint32(n);break;case Ae.SINT32:e.sint32(n)}}const Wo=bo("Cg1iaWxpL2RtLnByb3RvEiBiaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MSJkCgZBdmF0YXISCgoCaWQYASABKAkSCwoDdXJsGAIgASgJEkEKC2F2YXRhcl90eXBlGAMgASgOMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQXZhdGFyVHlwZSIjCgZCdWJibGUSDAoEdGV4dBgBIAEoCRILCgN1cmwYAiABKAkixgEKCEJ1YmJsZVYyEgwKBHRleHQYASABKAkSCwoDdXJsGAIgASgJEkEKC2J1YmJsZV90eXBlGAMgASgOMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQnViYmxlVHlwZRIVCg1leHBvc3VyZV9vbmNlGAQgASgIEkUKDWV4cG9zdXJlX3R5cGUYBSABKA4yLi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5FeHBvc3VyZVR5cGUiWwoGQnV0dG9uEgwKBHRleH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VZpZXdSZXEaLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbVZpZXdSZXBseRJxCg5EbVBsYXllckNvbmZpZxIzLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtUGxheWVyQ29uZmlnUmVxGiouYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUmVzcG9uc2USagoIRG1TZWdPdHQSLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbVNlZ090dFJlcRovLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtU2VnT3R0UmVwbHkSagoIRG1TZWdTREsSLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbVNlZ1NES1JlcRovLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtU2VnU0RLUmVwbHkSdAoMRG1FeHBvUmVwb3J0EjEuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1FeHBvUmVwb3J0UmVxGjEuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1FeHBvUmVwb3J0UmVzYgZwcm90bzM"),wo=Kn(Wo,30),Vo=Kn(Wo,39);var vo,Bo,Fo,To,Zo,xo,Co,ko,Xo,Do,Uo,Lo,Ko,Oo;!function(e){e[e.AvatarTypeNone=0]="AvatarTypeNone",e[e.AvatarTypeNFT=1]="AvatarTypeNFT"}(vo||(vo={})),function(e){e[e.BubbleTypeNone=0]="BubbleTypeNone",e[e.BubbleTypeClickButton=1]="BubbleTypeClickButton",e[e.BubbleTypeDmSettingPanel=2]="BubbleTypeDmSettingPanel"}(Bo||(Bo={})),function(e){e[e.CheckboxTypeNone=0]="CheckboxTypeNone",e[e.CheckboxTypeEncourage=1]="CheckboxTypeEncourage",e[e.CheckboxTypeColorDM=2]="CheckboxTypeColorDM"}(Fo||(Fo={})),function(e){e[e.NoneType=0]="NoneType",e[e.VipGradualColor=60001]="VipGradualColor"}(To||(To={})),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"}(Zo||(Zo={})),function(e){e[e.DmMaskWallContentTypeUnknown=0]="DmMaskWallContentTypeUnknown",e[e.DmMaskWallContentTypeText=1]="DmMaskWallContentTypeText",e[e.DmMaskWallContentTypePic=2]="DmMaskWallContentTypePic"}(xo||(xo={})),function(e){e[e.ExposureTypeNone=0]="ExposureTypeNone",e[e.ExposureTypeDMSend=1]="ExposureTypeDMSend"}(Co||(Co={})),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"}(ko||(ko={})),function(e){e[e.PostStatusNormal=0]="PostStatusNormal",e[e.PostStatusClosed=1]="PostStatusClosed"}(Xo||(Xo={})),function(e){e[e.RenderTypeNone=0]="RenderTypeNone",e[e.RenderTypeSingle=1]="RenderTypeSingle",e[e.RenderTypeRotation=2]="RenderTypeRotation"}(Do||(Do={})),function(e){e[e.None=0]="None",e[e.Exposure=1]="Exposure",e[e.Assist=2]="Assist"}(Uo||(Uo={})),function(e){e[e.Normal=0]="Normal",e[e.Translate=1]="Translate"}(Lo||(Lo={})),function(e){e[e.CC=0]="CC",e[e.AI=1]="AI"}(Ko||(Ko={})),function(e){e[e.ToastFunctionTypeNone=0]="ToastFunctionTypeNone",e[e.ToastFunctionTypePostPanel=1]="ToastFunctionTypePostPanel"}(Oo||(Oo={}));const Jo=Kn(bo("CgxkYW51bmkucHJvdG8SEWRhbnVuaS5kYW5tYWt1LnYxIt4CCgdEYW5tYWt1EgwKBEZDSUQYASABKAkSDAoERE1JRBgCIAEoCRIQCghwcm9ncmVzcxgDIAEoBRIlCgRtb2RlGAQgASgOMhcuZGFudW5pLmRhbm1ha3UudjEuTW9kZRIQCghmb250c2l6ZRgFIAEoBRINCgVjb2xvchgGIAEoBRIQCghzZW5kZXJJRBgHIAEoCRIPCgdjb250ZW50GAggASgJEikKBWN0aW1lGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIOCgZ3ZWlnaHQYCiABKAUSJQoEcG9vbBgLIAEoDjIXLmRhbnVuaS5kYW5tYWt1LnYxLlBvb2wSDAoEYXR0chgMIAMoCRIQCghwbGF0Zm9ybRgNIAEoCRIRCgRTUE1PGA4gASgJSACIAQESEgoFZXh0cmEYDyABKAlIAYgBAUIHCgVfU1BNT0IICgZfZXh0cmEiPAoMRGFubWFrdVJlcGx5EiwKCGRhbm1ha3VzGAEgAygLMhouZGFudW5pLmRhbm1ha3UudjEuRGFubWFrdSo9CgRNb2RlEgoKBk5vcm1hbBAAEgoKBkJvdHRvbRABEgcKA1RvcBACEgsKB1JldmVyc2UQAxIHCgNFeHQQBCopCgRQb29sEgcKA0RlZhAAEgcKA1N1YhABEgcKA0FkdhACEgYKAkl4EANQAGIGcHJvdG8z",[go]),1);var _o,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"}(_o||(_o={})),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 Mo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Po="ARRAYBUFFER not supported by this environment",Ho="UINT8ARRAY not supported by this environment";function Qo(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 zo(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=Mo.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(Po)}return function(e,t,o){return function(e,t,n,o){return Qo(new Uint8Array(e),t,n,o)}(e,t,o,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Ho)}return function(e,t,o){return Qo(e,t,o,n)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function $o(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?Mo.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(Po)}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(Ho)}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 qo=4294967296,er=[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],tr=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],nr=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],or="Chosen SHA variant is not supported",rr="Cannot set numRounds with MAC";function ir(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 sr(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 ar(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 zo(t.format,t.encoding||"UTF8",n)(t.value)}class lr{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=sr(t);if(this.K){if(-1===i.outputLen)throw new Error("Output length must be specified in options");r=i.outputLen}const s=$o(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=zo(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(rr);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=sr(t);return $o(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 ur(e,t){return e<<t|e>>>32-t}function cr(e,t){return e>>>t|e<<32-t}function mr(e,t){return e>>>t}function dr(e,t,n){return e^t^n}function pr(e,t,n){return e&t^~e&n}function br(e,t,n){return e&t^e&n^t&n}function gr(e){return cr(e,2)^cr(e,13)^cr(e,22)}function hr(e,t){const n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function fr(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 Er(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 Nr(e){return cr(e,7)^cr(e,18)^mr(e,3)}function Ar(e){return cr(e,6)^cr(e,11)^cr(e,25)}function yr(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Ir(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]:ur(u[l-3]^u[l-8]^u[l-14]^u[l-16],1),a=l<20?Er(ur(n,5),pr(o,r,i),s,1518500249,u[l]):l<40?Er(ur(n,5),dr(o,r,i),s,1859775393,u[l]):l<60?Er(ur(n,5),br(o,r,i),s,2400959708,u[l]):Er(ur(n,5),dr(o,r,i),s,3395469782,u[l]),s=i,i=r,r=ur(o,30),o=n,n=a;return t[0]=hr(n,t[0]),t[1]=hr(o,t[1]),t[2]=hr(r,t[2]),t[3]=hr(i,t[3]),t[4]=hr(s,t[4]),t}function Sr(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/qo|0,r=0;r<e.length;r+=16)o=Ir(e.slice(r,r+16),o);return o}let Gr=class extends lr{constructor(e,t,n){if("SHA-1"!==e)throw new Error(or);super(e,t,n);const o=n||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=zo(this.t,this.i,this.T),this.v=Ir,this.L=function(e){return e.slice()},this.B=yr,this.F=Sr,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.R=160,this.K=!1,o.hmacKey&&this.k(ar("hmacKey",o.hmacKey,this.T))}};function Rr(e){let t;return t="SHA-224"==e?tr.slice():nr.slice(),t}function Yr(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]:fr(cr(b=p[d-2],17)^cr(b,19)^mr(b,10),p[d-7],Nr(p[d-15]),p[d-16]),c=Er(u,Ar(s),pr(s,a,l),er[d],p[d]),m=hr(gr(n),br(n,o,r)),u=l,l=a,a=s,s=hr(i,c),i=r,r=o,o=n,n=hr(c,m);var b;return t[0]=hr(n,t[0]),t[1]=hr(o,t[1]),t[2]=hr(r,t[2]),t[3]=hr(i,t[3]),t[4]=hr(s,t[4]),t[5]=hr(a,t[5]),t[6]=hr(l,t[6]),t[7]=hr(u,t[7]),t}let Wr=class extends lr{constructor(e,t,n){if("SHA-224"!==e&&"SHA-256"!==e)throw new Error(or);super(e,t,n);const o=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=zo(this.t,this.i,this.T),this.v=Yr,this.L=function(e){return e.slice()},this.B=Rr,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/qo|0,i=0;i<e.length;i+=16)o=Yr(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=Rr(e),this.m=512,this.R="SHA-224"===e?224:256,this.K=!1,o.hmacKey&&this.k(ar("hmacKey",o.hmacKey,this.T))}};class wr{constructor(e,t){this.N=e,this.I=t}}function Vr(e,t){let n;return t>32?(n=64-t,new wr(e.I<<t|e.N>>>n,e.N<<t|e.I>>>n)):0!==t?(n=32-t,new wr(e.N<<t|e.I>>>n,e.I<<t|e.N>>>n)):e}function vr(e,t){let n;return t<32?(n=32-t,new wr(e.N>>>t|e.I<<n,e.I>>>t|e.N<<n)):(n=64-t,new wr(e.I>>>t|e.N<<n,e.N>>>t|e.I<<n))}function Br(e,t){return new wr(e.N>>>t,e.I>>>t|e.N<<32-t)}function Fr(e,t,n){return new wr(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 Tr(e){const t=vr(e,28),n=vr(e,34),o=vr(e,39);return new wr(t.N^n.N^o.N,t.I^n.I^o.I)}function Zr(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 wr((65535&o)<<16|65535&n,r)}function xr(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 wr((65535&i)<<16|65535&r,s)}function Cr(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 wr((65535&s)<<16|65535&i,a)}function kr(e,t){return new wr(e.N^t.N,e.I^t.I)}function Xr(e){const t=vr(e,19),n=vr(e,61),o=Br(e,6);return new wr(t.N^n.N^o.N,t.I^n.I^o.I)}function Dr(e){const t=vr(e,1),n=vr(e,8),o=Br(e,7);return new wr(t.N^n.N^o.N,t.I^n.I^o.I)}function Ur(e){const t=vr(e,14),n=vr(e,18),o=vr(e,41);return new wr(t.N^n.N^o.N,t.I^n.I^o.I)}const Lr=[new wr(er[0],3609767458),new wr(er[1],602891725),new wr(er[2],3964484399),new wr(er[3],2173295548),new wr(er[4],4081628472),new wr(er[5],3053834265),new wr(er[6],2937671579),new wr(er[7],3664609560),new wr(er[8],2734883394),new wr(er[9],1164996542),new wr(er[10],1323610764),new wr(er[11],3590304994),new wr(er[12],4068182383),new wr(er[13],991336113),new wr(er[14],633803317),new wr(er[15],3479774868),new wr(er[16],2666613458),new wr(er[17],944711139),new wr(er[18],2341262773),new wr(er[19],2007800933),new wr(er[20],1495990901),new wr(er[21],1856431235),new wr(er[22],3175218132),new wr(er[23],2198950837),new wr(er[24],3999719339),new wr(er[25],766784016),new wr(er[26],2566594879),new wr(er[27],3203337956),new wr(er[28],1034457026),new wr(er[29],2466948901),new wr(er[30],3758326383),new wr(er[31],168717936),new wr(er[32],1188179964),new wr(er[33],1546045734),new wr(er[34],1522805485),new wr(er[35],2643833823),new wr(er[36],2343527390),new wr(er[37],1014477480),new wr(er[38],1206759142),new wr(er[39],344077627),new wr(er[40],1290863460),new wr(er[41],3158454273),new wr(er[42],3505952657),new wr(er[43],106217008),new wr(er[44],3606008344),new wr(er[45],1432725776),new wr(er[46],1467031594),new wr(er[47],851169720),new wr(er[48],3100823752),new wr(er[49],1363258195),new wr(er[50],3750685593),new wr(er[51],3785050280),new wr(er[52],3318307427),new wr(er[53],3812723403),new wr(er[54],2003034995),new wr(er[55],3602036899),new wr(er[56],1575990012),new wr(er[57],1125592928),new wr(er[58],2716904306),new wr(er[59],442776044),new wr(er[60],593698344),new wr(er[61],3733110249),new wr(er[62],2999351573),new wr(er[63],3815920427),new wr(3391569614,3928383900),new wr(3515267271,566280711),new wr(3940187606,3454069534),new wr(4118630271,4000239992),new wr(116418474,1914138554),new wr(174292421,2731055270),new wr(289380356,3203993006),new wr(460393269,320620315),new wr(685471733,587496836),new wr(852142971,1086792851),new wr(1017036298,365543100),new wr(1126000580,2618297676),new wr(1288033470,3409855158),new wr(1501505948,4234509866),new wr(1607167915,987167468),new wr(1816402316,1246189591)];function Kr(e){return"SHA-384"===e?[new wr(3418070365,tr[0]),new wr(1654270250,tr[1]),new wr(2438529370,tr[2]),new wr(355462360,tr[3]),new wr(1731405415,tr[4]),new wr(41048885895,tr[5]),new wr(3675008525,tr[6]),new wr(1203062813,tr[7])]:[new wr(nr[0],4089235720),new wr(nr[1],2227873595),new wr(nr[2],4271175723),new wr(nr[3],1595750129),new wr(nr[4],2917565137),new wr(nr[5],725511199),new wr(nr[6],4215389547),new wr(nr[7],327033209)]}function Or(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 wr(e[p],e[p+1])):b[d]=xr(Xr(b[d-2]),b[d-7],Dr(b[d-15]),b[d-16]),c=Cr(u,Ur(s),(h=a,f=l,new wr((g=s).N&h.N^~g.N&f.N,g.I&h.I^~g.I&f.I)),Lr[d],b[d]),m=Zr(Tr(n),Fr(n,o,r)),u=l,l=a,a=s,s=Zr(i,c),i=r,r=o,o=n,n=Zr(c,m);var g,h,f;return t[0]=Zr(n,t[0]),t[1]=Zr(o,t[1]),t[2]=Zr(r,t[2]),t[3]=Zr(i,t[3]),t[4]=Zr(s,t[4]),t[5]=Zr(a,t[5]),t[6]=Zr(l,t[6]),t[7]=Zr(u,t[7]),t}let Jr=class extends lr{constructor(e,t,n){if("SHA-384"!==e&&"SHA-512"!==e)throw new Error(or);super(e,t,n);const o=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=zo(this.t,this.i,this.T),this.v=Or,this.L=function(e){return e.slice()},this.B=Kr,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/qo|0,i=0;i<e.length;i+=32)o=Or(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=Kr(e),this.m=1024,this.R="SHA-384"===e?384:512,this.K=!1,o.hmacKey&&this.k(ar("hmacKey",o.hmacKey,this.T))}};const _r=[new wr(0,1),new wr(0,32898),new wr(2147483648,32906),new wr(2147483648,2147516416),new wr(0,32907),new wr(0,2147483649),new wr(2147483648,2147516545),new wr(2147483648,32777),new wr(0,138),new wr(0,136),new wr(0,2147516425),new wr(0,2147483658),new wr(0,2147516555),new wr(2147483648,139),new wr(2147483648,32905),new wr(2147483648,32771),new wr(2147483648,32770),new wr(2147483648,128),new wr(0,32778),new wr(2147483648,2147483658),new wr(2147483648,2147516545),new wr(2147483648,32896),new wr(0,2147483649),new wr(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 Mr(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=[new wr(0,0),new wr(0,0),new wr(0,0),new wr(0,0),new wr(0,0)];return n}function Pr(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function Hr(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]=kr(t[(o>>>1)%5][(o>>>1)/5|0],new wr(e[o+1],e[o]));for(n=0;n<24;n+=1){for(i=Mr(),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 wr(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]=kr(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]=kr(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]=kr(i[o][r],new wr(~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]=kr(t[0][0],_r[n])}var l,u,c,m,d;return t}function Qr(e){let t,n,o=0;const r=[0,0],i=[4294967295&e,e/qo&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 zr(e){return ir(Qr(e.binLen),e)}function $r(e,t){let n,o=Qr(t);o=ir(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 qr=class extends lr{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(rr);if("CSHAKE128"===this.o||"CSHAKE256"===this.o)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=zo(this.t,this.i,this.T),this.v=Hr,this.L=Pr,this.B=Mr,this.U=Mr(),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(or)}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=Hr(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=Hr(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&&(Hr(null,o),u=0);return c}(e,t,0,i,r,o,s)},i.hmacKey&&this.k(ar("hmacKey",i.hmacKey,this.T))}O(e,t){const n=function(e){const t=e;return{funcName:ar("funcName",t.funcName,1,{value:[],binLen:0}),customization:ar("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);const o=ir(zr(n.funcName),zr(n.customization));if(0!==n.customization.binLen||0!==n.funcName.binLen){const e=$r(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:ar("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:ar("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this.O(e,t.funcName);const n=$r(zr(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=ir({value:this.h.slice(),binLen:this.u},function(e){let t,n,o=0;const r=[0,0],i=[4294967295&e,e/qo&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 ei{constructor(e,t,n){if("SHA-1"==e)this.P=new Gr(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 Jr(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(or);this.P=new qr(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 ti={acfun:"acfun",baha:"baha",bgm:"bgm",bili:"bili",bglobal:"bglobal",ddplay:"ddplay",tucao:"tucao"},ni=Object.keys(ti);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(),ti.bili):t?new oi(t.toString(),ti.bili):n?new oi(n,ti.bili):this.fromNull(ti.bili)}static fromUnknown(e,t){return e?new oi(e,t):this.fromNull(t)}}function ri(e="",t,n,o=8){return new ei("SHA3-256","TEXT").update(e+t+pi.transCtime(n).toISOString()).getHash("HEX").slice(0,o)}var ii=Object.freeze({__proto__:null,UniID:oi,createDMID:ri,domainPreset:ti,platforms:ni});const si=(e,t)=>"bigint"==typeof t?t.toString():t;class ai{constructor(e){this.bin=e}set1(e){this.bin|=1<<e}set0(e){this.bin&=~(1<<e)}}const li={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 ai(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 ui,ci,mi,di;!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"}(ui||(ui={})),function(e){e[e.Disabled=-1]="Disabled",e[e.ShowOverlay=0]="ShowOverlay",e[e.ManualSkip=1]="ManualSkip",e[e.AutoSkip=2]="AutoSkip"}(ci||(ci={})),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"}(mi||(mi={})),function(e){e[e.Def=0]="Def",e[e.Sub=1]="Sub",e[e.Adv=2]="Adv",e[e.Ix=3]="Ix"}(di||(di={}));class pi{constructor(e,t=0,n=mi.Normal,o=25,r=16777215,i=oi.fromNull().toString(),s="",a=new Date,l=5,u=di.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<mi.Normal||n>mi.Ext)&&(this.mode=mi.Normal),o<=0&&(this.fontsize=25),r<=0&&(this.color=16777215),(l<=0||l>10)&&(this.weight=5),(u<di.Def||u>di.Ix)&&(this.pool=di.Def),b||(b=this.toDMID())}static create(e){return new pi(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,e.extra,e.DMID)}get extra(){const e=JSON.parse(this.extraStr||"{}");return"object"==typeof e?e:{}}get isFrom3rdPlatform(){return!(!this.platform||!ni.includes(this.platform))}toDMID(){return ri(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=mi.Normal;switch(t){case"bili":switch(e){case 4:n=mi.Bottom;break;case 5:n=mi.Top;break;case 6:n=mi.Reverse;break;case 7:case 8:case 9:n=mi.Ext}break;case"dplayer":case"artplayer":1===e?n=mi.Top:2===e&&(n=mi.Bottom);break;case"ddplay":n=this.transMode(e,"bili");break;default:n=mi.Normal}return n}static fromBili(e,t,n){e.oid&&!n&&(n=e.oid);const o=oi.fromBili({cid:n}),r=oi.fromBili({midHash:e.midHash});let i=mi.Normal;const s=e.pool,a={bili:{mode:e.mode,pool:e.pool}};switch(e.mode){case 4:i=mi.Bottom;break;case 5:i=mi.Top;break;case 6:i=mi.Reverse;break;case 7:i=mi.Ext,a.bili.adv=e.content;break;case 8:i=mi.Ext,a.bili.code=e.content;break;case 9:i=mi.Ext,a.bili.bas=e.content;break;default:i=mi.Normal}return this.create({...e,FCID:o.toString(),mode:i,senderID:r.toString(),ctime:this.transCtime(e.ctime),weight:e.weight?e.weight:s===di.Ix?1:0,pool:s,attr:li.fromBin(e.attr,"bili"),platform:ti.bili,SPMO:t,extra:e.mode>=7?JSON.stringify(a,si):void 0})}static fromBiliCommand(e,t,n){e.oid&&!n&&(n=e.oid);const o=oi.fromBili({cid:n}),r=oi.fromBili({mid:e.mid});return this.create({...e,FCID:o.toString(),mode:mi.Ext,senderID:r.toString(),ctime:new Date(`${e.ctime} GMT+0800`),weight:10,pool:di.Adv,attr:["Protect"],platform:ti.bili,SPMO:t,extra:JSON.stringify({bili:{command:e}},si)})}static fromDplayer(e,t,n){const o=oi.fromUnknown(t,n),r=oi.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===mi.Top?e=1:this.mode===mi.Bottom&&(e=2),{mode:e,progress:this.progress,color:this.color,midHash:this.senderID,content:this.content}}static fromArtplayer(e,t,n){const o=oi.fromUnknown(t,n),r=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:o.toString(),mode:this.transMode(e.mode,"artplayer"),senderID:r.toString(),platform:n,extra:JSON.stringify(i,si)})}toArtplayer(){let e=0;return this.mode===mi.Top?e=1:this.mode===mi.Bottom&&(e=2),{progress:this.progress,mode:e,color:this.color,content:this.content,style:this.extra.artplayer?.style}}static fromDDplay(e,t,n=ti.ddplay){const o=oi.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===mi.Top?e=5:this.mode===mi.Bottom&&(e=4),{progress:this.progress,mode:e,color:this.color,uid:this.senderID,m:this.content,cid:Number(this.DMID)||1}}}var bi=Object.freeze({__proto__:null,get ExtraDanUniChapterAction(){return ci},get ExtraDanUniChapterType(){return ui},get Modes(){return mi},get Pools(){return di},UniDM:pi});class gi{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 gi([])}assign(e){return e instanceof gi?new gi([...this.dans,...e.dans]):e instanceof pi?new gi([...this.dans,e]):Array.isArray(e)&&e.every((e=>e instanceof pi))?new gi([...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 gi(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=lo(Jo,new Uint8Array(e));return new gi(t.danmakus.map((e=>new pi(e.FCID,e.progress,e.mode,e.fontsize,e.color,e.senderID,e.content,Eo(e.ctime||fo(new Date)),e.weight,e.pool,e.attr,e.platform,e.SPMO,e.extra,e.DMID))))}toPb(){return Ao(Jo,ze(Jo,{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:fo(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 ye.XMLParser({ignoreAttributes:!1}).parse(e),o=n.i.d;return new gi(o.map((e=>{const o=e["@_p"].split(",");return pi.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=lo(wo,new Uint8Array(e)).elems;return new gi(n.map((e=>pi.fromBili(e,t))))}static fromBiliCommandGrpc(e,t){const n=lo(Vo,new Uint8Array(e)).commandDms;return new gi(n.map((e=>pi.fromBiliCommand(e,t))))}static fromDplayer(e,t,n="other"){return new gi(e.data.map((e=>pi.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 gi(e.map((e=>pi.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 gi(e.comments.map((e=>{const o=e.p.split(",");return pi.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}}))}}}export{pi as UniDM,bi as UniDMTools,ii as UniIDTools,gi as UniPool};
1
+ var e={},t={};!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}(t);const n=t,r={allowBooleanAttributes:!1,unpairedTags:[]};function o(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function i(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 p("InvalidXml","XML declaration allowed only at the start of the document.",g(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function s(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}e.validate=function(e,t){t=Object.assign({},r,t);const a=[];let l=!1,c=!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=i(e,r),r.err)return r}else{if("<"!==e[r]){if(o(e[r]))continue;return p("InvalidChar","char '"+e[r]+"' is not expected.",g(e,r))}{let h=r;if(r++,"!"===e[r]){r=s(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--),b=E,!n.isName(b)){let t;return t=0===E.trim().length?"Invalid space after '<'.":"Tag '"+E+"' is an invalid name.",p("InvalidTag",t,g(e,r))}const N=u(e,r);if(!1===N)return p("InvalidAttr","Attributes for '"+E+"' have open quote.",g(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=m(A,t);if(!0!==o)return p(o.err.code,o.err.msg,g(e,n+o.err.line));l=!0}else if(f){if(!N.tagClosed)return p("InvalidTag","Closing tag '"+E+"' doesn't have proper closing.",g(e,r));if(A.trim().length>0)return p("InvalidTag","Closing tag '"+E+"' can't have attributes or invalid starting.",g(e,h));if(0===a.length)return p("InvalidTag","Closing tag '"+E+"' has not been opened.",g(e,h));{const t=a.pop();if(E!==t.tagName){let n=g(e,t.tagStartPos);return p("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+E+"'.",g(e,h))}0==a.length&&(c=!0)}}else{const n=m(A,t);if(!0!==n)return p(n.err.code,n.err.msg,g(e,r-A.length+n.err.line));if(!0===c)return p("InvalidXml","Multiple possible root nodes found.",g(e,r));-1!==t.unpairedTags.indexOf(E)||a.push({tagName:E,tagStartPos:h}),l=!0}for(r++;r<e.length;r++)if("<"===e[r]){if("!"===e[r+1]){r++,r=s(e,r);continue}if("?"!==e[r+1])break;if(r=i(e,++r),r.err)return r}else if("&"===e[r]){const t=d(e,r);if(-1==t)return p("InvalidChar","char '&' is not expected.",g(e,r));r=t}else if(!0===c&&!o(e[r]))return p("InvalidXml","Extra text at the end",g(e,r));"<"===e[r]&&r--}}}var b;return l?1==a.length?p("InvalidTag","Unclosed tag '"+a[0].tagName+"'.",g(e,a[0].tagStartPos)):!(a.length>0)||p("InvalidXml","Invalid '"+JSON.stringify(a.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):p("InvalidXml","Start tag expected.",1)};const a='"',l="'";function u(e,t){let n="",r="",o=!1;for(;t<e.length;t++){if(e[t]===a||e[t]===l)""===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 c=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function m(e,t){const r=n.getAllMatches(e,c),o={};for(let e=0;e<r.length;e++){if(0===r[e][1].length)return p("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",h(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return p("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",h(r[e]));if(void 0===r[e][3]&&!t.allowBooleanAttributes)return p("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",h(r[e]));const n=r[e][2];if(!b(n))return p("InvalidAttr","Attribute '"+n+"' is an invalid name.",h(r[e]));if(o.hasOwnProperty(n))return p("InvalidAttr","Attribute '"+n+"' is repeated.",h(r[e]));o[n]=1}return!0}function d(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 p(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function b(e){return n.isName(e)}function g(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function h(e){return e.startIndex+e[1].length}var f={};const E={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}};f.buildOptions=function(e){return Object.assign({},E,e)},f.defaultOptions=E;var N=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 A=t;function y(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 I(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 S(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 G(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 R(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 Y(e){if(A.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&&I(e,t)){let r,o;t+=7,[r,o,t]=y(e,t+1),-1===o.indexOf("&")&&(n[Y(r)]={regx:RegExp(`&${r};`,"g"),val:o})}else o&&S(e,t)||o&&G(e,t)?t+=8:o&&R(e,t)?t+=9:i=!0;r++,s=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}};const w=/^[-+]?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 v={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};var B=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 F=t,T=N,Z=W,x=function(e,t={}){if(t=Object.assign({},v,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&&w.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}},C=B;function k(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 X(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 Q(e,this.options.parseTagValue,this.options.numberParseOptions);return e.trim()===e?Q(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function D(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 U=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function L(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const n=F.getAllMatches(e,U),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:Q(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 K=function(e){e=e.replace(/\r\n?/g,"\n");const t=new T("!xml");let n=t,r="",o="";for(let i=0;i<e.length;i++){if("<"===e[i])if("/"===e[i+1]){const t=M(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=P(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 T(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=M(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=Z(e,i);this.docTypeEntities=t.entities,i=t.i}else if("!["===e.substr(i+1,2)){const t=M(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=P(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 T(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 T(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 T(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 O(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 J=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 _(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 j(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 M(e,t,n,r){const o=e.indexOf(t,n);if(-1===o)throw new Error(r);return o+t.length-1}function P(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 H(e,t,n){const r=n;let o=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=M(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=M(e,"?>",n+1,"StopNode is not closed.")}else if("!--"===e.substr(n+1,3)){n=M(e,"--\x3e",n+3,"StopNode is not closed.")}else if("!["===e.substr(n+1,2)){n=M(e,"]]>",n,"StopNode is not closed.")-2}else{const r=P(e,n,">");if(r){(r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&o++,n=r.closeIndex}}}function Q(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&x(e,n)}return F.isExist(e)?e:""}var z=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=k,this.parseXml=K,this.parseTextData=X,this.resolveNameSpace=D,this.buildAttributesMap=L,this.isItStopNode=j,this.replaceEntitiesValue=J,this.readStopNodeData=H,this.saveTextToParentTag=_,this.addChild=O,this.ignoreAttributesFn=C(this.options.ignoreAttributes)}},$={};function q(e,t,n){let r;const o={};for(let i=0;i<e.length;i++){const s=e[i],a=ee(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=q(s[a],t,l);const n=ne(e,t);s[":@"]?te(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 ee(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function te(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 ne(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])}$.prettify=function(e,t){return q(e,t)};const{buildOptions:re}=f,oe=z,{prettify:ie}=$,se=e;var ae=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=se.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new oe(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:ie(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 le(e,t,n,r){let o="",i=!1;for(let s=0;s<e.length;s++){const a=e[s],l=ue(a);if(void 0===l)continue;let u="";if(u=0===n.length?l:`${n}.${l}`,l===t.textNodeName){let e=a[l];me(u,t)||(e=t.tagValueProcessor(l,e),e=de(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=ce(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}${ce(a[":@"],t)}`,d=le(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 ue(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 ce(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=de(o,t),!0===o&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function me(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 de(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 pe=function(e,t){let n="";return t.format&&t.indentBy.length>0&&(n="\n"),le(e,t,"",n)},be=B,ge={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 he(e){this.options=Object.assign({},ge,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=be(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ne),this.processTextOrObjNode=fe,this.options.format?(this.indentate=Ee,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function fe(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 Ee(e){return this.options.indentBy.repeat(e)}function Ne(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}he.prototype.build=function(e){return this.options.preserveOrder?pe(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},he.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}},he.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},he.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}},he.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},he.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}},he.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 Ae,ye={XMLParser:ae,XMLValidator:e,XMLBuilder:he};function Ie(e,t){return!(null===e||"object"!=typeof e||!("$typeName"in e)||"string"!=typeof e.$typeName)&&(void 0===t||t.typeName===e.$typeName)}function Se(){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 Ge(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"}(Ae||(Ae={}));const Re=4294967296;function Ye(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>=Re&&(o+=r/Re|0,r%=Re)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?Ve(r,o):we(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(Re*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()+ve(i)+ve(o)}function we(e,t){return{lo:0|e,hi:0|t}}function Ve(e,t){return t=~t,e?e=1+~e:t+=1,we(e,t)}const ve=e=>{const t=String(e);return"0000000".slice(t.length)+t};function Be(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 Fe(){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 Te=Ze();function Ze(){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()),xe(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),Ce(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),xe(e),Ye(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),Ce(e),Ye(e)),dec:(e,t)=>function(e,t){let n=we(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 xe(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function Ce(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function ke(e,t){switch(e){case Ae.STRING:return"";case Ae.BOOL:return!1;default:case Ae.DOUBLE:case Ae.FLOAT:return 0;case Ae.INT64:case Ae.UINT64:case Ae.SFIXED64:case Ae.FIXED64:case Ae.SINT64:return t?"0":Te.zero;case Ae.BYTES:return new Uint8Array(0)}}class Xe extends Error{constructor(e,t,n="FieldValueInvalidError"){super(t),this.name=n,this.field=()=>e}}const De=Symbol.for("reflect unsafe local");function Ue(e,t){const n=e[t.localName].case;return void 0===n?n:t.fields.find((e=>e.localName===n))}function Le(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 Ae.BOOL:return!1===t;case Ae.STRING:return""===t;case Ae.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 Ke(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]}function Oe(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 Je(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function _e(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function je(e,t){var n,r,o,i;if(_e(e)&&De 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 Me(e,t){var n,r,o,i;if(_e(e)&&De 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 Pe(e,t){return _e(e)&&De in e&&"desc"in e&&_e(e.desc)&&"message"===e.desc.kind&&(void 0===t||e.desc.typeName==t.typeName)}function He(e){const t=e.fields[0];return Qe(e.typeName)&&void 0!==t&&"scalar"==t.fieldKind&&"value"==t.name&&1==t.number}function Qe(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}function ze(e,t){if(Ie(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=it.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]=st(t)));it.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]=st(n)}}else{t={$typeName:e.typeName};for(const n of e.members)"oneof"!=n.kind&&2!=n.presence||(t[n.localName]=st(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=Ue(n,r);if(!t)continue;e=t,o=Oe(n,t)}else e=r;switch(e.fieldKind){case"message":o=tt(e,o);break;case"scalar":o=$e(e,o);break;case"list":o=et(e,o);break;case"map":o=qe(e,o)}Je(t,e,o)}}}(e,n,t),n}function $e(e,t){return e.scalar==Ae.BYTES?nt(t):t}function qe(e,t){if(_e(t)){if(e.scalar==Ae.BYTES)return rt(t,nt);if("message"==e.mapKind)return rt(t,(t=>tt(e,t)))}return t}function et(e,t){if(Array.isArray(t)){if(e.scalar==Ae.BYTES)return t.map(nt);if("message"==e.listKind)return t.map((t=>tt(e,t)))}return t}function tt(e,t){if("message"==e.fieldKind&&!e.oneof&&He(e.message))return $e(e.message.fields[0],t);if(_e(t)){if("google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!==e.parent.typeName)return t;if(!Ie(t,e.message))return ze(e.message,t)}return t}function nt(e){return Array.isArray(e)?new Uint8Array(e):e}function rt(e,t){const n={};for(const r of Object.entries(e))n[r[0]]=t(r[1]);return n}const ot=Symbol(),it=new WeakMap;function st(e){if("oneof"==e.kind)return{case:void 0};if("list"==e.fieldKind)return[];if("map"==e.fieldKind)return{};if("message"==e.fieldKind)return ot;const t=e.getDefaultValue();return void 0!==t?"scalar"==e.fieldKind&&e.longAsString?t.toString():t:"scalar"==e.fieldKind?ke(e.scalar,e.longAsString):e.enum.values[0].number}const at=Symbol.for("@bufbuild/protobuf/text-encoding");function lt(){if(null==globalThis[at]){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[at]={encodeUtf8:t=>e.encode(t),decodeUtf8:e=>t.decode(e),checkUtf8(e){try{return encodeURIComponent(e),!0}catch(e){return!1}}}}return globalThis[at]}var ut;!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"}(ut||(ut={}));const ct=34028234663852886e22,mt=-34028234663852886e22,dt=4294967295,pt=2147483647,bt=-2147483648;class gt{constructor(e=lt().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(Et(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return ft(e),Be(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>ct||e<mt))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){Et(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){ft(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return ft(e),Be(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=Te.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=Te.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=Te.enc(e);return Ge(t.lo,t.hi,this.buf),this}sint64(e){let t=Te.enc(e),n=t.hi>>31;return Ge(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=Te.uEnc(e);return Ge(t.lo,t.hi,this.buf),this}}class ht{constructor(e,t=lt().decodeUtf8){this.decodeUtf8=t,this.varint64=Se,this.uint32=Fe,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 ut.Varint:for(;128&this.buf[this.pos++];);break;case ut.Bit64:this.pos+=4;case ut.Bit32:this.pos+=4;break;case ut.LengthDelimited:let n=this.uint32();this.pos+=n;break;case ut.StartGroup:for(;;){const[e,n]=this.tag();if(n===ut.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 Te.dec(...this.varint64())}uint64(){return Te.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,Te.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 Te.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Te.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 ft(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>pt||e<bt)throw new Error("invalid int32: "+e)}function Et(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>dt||e<0)throw new Error("invalid uint32: "+e)}function Nt(e,t,n){const r=At(e,n);if(!0!==r)return new Xe(e,`list item #${t+1}: ${It(e,n,r)}`)}function At(e,t){return void 0!==e.scalar?yt(t,e.scalar):void 0!==e.enum?e.enum.open?Number.isInteger(t):e.enum.values.some((e=>e.number===t)):Pe(t,e.message)}function yt(e,t){switch(t){case Ae.DOUBLE:return"number"==typeof e;case Ae.FLOAT:return"number"==typeof e&&(!(!Number.isNaN(e)&&Number.isFinite(e))||(!(e>ct||e<mt)||`${e.toFixed()} out of range`));case Ae.INT32:case Ae.SFIXED32:case Ae.SINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>pt||e<bt)||`${e.toFixed()} out of range`);case Ae.FIXED32:case Ae.UINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>dt||e<0)||`${e.toFixed()} out of range`);case Ae.BOOL:return"boolean"==typeof e;case Ae.STRING:return"string"==typeof e&&(lt().checkUtf8(e)||"invalid UTF8");case Ae.BYTES:return e instanceof Uint8Array;case Ae.INT64:case Ae.SFIXED64:case Ae.SINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{Te.parse(e)}catch(t){return`${e} out of range`}return!0;case Ae.FIXED64:case Ae.UINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{Te.uParse(e)}catch(t){return`${e} out of range`}return!0}}function It(e,t,n){return n="string"==typeof n?`: ${n}`:`, got ${St(t)}`,void 0!==e.scalar?`expected ${function(e){switch(e){case Ae.STRING:return"string";case Ae.BOOL:return"boolean";case Ae.INT64:case Ae.SINT64:case Ae.SFIXED64:return"bigint (int64)";case Ae.UINT64:case Ae.FIXED64:return"bigint (uint64)";case Ae.BYTES:return"Uint8Array";case Ae.DOUBLE:return"number (float64)";case Ae.FLOAT:return"number (float32)";case Ae.FIXED32:case Ae.UINT32:return"number (uint32)";case Ae.INT32:case Ae.SFIXED32:case Ae.SINT32:return"number (int32)"}}(e.scalar)}`+n:void 0!==e.enum?`expected ${e.enum.toString()}`+n:`expected ${Gt(e.message)}`+n}function St(e){switch(typeof e){case"object":return null===e?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:je(e)?Rt(e.field()):Me(e)?Yt(e.field()):Pe(e)?Gt(e.desc):Ie(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 Gt(e){return`ReflectMessage (${e.typeName})`}function Rt(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${Ae[e.scalar]})`}}function Yt(e){switch(e.mapKind){case"message":return`ReflectMap (${Ae[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${Ae[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${Ae[e.mapKey]}, ${Ae[e.scalar]})`}}function Wt(e,t,n=!0){return new wt(e,t,n)}class wt{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[De]=null!=t?t:ze(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),Ue(this.message,e)}isSet(e){return Vt(this.message,e),Le(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]=ke(t.scalar,t.longAsString)}}(this.message,e)}get(e){Vt(this.message,e);const t=Oe(this.message,e);switch(e.fieldKind){case"list":let n=this.lists.get(e);return n&&n[De]===t||this.lists.set(e,n=new vt(e,t,this.check)),n;case"map":let r=this.maps.get(e);return r&&r[De]===t||this.maps.set(e,r=new Bt(e,t,this.check)),r;case"message":return Tt(e,t,this.check);case"scalar":return void 0===t?ke(e.scalar,!1):Dt(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?Me(t,e):At(e,t);if(!0===n)return;let r;switch(e.fieldKind){case"list":r=`expected ${Rt(e)}, got ${St(t)}`;break;case"map":r=`expected ${Yt(e)}, got ${St(t)}`;break;default:r=It(e,t,n)}return new Xe(e,r)}(e,t);if(n)throw n}let n;n="message"==e.fieldKind?Ft(e,t):Me(t)||je(t)?t[De]:Ut(e,t),Je(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 Xe(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class vt{field(){return this._field}get size(){return this._arr.length}constructor(e,t,n){this._field=e,this._arr=this[De]=t,this.check=n}get(e){const t=this._arr[e];return void 0===t?void 0:xt(this._field,t,this.check)}set(e,t){if(e<0||e>=this._arr.length)throw new Xe(this._field,`list item #${e+1}: out of range`);if(this.check){const n=Nt(this._field,e,t);if(n)throw n}this._arr[e]=Zt(this._field,t)}add(e){if(this.check){const t=Nt(this._field,this._arr.length,e);if(t)throw t}this._arr.push(Zt(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 xt(this._field,e,this.check)}*entries(){for(let e=0;e<this._arr.length;e++)yield[e,xt(this._field,this._arr[e],this.check)]}}class Bt{constructor(e,t,n=!0){this.obj=this[De]=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=yt(t,e.mapKey);if(!0!==r)return new Xe(e,`invalid map key: ${It({scalar:e.mapKey},t,r)}`);const o=At(e,n);return!0!==o?new Xe(e,`map entry ${St(t)}: ${It(e,n,o)}`):void 0}(this._field,e,t);if(n)throw n}return this.obj[kt(e)]=function(e,t){if("message"==e.mapKind)return Ft(e,t);return Ut(e,t)}(this._field,t),this}delete(e){const t=kt(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[kt(e)];return void 0!==t&&(t=Ct(this._field,t,this.check)),t}has(e){return Object.prototype.hasOwnProperty.call(this.obj,kt(e))}*keys(){for(const e of Object.keys(this.obj))yield Xt(e,this._field.mapKey)}*entries(){for(const e of Object.entries(this.obj))yield[Xt(e[0],this._field.mapKey),Ct(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 Ct(this._field,e,this.check)}forEach(e,t){for(const n of this.entries())e.call(t,n[1],n[0],this)}}function Ft(e,t){return Pe(t)?Qe(t.message.$typeName)&&!e.oneof&&"message"==e.fieldKind?t.message.value:"google.protobuf.Struct"==t.desc.typeName&&"google.protobuf.Value"!=e.parent.typeName?Kt(t.message):t.message:t}function Tt(e,t,n){return void 0!==t&&(He(e.message)&&!e.oneof&&"message"==e.fieldKind?t={$typeName:e.message.typeName,value:Dt(e.message.fields[0],t)}:"google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!=e.parent.typeName&&_e(t)&&(t=Lt(t))),new wt(e.message,t,n)}function Zt(e,t){return"message"==e.listKind?Ft(e,t):Ut(e,t)}function xt(e,t,n){return"message"==e.listKind?Tt(e,t,n):Dt(e,t)}function Ct(e,t,n){return"message"==e.mapKind?Tt(e,t,n):t}function kt(e){return"string"==typeof e||"number"==typeof e?e:String(e)}function Xt(e,t){switch(t){case Ae.STRING:return e;case Ae.INT32:case Ae.FIXED32:case Ae.UINT32:case Ae.SFIXED32:case Ae.SINT32:{const t=Number.parseInt(e);if(Number.isFinite(t))return t;break}case Ae.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case Ae.UINT64:case Ae.FIXED64:try{return Te.uParse(e)}catch(e){}break;default:try{return Te.parse(e)}catch(e){}}return e}function Dt(e,t){switch(e.scalar){case Ae.INT64:case Ae.SFIXED64:case Ae.SINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=Te.parse(t));break;case Ae.FIXED64:case Ae.UINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=Te.uParse(t))}return t}function Ut(e,t){switch(e.scalar){case Ae.INT64:case Ae.SFIXED64:case Ae.SINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=Te.parse(t));break;case Ae.FIXED64:case Ae.UINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=Te.uParse(t))}return t}function Lt(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(_e(e))for(const[n,r]of Object.entries(e))t.fields[n]=Jt(r);return t}function Kt(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Ot(r);return t}function Ot(e){switch(e.kind.case){case"structValue":return Kt(e.kind.value);case"listValue":return e.kind.value.values.map(Ot);case"nullValue":case void 0:return null;default:return e.kind.value}}function Jt(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(Jt(t));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:Lt(e)}}return t}function _t(e){const t=function(){if(!Mt){Mt=[];const e=function(){jt||(jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),jt.slice(0,-2).concat("-","_"));return jt}();for(let t=0;t<e.length;t++)Mt[e[t].charCodeAt(0)]=t;Mt["-".charCodeAt(0)]=e.indexOf("+"),Mt["_".charCodeAt(0)]=e.indexOf("/")}return Mt}();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 jt,Mt;function Pt(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 Ht=new Set(["constructor","toString","toJSON","valueOf"]);function Qt(e){return Ht.has(e)?e+"$":e}function zt(e){for(const t of e.field)Ke(t,"jsonName")||(t.jsonName=Pt(t.name));e.nestedType.forEach(zt)}function $t(e,t){switch(e){case Ae.STRING:return t;case Ae.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=Te.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 ${Ae[e]} default value: ${t}`);return n}case Ae.INT64:case Ae.SFIXED64:case Ae.SINT64:return Te.parse(t);case Ae.UINT64:case Ae.FIXED64:return Te.uParse(t);case Ae.DOUBLE:case Ae.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 Ae.BOOL:return"true"===t;case Ae.INT32:case Ae.UINT32:case Ae.SINT32:case Ae.FIXED32:case Ae.SFIXED32:return parseInt(t,10)}}function*qt(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*qt(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*qt(t);yield*e.nestedEnums,yield*e.nestedExtensions}}function en(...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 qt(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)An(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())An(a,t)}else for(const l of e)for(const u of l.files)t.addFile(u);return t}const tn=998,nn=999,rn=9,on=10,sn=11,an=12,ln=14,un=3,cn=2,mn=1,dn=0,pn=1,bn=2,gn=3,hn=1,fn=2,En=1,Nn={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 An(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:wn(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;Cn(!0===(null===(t=e.proto.options)||void 0===t?void 0:t.mapEntry)),i.set(e.typeName,e)}};for(const n of e.enumType)Sn(n,o,void 0,t);for(const n of e.messageType)Gn(n,o,void 0,t,s);for(const n of e.service)Rn(n,o,t);yn(o,t);for(const e of i.values())In(e,t,s);for(const e of o.messages)In(e,t,s),yn(e,t);t.addFile(o,!0)}function yn(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)yn(n,t)}}function In(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:Qt(Pt(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}(t,e))),o=new Set;for(const i of e.proto.field){const s=Fn(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)In(r,t,n)}function Sn(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:vn(e,n,t),value:{},values:[],sharedPrefix:a,toString(){return`enum ${this.typeName}`}};l.open=function(e){var t;return En==xn("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:Qt(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 Gn(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:vn(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)Sn(n,t,u,r);for(const n of e.nestedType)Gn(n,t,u,r,o)}function Rn(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:vn(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=Yn(t,i,n);i.methods.push(e),i.method[e.localName]=e}}function Yn(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(Bn(e.inputType)),u=n.getMessage(Bn(e.outputType));Cn(l,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),Cn(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:Qt(c.length?Qt(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:dn,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:Tn(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=vn(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(Bn(e.extendee));Cn(s,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),u.extendee=s}else{const n=t;Cn("message"==n.kind),u.parent=n,u.oneof=r,u.localName=r?Pt(e.name):Qt(Pt(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===un){const r=m==sn?null==o?void 0:o.get(Bn(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 Cn(t&&"scalar"==t.fieldKind&&t.scalar!=Ae.BYTES&&t.scalar!=Ae.FLOAT&&t.scalar!=Ae.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 sn:case on:u.listKind="message",u.message=n.getMessage(Bn(e.typeName)),Cn(u.message),u.delimitedEncoding=Zn(e,t);break;case ln:u.listKind="enum",u.enum=n.getEnum(Bn(e.typeName)),Cn(u.enum);break;default:u.listKind="scalar",u.scalar=m,u.longAsString=d==mn}return u.packed=function(e,t){if(e.label!=un)return!1;switch(e.type){case rn:case an:case on:case sn:return!1}const n=e.options;if(n&&Ke(n,"packed"))return n.packed;return hn==xn("repeatedFieldEncoding",{proto:e,parent:t})}(e,t),u}switch(m){case sn:case on:u.fieldKind="message",u.message=n.getMessage(Bn(e.typeName)),Cn(u.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.delimitedEncoding=Zn(e,t),u.getDefaultValue=()=>{};break;case ln:{const t=n.getEnum(Bn(e.typeName));Cn(void 0!==t,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(Bn(e.typeName)),u.getDefaultValue=()=>Ke(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==mn,u.getDefaultValue=()=>Ke(e,"defaultValue")?$t(m,e.defaultValue):void 0}return u}function wn(e){switch(e.syntax){case"":case"proto2":return tn;case"proto3":return nn;case"editions":if(e.edition in Nn)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 vn(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 Bn(e){return e.startsWith(".")?e.substring(1):e}function Fn(e,t){if(!Ke(e,"oneofIndex"))return;if(e.proto3Optional)return;const n=t[e.oneofIndex];return Cn(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function Tn(e,t,n,r){return e.label==cn?gn:e.label==un?bn:t||e.proto3Optional||e.type==sn||n?pn:xn("fieldPresence",{proto:e,parent:r})}function Zn(e,t){return e.type==on||fn==xn("messageEncoding",{proto:e,parent:t})}function xn(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 xn(e,null!==(r=t.parent)&&void 0!==r?r:t.file);const n=Nn[t.edition];if(!n)throw new Error(`feature default for edition ${t.edition} not found`);return n[e]}return xn(e,t.parent)}function Cn(e,t){if(!e)throw new Error(t)}function kn(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(Xn),enumType:e.enumType.map(Ln)}))}(e);t.messageType.forEach(zt);return en(t,(()=>{})).getFile(t.name)}function Xn(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(Dn))&&void 0!==n?n:[],extension:[],nestedType:null!==(o=null===(r=e.nestedType)||void 0===r?void 0:r.map(Xn))&&void 0!==o?o:[],enumType:null!==(s=null===(i=e.enumType)||void 0===i?void 0:i.map(Ln))&&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 Dn(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?Un(e.options):void 0}))}function Un(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 Ln(e){return{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map((e=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},e)))}}function Kn(e,t,...n){return n.reduce(((e,t)=>e.nestedMessages[t]),e.messages[t])}const On=Kn(kn({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 Jn,_n,jn,Mn,Pn,Hn,Qn,zn,$n,qn,er,tr,nr,rr,or,ir,sr;!function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"}(Jn||(Jn={})),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"}(_n||(_n={})),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"}(Mn||(Mn={})),function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"}(Pn||(Pn={})),function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"}(Hn||(Hn={})),function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"}(Qn||(Qn={})),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"}(zn||(zn={})),function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"}($n||($n={})),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"}(qn||(qn={})),function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"}(er||(er={})),function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"}(tr||(tr={})),function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"}(nr||(nr={})),function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"}(rr||(rr={})),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"}(or||(or={})),function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"}(ir||(ir={})),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"}(sr||(sr={}));const ar={readUnknownFields:!0};function lr(e,t,n){const r=Wt(e,void 0,!1);return ur(r,new ht(t),function(e){return e?Object.assign(Object.assign({},ar),e):ar}(n),!1,t.byteLength),r.message}function ur(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!=ut.EndGroup);){const r=e.findNumber(a);if(r)cr(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!=ut.EndGroup||a!==o))throw new Error("invalid end group tag");u.length>0&&e.setUnknown(u)}function cr(e,t,n,r,o){switch(n.fieldKind){case"scalar":e.set(n,dr(t,n.scalar));break;case"enum":e.set(n,dr(t,Ae.INT32));break;case"message":e.set(n,mr(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(mr(e,r,i));const s=null!==(o=i.scalar)&&void 0!==o?o:Ae.INT32,a=t==ut.LengthDelimited&&s!=Ae.STRING&&s!=Ae.BYTES;if(!a)return void n.add(dr(e,s));const l=e.uint32()+e.pos;for(;e.pos<l;)n.add(dr(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=dr(e,r.mapKey);break;case 2:switch(r.mapKind){case"scalar":i=dr(e,r.scalar);break;case"enum":i=e.int32();break;case"message":i=mr(e,n,r)}}}void 0===o&&(o=ke(r.mapKey,!1));if(void 0===i)switch(r.mapKind){case"scalar":i=ke(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 mr(e,t,n,r){const o=n.delimitedEncoding,i=null!=r?r:Wt(n.message,void 0,!1);return ur(i,e,t,o,o?n.number:e.uint32()),i}function dr(e,t){switch(t){case Ae.STRING:return e.string();case Ae.BOOL:return e.bool();case Ae.DOUBLE:return e.double();case Ae.FLOAT:return e.float();case Ae.INT32:return e.int32();case Ae.INT64:return e.int64();case Ae.UINT64:return e.uint64();case Ae.FIXED64:return e.fixed64();case Ae.BYTES:return e.bytes();case Ae.FIXED32:return e.fixed32();case Ae.SFIXED32:return e.sfixed32();case Ae.SFIXED64:return e.sfixed64();case Ae.SINT64:return e.sint64();case Ae.UINT32:return e.uint32();case Ae.SINT32:return e.sint32()}}function pr(e,t){var n;const r=lr(On,_t(e));r.messageType.forEach(zt),r.dependency=null!==(n=null==t?void 0:t.map((e=>e.proto.name)))&&void 0!==n?n:[];const o=en(r,(e=>null==t?void 0:t.find((t=>t.proto.name===e))));return o.getFile(r.name)}const br=pr("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),gr=Kn(br,0);function hr(e){return function(e){return ze(gr,{seconds:Te.parse(Math.floor(e/1e3)),nanos:e%1e3*1e6})}(e.getTime())}function fr(e){return new Date(function(e){return 1e3*Number(e.seconds)+Math.ceil(e.nanos/1e6)}(e))}const Er={writeUnknownFields:!0};function Nr(e,t,n){return Ar(new gt,function(e){return e?Object.assign(Object.assign({},Er),e):Er}(n),Wt(e,t)).finish()}function Ar(e,t,n){var r;for(const r of n.sortedFields)if(n.isSet(r))yr(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 yr(e,t,n,r){var o;switch(r.fieldKind){case"scalar":case"enum":Ir(e,null!==(o=r.scalar)&&void 0!==o?o:Ae.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)Sr(e,t,n,o);return}const i=null!==(o=n.scalar)&&void 0!==o?o:Ae.INT32;if(n.packed){if(!r.size)return;e.tag(n.number,ut.LengthDelimited).fork();for(const t of r)Rr(e,i,t);return void e.join()}for(const t of r)Ir(e,i,n.number,t)}(e,t,r,n.get(r));break;case"message":Sr(e,t,r,n.get(r));break;case"map":for(const[o,i]of n.get(r))Gr(e,t,r,o,i)}}function Ir(e,t,n,r){Rr(e.tag(n,function(e){switch(e){case Ae.BYTES:case Ae.STRING:return ut.LengthDelimited;case Ae.DOUBLE:case Ae.FIXED64:case Ae.SFIXED64:return ut.Bit64;case Ae.FIXED32:case Ae.SFIXED32:case Ae.FLOAT:return ut.Bit32;default:return ut.Varint}}(t)),t,r)}function Sr(e,t,n,r){n.delimitedEncoding?Ar(e.tag(n.number,ut.StartGroup),t,r).tag(n.number,ut.EndGroup):Ar(e.tag(n.number,ut.LengthDelimited).fork(),t,r).join()}function Gr(e,t,n,r,o){var i;switch(e.tag(n.number,ut.LengthDelimited).fork(),Ir(e,n.mapKey,1,r),n.mapKind){case"scalar":case"enum":Ir(e,null!==(i=n.scalar)&&void 0!==i?i:Ae.INT32,2,o);break;case"message":Ar(e.tag(2,ut.LengthDelimited).fork(),t,o).join()}e.join()}function Rr(e,t,n){switch(t){case Ae.STRING:e.string(n);break;case Ae.BOOL:e.bool(n);break;case Ae.DOUBLE:e.double(n);break;case Ae.FLOAT:e.float(n);break;case Ae.INT32:e.int32(n);break;case Ae.INT64:e.int64(n);break;case Ae.UINT64:e.uint64(n);break;case Ae.FIXED64:e.fixed64(n);break;case Ae.BYTES:e.bytes(n);break;case Ae.FIXED32:e.fixed32(n);break;case Ae.SFIXED32:e.sfixed32(n);break;case Ae.SFIXED64:e.sfixed64(n);break;case Ae.SINT64:e.sint64(n);break;case Ae.UINT32:e.uint32(n);break;case Ae.SINT32:e.sint32(n)}}const Yr=pr("Cg1iaWxpL2RtLnByb3RvEiBiaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS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saWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1FeHBvUmVwb3J0UmVzYgZwcm90bzM"),Wr=Kn(Yr,30),wr=Kn(Yr,39);var Vr,vr,Br,Fr,Tr,Zr,xr,Cr,kr,Xr,Dr,Ur,Lr,Kr;!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"}(vr||(vr={})),function(e){e[e.CheckboxTypeNone=0]="CheckboxTypeNone",e[e.CheckboxTypeEncourage=1]="CheckboxTypeEncourage",e[e.CheckboxTypeColorDM=2]="CheckboxTypeColorDM"}(Br||(Br={})),function(e){e[e.NoneType=0]="NoneType",e[e.VipGradualColor=60001]="VipGradualColor"}(Fr||(Fr={})),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"}(Tr||(Tr={})),function(e){e[e.DmMaskWallContentTypeUnknown=0]="DmMaskWallContentTypeUnknown",e[e.DmMaskWallContentTypeText=1]="DmMaskWallContentTypeText",e[e.DmMaskWallContentTypePic=2]="DmMaskWallContentTypePic"}(Zr||(Zr={})),function(e){e[e.ExposureTypeNone=0]="ExposureTypeNone",e[e.ExposureTypeDMSend=1]="ExposureTypeDMSend"}(xr||(xr={})),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"}(Cr||(Cr={})),function(e){e[e.PostStatusNormal=0]="PostStatusNormal",e[e.PostStatusClosed=1]="PostStatusClosed"}(kr||(kr={})),function(e){e[e.RenderTypeNone=0]="RenderTypeNone",e[e.RenderTypeSingle=1]="RenderTypeSingle",e[e.RenderTypeRotation=2]="RenderTypeRotation"}(Xr||(Xr={})),function(e){e[e.None=0]="None",e[e.Exposure=1]="Exposure",e[e.Assist=2]="Assist"}(Dr||(Dr={})),function(e){e[e.Normal=0]="Normal",e[e.Translate=1]="Translate"}(Ur||(Ur={})),function(e){e[e.CC=0]="CC",e[e.AI=1]="AI"}(Lr||(Lr={})),function(e){e[e.ToastFunctionTypeNone=0]="ToastFunctionTypeNone",e[e.ToastFunctionTypePostPanel=1]="ToastFunctionTypePostPanel"}(Kr||(Kr={}));const Or=Kn(pr("CgxkYW51bmkucHJvdG8SEWRhbnVuaS5kYW5tYWt1LnYxIt4CCgdEYW5tYWt1EgwKBEZDSUQYASABKAkSDAoERE1JRBgCIAEoCRIQCghwcm9ncmVzcxgDIAEoBRIlCgRtb2RlGAQgASgOMhcuZGFudW5pLmRhbm1ha3UudjEuTW9kZRIQCghmb250c2l6ZRgFIAEoBRINCgVjb2xvchgGIAEoBRIQCghzZW5kZXJJRBgHIAEoCRIPCgdjb250ZW50GAggASgJEikKBWN0aW1lGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIOCgZ3ZWlnaHQYCiABKAUSJQoEcG9vbBgLIAEoDjIXLmRhbnVuaS5kYW5tYWt1LnYxLlBvb2wSDAoEYXR0chgMIAMoCRIQCghwbGF0Zm9ybRgNIAEoCRIRCgRTUE1PGA4gASgJSACIAQESEgoFZXh0cmEYDyABKAlIAYgBAUIHCgVfU1BNT0IICgZfZXh0cmEiPAoMRGFubWFrdVJlcGx5EiwKCGRhbm1ha3VzGAEgAygLMhouZGFudW5pLmRhbm1ha3UudjEuRGFubWFrdSo9CgRNb2RlEgoKBk5vcm1hbBAAEgoKBkJvdHRvbRABEgcKA1RvcBACEgsKB1JldmVyc2UQAxIHCgNFeHQQBCopCgRQb29sEgcKA0RlZhAAEgcKA1N1YhABEgcKA0FkdhACEgYKAkl4EANQAGIGcHJvdG8z",[br]),1);var Jr,_r;!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"}(Jr||(Jr={})),function(e){e[e.Def=0]="Def",e[e.Sub=1]="Sub",e[e.Adv=2]="Adv",e[e.Ix=3]="Ix"}(_r||(_r={}));const jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mr="ARRAYBUFFER not supported by this environment",Pr="UINT8ARRAY not supported by this environment";function Hr(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 Qr(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=jr.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(Mr)}return function(e,t,r){return function(e,t,n,r){return Hr(new Uint8Array(e),t,n,r)}(e,t,r,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Pr)}return function(e,t,r){return Hr(e,t,r,n)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function zr(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?jr.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(Mr)}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(Pr)}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 $r=4294967296,qr=[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],eo=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],to=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],no="Chosen SHA variant is not supported",ro="Cannot set numRounds with MAC";function oo(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 io(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 so(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 Qr(t.format,t.encoding||"UTF8",n)(t.value)}class ao{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=io(t);if(this.K){if(-1===i.outputLen)throw new Error("Output length must be specified in options");o=i.outputLen}const s=zr(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=Qr(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(ro);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=io(t);return zr(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 lo(e,t){return e<<t|e>>>32-t}function uo(e,t){return e>>>t|e<<32-t}function co(e,t){return e>>>t}function mo(e,t,n){return e^t^n}function po(e,t,n){return e&t^~e&n}function bo(e,t,n){return e&t^e&n^t&n}function go(e){return uo(e,2)^uo(e,13)^uo(e,22)}function ho(e,t){const n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function fo(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 Eo(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 No(e){return uo(e,7)^uo(e,18)^co(e,3)}function Ao(e){return uo(e,6)^uo(e,11)^uo(e,25)}function yo(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Io(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]:lo(u[l-3]^u[l-8]^u[l-14]^u[l-16],1),a=l<20?Eo(lo(n,5),po(r,o,i),s,1518500249,u[l]):l<40?Eo(lo(n,5),mo(r,o,i),s,1859775393,u[l]):l<60?Eo(lo(n,5),bo(r,o,i),s,2400959708,u[l]):Eo(lo(n,5),mo(r,o,i),s,3395469782,u[l]),s=i,i=o,o=lo(r,30),r=n,n=a;return t[0]=ho(n,t[0]),t[1]=ho(r,t[1]),t[2]=ho(o,t[2]),t[3]=ho(i,t[3]),t[4]=ho(s,t[4]),t}function So(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/$r|0,o=0;o<e.length;o+=16)r=Io(e.slice(o,o+16),r);return r}let Go=class extends ao{constructor(e,t,n){if("SHA-1"!==e)throw new Error(no);super(e,t,n);const r=n||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=Qr(this.t,this.i,this.T),this.v=Io,this.L=function(e){return e.slice()},this.B=yo,this.F=So,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.R=160,this.K=!1,r.hmacKey&&this.k(so("hmacKey",r.hmacKey,this.T))}};function Ro(e){let t;return t="SHA-224"==e?eo.slice():to.slice(),t}function Yo(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]:fo(uo(b=p[d-2],17)^uo(b,19)^co(b,10),p[d-7],No(p[d-15]),p[d-16]),c=Eo(u,Ao(s),po(s,a,l),qr[d],p[d]),m=ho(go(n),bo(n,r,o)),u=l,l=a,a=s,s=ho(i,c),i=o,o=r,r=n,n=ho(c,m);var b;return t[0]=ho(n,t[0]),t[1]=ho(r,t[1]),t[2]=ho(o,t[2]),t[3]=ho(i,t[3]),t[4]=ho(s,t[4]),t[5]=ho(a,t[5]),t[6]=ho(l,t[6]),t[7]=ho(u,t[7]),t}let Wo=class extends ao{constructor(e,t,n){if("SHA-224"!==e&&"SHA-256"!==e)throw new Error(no);super(e,t,n);const r=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=Qr(this.t,this.i,this.T),this.v=Yo,this.L=function(e){return e.slice()},this.B=Ro,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/$r|0,i=0;i<e.length;i+=16)r=Yo(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=Ro(e),this.m=512,this.R="SHA-224"===e?224:256,this.K=!1,r.hmacKey&&this.k(so("hmacKey",r.hmacKey,this.T))}};class wo{constructor(e,t){this.N=e,this.I=t}}function Vo(e,t){let n;return t>32?(n=64-t,new wo(e.I<<t|e.N>>>n,e.N<<t|e.I>>>n)):0!==t?(n=32-t,new wo(e.N<<t|e.I>>>n,e.I<<t|e.N>>>n)):e}function vo(e,t){let n;return t<32?(n=32-t,new wo(e.N>>>t|e.I<<n,e.I>>>t|e.N<<n)):(n=64-t,new wo(e.I>>>t|e.N<<n,e.N>>>t|e.I<<n))}function Bo(e,t){return new wo(e.N>>>t,e.I>>>t|e.N<<32-t)}function Fo(e,t,n){return new wo(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 To(e){const t=vo(e,28),n=vo(e,34),r=vo(e,39);return new wo(t.N^n.N^r.N,t.I^n.I^r.I)}function Zo(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 wo((65535&r)<<16|65535&n,o)}function xo(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 wo((65535&i)<<16|65535&o,s)}function Co(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 wo((65535&s)<<16|65535&i,a)}function ko(e,t){return new wo(e.N^t.N,e.I^t.I)}function Xo(e){const t=vo(e,19),n=vo(e,61),r=Bo(e,6);return new wo(t.N^n.N^r.N,t.I^n.I^r.I)}function Do(e){const t=vo(e,1),n=vo(e,8),r=Bo(e,7);return new wo(t.N^n.N^r.N,t.I^n.I^r.I)}function Uo(e){const t=vo(e,14),n=vo(e,18),r=vo(e,41);return new wo(t.N^n.N^r.N,t.I^n.I^r.I)}const Lo=[new wo(qr[0],3609767458),new wo(qr[1],602891725),new wo(qr[2],3964484399),new wo(qr[3],2173295548),new wo(qr[4],4081628472),new wo(qr[5],3053834265),new wo(qr[6],2937671579),new wo(qr[7],3664609560),new wo(qr[8],2734883394),new wo(qr[9],1164996542),new wo(qr[10],1323610764),new wo(qr[11],3590304994),new wo(qr[12],4068182383),new wo(qr[13],991336113),new wo(qr[14],633803317),new wo(qr[15],3479774868),new wo(qr[16],2666613458),new wo(qr[17],944711139),new wo(qr[18],2341262773),new wo(qr[19],2007800933),new wo(qr[20],1495990901),new wo(qr[21],1856431235),new wo(qr[22],3175218132),new wo(qr[23],2198950837),new wo(qr[24],3999719339),new wo(qr[25],766784016),new wo(qr[26],2566594879),new wo(qr[27],3203337956),new wo(qr[28],1034457026),new wo(qr[29],2466948901),new wo(qr[30],3758326383),new wo(qr[31],168717936),new wo(qr[32],1188179964),new wo(qr[33],1546045734),new wo(qr[34],1522805485),new wo(qr[35],2643833823),new wo(qr[36],2343527390),new wo(qr[37],1014477480),new wo(qr[38],1206759142),new wo(qr[39],344077627),new wo(qr[40],1290863460),new wo(qr[41],3158454273),new wo(qr[42],3505952657),new wo(qr[43],106217008),new wo(qr[44],3606008344),new wo(qr[45],1432725776),new wo(qr[46],1467031594),new wo(qr[47],851169720),new wo(qr[48],3100823752),new wo(qr[49],1363258195),new wo(qr[50],3750685593),new wo(qr[51],3785050280),new wo(qr[52],3318307427),new wo(qr[53],3812723403),new wo(qr[54],2003034995),new wo(qr[55],3602036899),new wo(qr[56],1575990012),new wo(qr[57],1125592928),new wo(qr[58],2716904306),new wo(qr[59],442776044),new wo(qr[60],593698344),new wo(qr[61],3733110249),new wo(qr[62],2999351573),new wo(qr[63],3815920427),new wo(3391569614,3928383900),new wo(3515267271,566280711),new wo(3940187606,3454069534),new wo(4118630271,4000239992),new wo(116418474,1914138554),new wo(174292421,2731055270),new wo(289380356,3203993006),new wo(460393269,320620315),new wo(685471733,587496836),new wo(852142971,1086792851),new wo(1017036298,365543100),new wo(1126000580,2618297676),new wo(1288033470,3409855158),new wo(1501505948,4234509866),new wo(1607167915,987167468),new wo(1816402316,1246189591)];function Ko(e){return"SHA-384"===e?[new wo(3418070365,eo[0]),new wo(1654270250,eo[1]),new wo(2438529370,eo[2]),new wo(355462360,eo[3]),new wo(1731405415,eo[4]),new wo(41048885895,eo[5]),new wo(3675008525,eo[6]),new wo(1203062813,eo[7])]:[new wo(to[0],4089235720),new wo(to[1],2227873595),new wo(to[2],4271175723),new wo(to[3],1595750129),new wo(to[4],2917565137),new wo(to[5],725511199),new wo(to[6],4215389547),new wo(to[7],327033209)]}function Oo(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 wo(e[p],e[p+1])):b[d]=xo(Xo(b[d-2]),b[d-7],Do(b[d-15]),b[d-16]),c=Co(u,Uo(s),(h=a,f=l,new wo((g=s).N&h.N^~g.N&f.N,g.I&h.I^~g.I&f.I)),Lo[d],b[d]),m=Zo(To(n),Fo(n,r,o)),u=l,l=a,a=s,s=Zo(i,c),i=o,o=r,r=n,n=Zo(c,m);var g,h,f;return t[0]=Zo(n,t[0]),t[1]=Zo(r,t[1]),t[2]=Zo(o,t[2]),t[3]=Zo(i,t[3]),t[4]=Zo(s,t[4]),t[5]=Zo(a,t[5]),t[6]=Zo(l,t[6]),t[7]=Zo(u,t[7]),t}let Jo=class extends ao{constructor(e,t,n){if("SHA-384"!==e&&"SHA-512"!==e)throw new Error(no);super(e,t,n);const r=n||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=Qr(this.t,this.i,this.T),this.v=Oo,this.L=function(e){return e.slice()},this.B=Ko,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/$r|0,i=0;i<e.length;i+=32)r=Oo(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=Ko(e),this.m=1024,this.R="SHA-384"===e?384:512,this.K=!1,r.hmacKey&&this.k(so("hmacKey",r.hmacKey,this.T))}};const _o=[new wo(0,1),new wo(0,32898),new wo(2147483648,32906),new wo(2147483648,2147516416),new wo(0,32907),new wo(0,2147483649),new wo(2147483648,2147516545),new wo(2147483648,32777),new wo(0,138),new wo(0,136),new wo(0,2147516425),new wo(0,2147483658),new wo(0,2147516555),new wo(2147483648,139),new wo(2147483648,32905),new wo(2147483648,32771),new wo(2147483648,32770),new wo(2147483648,128),new wo(0,32778),new wo(2147483648,2147483658),new wo(2147483648,2147516545),new wo(2147483648,32896),new wo(0,2147483649),new wo(2147483648,2147516424)],jo=[[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 Mo(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=[new wo(0,0),new wo(0,0),new wo(0,0),new wo(0,0),new wo(0,0)];return n}function Po(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function Ho(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]=ko(t[(r>>>1)%5][(r>>>1)/5|0],new wo(e[r+1],e[r]));for(n=0;n<24;n+=1){for(i=Mo(),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 wo(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]=ko(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]=ko(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],jo[r][o]);for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)t[r][o]=ko(i[r][o],new wo(~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]=ko(t[0][0],_o[n])}var l,u,c,m,d;return t}function Qo(e){let t,n,r=0;const o=[0,0],i=[4294967295&e,e/$r&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 zo(e){return oo(Qo(e.binLen),e)}function $o(e,t){let n,r=Qo(t);r=oo(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 qo=class extends ao{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(ro);if("CSHAKE128"===this.o||"CSHAKE256"===this.o)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=Qr(this.t,this.i,this.T),this.v=Ho,this.L=Po,this.B=Mo,this.U=Mo(),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(no)}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=Ho(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=Ho(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&&(Ho(null,r),u=0);return c}(e,t,0,i,o,r,s)},i.hmacKey&&this.k(so("hmacKey",i.hmacKey,this.T))}O(e,t){const n=function(e){const t=e;return{funcName:so("funcName",t.funcName,1,{value:[],binLen:0}),customization:so("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);const r=oo(zo(n.funcName),zo(n.customization));if(0!==n.customization.binLen||0!==n.funcName.binLen){const e=$o(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:so("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:so("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this.O(e,t.funcName);const n=$o(zo(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=oo({value:this.h.slice(),binLen:this.u},function(e){let t,n,r=0;const o=[0,0],i=[4294967295&e,e/$r&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 ei{constructor(e,t,n){if("SHA-1"==e)this.P=new Go(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 Jo(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(no);this.P=new qo(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 ti={acfun:"acfun",baha:"baha",bgm:"bgm",bili:"bili",bglobal:"bglobal",ddplay:"ddplay",tucao:"tucao"},ni=Object.keys(ti);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(),ti.bili):t?new ri(t.toString(),ti.bili):n?new ri(n,ti.bili):this.fromNull(ti.bili)}static fromUnknown(e,t){return e?new ri(e,t):this.fromNull(t)}}function oi(e="",t,n,r=8){return new ei("SHA3-256","TEXT").update(e+t+pi.transCtime(n).toISOString()).getHash("HEX").slice(0,r)}var ii=Object.freeze({__proto__:null,UniID:ri,createDMID:oi,domainPreset:ti,platforms:ni});const si=(e,t)=>"bigint"==typeof t?t.toString():t;class ai{constructor(e){this.bin=e}set1(e){this.bin|=1<<e}set0(e){this.bin&=~(1<<e)}}const li={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 ai(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 ui,ci,mi,di;!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"}(ui||(ui={})),function(e){e[e.Disabled=-1]="Disabled",e[e.ShowOverlay=0]="ShowOverlay",e[e.ManualSkip=1]="ManualSkip",e[e.AutoSkip=2]="AutoSkip"}(ci||(ci={})),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"}(mi||(mi={})),function(e){e[e.Def=0]="Def",e[e.Sub=1]="Sub",e[e.Adv=2]="Adv",e[e.Ix=3]="Ix"}(di||(di={}));class pi{constructor(e,t=0,n=mi.Normal,r=25,o=16777215,i=ri.fromNull().toString(),s="",a=new Date,l=5,u=di.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<mi.Normal||n>mi.Ext)&&(this.mode=mi.Normal),r<=0&&(this.fontsize=25),o<=0&&(this.color=16777215),(l<=0||l>10)&&(this.weight=5),(u<di.Def||u>di.Ix)&&(this.pool=di.Def),b||(b=this.toDMID()),this.progress=Number.parseFloat(t.toFixed(3))}static create(e){return e?new pi(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,"object"==typeof e.extra?JSON.stringify(e.extra):e.extra||e.extraStr,e.DMID):new pi(ri.fromNull().toString())}get extra(){const e=JSON.parse(this.extraStr||"{}");return"object"==typeof e?e:{}}get isFrom3rdPlatform(){return!(!this.platform||!ni.includes(this.platform))}toDMID(){return oi(this.content,this.senderID,this.ctime)}minify(){const e=pi.create(),t=pi.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=mi.Normal;switch(t){case"bili":switch(e){case 4:n=mi.Bottom;break;case 5:n=mi.Top;break;case 6:n=mi.Reverse;break;case 7:case 8:case 9:n=mi.Ext}break;case"dplayer":case"artplayer":1===e?n=mi.Top:2===e&&(n=mi.Bottom);break;case"ddplay":n=this.transMode(e,"bili");break;default:n=mi.Normal}return n}static fromBili(e,t,n){e.oid&&!n&&(n=e.oid);const r=ri.fromBili({cid:n}),o=ri.fromBili({midHash:e.midHash});let i=mi.Normal;const s=e.pool,a={bili:{mode:e.mode,pool:e.pool}};switch(e.mode){case 4:i=mi.Bottom;break;case 5:i=mi.Top;break;case 6:i=mi.Reverse;break;case 7:i=mi.Ext,a.bili.adv=e.content;break;case 8:i=mi.Ext,a.bili.code=e.content;break;case 9:i=mi.Ext,a.bili.bas=e.content;break;default:i=mi.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===di.Ix?1:0,pool:s,attr:li.fromBin(e.attr,"bili"),platform:ti.bili,SPMO:t,extra:e.mode>=7?JSON.stringify(a,si):void 0})}static fromBiliCommand(e,t,n){e.oid&&!n&&(n=e.oid);const r=ri.fromBili({cid:n}),o=ri.fromBili({mid:e.mid});return this.create({...e,FCID:r.toString(),mode:mi.Ext,senderID:o.toString(),ctime:new Date(`${e.ctime} GMT+0800`),weight:10,pool:di.Adv,attr:["Protect"],platform:ti.bili,SPMO:t,extra:JSON.stringify({bili:{command:e}},si)})}static fromDplayer(e,t,n){const r=ri.fromUnknown(t,n),o=ri.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===mi.Top?e=1:this.mode===mi.Bottom&&(e=2),{mode:e,progress:this.progress,color:this.color,midHash:this.senderID,content:this.content}}static fromArtplayer(e,t,n){const r=ri.fromUnknown(t,n),o=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:r.toString(),mode:this.transMode(e.mode,"artplayer"),senderID:o.toString(),platform:n,extra:JSON.stringify(i,si)})}toArtplayer(){let e=0;return this.mode===mi.Top?e=1:this.mode===mi.Bottom&&(e=2),{progress:this.progress,mode:e,color:this.color,content:this.content,style:this.extra.artplayer?.style}}static fromDDplay(e,t,n=ti.ddplay){const r=ri.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===mi.Top?e=5:this.mode===mi.Bottom&&(e=4),{progress:this.progress,mode:e,color:this.color,uid:this.senderID,m:this.content,cid:Number(this.DMID)||1}}}var bi=Object.freeze({__proto__:null,get ExtraDanUniChapterAction(){return ci},get ExtraDanUniChapterType(){return ui},get Modes(){return mi},get Pools(){return di},UniDM:pi});class gi{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 gi([])}assign(e){return e instanceof gi?new gi([...this.dans,...e.dans]):e instanceof pi?new gi([...this.dans,e]):Array.isArray(e)&&e.every((e=>e instanceof pi))?new gi([...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 gi(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=lr(Or,new Uint8Array(e));return new gi(t.danmakus.map((e=>new pi(e.FCID,e.progress,e.mode,e.fontsize,e.color,e.senderID,e.content,fr(e.ctime||hr(new Date)),e.weight,e.pool,e.attr,e.platform,e.SPMO,e.extra,e.DMID))))}toPb(){return Nr(Or,ze(Or,{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:hr(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 ye.XMLParser({ignoreAttributes:!1}).parse(e),r=n.i.d;return new gi(r.map((e=>{const r=e["@_p"].split(",");return pi.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=lr(Wr,new Uint8Array(e)).elems;return new gi(n.map((e=>pi.fromBili(e,t))))}static fromBiliCommandGrpc(e,t){const n=lr(wr,new Uint8Array(e)).commandDms;return new gi(n.map((e=>pi.fromBiliCommand(e,t))))}static fromDplayer(e,t,n="other"){return new gi(e.data.map((e=>pi.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 gi(e.map((e=>pi.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 gi(e.comments.map((e=>{const r=e.p.split(",");return pi.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}}))}}}export{pi as UniDM,bi as UniDMTools,ii as UniIDTools,gi as UniPool};