const mx=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}};mx();const Rx=[],b1=[],yx={margins:[100,120,100,120],watermark:{data:"",size:120},pageNumber:{format:"\u7B2C{pageNo}\u9875/\u5171{pageCount}\u9875"},placeholder:{data:"\u8BF7\u8F93\u5165\u6B63\u6587"},zone:{tipDisabled:!1},maskMargin:[60,0,30,0]};var qe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Wm(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}),e}function mc(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xm={exports:{}};(function(t){var e=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function m(v){return v instanceof c?new c(v.type,m(v.content),v.alias):Array.isArray(v)?v.map(m):v.replace(/&/g,"&").replace(/"+E.content+""};function u(m,v,x,O){m.lastIndex=v;var E=m.exec(x);if(E&&O&&E[1]){var N=E[1].length;E.index+=N,E[0]=E[0].slice(N)}return E}function l(m,v,x,O,E,N){for(var M in x)if(!(!x.hasOwnProperty(M)||!x[M])){var _=x[M];_=Array.isArray(_)?_:[_];for(var B=0;B<_.length;++B){if(N&&N.cause==M+","+B)return;var q=_[B],T=q.inside,I=!!q.lookbehind,b=!!q.greedy,P=q.alias;if(b&&!q.pattern.global){var U=q.pattern.toString().match(/[imsuy]*$/)[0];q.pattern=RegExp(q.pattern.source,U+"g")}for(var X=q.pattern||q,V=O.next,k=E;V!==v.tail&&!(N&&k>=N.reach);k+=V.value.length,V=V.next){var re=V.value;if(v.length>m.length)return;if(!(re instanceof c)){var Z=1,C;if(b){if(C=u(X,k,m,I),!C||C.index>=m.length)break;var ce=C.index,ne=C.index+C[0].length,oe=k;for(oe+=V.value.length;ce>=oe;)V=V.next,oe+=V.value.length;if(oe-=V.value.length,k=oe,V.value instanceof c)continue;for(var ue=V;ue!==v.tail&&(oeN.reach&&(N.reach=z);var H=V.prev;A&&(H=d(v,H,A),k+=A.length),f(v,H,Z);var j=new c(M,T?s.tokenize(W,T):W,P,W);if(V=d(v,H,j),Q&&d(v,V,Q),Z>1){var ge={cause:M+","+B,reach:z};l(m,v,x,V.prev,k,ge),N&&ge.reach>N.reach&&(N.reach=ge.reach)}}}}}}function h(){var m={value:null,prev:null,next:null},v={value:null,prev:m,next:null};m.next=v,this.head=m,this.tail=v,this.length=0}function d(m,v,x){var O=v.next,E={value:x,prev:v,next:O};return v.next=E,O.prev=E,m.length++,E}function f(m,v,x){for(var O=v.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var a={};a["language-"+o]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^$/i;var s={"included-cdata":{pattern://i,inside:a}};s["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n=="undefined"||typeof document=="undefined")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",i=function(g,y){return"\u2716 Error "+g+" while fetching file: "+y},o="\u2716 Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",c="loading",u="loaded",l="failed",h="pre[data-src]:not(["+s+'="'+u+'"]):not(['+s+'="'+c+'"])';function d(g,y,R){var m=new XMLHttpRequest;m.open("GET",g,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?y(m.responseText):m.status>=400?R(i(m.status,m.statusText)):R(o))},m.send(null)}function f(g){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(y){var R=Number(y[1]),m=y[2],v=y[3];return m?v?[R,Number(v)]:[R,void 0]:[R,R]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+h}),n.hooks.add("before-sanity-check",function(g){var y=g.element;if(y.matches(h)){g.code="",y.setAttribute(s,c);var R=y.appendChild(document.createElement("CODE"));R.textContent=r;var m=y.getAttribute("data-src"),v=g.language;if(v==="none"){var x=(/\.(\w+)$/.exec(m)||[,"none"])[1];v=a[x]||x}n.util.setLanguage(R,v),n.util.setLanguage(y,v);var O=n.plugins.autoloader;O&&O.loadLanguages(v),d(m,function(E){y.setAttribute(s,u);var N=f(y.getAttribute("data-range"));if(N){var M=E.split(/\r\n?|\n/g),_=N[0],B=N[1]==null?M.length:N[1];_<0&&(_+=M.length),_=Math.max(0,Math.min(_-1,M.length)),B<0&&(B+=M.length),B=Math.max(0,Math.min(B,M.length)),E=M.slice(_,B).join(` `),y.hasAttribute("data-start")||y.setAttribute("data-start",String(_+1))}R.textContent=E,n.highlightElement(R)},function(E){y.setAttribute(s,l),R.textContent=E})}}),n.plugins.fileHighlight={highlight:function(y){for(var R=(y||document).querySelectorAll(h),m=0,v;v=R[m++];)n.highlightElement(v)}};var p=!1;n.fileHighlight=function(){p||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),p=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Xm);var x1=Xm.exports;const vx="0.9.81";var ea=(t=>(t.HALF="half",t.ONE_THIRD="one-third",t.QUARTER="quarter",t))(ea||{}),ou=(t=>(t.ARABIC="arabic",t.CHINESE="chinese",t))(ou||{}),ht=(t=>(t.INLINE="inline",t.BLOCK="block",t.FLOAT_TOP="float-top",t.FLOAT_BOTTOM="float-bottom",t))(ht||{});const We="\u200B",w1=` `,bx=" ",T1=" ",xx=["\xB7","\u3001",":","\uFF1A",",","\uFF0C",".","\u3002",";","\uFF1B","?","\uFF1F","!","\uFF01"],Vm={[ea.HALF]:1/2,[ea.ONE_THIRD]:1/3,[ea.QUARTER]:1/4},wx={ENGLISH:"A-Za-z",SPANISH:"A-Za-z\xC1\xC9\xCD\xD3\xDA\xE1\xE9\xED\xF3\xFA\xD1\xF1\xDC\xFC",FRENCH:"A-Za-z\xC0\xC2\xC7\xE0\xE2\xE7\xC9\xE9\xC8\xE8\xCA\xEA\xCB\xEB\xCE\xEE\xCF\xEF\xD4\xF4\xD9\xF9\xDB\xFB\u0178\xFF",GERMAN:"A-Za-z\xC4\xE4\xD6\xF6\xDC\xFC\xDF",RUSSIAN:"\u0410-\u042F\u0430-\u044F\u0401\u0451",PORTUGUESE:"A-Za-z\xC1\xC9\xCD\xD3\xDA\xE1\xE9\xED\xF3\xFA\xC3\xD5\xE3\xF5\xC7\xE7",ITALIAN:"A-Za-z\xC0\xE0\xC8\xE8\xC9\xE9\xCC\xEC\xCD\xED\xCE\xEE\xD3\xF3\xD2\xF2\xD9\xF9",DUTCH:"A-Za-z\xC0\xE0\xC1\xE1\xC2\xE2\xC4\xE4\xC8\xE8\xC9\xE9\xCA\xEA\xCB\xEB\xCC\xEC\xCD\xED\xCE\xEE\xCF\xEF\xD3\xF3\xD2\xF2\xD4\xF4\xD6\xF6\xD9\xF9\xDB\xFB\xDC\xFC",SWEDISH:"A-Za-z\xC5\xE5\xC4\xE4\xD6\xF6",GREEK:"\u0391\u03B1\u0392\u03B2\u0393\u03B3\u0394\u03B4\u0395\u03B5\u0396\u03B6\u0397\u03B7\u0398\u03B8\u0399\u03B9\u039A\u03BA\u039B\u03BB\u039C\u03BC\u039D\u03BD\u039E\u03BE\u039F\u03BF\u03A0\u03C0\u03A1\u03C1\u03A3\u03C3\u03C2\u03A4\u03C4\u03A5\u03C5\u03A6\u03C6\u03A7\u03C7\u03A8\u03C8\u03A9\u03C9"},Tx="\u65E5";var at=(t=>(t.LEFT="left",t.CENTER="center",t.RIGHT="right",t.ALIGNMENT="alignment",t.JUSTIFY="justify",t))(at||{});const Pl=/[0-9.]/,Sx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/,Dx=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,Ox=new RegExp(`${Dx.source}|${Sx.source}`,"g"),_x=/[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/,Ym=new RegExp(`^[${We} ]`);function Bm(t,e){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{t.apply(this,r)},e)}}function Ex(t,e){let n=0,r;return function(...i){const o=Date.now();o-n>=e?(window.clearTimeout(r),t.apply(this,i),n=o):(window.clearTimeout(r),r=window.setTimeout(()=>{t.apply(this,i),n=o},e))}}function id(t,e){if(!t||typeof t!="object")return t;let n={};return Array.isArray(t)?n=t.map(r=>id(r,e)):Object.keys(t).forEach(r=>{if(!e.includes(r))return n[r]=id(t[r],e)}),n}function Ft(t){if(!t||typeof t!="object")return t;let e={};return Array.isArray(t)?e=t.map(n=>Ft(n)):Object.keys(t).forEach(n=>e[n]=Ft(t[n])),e}function Ml(t){return t&&t.nodeType===1&&t.tagName.toLowerCase()==="body"}function au(t,e,n){if(t&&!Ml(t))for(t=n?t:t.parentNode;t;){if(!e||e(t)||Ml(t))return e&&!e(t)&&Ml(t)?null:t;t=t.parentNode}return null}function vt(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function vr(t){const e=[];if(Intl.Segmenter){const r=new Intl.Segmenter().segment(t);for(const{segment:i}of r)e.push(i)}else{const n=new Map;for(const i of t.matchAll(Ox))n.set(i.index,i[0]);let r=0;for(;r=t-1&&(n(a),r=0)};e.addEventListener("click",o)}function su(t){return Object.prototype.toString.call(t)==="[object Object]"}function S1(t){return Array.isArray(t)}function km(t,e){if(su(t)&&su(e)){const n=e;for(const[r,i]of Object.entries(t))n[r]?n[r]=km(i,n[r]):n[r]=i}else S1(t)&&S1(e)&&e.push(...t);return e}function cu(t){setTimeout(()=>{t()},0)}function D1(t){const e=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],n=["","\u5341","\u767E","\u5343","\u4E07","\u5341","\u767E","\u5343","\u4EBF","\u5341","\u767E","\u5343","\u4E07","\u5341","\u767E","\u5343","\u4EBF"];if(!t||isNaN(t))return"\u96F6";const r=t.toString().split("");let i="";for(let o=0;oString.fromCharCode(o));return window.btoa(r.join(""))}function Px(t){let e=t.parentElement;for(;e;){const r=window.getComputedStyle(e).getPropertyValue("overflow-y");if(e.scrollHeight>e.clientHeight&&(r==="auto"||r==="scroll"))return e;e=e.parentElement}return document.documentElement}function Mx(t,e){return t.length!==e.length?!1:!t.some(n=>!e.includes(n))}function Lx(t,e){if(!su(t)||!su(e))return!1;const n=Object.keys(t),r=Object.keys(e);return n.length!==r.length?!1:!n.some(i=>e[i]!==t[i])}const Cx=12,Ax={width:1,color:"#000000",dragWidth:2,dragColor:"#0000FF"},Jr="editor-component",ke="ce",zd=`${ke}-clipboard`;var bn=(t=>(t.UP="top",t.DOWN="down",t.LEFT="left",t.RIGHT="right",t))(bn||{}),fe=(t=>(t.TEXT="text",t.IMAGE="image",t.TABLE="table",t.HYPERLINK="hyperlink",t.SUPERSCRIPT="superscript",t.SUBSCRIPT="subscript",t.SEPARATOR="separator",t.PAGE_BREAK="pageBreak",t.CONTROL="control",t.CHECKBOX="checkbox",t.RADIO="radio",t.LATEX="latex",t.TAB="tab",t.DATE="date",t.BLOCK="block",t.TITLE="title",t.LIST="list",t))(fe||{});const po=["bold","color","highlight","font","size","italic","underline","strikeout","textDecoration"],Ns=["rowFlex","rowMargin"],Ux=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","url","hyperlinkId","dateId","dateFormat","groupIds","rowMargin","textDecoration"],Wx=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","rowMargin","dashArray","trList","borderType","width","height","url","colgroup","valueList","control","checkbox","radio","dateFormat","block","level","title","listType","listStyle","listWrap","groupIds","conceptId","imgDisplay","imgFloatPosition","textDecoration","extension","externalId"],Xx=["verticalAlign","backgroundColor","borderTypes","slashTypes"],$d=["tdId","trId","tableId"],Vx=["level","titleId","title"],Qm=["listId","listType","listStyle"],O1=["control","controlId","controlComponent"],sa=["font","size","bold","highlight","italic","strikeout"],Km=[...$d,...Vx,...Qm,...Ns],Nr=[fe.TEXT,fe.HYPERLINK,fe.SUBSCRIPT,fe.SUPERSCRIPT,fe.CONTROL,fe.DATE],Yx=[fe.IMAGE,fe.LATEX],Bx=[fe.BLOCK,fe.PAGE_BREAK,fe.SEPARATOR,fe.TABLE],Zx=["HR","TABLE","UL","OL"],kx=[fe.TITLE,fe.LIST];class Hm{constructor(e){this.draw=e,this.options=e.getOptions(),this.container=e.getContainer(),this.imageCache=new Map,this.floatImageContainer=null,this.floatImage=null}createFloatImage(e){const{scale:n}=this.options;let r=this.floatImageContainer,i=this.floatImage;r||(r=document.createElement("div"),r.classList.add(`${ke}-float-image`),this.container.append(r),this.floatImageContainer=r),i||(i=document.createElement("img"),r.append(i),this.floatImage=i),r.style.display="none",i.style.width=`${e.width*n}px`,i.style.height=`${e.height*n}px`;const o=this.draw.getHeight(),a=this.draw.getPageGap(),s=this.draw.getPageNo()*(o+a),c=e.imgFloatPosition;r.style.left=`${c.x}px`,r.style.top=`${s+c.y}px`,i.src=e.value}dragFloatImage(e,n){if(!this.floatImageContainer)return;this.floatImageContainer.style.display="block";const r=parseFloat(this.floatImageContainer.style.left)+e,i=parseFloat(this.floatImageContainer.style.top)+n;this.floatImageContainer.style.left=`${r}px`,this.floatImageContainer.style.top=`${i}px`}destroyFloatImage(){this.floatImageContainer&&(this.floatImageContainer.style.display="none")}addImageObserver(e){this.draw.getImageObserver().add(e)}getFallbackImage(e,n){const i=(e-Math.ceil(e/8)*8)/2,o=(n-Math.ceil(n/8)*8)/2,a=` `,s=new Image;return s.src=`data:image/svg+xml;base64,${Fx(a)}`,s}render(e,n,r,i){const{scale:o}=this.options,a=n.width*o,s=n.height*o;if(this.imageCache.has(n.id)){const c=this.imageCache.get(n.id);e.drawImage(c,r,i,a,s)}else{const c=new Promise((u,l)=>{const h=new Image;h.setAttribute("crossOrigin","Anonymous"),h.src=n.value,h.onload=()=>{this.imageCache.set(n.id,h),u(n),n.imgDisplay===ht.FLOAT_BOTTOM?this.draw.render({isCompute:!1,isSetCursor:!1,isSubmitHistory:!1}):e.drawImage(h,r,i,a,s)},h.onerror=d=>{const f=this.getFallbackImage(a,s);f.onload=()=>{e.drawImage(f,r,i,a,s),this.imageCache.set(n.id,f)},l(d)}});this.addImageObserver(c)}}}const Rc="R".charCodeAt(0);function Qo(t){return od[t]==null&&Qx(t),od[t]}function Qx(t){const e=Kx[t];if(e==null)return;const n=e.substring(3,5),r=1*n.charCodeAt(0)-Rc,i=1*n.charCodeAt(1)-Rc,o=e.substring(5),a=[[]];let s=1/0,c=-1/0,u=1/0,l=-1/0,h=0;for(;hf>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q":2242,"~":2246,"@":2273,"\\":804}[t]}const Rr={SUB_SUP_SCALE:.5,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function Hx(t){t=t.replace(/\n/g," ");let e=0;const n=[];let r="";for(;e0&&(t[h].text=="^"||t[h].text=="_"||t[h].text=="'");)h--;l=t[h].bbox.y,t[u].text=="'"?t[u].bbox.y=l:(Kn(t[u],Rr.SUB_SUP_SCALE,null,0,0),ot[t[h].text]&&ot[t[h].text].flags.big?t[u].bbox.y=l-t[u].bbox.h:t[h].text=="\\int"?t[u].bbox.y=l:t[u].bbox.y=l-t[u].bbox.h/2)}else if(t[u].text=="_"){let l=1,h=u;for(;h>0&&(t[h].text=="^"||t[h].text=="_"||t[h].text=="'");)h--;l=t[h].bbox.y+t[h].bbox.h,Kn(t[u],Rr.SUB_SUP_SCALE,null,0,0),ot[t[h].text]&&ot[t[h].text].flags.big?t[u].bbox.y=l:t[h].text=="\\int"?t[u].bbox.y=l-t[u].bbox.h:t[u].bbox.y=l-t[u].bbox.h/2}function n(u,l,h,d,f){let p=u,g=f,y=1/0,R=-1/0;for(;d>0?p=0;){if(t[p].text==l)g++;else if(t[p].text==h){if(g--,g==0)break}else t[p].text=="^"||t[p].text=="_"||t[p].bbox&&(y=Math.min(y,t[p].bbox.y),R=Math.max(R,t[p].bbox.y+t[p].bbox.h));p+=d}return[y,R]}for(let u=0;uu.text=="&"||u.text=="\\\\"))return;const r=[];let i=[],o=[];for(let u=0;u0&&(t.chld[R].text=="^"||t.chld[R].text=="_"||t.chld[R].text=="'");)R--;const m=ot[t.chld[R].text]&&ot[t.chld[R].text].flags.big;if(g.text=="'"){let v=R+1,x=0;for(;v1;zx(t.chld,l);const f=Jm(t.chld);t.text=="\\text"&&(f.x-=1,f.w+=2);for(let p=0;pr.bbox.w)l=l/Math.max(a.w,1)*r.bbox.w,l+=r.bbox.x;else{l=l/16*i;const d=(r.bbox.w-a.w/16*i)/2;l+=r.bbox.x+d}ot[r.text].flags.yfl?(h=(h-a.ymin)/Math.max(a.ymax-a.ymin,1)*r.bbox.h,h+=r.bbox.y):(h=h/16*i,o&&(h-=(a.ymax+a.ymin)/2/16*i),h+=r.bbox.y+r.bbox.h/2),c.push([l,h])}e.push(c)}}else if(ot[r.text]&&ot[r.text].flags.txt||r.type=="char"){let a=r.bbox.x;const s=!!(ot[r.text]&&ot[r.text].flags.txt);for(let c=Number(s);c16?f*=16/u.w:f+=(16-u.w)/2/16),f+=a,p+=r.bbox.y+r.bbox.h/2,h.push([f,p])}e.push(h)}r.mode=="tt"?a+=i:a+=u.w/16*i}}}return e}function Lr(t){return Math.round(t*100)/100}class qx{constructor(e){this._latex=e,this._tokens=Hx(e),this._tree=ad(this._tokens),Gm(this._tree.chld),Cr(this._tree),$x(this._tree),this._polylines=jx(this._tree)}resolveScale(e){var a,s,c,u;if(e==null)return[16,16,16,16];let n=(a=e.SCALE_X)!=null?a:16,r=(s=e.SCALE_Y)!=null?s:16;if(e.MIN_CHAR_H!=null){let l=0;for(let d=0;d`;e.BG_COLOR&&(c+=``),c+='>endobj 2 0 obj << /Type /Pages /Kids [3 0 R] /Count 1 /MediaBox [0 0 ${a} ${s}] >> endobj 3 0 obj << /Type /Page /Parent 2 0 R /Resources << /Font << /F1 << /Type /Font /Subtype /Type1 /BaseFont /Times-Roman >> >> >> /Contents [`,u="",l=4;for(let d=0;d> stream 1 j 1 J ${(h=e.STROKE_W)!=null?h:1} w `;for(let f=0;f> endobj `,u+=` trailer << /Root 1 0 R /Size 0 >>startxref %%EOF `,c+u}boxes(e){e||(e={});const[n,r,i,o]=this.resolveScale(e),a=[];for(let s=0;s{const h=new Image;h.src=n.laTexSVG,h.onload=()=>{e.drawImage(h,r,i,a,s),this.imageCache.set(n.value,h),u(n)},h.onerror=d=>{l(d)}});this.addImageObserver(c)}}}var zr=(t=>(t.UL="ul",t.OL="ol",t))(zr||{}),Ko=(t=>(t.DISC="disc",t.CIRCLE="circle",t.SQUARE="square",t.CHECKBOX="checkbox",t))(Ko||{}),or=(t=>(t.DISC="disc",t.CIRCLE="circle",t.SQUARE="square",t.DECIMAL="decimal",t.CHECKBOX="checkbox",t))(or||{});const sd={[Ko.DISC]:"\u2022",[Ko.CIRCLE]:"\u25E6",[Ko.SQUARE]:"\u25AB\uFE0E",[Ko.CHECKBOX]:"\u2611\uFE0F"},ew={[zr.OL]:"ol",[zr.UL]:"ul"},tw={[or.DISC]:"disc",[or.CIRCLE]:"circle",[or.SQUARE]:"square",[or.DECIMAL]:"decimal",[or.CHECKBOX]:"checkbox"};var mt=(t=>(t.FIRST="first",t.SECOND="second",t.THIRD="third",t.FOURTH="fourth",t.FIFTH="fifth",t.SIXTH="sixth",t))(mt||{});const nw={defaultFirstSize:26,defaultSecondSize:24,defaultThirdSize:22,defaultFourthSize:20,defaultFifthSize:18,defaultSixthSize:16},$m={[mt.FIRST]:"defaultFirstSize",[mt.SECOND]:"defaultSecondSize",[mt.THIRD]:"defaultThirdSize",[mt.FOURTH]:"defaultFourthSize",[mt.FIFTH]:"defaultFifthSize",[mt.SIXTH]:"defaultSixthSize"},cd={[mt.FIRST]:1,[mt.SECOND]:2,[mt.THIRD]:3,[mt.FOURTH]:4,[mt.FIFTH]:5,[mt.SIXTH]:6},rw={H1:mt.FIRST,H2:mt.SECOND,H3:mt.THIRD,H4:mt.FOURTH,H5:mt.FIFTH,H6:mt.SIXTH};var yt=(t=>(t.TEXT="text",t.SELECT="select",t.CHECKBOX="checkbox",t.RADIO="radio",t.DATE="date",t))(yt||{}),Se=(t=>(t.PREFIX="prefix",t.POSTFIX="postfix",t.PLACEHOLDER="placeholder",t.VALUE="value",t.CHECKBOX="checkbox",t.RADIO="radio",t))(Se||{}),jm=(t=>(t.ROW_START="rowStart",t.VALUE_START="valueStart",t))(jm||{});function _1(t){const e=[];for(let n=0;nq.concat(T.value.split("").map(I=>({...T,value:I}))),[]);let B=0;for(let q=0;qB.concat(q.value.split("").map(T=>({...q,value:T}))),[]);let _=0;for(let B=0;B_.code===h);M&&(N=[{value:M.value}])}cr(N,{...e,isHandleFirstElement:!1});for(let M=0;M1){t.splice(o,1);const s=vr(a.value);for(let c=0;c{const a=t[o];a!==void 0&&(i[o]=a)}),i}function Wt(t,e={}){const{extraPickAttrs:n}=e,r=Ft(t),i=[];let o=0;for(;o{const p=h[f];p!==void 0&&(d[f]=p)}),u.tdList[l]=d}}}else if(a.type===fe.HYPERLINK){const c=a.hyperlinkId;if(c){const u={type:fe.HYPERLINK,value:"",url:a.url},l=[];for(;o{Gc(h,i,d)});continue}(c=l.valueList)!=null&&c.length&&wn(t,l.valueList,n),Gc(Km,i,l)}}function sw(t,e){let n="span";t.type===fe.SUPERSCRIPT?n="sup":t.type===fe.SUBSCRIPT&&(n="sub");const r=document.createElement(n);return r.style.fontFamily=t.font||e.defaultFont,t.rowFlex&&(r.style.textAlign=qm(t.rowFlex)),t.color&&(r.style.color=t.color),t.bold&&(r.style.fontWeight="600"),t.italic&&(r.style.fontStyle="italic"),r.style.fontSize=`${t.size||e.defaultSize}px`,t.highlight&&(r.style.backgroundColor=t.highlight),t.underline&&(r.style.textDecoration="underline"),t.strikeout&&(r.style.textDecoration+=" line-through"),r.innerText=t.value.replace(new RegExp(`${We}`,"g"),` `),r}function tR(t){let e=0;const n=new Map;for(let r=0;r0&&(e+=1);const s=o[a],c=n.get(e)||[];c.push({...i,value:s}),n.set(e,c)}}}return n}function cw(t){var r;const e=[];if(!t.length)return e;let n=((r=t[0])==null?void 0:r.rowFlex)||null;e.push({rowFlex:n,data:[t[0]]});for(let i=1;iv.value).join(""),R.url&&(m.href=R.url),a.append(m)}else if(R.type===fe.TITLE){const m=document.createElement(`h${cd[R.level]}`),v=n(R.valueList);m.innerHTML=v.innerHTML,a.append(m)}else if(R.type===fe.LIST){const m=document.createElement(ew[R.listType]);R.listStyle&&(m.style.listStyleType=tw[R.listStyle]);const v=Wt(R.valueList);tR(v).forEach(O=>{const E=document.createElement("li"),N=n(O);E.innerHTML=N.innerHTML,m.append(E)}),a.append(m)}else if(R.type===fe.IMAGE){const m=document.createElement("img");R.value&&(m.src=R.value,m.width=R.width,m.height=R.height),a.append(m)}else if(R.type===fe.SEPARATOR){const m=document.createElement("hr");a.append(m)}else if(R.type===fe.CHECKBOX){const m=document.createElement("input");m.type="checkbox",(h=R.checkbox)!=null&&h.value&&m.setAttribute("checked","true"),a.append(m)}else if(R.type===fe.RADIO){const m=document.createElement("input");m.type="radio",(d=R.radio)!=null&&d.value&&m.setAttribute("checked","true"),a.append(m)}else if(R.type===fe.TAB){const m=document.createElement("span");m.innerHTML=`${T1}${T1}`,a.append(m)}else if(R.type===fe.CONTROL){const m=document.createElement("span"),v=n(((f=R.control)==null?void 0:f.value)||[]);m.innerHTML=v.innerHTML,a.append(m)}else if(!R.type||R.type===fe.LATEX||Nr.includes(R.type)){let m="";if(R.type===fe.DATE?m=((p=R.valueList)==null?void 0:p.map(x=>x.value).join(""))||"":m=R.value,!m)continue;const v=sw(R,e);((g=o[y-1])==null?void 0:g.type)===fe.TITLE&&(m=m.replace(/^\n/,"")),v.innerText=m.replace(new RegExp(`${We}`,"g"),` `),a.append(v)}}return a}const r=document.createElement("div"),i=cw(t);for(let o=0;o{r.append(u.cloneNode(!0))}):r.append(c)}return r}function uw(t){if(!t||t.nodeType!==3)return null;const e=t.parentNode,n=e.nodeName==="FONT"?e.parentNode:e,r=ow(n),i=t.textContent,o=window.getComputedStyle(n);if(!i||n.nodeName==="STYLE")return null;const a={value:i,color:o.color,bold:Number(o.fontWeight)>500,italic:o.fontStyle.includes("italic"),size:Math.floor(parseFloat(o.fontSize))};return n.nodeName==="SUB"||o.verticalAlign==="sub"?a.type=fe.SUBSCRIPT:(n.nodeName==="SUP"||o.verticalAlign==="super")&&(a.type=fe.SUPERSCRIPT),r!==at.LEFT&&(a.rowFlex=r),o.backgroundColor!=="rgba(0, 0, 0, 0)"&&(a.highlight=o.backgroundColor),o.textDecorationLine.includes("underline")&&(a.underline=!0),o.textDecorationLine.includes("line-through")&&(a.strikeout=!0),a}function gs(t,e){const n=[];function r(a){if(a.nodeType===3){const s=uw(a);s&&n.push(s)}else if(a.nodeType===1){const s=a.childNodes;for(let c=0;c{const f=gs(d.innerHTML,e);f.forEach(p=>{p.value===` `&&(p.listWrap=!0)}),f.unshift({value:` `}),h.valueList.push(...f)}),n.push(h)}else if(u.nodeName==="HR")n.push({value:` `,type:fe.SEPARATOR});else if(u.nodeName==="IMG"){const{src:l,width:h,height:d}=u;l&&h&&d&&n.push({width:h,height:d,value:l,type:fe.IMAGE})}else if(u.nodeName==="TABLE"){const l=u,h={type:fe.TABLE,value:` `,colgroup:[],trList:[]};if(l.querySelectorAll("tr").forEach(d=>{const f=window.getComputedStyle(d).height.replace("px",""),p={height:Number(f),tdList:[]};d.querySelectorAll("th,td").forEach(g=>{const y=g,R=gs(y.innerHTML,e),m={colspan:y.colSpan,rowspan:y.rowSpan,value:R};y.style.backgroundColor&&(m.backgroundColor=y.style.backgroundColor),p.tdList.push(m)}),p.tdList.length&&h.trList.push(p)}),h.trList.length){const d=h.trList[0].tdList.reduce((p,g)=>p+g.colspan,0),f=Math.ceil(e.innerWidth/d);for(let p=0;p{var s;a.nodeType!==1&&!((s=a.textContent)!=null&&s.trim())&&o.push(a)}),o.forEach(a=>a.remove()),r(i),i.remove(),n}function yc(t){function e(n){var i,o,a,s,c;let r="";for(let u=0;uh.value).join("");else if(l.type===fe.TITLE)r+=`${e(Wt(l.valueList))}`;else if(l.type===fe.LIST){const h=Wt(l.valueList),d=tR(h);let f="";l.listType===zr.UL&&(f=sd[l.listStyle]),d.forEach((p,g)=>{const y=d.size-1===g;r+=` ${f||`${g+1}.`}${e(p)}${y?` `:""}`})}else if(l.type===fe.CHECKBOX)r+=(i=l.checkbox)!=null&&i.value?"\u2611":"\u25A1";else if(l.type===fe.RADIO)r+=(o=l.radio)!=null&&o.value?"\u2609":"\u25CB";else if(!l.type||l.type===fe.LATEX||Nr.includes(l.type)){let h="";l.type===fe.CONTROL?h=((s=(a=l.control.value)==null?void 0:a[0])==null?void 0:s.value)||"":l.type===fe.DATE?h=((c=l.valueList)==null?void 0:c.map(d=>d.value).join(""))||"":h=l.value,r+=h.replace(new RegExp(`${We}`,"g"),` `)}}return r}return e(Wt(t))}function Ll(t){return id(t,["metrics","style"])}function uu(t){return!!(t!=null&&t.type)&&(Bx.includes(t.type)||t.imgDisplay===ht.INLINE)}function lw(t,e){const n=document.createElement(e);for(let r=0;r{const c=new Image,u=s.result;c.src=u,c.onload=()=>{const l={value:u,type:fe.IMAGE,width:c.width,height:c.height};~o&&wn(a,[l],o),n.insertElementList([l])}}}function pw(t,e){const n=t.getDraw();if(n.isReadonly())return;const i=e.clipboardData;if(!i)return;const{paste:o}=n.getOverride();if(o){o(e);return}if(!fw(i)){const s=i.getData("text"),c=nR();if(s===(c==null?void 0:c.text)){jd(t,c.elementList);return}}rR();let a=!1;for(let s=0;s{t.input(u)});break}if(c.type==="text/html"&&a){c.getAsString(u=>{oR(t,u)});break}}else if(c.kind==="file"&&c.type.includes("image")){const u=c.getAsFile();u&&qd(t,u)}}}async function gw(t,e){const n=t.getDraw();if(n.isReadonly())return;const{paste:i}=n.getOverride();if(i){i();return}const o=await navigator.clipboard.readText(),a=nR();if(o===(a==null?void 0:a.text)){jd(t,a.elementList);return}if(rR(),e!=null&&e.isPlainText)o&&t.input(o);else{const s=await navigator.clipboard.read();let c=!1;for(const u of s)if(u.types.includes("text/html")){c=!0;break}for(const u of s)if(u.types.includes("text/plain")&&!c){const h=await(await u.getType("text/plain")).text();h&&t.input(h)}else if(u.types.includes("text/html")&&c){const h=await(await u.getType("text/html")).text();h&&oR(t,h)}else if(u.types.some(l=>l.startsWith("image/"))){const l=u.types.find(d=>d.startsWith("image/")),h=await u.getType(l);qd(t,h)}}}class mw{constructor(e,n){this.draw=e,this.container=e.getContainer(),this.canvasEvent=n;const r=document.createElement("textarea");r.autocomplete="off",r.classList.add(`${ke}-inputarea`),r.innerText="",this.container.append(r),this.agentCursorDom=r,r.onkeydown=i=>this._keyDown(i),r.oninput=Bm(this._input.bind(this),0),r.onpaste=i=>this._paste(i),r.addEventListener("compositionstart",this._compositionstart.bind(this)),r.addEventListener("compositionend",this._compositionend.bind(this))}getAgentCursorDom(){return this.agentCursorDom}_keyDown(e){this.canvasEvent.keydown(e)}_input(e){!e.data||this.canvasEvent.input(e.data)}_paste(e){this.draw.isReadonly()||!e.clipboardData||(pw(this.canvasEvent,e),e.preventDefault())}_compositionstart(){this.canvasEvent.compositionstart()}_compositionend(e){this.canvasEvent.compositionend(e)}}class Rw{constructor(e,n){this.ANIMATION_CLASS=`${ke}-cursor--animation`,this.draw=e,this.container=e.getContainer(),this.position=e.getPosition(),this.options=e.getOptions(),this.cursorDom=document.createElement("div"),this.cursorDom.classList.add(`${ke}-cursor`),this.container.append(this.cursorDom),this.cursorAgent=new mw(e,n),this.blinkTimeout=null}getCursorDom(){return this.cursorDom}getAgentDom(){return this.cursorAgent.getAgentCursorDom()}getAgentIsActive(){return this.getAgentDom()===document.activeElement}getAgentDomValue(){return this.getAgentDom().value}clearAgentDomValue(){this.getAgentDom().value=""}_blinkStart(){this.cursorDom.classList.add(this.ANIMATION_CLASS)}_blinkStop(){this.cursorDom.classList.remove(this.ANIMATION_CLASS)}_setBlinkTimeout(){this._clearBlinkTimeout(),this.blinkTimeout=window.setTimeout(()=>{this._blinkStart()},500)}_clearBlinkTimeout(){this.blinkTimeout&&(this._blinkStop(),window.clearTimeout(this.blinkTimeout),this.blinkTimeout=null)}drawCursor(e){let n=this.position.getCursorPosition();if(!n)return;const{scale:r,cursor:i}=this.options,{color:o,width:a,isShow:s=!0,isBlink:c=!0,isFocus:u=!0,hitLineStartIndex:l}={...i,...e},h=this.draw.getHeight(),d=this.draw.getPageGap();l&&(n=this.position.getPositionList()[l]);const{metrics:f,coordinate:{leftTop:p,rightTop:g},ascent:y,pageNo:R}=n,x=(this.draw.getZone().isMainActive()?R:this.draw.getPageNo())*(h+d),O=Cx*r,E=Math.min(f.height/4,O),N=f.height+E*2,M=this.cursorAgent.getAgentCursorDom();u&&setTimeout(()=>{M.focus(),M.setSelectionRange(0,0)});const _=f.boundingBoxDescent<0?0:f.boundingBoxDescent,B=p[1]+y+_-(N-E)+x,q=l?p[0]:g[0];if(M.style.left=`${q}px`,M.style.top=`${B+N-O}px`,!s){this.recoveryCursor();return}const T=this.draw.isReadonly();this.cursorDom.style.width=`${a*r}px`,this.cursorDom.style.backgroundColor=o,this.cursorDom.style.left=`${q}px`,this.cursorDom.style.top=`${B}px`,this.cursorDom.style.display=T?"none":"block",this.cursorDom.style.height=`${N}px`,c?this._setBlinkTimeout():this._clearBlinkTimeout()}recoveryCursor(){this.cursorDom.style.display="none",this._clearBlinkTimeout()}moveCursorToVisible(e){const{cursorPosition:n,direction:r}=e;if(!n||!r)return;const{pageNo:i,coordinate:{leftTop:o,leftBottom:a}}=n,s=i*(this.draw.getHeight()+this.draw.getPageGap())+this.container.getBoundingClientRect().top,c=r===bn.UP,u=a[0],l=c?o[1]+s:a[1]+s,h=Px(this.container),d={left:0,right:0,top:0,bottom:0};if(h===document.documentElement)d.right=window.innerWidth,d.bottom=window.innerHeight;else{const{left:p,right:g,top:y,bottom:R}=h.getBoundingClientRect();d.left=p,d.right=g,d.top=y,d.bottom=R}const{maskMargin:f}=this.options;if(d.top+=f[0],d.bottom-=f[2],!(u>=d.left&&u<=d.right&&l>=d.top&&l<=d.bottom)){const{scrollLeft:p,scrollTop:g}=h;c?h.scroll(p,g-(d.top-l)):h.scroll(p,g+l-d.bottom)}}}var aR=(t=>(t[t.LEFT=0]="LEFT",t[t.CENTER=1]="CENTER",t[t.RIGHT=2]="RIGHT",t))(aR||{});const io=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),yw=typeof navigator!="undefined"&&/iPad|iPhone/.test(navigator.userAgent);function Xr(t){return io?t.metaKey:t.ctrlKey}var Qe=(t=>(t.Delete="Delete",t.Backspace="Backspace",t.Enter="Enter",t.Left="ArrowLeft",t.Right="ArrowRight",t.Up="ArrowUp",t.Down="ArrowDown",t.ESC="Escape",t.TAB="Tab",t.META="Meta",t.LEFT_BRACKET="[",t.RIGHT_BRACKET="]",t.COMMA=",",t.PERIOD=".",t.LEFT_ANGLE_BRACKET="<",t.RIGHT_ANGLE_BRACKET=">",t.EQUAL="=",t.MINUS="-",t.PLUS="+",t.A="a",t.B="b",t.C="c",t.D="d",t.E="e",t.F="f",t.G="g",t.H="h",t.I="i",t.J="j",t.K="k",t.L="l",t.M="m",t.N="n",t.O="o",t.P="p",t.Q="q",t.R="r",t.S="s",t.T="t",t.U="u",t.V="v",t.W="w",t.X="x",t.Y="y",t.Z="z",t.A_UPPERCASE="A",t.B_UPPERCASE="B",t.C_UPPERCASE="C",t.D_UPPERCASE="D",t.E_UPPERCASE="E",t.F_UPPERCASE="F",t.G_UPPERCASE="G",t.H_UPPERCASE="H",t.I_UPPERCASE="I",t.J_UPPERCASE="J",t.K_UPPERCASE="K",t.L_UPPERCASE="L",t.M_UPPERCASE="M",t.N_UPPERCASE="N",t.O_UPPERCASE="O",t.P_UPPERCASE="P",t.Q_UPPERCASE="Q",t.R_UPPERCASE="R",t.S_UPPERCASE="S",t.T_UPPERCASE="T",t.U_UPPERCASE="U",t.V_UPPERCASE="V",t.W_UPPERCASE="W",t.X_UPPERCASE="X",t.Y_UPPERCASE="Y",t.Z_UPPERCASE="Z",t.ZERO="0",t.ONE="1",t.TWO="2",t.THREE="3",t.FOUR="4",t.FIVE="5",t.SIX="6",t.SEVEN="7",t.EIGHT="8",t.NINE="9",t))(Qe||{});class lu{constructor(e,n){this.element=e,this.control=n}setElement(e){this.element=e}getElement(){return this.element}getCode(){var e;return((e=this.element.control)==null?void 0:e.code)||null}getValue(){const e=this.control.getElementList(),{startIndex:n}=this.control.getRange(),r=e[n],i=[];let o=n;for(;o>0;){const s=e[o];if(s.controlId!==r.controlId||s.controlComponent===Se.PREFIX)break;s.controlComponent===Se.VALUE&&i.unshift(s),o--}let a=n+1;for(;a0;){const l=o[c];if(l.controlId!==s.controlId||l.controlComponent===Se.PREFIX)break;if(l.controlComponent===Se.CHECKBOX){const h=l.checkbox;h.value=e.includes(h.code)}c--}let u=a+1;for(;u0;){const l=o[c];if(l.controlId!==s.controlId||l.controlComponent===Se.PREFIX)break;if(l.controlComponent===Se.RADIO){const h=l.radio;h.value=e.includes(h.code)}c--}let u=a+1;for(;ure===P.code);X.splice(k,1)}else P!=null&&P.code&&X.push(P.code);const V=n.getControl().getActiveControl();V instanceof lu&&V.setSelect(X)}}else if(b){const{control:P,radio:U}=x;if(!P)n.getRadioParticle().setSelect(x);else{const X=U!=null&&U.code?[U.code]:[],V=n.getControl().getActiveControl();V instanceof ud&&V.setSelect(X)}}else n.render({curIndex:v,isCompute:!1,isSubmitHistory:!1,isSetCursor:!O&&!E&&!N});y&&e.getDraw().getCursor().drawCursor({hitLineStartIndex:y})}const M=n.getPreviewer();M.clearResizer(),O&&(M.drawResizer(x,m[v],x.type===fe.LATEX?{mime:"svg",srcKey:"laTexSVG"}:{}),n.getCursor().drawCursor({isShow:!1}),E1(e),(x.imgDisplay===ht.FLOAT_TOP||x.imgDisplay===ht.FLOAT_BOTTOM)&&n.getImageParticle().createFloatImage(x));const _=n.getTableTool();_.dispose(),p&&!r&&_.render();const B=n.getHyperlinkParticle();B.clearHyperlinkPopup(),x.type===fe.HYPERLINK&&(Xr(t)?B.openHyperlink(x):B.drawHyperlinkPopup(x,m[v]));const q=n.getDateParticle();q.clearDatePicker(),x.type===fe.DATE&&!r&&q.renderDatePicker(x,m[v])}function vc(t){const e=vt();return Reflect.set(t,"dragId",e),e}function bc(t,e){return e.findIndex(n=>n.dragId===t)}function I1(t,e,n){const r=n.getDraw();if(t.imgDisplay===ht.FLOAT_TOP||t.imgDisplay===ht.FLOAT_BOTTOM){const i=e.offsetX-n.mouseDownStartPosition.x,o=e.offsetY-n.mouseDownStartPosition.y,a=t.imgFloatPosition;t.imgFloatPosition={x:a.x+i,y:a.y+o}}r.getImageParticle().destroyFloatImage()}function bw(t,e){var n,r,i,o;if(e.isAllowDrop){const a=e.getDraw();if(a.isReadonly())return;const s=a.getPosition(),c=s.getPositionList(),u=s.getPositionContext(),l=a.getRange(),h=e.cacheRange,d=e.cacheElementList,f=e.cachePositionList,p=l.getRange(),g=h.startIndex===h.endIndex,y=g?h.startIndex-1:h.startIndex,R=h.endIndex;if(p.startIndex>=y&&p.endIndex<=R&&((n=e.cachePositionContext)==null?void 0:n.tdId)===u.tdId){a.clearSideEffect();let A=!1;if(g){const Q=d[R];if(Q.type===fe.IMAGE||Q.type===fe.LATEX)if(I1(Q,t,e),Q.imgDisplay===ht.FLOAT_TOP||Q.imgDisplay===ht.FLOAT_BOTTOM)a.getPreviewer().drawResizer(Q),A=!0;else{const z=f[R];a.getPreviewer().drawResizer(Q,z)}}l.replaceRange({...h}),a.render({isSetCursor:!1,isCompute:!1,isSubmitHistory:A});return}const m=d.slice(y+1,R+1),v=m.find(A=>A.controlId);if(v){const A=d[y+1],Q=d[R];if(!((!A.controlId||A.controlComponent===Se.PREFIX)&&(!Q.controlId||Q.controlComponent===Se.POSTFIX)||A.controlId===Q.controlId&&A.controlComponent===Se.PREFIX&&Q.controlComponent===Se.POSTFIX||((r=A.control)==null?void 0:r.type)===yt.TEXT&&A.controlComponent===Se.VALUE&&((i=Q.control)==null?void 0:i.type)===yt.TEXT&&Q.controlComponent===Se.VALUE)){a.render({curIndex:p.startIndex,isCompute:!1,isSubmitHistory:!1});return}}const x=a.getControl(),O=a.getElementList(),E=!v||!!O[p.startIndex].controlId||!x.getIsElementListContainFullControl(m),N=a.getOptions(),M=m.map(A=>{if(!A.type||A.type===fe.TEXT){const Q={value:A.value},z=po;return E||z.push(...O1),z.forEach(H=>{const j=A[H];j!==void 0&&(Q[H]=j)}),Q}else{let Q=Ft(A);return E&&(Q=vs(Q,O1)),cr([Q],{isHandleFirstElement:!1,editorOptions:N}),Q}});wn(O,M,p.startIndex);const _=d[y],B=f[y],q=vc(d[y]),T=vc(d[R]),I=M.length;let b=p.startIndex,P=b+I;const U=x.getActiveControl();if(U&&d[b].controlComponent!==Se.POSTFIX?(P=U.setValue(M),b=P-I):a.spliceElementList(O,b+1,0,...M),!~P){a.render({isSetCursor:!1});return}const X=vc(O[b]),V=vc(O[P]),k=bc(q,d),re=bc(T,d),Z=d[re];Z.controlId&&Z.controlComponent!==Se.POSTFIX?(l.replaceRange({...h,startIndex:k,endIndex:re}),(o=x.getActiveControl())==null||o.cut()):a.spliceElementList(d,k+1,re-k);const C=O[p.startIndex],ne=c[p.startIndex];let oe=u.index;oe&&(C.tableId&&!_.tableId?B.index=i&&t.x<=i+a&&t.y>=o&&t.y<=o+s||e.setIsAllowSelection(!1)}function ww(t,e){var x;const n=e.getDraw();if(e.isAllowDrag){const O=t.offsetX,E=t.offsetY,{startIndex:N,endIndex:M}=e.cacheRange,_=e.cachePositionList;for(let q=N+1;q<=M;q++){const{coordinate:{leftTop:T,rightBottom:I}}=_[q];if(O>=T[0]&&O<=I[0]&&E>=T[1]&&E<=I[1])return}const B=(x=e.cacheRange)==null?void 0:x.startIndex;if(B){const q=e.cacheElementList[B];(q==null?void 0:q.type)===fe.IMAGE&&(q.imgDisplay===ht.FLOAT_TOP||q.imgDisplay===ht.FLOAT_BOTTOM)&&(n.getPreviewer().clearResizer(),n.getImageParticle().dragFloatImage(t.movementX,t.movementY))}e.dragover(t),e.isAllowDrop=!0;return}if(!e.isAllowSelection||!e.mouseDownStartPosition)return;const i=t.target.dataset.index;i&&n.setPageNo(Number(i));const a=n.getPosition().getPositionByXY({x:t.offsetX,y:t.offsetY});if(!~a.index)return;const{index:s,isTable:c,tdValueIndex:u,tdIndex:l,trIndex:h,tableId:d}=a,{index:f,isTable:p,tdIndex:g,trIndex:y,tableId:R}=e.mouseDownStartPosition,m=c?u:s,v=n.getRange();if(c&&p&&(l!==g||h!==y))v.setRange(m,m,d,g,l,y,h);else{let O=~m?m:0;if((p||c)&&R!==d)return;let E=f;if(E>O&&([E,O]=[O,E]),E===O)return;const N=n.getElementList(),M=N[E+1],_=N[O];if((M==null?void 0:M.controlComponent)===Se.PLACEHOLDER&&(_==null?void 0:_.controlComponent)===Se.PLACEHOLDER&&M.controlId===_.controlId)return;v.setRange(E,O)}n.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}var $r=(t=>(t.COMPONENT="component",t.MENU="menu",t.MAIN="main",t.FOOTER="footer",t.CONTEXTMENU="contextmenu",t.POPUP="popup",t.CATALOG="catalog",t.COMMENT="comment",t))($r||{}),Fi=(t=>(t.PAGE="page",t.TABLE="table",t))(Fi||{}),Zt=(t=>(t.EDIT="edit",t.CLEAN="clean",t.READONLY="readonly",t.FORM="form",t.PRINT="print",t))(Zt||{}),it=(t=>(t.HEADER="header",t.MAIN="main",t.FOOTER="footer",t))(it||{}),Pi=(t=>(t.PAGING="paging",t.CONTINUITY="continuity",t))(Pi||{}),uo=(t=>(t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t))(uo||{}),ef=(t=>(t.BREAK_ALL="break-all",t.BREAK_WORD="break-word",t))(ef||{});function Tw(t,e){const n=e.getDraw();if(n.isReadonly())return;const r=n.getRange();if(!r.getIsCanInput())return;const i=n.getControl();let o;if(i.getActiveControl()&&i.getIsRangeCanCaptureEvent())o=i.keydown(t);else{const a=n.getPosition(),s=a.getCursorPosition();if(!s)return;const{index:c}=s,{startIndex:u,endIndex:l}=r.getRange(),h=r.getIsCollapsed(),d=n.getElementList();if(h&&c===0){const p=d[c];if(p.value===We){p.listId&&n.getListParticle().unsetList(),t.preventDefault();return}}const f=d[u];if(h&&f.rowFlex&&f.value===We){const p=n.getRowList(),y=a.getPositionList()[u].rowNo;p[y].elementList.forEach(m=>{delete m.rowFlex})}h?n.spliceElementList(d,c,1):n.spliceElementList(d,u+1,l-u),o=h?c-1:u}o!==null&&(n.getGlobalEvent().setCanvasEventAbility(),r.setRange(o,o),n.render({curIndex:o}))}function Sw(t,e){var u;const n=e.getDraw();if(n.isReadonly())return;const r=n.getRange();if(!r.getIsCanInput())return;const{startIndex:i,endIndex:o}=r.getRange(),a=n.getElementList(),s=n.getControl();let c;if(s.getActiveControl()&&s.getIsRangeWithinControl())c=s.keydown(t);else if((u=a[o+1])!=null&&u.controlId)c=s.removeControl(o+1);else{const l=n.getPosition(),h=l.getCursorPosition();if(!h)return;const{index:d}=h,f=l.getPositionContext();if(f.isDirectHit&&f.isImage)n.spliceElementList(a,d,1),c=d-1;else{const p=r.getIsCollapsed();if(!p)n.spliceElementList(a,i+1,o-i);else{if(!a[d+1])return;n.spliceElementList(a,d+1,1)}c=p?d:i}}c!==null&&(n.getGlobalEvent().setCanvasEventAbility(),r.setRange(c,c),n.render({curIndex:c}))}function Dw(t,e){var p,g;const n=e.getDraw();if(n.isReadonly())return;const r=n.getRange();if(!r.getIsCanInput())return;const{startIndex:i,endIndex:o}=r.getRange(),a=r.getIsCollapsed(),s=n.getElementList(),c=s[i],u=s[o];if(a&&u.listId&&u.value===We&&((p=s[o+1])==null?void 0:p.listId)!==u.listId){n.getListParticle().unsetList();return}const l={value:We};if(t.shiftKey&&c.listId&&(l.listWrap=!0),!(u.titleId&&u.titleId!==((g=s[o+1])==null?void 0:g.titleId))){wn(s,[l],i);const y=Fs(s,o);if(y){const R=[...Ns];y.controlComponent!==Se.POSTFIX&&R.push(...po),R.forEach(m=>{const v=y[m];v!==void 0&&(l[m]=v)})}}const h=n.getControl(),d=h.getActiveControl();let f;if(d&&h.getIsRangeWithinControl())f=h.setValue([l]);else{const R=n.getPosition().getCursorPosition();if(!R)return;const{index:m}=R;a?n.spliceElementList(s,m+1,0,l):n.spliceElementList(s,i+1,o-i,l),f=m+1}~f&&(r.setRange(f,f),n.render({curIndex:f})),t.preventDefault()}function Ow(t,e){var v,x;const n=e.getDraw();if(n.isReadonly())return;const i=n.getPosition(),o=i.getCursorPosition();if(!o)return;const a=i.getPositionContext(),{index:s}=o;if(s<=0&&!a.isTable)return;const c=n.getRange(),{startIndex:u,endIndex:l}=c.getRange(),h=c.getIsCollapsed(),d=n.getElementList(),f=n.getControl();if(n.getMode()===Zt.FORM&&f.getActiveControl()&&((v=d[s])==null?void 0:v.controlComponent)===Se.PREFIX){f.initNextControl({direction:bn.UP});return}let p=1;if(Xr(t)){const O=n.getLetterReg(),E=t.shiftKey&&!h&&u===(o==null?void 0:o.index)?l:u;if(O.test((x=d[E])==null?void 0:x.value)){let N=E-1;for(;N>0;){const M=d[N];if(!O.test(M.value))break;p++,N--}}}const g=u-p;let y=g,R=g;if(t.shiftKey&&o&&(u!==l?u===o.index?(y=u,R=l-p):(y=g,R=l):R=l),!t.shiftKey){const O=d[u];if(O.type===fe.TABLE){const E=O.trList,N=E.length-1,M=E[N],_=M.tdList.length-1,B=M.tdList[_];i.setPositionContext({isTable:!0,index:u,trIndex:N,tdIndex:_,tdId:B.id,trId:M.id,tableId:O.id}),y=B.value.length-1,R=y,n.getTableTool().render()}else if(O.tableId&&u===0){const N=n.getOriginalElementList()[a.index].trList;e:for(let M=0;Ms.length-1&&!c.isTable)return;const u=n.getRange(),{startIndex:l,endIndex:h}=u.getRange(),d=u.getIsCollapsed();let f=n.getElementList();const p=n.getControl();if(n.getMode()===Zt.FORM&&p.getActiveControl()&&((O=f[a+1])==null?void 0:O.controlComponent)===Se.POSTFIX){p.initNextControl({direction:bn.DOWN});return}let g=1;if(Xr(t)){const N=n.getLetterReg(),M=t.shiftKey&&!d&&l===(o==null?void 0:o.index)?h:l;if(N.test((E=f[M+1])==null?void 0:E.value)){let _=M+2;for(;_I.length-1&&(U=q+1,X=0);const V=B[U],k=V.tdList[X];i.setPositionContext({isTable:!0,index:c.index,trIndex:U,tdIndex:X,tdId:k.id,trId:V.id,tableId:N.id}),R=0,m=R,n.getTableTool().render()}break e}}}}const v=f.length-1;if(R>v||m>v)return;u.setRange(R,m);const x=R===m;n.render({curIndex:x?R:void 0,isSetCursor:x,isSubmitHistory:!1,isCompute:!1}),t.preventDefault()}function Ew(t,e){const n=e.getDraw();if(n.isReadonly())return;t.preventDefault();const i=n.getControl();if(i.getActiveControl()&&i.getIsRangeWithinControl())i.initNextControl({direction:t.shiftKey?bn.UP:bn.DOWN});else{const a={type:fe.TAB,value:""},s=n.getRange(),{startIndex:c}=s.getRange(),u=n.getElementList();wn(u,[a],c),n.insertElementList([a])}}function Cl(t){const{positionList:e,index:n,isUp:r,rowNo:i,cursorX:o}=t;let a=-1;const s=[];if(r){let c=n-1;for(;c>=0;){const u=e[c];if(c--,u.rowNo!==i){if(s[0]&&s[0].rowNo!==u.rowNo)break;s.unshift(u)}}}else{let c=n+1;for(;ch)){a=u.index;break}}return a}function Iw(t,e){const n=e.getDraw();if(n.isReadonly())return;const i=n.getPosition(),o=i.getCursorPosition();if(!o)return;const a=n.getRange(),{startIndex:s,endIndex:c}=a.getRange();let u=i.getPositionList();const l=t.key===Qe.Up;let h=-1,d=-1;const f=i.getPositionContext();if(!t.shiftKey&&f.isTable&&(l&&o.rowIndex===0||!l&&o.rowIndex===n.getRowCount()-1)){const{index:g,trIndex:y,tdIndex:R,tableId:m}=f;if(l)if(y===0)i.setPositionContext({isTable:!1}),h=g-1,d=h,n.getTableTool().dispose();else{let v=-1,x=-1;const E=n.getOriginalElementList()[g].trList,N=E[y].tdList[R].colIndex;e:for(let B=y-1;B>=0;B--){const T=E[B].tdList;for(let I=0;I=N&&b.colIndex<=N){v=B,x=I;break e}}}if(!~v||!~x)return;const M=E[v],_=M.tdList[x];i.setPositionContext({isTable:!0,index:g,trIndex:v,tdIndex:x,tdId:M.id,trId:_.id,tableId:m}),h=_.value.length-1,d=h,n.getTableTool().render()}else{const x=n.getOriginalElementList()[g].trList;if(y===x.length-1)i.setPositionContext({isTable:!1}),h=g,d=h,n.getTableTool().dispose();else{let O=-1,E=-1;const N=x[y].tdList[R].colIndex;e:for(let B=y+1;B=N&&b.colIndex<=N){O=B,E=I;break e}}}if(!~O||!~E)return;const M=x[O],_=M.tdList[E];i.setPositionContext({isTable:!0,index:g,trIndex:O,tdIndex:E,tdId:M.id,trId:_.id,tableId:m}),h=_.value.length-1,d=h,n.getTableTool().render()}}}else{let g=o;t.shiftKey&&(s===o.index?g=u[c]:g=u[s]);const{index:y,rowNo:R,rowIndex:m,coordinate:{rightTop:[v]}}=g;if(l&&m===0||!l&&m===n.getRowCount()-1)return;const x=Cl({positionList:u,index:y,rowNo:R,isUp:l,cursorX:v});if(x<0)return;h=x,d=x,t.shiftKey&&(s!==c?s===o.index?h=s:d=c:l?d=c:h=s);const E=n.getElementList()[x];if(E.type===fe.TABLE){const{scale:N}=n.getOptions(),M=n.getMargins(),_=E.trList;let B=-1,q=-1,T=-1;if(l){e:for(let I=_.length-1;I>=0;I--){const P=_[I].tdList;for(let U=0;U=V&&v<=V+k){const re=X.positionList,Z=re[re.length-1],C=Cl({positionList:re,index:Z.index+1,rowNo:Z.rowNo-1,isUp:l,cursorX:v})||Z.index;B=I,q=U,T=C;break e}}}}else{e:for(let I=0;I<_.length;I++){const P=_[I].tdList;for(let U=0;U=V&&v<=V+k){const re=X.positionList,Z=Cl({positionList:re,index:-1,rowNo:-1,isUp:l,cursorX:v})||0;B=I,q=U,T=Z;break e}}}}if(~B&&~q&&~T){const I=_[B],b=I.tdList[q];i.setPositionContext({isTable:!0,index:x,trIndex:B,tdIndex:q,tdId:b.id,trId:I.id,tableId:E.id}),h=T,d=h,u=i.getPositionList(),n.getTableTool().render()}}}if(!~h||!~d)return;h>d&&([h,d]=[d,h]),a.setRange(h,d);const p=h===d;n.render({curIndex:p?h:void 0,isSetCursor:p,isSubmitHistory:!1,isCompute:!1}),n.getCursor().moveCursorToVisible({cursorPosition:u[l?h:d],direction:l?bn.UP:bn.DOWN})}function Nw(t,e){if(e.isComposing)return;const n=e.getDraw();if(t.key===Qe.Backspace)Tw(t,e);else if(t.key===Qe.Delete)Sw(t,e);else if(t.key===Qe.Enter)Dw(t,e);else if(t.key===Qe.Left)Ow(t,e);else if(t.key===Qe.Right)_w(t,e);else if(t.key===Qe.Up||t.key===Qe.Down)Iw(t,e);else if(Xr(t)&&t.key===Qe.Z){if(n.isReadonly()&&n.getMode()!==Zt.FORM)return;n.getHistoryManager().undo(),t.preventDefault()}else if(Xr(t)&&t.key===Qe.Y){if(n.isReadonly()&&n.getMode()!==Zt.FORM)return;n.getHistoryManager().redo(),t.preventDefault()}else if(Xr(t)&&t.key===Qe.C)e.copy(),t.preventDefault();else if(Xr(t)&&t.key===Qe.X)e.cut(),t.preventDefault();else if(Xr(t)&&t.key===Qe.A)e.selectAll(),t.preventDefault();else if(Xr(t)&&t.key===Qe.S){if(n.isReadonly())return;const r=n.getListener();r.saved&&r.saved(n.getValue());const i=n.getEventBus();i.isSubscribe("saved")&&i.emit("saved",n.getValue()),t.preventDefault()}else if(t.key===Qe.ESC){e.clearPainterStyle();const r=n.getZone();r.isMainActive()||r.setZone(it.MAIN),t.preventDefault()}else t.key===Qe.TAB&&Ew(t,e)}function sR(t,e){var x;const n=e.getDraw();if(n.isReadonly())return;const i=n.getPosition().getCursorPosition();if(!t||!i)return;const o=e.isComposing;if(o&&((x=e.compositionInfo)==null?void 0:x.value)===t)return;const a=n.getRange();if(!a.getIsCanInput())return;cR(e),o||n.getCursor().clearAgentDomValue();const{TEXT:s,HYPERLINK:c,SUBSCRIPT:u,SUPERSCRIPT:l,DATE:h}=fe,d=t.replaceAll(` `,We),{startIndex:f,endIndex:p}=a.getRange(),g=n.getElementList(),y=Fs(g,p);if(!y)return;const R=vr(d).map(O=>{const E={value:O},N=g[p+1];return(!y.type||y.type===s||y.type===c&&(N==null?void 0:N.type)===c||y.type===h&&(N==null?void 0:N.type)===h||y.type===u&&(N==null?void 0:N.type)===u||y.type===l&&(N==null?void 0:N.type)===l)&&Ux.forEach(M=>{if(M==="groupIds"&&!(N!=null&&N.groupIds))return;const _=y[M];_!==void 0&&(E[M]=_)}),o&&(E.underline=!0),E}),m=n.getControl();let v;if(m.getActiveControl()&&m.getIsRangeWithinControl())v=m.setValue(R);else{const O=f+1;f!==p&&n.spliceElementList(g,O,p-f),wn(g,R,f),n.spliceElementList(g,O,0,...R),v=f+R.length}~v&&(a.setRange(v,v),n.render({curIndex:v,isSubmitHistory:!o})),o&&(e.compositionInfo={elementList:g,value:d,startIndex:v-R.length,endIndex:v})}function cR(t){if(!t.compositionInfo)return;const{elementList:e,startIndex:n,endIndex:r}=t.compositionInfo;e.splice(n+1,r-n),t.getDraw().getRange().setRange(n,n),t.compositionInfo=null}function Fw(t){const e=t.getDraw(),n=e.getRange(),{startIndex:r,endIndex:i}=n.getRange();if(!~r&&!~r||e.isReadonly()||!n.getIsCanInput())return;const o=e.getElementList();let a=r,s=i;if(r===i){const d=e.getPosition().getPositionList(),f=d[r],p=f.rowNo,g=f.pageNo,y=[];for(let m=0;mg)break;v.pageNo===g&&v.rowNo===p&&y.push(m)}const R=y[0]-1;a=R<0?0:R,s=y[y.length-1]}const c=e.getOptions();iR(o.slice(a+1,s+1),c);const u=e.getControl();let l;u.getActiveControl()&&u.getIsRangeWithinControl()?l=u.cut():(e.spliceElementList(o,a+1,s-a),l=a),n.setRange(l,l),e.render({curIndex:l})}function Pw(t){const e=t.getDraw(),{copy:n}=e.getOverride();if(n){n();return}const r=e.getRange(),i=r.getIsCollapsed()?r.getRangeRowElementList():r.getSelectionElementList();!(i!=null&&i.length)||iR(i,e.getOptions())}function Mw(t,e){var o,a;const n=e.getDraw(),{drop:r}=n.getOverride();if(r){r(t);return}t.preventDefault();const i=(o=t.dataTransfer)==null?void 0:o.getData("text");if(i)e.input(i);else{const s=(a=t.dataTransfer)==null?void 0:a.files;if(!s)return;for(let c=0;c!f.type||f.type!==fe.CONTROL&&Nr.includes(f.type)?f.value:We).join(""))||"";if(!o)return null;const a=n.index,s=i.startIndex,u=new Intl.Segmenter(void 0,{granularity:"word"}).segment(o);let l=-1,h=-1;for(const{segment:f,index:p,isWordLike:g}of u){const y=p+s;if(g&&a>=y&&a0;){const f=l[h].value;if(c&&Pl.test(f)||!c&&o.test(f))a++,h--;else break}let d=i+1;for(;d0;){const g=o[c],y=o[c-1];if(g.value===We&&!g.listWrap||g.listId!==(y==null?void 0:y.listId)||g.titleId!==(y==null?void 0:y.titleId))break;a++,c--}let u=i+1;for(;u{t.compositionInfo&&sR(e.data,t)},1);else{cR(t);const i=n.getRange(),{endIndex:o}=i.getRange();n.render({curIndex:o,isSubmitHistory:!1})}n.getCursor().clearAgentDomValue()}var F1={compositionstart:Ww,compositionend:Xw};function Vw(t,e){const n=e.getDraw();if(n.isReadonly())return;t.preventDefault();const i=n.getPageContainer();if(!au(t.target,m=>m===i,!0))return;const s=t.target.dataset.index;s&&n.setPageNo(Number(s));const c=n.getPosition(),u=c.adjustPositionContext({x:t.offsetX,y:t.offsetY});if(!u)return;const{isTable:l,tdValueIndex:h,index:d}=u,f=c.getPositionList(),p=l?h:d;~d&&(n.getRange().setRange(p,p),c.setCursorPosition(f[p]));const g=n.getCursor(),{cursor:{dragColor:y,dragWidth:R}}=n.getOptions();g.drawCursor({width:R,color:y,isBlink:!1})}var Yw={dragover:Vw};class Bw{constructor(e){this.draw=e,this.pageContainer=e.getPageContainer(),this.pageList=e.getPageList(),this.range=this.draw.getRange(),this.position=this.draw.getPosition(),this.isAllowSelection=!1,this.isComposing=!1,this.compositionInfo=null,this.isAllowDrag=!1,this.isAllowDrop=!1,this.cacheRange=null,this.cacheElementList=null,this.cachePositionList=null,this.cachePositionContext=null,this.mouseDownStartPosition=null}getDraw(){return this.draw}register(){this.pageContainer.addEventListener("click",this.click.bind(this)),this.pageContainer.addEventListener("mousedown",this.mousedown.bind(this)),this.pageContainer.addEventListener("mouseup",this.mouseup.bind(this)),this.pageContainer.addEventListener("mouseleave",this.mouseleave.bind(this)),this.pageContainer.addEventListener("mousemove",this.mousemove.bind(this)),this.pageContainer.addEventListener("dblclick",this.dblclick.bind(this)),this.pageContainer.addEventListener("dragover",this.dragover.bind(this)),this.pageContainer.addEventListener("drop",this.drop.bind(this)),Ix(this.pageContainer,this.threeClick.bind(this))}setIsAllowSelection(e){this.isAllowSelection=e,e||this.applyPainterStyle()}setIsAllowDrag(e){this.isAllowDrag=e,this.isAllowDrop=e}clearPainterStyle(){this.pageList.forEach(e=>{e.style.cursor="text"}),this.draw.setPainterStyle(null)}applyPainterStyle(){const e=this.draw.getPainterStyle();if(!e)return;const n=this.range.getSelection();if(!n)return;const r=Object.keys(e);n.forEach(o=>{r.forEach(a=>{const s=a;o[s]=e[s]})}),this.draw.render({isSetCursor:!1});const i=this.draw.getPainterOptions();(!i||!i.isDblclick)&&this.clearPainterStyle()}selectAll(){const e=this.position.getPositionList();this.range.setRange(0,e.length-1),this.draw.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}mousemove(e){ww(e,this)}mousedown(e){vw(e,this)}click(){yw&&!this.draw.isReadonly()&&this.draw.getCursor().getAgentDom().focus()}mouseup(e){bw(e,this)}mouseleave(e){xw(e,this)}keydown(e){Nw(e,this)}dblclick(e){N1.dblclick(this,e)}threeClick(){N1.threeClick(this)}input(e){sR(e,this)}cut(){Fw(this)}copy(){Pw(this)}compositionstart(){F1.compositionstart(this)}compositionend(e){F1.compositionend(this,e)}drop(e){Mw(e,this)}dragover(e){Yw.dragover(e,this)}}class Zw{constructor(e,n){this.clearSideEffect=r=>{if(!this.cursor)return;const i=(r==null?void 0:r.composedPath()[0])||r.target,o=this.draw.getPageList();if(au(i,c=>o.includes(c),!0)){this.setRangeStyle();return}if(au(i,c=>!!c&&c.nodeType===1&&!!c.getAttribute(Jr),!0)){this.setRangeStyle(),this.watchCursorActive();return}this.cursor.recoveryCursor(),this.range.recoveryRangeStyle(),this.previewer.clearResizer(),this.tableTool.dispose(),this.hyperlinkParticle.clearHyperlinkPopup(),this.control.destroyControl(),this.dateParticle.clearDatePicker()},this.setCanvasEventAbility=()=>{this.canvasEvent.setIsAllowDrag(!1),this.canvasEvent.setIsAllowSelection(!1)},this.setRangeStyle=()=>{this.range.setRangeStyle()},this.setPageScale=r=>{if(!r.ctrlKey)return;r.preventDefault();const{scale:i}=this.options;if(r.deltaY<0){const o=i*10+1;o<=30&&this.draw.setPageScale(o/10)}else{const o=i*10-1;o>=5&&this.draw.setPageScale(o/10)}},this._handleVisibilityChange=()=>{if(document.visibilityState==="visible"){const r=this.range.getRange(),i=!!~r.startIndex&&!!~r.endIndex&&r.startIndex===r.endIndex;this.range.replaceRange(r),this.draw.render({isSetCursor:i,isCompute:!1,isSubmitHistory:!1,curIndex:r.startIndex})}},this._handleDprChange=()=>{this.draw.setPageDevicePixel()},this.draw=e,this.options=e.getOptions(),this.canvasEvent=n,this.cursor=null,this.range=e.getRange(),this.previewer=e.getPreviewer(),this.tableTool=e.getTableTool(),this.hyperlinkParticle=e.getHyperlinkParticle(),this.dateParticle=e.getDateParticle(),this.control=e.getControl(),this.dprMediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`)}register(){this.cursor=this.draw.getCursor(),this.addEvent()}addEvent(){window.addEventListener("blur",this.clearSideEffect),document.addEventListener("keyup",this.setRangeStyle),document.addEventListener("click",this.clearSideEffect),document.addEventListener("mouseup",this.setCanvasEventAbility),document.addEventListener("wheel",this.setPageScale,{passive:!1}),document.addEventListener("visibilitychange",this._handleVisibilityChange),this.dprMediaQueryList.addEventListener("change",this._handleDprChange)}removeEvent(){window.removeEventListener("blur",this.clearSideEffect),document.removeEventListener("keyup",this.setRangeStyle),document.removeEventListener("click",this.clearSideEffect),document.removeEventListener("mouseup",this.setCanvasEventAbility),document.removeEventListener("wheel",this.setPageScale),document.removeEventListener("visibilitychange",this._handleVisibilityChange),this.dprMediaQueryList.removeEventListener("change",this._handleDprChange)}watchCursorActive(){!this.range.getIsCollapsed()||setTimeout(()=>{var e,n;(e=this.cursor)!=null&&e.getAgentIsActive()||(n=this.cursor)==null||n.drawCursor({isFocus:!1,isBlink:!1})})}}class kw{constructor(e){this.undoStack=[],this.redoStack=[],this.maxRecordCount=e.getOptions().historyMaxRecordCount+1}undo(){if(this.undoStack.length>1){const e=this.undoStack.pop();this.redoStack.push(e),this.undoStack.length&&this.undoStack[this.undoStack.length-1]()}}redo(){if(this.redoStack.length){const e=this.redoStack.pop();this.undoStack.push(e),e()}}execute(e){for(this.undoStack.push(e),this.redoStack.length&&(this.redoStack=[]);this.undoStack.length>this.maxRecordCount;)this.undoStack.shift()}isCanUndo(){return this.undoStack.length>1}isCanRedo(){return!!this.redoStack.length}isStackEmpty(){return!this.undoStack.length&&!this.redoStack.length}recovery(){this.undoStack=[],this.redoStack=[]}popUndo(){return this.undoStack.pop()}}class Qw{constructor(e){this.positionList=[],this.floatPositionList=[],this.cursorPosition=null,this.positionContext={isTable:!1,isControl:!1},this.draw=e,this.options=e.getOptions()}getFloatPositionList(){return this.floatPositionList}getTablePositionList(e){const{index:n,trIndex:r,tdIndex:i}=this.positionContext;return e[n].trList[r].tdList[i].positionList||[]}getPositionList(){return this.positionContext.isTable?this.getTablePositionList(this.draw.getOriginalElementList()):this.getOriginalPositionList()}getMainPositionList(){return this.positionContext.isTable?this.getTablePositionList(this.draw.getOriginalMainElementList()):this.positionList}getOriginalPositionList(){const e=this.draw.getZone();return e.isHeaderActive()?this.draw.getHeader().getPositionList():e.isFooterActive()?this.draw.getFooter().getPositionList():this.positionList}getOriginalMainPositionList(){return this.positionList}getSelectionPositionList(){const{startIndex:e,endIndex:n}=this.draw.getRange().getRange();return e===n?null:this.getPositionList().slice(e+1,n+1)}setPositionList(e){this.positionList=e}setFloatPositionList(e){this.floatPositionList=e}computePageRowPosition(e){const{positionList:n,rowList:r,pageNo:i,startX:o,startY:a,startRowIndex:s,startIndex:c,innerWidth:u,zone:l}=e,{scale:h,table:{tdPadding:d}}=this.options;let f=o,p=a,g=c;for(let y=0;yZ+C.height,0),k=(P.height-q)*h-V,re=P.verticalAlign===Mi.MIDDLE?k/2:k;Math.floor(re)>0&&P.positionList.forEach(Z=>{const{coordinate:{leftTop:C,leftBottom:ne,rightBottom:oe,rightTop:ue}}=Z;C[1]+=re,ne[1]+=re,oe[1]+=re,ue[1]+=re})}f=X.x,p=X.y}}f=v,p=x}}f=o,p+=R.height}return{x:f,y:p,index:g}}computePositionList(){var u;this.positionList=[];const e=this.draw.getInnerWidth(),n=this.draw.getPageRowList(),r=this.draw.getMargins(),i=r[3],a=this.draw.getHeader().getExtraHeight(),s=r[0]+a;let c=0;for(let l=0;ll)break;if(_[0]-N<=n&&B[0]>=n&&_[1]<=r&&q[1]>=r){let T=x;const I=o[x];if(I.type===fe.TABLE)for(let P=0;Px.isLastLetter&&x.pageNo===l);for(let x=0;xN[1]&&r<=M[1]){const _=a.findIndex(B=>B.pageNo===l&&B.rowNo===E);if(n_)return{index:-1,zone:it.FOOTER}}else if(r<=_&&r>=E)return{index:-1,zone:it.MAIN};const B=this.draw.getMargins();if(r<=B[1])for(let q=0;q=I[0]&&n<=b[0]||((y=a[q+1])==null?void 0:y.rowNo)!==0)return{index:T.index}}else{const q=p[p.length-1];if(q){const T=q.rowNo;for(let I=0;I=P[0]&&n<=U[0]||((R=a[I+1])==null?void 0:R.rowNo)!==T)return{index:b.index}}}}return{index:((m=p[p.length-1])==null?void 0:m.index)||a.length-1}}return{hitLineStartIndex:f,index:d,isControl:!!((v=o[d])!=null&&v.controlId)}}getFloatPositionByXY(e){const{x:n,y:r}=e,i=this.draw.getZone().getZone();for(let o=0;o=p.x&&n<=p.x+s.width&&r>=p.y&&r<=p.y+s.height)return c?{index:u,isDirectHit:!0,isImage:!0,isTable:c,trIndex:l,tdIndex:h,tdValueIndex:d,tdId:s.tdId,trId:s.trId,tableId:s.tableId}:{index:a.index,isDirectHit:!0,isImage:!0}}}}adjustPositionContext(e){const n=this.getPositionByXY(e);if(!~n.index)return null;if(n.isControl&&this.draw.getMode()!==Zt.READONLY){const{index:g,isTable:y,trIndex:R,tdIndex:m,tdValueIndex:v}=n,x=this.draw.getControl(),{newIndex:O}=x.moveCursor({index:g,isTable:y,trIndex:R,tdIndex:m,tdValueIndex:v});y?n.tdValueIndex=O:n.index=O}const{index:r,isCheckbox:i,isRadio:o,isControl:a,isImage:s,isDirectHit:c,isTable:u,trIndex:l,tdIndex:h,tdId:d,trId:f,tableId:p}=n;return this.setPositionContext({isTable:u||!1,isCheckbox:i||!1,isRadio:o||!1,isControl:a||!1,isImage:s||!1,isDirectHit:c||!1,index:r,trIndex:l,tdIndex:h,tdId:d,trId:f,tableId:p}),n}}class Kw{constructor(e){this.draw=e,this.options=e.getOptions(),this.listener=e.getListener(),this.eventBus=e.getEventBus(),this.position=e.getPosition(),this.historyManager=e.getHistoryManager(),this.range={startIndex:-1,endIndex:-1}}getRange(){return this.range}clearRange(){this.setRange(-1,-1)}getIsCollapsed(){const{startIndex:e,endIndex:n}=this.range;return e===n}getSelection(){const{startIndex:e,endIndex:n}=this.range;return e===n?null:this.draw.getElementList().slice(e+1,n+1)}getSelectionElementList(){if(this.range.isCrossRowCol){const e=this.draw.getTableParticle().getRangeRowCol();if(!e)return null;const n=[];for(let r=0;r!n.type||Nr.includes(n.type)):null}getTextLikeSelectionElementList(){const e=this.getSelectionElementList();return e?e.filter(n=>!n.type||Nr.includes(n.type)):null}getRangeRow(){const{startIndex:e,endIndex:n}=this.range;if(!~e&&!~n)return null;const r=this.position.getPositionList(),i=new Map;for(let o=e;o=0;){const{pageNo:c,rowNo:u}=r[a];let l=o.get(c);l||(l=[],o.set(c,l)),l.includes(u)||l.unshift(u);const h=i[a],d=i[a-1];if(h.value===We&&!h.listWrap||h.listId!==(d==null?void 0:d.listId)||h.titleId!==(d==null?void 0:d.titleId))break;a--}if(e!==n){let c=e+1;for(;c=c[0]&&e<=u[0]&&n>=c[1]&&n<=u[1])return!0}return!1}getKeywordRangeList(e){const n=this.draw.getSearch().getMatchList(e,this.draw.getOriginalElementList()),r=new Map;for(const o of n){const a=r.get(o.groupId);if(a)a.endIndex+=1;else{const{type:s,groupId:c,tableId:u,index:l,tdIndex:h,trIndex:d}=o,f={startIndex:l-1,endIndex:l};s===Fi.TABLE&&(f.tableId=u,f.startTdIndex=h,f.endTdIndex=h,f.startTrIndex=d,f.endTrIndex=d),r.set(c,f)}}const i=[];return r.forEach(o=>{i.push(o)}),i}getIsCanInput(){const{startIndex:e,endIndex:n}=this.getRange();if(!~e&&!~n)return!1;if(e===n)return!0;const r=this.draw.getElementList(),i=r[e],o=r[n];return!i.controlId&&!o.controlId||(!i.controlId||i.controlComponent===Se.POSTFIX)&&(!o.controlId||o.controlComponent===Se.POSTFIX)||!!i.controlId&&o.controlId===i.controlId&&o.controlComponent!==Se.POSTFIX}setRange(e,n,r,i,o,a,s){this.range.startIndex=e,this.range.endIndex=n,this.range.tableId=r,this.range.startTdIndex=i,this.range.endTdIndex=o,this.range.startTrIndex=a,this.range.endTrIndex=s,this.range.isCrossRowCol=!!(i||o||a||s),this.range.zone=this.draw.getZone().getZone();const c=this.draw.getControl();if(~e&&~n){const l=this.draw.getElementList()[e];if(l!=null&&l.controlId){c.initControl();return}}c.destroyControl()}replaceRange(e){this.setRange(e.startIndex,e.endIndex,e.tableId,e.startTdIndex,e.endTdIndex,e.startTrIndex,e.endTrIndex)}setRangeStyle(){var b;const e=this.listener.rangeStyleChange,n=this.eventBus.isSubscribe("rangeStyleChange");if(!e&&!n)return;const{startIndex:r,endIndex:i,isCrossRowCol:o}=this.range;if(!~r&&!~i)return;let a;if(o){const P=this.draw.getOriginalElementList(),U=this.position.getPositionContext();a=P[U.index]}else{const P=~i?i:0,U=this.draw.getElementList();a=Fs(U,P)}if(!a)return;const s=this.getSelection()||[a],c=a.type||fe.TEXT,u=a.font||this.options.defaultFont,l=a.size||this.options.defaultSize,h=!~s.findIndex(P=>!P.bold),d=!~s.findIndex(P=>!P.italic),f=!~s.findIndex(P=>{var U;return!P.underline&&!((U=P.control)!=null&&U.underline)}),p=!~s.findIndex(P=>!P.strikeout),g=a.color||null,y=a.highlight||null,R=a.rowFlex||null,m=a.rowMargin||this.options.defaultRowMargin,v=a.dashArray||[],x=a.level||null,O=a.listType||null,E=a.listStyle||null,N=f&&a.textDecoration||null,M=!!this.draw.getPainterStyle(),_=this.historyManager.isCanUndo(),B=this.historyManager.isCanRedo(),q=a.groupIds||null,T=(b=a.extension)!=null?b:null,I={type:c,undo:_,redo:B,painter:M,font:u,size:l,bold:h,italic:d,underline:f,strikeout:p,color:g,highlight:y,rowFlex:R,rowMargin:m,dashArray:v,level:x,listType:O,listStyle:E,groupIds:q,textDecoration:N,extension:T};e&&e(I),n&&this.eventBus.emit("rangeStyleChange",I)}recoveryRangeStyle(){const e=this.listener.rangeStyleChange,n=this.eventBus.isSubscribe("rangeStyleChange");if(!e&&!n)return;const r=this.options.defaultFont,i=this.options.defaultSize,o=this.options.defaultRowMargin,a=!!this.draw.getPainterStyle(),s=this.historyManager.isCanUndo(),c=this.historyManager.isCanRedo(),u={type:null,undo:s,redo:c,painter:a,font:r,size:i,bold:!1,italic:!1,underline:!1,strikeout:!1,color:null,highlight:null,rowFlex:null,rowMargin:o,dashArray:[],level:null,listType:null,listStyle:null,groupIds:null,textDecoration:null,extension:null};e&&e(u),n&&this.eventBus.emit("rangeStyleChange",u)}shrinkBoundary(e={}){const n=e.elementList||this.draw.getElementList(),r=e.range||this.getRange(),{startIndex:i,endIndex:o}=r;if(!~i&&!~o)return;const a=n[i],s=n[o];if(i===o){if(a.controlComponent===Se.PLACEHOLDER){let c=i-1;for(;c>0;){const u=n[c];if(u.controlId!==a.controlId||u.controlComponent===Se.PREFIX){r.startIndex=c,r.endIndex=c;break}c--}}}else{if(a.controlComponent===Se.PLACEHOLDER||s.controlComponent===Se.PLACEHOLDER){let c=o-1;for(;c>0;){const u=n[c];if(u.controlId!==s.controlId||u.controlComponent===Se.PREFIX){r.startIndex=c,r.endIndex=c;return}c--}}if(a.controlComponent===Se.PREFIX){let c=i+1;for(;c0;){const u=n[c];if(u.controlId!==a.controlId||u.controlComponent===Se.VALUE){r.startIndex=c;break}else if(u.controlComponent===Se.PLACEHOLDER){r.startIndex=c,r.endIndex=c;return}c--}}}}render(e,n,r,i,o){e.save(),e.globalAlpha=this.options.rangeAlpha,e.fillStyle=this.options.rangeColor,e.fillRect(n,r,i,o),e.restore()}toString(){const e=this.getTextLikeSelection();return e?e.map(n=>n.value).join("").replace(new RegExp(We,"g"),""):""}}var tf=(t=>(t.CONTAIN="contain",t.COVER="cover",t))(tf||{}),ro=(t=>(t.REPEAT="repeat",t.NO_REPEAT="no-repeat",t.REPEAT_X="repeat-x",t.REPEAT_Y="repeat-y",t))(ro||{});class Hw{constructor(e){this.draw=e,this.options=e.getOptions(),this.imageCache=new Map}_renderBackgroundColor(e,n,r,i){e.save(),e.fillStyle=n,e.fillRect(0,0,r,i),e.restore()}_drawImage(e,n,r,i){const{background:o,scale:a}=this.options;if(o.size===tf.CONTAIN){const s=n.width*a,c=n.height*a;if(!o.repeat||o.repeat===ro.NO_REPEAT)e.drawImage(n,0,0,s,c);else{let u=0,l=0;const h=o.repeat===ro.REPEAT||o.repeat===ro.REPEAT_X?Math.ceil(r*a/s):1,d=o.repeat===ro.REPEAT||o.repeat===ro.REPEAT_Y?Math.ceil(i*a/c):1;for(let f=0;f{this.imageCache.set(i.image,a),this._drawImage(e,a,n,r),this.draw.render({isCompute:!1,isSubmitHistory:!1})}}}render(e,n){const{background:r}=this.options;if(r.image){const{width:i,height:o}=this.options;this._renderBackgroundImage(e,i,o)}else{const i=this.draw.getCanvasWidth(n),o=this.draw.getCanvasHeight(n);this._renderBackgroundColor(e,r.color,i,o)}}}class nf{constructor(){this.fillRect=this.clearFillInfo()}clearFillInfo(){return this.fillColor=void 0,this.fillDecorationStyle=void 0,this.fillRect={x:0,y:0,width:0,height:0},this.fillRect}recordFillInfo(e,n,r,i,o,a,s){const c=!this.fillRect.width;if(!c&&(this.fillColor!==a||this.fillDecorationStyle!==s)){this.render(e),this.clearFillInfo(),this.recordFillInfo(e,n,r,i,o,a,s);return}c&&(this.fillRect.x=n,this.fillRect.y=r),o&&this.fillRect.height=0;){const i=this.searchMatchList[e];if(r!==i.groupId){n=!0,this.searchNavigateIndex=e-(this.searchKeyword.length-1);break}e--}if(!n){if(this.searchMatchList[this.searchMatchList.length-1].groupId===r)return null;this.searchNavigateIndex=this.searchMatchList.length-1-(this.searchKeyword.length-1)}}return this.searchNavigateIndex}searchNavigateNext(){if(!this.searchMatchList.length||!this.searchKeyword)return null;if(this.searchNavigateIndex===null)this.searchNavigateIndex=0;else{let e=this.searchNavigateIndex+1,n=!1;const r=this.searchMatchList[this.searchNavigateIndex].groupId;for(;ee+n)}getSearchMatchList(){return this.searchMatchList}getSearchNavigateInfo(){if(!this.searchKeyword||!this.searchMatchList.length)return null;const e=this.searchNavigateIndex!==null?this.searchNavigateIndex/this.searchKeyword.length+1:0;let n=0,r=null;for(let i=0;i!m.type||Nr.includes(m.type)&&m.controlComponent!==Se.CHECKBOX?m.value:We).filter(Boolean).join("").toLocaleLowerCase(),y=[];let R=g.indexOf(h);for(;R!==-1;)y.push(R),R=g.indexOf(h,R+h.length);for(let m=0;m(t.SOLID="solid",t.DOUBLE="double",t.DASHED="dashed",t.DOTTED="dotted",t.WAVY="wavy",t))(as||{}),ss=(t=>(t.SOLID="solid",t.DASHED="dashed",t.DOTTED="dotted",t))(ss||{});class jw extends nf{constructor(e){super(),this.options=e.getOptions()}_drawLine(e,n,r,i,o){const a=n+i;switch(e.beginPath(),o){case ss.DASHED:e.setLineDash([3,1]);break;case ss.DOTTED:e.setLineDash([1,1]);break}e.moveTo(n,r),e.lineTo(a,r),e.stroke()}_drawDouble(e,n,r,i){const a=n+i,s=r+3*this.options.scale;e.beginPath(),e.moveTo(n,r),e.lineTo(a,r),e.stroke(),e.beginPath(),e.moveTo(n,s),e.lineTo(a,s),e.stroke()}_drawWave(e,n,r,i){const{scale:o}=this.options,a=1.2*o,s=1/o,c=r+2*a;e.beginPath();for(let u=0;u{const{intersectionPageNo:n,visiblePageNoList:r}=this.getPageVisibleInfo();this.draw.setIntersectionPageNo(n),this.draw.setVisiblePageNoList(r)},150),this.draw=e,this.options=e.getOptions(),this.scrollContainer=this.getScrollContainer(),setTimeout(()=>{window.scrollY||this._observer()}),this._addEvent()}getScrollContainer(){return this.options.scrollContainerSelector&&document.querySelector(this.options.scrollContainerSelector)||document}_addEvent(){this.scrollContainer.addEventListener("scroll",this._observer)}removeEvent(){this.scrollContainer.removeEventListener("scroll",this._observer)}getElementVisibleInfo(e){const n=e.getBoundingClientRect(),r=this.scrollContainer===document?Math.max(document.documentElement.clientHeight,window.innerHeight):this.scrollContainer.clientHeight,i=Math.min(n.bottom,r)-Math.max(n.top,0);return{intersectionHeight:i>0?i:0}}getPageVisibleInfo(){const e=this.draw.getPageList(),n=[];let r=0,i=0;for(let o=0;oi&&(i=s,r=o)}return{intersectionPageNo:r,visiblePageNoList:n}}}class rT{constructor(e){this.step=5,this.thresholdPoints=[70,40,10,20],this._mousedown=()=>{this.isMousedown=!0},this._mouseup=()=>{this.isMousedown=!1,this._stopMove()},this._mousemove=n=>{if(!this.isMousedown||this.rangeManager.getIsCollapsed())return;const{x:r,y:i}=n,o=document.documentElement.clientWidth,a=document.documentElement.clientHeight;i(t.ALL="all",t.EMPTY="empty",t.EXTERNAL="external",t))(Kr||{}),ur=(t=>(t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.LEFT="left",t))(ur||{}),bs=(t=>(t.FORWARD="forward",t.BACK="back",t))(bs||{});class iT{constructor(e){this.draw=e,this.range=e.getRange(),this.options=e.getOptions()}getTrListGroupByCol(e){var r;const n=Ft(e);for(let i=0;i=0;a--){const s=o.tdList[a],{rowspan:c,rowIndex:u,colIndex:l}=s,h=u+c-1;if(h!==a){const d=o.tdList.splice(a,1)[0];(r=n[h])==null||r.tdList.splice(l,0,d)}}}return n}getRangeRowCol(){const{isTable:e,index:n,trIndex:r,tdIndex:i}=this.draw.getPosition().getPositionContext();if(!e)return null;const{isCrossRowCol:o,startTdIndex:a,endTdIndex:s,startTrIndex:c,endTrIndex:u}=this.range.getRange(),d=this.draw.getOriginalElementList()[n].trList;if(!o)return[[d[r].tdList[i]]];let f=d[c].tdList[a],p=d[u].tdList[s];(f.x>p.x||f.y>p.y)&&([f,p]=[p,f]);const g=f.colIndex,y=p.colIndex+(p.colspan-1),R=f.rowIndex,m=p.rowIndex+(p.rowspan-1),v=[];for(let x=0;x=g&&_<=y&&B>=R&&B<=m&&E.push(M)}E.length&&v.push(E)}return v.length?v:null}_drawOuterBorder(e){const{ctx:n,startX:r,startY:i,width:o,height:a,isDrawFullBorder:s}=e;n.beginPath();const c=Math.round(r),u=Math.round(i);n.translate(.5,.5),s?n.rect(c,u,o,a):(n.moveTo(c,u+a),n.lineTo(c,u),n.lineTo(c+o,u)),n.stroke(),n.translate(-.5,-.5)}_drawSlash(e,n,r,i){var l,h;const{scale:o}=this.options;e.save();const a=n.width*o,s=n.height*o,c=Math.round(n.x*o+r),u=Math.round(n.y*o+i);(l=n.slashTypes)!=null&&l.includes(bs.FORWARD)&&(e.moveTo(c+a,u),e.lineTo(c,u+s)),(h=n.slashTypes)!=null&&h.includes(bs.BACK)&&(e.moveTo(c,u),e.lineTo(c+a,u+s)),e.stroke(),e.restore()}_drawBorder(e,n,r,i){var f,p,g,y,R,m;const{colgroup:o,trList:a,borderType:s}=n;if(!o||!a)return;const{scale:c}=this.options,u=n.width*c,l=n.height*c,h=s===Kr.EMPTY,d=s===Kr.EXTERNAL;e.save(),e.lineWidth=c,h||this._drawOuterBorder({ctx:e,startX:r,startY:i,width:u,height:l,isDrawFullBorder:d});for(let v=0;vn+r.width,0)}getTableHeight(e){const n=e.trList;return n!=null&&n.length?this.getTdListByColIndex(n,0).reduce((r,i)=>r+i.height,0):0}getRowCountByColIndex(e,n){return this.getTdListByColIndex(e,n).reduce((r,i)=>r+i.rowspan,0)}getTdListByColIndex(e,n){const r=[];for(let i=0;i=c&&n<=u&&r.push(s)}}return r}computeRowColInfo(e){const{colgroup:n,trList:r}=e;if(!n||!r)return;let i=0,o=0;for(let a=0;a1&&a!==0){const m=s.tdList[l-1],v=m?m.colIndex+m.colspan:l;for(let x=v;xp)&&(u=p);const g=s.tdList.length-1===l;let y=c;if(!y&&h.rowspan>1){const m=r.length-1-a;y=h.rowspan-1===m}const R=c&&g;h.isLastRowTd=g,h.isLastColTd=y,h.isLastTd=R,h.x=i,h.y=o,h.width=f,h.height=p,h.rowIndex=a,h.colIndex=d,i+=f,g&&!R&&(i=0,o+=u)}}}drawRange(e,n,r,i){const{scale:o,rangeAlpha:a,rangeColor:s}=this.options,{type:c,trList:u}=n;if(!u||c!==fe.TABLE)return;const{isCrossRowCol:l,startTdIndex:h,endTdIndex:d,startTrIndex:f,endTrIndex:p}=this.range.getRange();if(!l)return;let g=u[f].tdList[h],y=u[p].tdList[d];(g.x>y.x||g.y>y.y)&&([g,y]=[y,g]);const R=g.colIndex,m=y.colIndex+(y.colspan-1),v=g.rowIndex,x=y.rowIndex+(y.rowspan-1);e.save();for(let O=0;O=R&&_<=m&&B>=v&&B<=x){const q=M.x*o,T=M.y*o,I=M.width*o,b=M.height*o;e.globalAlpha=a,e.fillStyle=s,e.fillRect(q+r,T+i,I,b)}}}e.restore()}render(e,n,r,i){this._drawBackgroundColor(e,n,r,i),this._drawBorder(e,n,r,i)}}var Ei=(t=>(t.ROW="row",t.COL="col",t))(Ei||{});class oT{constructor(e){this.MIN_TD_WIDTH=20,this.ROW_COL_OFFSET=18,this.BORDER_VALUE=4,this.draw=e,this.canvas=e.getPage(),this.options=e.getOptions(),this.position=e.getPosition(),this.container=e.getContainer(),this.toolRowContainer=null,this.toolColContainer=null,this.toolBorderContainer=null,this.anchorLine=null,this.mousedownX=0,this.mousedownY=0}dispose(){var e,n,r;(e=this.toolRowContainer)==null||e.remove(),(n=this.toolColContainer)==null||n.remove(),(r=this.toolBorderContainer)==null||r.remove(),this.toolRowContainer=null,this.toolColContainer=null,this.toolBorderContainer=null}render(){const{isTable:e,index:n,trIndex:r,tdIndex:i}=this.position.getPositionContext();if(!e)return;this.dispose();const{scale:o}=this.options,a=this.draw.getOriginalElementList(),s=this.position.getOriginalPositionList(),c=a[n],u=s[n],{colgroup:l,trList:h}=c,{coordinate:{leftTop:d}}=u,f=this.draw.getHeight(),p=this.draw.getPageGap(),g=this.draw.getPageNo()*(f+p),y=d[0],R=d[1]+g,m=c.trList[r].tdList[i],v=m.rowIndex,x=m.colIndex,O=h.map(T=>T.height),E=document.createElement("div");E.classList.add(`${ke}-table-tool__row`),E.style.transform=`translateX(-${this.ROW_COL_OFFSET*o}px)`;for(let T=0;T{this._mousedown({evt:U,element:c,index:T,order:Ei.ROW})},b.append(P),b.style.height=`${I}px`,E.append(b)}E.style.left=`${y}px`,E.style.top=`${R}px`,this.container.append(E),this.toolRowContainer=E;const N=l.map(T=>T.width),M=document.createElement("div");M.classList.add(`${ke}-table-tool__col`),M.style.transform=`translateY(-${this.ROW_COL_OFFSET*o}px)`;for(let T=0;T{this._mousedown({evt:U,element:c,index:T,order:Ei.COL})},b.append(P),b.style.width=`${I}px`,M.append(b)}M.style.left=`${y}px`,M.style.top=`${R}px`,this.container.append(M),this.toolColContainer=M;const _=c.height*o,B=c.width*o,q=document.createElement("div");q.classList.add(`${ke}-table-tool__border`),q.style.height=`${_}px`,q.style.width=`${B}px`,q.style.left=`${y}px`,q.style.top=`${R}px`;for(let T=0;T{this._mousedown({evt:V,element:c,index:P.rowIndex+P.rowspan-1,order:Ei.ROW})},q.appendChild(U);const X=document.createElement("div");X.classList.add(`${ke}-table-tool__border__col`),X.style.width=`${this.BORDER_VALUE}px`,X.style.height=`${P.height*o}px`,X.style.top=`${P.y*o}px`,X.style.left=`${(P.x+P.width)*o-this.BORDER_VALUE/2}px`,X.onmousedown=V=>{this._mousedown({evt:V,element:c,index:P.colIndex+P.colspan-1,order:Ei.COL})},q.appendChild(X)}}this.container.append(q),this.toolBorderContainer=q}_mousedown(e){const{evt:n,index:r,order:i,element:o}=e;this.canvas=this.draw.getPage();const{scale:a}=this.options,s=this.draw.getWidth(),c=this.draw.getHeight(),u=this.draw.getPageGap(),l=this.draw.getPageNo()*(c+u);this.mousedownX=n.x,this.mousedownY=n.y;const h=n.target,d=this.canvas.getBoundingClientRect(),f=window.getComputedStyle(h).cursor;document.body.style.cursor=f,this.canvas.style.cursor=f;let p=0,g=0;const y=document.createElement("div");y.classList.add(`${ke}-table-anchor__line`),i===Ei.ROW?(y.classList.add(`${ke}-table-anchor__line__row`),y.style.width=`${s}px`,p=0,g=l+this.mousedownY-d.top):(y.classList.add(`${ke}-table-anchor__line__col`),y.style.height=`${c}px`,p=this.mousedownX-d.left,g=l),y.style.left=`${p}px`,y.style.top=`${g}px`,this.container.append(y),this.anchorLine=y;let R=0,m=0;const v=x=>{const O=this._mousemove(x,i,p,g);O&&(R=O.dx,m=O.dy)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",()=>{var O;let x=!1;if(i===Ei.ROW){const E=o.trList,N=E[r]||E[r-1],{defaultTrMinHeight:M}=this.options.table;m<0&&N.height+m0&&_&&_-RN){const T=o.width;R=N-T}}R&&(E.length-1!==r&&(E[r+1].width-=R/a),E[r].width+=R/a,x=!0)}}x&&this.draw.render({isSetCursor:!1}),y.remove(),document.removeEventListener("mousemove",v),document.body.style.cursor="",this.canvas.style.cursor="text"},{once:!0}),n.preventDefault()}_mousemove(e,n,r,i){if(!this.anchorLine)return null;const o=e.x-this.mousedownX,a=e.y-this.mousedownY;return n===Ei.ROW?this.anchorLine.style.top=`${i+a}px`:this.anchorLine.style.left=`${r+o}px`,e.preventDefault(),{dx:o,dy:a}}}class aT{constructor(e){this.draw=e,this.options=e.getOptions(),this.container=e.getContainer();const{hyperlinkPopupContainer:n,hyperlinkDom:r}=this._createHyperlinkPopupDom();this.hyperlinkDom=r,this.hyperlinkPopupContainer=n}_createHyperlinkPopupDom(){const e=document.createElement("div");e.classList.add(`${ke}-hyperlink-popup`);const n=document.createElement("a");return n.target="_blank",n.rel="noopener",e.append(n),this.container.append(e),{hyperlinkPopupContainer:e,hyperlinkDom:n}}drawHyperlinkPopup(e,n){const{coordinate:{leftTop:[r,i]},lineHeight:o}=n,a=this.draw.getHeight(),s=this.draw.getPageGap(),c=this.draw.getPageNo()*(a+s);this.hyperlinkPopupContainer.style.display="block",this.hyperlinkPopupContainer.style.left=`${r}px`,this.hyperlinkPopupContainer.style.top=`${i+c+o}px`;const u=e.url||"#";this.hyperlinkDom.href=u,this.hyperlinkDom.title=u,this.hyperlinkDom.innerText=u}clearHyperlinkPopup(){this.hyperlinkPopupContainer.style.display="none"}openHyperlink(e){const n=window.open(e.url,"_blank");n&&(n.opener=null)}render(e,n,r,i){e.save(),e.font=n.style,n.color||(n.color=this.options.defaultHyperlinkColor),e.fillStyle=n.color,n.underline===void 0&&(n.underline=!0),e.fillText(n.value,r,i),e.restore()}}class sT{constructor(e,n){this.draw=e,this.position=e.getPosition(),this.options=e.getOptions(),this.elementList=n||[],this.rowList=[],this.positionList=[]}getRowList(){return this.rowList}setElementList(e){this.elementList=e}getElementList(){return this.elementList}getPositionList(){return this.positionList}compute(){this.recovery(),this._computeRowList(),this._computePositionList()}recovery(){this.rowList=[],this.positionList=[]}_computeRowList(){const e=this.draw.getInnerWidth();this.rowList=this.draw.computeRowList({innerWidth:e,elementList:this.elementList})}_computePositionList(){const e=this.getHeaderTop(),n=this.draw.getInnerWidth(),i=this.draw.getMargins()[3],o=e;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:i,startY:o,innerWidth:n,zone:it.HEADER})}getHeaderTop(){const{header:{top:e,disabled:n},scale:r}=this.options;return n?0:Math.floor(e*r)}getMaxHeight(){const{header:{maxHeightRadio:e}}=this.options,n=this.draw.getHeight();return Math.floor(n*Vm[e])}getHeight(){const e=this.getMaxHeight(),n=this.getRowHeight();return n>e?e:n}getRowHeight(){return this.rowList.reduce((e,n)=>e+n.height,0)}getExtraHeight(){const e=this.draw.getMargins(),n=this.getHeight(),i=this.getHeaderTop()+n-e[0];return i<=0?0:i}render(e,n){e.globalAlpha=1;const r=this.draw.getInnerWidth(),i=this.getMaxHeight(),o=[];let a=0;for(let s=0;si)break;o.push(c),a+=c.height}this.draw.drawRow(e,{elementList:this.elementList,positionList:this.positionList,rowList:o,pageNo:n,startIndex:0,innerWidth:r,zone:it.HEADER})}}class cT{getOffsetY(e){return-e.metrics.height/2}render(e,n,r,i){e.save(),e.font=n.style,n.color&&(e.fillStyle=n.color),e.fillText(n.value,r,i+this.getOffsetY(n)),e.restore()}}class uT{getOffsetY(e){return e.metrics.height/2}render(e,n,r,i){e.save(),e.font=n.style,n.color&&(e.fillStyle=n.color),e.fillText(n.value,r,i+this.getOffsetY(n)),e.restore()}}class lT{constructor(e){this.options=e.getOptions()}render(e,n,r,i){var u;e.save();const{scale:o,separator:{lineWidth:a,strokeStyle:s}}=this.options;e.lineWidth=a*o,e.strokeStyle=n.color||s,(u=n.dashArray)!=null&&u.length&&e.setLineDash(n.dashArray);const c=Math.round(i);e.translate(0,e.lineWidth/2),e.beginPath(),e.moveTo(r,c),e.lineTo(r+n.width*o,c),e.stroke(),e.restore()}}class hT{constructor(e){this.draw=e,this.options=e.getOptions(),this.i18n=e.getI18n()}render(e,n,r,i){const{pageBreak:{font:o,fontSize:a,lineDash:s}}=this.options,c=this.i18n.t("pageBreak.displayName"),{scale:u,defaultRowMargin:l}=this.options,h=a*u,d=n.width*u,f=this.draw.getDefaultBasicRowMarginHeight()*l;e.save(),e.font=`${h}px ${o}`;const p=e.measureText(c),g=(d-p.width)/2;e.setLineDash(s),e.translate(0,.5+f),e.beginPath(),e.moveTo(r,i),e.lineTo(r+g,i),e.moveTo(r+g+p.width,i),e.lineTo(r+d,i),e.stroke(),e.fillText(c,r+g,i+p.actualBoundingBoxAscent-h/2),e.restore()}}class dT{constructor(e){this.draw=e,this.options=e.getOptions()}render(e){const{watermark:{data:n,opacity:r,font:i,size:o,color:a},scale:s}=this.options,c=this.draw.getWidth(),u=this.draw.getHeight(),l=c/2,h=u/2;e.save(),e.globalAlpha=r,e.font=`${o*s}px ${i}`,e.fillStyle=a;const d=e.measureText(n);e.translate(l,h),e.rotate(-45*Math.PI/180),e.fillText(n,-d.width/2,d.actualBoundingBoxAscent-o/2),e.restore()}}class fT{constructor(e){this.draw=e.getDraw(),this.options=this.draw.getOptions(),this.highlightList=[],this.highlightMatchResult=[]}getHighlightMatchResult(){return this.highlightMatchResult}getHighlightList(){return this.highlightList}setHighlightList(e){this.highlightList=e}computeHighlightList(){const e=this.draw.getSearch(),n=(r,i)=>{var a;let o=0;for(;og.conceptId===c);if(!~u)continue;const l=o;let h=o;for(;h({...m,...y,...i,index:m.index+l})))}}};this.highlightMatchResult=[],n(this.draw.getOriginalMainElementList())}renderHighlightList(e,n){var s,c,u;if(!((s=this.highlightMatchResult)!=null&&s.length))return;const{searchMatchAlpha:r,searchMatchColor:i}=this.options,o=this.draw.getPosition().getOriginalPositionList(),a=this.draw.getOriginalElementList();e.save();for(let l=0;l0;){const c=n[a];if(c.controlId!==i.controlId||c.controlComponent===Se.PREFIX)break;c.controlComponent===Se.VALUE&&o.unshift(c),a--}let s=r+1;for(;s0;){const f=o[l];if(f.controlId!==s.controlId||f.controlComponent===Se.PREFIX){c=l;break}l--}let h=a+1;for(;hR.code===e);if(!u)return;const l=this.getValue(n)[0],h=l?Qr(l,po):Qr(i[o.startIndex],sa),d=this.clearSelect(n,{isAddPlaceholder:!1});if(!~d)return;s||this.control.removePlaceholder(d,n);const f=vs(i[d],po),p=d+1,g=vr(u.value),y=this.control.getDraw();for(let R=0;R{this.setSelect(d.code)},f.append(document.createTextNode(d.value)),o.append(f)}i.append(o);const{coordinate:{leftTop:[a,s]},lineHeight:c}=r,u=this.control.getPreY();i.style.left=`${a}px`,i.style.top=`${s+u+c}px`,this.control.getContainer().append(i),this.selectDom=i}awake(){var r;if(this.isPopup||this.control.getIsDisabledControl())return;const{startIndex:e}=this.control.getRange();((r=this.control.getElementList()[e+1])==null?void 0:r.controlId)===this.element.controlId&&(this._createSelectPopupDom(),this.isPopup=!0)}destroy(){var e;!this.isPopup||((e=this.selectDom)==null||e.remove(),this.isPopup=!1)}}class P1{constructor(e,n){this.element=e,this.control=n}setElement(e){this.element=e}getElement(){return this.element}getValue(e={}){const n=e.elementList||this.control.getElementList(),{startIndex:r}=e.range||this.control.getRange(),i=n[r],o=[];let a=r;for(;a>0;){const c=n[a];if(c.controlId!==i.controlId||c.controlComponent===Se.PREFIX)break;c.controlComponent===Se.VALUE&&o.unshift(c),a--}let s=r+1;for(;s";const c=document.createElement("span");c.classList.add(`${ke}-date-title__next-year`),c.innerText=">>",r.append(i),r.append(o),r.append(a),r.append(s),r.append(c);const u=document.createElement("div");u.classList.add(`${ke}-date-week`);const{weeks:{sun:l,mon:h,tue:d,wed:f,thu:p,fri:g,sat:y}}=this.lang;[l,h,d,f,p,g,y].forEach(T=>{const I=document.createElement("span");I.innerText=`${T}`,u.append(I)});const m=document.createElement("div");m.classList.add(`${ke}-date-day`),n.append(r),n.append(u),n.append(m);const v=document.createElement("ul");v.classList.add(`${ke}-time-wrap`);let x,O,E;[this.lang.hour,this.lang.minute,this.lang.second].forEach((T,I)=>{const b=document.createElement("li"),P=document.createElement("span");P.innerText=T,b.append(P);const U=document.createElement("ol"),X=I===0,V=I===1,k=X?24:60;for(let re=0;re{this._preYear()},this.dom.title.preMonth.onclick=()=>{this._preMonth()},this.dom.title.nextMonth.onclick=()=>{this._nextMonth()},this.dom.title.nextYear.onclick=()=>{this._nextYear()},this.dom.menu.time.onclick=()=>{this.isDatePicker=!this.isDatePicker,this._toggleDateTimePicker()},this.dom.menu.now.onclick=()=>{this._now(),this._submit()},this.dom.menu.submit.onclick=()=>{this.dispose(),this._submit()},this.dom.time.hour.onclick=e=>{if(!this.pickDate)return;const r=e.target.dataset.id;!r||(this.pickDate.setHours(Number(r)),this._setTimePick(!1))},this.dom.time.minute.onclick=e=>{if(!this.pickDate)return;const r=e.target.dataset.id;!r||(this.pickDate.setMinutes(Number(r)),this._setTimePick(!1))},this.dom.time.second.onclick=e=>{if(!this.pickDate)return;const r=e.target.dataset.id;!r||(this.pickDate.setSeconds(Number(r)),this._setTimePick(!1))}}_setPosition(){if(!this.renderOptions)return;const{position:{coordinate:{leftTop:[e,n]},lineHeight:r,pageNo:i}}=this.renderOptions,o=this.draw.getHeight(),a=this.draw.getPageGap(),c=(i!=null?i:this.draw.getPageNo())*(o+a);this.dom.container.style.left=`${e}px`,this.dom.container.style.top=`${n+c+r}px`}isInvalidDate(e){return e.toDateString()==="Invalid Date"}_setValue(){var n;const e=(n=this.renderOptions)==null?void 0:n.value;if(e){const r=new Date(e);this.now=this.isInvalidDate(r)?new Date:r}else this.now=new Date;this.pickDate=new Date(this.now)}_getLang(){const e=this.draw.getI18n(),n=e.t.bind(e);return{now:n("datePicker.now"),confirm:n("datePicker.confirm"),return:n("datePicker.return"),timeSelect:n("datePicker.timeSelect"),weeks:{sun:n("datePicker.weeks.sun"),mon:n("datePicker.weeks.mon"),tue:n("datePicker.weeks.tue"),wed:n("datePicker.weeks.wed"),thu:n("datePicker.weeks.thu"),fri:n("datePicker.weeks.fri"),sat:n("datePicker.weeks.sat")},year:n("datePicker.year"),month:n("datePicker.month"),hour:n("datePicker.hour"),minute:n("datePicker.minute"),second:n("datePicker.second")}}_setLangChange(){this.dom.menu.time.innerText=this.lang.timeSelect,this.dom.menu.now.innerText=this.lang.now,this.dom.menu.submit.innerText=this.lang.confirm;const{weeks:{sun:e,mon:n,tue:r,wed:i,thu:o,fri:a,sat:s}}=this.lang,c=[e,n,r,i,o,a,s];this.dom.datePickerWeek.childNodes.forEach((d,f)=>{const p=d;p.innerText=c[f]});const u=this.dom.time.hour.previousElementSibling;u.innerText=this.lang.hour;const l=this.dom.time.minute.previousElementSibling;l.innerText=this.lang.minute;const h=this.dom.time.second.previousElementSibling;h.innerText=this.lang.second}_update(){const e=new Date,n=e.getFullYear(),r=e.getMonth()+1,i=e.getDate();let o=null,a=null,s=null;this.pickDate&&(o=this.pickDate.getFullYear(),a=this.pickDate.getMonth()+1,s=this.pickDate.getDate());const c=this.now.getFullYear(),u=this.now.getMonth()+1;this.dom.title.now.innerText=`${c}${this.lang.year} ${String(u).padStart(2,"0")}${this.lang.month}`;const h=new Date(c,u,0).getDate();let d=new Date(c,u-1,1).getDay();d===0&&(d=7);const f=new Date(c,u-1,0).getDate();this.dom.day.innerHTML="";const p=f-d+1;for(let y=p;y<=f;y++){const R=document.createElement("div");R.classList.add("disable"),R.innerText=`${y}`,R.onclick=()=>{const m=u-2;this.now=new Date(c,m,y),this._setDatePick(c,m,y)},this.dom.day.append(R)}for(let y=1;y<=h;y++){const R=document.createElement("div");n===c&&r===u&&i===y&&R.classList.add("active"),this.pickDate&&o===c&&a===u&&s===y&&R.classList.add("select"),R.innerText=`${y}`,R.onclick=m=>{const v=u-1;this.now=new Date(c,v,y),this._setDatePick(c,v,y),m.stopPropagation()},this.dom.day.append(R)}const g=6*7-d-h;for(let y=1;y<=g;y++){const R=document.createElement("div");R.classList.add("disable"),R.innerText=`${y}`,R.onclick=()=>{this.now=new Date(c,u,y),this._setDatePick(c,u,y)},this.dom.day.append(R)}}_toggleDateTimePicker(){this.isDatePicker?(this.dom.dateWrap.classList.add("active"),this.dom.timeWrap.classList.remove("active"),this.dom.menu.time.innerText=this.lang.timeSelect):(this.dom.dateWrap.classList.remove("active"),this.dom.timeWrap.classList.add("active"),this.dom.menu.time.innerText=this.lang.return,this._setTimePick())}_setDatePick(e,n,r){var i,o,a;this.now=new Date(e,n,r),(i=this.pickDate)==null||i.setFullYear(e),(o=this.pickDate)==null||o.setMonth(n),(a=this.pickDate)==null||a.setDate(r),this._update()}_setTimePick(e=!0){var l,h,d;const n=((l=this.pickDate)==null?void 0:l.getHours())||0,r=((h=this.pickDate)==null?void 0:h.getMinutes())||0,i=((d=this.pickDate)==null?void 0:d.getSeconds())||0,{hour:o,minute:a,second:s}=this.dom.time;[o,a,s].forEach(f=>{f.querySelectorAll("li").forEach(p=>p.classList.remove("active"))}),[[o,n],[a,r],[s,i]].forEach(([f,p])=>{const g=f.querySelector(`[data-id='${p}']`);g.classList.add("active"),e&&this._scrollIntoView(f,g)})}_scrollIntoView(e,n){if(!n){e.scrollTop=0;return}const r=[];let i=n.offsetParent;for(;i&&e!==i&&e.contains(i);)r.push(i),i=i.offsetParent;const o=n.offsetTop+r.reduce((u,l)=>u+l.offsetTop,0),a=o+n.offsetHeight,s=e.scrollTop,c=s+e.clientHeight;oc&&(e.scrollTop=a-e.clientHeight)}_preMonth(){this.now.setMonth(this.now.getMonth()-1),this._update()}_nextMonth(){this.now.setMonth(this.now.getMonth()+1),this._update()}_preYear(){this.now.setFullYear(this.now.getFullYear()-1),this._update()}_nextYear(){this.now.setFullYear(this.now.getFullYear()+1),this._update()}_now(){this.pickDate=new Date,this.dispose()}_toggleVisible(e){e?this.dom.container.classList.add("active"):this.dom.container.classList.remove("active")}_submit(){var e;if(this.options.onSubmit&&this.pickDate){const n=(e=this.renderOptions)==null?void 0:e.dateFormat,r=this.formatDate(this.pickDate,n);this.options.onSubmit(r)}}formatDate(e,n="yyyy-MM-dd hh:mm:ss"){let r=n;const i={"y+":e.getFullYear().toString(),"M+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"h+":e.getHours().toString(),"m+":e.getMinutes().toString(),"s+":e.getSeconds().toString()};for(const o in i){const a=new RegExp("("+o+")").exec(n),s=o;a&&(r=r.replace(a[1],a[1].length===1?i[s]:i[s].padStart(a[1].length,"0")))}return r}render(e){this.renderOptions=e,this.lang=this._getLang(),this._setLangChange(),this._setValue(),this._update(),this._setPosition(),this.isDatePicker=!0,this._toggleDateTimePicker(),this._toggleVisible(!0)}dispose(){this._toggleVisible(!1)}destroy(){this.dom.container.remove()}}class ka{constructor(e,n){const r=n.getDraw();this.draw=r,this.element=e,this.control=n,this.isPopup=!1,this.datePicker=null}setElement(e){this.element=e}getElement(){return this.element}getIsPopup(){return this.isPopup}getValueRange(e={}){const n=e.elementList||this.control.getElementList(),{startIndex:r}=e.range||this.control.getRange(),i=n[r];let o=r;for(;o>0;){const s=n[o];if(s.controlId!==i.controlId||s.controlComponent===Se.PREFIX)break;o--}let a=r+1;for(;ac.value).join("")||"",o=(s=this.element.control)==null?void 0:s.dateFormat;this.datePicker.render({value:i,position:e,dateFormat:o}),this.isPopup=!0}destroy(){var e;!this.isPopup||((e=this.datePicker)==null||e.destroy(),this.isPopup=!1)}_setDate(e){e?this.setSelect(e):this.clearSelect(),this.destroy()}}class gT{constructor(e){this.controlBorder=new pT(e),this.draw=e,this.range=e.getRange(),this.listener=e.getListener(),this.eventBus=e.getEventBus(),this.controlSearch=new fT(this),this.options=e.getOptions(),this.controlOptions=this.options.control,this.activeControl=null}setHighlightList(e){this.controlSearch.setHighlightList(e)}computeHighlightList(){this.controlSearch.getHighlightList().length&&this.controlSearch.computeHighlightList()}renderHighlightList(e,n){this.controlSearch.getHighlightMatchResult().length&&this.controlSearch.renderHighlightList(e,n)}getDraw(){return this.draw}filterAssistElement(e){return e.filter(n=>{var r;if(n.type===fe.TABLE){const i=n.trList;for(let o=0;oi.controlId))return!1;let n=0,r=0;for(let i=0;i{var l;const a=this.listener.controlChange,s=this.eventBus.isSubscribe("controlChange");if(!a&&!s)return;let c;const u=(l=this.activeControl)==null?void 0:l.getValue();u&&u.length?c=Wt(u)[0].control:c=ta(Ft(i)).control,a&&a(c),s&&this.eventBus.emit("controlChange",c)})}destroyControl(){this.activeControl&&((this.activeControl instanceof Za||this.activeControl instanceof ka)&&this.activeControl.destroy(),this.activeControl=null,cu(()=>{const e=this.listener.controlChange,n=this.eventBus.isSubscribe("controlChange");!e&&!n||(e&&e(null),n&&this.eventBus.emit("controlChange",null))}))}repaintControl(e={}){const{curIndex:n,isCompute:r=!0,isSubmitHistory:i=!0}=e;n===void 0?(this.range.clearRange(),this.draw.render({isCompute:r,isSubmitHistory:i,isSetCursor:!1})):(this.range.setRange(n,n),this.draw.render({curIndex:n,isCompute:r,isSubmitHistory:i}))}reAwakeControl(){if(!this.activeControl)return;const e=this.getElementList(),n=this.getRange(),r=e[n.startIndex];this.activeControl.setElement(r),(this.activeControl instanceof ka||this.activeControl instanceof Za)&&this.activeControl.getIsPopup()&&(this.activeControl.destroy(),this.activeControl.awake())}moveCursor(e){const{index:n,trIndex:r,tdIndex:i,tdValueIndex:o}=e;let a=this.draw.getOriginalElementList(),s;const c=e.isTable?o:n;if(e.isTable?(a=a[n].trList[r].tdList[i].value,s=a[o]):s=a[n],s.controlComponent===Se.VALUE)return{newIndex:c,newElement:s};if(s.controlComponent===Se.POSTFIX){let u=c+1;for(;u0;){const l=a[u];if(l.controlId!==s.controlId||l.controlComponent===Se.PREFIX)return{newIndex:u,newElement:a[u]};u--}}return{newIndex:c,newElement:s}}removeControl(e,n={}){const r=n.elementList||this.getElementList(),i=r[e],{deletable:o=!0}=i.control;if(!o)return null;let a=-1,s=-1,c=e;for(;c>0;){if(r[c].controlId!==i.controlId){a=c;break}c--}let u=e+1;for(;u{var u;let c=0;for(;c{var m;return(m=f==null?void 0:f.find(v=>v.code===R))==null?void 0:m.value}).filter(Boolean).join("");r.push({...l.control,zone:s,value:d||null,innerText:y||null})}c=p}},o=[{zone:it.HEADER,elementList:this.draw.getHeaderElementList()},{zone:it.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:it.FOOTER,elementList:this.draw.getFooterElementList()}];for(const{zone:a,elementList:s}of o)i(s,a);return r}setValueByConceptId(e){if(this.draw.isReadonly())return;let r=!1;const{conceptId:i,value:o}=e,a=c=>{var l;let u=0;for(;u{var u;let c=0;for(;c0;l--){const h=c[l];if(h.type===fe.TABLE){const f=h.trList||[];for(let p=f.length-1;p>=0;p--){const g=f[p],y=g.tdList;for(let R=y.length-1;R>=0;R--){const m=y[R],v=i(m.value,m.value.length-1);if(v)return{positionContext:{isTable:!0,index:l,trIndex:p,tdIndex:R,tdId:m.id,trId:g.id,tableId:h.id},nextIndex:v.nextIndex}}}}if(!h.controlId||h.controlId===r.controlId)continue;let d=l;for(;d>0;){const f=c[d];if(f.controlComponent===Se.VALUE||f.controlComponent===Se.PREFIX)break;d--}return{positionContext:{isTable:!1},nextIndex:d}}return null}const{startIndex:o}=this.range.getRange(),a=this.getElementList(),s=i(a,o);if(s)return{positionContext:n.isTable?n:s.positionContext,nextIndex:s.nextIndex};if(r.tableId){const c=this.draw.getOriginalElementList(),{index:u,trIndex:l,tdIndex:h}=n,d=c[u].trList;for(let p=l;p>=0;p--){const g=d[p],y=g.tdList;for(let R=y.length-1;R>=0;R--){if(l===p&&R>=h)continue;const m=y[R],v=i(m.value,m.value.length-1);if(v)return{positionContext:{isTable:!0,index:n.index,trIndex:p,tdIndex:R,tdId:m.id,trId:g.id,tableId:r.tableId},nextIndex:v.nextIndex}}}const f=i(c,u-1);if(f)return{positionContext:{isTable:!1},nextIndex:f.nextIndex}}return null}getNextControlContext(){if(!this.activeControl)return null;const n=this.draw.getPosition().getPositionContext();if(!n)return null;const r=this.activeControl.getElement();function i(c,u){for(let l=u;l{this.wordCountWorker.onmessage=i=>{e(i.data)},this.wordCountWorker.onerror=i=>{n(i)};const r=this.draw.getOriginalMainElementList();this.wordCountWorker.postMessage(r)})}getCatalog(){return new Promise((e,n)=>{this.catalogWorker.onmessage=i=>{e(i.data)},this.catalogWorker.onerror=i=>{n(i)};const r=this.draw.getOriginalMainElementList();this.catalogWorker.postMessage(r)})}getGroupIds(){return new Promise((e,n)=>{this.groupWorker.onmessage=i=>{e(i.data)},this.groupWorker.onerror=i=>{n(i)};const r=this.draw.getOriginalMainElementList();this.groupWorker.postMessage(r)})}}class wT{constructor(e){this._keydown=()=>{this.resizerSelection.style.display==="block"&&(this.clearResizer(),document.removeEventListener("keydown",this._keydown))},this.container=e.getContainer(),this.canvas=e.getPage(),this.draw=e,this.options=e.getOptions(),this.curElement=null,this.curElementSrc="",this.previewerDrawOption={},this.curPosition=null;const{resizerSelection:n,resizerHandleList:r,resizerImageContainer:i,resizerImage:o,resizerSize:a}=this._createResizerDom();this.resizerSelection=n,this.resizerHandleList=r,this.resizerImageContainer=i,this.resizerImage=o,this.resizerSize=a,this.width=0,this.height=0,this.mousedownX=0,this.mousedownY=0,this.curHandleIndex=0,this.previewerContainer=null,this.previewerImage=null}_getElementPosition(e,n=null){var u;let r=0,i=0;const o=this.draw.getHeight(),a=this.draw.getPageGap(),c=((u=n==null?void 0:n.pageNo)!=null?u:this.draw.getPageNo())*(o+a);if(e.imgFloatPosition)r=e.imgFloatPosition.x,i=e.imgFloatPosition.y+c;else if(n){const{coordinate:{leftTop:[l,h]},ascent:d}=n;r=l,i=h+c+d}return{x:r,y:i}}_createResizerDom(){const e=document.createElement("div");e.classList.add(`${ke}-resizer-selection`),e.style.display="none",e.style.borderColor=this.options.resizerColor;const n=[];for(let s=0;s<8;s++){const c=document.createElement("div");c.style.background=this.options.resizerColor,c.classList.add("resizer-handle"),c.classList.add(`handle-${s}`),c.setAttribute("data-index",String(s)),c.onmousedown=this._mousedown.bind(this),e.append(c),n.push(c)}this.container.append(e);const r=document.createElement("div");r.classList.add(`${ke}-resizer-size-view`);const i=document.createElement("span");r.append(i),e.append(r);const o=document.createElement("div");o.classList.add(`${ke}-resizer-image`),o.style.display="none";const a=document.createElement("img");return o.append(a),this.container.append(o),{resizerSelection:e,resizerHandleList:n,resizerImageContainer:o,resizerImage:a,resizerSize:i}}_mousedown(e){if(this.canvas=this.draw.getPage(),!this.curElement)return;const{scale:n}=this.options;this.mousedownX=e.x,this.mousedownY=e.y;const r=e.target;this.curHandleIndex=Number(r.dataset.index);const i=window.getComputedStyle(r).cursor;document.body.style.cursor=i,this.canvas.style.cursor=i,this.resizerImage.src=this.curElementSrc,this.resizerImageContainer.style.display="block";const{x:o,y:a}=this._getElementPosition(this.curElement,this.curPosition);this.resizerImageContainer.style.left=`${o}px`,this.resizerImageContainer.style.top=`${a}px`,this.resizerImage.style.width=`${this.curElement.width*n}px`,this.resizerImage.style.height=`${this.curElement.height*n}px`;const s=this._mousemove.bind(this);document.addEventListener("mousemove",s),document.addEventListener("mouseup",()=>{var c;this.curElement&&(this.curElement.width=this.width,this.curElement.height=this.height,this.draw.render({isSetCursor:!0,curIndex:(c=this.curPosition)==null?void 0:c.index})),this.resizerImageContainer.style.display="none",document.removeEventListener("mousemove",s),document.body.style.cursor="",this.canvas.style.cursor="text"},{once:!0}),e.preventDefault()}_mousemove(e){if(!this.curElement)return;const{scale:n}=this.options;let r=0,i=0;switch(this.curHandleIndex){case 0:{const u=this.mousedownX-e.x,l=this.mousedownY-e.y;r=Math.cbrt(u**3+l**3),i=this.curElement.height*r/this.curElement.width}break;case 1:i=this.mousedownY-e.y;break;case 2:{const u=e.x-this.mousedownX,l=this.mousedownY-e.y;r=Math.cbrt(u**3+l**3),i=this.curElement.height*r/this.curElement.width}break;case 4:{const u=e.x-this.mousedownX,l=e.y-this.mousedownY;r=Math.cbrt(u**3+l**3),i=this.curElement.height*r/this.curElement.width}break;case 3:r=e.x-this.mousedownX;break;case 5:i=e.y-this.mousedownY;break;case 6:{const u=this.mousedownX-e.x,l=e.y-this.mousedownY;r=Math.cbrt(u**3+l**3),i=this.curElement.height*r/this.curElement.width}break;case 7:r=this.mousedownX-e.x;break}const o=this.curElement.width+r/n,a=this.curElement.height+i/n;if(o<=0||a<=0)return;this.width=o,this.height=a;const s=o*n,c=a*n;this.resizerImage.style.width=`${s}px`,this.resizerImage.style.height=`${c}px`,this._updateResizerRect(s,c),this._updateResizerSizeView(s,c),e.preventDefault()}_drawPreviewer(){const e=document.createElement("div");e.classList.add(`${ke}-image-previewer`);const n=document.createElement("i");n.classList.add("image-close"),n.onclick=()=>{this._clearPreviewer()},e.append(n);const r=document.createElement("div");r.classList.add(`${ke}-image-container`);const i=document.createElement("img");i.src=this.curElementSrc,i.draggable=!1,r.append(i),this.previewerImage=i,e.append(r);let o=0,a=0,s=1,c=0;const u=document.createElement("div");u.classList.add(`${ke}-image-menu`);const l=document.createElement("i");l.classList.add("zoom-in"),l.onclick=()=>{s+=.1,this._setPreviewerTransform(s,c,o,a)},u.append(l);const h=document.createElement("i");h.onclick=()=>{s-.1<=.1||(s-=.1,this._setPreviewerTransform(s,c,o,a))},h.classList.add("zoom-out"),u.append(h);const d=document.createElement("i");d.classList.add("rotate"),d.onclick=()=>{c+=1,this._setPreviewerTransform(s,c,o,a)},u.append(d);const f=document.createElement("i");f.classList.add("original-size"),f.onclick=()=>{o=0,a=0,s=1,c=0,this._setPreviewerTransform(s,c,o,a)},u.append(f);const p=document.createElement("i");p.classList.add("image-download"),p.onclick=()=>{var v;const{mime:m}=this.previewerDrawOption;Zm(i.src,`${(v=this.curElement)==null?void 0:v.id}.${m||"png"}`)},u.append(p),e.append(u),this.previewerContainer=e,document.body.append(e);let g=0,y=0,R=!1;i.onmousedown=m=>{R=!0,g=m.x,y=m.y,e.style.cursor="move"},e.onmousemove=m=>{!R||(o+=m.x-g,a+=m.y-y,g=m.x,y=m.y,this._setPreviewerTransform(s,c,o,a))},e.onmouseup=()=>{R=!1,e.style.cursor="auto"},e.onwheel=m=>{if(m.preventDefault(),m.deltaY<0)s+=.1;else{if(s-.1<=.1)return;s-=.1}this._setPreviewerTransform(s,c,o,a)}}_setPreviewerTransform(e,n,r,i){!this.previewerImage||(this.previewerImage.style.left=`${r}px`,this.previewerImage.style.top=`${i}px`,this.previewerImage.style.transform=`scale(${e}) rotate(${n*90}deg)`)}_clearPreviewer(){var e;(e=this.previewerContainer)==null||e.remove(),this.previewerContainer=null,document.body.style.overflow="auto"}_updateResizerRect(e,n){const r=this.options.resizerSize;this.resizerSelection.style.width=`${e}px`,this.resizerSelection.style.height=`${n}px`;for(let i=0;i<8;i++){const o=i===0||i===6||i===7?-r:i===1||i===5?e/2:e-r,a=i===0||i===1||i===2?-r:i===3||i===7?n/2-r:n-r;this.resizerHandleList[i].style.left=`${o}px`,this.resizerHandleList[i].style.top=`${a}px`}}_updateResizerSizeView(e,n){this.resizerSize.innerText=`${Math.round(e)} \xD7 ${Math.round(n)}`}render(){this._drawPreviewer(),document.body.style.overflow="hidden"}drawResizer(e,n=null,r={}){this.previewerDrawOption=r,this.curElementSrc=e[r.srcKey||"value"]||"",this.updateResizer(e,n),document.addEventListener("keydown",this._keydown)}updateResizer(e,n=null){const{scale:r}=this.options,i=e.width*r,o=e.height*r;this._updateResizerSizeView(i,o);const{x:a,y:s}=this._getElementPosition(e,n);this.resizerSelection.style.left=`${a}px`,this.resizerSelection.style.top=`${s}px`,this._updateResizerRect(i,o),this.resizerSelection.style.display="block",this.curElement=e,this.curPosition=n,this.width=i,this.height=o}clearResizer(){this.resizerSelection.style.display="none",document.removeEventListener("keydown",this._keydown)}}class TT{constructor(e){this.draw=e,this.range=e.getRange(),this.datePicker=new uR(e,{onSubmit:this._setValue.bind(this)})}_setValue(e){if(!e)return;const n=this.getDateElementRange();if(!n)return;const[r,i]=n,o=this.draw.getElementList(),a=o[r+1];this.draw.spliceElementList(o,r+1,i-r),this.range.setRange(r,r);const s={type:fe.DATE,value:"",dateFormat:a.dateFormat,valueList:[{value:e}]};wn(o,[s],r),this.draw.insertElementList([s])}getDateElementRange(){let e=-1,n=-1;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return null;const o=this.draw.getElementList(),a=o[r];if(a.type!==fe.DATE)return null;let s=r;for(;s>0;){if(o[s].dateId!==a.dateId){e=s;break}s--}let c=r+1;for(;ca.value).join(""):"";this.datePicker.render({value:o,position:n,dateFormat:e.dateFormat})}}var xs=(t=>(t.IFRAME="iframe",t.VIDEO="video",t))(xs||{});const fR=class{constructor(t){this.element=t}_defineIframeProperties(t){Object.defineProperties(t,{parent:{get:()=>null},__POWERED_BY_CANVAS_EDITOR__:{get:()=>!0}})}render(t){var r,i;const e=this.element.block,n=document.createElement("iframe");n.setAttribute("data-id",this.element.id),n.sandbox.add(...fR.sandbox),n.style.border="none",n.style.width="100%",n.style.height="100%",(r=e.iframeBlock)!=null&&r.src?n.src=e.iframeBlock.src:(i=e.iframeBlock)!=null&&i.srcdoc&&(n.srcdoc=e.iframeBlock.srcdoc),t.append(n),this._defineIframeProperties(n.contentWindow)}};let pR=fR;pR.sandbox=["allow-scripts","allow-same-origin"];class ST{constructor(e){this.element=e}render(e){var i;const n=this.element.block,r=document.createElement("video");r.style.width="100%",r.style.height="100%",r.style.objectFit="contain",r.src=((i=n.videoBlock)==null?void 0:i.src)||"",r.controls=!0,r.crossOrigin="anonymous",e.append(r)}}class DT{constructor(e,n){this.draw=e.getDraw(),this.blockContainer=e.getBlockContainer(),this.element=n,this.block=null,this.blockItem=this._createBlockItem(),this.blockContainer.append(this.blockItem)}getBlockElement(){return this.element}_createBlockItem(){const e=document.createElement("div");return e.classList.add(`${ke}-block-item`),e}render(){const e=this.element.block;e.type===xs.IFRAME?(this.block=new pR(this.element),this.block.render(this.blockItem)):e.type===xs.VIDEO&&(this.block=new ST(this.element),this.block.render(this.blockItem))}setClientRects(e,n,r){const i=this.draw.getHeight(),o=this.draw.getPageGap(),a=e*(i+o),{metrics:s}=this.element;this.blockItem.style.width=`${s.width}px`,this.blockItem.style.height=`${s.height}px`,this.blockItem.style.left=`${n}px`,this.blockItem.style.top=`${a+r}px`}remove(){this.blockItem.remove()}}class OT{constructor(e){this.draw=e,this.container=e.getContainer(),this.blockMap=new Map,this.blockContainer=this._createBlockContainer(),this.container.append(this.blockContainer)}_createBlockContainer(){const e=document.createElement("div");return e.classList.add(`${ke}-block-container`),e}getDraw(){return this.draw}getBlockContainer(){return this.blockContainer}render(e,n,r,i){const o=n.id,a=this.blockMap.get(o);if(a)a.setClientRects(e,r,i);else{const s=new DT(this,n);s.render(),s.setClientRects(e,r,i),this.blockMap.set(o,s)}}clear(){if(!this.blockMap.size)return;const e=this.draw.getElementList(),n=[];for(let r=0;r{const i=r.getBlockElement().id;n.includes(i)||(r.remove(),this.blockMap.delete(i))})}}const _T={global:{cut:"\u526A\u5207",copy:"\u590D\u5236",paste:"\u7C98\u8D34",selectAll:"\u5168\u9009",print:"\u6253\u5370"},control:{delete:"\u5220\u9664\u63A7\u4EF6"},hyperlink:{delete:"\u5220\u9664\u94FE\u63A5",cancel:"\u53D6\u6D88\u94FE\u63A5",edit:"\u7F16\u8F91\u94FE\u63A5"},image:{change:"\u66F4\u6539\u56FE\u7247",saveAs:"\u53E6\u5B58\u4E3A\u56FE\u7247",textWrap:"\u6587\u5B57\u73AF\u7ED5",textWrapType:{embed:"\u5D4C\u5165\u578B",upDown:"\u4E0A\u4E0B\u578B\u73AF\u7ED5",floatTop:"\u6D6E\u4E8E\u6587\u5B57\u4E0A\u65B9",floatBottom:"\u886C\u4E8E\u6587\u5B57\u4E0B\u65B9"}},table:{insertRowCol:"\u63D2\u5165\u884C\u5217",insertTopRow:"\u4E0A\u65B9\u63D2\u51651\u884C",insertBottomRow:"\u4E0B\u65B9\u63D2\u51651\u884C",insertLeftCol:"\u5DE6\u4FA7\u63D2\u51651\u5217",insertRightCol:"\u53F3\u4FA7\u63D2\u51651\u5217",deleteRowCol:"\u5220\u9664\u884C\u5217",deleteRow:"\u5220\u96641\u884C",deleteCol:"\u5220\u96641\u5217",deleteTable:"\u5220\u9664\u6574\u4E2A\u8868\u683C",mergeCell:"\u5408\u5E76\u5355\u5143\u683C",mergeCancelCell:"\u53D6\u6D88\u5408\u5E76",verticalAlign:"\u5782\u76F4\u5BF9\u9F50",verticalAlignTop:"\u9876\u7AEF\u5BF9\u9F50",verticalAlignMiddle:"\u5782\u76F4\u5C45\u4E2D",verticalAlignBottom:"\u5E95\u7AEF\u5BF9\u9F50",border:"\u8868\u683C\u8FB9\u6846",borderAll:"\u6240\u6709\u6846\u7EBF",borderEmpty:"\u65E0\u6846\u7EBF",borderExternal:"\u5916\u4FA7\u6846\u7EBF",borderTd:"\u5355\u5143\u683C\u8FB9\u6846",borderTdTop:"\u4E0A\u8FB9\u6846",borderTdRight:"\u53F3\u8FB9\u6846",borderTdBottom:"\u4E0B\u8FB9\u6846",borderTdLeft:"\u5DE6\u8FB9\u6846",borderTdForward:"\u6B63\u659C\u7EBF",borderTdBack:"\u53CD\u659C\u7EBF"}},ET={now:"\u6B64\u523B",confirm:"\u786E\u5B9A",return:"\u8FD4\u56DE\u65E5\u671F",timeSelect:"\u65F6\u95F4\u9009\u62E9",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},year:"\u5E74",month:"\u6708",hour:"\u65F6",minute:"\u5206",second:"\u79D2"},IT={header:"\u9875\u7709",footer:"\u9875\u811A"},NT={displayName:"\u5206\u9875\u7B26"},FT={headerTip:"\u53CC\u51FB\u7F16\u8F91\u9875\u7709",footerTip:"\u53CC\u51FB\u7F16\u8F91\u9875\u811A"};var Al={contextmenu:_T,datePicker:ET,frame:IT,pageBreak:NT,zone:FT};const PT={global:{cut:"Cut",copy:"Copy",paste:"Paste",selectAll:"Select all",print:"Print"},control:{delete:"Delete control"},hyperlink:{delete:"Delete hyperlink",cancel:"Cancel hyperlink",edit:"Edit hyperlink"},image:{change:"Change image",saveAs:"Save as image",textWrap:"Text wrap",textWrapType:{embed:"Embed",upDown:"Up down",floatTop:"Float above text",floatBottom:"Float below text"}},table:{insertRowCol:"Insert row col",insertTopRow:"Insert top 1 row",insertBottomRow:"Insert bottom 1 row",insertLeftCol:"Insert left 1 col",insertRightCol:"Insert right 1 col",deleteRowCol:"Delete row col",deleteRow:"Delete 1 row",deleteCol:"Delete 1 col",deleteTable:"Delete table",mergeCell:"Merge cell",mergeCancelCell:"Cancel merge cell",verticalAlign:"Vertical align",verticalAlignTop:"Top",verticalAlignMiddle:"Middle",verticalAlignBottom:"Bottom",border:"Table border",borderAll:"All",borderEmpty:"Empty",borderExternal:"External",borderTd:"Table cell border",borderTdTop:"Top",borderTdRight:"Right",borderTdBottom:"Bottom",borderTdLeft:"Left",borderTdForward:"Forward",borderTdBack:"Back"}},MT={now:"Now",confirm:"Confirm",return:"Return",timeSelect:"Time select",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},year:" ",month:" ",hour:"Hour",minute:"Minute",second:"Second"},LT={header:"Header",footer:"Footer"},CT={displayName:"Page Break"},AT={headerTip:"Double click to edit header",footerTip:"Double click to edit footer"};var UT={contextmenu:PT,datePicker:MT,frame:LT,pageBreak:CT,zone:AT};class WT{constructor(){this.langMap=new Map([["zhCN",Al],["en",UT]]),this.currentLocale="zhCN"}registerLangMap(e,n){const r=this.langMap.get(e);this.langMap.set(e,km(r||Al,n))}getLocale(){return this.currentLocale}setLocale(e){this.currentLocale=e}getLang(){return this.langMap.get(this.currentLocale)||Al}t(e){const n=e.split(".");let r="",i=this.getLang();for(let o=0;o{if(!(this.isDisableMouseMove||!this.draw.getIsPagingMode())&&!!n.offsetY)if(n.target instanceof HTMLCanvasElement){const r=this.zone.getZoneByY(n.offsetY);if(!e.includes(r)){this._updateZoneTip(!1);return}this.currentMoveZone=r,this._updateZoneTip(this.zone.getZone()===it.MAIN&&(r===it.HEADER||r===it.FOOTER),n.x,n.y)}else this._updateZoneTip(!1)},250)),this.pageContainer.addEventListener("mouseenter",()=>{this.isDisableMouseMove=!1}),this.pageContainer.addEventListener("mouseleave",()=>{this.isDisableMouseMove=!0,this._updateZoneTip(!1)})}_drawZoneTip(){const e=document.createElement("div");e.classList.add(`${ke}-zone-tip`);const n=document.createElement("span");return e.append(n),this.container.append(e),{tipContainer:e,tipContent:n}}_updateZoneTip(e,n,r){e?(this.tipContainer.classList.add("show"),this.tipContainer.style.left=`${n}px`,this.tipContainer.style.top=`${r}px`,this.tipContent.innerText=this.i18n.t(`zone.${this.currentMoveZone===it.HEADER?"headerTip":"footerTip"}`)):this.tipContainer.classList.remove("show")}}class YT{constructor(e){this.INDICATOR_PADDING=2,this.INDICATOR_TITLE_TRANSLATE=[20,5],this.draw=e,this.i18n=e.getI18n(),this.options=e.getOptions(),this.container=e.getContainer(),this.currentZone=it.MAIN,this.indicatorContainer=null,this.options.zone.tipDisabled||new VT(e,this)}isHeaderActive(){return this.getZone()===it.HEADER}isMainActive(){return this.getZone()===it.MAIN}isFooterActive(){return this.getZone()===it.FOOTER}getZone(){return this.currentZone}setZone(e){this.currentZone!==e&&(this.currentZone=e,this.draw.getRange().clearRange(),this.draw.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1}),this.drawZoneIndicator(),cu(()=>{const n=this.draw.getListener();n.zoneChange&&n.zoneChange(e);const r=this.draw.getEventBus();r.isSubscribe("zoneChange")&&r.emit("zoneChange",e)}))}getZoneByY(e){const n=this.draw.getHeader(),r=n.getHeaderTop()+n.getHeight(),i=this.draw.getFooter(),a=this.draw.getHeight()-(i.getFooterBottom()+i.getHeight());return ea?it.FOOTER:it.MAIN}drawZoneIndicator(){if(this._clearZoneIndicator(),!this.isHeaderActive()&&!this.isFooterActive())return;const{scale:e}=this.options,n=this.isHeaderActive(),[r,i]=this.INDICATOR_TITLE_TRANSLATE,o=this.draw.getPageList(),a=this.draw.getMargins(),s=this.draw.getInnerWidth(),c=this.draw.getHeight(),u=this.draw.getPageGap(),l=c+u;this.indicatorContainer=document.createElement("div"),this.indicatorContainer.classList.add(`${ke}-zone-indicator`);const h=this.draw.getHeader(),d=this.draw.getFooter(),f=n?h.getHeight():d.getHeight(),p=n?h.getHeaderTop():c-d.getFooterBottom()-f;for(let g=0;ge?e:n}getRowHeight(){return this.rowList.reduce((e,n)=>e+n.height,0)}getExtraHeight(){const e=this.draw.getMargins(),n=this.getHeight(),i=this.getFooterBottom()+n-e[2];return i<=0?0:i}render(e,n){e.globalAlpha=1;const r=this.draw.getInnerWidth(),i=this.getMaxHeight(),o=[];let a=0;for(let s=0;si)break;o.push(c),a+=c.height}this.draw.drawRow(e,{elementList:this.elementList,positionList:this.positionList,rowList:o,pageNo:n,startIndex:0,innerWidth:r,zone:it.FOOTER})}}class ZT{constructor(e){this.UN_COUNT_STYLE_WIDTH=20,this.MEASURE_BASE_TEXT="0",this.LIST_GAP=10,this.draw=e,this.range=e.getRange(),this.options=e.getOptions()}setList(e,n){if(this.draw.isReadonly())return;const{startIndex:i,endIndex:o}=this.range.getRange();if(!~i&&!~o)return;const a=this.range.getRangeParagraphElementList();if(!a||!a.length)return;if(a.find(h=>h.listType===e&&h.listStyle===n)||!e){this.unsetList();return}const c=vt();a.forEach(h=>{h.listId=c,h.listType=e,h.listStyle=n});const u=i===o,l=u?o:i;this.draw.render({curIndex:l,isSetCursor:u})}unsetList(){var u;if(this.draw.isReadonly())return;const{startIndex:n,endIndex:r}=this.range.getRange();if(!~n&&!~r)return;const i=(u=this.range.getRangeParagraphElementList())==null?void 0:u.filter(l=>l.listId);if(!i||!i.length)return;const o=this.draw.getElementList(),a=o[r];if(a.listId){let l=r+1;for(;l{delete l.listId,delete l.listType,delete l.listStyle,delete l.listWrap});const s=n===r,c=s?r:n;this.draw.render({curIndex:c,isSetCursor:s})}computeListStyle(e,n){const r=new Map;let i=0,o=n[i].listId,a=[];const s=n.length;for(;i(l.value===We&&(u+=1),u),0);if(!a)return 0;const s=`${this.MEASURE_BASE_TEXT.repeat(String(a).length)}${Qe.PERIOD}`,c=e.measureText(s);return Math.ceil((c.width+this.LIST_GAP)*r)}drawListStyle(e,n,r){var m;const{elementList:i,offsetX:o,listIndex:a,ascent:s}=n,c=i[0];if(c.value!==We||c.listWrap)return;let u=0;const{defaultTabWidth:l,scale:h,defaultFont:d,defaultSize:f}=this.options;for(let v=1;v{Array.isArray(r.groupIds)||(r.groupIds=[]),r.groupIds.push(n)}),this.draw.render({isSetCursor:!1,isCompute:!1}),n}getElementListByGroupId(e,n){var i,o;const r=[];for(let a=0;ac===e);a.splice(s,1),a.length||delete o.groupIds}this.draw.render({isSetCursor:!1,isCompute:!1})}}getContextByGroupId(e,n){var r,i;for(let o=0;o{const{x:d,y:f,width:p,height:g}=l;i!=null&&i.includes(h)?(e.globalAlpha=s,e.fillStyle=c):(e.globalAlpha=a,e.fillStyle=o),e.fillRect(d,f,p,g)}),e.restore(),this.clearFillInfo()}}class KT{constructor(e,n,r,i,o,a){this.container=this._wrapContainer(e),this.pageList=[],this.ctxList=[],this.pageNo=0,this.pagePixelRatio=null,this.mode=n.mode,this.options=n,this.elementList=r.main,this.listener=i,this.eventBus=o,this.override=a,this._formatContainer(),this.pageContainer=this._createPageContainer(),this._createPage(0),this.i18n=new WT,this.historyManager=new kw(this),this.position=new Qw(this),this.zone=new YT(this),this.range=new Kw(this),this.margin=new Jw(this),this.background=new Hw(this),this.search=new zw(this),this.group=new QT(this),this.underline=new jw(this),this.strikeout=new $w(this),this.highlight=new Gw(this),this.previewer=new wT(this),this.imageParticle=new Hm(this),this.laTexParticle=new zm(this),this.textParticle=new qw(this),this.tableParticle=new iT(this),this.tableTool=new oT(this),this.pageNumber=new tT(this),this.waterMark=new dT(this),this.placeholder=new kT(this),this.header=new sT(this,r.header),this.footer=new BT(this,r.footer),this.hyperlinkParticle=new aT(this),this.dateParticle=new TT(this),this.separatorParticle=new lT(this),this.pageBreakParticle=new hT(this),this.superscriptParticle=new cT,this.subscriptParticle=new uT,this.checkboxParticle=new mT(this),this.radioParticle=new RT(this),this.blockParticle=new OT(this),this.listParticle=new ZT(this),this.lineBreakParticle=new ca(this),this.control=new gT(this),this.scrollObserver=new nT(this),this.selectionObserver=new rT(this),this.imageObserver=new XT,this.canvasEvent=new Bw(this),this.cursor=new Rw(this,this.canvasEvent),this.canvasEvent.register(),this.globalEvent=new Zw(this,this.canvasEvent),this.globalEvent.register(),this.workerManager=new xT(this);const{letterClass:s}=n;this.LETTER_REG=new RegExp(`[${s.join("")}]`),this.WORD_LIKE_REG=new RegExp(`${s.map(c=>`[^${c}][${c}]`).join("|")}`),this.rowList=[],this.pageRowList=[],this.painterStyle=null,this.painterOptions=null,this.visiblePageNoList=[],this.intersectionPageNo=0,this.lazyRenderIntersectionObserver=null,this.printModeData=null,this.render({isInit:!0,isSetCursor:!1,isFirstRender:!0})}getLetterReg(){return this.LETTER_REG}getMode(){return this.mode}setMode(e){if(this.mode!==e){if(e===Zt.PRINT){this.printModeData={header:this.header.getElementList(),main:this.elementList,footer:this.footer.getElementList()};const n=Ft(this.printModeData);["header","main","footer"].forEach(i=>{n[i]=this.control.filterAssistElement(n[i])}),this.setEditorData(n)}this.mode===Zt.PRINT&&this.printModeData&&(this.setEditorData(this.printModeData),this.printModeData=null),this.range.clearRange(),this.mode=e,this.render({isSetCursor:!1,isSubmitHistory:!1})}}isReadonly(){switch(this.mode){case Zt.READONLY:case Zt.PRINT:return!0;case Zt.FORM:return!this.control.getIsRangeWithinControl();default:return!1}}getOriginalWidth(){const{paperDirection:e,width:n,height:r}=this.options;return e===uo.VERTICAL?n:r}getOriginalHeight(){const{paperDirection:e,width:n,height:r}=this.options;return e===uo.VERTICAL?r:n}getWidth(){return Math.floor(this.getOriginalWidth()*this.options.scale)}getHeight(){return Math.floor(this.getOriginalHeight()*this.options.scale)}getMainHeight(){return this.getHeight()-this.getMainOuterHeight()}getMainOuterHeight(){const e=this.getMargins(),n=this.header.getExtraHeight(),r=this.footer.getExtraHeight();return e[0]+e[2]+n+r}getCanvasWidth(e=-1){return this.getPage(e).width}getCanvasHeight(e=-1){return this.getPage(e).height}getInnerWidth(){const e=this.getWidth(),n=this.getMargins();return e-n[1]-n[3]}getOriginalInnerWidth(){const e=this.getOriginalWidth(),n=this.getOriginalMargins();return e-n[1]-n[3]}getMargins(){return this.getOriginalMargins().map(e=>e*this.options.scale)}getOriginalMargins(){const{margins:e,paperDirection:n}=this.options;return n===uo.VERTICAL?e:[e[1],e[2],e[3],e[0]]}getPageGap(){return this.options.pageGap*this.options.scale}getOriginalPageGap(){return this.options.pageGap}getPageNumberBottom(){const{pageNumber:{bottom:e},scale:n}=this.options;return e*n}getMarginIndicatorSize(){return this.options.marginIndicatorSize*this.options.scale}getDefaultBasicRowMarginHeight(){return this.options.defaultBasicRowMarginHeight*this.options.scale}getTdPadding(){const{table:{tdPadding:e},scale:n}=this.options;return e.map(r=>r*n)}getContainer(){return this.container}getPageContainer(){return this.pageContainer}getVisiblePageNoList(){return this.visiblePageNoList}setVisiblePageNoList(e){this.visiblePageNoList=e,this.listener.visiblePageNoListChange&&this.listener.visiblePageNoListChange(this.visiblePageNoList),this.eventBus.isSubscribe("visiblePageNoListChange")&&this.eventBus.emit("visiblePageNoListChange",this.visiblePageNoList)}getIntersectionPageNo(){return this.intersectionPageNo}setIntersectionPageNo(e){this.intersectionPageNo=e,this.listener.intersectionPageNoChange&&this.listener.intersectionPageNoChange(this.intersectionPageNo),this.eventBus.isSubscribe("intersectionPageNoChange")&&this.eventBus.emit("intersectionPageNoChange",this.intersectionPageNo)}getPageNo(){return this.pageNo}setPageNo(e){this.pageNo=e}getPage(e=-1){return this.pageList[~e?e:this.pageNo]}getPageList(){return this.pageList}getPageCount(){return this.pageList.length}getTableRowList(e){const n=this.position.getPositionContext(),{index:r,trIndex:i,tdIndex:o}=n;return e[r].trList[i].tdList[o].rowList}getOriginalRowList(){const e=this.getZone();return e.isHeaderActive()?this.header.getRowList():e.isFooterActive()?this.footer.getRowList():this.rowList}getRowList(){return this.position.getPositionContext().isTable?this.getTableRowList(this.getOriginalElementList()):this.getOriginalRowList()}getPageRowList(){return this.pageRowList}getCtx(){return this.ctxList[this.pageNo]}getOptions(){return this.options}getSearch(){return this.search}getGroup(){return this.group}getHistoryManager(){return this.historyManager}getPosition(){return this.position}getZone(){return this.zone}getRange(){return this.range}getLineBreakParticle(){return this.lineBreakParticle}getHeaderElementList(){return this.header.getElementList()}getTableElementList(e){var a;const n=this.position.getPositionContext(),{index:r,trIndex:i,tdIndex:o}=n;return((a=e[r].trList)==null?void 0:a[i].tdList[o].value)||[]}getElementList(){const e=this.position.getPositionContext(),n=this.getOriginalElementList();return e.isTable?this.getTableElementList(n):n}getMainElementList(){return this.position.getPositionContext().isTable?this.getTableElementList(this.elementList):this.elementList}getOriginalElementList(){const e=this.getZone();return e.isHeaderActive()?this.getHeaderElementList():e.isFooterActive()?this.getFooterElementList():this.elementList}getOriginalMainElementList(){return this.elementList}getFooterElementList(){return this.footer.getElementList()}insertElementList(e){if(!e.length||!this.range.getIsCanInput())return;const{startIndex:n,endIndex:r}=this.range.getRange();if(!~n&&!~r)return;cr(e,{isHandleFirstElement:!1,editorOptions:this.options});let i=-1,o=this.control.getActiveControl();if(!o&&this.control.getIsRangeWithinControl()&&(this.control.initControl(),o=this.control.getActiveControl()),o&&this.control.getIsRangeWithinControl())i=o.setValue(e,void 0,{isIgnoreDisabledRule:!0});else{const a=this.getElementList(),s=n===r,c=n+1;s||this.spliceElementList(a,c,r-n),this.spliceElementList(a,c,0,...e),i=n+e.length;const u=a[c-1];e[0].listId&&u&&!u.listId&&(u==null?void 0:u.value)===We&&(!u.type||u.type===fe.TEXT)&&(a.splice(n,1),i-=1)}~i&&(this.range.setRange(i,i),this.render({curIndex:i}))}appendElementList(e,n={}){if(!e.length)return;cr(e,{isHandleFirstElement:!1,editorOptions:this.options});let r;const{isPrepend:i}=n;i?(this.elementList.splice(1,0,...e),r=e.length):(this.elementList.push(...e),r=this.elementList.length-1),this.range.setRange(r,r),this.render({curIndex:r})}spliceElementList(e,n,r,...i){var o,a,s;if(r>0){const c=n+r,u=e[c],l=u==null?void 0:u.listId;if(l&&((o=e[n-1])==null?void 0:o.listId)!==l){let h=c;for(;h=n;)((s=(a=e[h])==null?void 0:a.control)==null?void 0:s.deletable)!==!1&&e.splice(h,1),h--}}for(let c=0;cs.toDataURL());return n&&this.setPagePixelRatio(null),o&&this.setMode(i),a}getPainterStyle(){return this.painterStyle&&Object.keys(this.painterStyle).length?this.painterStyle:null}getPainterOptions(){return this.painterOptions}setPainterStyle(e,n){this.painterStyle=e,this.painterOptions=n||null,this.getPainterStyle()&&this.pageList.forEach(r=>r.style.cursor="copy")}setDefaultRange(){!this.elementList.length||setTimeout(()=>{const e=this.elementList.length-1;this.range.setRange(e,e),this.range.setRangeStyle()})}getIsPagingMode(){return this.options.pageMode===Pi.PAGING}setPageMode(e){if(!e||this.options.pageMode===e)return;if(this.options.pageMode=e,e===Pi.PAGING){const{height:i}=this.options,o=this.getPagePixelRatio(),a=this.pageList[0];a.style.height=`${i}px`,a.height=i*o,this._initPageContext(this.ctxList[0])}else this._disconnectLazyRender(),this.header.recovery(),this.footer.recovery(),this.zone.setZone(it.MAIN);const{startIndex:n}=this.range.getRange(),r=this.range.getIsCollapsed();this.render({isSetCursor:!0,curIndex:n,isSubmitHistory:!1}),r||this.cursor.drawCursor({isShow:!1}),setTimeout(()=>{this.listener.pageModeChange&&this.listener.pageModeChange(e),this.eventBus.isSubscribe("pageModeChange")&&this.eventBus.emit("pageModeChange",e)})}setPageScale(e){const n=this.getPagePixelRatio();this.options.scale=e;const r=this.getWidth(),i=this.getHeight();this.container.style.width=`${r}px`,this.pageList.forEach((a,s)=>{a.width=r*n,a.height=i*n,a.style.width=`${r}px`,a.style.height=`${i}px`,a.style.marginBottom=`${this.getPageGap()}px`,this._initPageContext(this.ctxList[s])});const o=this.position.getCursorPosition();this.render({isSubmitHistory:!1,isSetCursor:!!o,curIndex:o==null?void 0:o.index}),this.listener.pageScaleChange&&this.listener.pageScaleChange(e),this.eventBus.isSubscribe("pageScaleChange")&&this.eventBus.emit("pageScaleChange",e)}getPagePixelRatio(){return this.pagePixelRatio||window.devicePixelRatio}setPagePixelRatio(e){!this.pagePixelRatio&&e===window.devicePixelRatio||e===this.pagePixelRatio||(this.pagePixelRatio=e,this.setPageDevicePixel())}setPageDevicePixel(){const e=this.getPagePixelRatio(),n=this.getWidth(),r=this.getHeight();this.pageList.forEach((i,o)=>{i.width=n*e,i.height=r*e,this._initPageContext(this.ctxList[o])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperSize(e,n){this.options.width=e,this.options.height=n;const r=this.getPagePixelRatio(),i=this.getWidth(),o=this.getHeight();this.container.style.width=`${i}px`,this.pageList.forEach((a,s)=>{a.width=i*r,a.height=o*r,a.style.width=`${i}px`,a.style.height=`${o}px`,this._initPageContext(this.ctxList[s])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperDirection(e){const n=this.getPagePixelRatio();this.options.paperDirection=e;const r=this.getWidth(),i=this.getHeight();this.container.style.width=`${r}px`,this.pageList.forEach((o,a)=>{o.width=r*n,o.height=i*n,o.style.width=`${r}px`,o.style.height=`${i}px`,this._initPageContext(this.ctxList[a])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperMargin(e){this.options.margins=e,this.render({isSubmitHistory:!1,isSetCursor:!1})}getValue(e={}){const{pageNo:n}=e;let r=this.elementList;Number.isInteger(n)&&n>=0&&no.elementList));const i={header:Wt(this.getHeaderElementList()),main:Wt(r),footer:Wt(this.getFooterElementList())};return{version:vx,data:i,options:Ft(this.options)}}setValue(e){const{header:n,main:r,footer:i}=Ft(e);if(!n&&!r&&!i)return;[n,r,i].forEach(a=>{!a||cr(a,{editorOptions:this.options})}),this.setEditorData({header:n,main:r,footer:i}),this.historyManager.recovery(),this.render({isSetCursor:!1,isFirstRender:!0})}setEditorData(e){const{header:n,main:r,footer:i}=e;n&&this.header.setElementList(n),r&&(this.elementList=r),i&&this.footer.setElementList(i)}_wrapContainer(e){const n=document.createElement("div");return e.append(n),n}_formatContainer(){this.container.style.position="relative",this.container.style.width=`${this.getWidth()}px`,this.container.setAttribute(Jr,$r.MAIN)}_createPageContainer(){const e=document.createElement("div");return e.classList.add(`${ke}-page-container`),this.container.append(e),e}_createPage(e){const n=this.getWidth(),r=this.getHeight(),i=document.createElement("canvas");i.style.width=`${n}px`,i.style.height=`${r}px`,i.style.display="block",i.style.backgroundColor="#ffffff",i.style.marginBottom=`${this.getPageGap()}px`,i.setAttribute("data-index",String(e)),this.pageContainer.append(i);const o=this.getPagePixelRatio();i.width=n*o,i.height=r*o,i.style.cursor="text";const a=i.getContext("2d");this._initPageContext(a),this.pageList.push(i),this.ctxList.push(a)}_initPageContext(e){const n=this.getPagePixelRatio();e.scale(n,n),e.letterSpacing="0px",e.wordSpacing="0px",e.direction="ltr"}getElementFont(e,n=1){const{defaultSize:r,defaultFont:i}=this.options,o=e.font||i,a=e.actualSize||e.size||r;return`${e.italic?"italic ":""}${e.bold?"bold ":""}${a*n}px ${o}`}getElementSize(e){return e.actualSize||e.size||this.options.defaultSize}getElementRowMargin(e){const{defaultBasicRowMarginHeight:n,defaultRowMargin:r,scale:i}=this.options;return n*(e.rowMargin||r)*i}computeRowList(e){var m,v,x,O,E,N,M,_,B,q;const{innerWidth:n,elementList:r,isPagingMode:i=!1}=e,{defaultSize:o,defaultRowMargin:a,scale:s,table:{tdPadding:c},defaultTabWidth:u}=this.options,l=this.getDefaultBasicRowMarginHeight(),d=document.createElement("canvas").getContext("2d"),f=this.listParticle.computeListStyle(d,r),p=[];r.length&&p.push({width:0,height:0,ascent:0,elementList:[],startIndex:0,rowFlex:((m=r==null?void 0:r[0])==null?void 0:m.rowFlex)||((v=r==null?void 0:r[1])==null?void 0:v.rowFlex)});let g,y=0,R=0;for(let T=0;TV){const Q=A*V/W;b.width=V/s,b.height=Q/s,U.width=V,U.height=Q,U.boundingBoxDescent=Q}else U.width=W,U.height=A,U.boundingBoxDescent=A}U.boundingBoxAscent=0}else if(b.type===fe.TABLE){const W=c[1]+c[3],A=c[0]+c[2];if(b.pagingId){let ie=T+1,L=0;for(;ie!F.pagingRepeat);b.trList.push(...S),b.height+=w.height,ie++,L++}else break}L&&r.splice(T+1,L)}b.pagingIndex=(x=b.pagingIndex)!=null?x:0,this.tableParticle.computeRowColInfo(b);const Q=b.trList;for(let ie=0;ieae+he.height,0);S.rowList=F;const ee=G/s+A;if(S.height{xe.height+=ae})}let K=0,J=0,te=0;for(;te0){const S=Q[ie];S.height-=w,S.tdList.forEach(F=>{F.height-=w})}}this.tableParticle.computeRowColInfo(b);const H=this.tableParticle.getTableHeight(b),j=this.tableParticle.getTableWidth(b);b.width=j,b.height=H;const ge=j*s,D=H*s;if(U.width=ge,U.height=D,U.boundingBoxDescent=D,U.boundingBoxAscent=-P,i){const ie=this.getHeight(),L=this.getMainOuterHeight();let w=L;for(let F=0;Fie||((O=p[F-1])==null?void 0:O.isPageBreak)?w=L+G.height:w+=G.height}const S=P*2*s;if((w+b.trList[0].height+S>ie||b.pagingIndex!==0&&b.trList[0].pagingRepeat)&&(w=L),w+S+D>ie){const F=b.trList;let G=0,ee=0,K=0;if(F.length>1)for(let J=0;Jie){const he=te.tdList.reduce((xe,_e)=>xe+_e.colspan,0);((E=b.colgroup)==null?void 0:E.length)!==he&&(ee=0);break}else G=J+1,ee=F.length-G,K+=ae}if(ee){const J=F.splice(G,ee),te=J.reduce((_e,Me)=>_e+Me.height,0),ae=b.pagingId||vt();b.pagingId=ae,b.height-=te,U.height-=te,U.boundingBoxDescent-=te;const he=Ft(b);he.pagingId=ae,he.pagingIndex=b.pagingIndex+1;const xe=F.filter(_e=>_e.pagingRepeat);if(xe.length){const _e=Ft(xe);_e.forEach(Me=>Me.id=vt()),J.unshift(..._e)}he.trList=J,he.id=vt(),this.spliceElementList(r,T+1,0,he)}}if(b.pagingId){const F=this.position.getPositionContext();if(F.isTable){let G=-1,ee=-1,K=T;for(;Kae.id===F.trId);if(~te){G=K,ee=te;break}K++}~G&&(F.index=G,F.trIndex=ee,this.position.setPositionContext(F))}}}}else if(b.type===fe.SEPARATOR){const{separator:{lineWidth:W}}=this.options;b.width=V/s,U.width=V,U.height=W*s,U.boundingBoxAscent=-P,U.boundingBoxDescent=-P+U.height}else if(b.type===fe.PAGE_BREAK)b.width=V/s,U.width=V,U.height=o;else if(b.type===fe.RADIO||b.controlComponent===Se.RADIO){const{width:W,height:A,gap:Q}=this.options.radio,z=W+Q*2;b.width=z,U.width=z*s,U.height=A*s}else if(b.type===fe.CHECKBOX||b.controlComponent===Se.CHECKBOX){const{width:W,height:A,gap:Q}=this.options.checkbox,z=W+Q*2;b.width=z,U.width=z*s,U.height=A*s}else if(b.type===fe.TAB)U.width=u*s,U.height=o*s,U.boundingBoxDescent=0,U.boundingBoxAscent=U.height;else if(b.type===fe.BLOCK){if(!b.width)U.width=V;else{const W=b.width*s;U.width=Math.min(W,V)}U.height=b.height*s,U.boundingBoxDescent=U.height,U.boundingBoxAscent=0}else{const W=b.size||o;(b.type===fe.SUPERSCRIPT||b.type===fe.SUBSCRIPT)&&(b.actualSize=Math.ceil(W*.6)),U.height=(b.actualSize||W)*s,d.font=this.getElementFont(b);const A=this.textParticle.measureText(d,b);U.width=A.width*s,b.letterSpacing&&(U.width+=b.letterSpacing*s),U.boundingBoxAscent=(b.value===We?b.size||o:A.actualBoundingBoxAscent)*s,U.boundingBoxDescent=A.actualBoundingBoxDescent*s,b.type===fe.SUPERSCRIPT?U.boundingBoxAscent+=U.height/2:b.type===fe.SUBSCRIPT&&(U.boundingBoxDescent+=U.height/2)}const k=b.imgDisplay!==ht.INLINE&&b.type===fe.IMAGE||b.type===fe.LATEX?U.height+P:U.boundingBoxAscent+P,re=P+U.boundingBoxAscent+U.boundingBoxDescent+P,Z=Object.assign(b,{metrics:U,style:this.getElementFont(b,s)});if((N=Z.control)!=null&&N.minWidth&&(Z.controlComponent&&(R+=U.width),Z.controlComponent===Se.POSTFIX)){const W=Z.control.minWidth-R;if(W>0){const A=V-I.width-U.width,Q=Math.min(A,W)*s;Z.left=Q,I.width+=Q}else Z.left=0;R=0}const C=r[T-1];let ne=r[T+1],oe=I.width+U.width;if(this.options.wordBreak===ef.BREAK_WORD&&(!(C!=null&&C.type)||(C==null?void 0:C.type)===fe.TEXT)&&(!b.type||b.type===fe.TEXT)){const W=`${(C==null?void 0:C.value)||""}${b.value}`;if(this.WORD_LIKE_REG.test(W)){const{width:A,endElement:Q}=this.textParticle.measureWord(d,r,T);A<=V&&(oe+=A,ne=Q)}oe+=this.textParticle.measurePunctuationWidth(d,ne)}b.listId&&(b.listId!==g?y=0:b.value===We&&!b.listWrap&&y++),g=b.listId;const ue=b.type===fe.SEPARATOR||b.type===fe.TABLE||(C==null?void 0:C.type)===fe.TABLE||(C==null?void 0:C.type)===fe.BLOCK||b.type===fe.BLOCK||(C==null?void 0:C.imgDisplay)===ht.INLINE||b.imgDisplay===ht.INLINE||(C==null?void 0:C.listId)!==b.listId||T!==0&&b.value===We,ce=oe>V;if(ue||ce){const W={width:U.width,height:re,startIndex:T,elementList:[Z],ascent:k,rowFlex:((M=r[T])==null?void 0:M.rowFlex)||((_=r[T+1])==null?void 0:_.rowFlex),isPageBreak:b.type===fe.PAGE_BREAK};if(Z.controlComponent!==Se.PREFIX&&((B=Z.control)==null?void 0:B.indentation)===jm.VALUE_START){const A=I.elementList.findIndex(Q=>Q.controlId===Z.controlId&&Q.controlComponent!==Se.PREFIX);if(~A){const z=this.position.computeRowPosition({row:I,innerWidth:this.getInnerWidth()})[A];z&&(W.offsetX=z.coordinate.leftTop[0])}}b.listId&&(W.isList=!0,W.offsetX=f.get(b.listId),W.listIndex=y),p.push(W)}else I.width+=U.width,T===0&&uu(r[1])?(I.height=l,I.ascent=l):I.heightd+f.height,0);const u=this.getPagePixelRatio(),l=this.pageList[0],h=Number(l.style.height.replace("px",""));if(a>h)l.style.height=`${a}px`,l.height=a*u;else{const d=ai||((c=this.rowList[u-1])==null?void 0:c.isPageBreak)){if(Number.isInteger(r)&&s>=r){this.elementList=this.elementList.slice(0,l.startIndex);break}a=o+l.height,e.push([l]),s++}else a+=l.height,e[s].push(l)}return e}_drawHighlight(e,n){const{rowList:r,positionList:i}=n;for(let o=0;o{r.forEach(i=>{if(i.isIntersecting){const o=Number(i.target.dataset.index);this._drawPage({elementList:n,positionList:e,rowList:this.pageRowList[o],pageNo:o})}})}),this.pageList.forEach(r=>{this.lazyRenderIntersectionObserver.observe(r)})}_immediateRender(){const e=this.position.getOriginalMainPositionList(),n=this.getOriginalMainElementList();for(let r=0;rp){const y=g-p;this.ctxList.splice(p,y),this.pageList.splice(p,y).forEach(R=>R.remove())}s&&f?this._lazyRender():this._immediateRender(),o&&(h=this.setCursor(h)),(i&&!l||h!==void 0&&this.historyManager.isStackEmpty())&&this.submitHistory(h),cu(()=>{a&&this.control.getActiveControl()&&this.control.reAwakeControl(),a&&!this.isReadonly()&&this.position.getPositionContext().isTable&&this.tableTool.render(),a&&!this.zone.isMainActive()&&this.zone.drawZoneIndicator(),this.listener.pageSizeChange&&this.listener.pageSizeChange(this.pageRowList.length),this.eventBus.isSubscribe("pageSizeChange")&&this.eventBus.emit("pageSizeChange",this.pageRowList.length),(i||u)&&!c&&(this.listener.contentChange&&this.listener.contentChange(),this.eventBus.isSubscribe("contentChange")&&this.eventBus.emit("contentChange"))})}setCursor(e){var o;const n=this.position.getPositionContext(),r=this.position.getPositionList();if(n.isTable){const{index:a,trIndex:s,tdIndex:c}=n,l=(o=this.getOriginalElementList()[a].trList)==null?void 0:o[s].tdList[c].positionList;e===void 0&&l&&(e=l.length-1);const h=l==null?void 0:l[e];this.position.setCursorPosition(h||null)}else this.position.setCursorPosition(e!==void 0?r[e]:null);let i=!0;if(e!==void 0&&n.isImage&&n.isDirectHit){const s=this.getElementList()[e];if(Yx.includes(s.type)){i=!1;const c=this.position.getCursorPosition();this.previewer.updateResizer(s,c)}}return this.cursor.drawCursor({isShow:i}),e}submitHistory(e){const n=this.position.getPositionContext(),r=Ll(this.elementList),i=Ll(this.header.getElementList()),o=Ll(this.footer.getElementList()),a=Ft(this.range.getRange()),s=this.pageNo,c=Ft(n),u=this.zone.getZone();this.historyManager.execute(()=>{this.zone.setZone(u),this.setPageNo(s),this.position.setPositionContext(Ft(c)),this.header.setElementList(Ft(i)),this.footer.setElementList(Ft(o)),this.elementList=Ft(r),this.range.replaceRange(Ft(a)),this.render({curIndex:e,isSubmitHistory:!1,isSourceHistory:!0})})}destroy(){this.container.remove(),this.globalEvent.removeEvent(),this.scrollObserver.removeEvent(),this.selectionObserver.removeEvent()}clearSideEffect(){this.getPreviewer().clearResizer(),this.getTableTool().dispose(),this.getHyperlinkParticle().clearHyperlinkPopup(),this.getDateParticle().clearDatePicker()}}class HT{constructor(e){this.executeMode=e.mode.bind(e),this.executeCut=e.cut.bind(e),this.executeCopy=e.copy.bind(e),this.executePaste=e.paste.bind(e),this.executeSelectAll=e.selectAll.bind(e),this.executeBackspace=e.backspace.bind(e),this.executeSetRange=e.setRange.bind(e),this.executeReplaceRange=e.replaceRange.bind(e),this.executeSetPositionContext=e.setPositionContext.bind(e),this.executeForceUpdate=e.forceUpdate.bind(e),this.executeBlur=e.blur.bind(e),this.executeUndo=e.undo.bind(e),this.executeRedo=e.redo.bind(e),this.executePainter=e.painter.bind(e),this.executeApplyPainterStyle=e.applyPainterStyle.bind(e),this.executeFormat=e.format.bind(e),this.executeFont=e.font.bind(e),this.executeSize=e.size.bind(e),this.executeSizeAdd=e.sizeAdd.bind(e),this.executeSizeMinus=e.sizeMinus.bind(e),this.executeBold=e.bold.bind(e),this.executeItalic=e.italic.bind(e),this.executeUnderline=e.underline.bind(e),this.executeStrikeout=e.strikeout.bind(e),this.executeSuperscript=e.superscript.bind(e),this.executeSubscript=e.subscript.bind(e),this.executeColor=e.color.bind(e),this.executeHighlight=e.highlight.bind(e),this.executeTitle=e.title.bind(e),this.executeList=e.list.bind(e),this.executeRowFlex=e.rowFlex.bind(e),this.executeRowMargin=e.rowMargin.bind(e),this.executeInsertTable=e.insertTable.bind(e),this.executeInsertTableTopRow=e.insertTableTopRow.bind(e),this.executeInsertTableBottomRow=e.insertTableBottomRow.bind(e),this.executeInsertTableLeftCol=e.insertTableLeftCol.bind(e),this.executeInsertTableRightCol=e.insertTableRightCol.bind(e),this.executeDeleteTableRow=e.deleteTableRow.bind(e),this.executeDeleteTableCol=e.deleteTableCol.bind(e),this.executeDeleteTable=e.deleteTable.bind(e),this.executeMergeTableCell=e.mergeTableCell.bind(e),this.executeCancelMergeTableCell=e.cancelMergeTableCell.bind(e),this.executeTableTdVerticalAlign=e.tableTdVerticalAlign.bind(e),this.executeTableBorderType=e.tableBorderType.bind(e),this.executeTableTdBorderType=e.tableTdBorderType.bind(e),this.executeTableTdSlashType=e.tableTdSlashType.bind(e),this.executeTableTdBackgroundColor=e.tableTdBackgroundColor.bind(e),this.executeTableSelectAll=e.tableSelectAll.bind(e),this.executeImage=e.image.bind(e),this.executeHyperlink=e.hyperlink.bind(e),this.executeDeleteHyperlink=e.deleteHyperlink.bind(e),this.executeCancelHyperlink=e.cancelHyperlink.bind(e),this.executeEditHyperlink=e.editHyperlink.bind(e),this.executeSeparator=e.separator.bind(e),this.executePageBreak=e.pageBreak.bind(e),this.executeAddWatermark=e.addWatermark.bind(e),this.executeDeleteWatermark=e.deleteWatermark.bind(e),this.executeSearch=e.search.bind(e),this.executeSearchNavigatePre=e.searchNavigatePre.bind(e),this.executeSearchNavigateNext=e.searchNavigateNext.bind(e),this.executeReplace=e.replace.bind(e),this.executePrint=e.print.bind(e),this.executeReplaceImageElement=e.replaceImageElement.bind(e),this.executeSaveAsImageElement=e.saveAsImageElement.bind(e),this.executeChangeImageDisplay=e.changeImageDisplay.bind(e),this.executePageMode=e.pageMode.bind(e),this.executePageScaleRecovery=e.pageScaleRecovery.bind(e),this.executePageScaleMinus=e.pageScaleMinus.bind(e),this.executePageScaleAdd=e.pageScaleAdd.bind(e),this.executePaperSize=e.paperSize.bind(e),this.executePaperDirection=e.paperDirection.bind(e),this.executeSetPaperMargin=e.setPaperMargin.bind(e),this.executeInsertElementList=e.insertElementList.bind(e),this.executeAppendElementList=e.appendElementList.bind(e),this.executeSetValue=e.setValue.bind(e),this.executeRemoveControl=e.removeControl.bind(e),this.executeSetLocale=e.setLocale.bind(e),this.executeLocationCatalog=e.locationCatalog.bind(e),this.executeWordTool=e.wordTool.bind(e),this.executeSetHTML=e.setHTML.bind(e),this.executeSetGroup=e.setGroup.bind(e),this.executeDeleteGroup=e.deleteGroup.bind(e),this.executeLocationGroup=e.locationGroup.bind(e),this.executeSetZone=e.setZone.bind(e),this.executeUpdateOptions=e.updateOptions.bind(e),this.executeInsertTitle=e.insertTitle.bind(e),this.getImage=e.getImage.bind(e),this.getOptions=e.getOptions.bind(e),this.getValue=e.getValue.bind(e),this.getHTML=e.getHTML.bind(e),this.getText=e.getText.bind(e),this.getWordCount=e.getWordCount.bind(e),this.getRange=e.getRange.bind(e),this.getRangeText=e.getRangeText.bind(e),this.getRangeContext=e.getRangeContext.bind(e),this.getRangeRow=e.getRangeRow.bind(e),this.getRangeParagraph=e.getRangeParagraph.bind(e),this.getKeywordRangeList=e.getKeywordRangeList.bind(e),this.getCatalog=e.getCatalog.bind(e),this.getPaperMargin=e.getPaperMargin.bind(e),this.getSearchNavigateInfo=e.getSearchNavigateInfo.bind(e),this.getLocale=e.getLocale.bind(e),this.getGroupIds=e.getGroupIds.bind(e),this.getContainer=e.getContainer.bind(e),this.getTitleValue=e.getTitleValue.bind(e),this.executeSetControlValue=e.setControlValue.bind(e),this.executeSetControlExtension=e.setControlExtension.bind(e),this.executeSetControlProperties=e.setControlProperties.bind(e),this.executeSetControlHighlight=e.setControlHighlight.bind(e),this.getControlValue=e.getControlValue.bind(e),this.getControlList=e.getControlList.bind(e),this.executeLocationControl=e.locationControl.bind(e)}}const hd={data:"",color:"#AEB5C0",opacity:.3,size:200,font:"Microsoft YaHei"};var Mi=(t=>(t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom",t))(Mi||{});const GT={color:"#FFFFFF",image:"",size:tf.COVER,repeat:ro.NO_REPEAT},JT={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#ffffff"},zT={placeholderColor:"#9c9b9b",bracketColor:"#000000",prefix:"{",postfix:"}",borderWidth:1,borderColor:"#000000"},$T={bottom:30,maxHeightRadio:ea.HALF,disabled:!1},jT={opacity:.1,backgroundColor:"#E99D00",activeOpacity:.5,activeBackgroundColor:"#E99D00",disabled:!1},qT={top:30,maxHeightRadio:ea.HALF,disabled:!1},eS={disabled:!0,color:"#CCCCCC",lineWidth:1.5},tS={font:"Microsoft YaHei",fontSize:12,lineDash:[3,1]},nS={data:"",color:"#DCDFE6",opacity:1,size:16,font:"Microsoft YaHei"},rS={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#000000"},iS={lineWidth:1,strokeStyle:"#000000"},oS={tdPadding:[0,5,5,5],defaultTrMinHeight:42,defaultColMinWidth:40},aS={tipDisabled:!0};function mR(t={}){const e={...oS,...t.table},n={...qT,...t.header},r={...$T,...t.footer},i={...eT,...t.pageNumber},o={...hd,...t.watermark},a={...zT,...t.control},s={...JT,...t.checkbox},c={...rS,...t.radio},u={...Ax,...t.cursor},l={...nw,...t.title},h={...nS,...t.placeholder},d={...jT,...t.group},f={...tS,...t.pageBreak},p={...aS,...t.zone},g={...GT,...t.background},y={...eS,...t.lineBreak},R={...iS,...t.separator};return{mode:Zt.EDIT,defaultType:"TEXT",defaultColor:"#000000",defaultFont:"Microsoft YaHei",defaultSize:16,minSize:5,maxSize:72,defaultRowMargin:1,defaultBasicRowMarginHeight:8,defaultTabWidth:32,width:794,height:1123,scale:1,pageGap:20,underlineColor:"#000000",strikeoutColor:"#FF0000",rangeAlpha:.6,rangeColor:"#AECBFA",rangeMinWidth:5,searchMatchAlpha:.6,searchMatchColor:"#FFFF00",searchNavigateMatchColor:"#AAD280",highlightAlpha:.6,resizerColor:"#4182D9",resizerSize:5,marginIndicatorSize:35,marginIndicatorColor:"#BABABA",margins:[100,120,100,120],pageMode:Pi.PAGING,defaultHyperlinkColor:"#0000FF",paperDirection:uo.VERTICAL,inactiveAlpha:.6,historyMaxRecordCount:100,wordBreak:ef.BREAK_WORD,printPixelRatio:3,maskMargin:[0,0,0,0],letterClass:[wx.ENGLISH],contextMenuDisableKeys:[],scrollContainerSelector:"",...t,table:e,header:n,footer:r,pageNumber:i,watermark:o,control:a,checkbox:s,radio:c,cursor:u,title:l,placeholder:h,group:d,pageBreak:f,zone:p,background:g,lineBreak:y,separator:R}}function sS(t,e){const{width:n,height:r,direction:i=uo.VERTICAL}=e,o=document.createElement("iframe");o.style.visibility="hidden",o.style.position="absolute",o.style.left="0",o.style.top="0",o.style.width="0",o.style.height="0",o.style.border="none",document.body.append(o);const a=o.contentWindow,s=a.document;s.open();const c=document.createElement("div");t.forEach(h=>{const d=document.createElement("img");d.style.width=`${n}px`,d.style.height=`${r}px`,d.src=h,c.append(d)});const u=document.createElement("style"),l=` * { margin: 0; padding: 0; } @page { margin: 0; size: ${i===uo.HORIZONTAL?"landscape":"portrait"}; }`;u.append(document.createTextNode(l)),setTimeout(()=>{s.write(`${u.outerHTML}${c.innerHTML}`),a.print(),s.close(),window.addEventListener("mouseover",()=>{o==null||o.remove()},{once:!0})})}class cS{constructor(e){this.draw=e,this.range=e.getRange(),this.position=e.getPosition(),this.historyManager=e.getHistoryManager(),this.canvasEvent=e.getCanvasEvent(),this.tableTool=e.getTableTool(),this.options=e.getOptions(),this.control=e.getControl(),this.workerManager=e.getWorkerManager(),this.searchManager=e.getSearch(),this.i18n=e.getI18n()}mode(e){this.draw.setMode(e)}cut(){this.draw.isReadonly()||this.canvasEvent.cut()}copy(){this.canvasEvent.copy()}paste(e){this.draw.isReadonly()||gw(this.canvasEvent,e)}selectAll(){this.canvasEvent.selectAll()}backspace(){if(this.draw.isReadonly())return;const n=this.draw.getElementList(),{startIndex:r,endIndex:i}=this.range.getRange(),o=r===i;if(o&&n[r].value===We&&r===0)return;o?this.draw.spliceElementList(n,r,1):this.draw.spliceElementList(n,r+1,i-r);const a=o?r-1:r;this.range.setRange(a,a),this.draw.render({curIndex:a})}setRange(e,n,r,i,o,a,s){if(e<0||n<0||nl.id===n);if(!~a)return;const c=o[a].trList[r],u=c.tdList[i];this.position.setPositionContext({isTable:!0,index:a,trIndex:r,tdIndex:i,tdId:u.id,trId:c.id,tableId:n})}else this.position.setPositionContext({isTable:!1})}forceUpdate(e){const{isSubmitHistory:n=!1}=e||{};this.range.clearRange(),this.draw.render({isSubmitHistory:n,isSetCursor:!1})}blur(){this.range.clearRange(),this.draw.getCursor().recoveryCursor()}undo(){this.draw.isReadonly()||this.historyManager.undo()}redo(){this.draw.isReadonly()||this.historyManager.redo()}painter(e){if(!e.isDblclick&&this.draw.getPainterStyle()){this.canvasEvent.clearPainterStyle();return}const n=this.range.getSelection();if(!n)return;const r={};n.forEach(i=>{po.forEach(a=>{const s=a;r[s]===void 0&&(r[s]=i[s])})}),this.draw.setPainterStyle(r,e)}applyPainterStyle(){this.draw.isReadonly()||this.control.getIsDisabledControl()||this.canvasEvent.applyPainterStyle()}format(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();let r={},i=[];if(n!=null&&n.length)i=n,r={isSetCursor:!1};else{const{endIndex:o}=this.range.getRange(),s=this.draw.getElementList()[o];(s==null?void 0:s.value)===We&&(i.push(s),r={curIndex:o})}!i.length||(i.forEach(o=>{delete o.size,delete o.font,delete o.color,delete o.bold,delete o.italic,delete o.underline,delete o.strikeout}),this.draw.render(r))}font(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const r=this.range.getSelectionElementList();if(r!=null&&r.length)r.forEach(i=>{i.font=e}),this.draw.render({isSetCursor:!1});else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===We&&(a.font=e,this.draw.render({curIndex:i,isCompute:!1}))}}size(e){const{minSize:n,maxSize:r,defaultSize:i}=this.options;if(er||this.draw.isReadonly()||this.control.getIsDisabledControl())return;let a={},s=[];const c=this.range.getTextLikeSelectionElementList();if(c!=null&&c.length)s=c,a={isSetCursor:!1};else{const{endIndex:l}=this.range.getRange(),d=this.draw.getElementList()[l];(d==null?void 0:d.value)===We&&(s.push(d),a={curIndex:l})}if(!s.length)return;let u=!1;s.forEach(l=>{!l.size&&e===i||l.size&&l.size===e||(l.size=e,u=!0)}),u&&this.draw.render(a)}sizeAdd(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getTextLikeSelectionElementList();let r={},i=[];if(n!=null&&n.length)i=n,r={isSetCursor:!1};else{const{endIndex:c}=this.range.getRange(),l=this.draw.getElementList()[c];(l==null?void 0:l.value)===We&&(i.push(l),r={curIndex:c})}if(!i.length)return;const{defaultSize:o,maxSize:a}=this.options;let s=!1;i.forEach(c=>{c.size||(c.size=o),!(c.size>=a)&&(c.size+2>a?c.size=a:c.size+=2,s=!0)}),s&&this.draw.render(r)}sizeMinus(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getTextLikeSelectionElementList();let r={},i=[];if(n!=null&&n.length)i=n,r={isSetCursor:!1};else{const{endIndex:c}=this.range.getRange(),l=this.draw.getElementList()[c];(l==null?void 0:l.value)===We&&(i.push(l),r={curIndex:c})}if(!i.length)return;const{defaultSize:o,minSize:a}=this.options;let s=!1;i.forEach(c=>{c.size||(c.size=o),!(c.size<=a)&&(c.size-2!i.bold);n.forEach(i=>{i.bold=!!~r}),this.draw.render({isSetCursor:!1})}else{const{endIndex:r}=this.range.getRange(),o=this.draw.getElementList()[r];(o==null?void 0:o.value)===We&&(o.bold=!o.bold,this.draw.render({curIndex:r,isCompute:!1}))}}italic(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(n!=null&&n.length){const r=n.findIndex(i=>!i.italic);n.forEach(i=>{i.italic=!!~r}),this.draw.render({isSetCursor:!1})}else{const{endIndex:r}=this.range.getRange(),o=this.draw.getElementList()[r];(o==null?void 0:o.value)===We&&(o.italic=!o.italic,this.draw.render({curIndex:r,isCompute:!1}))}}underline(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const r=this.range.getSelectionElementList();if(r!=null&&r.length){const i=r.some(o=>!o.underline||!e&&o.textDecoration||e&&!o.textDecoration||e&&o.textDecoration&&!Lx(o.textDecoration,e));r.forEach(o=>{o.underline=i,i&&e?o.textDecoration=e:delete o.textDecoration}),this.draw.render({isSetCursor:!1,isCompute:!1})}else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===We&&(a.underline=!a.underline,this.draw.render({curIndex:i,isCompute:!1}))}}strikeout(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(n!=null&&n.length){const r=n.findIndex(i=>!i.strikeout);n.forEach(i=>{i.strikeout=!!~r}),this.draw.render({isSetCursor:!1,isCompute:!1})}else{const{endIndex:r}=this.range.getRange(),o=this.draw.getElementList()[r];(o==null?void 0:o.value)===We&&(o.strikeout=!o.strikeout,this.draw.render({curIndex:r,isCompute:!1}))}}superscript(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(!n)return;const r=n.findIndex(i=>i.type===fe.SUPERSCRIPT);n.forEach(i=>{~r?i.type===fe.SUPERSCRIPT&&(i.type=fe.TEXT,delete i.actualSize):(!i.type||i.type===fe.TEXT||i.type===fe.SUBSCRIPT)&&(i.type=fe.SUPERSCRIPT)}),this.draw.render({isSetCursor:!1})}subscript(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(!n)return;const r=n.findIndex(i=>i.type===fe.SUBSCRIPT);n.forEach(i=>{~r?i.type===fe.SUBSCRIPT&&(i.type=fe.TEXT,delete i.actualSize):(!i.type||i.type===fe.TEXT||i.type===fe.SUPERSCRIPT)&&(i.type=fe.SUBSCRIPT)}),this.draw.render({isSetCursor:!1})}color(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const r=this.range.getSelectionElementList();if(r!=null&&r.length)r.forEach(i=>{e?i.color=e:delete i.color}),this.draw.render({isSetCursor:!1,isCompute:!1});else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===We&&(e?a.color=e:delete a.color,this.draw.render({curIndex:i,isCompute:!1}))}}highlight(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const r=this.range.getSelectionElementList();if(r!=null&&r.length)r.forEach(i=>{e?i.highlight=e:delete i.highlight}),this.draw.render({isSetCursor:!1,isCompute:!1});else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===We&&(e?a.highlight=e:delete a.highlight,this.draw.render({curIndex:i,isCompute:!1}))}}title(e){if(this.draw.isReadonly())return;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return;const o=this.draw.getElementList(),a=r===i?this.range.getRangeParagraphElementList():o.slice(r+1,i+1);if(!a||!a.length)return;const s=vt(),c=this.draw.getOptions().title;a.forEach(h=>{!h.type&&h.value===We||(e?(h.level=e,h.titleId=s,eR(h)&&(h.size=c[$m[e]],h.bold=!0)):h.titleId&&(delete h.titleId,delete h.title,delete h.level,delete h.size,delete h.bold))});const u=r===i,l=u?i:r;this.draw.render({curIndex:l,isSetCursor:u})}list(e,n){this.draw.isReadonly()||this.draw.getListParticle().setList(e,n)}rowFlex(e){if(this.draw.isReadonly())return;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return;const o=this.range.getRangeRowElementList();if(!o)return;o.forEach(c=>{c.rowFlex=e});const a=r===i,s=a?i:r;this.draw.render({curIndex:s,isSetCursor:a})}rowMargin(e){if(this.draw.isReadonly())return;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return;const o=this.range.getRangeRowElementList();if(!o)return;o.forEach(c=>{c.rowMargin=e});const a=r===i,s=a?i:r;this.draw.render({curIndex:s,isSetCursor:a})}insertTable(e,n){var y;if(this.draw.isReadonly()||this.control.getActiveControl())return;const{startIndex:o,endIndex:a}=this.range.getRange();if(!~o&&!~a)return;const{defaultTrMinHeight:s}=this.options.table,c=this.draw.getElementList();let u=0;if((y=c[o])!=null&&y.listId){const R=this.position.getPositionList(),{rowIndex:m}=R[o],x=this.draw.getRowList()[m];u=(x==null?void 0:x.offsetX)||0}const l=this.draw.getOriginalInnerWidth()-u,h=[],d=l/n;for(let R=0;R1&&y.rowIndex+y.rowspan>=d+1&&(y.rowspan+=1)}}}const l=vt(),h={height:u.height,id:l,tdList:[]};for(let d=0;d1&&R.rowIndex+R.rowspan>=f+1&&(R.rowspan+=1)}}}const h=vt(),d={height:l.height,id:h,tdList:[]};for(let f=0;ff+p.width,0),d=this.draw.getOriginalInnerWidth();if(h>d){const f=(h-d)/l.length;for(let p=0;pf+p.width,0),d=this.draw.getOriginalInnerWidth();if(h>d){const f=(h-d)/l.length;for(let p=0;pl&&g.rowspan--}}for(let h=0;h1){const f=vt(),p=c[i+1];p.tdList.splice(h,0,{id:f,rowspan:d.rowspan-1,colspan:d.colspan,value:[{value:We,size:16,tableId:s.id,trId:p.id,tdId:f}]})}}c.splice(i,1),this.position.setPositionContext({isTable:!1}),this.range.clearRange(),this.draw.render({curIndex:n.index}),this.tableTool.dispose()}deleteTableCol(){var d;if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{index:r,tdIndex:i,trIndex:o}=n,s=this.draw.getOriginalElementList()[r],c=s.trList,l=c[o].tdList[i].colIndex;if(!c.find(f=>f.tdList.length>1)){this.deleteTable();return}for(let f=0;f1){const R=y.colIndex;R<=l&&R+y.colspan-1>=l&&(y.colspan-=1)}}}for(let f=0;ff.x||d.y>f.y)&&([d,f]=[f,d]);const p=d.colIndex,g=f.colIndex+(f.colspan-1),y=d.rowIndex,R=f.rowIndex+(f.rowspan-1),m=[];for(let I=0;I=p&&V<=g&&k>=y&&k<=R&&P.push(X)}P.length&&m.push(P)}if(!m.length)return;const v=m[m.length-1],x=m[0][0],O=v[v.length-1],E=x.x,N=x.y,M=O.x+O.width,_=O.y+O.height;for(let I=0;IX||N>V||M1){for(let f=1;f1){for(let f=1;f{var c;return!((c=s.borderTypes)!=null&&c.includes(e))});i.forEach(s=>{s.borderTypes||(s.borderTypes=[]);const c=s.borderTypes.findIndex(u=>u===e);o?~c||s.borderTypes.push(e):~c&&s.borderTypes.splice(c,1),s.borderTypes.length||delete s.borderTypes});const{endIndex:a}=this.range.getRange();this.draw.render({curIndex:a})}tableTdSlashType(e){if(this.draw.isReadonly())return;const r=this.draw.getTableParticle().getRangeRowCol();if(!r)return;const i=r.flat(),o=i.some(s=>{var c;return!((c=s.slashTypes)!=null&&c.includes(e))});i.forEach(s=>{s.slashTypes||(s.slashTypes=[]);const c=s.slashTypes.findIndex(u=>u===e);o?~c||s.slashTypes.push(e):~c&&s.slashTypes.splice(c,1),s.slashTypes.length||delete s.slashTypes});const{endIndex:a}=this.range.getRange();this.draw.render({curIndex:a})}tableTdBackgroundColor(e){if(this.draw.isReadonly())return;const r=this.draw.getTableParticle().getRangeRowCol();if(!r)return;for(let o=0;o({url:c,hyperlinkId:u,value:f.value,type:fe.HYPERLINK}));if(!l)return;const h=i+1;wn(a,l,i),this.draw.spliceElementList(a,h,i===o?0:o-i,...l);const d=h+l.length-1;this.range.setRange(d,d),this.draw.render({curIndex:d})}getHyperlinkRange(){let e=-1,n=-1;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return null;const o=this.draw.getElementList(),a=o[r];if(a.type!==fe.HYPERLINK)return null;let s=r;for(;s>0;){if(o[s].hyperlinkId!==a.hyperlinkId){e=s+1;break}s--}let c=r+1;for(;c=5&&this.draw.setPageScale(n/10)}pageScaleAdd(){const{scale:e}=this.options,n=e*10+1;n<=30&&this.draw.setPageScale(n/10)}paperSize(e,n){this.draw.setPaperSize(e,n)}paperDirection(e){this.draw.setPaperDirection(e)}getPaperMargin(){return this.options.margins}setPaperMargin(e){return this.draw.setPaperMargin(e)}insertElementList(e){if(!e.length||this.draw.isReadonly())return;const r=Ft(e),{startIndex:i}=this.range.getRange(),o=this.draw.getElementList();wn(o,r,i),this.draw.insertElementList(r)}appendElementList(e,n){!e.length||this.draw.isReadonly()||this.draw.appendElementList(Ft(e),n)}setValue(e){this.draw.setValue(e)}removeControl(){const{startIndex:e,endIndex:n}=this.range.getRange();if(e!==n||!this.draw.getElementList()[e].controlId)return;const a=this.draw.getControl().removeControl(e);a!==null&&(this.range.setRange(a,a),this.draw.render({curIndex:a}))}setLocale(e){this.i18n.setLocale(e)}getLocale(){return this.i18n.getLocale()}getCatalog(){return this.workerManager.getCatalog()}locationCatalog(e){var i;const n=this.draw.getMainElementList();let r=-1;for(let o=0;os!==void 0?gs(s,{innerWidth:o}):void 0;this.setValue({header:a(n),main:a(r),footer:a(i)})}setGroup(){return this.draw.isReadonly()?null:this.draw.getGroup().setGroup()}deleteGroup(e){this.draw.isReadonly()||this.draw.getGroup().deleteGroup(e)}getGroupIds(){return this.draw.getWorkerManager().getGroupIds()}locationGroup(e){const n=this.draw.getOriginalMainElementList(),r=this.draw.getGroup().getContextByGroupId(n,e);if(!r)return;const{isTable:i,index:o,trIndex:a,tdIndex:s,tdId:c,trId:u,tableId:l,endIndex:h}=r;this.position.setPositionContext({isTable:i,index:o,trIndex:a,tdIndex:s,tdId:c,trId:u,tableId:l}),this.range.setRange(h,h),this.draw.render({curIndex:h,isCompute:!1,isSubmitHistory:!1})}setZone(e){this.draw.getZone().setZone(e)}getControlValue(e){return this.draw.getControl().getValueByConceptId(e)}setControlValue(e){this.draw.isReadonly()||this.draw.getControl().setValueByConceptId(e)}setControlExtension(e){this.draw.isReadonly()||this.draw.getControl().setExtensionByConceptId(e)}setControlProperties(e){this.draw.isReadonly()||this.draw.getControl().setPropertiesByConceptId(e)}setControlHighlight(e){this.draw.getControl().setHighlightList(e)}updateOptions(e){const n=mR(e);Object.entries(n).forEach(([r,i])=>{Reflect.set(this.options,r,i)}),this.forceUpdate()}getControlList(){return this.draw.getControl().getList()}locationControl(e){function n(i,o){let a=0;for(;a{var u;let c=0;for(;c{Gc(s,a,u)}),this.draw.insertElementList([r])}}class uS{constructor(){this.rangeStyleChange=null,this.visiblePageNoListChange=null,this.intersectionPageNoChange=null,this.pageSizeChange=null,this.pageScaleChange=null,this.saved=null,this.contentChange=null,this.controlChange=null,this.pageModeChange=null,this.zoneChange=null}}class lS{constructor(e){const{contextMenu:n,shortcut:r,i18n:i}=e;this.contextMenuList=n.registerContextMenuList.bind(n),this.getContextMenuList=n.getContextMenuList.bind(n),this.shortcutList=r.registerShortcutList.bind(r),this.langMap=i.registerLangMap.bind(i)}}const A1={SELECTED_TEXT:"%s"},Ps={GLOBAL:{CUT:"globalCut",COPY:"globalCopy",PASTE:"globalPaste",SELECT_ALL:"globalSelectAll",PRINT:"globalPrint"},CONTROL:{DELETE:"controlDelete"},HYPERLINK:{DELETE:"hyperlinkDelete",CANCEL:"hyperlinkCancel",EDIT:"hyperlinkEdit"},IMAGE:{CHANGE:"imageChange",SAVE_AS:"imageSaveAs",TEXT_WRAP:"imageTextWrap",TEXT_WRAP_EMBED:"imageTextWrapEmbed",TEXT_WRAP_UP_DOWN:"imageTextWrapUpDown",TEXT_WRAP_FLOAT_TOP:"imageTextWrapFloatTop",TEXT_WRAP_FLOAT_BOTTOM:"imageTextWrapFloatBottom"},TABLE:{BORDER:"border",BORDER_ALL:"tableBorderAll",BORDER_EMPTY:"tableBorderEmpty",BORDER_EXTERNAL:"tableBorderExternal",BORDER_TD:"tableBorderTd",BORDER_TD_TOP:"tableBorderTdTop",BORDER_TD_RIGHT:"tableBorderTdRight",BORDER_TD_BOTTOM:"tableBorderTdBottom",BORDER_TD_LEFT:"tableBorderTdLeft",BORDER_TD_FORWARD:"tableBorderTdForward",BORDER_TD_BACK:"tableBorderTdBack",VERTICAL_ALIGN:"tableVerticalAlign",VERTICAL_ALIGN_TOP:"tableVerticalAlignTop",VERTICAL_ALIGN_MIDDLE:"tableVerticalAlignMiddle",VERTICAL_ALIGN_BOTTOM:"tableVerticalAlignBottom",INSERT_ROW_COL:"tableInsertRowCol",INSERT_TOP_ROW:"tableInsertTopRow",INSERT_BOTTOM_ROW:"tableInsertBottomRow",INSERT_LEFT_COL:"tableInsertLeftCol",INSERT_RIGHT_COL:"tableInsertRightCol",DELETE_ROW_COL:"tableDeleteRowCol",DELETE_ROW:"tableDeleteRow",DELETE_COL:"tableDeleteCol",DELETE_TABLE:"tableDeleteTable",MERGE_CELL:"tableMergeCell",CANCEL_MERGE_CELL:"tableCancelMergeCell"}},{CONTROL:{DELETE:hS}}=Ps,dS=[{key:hS,i18nPath:"contextmenu.control.delete",when:t=>{var e;return!t.isReadonly&&!t.editorHasSelection&&!!((e=t.startElement)!=null&&e.controlId)},callback:t=>{t.executeRemoveControl()}}],{GLOBAL:{CUT:fS,COPY:pS,PASTE:gS,SELECT_ALL:mS,PRINT:RS}}=Ps,yS=[{key:fS,i18nPath:"contextmenu.global.cut",shortCut:`${io?"\u2318":"Ctrl"} + X`,when:t=>!t.isReadonly,callback:t=>{t.executeCut()}},{key:pS,i18nPath:"contextmenu.global.copy",shortCut:`${io?"\u2318":"Ctrl"} + C`,when:t=>t.editorHasSelection||t.isCrossRowCol,callback:t=>{t.executeCopy()}},{key:gS,i18nPath:"contextmenu.global.paste",shortCut:`${io?"\u2318":"Ctrl"} + V`,when:t=>!t.isReadonly&&t.editorTextFocus,callback:t=>{t.executePaste()}},{key:mS,i18nPath:"contextmenu.global.selectAll",shortCut:`${io?"\u2318":"Ctrl"} + A`,when:t=>t.editorTextFocus,callback:t=>{t.executeSelectAll()}},{isDivider:!0},{key:RS,i18nPath:"contextmenu.global.print",icon:"print",when:()=>!0,callback:t=>{t.executePrint()}}],{HYPERLINK:{DELETE:vS,CANCEL:bS,EDIT:xS}}=Ps,wS=[{key:vS,i18nPath:"contextmenu.hyperlink.delete",when:t=>{var e;return!t.isReadonly&&((e=t.startElement)==null?void 0:e.type)===fe.HYPERLINK},callback:t=>{t.executeDeleteHyperlink()}},{key:bS,i18nPath:"contextmenu.hyperlink.cancel",when:t=>{var e;return!t.isReadonly&&((e=t.startElement)==null?void 0:e.type)===fe.HYPERLINK},callback:t=>{t.executeCancelHyperlink()}},{key:xS,i18nPath:"contextmenu.hyperlink.edit",when:t=>{var e;return!t.isReadonly&&((e=t.startElement)==null?void 0:e.type)===fe.HYPERLINK},callback:(t,e)=>{var r;const n=window.prompt("\u7F16\u8F91\u94FE\u63A5",(r=e.startElement)==null?void 0:r.url);n&&t.executeEditHyperlink(n)}}],{IMAGE:{CHANGE:TS,SAVE_AS:SS,TEXT_WRAP:DS,TEXT_WRAP_EMBED:OS,TEXT_WRAP_UP_DOWN:_S,TEXT_WRAP_FLOAT_TOP:ES,TEXT_WRAP_FLOAT_BOTTOM:IS}}=Ps,NS=[{key:TS,i18nPath:"contextmenu.image.change",icon:"image-change",when:t=>{var e;return!t.isReadonly&&!t.editorHasSelection&&((e=t.startElement)==null?void 0:e.type)===fe.IMAGE},callback:t=>{const e=document.createElement("input");e.type="file",e.accept=".png, .jpg, .jpeg",e.onchange=()=>{const n=e.files[0],r=new FileReader;r.readAsDataURL(n),r.onload=()=>{const i=r.result;t.executeReplaceImageElement(i)}},e.click()}},{key:SS,i18nPath:"contextmenu.image.saveAs",icon:"image",when:t=>{var e;return!t.editorHasSelection&&((e=t.startElement)==null?void 0:e.type)===fe.IMAGE},callback:t=>{t.executeSaveAsImageElement()}},{key:DS,i18nPath:"contextmenu.image.textWrap",when:t=>{var e;return!t.isReadonly&&!t.editorHasSelection&&((e=t.startElement)==null?void 0:e.type)===fe.IMAGE},childMenus:[{key:OS,i18nPath:"contextmenu.image.textWrapType.embed",when:()=>!0,callback:(t,e)=>{t.executeChangeImageDisplay(e.startElement,ht.BLOCK)}},{key:_S,i18nPath:"contextmenu.image.textWrapType.upDown",when:()=>!0,callback:(t,e)=>{t.executeChangeImageDisplay(e.startElement,ht.INLINE)}},{key:ES,i18nPath:"contextmenu.image.textWrapType.floatTop",when:()=>!0,callback:(t,e)=>{t.executeChangeImageDisplay(e.startElement,ht.FLOAT_TOP)}},{key:IS,i18nPath:"contextmenu.image.textWrapType.floatBottom",when:()=>!0,callback:(t,e)=>{t.executeChangeImageDisplay(e.startElement,ht.FLOAT_BOTTOM)}}]}],{TABLE:{BORDER:FS,BORDER_ALL:PS,BORDER_EMPTY:MS,BORDER_EXTERNAL:LS,BORDER_TD:CS,BORDER_TD_TOP:AS,BORDER_TD_LEFT:US,BORDER_TD_BOTTOM:WS,BORDER_TD_RIGHT:XS,BORDER_TD_BACK:VS,BORDER_TD_FORWARD:YS,VERTICAL_ALIGN:BS,VERTICAL_ALIGN_TOP:ZS,VERTICAL_ALIGN_MIDDLE:kS,VERTICAL_ALIGN_BOTTOM:QS,INSERT_ROW_COL:KS,INSERT_TOP_ROW:HS,INSERT_BOTTOM_ROW:GS,INSERT_LEFT_COL:JS,INSERT_RIGHT_COL:zS,DELETE_ROW_COL:$S,DELETE_ROW:jS,DELETE_COL:qS,DELETE_TABLE:eD,MERGE_CELL:tD,CANCEL_MERGE_CELL:nD}}=Ps,rD=[{isDivider:!0},{key:FS,i18nPath:"contextmenu.table.border",icon:"border-all",when:t=>!t.isReadonly&&t.isInTable,childMenus:[{key:PS,i18nPath:"contextmenu.table.borderAll",icon:"border-all",when:()=>!0,callback:t=>{t.executeTableBorderType(Kr.ALL)}},{key:MS,i18nPath:"contextmenu.table.borderEmpty",icon:"border-empty",when:()=>!0,callback:t=>{t.executeTableBorderType(Kr.EMPTY)}},{key:LS,i18nPath:"contextmenu.table.borderExternal",icon:"border-external",when:()=>!0,callback:t=>{t.executeTableBorderType(Kr.EXTERNAL)}},{key:CS,i18nPath:"contextmenu.table.borderTd",icon:"border-td",when:()=>!0,childMenus:[{key:AS,i18nPath:"contextmenu.table.borderTdTop",icon:"border-td-top",when:()=>!0,callback:t=>{t.executeTableTdBorderType(ur.TOP)}},{key:XS,i18nPath:"contextmenu.table.borderTdRight",icon:"border-td-right",when:()=>!0,callback:t=>{t.executeTableTdBorderType(ur.RIGHT)}},{key:WS,i18nPath:"contextmenu.table.borderTdBottom",icon:"border-td-bottom",when:()=>!0,callback:t=>{t.executeTableTdBorderType(ur.BOTTOM)}},{key:US,i18nPath:"contextmenu.table.borderTdLeft",icon:"border-td-left",when:()=>!0,callback:t=>{t.executeTableTdBorderType(ur.LEFT)}},{key:YS,i18nPath:"contextmenu.table.borderTdForward",icon:"border-td-forward",when:()=>!0,callback:t=>{t.executeTableTdSlashType(bs.FORWARD)}},{key:VS,i18nPath:"contextmenu.table.borderTdBack",icon:"border-td-back",when:()=>!0,callback:t=>{t.executeTableTdSlashType(bs.BACK)}}]}]},{key:BS,i18nPath:"contextmenu.table.verticalAlign",icon:"vertical-align",when:t=>!t.isReadonly&&t.isInTable,childMenus:[{key:ZS,i18nPath:"contextmenu.table.verticalAlignTop",icon:"vertical-align-top",when:()=>!0,callback:t=>{t.executeTableTdVerticalAlign(Mi.TOP)}},{key:kS,i18nPath:"contextmenu.table.verticalAlignMiddle",icon:"vertical-align-middle",when:()=>!0,callback:t=>{t.executeTableTdVerticalAlign(Mi.MIDDLE)}},{key:QS,i18nPath:"contextmenu.table.verticalAlignBottom",icon:"vertical-align-bottom",when:()=>!0,callback:t=>{t.executeTableTdVerticalAlign(Mi.BOTTOM)}}]},{key:KS,i18nPath:"contextmenu.table.insertRowCol",icon:"insert-row-col",when:t=>!t.isReadonly&&t.isInTable,childMenus:[{key:HS,i18nPath:"contextmenu.table.insertTopRow",icon:"insert-top-row",when:()=>!0,callback:t=>{t.executeInsertTableTopRow()}},{key:GS,i18nPath:"contextmenu.table.insertBottomRow",icon:"insert-bottom-row",when:()=>!0,callback:t=>{t.executeInsertTableBottomRow()}},{key:JS,i18nPath:"contextmenu.table.insertLeftCol",icon:"insert-left-col",when:()=>!0,callback:t=>{t.executeInsertTableLeftCol()}},{key:zS,i18nPath:"contextmenu.table.insertRightCol",icon:"insert-right-col",when:()=>!0,callback:t=>{t.executeInsertTableRightCol()}}]},{key:$S,i18nPath:"contextmenu.table.deleteRowCol",icon:"delete-row-col",when:t=>!t.isReadonly&&t.isInTable,childMenus:[{key:jS,i18nPath:"contextmenu.table.deleteRow",icon:"delete-row",when:()=>!0,callback:t=>{t.executeDeleteTableRow()}},{key:qS,i18nPath:"contextmenu.table.deleteCol",icon:"delete-col",when:()=>!0,callback:t=>{t.executeDeleteTableCol()}},{key:eD,i18nPath:"contextmenu.table.deleteTable",icon:"delete-table",when:()=>!0,callback:t=>{t.executeDeleteTable()}}]},{key:tD,i18nPath:"contextmenu.table.mergeCell",icon:"merge-cell",when:t=>!t.isReadonly&&t.isCrossRowCol,callback:t=>{t.executeMergeTableCell()}},{key:nD,i18nPath:"contextmenu.table.mergeCancelCell",icon:"merge-cancel-cell",when:t=>!t.isReadonly&&t.isInTable,callback:t=>{t.executeCancelMergeTableCell()}}];class iD{constructor(e,n){this._proxyContextMenuEvent=r=>{this.context=this._getContext();const i=this._filterMenuList(this.contextMenuList);i.some(a=>!a.isDivider)&&(this.dispose(),this._render({contextMenuList:i,left:r.x,top:r.y})),r.preventDefault()},this._handleSideEffect=r=>{if(this.contextMenuContainerList.length){const i=(r==null?void 0:r.composedPath()[0])||r.target;au(i,a=>!!a&&a.nodeType===1&&a.getAttribute(Jr)===$r.CONTEXTMENU,!0)||this.dispose()}},this.options=e.getOptions(),this.draw=e,this.command=n,this.range=e.getRange(),this.position=e.getPosition(),this.i18n=e.getI18n(),this.container=e.getContainer(),this.context=null,this.contextMenuList=[...yS,...rD,...NS,...dS,...wS],this.contextMenuContainerList=[],this.contextMenuRelationShip=new Map,this._addEvent()}getContextMenuList(){return this.contextMenuList}_addEvent(){this.container.addEventListener("contextmenu",this._proxyContextMenuEvent),document.addEventListener("mousedown",this._handleSideEffect)}removeEvent(){this.container.removeEventListener("contextmenu",this._proxyContextMenuEvent),document.removeEventListener("mousedown",this._handleSideEffect)}_filterMenuList(e){var i;const{contextMenuDisableKeys:n}=this.options,r=[];for(let o=0;o!_.isDivider)&&(v.classList.add(`${ke}-contextmenu-sub-item`),v.onmouseenter=()=>{this._setHoverStatus(v,!0),this._removeSubMenu(a);const _=v.getBoundingClientRect(),B=_.left+_.width,q=_.top;c=this._render({contextMenuList:N,left:B,top:q,parentMenuContainer:a})},v.onmouseleave=_=>{(!c||!c.contains(_.relatedTarget))&&this._setHoverStatus(v,!1)})}else v.onmouseenter=()=>{this._setHoverStatus(v,!0),this._removeSubMenu(a)},v.onmouseleave=()=>{this._setHoverStatus(v,!1)},v.onclick=()=>{m.callback&&this.context&&m.callback(this.command,this.context),this.dispose()};const x=document.createElement("i");v.append(x),m.icon&&x.classList.add(`${ke}-contextmenu-${m.icon}`);const O=document.createElement("span"),E=m.i18nPath?this._formatName(this.i18n.t(m.i18nPath)):this._formatName(m.name||"");if(O.append(document.createTextNode(E)),v.append(O),m.shortCut){const N=document.createElement("span");N.classList.add(`${ke}-shortcut`),N.append(document.createTextNode(m.shortCut)),v.append(N)}s.append(v)}}a.append(s),a.style.display="block";const u=window.innerWidth,l=a.getBoundingClientRect(),h=l.width,d=r+h>u?r-h:r;a.style.left=`${d}px`;const f=window.innerHeight,p=l.height,g=i+p>f?i-p:i;return a.style.top=`${g}px`,this.contextMenuContainerList.push(a),a}_removeSubMenu(e){const n=this.contextMenuRelationShip.get(e);n&&(this._removeSubMenu(n),n.remove(),this.contextMenuRelationShip.delete(e))}_setHoverStatus(e,n){var r;n?((r=e.parentNode)==null||r.querySelectorAll(`${ke}-contextmenu-item`).forEach(i=>i.classList.remove("hover")),e.classList.add("hover")):e.classList.remove("hover")}_formatName(e){const n=Object.values(A1),r=new RegExp(`${n.join("|")}`);let i=e;if(r.test(i)){const o=new RegExp(A1.SELECTED_TEXT,"g");if(o.test(i)){const a=this.range.toString();i=i.replace(o,a)}}return i}registerContextMenuList(e){this.contextMenuList.push(...e)}dispose(){this.contextMenuContainerList.forEach(e=>e.remove()),this.contextMenuContainerList=[],this.contextMenuRelationShip.clear()}}const oD=[{key:Qe.X,ctrl:!0,shift:!0,callback:t=>{t.executeStrikeout()}},{key:Qe.LEFT_BRACKET,mod:!0,callback:t=>{t.executeSizeAdd()}},{key:Qe.RIGHT_BRACKET,mod:!0,callback:t=>{t.executeSizeMinus()}},{key:Qe.B,mod:!0,callback:t=>{t.executeBold()}},{key:Qe.I,mod:!0,callback:t=>{t.executeItalic()}},{key:Qe.U,mod:!0,callback:t=>{t.executeUnderline()}},{key:io?Qe.COMMA:Qe.RIGHT_ANGLE_BRACKET,mod:!0,shift:!0,callback:t=>{t.executeSuperscript()}},{key:io?Qe.PERIOD:Qe.LEFT_ANGLE_BRACKET,mod:!0,shift:!0,callback:t=>{t.executeSubscript()}},{key:Qe.L,mod:!0,callback:t=>{t.executeRowFlex(at.LEFT)}},{key:Qe.E,mod:!0,callback:t=>{t.executeRowFlex(at.CENTER)}},{key:Qe.R,mod:!0,callback:t=>{t.executeRowFlex(at.RIGHT)}},{key:Qe.J,mod:!0,callback:t=>{t.executeRowFlex(at.ALIGNMENT)}},{key:Qe.J,mod:!0,shift:!0,callback:t=>{t.executeRowFlex(at.JUSTIFY)}}],aD=[{key:Qe.ZERO,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(null)}},{key:Qe.ONE,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.FIRST)}},{key:Qe.TWO,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.SECOND)}},{key:Qe.THREE,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.THIRD)}},{key:Qe.FOUR,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.FOURTH)}},{key:Qe.FIVE,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.FIFTH)}},{key:Qe.SIX,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.SIXTH)}}],sD=[{key:Qe.I,shift:!0,mod:!0,callback:t=>{t.executeList(zr.UL,or.DISC)}},{key:Qe.U,shift:!0,mod:!0,callback:t=>{t.executeList(zr.OL)}}];class cD{constructor(e,n){this._globalKeydown=i=>{!this.globalShortcutList.length||this._execute(i,this.globalShortcutList)},this.command=n,this.globalShortcutList=[],this.agentShortcutList=[],this._addShortcutList([...oD,...aD,...sD]),this._addEvent(),e.getCursor().getAgentDom().addEventListener("keydown",this._agentKeydown.bind(this))}_addEvent(){document.addEventListener("keydown",this._globalKeydown)}removeEvent(){document.removeEventListener("keydown",this._globalKeydown)}_addShortcutList(e){for(let n=e.length-1;n>=0;n--){const r=e[n];r.isGlobal?this.globalShortcutList.unshift(r):this.agentShortcutList.unshift(r)}}registerShortcutList(e){this._addShortcutList(e)}_agentKeydown(e){!this.agentShortcutList.length||this._execute(e,this.agentShortcutList)}_execute(e,n){var r;for(let i=0;ii(n))}}off(e,n){if(!e||typeof n!="function")return;const r=this.eventHub.get(e);!r||r.delete(n)}isSubscribe(e){const n=this.eventHub.get(e);return!!n&&n.size>0}}class hD{}class dD{constructor(e,n,r={}){const i=mR(r);n=Ft(n);let o=[],a=[],s=[];Array.isArray(n)?a=n:(o=n.header||[],a=n.main,s=n.footer||[]),[o,a,s].forEach(f=>{cr(f,{editorOptions:i})}),this.listener=new uS,this.eventBus=new lD,this.override=new hD;const u=new KT(e,i,{header:o,main:a,footer:s},this.listener,this.eventBus,this.override);this.command=new HT(new cS(u));const l=new iD(u,this.command),h=new cD(u,this.command);this.register=new lS({contextMenu:l,shortcut:h,i18n:u.getI18n()}),this.destroy=()=>{u.destroy(),h.removeEvent(),l.removeEvent()};const d=new uD(this);this.use=d.use.bind(d)}}class ln{constructor(e){this.options=e,this.mask=null,this.container=null,this.inputList=[],this._render()}_render(){var y;const{title:e,data:n,onClose:r,onCancel:i,onConfirm:o}=this.options,a=document.createElement("div");a.classList.add("dialog-mask"),a.setAttribute(Jr,$r.COMPONENT),document.body.append(a);const s=document.createElement("div");s.classList.add("dialog-container"),s.setAttribute(Jr,$r.COMPONENT);const c=document.createElement("div");c.classList.add("dialog"),s.append(c);const u=document.createElement("div");u.classList.add("dialog-title");const l=document.createElement("span");l.append(document.createTextNode(e));const h=document.createElement("i");h.onclick=()=>{r&&r(),this._dispose()},u.append(l),u.append(h),c.append(u);const d=document.createElement("div");d.classList.add("dialog-option");for(let R=0;R{const E=document.createElement("option");E.value=O.value,E.label=O.label,x.append(E)})):m.type==="textarea"?x=document.createElement("textarea"):(x=document.createElement("input"),x.type=m.type),m.width&&(x.style.width=`${m.width}px`),m.height&&(x.style.height=`${m.height}px`),x.name=m.name,x.value=m.value||"",x instanceof HTMLSelectElement||(x.placeholder=m.placeholder||""),v.append(x),d.append(v),this.inputList.push(x)}c.append(d);const f=document.createElement("div");f.classList.add("dialog-menu");const p=document.createElement("button");p.classList.add("dialog-menu__cancel"),p.append(document.createTextNode("\u53D6\u6D88")),p.type="button",p.onclick=()=>{i&&i(),this._dispose()},f.append(p);const g=document.createElement("button");g.append(document.createTextNode("\u786E\u5B9A")),g.type="submit",g.onclick=()=>{if(o){const R=this.inputList.map(m=>({name:m.name,value:m.value}));o(R)}this._dispose()},f.append(g),c.append(f),document.body.append(s),this.container=s,this.mask=a}_dispose(){var e,n;(e=this.mask)==null||e.remove(),(n=this.container)==null||n.remove()}}function fD(t){switch(t){case"comment":case"prolog":case"doctype":case"cdata":return{color:"#008000",italic:!0};case"namespace":return{opacity:.7};case"string":return{color:"#A31515"};case"punctuation":case"operator":return{color:"#393A34"};case"url":case"symbol":case"number":case"boolean":case"variable":case"constant":case"inserted":return{color:"#36acaa"};case"atrule":case"keyword":case"attr-value":return{color:"#0000ff"};case"function":return{color:"#b9a40a"};case"deleted":case"tag":return{color:"#9a050f"};case"selector":return{color:"#00009f"};case"important":return{color:"#e90",bold:!0};case"italic":return{italic:!0};case"class-name":case"property":return{color:"#2B91AF"};case"attr-name":case"regex":case"entity":return{color:"#ff0000"};default:return null}}function pD(t){const e=[];function n(r){for(let i=0;i{e&&e(),this._dispose()},s.append(c),s.append(u),a.append(s);const l=document.createElement("div");l.classList.add("signature-operation");const h=document.createElement("div");h.classList.add("signature-operation__undo");const d=document.createElement("i"),f=document.createElement("span");f.innerText="\u64A4\u9500",h.append(d),h.append(f),l.append(h);const p=document.createElement("div");p.classList.add("signature-operation__trash");const g=document.createElement("i"),y=document.createElement("span");y.innerText="\u6E05\u7A7A",p.append(g),p.append(y),l.append(p),a.append(l);const R=document.createElement("div");R.classList.add("signature-canvas");const m=document.createElement("canvas");m.width=this.canvasWidth,m.height=this.canvasHeight,m.style.width=`${this.canvasWidth/this.dpr}px`,m.style.height=`${this.canvasHeight/this.dpr}px`,R.append(m),a.append(R);const v=document.createElement("div");v.classList.add("signature-menu");const x=document.createElement("button");x.classList.add("signature-menu__cancel"),x.append(document.createTextNode("\u53D6\u6D88")),x.type="button",x.onclick=()=>{n&&n(),this._dispose()},v.append(x);const O=document.createElement("button");return O.append(document.createTextNode("\u786E\u5B9A")),O.type="submit",O.onclick=()=>{r&&r(this._toData()),this._dispose()},v.append(O),a.append(v),document.body.append(o),this.container=o,this.mask=i,{mask:i,canvas:m,container:o,trashContainer:p,undoContainer:h}}_bindEvent(){this.trashContainer.onclick=this._clearCanvas.bind(this),this.undoContainer.onclick=this._undo.bind(this),this.canvas.onmousedown=this._startDraw.bind(this),this.canvas.onmousemove=this._draw.bind(this),this.container.onmouseup=this._stopDraw.bind(this)}_undo(){this.undoStack.length>1&&(this.undoStack.pop(),this.undoStack.length&&this.undoStack[this.undoStack.length-1]())}_saveUndoFn(e){for(this.undoStack.push(e);this.undoStack.length>this.MAX_RECORD_COUNT;)this.undoStack.shift()}_clearUndoFn(){const e=()=>{this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight)};this.undoStack=[e]}_clearCanvas(){this._clearUndoFn(),this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight)}_startDraw(e){this.isDrawing=!0,this.x=e.offsetX,this.y=e.offsetY,this.ctx.lineWidth=1}_draw(e){if(!this.isDrawing)return;const n=performance.now(),i=Math.sqrt(e.movementX**2+e.movementY**2)/(n-this.preTimeStamp),a=Math.min(5,Math.max(1,5-i*3)),s=.2;this.ctx.lineWidth=this.ctx.lineWidth*(1-s)+a*s;const{offsetX:c,offsetY:u}=e;this.ctx.beginPath(),this.ctx.moveTo(this.x,this.y),this.ctx.lineTo(c,u),this.ctx.stroke(),this.x=c,this.y=u,this.linePoints.push([c,u]),this.isDrawn=!0,this.preTimeStamp=n}_stopDraw(){if(this.isDrawing=!1,this.isDrawn){const e=this.ctx.getImageData(0,0,this.canvasWidth,this.canvasHeight),n=this;this._saveUndoFn(function(){n.ctx.clearRect(0,0,n.canvasWidth,n.canvasHeight),n.ctx.putImageData(e,0,0)}),this.isDrawn=!1}}_toData(){if(!this.linePoints.length)return null;const e=this.linePoints[0][0],n=this.linePoints[0][1];let r=e,i=n,o=e,a=n;for(let p=0;pg[0]&&(r=g[0]),og[1]&&(i=g[1]),a{t.apply(this,r)},e)}}function RD(t,e){if(!e){t.scrollTop=0;return}const n=[];let r=e.offsetParent;for(;r&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;const i=e.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),o=i+e.offsetHeight,a=t.scrollTop,s=a+t.clientHeight;is&&(t.scrollTop=o-t.clientHeight)}function U1(t){(window.requestIdleCallback||window.setTimeout)(()=>{t()})}var RR={exports:{}},yR={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},vR={exports:{}},yD=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},vD=yD,bD=Array.prototype.concat,xD=Array.prototype.slice,W1=vR.exports=function(e){for(var n=[],r=0,i=e.length;r=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};lr.to.keyword=function(t){return xR[t.slice(0,3)]};function Li(t,e,n){return Math.min(Math.max(e,t),n)}function xc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}const ws=yR,wR={};for(const t of Object.keys(ws))wR[ws[t]]=t;const Ye={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var TR=Ye;for(const t of Object.keys(Ye)){if(!("channels"in Ye[t]))throw new Error("missing channels property: "+t);if(!("labels"in Ye[t]))throw new Error("missing channel labels property: "+t);if(Ye[t].labels.length!==Ye[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=Ye[t];delete Ye[t].channels,delete Ye[t].labels,Object.defineProperty(Ye[t],"channels",{value:e}),Object.defineProperty(Ye[t],"labels",{value:n})}Ye.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=o-i;let s,c;o===i?s=0:e===o?s=(n-r)/a:n===o?s=2+(r-e)/a:r===o&&(s=4+(e-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(i+o)/2;return o===i?c=0:u<=.5?c=a/(o+i):c=a/(2-o-i),[s,c*100,u*100]};Ye.rgb.hsv=function(t){let e,n,r,i,o;const a=t[0]/255,s=t[1]/255,c=t[2]/255,u=Math.max(a,s,c),l=u-Math.min(a,s,c),h=function(d){return(u-d)/6/l+1/2};return l===0?(i=0,o=0):(o=l/u,e=h(a),n=h(s),r=h(c),a===u?i=r-n:s===u?i=1/3+e-r:c===u&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,u*100]};Ye.rgb.hwb=function(t){const e=t[0],n=t[1];let r=t[2];const i=Ye.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,o*100,r*100]};Ye.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r),o=(1-e-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function wD(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}Ye.rgb.keyword=function(t){const e=wR[t];if(e)return e;let n=1/0,r;for(const i of Object.keys(ws)){const o=ws[i],a=wD(t,o);a.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=e*.4124+n*.3576+r*.1805,o=e*.2126+n*.7152+r*.0722,a=e*.0193+n*.1192+r*.9505;return[i*100,o*100,a*100]};Ye.rgb.lab=function(t){const e=Ye.rgb.xyz(t);let n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16,a=500*(n-r),s=200*(r-i);return[o,a,s]};Ye.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;let i,o,a;if(n===0)return a=r*255,[a,a,a];r<.5?i=r*(1+n):i=r+n-r*n;const s=2*r-i,c=[0,0,0];for(let u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,c[u]=a*255;return c};Ye.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,r=t[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=r===0?2*i/(o+i):2*n/(r+n);return[e,s*100,a*100]};Ye.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let r=t[2]/100;const i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),c=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,c,a];case 1:return[s,r,a];case 2:return[a,r,c];case 3:return[a,s,r];case 4:return[c,a,r];case 5:return[r,a,s]}};Ye.hsv.hsl=function(t){const e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};Ye.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,r=t[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*e),s=1-r;o=6*e-a,(a&1)!==0&&(o=1-o);const c=n+o*(s-n);let u,l,h;switch(a){default:case 6:case 0:u=s,l=c,h=n;break;case 1:u=c,l=s,h=n;break;case 2:u=n,l=s,h=c;break;case 3:u=n,l=c,h=s;break;case 4:u=c,l=n,h=s;break;case 5:u=s,l=n,h=c;break}return[u*255,l*255,h*255]};Ye.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100,o=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[o*255,a*255,s*255]};Ye.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100;let i,o,a;return i=e*3.2406+n*-1.5372+r*-.4986,o=e*-.9689+n*1.8758+r*.0415,a=e*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};Ye.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,o=500*(e-n),a=200*(n-r);return[i,o,a]};Ye.lab.xyz=function(t){const e=t[0],n=t[1],r=t[2];let i,o,a;o=(e+16)/116,i=n/500+o,a=o-r/200;const s=o**3,c=i**3,u=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};Ye.lab.lch=function(t){const e=t[0],n=t[1],r=t[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(n*n+r*r);return[e,a,i]};Ye.lch.lab=function(t){const e=t[0],n=t[1],i=t[2]/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[e,o,a]};Ye.rgb.ansi16=function(t,e=null){const[n,r,i]=t;let o=e===null?Ye.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(a+=60),a};Ye.hsv.ansi16=function(t){return Ye.rgb.ansi16(Ye.hsv.rgb(t),t[2])};Ye.rgb.ansi256=function(t){const e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Ye.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=(~~(t>50)+1)*.5,r=(e&1)*n*255,i=(e>>1&1)*n*255,o=(e>>2&1)*n*255;return[r,i,o]};Ye.ansi256.rgb=function(t){if(t>=232){const o=(t-232)*10+8;return[o,o,o]}t-=16;let e;const n=Math.floor(t/36)/5*255,r=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[n,r,i]};Ye.rgb.hex=function(t){const n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Ye.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];e[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=r&255;return[i,o,a]};Ye.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),o=Math.min(Math.min(e,n),r),a=i-o;let s,c;return a<1?s=o/(1-a):s=0,a<=0?c=0:i===e?c=(n-r)/a%6:i===n?c=2+(r-e)/a:c=4+(e-n)/a,c/=6,c%=1,[c*360,a*100,s*100]};Ye.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],r*100,i*100]};Ye.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=e*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],r*100,i*100]};Ye.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],o=e%1*6,a=o%1,s=1-a;let c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]};Ye.hcg.hsv=function(t){const e=t[1]/100,n=t[2]/100,r=e+n*(1-e);let i=0;return r>0&&(i=e/r),[t[0],i*100,r*100]};Ye.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[t[0],i*100,r*100]};Ye.hcg.hwb=function(t){const e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};Ye.hwb.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=1-n,i=r-e;let o=0;return i<1&&(o=(r-i)/(1-i)),[t[0],i*100,o*100]};Ye.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Ye.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Ye.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Ye.gray.hsl=function(t){return[0,0,t[0]]};Ye.gray.hsv=Ye.gray.hsl;Ye.gray.hwb=function(t){return[0,100,t[0]]};Ye.gray.cmyk=function(t){return[0,0,0,t[0]]};Ye.gray.lab=function(t){return[t[0],0,0]};Ye.gray.hex=function(t){const e=Math.round(t[0]/100*255)&255,r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r};Ye.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const hu=TR;function TD(){const t={},e=Object.keys(hu);for(let n=e.length,r=0;r1&&(n=r),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function FD(t){const e=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=t(n);if(typeof i=="object")for(let o=i.length,a=0;a{Zo[t]={},Object.defineProperty(Zo[t],"channels",{value:dd[t].channels}),Object.defineProperty(Zo[t],"labels",{value:dd[t].labels});const e=ED(t);Object.keys(e).forEach(r=>{const i=e[r];Zo[t][r]=FD(i),Zo[t][r].raw=ND(i)})});var PD=Zo;const ko=RR.exports,ar=PD,SR=["keyword","gray","hex"],fd={};for(const t of Object.keys(ar))fd[[...ar[t].labels].sort().join("")]=t;const du={};function fn(t,e){if(!(this instanceof fn))return new fn(t,e);if(e&&e in SR&&(e=null),e&&!(e in ar))throw new Error("Unknown model: "+e);let n,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof fn)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const i=ko.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,r=ar[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(t.length>0){this.model=e||"rgb",r=ar[this.model].channels;const i=Array.prototype.slice.call(t,0,r);this.color=pd(i,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(t);"alpha"in t&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const o=i.sort().join("");if(!(o in fd))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=fd[o];const{labels:a}=ar[this.model],s=[];for(n=0;n(t%360+360)%360),saturationl:kt("hsl",1,tn(100)),lightness:kt("hsl",2,tn(100)),saturationv:kt("hsv",1,tn(100)),value:kt("hsv",2,tn(100)),chroma:kt("hcg",1,tn(100)),gray:kt("hcg",2,tn(100)),white:kt("hwb",1,tn(100)),wblack:kt("hwb",2,tn(100)),cyan:kt("cmyk",0,tn(100)),magenta:kt("cmyk",1,tn(100)),yellow:kt("cmyk",2,tn(100)),black:kt("cmyk",3,tn(100)),x:kt("xyz",0,tn(95.047)),y:kt("xyz",1,tn(100)),z:kt("xyz",2,tn(108.833)),l:kt("lab",0,tn(100)),a:kt("lab",1),b:kt("lab",2),keyword(t){return t!==void 0?new fn(t):ar[this.model].keyword(this.color)},hex(t){return t!==void 0?new fn(t):ko.to.hex(this.rgb().round().color)},hexa(t){if(t!==void 0)return new fn(t);const e=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),ko.to.hex(e)+n},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,e=[];for(const[n,r]of t.entries()){const i=r/255;e[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return fn.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),r=this.rgb(),i=e===void 0?.5:e,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,c=1-s;return fn.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const t of Object.keys(ar)){if(SR.includes(t))continue;const{channels:e}=ar[t];fn.prototype[t]=function(...n){return this.model===t?new fn(this):n.length>0?new fn(n,t):new fn([...CD(ar[this.model][t].raw(this.color)),this.valpha],t)},fn[t]=function(...n){let r=n[0];return typeof r=="number"&&(r=pd(n,e)),new fn(r,t)}}function MD(t,e){return Number(t.toFixed(e))}function LD(t){return function(e){return MD(e,t)}}function kt(t,e,n){t=Array.isArray(t)?t:[t];for(const r of t)(du[r]||(du[r]=[]))[e]=n;return t=t[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[t](),i.color[e]=r,i):(i=this[t]().color[e],n&&(i=n(i)),i)}}function tn(t){return function(e){return Math.max(0,Math.min(t,e))}}function CD(t){return Array.isArray(t)?t:[t]}function pd(t,e){for(let n=0;ne in t?UD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dt=(t,e)=>{for(var n in e||(e={}))VD.call(e,n)&&gd(t,n,e[n]);if(V1)for(var n of V1(e))YD.call(e,n)&&gd(t,n,e[n]);return t},ua=(t,e)=>WD(t,XD(e)),be=(t,e,n)=>(gd(t,typeof e!="symbol"?e+"":e,n),n),wc=(t,e,n)=>new Promise((r,i)=>{var o=c=>{try{s(n.next(c))}catch(u){i(u)}},a=c=>{try{s(n.throw(c))}catch(u){i(u)}},s=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,a);s((n=n.apply(t,e)).next())});class fu{constructor(e){be(this,"rootKey"),this.rootKey=e}}const BD=Object.seal({});class ve extends fu{constructor(e){super(e),be(this,"root"),this.root=new Array}prepForXml(e){var n;e.stack.push(this);const r=this.root.map(i=>i instanceof fu?i.prepForXml(e):i).filter(i=>i!==void 0);return e.stack.pop(),{[this.rootKey]:r.length?r.length===1&&((n=r[0])==null?void 0:n._attr)?r[0]:r:BD}}addChildElement(e){return this.root.push(e),this}}class mi extends ve{prepForXml(e){const n=super.prepForXml(e);if(n&&(typeof n[this.rootKey]!="object"||Object.keys(n[this.rootKey]).length))return n}}class Ue extends fu{constructor(e){super("_attr"),be(this,"xmlKeys"),this.root=e}prepForXml(e){const n={};return Object.keys(this.root).forEach(r=>{const i=this.root[r];if(i!==void 0){const o=this.xmlKeys&&this.xmlKeys[r]||r;n[o]=i}}),{_attr:n}}}class Ri extends fu{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:r})=>r!==void 0).reduce((r,{key:i,value:o})=>ua(dt({},r),{[i]:o}),{})}}}class Qt extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var Br=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function DR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var OR={},rf={exports:{}},na=typeof Reflect=="object"?Reflect:null,Y1=na&&typeof na.apply=="function"?na.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},zc;na&&typeof na.ownKeys=="function"?zc=na.ownKeys:Object.getOwnPropertySymbols?zc=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:zc=function(e){return Object.getOwnPropertyNames(e)};function ZD(t){console&&console.warn&&console.warn(t)}var _R=Number.isNaN||function(e){return e!==e};function Et(){Et.init.call(this)}rf.exports=Et;rf.exports.once=HD;Et.EventEmitter=Et;Et.prototype._events=void 0;Et.prototype._eventsCount=0;Et.prototype._maxListeners=void 0;var B1=10;function Pu(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Et,"defaultMaxListeners",{enumerable:!0,get:function(){return B1},set:function(t){if(typeof t!="number"||t<0||_R(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");B1=t}});Et.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Et.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||_R(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function ER(t){return t._maxListeners===void 0?Et.defaultMaxListeners:t._maxListeners}Et.prototype.getMaxListeners=function(){return ER(this)};Et.prototype.emit=function(e){for(var n=[],r=1;r0&&(a=n[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(c===void 0)return!1;if(typeof c=="function")Y1(c,this,n);else for(var u=c.length,l=MR(c,u),r=0;r0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,ZD(s)}return t}Et.prototype.addListener=function(e,n){return IR(this,e,n,!1)};Et.prototype.on=Et.prototype.addListener;Et.prototype.prependListener=function(e,n){return IR(this,e,n,!0)};function kD(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function NR(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=kD.bind(r);return i.listener=n,r.wrapFn=i,i}Et.prototype.once=function(e,n){return Pu(n),this.on(e,NR(this,e,n)),this};Et.prototype.prependOnceListener=function(e,n){return Pu(n),this.prependListener(e,NR(this,e,n)),this};Et.prototype.removeListener=function(e,n){var r,i,o,a,s;if(Pu(n),i=this._events,i===void 0)return this;if(r=i[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){s=r[a].listener,o=a;break}if(o<0)return this;o===0?r.shift():QD(r,o),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,s||n)}return this};Et.prototype.off=Et.prototype.removeListener;Et.prototype.removeAllListeners=function(e){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var o=Object.keys(r),a;for(i=0;i=0;i--)this.removeListener(e,n[i]);return this};function FR(t,e,n){var r=t._events;if(r===void 0)return[];var i=r[e];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?KD(i):MR(i,i.length)}Et.prototype.listeners=function(e){return FR(this,e,!0)};Et.prototype.rawListeners=function(e){return FR(this,e,!1)};Et.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):PR.call(t,e)};Et.prototype.listenerCount=PR;function PR(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Et.prototype.eventNames=function(){return this._eventsCount>0?zc(this._events):[]};function MR(t,e){for(var n=new Array(e),r=0;r1)for(var n=1;n0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=p);var y=g===p?0:4-g%4;return[g,y]}function s(f){var p=a(f),g=p[0],y=p[1];return(g+y)*3/4-y}function c(f,p,g){return(p+g)*3/4-g}function u(f){var p,g=a(f),y=g[0],R=g[1],m=new n(c(f,y,R)),v=0,x=R>0?y-4:y,O;for(O=0;O>16&255,m[v++]=p>>8&255,m[v++]=p&255;return R===2&&(p=e[f.charCodeAt(O)]<<2|e[f.charCodeAt(O+1)]>>4,m[v++]=p&255),R===1&&(p=e[f.charCodeAt(O)]<<10|e[f.charCodeAt(O+1)]<<4|e[f.charCodeAt(O+2)]>>2,m[v++]=p>>8&255,m[v++]=p&255),m}function l(f){return t[f>>18&63]+t[f>>12&63]+t[f>>6&63]+t[f&63]}function h(f,p,g){for(var y,R=[],m=p;mx?x:v+m));return y===1?(p=f[g-1],R.push(t[p>>2]+t[p<<4&63]+"==")):y===2&&(p=(f[g-2]<<8)+f[g-1],R.push(t[p>>10]+t[p>>4&63]+t[p<<2&63]+"=")),R.join("")}return Qa}var Tc={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var Q1;function eO(){return Q1||(Q1=1,Tc.read=function(t,e,n,r,i){var o,a,s=i*8-r-1,c=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=o*256+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=a*256+t[e+h],h+=d,l-=8);if(o===0)o=1-u;else{if(o===c)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,r),o=o-u}return(f?-1:1)*a*Math.pow(2,o-r)},Tc.write=function(t,e,n,r,i,o){var a,s,c,u=o*8-i-1,l=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+h>=1?e+=d/c:e+=d*Math.pow(2,1-h),e*c>=2&&(a++,c/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*c-1)*Math.pow(2,i),a=a+h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=s&255,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=a&255,f+=p,a/=256,u-=8);t[n+f-p]|=g*128}),Tc}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var K1;function Mu(){return K1||(K1=1,function(t){var e=qD(),n=eO(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{var L=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(L,w),L.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function a(L){if(L>i)throw new RangeError('The value "'+L+'" is invalid for option "size"');var w=new Uint8Array(L);return Object.setPrototypeOf(w,s.prototype),w}function s(L,w,S){if(typeof L=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(L)}return c(L,w,S)}s.poolSize=8192;function c(L,w,S){if(typeof L=="string")return d(L,w);if(ArrayBuffer.isView(L))return p(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(ge(L,ArrayBuffer)||L&&ge(L.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ge(L,SharedArrayBuffer)||L&&ge(L.buffer,SharedArrayBuffer)))return g(L,w,S);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var F=L.valueOf&&L.valueOf();if(F!=null&&F!==L)return s.from(F,w,S);var G=y(L);if(G)return G;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return s.from(L[Symbol.toPrimitive]("string"),w,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}s.from=function(L,w,S){return c(L,w,S)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function l(L,w,S){return u(L),L<=0?a(L):w!==void 0?typeof S=="string"?a(L).fill(w,S):a(L).fill(w):a(L)}s.alloc=function(L,w,S){return l(L,w,S)};function h(L){return u(L),a(L<0?0:R(L)|0)}s.allocUnsafe=function(L){return h(L)},s.allocUnsafeSlow=function(L){return h(L)};function d(L,w){if((typeof w!="string"||w==="")&&(w="utf8"),!s.isEncoding(w))throw new TypeError("Unknown encoding: "+w);var S=v(L,w)|0,F=a(S),G=F.write(L,w);return G!==S&&(F=F.slice(0,G)),F}function f(L){for(var w=L.length<0?0:R(L.length)|0,S=a(w),F=0;F=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return L|0}function m(L){return+L!=L&&(L=0),s.alloc(+L)}s.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==s.prototype},s.compare=function(w,S){if(ge(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),ge(S,Uint8Array)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(w)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===S)return 0;for(var F=w.length,G=S.length,ee=0,K=Math.min(F,G);eeG.length?s.from(K).copy(G,ee):Uint8Array.prototype.set.call(G,K,ee);else if(s.isBuffer(K))K.copy(G,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=K.length}return G};function v(L,w){if(s.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||ge(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);var S=L.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&S===0)return 0;for(var G=!1;;)switch(w){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return A(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return H(L).length;default:if(G)return F?-1:A(L).length;w=(""+w).toLowerCase(),G=!0}}s.byteLength=v;function x(L,w,S){var F=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,w>>>=0,S<=w))return"";for(L||(L="utf8");;)switch(L){case"hex":return k(this,w,S);case"utf8":case"utf-8":return b(this,w,S);case"ascii":return X(this,w,S);case"latin1":case"binary":return V(this,w,S);case"base64":return I(this,w,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,w,S);default:if(F)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),F=!0}}s.prototype._isBuffer=!0;function O(L,w,S){var F=L[w];L[w]=L[S],L[S]=F}s.prototype.swap16=function(){var w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var S=0;SS&&(w+=" ... "),""},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(w,S,F,G,ee){if(ge(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),!s.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(S===void 0&&(S=0),F===void 0&&(F=w?w.length:0),G===void 0&&(G=0),ee===void 0&&(ee=this.length),S<0||F>w.length||G<0||ee>this.length)throw new RangeError("out of range index");if(G>=ee&&S>=F)return 0;if(G>=ee)return-1;if(S>=F)return 1;if(S>>>=0,F>>>=0,G>>>=0,ee>>>=0,this===w)return 0;for(var K=ee-G,J=F-S,te=Math.min(K,J),ae=this.slice(G,ee),he=w.slice(S,F),xe=0;xe2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,D(S)&&(S=G?0:L.length-1),S<0&&(S=L.length+S),S>=L.length){if(G)return-1;S=L.length-1}else if(S<0)if(G)S=0;else return-1;if(typeof w=="string"&&(w=s.from(w,F)),s.isBuffer(w))return w.length===0?-1:N(L,w,S,F,G);if(typeof w=="number")return w=w&255,typeof Uint8Array.prototype.indexOf=="function"?G?Uint8Array.prototype.indexOf.call(L,w,S):Uint8Array.prototype.lastIndexOf.call(L,w,S):N(L,[w],S,F,G);throw new TypeError("val must be string, number or Buffer")}function N(L,w,S,F,G){var ee=1,K=L.length,J=w.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(L.length<2||w.length<2)return-1;ee=2,K/=2,J/=2,S/=2}function te(Me,Xe){return ee===1?Me[Xe]:Me.readUInt16BE(Xe*ee)}var ae;if(G){var he=-1;for(ae=S;aeK&&(S=K-J),ae=S;ae>=0;ae--){for(var xe=!0,_e=0;_eG&&(F=G)):F=G;var ee=w.length;F>ee/2&&(F=ee/2);for(var K=0;K>>0,isFinite(F)?(F=F>>>0,G===void 0&&(G="utf8")):(G=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ee=this.length-S;if((F===void 0||F>ee)&&(F=ee),w.length>0&&(F<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");for(var K=!1;;)switch(G){case"hex":return M(this,w,S,F);case"utf8":case"utf-8":return _(this,w,S,F);case"ascii":case"latin1":case"binary":return B(this,w,S,F);case"base64":return q(this,w,S,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,w,S,F);default:if(K)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),K=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(L,w,S){return w===0&&S===L.length?e.fromByteArray(L):e.fromByteArray(L.slice(w,S))}function b(L,w,S){S=Math.min(L.length,S);for(var F=[],G=w;G239?4:ee>223?3:ee>191?2:1;if(G+J<=S){var te,ae,he,xe;switch(J){case 1:ee<128&&(K=ee);break;case 2:te=L[G+1],(te&192)===128&&(xe=(ee&31)<<6|te&63,xe>127&&(K=xe));break;case 3:te=L[G+1],ae=L[G+2],(te&192)===128&&(ae&192)===128&&(xe=(ee&15)<<12|(te&63)<<6|ae&63,xe>2047&&(xe<55296||xe>57343)&&(K=xe));break;case 4:te=L[G+1],ae=L[G+2],he=L[G+3],(te&192)===128&&(ae&192)===128&&(he&192)===128&&(xe=(ee&15)<<18|(te&63)<<12|(ae&63)<<6|he&63,xe>65535&&xe<1114112&&(K=xe))}}K===null?(K=65533,J=1):K>65535&&(K-=65536,F.push(K>>>10&1023|55296),K=56320|K&1023),F.push(K),G+=J}return U(F)}var P=4096;function U(L){var w=L.length;if(w<=P)return String.fromCharCode.apply(String,L);for(var S="",F=0;FF)&&(S=F);for(var G="",ee=w;eeF&&(w=F),S<0?(S+=F,S<0&&(S=0)):S>F&&(S=F),SS)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(w,S,F){w=w>>>0,S=S>>>0,F||Z(w,S,this.length);for(var G=this[w],ee=1,K=0;++K>>0,S=S>>>0,F||Z(w,S,this.length);for(var G=this[w+--S],ee=1;S>0&&(ee*=256);)G+=this[w+--S]*ee;return G},s.prototype.readUint8=s.prototype.readUInt8=function(w,S){return w=w>>>0,S||Z(w,1,this.length),this[w]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(w,S){return w=w>>>0,S||Z(w,2,this.length),this[w]|this[w+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(w,S){return w=w>>>0,S||Z(w,2,this.length),this[w]<<8|this[w+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(w,S){return w=w>>>0,S||Z(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(w,S){return w=w>>>0,S||Z(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},s.prototype.readIntLE=function(w,S,F){w=w>>>0,S=S>>>0,F||Z(w,S,this.length);for(var G=this[w],ee=1,K=0;++K=ee&&(G-=Math.pow(2,8*S)),G},s.prototype.readIntBE=function(w,S,F){w=w>>>0,S=S>>>0,F||Z(w,S,this.length);for(var G=S,ee=1,K=this[w+--G];G>0&&(ee*=256);)K+=this[w+--G]*ee;return ee*=128,K>=ee&&(K-=Math.pow(2,8*S)),K},s.prototype.readInt8=function(w,S){return w=w>>>0,S||Z(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},s.prototype.readInt16LE=function(w,S){w=w>>>0,S||Z(w,2,this.length);var F=this[w]|this[w+1]<<8;return F&32768?F|4294901760:F},s.prototype.readInt16BE=function(w,S){w=w>>>0,S||Z(w,2,this.length);var F=this[w+1]|this[w]<<8;return F&32768?F|4294901760:F},s.prototype.readInt32LE=function(w,S){return w=w>>>0,S||Z(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},s.prototype.readInt32BE=function(w,S){return w=w>>>0,S||Z(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},s.prototype.readFloatLE=function(w,S){return w=w>>>0,S||Z(w,4,this.length),n.read(this,w,!0,23,4)},s.prototype.readFloatBE=function(w,S){return w=w>>>0,S||Z(w,4,this.length),n.read(this,w,!1,23,4)},s.prototype.readDoubleLE=function(w,S){return w=w>>>0,S||Z(w,8,this.length),n.read(this,w,!0,52,8)},s.prototype.readDoubleBE=function(w,S){return w=w>>>0,S||Z(w,8,this.length),n.read(this,w,!1,52,8)};function C(L,w,S,F,G,ee){if(!s.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>G||wL.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(w,S,F,G){if(w=+w,S=S>>>0,F=F>>>0,!G){var ee=Math.pow(2,8*F)-1;C(this,w,S,F,ee,0)}var K=1,J=0;for(this[S]=w&255;++J>>0,F=F>>>0,!G){var ee=Math.pow(2,8*F)-1;C(this,w,S,F,ee,0)}var K=F-1,J=1;for(this[S+K]=w&255;--K>=0&&(J*=256);)this[S+K]=w/J&255;return S+F},s.prototype.writeUint8=s.prototype.writeUInt8=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,1,255,0),this[S]=w&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,2,65535,0),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,2,65535,0),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,4,4294967295,0),this[S+3]=w>>>24,this[S+2]=w>>>16,this[S+1]=w>>>8,this[S]=w&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,4,4294967295,0),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4},s.prototype.writeIntLE=function(w,S,F,G){if(w=+w,S=S>>>0,!G){var ee=Math.pow(2,8*F-1);C(this,w,S,F,ee-1,-ee)}var K=0,J=1,te=0;for(this[S]=w&255;++K>0)-te&255;return S+F},s.prototype.writeIntBE=function(w,S,F,G){if(w=+w,S=S>>>0,!G){var ee=Math.pow(2,8*F-1);C(this,w,S,F,ee-1,-ee)}var K=F-1,J=1,te=0;for(this[S+K]=w&255;--K>=0&&(J*=256);)w<0&&te===0&&this[S+K+1]!==0&&(te=1),this[S+K]=(w/J>>0)-te&255;return S+F},s.prototype.writeInt8=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,1,127,-128),w<0&&(w=255+w+1),this[S]=w&255,S+1},s.prototype.writeInt16LE=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,2,32767,-32768),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeInt16BE=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,2,32767,-32768),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeInt32LE=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,4,2147483647,-2147483648),this[S]=w&255,this[S+1]=w>>>8,this[S+2]=w>>>16,this[S+3]=w>>>24,S+4},s.prototype.writeInt32BE=function(w,S,F){return w=+w,S=S>>>0,F||C(this,w,S,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4};function ne(L,w,S,F,G,ee){if(S+F>L.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function oe(L,w,S,F,G){return w=+w,S=S>>>0,G||ne(L,w,S,4),n.write(L,w,S,F,23,4),S+4}s.prototype.writeFloatLE=function(w,S,F){return oe(this,w,S,!0,F)},s.prototype.writeFloatBE=function(w,S,F){return oe(this,w,S,!1,F)};function ue(L,w,S,F,G){return w=+w,S=S>>>0,G||ne(L,w,S,8),n.write(L,w,S,F,52,8),S+8}s.prototype.writeDoubleLE=function(w,S,F){return ue(this,w,S,!0,F)},s.prototype.writeDoubleBE=function(w,S,F){return ue(this,w,S,!1,F)},s.prototype.copy=function(w,S,F,G){if(!s.isBuffer(w))throw new TypeError("argument should be a Buffer");if(F||(F=0),!G&&G!==0&&(G=this.length),S>=w.length&&(S=w.length),S||(S=0),G>0&&G=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),w.length-S>>0,F=F===void 0?this.length:F>>>0,w||(w=0);var K;if(typeof w=="number")for(K=S;K55295&&S<57344){if(!G){if(S>56319){(w-=3)>-1&&ee.push(239,191,189);continue}else if(K+1===F){(w-=3)>-1&&ee.push(239,191,189);continue}G=S;continue}if(S<56320){(w-=3)>-1&&ee.push(239,191,189),G=S;continue}S=(G-55296<<10|S-56320)+65536}else G&&(w-=3)>-1&&ee.push(239,191,189);if(G=null,S<128){if((w-=1)<0)break;ee.push(S)}else if(S<2048){if((w-=2)<0)break;ee.push(S>>6|192,S&63|128)}else if(S<65536){if((w-=3)<0)break;ee.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((w-=4)<0)break;ee.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return ee}function Q(L){for(var w=[],S=0;S>8,G=S%256,ee.push(G),ee.push(F);return ee}function H(L){return e.toByteArray(W(L))}function j(L,w,S,F){for(var G=0;G=w.length||G>=L.length);++G)w[G+S]=L[G];return G}function ge(L,w){return L instanceof w||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===w.name}function D(L){return L!==L}var ie=function(){for(var L="0123456789abcdef",w=new Array(256),S=0;S<16;++S)for(var F=S*16,G=0;G<16;++G)w[F+G]=L[S]+L[G];return w}()}(Xl)),Xl}var Vl={},Yl={},Bl,H1;function VR(){return H1||(H1=1,Bl=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),Bl}var Zl,G1;function af(){if(G1)return Zl;G1=1;var t=VR();return Zl=function(){return t()&&!!Symbol.toStringTag},Zl}var kl,J1;function tO(){if(J1)return kl;J1=1;var t=typeof Symbol!="undefined"&&Symbol,e=VR();return kl=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},kl}var Ql,z1;function nO(){if(z1)return Ql;z1=1;var t={foo:{}},e=Object;return Ql=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Ql}var Kl,$1;function rO(){if($1)return Kl;$1=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,r="[object Function]",i=function(c,u){for(var l=[],h=0;h1&&typeof b!="boolean")throw new r('"allowMissing" argument must be a boolean');if(N(/^%?[^%]*%?$/,I)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=B(I),U=P.length>0?P[0]:"",X=q("%"+U+"%",b),V=X.name,k=X.value,re=!1,Z=X.alias;Z&&(U=Z[0],x(P,v([0,1],Z)));for(var C=1,ne=!0;C=P.length){var W=o(k,oe);ne=!!W,ne&&"get"in W&&!("originalValue"in W.get)?k=W.get:k=k[oe]}else ne=m(k,oe),k=k[oe];ne&&!re&&(f[V]=k)}}return k},Jl}var zl={exports:{}},$l,tg;function YR(){if(tg)return $l;tg=1;var t=Sa(),e=t("%Object.defineProperty%",!0),n=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return n.hasArrayLengthDefineBug=function(){if(!n())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},$l=n,$l}var jl,ng;function cf(){if(ng)return jl;ng=1;var t=Sa(),e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return jl=e,jl}var ql,rg;function oO(){if(rg)return ql;rg=1;var t=YR()(),e=Sa(),n=t&&e("%Object.defineProperty%",!0);if(n)try{n({},"a",{value:1})}catch{n=!1}var r=e("%SyntaxError%"),i=e("%TypeError%"),o=cf();return ql=function(s,c,u){if(!s||typeof s!="object"&&typeof s!="function")throw new i("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,p=!!o&&o(s,c);if(n)n(s,c,{configurable:d===null&&p?p.configurable:!d,enumerable:l===null&&p?p.enumerable:!l,value:u,writable:h===null&&p?p.writable:!h});else if(f||!l&&!h&&!d)s[c]=u;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ql}var eh,ig;function aO(){if(ig)return eh;ig=1;var t=Sa(),e=oO(),n=YR()(),r=cf(),i=t("%TypeError%"),o=t("%Math.floor%");return eh=function(s,c){if(typeof s!="function")throw new i("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||o(c)!==c)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],l=!0,h=!0;if("length"in s&&r){var d=r(s,"length");d&&!d.configurable&&(l=!1),d&&!d.writable&&(h=!1)}return(l||h||!u)&&(n?e(s,"length",c,!0,!0):e(s,"length",c)),s},eh}var og;function BR(){return og||(og=1,function(t){var e=sf(),n=Sa(),r=aO(),i=n("%TypeError%"),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||e.call(a,o),c=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(d){if(typeof d!="function")throw new i("a function is required");var f=s(e,a,arguments);return r(f,1+u(0,d.length-(arguments.length-1)),!0)};var l=function(){return s(e,o,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l}(zl)),zl.exports}var th,ag;function ZR(){if(ag)return th;ag=1;var t=Sa(),e=BR(),n=e(t("String.prototype.indexOf"));return th=function(i,o){var a=t(i,!!o);return typeof a=="function"&&n(i,".prototype.")>-1?e(a):a},th}var nh,sg;function sO(){if(sg)return nh;sg=1;var t=af()(),e=ZR(),n=e("Object.prototype.toString"),r=function(s){return t&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:n(s)==="[object Arguments]"},i=function(s){return r(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&n(s)!=="[object Array]"&&n(s.callee)==="[object Function]"},o=function(){return r(arguments)}();return r.isLegacyArguments=i,nh=o?r:i,nh}var rh,cg;function cO(){if(cg)return rh;cg=1;var t=Object.prototype.toString,e=Function.prototype.toString,n=/^\s*(?:function)?\*/,r=af()(),i=Object.getPrototypeOf,o=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},a;return rh=function(c){if(typeof c!="function")return!1;if(n.test(e.call(c)))return!0;if(!r){var u=t.call(c);return u==="[object GeneratorFunction]"}if(!i)return!1;if(typeof a=="undefined"){var l=o();a=l?i(l):!1}return i(c)===a},rh}var ih,ug;function uO(){if(ug)return ih;ug=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,r;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw r}}),r={},e(function(){throw 42},null,n)}catch(m){m!==r&&(e=null)}else e=null;var i=/^\s*class\b/,o=function(v){try{var x=t.call(v);return i.test(x)}catch{return!1}},a=function(v){try{return o(v)?!1:(t.call(v),!0)}catch{return!1}},s=Object.prototype.toString,c="[object Object]",u="[object Function]",l="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",p=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var R=document.all;s.call(R)===s.call(document.all)&&(y=function(v){if((g||!v)&&(typeof v=="undefined"||typeof v=="object"))try{var x=s.call(v);return(x===h||x===d||x===f||x===c)&&v("")==null}catch{}return!1})}return ih=e?function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{e(v,null,n)}catch(x){if(x!==r)return!1}return!o(v)&&a(v)}:function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(p)return a(v);if(o(v))return!1;var x=s.call(v);return x!==u&&x!==l&&!/^\[object HTML/.test(x)?!1:a(v)},ih}var oh,lg;function lO(){if(lg)return oh;lg=1;var t=uO(),e=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=function(c,u,l){for(var h=0,d=c.length;h=3&&(h=l),e.call(c)==="[object Array]"?r(c,u,h):typeof c=="string"?i(c,u,h):o(c,u,h)};return oh=a,oh}var ah,hg;function hO(){if(hg)return ah;hg=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis=="undefined"?Br:globalThis;return ah=function(){for(var r=[],i=0;i-1?R:R!=="Object"?!1:p(y)}return i?f(y):null},sh}var ch,fg;function dO(){if(fg)return ch;fg=1;var t=kR();return ch=function(n){return!!t(n)},ch}var pg;function fO(){return pg||(pg=1,function(t){var e=sO(),n=cO(),r=kR(),i=dO();function o(F){return F.call.bind(F)}var a=typeof BigInt!="undefined",s=typeof Symbol!="undefined",c=o(Object.prototype.toString),u=o(Number.prototype.valueOf),l=o(String.prototype.valueOf),h=o(Boolean.prototype.valueOf);if(a)var d=o(BigInt.prototype.valueOf);if(s)var f=o(Symbol.prototype.valueOf);function p(F,G){if(typeof F!="object")return!1;try{return G(F),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=n,t.isTypedArray=i;function g(F){return typeof Promise!="undefined"&&F instanceof Promise||F!==null&&typeof F=="object"&&typeof F.then=="function"&&typeof F.catch=="function"}t.isPromise=g;function y(F){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(F):i(F)||ne(F)}t.isArrayBufferView=y;function R(F){return r(F)==="Uint8Array"}t.isUint8Array=R;function m(F){return r(F)==="Uint8ClampedArray"}t.isUint8ClampedArray=m;function v(F){return r(F)==="Uint16Array"}t.isUint16Array=v;function x(F){return r(F)==="Uint32Array"}t.isUint32Array=x;function O(F){return r(F)==="Int8Array"}t.isInt8Array=O;function E(F){return r(F)==="Int16Array"}t.isInt16Array=E;function N(F){return r(F)==="Int32Array"}t.isInt32Array=N;function M(F){return r(F)==="Float32Array"}t.isFloat32Array=M;function _(F){return r(F)==="Float64Array"}t.isFloat64Array=_;function B(F){return r(F)==="BigInt64Array"}t.isBigInt64Array=B;function q(F){return r(F)==="BigUint64Array"}t.isBigUint64Array=q;function T(F){return c(F)==="[object Map]"}T.working=typeof Map!="undefined"&&T(new Map);function I(F){return typeof Map=="undefined"?!1:T.working?T(F):F instanceof Map}t.isMap=I;function b(F){return c(F)==="[object Set]"}b.working=typeof Set!="undefined"&&b(new Set);function P(F){return typeof Set=="undefined"?!1:b.working?b(F):F instanceof Set}t.isSet=P;function U(F){return c(F)==="[object WeakMap]"}U.working=typeof WeakMap!="undefined"&&U(new WeakMap);function X(F){return typeof WeakMap=="undefined"?!1:U.working?U(F):F instanceof WeakMap}t.isWeakMap=X;function V(F){return c(F)==="[object WeakSet]"}V.working=typeof WeakSet!="undefined"&&V(new WeakSet);function k(F){return V(F)}t.isWeakSet=k;function re(F){return c(F)==="[object ArrayBuffer]"}re.working=typeof ArrayBuffer!="undefined"&&re(new ArrayBuffer);function Z(F){return typeof ArrayBuffer=="undefined"?!1:re.working?re(F):F instanceof ArrayBuffer}t.isArrayBuffer=Z;function C(F){return c(F)==="[object DataView]"}C.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&C(new DataView(new ArrayBuffer(1),0,1));function ne(F){return typeof DataView=="undefined"?!1:C.working?C(F):F instanceof DataView}t.isDataView=ne;var oe=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function ue(F){return c(F)==="[object SharedArrayBuffer]"}function ce(F){return typeof oe=="undefined"?!1:(typeof ue.working=="undefined"&&(ue.working=ue(new oe)),ue.working?ue(F):F instanceof oe)}t.isSharedArrayBuffer=ce;function W(F){return c(F)==="[object AsyncFunction]"}t.isAsyncFunction=W;function A(F){return c(F)==="[object Map Iterator]"}t.isMapIterator=A;function Q(F){return c(F)==="[object Set Iterator]"}t.isSetIterator=Q;function z(F){return c(F)==="[object Generator]"}t.isGeneratorObject=z;function H(F){return c(F)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=H;function j(F){return p(F,u)}t.isNumberObject=j;function ge(F){return p(F,l)}t.isStringObject=ge;function D(F){return p(F,h)}t.isBooleanObject=D;function ie(F){return a&&p(F,d)}t.isBigIntObject=ie;function L(F){return s&&p(F,f)}t.isSymbolObject=L;function w(F){return j(F)||ge(F)||D(F)||ie(F)||L(F)}t.isBoxedPrimitive=w;function S(F){return typeof Uint8Array!="undefined"&&(Z(F)||ce(F))}t.isAnyArrayBuffer=S,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(t,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})}(Yl)),Yl}var uh,gg;function pO(){return gg||(gg=1,uh=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),uh}var mg;function QR(){return mg||(mg=1,function(t){var e=Object.getOwnPropertyDescriptors||function(ne){for(var oe=Object.keys(ne),ue={},ce=0;ce=ce)return Q;switch(Q){case"%s":return String(ue[oe++]);case"%d":return Number(ue[oe++]);case"%j":try{return JSON.stringify(ue[oe++])}catch{return"[Circular]"}default:return Q}}),A=ue[oe];oe=3&&(oe.depth=arguments[2]),arguments.length>=4&&(oe.colors=arguments[3]),R(ne)?oe.showHidden=ne:ne&&t._extend(oe,ne),N(oe.showHidden)&&(oe.showHidden=!1),N(oe.depth)&&(oe.depth=2),N(oe.colors)&&(oe.colors=!1),N(oe.customInspect)&&(oe.customInspect=!0),oe.colors&&(oe.stylize=s),l(oe,C,oe.depth)}t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(C,ne){var oe=a.styles[ne];return oe?"\x1B["+a.colors[oe][0]+"m"+C+"\x1B["+a.colors[oe][1]+"m":C}function c(C,ne){return C}function u(C){var ne={};return C.forEach(function(oe,ue){ne[oe]=!0}),ne}function l(C,ne,oe){if(C.customInspect&&ne&&T(ne.inspect)&&ne.inspect!==t.inspect&&!(ne.constructor&&ne.constructor.prototype===ne)){var ue=ne.inspect(oe,C);return O(ue)||(ue=l(C,ue,oe)),ue}var ce=h(C,ne);if(ce)return ce;var W=Object.keys(ne),A=u(W);if(C.showHidden&&(W=Object.getOwnPropertyNames(ne)),q(ne)&&(W.indexOf("message")>=0||W.indexOf("description")>=0))return d(ne);if(W.length===0){if(T(ne)){var Q=ne.name?": "+ne.name:"";return C.stylize("[Function"+Q+"]","special")}if(M(ne))return C.stylize(RegExp.prototype.toString.call(ne),"regexp");if(B(ne))return C.stylize(Date.prototype.toString.call(ne),"date");if(q(ne))return d(ne)}var z="",H=!1,j=["{","}"];if(y(ne)&&(H=!0,j=["[","]"]),T(ne)){var ge=ne.name?": "+ne.name:"";z=" [Function"+ge+"]"}if(M(ne)&&(z=" "+RegExp.prototype.toString.call(ne)),B(ne)&&(z=" "+Date.prototype.toUTCString.call(ne)),q(ne)&&(z=" "+d(ne)),W.length===0&&(!H||ne.length==0))return j[0]+z+j[1];if(oe<0)return M(ne)?C.stylize(RegExp.prototype.toString.call(ne),"regexp"):C.stylize("[Object]","special");C.seen.push(ne);var D;return H?D=f(C,ne,oe,A,W):D=W.map(function(ie){return p(C,ne,oe,A,ie,H)}),C.seen.pop(),g(D,z,j)}function h(C,ne){if(N(ne))return C.stylize("undefined","undefined");if(O(ne)){var oe="'"+JSON.stringify(ne).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return C.stylize(oe,"string")}if(x(ne))return C.stylize(""+ne,"number");if(R(ne))return C.stylize(""+ne,"boolean");if(m(ne))return C.stylize("null","null")}function d(C){return"["+Error.prototype.toString.call(C)+"]"}function f(C,ne,oe,ue,ce){for(var W=[],A=0,Q=ne.length;A-1&&(W?Q=Q.split(` `).map(function(H){return" "+H}).join(` `).slice(2):Q=` `+Q.split(` `).map(function(H){return" "+H}).join(` `))):Q=C.stylize("[Circular]","special")),N(A)){if(W&&ce.match(/^\d+$/))return Q;A=JSON.stringify(""+ce),A.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(A=A.slice(1,-1),A=C.stylize(A,"name")):(A=A.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),A=C.stylize(A,"string"))}return A+": "+Q}function g(C,ne,oe){var ue=C.reduce(function(ce,W){return W.indexOf(` `)>=0,ce+W.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?oe[0]+(ne===""?"":ne+` `)+" "+C.join(`, `)+" "+oe[1]:oe[0]+ne+" "+C.join(", ")+" "+oe[1]}t.types=fO();function y(C){return Array.isArray(C)}t.isArray=y;function R(C){return typeof C=="boolean"}t.isBoolean=R;function m(C){return C===null}t.isNull=m;function v(C){return C==null}t.isNullOrUndefined=v;function x(C){return typeof C=="number"}t.isNumber=x;function O(C){return typeof C=="string"}t.isString=O;function E(C){return typeof C=="symbol"}t.isSymbol=E;function N(C){return C===void 0}t.isUndefined=N;function M(C){return _(C)&&b(C)==="[object RegExp]"}t.isRegExp=M,t.types.isRegExp=M;function _(C){return typeof C=="object"&&C!==null}t.isObject=_;function B(C){return _(C)&&b(C)==="[object Date]"}t.isDate=B,t.types.isDate=B;function q(C){return _(C)&&(b(C)==="[object Error]"||C instanceof Error)}t.isError=q,t.types.isNativeError=q;function T(C){return typeof C=="function"}t.isFunction=T;function I(C){return C===null||typeof C=="boolean"||typeof C=="number"||typeof C=="string"||typeof C=="symbol"||typeof C=="undefined"}t.isPrimitive=I,t.isBuffer=pO();function b(C){return Object.prototype.toString.call(C)}function P(C){return C<10?"0"+C.toString(10):C.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(){var C=new Date,ne=[P(C.getHours()),P(C.getMinutes()),P(C.getSeconds())].join(":");return[C.getDate(),U[C.getMonth()],ne].join(" ")}t.log=function(){console.log("%s - %s",X(),t.format.apply(t,arguments))},t.inherits=yo,t._extend=function(C,ne){if(!ne||!_(ne))return C;for(var oe=Object.keys(ne),ue=oe.length;ue--;)C[oe[ue]]=ne[oe[ue]];return C};function V(C,ne){return Object.prototype.hasOwnProperty.call(C,ne)}var k=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;t.promisify=function(ne){if(typeof ne!="function")throw new TypeError('The "original" argument must be of type Function');if(k&&ne[k]){var oe=ne[k];if(typeof oe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(oe,k,{value:oe,enumerable:!1,writable:!1,configurable:!0}),oe}function oe(){for(var ue,ce,W=new Promise(function(z,H){ue=z,ce=H}),A=[],Q=0;Q0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(p){var g={data:p,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var g=this.head,y=""+g.data;g=g.next;)y+=p+g.data;return y}},{key:"concat",value:function(p){if(this.length===0)return s.alloc(0);for(var g=s.allocUnsafe(p>>>0),y=this.head,R=0;y;)h(y.data,g,R),R+=y.data.length,y=y.next;return g}},{key:"consume",value:function(p,g){var y;return pm.length?m.length:p;if(v===m.length?R+=m:R+=m.slice(0,p),p-=v,p===0){v===m.length?(++y,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=m.slice(v));break}++y}return this.length-=y,R}},{key:"_getBuffer",value:function(p){var g=s.allocUnsafe(p),y=this.head,R=1;for(y.data.copy(g),p-=y.data.length;y=y.next;){var m=y.data,v=p>m.length?m.length:p;if(m.copy(g,g.length-p,0,v),p-=v,p===0){v===m.length?(++R,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=m.slice(v));break}++R}return this.length-=R,g}},{key:l,value:function(p,g){return u(this,e({},g,{depth:0,customInspect:!1}))}}]),d}(),lh}var hh,yg;function KR(){if(yg)return hh;yg=1;function t(a,s){var c=this,u=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return u||l?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,nt.nextTick(i,this,a)):nt.nextTick(i,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(h){!s&&h?c._writableState?c._writableState.errorEmitted?nt.nextTick(n,c):(c._writableState.errorEmitted=!0,nt.nextTick(e,c,h)):nt.nextTick(e,c,h):s?(nt.nextTick(n,c),s(h)):nt.nextTick(n,c)}),this)}function e(a,s){i(a,s),n(a)}function n(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(a,s){a.emit("error",s)}function o(a,s){var c=a._readableState,u=a._writableState;c&&c.autoDestroy||u&&u.autoDestroy?a.destroy(s):a.emit("error",s)}return hh={destroy:t,undestroy:r,errorOrDestroy:o},hh}var dh={},vg;function Da(){if(vg)return dh;vg=1;function t(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,s.__proto__=c}var e={};function n(s,c,u){u||(u=Error);function l(d,f,p){return typeof c=="string"?c:c(d,f,p)}var h=function(d){t(f,d);function f(p,g,y){return d.call(this,l(p,g,y))||this}return f}(u);h.prototype.name=u.name,h.prototype.code=s,e[s]=h}function r(s,c){if(Array.isArray(s)){var u=s.length;return s=s.map(function(l){return String(l)}),u>2?"one of ".concat(c," ").concat(s.slice(0,u-1).join(", "),", or ")+s[u-1]:u===2?"one of ".concat(c," ").concat(s[0]," or ").concat(s[1]):"of ".concat(c," ").concat(s[0])}else return"of ".concat(c," ").concat(String(s))}function i(s,c,u){return s.substr(!u||u<0?0:+u,c.length)===c}function o(s,c,u){return(u===void 0||u>s.length)&&(u=s.length),s.substring(u-c.length,u)===c}function a(s,c,u){return typeof u!="number"&&(u=0),u+c.length>s.length?!1:s.indexOf(c,u)!==-1}return n("ERR_INVALID_OPT_VALUE",function(s,c){return'The value "'+c+'" is invalid for option "'+s+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(s,c,u){var l;typeof c=="string"&&i(c,"not ")?(l="must not be",c=c.replace(/^not /,"")):l="must be";var h;if(o(s," argument"))h="The ".concat(s," ").concat(l," ").concat(r(c,"type"));else{var d=a(s,".")?"property":"argument";h='The "'.concat(s,'" ').concat(d," ").concat(l," ").concat(r(c,"type"))}return h+=". Received type ".concat(typeof u),h},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),dh.codes=e,dh}var fh,bg;function HR(){if(bg)return fh;bg=1;var t=Da().codes.ERR_INVALID_OPT_VALUE;function e(r,i,o){return r.highWaterMark!=null?r.highWaterMark:i?r[o]:null}function n(r,i,o,a){var s=e(i,a,o);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var c=a?o:"highWaterMark";throw new t(c,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return fh={getHighWaterMark:n},fh}var ph,xg;function mO(){if(xg)return ph;xg=1,ph=t;function t(n,r){if(e("noDeprecation"))return n;var i=!1;function o(){if(!i){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return n.apply(this,arguments)}return o}function e(n){try{if(!Br.localStorage)return!1}catch{return!1}var r=Br.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}return ph}var gh,wg;function GR(){if(wg)return gh;wg=1,gh=M;function t(ce){var W=this;this.next=null,this.entry=null,this.finish=function(){ue(W,ce)}}var e;M.WritableState=E;var n={deprecate:mO()},r=XR(),i=Mu().Buffer,o=Br.Uint8Array||function(){};function a(ce){return i.from(ce)}function s(ce){return i.isBuffer(ce)||ce instanceof o}var c=KR(),u=HR(),l=u.getHighWaterMark,h=Da().codes,d=h.ERR_INVALID_ARG_TYPE,f=h.ERR_METHOD_NOT_IMPLEMENTED,p=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,y=h.ERR_STREAM_DESTROYED,R=h.ERR_STREAM_NULL_VALUES,m=h.ERR_STREAM_WRITE_AFTER_END,v=h.ERR_UNKNOWN_ENCODING,x=c.errorOrDestroy;yo(M,r);function O(){}function E(ce,W,A){e=e||la(),ce=ce||{},typeof A!="boolean"&&(A=W instanceof e),this.objectMode=!!ce.objectMode,A&&(this.objectMode=this.objectMode||!!ce.writableObjectMode),this.highWaterMark=l(this,ce,"writableHighWaterMark",A),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Q=ce.decodeStrings===!1;this.decodeStrings=!Q,this.defaultEncoding=ce.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(z){U(W,z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=ce.emitClose!==!1,this.autoDestroy=!!ce.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}E.prototype.getBuffer=function(){for(var W=this.bufferedRequest,A=[];W;)A.push(W),W=W.next;return A},function(){try{Object.defineProperty(E.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var N;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(N=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(W){return N.call(this,W)?!0:this!==M?!1:W&&W._writableState instanceof E}})):N=function(W){return W instanceof this};function M(ce){e=e||la();var W=this instanceof e;if(!W&&!N.call(M,this))return new M(ce);this._writableState=new E(ce,this,W),this.writable=!0,ce&&(typeof ce.write=="function"&&(this._write=ce.write),typeof ce.writev=="function"&&(this._writev=ce.writev),typeof ce.destroy=="function"&&(this._destroy=ce.destroy),typeof ce.final=="function"&&(this._final=ce.final)),r.call(this)}M.prototype.pipe=function(){x(this,new g)};function _(ce,W){var A=new m;x(ce,A),nt.nextTick(W,A)}function B(ce,W,A,Q){var z;return A===null?z=new R:typeof A!="string"&&!W.objectMode&&(z=new d("chunk",["string","Buffer"],A)),z?(x(ce,z),nt.nextTick(Q,z),!1):!0}M.prototype.write=function(ce,W,A){var Q=this._writableState,z=!1,H=!Q.objectMode&&s(ce);return H&&!i.isBuffer(ce)&&(ce=a(ce)),typeof W=="function"&&(A=W,W=null),H?W="buffer":W||(W=Q.defaultEncoding),typeof A!="function"&&(A=O),Q.ending?_(this,A):(H||B(this,Q,ce,A))&&(Q.pendingcb++,z=T(this,Q,H,ce,W,A)),z},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var ce=this._writableState;ce.corked&&(ce.corked--,!ce.writing&&!ce.corked&&!ce.bufferProcessing&&ce.bufferedRequest&&k(this,ce))},M.prototype.setDefaultEncoding=function(W){if(typeof W=="string"&&(W=W.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((W+"").toLowerCase())>-1))throw new v(W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function q(ce,W,A){return!ce.objectMode&&ce.decodeStrings!==!1&&typeof W=="string"&&(W=i.from(W,A)),W}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(ce,W,A,Q,z,H){if(!A){var j=q(W,Q,z);Q!==j&&(A=!0,z="buffer",Q=j)}var ge=W.objectMode?1:Q.length;W.length+=ge;var D=W.length>5===6?2:R>>4===14?3:R>>3===30?4:R>>6===2?-1:-2}function a(R,m,v){var x=m.length-1;if(x=0?(O>0&&(R.lastNeed=O-1),O):--x=0?(O>0&&(R.lastNeed=O-2),O):--x=0?(O>0&&(O===2?O=0:R.lastNeed=O-3),O):0))}function s(R,m,v){if((m[0]&192)!==128)return R.lastNeed=0,"\uFFFD";if(R.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return R.lastNeed=1,"\uFFFD";if(R.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return R.lastNeed=2,"\uFFFD"}}function c(R){var m=this.lastTotal-this.lastNeed,v=s(this,R);if(v!==void 0)return v;if(this.lastNeed<=R.length)return R.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);R.copy(this.lastChar,m,0,R.length),this.lastNeed-=R.length}function u(R,m){var v=a(this,R,m);if(!this.lastNeed)return R.toString("utf8",m);this.lastTotal=v;var x=R.length-(v-this.lastNeed);return R.copy(this.lastChar,0,x),R.toString("utf8",m,x)}function l(R){var m=R&&R.length?this.write(R):"";return this.lastNeed?m+"\uFFFD":m}function h(R,m){if((R.length-m)%2===0){var v=R.toString("utf16le",m);if(v){var x=v.charCodeAt(v.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=R[R.length-1],R.toString("utf16le",m,R.length-1)}function d(R){var m=R&&R.length?this.write(R):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,v)}return m}function f(R,m){var v=(R.length-m)%3;return v===0?R.toString("base64",m):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=R[R.length-1]:(this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1]),R.toString("base64",m,R.length-v))}function p(R){var m=R&&R.length?this.write(R):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function g(R){return R.toString(this.encoding)}function y(R){return R&&R.length?this.write(R):""}return Rh}var yh,Og;function uf(){if(Og)return yh;Og=1;var t=Da().codes.ERR_STREAM_PREMATURE_CLOSE;function e(o){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,c=new Array(s),u=0;u0)if(typeof j!="string"&&!L.objectMode&&Object.getPrototypeOf(j)!==r.prototype&&(j=o(j)),D)L.endEmitted?O(H,new R):q(H,L,j,!0);else if(L.ended)O(H,new g);else{if(L.destroyed)return!1;L.reading=!1,L.decoder&&!ge?(j=L.decoder.write(j),L.objectMode||j.length!==0?q(H,L,j,!1):k(H,L)):q(H,L,j,!1)}else D||(L.reading=!1,k(H,L))}return!L.ended&&(L.length=I?H=I:(H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++),H}function P(H,j){return H<=0||j.length===0&&j.ended?0:j.objectMode?1:H!==H?j.flowing&&j.length?j.buffer.head.data.length:j.length:(H>j.highWaterMark&&(j.highWaterMark=b(H)),H<=j.length?H:j.ended?j.length:(j.needReadable=!0,0))}_.prototype.read=function(H){c("read",H),H=parseInt(H,10);var j=this._readableState,ge=H;if(H!==0&&(j.emittedReadable=!1),H===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return c("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?A(this):X(this),null;if(H=P(H,j),H===0&&j.ended)return j.length===0&&A(this),null;var D=j.needReadable;c("need readable",D),(j.length===0||j.length-H0?ie=W(H,j):ie=null,ie===null?(j.needReadable=j.length<=j.highWaterMark,H=0):(j.length-=H,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),ge!==H&&j.ended&&A(this)),ie!==null&&this.emit("data",ie),ie};function U(H,j){if(c("onEofChunk"),!j.ended){if(j.decoder){var ge=j.decoder.end();ge&&ge.length&&(j.buffer.push(ge),j.length+=j.objectMode?1:ge.length)}j.ended=!0,j.sync?X(H):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,V(H)))}}function X(H){var j=H._readableState;c("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(c("emitReadable",j.flowing),j.emittedReadable=!0,nt.nextTick(V,H))}function V(H){var j=H._readableState;c("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(H.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,ce(H)}function k(H,j){j.readingMore||(j.readingMore=!0,nt.nextTick(re,H,j))}function re(H,j){for(;!j.reading&&!j.ended&&(j.length1&&z(D.pipes,H)!==-1)&&!G&&(c("false write response, pause",D.awaitDrain),D.awaitDrain++),ge.pause())}function J(xe){c("onerror",xe),he(),H.removeListener("error",J),e(H,"error")===0&&O(H,xe)}N(H,"error",J);function te(){H.removeListener("finish",ae),he()}H.once("close",te);function ae(){c("onfinish"),H.removeListener("close",te),he()}H.once("finish",ae);function he(){c("unpipe"),ge.unpipe(H)}return H.emit("pipe",ge),D.flowing||(c("pipe resume"),ge.resume()),H};function Z(H){return function(){var ge=H._readableState;c("pipeOnDrain",ge.awaitDrain),ge.awaitDrain&&ge.awaitDrain--,ge.awaitDrain===0&&e(H,"data")&&(ge.flowing=!0,ce(H))}}_.prototype.unpipe=function(H){var j=this._readableState,ge={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return H&&H!==j.pipes?this:(H||(H=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,H&&H.emit("unpipe",this,ge),this);if(!H){var D=j.pipes,ie=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var L=0;L0,D.flowing!==!1&&this.resume()):H==="readable"&&!D.endEmitted&&!D.readableListening&&(D.readableListening=D.needReadable=!0,D.flowing=!1,D.emittedReadable=!1,c("on readable",D.length,D.reading),D.length?X(this):D.reading||nt.nextTick(ne,this)),ge},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(H,j){var ge=n.prototype.removeListener.call(this,H,j);return H==="readable"&&nt.nextTick(C,this),ge},_.prototype.removeAllListeners=function(H){var j=n.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&nt.nextTick(C,this),j};function C(H){var j=H._readableState;j.readableListening=H.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:H.listenerCount("data")>0&&H.resume()}function ne(H){c("readable nexttick read 0"),H.read(0)}_.prototype.resume=function(){var H=this._readableState;return H.flowing||(c("resume"),H.flowing=!H.readableListening,oe(this,H)),H.paused=!1,this};function oe(H,j){j.resumeScheduled||(j.resumeScheduled=!0,nt.nextTick(ue,H,j))}function ue(H,j){c("resume",j.reading),j.reading||H.read(0),j.resumeScheduled=!1,H.emit("resume"),ce(H),j.flowing&&!j.reading&&H.read(0)}_.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ce(H){var j=H._readableState;for(c("flow",j.flowing);j.flowing&&H.read()!==null;);}_.prototype.wrap=function(H){var j=this,ge=this._readableState,D=!1;H.on("end",function(){if(c("wrapped end"),ge.decoder&&!ge.ended){var w=ge.decoder.end();w&&w.length&&j.push(w)}j.push(null)}),H.on("data",function(w){if(c("wrapped data"),ge.decoder&&(w=ge.decoder.write(w)),!(ge.objectMode&&w==null)&&!(!ge.objectMode&&(!w||!w.length))){var S=j.push(w);S||(D=!0,H.pause())}});for(var ie in H)this[ie]===void 0&&typeof H[ie]=="function"&&(this[ie]=function(S){return function(){return H[S].apply(H,arguments)}}(ie));for(var L=0;L=j.length?(j.decoder?ge=j.buffer.join(""):j.buffer.length===1?ge=j.buffer.first():ge=j.buffer.concat(j.length),j.buffer.clear()):ge=j.buffer.consume(H,j.decoder),ge}function A(H){var j=H._readableState;c("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,nt.nextTick(Q,j,H))}function Q(H,j){if(c("endReadableNT",H.endEmitted,H.length),!H.endEmitted&&H.length===0&&(H.endEmitted=!0,j.readable=!1,j.emit("end"),H.autoDestroy)){var ge=j._writableState;(!ge||ge.autoDestroy&&ge.finished)&&j.destroy()}}typeof Symbol=="function"&&(_.from=function(H,j){return x===void 0&&(x=vO()),x(_,H,j)});function z(H,j){for(var ge=0,D=H.length;ge0;return s(m,x,O,function(E){y||(y=E),E&&R.forEach(c),!x&&(R.forEach(c),g(y))})});return f.reduce(u)}return Sh=h,Sh}var lf=Tr,hf=of.EventEmitter,wO=yo;wO(Tr,hf);Tr.Readable=JR();Tr.Writable=GR();Tr.Duplex=la();Tr.Transform=zR();Tr.PassThrough=bO();Tr.finished=uf();Tr.pipeline=xO();Tr.Stream=Tr;function Tr(){hf.call(this)}Tr.prototype.pipe=function(t,e){var n=this;function r(l){t.writable&&t.write(l)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(n.on("end",a),n.on("close",s));var o=!1;function a(){o||(o=!0,t.end())}function s(){o||(o=!0,typeof t.destroy=="function"&&t.destroy())}function c(l){if(u(),hf.listenerCount(this,"error")===0)throw l}n.on("error",c),t.on("error",c);function u(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",a),n.removeListener("close",s),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t};(function(t){(function(e){e.parser=function(W,A){return new r(W,A)},e.SAXParser=r,e.SAXStream=l,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(W,A){if(!(this instanceof r))return new r(W,A);var Q=this;o(Q),Q.q=Q.c="",Q.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Q.opt=A||{},Q.opt.lowercase=Q.opt.lowercase||Q.opt.lowercasetags,Q.looseCase=Q.opt.lowercase?"toLowerCase":"toUpperCase",Q.tags=[],Q.closed=Q.closedRoot=Q.sawRoot=!1,Q.tag=Q.error=null,Q.strict=!!W,Q.noscript=!!(W||Q.opt.noscript),Q.state=_.BEGIN,Q.strictEntities=Q.opt.strictEntities,Q.ENTITIES=Q.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Q.attribList=[],Q.opt.xmlns&&(Q.ns=Object.create(g)),Q.trackPosition=Q.opt.position!==!1,Q.trackPosition&&(Q.position=Q.line=Q.column=0),q(Q,"onready")}Object.create||(Object.create=function(W){function A(){}A.prototype=W;var Q=new A;return Q}),Object.keys||(Object.keys=function(W){var A=[];for(var Q in W)W.hasOwnProperty(Q)&&A.push(Q);return A});function i(W){for(var A=Math.max(e.MAX_BUFFER_LENGTH,10),Q=0,z=0,H=n.length;zA)switch(n[z]){case"textNode":I(W);break;case"cdata":T(W,"oncdata",W.cdata),W.cdata="";break;case"script":T(W,"onscript",W.script),W.script="";break;default:P(W,"Max buffer length exceeded: "+n[z])}Q=Math.max(Q,j)}var ge=e.MAX_BUFFER_LENGTH-Q;W.bufferCheckPosition=ge+W.position}function o(W){for(var A=0,Q=n.length;A"||x(W)}function N(W,A){return W.test(A)}function M(W,A){return!N(W,A)}var _=0;e.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(W){var A=e.ENTITIES[W],Q=typeof A=="number"?String.fromCharCode(A):A;e.ENTITIES[W]=Q});for(var B in e.STATE)e.STATE[e.STATE[B]]=B;_=e.STATE;function q(W,A,Q){W[A]&&W[A](Q)}function T(W,A,Q){W.textNode&&I(W),q(W,A,Q)}function I(W){W.textNode=b(W.opt,W.textNode),W.textNode&&q(W,"ontext",W.textNode),W.textNode=""}function b(W,A){return W.trim&&(A=A.trim()),W.normalize&&(A=A.replace(/\s+/g," ")),A}function P(W,A){return I(W),W.trackPosition&&(A+=` Line: `+W.line+` Column: `+W.column+` Char: `+W.c),A=new Error(A),W.error=A,q(W,"onerror",A),W}function U(W){return W.sawRoot&&!W.closedRoot&&X(W,"Unclosed root tag"),W.state!==_.BEGIN&&W.state!==_.BEGIN_WHITESPACE&&W.state!==_.TEXT&&P(W,"Unexpected end"),I(W),W.c="",W.closed=!0,q(W,"onend"),r.call(W,W.strict,W.opt),W}function X(W,A){if(typeof W!="object"||!(W instanceof r))throw new Error("bad call to strictFail");W.strict&&P(W,A)}function V(W){W.strict||(W.tagName=W.tagName[W.looseCase]());var A=W.tags[W.tags.length-1]||W,Q=W.tag={name:W.tagName,attributes:{}};W.opt.xmlns&&(Q.ns=A.ns),W.attribList.length=0,T(W,"onopentagstart",Q)}function k(W,A){var Q=W.indexOf(":"),z=Q<0?["",W]:W.split(":"),H=z[0],j=z[1];return A&&W==="xmlns"&&(H="xmlns",j=""),{prefix:H,local:j}}function re(W){if(W.strict||(W.attribName=W.attribName[W.looseCase]()),W.attribList.indexOf(W.attribName)!==-1||W.tag.attributes.hasOwnProperty(W.attribName)){W.attribName=W.attribValue="";return}if(W.opt.xmlns){var A=k(W.attribName,!0),Q=A.prefix,z=A.local;if(Q==="xmlns")if(z==="xml"&&W.attribValue!==f)X(W,"xml: prefix must be bound to "+f+` Actual: `+W.attribValue);else if(z==="xmlns"&&W.attribValue!==p)X(W,"xmlns: prefix must be bound to "+p+` Actual: `+W.attribValue);else{var H=W.tag,j=W.tags[W.tags.length-1]||W;H.ns===j.ns&&(H.ns=Object.create(j.ns)),H.ns[z]=W.attribValue}W.attribList.push([W.attribName,W.attribValue])}else W.tag.attributes[W.attribName]=W.attribValue,T(W,"onattribute",{name:W.attribName,value:W.attribValue});W.attribName=W.attribValue=""}function Z(W,A){if(W.opt.xmlns){var Q=W.tag,z=k(W.tagName);Q.prefix=z.prefix,Q.local=z.local,Q.uri=Q.ns[z.prefix]||"",Q.prefix&&!Q.uri&&(X(W,"Unbound namespace prefix: "+JSON.stringify(W.tagName)),Q.uri=z.prefix);var H=W.tags[W.tags.length-1]||W;Q.ns&&H.ns!==Q.ns&&Object.keys(Q.ns).forEach(function(K){T(W,"onopennamespace",{prefix:K,uri:Q.ns[K]})});for(var j=0,ge=W.attribList.length;j",W.tagName="",W.state=_.SCRIPT;return}T(W,"onscript",W.script),W.script=""}var A=W.tags.length,Q=W.tagName;W.strict||(Q=Q[W.looseCase]());for(var z=Q;A--;){var H=W.tags[A];if(H.name!==z)X(W,"Unexpected close tag");else break}if(A<0){X(W,"Unmatched closing tag: "+W.tagName),W.textNode+="",W.state=_.TEXT;return}W.tagName=Q;for(var j=W.tags.length;j-- >A;){var ge=W.tag=W.tags.pop();W.tagName=W.tag.name,T(W,"onclosetag",W.tagName);var D={};for(var ie in ge.ns)D[ie]=ge.ns[ie];var L=W.tags[W.tags.length-1]||W;W.opt.xmlns&&ge.ns!==L.ns&&Object.keys(ge.ns).forEach(function(w){var S=ge.ns[w];T(W,"onclosenamespace",{prefix:w,uri:S})})}A===0&&(W.closedRoot=!0),W.tagName=W.attribValue=W.attribName="",W.attribList.length=0,W.state=_.TEXT}function ne(W){var A=W.entity,Q=A.toLowerCase(),z,H="";return W.ENTITIES[A]?W.ENTITIES[A]:W.ENTITIES[Q]?W.ENTITIES[Q]:(A=Q,A.charAt(0)==="#"&&(A.charAt(1)==="x"?(A=A.slice(2),z=parseInt(A,16),H=z.toString(16)):(A=A.slice(1),z=parseInt(A,10),H=z.toString(10))),A=A.replace(/^0+/,""),isNaN(z)||H.toLowerCase()!==A?(X(W,"Invalid character entity"),"&"+W.entity+";"):String.fromCodePoint(z))}function oe(W,A){A==="<"?(W.state=_.OPEN_WAKA,W.startTagPosition=W.position):x(A)||(X(W,"Non-whitespace before first tag."),W.textNode=A,W.state=_.TEXT)}function ue(W,A){var Q="";return A"?(T(A,"onsgmldeclaration",A.sgmlDecl),A.sgmlDecl="",A.state=_.TEXT):(O(z)&&(A.state=_.SGML_DECL_QUOTED),A.sgmlDecl+=z);continue;case _.SGML_DECL_QUOTED:z===A.q&&(A.state=_.SGML_DECL,A.q=""),A.sgmlDecl+=z;continue;case _.DOCTYPE:z===">"?(A.state=_.TEXT,T(A,"ondoctype",A.doctype),A.doctype=!0):(A.doctype+=z,z==="["?A.state=_.DOCTYPE_DTD:O(z)&&(A.state=_.DOCTYPE_QUOTED,A.q=z));continue;case _.DOCTYPE_QUOTED:A.doctype+=z,z===A.q&&(A.q="",A.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:A.doctype+=z,z==="]"?A.state=_.DOCTYPE:O(z)&&(A.state=_.DOCTYPE_DTD_QUOTED,A.q=z);continue;case _.DOCTYPE_DTD_QUOTED:A.doctype+=z,z===A.q&&(A.state=_.DOCTYPE_DTD,A.q="");continue;case _.COMMENT:z==="-"?A.state=_.COMMENT_ENDING:A.comment+=z;continue;case _.COMMENT_ENDING:z==="-"?(A.state=_.COMMENT_ENDED,A.comment=b(A.opt,A.comment),A.comment&&T(A,"oncomment",A.comment),A.comment=""):(A.comment+="-"+z,A.state=_.COMMENT);continue;case _.COMMENT_ENDED:z!==">"?(X(A,"Malformed comment"),A.comment+="--"+z,A.state=_.COMMENT):A.state=_.TEXT;continue;case _.CDATA:z==="]"?A.state=_.CDATA_ENDING:A.cdata+=z;continue;case _.CDATA_ENDING:z==="]"?A.state=_.CDATA_ENDING_2:(A.cdata+="]"+z,A.state=_.CDATA);continue;case _.CDATA_ENDING_2:z===">"?(A.cdata&&T(A,"oncdata",A.cdata),T(A,"onclosecdata"),A.cdata="",A.state=_.TEXT):z==="]"?A.cdata+="]":(A.cdata+="]]"+z,A.state=_.CDATA);continue;case _.PROC_INST:z==="?"?A.state=_.PROC_INST_ENDING:x(z)?A.state=_.PROC_INST_BODY:A.procInstName+=z;continue;case _.PROC_INST_BODY:if(!A.procInstBody&&x(z))continue;z==="?"?A.state=_.PROC_INST_ENDING:A.procInstBody+=z;continue;case _.PROC_INST_ENDING:z===">"?(T(A,"onprocessinginstruction",{name:A.procInstName,body:A.procInstBody}),A.procInstName=A.procInstBody="",A.state=_.TEXT):(A.procInstBody+="?"+z,A.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:N(R,z)?A.tagName+=z:(V(A),z===">"?Z(A):z==="/"?A.state=_.OPEN_TAG_SLASH:(x(z)||X(A,"Invalid character in tag name"),A.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:z===">"?(Z(A,!0),C(A)):(X(A,"Forward-slash in opening tag not followed by >"),A.state=_.ATTRIB);continue;case _.ATTRIB:if(x(z))continue;z===">"?Z(A):z==="/"?A.state=_.OPEN_TAG_SLASH:N(y,z)?(A.attribName=z,A.attribValue="",A.state=_.ATTRIB_NAME):X(A,"Invalid attribute name");continue;case _.ATTRIB_NAME:z==="="?A.state=_.ATTRIB_VALUE:z===">"?(X(A,"Attribute without value"),A.attribValue=A.attribName,re(A),Z(A)):x(z)?A.state=_.ATTRIB_NAME_SAW_WHITE:N(R,z)?A.attribName+=z:X(A,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if(z==="=")A.state=_.ATTRIB_VALUE;else{if(x(z))continue;X(A,"Attribute without value"),A.tag.attributes[A.attribName]="",A.attribValue="",T(A,"onattribute",{name:A.attribName,value:""}),A.attribName="",z===">"?Z(A):N(y,z)?(A.attribName=z,A.state=_.ATTRIB_NAME):(X(A,"Invalid attribute name"),A.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(x(z))continue;O(z)?(A.q=z,A.state=_.ATTRIB_VALUE_QUOTED):(X(A,"Unquoted attribute value"),A.state=_.ATTRIB_VALUE_UNQUOTED,A.attribValue=z);continue;case _.ATTRIB_VALUE_QUOTED:if(z!==A.q){z==="&"?A.state=_.ATTRIB_VALUE_ENTITY_Q:A.attribValue+=z;continue}re(A),A.q="",A.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:x(z)?A.state=_.ATTRIB:z===">"?Z(A):z==="/"?A.state=_.OPEN_TAG_SLASH:N(y,z)?(X(A,"No whitespace between attributes"),A.attribName=z,A.attribValue="",A.state=_.ATTRIB_NAME):X(A,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!E(z)){z==="&"?A.state=_.ATTRIB_VALUE_ENTITY_U:A.attribValue+=z;continue}re(A),z===">"?Z(A):A.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(A.tagName)z===">"?C(A):N(R,z)?A.tagName+=z:A.script?(A.script+=""?C(A):X(A,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var ge,D;switch(A.state){case _.TEXT_ENTITY:ge=_.TEXT,D="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:ge=_.ATTRIB_VALUE_QUOTED,D="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:ge=_.ATTRIB_VALUE_UNQUOTED,D="attribValue";break}z===";"?(A[D]+=ne(A),A.entity="",A.state=ge):N(A.entity.length?v:m,z)?A.entity+=z:(X(A,"Invalid character in entity name"),A[D]+="&"+A.entity+z,A.entity="",A.state=ge);continue;default:throw new Error(A,"Unknown state: "+A.state)}return A.position>=A.bufferCheckPosition&&i(A),A}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var W=String.fromCharCode,A=Math.floor,Q=function(){var z=16384,H=[],j,ge,D=-1,ie=arguments.length;if(!ie)return"";for(var L="";++D1114111||A(w)!==w)throw RangeError("Invalid code point: "+w);w<=65535?H.push(w):(w-=65536,j=(w>>10)+55296,ge=w%1024+56320,H.push(j,ge)),(D+1===ie||H.length>z)&&(L+=W.apply(null,H),H.length=0)}return L};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Q,configurable:!0,writable:!0}):String.fromCodePoint=Q}()})(t)})(OR);var df={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}},TO=df.isArray,ff={copyOptions:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!TO(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},SO=OR,xt=ff,ia=df.isArray,Te,je;function DO(t){return Te=xt.copyOptions(t),xt.ensureFlagExists("ignoreDeclaration",Te),xt.ensureFlagExists("ignoreInstruction",Te),xt.ensureFlagExists("ignoreAttributes",Te),xt.ensureFlagExists("ignoreText",Te),xt.ensureFlagExists("ignoreComment",Te),xt.ensureFlagExists("ignoreCdata",Te),xt.ensureFlagExists("ignoreDoctype",Te),xt.ensureFlagExists("compact",Te),xt.ensureFlagExists("alwaysChildren",Te),xt.ensureFlagExists("addParent",Te),xt.ensureFlagExists("trim",Te),xt.ensureFlagExists("nativeType",Te),xt.ensureFlagExists("nativeTypeAttributes",Te),xt.ensureFlagExists("sanitize",Te),xt.ensureFlagExists("instructionHasAttributes",Te),xt.ensureFlagExists("captureSpacesBetweenElements",Te),xt.ensureAlwaysArrayExists(Te),xt.ensureKeyExists("declaration",Te),xt.ensureKeyExists("instruction",Te),xt.ensureKeyExists("attributes",Te),xt.ensureKeyExists("text",Te),xt.ensureKeyExists("comment",Te),xt.ensureKeyExists("cdata",Te),xt.ensureKeyExists("doctype",Te),xt.ensureKeyExists("type",Te),xt.ensureKeyExists("name",Te),xt.ensureKeyExists("elements",Te),xt.ensureKeyExists("parent",Te),Te}function $R(t){var e=Number(t);if(!isNaN(e))return e;var n=t.toLowerCase();return n==="true"?!0:n==="false"?!1:t}function Ls(t,e){var n;if(Te.compact){if(!je[Te[t+"Key"]]&&(ia(Te.alwaysArray)?Te.alwaysArray.indexOf(Te[t+"Key"])!==-1:Te.alwaysArray)&&(je[Te[t+"Key"]]=[]),je[Te[t+"Key"]]&&!ia(je[Te[t+"Key"]])&&(je[Te[t+"Key"]]=[je[Te[t+"Key"]]]),t+"Fn"in Te&&typeof e=="string"&&(e=Te[t+"Fn"](e,je)),t==="instruction"&&("instructionFn"in Te||"instructionNameFn"in Te)){for(n in e)if(e.hasOwnProperty(n))if("instructionFn"in Te)e[n]=Te.instructionFn(e[n],n,je);else{var r=e[n];delete e[n],e[Te.instructionNameFn(n,r,je)]=r}}ia(je[Te[t+"Key"]])?je[Te[t+"Key"]].push(e):je[Te[t+"Key"]]=e}else{je[Te.elementsKey]||(je[Te.elementsKey]=[]);var i={};if(i[Te.typeKey]=t,t==="instruction"){for(n in e)if(e.hasOwnProperty(n))break;i[Te.nameKey]="instructionNameFn"in Te?Te.instructionNameFn(n,e,je):n,Te.instructionHasAttributes?(i[Te.attributesKey]=e[n][Te.attributesKey],"instructionFn"in Te&&(i[Te.attributesKey]=Te.instructionFn(i[Te.attributesKey],n,je))):("instructionFn"in Te&&(e[n]=Te.instructionFn(e[n],n,je)),i[Te.instructionKey]=e[n])}else t+"Fn"in Te&&(e=Te[t+"Fn"](e,je)),i[Te[t+"Key"]]=e;Te.addParent&&(i[Te.parentKey]=je),je[Te.elementsKey].push(i)}}function jR(t){if("attributesFn"in Te&&t&&(t=Te.attributesFn(t,je)),(Te.trim||"attributeValueFn"in Te||"attributeNameFn"in Te||Te.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(Te.trim&&(t[e]=t[e].trim()),Te.nativeTypeAttributes&&(t[e]=$R(t[e])),"attributeValueFn"in Te&&(t[e]=Te.attributeValueFn(t[e],e,je)),"attributeNameFn"in Te)){var n=t[e];delete t[e],t[Te.attributeNameFn(e,t[e],je)]=n}}return t}function OO(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||Te.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,r;(r=n.exec(t.body))!==null;)e[r[1]]=r[2]||r[3]||r[4];e=jR(e)}if(t.name.toLowerCase()==="xml"){if(Te.ignoreDeclaration)return;je[Te.declarationKey]={},Object.keys(e).length&&(je[Te.declarationKey][Te.attributesKey]=e),Te.addParent&&(je[Te.declarationKey][Te.parentKey]=je)}else{if(Te.ignoreInstruction)return;Te.trim&&(t.body=t.body.trim());var i={};Te.instructionHasAttributes&&Object.keys(e).length?(i[t.name]={},i[t.name][Te.attributesKey]=e):i[t.name]=t.body,Ls("instruction",i)}}function _O(t,e){var n;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=jR(e),"elementNameFn"in Te&&(t=Te.elementNameFn(t,je)),Te.compact){if(n={},!Te.ignoreAttributes&&e&&Object.keys(e).length){n[Te.attributesKey]={};var r;for(r in e)e.hasOwnProperty(r)&&(n[Te.attributesKey][r]=e[r])}!(t in je)&&(ia(Te.alwaysArray)?Te.alwaysArray.indexOf(t)!==-1:Te.alwaysArray)&&(je[t]=[]),je[t]&&!ia(je[t])&&(je[t]=[je[t]]),ia(je[t])?je[t].push(n):je[t]=n}else je[Te.elementsKey]||(je[Te.elementsKey]=[]),n={},n[Te.typeKey]="element",n[Te.nameKey]=t,!Te.ignoreAttributes&&e&&Object.keys(e).length&&(n[Te.attributesKey]=e),Te.alwaysChildren&&(n[Te.elementsKey]=[]),je[Te.elementsKey].push(n);n[Te.parentKey]=je,je=n}function EO(t){Te.ignoreText||!t.trim()&&!Te.captureSpacesBetweenElements||(Te.trim&&(t=t.trim()),Te.nativeType&&(t=$R(t)),Te.sanitize&&(t=t.replace(/&/g,"&").replace(//g,">")),Ls("text",t))}function IO(t){Te.ignoreComment||(Te.trim&&(t=t.trim()),Ls("comment",t))}function NO(t){var e=je[Te.parentKey];Te.addParent||delete je[Te.parentKey],je=e}function FO(t){Te.ignoreCdata||(Te.trim&&(t=t.trim()),Ls("cdata",t))}function PO(t){Te.ignoreDoctype||(t=t.replace(/^ /,""),Te.trim&&(t=t.trim()),Ls("doctype",t))}function MO(t){t.note=t}var qR=function(t,e){var n=SO.parser(!0,{}),r={};if(je=r,Te=DO(e),n.opt={strictEntities:!0},n.onopentag=_O,n.ontext=EO,n.oncomment=IO,n.onclosetag=NO,n.onerror=MO,n.oncdata=FO,n.ondoctype=PO,n.onprocessinginstruction=OO,n.write(t).close(),r[Te.elementsKey]){var i=r[Te.elementsKey];delete r[Te.elementsKey],r[Te.elementsKey]=i,delete r.text}return r},Mg=ff,LO=qR;function CO(t){var e=Mg.copyOptions(t);return Mg.ensureSpacesExists(e),e}var AO=function(t,e){var n,r,i,o;return n=CO(e),r=LO(t,n),o="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?i=JSON.stringify(r,function(a,s){return a===o?"_":s},n.spaces):i=JSON.stringify(r,null,n.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Nt=ff,UO=df.isArray,En,In;function WO(t){var e=Nt.copyOptions(t);return Nt.ensureFlagExists("ignoreDeclaration",e),Nt.ensureFlagExists("ignoreInstruction",e),Nt.ensureFlagExists("ignoreAttributes",e),Nt.ensureFlagExists("ignoreText",e),Nt.ensureFlagExists("ignoreComment",e),Nt.ensureFlagExists("ignoreCdata",e),Nt.ensureFlagExists("ignoreDoctype",e),Nt.ensureFlagExists("compact",e),Nt.ensureFlagExists("indentText",e),Nt.ensureFlagExists("indentCdata",e),Nt.ensureFlagExists("indentAttributes",e),Nt.ensureFlagExists("indentInstruction",e),Nt.ensureFlagExists("fullTagEmptyElement",e),Nt.ensureFlagExists("noQuotesForNativeAttributes",e),Nt.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Nt.ensureKeyExists("declaration",e),Nt.ensureKeyExists("instruction",e),Nt.ensureKeyExists("attributes",e),Nt.ensureKeyExists("text",e),Nt.ensureKeyExists("comment",e),Nt.ensureKeyExists("cdata",e),Nt.ensureKeyExists("doctype",e),Nt.ensureKeyExists("type",e),Nt.ensureKeyExists("name",e),Nt.ensureKeyExists("elements",e),e}function Vr(t,e,n){return(!n&&t.spaces?` `:"")+Array(e+1).join(t.spaces)}function Lu(t,e,n){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,In,En));var r,i,o,a,s=[];for(r in t)t.hasOwnProperty(r)&&t[r]!==null&&t[r]!==void 0&&(a=e.noQuotesForNativeAttributes&&typeof t[r]!="string"?"":'"',i=""+t[r],i=i.replace(/"/g,"""),o="attributeNameFn"in e?e.attributeNameFn(r,i,In,En):r,s.push(e.spaces&&e.indentAttributes?Vr(e,n+1,!1):" "),s.push(o+"="+a+("attributeValueFn"in e?e.attributeValueFn(i,r,In,En):i)+a));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&s.push(Vr(e,n,!1)),s.join("")}function e2(t,e,n){return En=t,In="xml",e.ignoreDeclaration?"":""}function t2(t,e,n){if(e.ignoreInstruction)return"";var r;for(r in t)if(t.hasOwnProperty(r))break;var i="instructionNameFn"in e?e.instructionNameFn(r,t[r],In,En):r;if(typeof t[r]=="object")return En=t,In=i,"";var o=t[r]?t[r]:"";return"instructionFn"in e&&(o=e.instructionFn(o,r,In,En)),""}function n2(t,e){return e.ignoreComment?"":""}function r2(t,e){return e.ignoreCdata?"":"","]]]]>"))+"]]>"}function i2(t,e){return e.ignoreDoctype?"":""}function pf(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(//g,">"),"textFn"in e?e.textFn(t,In,En):t)}function XO(t,e){var n;if(t.elements&&t.elements.length)for(n=0;n"),t[e.elementsKey]&&t[e.elementsKey].length&&(r.push(o2(t[e.elementsKey],e,n+1)),En=t,In=t.name),r.push(e.spaces&&XO(t,e)?` `+Array(n+1).join(e.spaces):""),r.push("")):r.push("/>"),r.join("")}function o2(t,e,n,r){return t.reduce(function(i,o){var a=Vr(e,n,r&&!i);switch(o.type){case"element":return i+a+VO(o,e,n);case"comment":return i+a+n2(o[e.commentKey],e);case"doctype":return i+a+i2(o[e.doctypeKey],e);case"cdata":return i+(e.indentCdata?a:"")+r2(o[e.cdataKey],e);case"text":return i+(e.indentText?a:"")+pf(o[e.textKey],e);case"instruction":var s={};return s[o[e.nameKey]]=o[e.attributesKey]?o:o[e.instructionKey],i+(e.indentInstruction?a:"")+t2(s,e,n)}},"")}function a2(t,e,n){var r;for(r in t)if(t.hasOwnProperty(r))switch(r){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||n)return!0;break;case e.cdataKey:if(e.indentCdata||n)return!0;break;case e.instructionKey:if(e.indentInstruction||n)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function YO(t,e,n,r,i){En=t,In=e;var o="elementNameFn"in n?n.elementNameFn(e,t):e;if(typeof t=="undefined"||t===null||t==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(e,t)||n.fullTagEmptyElement?"<"+o+">":"<"+o+"/>";var a=[];if(e){if(a.push("<"+o),typeof t!="object")return a.push(">"+pf(t,n)+""),a.join("");t[n.attributesKey]&&a.push(Lu(t[n.attributesKey],n,r));var s=a2(t,n,!0)||t[n.attributesKey]&&t[n.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in n?s=n.fullTagEmptyElementFn(e,t):s=n.fullTagEmptyElement),s)a.push(">");else return a.push("/>"),a.join("")}return a.push(s2(t,n,r+1,!1)),En=t,In=e,e&&a.push((i?Vr(n,r,!1):"")+""),a.join("")}function s2(t,e,n,r){var i,o,a,s=[];for(o in t)if(t.hasOwnProperty(o))for(a=UO(t[o])?t[o]:[t[o]],i=0;i{switch(t.type){case void 0:case"element":const e=new JO(t.name,t.attributes),n=t.elements||[];for(const r of n){const i=gf(r);i!==void 0&&e.push(i)}return e;case"text":return t.text;default:return}};class GO extends Ue{}class JO extends ve{static fromXmlString(e){const n=u2.xml2js(e,{compact:!1});return gf(n)}constructor(e,n){super(e),n&&this.root.push(new GO(n))}push(e){this.root.push(e)}}class zO extends ve{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class l2 extends ve{constructor(e,n){super(e),n&&(this.root=n.root)}}const Nn=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},Cu=t=>{const e=Nn(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},h2=(t,e)=>{const n=e*2;if(t.length!==n||isNaN(Number(`0x${t}`)))throw new Error(`Invalid hex value '${t}'. Expected ${n} digit hex value`);return t},Lg=t=>h2(t,1),mf=t=>{const e=t.slice(-2),n=t.substring(0,t.length-2);return`${Number(n)}${e}`},d2=t=>{const e=mf(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},ha=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return h2(e,3)},ui=t=>typeof t=="string"?mf(t):Nn(t),$O=t=>typeof t=="string"?d2(t):Cu(t),xn=t=>typeof t=="string"?d2(t):Cu(t),jO=t=>{const e=t.substring(0,t.length-1);return`${Number(e)}%`},qO=t=>typeof t=="number"?Nn(t):t.slice(-1)==="%"?jO(t):mf(t),e_=Cu,t_=Cu,n_=t=>t.toISOString();class Ne extends ve{constructor(e,n=!0){super(e),n!==!0&&this.root.push(new Qt({val:n}))}}class Dh extends ve{constructor(e,n){super(e),this.root.push(new Qt({val:$O(n)}))}}class r_ extends ve{}class lo extends ve{constructor(e,n){super(e),this.root.push(new Qt({val:n}))}}const Ka=(t,e)=>new Fn({name:t,attributes:{value:{key:"w:val",value:e}}});class Rf extends ve{constructor(e,n){super(e),this.root.push(new Qt({val:n}))}}class i_ extends ve{constructor(e,n){super(e),this.root.push(new Qt({val:n}))}}class $i extends ve{constructor(e,n){super(e),this.root.push(n)}}class Fn extends ve{constructor({name:e,attributes:n,children:r}){super(e),n&&this.root.push(new Ri(n)),r&&this.root.push(...r)}}const Ar={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class o_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val"})}}class f2 extends ve{constructor(e){super("w:jc"),this.root.push(new o_({val:e}))}}class _t extends ve{constructor(e,{color:n,size:r,space:i,style:o}){super(e),this.root.push(new a_({style:o,color:n===void 0?void 0:ha(n),size:r===void 0?void 0:e_(r),space:i===void 0?void 0:t_(i)}))}}class a_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const yf={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class s_ extends mi{constructor(e){super("w:pBdr"),e.top&&this.root.push(new _t("w:top",e.top)),e.bottom&&this.root.push(new _t("w:bottom",e.bottom)),e.left&&this.root.push(new _t("w:left",e.left)),e.right&&this.root.push(new _t("w:right",e.right))}}class c_ extends ve{constructor(){super("w:pBdr");const e=new _t("w:bottom",{color:"auto",space:1,style:yf.SINGLE,size:6});this.root.push(e)}}class u_ extends ve{constructor({start:e,end:n,left:r,right:i,hanging:o,firstLine:a}){super("w:ind"),this.root.push(new Ri({start:{key:"w:start",value:e===void 0?void 0:ui(e)},end:{key:"w:end",value:n===void 0?void 0:ui(n)},left:{key:"w:left",value:r===void 0?void 0:ui(r)},right:{key:"w:right",value:i===void 0?void 0:ui(i)},hanging:{key:"w:hanging",value:o===void 0?void 0:xn(o)},firstLine:{key:"w:firstLine",value:a===void 0?void 0:xn(a)}}))}}let l_=class extends ve{constructor(){super("w:br")}};const vf={BEGIN:"begin",END:"end",SEPARATE:"separate"};class bf extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class Dc extends ve{constructor(e){super("w:fldChar"),this.root.push(new bf({type:vf.BEGIN,dirty:e}))}}class Oc extends ve{constructor(e){super("w:fldChar"),this.root.push(new bf({type:vf.SEPARATE,dirty:e}))}}class _c extends ve{constructor(e){super("w:fldChar"),this.root.push(new bf({type:vf.END,dirty:e}))}}const da={DEFAULT:"default",PRESERVE:"preserve"};class fa extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{space:"xml:space"})}}class h_ extends ve{constructor(){super("w:instrText"),this.root.push(new fa({space:da.PRESERVE})),this.root.push("PAGE")}}class d_ extends ve{constructor(){super("w:instrText"),this.root.push(new fa({space:da.PRESERVE})),this.root.push("NUMPAGES")}}class f_ extends ve{constructor(){super("w:instrText"),this.root.push(new fa({space:da.PRESERVE})),this.root.push("SECTIONPAGES")}}class p_ extends ve{constructor(){super("w:instrText"),this.root.push(new fa({space:da.PRESERVE})),this.root.push("SECTION")}}class g_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class Au extends ve{constructor({fill:e,color:n,type:r}){super("w:shd"),this.root.push(new g_({fill:e===void 0?void 0:ha(e),color:n===void 0?void 0:ha(n),type:r}))}}class m_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const R_={DOT:"dot"};class y_ extends ve{constructor(e){super("w:em"),this.root.push(new Qt({val:e}))}}class v_ extends y_{constructor(e=R_.DOT){super(e)}}class b_ extends ve{constructor(e){super("w:spacing"),this.root.push(new Qt({val:ui(e)}))}}class x_ extends ve{constructor(e){super("w:color"),this.root.push(new Qt({val:ha(e)}))}}class w_ extends ve{constructor(e){super("w:highlight"),this.root.push(new Qt({val:e}))}}class T_ extends ve{constructor(e){super("w:highlightCs"),this.root.push(new Qt({val:e}))}}const S_=t=>new Fn({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class Cg extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Oh extends ve{constructor(e,n){if(super("w:rFonts"),typeof e=="string"){const r=e;this.root.push(new Cg({ascii:r,cs:r,eastAsia:r,hAnsi:r,hint:n}))}else{const r=e;this.root.push(new Cg(r))}}}let p2=class extends ve{constructor(e){super("w:vertAlign"),this.root.push(new Qt({val:e}))}};class D_ extends p2{constructor(){super("superscript")}}class O_ extends p2{constructor(){super("subscript")}}const g2={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class __ extends ve{constructor(e=g2.SINGLE,n){super("w:u"),this.root.push(new Qt({val:e,color:n===void 0?void 0:ha(n)}))}}class vo extends mi{constructor(e){var n,r;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new Ne("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new Ne("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new Ne("w:bCs",(n=e.boldComplexScript)!=null?n:e.bold)),e.italics!==void 0&&this.push(new Ne("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new Ne("w:iCs",(r=e.italicsComplexScript)!=null?r:e.italics)),e.underline&&this.push(new __(e.underline.type,e.underline.color)),e.effect&&this.push(new lo("w:effect",e.effect)),e.emphasisMark&&this.push(new v_(e.emphasisMark.type)),e.color&&this.push(new x_(e.color)),e.kern&&this.push(new Dh("w:kern",e.kern)),e.position&&this.push(new lo("w:position",e.position)),e.size!==void 0&&this.push(new Dh("w:sz",e.size));const i=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;i&&this.push(new Dh("w:szCs",i)),e.rightToLeft!==void 0&&this.push(new Ne("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new Ne("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new Ne("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new Ne("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new Ne("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new O_),e.superScript&&this.push(new D_),e.style&&this.push(new lo("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Oh(e.font)):"name"in e.font?this.push(new Oh(e.font.name,e.font.hint)):this.push(new Oh(e.font))),e.highlight&&this.push(new w_(e.highlight));const o=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;o&&this.push(new T_(o)),e.characterSpacing&&this.push(new b_(e.characterSpacing)),e.emboss!==void 0&&this.push(new Ne("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new Ne("w:imprint",e.imprint)),e.shading&&this.push(new Au(e.shading)),e.revision&&this.push(new E_(e.revision)),e.border&&this.push(new _t("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new Ne("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new Ne("w:vanish",e.vanish)),e.specVanish&&this.push(new Ne("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new Rf("w:w",e.scale)),e.language&&this.push(S_(e.language)),e.math&&this.push(new Ne("w:oMath",e.math))}push(e){this.root.push(e)}}class E_ extends ve{constructor(e){super("w:rPrChange"),this.root.push(new m_({id:e.id,author:e.author,date:e.date})),this.addChildElement(new vo(e))}}class bd extends ve{constructor(e){var n;return super("w:t"),typeof e=="string"?(this.root.push(new fa({space:da.PRESERVE})),this.root.push(e),this):(this.root.push(new fa({space:(n=e.space)!=null?n:da.DEFAULT})),this.root.push(e.text),this)}}const Ec={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Cs extends ve{constructor(e){if(super("w:r"),be(this,"properties"),this.properties=new vo(e),this.root.push(this.properties),e.break)for(let n=0;n(n=e)=>{let r="",i=n;for(;i--;)r+=t[Math.random()*t.length|0];return r},F_=(t=21)=>{let e="",n=t;for(;n--;)e+=I_[Math.random()*64|0];return e};const Dr=t=>Math.floor(t*72*20),Uu=(t=0)=>{let e=t;return()=>++e},P_=()=>Uu(),M_=()=>Uu(1),L_=()=>Uu(),C_=()=>Uu(),m2=()=>F_().toLowerCase(),Ha=t=>N_("1234567890abcdef",t)(),A_=()=>`${Ha(8)}-${Ha(4)}-${Ha(4)}-${Ha(4)}-${Ha(12)}`,U_={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},W_={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"};class X_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{x:"x",y:"y"})}}class V_ extends ve{constructor(){super("wp:simplePos"),this.root.push(new X_({x:0,y:0}))}}class R2 extends ve{constructor(e){super("wp:align"),this.root.push(e)}}class y2 extends ve{constructor(e){super("wp:posOffset"),this.root.push(e.toString())}}class Y_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class B_ extends ve{constructor(e){if(super("wp:positionH"),this.root.push(new Y_({relativeFrom:e.relative||U_.PAGE})),e.align)this.root.push(new R2(e.align));else if(e.offset!==void 0)this.root.push(new y2(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class Z_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class k_ extends ve{constructor(e){if(super("wp:positionV"),this.root.push(new Z_({relativeFrom:e.relative||W_.PAGE})),e.align)this.root.push(new R2(e.align));else if(e.offset!==void 0)this.root.push(new y2(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class Q_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{uri:"uri"})}}class K_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{embed:"r:embed",cstate:"cstate"})}}class H_ extends ve{constructor(e){super("a:blip"),this.root.push(new K_({embed:`rId{${e.fileName}}`,cstate:"none"}))}}class G_ extends ve{constructor(){super("a:srcRect")}}class J_ extends ve{constructor(){super("a:fillRect")}}class z_ extends ve{constructor(){super("a:stretch"),this.root.push(new J_)}}class $_ extends ve{constructor(e){super("pic:blipFill"),this.root.push(new H_(e)),this.root.push(new G_),this.root.push(new z_)}}class j_ extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class q_ extends ve{constructor(){super("a:picLocks"),this.root.push(new j_({noChangeAspect:1,noChangeArrowheads:1}))}}class eE extends ve{constructor(){super("pic:cNvPicPr"),this.root.push(new q_)}}const v2=(t,e)=>new Fn({name:"a:hlinkClick",attributes:ua(dt({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${t}`}})});class tE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class nE extends ve{constructor(){super("pic:cNvPr"),this.root.push(new tE({id:0,name:"",descr:""}))}prepForXml(e){for(let n=e.stack.length-1;n>=0;n--){const r=e.stack[n];if(r instanceof xf){this.root.push(v2(r.linkId,!1));break}}return super.prepForXml(e)}}class rE extends ve{constructor(){super("pic:nvPicPr"),this.root.push(new nE),this.root.push(new eE)}}class iE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class oE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class aE extends ve{constructor(e,n){super("a:ext"),be(this,"attributes"),this.attributes=new oE({cx:e,cy:n}),this.root.push(this.attributes)}}class sE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{x:"x",y:"y"})}}class cE extends ve{constructor(){super("a:off"),this.root.push(new sE({x:0,y:0}))}}class uE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class lE extends ve{constructor(e){var n,r;super("a:xfrm"),be(this,"extents"),this.root.push(new uE({flipVertical:(n=e.flip)==null?void 0:n.vertical,flipHorizontal:(r=e.flip)==null?void 0:r.horizontal,rotation:e.rotation})),this.extents=new aE(e.emus.x,e.emus.y),this.root.push(new cE),this.root.push(this.extents)}}const b2=()=>new Fn({name:"a:noFill"}),hE=t=>new Fn({name:"a:schemeClr",attributes:{value:{key:"val",value:t.value}}}),dE=t=>new Fn({name:"a:srgbClr",attributes:{value:{key:"val",value:t.value}}}),Ag=t=>new Fn({name:"a:solidFill",children:[t.type==="rgb"?dE(t):hE(t)]}),fE=t=>new Fn({name:"a:ln",attributes:{width:{key:"w",value:t.width},cap:{key:"cap",value:t.cap},compoundLine:{key:"cmpd",value:t.compoundLine},align:{key:"algn",value:t.align}},children:[t.type==="noFill"?b2():t.solidFillType==="rgb"?Ag({type:"rgb",value:t.value}):Ag({type:"scheme",value:t.value})]});class pE extends ve{constructor(){super("a:avLst")}}class gE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{prst:"prst"})}}class mE extends ve{constructor(){super("a:prstGeom"),this.root.push(new gE({prst:"rect"})),this.root.push(new pE)}}class RE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{bwMode:"bwMode"})}}class yE extends ve{constructor({outline:e,transform:n}){super("pic:spPr"),be(this,"form"),this.root.push(new RE({bwMode:"auto"})),this.form=new lE(n),this.root.push(this.form),this.root.push(new mE),e&&(this.root.push(b2()),this.root.push(fE(e)))}}class vE extends ve{constructor({mediaData:e,transform:n,outline:r}){super("pic:pic"),this.root.push(new iE({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new rE),this.root.push(new $_(e)),this.root.push(new yE({transform:n,outline:r}))}}class bE extends ve{constructor({mediaData:e,transform:n,outline:r}){super("a:graphicData"),be(this,"pic"),this.root.push(new Q_({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new vE({mediaData:e,transform:n,outline:r}),this.root.push(this.pic)}}class xE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{a:"xmlns:a"})}}class x2 extends ve{constructor({mediaData:e,transform:n,outline:r}){super("a:graphic"),be(this,"data"),this.root.push(new xE({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new bE({mediaData:e,transform:n,outline:r}),this.root.push(this.data)}}const Ic={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},wE={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"};class Ug extends ve{constructor(){super("wp:wrapNone")}}class TE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class SE extends ve{constructor(e,n={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new TE({wrapText:e.side||wE.BOTH_SIDES,distT:n.top,distB:n.bottom,distL:n.left,distR:n.right}))}}class DE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class OE extends ve{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new DE({distT:e.top,distB:e.bottom}))}}class _E extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class EE extends ve{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new _E({distT:e.top,distB:e.bottom}))}}class w2 extends ve{constructor({name:e,description:n,title:r}={name:"",description:"",title:""}){super("wp:docPr"),be(this,"docPropertiesUniqueNumericId",L_()),this.root.push(new Ri({id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:e},description:{key:"descr",value:n},title:{key:"title",value:r}}))}prepForXml(e){for(let n=e.stack.length-1;n>=0;n--){const r=e.stack[n];if(r instanceof xf){this.root.push(v2(r.linkId,!0));break}}return super.prepForXml(e)}}const T2=({top:t,right:e,bottom:n,left:r})=>new Fn({name:"wp:effectExtent",attributes:{top:{key:"t",value:t},right:{key:"r",value:e},bottom:{key:"b",value:n},left:{key:"l",value:r}}});class IE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class S2 extends ve{constructor(e,n){super("wp:extent"),be(this,"attributes"),this.attributes=new IE({cx:e,cy:n}),this.root.push(this.attributes)}}class NE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class FE extends ve{constructor(){super("a:graphicFrameLocks"),this.root.push(new NE({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class D2 extends ve{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new FE)}}class PE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class ME extends ve{constructor({mediaData:e,transform:n,drawingOptions:r}){super("wp:anchor");const i=dt({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},r.floating);if(this.root.push(new PE({distT:i.margins&&i.margins.top||0,distB:i.margins&&i.margins.bottom||0,distL:i.margins&&i.margins.left||0,distR:i.margins&&i.margins.right||0,simplePos:"0",allowOverlap:i.allowOverlap===!0?"1":"0",behindDoc:i.behindDocument===!0?"1":"0",locked:i.lockAnchor===!0?"1":"0",layoutInCell:i.layoutInCell===!0?"1":"0",relativeHeight:i.zIndex?i.zIndex:n.emus.y})),this.root.push(new V_),this.root.push(new B_(i.horizontalPosition)),this.root.push(new k_(i.verticalPosition)),this.root.push(new S2(n.emus.x,n.emus.y)),this.root.push(T2({top:0,right:0,bottom:0,left:0})),r.floating!==void 0&&r.floating.wrap!==void 0)switch(r.floating.wrap.type){case Ic.SQUARE:this.root.push(new SE(r.floating.wrap,r.floating.margins));break;case Ic.TIGHT:this.root.push(new OE(r.floating.margins));break;case Ic.TOP_AND_BOTTOM:this.root.push(new EE(r.floating.margins));break;case Ic.NONE:default:this.root.push(new Ug)}else this.root.push(new Ug);this.root.push(new w2(r.docProperties)),this.root.push(new D2),this.root.push(new x2({mediaData:e,transform:n,outline:r.outline}))}}const LE=({mediaData:t,transform:e,docProperties:n,outline:r})=>{var i,o,a,s;return new Fn({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[new S2(e.emus.x,e.emus.y),T2(r?{top:((i=r.width)!=null?i:9525)*2,right:((o=r.width)!=null?o:9525)*2,bottom:((a=r.width)!=null?a:9525)*2,left:((s=r.width)!=null?s:9525)*2}:{top:0,right:0,bottom:0,left:0}),new w2(n),new D2,new x2({mediaData:t,transform:e,outline:r})]})};class CE extends ve{constructor(e,n={}){super("w:drawing"),n.floating?this.root.push(new ME({mediaData:e,transform:e.transformation,drawingOptions:n})):this.root.push(LE({mediaData:e,transform:e.transformation,docProperties:n.docProperties,outline:n.outline}))}}class AE extends Cs{constructor(e){super({}),be(this,"key",`${m2()}.png`),be(this,"imageData");const n=typeof e.data=="string"?this.convertDataURIToBinary(e.data):e.data;this.imageData={stream:n,fileName:this.key,transformation:{pixels:{x:Math.round(e.transformation.width),y:Math.round(e.transformation.height)},emus:{x:Math.round(e.transformation.width*9525),y:Math.round(e.transformation.height*9525)},flip:e.transformation.flip,rotation:e.transformation.rotation?e.transformation.rotation*6e4:void 0}};const r=new CE(this.imageData,{floating:e.floating,docProperties:e.altText,outline:e.outline});this.root.push(r)}prepForXml(e){return e.file.Media.addImage(this.key,this.imageData),super.prepForXml(e)}convertDataURIToBinary(e){if(typeof atob=="function"){const n=";base64,",r=e.indexOf(n),i=r===-1?0:r+n.length;return new Uint8Array(atob(e.substring(i)).split("").map(o=>o.charCodeAt(0)))}else{const n=require("buffer");return new n.Buffer(e,"base64")}}}class UE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class WE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class XE extends ve{constructor({id:e,initials:n,author:r,date:i=new Date,children:o}){super("w:comment"),this.root.push(new UE({id:e,initials:n,author:r,date:i.toISOString()}));for(const a of o)this.root.push(a)}}class VE extends ve{constructor({children:e}){super("w:comments"),this.root.push(new WE({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const n of e)this.root.push(new XE(n))}}class YE extends r_{constructor(){super("w:tab")}}class BE extends ve{constructor(){super("w:pageBreakBefore")}}const xd={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class ZE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class kE extends ve{constructor(e){super("w:spacing"),this.root.push(new ZE(e))}}const Fo={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let Nc=class extends ve{constructor(e){super("w:pStyle"),this.root.push(new Qt({val:e}))}};class QE extends ve{constructor(e){super("w:tabs");for(const n of e)this.root.push(new HE(n))}}const Wg={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class KE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class HE extends ve{constructor({type:e,position:n,leader:r}){super("w:tab"),this.root.push(new KE({val:e,pos:n,leader:r}))}}class Xg extends ve{constructor(e,n){super("w:numPr"),this.root.push(new GE(n)),this.root.push(new JE(e))}}class GE extends ve{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Qt({val:e}))}}class JE extends ve{constructor(e){super("w:numId"),this.root.push(new Qt({val:typeof e=="string"?`{${e}}`:e}))}}class O2 extends ve{constructor(){super(...arguments),be(this,"fileChild",Symbol())}}class zE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const $E={EXTERNAL:"External"};class jE extends ve{constructor(e,n,r,i){super("Relationship"),this.root.push(new zE({id:e,type:n,target:r,targetMode:i}))}}class qE extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class xf extends ve{constructor(e,n,r){super("w:hyperlink"),be(this,"linkId"),this.linkId=n;const i={history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`},o=new qE(i);this.root.push(o),e.forEach(a=>{this.root.push(a)})}}class _2 extends ve{constructor(e){super("w:externalHyperlink"),this.options=e}}class e3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class t3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{id:"w:id"})}}class n3{constructor(e){be(this,"bookmarkUniqueNumericId",C_()),be(this,"start"),be(this,"children"),be(this,"end");const n=this.bookmarkUniqueNumericId();this.start=new r3(e.id,n),this.children=e.children,this.end=new i3(n)}}class r3 extends ve{constructor(e,n){super("w:bookmarkStart");const r=new e3({name:e,id:n});this.root.push(r)}}class i3 extends ve{constructor(e){super("w:bookmarkEnd");const n=new t3({id:e});this.root.push(n)}}class o3 extends ve{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Qt({val:e}))}}class a3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{verticalAlign:"w:val"})}}class E2 extends ve{constructor(e){super("w:vAlign"),this.root.push(new a3({verticalAlign:e}))}}const aa={DEFAULT:"default",FIRST:"first",EVEN:"even"};class s3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const Vg={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class _h extends ve{constructor(e,n){super(e),this.root.push(new s3({type:n.type||aa.DEFAULT,id:`rId${n.id}`}))}}class c3 extends ve{constructor({space:e,count:n,separate:r,equalWidth:i,children:o}){super("w:cols"),this.root.push(new Ri({space:{key:"w:space",value:e===void 0?void 0:xn(e)},count:{key:"w:num",value:n===void 0?void 0:Nn(n)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:i}})),!i&&o&&o.forEach(a=>this.addChildElement(a))}}class u3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class l3 extends ve{constructor(e,n,r){super("w:docGrid"),this.root.push(new u3({type:r,linePitch:Nn(e),charSpace:n?Nn(n):void 0}))}}const h3=({countBy:t,start:e,restart:n,distance:r})=>new Fn({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:Nn(t)},start:{key:"w:start",value:e===void 0?void 0:Nn(e)},restart:{key:"w:restart",value:n},distance:{key:"w:distance",value:r===void 0?void 0:xn(r)}}});class Yg extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class d3 extends mi{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new Yg({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new Yg({})),e.pageBorderTop&&this.root.push(new _t("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new _t("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new _t("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new _t("w:right",e.pageBorderRight))}}class f3 extends ve{constructor(e,n,r,i,o,a,s){super("w:pgMar"),this.root.push(new Ri({top:{key:"w:top",value:ui(e)},right:{key:"w:right",value:xn(n)},bottom:{key:"w:bottom",value:ui(r)},left:{key:"w:left",value:xn(i)},header:{key:"w:header",value:xn(o)},footer:{key:"w:footer",value:xn(a)},gutter:{key:"w:gutter",value:xn(s)}}))}}class p3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class g3 extends ve{constructor({start:e,formatType:n,separator:r}){super("w:pgNumType"),this.root.push(new p3({start:e===void 0?void 0:Nn(e),formatType:n,separator:r}))}}const I2={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class m3 extends ve{constructor(e,n,r){super("w:pgSz");const i=r===I2.LANDSCAPE,o=xn(e),a=xn(n);this.root.push(new Ri({width:{key:"w:w",value:i?a:o},height:{key:"w:h",value:i?o:a},orientation:{key:"w:orient",value:r}}))}}class R3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val"})}}class y3 extends ve{constructor(e){super("w:textDirection"),this.root.push(new R3({val:e}))}}class v3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val"})}}class b3 extends ve{constructor(e){super("w:type"),this.root.push(new v3({val:e}))}}const ji={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Eh={WIDTH:11906,HEIGHT:16838,ORIENTATION:I2.PORTRAIT};class x3 extends ve{constructor({page:{size:{width:e=Eh.WIDTH,height:n=Eh.HEIGHT,orientation:r=Eh.ORIENTATION}={},margin:{top:i=ji.TOP,right:o=ji.RIGHT,bottom:a=ji.BOTTOM,left:s=ji.LEFT,header:c=ji.HEADER,footer:u=ji.FOOTER,gutter:l=ji.GUTTER}={},pageNumbers:h={},borders:d,textDirection:f}={},grid:{linePitch:p=360,charSpace:g,type:y}={},headerWrapperGroup:R={},footerWrapperGroup:m={},lineNumbers:v,titlePage:x,verticalAlign:O,column:E,type:N}={}){super("w:sectPr"),this.addHeaderFooterGroup(Vg.HEADER,R),this.addHeaderFooterGroup(Vg.FOOTER,m),N&&this.root.push(new b3(N)),this.root.push(new m3(e,n,r)),this.root.push(new f3(i,o,a,s,c,u,l)),d&&this.root.push(new d3(d)),v&&this.root.push(h3(v)),this.root.push(new g3(h)),E&&this.root.push(new c3(E)),O&&this.root.push(new E2(O)),x!==void 0&&this.root.push(new Ne("w:titlePg",x)),f&&this.root.push(new y3(f)),this.root.push(new l3(p,g,y))}addHeaderFooterGroup(e,n){n.default&&this.root.push(new _h(e,{type:aa.DEFAULT,id:n.default.View.ReferenceId})),n.first&&this.root.push(new _h(e,{type:aa.FIRST,id:n.first.View.ReferenceId})),n.even&&this.root.push(new _h(e,{type:aa.EVEN,id:n.even.View.ReferenceId}))}}class w3 extends ve{constructor(){super("w:body"),be(this,"sections",[])}addSection(e){const n=this.sections.pop();this.root.push(this.createSectionParagraph(n)),this.sections.push(new x3(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const n=new Ci({}),r=new pa({});return r.push(e),n.addChildElement(r),n}}class As extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class T3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class S3 extends ve{constructor(e){super("w:background"),this.root.push(new T3({color:e.color===void 0?void 0:ha(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:Lg(e.themeShade),themeTint:e.themeTint===void 0?void 0:Lg(e.themeTint)}))}}class D3 extends ve{constructor(e){super("w:document"),be(this,"body"),this.root.push(new As({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new w3,e.background&&this.root.push(new S3(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class O3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{xmlns:"xmlns"})}}class Oa extends ve{constructor(){super("Relationships"),this.root.push(new O3({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,n,r,i){const o=new jE(`rId${e}`,n,r,i);return this.root.push(o),o}get RelationshipCount(){return this.root.length-1}}class N2{constructor(e){be(this,"document"),be(this,"relationships"),this.document=new D3(e),this.relationships=new Oa}get View(){return this.document}get Relationships(){return this.relationships}}class _3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val"})}}class E3 extends ve{constructor(){super("w:wordWrap"),this.root.push(new _3({val:0}))}}const I3=t=>{var e,n;return new Fn({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(n=t.space)==null?void 0:n.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class pa extends mi{constructor(e){var n,r;if(super("w:pPr"),be(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new Nc(e.heading)),e.bullet&&this.push(new Nc("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new Nc("ListParagraph"))),e.style&&this.push(new Nc(e.style)),e.keepNext!==void 0&&this.push(new Ne("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new Ne("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new BE),e.frame&&this.push(I3(e.frame)),e.widowControl!==void 0&&this.push(new Ne("w:widowControl",e.widowControl)),e.bullet&&this.push(new Xg(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(n=e.numbering.instance)!=null?n:0}),this.push(new Xg(`${e.numbering.reference}-${(r=e.numbering.instance)!=null?r:0}`,e.numbering.level))),e.border&&this.push(new s_(e.border)),e.thematicBreak&&this.push(new c_),e.shading&&this.push(new Au(e.shading)),e.wordWrap&&this.push(new E3),e.overflowPunctuation&&this.push(new Ne("w:overflowPunct",e.overflowPunctuation));const i=[...e.rightTabStop!==void 0?[{type:Wg.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:Wg.LEFT,position:e.leftTabStop}]:[]];i.length>0&&this.push(new QE(i)),e.bidirectional!==void 0&&this.push(new Ne("w:bidi",e.bidirectional)),e.spacing&&this.push(new kE(e.spacing)),e.indent&&this.push(new u_(e.indent)),e.contextualSpacing!==void 0&&this.push(new Ne("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new f2(e.alignment)),e.outlineLevel!==void 0&&this.push(new o3(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new Ne("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new Ne("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new vo(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof N2)for(const n of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(n.reference,n.instance);return super.prepForXml(e)}}class Ci extends O2{constructor(e){if(super("w:p"),be(this,"properties"),typeof e=="string")return this.properties=new pa({}),this.root.push(this.properties),this.root.push(new oa(e)),this;if(this.properties=new pa(e),this.root.push(this.properties),e.text&&this.root.push(new oa(e.text)),e.children)for(const n of e.children){if(n instanceof n3){this.root.push(n.start);for(const r of n.children)this.root.push(r);this.root.push(n.end);continue}this.root.push(n)}}prepForXml(e){for(const n of this.root)if(n instanceof _2){const r=this.root.indexOf(n),i=new xf(n.options.children,m2());e.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",n.options.link,$E.EXTERNAL),this.root[r]=i}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}class N3 extends ve{constructor(e){super("m:t"),this.root.push(e)}}class F3 extends ve{constructor(e){super("m:r"),this.root.push(new N3(e))}}class P3 extends ve{constructor(e){super("w:tblGrid");for(const n of e)this.root.push(new M3(n))}}class M3 extends ve{constructor(e){super("w:gridCol"),e!==void 0&&this.root.push(new Ri({width:{key:"w:w",value:xn(e)}}))}}const F2={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class P2 extends mi{constructor(e,{marginUnitType:n=pu.DXA,top:r,left:i,bottom:o,right:a}){super(e),r!==void 0&&this.root.push(new ao("w:top",{type:n,size:r})),i!==void 0&&this.root.push(new ao("w:left",{type:n,size:i})),o!==void 0&&this.root.push(new ao("w:bottom",{type:n,size:o})),a!==void 0&&this.root.push(new ao("w:right",{type:n,size:a}))}}const pu={AUTO:"auto",DXA:"dxa",NIL:"nil",PERCENTAGE:"pct"};class ao extends ve{constructor(e,{type:n=pu.AUTO,size:r}){super(e);let i=r;n===pu.PERCENTAGE&&typeof r=="number"&&(i=`${r}%`),this.root.push(new Ri({type:{key:"w:type",value:n},size:{key:"w:w",value:qO(i)}}))}}class L3 extends mi{constructor(e){super("w:tcBorders"),e.top&&this.root.push(new _t("w:top",e.top)),e.start&&this.root.push(new _t("w:start",e.start)),e.left&&this.root.push(new _t("w:left",e.left)),e.bottom&&this.root.push(new _t("w:bottom",e.bottom)),e.end&&this.root.push(new _t("w:end",e.end)),e.right&&this.root.push(new _t("w:right",e.right))}}class C3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val"})}}class A3 extends ve{constructor(e){super("w:gridSpan"),this.root.push(new C3({val:Nn(e)}))}}const M2={CONTINUE:"continue",RESTART:"restart"};class U3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val"})}}class Bg extends ve{constructor(e){super("w:vMerge"),this.root.push(new U3({val:e}))}}class W3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val"})}}class X3 extends ve{constructor(e){super("w:textDirection"),this.root.push(new W3({val:e}))}}class V3 extends mi{constructor(e){super("w:tcPr"),e.width&&this.root.push(new ao("w:tcW",e.width)),e.columnSpan&&this.root.push(new A3(e.columnSpan)),e.verticalMerge?this.root.push(new Bg(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new Bg(M2.RESTART)),e.borders&&this.root.push(new L3(e.borders)),e.shading&&this.root.push(new Au(e.shading)),e.margins&&this.root.push(new P2(F2.TABLE_CELL,e.margins)),e.textDirection&&this.root.push(new X3(e.textDirection)),e.verticalAlign&&this.root.push(new E2(e.verticalAlign))}}class wf extends ve{constructor(e){super("w:tc"),this.options=e,this.root.push(new V3(e));for(const n of e.children)this.root.push(n)}prepForXml(e){return this.root[this.root.length-1]instanceof Ci||this.root.push(new Ci({})),super.prepForXml(e)}}const Po={style:yf.NONE,size:0,color:"auto"},Mo={style:yf.SINGLE,size:4,color:"auto"};class L2 extends ve{constructor(e){super("w:tblBorders"),e.top?this.root.push(new _t("w:top",e.top)):this.root.push(new _t("w:top",Mo)),e.left?this.root.push(new _t("w:left",e.left)):this.root.push(new _t("w:left",Mo)),e.bottom?this.root.push(new _t("w:bottom",e.bottom)):this.root.push(new _t("w:bottom",Mo)),e.right?this.root.push(new _t("w:right",e.right)):this.root.push(new _t("w:right",Mo)),e.insideHorizontal?this.root.push(new _t("w:insideH",e.insideHorizontal)):this.root.push(new _t("w:insideH",Mo)),e.insideVertical?this.root.push(new _t("w:insideV",e.insideVertical)):this.root.push(new _t("w:insideV",Mo))}}be(L2,"NONE",{top:Po,bottom:Po,left:Po,right:Po,insideHorizontal:Po,insideVertical:Po});class Y3 extends ve{constructor({horizontalAnchor:e,verticalAnchor:n,absoluteHorizontalPosition:r,relativeHorizontalPosition:i,absoluteVerticalPosition:o,relativeVerticalPosition:a,bottomFromText:s,topFromText:c,leftFromText:u,rightFromText:l,overlap:h}){super("w:tblpPr"),this.root.push(new Ri({leftFromText:{key:"w:leftFromText",value:u===void 0?void 0:xn(u)},rightFromText:{key:"w:rightFromText",value:l===void 0?void 0:xn(l)},topFromText:{key:"w:topFromText",value:c===void 0?void 0:xn(c)},bottomFromText:{key:"w:bottomFromText",value:s===void 0?void 0:xn(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:r===void 0?void 0:ui(r)},absoluteVerticalPosition:{key:"w:tblpY",value:o===void 0?void 0:ui(o)},horizontalAnchor:{key:"w:horzAnchor",value:e===void 0?void 0:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:i},relativeVerticalPosition:{key:"w:tblpYSpec",value:a},verticalAnchor:{key:"w:vertAnchor",value:n}})),h&&this.root.push(new i_("w:tblOverlap",h))}}class B3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{type:"w:type"})}}class Z3 extends ve{constructor(e){super("w:tblLayout"),this.root.push(new B3({type:e}))}}class k3 extends mi{constructor(e){super("w:tblPr"),e.style&&this.root.push(new lo("w:tblStyle",e.style)),e.float&&this.root.push(new Y3(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new Ne("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(new ao("w:tblW",e.width)),e.alignment&&this.root.push(new f2(e.alignment)),e.indent&&this.root.push(new ao("w:tblInd",e.indent)),e.borders&&this.root.push(new L2(e.borders)),e.shading&&this.root.push(new Au(e.shading)),e.layout&&this.root.push(new Z3(e.layout)),e.cellMargin&&this.root.push(new P2(F2.TABLE,e.cellMargin))}}class Q3 extends O2{constructor({rows:e,width:n,columnWidths:r=Array(Math.max(...e.map(d=>d.CellCount))).fill(100),margins:i,indent:o,float:a,layout:s,style:c,borders:u,alignment:l,visuallyRightToLeft:h}){super("w:tbl"),this.root.push(new k3({borders:u!=null?u:{},width:n!=null?n:{size:100},indent:o,float:a,layout:s,style:c,alignment:l,cellMargin:i,visuallyRightToLeft:h})),this.root.push(new P3(r));for(const d of e)this.root.push(d);e.forEach((d,f)=>{if(f===e.length-1)return;let p=0;d.cells.forEach(g=>{if(g.options.rowSpan&&g.options.rowSpan>1){const y=new wf({rowSpan:g.options.rowSpan-1,columnSpan:g.options.columnSpan,borders:g.options.borders,children:[],verticalMerge:M2.CONTINUE});e[f+1].addCellToColumnIndex(y,p)}p+=g.options.columnSpan||1})})}}class K3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class H3 extends ve{constructor(e,n){super("w:trHeight"),this.root.push(new K3({value:xn(e),rule:n}))}}class G3 extends mi{constructor(e){super("w:trPr"),e.cantSplit!==void 0&&this.root.push(new Ne("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new Ne("w:tblHeader",e.tableHeader)),e.height&&this.root.push(new H3(e.height.value,e.height.rule))}}class J3 extends ve{constructor(e){super("w:tr"),this.options=e,this.root.push(new G3(e));for(const n of e.children)this.root.push(n)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof wf)}addCellToIndex(e,n){this.root.splice(n+1,0,e)}addCellToColumnIndex(e,n){const r=this.columnIndexToRootIndex(n,!0);this.addCellToIndex(e,r-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let n=0;for(let r=1;r=this.root.length){if(n)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${r-1}`)}const o=this.root[i];i+=1,r+=o&&o.options.columnSpan||1}return i-1}}class z3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class $3 extends ve{constructor(){super("Properties"),this.root.push(new z3({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class j3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{xmlns:"xmlns"})}}class q3 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Si extends ve{constructor(e,n){super("Default"),this.root.push(new q3({contentType:e,extension:n}))}}class eI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class fr extends ve{constructor(e,n){super("Override"),this.root.push(new eI({contentType:e,partName:n}))}}class tI extends ve{constructor(){super("Types"),this.root.push(new j3({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Si("image/png","png")),this.root.push(new Si("image/jpeg","jpeg")),this.root.push(new Si("image/jpeg","jpg")),this.root.push(new Si("image/bmp","bmp")),this.root.push(new Si("image/gif","gif")),this.root.push(new Si("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Si("application/xml","xml")),this.root.push(new Si("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new fr("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new fr("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new fr("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new fr("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new fr("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new fr("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new fr("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new fr("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new fr("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new fr("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new fr("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new fr("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class nI extends ve{constructor(e){super("cp:coreProperties"),this.root.push(new As({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),e.title&&this.root.push(new $i("dc:title",e.title)),e.subject&&this.root.push(new $i("dc:subject",e.subject)),e.creator&&this.root.push(new $i("dc:creator",e.creator)),e.keywords&&this.root.push(new $i("cp:keywords",e.keywords)),e.description&&this.root.push(new $i("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new $i("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new $i("cp:revision",String(e.revision))),this.root.push(new Zg("dcterms:created")),this.root.push(new Zg("dcterms:modified"))}}class Zg extends ve{constructor(e){super(e),this.root.push(new As({type:"dcterms:W3CDTF"})),this.root.push(n_(new Date))}}class rI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class iI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class oI extends ve{constructor(e,n){super("property"),this.root.push(new iI({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:n.name})),this.root.push(new aI(n.value))}}class aI extends ve{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class sI extends ve{constructor(e){super("Properties"),be(this,"nextId"),be(this,"properties",[]),this.root.push(new rI({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const n of e)this.addCustomProperty(n)}prepForXml(e){return this.properties.forEach(n=>this.root.push(n)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new oI(this.nextId++,e))}}class cI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let uI=class extends l2{constructor(e,n){super("w:ftr",n),be(this,"refId"),this.refId=e,n||this.root.push(new cI({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class lI{constructor(e,n,r){be(this,"footer"),be(this,"relationships"),this.media=e,this.footer=new uI(n,r),this.relationships=new Oa}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class hI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class dI extends ve{constructor(){super("w:footnoteRef")}}class fI extends Cs{constructor(){super({style:"FootnoteReference"}),this.root.push(new dI)}}const kg={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class Ih extends ve{constructor(e){super("w:footnote"),this.root.push(new hI({type:e.type,id:e.id}));for(let n=0;n9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new DI({ilvl:Nn(e),tentative:1}))}}class PI extends FI{}class MI extends ve{constructor(e){super("w:multiLevelType"),this.root.push(new Qt({val:e}))}}class LI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class Qg extends ve{constructor(e,n){super("w:abstractNum"),be(this,"id"),this.root.push(new LI({abstractNumId:Nn(e),restartNumberingAfterBreak:0})),this.root.push(new MI("hybridMultilevel")),this.id=e;for(const r of n)this.root.push(new PI(r))}}class CI extends ve{constructor(e){super("w:abstractNumId"),this.root.push(new Qt({val:e}))}}class AI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{numId:"w:numId"})}}class Kg extends ve{constructor(e){if(super("w:num"),be(this,"numId"),be(this,"reference"),be(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new AI({numId:Nn(e.numId)})),this.root.push(new CI(Nn(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const n of e.overrideLevels)this.root.push(new WI(n.num,n.start))}}class UI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{ilvl:"w:ilvl"})}}class WI extends ve{constructor(e,n){super("w:lvlOverride"),this.root.push(new UI({ilvl:e})),n!==void 0&&this.root.push(new VI(n))}}class XI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val"})}}class VI extends ve{constructor(e){super("w:startOverride"),this.root.push(new XI({val:e}))}}class YI extends ve{constructor(e){super("w:numbering"),be(this,"abstractNumberingMap",new Map),be(this,"concreteNumberingMap",new Map),be(this,"referenceConfigMap",new Map),be(this,"abstractNumUniqueNumericId",P_()),be(this,"concreteNumUniqueNumericId",M_()),this.root.push(new As({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const n=new Qg(this.abstractNumUniqueNumericId(),[{level:0,format:ai.BULLET,text:"\u25CF",alignment:Ar.LEFT,style:{paragraph:{indent:{left:Dr(.5),hanging:Dr(.25)}}}},{level:1,format:ai.BULLET,text:"\u25CB",alignment:Ar.LEFT,style:{paragraph:{indent:{left:Dr(1),hanging:Dr(.25)}}}},{level:2,format:ai.BULLET,text:"\u25A0",alignment:Ar.LEFT,style:{paragraph:{indent:{left:2160,hanging:Dr(.25)}}}},{level:3,format:ai.BULLET,text:"\u25CF",alignment:Ar.LEFT,style:{paragraph:{indent:{left:2880,hanging:Dr(.25)}}}},{level:4,format:ai.BULLET,text:"\u25CB",alignment:Ar.LEFT,style:{paragraph:{indent:{left:3600,hanging:Dr(.25)}}}},{level:5,format:ai.BULLET,text:"\u25A0",alignment:Ar.LEFT,style:{paragraph:{indent:{left:4320,hanging:Dr(.25)}}}},{level:6,format:ai.BULLET,text:"\u25CF",alignment:Ar.LEFT,style:{paragraph:{indent:{left:5040,hanging:Dr(.25)}}}},{level:7,format:ai.BULLET,text:"\u25CF",alignment:Ar.LEFT,style:{paragraph:{indent:{left:5760,hanging:Dr(.25)}}}},{level:8,format:ai.BULLET,text:"\u25CF",alignment:Ar.LEFT,style:{paragraph:{indent:{left:6480,hanging:Dr(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Kg({numId:1,abstractNumId:n.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",n);for(const r of e.config)this.abstractNumberingMap.set(r.reference,new Qg(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.levels)}prepForXml(e){for(const n of this.abstractNumberingMap.values())this.root.push(n);for(const n of this.concreteNumberingMap.values())this.root.push(n);return super.prepForXml(e)}createConcreteNumberingInstance(e,n){const r=this.abstractNumberingMap.get(e);if(!r)return;const i=`${e}-${n}`;if(this.concreteNumberingMap.has(i))return;const o=this.referenceConfigMap.get(e),a=o&&o[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:e,instance:n,overrideLevels:[a&&Number.isInteger(a)?{num:0,start:a}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new Kg(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class BI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class ZI extends ve{constructor(e){super("w:compatSetting"),this.root.push(new BI({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class kI extends ve{constructor(e){super("w:compat"),e.version&&this.root.push(new ZI(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new Ne("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new Ne("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new Ne("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new Ne("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new Ne("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new Ne("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new Ne("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new Ne("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new Ne("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new Ne("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new Ne("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new Ne("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new Ne("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new Ne("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new Ne("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new Ne("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new Ne("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new Ne("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new Ne("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new Ne("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new Ne("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new Ne("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new Ne("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new Ne("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new Ne("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new Ne("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new Ne("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new Ne("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new Ne("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new Ne("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new Ne("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new Ne("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new Ne("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new Ne("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new Ne("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new Ne("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new Ne("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new Ne("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new Ne("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new Ne("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new Ne("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new Ne("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new Ne("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new Ne("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new Ne("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new Ne("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new Ne("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new Ne("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new Ne("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new Ne("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new Ne("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new Ne("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new Ne("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new Ne("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new Ne("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new Ne("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new Ne("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new Ne("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new Ne("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new Ne("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new Ne("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new Ne("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new Ne("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new Ne("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new Ne("w:cachedColBalance",e.cachedColumnBalance))}}class QI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class KI extends ve{constructor(e){var n,r,i,o;super("w:settings"),this.root.push(new QI({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new Ne("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new Ne("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new Ne("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new Ne("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new Rf("w:defaultTabStop",e.defaultTabStop)),this.root.push(new kI(ua(dt({},(n=e.compatibility)!=null?n:{}),{version:(o=(i=(r=e.compatibility)==null?void 0:r.version)!=null?i:e.compatibilityModeVersion)!=null?o:15})))}}class C2 extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{val:"w:val"})}}class HI extends ve{constructor(e){super("w:name"),this.root.push(new C2({val:e}))}}class GI extends ve{constructor(e){super("w:uiPriority"),this.root.push(new C2({val:Nn(e)}))}}class JI extends Ue{constructor(){super(...arguments),be(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class A2 extends ve{constructor(e,n){super("w:style"),this.root.push(new JI(e)),n.name&&this.root.push(new HI(n.name)),n.basedOn&&this.root.push(new lo("w:basedOn",n.basedOn)),n.next&&this.root.push(new lo("w:next",n.next)),n.link&&this.root.push(new lo("w:link",n.link)),n.uiPriority!==void 0&&this.root.push(new GI(n.uiPriority)),n.semiHidden!==void 0&&this.root.push(new Ne("w:semiHidden",n.semiHidden)),n.unhideWhenUsed!==void 0&&this.root.push(new Ne("w:unhideWhenUsed",n.unhideWhenUsed)),n.quickFormat!==void 0&&this.root.push(new Ne("w:qFormat",n.quickFormat))}}class Wu extends A2{constructor(e){super({type:"paragraph",styleId:e.id},e),be(this,"paragraphProperties"),be(this,"runProperties"),this.paragraphProperties=new pa(e.paragraph),this.runProperties=new vo(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Xu extends A2{constructor(e){super({type:"character",styleId:e.id},dt({uiPriority:99,unhideWhenUsed:!0},e)),be(this,"runProperties"),this.runProperties=new vo(e.run),this.root.push(this.runProperties)}}class Yi extends Wu{constructor(e){super(dt({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class zI extends Yi{constructor(e){super(dt({id:"Title",name:"Title"},e))}}class $I extends Yi{constructor(e){super(dt({id:"Heading1",name:"Heading 1"},e))}}class jI extends Yi{constructor(e){super(dt({id:"Heading2",name:"Heading 2"},e))}}class qI extends Yi{constructor(e){super(dt({id:"Heading3",name:"Heading 3"},e))}}class eN extends Yi{constructor(e){super(dt({id:"Heading4",name:"Heading 4"},e))}}class tN extends Yi{constructor(e){super(dt({id:"Heading5",name:"Heading 5"},e))}}class nN extends Yi{constructor(e){super(dt({id:"Heading6",name:"Heading 6"},e))}}class rN extends Yi{constructor(e){super(dt({id:"Strong",name:"Strong"},e))}}class iN extends Wu{constructor(e){super(dt({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class oN extends Wu{constructor(e){super(dt({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:xd.AUTO}},run:{size:20}},e))}}class aN extends Xu{constructor(e){super(dt({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class sN extends Xu{constructor(e){super(dt({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class cN extends Xu{constructor(e){super(dt({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:g2.SINGLE}}},e))}}class wd extends ve{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const n of e.importedStyles)this.root.push(n);if(e.paragraphStyles)for(const n of e.paragraphStyles)this.root.push(new Wu(n));if(e.characterStyles)for(const n of e.characterStyles)this.root.push(new Xu(n))}}class uN extends ve{constructor(e){super("w:pPrDefault"),this.root.push(new pa(e))}}class lN extends ve{constructor(e){super("w:rPrDefault"),this.root.push(new vo(e))}}class hN extends ve{constructor(e){super("w:docDefaults"),be(this,"runPropertiesDefaults"),be(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new lN(e.run),this.paragraphPropertiesDefaults=new uN(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class dN{newInstance(e){const n=u2.xml2js(e,{compact:!1});let r;for(const a of n.elements||[])a.name==="w:styles"&&(r=a);if(r===void 0)throw new Error("can not find styles element");const i=r.elements||[];return new wd({initialStyles:new zO(r.attributes),importedStyles:i.map(a=>gf(a))})}}class Hg{newInstance(e={}){var n;return{initialStyles:new As({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new hN((n=e.document)!=null?n:{}),new zI(dt({run:{size:56}},e.title)),new $I(dt({run:{color:"2E74B5",size:32}},e.heading1)),new jI(dt({run:{color:"2E74B5",size:26}},e.heading2)),new qI(dt({run:{color:"1F4D78",size:24}},e.heading3)),new eN(dt({run:{color:"2E74B5",italics:!0}},e.heading4)),new tN(dt({run:{color:"2E74B5"}},e.heading5)),new nN(dt({run:{color:"1F4D78"}},e.heading6)),new rN(dt({run:{bold:!0}},e.strong)),new iN(e.listParagraph||{}),new cN(e.hyperlink||{}),new aN(e.footnoteReference||{}),new oN(e.footnoteText||{}),new sN(e.footnoteTextChar||{})]}}}const Fc=({id:t,fontKey:e,subsetted:n},r)=>new Fn({name:r,attributes:dt({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...n?[new Ne("w:subsetted",n)]:[]]}),fN=({name:t,altName:e,panose1:n,charset:r,family:i,notTrueType:o,pitch:a,sig:s,embedRegular:c,embedBold:u,embedItalic:l,embedBoldItalic:h})=>new Fn({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[Ka("w:altName",e)]:[],...n?[Ka("w:panose1",n)]:[],...r?[Ka("w:charset",r)]:[],...i?[Ka("w:family",i)]:[],...o?[new Ne("w:notTrueType",o)]:[],...a?[Ka("w:pitch",a)]:[],...s?[new Fn({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...c?[Fc(c,"w:embedRegular")]:[],...u?[Fc(u,"w:embedBold")]:[],...l?[Fc(l,"w:embedItalic")]:[],...h?[Fc(h,"w:embedBoldItalic")]:[]]}),pN=({name:t,index:e,fontKey:n,characterSet:r})=>fN({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:r,family:"auto",pitch:"variable",embedRegular:{fontKey:n,id:`rId${e}`}}),gN=t=>new Fn({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((e,n)=>pN({name:e.name,index:n+1,fontKey:e.fontKey}))});class mN{constructor(e){be(this,"fontTable"),be(this,"relationships"),be(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(n=>ua(dt({},n),{fontKey:A_()})),this.fontTable=gN(this.fontOptionsWithKey),this.relationships=new Oa;for(let n=0;ne.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}class yN{constructor(e={children:[]}){be(this,"options"),this.options=e}}class vN{constructor(e={children:[]}){be(this,"options"),this.options=e}}function Pc(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var U2={exports:{}};(function(t,e){(function(n){t.exports=n()})(function(){return function n(r,i,o){function a(u,l){if(!i[u]){if(!r[u]){var h=typeof Pc=="function"&&Pc;if(!l&&h)return h(u,!0);if(s)return s(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var f=i[u]={exports:{}};r[u][0].call(f.exports,function(p){var g=r[u][1][p];return a(g||p)},f,f.exports,n,r,i,o)}return i[u].exports}for(var s=typeof Pc=="function"&&Pc,c=0;c>2,f=(3&u)<<4|l>>4,p=1>6:64,g=2>4,l=(15&d)<<4|(f=s.indexOf(c.charAt(g++)))>>2,h=(3&f)<<6|(p=s.indexOf(c.charAt(g++))),m[y++]=u,f!==64&&(m[y++]=l),p!==64&&(m[y++]=h);return m}},{"./support":30,"./utils":32}],2:[function(n,r,i){var o=n("./external"),a=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),c=n("./stream/DataLengthProbe");function u(l,h,d,f,p){this.compressedSize=l,this.uncompressedSize=h,this.crc32=d,this.compression=f,this.compressedContent=p}u.prototype={getContentWorker:function(){var l=new a(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),h=this;return l.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new a(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(l,h,d){return l.pipe(new s).pipe(new c("uncompressedSize")).pipe(h.compressWorker(d)).pipe(new c("compressedSize")).withStreamInfo("compression",h)},r.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var o=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var o=n("./utils"),a=function(){for(var s,c=[],u=0;u<256;u++){s=u;for(var l=0;l<8;l++)s=1&s?3988292384^s>>>1:s>>>1;c[u]=s}return c}();r.exports=function(s,c){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?function(u,l,h,d){var f=a,p=d+h;u^=-1;for(var g=d;g>>8^f[255&(u^l[g])];return-1^u}(0|c,s,s.length,0):function(u,l,h,d){var f=a,p=d+h;u^=-1;for(var g=d;g>>8^f[255&(u^l.charCodeAt(g))];return-1^u}(0|c,s,s.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var o=null;o=typeof Promise!="undefined"?Promise:n("lie"),r.exports={Promise:o}},{lie:37}],7:[function(n,r,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=n("pako"),s=n("./utils"),c=n("./stream/GenericWorker"),u=o?"uint8array":"array";function l(h,d){c.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=d,this.meta={}}i.magic="\b\0",s.inherits(l,c),l.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,h.data),!1)},l.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(d){h.push({data:d,meta:h.meta})}},i.compressWorker=function(h){return new l("Deflate",h)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function o(f,p){var g,y="";for(g=0;g>>=8;return y}function a(f,p,g,y,R,m){var v,x,O=f.file,E=f.compression,N=m!==u.utf8encode,M=s.transformTo("string",m(O.name)),_=s.transformTo("string",u.utf8encode(O.name)),B=O.comment,q=s.transformTo("string",m(B)),T=s.transformTo("string",u.utf8encode(B)),I=_.length!==O.name.length,b=T.length!==B.length,P="",U="",X="",V=O.dir,k=O.date,re={crc32:0,compressedSize:0,uncompressedSize:0};p&&!g||(re.crc32=f.crc32,re.compressedSize=f.compressedSize,re.uncompressedSize=f.uncompressedSize);var Z=0;p&&(Z|=8),N||!I&&!b||(Z|=2048);var C=0,ne=0;V&&(C|=16),R==="UNIX"?(ne=798,C|=function(ue,ce){var W=ue;return ue||(W=ce?16893:33204),(65535&W)<<16}(O.unixPermissions,V)):(ne=20,C|=function(ue){return 63&(ue||0)}(O.dosPermissions)),v=k.getUTCHours(),v<<=6,v|=k.getUTCMinutes(),v<<=5,v|=k.getUTCSeconds()/2,x=k.getUTCFullYear()-1980,x<<=4,x|=k.getUTCMonth()+1,x<<=5,x|=k.getUTCDate(),I&&(U=o(1,1)+o(l(M),4)+_,P+="up"+o(U.length,2)+U),b&&(X=o(1,1)+o(l(q),4)+T,P+="uc"+o(X.length,2)+X);var oe="";return oe+=` \0`,oe+=o(Z,2),oe+=E.magic,oe+=o(v,2),oe+=o(x,2),oe+=o(re.crc32,4),oe+=o(re.compressedSize,4),oe+=o(re.uncompressedSize,4),oe+=o(M.length,2),oe+=o(P.length,2),{fileRecord:h.LOCAL_FILE_HEADER+oe+M+P,dirRecord:h.CENTRAL_FILE_HEADER+o(ne,2)+oe+o(q.length,2)+"\0\0\0\0"+o(C,4)+o(y,4)+M+P+q}}var s=n("../utils"),c=n("../stream/GenericWorker"),u=n("../utf8"),l=n("../crc32"),h=n("../signature");function d(f,p,g,y){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=g,this.encodeFileName=y,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,c),d.prototype.push=function(f){var p=f.meta.percent||0,g=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,c.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:g?(p+100*(g-y-1))/g:100}}))},d.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var p=this.streamFiles&&!f.file.dir;if(p){var g=a(f,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(f){this.accumulate=!1;var p=this.streamFiles&&!f.file.dir,g=a(f,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),p)this.push({data:function(y){return h.DATA_DESCRIPTOR+o(y.crc32,4)+o(y.compressedSize,4)+o(y.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var f=this.bytesWritten,p=0;p=this.index;c--)u=(u<<8)+this.byteAt(c);return this.index+=s,u},readString:function(s){return o.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},r.exports=a},{"../utils":32}],19:[function(n,r,i){var o=n("./Uint8ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var o=n("./DataReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var o=n("./ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var o=n("../utils"),a=n("../support"),s=n("./ArrayReader"),c=n("./StringReader"),u=n("./NodeBufferReader"),l=n("./Uint8ArrayReader");r.exports=function(h){var d=o.getTypeOf(h);return o.checkSupport(d),d!=="string"||a.uint8array?d==="nodebuffer"?new u(h):a.uint8array?new l(o.transformTo("uint8array",h)):new s(o.transformTo("array",h)):new c(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var o=n("./GenericWorker"),a=n("../utils");function s(c){o.call(this,"ConvertWorker to "+c),this.destType=c}a.inherits(s,o),s.prototype.processChunk=function(c){this.push({data:a.transformTo(this.destType,c.data),meta:c.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var o=n("./GenericWorker"),a=n("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(s,o),s.prototype.processChunk=function(c){this.streamInfo.crc32=a(c.data,this.streamInfo.crc32||0),this.push(c)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var o=n("../utils"),a=n("./GenericWorker");function s(c){a.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}o.inherits(s,a),s.prototype.processChunk=function(c){if(c){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+c.data.length}a.prototype.processChunk.call(this,c)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var o=n("../utils"),a=n("./GenericWorker");function s(c){a.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(l){u.dataIsReady=!0,u.data=l,u.max=l&&l.length||0,u.type=o.getTypeOf(l),u.isPaused||u._tickAndRepeat()},function(l){u.error(l)})}o.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,u);break;case"uint8array":c=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":c=this.data.slice(this.index,u)}return this.index=u,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function o(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var c=0;c "+a:a}},r.exports=o},{}],29:[function(n,r,i){var o=n("../utils"),a=n("./ConvertWorker"),s=n("./GenericWorker"),c=n("../base64"),u=n("../support"),l=n("../external"),h=null;if(u.nodestream)try{h=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(p,g){return new l.Promise(function(y,R){var m=[],v=p._internalType,x=p._outputType,O=p._mimeType;p.on("data",function(E,N){m.push(E),g&&g(N)}).on("error",function(E){m=[],R(E)}).on("end",function(){try{var E=function(N,M,_){switch(N){case"blob":return o.newBlob(o.transformTo("arraybuffer",M),_);case"base64":return c.encode(M);default:return o.transformTo(N,M)}}(x,function(N,M){var _,B=0,q=null,T=0;for(_=0;_>>6:(y<65536?g[v++]=224|y>>>12:(g[v++]=240|y>>>18,g[v++]=128|y>>>12&63),g[v++]=128|y>>>6&63),g[v++]=128|63&y);return g}(f)},i.utf8decode=function(f){return a.nodebuffer?o.transformTo("nodebuffer",f).toString("utf-8"):function(p){var g,y,R,m,v=p.length,x=new Array(2*v);for(g=y=0;g>10&1023,x[y++]=56320|1023&R)}return x.length!==y&&(x.subarray?x=x.subarray(0,y):x.length=y),o.applyFromCharCode(x)}(f=o.transformTo(a.uint8array?"uint8array":"array",f))},o.inherits(h,c),h.prototype.processChunk=function(f){var p=o.transformTo(a.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var g=p;(p=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),p.set(g,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var y=function(m,v){var x;for((v=v||m.length)>m.length&&(v=m.length),x=v-1;0<=x&&(192&m[x])==128;)x--;return x<0||x===0?v:x+u[m[x]]>v?x:v}(p),R=p;y!==p.length&&(a.uint8array?(R=p.subarray(0,y),this.leftOver=p.subarray(y,p.length)):(R=p.slice(0,y),this.leftOver=p.slice(y,p.length))),this.push({data:i.utf8decode(R),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,o.inherits(d,c),d.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var o=n("./support"),a=n("./base64"),s=n("./nodejsUtils"),c=n("./external");function u(g){return g}function l(g,y){for(var R=0;R>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=o(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var p,g,y,R=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4>>6:(f<65536?d[y++]=224|f>>>12:(d[y++]=240|f>>>18,d[y++]=128|f>>>12&63),d[y++]=128|f>>>6&63),d[y++]=128|63&f);return d},i.buf2binstring=function(h){return l(h,h.length)},i.binstring2buf=function(h){for(var d=new o.Buf8(h.length),f=0,p=d.length;f>10&1023,m[p++]=56320|1023&g)}return l(m,p)},i.utf8border=function(h,d){var f;for((d=d||h.length)>h.length&&(d=h.length),f=d-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?d:f+c[h[f]]>d?f:d}},{"./common":41}],43:[function(n,r,i){r.exports=function(o,a,s,c){for(var u=65535&o|0,l=o>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3>>1:a>>>1;s[c]=a}return s}();r.exports=function(a,s,c,u){var l=o,h=u+c;a^=-1;for(var d=u;d>>8^l[255&(a^s[d])];return-1^a}},{}],46:[function(n,r,i){var o,a=n("../utils/common"),s=n("./trees"),c=n("./adler32"),u=n("./crc32"),l=n("./messages"),h=0,d=4,f=0,p=-2,g=-1,y=4,R=2,m=8,v=9,x=286,O=30,E=19,N=2*x+1,M=15,_=3,B=258,q=B+_+1,T=42,I=113,b=1,P=2,U=3,X=4;function V(D,ie){return D.msg=l[ie],ie}function k(D){return(D<<1)-(4D.avail_out&&(L=D.avail_out),L!==0&&(a.arraySet(D.output,ie.pending_buf,ie.pending_out,L,D.next_out),D.next_out+=L,ie.pending_out+=L,D.total_out+=L,D.avail_out-=L,ie.pending-=L,ie.pending===0&&(ie.pending_out=0))}function C(D,ie){s._tr_flush_block(D,0<=D.block_start?D.block_start:-1,D.strstart-D.block_start,ie),D.block_start=D.strstart,Z(D.strm)}function ne(D,ie){D.pending_buf[D.pending++]=ie}function oe(D,ie){D.pending_buf[D.pending++]=ie>>>8&255,D.pending_buf[D.pending++]=255&ie}function ue(D,ie){var L,w,S=D.max_chain_length,F=D.strstart,G=D.prev_length,ee=D.nice_match,K=D.strstart>D.w_size-q?D.strstart-(D.w_size-q):0,J=D.window,te=D.w_mask,ae=D.prev,he=D.strstart+B,xe=J[F+G-1],_e=J[F+G];D.prev_length>=D.good_match&&(S>>=2),ee>D.lookahead&&(ee=D.lookahead);do if(J[(L=ie)+G]===_e&&J[L+G-1]===xe&&J[L]===J[F]&&J[++L]===J[F+1]){F+=2,L++;do;while(J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&FK&&--S!=0);return G<=D.lookahead?G:D.lookahead}function ce(D){var ie,L,w,S,F,G,ee,K,J,te,ae=D.w_size;do{if(S=D.window_size-D.lookahead-D.strstart,D.strstart>=ae+(ae-q)){for(a.arraySet(D.window,D.window,ae,ae,0),D.match_start-=ae,D.strstart-=ae,D.block_start-=ae,ie=L=D.hash_size;w=D.head[--ie],D.head[ie]=ae<=w?w-ae:0,--L;);for(ie=L=ae;w=D.prev[--ie],D.prev[ie]=ae<=w?w-ae:0,--L;);S+=ae}if(D.strm.avail_in===0)break;if(G=D.strm,ee=D.window,K=D.strstart+D.lookahead,J=S,te=void 0,te=G.avail_in,J=_)for(F=D.strstart-D.insert,D.ins_h=D.window[F],D.ins_h=(D.ins_h<=_&&(D.ins_h=(D.ins_h<=_)if(w=s._tr_tally(D,D.strstart-D.match_start,D.match_length-_),D.lookahead-=D.match_length,D.match_length<=D.max_lazy_match&&D.lookahead>=_){for(D.match_length--;D.strstart++,D.ins_h=(D.ins_h<=_&&(D.ins_h=(D.ins_h<=_&&D.match_length<=D.prev_length){for(S=D.strstart+D.lookahead-_,w=s._tr_tally(D,D.strstart-1-D.prev_match,D.prev_length-_),D.lookahead-=D.prev_length-1,D.prev_length-=2;++D.strstart<=S&&(D.ins_h=(D.ins_h<D.pending_buf_size-5&&(L=D.pending_buf_size-5);;){if(D.lookahead<=1){if(ce(D),D.lookahead===0&&ie===h)return b;if(D.lookahead===0)break}D.strstart+=D.lookahead,D.lookahead=0;var w=D.block_start+L;if((D.strstart===0||D.strstart>=w)&&(D.lookahead=D.strstart-w,D.strstart=w,C(D,!1),D.strm.avail_out===0)||D.strstart-D.block_start>=D.w_size-q&&(C(D,!1),D.strm.avail_out===0))return b}return D.insert=0,ie===d?(C(D,!0),D.strm.avail_out===0?U:X):(D.strstart>D.block_start&&(C(D,!1),D.strm.avail_out),b)}),new Q(4,4,8,4,W),new Q(4,5,16,8,W),new Q(4,6,32,32,W),new Q(4,4,16,16,A),new Q(8,16,32,32,A),new Q(8,16,128,128,A),new Q(8,32,128,256,A),new Q(32,128,258,1024,A),new Q(32,258,258,4096,A)],i.deflateInit=function(D,ie){return ge(D,ie,m,15,8,0)},i.deflateInit2=ge,i.deflateReset=j,i.deflateResetKeep=H,i.deflateSetHeader=function(D,ie){return D&&D.state?D.state.wrap!==2?p:(D.state.gzhead=ie,f):p},i.deflate=function(D,ie){var L,w,S,F;if(!D||!D.state||5>8&255),ne(w,w.gzhead.time>>16&255),ne(w,w.gzhead.time>>24&255),ne(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),ne(w,255&w.gzhead.os),w.gzhead.extra&&w.gzhead.extra.length&&(ne(w,255&w.gzhead.extra.length),ne(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(D.adler=u(D.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(ne(w,0),ne(w,0),ne(w,0),ne(w,0),ne(w,0),ne(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),ne(w,3),w.status=I);else{var G=m+(w.w_bits-8<<4)<<8;G|=(2<=w.strategy||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6,w.strstart!==0&&(G|=32),G+=31-G%31,w.status=I,oe(w,G),w.strstart!==0&&(oe(w,D.adler>>>16),oe(w,65535&D.adler)),D.adler=1}if(w.status===69)if(w.gzhead.extra){for(S=w.pending;w.gzindex<(65535&w.gzhead.extra.length)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),Z(D),S=w.pending,w.pending!==w.pending_buf_size));)ne(w,255&w.gzhead.extra[w.gzindex]),w.gzindex++;w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),w.gzindex===w.gzhead.extra.length&&(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),Z(D),S=w.pending,w.pending===w.pending_buf_size)){F=1;break}F=w.gzindexS&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),F===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===91)if(w.gzhead.comment){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),Z(D),S=w.pending,w.pending===w.pending_buf_size)){F=1;break}F=w.gzindexS&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),F===0&&(w.status=103)}else w.status=103;if(w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&Z(D),w.pending+2<=w.pending_buf_size&&(ne(w,255&D.adler),ne(w,D.adler>>8&255),D.adler=0,w.status=I)):w.status=I),w.pending!==0){if(Z(D),D.avail_out===0)return w.last_flush=-1,f}else if(D.avail_in===0&&k(ie)<=k(L)&&ie!==d)return V(D,-5);if(w.status===666&&D.avail_in!==0)return V(D,-5);if(D.avail_in!==0||w.lookahead!==0||ie!==h&&w.status!==666){var ee=w.strategy===2?function(K,J){for(var te;;){if(K.lookahead===0&&(ce(K),K.lookahead===0)){if(J===h)return b;break}if(K.match_length=0,te=s._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++,te&&(C(K,!1),K.strm.avail_out===0))return b}return K.insert=0,J===d?(C(K,!0),K.strm.avail_out===0?U:X):K.last_lit&&(C(K,!1),K.strm.avail_out===0)?b:P}(w,ie):w.strategy===3?function(K,J){for(var te,ae,he,xe,_e=K.window;;){if(K.lookahead<=B){if(ce(K),K.lookahead<=B&&J===h)return b;if(K.lookahead===0)break}if(K.match_length=0,K.lookahead>=_&&0K.lookahead&&(K.match_length=K.lookahead)}if(K.match_length>=_?(te=s._tr_tally(K,1,K.match_length-_),K.lookahead-=K.match_length,K.strstart+=K.match_length,K.match_length=0):(te=s._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++),te&&(C(K,!1),K.strm.avail_out===0))return b}return K.insert=0,J===d?(C(K,!0),K.strm.avail_out===0?U:X):K.last_lit&&(C(K,!1),K.strm.avail_out===0)?b:P}(w,ie):o[w.level].func(w,ie);if(ee!==U&&ee!==X||(w.status=666),ee===b||ee===U)return D.avail_out===0&&(w.last_flush=-1),f;if(ee===P&&(ie===1?s._tr_align(w):ie!==5&&(s._tr_stored_block(w,0,0,!1),ie===3&&(re(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),Z(D),D.avail_out===0))return w.last_flush=-1,f}return ie!==d?f:w.wrap<=0?1:(w.wrap===2?(ne(w,255&D.adler),ne(w,D.adler>>8&255),ne(w,D.adler>>16&255),ne(w,D.adler>>24&255),ne(w,255&D.total_in),ne(w,D.total_in>>8&255),ne(w,D.total_in>>16&255),ne(w,D.total_in>>24&255)):(oe(w,D.adler>>>16),oe(w,65535&D.adler)),Z(D),0=L.w_size&&(F===0&&(re(L.head),L.strstart=0,L.block_start=0,L.insert=0),J=new a.Buf8(L.w_size),a.arraySet(J,ie,te-L.w_size,L.w_size,0),ie=J,te=L.w_size),G=D.avail_in,ee=D.next_in,K=D.input,D.avail_in=te,D.next_in=0,D.input=ie,ce(L);L.lookahead>=_;){for(w=L.strstart,S=L.lookahead-(_-1);L.ins_h=(L.ins_h<>>=_=M>>>24,v-=_,(_=M>>>16&255)===0)P[l++]=65535&M;else{if(!(16&_)){if((64&_)==0){M=x[(65535&M)+(m&(1<<_)-1)];continue t}if(32&_){s.mode=12;break e}o.msg="invalid literal/length code",s.mode=30;break e}B=65535&M,(_&=15)&&(v<_&&(m+=b[c++]<>>=_,v-=_),v<15&&(m+=b[c++]<>>=_=M>>>24,v-=_,!(16&(_=M>>>16&255))){if((64&_)==0){M=O[(65535&M)+(m&(1<<_)-1)];continue n}o.msg="invalid distance code",s.mode=30;break e}if(q=65535&M,v<(_&=15)&&(m+=b[c++]<>>=_,v-=_,(_=l-h)>3,m&=(1<<(v-=B<<3))-1,o.next_in=c,o.next_out=l,o.avail_in=c>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(T){var I;return T&&T.state?(I=T.state,T.total_in=T.total_out=I.total=0,T.msg="",I.wrap&&(T.adler=1&I.wrap),I.mode=p,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new o.Buf32(g),I.distcode=I.distdyn=new o.Buf32(y),I.sane=1,I.back=-1,d):f}function x(T){var I;return T&&T.state?((I=T.state).wsize=0,I.whave=0,I.wnext=0,v(T)):f}function O(T,I){var b,P;return T&&T.state?(P=T.state,I<0?(b=0,I=-I):(b=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15=X.wsize?(o.arraySet(X.window,I,b-X.wsize,X.wsize,0),X.wnext=0,X.whave=X.wsize):(P<(U=X.wsize-X.wnext)&&(U=P),o.arraySet(X.window,I,b-P,U,X.wnext),(P-=U)?(o.arraySet(X.window,I,b-P,P,0),X.wnext=P,X.whave=X.wsize):(X.wnext+=U,X.wnext===X.wsize&&(X.wnext=0),X.whave>>8&255,b.check=s(b.check,F,2,0),C=Z=0,b.mode=2;break}if(b.flags=0,b.head&&(b.head.done=!1),!(1&b.wrap)||(((255&Z)<<8)+(Z>>8))%31){T.msg="incorrect header check",b.mode=30;break}if((15&Z)!=8){T.msg="unknown compression method",b.mode=30;break}if(C-=4,D=8+(15&(Z>>>=4)),b.wbits===0)b.wbits=D;else if(D>b.wbits){T.msg="invalid window size",b.mode=30;break}b.dmax=1<>8&1),512&b.flags&&(F[0]=255&Z,F[1]=Z>>>8&255,b.check=s(b.check,F,2,0)),C=Z=0,b.mode=3;case 3:for(;C<32;){if(k===0)break e;k--,Z+=P[X++]<>>8&255,F[2]=Z>>>16&255,F[3]=Z>>>24&255,b.check=s(b.check,F,4,0)),C=Z=0,b.mode=4;case 4:for(;C<16;){if(k===0)break e;k--,Z+=P[X++]<>8),512&b.flags&&(F[0]=255&Z,F[1]=Z>>>8&255,b.check=s(b.check,F,2,0)),C=Z=0,b.mode=5;case 5:if(1024&b.flags){for(;C<16;){if(k===0)break e;k--,Z+=P[X++]<>>8&255,b.check=s(b.check,F,2,0)),C=Z=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&(k<(ue=b.length)&&(ue=k),ue&&(b.head&&(D=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),o.arraySet(b.head.extra,P,X,ue,D)),512&b.flags&&(b.check=s(b.check,P,ue,X)),k-=ue,X+=ue,b.length-=ue),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(k===0)break e;for(ue=0;D=P[X+ue++],b.head&&D&&b.length<65536&&(b.head.name+=String.fromCharCode(D)),D&&ue>9&1,b.head.done=!0),T.adler=b.check=0,b.mode=12;break;case 10:for(;C<32;){if(k===0)break e;k--,Z+=P[X++]<>>=7&C,C-=7&C,b.mode=27;break}for(;C<3;){if(k===0)break e;k--,Z+=P[X++]<>>=1)){case 0:b.mode=14;break;case 1:if(B(b),b.mode=20,I!==6)break;Z>>>=2,C-=2;break e;case 2:b.mode=17;break;case 3:T.msg="invalid block type",b.mode=30}Z>>>=2,C-=2;break;case 14:for(Z>>>=7&C,C-=7&C;C<32;){if(k===0)break e;k--,Z+=P[X++]<>>16^65535)){T.msg="invalid stored block lengths",b.mode=30;break}if(b.length=65535&Z,C=Z=0,b.mode=15,I===6)break e;case 15:b.mode=16;case 16:if(ue=b.length){if(k>>=5,C-=5,b.ndist=1+(31&Z),Z>>>=5,C-=5,b.ncode=4+(15&Z),Z>>>=4,C-=4,286>>=3,C-=3}for(;b.have<19;)b.lens[G[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,L={bits:b.lenbits},ie=u(0,b.lens,0,19,b.lencode,0,b.work,L),b.lenbits=L.bits,ie){T.msg="invalid code lengths set",b.mode=30;break}b.have=0,b.mode=19;case 19:for(;b.have>>16&255,z=65535&S,!((A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>>=A,C-=A,b.lens[b.have++]=z;else{if(z===16){for(w=A+2;C>>=A,C-=A,b.have===0){T.msg="invalid bit length repeat",b.mode=30;break}D=b.lens[b.have-1],ue=3+(3&Z),Z>>>=2,C-=2}else if(z===17){for(w=A+3;C>>=A)),Z>>>=3,C-=3}else{for(w=A+7;C>>=A)),Z>>>=7,C-=7}if(b.have+ue>b.nlen+b.ndist){T.msg="invalid bit length repeat",b.mode=30;break}for(;ue--;)b.lens[b.have++]=D}}if(b.mode===30)break;if(b.lens[256]===0){T.msg="invalid code -- missing end-of-block",b.mode=30;break}if(b.lenbits=9,L={bits:b.lenbits},ie=u(l,b.lens,0,b.nlen,b.lencode,0,b.work,L),b.lenbits=L.bits,ie){T.msg="invalid literal/lengths set",b.mode=30;break}if(b.distbits=6,b.distcode=b.distdyn,L={bits:b.distbits},ie=u(h,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,L),b.distbits=L.bits,ie){T.msg="invalid distances set",b.mode=30;break}if(b.mode=20,I===6)break e;case 20:b.mode=21;case 21:if(6<=k&&258<=re){T.next_out=V,T.avail_out=re,T.next_in=X,T.avail_in=k,b.hold=Z,b.bits=C,c(T,oe),V=T.next_out,U=T.output,re=T.avail_out,X=T.next_in,P=T.input,k=T.avail_in,Z=b.hold,C=b.bits,b.mode===12&&(b.back=-1);break}for(b.back=0;Q=(S=b.lencode[Z&(1<>>16&255,z=65535&S,!((A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>H)])>>>16&255,z=65535&S,!(H+(A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>>=H,C-=H,b.back+=H}if(Z>>>=A,C-=A,b.back+=A,b.length=z,Q===0){b.mode=26;break}if(32&Q){b.back=-1,b.mode=12;break}if(64&Q){T.msg="invalid literal/length code",b.mode=30;break}b.extra=15&Q,b.mode=22;case 22:if(b.extra){for(w=b.extra;C>>=b.extra,C-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=23;case 23:for(;Q=(S=b.distcode[Z&(1<>>16&255,z=65535&S,!((A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>H)])>>>16&255,z=65535&S,!(H+(A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>>=H,C-=H,b.back+=H}if(Z>>>=A,C-=A,b.back+=A,64&Q){T.msg="invalid distance code",b.mode=30;break}b.offset=z,b.extra=15&Q,b.mode=24;case 24:if(b.extra){for(w=b.extra;C>>=b.extra,C-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){T.msg="invalid distance too far back",b.mode=30;break}b.mode=25;case 25:if(re===0)break e;if(ue=oe-re,b.offset>ue){if((ue=b.offset-ue)>b.whave&&b.sane){T.msg="invalid distance too far back",b.mode=30;break}ce=ue>b.wnext?(ue-=b.wnext,b.wsize-ue):b.wnext-ue,ue>b.length&&(ue=b.length),W=b.window}else W=U,ce=V-b.offset,ue=b.length;for(reN?(_=ce[W+y[I]],C[ne+y[I]]):(_=96,0),m=1<>V)+(v-=m)]=M<<24|_<<16|B|0,v!==0;);for(m=1<>=1;if(m!==0?(Z&=m-1,Z+=m):Z=0,I++,--oe[T]==0){if(T===P)break;T=h[d+y[I]]}if(U>>7)]}function ne(S,F){S.pending_buf[S.pending++]=255&F,S.pending_buf[S.pending++]=F>>>8&255}function oe(S,F,G){S.bi_valid>R-G?(S.bi_buf|=F<>R-S.bi_valid,S.bi_valid+=G-R):(S.bi_buf|=F<>>=1,G<<=1,0<--F;);return G>>>1}function W(S,F,G){var ee,K,J=new Array(y+1),te=0;for(ee=1;ee<=y;ee++)J[ee]=te=te+G[ee-1]<<1;for(K=0;K<=F;K++){var ae=S[2*K+1];ae!==0&&(S[2*K]=ce(J[ae]++,ae))}}function A(S){var F;for(F=0;F>1;1<=G;G--)H(S,J,G);for(K=he;G=S.heap[1],S.heap[1]=S.heap[S.heap_len--],H(S,J,1),ee=S.heap[1],S.heap[--S.heap_max]=G,S.heap[--S.heap_max]=ee,J[2*K]=J[2*G]+J[2*ee],S.depth[K]=(S.depth[G]>=S.depth[ee]?S.depth[G]:S.depth[ee])+1,J[2*G+1]=J[2*ee+1]=K,S.heap[1]=K++,H(S,J,1),2<=S.heap_len;);S.heap[--S.heap_max]=S.heap[1],function(_e,Me){var Xe,He,ze,Ze,ut,Vt,Dt=Me.dyn_tree,Zn=Me.max_code,ei=Me.stat_desc.static_tree,kn=Me.stat_desc.has_stree,ti=Me.stat_desc.extra_bits,ni=Me.stat_desc.extra_base,Rn=Me.stat_desc.max_length,Dn=0;for(Ze=0;Ze<=y;Ze++)_e.bl_count[Ze]=0;for(Dt[2*_e.heap[_e.heap_max]+1]=0,Xe=_e.heap_max+1;Xe>=7;K>>=1)if(1&xe&&ae.dyn_ltree[2*he]!==0)return a;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return s;for(he=32;he>>3,(J=S.static_len+3+7>>>3)<=K&&(K=J)):K=J=G+5,G+4<=K&&F!==-1?w(S,F,G,ee):S.strategy===4||J===K?(oe(S,2+(ee?1:0),3),j(S,q,T)):(oe(S,4+(ee?1:0),3),function(ae,he,xe,_e){var Me;for(oe(ae,he-257,5),oe(ae,xe-1,5),oe(ae,_e-4,4),Me=0;Me<_e;Me++)oe(ae,ae.bl_tree[2*B[Me]+1],3);ie(ae,ae.dyn_ltree,he-1),ie(ae,ae.dyn_dtree,xe-1)}(S,S.l_desc.max_code+1,S.d_desc.max_code+1,te+1),j(S,S.dyn_ltree,S.dyn_dtree)),A(S),ee&&Q(S)},i._tr_tally=function(S,F,G){return S.pending_buf[S.d_buf+2*S.last_lit]=F>>>8&255,S.pending_buf[S.d_buf+2*S.last_lit+1]=255&F,S.pending_buf[S.l_buf+S.last_lit]=255&G,S.last_lit++,F===0?S.dyn_ltree[2*G]++:(S.matches++,F--,S.dyn_ltree[2*(b[G]+h+1)]++,S.dyn_dtree[2*C(F)]++),S.last_lit===S.lit_bufsize-1},i._tr_align=function(S){oe(S,2,3),ue(S,v,q),function(F){F.bi_valid===16?(ne(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):8<=F.bi_valid&&(F.pending_buf[F.pending++]=255&F.bi_buf,F.bi_buf>>=8,F.bi_valid-=8)}(S)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(o){(function(a,s){if(!a.setImmediate){var c,u,l,h,d=1,f={},p=!1,g=a.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(a);y=y&&y.setTimeout?y:a,c={}.toString.call(a.process)==="[object process]"?function(x){nt.nextTick(function(){m(x)})}:function(){if(a.postMessage&&!a.importScripts){var x=!0,O=a.onmessage;return a.onmessage=function(){x=!1},a.postMessage("","*"),a.onmessage=O,x}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",v,!1):a.attachEvent("onmessage",v),function(x){a.postMessage(h+x,"*")}):a.MessageChannel?((l=new MessageChannel).port1.onmessage=function(x){m(x.data)},function(x){l.port2.postMessage(x)}):g&&"onreadystatechange"in g.createElement("script")?(u=g.documentElement,function(x){var O=g.createElement("script");O.onreadystatechange=function(){m(x),O.onreadystatechange=null,u.removeChild(O),O=null},u.appendChild(O)}):function(x){setTimeout(m,0,x)},y.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var O=new Array(arguments.length-1),E=0;E":">"};function TN(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(e,n){return wN[n]}):t}var SN=TN,Td=SN,Gg=lf.Stream,DN=" ";function ON(t,e){typeof e!="object"&&(e={indent:e});var n=e.stream?new Gg:null,r="",i=!1,o=e.indent?e.indent===!0?DN:e.indent:"",a=!0;function s(d){a?nt.nextTick(d):d()}function c(d,f){if(f!==void 0&&(r+=f),d&&!i&&(n=n||new Gg,i=!0),d&&i){var p=r;s(function(){n.emit("data",p)}),r=""}}function u(d,f){Tf(c,mu(d,o,o?1:0),f)}function l(){if(n){var d=r;s(function(){n.emit("data",d),n.emit("end"),n.readable=!1,n.emit("close")})}}function h(d){var f=d.encoding||"UTF-8",p={version:"1.0",encoding:f};d.standalone&&(p.standalone=d.standalone),u({"?xml":{_attr:p}}),r=r.replace("/>","?>")}return s(function(){a=!1}),e.declaration&&h(e.declaration),t&&t.forEach?t.forEach(function(d,f){var p;f+1===t.length&&(p=l),u(d,p)}):u(t,l),n?(n.readable=!0,n):r}function _N(){var t=Array.prototype.slice.call(arguments),e={_elem:mu(t)};return e.push=function(n){if(!this.append)throw new Error("not assigned to a parent!");var r=this,i=this._elem.indent;Tf(this.append,mu(n,i,this._elem.icount+(i?1:0)),function(){r.append(!0)})},e.close=function(n){n!==void 0&&this.push(n),this.end&&this.end()},e}function EN(t,e){return new Array(e||0).join(t||"")}function mu(t,e,n){n=n||0;var r=EN(e,n),i,o=t,a=!1;if(typeof t=="object"){var s=Object.keys(t);if(i=s[0],o=t[i],o&&o._elem)return o._elem.name=i,o._elem.icount=n,o._elem.indent=e,o._elem.indents=r,o._elem.interrupt=o,o._elem}var c=[],u=[],l;function h(d){var f=Object.keys(d);f.forEach(function(p){c.push(IN(p,d[p]))})}switch(typeof o){case"object":if(o===null)break;o._attr&&h(o._attr),o._cdata&&u.push(("/g,"]]]]>")+"]]>"),o.forEach&&(l=!1,u.push(""),o.forEach(function(d){if(typeof d=="object"){var f=Object.keys(d)[0];f=="_attr"?h(d._attr):u.push(mu(d,e,n+1))}else u.pop(),l=!0,u.push(Td(d))}),l||u.push(""));break;default:u.push(Td(o))}return{name:i,interrupt:a,attributes:c,content:u,icount:n,indents:r,indent:e}}function Tf(t,e,n){if(typeof e!="object")return t(!1,e);var r=e.interrupt?1:e.content.length;function i(){for(;e.content.length;){var a=e.content.shift();if(a!==void 0){if(o(a))return;Tf(t,a)}}t(!1,(r>1?e.indents:"")+(e.name?"":"")+(e.indent&&!n?` `:"")),n&&n()}function o(a){return a.interrupt?(a.interrupt.append=t,a.interrupt.end=i,a.interrupt=!1,t(!0),!0):!1}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(r?e.name?">":"":e.name?"/>":"")+(e.indent&&r>1?` `:"")),!r)return t(!1,e.indent?` `:"");o(e)||i()}function IN(t,e){return t+'="'+Td(e)+'"'}gu.exports=ON;gu.exports.element=gu.exports.Element=_N;var NN=gu.exports;const Ht=DR(NN),Jg=0,zg=32,FN=32,PN=(t,e)=>{const n=e.replace(/-/g,"");if(n.length!==FN)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const i=n.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));i.reverse();const a=t.slice(Jg,zg).map((c,u)=>c^i[u%i.length]);return Buffer.concat([t.slice(0,Jg),a,t.slice(zg)])};class MN{format(e,n={stack:[]}){const r=e.prepForXml(n);if(r)return r;throw Error("XMLComponent did not format correctly")}}class LN{replace(e,n,r){let i=e;return n.forEach((o,a)=>{i=i.replace(new RegExp(`{${o.fileName}}`,"g"),(r+a).toString())}),i}getMediaData(e,n){return n.Array.filter(r=>e.search(`{${r.fileName}}`)>0)}}class CN{replace(e,n){let r=e;for(const i of n)r=r.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return r}}class AN{constructor(){be(this,"formatter"),be(this,"imageReplacer"),be(this,"numberingReplacer"),this.formatter=new MN,this.imageReplacer=new LN,this.numberingReplacer=new CN}compile(e,n){const r=new xN,i=this.xmlifyFile(e,n),o=new Map(Object.entries(i));for(const[,a]of o)if(Array.isArray(a))for(const s of a)r.file(s.path,s.data);else r.file(a.path,a.data);for(const{stream:a,fileName:s}of e.Media.Array)r.file(`word/media/${s}`,a);for(const{data:a,name:s,fontKey:c}of e.FontTable.fontOptionsWithKey){const[u]=s.split(".");r.file(`word/fonts/${u}.odttf`,PN(a,c))}return r}xmlifyFile(e,n){const r=e.Document.Relationships.RelationshipCount+1,i=Ht(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(i,e.Media);return{Relationships:{data:(()=>(o.forEach((a,s)=>{e.Document.Relationships.createRelationship(r+s,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),Ht(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const a=this.imageReplacer.replace(i,o,r);return this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const a=Ht(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Ht(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Ht(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Ht(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((a,s)=>{const c=Ht(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((l,h)=>{a.Relationships.createRelationship(h,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${l.fileName}`)}),{data:Ht(this.formatter.format(a.Relationships,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${s+1}.xml.rels`}}),FooterRelationships:e.Footers.map((a,s)=>{const c=Ht(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((l,h)=>{a.Relationships.createRelationship(h,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${l.fileName}`)}),{data:Ht(this.formatter.format(a.Relationships,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${s+1}.xml.rels`}}),Headers:e.Headers.map((a,s)=>{const c=Ht(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(c,e.Media),l=this.imageReplacer.replace(c,u,0);return{data:this.numberingReplacer.replace(l,e.Numbering.ConcreteNumbering),path:`word/header${s+1}.xml`}}),Footers:e.Footers.map((a,s)=>{const c=Ht(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(c,e.Media),l=this.imageReplacer.replace(c,u,0);return{data:this.numberingReplacer.replace(l,e.Numbering.ConcreteNumbering),path:`word/footer${s+1}.xml`}}),ContentTypes:{data:Ht(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Ht(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Ht(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Ht(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Ht(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Ht(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Ht(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Ht(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(()=>Ht(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}))(),path:"word/_rels/fontTable.xml.rels"}}}}const UN={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},Ga=t=>t===!0?UN.WITH_2_BLANKS:t===!1?void 0:t;class jc{static toString(e,n){return wc(this,null,function*(){return yield this.compiler.compile(e,Ga(n)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,n){return wc(this,null,function*(){return yield this.compiler.compile(e,Ga(n)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,n){return wc(this,null,function*(){return yield this.compiler.compile(e,Ga(n)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,n){return wc(this,null,function*(){return yield this.compiler.compile(e,Ga(n)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,n){const r=new lf.Stream;return this.compiler.compile(e,Ga(n)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(o=>{r.emit("data",o),r.emit("end")}),r}}be(jc,"compiler",new AN);function WN(t,e){const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e,n.click(),window.URL.revokeObjectURL(n.href)}const XN={[mt.FIRST]:Fo.HEADING_1,[mt.SECOND]:Fo.HEADING_2,[mt.THIRD]:Fo.HEADING_3,[mt.FOURTH]:Fo.HEADING_4,[mt.FIFTH]:Fo.HEADING_5,[mt.SIXTH]:Fo.HEADING_6};function Nh(t){var e;return t.type===fe.IMAGE?new AE({data:t.value,transformation:{width:t.width,height:t.height}}):t.type===fe.HYPERLINK?new _2({children:[new oa({text:(e=t.valueList)==null?void 0:e.map(n=>n.value).join(""),style:"Hyperlink"})],link:t.url}):t.type===fe.TAB?new oa({children:[new YE]}):t.type===fe.LATEX?new F3(t.value):new oa({font:t.font,text:t.value,bold:t.bold,size:`${(t.size||16)/.75}pt`,color:X1(t.color).hex()||"#000000",italics:t.italic,strike:t.strikeout,highlight:t.highlight?X1(t.highlight).hex():void 0,superScript:t.type===fe.SUPERSCRIPT,subScript:t.type===fe.SUBSCRIPT,underline:t.underline?{}:void 0})}function qc(t){var i,o,a;const e=[];let n=[];function r(){n.length&&(e.push(new Ci({children:n})),n=[])}for(let s=0;sNh(u)))||[]}));else if(c.type===fe.LIST){r();const u=((o=c.valueList)==null?void 0:o.map(l=>l.value).join("").split(` `).map((l,h)=>new Ci({children:[new oa({text:`${!c.listStyle||c.listStyle===or.DECIMAL?`${h+1}. `:"\u2022 "}${l}`})]})))||[];e.push(...u)}else if(c.type===fe.TABLE){r();const{trList:u}=c,l=[];for(let h=0;hNh(u)))||[]):(/^\n/.test(c.value)&&(r(),c.value=c.value.replace(/^\n/,"")),n.push(Nh(c)))}return r(),e}function VN(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=function(i){const o=i.target.result.split(";base64,");e(o[1])},r.onerror=function(i){n(i)},r.readAsDataURL(t)})}function $g(t,e){const{fileName:n,exportType:r}=e,{data:{header:i,main:o,footer:a}}=t.getValue(),s=new RN({sections:[{headers:{default:new yN({children:qc(i||[])})},footers:{default:new vN({children:qc(a||[])})},children:qc(o||[])}]});return r==="blob"?jc.toBlob(s):r==="base64"?new Promise((c,u)=>{jc.toBlob(s).then(l=>{VN(l).then(h=>{c(h)}).catch(h=>{u(h)})}).catch(l=>{u(l)})}):new Promise((c,u)=>{jc.toBlob(s).then(l=>{WN(l,`${n}.docx`),c()}).catch(u)})}var Fr={},Kt={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(qe,function(){var n="1.13.6",r=typeof self=="object"&&self.self===self&&self||typeof qe=="object"&&qe.global===qe&&qe||Function("return this")()||{},i=Array.prototype,o=Object.prototype,a=typeof Symbol!="undefined"?Symbol.prototype:null,s=i.push,c=i.slice,u=o.toString,l=o.hasOwnProperty,h=typeof ArrayBuffer!="undefined",d=typeof DataView!="undefined",f=Array.isArray,p=Object.keys,g=Object.create,y=h&&ArrayBuffer.isView,R=isNaN,m=isFinite,v=!{toString:null}.propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],O=Math.pow(2,53)-1;function E(Y,$){return $=$==null?Y.length-1:+$,function(){for(var le=Math.max(arguments.length-$,0),de=Array(le),Re=0;Re=0&&le<=O}}function w(Y){return function($){return $==null?void 0:$[Y]}}var S=w("byteLength"),F=L(S),G=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function ee(Y){return y?y(Y)&&!A(Y):F(Y)&&G.test(u.call(Y))}var K=h?ee:ie(!1),J=w("length");function te(Y){for(var $={},le=Y.length,de=0;de":">",'"':""","'":"'","`":"`"},It=tt(bt),dr=Wa(bt),Gi=tt(dr),en=Me.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},xl=/(.)^/,Db={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ob=/\\|'|\r|\n|\u2028|\u2029/g;function _b(Y){return"\\"+Db[Y]}var Eb=/^\s*(\w|\$)+\s*$/;function Ib(Y,$,le){!$&&le&&($=le),$=Xa({},$,Me.templateSettings);var de=RegExp([($.escape||xl).source,($.interpolate||xl).source,($.evaluate||xl).source].join("|")+"|$","g"),Re=0,me="__p+='";Y.replace(de,function($e,un,An,y1,v1){return me+=Y.slice(Re,v1).replace(Ob,_b),Re=v1+$e.length,un?me+=`'+ ((__t=(`+un+`))==null?'':_.escape(__t))+ '`:An?me+=`'+ ((__t=(`+An+`))==null?'':__t)+ '`:y1&&(me+=`'; `+y1+` __p+='`),$e}),me+=`'; `;var Oe=$.variable;if(Oe){if(!Eb.test(Oe))throw new Error("variable is not a bare identifier: "+Oe)}else me=`with(obj||{}){ `+me+`} `,Oe="obj";me=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; `+me+`return __p; `;var Ce;try{Ce=new Function(Oe,"_",me)}catch($e){throw $e.source=me,$e}var et=function($e){return Ce.call(this,$e,Me)};return et.source="function("+Oe+`){ `+me+"}",et}function Nb(Y,$,le){$=wi($);var de=$.length;if(!de)return C(le)?le.call(Y):le;for(var Re=0;Re1)Ji(Ce,$-1,le,de),Re=de.length;else for(var et=0,$e=Ce.length;et<$e;)de[Re++]=Ce[et++];else le||(de[Re++]=Ce)}return de}var Lb=E(function(Y,$){$=Ji($,!1,!1);var le=$.length;if(le<1)throw new Error("bindAll must be passed function names");for(;le--;){var de=$[le];Y[de]=jp(Y[de],Y)}return Y});function Cb(Y,$){var le=function(de){var Re=le.cache,me=""+($?$.apply(this,arguments):de);return z(Re,me)||(Re[me]=Y.apply(this,arguments)),Re[me]};return le.cache={},le}var qp=E(function(Y,$,le){return setTimeout(function(){return Y.apply(null,le)},$)}),Ab=Io(qp,Me,1);function Ub(Y,$,le){var de,Re,me,Oe,Ce=0;le||(le={});var et=function(){Ce=le.leading===!1?0:Je(),de=null,Oe=Y.apply(Re,me),de||(Re=me=null)},$e=function(){var un=Je();!Ce&&le.leading===!1&&(Ce=un);var An=$-(un-Ce);return Re=this,me=arguments,An<=0||An>$?(de&&(clearTimeout(de),de=null),Ce=un,Oe=Y.apply(Re,me),de||(Re=me=null)):!de&&le.trailing!==!1&&(de=setTimeout(et,An)),Oe};return $e.cancel=function(){clearTimeout(de),Ce=0,de=Re=me=null},$e}function Wb(Y,$,le){var de,Re,me,Oe,Ce,et=function(){var un=Je()-Re;$>un?de=setTimeout(et,$-un):(de=null,le||(Oe=Y.apply(Ce,me)),de||(me=Ce=null))},$e=E(function(un){return Ce=this,me=un,Re=Je(),de||(de=setTimeout(et,$),le&&(Oe=Y.apply(Ce,me))),Oe});return $e.cancel=function(){clearTimeout(de),de=me=Ce=null},$e}function Xb(Y,$){return Io($,Y)}function wl(Y){return function(){return!Y.apply(this,arguments)}}function Vb(){var Y=arguments,$=Y.length-1;return function(){for(var le=$,de=Y[$].apply(this,arguments);le--;)de=Y[le].call(this,de);return de}}function Yb(Y,$){return function(){if(--Y<1)return $.apply(this,arguments)}}function e1(Y,$){var le;return function(){return--Y>0&&(le=$.apply(this,arguments)),Y<=1&&($=null),le}}var Bb=Io(e1,2);function t1(Y,$,le){$=we($,le);for(var de=he(Y),Re,me=0,Oe=de.length;me0?0:Re-1;me>=0&&me0?Oe=me>=0?me:Math.max(me+Ce,Oe):Ce=me>=0?Math.min(me+1,Ce):me+Ce+1;else if(le&&me&&Ce)return me=le(de,Re),de[me]===Re?me:-1;if(Re!==Re)return me=$(c.call(de,Oe,Ce),D),me>=0?me+Oe:-1;for(me=Y>0?Oe:Ce-1;me>=0&&me0?0:Ce-1;for(me||(Re=le[Oe?Oe[et]:et],et+=Y);et>=0&&et=3;return $(le,Hi(de,me,4),Re,Oe)}}var Dl=s1(1),c1=s1(-1);function No(Y,$,le){var de=[];return $=we($,le),ii(Y,function(Re,me,Oe){$(Re,me,Oe)&&de.push(Re)}),de}function Qb(Y,$,le){return No(Y,wl(we($)),le)}function u1(Y,$,le){$=we($,le);for(var de=!rr(Y)&&he(Y),Re=(de||Y).length,me=0;me=0}var Kb=E(function(Y,$,le){var de,Re;return C($)?Re=$:($=wi($),de=$.slice(0,-1),$=$[$.length-1]),zi(Y,function(me){var Oe=Re;if(!Oe){if(de&&de.length&&(me=Va(me,de)),me==null)return;Oe=me[$]}return Oe==null?Oe:Oe.apply(me,le)})});function Ol(Y,$){return zi(Y,Ya($))}function Hb(Y,$){return No(Y,Ti($))}function h1(Y,$,le){var de=-1/0,Re=-1/0,me,Oe;if($==null||typeof $=="number"&&typeof Y[0]!="object"&&Y!=null){Y=rr(Y)?Y:ri(Y);for(var Ce=0,et=Y.length;Cede&&(de=me)}else $=we($,le),ii(Y,function($e,un,An){Oe=$($e,un,An),(Oe>Re||Oe===-1/0&&de===-1/0)&&(de=$e,Re=Oe)});return de}function Gb(Y,$,le){var de=1/0,Re=1/0,me,Oe;if($==null||typeof $=="number"&&typeof Y[0]!="object"&&Y!=null){Y=rr(Y)?Y:ri(Y);for(var Ce=0,et=Y.length;CeCe||Oe===void 0)return 1;if(Oe1&&(de=Hi(de,$[1])),$=Vt(Y)):(de=rx,$=Ji($,!1,!1),Y=Object(Y));for(var Re=0,me=$.length;Re1&&(de=$[1])):($=zi(Ji($,!1,!1),String),le=function(Re,me){return!oi($,me)}),p1(Y,le,de)});function g1(Y,$,le){return c.call(Y,0,Math.max(0,Y.length-($==null||le?1:$)))}function _l(Y,$,le){return Y==null||Y.length<1?$==null||le?void 0:[]:$==null||le?Y[0]:g1(Y,Y.length-$)}function gc(Y,$,le){return c.call(Y,$==null||le?1:$)}function ox(Y,$,le){return Y==null||Y.length<1?$==null||le?void 0:[]:$==null||le?Y[Y.length-1]:gc(Y,Math.max(0,Y.length-$))}function ax(Y){return No(Y,Boolean)}function sx(Y,$){return Ji(Y,$,!1)}var m1=E(function(Y,$){return $=Ji($,!0,!0),No(Y,function(le){return!oi($,le)})}),cx=E(function(Y,$){return m1(Y,$)});function El(Y,$,le,de){B($)||(de=le,le=$,$=!1),le!=null&&(le=we(le,de));for(var Re=[],me=[],Oe=0,Ce=J(Y);Oe1,r=e.length>0&&!(e.length===1&&e[0]==="constructor"),i=aF.test(t+"")&&zn.names(t).length>0;if(n||r||i)return!0}return!1}catch{return!1}}function cF(t){return t}var uF=/^[a-z$_][a-z$_0-9]*$/i;function lF(t){return uF.test(t)}function hF(t,e,n){for(var r=new Array(t),i=0;i10||t[0]>0}();ga.isNode&&ga.toFastProperties(process);try{throw new Error}catch(t){ga.lastLineError=t}var Ct=ga,Of={exports:{}},_d=Ct,to,xF=function(){throw new Error(`No async scheduler available See http://goo.gl/MqrFmX `)},Ph=_d.getNativePromise();if(_d.isNode&&typeof MutationObserver=="undefined"){var wF=qe.setImmediate,TF=process.nextTick;to=_d.isRecentNode?function(t){wF.call(qe,t)}:function(t){TF.call(process,t)}}else if(typeof Ph=="function"&&typeof Ph.resolve=="function"){var SF=Ph.resolve();to=function(t){SF.then(t)}}else typeof MutationObserver!="undefined"&&!(typeof window!="undefined"&&window.navigator&&(window.navigator.standalone||window.cordova))?to=function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver(function(){t.classList.toggle("foo"),n=!1});i.observe(r,e);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(s){var c=new MutationObserver(function(){c.disconnect(),s()});c.observe(t,e),o()}}():typeof setImmediate!="undefined"?to=function(t){setImmediate(t)}:typeof setTimeout!="undefined"?to=function(t){setTimeout(t,0)}:to=xF;var DF=to;function OF(t,e,n,r,i){for(var o=0;o0;){var e=t.shift();if(typeof e!="function"){e._settlePromises();continue}var n=t.shift(),r=t.shift();e.call(n,r)}};pn.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};pn.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))};pn.prototype._reset=function(){this._isTickUsed=!1};Of.exports=pn;Of.exports.firstLineError=k2;var _f=Xi.exports,IF=_f.freeze,K2=Ct,H2=K2.inherits,Ho=K2.notEnumerableProp;function ma(t,e){function n(r){if(!(this instanceof n))return new n(r);Ho(this,"message",typeof r=="string"?r:e),Ho(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return H2(n,Error),n}var Ed,Id,NF=ma("Warning","warning"),FF=ma("CancellationError","cancellation error"),PF=ma("TimeoutError","timeout error"),Us=ma("AggregateError","aggregate error");try{Ed=TypeError,Id=RangeError}catch{Ed=ma("TypeError","type error"),Id=ma("RangeError","range error")}var Mc="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(var Ja=0;Ja=this._length?(this._resolve(this._values),!0):!1},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(c){return this._totalResolved++,this._reject(c),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var c=this._values;if(this._cancel(),c instanceof t)c.cancel();else for(var u=0;u=0)return n[a]}return r.CapturedTrace=null,r.create=i,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var a=t.prototype._pushContext,s=t.prototype._popContext,c=t._peekContext,u=t.prototype._peekContext,l=t.prototype._promiseCreated;r.deactivateLongStackTraces=function(){t.prototype._pushContext=a,t.prototype._popContext=s,t._peekContext=c,t.prototype._peekContext=u,t.prototype._promiseCreated=l,e=!1},e=!0,t.prototype._pushContext=r.prototype._pushContext,t.prototype._popContext=r.prototype._popContext,t._peekContext=t.prototype._peekContext=o,t.prototype._promiseCreated=function(){var h=this._peekContext();h&&h._promiseCreated==null&&(h._promiseCreated=this)}},r},AF=function(t,e){var n=t._getDomain,r=t._async,i=Vi.Warning,o=Ct,a=o.canAttachTrace,s,c,u=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,l=/\((?:timers\.js):\d+:\d+\)/,h=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,d=null,f=null,p=!1,g,y=!!(o.env("BLUEBIRD_DEBUG")!=0&&(o.env("BLUEBIRD_DEBUG")||o.env("NODE_ENV")==="development")),R=!!(o.env("BLUEBIRD_WARNINGS")!=0&&(y||o.env("BLUEBIRD_WARNINGS"))),m=!!(o.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(y||o.env("BLUEBIRD_LONG_STACK_TRACES"))),v=o.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(R||!!o.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var J=this._target();J._bitField=J._bitField&-1048577|524288},t.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),r.invokeLater(this._notifyUnhandledRejection,this,void 0))},t.prototype._notifyUnhandledRejectionIsHandled=function(){j("rejectionHandled",s,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},t.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var J=this._settledValue();this._setUnhandledRejectionIsNotified(),j("unhandledRejection",c,J,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},t.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},t.prototype._warn=function(J,te,ae){return oe(J,te,ae||this)},t.onPossiblyUnhandledRejection=function(J){var te=n();c=typeof J=="function"?te===null?J:o.domainBind(te,J):void 0},t.onUnhandledRejectionHandled=function(J){var te=n();s=typeof J=="function"?te===null?J:o.domainBind(te,J):void 0};var x=function(){};t.longStackTraces=function(){if(r.haveItemsQueued()&&!K.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created See http://goo.gl/MqrFmX `);if(!K.longStackTraces&&ie()){var J=t.prototype._captureStackTrace,te=t.prototype._attachExtraTrace;K.longStackTraces=!0,x=function(){if(r.haveItemsQueued()&&!K.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created See http://goo.gl/MqrFmX `);t.prototype._captureStackTrace=J,t.prototype._attachExtraTrace=te,e.deactivateLongStackTraces(),r.enableTrampoline(),K.longStackTraces=!1},t.prototype._captureStackTrace=re,t.prototype._attachExtraTrace=Z,e.activateLongStackTraces(),r.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return K.longStackTraces&&ie()};var O=function(){try{if(typeof CustomEvent=="function"){var J=new CustomEvent("CustomEvent");return o.global.dispatchEvent(J),function(te,ae){var he=new CustomEvent(te.toLowerCase(),{detail:ae,cancelable:!0});return!o.global.dispatchEvent(he)}}else if(typeof Event=="function"){var J=new Event("CustomEvent");return o.global.dispatchEvent(J),function(ae,he){var xe=new Event(ae.toLowerCase(),{cancelable:!0});return xe.detail=he,!o.global.dispatchEvent(xe)}}else{var J=document.createEvent("CustomEvent");return J.initCustomEvent("testingtheevent",!1,!0,{}),o.global.dispatchEvent(J),function(ae,he){var xe=document.createEvent("CustomEvent");return xe.initCustomEvent(ae.toLowerCase(),!1,!0,he),!o.global.dispatchEvent(xe)}}}catch{}return function(){return!1}}(),E=function(){return o.isNode?function(){return process.emit.apply(process,arguments)}:o.global?function(J){var te="on"+J.toLowerCase(),ae=o.global[te];return ae?(ae.apply(o.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}();function N(J,te){return{promise:te}}var M={promiseCreated:N,promiseFulfilled:N,promiseRejected:N,promiseResolved:N,promiseCancelled:N,promiseChained:function(J,te,ae){return{promise:te,child:ae}},warning:function(J,te){return{warning:te}},unhandledRejection:function(J,te,ae){return{reason:te,promise:ae}},rejectionHandled:N},_=function(J){var te=!1;try{te=E.apply(null,arguments)}catch(he){r.throwLater(he),te=!0}var ae=!1;try{ae=O(J,M[J].apply(null,arguments))}catch(he){r.throwLater(he),ae=!0}return ae||te};t.config=function(J){if(J=Object(J),"longStackTraces"in J&&(J.longStackTraces?t.longStackTraces():!J.longStackTraces&&t.hasLongStackTraces()&&x()),"warnings"in J){var te=J.warnings;K.warnings=!!te,v=K.warnings,o.isObject(te)&&"wForgottenReturn"in te&&(v=!!te.wForgottenReturn)}if("cancellation"in J&&J.cancellation&&!K.cancellation){if(r.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=P,t.prototype._propagateFrom=U,t.prototype._onCancel=I,t.prototype._setOnCancel=b,t.prototype._attachCancellationCallback=T,t.prototype._execute=q,V=U,K.cancellation=!0}return"monitoring"in J&&(J.monitoring&&!K.monitoring?(K.monitoring=!0,t.prototype._fireEvent=_):!J.monitoring&&K.monitoring&&(K.monitoring=!1,t.prototype._fireEvent=B)),t};function B(){return!1}t.prototype._fireEvent=B,t.prototype._execute=function(J,te,ae){try{J(te,ae)}catch(he){return he}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(J){},t.prototype._attachCancellationCallback=function(J){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(J,te){};function q(J,te,ae){var he=this;try{J(te,ae,function(xe){if(typeof xe!="function")throw new TypeError("onCancel must be a function, got: "+o.toString(xe));he._attachCancellationCallback(xe)})}catch(xe){return xe}}function T(J){if(!this._isCancellable())return this;var te=this._onCancel();te!==void 0?o.isArray(te)?te.push(J):this._setOnCancel([te,J]):this._setOnCancel(J)}function I(){return this._onCancelField}function b(J){this._onCancelField=J}function P(){this._cancellationParent=void 0,this._onCancelField=void 0}function U(J,te){if((te&1)!==0){this._cancellationParent=J;var ae=J._branchesRemainingToCancel;ae===void 0&&(ae=0),J._branchesRemainingToCancel=ae+1}(te&2)!==0&&J._isBound()&&this._setBoundTo(J._boundTo)}function X(J,te){(te&2)!==0&&J._isBound()&&this._setBoundTo(J._boundTo)}var V=X;function k(){var J=this._boundTo;return J!==void 0&&J instanceof t?J.isFulfilled()?J.value():void 0:J}function re(){this._trace=new G(this._peekContext())}function Z(J,te){if(a(J)){var ae=this._trace;if(ae!==void 0&&te&&(ae=ae._parent),ae!==void 0)ae.attachExtraTrace(J);else if(!J.__stackCleaned__){var he=z(J);o.notEnumerableProp(J,"stack",he.message+` `+he.stack.join(` `)),o.notEnumerableProp(J,"__stackCleaned__",!0)}}}function C(J,te,ae,he,xe){if(J===void 0&&te!==null&&v){if(xe!==void 0&&xe._returnedNonUndefined()||(he._bitField&65535)===0)return;ae&&(ae=ae+" ");var _e="",Me="";if(te._trace){for(var Xe=te._trace.stack.split(` `),He=A(Xe),ze=He.length-1;ze>=0;--ze){var Ze=He[ze];if(!l.test(Ze)){var ut=Ze.match(h);ut&&(_e="at "+ut[1]+":"+ut[2]+":"+ut[3]+" ");break}}if(He.length>0){for(var Vt=He[0],ze=0;ze0&&(Me=` `+Xe[ze-1]);break}}}var Dt="a promise was created in a "+ae+"handler "+_e+"but was not returned from it, see http://goo.gl/rRqMUw"+Me;he._warn(Dt,!0,te)}}function ne(J,te){var ae=J+" is deprecated and will be removed in a future version.";return te&&(ae+=" Use "+te+" instead."),oe(ae)}function oe(J,te,ae){if(!!K.warnings){var he=new i(J),xe;if(te)ae._attachExtraTrace(he);else if(K.longStackTraces&&(xe=t._peekContext()))xe.attachExtraTrace(he);else{var _e=z(he);he.stack=_e.message+` `+_e.stack.join(` `)}_("warning",he)||H(he,"",!0)}}function ue(J,te){for(var ae=0;ae=0;--Xe)if(he[Xe]===_e){Me=Xe;break}for(var Xe=Me;Xe>=0;--Xe){var He=he[Xe];if(te[xe]===He)te.pop(),xe--;else break}te=he}}function A(J){for(var te=[],ae=0;ae0&&J.name!="SyntaxError"&&(te=te.slice(ae)),te}function z(J){var te=J.stack,ae=J.toString();return te=typeof te=="string"&&te.length>0?Q(J):[" (No stack trace)"],{message:ae,stack:J.name=="SyntaxError"?te:A(te)}}function H(J,te,ae){if(typeof console!="undefined"){var he;if(o.isObject(J)){var xe=J.stack;he=te+f(xe,J)}else he=te+String(J);typeof g=="function"?g(he,ae):(typeof console.log=="function"||typeof console.log=="object")&&console.log(he)}}function j(J,te,ae,he){var xe=!1;try{typeof te=="function"&&(xe=!0,J==="rejectionHandled"?te(he):te(ae,he))}catch(_e){r.throwLater(_e)}J==="unhandledRejection"?!_(J,ae,he)&&!xe&&H(ae,"Unhandled rejection "):_(J,he)}function ge(J){var te;if(typeof J=="function")te="[function "+(J.name||"anonymous")+"]";else{te=J&&typeof J.toString=="function"?J.toString():o.toString(J);var ae=/\[object [a-zA-Z0-9$_]+\]/;if(ae.test(te))try{var he=JSON.stringify(J);te=he}catch{}te.length===0&&(te="(empty array)")}return"(<"+D(te)+">, no stack trace)"}function D(J){var te=41;return J.length=_e||(L=function(Ze){if(u.test(Ze))return!0;var ut=S(Ze);return!!(ut&&ut.fileName===Me&&xe<=ut.line&&ut.line<=_e)})}}function G(J){this._parent=J,this._promisesCreated=0;var te=this._length=1+(J===void 0?0:J._length);ee(this,G),te>32&&this.uncycle()}o.inherits(G,Error),e.CapturedTrace=G,G.prototype.uncycle=function(){var J=this._length;if(!(J<2)){for(var te=[],ae={},he=0,xe=this;xe!==void 0;++he)te.push(xe),xe=xe._parent;J=this._length=he;for(var he=J-1;he>=0;--he){var _e=te[he].stack;ae[_e]===void 0&&(ae[_e]=he)}for(var he=0;he0&&(te[Xe-1]._parent=void 0,te[Xe-1]._length=1),te[he]._parent=void 0,te[he]._length=1;var He=he>0?te[he-1]:this;Xe=0;--Ze)te[Ze]._length=ze,ze++;return}}}},G.prototype.attachExtraTrace=function(J){if(!J.__stackCleaned__){this.uncycle();for(var te=z(J),ae=te.message,he=[te.stack],xe=this;xe!==void 0;)he.push(A(xe.stack.split(` `))),xe=xe._parent;W(he),ce(he),o.notEnumerableProp(J,"stack",ue(ae,he)),o.notEnumerableProp(J,"__stackCleaned__",!0)}};var ee=function(){var te=/^\s*at\s*/,ae=function(Me,Xe){return typeof Me=="string"?Me:Xe.name!==void 0&&Xe.message!==void 0?Xe.toString():ge(Xe)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,d=te,f=ae;var he=Error.captureStackTrace;return L=function(Me){return u.test(Me)},function(Me,Xe){Error.stackTraceLimit+=6,he(Me,Xe),Error.stackTraceLimit-=6}}var xe=new Error;if(typeof xe.stack=="string"&&xe.stack.split(` `)[0].indexOf("stackDetection@")>=0)return d=/@/,f=ae,p=!0,function(Xe){Xe.stack=new Error().stack};var _e;try{throw new Error}catch(Me){_e="stack"in Me}return!("stack"in xe)&&_e&&typeof Error.stackTraceLimit=="number"?(d=te,f=ae,function(Xe){Error.stackTraceLimit+=6;try{throw new Error}catch(He){Xe.stack=He.stack}Error.stackTraceLimit-=6}):(f=function(Me,Xe){return typeof Me=="string"?Me:(typeof Xe=="object"||typeof Xe=="function")&&Xe.name!==void 0&&Xe.message!==void 0?Xe.toString():ge(Xe)},null)}();typeof console!="undefined"&&typeof console.warn!="undefined"&&(g=function(J){console.warn(J)},o.isNode&&process.stderr.isTTY?g=function(J,te){var ae=te?"\x1B[33m":"\x1B[31m";console.warn(ae+J+`\x1B[0m `)}:!o.isNode&&typeof new Error().stack=="string"&&(g=function(J,te){console.warn("%c"+J,te?"color: darkorange":"color: red")}));var K={warnings:R,longStackTraces:!1,cancellation:!1,monitoring:!1};return m&&t.longStackTraces(),{longStackTraces:function(){return K.longStackTraces},warnings:function(){return K.warnings},cancellation:function(){return K.cancellation},monitoring:function(){return K.monitoring},propagateFromFunction:function(){return V},boundValueFunction:function(){return k},checkForgottenReturns:C,setBounds:F,warn:oe,deprecated:ne,CapturedTrace:G,fireDomEvent:O,fireGlobalEvent:E}},UF=function(t,e){var n=Ct,r=t.CancellationError,i=n.errorObj;function o(h,d,f){this.promise=h,this.type=d,this.handler=f,this.called=!1,this.cancelPromise=null}o.prototype.isFinallyHandler=function(){return this.type===0};function a(h){this.finallyHandler=h}a.prototype._resultCancelled=function(){s(this.finallyHandler)};function s(h,d){return h.cancelPromise!=null?(arguments.length>1?h.cancelPromise._reject(d):h.cancelPromise._cancel(),h.cancelPromise=null,!0):!1}function c(){return l.call(this,this.promise._target()._settledValue())}function u(h){if(!s(this,h))return i.e=h,i}function l(h){var d=this.promise,f=this.handler;if(!this.called){this.called=!0;var p=this.isFinallyHandler()?f.call(d._boundValue()):f.call(d._boundValue(),h);if(p!==void 0){d._setReturnedNonUndefined();var g=e(p,d);if(g instanceof t){if(this.cancelPromise!=null)if(g._isCancelled()){var y=new r("late cancellation observer");return d._attachExtraTrace(y),i.e=y,i}else g.isPending()&&g._attachCancellationCallback(new a(this));return g._then(c,u,void 0,this,void 0)}}}return d.isRejected()?(s(this),i.e=h,i):(s(this),h)}return t.prototype._passThrough=function(h,d,f,p){return typeof h!="function"?this.then():this._then(f,p,void 0,new o(this,d,h),void 0)},t.prototype.lastly=t.prototype.finally=function(h){return this._passThrough(h,0,l,l)},t.prototype.tap=function(h){return this._passThrough(h,1,l)},o},WF=function(t){var e=Ct,n=Xi.exports.keys,r=e.tryCatch,i=e.errorObj;function o(a,s,c){return function(u){var l=c._boundValue();e:for(var h=0;h1){i.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],h=arguments[2];u=o.isArray(l)?a(s).apply(h,l):a(s).call(h,l)}else u=a(s)();var d=c._popContext();return i.checkForgottenReturns(u,d,"Promise.try",c),c._resolveFromSyncValue(u),c},t.prototype._resolveFromSyncValue=function(s){s===o.errorObj?this._rejectCallback(s.e,!1):this._resolveCallback(s,!0)}},HF=function(t,e,n,r){var i=!1,o=function(u,l){this._reject(l)},a=function(u,l){l.promiseRejectionQueued=!0,l.bindingPromise._then(o,o,null,this,u)},s=function(u,l){(this._bitField&50397184)===0&&this._resolveCallback(l.target)},c=function(u,l){l.promiseRejectionQueued||this._reject(u)};t.prototype.bind=function(u){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var l=n(u),h=new t(e);h._propagateFrom(this,1);var d=this._target();if(h._setBoundTo(l),l instanceof t){var f={promiseRejectionQueued:!1,promise:h,target:d,bindingPromise:l};d._then(e,a,void 0,h,f),l._then(s,c,void 0,h,f),h._setOnCancel(l)}else h._resolveCallback(d);return h},t.prototype._setBoundTo=function(u){u!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=u):this._bitField=this._bitField&-2097153},t.prototype._isBound=function(){return(this._bitField&2097152)===2097152},t.bind=function(u,l){return t.resolve(l).bind(u)}},GF=function(t,e,n,r){var i=Ct,o=i.tryCatch,a=i.errorObj,s=t._async;t.prototype.break=t.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var c=this,u=c;c._isCancellable();){if(!c._cancelBy(u)){u._isFollowing()?u._followee().cancel():u._cancelBranched();break}var l=c._cancellationParent;if(l==null||!l._isCancellable()){c._isFollowing()?c._followee().cancel():c._cancelBranched();break}else c._isFollowing()&&c._followee().cancel(),c._setWillBeCancelled(),u=c,c=l}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(c){return c===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){!this._isCancellable()||(this._setCancelled(),s.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(c,u){if(i.isArray(c))for(var l=0;l0&&typeof arguments[m]=="function"&&(v=arguments[m],m<=8&&s)){var b=new t(r);b._captureStackTrace();for(var x=p[m-1],O=new x(v),E=g,N=0;N=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(m>=1&&this._inFlight>=m)return g[p]=f,this._queue.push(p),!1;R!==null&&(R[p]=f);var v=this._promise,x=this._callback,O=v._boundValue();v._pushContext();var E=c(x).call(O,f,p,y),N=v._popContext();if(o.checkForgottenReturns(E,N,R!==null?"Promise.filter":"Promise.map",v),E===u)return this._reject(E.e),!0;var M=r(E,this._promise);if(M instanceof t){M=M._target();var _=M._bitField;if((_&50397184)===0)return m>=1&&this._inFlight++,g[p]=M,M._proxy(this,(p+1)*-1),!1;if((_&33554432)!==0)E=M._value();else return(_&16777216)!==0?(this._reject(M._reason()),!0):(this._cancel(),!0)}g[p]=E}var B=++this._totalResolved;return B>=y?(R!==null?this._filter(g,R):this._resolve(g),!0):!1},h.prototype._drainQueue=function(){for(var f=this._queue,p=this._limit,g=this._values;f.length>0&&this._inFlight=1?R:0,new h(f,p,R,y).promise()}t.prototype.map=function(f,p){return d(this,f,p,null)},t.map=function(f,p,g,y){return d(f,p,g,y)}},Mh=Object.create;if(Mh){var $2=Mh(null),j2=Mh(null);$2[" size"]=j2[" size"]=0}var qF=function(t){var e=Ct,n=e.canEvaluate,r=e.isIdentifier,i,o;{var a=function(f){return new Function("ensureMethod",` return function(obj) { 'use strict' var len = this.length; ensureMethod(obj, 'methodName'); switch(len) { case 1: return obj.methodName(this[0]); case 2: return obj.methodName(this[0], this[1]); case 3: return obj.methodName(this[0], this[1], this[2]); case 0: return obj.methodName(); default: return obj.methodName.apply(obj, this); } }; `.replace(/methodName/g,f))(u)},s=function(f){return new Function("obj",` 'use strict'; return obj.propertyName; `.replace("propertyName",f))},c=function(f,p,g){var y=g[f];if(typeof y!="function"){if(!r(f))return null;if(y=p(f),g[f]=y,g[" size"]++,g[" size"]>512){for(var R=Object.keys(g),m=0;m<256;++m)delete g[R[m]];g[" size"]=R.length-256}}return y};i=function(f){return c(f,a,$2)},o=function(f){return c(f,s,j2)}}function u(f,p){var g;if(f!=null&&(g=f[p]),typeof g!="function"){var y="Object "+e.classString(f)+" has no method '"+e.toString(p)+"'";throw new t.TypeError(y)}return g}function l(f){var p=this.pop(),g=u(f,p);return g.apply(f,this)}t.prototype.call=function(f){for(var p=arguments.length,g=new Array(Math.max(p-1,0)),y=1;y=E)return N._fulfill();var _=f(v[O++]);if(_ instanceof t&&_._isDisposable()){try{_=n(_._getDisposer().tryDispose(x),v.promise)}catch(B){return d(B)}if(_ instanceof t)return _._then(M,d,null,null,null)}M()}return M(),N}function g(v,x,O){this._data=v,this._promise=x,this._context=O}g.prototype.data=function(){return this._data},g.prototype.promise=function(){return this._promise},g.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():h},g.prototype.tryDispose=function(v){var x=this.resource(),O=this._context;O!==void 0&&O._pushContext();var E=x!==h?this.doDispose(x,v):null;return O!==void 0&&O._popContext(),this._promise._unsetDisposable(),this._data=null,E},g.isDisposer=function(v){return v!=null&&typeof v.resource=="function"&&typeof v.tryDispose=="function"};function y(v,x,O){this.constructor$(v,x,O)}c(y,g),y.prototype.doDispose=function(v,x){var O=this.data();return O.call(v,v,x)};function R(v){return g.isDisposer(v)?(this.resources[this.index]._setDisposable(v),v.promise()):v}function m(v){this.length=v,this.promise=null,this[v-1]=null}m.prototype._resultCancelled=function(){for(var v=this.length,x=0;x0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},t.prototype.disposer=function(v){if(typeof v=="function")return new y(v,this,r());throw new s}},tP=function(t,e,n){var r=Ct,i=t.TimeoutError;function o(h){this.handle=h}o.prototype._resultCancelled=function(){clearTimeout(this.handle)};var a=function(h){return s(+this).thenReturn(h)},s=t.delay=function(h,d){var f,p;return d!==void 0?(f=t.resolve(d)._then(a,null,null,h,void 0),n.cancellation()&&d instanceof t&&f._setOnCancel(d)):(f=new t(e),p=setTimeout(function(){f._fulfill()},+h),n.cancellation()&&f._setOnCancel(new o(p)),f._captureStackTrace()),f._setAsyncGuaranteed(),f};t.prototype.delay=function(h){return s(h,this)};var c=function(h,d,f){var p;typeof d!="string"?d instanceof Error?p=d:p=new i("operation timed out"):p=new i(d),r.markAsOriginatingFromRejection(p),h._attachExtraTrace(p),h._reject(p),f!=null&&f.cancel()};function u(h){return clearTimeout(this.handle),h}function l(h){throw clearTimeout(this.handle),h}t.prototype.timeout=function(h,d){h=+h;var f,p,g=new o(setTimeout(function(){f.isPending()&&c(f,d,p)},h));return n.cancellation()?(p=this.then(),f=p._then(u,l,void 0,g,void 0),f._setOnCancel(g)):f=this._then(u,l,void 0,g,void 0),f}},nP=function(t,e,n,r,i,o){var a=Vi,s=a.TypeError,c=Ct,u=c.errorObj,l=c.tryCatch,h=[];function d(p,g,y){for(var R=0;R=P;--U)b.push(U);for(var U=I+1;U<=3;++U)b.push(U);return b},E=function(I){return r.filledRange(I,"_arg","")},N=function(I){return r.filledRange(Math.max(I,3),"_arg","")},M=function(I){return typeof I.length=="number"?Math.max(Math.min(I.length,1024),0):0};x=function(I,b,P,U,X,V){var k=Math.max(0,M(U)-1),re=O(k),Z=typeof I=="string"||b===n;function C(ce){var W=E(ce).join(", "),A=ce>0?", ":"",Q;return Z?Q=`ret = callback.call(this, {{args}}, nodeback); break; `:Q=b===void 0?`ret = callback({{args}}, nodeback); break; `:`ret = callback.call(receiver, {{args}}, nodeback); break; `,Q.replace("{{args}}",W).replace(", ",A)}function ne(){for(var ce="",W=0;W=this._length){var g;if(this._isMap)g=u(this._values);else{g={};for(var y=this.length(),R=0,m=this.length();R>1};function h(d){var f,p=n(d);if(o(p))p instanceof t?f=p._then(t.props,void 0,void 0,void 0,void 0):f=new l(p).promise();else return r(`cannot await properties of a non-object See http://goo.gl/MqrFmX `);return p instanceof t&&f._propagateFrom(p,2),f}t.prototype.props=function(){return h(this)},t.props=function(d){return h(d)}},aP=function(t,e,n,r){var i=Ct,o=function(s){return s.then(function(c){return a(c,s)})};function a(s,c){var u=n(s);if(u instanceof t)return o(u);if(s=i.asArray(s),s===null)return r("expecting an array or an iterable object but got "+i.classString(s));var l=new t(e);c!==void 0&&l._propagateFrom(c,3);for(var h=l._fulfill,d=l._reject,f=0,p=s.length;f=this._length?(this._resolve(this._values),!0):!1},o.prototype._promiseFulfilled=function(a,s){var c=new r;return c._bitField=33554432,c._settledValueField=a,this._promiseResolved(s,c)},o.prototype._promiseRejected=function(a,s){var c=new r;return c._bitField=16777216,c._settledValueField=a,this._promiseResolved(s,c)},t.settle=function(a){return n.deprecated(".settle()",".reflect()"),new o(a).promise()},t.prototype.settle=function(){return t.settle(this)}},uP=function(t,e,n){var r=Ct,i=Vi.RangeError,o=Vi.AggregateError,a=r.isArray,s={};function c(l){this.constructor$(l),this._howMany=0,this._unwrap=!1,this._initialized=!1}r.inherits(c,e),c.prototype._init=function(){if(!!this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var l=a(this._values);!this._isResolved()&&l&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},c.prototype.init=function(){this._initialized=!0,this._init()},c.prototype.setUnwrap=function(){this._unwrap=!0},c.prototype.howMany=function(){return this._howMany},c.prototype.setHowMany=function(l){this._howMany=l},c.prototype._promiseFulfilled=function(l){return this._addFulfilled(l),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},c.prototype._promiseRejected=function(l){return this._addRejected(l),this._checkOutcome()},c.prototype._promiseCancelled=function(){return this._values instanceof t||this._values==null?this._cancel():(this._addRejected(s),this._checkOutcome())},c.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var l=new o,h=this.length();h0?this._reject(l):this._cancel(),!0}return!1},c.prototype._fulfilled=function(){return this._totalResolved},c.prototype._rejected=function(){return this._values.length-this.length()},c.prototype._addRejected=function(l){this._values.push(l)},c.prototype._addFulfilled=function(l){this._values[this._totalResolved++]=l},c.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},c.prototype._getRangeError=function(l){var h="Input array must contain at least "+this._howMany+" items but contains only "+l+" items";return new i(h)},c.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function u(l,h){if((h|0)!==h||h<0)return n(`expecting a positive integer See http://goo.gl/MqrFmX `);var d=new c(l),f=d.promise();return d.setHowMany(h),d.init(),f}t.some=function(l,h){return u(l,h)},t.prototype.some=function(l){return u(this,l)},t._SomePromiseArray=c},lP=function(t,e){var n=t.map;t.prototype.filter=function(r,i){return n(this,r,i,e)},t.filter=function(r,i,o){return n(r,i,o,e)}},hP=function(t,e){var n=t.reduce,r=t.all;function i(){return r(this)}function o(a,s){return n(a,s,e,e)}t.prototype.each=function(a){return n(this,a,e,0)._then(i,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(a){return n(this,a,e,e)},t.each=function(a,s){return n(a,s,e,0)._then(i,void 0,void 0,a,void 0)},t.mapSeries=o},dP=function(t){var e=t._SomePromiseArray;function n(r){var i=new e(r),o=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),o}t.any=function(r){return n(r)},t.prototype.any=function(){return n(this)}};(function(t){t.exports=function(){var e=function(){return new d(`circular promise resolution chain See http://goo.gl/MqrFmX `)},n=function(){return new T.PromiseInspection(this._target())},r=function(U){return T.reject(new d(U))};function i(){}var o={},a=Ct,s;a.isNode?s=function(){var U=process.domain;return U===void 0&&(U=null),U}:s=function(){return null},a.notEnumerableProp(T,"_getDomain",s);var c=Xi.exports,u=Of.exports,l=new u;c.defineProperty(T,"_async",{value:l});var h=Vi,d=T.TypeError=h.TypeError;T.RangeError=h.RangeError;var f=T.CancellationError=h.CancellationError;T.TimeoutError=h.TimeoutError,T.OperationalError=h.OperationalError,T.RejectionError=h.OperationalError,T.AggregateError=h.AggregateError;var p=function(){},g={},y={},R=MF(T,p),m=LF(T,p,R,r,i),v=CF(T),x=v.create,O=AF(T,v);O.CapturedTrace;var E=UF(T,R),N=WF(y),M=z2,_=a.errorObj,B=a.tryCatch;function q(U,X){if(typeof X!="function")throw new d("expecting a function but got "+a.classString(X));if(U.constructor!==T)throw new d(`the promise constructor cannot be invoked directly See http://goo.gl/MqrFmX `)}function T(U){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,U!==p&&(q(this,U),this._resolveFromExecutor(U)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}T.prototype.toString=function(){return"[object Promise]"},T.prototype.caught=T.prototype.catch=function(U){var X=arguments.length;if(X>1){var V=new Array(X-1),k=0,re;for(re=0;re0&&typeof U!="function"&&typeof X!="function"){var V=".then() only accepts functions but was passed: "+a.classString(U);arguments.length>1&&(V+=", "+a.classString(X)),this._warn(V)}return this._then(U,X,void 0,void 0,void 0)},T.prototype.done=function(U,X){var V=this._then(U,X,void 0,void 0,void 0);V._setIsFinal()},T.prototype.spread=function(U){return typeof U!="function"?r("expecting a function but got "+a.classString(U)):this.all()._then(U,void 0,void 0,g,void 0)},T.prototype.toJSON=function(){var U={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(U.fulfillmentValue=this.value(),U.isFulfilled=!0):this.isRejected()&&(U.rejectionReason=this.reason(),U.isRejected=!0),U},T.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new m(this).promise()},T.prototype.error=function(U){return this.caught(a.originatesFromRejection,U)},T.getNewLibraryCopy=t.exports,T.is=function(U){return U instanceof T},T.fromNode=T.fromCallback=function(U){var X=new T(p);X._captureStackTrace();var V=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,k=B(U)(M(X,V));return k===_&&X._rejectCallback(k.e,!0),X._isFateSealed()||X._setAsyncGuaranteed(),X},T.all=function(U){return new m(U).promise()},T.cast=function(U){var X=R(U);return X instanceof T||(X=new T(p),X._captureStackTrace(),X._setFulfilled(),X._rejectionHandler0=U),X},T.resolve=T.fulfilled=T.cast,T.reject=T.rejected=function(U){var X=new T(p);return X._captureStackTrace(),X._rejectCallback(U,!0),X},T.setScheduler=function(U){if(typeof U!="function")throw new d("expecting a function but got "+a.classString(U));return l.setScheduler(U)},T.prototype._then=function(U,X,V,k,re){var Z=re!==void 0,C=Z?re:new T(p),ne=this._target(),oe=ne._bitField;Z||(C._propagateFrom(this,3),C._captureStackTrace(),k===void 0&&(this._bitField&2097152)!==0&&((oe&50397184)!==0?k=this._boundValue():k=ne===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,C));var ue=s();if((oe&50397184)!==0){var ce,W,A=ne._settlePromiseCtx;(oe&33554432)!==0?(W=ne._rejectionHandler0,ce=U):(oe&16777216)!==0?(W=ne._fulfillmentHandler0,ce=X,ne._unsetRejectionIsUnhandled()):(A=ne._settlePromiseLateCancellationObserver,W=new f("late cancellation observer"),ne._attachExtraTrace(W),ce=X),l.invoke(A,ne,{handler:ue===null?ce:typeof ce=="function"&&a.domainBind(ue,ce),promise:C,receiver:k,value:W})}else ne._addCallbacks(U,X,C,k,ue);return C},T.prototype._length=function(){return this._bitField&65535},T.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},T.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},T.prototype._setLength=function(U){this._bitField=this._bitField&-65536|U&65535},T.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},T.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},T.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},T.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},T.prototype._isFinal=function(){return(this._bitField&4194304)>0},T.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},T.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},T.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},T.prototype._setAsyncGuaranteed=function(){l.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},T.prototype._receiverAt=function(U){var X=U===0?this._receiver0:this[U*4-4+3];if(X!==o)return X===void 0&&this._isBound()?this._boundValue():X},T.prototype._promiseAt=function(U){return this[U*4-4+2]},T.prototype._fulfillmentHandlerAt=function(U){return this[U*4-4+0]},T.prototype._rejectionHandlerAt=function(U){return this[U*4-4+1]},T.prototype._boundValue=function(){},T.prototype._migrateCallback0=function(U){U._bitField;var X=U._fulfillmentHandler0,V=U._rejectionHandler0,k=U._promise0,re=U._receiverAt(0);re===void 0&&(re=o),this._addCallbacks(X,V,k,re,null)},T.prototype._migrateCallbackAt=function(U,X){var V=U._fulfillmentHandlerAt(X),k=U._rejectionHandlerAt(X),re=U._promiseAt(X),Z=U._receiverAt(X);Z===void 0&&(Z=o),this._addCallbacks(V,k,re,Z,null)},T.prototype._addCallbacks=function(U,X,V,k,re){var Z=this._length();if(Z>=65535-4&&(Z=0,this._setLength(0)),Z===0)this._promise0=V,this._receiver0=k,typeof U=="function"&&(this._fulfillmentHandler0=re===null?U:a.domainBind(re,U)),typeof X=="function"&&(this._rejectionHandler0=re===null?X:a.domainBind(re,X));else{var C=Z*4-4;this[C+2]=V,this[C+3]=k,typeof U=="function"&&(this[C+0]=re===null?U:a.domainBind(re,U)),typeof X=="function"&&(this[C+1]=re===null?X:a.domainBind(re,X))}return this._setLength(Z+1),Z},T.prototype._proxy=function(U,X){this._addCallbacks(void 0,void 0,X,U,null)},T.prototype._resolveCallback=function(U,X){if((this._bitField&117506048)===0){if(U===this)return this._rejectCallback(e(),!1);var V=R(U,this);if(!(V instanceof T))return this._fulfill(U);X&&this._propagateFrom(V,2);var k=V._target();if(k===this){this._reject(e());return}var re=k._bitField;if((re&50397184)===0){var Z=this._length();Z>0&&k._migrateCallback0(this);for(var C=1;C>>16)){if(U===this){var V=e();return this._attachExtraTrace(V),this._reject(V)}this._setFulfilled(),this._rejectionHandler0=U,(X&65535)>0&&((X&134217728)!==0?this._settlePromises():l.settlePromises(this))}},T.prototype._reject=function(U){var X=this._bitField;if(!((X&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=U,this._isFinal())return l.fatalError(U,a.isNode);(X&65535)>0?l.settlePromises(this):this._ensurePossibleRejectionHandled()}},T.prototype._fulfillPromises=function(U,X){for(var V=1;V0){if((U&16842752)!==0){var V=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,V,U),this._rejectPromises(X,V)}else{var k=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,k,U),this._fulfillPromises(X,k)}this._setLength(0)}this._clearCancellationData()},T.prototype._settledValue=function(){var U=this._bitField;if((U&33554432)!==0)return this._rejectionHandler0;if((U&16777216)!==0)return this._fulfillmentHandler0};function I(U){this.promise._resolveCallback(U)}function b(U){this.promise._rejectCallback(U,!1)}T.defer=T.pending=function(){O.deprecated("Promise.defer","new Promise");var U=new T(p);return{promise:U,resolve:I,reject:b}},a.notEnumerableProp(T,"_makeSelfResolutionError",e),KF(T,p,R,r,O),HF(T,p,R,O),GF(T,m,r,O),JF(T),zF(T),$F(T,m,R,p,l,s),T.Promise=T,T.version="3.4.7",jF(T,m,r,R,p,O),qF(T),eP(T,r,R,x,p,O),tP(T,p,O),nP(T,r,p,R,i,O),rP(T),iP(T,p),oP(T,m,R,r),aP(T,p,R,r),sP(T,m,r,R,p,O),cP(T,m,O),uP(T,m,r),lP(T,p),hP(T,p),dP(T),a.toFastProperties(T),a.toFastProperties(T.prototype);function P(U){var X=new T(p);X._fulfillmentHandler0=U,X._rejectionHandler0=U,X._promise0=U,X._receiver0=U}return P({a:1}),P({b:2}),P({c:3}),P(1),P(function(){}),P(void 0),P(!1),P(new T(p)),O.setBounds(u.firstLineError,a.lastLineError),T}})(W2);var fP=Kt.exports,$n=W2.exports();mn.defer=pP;mn.when=$n.resolve;mn.resolve=$n.resolve;mn.all=$n.all;mn.props=$n.props;mn.reject=$n.reject;mn.promisify=$n.promisify;mn.mapSeries=$n.mapSeries;mn.attempt=$n.attempt;mn.nfcall=function(t){var e=Array.prototype.slice.call(arguments,1),n=$n.promisify(t);return n.apply(null,e)};$n.prototype.fail=$n.prototype.caught;$n.prototype.also=function(t){return this.then(function(e){var n=fP.extend({},e,t(e));return $n.props(n)})};function pP(){var t,e,n=new $n.Promise(function(r,i){t=r,e=i});return{resolve:t,reject:e,promise:n}}var ct={},gP=Kt.exports,Pn=ct.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function mP(t,e){return e=e||{},{type:Pn.document,children:t,notes:e.notes||new Vu({}),comments:e.comments||[]}}function RP(t,e){e=e||{};var n=e.indent||{};return{type:Pn.paragraph,children:t,styleId:e.styleId||null,styleName:e.styleName||null,numbering:e.numbering||null,alignment:e.alignment||null,indent:{start:n.start||null,end:n.end||null,firstLine:n.firstLine||null,hanging:n.hanging||null}}}function yP(t,e){return e=e||{},{type:Pn.run,children:t,styleId:e.styleId||null,styleName:e.styleName||null,isBold:!!e.isBold,isUnderline:!!e.isUnderline,isItalic:!!e.isItalic,isStrikethrough:!!e.isStrikethrough,isAllCaps:!!e.isAllCaps,isSmallCaps:!!e.isSmallCaps,verticalAlignment:e.verticalAlignment||q2.baseline,font:e.font||null,fontSize:e.fontSize||null}}var q2={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function vP(t){return{type:Pn.text,value:t}}function bP(){return{type:Pn.tab}}function xP(t,e){return{type:Pn.hyperlink,children:t,href:e.href,anchor:e.anchor,targetFrame:e.targetFrame}}function wP(t){return{type:Pn.noteReference,noteType:t.noteType,noteId:t.noteId}}function Vu(t){this._notes=gP.indexBy(t,function(e){return ey(e.noteType,e.noteId)})}Vu.prototype.resolve=function(t){return this.findNoteByKey(ey(t.noteType,t.noteId))};Vu.prototype.findNoteByKey=function(t){return this._notes[t]||null};function TP(t){return{type:Pn.note,noteType:t.noteType,noteId:t.noteId,body:t.body}}function SP(t){return{type:Pn.commentReference,commentId:t.commentId}}function DP(t){return{type:Pn.comment,commentId:t.commentId,body:t.body,authorName:t.authorName,authorInitials:t.authorInitials}}function ey(t,e){return t+"-"+e}function OP(t){return{type:Pn.image,read:function(e){return e?t.readImage(e):t.readImage().then(function(n){return Buffer.from(n)})},readAsArrayBuffer:function(){return t.readImage()},readAsBase64String:function(){return t.readImage("base64")},readAsBuffer:function(){return t.readImage().then(function(e){return Buffer.from(e)})},altText:t.altText,contentType:t.contentType}}function _P(t,e){return e=e||{},{type:Pn.table,children:t,styleId:e.styleId||null,styleName:e.styleName||null}}function EP(t,e){return e=e||{},{type:Pn.tableRow,children:t,isHeader:e.isHeader||!1}}function IP(t,e){return e=e||{},{type:Pn.tableCell,children:t,colSpan:e.colSpan==null?1:e.colSpan,rowSpan:e.rowSpan==null?1:e.rowSpan}}function Ef(t){return{type:Pn.break,breakType:t}}function NP(t){return{type:Pn.bookmarkStart,name:t.name}}ct.document=ct.Document=mP;ct.paragraph=ct.Paragraph=RP;ct.run=ct.Run=yP;ct.text=ct.Text=vP;ct.tab=ct.Tab=bP;ct.Hyperlink=xP;ct.noteReference=ct.NoteReference=wP;ct.Notes=Vu;ct.Note=TP;ct.commentReference=SP;ct.comment=DP;ct.Image=OP;ct.Table=_P;ct.TableRow=EP;ct.TableCell=IP;ct.lineBreak=Ef("line");ct.pageBreak=Ef("page");ct.columnBreak=Ef("column");ct.BookmarkStart=NP;ct.verticalAlignment=q2;var hr={},Ss=Kt.exports;hr.Result=jr;hr.success=FP;hr.warning=PP;hr.error=MP;function jr(t,e){this.value=t,this.messages=e||[]}jr.prototype.map=function(t){return new jr(t(this.value),this.messages)};jr.prototype.flatMap=function(t){var e=t(this.value);return new jr(e.value,If([this,e]))};jr.prototype.flatMapThen=function(t){var e=this;return t(this.value).then(function(n){return new jr(n.value,If([e,n]))})};jr.combine=function(t){var e=Ss.flatten(Ss.pluck(t,"value")),n=If(t);return new jr(e,n)};function FP(t){return new jr(t,[])}function PP(t){return{type:"warning",message:t}}function MP(t){return{type:"error",message:t.message,error:t}}function If(t){var e=[];return Ss.flatten(Ss.pluck(t,"messages"),!0).forEach(function(n){LP(e,n)||e.push(n)}),e}function LP(t,e){return Ss.find(t,CP.bind(null,e))!==void 0}function CP(t,e){return t.type===e.type&&t.message===e.message}var Ws={},Yu={};Yu.byteLength=WP;Yu.toByteArray=VP;Yu.fromByteArray=ZP;var Yr=[],yr=[],AP=typeof Uint8Array!="undefined"?Uint8Array:Array,Lh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Lo=0,UP=Lh.length;Lo0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function WP(t){var e=ty(t),n=e[0],r=e[1];return(n+r)*3/4-r}function XP(t,e,n){return(e+n)*3/4-n}function VP(t){var e,n=ty(t),r=n[0],i=n[1],o=new AP(XP(t,r,i)),a=0,s=i>0?r-4:r,c;for(c=0;c>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=yr[t.charCodeAt(c)]<<2|yr[t.charCodeAt(c+1)]>>4,o[a++]=e&255),i===1&&(e=yr[t.charCodeAt(c)]<<10|yr[t.charCodeAt(c+1)]<<4|yr[t.charCodeAt(c+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function YP(t){return Yr[t>>18&63]+Yr[t>>12&63]+Yr[t>>6&63]+Yr[t&63]}function BP(t,e,n){for(var r,i=[],o=e;os?s:a+o));return r===1?(e=t[n-1],i.push(Yr[e>>2]+Yr[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(Yr[e>>10]+Yr[e>>4&63]+Yr[e<<2&63]+"=")),i.join("")}var ny={exports:{}};/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */(function(t,e){(function(n){t.exports=n()})(function(){return function n(r,i,o){function a(u,l){if(!i[u]){if(!r[u]){var h=typeof mc=="function"&&mc;if(!l&&h)return h(u,!0);if(s)return s(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var f=i[u]={exports:{}};r[u][0].call(f.exports,function(p){var g=r[u][1][p];return a(g||p)},f,f.exports,n,r,i,o)}return i[u].exports}for(var s=typeof mc=="function"&&mc,c=0;c>2,f=(3&u)<<4|l>>4,p=1>6:64,g=2>4,l=(15&d)<<4|(f=s.indexOf(c.charAt(g++)))>>2,h=(3&f)<<6|(p=s.indexOf(c.charAt(g++))),m[y++]=u,f!==64&&(m[y++]=l),p!==64&&(m[y++]=h);return m}},{"./support":30,"./utils":32}],2:[function(n,r,i){var o=n("./external"),a=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),c=n("./stream/DataLengthProbe");function u(l,h,d,f,p){this.compressedSize=l,this.uncompressedSize=h,this.crc32=d,this.compression=f,this.compressedContent=p}u.prototype={getContentWorker:function(){var l=new a(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),h=this;return l.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new a(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(l,h,d){return l.pipe(new s).pipe(new c("uncompressedSize")).pipe(h.compressWorker(d)).pipe(new c("compressedSize")).withStreamInfo("compression",h)},r.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var o=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var o=n("./utils"),a=function(){for(var s,c=[],u=0;u<256;u++){s=u;for(var l=0;l<8;l++)s=1&s?3988292384^s>>>1:s>>>1;c[u]=s}return c}();r.exports=function(s,c){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?function(u,l,h,d){var f=a,p=d+h;u^=-1;for(var g=d;g>>8^f[255&(u^l[g])];return-1^u}(0|c,s,s.length,0):function(u,l,h,d){var f=a,p=d+h;u^=-1;for(var g=d;g>>8^f[255&(u^l.charCodeAt(g))];return-1^u}(0|c,s,s.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var o=null;o=typeof Promise!="undefined"?Promise:n("lie"),r.exports={Promise:o}},{lie:37}],7:[function(n,r,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=n("pako"),s=n("./utils"),c=n("./stream/GenericWorker"),u=o?"uint8array":"array";function l(h,d){c.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=d,this.meta={}}i.magic="\b\0",s.inherits(l,c),l.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,h.data),!1)},l.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(d){h.push({data:d,meta:h.meta})}},i.compressWorker=function(h){return new l("Deflate",h)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function o(f,p){var g,y="";for(g=0;g>>=8;return y}function a(f,p,g,y,R,m){var v,x,O=f.file,E=f.compression,N=m!==u.utf8encode,M=s.transformTo("string",m(O.name)),_=s.transformTo("string",u.utf8encode(O.name)),B=O.comment,q=s.transformTo("string",m(B)),T=s.transformTo("string",u.utf8encode(B)),I=_.length!==O.name.length,b=T.length!==B.length,P="",U="",X="",V=O.dir,k=O.date,re={crc32:0,compressedSize:0,uncompressedSize:0};p&&!g||(re.crc32=f.crc32,re.compressedSize=f.compressedSize,re.uncompressedSize=f.uncompressedSize);var Z=0;p&&(Z|=8),N||!I&&!b||(Z|=2048);var C=0,ne=0;V&&(C|=16),R==="UNIX"?(ne=798,C|=function(ue,ce){var W=ue;return ue||(W=ce?16893:33204),(65535&W)<<16}(O.unixPermissions,V)):(ne=20,C|=function(ue){return 63&(ue||0)}(O.dosPermissions)),v=k.getUTCHours(),v<<=6,v|=k.getUTCMinutes(),v<<=5,v|=k.getUTCSeconds()/2,x=k.getUTCFullYear()-1980,x<<=4,x|=k.getUTCMonth()+1,x<<=5,x|=k.getUTCDate(),I&&(U=o(1,1)+o(l(M),4)+_,P+="up"+o(U.length,2)+U),b&&(X=o(1,1)+o(l(q),4)+T,P+="uc"+o(X.length,2)+X);var oe="";return oe+=` \0`,oe+=o(Z,2),oe+=E.magic,oe+=o(v,2),oe+=o(x,2),oe+=o(re.crc32,4),oe+=o(re.compressedSize,4),oe+=o(re.uncompressedSize,4),oe+=o(M.length,2),oe+=o(P.length,2),{fileRecord:h.LOCAL_FILE_HEADER+oe+M+P,dirRecord:h.CENTRAL_FILE_HEADER+o(ne,2)+oe+o(q.length,2)+"\0\0\0\0"+o(C,4)+o(y,4)+M+P+q}}var s=n("../utils"),c=n("../stream/GenericWorker"),u=n("../utf8"),l=n("../crc32"),h=n("../signature");function d(f,p,g,y){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=g,this.encodeFileName=y,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,c),d.prototype.push=function(f){var p=f.meta.percent||0,g=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,c.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:g?(p+100*(g-y-1))/g:100}}))},d.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var p=this.streamFiles&&!f.file.dir;if(p){var g=a(f,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(f){this.accumulate=!1;var p=this.streamFiles&&!f.file.dir,g=a(f,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),p)this.push({data:function(y){return h.DATA_DESCRIPTOR+o(y.crc32,4)+o(y.compressedSize,4)+o(y.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var f=this.bytesWritten,p=0;p=this.index;c--)u=(u<<8)+this.byteAt(c);return this.index+=s,u},readString:function(s){return o.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},r.exports=a},{"../utils":32}],19:[function(n,r,i){var o=n("./Uint8ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var o=n("./DataReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var o=n("./ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var o=n("../utils"),a=n("../support"),s=n("./ArrayReader"),c=n("./StringReader"),u=n("./NodeBufferReader"),l=n("./Uint8ArrayReader");r.exports=function(h){var d=o.getTypeOf(h);return o.checkSupport(d),d!=="string"||a.uint8array?d==="nodebuffer"?new u(h):a.uint8array?new l(o.transformTo("uint8array",h)):new s(o.transformTo("array",h)):new c(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var o=n("./GenericWorker"),a=n("../utils");function s(c){o.call(this,"ConvertWorker to "+c),this.destType=c}a.inherits(s,o),s.prototype.processChunk=function(c){this.push({data:a.transformTo(this.destType,c.data),meta:c.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var o=n("./GenericWorker"),a=n("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(s,o),s.prototype.processChunk=function(c){this.streamInfo.crc32=a(c.data,this.streamInfo.crc32||0),this.push(c)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var o=n("../utils"),a=n("./GenericWorker");function s(c){a.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}o.inherits(s,a),s.prototype.processChunk=function(c){if(c){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+c.data.length}a.prototype.processChunk.call(this,c)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var o=n("../utils"),a=n("./GenericWorker");function s(c){a.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(l){u.dataIsReady=!0,u.data=l,u.max=l&&l.length||0,u.type=o.getTypeOf(l),u.isPaused||u._tickAndRepeat()},function(l){u.error(l)})}o.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,u);break;case"uint8array":c=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":c=this.data.slice(this.index,u)}return this.index=u,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function o(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var c=0;c "+a:a}},r.exports=o},{}],29:[function(n,r,i){var o=n("../utils"),a=n("./ConvertWorker"),s=n("./GenericWorker"),c=n("../base64"),u=n("../support"),l=n("../external"),h=null;if(u.nodestream)try{h=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(p,g){return new l.Promise(function(y,R){var m=[],v=p._internalType,x=p._outputType,O=p._mimeType;p.on("data",function(E,N){m.push(E),g&&g(N)}).on("error",function(E){m=[],R(E)}).on("end",function(){try{var E=function(N,M,_){switch(N){case"blob":return o.newBlob(o.transformTo("arraybuffer",M),_);case"base64":return c.encode(M);default:return o.transformTo(N,M)}}(x,function(N,M){var _,B=0,q=null,T=0;for(_=0;_>>6:(y<65536?g[v++]=224|y>>>12:(g[v++]=240|y>>>18,g[v++]=128|y>>>12&63),g[v++]=128|y>>>6&63),g[v++]=128|63&y);return g}(f)},i.utf8decode=function(f){return a.nodebuffer?o.transformTo("nodebuffer",f).toString("utf-8"):function(p){var g,y,R,m,v=p.length,x=new Array(2*v);for(g=y=0;g>10&1023,x[y++]=56320|1023&R)}return x.length!==y&&(x.subarray?x=x.subarray(0,y):x.length=y),o.applyFromCharCode(x)}(f=o.transformTo(a.uint8array?"uint8array":"array",f))},o.inherits(h,c),h.prototype.processChunk=function(f){var p=o.transformTo(a.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var g=p;(p=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),p.set(g,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var y=function(m,v){var x;for((v=v||m.length)>m.length&&(v=m.length),x=v-1;0<=x&&(192&m[x])==128;)x--;return x<0||x===0?v:x+u[m[x]]>v?x:v}(p),R=p;y!==p.length&&(a.uint8array?(R=p.subarray(0,y),this.leftOver=p.subarray(y,p.length)):(R=p.slice(0,y),this.leftOver=p.slice(y,p.length))),this.push({data:i.utf8decode(R),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,o.inherits(d,c),d.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var o=n("./support"),a=n("./base64"),s=n("./nodejsUtils"),c=n("./external");function u(g){return g}function l(g,y){for(var R=0;R>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=o(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var p,g,y,R=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4>>6:(f<65536?d[y++]=224|f>>>12:(d[y++]=240|f>>>18,d[y++]=128|f>>>12&63),d[y++]=128|f>>>6&63),d[y++]=128|63&f);return d},i.buf2binstring=function(h){return l(h,h.length)},i.binstring2buf=function(h){for(var d=new o.Buf8(h.length),f=0,p=d.length;f>10&1023,m[p++]=56320|1023&g)}return l(m,p)},i.utf8border=function(h,d){var f;for((d=d||h.length)>h.length&&(d=h.length),f=d-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?d:f+c[h[f]]>d?f:d}},{"./common":41}],43:[function(n,r,i){r.exports=function(o,a,s,c){for(var u=65535&o|0,l=o>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3>>1:a>>>1;s[c]=a}return s}();r.exports=function(a,s,c,u){var l=o,h=u+c;a^=-1;for(var d=u;d>>8^l[255&(a^s[d])];return-1^a}},{}],46:[function(n,r,i){var o,a=n("../utils/common"),s=n("./trees"),c=n("./adler32"),u=n("./crc32"),l=n("./messages"),h=0,d=4,f=0,p=-2,g=-1,y=4,R=2,m=8,v=9,x=286,O=30,E=19,N=2*x+1,M=15,_=3,B=258,q=B+_+1,T=42,I=113,b=1,P=2,U=3,X=4;function V(D,ie){return D.msg=l[ie],ie}function k(D){return(D<<1)-(4D.avail_out&&(L=D.avail_out),L!==0&&(a.arraySet(D.output,ie.pending_buf,ie.pending_out,L,D.next_out),D.next_out+=L,ie.pending_out+=L,D.total_out+=L,D.avail_out-=L,ie.pending-=L,ie.pending===0&&(ie.pending_out=0))}function C(D,ie){s._tr_flush_block(D,0<=D.block_start?D.block_start:-1,D.strstart-D.block_start,ie),D.block_start=D.strstart,Z(D.strm)}function ne(D,ie){D.pending_buf[D.pending++]=ie}function oe(D,ie){D.pending_buf[D.pending++]=ie>>>8&255,D.pending_buf[D.pending++]=255&ie}function ue(D,ie){var L,w,S=D.max_chain_length,F=D.strstart,G=D.prev_length,ee=D.nice_match,K=D.strstart>D.w_size-q?D.strstart-(D.w_size-q):0,J=D.window,te=D.w_mask,ae=D.prev,he=D.strstart+B,xe=J[F+G-1],_e=J[F+G];D.prev_length>=D.good_match&&(S>>=2),ee>D.lookahead&&(ee=D.lookahead);do if(J[(L=ie)+G]===_e&&J[L+G-1]===xe&&J[L]===J[F]&&J[++L]===J[F+1]){F+=2,L++;do;while(J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&J[++F]===J[++L]&&FK&&--S!=0);return G<=D.lookahead?G:D.lookahead}function ce(D){var ie,L,w,S,F,G,ee,K,J,te,ae=D.w_size;do{if(S=D.window_size-D.lookahead-D.strstart,D.strstart>=ae+(ae-q)){for(a.arraySet(D.window,D.window,ae,ae,0),D.match_start-=ae,D.strstart-=ae,D.block_start-=ae,ie=L=D.hash_size;w=D.head[--ie],D.head[ie]=ae<=w?w-ae:0,--L;);for(ie=L=ae;w=D.prev[--ie],D.prev[ie]=ae<=w?w-ae:0,--L;);S+=ae}if(D.strm.avail_in===0)break;if(G=D.strm,ee=D.window,K=D.strstart+D.lookahead,J=S,te=void 0,te=G.avail_in,J=_)for(F=D.strstart-D.insert,D.ins_h=D.window[F],D.ins_h=(D.ins_h<=_&&(D.ins_h=(D.ins_h<=_)if(w=s._tr_tally(D,D.strstart-D.match_start,D.match_length-_),D.lookahead-=D.match_length,D.match_length<=D.max_lazy_match&&D.lookahead>=_){for(D.match_length--;D.strstart++,D.ins_h=(D.ins_h<=_&&(D.ins_h=(D.ins_h<=_&&D.match_length<=D.prev_length){for(S=D.strstart+D.lookahead-_,w=s._tr_tally(D,D.strstart-1-D.prev_match,D.prev_length-_),D.lookahead-=D.prev_length-1,D.prev_length-=2;++D.strstart<=S&&(D.ins_h=(D.ins_h<D.pending_buf_size-5&&(L=D.pending_buf_size-5);;){if(D.lookahead<=1){if(ce(D),D.lookahead===0&&ie===h)return b;if(D.lookahead===0)break}D.strstart+=D.lookahead,D.lookahead=0;var w=D.block_start+L;if((D.strstart===0||D.strstart>=w)&&(D.lookahead=D.strstart-w,D.strstart=w,C(D,!1),D.strm.avail_out===0)||D.strstart-D.block_start>=D.w_size-q&&(C(D,!1),D.strm.avail_out===0))return b}return D.insert=0,ie===d?(C(D,!0),D.strm.avail_out===0?U:X):(D.strstart>D.block_start&&(C(D,!1),D.strm.avail_out),b)}),new Q(4,4,8,4,W),new Q(4,5,16,8,W),new Q(4,6,32,32,W),new Q(4,4,16,16,A),new Q(8,16,32,32,A),new Q(8,16,128,128,A),new Q(8,32,128,256,A),new Q(32,128,258,1024,A),new Q(32,258,258,4096,A)],i.deflateInit=function(D,ie){return ge(D,ie,m,15,8,0)},i.deflateInit2=ge,i.deflateReset=j,i.deflateResetKeep=H,i.deflateSetHeader=function(D,ie){return D&&D.state?D.state.wrap!==2?p:(D.state.gzhead=ie,f):p},i.deflate=function(D,ie){var L,w,S,F;if(!D||!D.state||5>8&255),ne(w,w.gzhead.time>>16&255),ne(w,w.gzhead.time>>24&255),ne(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),ne(w,255&w.gzhead.os),w.gzhead.extra&&w.gzhead.extra.length&&(ne(w,255&w.gzhead.extra.length),ne(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(D.adler=u(D.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(ne(w,0),ne(w,0),ne(w,0),ne(w,0),ne(w,0),ne(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),ne(w,3),w.status=I);else{var G=m+(w.w_bits-8<<4)<<8;G|=(2<=w.strategy||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6,w.strstart!==0&&(G|=32),G+=31-G%31,w.status=I,oe(w,G),w.strstart!==0&&(oe(w,D.adler>>>16),oe(w,65535&D.adler)),D.adler=1}if(w.status===69)if(w.gzhead.extra){for(S=w.pending;w.gzindex<(65535&w.gzhead.extra.length)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),Z(D),S=w.pending,w.pending!==w.pending_buf_size));)ne(w,255&w.gzhead.extra[w.gzindex]),w.gzindex++;w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),w.gzindex===w.gzhead.extra.length&&(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),Z(D),S=w.pending,w.pending===w.pending_buf_size)){F=1;break}F=w.gzindexS&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),F===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===91)if(w.gzhead.comment){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),Z(D),S=w.pending,w.pending===w.pending_buf_size)){F=1;break}F=w.gzindexS&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),F===0&&(w.status=103)}else w.status=103;if(w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&Z(D),w.pending+2<=w.pending_buf_size&&(ne(w,255&D.adler),ne(w,D.adler>>8&255),D.adler=0,w.status=I)):w.status=I),w.pending!==0){if(Z(D),D.avail_out===0)return w.last_flush=-1,f}else if(D.avail_in===0&&k(ie)<=k(L)&&ie!==d)return V(D,-5);if(w.status===666&&D.avail_in!==0)return V(D,-5);if(D.avail_in!==0||w.lookahead!==0||ie!==h&&w.status!==666){var ee=w.strategy===2?function(K,J){for(var te;;){if(K.lookahead===0&&(ce(K),K.lookahead===0)){if(J===h)return b;break}if(K.match_length=0,te=s._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++,te&&(C(K,!1),K.strm.avail_out===0))return b}return K.insert=0,J===d?(C(K,!0),K.strm.avail_out===0?U:X):K.last_lit&&(C(K,!1),K.strm.avail_out===0)?b:P}(w,ie):w.strategy===3?function(K,J){for(var te,ae,he,xe,_e=K.window;;){if(K.lookahead<=B){if(ce(K),K.lookahead<=B&&J===h)return b;if(K.lookahead===0)break}if(K.match_length=0,K.lookahead>=_&&0K.lookahead&&(K.match_length=K.lookahead)}if(K.match_length>=_?(te=s._tr_tally(K,1,K.match_length-_),K.lookahead-=K.match_length,K.strstart+=K.match_length,K.match_length=0):(te=s._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++),te&&(C(K,!1),K.strm.avail_out===0))return b}return K.insert=0,J===d?(C(K,!0),K.strm.avail_out===0?U:X):K.last_lit&&(C(K,!1),K.strm.avail_out===0)?b:P}(w,ie):o[w.level].func(w,ie);if(ee!==U&&ee!==X||(w.status=666),ee===b||ee===U)return D.avail_out===0&&(w.last_flush=-1),f;if(ee===P&&(ie===1?s._tr_align(w):ie!==5&&(s._tr_stored_block(w,0,0,!1),ie===3&&(re(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),Z(D),D.avail_out===0))return w.last_flush=-1,f}return ie!==d?f:w.wrap<=0?1:(w.wrap===2?(ne(w,255&D.adler),ne(w,D.adler>>8&255),ne(w,D.adler>>16&255),ne(w,D.adler>>24&255),ne(w,255&D.total_in),ne(w,D.total_in>>8&255),ne(w,D.total_in>>16&255),ne(w,D.total_in>>24&255)):(oe(w,D.adler>>>16),oe(w,65535&D.adler)),Z(D),0=L.w_size&&(F===0&&(re(L.head),L.strstart=0,L.block_start=0,L.insert=0),J=new a.Buf8(L.w_size),a.arraySet(J,ie,te-L.w_size,L.w_size,0),ie=J,te=L.w_size),G=D.avail_in,ee=D.next_in,K=D.input,D.avail_in=te,D.next_in=0,D.input=ie,ce(L);L.lookahead>=_;){for(w=L.strstart,S=L.lookahead-(_-1);L.ins_h=(L.ins_h<>>=_=M>>>24,v-=_,(_=M>>>16&255)===0)P[l++]=65535&M;else{if(!(16&_)){if((64&_)==0){M=x[(65535&M)+(m&(1<<_)-1)];continue t}if(32&_){s.mode=12;break e}o.msg="invalid literal/length code",s.mode=30;break e}B=65535&M,(_&=15)&&(v<_&&(m+=b[c++]<>>=_,v-=_),v<15&&(m+=b[c++]<>>=_=M>>>24,v-=_,!(16&(_=M>>>16&255))){if((64&_)==0){M=O[(65535&M)+(m&(1<<_)-1)];continue n}o.msg="invalid distance code",s.mode=30;break e}if(q=65535&M,v<(_&=15)&&(m+=b[c++]<>>=_,v-=_,(_=l-h)>3,m&=(1<<(v-=B<<3))-1,o.next_in=c,o.next_out=l,o.avail_in=c>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(T){var I;return T&&T.state?(I=T.state,T.total_in=T.total_out=I.total=0,T.msg="",I.wrap&&(T.adler=1&I.wrap),I.mode=p,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new o.Buf32(g),I.distcode=I.distdyn=new o.Buf32(y),I.sane=1,I.back=-1,d):f}function x(T){var I;return T&&T.state?((I=T.state).wsize=0,I.whave=0,I.wnext=0,v(T)):f}function O(T,I){var b,P;return T&&T.state?(P=T.state,I<0?(b=0,I=-I):(b=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15=X.wsize?(o.arraySet(X.window,I,b-X.wsize,X.wsize,0),X.wnext=0,X.whave=X.wsize):(P<(U=X.wsize-X.wnext)&&(U=P),o.arraySet(X.window,I,b-P,U,X.wnext),(P-=U)?(o.arraySet(X.window,I,b-P,P,0),X.wnext=P,X.whave=X.wsize):(X.wnext+=U,X.wnext===X.wsize&&(X.wnext=0),X.whave>>8&255,b.check=s(b.check,F,2,0),C=Z=0,b.mode=2;break}if(b.flags=0,b.head&&(b.head.done=!1),!(1&b.wrap)||(((255&Z)<<8)+(Z>>8))%31){T.msg="incorrect header check",b.mode=30;break}if((15&Z)!=8){T.msg="unknown compression method",b.mode=30;break}if(C-=4,D=8+(15&(Z>>>=4)),b.wbits===0)b.wbits=D;else if(D>b.wbits){T.msg="invalid window size",b.mode=30;break}b.dmax=1<>8&1),512&b.flags&&(F[0]=255&Z,F[1]=Z>>>8&255,b.check=s(b.check,F,2,0)),C=Z=0,b.mode=3;case 3:for(;C<32;){if(k===0)break e;k--,Z+=P[X++]<>>8&255,F[2]=Z>>>16&255,F[3]=Z>>>24&255,b.check=s(b.check,F,4,0)),C=Z=0,b.mode=4;case 4:for(;C<16;){if(k===0)break e;k--,Z+=P[X++]<>8),512&b.flags&&(F[0]=255&Z,F[1]=Z>>>8&255,b.check=s(b.check,F,2,0)),C=Z=0,b.mode=5;case 5:if(1024&b.flags){for(;C<16;){if(k===0)break e;k--,Z+=P[X++]<>>8&255,b.check=s(b.check,F,2,0)),C=Z=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&(k<(ue=b.length)&&(ue=k),ue&&(b.head&&(D=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),o.arraySet(b.head.extra,P,X,ue,D)),512&b.flags&&(b.check=s(b.check,P,ue,X)),k-=ue,X+=ue,b.length-=ue),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(k===0)break e;for(ue=0;D=P[X+ue++],b.head&&D&&b.length<65536&&(b.head.name+=String.fromCharCode(D)),D&&ue>9&1,b.head.done=!0),T.adler=b.check=0,b.mode=12;break;case 10:for(;C<32;){if(k===0)break e;k--,Z+=P[X++]<>>=7&C,C-=7&C,b.mode=27;break}for(;C<3;){if(k===0)break e;k--,Z+=P[X++]<>>=1)){case 0:b.mode=14;break;case 1:if(B(b),b.mode=20,I!==6)break;Z>>>=2,C-=2;break e;case 2:b.mode=17;break;case 3:T.msg="invalid block type",b.mode=30}Z>>>=2,C-=2;break;case 14:for(Z>>>=7&C,C-=7&C;C<32;){if(k===0)break e;k--,Z+=P[X++]<>>16^65535)){T.msg="invalid stored block lengths",b.mode=30;break}if(b.length=65535&Z,C=Z=0,b.mode=15,I===6)break e;case 15:b.mode=16;case 16:if(ue=b.length){if(k>>=5,C-=5,b.ndist=1+(31&Z),Z>>>=5,C-=5,b.ncode=4+(15&Z),Z>>>=4,C-=4,286>>=3,C-=3}for(;b.have<19;)b.lens[G[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,L={bits:b.lenbits},ie=u(0,b.lens,0,19,b.lencode,0,b.work,L),b.lenbits=L.bits,ie){T.msg="invalid code lengths set",b.mode=30;break}b.have=0,b.mode=19;case 19:for(;b.have>>16&255,z=65535&S,!((A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>>=A,C-=A,b.lens[b.have++]=z;else{if(z===16){for(w=A+2;C>>=A,C-=A,b.have===0){T.msg="invalid bit length repeat",b.mode=30;break}D=b.lens[b.have-1],ue=3+(3&Z),Z>>>=2,C-=2}else if(z===17){for(w=A+3;C>>=A)),Z>>>=3,C-=3}else{for(w=A+7;C>>=A)),Z>>>=7,C-=7}if(b.have+ue>b.nlen+b.ndist){T.msg="invalid bit length repeat",b.mode=30;break}for(;ue--;)b.lens[b.have++]=D}}if(b.mode===30)break;if(b.lens[256]===0){T.msg="invalid code -- missing end-of-block",b.mode=30;break}if(b.lenbits=9,L={bits:b.lenbits},ie=u(l,b.lens,0,b.nlen,b.lencode,0,b.work,L),b.lenbits=L.bits,ie){T.msg="invalid literal/lengths set",b.mode=30;break}if(b.distbits=6,b.distcode=b.distdyn,L={bits:b.distbits},ie=u(h,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,L),b.distbits=L.bits,ie){T.msg="invalid distances set",b.mode=30;break}if(b.mode=20,I===6)break e;case 20:b.mode=21;case 21:if(6<=k&&258<=re){T.next_out=V,T.avail_out=re,T.next_in=X,T.avail_in=k,b.hold=Z,b.bits=C,c(T,oe),V=T.next_out,U=T.output,re=T.avail_out,X=T.next_in,P=T.input,k=T.avail_in,Z=b.hold,C=b.bits,b.mode===12&&(b.back=-1);break}for(b.back=0;Q=(S=b.lencode[Z&(1<>>16&255,z=65535&S,!((A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>H)])>>>16&255,z=65535&S,!(H+(A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>>=H,C-=H,b.back+=H}if(Z>>>=A,C-=A,b.back+=A,b.length=z,Q===0){b.mode=26;break}if(32&Q){b.back=-1,b.mode=12;break}if(64&Q){T.msg="invalid literal/length code",b.mode=30;break}b.extra=15&Q,b.mode=22;case 22:if(b.extra){for(w=b.extra;C>>=b.extra,C-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=23;case 23:for(;Q=(S=b.distcode[Z&(1<>>16&255,z=65535&S,!((A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>H)])>>>16&255,z=65535&S,!(H+(A=S>>>24)<=C);){if(k===0)break e;k--,Z+=P[X++]<>>=H,C-=H,b.back+=H}if(Z>>>=A,C-=A,b.back+=A,64&Q){T.msg="invalid distance code",b.mode=30;break}b.offset=z,b.extra=15&Q,b.mode=24;case 24:if(b.extra){for(w=b.extra;C>>=b.extra,C-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){T.msg="invalid distance too far back",b.mode=30;break}b.mode=25;case 25:if(re===0)break e;if(ue=oe-re,b.offset>ue){if((ue=b.offset-ue)>b.whave&&b.sane){T.msg="invalid distance too far back",b.mode=30;break}ce=ue>b.wnext?(ue-=b.wnext,b.wsize-ue):b.wnext-ue,ue>b.length&&(ue=b.length),W=b.window}else W=U,ce=V-b.offset,ue=b.length;for(reN?(_=ce[W+y[I]],C[ne+y[I]]):(_=96,0),m=1<>V)+(v-=m)]=M<<24|_<<16|B|0,v!==0;);for(m=1<>=1;if(m!==0?(Z&=m-1,Z+=m):Z=0,I++,--oe[T]==0){if(T===P)break;T=h[d+y[I]]}if(U>>7)]}function ne(S,F){S.pending_buf[S.pending++]=255&F,S.pending_buf[S.pending++]=F>>>8&255}function oe(S,F,G){S.bi_valid>R-G?(S.bi_buf|=F<>R-S.bi_valid,S.bi_valid+=G-R):(S.bi_buf|=F<>>=1,G<<=1,0<--F;);return G>>>1}function W(S,F,G){var ee,K,J=new Array(y+1),te=0;for(ee=1;ee<=y;ee++)J[ee]=te=te+G[ee-1]<<1;for(K=0;K<=F;K++){var ae=S[2*K+1];ae!==0&&(S[2*K]=ce(J[ae]++,ae))}}function A(S){var F;for(F=0;F>1;1<=G;G--)H(S,J,G);for(K=he;G=S.heap[1],S.heap[1]=S.heap[S.heap_len--],H(S,J,1),ee=S.heap[1],S.heap[--S.heap_max]=G,S.heap[--S.heap_max]=ee,J[2*K]=J[2*G]+J[2*ee],S.depth[K]=(S.depth[G]>=S.depth[ee]?S.depth[G]:S.depth[ee])+1,J[2*G+1]=J[2*ee+1]=K,S.heap[1]=K++,H(S,J,1),2<=S.heap_len;);S.heap[--S.heap_max]=S.heap[1],function(_e,Me){var Xe,He,ze,Ze,ut,Vt,Dt=Me.dyn_tree,Zn=Me.max_code,ei=Me.stat_desc.static_tree,kn=Me.stat_desc.has_stree,ti=Me.stat_desc.extra_bits,ni=Me.stat_desc.extra_base,Rn=Me.stat_desc.max_length,Dn=0;for(Ze=0;Ze<=y;Ze++)_e.bl_count[Ze]=0;for(Dt[2*_e.heap[_e.heap_max]+1]=0,Xe=_e.heap_max+1;Xe>=7;K>>=1)if(1&xe&&ae.dyn_ltree[2*he]!==0)return a;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return s;for(he=32;he>>3,(J=S.static_len+3+7>>>3)<=K&&(K=J)):K=J=G+5,G+4<=K&&F!==-1?w(S,F,G,ee):S.strategy===4||J===K?(oe(S,2+(ee?1:0),3),j(S,q,T)):(oe(S,4+(ee?1:0),3),function(ae,he,xe,_e){var Me;for(oe(ae,he-257,5),oe(ae,xe-1,5),oe(ae,_e-4,4),Me=0;Me<_e;Me++)oe(ae,ae.bl_tree[2*B[Me]+1],3);ie(ae,ae.dyn_ltree,he-1),ie(ae,ae.dyn_dtree,xe-1)}(S,S.l_desc.max_code+1,S.d_desc.max_code+1,te+1),j(S,S.dyn_ltree,S.dyn_dtree)),A(S),ee&&Q(S)},i._tr_tally=function(S,F,G){return S.pending_buf[S.d_buf+2*S.last_lit]=F>>>8&255,S.pending_buf[S.d_buf+2*S.last_lit+1]=255&F,S.pending_buf[S.l_buf+S.last_lit]=255&G,S.last_lit++,F===0?S.dyn_ltree[2*G]++:(S.matches++,F--,S.dyn_ltree[2*(b[G]+h+1)]++,S.dyn_dtree[2*C(F)]++),S.last_lit===S.lit_bufsize-1},i._tr_align=function(S){oe(S,2,3),ue(S,v,q),function(F){F.bi_valid===16?(ne(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):8<=F.bi_valid&&(F.pending_buf[F.pending++]=255&F.bi_buf,F.bi_buf>>=8,F.bi_valid-=8)}(S)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(o){(function(a,s){if(!a.setImmediate){var c,u,l,h,d=1,f={},p=!1,g=a.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(a);y=y&&y.setTimeout?y:a,c={}.toString.call(a.process)==="[object process]"?function(x){process.nextTick(function(){m(x)})}:function(){if(a.postMessage&&!a.importScripts){var x=!0,O=a.onmessage;return a.onmessage=function(){x=!1},a.postMessage("","*"),a.onmessage=O,x}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",v,!1):a.attachEvent("onmessage",v),function(x){a.postMessage(h+x,"*")}):a.MessageChannel?((l=new MessageChannel).port1.onmessage=function(x){m(x.data)},function(x){l.port2.postMessage(x)}):g&&"onreadystatechange"in g.createElement("script")?(u=g.documentElement,function(x){var O=g.createElement("script");O.onreadystatechange=function(){m(x),O.onreadystatechange=null,u.removeChild(O),O=null},u.appendChild(O)}):function(x){setTimeout(m,0,x)},y.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var O=new Array(arguments.length-1),E=0;E=0&&t=0){for(var i=e.length-1;r0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===t)return r}e=e.nodeType==Ra?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,t))return n[t];e=e.nodeType==Ra?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function yy(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}Vs(qn,St);Vs(qn,St.prototype);function Os(t,e){if(e(t))return!0;if(t=t.firstChild)do if(Os(t,e))return!0;while(t=t.nextSibling)}function Ys(){this.ownerDocument=this}function iM(t,e,n){t&&t._inc++;var r=n.namespaceURI;r===Ds.XMLNS&&(e._nsMap[n.prefix?n.localName:""]=n.value)}function vy(t,e,n,r){t&&t._inc++;var i=n.namespaceURI;i===Ds.XMLNS&&delete e._nsMap[n.prefix?n.localName:""]}function Lf(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var i=e.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function by(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Lf(t.ownerDocument,t),e}function oM(t){return t&&(t.nodeType===St.DOCUMENT_NODE||t.nodeType===St.DOCUMENT_FRAGMENT_NODE||t.nodeType===St.ELEMENT_NODE)}function aM(t){return t&&(Gr(t)||Cf(t)||pi(t)||t.nodeType===St.DOCUMENT_FRAGMENT_NODE||t.nodeType===St.COMMENT_NODE||t.nodeType===St.PROCESSING_INSTRUCTION_NODE)}function pi(t){return t&&t.nodeType===St.DOCUMENT_TYPE_NODE}function Gr(t){return t&&t.nodeType===St.ELEMENT_NODE}function Cf(t){return t&&t.nodeType===St.TEXT_NODE}function s0(t,e){var n=t.childNodes||[];if(Hr(n,Gr)||pi(e))return!1;var r=Hr(n,pi);return!(e&&r&&n.indexOf(r)>n.indexOf(e))}function c0(t,e){var n=t.childNodes||[];function r(o){return Gr(o)&&o!==e}if(Hr(n,r))return!1;var i=Hr(n,pi);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function sM(t,e,n){if(!oM(t))throw new zt(Hn,"Unexpected parent node type "+t.nodeType);if(n&&n.parentNode!==t)throw new zt(gy,"child not in parent");if(!aM(e)||pi(e)&&t.nodeType!==St.DOCUMENT_NODE)throw new zt(Hn,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function cM(t,e,n){var r=t.childNodes||[],i=e.childNodes||[];if(e.nodeType===St.DOCUMENT_FRAGMENT_NODE){var o=i.filter(Gr);if(o.length>1||Hr(i,Cf))throw new zt(Hn,"More than one element or text in fragment");if(o.length===1&&!s0(t,n))throw new zt(Hn,"Element in fragment can not be inserted before doctype")}if(Gr(e)&&!s0(t,n))throw new zt(Hn,"Only one element can be added and only after doctype");if(pi(e)){if(Hr(r,pi))throw new zt(Hn,"Only one doctype is allowed");var a=Hr(r,Gr);if(n&&r.indexOf(a)1||Hr(i,Cf))throw new zt(Hn,"More than one element or text in fragment");if(o.length===1&&!c0(t,n))throw new zt(Hn,"Element in fragment can not be inserted before doctype")}if(Gr(e)&&!c0(t,n))throw new zt(Hn,"Only one element can be added and only after doctype");if(pi(e)){let c=function(u){return pi(u)&&u!==n};var s=c;if(Hr(r,c))throw new zt(Hn,"Only one doctype is allowed");var a=Hr(r,Gr);if(n&&r.indexOf(a)0&&Os(n.documentElement,function(i){if(i!==n&&i.nodeType===Ir){var o=i.getAttribute("class");if(o){var a=t===o;if(!a){var s=r0(o);a=e.every(tM(s))}a&&r.push(i)}}}),r})},createElement:function(t){var e=new go;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new hi;var n=e.attributes=new vu;return n._ownerElement=e,e},createDocumentFragment:function(){var t=new Qu;return t.ownerDocument=this,t.childNodes=new hi,t},createTextNode:function(t){var e=new Af;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new Uf;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Wf;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new Vf;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new xu;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Xf;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new go,r=e.split(":"),i=n.attributes=new vu;return n.childNodes=new hi,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n,n},createAttributeNS:function(t,e){var n=new xu,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}};jn(Ys,St);function go(){this._nsMap={}}go.prototype={nodeType:Ir,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===fi?this.insertBefore(t,null):uM(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new ya(this,function(e){var n=[];return Os(e,function(r){r!==e&&r.nodeType==Ir&&(t==="*"||r.tagName==t)&&n.push(r)}),n})},getElementsByTagNameNS:function(t,e){return new ya(this,function(n){var r=[];return Os(n,function(i){i!==n&&i.nodeType===Ir&&(t==="*"||i.namespaceURI===t)&&(e==="*"||i.localName==e)&&r.push(i)}),r})}};Ys.prototype.getElementsByTagName=go.prototype.getElementsByTagName;Ys.prototype.getElementsByTagNameNS=go.prototype.getElementsByTagNameNS;jn(go,St);function xu(){}xu.prototype.nodeType=Ra;jn(xu,St);function Bs(){}Bs.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(gn[Hn])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){var r=this.data.substring(0,t),i=this.data.substring(t+e);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}};jn(Bs,St);function Af(){}Af.prototype={nodeName:"#text",nodeType:yu,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}};jn(Af,Bs);function Uf(){}Uf.prototype={nodeName:"#comment",nodeType:dy};jn(Uf,Bs);function Wf(){}Wf.prototype={nodeName:"#cdata-section",nodeType:uy};jn(Wf,Bs);function ku(){}ku.prototype.nodeType=py;jn(ku,St);function wy(){}wy.prototype.nodeType=rM;jn(wy,St);function Ty(){}Ty.prototype.nodeType=nM;jn(Ty,St);function Xf(){}Xf.prototype.nodeType=ly;jn(Xf,St);function Qu(){}Qu.prototype.nodeName="#document-fragment";Qu.prototype.nodeType=fi;jn(Qu,St);function Vf(){}Vf.prototype.nodeType=hy;jn(Vf,St);function Sy(){}Sy.prototype.serializeToString=function(t,e,n){return Dy.call(t,e,n)};St.prototype.toString=Dy;function Dy(t,e){var n=[],r=this.nodeType==9&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&i==null){var i=r.lookupPrefix(o);if(i==null)var a=[{namespace:o,prefix:null}]}return Go(this,n,t,e,a),n.join("")}function u0(t,e,n){var r=t.prefix||"",i=t.namespaceURI;if(!i||r==="xml"&&i===Ds.XML||i===Ds.XMLNS)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix===r)return a.namespace!==i}return!0}function Ch(t,e,n){t.push(" ",e,'="',n.replace(/[<>&"\t\n\r]/g,yy),'"')}function Go(t,e,n,r,i){if(i||(i=[]),r)if(t=r(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case Ir:var o=t.attributes,a=o.length,R=t.firstChild,s=t.tagName;n=Ds.isHTML(t.namespaceURI)||n;var c=s;if(!n&&!t.prefix&&t.namespaceURI){for(var u,l=0;l=0;h--){var d=i[h];if(d.prefix===""&&d.namespace===t.namespaceURI){u=d.namespace;break}}if(u!==t.namespaceURI)for(var h=i.length-1;h>=0;h--){var d=i[h];if(d.namespace===t.namespaceURI){d.prefix&&(c=d.prefix+":"+s);break}}}e.push("<",c);for(var f=0;f"),n&&/^script$/i.test(s))for(;R;)R.data?e.push(R.data):Go(R,e,n,r,i.slice()),R=R.nextSibling;else for(;R;)Go(R,e,n,r,i.slice()),R=R.nextSibling;e.push("")}else e.push("/>");return;case fy:case fi:for(var R=t.firstChild;R;)Go(R,e,n,r,i.slice()),R=R.nextSibling;return;case Ra:return Ch(e,t.name,t.value);case yu:return e.push(t.data.replace(/[<&>]/g,yy));case uy:return e.push("");case dy:return e.push("");case py:var m=t.publicId,v=t.systemId;if(e.push("");else if(v&&v!=".")e.push(" SYSTEM ",v,">");else{var x=t.internalSubset;x&&e.push(" [",x,"]"),e.push(">")}return;case hy:return e.push("");case ly:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Oy(t,e,n){var r;switch(e.nodeType){case Ir:r=e.cloneNode(!1),r.ownerDocument=t;case fi:break;case Ra:n=!0;break}if(r||(r=e.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,n)for(var i=e.firstChild;i;)r.appendChild(Oy(t,i,n)),i=i.nextSibling;return r}function Nd(t,e,n){var r=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];typeof o!="object"&&o!=r[i]&&(r[i]=o)}switch(e.childNodes&&(r.childNodes=new hi),r.ownerDocument=t,r.nodeType){case Ir:var a=e.attributes,s=r.attributes=new vu,c=a.length;s._ownerElement=r;for(var u=0;u",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),t.entityMap=t.HTML_ENTITIES})(Ey);var Yf={},_s=vi.NAMESPACE,Fd=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,l0=new RegExp("[\\-\\.0-9"+Fd.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),h0=new RegExp("^"+Fd.source+l0.source+"*(?::"+Fd.source+l0.source+"*)?$"),za=0,Di=1,Co=2,$a=3,Ao=4,Uo=5,ja=6,Cc=7;function va(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,va)}va.prototype=new Error;va.prototype.name=va.name;function Iy(){}Iy.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),Ny(e,e={}),lM(t,e,n,r,this.errorHandler),r.endDocument()}};function lM(t,e,n,r,i){function o(U){if(U>65535){U-=65536;var X=55296+(U>>10),V=56320+(U&1023);return String.fromCharCode(X,V)}else return String.fromCharCode(U)}function a(U){var X=U.slice(1,-1);return Object.hasOwnProperty.call(n,X)?n[X]:X.charAt(0)==="#"?o(parseInt(X.substr(1).replace("x","0x"))):(i.error("entity not found:"+U),U)}function s(U){if(U>g){var X=t.substring(g,U).replace(/&#?\w+;/g,a);d&&c(g),r.characters(X,0,U-g),g=U}}function c(U,X){for(;U>=l&&(X=h.exec(t));)u=X.index,l=u+X[0].length,d.lineNumber++;d.columnNumber=U-u+1}for(var u=0,l=0,h=/.*(?:\r\n?|\n)|.*$/g,d=r.locator,f=[{currentNSMap:e}],p={},g=0;;){try{var y=t.indexOf("<",g);if(y<0){if(!t.substr(g).match(/^\s*$/)){var R=r.doc,m=R.createTextNode(t.substr(g));R.appendChild(m),r.currentElement=m}return}switch(y>g&&s(y),t.charAt(y+1)){case"/":var q=t.indexOf(">",y+3),v=t.substring(y+2,q).replace(/[ \t\n\r]+$/g,""),x=f.pop();q<0?(v=t.substring(y+2).replace(/[\s<].*/,""),i.error("end tag name: "+v+" is not complete:"+x.tagName),q=y+1+v.length):v.match(/\sg?g=q:s(Math.max(y,g)+1)}}function d0(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function hM(t,e,n,r,i,o){function a(d,f,p){n.attributeNames.hasOwnProperty(d)&&o.fatalError("Attribute "+d+" redefined"),n.addValue(d,f.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),p)}for(var s,c,u=++e,l=za;;){var h=t.charAt(u);switch(h){case"=":if(l===Di)s=t.slice(e,u),l=$a;else if(l===Co)l=$a;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(l===$a||l===Di)if(l===Di&&(o.warning('attribute value must after "="'),s=t.slice(e,u)),e=u+1,u=t.indexOf(h,e),u>0)c=t.slice(e,u),a(s,c,e-1),l=Uo;else throw new Error("attribute value no end '"+h+"' match");else if(l==Ao)c=t.slice(e,u),a(s,c,e),o.warning('attribute "'+s+'" missed start quot('+h+")!!"),e=u+1,l=Uo;else throw new Error('attribute value must after "="');break;case"/":switch(l){case za:n.setTagName(t.slice(e,u));case Uo:case ja:case Cc:l=Cc,n.closed=!0;case Ao:case Di:break;case Co:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),l==za&&n.setTagName(t.slice(e,u)),u;case">":switch(l){case za:n.setTagName(t.slice(e,u));case Uo:case ja:case Cc:break;case Ao:case Di:c=t.slice(e,u),c.slice(-1)==="/"&&(n.closed=!0,c=c.slice(0,-1));case Co:l===Co&&(c=s),l==Ao?(o.warning('attribute "'+c+'" missed quot(")!'),a(s,c,e)):((!_s.isHTML(r[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),a(c,c,e));break;case $a:throw new Error("attribute value missed!!")}return u;case"\x80":h=" ";default:if(h<=" ")switch(l){case za:n.setTagName(t.slice(e,u)),l=ja;break;case Di:s=t.slice(e,u),l=Co;break;case Ao:var c=t.slice(e,u);o.warning('attribute "'+c+'" missed quot(")!!'),a(s,c,e);case Uo:l=ja;break}else switch(l){case Co:n.tagName,(!_s.isHTML(r[""])||!s.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),a(s,s,e),e=u,l=Di;break;case Uo:o.warning('attribute space is required"'+s+'"!!');case ja:l=Di,e=u;break;case $a:l=Ao,e=u;break;case Cc:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function f0(t,e,n){for(var r=t.tagName,i=null,h=t.length;h--;){var o=t[h],a=o.qName,s=o.value,d=a.indexOf(":");if(d>0)var c=o.prefix=a.slice(0,d),u=a.slice(d+1),l=c==="xmlns"&&u;else u=a,c=null,l=a==="xmlns"&&"";o.localName=u,l!==!1&&(i==null&&(i={},Ny(n,n={})),n[l]=i[l]=s,o.uri=_s.XMLNS,e.startPrefixMapping(l,s))}for(var h=t.length;h--;){o=t[h];var c=o.prefix;c&&(c==="xml"&&(o.uri=_s.XML),c!=="xmlns"&&(o.uri=n[c||""]))}var d=r.indexOf(":");d>0?(c=t.prefix=r.slice(0,d),u=t.localName=r.slice(d+1)):(c=null,u=t.localName=r);var f=t.uri=n[c||""];if(e.startElement(f,u,r,t),t.closed){if(e.endElement(f,u,r),i)for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&e.endPrefixMapping(c)}else return t.currentNSMap=n,t.localNSMap=i,!0}function dM(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("",e),a=t.substring(e+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return e+1}function fM(t,e,n,r){var i=r[n];return i==null&&(i=t.lastIndexOf(""),i",e+4);return o>e?(n.comment(t,e+4,o-e-4),o+3):(r.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var o=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,o-e-9),n.endCDATA(),o+3}var a=mM(t,e),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var c=a[1][0],u=!1,l=!1;s>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],l=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var h=a[s-1];return n.startDTD(c,u,l),n.endDTD(),h.index+h[0].length}}return-1}function gM(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function Fy(){this.attributeNames={}}Fy.prototype={setTagName:function(t){if(!h0.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!h0.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function mM(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);n=i.exec(t);)if(r.push(n),n[1])return r}Yf.XMLReader=Iy;Yf.ParseError=va;var RM=vi,yM=qr,p0=Ey,Py=Yf,vM=yM.DOMImplementation,g0=RM.NAMESPACE,bM=Py.ParseError,xM=Py.XMLReader;function My(t){return t.replace(/\r[\n\u0085]/g,` `).replace(/[\r\u0085\u2028]/g,` `)}function Ly(t){this.options=t||{locator:{}}}Ly.prototype.parseFromString=function(t,e){var n=this.options,r=new xM,i=n.domBuilder||new Zs,o=n.errorHandler,a=n.locator,s=n.xmlns||{},c=/\/x?html?$/.test(e),u=c?p0.HTML_ENTITIES:p0.XML_ENTITIES;a&&i.setDocumentLocator(a),r.errorHandler=wM(o,i,a),r.domBuilder=n.domBuilder||i,c&&(s[""]=g0.HTML),s.xml=s.xml||g0.XML;var l=n.normalizeLineEndings||My;return t&&typeof t=="string"?r.parse(l(t),s,u):r.errorHandler.error("invalid doc source"),i.doc};function wM(t,e,n){if(!t){if(e instanceof Zs)return e;t=e}var r={},i=t instanceof Function;n=n||{};function o(a){var s=t[a];!s&&i&&(s=t.length==2?function(c){t(a,c)}:t),r[a]=s&&function(c){s("[xmldom "+a+"] "+c+Pd(n))}||function(){}}return o("warning"),o("error"),o("fatalError"),r}function Zs(){this.cdata=!1}function Wo(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}Zs.prototype={startDocument:function(){this.doc=new vM().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.doc,o=i.createElementNS(t,n||e),a=r.length;Ac(this,o),this.currentElement=o,this.locator&&Wo(this.locator,o);for(var s=0;s=e+n||e?new java.lang.String(t,e,n)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){Zs.prototype[t]=function(){return null}});function Ac(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}Ku.__DOMHandler=Zs;Ku.normalizeLineEndings=My;Ku.DOMParser=Ly;var Cy=qr;Zu.DOMImplementation=Cy.DOMImplementation;Zu.XMLSerializer=Cy.XMLSerializer;Zu.DOMParser=Ku.DOMParser;var TM=Zu,SM=qr;function DM(t){var e=null,n=new TM.DOMParser({errorHandler:function(i,o){e={level:i,message:o}}}),r=n.parseFromString(t);if(e===null)return r;throw new Error(e.level+": "+e.message)}Ff.parseFromString=DM;Ff.Node=SM.Node;var Ah=mn,R0=Kt.exports,Ay=Ff,Uy=Xs,OM=Uy.Element;oy.readString=_M;var y0=Ay.Node;function _M(t,e){e=e||{};try{var n=Ay.parseFromString(t,"text/xml")}catch(a){return Ah.reject(a)}if(n.documentElement.tagName==="parsererror")return Ah.resolve(new Error(n.documentElement.textContent));function r(a){switch(a.nodeType){case y0.ELEMENT_NODE:return i(a);case y0.TEXT_NODE:return Uy.text(a.nodeValue)}}function i(a){var s=o(a),c=[];R0.forEach(a.childNodes,function(l){var h=r(l);h&&c.push(h)});var u={};return R0.forEach(a.attributes,function(l){u[o(l)]=l.value}),new OM(s,u,c)}function o(a){if(a.namespaceURI){var s=e[a.namespaceURI],c;return s?c=s+":":c="{"+a.namespaceURI+"}",c+a.localName}else return a.localName}return Ah.resolve(r(n.documentElement))}var Wy={},cs={},Yn={};(function(){var t,e,n,r,i,o,a,s=[].slice,c={}.hasOwnProperty;t=function(){var u,l,h,d,f,p;if(p=arguments[0],f=2<=arguments.length?s.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(u=0,h=f.length;u":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},t}()}).call(qe);(function(){var t,e,n,r,i,o,a=function(c,u){for(var l in u)s.call(u,l)&&(c[l]=u[l]);function h(){this.constructor=c}return h.prototype=u.prototype,c.prototype=new h,c.__super__=u.prototype,c},s={}.hasOwnProperty;o=Yn,i=o.isObject,r=o.isFunction,n=o.getValue,e=Bn.exports,t=Bf.exports,ks.exports=function(c){a(u,c);function u(l,h,d){if(u.__super__.constructor.call(this,l),h==null)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(h),this.attributes={},d!=null&&this.attribute(d),l.isDocument&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this)}return u.prototype.clone=function(){var l,h,d,f;d=Object.create(this),d.isRoot&&(d.documentObject=null),d.attributes={},f=this.attributes;for(h in f)!s.call(f,h)||(l=f[h],d.attributes[h]=l.clone());return d.children=[],this.children.forEach(function(p){var g;return g=p.clone(),g.parent=d,d.children.push(g)}),d},u.prototype.attribute=function(l,h){var d,f;if(l!=null&&(l=n(l)),i(l))for(d in l)!s.call(l,d)||(f=l[d],this.attribute(d,f));else r(h)&&(h=h.apply()),(!this.options.skipNullAttributes||h!=null)&&(this.attributes[l]=new t(this,l,h));return this},u.prototype.removeAttribute=function(l){var h,d,f;if(l==null)throw new Error("Missing attribute name. "+this.debugInfo());if(l=n(l),Array.isArray(l))for(d=0,f=l.length;d0&&this.parent.children[y-1].isDummy;)y=y-1;if(y<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[y-1]},g.prototype.next=function(){var y;for(y=this.parent.children.indexOf(this);y":(m=this.parent)!=null&&m.name?"node: <"+y+">, parent: <"+this.parent.name+">":"node: <"+y+">"},g.prototype.ele=function(y,R,m){return this.element(y,R,m)},g.prototype.nod=function(y,R,m){return this.node(y,R,m)},g.prototype.txt=function(y){return this.text(y)},g.prototype.dat=function(y){return this.cdata(y)},g.prototype.com=function(y){return this.comment(y)},g.prototype.ins=function(y,R){return this.instruction(y,R)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(y,R,m){return this.declaration(y,R,m)},g.prototype.dtd=function(y,R){return this.doctype(y,R)},g.prototype.e=function(y,R,m){return this.element(y,R,m)},g.prototype.n=function(y,R,m){return this.node(y,R,m)},g.prototype.t=function(y){return this.text(y)},g.prototype.d=function(y){return this.cdata(y)},g.prototype.c=function(y){return this.comment(y)},g.prototype.r=function(y){return this.raw(y)},g.prototype.i=function(y,R){return this.instruction(y,R)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(y){return this.importDocument(y)},g}()}).call(qe);var Zf={exports:{}};(function(){var t=function(n,r){return function(){return n.apply(r,arguments)}},e={}.hasOwnProperty;Zf.exports=function(){function n(r){this.assertLegalChar=t(this.assertLegalChar,this);var i,o,a;r||(r={}),this.noDoubleEncoding=r.noDoubleEncoding,o=r.stringify||{};for(i in o)!e.call(o,i)||(a=o[i],this[i]=a)}return n.prototype.eleName=function(r){return r=""+r||"",this.assertLegalChar(r)},n.prototype.eleText=function(r){return r=""+r||"",this.assertLegalChar(this.elEscape(r))},n.prototype.cdata=function(r){return r=""+r||"",r=r.replace("]]>","]]]]>"),this.assertLegalChar(r)},n.prototype.comment=function(r){if(r=""+r||"",r.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+r);return this.assertLegalChar(r)},n.prototype.raw=function(r){return""+r||""},n.prototype.attName=function(r){return r=""+r||""},n.prototype.attValue=function(r){return r=""+r||"",this.attEscape(r)},n.prototype.insTarget=function(r){return""+r||""},n.prototype.insValue=function(r){if(r=""+r||"",r.match(/\?>/))throw new Error("Invalid processing instruction value: "+r);return r},n.prototype.xmlVersion=function(r){if(r=""+r||"",!r.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+r);return r},n.prototype.xmlEncoding=function(r){if(r=""+r||"",!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+r);return r},n.prototype.xmlStandalone=function(r){return r?"yes":"no"},n.prototype.dtdPubID=function(r){return""+r||""},n.prototype.dtdSysID=function(r){return""+r||""},n.prototype.dtdElementValue=function(r){return""+r||""},n.prototype.dtdAttType=function(r){return""+r||""},n.prototype.dtdAttDefault=function(r){return r!=null?""+r||"":r},n.prototype.dtdEntityValue=function(r){return""+r||""},n.prototype.dtdNData=function(r){return""+r||""},n.prototype.convertAttKey="@",n.prototype.convertPIKey="?",n.prototype.convertTextKey="#text",n.prototype.convertCDataKey="#cdata",n.prototype.convertCommentKey="#comment",n.prototype.convertRawKey="#raw",n.prototype.assertLegalChar=function(r){var i;if(i=r.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),i)throw new Error("Invalid character in string: "+r+" at index "+i.index);return r},n.prototype.elEscape=function(r){var i;return i=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(i,"&").replace(//g,">").replace(/\r/g," ")},n.prototype.attEscape=function(r){var i;return i=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(i,"&").replace(/0?new Array(r).join(this.indent):""):""},e}()}).call(qe);(function(){var t,e,n,r,i,o,a,s,c,u,l,h,d,f,p=function(y,R){for(var m in R)g.call(R,m)&&(y[m]=R[m]);function v(){this.constructor=y}return v.prototype=R.prototype,y.prototype=new v,y.__super__=R.prototype,y},g={}.hasOwnProperty;a=Hs.exports,s=Gs.exports,t=Qs.exports,e=Ks.exports,u=ks.exports,h=qs.exports,d=ec.exports,l=tc.exports,c=Hu.exports,n=Js.exports,r=$s.exports,i=zs.exports,o=js.exports,f=kf.exports,Gu.exports=function(y){p(R,y);function R(m){R.__super__.constructor.call(this,m)}return R.prototype.document=function(m){var v,x,O,E,N;for(this.textispresent=!1,E="",N=m.children,x=0,O=N.length;x"+this.newline},R.prototype.comment=function(m,v){return this.space(v)+""+this.newline},R.prototype.declaration=function(m,v){var x;return x=this.space(v),x+='",x+=this.newline,x},R.prototype.docType=function(m,v){var x,O,E,N,M;if(v||(v=0),N=this.space(v),N+="0){for(N+=" [",N+=this.newline,M=m.children,O=0,E=M.length;O",N+=this.newline,N},R.prototype.element=function(m,v){var x,O,E,N,M,_,B,q,T,I,b,P,U;v||(v=0),U=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),P=this.space(v),q="",q+=P+"<"+m.name,T=m.attributes;for(B in T)!g.call(T,B)||(x=T[B],q+=this.attribute(x));if(m.children.length===0||m.children.every(function(X){return X.value===""}))this.allowEmpty?q+=">"+this.newline:q+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)q+=">",q+=m.children[0].value,q+=""+this.newline;else{if(this.dontprettytextnodes){for(I=m.children,E=0,M=I.length;E"+this.newline,b=m.children,N=0,_=b.length;N<_;N++)O=b[N],q+=function(){switch(!1){case!(O instanceof t):return this.cdata(O,v+1);case!(O instanceof e):return this.comment(O,v+1);case!(O instanceof u):return this.element(O,v+1);case!(O instanceof h):return this.raw(O,v+1);case!(O instanceof d):return this.text(O,v+1);case!(O instanceof l):return this.processingInstruction(O,v+1);case!(O instanceof c):return"";default:throw new Error("Unknown XML node type: "+O.constructor.name)}}.call(this);U&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),q+=P+""+this.newline}return q},R.prototype.processingInstruction=function(m,v){var x;return x=this.space(v)+""+this.newline,x},R.prototype.raw=function(m,v){return this.space(v)+m.value+this.newline},R.prototype.text=function(m,v){return this.space(v)+m.value+this.newline},R.prototype.dtdAttList=function(m,v){var x;return x=this.space(v)+""+this.newline,x},R.prototype.dtdElement=function(m,v){return this.space(v)+""+this.newline},R.prototype.dtdEntity=function(m,v){var x;return x=this.space(v)+""+this.newline,x},R.prototype.dtdNotation=function(m,v){var x;return x=this.space(v)+""+this.newline,x},R.prototype.openNode=function(m,v){var x,O,E,N;if(v||(v=0),m instanceof u){E=this.space(v)+"<"+m.name,N=m.attributes;for(O in N)!g.call(N,O)||(x=N[O],E+=this.attribute(x));return E+=(m.children?">":"/>")+this.newline,E}else return E=this.space(v)+"")+this.newline,E},R.prototype.closeNode=function(m,v){switch(v||(v=0),!1){case!(m instanceof u):return this.space(v)+""+this.newline;case!(m instanceof s):return this.space(v)+"]>"+this.newline}},R}(f)}).call(qe);(function(){var t,e,n,r,i=function(a,s){for(var c in s)o.call(s,c)&&(a[c]=s[c]);function u(){this.constructor=a}return u.prototype=s.prototype,a.prototype=new u,a.__super__=s.prototype,a},o={}.hasOwnProperty;r=Yn.isPlainObject,t=Bn.exports,n=Zf.exports,e=Gu.exports,Xy.exports=function(a){i(s,a);function s(c){s.__super__.constructor.call(this,null),this.name="?xml",c||(c={}),c.writer||(c.writer=new e),this.options=c,this.stringify=new n(c),this.isDocument=!0}return s.prototype.end=function(c){var u;return c?r(c)&&(u=c,c=this.options.writer.set(u)):c=this.options.writer,c.document(this)},s.prototype.toString=function(c){return this.options.writer.set(c).document(this)},s}(t)}).call(qe);var Vy={exports:{}};(function(){var t,e,n,r,i,o,a,s,c,u,l,h,d,f,p,g,y,R,m,v,x={}.hasOwnProperty;v=Yn,R=v.isObject,y=v.isFunction,m=v.isPlainObject,g=v.getValue,u=ks.exports,e=Qs.exports,n=Ks.exports,h=qs.exports,p=ec.exports,l=tc.exports,s=Hs.exports,c=Gs.exports,r=Js.exports,o=zs.exports,i=$s.exports,a=js.exports,t=Bf.exports,f=Zf.exports,d=Gu.exports,Vy.exports=function(){function O(E,N,M){var _;this.name="?xml",E||(E={}),E.writer?m(E.writer)&&(_=E.writer,E.writer=new d(_)):E.writer=new d(E),this.options=E,this.writer=E.writer,this.stringify=new f(E),this.onDataCallback=N||function(){},this.onEndCallback=M||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return O.prototype.node=function(E,N,M){var _,B;if(E==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(E));return this.openCurrent(),E=g(E),N===null&&M==null&&(_=[{},null],N=_[0],M=_[1]),N==null&&(N={}),N=g(N),R(N)||(B=[N,M],M=B[0],N=B[1]),this.currentNode=new u(this,E,N),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,M!=null&&this.text(M),this},O.prototype.element=function(E,N,M){return this.currentNode&&this.currentNode instanceof c?this.dtdElement.apply(this,arguments):this.node(E,N,M)},O.prototype.attribute=function(E,N){var M,_;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(E));if(E!=null&&(E=g(E)),R(E))for(M in E)!x.call(E,M)||(_=E[M],this.attribute(M,_));else y(N)&&(N=N.apply()),(!this.options.skipNullAttributes||N!=null)&&(this.currentNode.attributes[E]=new t(this,E,N));return this},O.prototype.text=function(E){var N;return this.openCurrent(),N=new p(this,E),this.onData(this.writer.text(N,this.currentLevel+1),this.currentLevel+1),this},O.prototype.cdata=function(E){var N;return this.openCurrent(),N=new e(this,E),this.onData(this.writer.cdata(N,this.currentLevel+1),this.currentLevel+1),this},O.prototype.comment=function(E){var N;return this.openCurrent(),N=new n(this,E),this.onData(this.writer.comment(N,this.currentLevel+1),this.currentLevel+1),this},O.prototype.raw=function(E){var N;return this.openCurrent(),N=new h(this,E),this.onData(this.writer.raw(N,this.currentLevel+1),this.currentLevel+1),this},O.prototype.instruction=function(E,N){var M,_,B,q,T;if(this.openCurrent(),E!=null&&(E=g(E)),N!=null&&(N=g(N)),Array.isArray(E))for(M=0,q=E.length;M=0;)this.up();return this.onEnd()},O.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},O.prototype.openNode=function(E){if(!E.isOpen)return!this.root&&this.currentLevel===0&&E instanceof u&&(this.root=E),this.onData(this.writer.openNode(E,this.currentLevel),this.currentLevel),E.isOpen=!0},O.prototype.closeNode=function(E){if(!E.isClosed)return this.onData(this.writer.closeNode(E,this.currentLevel),this.currentLevel),E.isClosed=!0},O.prototype.onData=function(E,N){return this.documentStarted=!0,this.onDataCallback(E,N+1)},O.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},O.prototype.debugInfo=function(E){return E==null?"":"node: <"+E+">"},O.prototype.ele=function(){return this.element.apply(this,arguments)},O.prototype.nod=function(E,N,M){return this.node(E,N,M)},O.prototype.txt=function(E){return this.text(E)},O.prototype.dat=function(E){return this.cdata(E)},O.prototype.com=function(E){return this.comment(E)},O.prototype.ins=function(E,N){return this.instruction(E,N)},O.prototype.dec=function(E,N,M){return this.declaration(E,N,M)},O.prototype.dtd=function(E,N,M){return this.doctype(E,N,M)},O.prototype.e=function(E,N,M){return this.element(E,N,M)},O.prototype.n=function(E,N,M){return this.node(E,N,M)},O.prototype.t=function(E){return this.text(E)},O.prototype.d=function(E){return this.cdata(E)},O.prototype.c=function(E){return this.comment(E)},O.prototype.r=function(E){return this.raw(E)},O.prototype.i=function(E,N){return this.instruction(E,N)},O.prototype.att=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},O.prototype.a=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},O.prototype.ent=function(E,N){return this.entity(E,N)},O.prototype.pent=function(E,N){return this.pEntity(E,N)},O.prototype.not=function(E,N){return this.notation(E,N)},O}()}).call(qe);var Yy={exports:{}};(function(){var t,e,n,r,i,o,a,s,c,u,l,h,d,f,p=function(y,R){for(var m in R)g.call(R,m)&&(y[m]=R[m]);function v(){this.constructor=y}return v.prototype=R.prototype,y.prototype=new v,y.__super__=R.prototype,y},g={}.hasOwnProperty;a=Hs.exports,s=Gs.exports,t=Qs.exports,e=Ks.exports,u=ks.exports,h=qs.exports,d=ec.exports,l=tc.exports,c=Hu.exports,n=Js.exports,r=$s.exports,i=zs.exports,o=js.exports,f=kf.exports,Yy.exports=function(y){p(R,y);function R(m,v){R.__super__.constructor.call(this,v),this.stream=m}return R.prototype.document=function(m){var v,x,O,E,N,M,_,B;for(M=m.children,x=0,E=M.length;x"+this.endline(m))},R.prototype.comment=function(m,v){return this.stream.write(this.space(v)+""+this.endline(m))},R.prototype.declaration=function(m,v){return this.stream.write(this.space(v)),this.stream.write('"),this.stream.write(this.endline(m))},R.prototype.docType=function(m,v){var x,O,E,N;if(v||(v=0),this.stream.write(this.space(v)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(m)),N=m.children,O=0,E=N.length;O"),this.stream.write(this.endline(m))},R.prototype.element=function(m,v){var x,O,E,N,M,_,B,q;v||(v=0),q=this.space(v),this.stream.write(q+"<"+m.name),_=m.attributes;for(M in _)!g.call(_,M)||(x=_[M],this.attribute(x));if(m.children.length===0||m.children.every(function(T){return T.value===""}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),B=m.children,E=0,N=B.length;E")}return this.stream.write(this.endline(m))},R.prototype.processingInstruction=function(m,v){return this.stream.write(this.space(v)+""+this.endline(m))},R.prototype.raw=function(m,v){return this.stream.write(this.space(v)+m.value+this.endline(m))},R.prototype.text=function(m,v){return this.stream.write(this.space(v)+m.value+this.endline(m))},R.prototype.dtdAttList=function(m,v){return this.stream.write(this.space(v)+""+this.endline(m))},R.prototype.dtdElement=function(m,v){return this.stream.write(this.space(v)+""+this.endline(m))},R.prototype.dtdEntity=function(m,v){return this.stream.write(this.space(v)+""+this.endline(m))},R.prototype.dtdNotation=function(m,v){return this.stream.write(this.space(v)+""+this.endline(m))},R.prototype.endline=function(m){return m.isLastRootNode?"":this.newline},R}(f)}).call(qe);(function(){var t,e,n,r,i,o,a;a=Yn,i=a.assign,o=a.isFunction,t=Xy.exports,e=Vy.exports,r=Gu.exports,n=Yy.exports,cs.create=function(s,c,u,l){var h,d;if(s==null)throw new Error("Root element needs a name.");return l=i({},c,u,l),h=new t(l),d=h.element(s),l.headless||(h.declaration(l),(l.pubID!=null||l.sysID!=null)&&h.doctype(l)),d},cs.begin=function(s,c,u){var l;return o(s)&&(l=[s,c],c=l[0],u=l[1],s={}),c?new e(s,c,u):new t(s)},cs.stringWriter=function(s){return new r(s)},cs.streamWriter=function(s,c){return new n(s,c)}}).call(qe);var v0=Kt.exports,EM=cs;Wy.writeString=IM;function IM(t,e){var n=v0.invert(e),r={element:o,text:NM};function i(c,u){return r[u.type](c,u)}function o(c,u){var l=c.element(a(u.name),u.attributes);u.children.forEach(function(h){i(l,h)})}function a(c){var u=/^\{(.*)\}(.*)$/.exec(c);if(u){var l=n[u[1]];return l+(l===""?"":":")+u[2]}else return c}function s(c){var u=EM.create(a(c.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return v0.forEach(e,function(l,h){var d="xmlns"+(h===""?"":":"+h);u.attribute(d,l)}),c.children.forEach(function(l){i(u,l)}),u.end()}return s(t)}function NM(t,e){t.text(e.value)}var Qf=Xs;bo.Element=Qf.Element;bo.element=Qf.element;bo.text=Qf.text;bo.readString=oy.readString;bo.writeString=Wy.writeString;var FM=Kt.exports,PM=mn,MM=bo;Nf.read=By;Nf.readXmlFromZipFile=CM;var LM={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word"};function By(t){return MM.readString(t,LM).then(function(e){return Zy(e)[0]})}function CM(t,e){return t.exists(e)?t.read(e,"utf-8").then(AM).then(By):PM.resolve(null)}function AM(t){return t.replace(/^\uFEFF/g,"")}function Zy(t){return t.type==="element"?t.name==="mc:AlternateContent"?t.first("mc:Fallback").children:(t.children=FM.flatten(t.children.map(Zy,!0)),[t]):[t]}var Kf={},Ai={},Hf={};Object.defineProperty(Hf,"__esModule",{value:!0});var UM=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];Hf.default=UM;var WM=qe&&qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.hex=Ai.dec=Ai.codePoint=void 0;var XM=WM(Hf),ky={},VM=String.fromCodePoint?String.fromCodePoint:kM;for(var Uh=0,b0=XM.default;Uh0&&(j=r.concat(j),r=[]),Sn.map(d(z),l(j),function(ge,D){return new Gt.Paragraph(D,ge)}).insertExtra()},"w:r":function(Q){return Sn.map(p(Q.firstOrEmpty("w:rPr")),l(Q.children),function(z,H){var j=N();return j!==null&&(H=[new Gt.Hyperlink(H,j)]),new Gt.Run(H,z)})},"w:fldChar":E,"w:instrText":_,"w:t":function(Q){return pr(new Gt.Text(Q.text()))},"w:tab":function(Q){return pr(new Gt.Tab)},"w:noBreakHyphen":function(){return pr(new Gt.Text("\u2011"))},"w:softHyphen":function(Q){return pr(new Gt.Text("\xAD"))},"w:sym":B,"w:hyperlink":function(Q){var z=Q.attributes["r:id"],H=Q.attributes["w:anchor"];return l(Q.children).map(function(j){function ge(ie){var L=Q.attributes["w:tgtFrame"]||null;return new Gt.Hyperlink(j,br.extend({targetFrame:L},ie))}if(z){var D=i.findTargetByRelationshipId(z);return H&&(D=T0.replaceFragment(D,H)),ge({href:D})}else return H?ge({anchor:H}):j})},"w:tbl":P,"w:tr":X,"w:tc":V,"w:footnoteReference":q("footnote"),"w:endnoteReference":q("endnote"),"w:commentReference":T,"w:br":function(Q){var z=Q.attributes["w:type"];return z==null||z==="textWrapping"?pr(Gt.lineBreak):z==="page"?pr(Gt.pageBreak):z==="column"?pr(Gt.columnBreak):qa([si("Unsupported break type: "+z)])},"w:bookmarkStart":function(Q){var z=Q.attributes["w:name"];return z==="_GoBack"?es():pr(new Gt.BookmarkStart({name:z}))},"mc:AlternateContent":function(Q){return I(Q.first("mc:Fallback"))},"w:sdt":function(Q){return l(Q.firstOrEmpty("w:sdtContent").children)},"w:ins":I,"w:object":I,"w:smartTag":I,"w:drawing":I,"w:pict":function(Q){return I(Q).toExtra()},"v:roundrect":I,"v:shape":I,"v:textbox":I,"w:txbxContent":I,"wp:inline":Z,"wp:anchor":Z,"v:imagedata":ue,"v:group":I,"v:rect":I};return{readXmlElement:h,readXmlElements:l};function P(Q){var z=U(Q.firstOrEmpty("w:tblPr"));return l(Q.children).flatMap(re).flatMap(function(H){return z.map(function(j){return Gt.Table(H,j)})})}function U(Q){return v(Q).map(function(z){return{styleId:z.styleId,styleName:z.name}})}function X(Q){var z=Q.firstOrEmpty("w:trPr"),H=!!z.first("w:tblHeader");return l(Q.children).map(function(j){return Gt.TableRow(j,{isHeader:H})})}function V(Q){return l(Q.children).map(function(z){var H=Q.firstOrEmpty("w:tcPr"),j=H.firstOrEmpty("w:gridSpan").attributes["w:val"],ge=j?parseInt(j,10):1,D=Gt.TableCell(z,{colSpan:ge});return D._vMerge=k(H),D})}function k(Q){var z=Q.first("w:vMerge");if(z){var H=z.attributes["w:val"];return H==="continue"||!H}else return null}function re(Q){var z=br.any(Q,function(ge){return ge.type!==Gt.types.tableRow});if(z)return Uc(Q,[si("unexpected non-row element in table, cell merging may be incorrect")]);var H=br.any(Q,function(ge){return br.any(ge.children,function(D){return D.type!==Gt.types.tableCell})});if(H)return Uc(Q,[si("unexpected non-cell element in table row, cell merging may be incorrect")]);var j={};return Q.forEach(function(ge){var D=0;ge.children.forEach(function(ie){ie._vMerge&&j[D]?j[D].rowSpan++:(j[D]=ie,ie._vMerge=!1),D+=ie.colSpan})}),Q.forEach(function(ge){ge.children=ge.children.filter(function(D){return!D._vMerge}),ge.children.forEach(function(D){delete D._vMerge})}),pr(Q)}function Z(Q){var z=Q.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return D0(z.map(C.bind(null,Q)))}function C(Q,z){var H=Q.first("wp:docPr").attributes,j=ne(H.descr)?H.title:H.descr,ge=oe(z);return ge===null?qa([si("Could not find image file for a:blip element")]):W(ge,j)}function ne(Q){return Q==null||/^\s*$/.test(Q)}function oe(Q){var z=Q.attributes["r:embed"],H=Q.attributes["r:link"];if(z)return ce(z);if(H){var j=i.findTargetByRelationshipId(H);return{path:j,read:s.read.bind(s,j)}}else return null}function ue(Q){var z=Q.attributes["r:id"];return z?W(ce(z),Q.attributes["o:title"]):qa([si("A v:imagedata element without a relationship ID was ignored")])}function ce(Q){var z=T0.uriToZipEntryName("word",i.findTargetByRelationshipId(Q));return{path:z,read:a.read.bind(a,z)}}function W(Q,z){var H=o.findContentType(Q.path),j=Gt.Image({readImage:Q.read,altText:z,contentType:H}),ge=GM[H]?[]:si("Image of type "+H+" is unlikely to display in web browsers");return Uc(j,ge)}function A(Q,z){return si(Q+" style with ID "+z+" was referenced but not defined in the document")}}function Ky(t,e,n){var r=e.firstOrEmpty("w:ilvl").attributes["w:val"],i=e.firstOrEmpty("w:numId").attributes["w:val"];if(r!==void 0&&i!==void 0)return n.findLevel(i,r);if(t!=null){var o=n.findLevelByParagraphStyleId(t);if(o!=null)return o}return null}var GM={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},JM={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function qa(t){return new Sn(null,null,t)}function es(){return new Sn(null)}function pr(t){return new Sn(t)}function Uc(t,e){return new Sn(t,null,e)}function Sn(t,e,n){this.value=t||[],this.extra=e||[],this._result=new Qy({element:this.value,extra:e},n),this.messages=this._result.messages}Sn.prototype.toExtra=function(){return new Sn(null,Ju(this.extra,this.value),this.messages)};Sn.prototype.insertExtra=function(){var t=this.extra;return t&&t.length?new Sn(Ju(this.value,t),null,this.messages):this};Sn.prototype.map=function(t){var e=this._result.map(function(n){return t(n.element)});return new Sn(e.value,this.extra,e.messages)};Sn.prototype.flatMap=function(t){var e=this._result.flatMap(function(n){return t(n.element)._result});return new Sn(e.value.element,Ju(this.extra,e.value.extra),e.messages)};Sn.map=function(t,e,n){return new Sn(n(t.value,e.value),Ju(t.extra,e.extra),t.messages.concat(e.messages))};function D0(t){var e=Qy.combine(br.pluck(t,"_result"));return new Sn(br.flatten(br.pluck(e.value,"element")),br.filter(br.flatten(br.pluck(e.value,"extra")),zM),e.messages)}function Ju(t,e){return br.flatten([t,e])}function zM(t){return t}var Hy={};Hy.DocumentXmlReader=qM;var $M=ct,jM=hr.Result;function qM(t){var e=t.bodyReader;function n(r){var i=r.first("w:body");if(i==null)throw new Error("Could not find the body element: are you sure this is a docx file?");var o=e.readXmlElements(i.children).map(function(a){return new $M.Document(a,{notes:t.notes,comments:t.comments})});return new jM(o.value,o.messages)}return{convertXmlToDocument:n}}var zu={};zu.readRelationships=eL;zu.defaultValue=new zf([]);zu.Relationships=zf;function eL(t){var e=[];return t.children.forEach(function(n){if(n.name==="relationships:Relationship"){var r={relationshipId:n.attributes.Id,target:n.attributes.Target,type:n.attributes.Type};e.push(r)}}),new zf(e)}function zf(t){var e={};t.forEach(function(r){e[r.relationshipId]=r.target});var n={};return t.forEach(function(r){n[r.type]||(n[r.type]=[]),n[r.type].push(r.target)}),{findTargetByRelationshipId:function(r){return e[r]},findTargetsByType:function(r){return n[r]||[]}}}var $f={};$f.readContentTypesFromXml=nL;var tL={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};$f.defaultContentTypes=Gy({},{});function nL(t){var e={},n={};return t.children.forEach(function(r){if(r.name==="content-types:Default"&&(e[r.attributes.Extension]=r.attributes.ContentType),r.name==="content-types:Override"){var i=r.attributes.PartName;i.charAt(0)==="/"&&(i=i.substring(1)),n[i]=r.attributes.ContentType}}),Gy(n,e)}function Gy(t,e){return{findContentType:function(n){var r=t[n];if(r)return r;var i=n.split("."),o=i[i.length-1];if(e.hasOwnProperty(o))return e[o];var a=tL[o.toLowerCase()];return a?"image/"+a:null}}}var $u={},Wc=Kt.exports;$u.readNumberingXml=rL;$u.Numbering=jf;$u.defaultNumbering=new jf({},{});function jf(t,e,n){var r=Wc.flatten(Wc.values(e).map(function(s){return Wc.values(s.levels)})),i=Wc.indexBy(r.filter(function(s){return s.paragraphStyleId!=null}),"paragraphStyleId");function o(s,c){var u=t[s];if(u){var l=e[u.abstractNumId];if(l){if(l.numStyleLink==null)return e[u.abstractNumId].levels[c];var h=n.findNumberingStyleById(l.numStyleLink);return o(h.numId,c)}else return null}else return null}function a(s){return i[s]||null}return{findLevel:o,findLevelByParagraphStyleId:a}}function rL(t,e){if(!e||!e.styles)throw new Error("styles is missing");var n=iL(t),r=aL(t);return new jf(r,n,e.styles)}function iL(t){var e={};return t.getElementsByTagName("w:abstractNum").forEach(function(n){var r=n.attributes["w:abstractNumId"];e[r]=oL(n)}),e}function oL(t){var e={};t.getElementsByTagName("w:lvl").forEach(function(r){var i=r.attributes["w:ilvl"],o=r.firstOrEmpty("w:numFmt").attributes["w:val"],a=r.firstOrEmpty("w:pStyle").attributes["w:val"];e[i]={isOrdered:o!=="bullet",level:i,paragraphStyleId:a}});var n=t.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:e,numStyleLink:n}}function aL(t){var e={};return t.getElementsByTagName("w:num").forEach(function(n){var r=n.attributes["w:numId"],i=n.first("w:abstractNumId").attributes["w:val"];e[r]={abstractNumId:i}}),e}var ju={};ju.readStylesXml=sL;ju.Styles=Es;ju.defaultStyles=new Es({},{});function Es(t,e,n,r){return{findParagraphStyleById:function(i){return t[i]},findCharacterStyleById:function(i){return e[i]},findTableStyleById:function(i){return n[i]},findNumberingStyleById:function(i){return r[i]}}}Es.EMPTY=new Es({},{},{},{});function sL(t){var e={},n={},r={},i={},o={paragraph:e,character:n,table:r};return t.getElementsByTagName("w:style").forEach(function(a){var s=cL(a);if(s.type==="numbering")i[s.styleId]=lL(a);else{var c=o[s.type];c&&(c[s.styleId]=s)}}),new Es(e,n,r,i)}function cL(t){var e=t.attributes["w:type"],n=t.attributes["w:styleId"],r=uL(t);return{type:e,styleId:n,name:r}}function uL(t){var e=t.first("w:name");return e?e.attributes["w:val"]:null}function lL(t){var e=t.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{numId:e}}var qf={},hL=ct,dL=hr.Result;qf.createFootnotesReader=Jy.bind(qe,"footnote");qf.createEndnotesReader=Jy.bind(qe,"endnote");function Jy(t,e){function n(o){return dL.combine(o.getElementsByTagName("w:"+t).filter(r).map(i))}function r(o){var a=o.attributes["w:type"];return a!=="continuationSeparator"&&a!=="separator"}function i(o){var a=o.attributes["w:id"];return e.readXmlElements(o.children).map(function(s){return hL.Note({noteType:t,noteId:a,body:s})})}return n}var zy={},fL=ct,pL=hr.Result;function gL(t){function e(r){return pL.combine(r.getElementsByTagName("w:comment").map(n))}function n(r){var i=r.attributes["w:id"];function o(a){return(r.attributes[a]||"").trim()||null}return t.readXmlElements(r.children).map(function(a){return fL.comment({commentId:i,body:a,authorName:o("w:author"),authorInitials:o("w:initials")})})}return e}zy.createCommentsReader=gL;var $y={},mL=mn;$y.Files=RL;function RL(){function t(e){return mL.reject(new Error("could not open external image: '"+e+`' cannot open linked files from a web browser`))}return{read:t}}Sf.read=TL;Sf._findPartPaths=qy;var yL=mn,vL=ct,Xh=hr.Result,wu=Ws,jy=Nf.readXmlFromZipFile,bL=Kf.createBodyReader,xL=Hy.DocumentXmlReader,ba=zu,O0=$f,_0=$u,E0=ju,I0=qf,wL=zy,N0=$y.Files;function TL(t,e){return e=e||{},yL.props({contentTypes:DL(t),partPaths:qy(t),docxFile:t,files:e.path?N0.relativeToFile(e.path):new N0(null)}).also(function(n){return{styles:_L(t,n.partPaths.styles)}}).also(function(n){return{numbering:OL(t,n.partPaths.numbering,n.styles)}}).also(function(n){return{footnotes:Xc(n.partPaths.footnotes,n,function(r,i){return i?I0.createFootnotesReader(r)(i):new Xh([])}),endnotes:Xc(n.partPaths.endnotes,n,function(r,i){return i?I0.createEndnotesReader(r)(i):new Xh([])}),comments:Xc(n.partPaths.comments,n,function(r,i){return i?wL.createCommentsReader(r)(i):new Xh([])})}}).also(function(n){return{notes:n.footnotes.flatMap(function(r){return n.endnotes.map(function(i){return new vL.Notes(r.concat(i))})})}}).then(function(n){return Xc(n.partPaths.mainDocument,n,function(r,i){return n.notes.flatMap(function(o){return n.comments.flatMap(function(a){var s=new xL({bodyReader:r,notes:o,comments:a});return s.convertXmlToDocument(i)})})})})}function qy(t){return EL(t).then(function(e){var n=F0({docxFile:t,relationships:e,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!t.exists(n))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return Ea({filename:ev(n),readElement:ba.readRelationships,defaultValue:ba.defaultValue})(t).then(function(r){function i(o){return F0({docxFile:t,relationships:r,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+o,basePath:wu.splitPath(n).dirname,fallbackPath:"word/"+o+".xml"})}return{mainDocument:n,comments:i("comments"),endnotes:i("endnotes"),footnotes:i("footnotes"),numbering:i("numbering"),styles:i("styles")}})})}function F0(t){var e=t.docxFile,n=t.relationships,r=t.relationshipType,i=t.basePath,o=t.fallbackPath,a=n.findTargetsByType(r),s=a.map(function(u){return SL(wu.joinPath(i,u),"/")}),c=s.filter(function(u){return e.exists(u)});return c.length===0?o:c[0]}function SL(t,e){return t.substring(0,e.length)===e?t.substring(e.length):t}function Ea(t){return function(e){return jy(e,t.filename).then(function(n){return n?t.readElement(n):t.defaultValue})}}function Xc(t,e,n){var r=Ea({filename:ev(t),readElement:ba.readRelationships,defaultValue:ba.defaultValue});return r(e.docxFile).then(function(i){var o=new bL({relationships:i,contentTypes:e.contentTypes,docxFile:e.docxFile,numbering:e.numbering,styles:e.styles,files:e.files});return jy(e.docxFile,t).then(function(a){return n(o,a)})})}function ev(t){var e=wu.splitPath(t);return wu.joinPath(e.dirname,"_rels",e.basename+".rels")}var DL=Ea({filename:"[Content_Types].xml",readElement:O0.readContentTypesFromXml,defaultValue:O0.defaultContentTypes});function OL(t,e,n){return Ea({filename:e,readElement:function(r){return _0.readNumberingXml(r,{styles:n})},defaultValue:_0.defaultNumbering})(t)}function _L(t,e){return Ea({filename:e,readElement:E0.readStylesXml,defaultValue:E0.defaultStyles})(t)}var EL=Ea({filename:"_rels/.rels",readElement:ba.readRelationships,defaultValue:ba.defaultValue}),ep={},IL=Kt.exports,NL=mn,Is=bo;ep.writeStyleMap=PL;ep.readStyleMap=CL;var FL="http://schemas.zwobble.org/mammoth/style-map",Tu="mammoth/style-map",tv="/"+Tu;function PL(t,e){return t.write(Tu,e),ML(t).then(function(){return LL(t)})}function ML(t){var e="word/_rels/document.xml.rels",n="http://schemas.openxmlformats.org/package/2006/relationships",r="{"+n+"}Relationship";return t.read(e,"utf8").then(Is.readString).then(function(i){var o=i.children;nv(o,r,"Id",{Id:"rMammothStyleMap",Type:FL,Target:tv});var a={"":n};return t.write(e,Is.writeString(i,a))})}function LL(t){var e="[Content_Types].xml",n="http://schemas.openxmlformats.org/package/2006/content-types",r="{"+n+"}Override";return t.read(e,"utf8").then(Is.readString).then(function(i){var o=i.children;nv(o,r,"PartName",{PartName:tv,ContentType:"text/prs.mammoth.style-map"});var a={"":n};return t.write(e,Is.writeString(i,a))})}function nv(t,e,n,r){var i=IL.find(t,function(o){return o.name===e&&o.attributes[n]===r[n]});i?i.attributes=r:t.push(Is.element(e,r))}function CL(t){return t.exists(Tu)?t.read(Tu,"utf8"):NL.resolve(null)}var tp={},bi={},Pr={},Zi={},rv=bi;function AL(t,e,n){return np(rv.element(t,e,{fresh:!1}),n)}function UL(t,e,n){var r=rv.element(t,e,{fresh:!0});return np(r,n)}function np(t,e){return{type:"element",tag:t,children:e||[]}}function WL(t){return{type:"text",value:t}}var XL={type:"forceWrite"};Zi.freshElement=UL;Zi.nonFreshElement=AL;Zi.elementWithTag=np;Zi.text=WL;Zi.forceWrite=XL;var VL={br:!0,hr:!0,img:!0};function YL(t){return t.children.length===0&&VL[t.tag.tagName]}Zi.isVoidElement=YL;var P0=Kt.exports,Su=Zi;function BL(t){return iv(ov(t))}function iv(t){var e=[];return t.map(ZL).forEach(function(n){Md(e,n)}),e}function ZL(t){return kL[t.type](t)}var kL={element:QL,text:M0,forceWrite:M0};function QL(t){return Su.elementWithTag(t.tag,iv(t.children))}function M0(t){return t}function Md(t,e){var n=t[t.length-1];e.type==="element"&&!e.tag.fresh&&n&&n.type==="element"&&e.tag.matchesElement(n.tag)?(e.tag.separator&&Md(n.children,Su.text(e.tag.separator)),e.children.forEach(function(r){Md(n.children,r)})):t.push(e)}function ov(t){return KL(t,function(e){return HL[e.type](e)})}function KL(t,e){return P0.flatten(P0.map(t,e),!0)}var HL={element:JL,text:zL,forceWrite:GL};function GL(t){return[t]}function JL(t){var e=ov(t.children);return e.length===0&&!Su.isVoidElement(t)?[]:[Su.elementWithTag(t.tag,e)]}function zL(t){return t.value.length===0?[]:[t]}var $L=BL,Ia=Zi;Pr.freshElement=Ia.freshElement;Pr.nonFreshElement=Ia.nonFreshElement;Pr.elementWithTag=Ia.elementWithTag;Pr.text=Ia.text;Pr.forceWrite=Ia.forceWrite;Pr.simplify=$L;function av(t,e){e.forEach(function(n){jL(t,n)})}function jL(t,e){qL[e.type](t,e)}var qL={element:eC,text:tC,forceWrite:function(){}};function eC(t,e){Ia.isVoidElement(e)?t.selfClosing(e.tag.tagName,e.tag.attributes):(t.open(e.tag.tagName,e.tag.attributes),av(t,e.children),t.close(e.tag.tagName))}function tC(t,e){t.text(e.value)}Pr.write=av;var rp=Kt.exports,nC=Pr;bi.topLevelElement=rC;bi.elements=ip;bi.element=op;function rC(t,e){return ip([op(t,e,{fresh:!0})])}function ip(t){return new sv(t.map(function(e){return rp.isString(e)?op(e):e}))}function sv(t){this._elements=t}sv.prototype.wrap=function(e){for(var n=e(),r=this._elements.length-1;r>=0;r--)n=this._elements[r].wrapNodes(n);return n};function op(t,e,n){return n=n||{},new qu(t,e,n)}function qu(t,e,n){var r={};rp.isArray(t)?(t.forEach(function(i){r[i]=!0}),t=t[0]):r[t]=!0,this.tagName=t,this.tagNames=r,this.attributes=e||{},this.fresh=n.fresh,this.separator=n.separator}qu.prototype.matchesElement=function(t){return this.tagNames[t.tagName]&&rp.isEqual(this.attributes||{},t.attributes||{})};qu.prototype.wrap=function(e){return this.wrapNodes(e())};qu.prototype.wrapNodes=function(e){return[nC.elementWithTag(this,e)]};bi.empty=ip([]);bi.ignore={wrap:function(){return[]}};var ap={};(function(t){var e=Kt.exports,n=mn,r=Pr;t.imgElement=i;function i(o){return function(a,s){return n.when(o(a)).then(function(c){var u={};return a.altText&&(u.alt=a.altText),e.extend(u,c),[r.freshElement("img",u)]})}}t.inline=t.imgElement,t.dataUri=i(function(o){return o.readAsBase64String().then(function(a){return{src:"data:"+o.contentType+";base64,"+a}})})})(ap);var cv={},uv={},lv=Kt.exports;uv.writer=iC;function iC(t){return t=t||{},t.prettyPrint?oC():hv()}var Vc={div:!0,p:!0,ul:!0,li:!0};function oC(){var t=0,e=" ",n=[],r=!0,i=!1,o=hv();function a(p,g){Vc[p]&&d(),n.push(p),o.open(p,g),Vc[p]&&t++,r=!1}function s(p){Vc[p]&&(t--,d()),n.pop(),o.close(p)}function c(p){h();var g=f()?p:p.replace(` `,` `+e);o.text(g)}function u(p,g){d(),o.selfClosing(p,g)}function l(){return n.length===0||Vc[n[n.length-1]]}function h(){i||(d(),i=!0)}function d(){if(i=!1,!r&&l()&&!f()){o._append(` `);for(var p=0;p")}function n(c){t.push("")}function r(c,u){var l=i(u);t.push("<"+c+l+" />")}function i(c){return lv.map(c,function(u,l){return" "+l+'="'+sC(u)+'"'}).join("")}function o(c){t.push(aC(c))}function a(c){t.push(c)}function s(){return t.join("")}return{asString:s,open:e,close:n,text:o,selfClosing:r,_append:a}}function aC(t){return t.replace(/&/g,"&").replace(//g,">")}function sC(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(//g,">")}var dv={},cC=Kt.exports;function L0(t){return Du(t,t)}function Du(t,e){return function(){return{start:t,end:e}}}function uC(t){var e=t.href||"";return e?{start:"[",end:"]("+e+")",anchorPosition:"before"}:{}}function lC(t){var e=t.src||"",n=t.alt||"";return e||n?{start:"!["+n+"]("+e+")"}:{}}function C0(t){return function(e,n){return{start:n?` `:"",end:n?"":` `,list:{isOrdered:t.isOrdered,indent:n?n.indent+1:0,count:0}}}}function hC(t,e,n){e=e||{indent:0,isOrdered:!1,count:0},e.count++,n.hasClosed=!1;var r=e.isOrdered?e.count+".":"-",i=pv(" ",e.indent)+r+" ";return{start:i,end:function(){if(!n.hasClosed)return n.hasClosed=!0,` `}}}var fv={p:Du("",` `),br:Du("",` `),ul:C0({isOrdered:!1}),ol:C0({isOrdered:!0}),li:hC,strong:L0("__"),em:L0("*"),a:uC,img:lC};(function(){for(var t=1;t<=6;t++)fv["h"+t]=Du(pv("#",t)+" ",` `)})();function pv(t,e){return new Array(e+1).join(t)}function dC(){var t=[],e=[],n=null,r={};function i(l,h){h=h||{};var d=fv[l]||function(){return{}},f=d(h,n,r);e.push({end:f.end,list:n}),f.list&&(n=f.list);var p=f.anchorPosition==="before";p&&o(h),t.push(f.start||""),p||o(h)}function o(l){l.id&&t.push('')}function a(l){var h=e.pop();n=h.list;var d=cC.isFunction(h.end)?h.end():h.end;t.push(d||"")}function s(l,h){i(l,h),a()}function c(l){t.push(fC(l))}function u(){return t.join("")}return{asString:u,open:i,close:a,text:c,selfClosing:s}}dv.writer=dC;function fC(t){return t.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}var pC=uv,gC=dv;cv.writer=mC;function mC(t){return t=t||{},t.outputFormat==="markdown"?gC.writer():pC.writer(t)}var Ii=Kt.exports,A0=mn,eu=ct,gr=bi,Ld=hr,RC=ap,st=Pr,yC=cv;tp.DocumentConverter=vC;function vC(t){return{convertToHtml:function(e){var n=Ii.indexBy(e.type===eu.types.document?e.comments:[],"commentId"),r=new bC(t,n);return r.convertToHtml(e)}}}function bC(t,e){var n=1,r=[],i=[];t=Ii.extend({ignoreEmptyParagraphs:!0},t);var o=t.idPrefix===void 0?"":t.idPrefix,a=t.ignoreEmptyParagraphs,s=gr.topLevelElement("p"),c=t.styleMap||[];function u(V){var k=[],re=h(V,k,{}),Z=[];gv(re,function(ne){ne.type==="deferred"&&Z.push(ne)});var C={};return A0.mapSeries(Z,function(ne){return ne.value().then(function(oe){C[ne.id]=oe})}).then(function(){function ne(ue){return Vh(ue,function(ce){return ce.type==="deferred"?C[ce.id]:ce.children?[Ii.extend({},ce,{children:ne(ce.children)})]:[ce]})}var oe=yC.writer({prettyPrint:t.prettyPrint,outputFormat:t.outputFormat});return st.write(oe,st.simplify(ne(re))),new Ld.Result(oe.asString(),k)})}function l(V,k,re){return Vh(V,function(Z){return h(Z,k,re)})}function h(V,k,re){if(!re)throw new Error("options not set");var Z=X[V.type];return Z?Z(V,k,re):[]}function d(V,k,re){return f(V,k).wrap(function(){var Z=l(V.children,k,re);return a?Z:[st.forceWrite].concat(Z)})}function f(V,k){var re=R(V);return re?re.to:(V.styleId&&k.push(U0("paragraph",V)),s)}function p(V,k,re){var Z=function(){return l(V.children,k,re)},C=[];V.isSmallCaps&&C.push(g("smallCaps")),V.isAllCaps&&C.push(g("allCaps")),V.isStrikethrough&&C.push(g("strikethrough","s")),V.isUnderline&&C.push(g("underline")),V.verticalAlignment===eu.verticalAlignment.subscript&&C.push(gr.element("sub",{},{fresh:!1})),V.verticalAlignment===eu.verticalAlignment.superscript&&C.push(gr.element("sup",{},{fresh:!1})),V.isItalic&&C.push(g("italic","em")),V.isBold&&C.push(g("bold","strong"));var ne=gr.empty,oe=R(V);return oe?ne=oe.to:V.styleId&&k.push(U0("run",V)),C.push(ne),C.forEach(function(ue){Z=ue.wrap.bind(ue,Z)}),Z()}function g(V,k){var re=y({type:V});return re||(k?gr.element(k,{},{fresh:!1}):gr.empty)}function y(V,k){var re=R(V);return re?re.to:k}function R(V){for(var k=0;ko){var l=u[1],d=new Yh(t[s].name,l,a.range(o,h));return{token:d,endIndex:h}}}}var h=o+1,d=new Yh("unrecognisedCharacter",i.substring(o,h),a.range(o,h));return{token:d,endIndex:h}}function r(i,o){return new Yh("end",null,o.range(i.length,i.length))}return{tokenise:e}}Mr.Parser=yv.Parser;Mr.rules=sp;Mr.errors=up;Mr.results=cp;Mr.StringSource=lp.exports;Mr.Token=wv;Mr.bottomUp=Tv;Mr.RegexTokeniser=Sv.RegexTokeniser;Mr.rule=function(t){var e;return function(n){return e||(e=t()),e(n)}};var Ln={};Ln.paragraph=PC;Ln.run=MC;Ln.table=LC;Ln.bold=new er("bold");Ln.italic=new er("italic");Ln.underline=new er("underline");Ln.strikethrough=new er("strikethrough");Ln.allCaps=new er("allCaps");Ln.smallCaps=new er("smallCaps");Ln.commentReference=new er("commentReference");Ln.lineBreak=new er("break",{breakType:"line"});Ln.pageBreak=new er("break",{breakType:"page"});Ln.columnBreak=new er("break",{breakType:"column"});Ln.equalTo=AC;Ln.startsWith=UC;function PC(t){return new er("paragraph",t)}function MC(t){return new er("run",t)}function LC(t){return new er("table",t)}function er(t,e){e=e||{},this._elementType=t,this._styleId=e.styleId,this._styleName=e.styleName,e.list&&(this._listIndex=e.list.levelIndex,this._listIsOrdered=e.list.isOrdered)}er.prototype.matches=function(t){return t.type===this._elementType&&(this._styleId===void 0||t.styleId===this._styleId)&&(this._styleName===void 0||t.styleName&&this._styleName.operator(this._styleName.operand,t.styleName))&&(this._listIndex===void 0||CC(t,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===t.breakType)};function CC(t,e,n){return t.numbering&&t.numbering.level==e&&t.numbering.isOrdered==n}function AC(t){return{operator:WC,operand:t}}function UC(t){return{operator:XC,operand:t}}function WC(t,e){return t.toUpperCase()===e.toUpperCase()}function XC(t,e){return e.toUpperCase().indexOf(t.toUpperCase())===0}var Dv={},VC=Mr,YC=VC.RegexTokeniser;Dv.tokenise=BC;var W0="'((?:\\\\.|[^'])*)";function BC(t){var e="(?:[a-zA-Z\\-_]|\\\\.)",n=new YC([{name:"identifier",regex:new RegExp("("+e+"(?:"+e+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(W0+"'")},{name:"unterminated-string",regex:new RegExp(W0)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return n.tokenise(t)}var ZC=Kt.exports,Pe=Mr,Un=Ln,tu=bi,kC=Dv.tokenise,Bh=hr;el.readHtmlPath=GC;el.readDocumentMatcher=HC;el.readStyle=QC;function QC(t){return hp(nA,t)}function KC(){return Pe.rules.sequence(Pe.rules.sequence.capture(Ov()),Pe.rules.tokenOfType("whitespace"),Pe.rules.tokenOfType("arrow"),Pe.rules.sequence.capture(Pe.rules.optional(Pe.rules.sequence(Pe.rules.tokenOfType("whitespace"),Pe.rules.sequence.capture(_v())).head())),Pe.rules.tokenOfType("end")).map(function(t,e){return{from:t,to:e.valueOrElse(tu.empty)}})}function HC(t){return hp(Ov(),t)}function Ov(){var t=Pe.rules.sequence,e=function(O,E){return Pe.rules.then(Pe.rules.token("identifier",O),function(){return E})},n=e("p",Un.paragraph),r=e("r",Un.run),i=Pe.rules.firstOf("p or r or table",n,r),o=Pe.rules.sequence(Pe.rules.tokenOfType("dot"),Pe.rules.sequence.cut(),Pe.rules.sequence.capture(nl)).map(function(O){return{styleId:O}}),a=Pe.rules.firstOf("style name matcher",Pe.rules.then(Pe.rules.sequence(Pe.rules.tokenOfType("equals"),Pe.rules.sequence.cut(),Pe.rules.sequence.capture(Rs)).head(),function(O){return{styleName:Un.equalTo(O)}}),Pe.rules.then(Pe.rules.sequence(Pe.rules.tokenOfType("startsWith"),Pe.rules.sequence.cut(),Pe.rules.sequence.capture(Rs)).head(),function(O){return{styleName:Un.startsWith(O)}})),s=Pe.rules.sequence(Pe.rules.tokenOfType("open-square-bracket"),Pe.rules.sequence.cut(),Pe.rules.token("identifier","style-name"),Pe.rules.sequence.capture(a),Pe.rules.tokenOfType("close-square-bracket")).head(),c=Pe.rules.firstOf("list type",e("ordered-list",{isOrdered:!0}),e("unordered-list",{isOrdered:!1})),u=t(Pe.rules.tokenOfType("colon"),t.capture(c),t.cut(),Pe.rules.tokenOfType("open-paren"),t.capture(JC),Pe.rules.tokenOfType("close-paren")).map(function(O,E){return{list:{isOrdered:O.isOrdered,levelIndex:E-1}}});function l(O){var E=Pe.rules.firstOf.apply(Pe.rules.firstOf,["matcher suffix"].concat(O)),N=Pe.rules.zeroOrMore(E);return Pe.rules.then(N,function(M){var _={};return M.forEach(function(B){ZC.extend(_,B)}),_})}var h=t(t.capture(i),t.capture(l([o,s,u]))).map(function(O,E){return O(E)}),d=t(Pe.rules.token("identifier","table"),t.capture(l([o,s]))).map(function(O){return Un.table(O)}),f=e("b",Un.bold),p=e("i",Un.italic),g=e("u",Un.underline),y=e("strike",Un.strikethrough),R=e("all-caps",Un.allCaps),m=e("small-caps",Un.smallCaps),v=e("comment-reference",Un.commentReference),x=t(Pe.rules.token("identifier","br"),t.cut(),Pe.rules.tokenOfType("open-square-bracket"),Pe.rules.token("identifier","type"),Pe.rules.tokenOfType("equals"),t.capture(Rs),Pe.rules.tokenOfType("close-square-bracket")).map(function(O){switch(O){case"line":return Un.lineBreak;case"page":return Un.pageBreak;case"column":return Un.columnBreak}});return Pe.rules.firstOf("element type",h,d,f,p,g,y,R,m,v,x)}function GC(t){return hp(_v(),t)}function _v(){var t=Pe.rules.sequence.capture,e=Pe.rules.tokenOfType("whitespace"),n=Pe.rules.then(Pe.rules.optional(Pe.rules.sequence(Pe.rules.tokenOfType("colon"),Pe.rules.token("identifier","fresh"))),function(a){return a.map(function(){return!0}).valueOrElse(!1)}),r=Pe.rules.then(Pe.rules.optional(Pe.rules.sequence(Pe.rules.tokenOfType("colon"),Pe.rules.token("identifier","separator"),Pe.rules.tokenOfType("open-paren"),t(Rs),Pe.rules.tokenOfType("close-paren")).head()),function(a){return a.valueOrElse("")}),i=Pe.rules.oneOrMoreWithSeparator(nl,Pe.rules.tokenOfType("choice")),o=Pe.rules.sequence(t(i),t(Pe.rules.zeroOrMore(qC)),t(n),t(r)).map(function(a,s,c,u){var l={},h={};return s.forEach(function(d){d.append&&l[d.name]?l[d.name]+=" "+d.value:l[d.name]=d.value}),c&&(h.fresh=!0),u&&(h.separator=u),tu.element(a,l,h)});return Pe.rules.firstOf("html path",Pe.rules.then(Pe.rules.tokenOfType("bang"),function(){return tu.ignore}),Pe.rules.then(Pe.rules.zeroOrMoreWithSeparator(o,Pe.rules.sequence(e,Pe.rules.tokenOfType("gt"),e)),tu.elements))}var nl=Pe.rules.then(Pe.rules.tokenOfType("identifier"),Ev),JC=Pe.rules.tokenOfType("integer"),Rs=Pe.rules.then(Pe.rules.tokenOfType("string"),Ev),zC={n:` `,r:"\r",t:" "};function Ev(t){return t.replace(/\\(.)/g,function(e,n){return zC[n]||n})}var $C=Pe.rules.sequence(Pe.rules.tokenOfType("open-square-bracket"),Pe.rules.sequence.cut(),Pe.rules.sequence.capture(nl),Pe.rules.tokenOfType("equals"),Pe.rules.sequence.capture(Rs),Pe.rules.tokenOfType("close-square-bracket")).map(function(t,e){return{name:t,value:e,append:!1}}),jC=Pe.rules.sequence(Pe.rules.tokenOfType("dot"),Pe.rules.sequence.cut(),Pe.rules.sequence.capture(nl)).map(function(t){return{name:"class",value:t,append:!0}}),qC=Pe.rules.firstOf("attribute or class",$C,jC);function hp(t,e){var n=kC(e),r=Pe.Parser(),i=r.parseTokens(t,n);return i.isSuccess()?Bh.success(i.value()):new Bh.Result(null,[Bh.warning(eA(e,i))])}function eA(t,e){return"Did not understand this style mapping, so ignored it: "+t+` `+e.errors().map(tA).join(` `)}function tA(t){return"Error was at character number "+t.characterNumber()+": Expected "+t.expected+" but got "+t.actual}var nA=KC(),rl={};rl.readOptions=oA;var Iv=Kt.exports,rA=rl._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh"],iA=rl._standardOptions={transformDocument:aA,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function oA(t){return t=t||{},Iv.extend({},iA,t,{customStyleMap:X0(t.styleMap),readStyleMap:function(){var e=this.customStyleMap;return this.includeEmbeddedStyleMap&&(e=e.concat(X0(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(e=e.concat(rA)),e}})}function X0(t){return t?Iv.isString(t)?t.split(` `).map(function(e){return e.trim()}).filter(function(e){return e!==""&&e.charAt(0)!=="#"}):t:[]}function aA(t){return t}var Nv={},V0=mn,sA=Ws;Nv.openZip=cA;function cA(t){return t.arrayBuffer?V0.resolve(sA.openArrayBuffer(t.arrayBuffer)):V0.reject(new Error("Could not find file in options"))}var Na={},Y0=Kt.exports;Na.paragraph=uA;Na.run=lA;Na._elements=Pv;Na.getDescendantsOfType=hA;Na.getDescendants=Mv;function uA(t){return Fv("paragraph",t)}function lA(t){return Fv("run",t)}function Fv(t,e){return Pv(function(n){return n.type===t?e(n):n})}function Pv(t){return function e(n){if(n.children){var r=Y0.map(n.children,e);n=Y0.extend(n,{children:r})}return t(n)}}function hA(t,e){return Mv(t).filter(function(n){return n.type===e})}function Mv(t){var e=[];return Lv(t,function(n){e.push(n)}),e}function Lv(t,e){t.children&&t.children.forEach(function(n){Lv(n,e),e(n)})}var Cv={},dA=bi,fA=Pr;Cv.element=pA;function pA(t){return function(e){return fA.elementWithTag(dA.element(t),[e])}}var gA=Kt.exports,Av=Sf,dp=ep,mA=tp.DocumentConverter,RA=mv.convertElementToRawText,yA=el.readStyle,vA=rl.readOptions,il=Nv,bA=hr.Result;Fr.convertToHtml=xA;Fr.convertToMarkdown=wA;Fr.convert=fp;Fr.extractRawText=OA;Fr.images=ap;Fr.transforms=Na;Fr.underline=Cv;Fr.embedStyleMap=_A;Fr.readEmbeddedStyleMap=TA;function xA(t,e){return fp(t,e)}function wA(t,e){var n=Object.create(e||{});return n.outputFormat="markdown",fp(t,n)}function fp(t,e){return e=vA(e),il.openZip(t).tap(function(n){return dp.readStyleMap(n).then(function(r){e.embeddedStyleMap=r})}).then(function(n){return Av.read(n,t).then(function(r){return r.map(e.transformDocument)}).then(function(r){return SA(r,e)})})}function TA(t){return il.openZip(t).then(dp.readStyleMap)}function SA(t,e){var n=DA(e.readStyleMap()),r=gA.extend({},e,{styleMap:n.value}),i=new mA(r);return t.flatMapThen(function(o){return n.flatMapThen(function(a){return i.convertToHtml(o)})})}function DA(t){return bA.combine((t||[]).map(yA)).map(function(e){return e.filter(function(n){return!!n})})}function OA(t){return il.openZip(t).then(Av.read).then(function(e){return e.map(RA)})}function _A(t,e){return il.openZip(t).tap(function(n){return dp.writeStyleMap(n,e)}).then(function(n){return n.toArrayBuffer()}).then(function(n){return{toArrayBuffer:function(){return n},toBuffer:function(){return Buffer.from(n)}}})}Fr.styleMapping=function(){throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)};async function Zh(t,e){const{arrayBuffer:n}=e,r=await Fr.convertToHtml({arrayBuffer:n});t.executeSetHTML({main:r.value})}var pp={},ol={},tr={};Object.defineProperty(tr,"__esModule",{value:!0});function EA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var IA=function t(e,n){EA(this,t),this.data=e,this.text=n.text||e,this.options=n};tr.default=IA;Object.defineProperty(ol,"__esModule",{value:!0});ol.CODE39=void 0;var NA=function(){function t(e,n){for(var r=0;r=200){s=r.shift()-105;var c=ir.SWAP[s];c!==void 0?a=e.next(r,i+1,c):((o===ir.SET_A||o===ir.SET_B)&&s===ir.SHIFT&&(r[0]=o===ir.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),a=e.next(r,i+1,o))}else s=e.correctIndex(r,o),a=e.next(r,i+1,o);var u=e.getBar(s),l=s*i;return{result:u+a.result,checksum:l+a.checksum}}}]),e}(HA.default);Fa.default=jA;var mp={};Object.defineProperty(mp,"__esModule",{value:!0});var Ui=Xt,Bv=function(e){return e.match(new RegExp("^"+Ui.A_CHARS+"*"))[0].length},Zv=function(e){return e.match(new RegExp("^"+Ui.B_CHARS+"*"))[0].length},kv=function(e){return e.match(new RegExp("^"+Ui.C_CHARS+"*"))[0]};function Rp(t,e){var n=e?Ui.A_CHARS:Ui.B_CHARS,r=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Qv(t.substring(r[1].length));var i=t.match(new RegExp("^"+n+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+Rp(t.substring(i.length),!e)}function Qv(t){var e=kv(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var r=Bv(t)>=Zv(t);return e+String.fromCharCode(r?206:205)+Rp(t,r)}mp.default=function(t){var e=void 0,n=kv(t).length;if(n>=2)e=Ui.C_START_CHAR+Qv(t);else{var r=Bv(t)>Zv(t);e=(r?Ui.A_START_CHAR:Ui.B_START_CHAR)+Rp(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,o){return String.fromCharCode(203)+o})};Object.defineProperty(gp,"__esModule",{value:!0});var qA=Fa,eU=Kv(qA),tU=mp,nU=Kv(tU);function Kv(t){return t&&t.__esModule?t:{default:t}}function rU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function iU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var oU=function(t){iU(e,t);function e(n,r){if(rU(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(n))var i=Kh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,nU.default)(n),r));else var i=Kh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return Kh(i)}return e}(eU.default);gp.default=oU;var yp={};Object.defineProperty(yp,"__esModule",{value:!0});var aU=function(){function t(e,n){for(var r=0;rr.width*10?r.width*10:r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return VU(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,i){return this.text.substr(r,i)}},{key:"leftEncode",value:function(r,i){return(0,Q0.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,Q0.default)(r,i)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:Xo.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:r},{data:Xo.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:r},{data:Xo.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var r=[Xo.SIDE_BIN,this.leftEncode(),Xo.MIDDLE_BIN,this.rightEncode(),Xo.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(ZU.default);sl.default=HU;Object.defineProperty(xp,"__esModule",{value:!0});var GU=function(){function t(e,n){for(var r=0;rr.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return P8(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Cd(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,Vo.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,Vo.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,Vo.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,Vo.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,Vo.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,Vo.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(C8.default);function Cd(t){var e=0,n;for(n=1;n<11;n+=2)e+=parseInt(t[n]);for(n=0;n<11;n+=2)e+=parseInt(t[n])*3;return(10-e%10)%10}nc.default=X8;var Dp={};Object.defineProperty(Dp,"__esModule",{value:!0});var V8=function(){function t(e,n){for(var r=0;rr.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return V8(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],i=this.upcA[this.upcA.length-1],o=J8[parseInt(i)][parseInt(r)];return(0,B8.default)(this.middleDigits,o)}}]),e}(k8.default);function G0(t,e){for(var n=parseInt(t[t.length-1]),r=G8[n],i="",o=0,a=0;a=3&&this.number<=131070}}]),e}(E6.default);ul.pharmacode=M6;var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.codabar=void 0;var L6=function(){function t(e,n){for(var r=0;r0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function tb(t,e,n){if(n.displayValue&&ee&&(e=t[n].height);return e}function g4(t,e,n){var r;if(n)r=n;else if(typeof document!="undefined")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var i=r.measureText(t);if(!i)return 0;var o=i.width;return o}sr.getMaximumHeightOfEncodings=p4;sr.getEncodingHeight=eb;sr.getBarcodePadding=tb;sr.calculateEncodingAttributes=d4;sr.getTotalWidthOfEncodings=f4;Object.defineProperty(Ap,"__esModule",{value:!0});var m4=function(){function t(e,n){for(var r=0;r0?(a=0,i.textAlign="left"):n.textAlign=="right"?(a=r.width-1,i.textAlign="right"):(a=r.width/2,i.textAlign="center"),i.fillText(r.text,a,s)}}},{key:"moveCanvasDrawing",value:function(n){var r=this.canvas.getContext("2d");r.translate(n.width,0)}},{key:"restoreCanvas",value:function(){var n=this.canvas.getContext("2d");n.restore()}}]),t}();Ap.default=x4;var Up={};Object.defineProperty(Up,"__esModule",{value:!0});var w4=function(){function t(e,n){for(var r=0;r0&&(this.drawRect(c-r.width*s,a,r.width*s,r.height,n),s=0);s>0&&this.drawRect(c-r.width*(s-1),a,r.width*s,r.height,n)}},{key:"drawSVGText",value:function(n,r,i){var o=this.document.createElementNS(kc,"text");if(r.displayValue){var a,s;o.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?s=r.fontSize-r.textMargin:s=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||i.barcodePadding>0?(a=0,o.setAttribute("text-anchor","start")):r.textAlign=="right"?(a=i.width-1,o.setAttribute("text-anchor","end")):(a=i.width/2,o.setAttribute("text-anchor","middle")),o.setAttribute("x",a),o.setAttribute("y",s),o.appendChild(this.document.createTextNode(i.text)),n.appendChild(o)}}},{key:"setSvgAttributes",value:function(n,r){var i=this.svg;i.setAttribute("width",n+"px"),i.setAttribute("height",r+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+n+" "+r),i.setAttribute("xmlns",kc),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(n,r,i){var o=this.document.createElementNS(kc,"g");return o.setAttribute("transform","translate("+n+", "+r+")"),i.appendChild(o),o}},{key:"setGroupOptions",value:function(n,r){n.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(n,r,i,o,a){var s=this.document.createElementNS(kc,"rect");return s.setAttribute("x",n),s.setAttribute("y",r),s.setAttribute("width",i),s.setAttribute("height",o),a.appendChild(s),s}}]),t}();Up.default=_4;var Wp={};Object.defineProperty(Wp,"__esModule",{value:!0});var E4=function(){function t(e,n){for(var r=0;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sn=function(){function t(){}return t.fill=function(e,n){for(var r=0,i=e.length;rr)throw new Ge("fromIndex("+n+") > toIndex("+r+")");if(n<0)throw new nm(n);if(r>e)throw new nm(r)},t.asList=function(){for(var e=[],n=0;n>1,s=r(n,e[a]);if(s>0)i=a+1;else if(s<0)o=a-1;else return a}return-i-1},t.numberComparator=function(e,n){return e-n},t}(),$t=function(){function t(){}return t.numberOfTrailingZeros=function(e){var n;if(e===0)return 32;var r=31;return n=e<<16,n!==0&&(r-=16,e=n),n=e<<8,n!==0&&(r-=8,e=n),n=e<<4,n!==0&&(r-=4,e=n),n=e<<2,n!==0&&(r-=2,e=n),r-(e<<1>>>31)},t.numberOfLeadingZeros=function(e){if(e===0)return 32;var n=1;return e>>>16===0&&(n+=16,e<<=16),e>>>24===0&&(n+=8,e<<=8),e>>>28===0&&(n+=4,e<<=4),e>>>30===0&&(n+=2,e<<=2),n-=e>>>31,n},t.toHexString=function(e){return e.toString(16)},t.toBinaryString=function(e){return String(parseInt(String(e),2))},t.bitCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e=e+(e>>>8),e=e+(e>>>16),e&63},t.truncDivision=function(e,n){return Math.trunc(e/n)},t.parseInt=function(e,n){return n===void 0&&(n=void 0),parseInt(e,n)},t.MIN_VALUE_32_BITS=-2147483648,t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}(),Jn=function(){function t(e,n){e===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,n==null?this.bits=t.makeArray(e):this.bits=n)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>this.bits.length*32){var n=t.makeArray(e);Mt.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},t.prototype.get=function(e){return(this.bits[Math.floor(e/32)]&1<<(e&31))!==0},t.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(e&31)},t.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(e&31)},t.prototype.getNextSet=function(e){var n=this.size;if(e>=n)return n;var r=this.bits,i=Math.floor(e/32),o=r[i];o&=~((1<<(e&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=r[i]}var s=i*32+$t.numberOfTrailingZeros(o);return s>n?n:s},t.prototype.getNextUnset=function(e){var n=this.size;if(e>=n)return n;var r=this.bits,i=Math.floor(e/32),o=~r[i];o&=~((1<<(e&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=~r[i]}var s=i*32+$t.numberOfTrailingZeros(o);return s>n?n:s},t.prototype.setBulk=function(e,n){this.bits[Math.floor(e/32)]=n},t.prototype.setRange=function(e,n){if(nthis.size)throw new Ge;if(n!==e){n--;for(var r=Math.floor(e/32),i=Math.floor(n/32),o=this.bits,a=r;a<=i;a++){var s=a>r?0:e&31,c=athis.size)throw new Ge;if(n===e)return!0;n--;for(var i=Math.floor(e/32),o=Math.floor(n/32),a=this.bits,s=i;s<=o;s++){var c=s>i?0:e&31,u=s32)throw new Ge("Num bits must be between 0 and 32");this.ensureCapacity(this.size+n);for(var r=n;r>0;r--)this.appendBit((e>>r-1&1)===1)},t.prototype.appendBitArray=function(e){var n=e.size;this.ensureCapacity(this.size+n);for(var r=0;r>1&1431655765|(a&1431655765)<<1,a=a>>2&858993459|(a&858993459)<<2,a=a>>4&252645135|(a&252645135)<<4,a=a>>8&16711935|(a&16711935)<<8,a=a>>16&65535|(a&65535)<<16,e[n-o]=a}if(this.size!==r*32){for(var s=r*32-this.size,c=e[0]>>>s,o=1;o>>s}e[r-1]=c}this.bits=e},t.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.size===n.size&&sn.equals(this.bits,n.bits)},t.prototype.hashCode=function(){return 31*this.size+sn.hashCode(this.bits)},t.prototype.toString=function(){for(var e="",n=0,r=this.size;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},wt;(function(t){t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"})(wt||(wt={}));var an=function(){function t(e,n,r){for(var i,o,a=[],s=3;s=900)throw new Le("incorect value");var n=t.VALUES_TO_ECI.get(e);if(n===void 0)throw new Le("incorect value");return n},t.getCharacterSetECIByName=function(e){var n=t.NAME_TO_ECI.get(e);if(n===void 0)throw new Le("incorect value");return n},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.getName()===n.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(wt.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(wt.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(wt.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(wt.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(wt.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(wt.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(wt.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(wt.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(wt.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(wt.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(wt.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(wt.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(wt.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(wt.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(wt.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(wt.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(wt.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(wt.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(wt.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(wt.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(wt.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(wt.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(wt.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(wt.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(wt.Big5,28,"Big5"),t.GB18030=new t(wt.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(wt.EUC_KR,30,"EUC_KR","EUC-KR"),t}(),SW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nu=function(t){SW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e}(nr),wr=function(){function t(){}return t.decode=function(e,n){var r=this.encodingName(n);return this.customDecoder?this.customDecoder(e,r):typeof TextDecoder=="undefined"||this.shouldDecodeOnFallback(r)?this.decodeFallback(e,r):new TextDecoder(r).decode(e)},t.shouldDecodeOnFallback=function(e){return!t.isBrowser()&&e==="ISO-8859-1"},t.encode=function(e,n){var r=this.encodingName(n);return this.customEncoder?this.customEncoder(e,r):typeof TextEncoder=="undefined"?this.encodeFallback(e):new TextEncoder().encode(e)},t.isBrowser=function(){return typeof window!="undefined"&&{}.toString.call(window)==="[object Window]"},t.encodingName=function(e){return typeof e=="string"?e:e.getName()},t.encodingCharacterSet=function(e){return e instanceof an?e:an.getCharacterSetECIByName(e)},t.decodeFallback=function(e,n){var r=this.encodingCharacterSet(n);if(t.isDecodeFallbackSupported(r)){for(var i="",o=0,a=e.length;o3&&e[0]===239&&e[1]===187&&e[2]===191,v=0;v0?(x&128)===0?a=!1:s--:(x&128)!==0&&((x&64)===0?a=!1:(s++,(x&32)===0?c++:(s++,(x&16)===0?u++:(s++,(x&8)===0?l++:a=!1))))),i&&(x>127&&x<160?i=!1:x>159&&(x<192||x===215||x===247)&&R++),o&&(h>0?x<64||x===127||x>252?o=!1:h--:x===128||x===160||x>239?o=!1:x>160&&x<224?(d++,p=0,f++,f>g&&(g=f)):x>127?(h++,f=0,p++,p>y&&(y=p)):(f=0,p=0))}return a&&s>0&&(a=!1),o&&h>0&&(o=!1),a&&(m||c+u+l>0)?t.UTF8:o&&(t.ASSUME_SHIFT_JIS||g>=3||y>=3)?t.SHIFT_JIS:i&&o?g===2&&d===2||R*10>=r?t.SHIFT_JIS:t.ISO88591:i?t.ISO88591:o?t.SHIFT_JIS:a?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.format=function(e){for(var n=[],r=1;ra){if(s===-1)s=o-a;else if(o-a!==s)throw new Ge("row lengths do not match");a=o,c++}u++}else if(e.substring(u,u+n.length)===n)u+=n.length,i[o]=!0,o++;else if(e.substring(u,u+r.length)===r)u+=r.length,i[o]=!1,o++;else throw new Ge("illegal character encountered: "+e.substring(u));if(o>a){if(s===-1)s=o-a;else if(o-a!==s)throw new Ge("row lengths do not match");c++}for(var l=new t(s,c),h=0;h>>(e&31)&1)!==0},t.prototype.set=function(e,n){var r=n*this.rowSize+Math.floor(e/32);this.bits[r]|=1<<(e&31)&4294967295},t.prototype.unset=function(e,n){var r=n*this.rowSize+Math.floor(e/32);this.bits[r]&=~(1<<(e&31)&4294967295)},t.prototype.flip=function(e,n){var r=n*this.rowSize+Math.floor(e/32);this.bits[r]^=1<<(e&31)&4294967295},t.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new Ge("input matrix dimensions do not match");for(var n=new Jn(Math.floor(this.width/32)+1),r=this.rowSize,i=this.bits,o=0,a=this.height;othis.height||o>this.width)throw new Ge("The region must fit inside the matrix");for(var s=this.rowSize,c=this.bits,u=n;uc&&(c=u),l*32s){for(var d=31;h>>>d===0;)d--;l*32+d>s&&(s=l*32+d)}}}return s=0&&n[r]===0;)r--;if(r<0)return null;for(var i=Math.floor(r/e),o=Math.floor(r%e)*32,a=n[r],s=31;a>>>s===0;)s--;return o+=s,Int32Array.from([o,i])},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRowSize=function(){return this.rowSize},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.width===n.width&&this.height===n.height&&this.rowSize===n.rowSize&&sn.equals(this.bits,n.bits)},t.prototype.hashCode=function(){var e=this.width;return e=31*e+this.width,e=31*e+this.height,e=31*e+this.rowSize,e=31*e+sn.hashCode(this.bits),e},t.prototype.toString=function(e,n,r){return e===void 0&&(e="X "),n===void 0&&(n=" "),r===void 0&&(r=` `),this.buildToString(e,n,r)},t.prototype.buildToString=function(e,n,r){for(var i=new rt,o=0,a=this.height;o>e.LUMINANCE_SHIFT]++;var u=e.estimateBlackPoint(s);if(o<3)for(var c=0;c>e.LUMINANCE_SHIFT]++}for(var f=e.estimateBlackPoint(a),p=n.getMatrix(),s=0;sa&&(o=s,a=n[s]),n[s]>i&&(i=n[s]);for(var c=0,u=0,s=0;su&&(c=s,u=h)}if(o>c){var d=o;o=c,c=d}if(c-o<=r/16)throw new De;for(var f=c-1,p=-1,s=c-1;s>o;s--){var g=s-o,h=g*g*(c-s)*(i-n[s]);h>p&&(f=s,p=h)}return f<=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var o=n.getMatrix(),a=r>>e.BLOCK_SIZE_POWER;(r&e.BLOCK_SIZE_MASK)!==0&&a++;var s=i>>e.BLOCK_SIZE_POWER;(i&e.BLOCK_SIZE_MASK)!==0&&s++;var c=e.calculateBlackPoints(o,a,s,r,i),u=new gi(r,i);e.calculateThresholdForBlock(o,a,s,r,i,c,u),this.matrix=u}else this.matrix=t.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(n){return new e(n)},e.calculateThresholdForBlock=function(n,r,i,o,a,s,c){for(var u=a-e.BLOCK_SIZE,l=o-e.BLOCK_SIZE,h=0;hu&&(d=u);for(var f=e.cap(h,2,i-3),p=0;pl&&(g=l);for(var y=e.cap(p,2,r-3),R=0,m=-2;m<=2;m++){var v=s[f+m];R+=v[y-2]+v[y-1]+v[y]+v[y+1]+v[y+2]}var x=R/25;e.thresholdBlock(n,g,d,x,o,c)}}},e.cap=function(n,r,i){return ni?i:n},e.thresholdBlock=function(n,r,i,o,a,s){for(var c=0,u=i*a+r;cs&&(h=s);for(var d=0;dc&&(f=c);for(var p=0,g=255,y=0,R=0,m=h*o+f;Ry&&(y=x)}if(y-g>e.MIN_DYNAMIC_RANGE)for(R++,m+=o;R>e.BLOCK_SIZE_POWER*2;if(y-g<=e.MIN_DYNAMIC_RANGE&&(O=g/2,l>0&&d>0)){var E=(u[l-1][d]+2*u[l][d-1]+u[l-1][d-1])/4;g>10}o[s]=u}else for(var a=0,s=0,p=n.length;a>10}o[s]=255-u}return o},e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new Ge("Requested row is outside the image: "+n);var i=this.getWidth(),o=n*i;return r===null?r=this.buffer.slice(o,o+i):(r.length0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ca=function(){function t(e,n,r){n===void 0&&(n=500),this.reader=e,this.timeBetweenScansMillis=n,this._hints=r,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(t.prototype,"hasNavigator",{get:function(){return typeof navigator!="undefined"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canEnumerateDevices",{get:function(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),t.prototype.listVideoInputDevices=function(){return Wn(this,void 0,void 0,function(){var e,n,r,i,o,a,s,c,u,l,h,d;return Xn(this,function(f){switch(f.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=f.sent(),n=[];try{for(r=MW(e),i=r.next();!i.done;i=r.next())o=i.value,a=o.kind==="video"?"videoinput":o.kind,a==="videoinput"&&(s=o.deviceId||o.id,c=o.label||"Video device "+(n.length+1),u=o.groupId,l={deviceId:s,label:c,kind:a,groupId:u},n.push(l))}catch(p){h={error:p}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(h)throw h.error}}return[2,n]}})})},t.prototype.getVideoInputDevices=function(){return Wn(this,void 0,void 0,function(){var e;return Xn(this,function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=n.sent(),[2,e.map(function(r){return new PW(r.deviceId,r.label)})]}})})},t.prototype.findDeviceById=function(e){return Wn(this,void 0,void 0,function(){var n;return Xn(this,function(r){switch(r.label){case 0:return[4,this.listVideoInputDevices()];case 1:return n=r.sent(),n?[2,n.find(function(i){return i.deviceId===e})]:[2,null]}})})},t.prototype.decodeFromInputVideoDevice=function(e,n){return Wn(this,void 0,void 0,function(){return Xn(this,function(r){switch(r.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,n)];case 1:return[2,r.sent()]}})})},t.prototype.decodeOnceFromVideoDevice=function(e,n){return Wn(this,void 0,void 0,function(){var r,i;return Xn(this,function(o){switch(o.label){case 0:return this.reset(),e?r={deviceId:{exact:e}}:r={facingMode:"environment"},i={video:r},[4,this.decodeOnceFromConstraints(i,n)];case 1:return[2,o.sent()]}})})},t.prototype.decodeOnceFromConstraints=function(e,n){return Wn(this,void 0,void 0,function(){var r;return Xn(this,function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return r=i.sent(),[4,this.decodeOnceFromStream(r,n)];case 2:return[2,i.sent()]}})})},t.prototype.decodeOnceFromStream=function(e,n){return Wn(this,void 0,void 0,function(){var r,i;return Xn(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,n)];case 1:return r=o.sent(),[4,this.decodeOnce(r)];case 2:return i=o.sent(),[2,i]}})})},t.prototype.decodeFromInputVideoDeviceContinuously=function(e,n,r){return Wn(this,void 0,void 0,function(){return Xn(this,function(i){switch(i.label){case 0:return[4,this.decodeFromVideoDevice(e,n,r)];case 1:return[2,i.sent()]}})})},t.prototype.decodeFromVideoDevice=function(e,n,r){return Wn(this,void 0,void 0,function(){var i,o;return Xn(this,function(a){switch(a.label){case 0:return e?i={deviceId:{exact:e}}:i={facingMode:"environment"},o={video:i},[4,this.decodeFromConstraints(o,n,r)];case 1:return[2,a.sent()]}})})},t.prototype.decodeFromConstraints=function(e,n,r){return Wn(this,void 0,void 0,function(){var i;return Xn(this,function(o){switch(o.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return i=o.sent(),[4,this.decodeFromStream(i,n,r)];case 2:return[2,o.sent()]}})})},t.prototype.decodeFromStream=function(e,n,r){return Wn(this,void 0,void 0,function(){var i;return Xn(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,n)];case 1:return i=o.sent(),[4,this.decodeContinuously(i,r)];case 2:return[2,o.sent()]}})})},t.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},t.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},t.prototype.attachStreamToVideo=function(e,n){return Wn(this,void 0,void 0,function(){var r;return Xn(this,function(i){switch(i.label){case 0:return r=this.prepareVideoElement(n),this.addVideoSource(r,e),this.videoElement=r,this.stream=e,[4,this.playVideoOnLoadAsync(r)];case 1:return i.sent(),[2,r]}})})},t.prototype.playVideoOnLoadAsync=function(e){var n=this;return new Promise(function(r,i){return n.playVideoOnLoad(e,function(){return r()})})},t.prototype.playVideoOnLoad=function(e,n){var r=this;this.videoEndedListener=function(){return r.stopStreams()},this.videoCanPlayListener=function(){return r.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",n),this.tryPlayVideo(e)},t.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},t.prototype.tryPlayVideo=function(e){return Wn(this,void 0,void 0,function(){return Xn(this,function(n){switch(n.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.play()];case 2:return n.sent(),[3,4];case 3:return n.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},t.prototype.getMediaElement=function(e,n){var r=document.getElementById(e);if(!r)throw new Jt("element with id '"+e+"' not found");if(r.nodeName.toLowerCase()!==n.toLowerCase())throw new Jt("element with id '"+e+"' must be an "+n+" element");return r},t.prototype.decodeFromImage=function(e,n){if(!e&&!n)throw new Jt("either imageElement with a src set or an url must be provided");return n&&!e?this.decodeFromImageUrl(n):this.decodeFromImageElement(e)},t.prototype.decodeFromVideo=function(e,n){if(!e&&!n)throw new Jt("Either an element with a src set or an URL must be provided");return n&&!e?this.decodeFromVideoUrl(n):this.decodeFromVideoElement(e)},t.prototype.decodeFromVideoContinuously=function(e,n,r){if(e===void 0&&n===void 0)throw new Jt("Either an element with a src set or an URL must be provided");return n&&!e?this.decodeFromVideoUrlContinuously(n,r):this.decodeFromVideoElementContinuously(e,r)},t.prototype.decodeFromImageElement=function(e){if(!e)throw new Jt("An image element must be provided.");this.reset();var n=this.prepareImageElement(e);this.imageElement=n;var r;return this.isImageLoaded(n)?r=this.decodeOnce(n,!1,!0):r=this._decodeOnLoadImage(n),r},t.prototype.decodeFromVideoElement=function(e){var n=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(n)},t.prototype.decodeFromVideoElementContinuously=function(e,n){var r=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(r,n)},t.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new Jt("A video element must be provided.");this.reset();var n=this.prepareVideoElement(e);return this.videoElement=n,n},t.prototype.decodeFromImageUrl=function(e){if(!e)throw new Jt("An URL must be provided.");this.reset();var n=this.prepareImageElement();this.imageElement=n;var r=this._decodeOnLoadImage(n);return n.src=e,r},t.prototype.decodeFromVideoUrl=function(e){if(!e)throw new Jt("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),r=this.decodeFromVideoElement(n);return n.src=e,r},t.prototype.decodeFromVideoUrlContinuously=function(e,n){if(!e)throw new Jt("An URL must be provided.");this.reset();var r=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(r,n);return r.src=e,i},t.prototype._decodeOnLoadImage=function(e){var n=this;return new Promise(function(r,i){n.imageLoadedListener=function(){return n.decodeOnce(e,!1,!0).then(r,i)},e.addEventListener("load",n.imageLoadedListener)})},t.prototype._decodeOnLoadVideo=function(e){return Wn(this,void 0,void 0,function(){return Xn(this,function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return n.sent(),[4,this.decodeOnce(e)];case 2:return[2,n.sent()]}})})},t.prototype._decodeOnLoadVideoContinuously=function(e,n){return Wn(this,void 0,void 0,function(){return Xn(this,function(r){switch(r.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return r.sent(),this.decodeContinuously(e,n),[2]}})})},t.prototype.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},t.prototype.prepareImageElement=function(e){var n;return typeof e=="undefined"&&(n=document.createElement("img"),n.width=200,n.height=200),typeof e=="string"&&(n=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(n=e),n},t.prototype.prepareVideoElement=function(e){var n;return!e&&typeof document!="undefined"&&(n=document.createElement("video"),n.width=200,n.height=200),typeof e=="string"&&(n=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(n=e),n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),n.setAttribute("playsinline","true"),n},t.prototype.decodeOnce=function(e,n,r){var i=this;n===void 0&&(n=!0),r===void 0&&(r=!0),this._stopAsyncDecode=!1;var o=function(a,s){if(i._stopAsyncDecode){s(new De("Video stream has ended before any code could be detected.")),i._stopAsyncDecode=void 0;return}try{var c=i.decode(e);a(c)}catch(d){var u=n&&d instanceof De,l=d instanceof qt||d instanceof Le,h=l&&r;if(u||h)return setTimeout(o,i._timeBetweenDecodingAttempts,a,s);s(d)}};return new Promise(function(a,s){return o(a,s)})},t.prototype.decodeContinuously=function(e,n){var r=this;this._stopContinuousDecode=!1;var i=function(){if(r._stopContinuousDecode){r._stopContinuousDecode=void 0;return}try{var o=r.decode(e);n(o,null),setTimeout(i,r.timeBetweenScansMillis)}catch(c){n(null,c);var a=c instanceof qt||c instanceof Le,s=c instanceof De;(a||s)&&setTimeout(i,r._timeBetweenDecodingAttempts)}};i()},t.prototype.decode=function(e){var n=this.createBinaryBitmap(e);return this.decodeBitmap(n)},t.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e),e instanceof HTMLVideoElement?this.drawFrameOnCanvas(e):this.drawImageOnCanvas(e);var n=this.getCaptureCanvas(e),r=new FW(n),i=new ub(r);return new cb(i)},t.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var n=this.getCaptureCanvas(e),r=void 0;try{r=n.getContext("2d",{willReadFrequently:!0})}catch{r=n.getContext("2d")}this.captureCanvasContext=r}return this.captureCanvasContext},t.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var n=this.createCaptureCanvas(e);this.captureCanvas=n}return this.captureCanvas},t.prototype.drawFrameOnCanvas=function(e,n,r){n===void 0&&(n={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),r===void 0&&(r=this.captureCanvasContext),r.drawImage(e,n.sx,n.sy,n.sWidth,n.sHeight,n.dx,n.dy,n.dWidth,n.dHeight)},t.prototype.drawImageOnCanvas=function(e,n,r){n===void 0&&(n={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),r===void 0&&(r=this.captureCanvasContext),r.drawImage(e,n.sx,n.sy,n.sWidth,n.sHeight,n.dx,n.dy,n.dWidth,n.dHeight)},t.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},t.prototype.createCaptureCanvas=function(e){if(typeof document=="undefined")return this._destroyCaptureCanvas(),null;var n=document.createElement("canvas"),r,i;return typeof e!="undefined"&&(e instanceof HTMLVideoElement?(r=e.videoWidth,i=e.videoHeight):e instanceof HTMLImageElement&&(r=e.naturalWidth||e.width,i=e.naturalHeight||e.height)),n.style.width=r+"px",n.style.height=i+"px",n.width=r,n.height=i,n},t.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(e){return e.stop()}),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()},t.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},t.prototype._destroyVideoElement=function(){!this.videoElement||(typeof this.videoEndedListener!="undefined"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener!="undefined"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener!="undefined"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},t.prototype._destroyImageElement=function(){!this.imageElement||(this.imageLoadedListener!==void 0&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},t.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},t.prototype.addVideoSource=function(e,n){try{e.srcObject=n}catch{e.src=URL.createObjectURL(n)}},t.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch{e.src=""}this.videoElement.removeAttribute("src")},t}(),Cn=function(){function t(e,n,r,i,o,a){r===void 0&&(r=n==null?0:8*n.length),a===void 0&&(a=Mt.currentTimeMillis()),this.text=e,this.rawBytes=n,this.numBits=r,this.resultPoints=i,this.format=o,this.timestamp=a,this.text=e,this.rawBytes=n,r==null?this.numBits=n==null?0:8*n.length:this.numBits=r,this.resultPoints=i,this.format=o,this.resultMetadata=null,a==null?this.timestamp=Mt.currentTimeMillis():this.timestamp=a}return t.prototype.getText=function(){return this.text},t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.getBarcodeFormat=function(){return this.format},t.prototype.getResultMetadata=function(){return this.resultMetadata},t.prototype.putMetadata=function(e,n){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(e,n)},t.prototype.putAllMetadata=function(e){e!==null&&(this.resultMetadata===null?this.resultMetadata=e:this.resultMetadata=new Map(e))},t.prototype.addResultPoints=function(e){var n=this.resultPoints;if(n===null)this.resultPoints=e;else if(e!==null&&e.length>0){var r=new Array(n.length+e.length);Mt.arraycopy(n,0,r,0,n.length),Mt.arraycopy(e,0,r,n.length,e.length),this.resultPoints=r}},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.toString=function(){return this.text},t}(),Xd;(function(t){t[t.AZTEC=0]="AZTEC",t[t.CODABAR=1]="CODABAR",t[t.CODE_39=2]="CODE_39",t[t.CODE_93=3]="CODE_93",t[t.CODE_128=4]="CODE_128",t[t.DATA_MATRIX=5]="DATA_MATRIX",t[t.EAN_8=6]="EAN_8",t[t.EAN_13=7]="EAN_13",t[t.ITF=8]="ITF",t[t.MAXICODE=9]="MAXICODE",t[t.PDF_417=10]="PDF_417",t[t.QR_CODE=11]="QR_CODE",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(Xd||(Xd={}));var Ke=Xd,Vd;(function(t){t[t.OTHER=0]="OTHER",t[t.ORIENTATION=1]="ORIENTATION",t[t.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",t[t.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",t[t.ISSUE_NUMBER=4]="ISSUE_NUMBER",t[t.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",t[t.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",t[t.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",t[t.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",t[t.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",t[t.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(Vd||(Vd={}));var Tn=Vd,ml=function(){function t(e,n,r,i,o,a){o===void 0&&(o=-1),a===void 0&&(a=-1),this.rawBytes=e,this.text=n,this.byteSegments=r,this.ecLevel=i,this.structuredAppendSequenceNumber=o,this.structuredAppendParity=a,this.numBits=e==null?0:8*e.length}return t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.setNumBits=function(e){this.numBits=e},t.prototype.getText=function(){return this.text},t.prototype.getByteSegments=function(){return this.byteSegments},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getErrorsCorrected=function(){return this.errorsCorrected},t.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},t.prototype.getErasures=function(){return this.erasures},t.prototype.setErasures=function(e){this.erasures=e},t.prototype.getOther=function(){return this.other},t.prototype.setOther=function(e){this.other=e},t.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},t.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},t.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},t}(),ls=function(){function t(){}return t.prototype.exp=function(e){return this.expTable[e]},t.prototype.log=function(e){if(e===0)throw new Ge;return this.logTable[e]},t.addOrSubtract=function(e,n){return e^n},t}(),Wi=function(){function t(e,n){if(n.length===0)throw new Ge;this.field=e;var r=n.length;if(r>1&&n[0]===0){for(var i=1;ir.length){var i=n;n=r,r=i}var o=new Int32Array(r.length),a=r.length-n.length;Mt.arraycopy(r,0,o,0,a);for(var s=a;s=e.getDegree()&&!i.isZero();){var s=i.getDegree()-e.getDegree(),c=n.multiply(i.getCoefficient(i.getDegree()),a),u=e.multiplyByMonomial(s,c),l=n.buildMonomial(s,c);r=r.addOrSubtract(l),i=i.addOrSubtract(u)}return[r,i]},t.prototype.toString=function(){for(var e="",n=this.getDegree();n>=0;n--){var r=this.getCoefficient(n);if(r!==0){if(r<0?(e+=" - ",r=-r):e.length>0&&(e+=" + "),n===0||r!==1){var i=this.field.log(r);i===0?e+="1":i===1?e+="a":(e+="a^",e+=i)}n!==0&&(n===1?e+="x":(e+="x^",e+=n))}}return e},t}(),LW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lb=function(t){LW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArithmeticException",e}(nr),CW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),li=function(t){CW(e,t);function e(n,r,i){var o=t.call(this)||this;o.primitive=n,o.size=r,o.generatorBase=i;for(var a=new Int32Array(r),s=1,c=0;c=r&&(s^=n,s&=r-1);o.expTable=a;for(var u=new Int32Array(r),c=0;c=(r/2|0);){var l=a,h=c;if(a=s,c=u,a.isZero())throw new Qc("r_{i-1} was zero");s=l;for(var d=o.getZero(),f=a.getCoefficient(a.getDegree()),p=o.inverse(f);s.getDegree()>=a.getDegree()&&!s.isZero();){var g=s.getDegree()-a.getDegree(),y=o.multiply(s.getCoefficient(s.getDegree()),p);d=d.addOrSubtract(o.buildMonomial(g,y)),s=s.addOrSubtract(a.multiplyByMonomial(g,y))}if(u=d.multiply(c).addOrSubtract(h),s.getDegree()>=a.getDegree())throw new Aa("Division algorithm failed to reduce polynomial?")}var R=u.getCoefficient(0);if(R===0)throw new Qc("sigmaTilde(0) was zero");var m=o.inverse(R),v=u.multiplyScalar(m),x=s.multiplyScalar(m);return[v,x]},t.prototype.findErrorLocations=function(e){var n=e.getDegree();if(n===1)return Int32Array.from([e.getCoefficient(1)]);for(var r=new Int32Array(n),i=0,o=this.field,a=1;a1,p,p+r-1),p+=r-1;else for(var g=r-1;g>=0;--g)f[p++]=(d&1<=8?t.readCode(e,n,8):t.readCode(e,n,r)<<8-r},t.convertBoolArrayToByteArray=function(e){for(var n=new Uint8Array((e.length+7)/8),r=0;r","?","[","]","{","}","CTRL_UL"],t.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],t}(),ft=function(){function t(){}return t.round=function(e){return isNaN(e)?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},t.distance=function(e,n,r,i){var o=e-r,a=n-i;return Math.sqrt(o*o+a*a)},t.sum=function(e){for(var n=0,r=0,i=e.length;r!==i;r++){var o=e[r];n+=o}return n},t}(),Yd=function(){function t(){}return t.floatToIntBits=function(e){return e},t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}(),Ve=function(){function t(e,n){this.x=e,this.y=n}return t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.equals=function(e){if(e instanceof t){var n=e;return this.x===n.x&&this.y===n.y}return!1},t.prototype.hashCode=function(){return 31*Yd.floatToIntBits(this.x)+Yd.floatToIntBits(this.y)},t.prototype.toString=function(){return"("+this.x+","+this.y+")"},t.orderBestPatterns=function(e){var n=this.distance(e[0],e[1]),r=this.distance(e[1],e[2]),i=this.distance(e[0],e[2]),o,a,s;if(r>=n&&r>=i?(a=e[0],o=e[1],s=e[2]):i>=r&&i>=n?(a=e[1],o=e[0],s=e[2]):(a=e[2],o=e[0],s=e[1]),this.crossProductZ(o,a,s)<0){var c=o;o=s,s=c}e[0]=o,e[1]=a,e[2]=s},t.distance=function(e,n){return ft.distance(e.x,e.y,n.x,n.y)},t.crossProductZ=function(e,n,r){var i=n.x,o=n.y;return(r.x-i)*(e.y-o)-(r.y-o)*(e.x-i)},t}(),Kp=function(){function t(e,n){this.bits=e,this.points=n}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}(),WW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),XW=function(t){WW(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r)||this;return s.compact=i,s.nbDatablocks=o,s.nbLayers=a,s}return e.prototype.getNbLayers=function(){return this.nbLayers},e.prototype.getNbDatablocks=function(){return this.nbDatablocks},e.prototype.isCompact=function(){return this.compact},e}(Kp),Bd=function(){function t(e,n,r,i){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),n==null&&(n=t.INIT_SIZE),r==null&&(r=e.getWidth()/2|0),i==null&&(i=e.getHeight()/2|0);var o=n/2|0;if(this.leftInit=r-o,this.rightInit=r+o,this.upInit=i-o,this.downInit=i+o,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new De}return t.prototype.detect=function(){for(var e=this.leftInit,n=this.rightInit,r=this.upInit,i=this.downInit,o=!1,a=!0,s=!1,c=!1,u=!1,l=!1,h=!1,d=this.width,f=this.height;a;){a=!1;for(var p=!0;(p||!c)&&n=d){o=!0;break}for(var g=!0;(g||!u)&&i=f){o=!0;break}for(var y=!0;(y||!l)&&e>=0;)y=this.containsBlackPoint(r,i,e,!1),y?(e--,a=!0,l=!0):l||e--;if(e<0){o=!0;break}for(var R=!0;(R||!h)&&r>=0;)R=this.containsBlackPoint(e,n,r,!0),R?(r--,a=!0,h=!0):h||r--;if(r<0){o=!0;break}a&&(s=!0)}if(!o&&s){for(var m=n-e,v=null,x=1;v===null&&xr||c<-1||c>i)throw new De;o=!1,s===-1?(n[a]=0,o=!0):s===r&&(n[a]=r-1,o=!0),c===-1?(n[a+1]=0,o=!0):c===i&&(n[a+1]=i-1,o=!0)}o=!0;for(var a=n.length-2;a>=0&&o;a-=2){var s=Math.floor(n[a]),c=Math.floor(n[a+1]);if(s<-1||s>r||c<-1||c>i)throw new De;o=!1,s===-1?(n[a]=0,o=!0):s===r&&(n[a]=r-1,o=!0),c===-1?(n[a+1]=0,o=!0):c===i&&(n[a+1]=i-1,o=!0)}},t}(),hb=function(){function t(e,n,r,i,o,a,s,c,u){this.a11=e,this.a21=n,this.a31=r,this.a12=i,this.a22=o,this.a32=a,this.a13=s,this.a23=c,this.a33=u}return t.quadrilateralToQuadrilateral=function(e,n,r,i,o,a,s,c,u,l,h,d,f,p,g,y){var R=t.quadrilateralToSquare(e,n,r,i,o,a,s,c),m=t.squareToQuadrilateral(u,l,h,d,f,p,g,y);return m.times(R)},t.prototype.transformPoints=function(e){for(var n=e.length,r=this.a11,i=this.a12,o=this.a13,a=this.a21,s=this.a22,c=this.a23,u=this.a31,l=this.a32,h=this.a33,d=0;d>1&127):(i<<=10,i+=(a>>2&31<<5)+(a>>1&31))}var s=this.getCorrectedParameterData(i,this.compact);this.compact?(this.nbLayers=(s>>6)+1,this.nbDataBlocks=(s&63)+1):(this.nbLayers=(s>>11)+1,this.nbDataBlocks=(s&2047)+1)},t.prototype.getRotation=function(e,n){var r=0;e.forEach(function(o,a,s){var c=(o>>n-2<<1)+(o&1);r=(r<<3)+c}),r=((r&1)<<11)+(r>>1);for(var i=0;i<4;i++)if($t.bitCount(r^this.EXPECTED_CORNER_BITS[i])<=2)return i;throw new De},t.prototype.getCorrectedParameterData=function(e,n){var r,i;n?(r=7,i=2):(r=10,i=4);for(var o=r-i,a=new Int32Array(r),s=r-1;s>=0;--s)a[s]=e&15,e>>=4;try{var c=new Rl(li.AZTEC_PARAM);c.decode(a,o)}catch{throw new De}for(var u=0,s=0;s2){var h=this.distancePoint(l,s)*this.nbCenterLayers/(this.distancePoint(o,n)*(this.nbCenterLayers+2));if(h<.75||h>1.25||!this.isWhiteOrBlackRectangle(s,c,u,l))break}n=s,r=c,i=u,o=l,a=!a}if(this.nbCenterLayers!==5&&this.nbCenterLayers!==7)throw new De;this.compact=this.nbCenterLayers===5;var d=new Ve(n.getX()+.5,n.getY()-.5),f=new Ve(r.getX()+.5,r.getY()+.5),p=new Ve(i.getX()-.5,i.getY()+.5),g=new Ve(o.getX()-.5,o.getY()-.5);return this.expandSquare([d,f,p,g],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},t.prototype.getMatrixCenter=function(){var e,n,r,i;try{var o=new Bd(this.image).detect();e=o[0],n=o[1],r=o[2],i=o[3]}catch{var a=this.image.getWidth()/2,s=this.image.getHeight()/2;e=this.getFirstDifferent(new Qn(a+7,s-7),!1,1,-1).toResultPoint(),n=this.getFirstDifferent(new Qn(a+7,s+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Qn(a-7,s+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new Qn(a-7,s-7),!1,-1,-1).toResultPoint()}var c=ft.round((e.getX()+i.getX()+n.getX()+r.getX())/4),u=ft.round((e.getY()+i.getY()+n.getY()+r.getY())/4);try{var o=new Bd(this.image,15,c,u).detect();e=o[0],n=o[1],r=o[2],i=o[3]}catch{e=this.getFirstDifferent(new Qn(c+7,u-7),!1,1,-1).toResultPoint(),n=this.getFirstDifferent(new Qn(c+7,u+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Qn(c-7,u+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new Qn(c-7,u-7),!1,-1,-1).toResultPoint()}return c=ft.round((e.getX()+i.getX()+n.getX()+r.getX())/4),u=ft.round((e.getY()+i.getY()+n.getY()+r.getY())/4),new Qn(c,u)},t.prototype.getMatrixCornerPoints=function(e){return this.expandSquare(e,2*this.nbCenterLayers,this.getDimension())},t.prototype.sampleGrid=function(e,n,r,i,o){var a=Hp.getInstance(),s=this.getDimension(),c=s/2-this.nbCenterLayers,u=s/2+this.nbCenterLayers;return a.sampleGrid(e,s,s,c,c,u,c,u,u,c,u,n.getX(),n.getY(),r.getX(),r.getY(),i.getX(),i.getY(),o.getX(),o.getY())},t.prototype.sampleLine=function(e,n,r){for(var i=0,o=this.distanceResultPoint(e,n),a=o/r,s=e.getX(),c=e.getY(),u=a*(n.getX()-e.getX())/o,l=a*(n.getY()-e.getY())/o,h=0;h.1&&d<.9?0:d<=.1===u?1:-1},t.prototype.getFirstDifferent=function(e,n,r,i){for(var o=e.getX()+r,a=e.getY()+i;this.isValid(o,a)&&this.image.get(o,a)===n;)o+=r,a+=i;for(o-=r,a-=i;this.isValid(o,a)&&this.image.get(o,a)===n;)o+=r;for(o-=r;this.isValid(o,a)&&this.image.get(o,a)===n;)a+=i;return a-=i,new Qn(o,a)},t.prototype.expandSquare=function(e,n,r){var i=r/(2*n),o=e[0].getX()-e[2].getX(),a=e[0].getY()-e[2].getY(),s=(e[0].getX()+e[2].getX())/2,c=(e[0].getY()+e[2].getY())/2,u=new Ve(s+i*o,c+i*a),l=new Ve(s-i*o,c-i*a);o=e[1].getX()-e[3].getX(),a=e[1].getY()-e[3].getY(),s=(e[1].getX()+e[3].getX())/2,c=(e[1].getY()+e[3].getY())/2;var h=new Ve(s+i*o,c+i*a),d=new Ve(s-i*o,c-i*a),f=[u,h,l,d];return f},t.prototype.isValid=function(e,n){return e>=0&&e0&&n>(a?8:5)),c;a?c=i:c=15;for(var u=Math.trunc(i/2),l=0;l=i)break;try{o=e.getBlackRow(f,o)}catch{continue}for(var p=function(m){if(m===1&&(o.reverse(),n&&n.get(Lt.NEED_RESULT_POINT_CALLBACK)===!0)){var v=new Map;n.forEach(function(E,N){return v.set(N,E)}),v.delete(Lt.NEED_RESULT_POINT_CALLBACK),n=v}try{var x=g.decodeRow(f,o,n);if(m===1){x.putMetadata(Tn.ORIENTATION,180);var O=x.getResultPoints();O!==null&&(O[0]=new Ve(r-O[0].getX()-1,O[0].getY()),O[1]=new Ve(r-O[1].getX()-1,O[1].getY()))}return{value:x}}catch{}},g=this,y=0;y<2;y++){var R=p(y);if(typeof R=="object")return R.value}}throw new De},t.recordPattern=function(e,n,r){for(var i=r.length,o=0;o=a)throw new De;for(var s=!e.get(n),c=0,u=n;u0&&i>=0;)e.get(--n)!==o&&(i--,o=!o);if(i>=0)throw new De;t.recordPattern(e,n+1,r)},t.patternMatchVariance=function(e,n,r){for(var i=e.length,o=0,a=0,s=0;sd?h-d:d-h;if(f>r)return Number.POSITIVE_INFINITY;u+=f}return u/o},t}(),kW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),om=function(t){kW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.findStartPattern=function(n){for(var r=n.getSize(),i=n.getNextSet(0),o=0,a=Int32Array.from([0,0,0,0,0,0]),s=i,c=!1,u=6,l=i;l=0&&n.isRange(Math.max(0,s-(l-s)/2),s,!1))return Int32Array.from([s,l,d]);s+=a[0]+a[1],a=a.slice(2,a.length),a[o-1]=0,a[o]=0,o--}else o++;a[o]=1,c=!c}throw new De},e.decodeCode=function(n,r,i){cn.recordPattern(n,i,r);for(var o=e.MAX_AVG_VARIANCE,a=-1,s=0;s=0)return a;throw new De},e.prototype.decodeRow=function(n,r,i){var o=i&&i.get(Lt.ASSUME_GS1)===!0,a=e.findStartPattern(r),s=a[2],c=0,u=new Uint8Array(20);u[c++]=s;var l;switch(s){case e.CODE_START_A:l=e.CODE_CODE_A;break;case e.CODE_START_B:l=e.CODE_CODE_B;break;case e.CODE_START_C:l=e.CODE_CODE_C;break;default:throw new Le}for(var h=!1,d=!1,f="",p=a[0],g=a[1],y=Int32Array.from([0,0,0,0,0,0]),R=0,m=0,v=s,x=0,O=!0,E=!1,N=!1;!h;){var M=d;switch(d=!1,R=m,m=e.decodeCode(r,y,g),u[c++]=m,m!==e.CODE_STOP&&(O=!0),m!==e.CODE_STOP&&(x++,v+=x*m),p=g,g+=y.reduce(function(X,V){return X+V},0),m){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new Le}switch(l){case e.CODE_CODE_A:if(m<64)N===E?f+=String.fromCharCode(" ".charCodeAt(0)+m):f+=String.fromCharCode(" ".charCodeAt(0)+m+128),N=!1;else if(m<96)N===E?f+=String.fromCharCode(m-64):f+=String.fromCharCode(m+64),N=!1;else switch(m!==e.CODE_STOP&&(O=!1),m){case e.CODE_FNC_1:o&&(f.length===0?f+="]C1":f+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!E&&N?(E=!0,N=!1):E&&N?(E=!1,N=!1):N=!0;break;case e.CODE_SHIFT:d=!0,l=e.CODE_CODE_B;break;case e.CODE_CODE_B:l=e.CODE_CODE_B;break;case e.CODE_CODE_C:l=e.CODE_CODE_C;break;case e.CODE_STOP:h=!0;break}break;case e.CODE_CODE_B:if(m<96)N===E?f+=String.fromCharCode(" ".charCodeAt(0)+m):f+=String.fromCharCode(" ".charCodeAt(0)+m+128),N=!1;else switch(m!==e.CODE_STOP&&(O=!1),m){case e.CODE_FNC_1:o&&(f.length===0?f+="]C1":f+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!E&&N?(E=!0,N=!1):E&&N?(E=!1,N=!1):N=!0;break;case e.CODE_SHIFT:d=!0,l=e.CODE_CODE_A;break;case e.CODE_CODE_A:l=e.CODE_CODE_A;break;case e.CODE_CODE_C:l=e.CODE_CODE_C;break;case e.CODE_STOP:h=!0;break}break;case e.CODE_CODE_C:if(m<100)m<10&&(f+="0"),f+=m;else switch(m!==e.CODE_STOP&&(O=!1),m){case e.CODE_FNC_1:o&&(f.length===0?f+="]C1":f+=String.fromCharCode(29));break;case e.CODE_CODE_A:l=e.CODE_CODE_A;break;case e.CODE_CODE_B:l=e.CODE_CODE_B;break;case e.CODE_STOP:h=!0;break}break}M&&(l=l===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var _=g-p;if(g=r.getNextUnset(g),!r.isRange(g,Math.min(r.getSize(),g+(g-p)/2),!1))throw new De;if(v-=x*R,v%103!==R)throw new qt;var B=f.length;if(B===0)throw new De;B>0&&O&&(l===e.CODE_CODE_C?f=f.substring(0,B-2):f=f.substring(0,B-1));for(var q=(a[1]+a[0])/2,T=p+_/2,I=u.length,b=new Uint8Array(I),P=0;P=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},am=function(t){QW(e,t);function e(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=t.call(this)||this;return i.usingCheckDigit=n,i.extendedMode=r,i.decodeRowResult="",i.counters=new Int32Array(9),i}return e.prototype.decodeRow=function(n,r,i){var o,a,s,c,u=this.counters;u.fill(0),this.decodeRowResult="";var l=e.findAsteriskPattern(r,u),h=r.getNextSet(l[1]),d=r.getSize(),f,p;do{e.recordPattern(r,h,u);var g=e.toNarrowWidePattern(u);if(g<0)throw new De;f=e.patternToChar(g),this.decodeRowResult+=f,p=h;try{for(var y=(o=void 0,zh(u)),R=y.next();!R.done;R=y.next()){var m=R.value;h+=m}}catch(I){o={error:I}}finally{try{R&&!R.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}h=r.getNextSet(h)}while(f!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var v=0;try{for(var x=zh(u),O=x.next();!O.done;O=x.next()){var m=O.value;v+=m}}catch(I){s={error:I}}finally{try{O&&!O.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}var E=h-p-v;if(h!==d&&E*2a&&(c=h)}}catch(g){r={error:g}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}a=c,s=0;for(var d=0,f=0,p=0;pa&&(f|=1<0;p++){var h=n[p];if(h>a&&(s--,h*2>=d))return-1}return f}}while(s>3);return-1},e.patternToChar=function(n){for(var r=0;r="A"&&s<="Z")c=String.fromCharCode(s.charCodeAt(0)+32);else throw new Le;break;case"$":if(s>="A"&&s<="Z")c=String.fromCharCode(s.charCodeAt(0)-64);else throw new Le;break;case"%":if(s>="A"&&s<="E")c=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")c=String.fromCharCode(s.charCodeAt(0)-11);else if(s>="K"&&s<="O")c=String.fromCharCode(s.charCodeAt(0)+16);else if(s>="P"&&s<="T")c=String.fromCharCode(s.charCodeAt(0)+43);else if(s==="U")c="\0";else if(s==="V")c="@";else if(s==="W")c="`";else if(s==="X"||s==="Y"||s==="Z")c="\x7F";else throw new Le;break;case"/":if(s>="A"&&s<="O")c=String.fromCharCode(s.charCodeAt(0)-32);else if(s==="Z")c=":";else throw new Le;break}i+=c,o++}else i+=a}return i},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],e.ASTERISK_ENCODING=148,e}(cn),KW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$h=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sm=function(t){KW(e,t);function e(){var n=t.call(this)||this;return n.decodeRowResult="",n.counters=new Int32Array(6),n}return e.prototype.decodeRow=function(n,r,i){var o,a,s,c,u=this.findAsteriskPattern(r),l=r.getNextSet(u[1]),h=r.getSize(),d=this.counters;d.fill(0),this.decodeRowResult="";var f,p;do{e.recordPattern(r,l,d);var g=this.toPattern(d);if(g<0)throw new De;f=this.patternToChar(g),this.decodeRowResult+=f,p=l;try{for(var y=(o=void 0,$h(d)),R=y.next();!R.done;R=y.next()){var m=R.value;l+=m}}catch(_){o={error:_}}finally{try{R&&!R.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}l=r.getNextSet(l)}while(f!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var v=0;try{for(var x=$h(d),O=x.next();!O.done;O=x.next()){var m=O.value;v+=m}}catch(_){s={error:_}}finally{try{O&&!O.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}if(l===h||!r.get(l))throw new De;if(this.decodeRowResult.length<2)throw new De;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var E=this.decodeExtended(this.decodeRowResult),N=(u[1]+u[0])/2,M=p+v/2;return new Cn(E,null,0,[new Ve(N,n),new Ve(M,n)],Ke.CODE_93,new Date().getTime())},e.prototype.findAsteriskPattern=function(n){var r=n.getSize(),i=n.getNextSet(0);this.counters.fill(0);for(var o=this.counters,a=i,s=!1,c=o.length,u=0,l=i;l4)return-1;if((h&1)===0)for(var f=0;f="a"&&a<="d"){if(o>=r-1)throw new Le;var s=n.charAt(o+1),c="\0";switch(a){case"d":if(s>="A"&&s<="Z")c=String.fromCharCode(s.charCodeAt(0)+32);else throw new Le;break;case"a":if(s>="A"&&s<="Z")c=String.fromCharCode(s.charCodeAt(0)-64);else throw new Le;break;case"b":if(s>="A"&&s<="E")c=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")c=String.fromCharCode(s.charCodeAt(0)-11);else if(s>="K"&&s<="O")c=String.fromCharCode(s.charCodeAt(0)+16);else if(s>="P"&&s<="T")c=String.fromCharCode(s.charCodeAt(0)+43);else if(s==="U")c="\0";else if(s==="V")c="@";else if(s==="W")c="`";else if(s>="X"&&s<="Z")c=String.fromCharCode(127);else throw new Le;break;case"c":if(s>="A"&&s<="O")c=String.fromCharCode(s.charCodeAt(0)-32);else if(s==="Z")c=":";else throw new Le;break}i+=c,o++}else i+=a}return i},e.prototype.checkChecksums=function(n){var r=n.length;this.checkOneChecksum(n,r-2,20),this.checkOneChecksum(n,r-1,15)},e.prototype.checkOneChecksum=function(n,r,i){for(var o=1,a=0,s=r-1;s>=0;s--)a+=o*e.ALPHABET_STRING.indexOf(n.charAt(s)),++o>i&&(o=1);if(n.charAt(r)!==e.ALPHABET_STRING[a%47])throw new qt},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",e.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350],e.ASTERISK_ENCODING=e.CHARACTER_ENCODINGS[47],e}(cn),HW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),GW=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},cm=function(t){HW(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.narrowLineWidth=-1,n}return e.prototype.decodeRow=function(n,r,i){var o,a,s=this.decodeStart(r),c=this.decodeEnd(r),u=new rt;e.decodeMiddle(r,s[1],c[0],u);var l=u.toString(),h=null;i!=null&&(h=i.get(Lt.ALLOWED_LENGTHS)),h==null&&(h=e.DEFAULT_ALLOWED_LENGTHS);var d=l.length,f=!1,p=0;try{for(var g=GW(h),y=g.next();!y.done;y=g.next()){var R=y.value;if(d===R){f=!0;break}R>p&&(p=R)}}catch(x){o={error:x}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}if(!f&&d>p&&(f=!0),!f)throw new Le;var m=[new Ve(s[1],n),new Ve(c[0],n)],v=new Cn(l,null,0,m,Ke.ITF,new Date().getTime());return v},e.decodeMiddle=function(n,r,i,o){var a=new Int32Array(10),s=new Int32Array(5),c=new Int32Array(5);for(a.fill(0),s.fill(0),c.fill(0);r0&&o>=0&&!n.get(o);o--)i--;if(i!==0)throw new De},e.skipWhiteSpace=function(n){var r=n.getSize(),i=n.getNextSet(0);if(i===r)throw new De;return i},e.prototype.decodeEnd=function(n){n.reverse();try{var r=e.skipWhiteSpace(n),i=void 0;try{i=e.findGuardPattern(n,r,e.END_PATTERN_REVERSED[0])}catch(a){a instanceof De&&(i=e.findGuardPattern(n,r,e.END_PATTERN_REVERSED[1]))}this.validateQuietZone(n,i[0]);var o=i[0];return i[0]=n.getSize()-i[1],i[1]=n.getSize()-o,i}finally{n.reverse()}},e.findGuardPattern=function(n,r,i){var o=i.length,a=new Int32Array(o),s=n.getSize(),c=!1,u=0,l=r;a.fill(0);for(var h=r;h=0)return i%10;throw new De},e.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],e.MAX_AVG_VARIANCE=.38,e.MAX_INDIVIDUAL_VARIANCE=.5,e.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],e.START_PATTERN=Int32Array.from([1,1,1,1]),e.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],e}(cn),JW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ta=function(t){JW(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.decodeRowStringBuffer="",n}return e.findStartGuardPattern=function(n){for(var r=!1,i,o=0,a=Int32Array.from([0,0,0]);!r;){a=Int32Array.from([0,0,0]),i=e.findGuardPattern(n,o,!1,this.START_END_PATTERN,a);var s=i[0];o=i[1];var c=s-(o-s);c>=0&&(r=n.isRange(c,s,!1))}return i},e.checkChecksum=function(n){return e.checkStandardUPCEANChecksum(n)},e.checkStandardUPCEANChecksum=function(n){var r=n.length;if(r===0)return!1;var i=parseInt(n.charAt(r-1),10);return e.getStandardUPCEANChecksum(n.substring(0,r-1))===i},e.getStandardUPCEANChecksum=function(n){for(var r=n.length,i=0,o=r-1;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new Le;i+=a}i*=3;for(var o=r-2;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new Le;i+=a}return(1e3-i)%10},e.decodeEnd=function(n,r){return e.findGuardPattern(n,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e.findGuardPatternWithoutCounters=function(n,r,i,o){return this.findGuardPattern(n,r,i,o,new Int32Array(o.length))},e.findGuardPattern=function(n,r,i,o,a){var s=n.getSize();r=i?n.getNextUnset(r):n.getNextSet(r);for(var c=0,u=r,l=o.length,h=i,d=r;d=0)return s;throw new De},e.MAX_AVG_VARIANCE=.48,e.MAX_INDIVIDUAL_VARIANCE=.7,e.START_END_PATTERN=Int32Array.from([1,1,1]),e.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),e.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],e}(cn),zW=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$W=function(){function t(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,n,r){var i=this.decodeRowStringBuffer,o=this.decodeMiddle(n,r,i),a=i.toString(),s=t.parseExtensionString(a),c=[new Ve((r[0]+r[1])/2,e),new Ve(o,e)],u=new Cn(a,null,0,c,Ke.UPC_EAN_EXTENSION,new Date().getTime());return s!=null&&u.putAllMetadata(s),u},t.prototype.decodeMiddle=function(e,n,r){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),c=n[1],u=0,l=0;l<5&&c=10&&(u|=1<<4-l),l!==4&&(c=e.getNextSet(c),c=e.getNextUnset(c))}if(r.length!==5)throw new De;var g=this.determineCheckDigit(u);if(t.extensionChecksum(r.toString())!==g)throw new De;return c},t.extensionChecksum=function(e){for(var n=e.length,r=0,i=n-2;i>=0;i-=2)r+=e.charAt(i).charCodeAt(0)-"0".charCodeAt(0);r*=3;for(var i=n-1;i>=0;i-=2)r+=e.charAt(i).charCodeAt(0)-"0".charCodeAt(0);return r*=3,r%10},t.prototype.determineCheckDigit=function(e){for(var n=0;n<10;n++)if(e===this.CHECK_DIGIT_ENCODINGS[n])return n;throw new De},t.parseExtensionString=function(e){if(e.length!==5)return null;var n=t.parseExtension5String(e);return n==null?null:new Map([[Tn.SUGGESTED_PRICE,n]])},t.parseExtension5String=function(e){var n;switch(e.charAt(0)){case"0":n="\xA3";break;case"5":n="$";break;case"9":switch(e){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}n="";break;default:n="";break}var r=parseInt(e.substring(1)),i=(r/100).toString(),o=r%100,a=o<10?"0"+o:o.toString();return n+i+"."+a},t}(),jW=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},qW=function(){function t(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,n,r){var i=this.decodeRowStringBuffer,o=this.decodeMiddle(n,r,i),a=i.toString(),s=t.parseExtensionString(a),c=[new Ve((r[0]+r[1])/2,e),new Ve(o,e)],u=new Cn(a,null,0,c,Ke.UPC_EAN_EXTENSION,new Date().getTime());return s!=null&&u.putAllMetadata(s),u},t.prototype.decodeMiddle=function(e,n,r){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),c=n[1],u=0,l=0;l<2&&c=10&&(u|=1<<1-l),l!==1&&(c=e.getNextSet(c),c=e.getNextUnset(c))}if(r.length!==2)throw new De;if(parseInt(r.toString())%4!==u)throw new De;return c},t.parseExtensionString=function(e){return e.length!==2?null:new Map([[Tn.ISSUE_NUMBER,parseInt(e)]])},t}(),eX=function(){function t(){}return t.decodeRow=function(e,n,r){var i=Ta.findGuardPattern(n,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var o=new $W;return o.decodeRow(e,n,i)}catch{var a=new qW;return a.decodeRow(e,n,i)}},t.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),t}(),tX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),on=function(t){tX(e,t);function e(){var n=t.call(this)||this;n.decodeRowStringBuffer="",e.L_AND_G_PATTERNS=e.L_PATTERNS.map(function(s){return Int32Array.from(s)});for(var r=10;r<20;r++){for(var i=e.L_PATTERNS[r-10],o=new Int32Array(i.length),a=0;a=r.getSize()||!r.isRange(p,g,!1))throw new De;var y=l.toString();if(y.length<8)throw new Le;if(!e.checkChecksum(y))throw new qt;var R=(o[1]+o[0])/2,m=(d[1]+d[0])/2,v=this.getBarcodeFormat(),x=[new Ve(R,n),new Ve(m,n)],O=new Cn(y,null,0,x,v,new Date().getTime()),E=0;try{var N=eX.decodeRow(n,r,d[1]);O.putMetadata(Tn.UPC_EAN_EXTENSION,N.getText()),O.putAllMetadata(N.getResultMetadata()),O.addResultPoints(N.getResultPoints()),E=N.getText().length}catch{}var M=i==null?null:i.get(Lt.ALLOWED_EAN_EXTENSIONS);if(M!=null){var _=!1;for(var B in M)if(E.toString()===B){_=!0;break}if(!_)throw new De}return v===Ke.EAN_13||Ke.UPC_A,O},e.checkChecksum=function(n){return e.checkStandardUPCEANChecksum(n)},e.checkStandardUPCEANChecksum=function(n){var r=n.length;if(r===0)return!1;var i=parseInt(n.charAt(r-1),10);return e.getStandardUPCEANChecksum(n.substring(0,r-1))===i},e.getStandardUPCEANChecksum=function(n){for(var r=n.length,i=0,o=r-1;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new Le;i+=a}i*=3;for(var o=r-2;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new Le;i+=a}return(1e3-i)%10},e.decodeEnd=function(n,r){return e.findGuardPattern(n,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e}(Ta),nX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),um=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Zd=function(t){nX(e,t);function e(){var n=t.call(this)||this;return n.decodeMiddleCounters=Int32Array.from([0,0,0,0]),n}return e.prototype.decodeMiddle=function(n,r,i){var o,a,s,c,u=this.decodeMiddleCounters;u[0]=0,u[1]=0,u[2]=0,u[3]=0;for(var l=n.getSize(),h=r[1],d=0,f=0;f<6&&h=10&&(d|=1<<5-f)}i=e.determineFirstDigit(i,d);var m=on.findGuardPattern(n,h,!0,on.MIDDLE_PATTERN,new Int32Array(on.MIDDLE_PATTERN.length).fill(0));h=m[1];for(var f=0;f<6&&h=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},hm=function(t){rX(e,t);function e(){var n=t.call(this)||this;return n.decodeMiddleCounters=Int32Array.from([0,0,0,0]),n}return e.prototype.decodeMiddle=function(n,r,i){var o,a,s,c,u=this.decodeMiddleCounters;u[0]=0,u[1]=0,u[2]=0,u[3]=0;for(var l=n.getSize(),h=r[1],d=0;d<4&&h=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fm=function(t){oX(e,t);function e(){var n=t.call(this)||this;return n.decodeMiddleCounters=new Int32Array(4),n}return e.prototype.decodeMiddle=function(n,r,i){var o,a,s=this.decodeMiddleCounters.map(function(y){return y});s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var c=n.getSize(),u=r[1],l=0,h=0;h<6&&u=10&&(l|=1<<5-h)}return e.determineNumSysAndCheckDigit(new rt(i),l),u},e.prototype.decodeEnd=function(n,r){return e.findGuardPatternWithoutCounters(n,r,!0,e.MIDDLE_END_PATTERN)},e.prototype.checkChecksum=function(n){return on.checkChecksum(e.convertUPCEtoUPCA(n))},e.determineNumSysAndCheckDigit=function(n,r){for(var i=0;i<=1;i++)for(var o=0;o<10;o++)if(r===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[i][o]){n.insert(0,"0"+i),n.append("0"+o);return}throw De.getNotFoundInstance()},e.prototype.getBarcodeFormat=function(){return Ke.UPC_E},e.convertUPCEtoUPCA=function(n){var r=n.slice(1,7).split("").map(function(a){return a.charCodeAt(0)}),i=new rt;i.append(n.charAt(0));var o=r[5];switch(o){case 0:case 1:case 2:i.appendChars(r,0,2),i.append(o),i.append("0000"),i.appendChars(r,2,3);break;case 3:i.appendChars(r,0,3),i.append("00000"),i.appendChars(r,3,2);break;case 4:i.appendChars(r,0,4),i.append("00000"),i.append(r[4]);break;default:i.appendChars(r,0,5),i.append("0000"),i.append(o);break}return n.length>=8&&i.append(n.charAt(7)),i.toString()},e.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],e}(on),sX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},jh=function(t){sX(e,t);function e(n){var r=t.call(this)||this,i=n==null?null:n.get(Lt.POSSIBLE_FORMATS),o=[];return i!=null&&(i.indexOf(Ke.EAN_13)>-1&&o.push(new Zd),i.indexOf(Ke.UPC_A)>-1&&o.push(new dm),i.indexOf(Ke.EAN_8)>-1&&o.push(new hm),i.indexOf(Ke.UPC_E)>-1&&o.push(new fm)),o.length===0&&(o.push(new Zd),o.push(new dm),o.push(new hm),o.push(new fm)),r.readers=o,r}return e.prototype.decodeRow=function(n,r,i){var o,a;try{for(var s=pm(this.readers),c=s.next();!c.done;c=s.next()){var u=c.value;try{var l=u.decodeRow(n,r,i),h=l.getBarcodeFormat()===Ke.EAN_13&&l.getText().charAt(0)==="0",d=i==null?null:i.get(Lt.POSSIBLE_FORMATS),f=d==null||d.includes(Ke.UPC_A);if(h&&f){var p=l.getRawBytes(),g=new Cn(l.getText().substring(1),p,p?p.length:null,l.getResultPoints(),Ke.UPC_A);return g.putAllMetadata(l.getResultMetadata()),g}return l}catch{}}}catch(y){o={error:y}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}throw new De},e.prototype.reset=function(){var n,r;try{for(var i=pm(this.readers),o=i.next();!o.done;o=i.next()){var a=o.value;a.reset()}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(cn),cX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uX=function(t){cX(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},n}return e.prototype.decodeRow=function(n,r,i){var o=this.getValidRowData(r);if(!o)throw new De;var a=this.codaBarDecodeRow(o.row);if(!a)throw new De;return new Cn(a,null,0,[new Ve(o.left,n),new Ve(o.right,n)],Ke.CODABAR,new Date().getTime())},e.prototype.getValidRowData=function(n){var r=n.toArray(),i=r.indexOf(!0);if(i===-1)return null;var o=r.lastIndexOf(!0);if(o<=i)return null;r=r.slice(i,o+1);for(var a=[],s=r[0],c=1,u=1;u0;){var o=n.splice(0,8).splice(0,7),a=o.map(function(c){return c=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},no=function(t){lX(e,t);function e(){var n=t.call(this)||this;return n.decodeFinderCounters=new Int32Array(4),n.dataCharacterCounters=new Int32Array(8),n.oddRoundingErrors=new Array(4),n.evenRoundingErrors=new Array(4),n.oddCounts=new Array(n.dataCharacterCounters.length/2),n.evenCounts=new Array(n.dataCharacterCounters.length/2),n}return e.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},e.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},e.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},e.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},e.prototype.getOddCounts=function(){return this.oddCounts},e.prototype.getEvenCounts=function(){return this.evenCounts},e.prototype.parseFinderValue=function(n,r){for(var i=0;io&&(o=r[a],i=a);n[i]++},e.decrement=function(n,r){for(var i=0,o=r[0],a=1;a=e.MIN_FINDER_PATTERN_RATIO&&s<=e.MAX_FINDER_PATTERN_RATIO){var c=Number.MAX_SAFE_INTEGER,u=Number.MIN_SAFE_INTEGER;try{for(var l=hX(n),h=l.next();!h.done;h=l.next()){var d=h.value;d>u&&(u=d),d=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Jo=function(){function t(){}return t.getRSSvalue=function(e,n,r){var i,o,a=0;try{for(var s=dX(e),c=s.next();!c.done;c=s.next()){var u=c.value;a+=u}}catch(m){i={error:m}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}for(var l=0,h=0,d=e.length,f=0;f=d-f-1&&(g-=t.combins(a-p-(d-f),d-f-2)),d-f-1>1){for(var y=0,R=a-p-(d-f-2);R>n;R--)y+=t.combins(a-p-R-1,d-f-3);g-=y*(d-1-f)}else a-p>n&&g--;l+=g}a-=p}return l},t.combins=function(e,n){var r,i;e-n>n?(i=n,r=e-n):(i=e-n,r=n);for(var o=1,a=1,s=e;s>r;s--)o*=s,a<=i&&(o/=a,a++);for(;a<=i;)o/=a,a++;return o},t}(),fX=function(){function t(){}return t.buildBitArray=function(e){var n=e.length*2-1;e[e.length-1].getRightChar()==null&&(n-=1);for(var r=12*n,i=new Jn(r),o=0,a=e[0],s=a.getRightChar().getValue(),c=11;c>=0;--c)(s&1<=0;--h)(l&1<=0;--h)(d&1<10||i<0||i>10)throw new Le;return o.firstDigit=r,o.secondDigit=i,o}return e.prototype.getFirstDigit=function(){return this.firstDigit},e.prototype.getSecondDigit=function(){return this.secondDigit},e.prototype.getValue=function(){return this.firstDigit*10+this.secondDigit},e.prototype.isFirstDigitFNC1=function(){return this.firstDigit===e.FNC1},e.prototype.isSecondDigitFNC1=function(){return this.secondDigit===e.FNC1},e.prototype.isAnyFNC1=function(){return this.firstDigit===e.FNC1||this.secondDigit===e.FNC1},e.FNC1=10,e}(Gp),Kc=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},RX=function(){function t(){}return t.parseFieldsInGeneralPurpose=function(e){var n,r,i,o,a,s,c,u;if(!e)return null;if(e.length<2)throw new De;var l=e.substring(0,2);try{for(var h=Kc(t.TWO_DIGIT_DATA_LENGTH),d=h.next();!d.done;d=h.next()){var f=d.value;if(f[0]===l)return f[1]===t.VARIABLE_LENGTH?t.processVariableAI(2,f[2],e):t.processFixedAI(2,f[1],e)}}catch(E){n={error:E}}finally{try{d&&!d.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}if(e.length<3)throw new De;var p=e.substring(0,3);try{for(var g=Kc(t.THREE_DIGIT_DATA_LENGTH),y=g.next();!y.done;y=g.next()){var f=y.value;if(f[0]===p)return f[1]===t.VARIABLE_LENGTH?t.processVariableAI(3,f[2],e):t.processFixedAI(3,f[1],e)}}catch(E){i={error:E}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var R=Kc(t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),m=R.next();!m.done;m=R.next()){var f=m.value;if(f[0]===p)return f[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,f[2],e):t.processFixedAI(4,f[1],e)}}catch(E){a={error:E}}finally{try{m&&!m.done&&(s=R.return)&&s.call(R)}finally{if(a)throw a.error}}if(e.length<4)throw new De;var v=e.substring(0,4);try{for(var x=Kc(t.FOUR_DIGIT_DATA_LENGTH),O=x.next();!O.done;O=x.next()){var f=O.value;if(f[0]===v)return f[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,f[2],e):t.processFixedAI(4,f[1],e)}}catch(E){c={error:E}}finally{try{O&&!O.done&&(u=x.return)&&u.call(x)}finally{if(c)throw c.error}}throw new De},t.processFixedAI=function(e,n,r){if(r.lengththis.information.getSize())return e+4<=this.information.getSize();for(var n=e;nthis.information.getSize()){var n=this.extractNumericValueFromBitArray(e,4);return n===0?new Bo(this.information.getSize(),Bo.FNC1,Bo.FNC1):new Bo(this.information.getSize(),n-1,Bo.FNC1)}var r=this.extractNumericValueFromBitArray(e,7),i=(r-8)/11,o=(r-8)%11;return new Bo(e+7,i,o)},t.prototype.extractNumericValueFromBitArray=function(e,n){return t.extractNumericValueFromBitArray(this.information,e,n)},t.extractNumericValueFromBitArray=function(e,n,r){for(var i=0,o=0;othis.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(e,5);if(n>=5&&n<16)return!0;if(e+7>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(e,7);if(r>=64&&r<116)return!0;if(e+8>this.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(e,8);return i>=232&&i<253},t.prototype.decodeIsoIec646=function(e){var n=this.extractNumericValueFromBitArray(e,5);if(n===15)return new Or(e+5,Or.FNC1);if(n>=5&&n<15)return new Or(e+5,"0"+(n-5));var r=this.extractNumericValueFromBitArray(e,7);if(r>=64&&r<90)return new Or(e+7,""+(r+1));if(r>=90&&r<116)return new Or(e+7,""+(r+7));var i=this.extractNumericValueFromBitArray(e,8),o;switch(i){case 232:o="!";break;case 233:o='"';break;case 234:o="%";break;case 235:o="&";break;case 236:o="'";break;case 237:o="(";break;case 238:o=")";break;case 239:o="*";break;case 240:o="+";break;case 241:o=",";break;case 242:o="-";break;case 243:o=".";break;case 244:o="/";break;case 245:o=":";break;case 246:o=";";break;case 247:o="<";break;case 248:o="=";break;case 249:o=">";break;case 250:o="?";break;case 251:o="_";break;case 252:o=" ";break;default:throw new Le}return new Or(e+8,o)},t.prototype.isStillAlpha=function(e){if(e+5>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(e,5);if(n>=5&&n<16)return!0;if(e+6>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(e,6);return r>=16&&r<63},t.prototype.decodeAlphanumeric=function(e){var n=this.extractNumericValueFromBitArray(e,5);if(n===15)return new Or(e+5,Or.FNC1);if(n>=5&&n<15)return new Or(e+5,"0"+(n-5));var r=this.extractNumericValueFromBitArray(e,6);if(r>=32&&r<58)return new Or(e+6,""+(r+33));var i;switch(r){case 58:i="*";break;case 59:i=",";break;case 60:i="-";break;case 61:i=".";break;case 62:i="/";break;default:throw new Aa("Decoding invalid alphanumeric value: "+r)}return new Or(e+6,i)},t.prototype.isAlphaTo646ToAlphaLatch=function(e){if(e+1>this.information.getSize())return!1;for(var n=0;n<5&&n+ethis.information.getSize())return!1;for(var n=e;nthis.information.getSize())return!1;for(var n=0;n<4&&n+e=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},UX=function(t){AX(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.pairs=new Array(e.MAX_PAIRS),n.rows=new Array,n.startEnd=[2],n}return e.prototype.decodeRow=function(n,r,i){this.pairs.length=0,this.startFromEven=!1;try{return e.constructResult(this.decodeRow2pairs(n,r))}catch{}return this.pairs.length=0,this.startFromEven=!0,e.constructResult(this.decodeRow2pairs(n,r))},e.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},e.prototype.decodeRow2pairs=function(n,r){for(var i=!1;!i;)try{this.pairs.push(this.retrieveNextPair(r,this.pairs,n))}catch(s){if(s instanceof De){if(!this.pairs.length)throw new De;i=!0}}if(this.checkChecksum())return this.pairs;var o;if(this.rows.length?o=!0:o=!1,this.storeRow(n,!1),o){var a=this.checkRowsBoolean(!1);if(a!=null||(a=this.checkRowsBoolean(!0),a!=null))return a}throw new De},e.prototype.checkRowsBoolean=function(n){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,n&&(this.rows=this.rows.reverse());var r=null;try{r=this.checkRows(new Array,0)}catch(i){console.log(i)}return n&&(this.rows=this.rows.reverse()),r},e.prototype.checkRows=function(n,r){for(var i,o,a=r;as.length)){for(var c=!0,u=0;un){a=s.isEquivalent(this.pairs);break}o=s.isEquivalent(this.pairs),i++}a||o||e.isPartialRow(this.pairs,this.rows)||(this.rows.push(i,new CX(this.pairs,n,r)),this.removePartialRows(this.pairs,this.rows))},e.prototype.removePartialRows=function(n,r){var i,o,a,s,c,u;try{for(var l=_i(r),h=l.next();!h.done;h=l.next()){var d=h.value;if(d.getPairs().length!==n.length){var f=!0;try{for(var p=(a=void 0,_i(d.getPairs())),g=p.next();!g.done;g=p.next()){var y=g.value,R=!1;try{for(var m=(c=void 0,_i(n)),v=m.next();!v.done;v=m.next()){var x=v.value;if(gm.equals(y,x)){R=!0;break}}}catch(O){c={error:O}}finally{try{v&&!v.done&&(u=m.return)&&u.call(m)}finally{if(c)throw c.error}}R||(f=!1)}}catch(O){a={error:O}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}}catch(O){i={error:O}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}},e.isPartialRow=function(n,r){var i,o,a,s,c,u;try{for(var l=_i(r),h=l.next();!h.done;h=l.next()){var d=h.value,f=!0;try{for(var p=(a=void 0,_i(n)),g=p.next();!g.done;g=p.next()){var y=g.value,R=!1;try{for(var m=(c=void 0,_i(d.getPairs())),v=m.next();!v.done;v=m.next()){var x=v.value;if(y.equals(x)){R=!0;break}}}catch(O){c={error:O}}finally{try{v&&!v.done&&(u=m.return)&&u.call(m)}finally{if(c)throw c.error}}if(!R){f=!1;break}}}catch(O){a={error:O}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}if(f)return!0}}catch(O){i={error:O}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return!1},e.prototype.getRows=function(){return this.rows},e.constructResult=function(n){var r=fX.buildBitArray(n),i=LX(r),o=i.parseInformation(),a=n[0].getFinderPattern().getResultPoints(),s=n[n.length-1].getFinderPattern().getResultPoints(),c=[a[0],a[1],s[0],s[1]];return new Cn(o,null,null,c,Ke.RSS_EXPANDED,null)},e.prototype.checkChecksum=function(){var n=this.pairs.get(0),r=n.getLeftChar(),i=n.getRightChar();if(i===null)return!1;for(var o=i.getChecksumPortion(),a=2,s=1;s=0)s=i;else if(this.isEmptyPair(r))s=0;else{var c=r[r.length-1];s=c.getFinderPattern().getStartEnd()[1]}var u=r.length%2!==0;this.startFromEven&&(u=!u);for(var l=!1;s=0&&!n.get(c);)c--;c++,o=this.startEnd[0]-c,a=c,s=this.startEnd[1]}else a=this.startEnd[0],s=n.getNextUnset(this.startEnd[1]+1),o=s-this.startEnd[1];var u=this.getDecodeFinderCounters();Mt.arraycopy(u,0,u,1,u.length-1),u[0]=o;var l;try{l=this.parseFinderValue(u,e.FINDER_PATTERNS)}catch{return null}return new db(l,[a,s],a,s,r)},e.prototype.decodeDataCharacter=function(n,r,i,o){for(var a=this.getDataCharacterCounters(),s=0;s.3)throw new De;for(var p=this.getOddCounts(),g=this.getEvenCounts(),y=this.getOddRoundingErrors(),R=this.getEvenRoundingErrors(),c=0;c8){if(m>8.7)throw new De;v=8}var x=c/2;(c&1)===0?(p[x]=v,y[x]=m-v):(g[x]=v,R[x]=m-v)}this.adjustOddEvenCounts(h);for(var O=4*r.getValue()+(i?0:2)+(o?0:1)-1,E=0,N=0,c=p.length-1;c>=0;c--){if(e.isNotA1left(r,i,o)){var M=e.WEIGHTS[O][2*c];N+=p[c]*M}E+=p[c]}for(var _=0,c=g.length-1;c>=0;c--)if(e.isNotA1left(r,i,o)){var M=e.WEIGHTS[O][2*c+1];_+=g[c]*M}var B=N+_;if((E&1)!==0||E>13||E<4)throw new De;var q=(13-E)/2,T=e.SYMBOL_WIDEST[q],I=9-T,b=Jo.getRSSvalue(p,T,!0),P=Jo.getRSSvalue(g,I,!1),U=e.EVEN_TOTAL_SUBSET[q],X=e.GSUM[q],V=b*U+P+X;return new _u(V,B)},e.isNotA1left=function(n,r,i){return!(n.getValue()===0&&r&&i)},e.prototype.adjustOddEvenCounts=function(n){var r=ft.sum(new Int32Array(this.getOddCounts())),i=ft.sum(new Int32Array(this.getEvenCounts())),o=!1,a=!1;r>13?a=!0:r<4&&(o=!0);var s=!1,c=!1;i>13?c=!0:i<4&&(s=!0);var u=r+i-n,l=(r&1)===1,h=(i&1)===0;if(u===1)if(l){if(h)throw new De;a=!0}else{if(!h)throw new De;c=!0}else if(u===-1)if(l){if(h)throw new De;o=!0}else{if(!h)throw new De;s=!0}else if(u===0){if(l){if(!h)throw new De;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mm=function(t){VX(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.possibleLeftPairs=[],n.possibleRightPairs=[],n}return e.prototype.decodeRow=function(n,r,i){var o,a,s,c,u=this.decodePair(r,!1,n,i);e.addOrTally(this.possibleLeftPairs,u),r.reverse();var l=this.decodePair(r,!0,n,i);e.addOrTally(this.possibleRightPairs,l),r.reverse();try{for(var h=qh(this.possibleLeftPairs),d=h.next();!d.done;d=h.next()){var f=d.value;if(f.getCount()>1)try{for(var p=(s=void 0,qh(this.possibleRightPairs)),g=p.next();!g.done;g=p.next()){var y=g.value;if(y.getCount()>1&&e.checkChecksum(f,y))return e.constructResult(f,y)}}catch(R){s={error:R}}finally{try{g&&!g.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}}}catch(R){o={error:R}}finally{try{d&&!d.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}throw new De},e.addOrTally=function(n,r){var i,o;if(r!=null){var a=!1;try{for(var s=qh(n),c=s.next();!c.done;c=s.next()){var u=c.value;if(u.getValue()===r.getValue()){u.incrementCount(),a=!0;break}}}catch(l){i={error:l}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}a||n.push(r)}},e.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},e.constructResult=function(n,r){for(var i=4537077*n.getValue()+r.getValue(),o=new String(i).toString(),a=new rt,s=13-o.length;s>0;s--)a.append("0");a.append(o);for(var c=0,s=0;s<13;s++){var u=a.charAt(s).charCodeAt(0)-"0".charCodeAt(0);c+=(s&1)===0?3*u:u}c=10-c%10,c===10&&(c=0),a.append(c.toString());var l=n.getFinderPattern().getResultPoints(),h=r.getFinderPattern().getResultPoints();return new Cn(a.toString(),null,0,[l[0],l[1],h[0],h[1]],Ke.RSS_14,new Date().getTime())},e.checkChecksum=function(n,r){var i=(n.getChecksumPortion()+16*r.getChecksumPortion())%79,o=9*n.getFinderPattern().getValue()+r.getFinderPattern().getValue();return o>72&&o--,o>8&&o--,i===o},e.prototype.decodePair=function(n,r,i,o){try{var a=this.findFinderPattern(n,r),s=this.parseFoundFinderPattern(n,i,r,a),c=o==null?null:o.get(Lt.NEED_RESULT_POINT_CALLBACK);if(c!=null){var u=(a[0]+a[1])/2;r&&(u=n.getSize()-1-u),c.foundPossibleResultPoint(new Ve(u,i))}var l=this.decodeDataCharacter(n,s,!0),h=this.decodeDataCharacter(n,s,!1);return new XX(1597*l.getValue()+h.getValue(),l.getChecksumPortion()+4*h.getChecksumPortion(),s)}catch{return null}},e.prototype.decodeDataCharacter=function(n,r,i){for(var o=this.getDataCharacterCounters(),a=0;a8&&(R=8);var m=Math.floor(s/2);(s&1)===0?(d[m]=R,p[m]=y-R):(f[m]=R,g[m]=y-R)}this.adjustOddEvenCounts(i,l);for(var v=0,x=0,s=d.length-1;s>=0;s--)x*=9,x+=d[s],v+=d[s];for(var O=0,E=0,s=f.length-1;s>=0;s--)O*=9,O+=f[s],E+=f[s];var N=x+3*O;if(i){if((v&1)!==0||v>12||v<4)throw new De;var M=(12-v)/2,_=e.OUTSIDE_ODD_WIDEST[M],B=9-_,q=Jo.getRSSvalue(d,_,!1),T=Jo.getRSSvalue(f,B,!0),I=e.OUTSIDE_EVEN_TOTAL_SUBSET[M],b=e.OUTSIDE_GSUM[M];return new _u(q*I+T+b,N)}else{if((E&1)!==0||E>10||E<4)throw new De;var M=(10-E)/2,_=e.INSIDE_ODD_WIDEST[M],B=9-_,q=Jo.getRSSvalue(d,_,!0),T=Jo.getRSSvalue(f,B,!1),P=e.INSIDE_ODD_TOTAL_SUBSET[M],b=e.INSIDE_GSUM[M];return new _u(T*P+q+b,N)}},e.prototype.findFinderPattern=function(n,r){var i=this.getDecodeFinderCounters();i[0]=0,i[1]=0,i[2]=0,i[3]=0;for(var o=n.getSize(),a=!1,s=0;s=0&&a!==n.get(s);)s--;s++;var c=o[0]-s,u=this.getDecodeFinderCounters(),l=new Int32Array(u.length);Mt.arraycopy(u,0,l,1,u.length-1),l[0]=c;var h=this.parseFinderValue(l,e.FINDER_PATTERNS),d=s,f=o[1];return i&&(d=n.getSize()-1-d,f=n.getSize()-1-f),new db(h,[s,o[1]],d,f,r)},e.prototype.adjustOddEvenCounts=function(n,r){var i=ft.sum(new Int32Array(this.getOddCounts())),o=ft.sum(new Int32Array(this.getEvenCounts())),a=!1,s=!1,c=!1,u=!1;n?(i>12?s=!0:i<4&&(a=!0),o>12?u=!0:o<4&&(c=!0)):(i>11?s=!0:i<5&&(a=!0),o>10?u=!0:o<4&&(c=!0));var l=i+o-r,h=(i&1)===(n?1:0),d=(o&1)===1;if(l===1)if(h){if(d)throw new De;s=!0}else{if(!d)throw new De;u=!0}else if(l===-1)if(h){if(d)throw new De;a=!0}else{if(!d)throw new De;c=!0}else if(l===0){if(h){if(!d)throw new De;i=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Rt=function(){function t(e,n,r){this.ecCodewords=e,this.ecBlocks=[n],r&&this.ecBlocks.push(r)}return t.prototype.getECCodewords=function(){return this.ecCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),pt=function(){function t(e,n){this.count=e,this.dataCodewords=n}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),ZX=function(){function t(e,n,r,i,o,a){var s,c;this.versionNumber=e,this.symbolSizeRows=n,this.symbolSizeColumns=r,this.dataRegionSizeRows=i,this.dataRegionSizeColumns=o,this.ecBlocks=a;var u=0,l=a.getECCodewords(),h=a.getECBlocks();try{for(var d=Rm(h),f=d.next();!f.done;f=d.next()){var p=f.value;u+=p.getCount()*(p.getDataCodewords()+l)}}catch(g){s={error:g}}finally{try{f&&!f.done&&(c=d.return)&&c.call(d)}finally{if(s)throw s.error}}this.totalCodewords=u}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},t.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},t.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},t.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t.getVersionForDimensions=function(e,n){var r,i;if((e&1)!==0||(n&1)!==0)throw new Le;try{for(var o=Rm(t.VERSIONS),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.symbolSizeRows===e&&s.symbolSizeColumns===n)return s}}catch(c){r={error:c}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}throw new Le},t.prototype.toString=function(){return""+this.versionNumber},t.buildVersions=function(){return[new t(1,10,10,8,8,new Rt(5,new pt(1,3))),new t(2,12,12,10,10,new Rt(7,new pt(1,5))),new t(3,14,14,12,12,new Rt(10,new pt(1,8))),new t(4,16,16,14,14,new Rt(12,new pt(1,12))),new t(5,18,18,16,16,new Rt(14,new pt(1,18))),new t(6,20,20,18,18,new Rt(18,new pt(1,22))),new t(7,22,22,20,20,new Rt(20,new pt(1,30))),new t(8,24,24,22,22,new Rt(24,new pt(1,36))),new t(9,26,26,24,24,new Rt(28,new pt(1,44))),new t(10,32,32,14,14,new Rt(36,new pt(1,62))),new t(11,36,36,16,16,new Rt(42,new pt(1,86))),new t(12,40,40,18,18,new Rt(48,new pt(1,114))),new t(13,44,44,20,20,new Rt(56,new pt(1,144))),new t(14,48,48,22,22,new Rt(68,new pt(1,174))),new t(15,52,52,24,24,new Rt(42,new pt(2,102))),new t(16,64,64,14,14,new Rt(56,new pt(2,140))),new t(17,72,72,16,16,new Rt(36,new pt(4,92))),new t(18,80,80,18,18,new Rt(48,new pt(4,114))),new t(19,88,88,20,20,new Rt(56,new pt(4,144))),new t(20,96,96,22,22,new Rt(68,new pt(4,174))),new t(21,104,104,24,24,new Rt(56,new pt(6,136))),new t(22,120,120,18,18,new Rt(68,new pt(6,175))),new t(23,132,132,20,20,new Rt(62,new pt(8,163))),new t(24,144,144,22,22,new Rt(62,new pt(8,156),new pt(2,155))),new t(25,8,18,6,16,new Rt(7,new pt(1,5))),new t(26,8,32,6,14,new Rt(11,new pt(1,10))),new t(27,12,26,10,24,new Rt(14,new pt(1,16))),new t(28,12,36,10,16,new Rt(18,new pt(1,22))),new t(29,16,36,14,16,new Rt(24,new pt(1,32))),new t(30,16,48,14,22,new Rt(28,new pt(1,49)))]},t.VERSIONS=t.buildVersions(),t}(),kX=function(){function t(e){var n=e.getHeight();if(n<8||n>144||(n&1)!==0)throw new Le;this.version=t.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new gi(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return t.prototype.getVersion=function(){return this.version},t.readVersion=function(e){var n=e.getHeight(),r=e.getWidth();return ZX.getVersionForDimensions(n,r)},t.prototype.readCodewords=function(){var e=new Int8Array(this.version.getTotalCodewords()),n=0,r=4,i=0,o=this.mappingBitMatrix.getHeight(),a=this.mappingBitMatrix.getWidth(),s=!1,c=!1,u=!1,l=!1;do if(r===o&&i===0&&!s)e[n++]=this.readCorner1(o,a)&255,r-=2,i+=2,s=!0;else if(r===o-2&&i===0&&(a&3)!==0&&!c)e[n++]=this.readCorner2(o,a)&255,r-=2,i+=2,c=!0;else if(r===o+4&&i===2&&(a&7)===0&&!u)e[n++]=this.readCorner3(o,a)&255,r-=2,i+=2,u=!0;else if(r===o-2&&i===0&&(a&7)===4&&!l)e[n++]=this.readCorner4(o,a)&255,r-=2,i+=2,l=!0;else{do r=0&&!this.readMappingMatrix.get(i,r)&&(e[n++]=this.readUtah(r,i,o,a)&255),r-=2,i+=2;while(r>=0&&i=0&&i=0);r+=3,i+=1}while(r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},QX=function(){function t(e,n){this.numDataCodewords=e,this.codewords=n}return t.getDataBlocks=function(e,n){var r,i,o,a,s=n.getECBlocks(),c=0,u=s.getECBlocks();try{for(var l=ym(u),h=l.next();!h.done;h=l.next()){var d=h.value;c+=d.getCount()}}catch(b){r={error:b}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}var f=new Array(c),p=0;try{for(var g=ym(u),y=g.next();!y.done;y=g.next())for(var d=y.value,R=0;R7?R-1:R;f[T].codewords[I]=e[N++]}if(N!==e.length)throw new Ge;return f},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}(),gb=function(){function t(e){this.bytes=e,this.byteOffset=0,this.bitOffset=0}return t.prototype.getBitOffset=function(){return this.bitOffset},t.prototype.getByteOffset=function(){return this.byteOffset},t.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new Ge(""+e);var n=0,r=this.bitOffset,i=this.byteOffset,o=this.bytes;if(r>0){var a=8-r,s=e>8-s<>c,e-=s,r+=s,r===8&&(r=0,i++)}if(e>0){for(;e>=8;)n=n<<8|o[i]&255,i++,e-=8;if(e>0){var c=8-e,u=255>>c<>c,r+=e}}return this.bitOffset=r,this.byteOffset=i,n},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}(),nn;(function(t){t[t.PAD_ENCODE=0]="PAD_ENCODE",t[t.ASCII_ENCODE=1]="ASCII_ENCODE",t[t.C40_ENCODE=2]="C40_ENCODE",t[t.TEXT_ENCODE=3]="TEXT_ENCODE",t[t.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",t[t.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",t[t.BASE256_ENCODE=6]="BASE256_ENCODE"})(nn||(nn={}));var KX=function(){function t(){}return t.decode=function(e){var n=new gb(e),r=new rt,i=new rt,o=new Array,a=nn.ASCII_ENCODE;do if(a===nn.ASCII_ENCODE)a=this.decodeAsciiSegment(n,r,i);else{switch(a){case nn.C40_ENCODE:this.decodeC40Segment(n,r);break;case nn.TEXT_ENCODE:this.decodeTextSegment(n,r);break;case nn.ANSIX12_ENCODE:this.decodeAnsiX12Segment(n,r);break;case nn.EDIFACT_ENCODE:this.decodeEdifactSegment(n,r);break;case nn.BASE256_ENCODE:this.decodeBase256Segment(n,r,o);break;default:throw new Le}a=nn.ASCII_ENCODE}while(a!==nn.PAD_ENCODE&&n.available()>0);return i.length()>0&&r.append(i.toString()),new ml(e,r.toString(),o.length===0?null:o,null)},t.decodeAsciiSegment=function(e,n,r){var i=!1;do{var o=e.readBits(8);if(o===0)throw new Le;if(o<=128)return i&&(o+=128),n.append(String.fromCharCode(o-1)),nn.ASCII_ENCODE;if(o===129)return nn.PAD_ENCODE;if(o<=229){var a=o-130;a<10&&n.append("0"),n.append(""+a)}else switch(o){case 230:return nn.C40_ENCODE;case 231:return nn.BASE256_ENCODE;case 232:n.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:i=!0;break;case 236:n.append("[)>05"),r.insert(0,"");break;case 237:n.append("[)>06"),r.insert(0,"");break;case 238:return nn.ANSIX12_ENCODE;case 239:return nn.TEXT_ENCODE;case 240:return nn.EDIFACT_ENCODE;case 241:break;default:if(o!==254||e.available()!==0)throw new Le;break}}while(e.available()>0);return nn.ASCII_ENCODE},t.decodeC40Segment=function(e,n){var r=!1,i=[],o=0;do{if(e.available()===8)return;var a=e.readBits(8);if(a===254)return;this.parseTwoBytes(a,e.readBits(8),i);for(var s=0;s<3;s++){var c=i[s];switch(o){case 0:if(c<3)o=c+1;else if(c0)},t.decodeTextSegment=function(e,n){var r=!1,i=[],o=0;do{if(e.available()===8)return;var a=e.readBits(8);if(a===254)return;this.parseTwoBytes(a,e.readBits(8),i);for(var s=0;s<3;s++){var c=i[s];switch(o){case 0:if(c<3)o=c+1;else if(c0)},t.decodeAnsiX12Segment=function(e,n){var r=[];do{if(e.available()===8)return;var i=e.readBits(8);if(i===254)return;this.parseTwoBytes(i,e.readBits(8),r);for(var o=0;o<3;o++){var a=r[o];switch(a){case 0:n.append("\r");break;case 1:n.append("*");break;case 2:n.append(">");break;case 3:n.append(" ");break;default:if(a<14)n.append(String.fromCharCode(a+44));else if(a<40)n.append(String.fromCharCode(a+51));else throw new Le;break}}}while(e.available()>0)},t.parseTwoBytes=function(e,n,r){var i=(e<<8)+n-1,o=Math.floor(i/1600);r[0]=o,i-=o*1600,o=Math.floor(i/40),r[1]=o,r[2]=i-o*40},t.decodeEdifactSegment=function(e,n){do{if(e.available()<=16)return;for(var r=0;r<4;r++){var i=e.readBits(6);if(i===31){var o=8-e.getBitOffset();o!==8&&e.readBits(o);return}(i&32)===0&&(i|=64),n.append(String.fromCharCode(i))}}while(e.available()>0)},t.decodeBase256Segment=function(e,n,r){var i=1+e.getByteOffset(),o=this.unrandomize255State(e.readBits(8),i++),a;if(o===0?a=e.available()/8|0:o<250?a=o:a=250*(o-249)+this.unrandomize255State(e.readBits(8),i++),a<0)throw new Le;for(var s=new Uint8Array(a),c=0;c=0?i:i+256},t.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],t.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],t.TEXT_SHIFT2_SET_CHARS=t.C40_SHIFT2_SET_CHARS,t.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],t}(),HX=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},GX=function(){function t(){this.rsDecoder=new Rl(li.DATA_MATRIX_FIELD_256)}return t.prototype.decode=function(e){var n,r,i=new kX(e),o=i.getVersion(),a=i.readCodewords(),s=QX.getDataBlocks(a,o),c=0;try{for(var u=HX(s),l=u.next();!l.done;l=u.next()){var h=l.value;c+=h.getNumDataCodewords()}}catch(v){n={error:v}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}for(var d=new Uint8Array(c),f=s.length,p=0;ps&&(l=s,h[0]=n,h[1]=r,h[2]=i,h[3]=o),l>c&&(l=c,h[0]=r,h[1]=i,h[2]=o,h[3]=n),l>u&&(h[0]=i,h[1]=o,h[2]=n,h[3]=r),h},t.prototype.detectSolid2=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o),s=t.shiftPoint(r,i,(a+1)*4),c=t.shiftPoint(i,r,(a+1)*4),u=this.transitionsBetween(s,n),l=this.transitionsBetween(c,o);return uf?l:h},t.prototype.shiftToModuleCenter=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o)+1,s=this.transitionsBetween(i,o)+1,c=t.shiftPoint(n,r,s*4),u=t.shiftPoint(i,r,a*4);a=this.transitionsBetween(c,o)+1,s=this.transitionsBetween(u,o)+1,(a&1)===1&&(a+=1),(s&1)===1&&(s+=1);var l=(n.getX()+r.getX()+i.getX()+o.getX())/4,h=(n.getY()+r.getY()+i.getY()+o.getY())/4;n=t.moveAway(n,l,h),r=t.moveAway(r,l,h),i=t.moveAway(i,l,h),o=t.moveAway(o,l,h);var d,f;return c=t.shiftPoint(n,r,s*4),c=t.shiftPoint(c,o,a*4),d=t.shiftPoint(r,n,s*4),d=t.shiftPoint(d,i,a*4),u=t.shiftPoint(i,o,s*4),u=t.shiftPoint(u,r,a*4),f=t.shiftPoint(o,i,s*4),f=t.shiftPoint(f,n,a*4),[c,d,u,f]},t.prototype.isValid=function(e){return e.getX()>=0&&e.getX()0&&e.getY()Math.abs(o-r);if(s){var c=r;r=i,i=c,c=o,o=a,a=c}for(var u=Math.abs(o-r),l=Math.abs(a-i),h=-u/2,d=i0){if(R===a)break;R+=d,h-=u}}return p},t}(),Eu=function(){function t(){this.decoder=new GX}return t.prototype.decode=function(e,n){n===void 0&&(n=null);var r,i;if(n!=null&&n.has(Lt.PURE_BARCODE)){var o=t.extractPureBits(e.getBlackMatrix());r=this.decoder.decode(o),i=t.NO_POINTS}else{var a=new JX(e.getBlackMatrix()).detect();r=this.decoder.decode(a.getBits()),i=a.getPoints()}var s=r.getRawBytes(),c=new Cn(r.getText(),s,8*s.length,i,Ke.DATA_MATRIX,Mt.currentTimeMillis()),u=r.getByteSegments();u!=null&&c.putMetadata(Tn.BYTE_SEGMENTS,u);var l=r.getECLevel();return l!=null&&c.putMetadata(Tn.ERROR_CORRECTION_LEVEL,l),c},t.prototype.reset=function(){},t.extractPureBits=function(e){var n=e.getTopLeftOnBit(),r=e.getBottomRightOnBit();if(n==null||r==null)throw new De;var i=this.moduleSize(n,e),o=n[1],a=r[1],s=n[0],c=r[0],u=(c-s+1)/i,l=(a-o+1)/i;if(u<=0||l<=0)throw new De;var h=i/2;o+=h,s+=h;for(var d=new gi(u,l),f=0;f=t.FOR_BITS.size)throw new Ge;return t.FOR_BITS.get(e)},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.L=new t($o.L,"L",1),t.M=new t($o.M,"M",0),t.Q=new t($o.Q,"Q",3),t.H=new t($o.H,"H",2),t}(),$X=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mb=function(){function t(e){this.errorCorrectionLevel=kd.forBits(e>>3&3),this.dataMask=e&7}return t.numBitsDiffering=function(e,n){return $t.bitCount(e^n)},t.decodeFormatInformation=function(e,n){var r=t.doDecodeFormatInformation(e,n);return r!==null?r:t.doDecodeFormatInformation(e^t.FORMAT_INFO_MASK_QR,n^t.FORMAT_INFO_MASK_QR)},t.doDecodeFormatInformation=function(e,n){var r,i,o=Number.MAX_SAFE_INTEGER,a=0;try{for(var s=$X(t.FORMAT_INFO_DECODE_LOOKUP),c=s.next();!c.done;c=s.next()){var u=c.value,l=u[0];if(l===e||l===n)return new t(u[1]);var h=t.numBitsDiffering(e,l);h=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ye=function(){function t(e){for(var n=[],r=1;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fo=function(){function t(e,n){for(var r,i,o=[],a=2;a40)throw new Ge;return t.VERSIONS[e-1]},t.decodeVersionInformation=function(e){for(var n=Number.MAX_SAFE_INTEGER,r=0,i=0;i6&&(n.setRegion(e-11,0,3,6),n.setRegion(0,e-11,6,3)),n},t.prototype.toString=function(){return""+this.versionNumber},t.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),t.VERSIONS=[new t(1,new Int32Array(0),new ye(7,new se(1,19)),new ye(10,new se(1,16)),new ye(13,new se(1,13)),new ye(17,new se(1,9))),new t(2,Int32Array.from([6,18]),new ye(10,new se(1,34)),new ye(16,new se(1,28)),new ye(22,new se(1,22)),new ye(28,new se(1,16))),new t(3,Int32Array.from([6,22]),new ye(15,new se(1,55)),new ye(26,new se(1,44)),new ye(18,new se(2,17)),new ye(22,new se(2,13))),new t(4,Int32Array.from([6,26]),new ye(20,new se(1,80)),new ye(18,new se(2,32)),new ye(26,new se(2,24)),new ye(16,new se(4,9))),new t(5,Int32Array.from([6,30]),new ye(26,new se(1,108)),new ye(24,new se(2,43)),new ye(18,new se(2,15),new se(2,16)),new ye(22,new se(2,11),new se(2,12))),new t(6,Int32Array.from([6,34]),new ye(18,new se(2,68)),new ye(16,new se(4,27)),new ye(24,new se(4,19)),new ye(28,new se(4,15))),new t(7,Int32Array.from([6,22,38]),new ye(20,new se(2,78)),new ye(18,new se(4,31)),new ye(18,new se(2,14),new se(4,15)),new ye(26,new se(4,13),new se(1,14))),new t(8,Int32Array.from([6,24,42]),new ye(24,new se(2,97)),new ye(22,new se(2,38),new se(2,39)),new ye(22,new se(4,18),new se(2,19)),new ye(26,new se(4,14),new se(2,15))),new t(9,Int32Array.from([6,26,46]),new ye(30,new se(2,116)),new ye(22,new se(3,36),new se(2,37)),new ye(20,new se(4,16),new se(4,17)),new ye(24,new se(4,12),new se(4,13))),new t(10,Int32Array.from([6,28,50]),new ye(18,new se(2,68),new se(2,69)),new ye(26,new se(4,43),new se(1,44)),new ye(24,new se(6,19),new se(2,20)),new ye(28,new se(6,15),new se(2,16))),new t(11,Int32Array.from([6,30,54]),new ye(20,new se(4,81)),new ye(30,new se(1,50),new se(4,51)),new ye(28,new se(4,22),new se(4,23)),new ye(24,new se(3,12),new se(8,13))),new t(12,Int32Array.from([6,32,58]),new ye(24,new se(2,92),new se(2,93)),new ye(22,new se(6,36),new se(2,37)),new ye(26,new se(4,20),new se(6,21)),new ye(28,new se(7,14),new se(4,15))),new t(13,Int32Array.from([6,34,62]),new ye(26,new se(4,107)),new ye(22,new se(8,37),new se(1,38)),new ye(24,new se(8,20),new se(4,21)),new ye(22,new se(12,11),new se(4,12))),new t(14,Int32Array.from([6,26,46,66]),new ye(30,new se(3,115),new se(1,116)),new ye(24,new se(4,40),new se(5,41)),new ye(20,new se(11,16),new se(5,17)),new ye(24,new se(11,12),new se(5,13))),new t(15,Int32Array.from([6,26,48,70]),new ye(22,new se(5,87),new se(1,88)),new ye(24,new se(5,41),new se(5,42)),new ye(30,new se(5,24),new se(7,25)),new ye(24,new se(11,12),new se(7,13))),new t(16,Int32Array.from([6,26,50,74]),new ye(24,new se(5,98),new se(1,99)),new ye(28,new se(7,45),new se(3,46)),new ye(24,new se(15,19),new se(2,20)),new ye(30,new se(3,15),new se(13,16))),new t(17,Int32Array.from([6,30,54,78]),new ye(28,new se(1,107),new se(5,108)),new ye(28,new se(10,46),new se(1,47)),new ye(28,new se(1,22),new se(15,23)),new ye(28,new se(2,14),new se(17,15))),new t(18,Int32Array.from([6,30,56,82]),new ye(30,new se(5,120),new se(1,121)),new ye(26,new se(9,43),new se(4,44)),new ye(28,new se(17,22),new se(1,23)),new ye(28,new se(2,14),new se(19,15))),new t(19,Int32Array.from([6,30,58,86]),new ye(28,new se(3,113),new se(4,114)),new ye(26,new se(3,44),new se(11,45)),new ye(26,new se(17,21),new se(4,22)),new ye(26,new se(9,13),new se(16,14))),new t(20,Int32Array.from([6,34,62,90]),new ye(28,new se(3,107),new se(5,108)),new ye(26,new se(3,41),new se(13,42)),new ye(30,new se(15,24),new se(5,25)),new ye(28,new se(15,15),new se(10,16))),new t(21,Int32Array.from([6,28,50,72,94]),new ye(28,new se(4,116),new se(4,117)),new ye(26,new se(17,42)),new ye(28,new se(17,22),new se(6,23)),new ye(30,new se(19,16),new se(6,17))),new t(22,Int32Array.from([6,26,50,74,98]),new ye(28,new se(2,111),new se(7,112)),new ye(28,new se(17,46)),new ye(30,new se(7,24),new se(16,25)),new ye(24,new se(34,13))),new t(23,Int32Array.from([6,30,54,78,102]),new ye(30,new se(4,121),new se(5,122)),new ye(28,new se(4,47),new se(14,48)),new ye(30,new se(11,24),new se(14,25)),new ye(30,new se(16,15),new se(14,16))),new t(24,Int32Array.from([6,28,54,80,106]),new ye(30,new se(6,117),new se(4,118)),new ye(28,new se(6,45),new se(14,46)),new ye(30,new se(11,24),new se(16,25)),new ye(30,new se(30,16),new se(2,17))),new t(25,Int32Array.from([6,32,58,84,110]),new ye(26,new se(8,106),new se(4,107)),new ye(28,new se(8,47),new se(13,48)),new ye(30,new se(7,24),new se(22,25)),new ye(30,new se(22,15),new se(13,16))),new t(26,Int32Array.from([6,30,58,86,114]),new ye(28,new se(10,114),new se(2,115)),new ye(28,new se(19,46),new se(4,47)),new ye(28,new se(28,22),new se(6,23)),new ye(30,new se(33,16),new se(4,17))),new t(27,Int32Array.from([6,34,62,90,118]),new ye(30,new se(8,122),new se(4,123)),new ye(28,new se(22,45),new se(3,46)),new ye(30,new se(8,23),new se(26,24)),new ye(30,new se(12,15),new se(28,16))),new t(28,Int32Array.from([6,26,50,74,98,122]),new ye(30,new se(3,117),new se(10,118)),new ye(28,new se(3,45),new se(23,46)),new ye(30,new se(4,24),new se(31,25)),new ye(30,new se(11,15),new se(31,16))),new t(29,Int32Array.from([6,30,54,78,102,126]),new ye(30,new se(7,116),new se(7,117)),new ye(28,new se(21,45),new se(7,46)),new ye(30,new se(1,23),new se(37,24)),new ye(30,new se(19,15),new se(26,16))),new t(30,Int32Array.from([6,26,52,78,104,130]),new ye(30,new se(5,115),new se(10,116)),new ye(28,new se(19,47),new se(10,48)),new ye(30,new se(15,24),new se(25,25)),new ye(30,new se(23,15),new se(25,16))),new t(31,Int32Array.from([6,30,56,82,108,134]),new ye(30,new se(13,115),new se(3,116)),new ye(28,new se(2,46),new se(29,47)),new ye(30,new se(42,24),new se(1,25)),new ye(30,new se(23,15),new se(28,16))),new t(32,Int32Array.from([6,34,60,86,112,138]),new ye(30,new se(17,115)),new ye(28,new se(10,46),new se(23,47)),new ye(30,new se(10,24),new se(35,25)),new ye(30,new se(19,15),new se(35,16))),new t(33,Int32Array.from([6,30,58,86,114,142]),new ye(30,new se(17,115),new se(1,116)),new ye(28,new se(14,46),new se(21,47)),new ye(30,new se(29,24),new se(19,25)),new ye(30,new se(11,15),new se(46,16))),new t(34,Int32Array.from([6,34,62,90,118,146]),new ye(30,new se(13,115),new se(6,116)),new ye(28,new se(14,46),new se(23,47)),new ye(30,new se(44,24),new se(7,25)),new ye(30,new se(59,16),new se(1,17))),new t(35,Int32Array.from([6,30,54,78,102,126,150]),new ye(30,new se(12,121),new se(7,122)),new ye(28,new se(12,47),new se(26,48)),new ye(30,new se(39,24),new se(14,25)),new ye(30,new se(22,15),new se(41,16))),new t(36,Int32Array.from([6,24,50,76,102,128,154]),new ye(30,new se(6,121),new se(14,122)),new ye(28,new se(6,47),new se(34,48)),new ye(30,new se(46,24),new se(10,25)),new ye(30,new se(2,15),new se(64,16))),new t(37,Int32Array.from([6,28,54,80,106,132,158]),new ye(30,new se(17,122),new se(4,123)),new ye(28,new se(29,46),new se(14,47)),new ye(30,new se(49,24),new se(10,25)),new ye(30,new se(24,15),new se(46,16))),new t(38,Int32Array.from([6,32,58,84,110,136,162]),new ye(30,new se(4,122),new se(18,123)),new ye(28,new se(13,46),new se(32,47)),new ye(30,new se(48,24),new se(14,25)),new ye(30,new se(42,15),new se(32,16))),new t(39,Int32Array.from([6,26,54,82,110,138,166]),new ye(30,new se(20,117),new se(4,118)),new ye(28,new se(40,47),new se(7,48)),new ye(30,new se(43,24),new se(22,25)),new ye(30,new se(10,15),new se(67,16))),new t(40,Int32Array.from([6,30,58,86,114,142,170]),new ye(30,new se(19,118),new se(6,119)),new ye(28,new se(18,47),new se(31,48)),new ye(30,new se(34,24),new se(34,25)),new ye(30,new se(20,15),new se(61,16)))],t}(),hn;(function(t){t[t.DATA_MASK_000=0]="DATA_MASK_000",t[t.DATA_MASK_001=1]="DATA_MASK_001",t[t.DATA_MASK_010=2]="DATA_MASK_010",t[t.DATA_MASK_011=3]="DATA_MASK_011",t[t.DATA_MASK_100=4]="DATA_MASK_100",t[t.DATA_MASK_101=5]="DATA_MASK_101",t[t.DATA_MASK_110=6]="DATA_MASK_110",t[t.DATA_MASK_111=7]="DATA_MASK_111"})(hn||(hn={}));var vm=function(){function t(e,n){this.value=e,this.isMasked=n}return t.prototype.unmaskBitMatrix=function(e,n){for(var r=0;r=0;r--)e=this.copyBit(8,r,e);for(var i=this.bitMatrix.getHeight(),o=0,a=i-7,r=i-1;r>=a;r--)o=this.copyBit(8,r,o);for(var n=i-8;n=0;o--)for(var a=e-9;a>=i;a--)r=this.copyBit(a,o,r);var s=fo.decodeVersionInformation(r);if(s!==null&&s.getDimensionForVersion()===e)return this.parsedVersion=s,s;r=0;for(var a=5;a>=0;a--)for(var o=e-9;o>=i;o--)r=this.copyBit(a,o,r);if(s=fo.decodeVersionInformation(r),s!==null&&s.getDimensionForVersion()===e)return this.parsedVersion=s,s;throw new Le},t.prototype.copyBit=function(e,n,r){var i=this.isMirror?this.bitMatrix.get(n,e):this.bitMatrix.get(e,n);return i?r<<1|1:r<<1},t.prototype.readCodewords=function(){var e=this.readFormatInformation(),n=this.readVersion(),r=vm.values.get(e.getDataMask()),i=this.bitMatrix.getHeight();r.unmaskBitMatrix(this.bitMatrix,i);for(var o=n.buildFunctionPattern(),a=!0,s=new Uint8Array(n.getTotalCodewords()),c=0,u=0,l=0,h=i-1;h>0;h-=2){h===6&&h--;for(var d=0;d=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},t7=function(){function t(e,n){this.numDataCodewords=e,this.codewords=n}return t.getDataBlocks=function(e,n,r){var i,o,a,s;if(e.length!==n.getTotalCodewords())throw new Ge;var c=n.getECBlocksForLevel(r),u=0,l=c.getECBlocks();try{for(var h=bm(l),d=h.next();!d.done;d=h.next()){var f=d.value;u+=f.getCount()}}catch(I){i={error:I}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}var p=new Array(u),g=0;try{for(var y=bm(l),R=y.next();!R.done;R=y.next())for(var f=R.value,m=0;m=0;){var N=p[E].codewords.length;if(N===O)break;E--}E++;for(var M=O-c.getECCodewordsPerBlock(),_=0,m=0;me.available())throw new Le;for(var i=new Uint8Array(2*r),o=0;r>0;){var a=e.readBits(13),s=a/96<<8&4294967295|a%96;s<959?s+=41377:s+=42657,i[o]=s>>8&255,i[o+1]=s&255,o+=2,r--}try{n.append(wr.decode(i,Pt.GB2312))}catch(c){throw new Le(c)}},t.decodeKanjiSegment=function(e,n,r){if(r*13>e.available())throw new Le;for(var i=new Uint8Array(2*r),o=0;r>0;){var a=e.readBits(13),s=a/192<<8&4294967295|a%192;s<7936?s+=33088:s+=49472,i[o]=s>>8,i[o+1]=s,o+=2,r--}try{n.append(wr.decode(i,Pt.SHIFT_JIS))}catch(c){throw new Le(c)}},t.decodeByteSegment=function(e,n,r,i,o,a){if(8*r>e.available())throw new Le;for(var s=new Uint8Array(r),c=0;c=t.ALPHANUMERIC_CHARS.length)throw new Le;return t.ALPHANUMERIC_CHARS[e]},t.decodeAlphanumericSegment=function(e,n,r,i){for(var o=n.length();r>1;){if(e.available()<11)throw new Le;var a=e.readBits(11);n.append(t.toAlphaNumericChar(Math.floor(a/45))),n.append(t.toAlphaNumericChar(a%45)),r-=2}if(r===1){if(e.available()<6)throw new Le;n.append(t.toAlphaNumericChar(e.readBits(6)))}if(i)for(var s=o;s=3;){if(e.available()<10)throw new Le;var i=e.readBits(10);if(i>=1e3)throw new Le;n.append(t.toAlphaNumericChar(Math.floor(i/100))),n.append(t.toAlphaNumericChar(Math.floor(i/10)%10)),n.append(t.toAlphaNumericChar(i%10)),r-=3}if(r===2){if(e.available()<7)throw new Le;var o=e.readBits(7);if(o>=100)throw new Le;n.append(t.toAlphaNumericChar(Math.floor(o/10))),n.append(t.toAlphaNumericChar(o%10))}else if(r===1){if(e.available()<4)throw new Le;var a=e.readBits(4);if(a>=10)throw new Le;n.append(t.toAlphaNumericChar(a))}},t.parseECIValue=function(e){var n=e.readBits(8);if((n&128)===0)return n&127;if((n&192)===128){var r=e.readBits(8);return(n&63)<<8&4294967295|r}if((n&224)===192){var i=e.readBits(16);return(n&31)<<16&4294967295|i}throw new Le},t.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t.GB2312_SUBSET=1,t}(),Rb=function(){function t(e){this.mirrored=e}return t.prototype.isMirrored=function(){return this.mirrored},t.prototype.applyMirroredCorrection=function(e){if(!(!this.mirrored||e===null||e.length<3)){var n=e[0];e[0]=e[2],e[2]=n}},t}(),xm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r7=function(){function t(){this.rsDecoder=new Rl(li.QR_CODE_FIELD_256)}return t.prototype.decodeBooleanArray=function(e,n){return this.decodeBitMatrix(gi.parseFromBooleanArray(e),n)},t.prototype.decodeBitMatrix=function(e,n){var r=new e7(e),i=null;try{return this.decodeBitMatrixParser(r,n)}catch(a){i=a}try{r.remask(),r.setMirror(!0),r.readVersion(),r.readFormatInformation(),r.mirror();var o=this.decodeBitMatrixParser(r,n);return o.setOther(new Rb(!0)),o}catch(a){throw i!==null?i:a}},t.prototype.decodeBitMatrixParser=function(e,n){var r,i,o,a,s=e.readVersion(),c=e.readFormatInformation().getErrorCorrectionLevel(),u=e.readCodewords(),l=t7.getDataBlocks(u,s,c),h=0;try{for(var d=xm(l),f=d.next();!f.done;f=d.next()){var p=f.value;h+=p.getNumDataCodewords()}}catch(E){r={error:E}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}var g=new Uint8Array(h),y=0;try{for(var R=xm(l),m=R.next();!m.done;m=R.next()){var p=m.value,v=p.getCodewords(),x=p.getNumDataCodewords();this.correctErrors(v,x);for(var O=0;O=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s7=function(){function t(e,n,r,i,o,a,s){this.image=e,this.startX=n,this.startY=r,this.width=i,this.height=o,this.moduleSize=a,this.resultPointCallback=s,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return t.prototype.find=function(){for(var e=this.startX,n=this.height,r=this.width,i=e+r,o=this.startY+n/2,a=new Int32Array(3),s=this.image,c=0;c=r)return!1;return!0},t.prototype.crossCheckVertical=function(e,n,r,i){var o=this.image,a=o.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;for(var c=e;c>=0&&o.get(n,c)&&s[1]<=r;)s[1]++,c--;if(c<0||s[1]>r)return NaN;for(;c>=0&&!o.get(n,c)&&s[0]<=r;)s[0]++,c--;if(s[0]>r)return NaN;for(c=e+1;cr)return NaN;for(;cr)return NaN;var u=s[0]+s[1]+s[2];return 5*Math.abs(u-i)>=2*i?NaN:this.foundPatternCross(s)?t.centerFromEnd(s,c):NaN},t.prototype.handlePossibleCenter=function(e,n,r){var i,o,a=e[0]+e[1]+e[2],s=t.centerFromEnd(e,r),c=this.crossCheckVertical(n,s,2*e[1],a);if(!isNaN(c)){var u=(e[0]+e[1]+e[2])/3;try{for(var l=a7(this.possibleCenters),h=l.next();!h.done;h=l.next()){var d=h.value;if(d.aboutEquals(u,c,s))return d.combineEstimate(c,s,u)}}catch(p){i={error:p}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}var f=new o7(s,c,u);this.possibleCenters.push(f),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(f)}return null},t}(),c7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),u7=function(t){c7(e,t);function e(n,r,i,o){var a=t.call(this,n,r)||this;return a.estimatedModuleSize=i,a.count=o,o===void 0&&(a.count=1),a}return e.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},e.prototype.getCount=function(){return this.count},e.prototype.aboutEquals=function(n,r,i){if(Math.abs(r-this.getY())<=n&&Math.abs(i-this.getX())<=n){var o=Math.abs(n-this.estimatedModuleSize);return o<=1||o<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(n,r,i){var o=this.count+1,a=(this.count*this.getX()+r)/o,s=(this.count*this.getY()+n)/o,c=(this.count*this.estimatedModuleSize+i)/o;return new e(a,s,c,o)},e}(Ve),l7=function(){function t(e){this.bottomLeft=e[0],this.topLeft=e[1],this.topRight=e[2]}return t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t}(),is=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h7=function(){function t(e,n){this.image=e,this.resultPointCallback=n,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=n}return t.prototype.getImage=function(){return this.image},t.prototype.getPossibleCenters=function(){return this.possibleCenters},t.prototype.find=function(e){var n=e!=null&&e.get(Lt.TRY_HARDER)!==void 0,r=e!=null&&e.get(Lt.PURE_BARCODE)!==void 0,i=this.image,o=i.getHeight(),a=i.getWidth(),s=Math.floor(3*o/(4*t.MAX_MODULES));(su[2]&&(l+=p-u[2]-s,d=a-1)}else{u[0]=u[2],u[1]=u[3],u[2]=u[4],u[3]=1,u[4]=0,h=3;continue}h=0,u[0]=0,u[1]=0,u[2]=0,u[3]=0,u[4]=0}else u[0]=u[2],u[1]=u[3],u[2]=u[4],u[3]=1,u[4]=0,h=3;else u[++h]++;else u[h]++;if(t.foundPatternCross(u)){var f=this.handlePossibleCenter(u,l,a,r);f===!0&&(s=u[0],this.hasSkipped&&(c=this.haveMultiplyConfirmedCenters()))}}var g=this.selectBestPatterns();return Ve.orderBestPatterns(g),new l7(g)},t.centerFromEnd=function(e,n){return n-e[4]-e[3]-e[2]/2},t.foundPatternCross=function(e){for(var n=0,r=0;r<5;r++){var i=e[r];if(i===0)return!1;n+=i}if(n<7)return!1;var o=n/7,a=o/2;return Math.abs(o-e[0])=a&&n>=a&&s.get(n-a,e-a);)o[2]++,a++;if(e=a&&n>=a&&!s.get(n-a,e-a)&&o[1]<=r;)o[1]++,a++;if(er)return!1;for(;e>=a&&n>=a&&s.get(n-a,e-a)&&o[0]<=r;)o[0]++,a++;if(o[0]>r)return!1;var c=s.getHeight(),u=s.getWidth();for(a=1;e+a=c||n+a>=u)return!1;for(;e+a=c||n+a>=u||o[3]>=r)return!1;for(;e+a=r)return!1;var l=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(l-i)<2*i&&t.foundPatternCross(o)},t.prototype.crossCheckVertical=function(e,n,r,i){for(var o=this.image,a=o.getHeight(),s=this.getCrossCheckStateCount(),c=e;c>=0&&o.get(n,c);)s[2]++,c--;if(c<0)return NaN;for(;c>=0&&!o.get(n,c)&&s[1]<=r;)s[1]++,c--;if(c<0||s[1]>r)return NaN;for(;c>=0&&o.get(n,c)&&s[0]<=r;)s[0]++,c--;if(s[0]>r)return NaN;for(c=e+1;c=r)return NaN;for(;c=r)return NaN;var u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-i)>=2*i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,c):NaN},t.prototype.crossCheckHorizontal=function(e,n,r,i){for(var o=this.image,a=o.getWidth(),s=this.getCrossCheckStateCount(),c=e;c>=0&&o.get(c,n);)s[2]++,c--;if(c<0)return NaN;for(;c>=0&&!o.get(c,n)&&s[1]<=r;)s[1]++,c--;if(c<0||s[1]>r)return NaN;for(;c>=0&&o.get(c,n)&&s[0]<=r;)s[0]++,c--;if(s[0]>r)return NaN;for(c=e+1;c=r)return NaN;for(;c=r)return NaN;var u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-i)>=i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,c):NaN},t.prototype.handlePossibleCenter=function(e,n,r,i){var o=e[0]+e[1]+e[2]+e[3]+e[4],a=t.centerFromEnd(e,r),s=this.crossCheckVertical(n,Math.floor(a),e[2],o);if(!isNaN(s)&&(a=this.crossCheckHorizontal(Math.floor(a),Math.floor(s),e[2],o),!isNaN(a)&&(!i||this.crossCheckDiagonal(Math.floor(s),Math.floor(a),e[2],o)))){for(var c=o/7,u=!1,l=this.possibleCenters,h=0,d=l.length;h=t.CENTER_QUORUM)if(i==null)i=s;else return this.hasSkipped=!0,Math.floor((Math.abs(i.getX()-s.getX())-Math.abs(i.getY()-s.getY()))/2)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return 0},t.prototype.haveMultiplyConfirmedCenters=function(){var e,n,r,i,o=0,a=0,s=this.possibleCenters.length;try{for(var c=is(this.possibleCenters),u=c.next();!u.done;u=c.next()){var l=u.value;l.getCount()>=t.CENTER_QUORUM&&(o++,a+=l.getEstimatedModuleSize())}}catch(g){e={error:g}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(o<3)return!1;var h=a/s,d=0;try{for(var f=is(this.possibleCenters),p=f.next();!p.done;p=f.next()){var l=p.value;d+=Math.abs(l.getEstimatedModuleSize()-h)}}catch(g){r={error:g}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return d<=.05*a},t.prototype.selectBestPatterns=function(){var e,n,r,i,o=this.possibleCenters.length;if(o<3)throw new De;var a=this.possibleCenters,s;if(o>3){var c=0,u=0;try{for(var l=is(this.possibleCenters),h=l.next();!h.done;h=l.next()){var d=h.value,f=d.getEstimatedModuleSize();c+=f,u+=f*f}}catch(O){e={error:O}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}s=c/o;var p=Math.sqrt(u/o-s*s);a.sort(function(O,E){var N=Math.abs(E.getEstimatedModuleSize()-s),M=Math.abs(O.getEstimatedModuleSize()-s);return NM?1:0});for(var g=Math.max(.2*s,p),y=0;y3;y++){var R=a[y];Math.abs(R.getEstimatedModuleSize()-s)>g&&(a.splice(y,1),y--)}}if(a.length>3){var c=0;try{for(var m=is(a),v=m.next();!v.done;v=m.next()){var x=v.value;c+=x.getEstimatedModuleSize()}}catch(E){r={error:E}}finally{try{v&&!v.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}s=c/a.length,a.sort(function(E,N){if(N.getCount()===E.getCount()){var M=Math.abs(N.getEstimatedModuleSize()-s),_=Math.abs(E.getEstimatedModuleSize()-s);return M<_?1:M>_?-1:0}else return N.getCount()-E.getCount()}),a.splice(3)}return[a[0],a[1],a[2]]},t.CENTER_QUORUM=2,t.MIN_SKIP=3,t.MAX_MODULES=57,t}(),d7=function(){function t(e){this.image=e}return t.prototype.getImage=function(){return this.image},t.prototype.getResultPointCallback=function(){return this.resultPointCallback},t.prototype.detect=function(e){this.resultPointCallback=e==null?null:e.get(Lt.NEED_RESULT_POINT_CALLBACK);var n=new h7(this.image,this.resultPointCallback),r=n.find(e);return this.processFinderPatternInfo(r)},t.prototype.processFinderPatternInfo=function(e){var n=e.getTopLeft(),r=e.getTopRight(),i=e.getBottomLeft(),o=this.calculateModuleSize(n,r,i);if(o<1)throw new De("No pattern found in proccess finder.");var a=t.computeDimension(n,r,i,o),s=fo.getProvisionalVersionForDimension(a),c=s.getDimensionForVersion()-7,u=null;if(s.getAlignmentPatternCenters().length>0)for(var l=r.getX()-n.getX()+i.getX(),h=r.getY()-n.getY()+i.getY(),d=1-3/c,f=Math.floor(n.getX()+d*(l-n.getX())),p=Math.floor(n.getY()+d*(h-n.getY())),g=4;g<=16;g<<=1)try{u=this.findAlignmentInRegion(o,f,p,g);break}catch(v){if(!(v instanceof De))throw v}var y=t.createTransform(n,r,i,u,a),R=t.sampleGrid(this.image,y,a),m;return u===null?m=[i,n,r]:m=[i,n,r,u],new Kp(R,m)},t.createTransform=function(e,n,r,i,o){var a=o-3.5,s,c,u,l;return i!==null?(s=i.getX(),c=i.getY(),u=a-3,l=u):(s=n.getX()-e.getX()+r.getX(),c=n.getY()-e.getY()+r.getY(),u=a,l=a),hb.quadrilateralToQuadrilateral(3.5,3.5,a,3.5,u,l,3.5,a,e.getX(),e.getY(),n.getX(),n.getY(),s,c,r.getX(),r.getY())},t.sampleGrid=function(e,n,r){var i=Hp.getInstance();return i.sampleGridWithTransform(e,r,r,n)},t.computeDimension=function(e,n,r,i){var o=ft.round(Ve.distance(e,n)/i),a=ft.round(Ve.distance(e,r)/i),s=Math.floor((o+a)/2)+7;switch(s&3){case 0:s++;break;case 2:s--;break;case 3:throw new De("Dimensions could be not found.")}return s},t.prototype.calculateModuleSize=function(e,n,r){return(this.calculateModuleSizeOneWay(e,n)+this.calculateModuleSizeOneWay(e,r))/2},t.prototype.calculateModuleSizeOneWay=function(e,n){var r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(n.getX()),Math.floor(n.getY())),i=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(n.getX()),Math.floor(n.getY()),Math.floor(e.getX()),Math.floor(e.getY()));return isNaN(r)?i/7:isNaN(i)?r/7:(r+i)/14},t.prototype.sizeOfBlackWhiteBlackRunBothWays=function(e,n,r,i){var o=this.sizeOfBlackWhiteBlackRun(e,n,r,i),a=1,s=e-(r-e);s<0?(a=e/(e-s),s=0):s>=this.image.getWidth()&&(a=(this.image.getWidth()-1-e)/(s-e),s=this.image.getWidth()-1);var c=Math.floor(n-(i-n)*a);return a=1,c<0?(a=n/(n-c),c=0):c>=this.image.getHeight()&&(a=(this.image.getHeight()-1-n)/(c-n),c=this.image.getHeight()-1),s=Math.floor(e+(s-e)*a),o+=this.sizeOfBlackWhiteBlackRun(e,n,s,c),o-1},t.prototype.sizeOfBlackWhiteBlackRun=function(e,n,r,i){var o=Math.abs(i-n)>Math.abs(r-e);if(o){var a=e;e=n,n=a,a=r,r=i,i=a}for(var s=Math.abs(r-e),c=Math.abs(i-n),u=-s/2,l=e0){if(g===i)break;g+=h,u-=s}}return d===2?ft.distance(r+l,i,e,n):NaN},t.prototype.findAlignmentInRegion=function(e,n,r,i){var o=Math.floor(i*e),a=Math.max(0,n-o),s=Math.min(this.image.getWidth()-1,n+o);if(s-a=c||o>=a)throw new De;if(a-o!==c-s&&(c=s+(a-o),c>=e.getWidth()))throw new De;var u=Math.round((c-s+1)/i),l=Math.round((a-o+1)/i);if(u<=0||l<=0)throw new De;if(l!==u)throw new De;var h=Math.floor(i/2);o+=h,s+=h;var d=s+Math.floor((u-1)*i)-c;if(d>0){if(d>h)throw new De;s-=d}var f=o+Math.floor((l-1)*i)-a;if(f>0){if(f>h)throw new De;o-=f}for(var p=new gi(u,l),g=0;g=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lt=function(){function t(){}return t.prototype.PDF417Common=function(){},t.getBitCountSum=function(e){return ft.sum(e)},t.toIntArray=function(e){var n,r;if(e==null||!e.length)return t.EMPTY_INT_ARRAY;var i=new Int32Array(e.length),o=0;try{for(var a=f7(e),s=a.next();!s.done;s=a.next()){var c=s.value;i[o++]=c}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},t.getCodeword=function(e){var n=sn.binarySearch(t.SYMBOL_TABLE,e&262143);return n<0?-1:(t.CODEWORD_TABLE[n]-1)%t.NUMBER_OF_CODEWORDS},t.NUMBER_OF_CODEWORDS=929,t.MAX_CODEWORDS_IN_BARCODE=t.NUMBER_OF_CODEWORDS-1,t.MIN_ROWS_IN_BARCODE=3,t.MAX_ROWS_IN_BARCODE=90,t.MODULES_IN_CODEWORD=17,t.MODULES_IN_STOP_PATTERN=18,t.BARS_IN_MODULE=8,t.EMPTY_INT_ARRAY=new Int32Array([]),t.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),t.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),t}(),p7=function(){function t(e,n){this.bits=e,this.points=n}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}(),g7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},m7=function(){function t(){}return t.detectMultiple=function(e,n,r){var i=e.getBlackMatrix(),o=t.detect(r,i);return o.length||(i=i.clone(),i.rotate180(),o=t.detect(r,i)),new p7(i,o)},t.detect=function(e,n){for(var r,i,o=new Array,a=0,s=0,c=!1;a0;){var h=t.findGuardPattern(e,o,--i,r,!1,a,u);if(h!=null)l=h;else{i++;break}}s[0]=new Ve(l[0],i),s[1]=new Ve(l[1],i),c=!0;break}}var d=i+1;if(c){for(var f=0,h=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);dt.SKIPPED_ROW_COUNT_MAX)break;f++}}d-=f+1,s[2]=new Ve(h[0],d),s[3]=new Ve(h[1],d)}return d-i0&&u++d?h-d:d-h;if(f>r)return 1/0;u+=f}return u/o},t.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),t.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),t.MAX_AVG_VARIANCE=.42,t.MAX_INDIVIDUAL_VARIANCE=.8,t.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),t.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),t.MAX_PIXEL_DRIFT=3,t.MAX_PATTERN_DRIFT=5,t.SKIPPED_ROW_COUNT_MAX=25,t.ROW_STEP=5,t.BARCODE_MIN_HEIGHT=10,t}(),R7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},co=function(){function t(e,n){if(n.length===0)throw new Ge;this.field=e;var r=n.length;if(r>1&&n[0]===0){for(var i=1;ir.length){var i=n;n=r,r=i}var o=new Int32Array(r.length),a=r.length-n.length;Mt.arraycopy(r,0,o,0,a);for(var s=a;s=0;n--){var r=this.getCoefficient(n);r!==0&&(r<0?(e.append(" - "),r=-r):e.length()>0&&e.append(" + "),(n===0||r!==1)&&e.append(r),n!==0&&(n===1?e.append("x"):(e.append("x^"),e.append(n))))}return e.toString()},t}(),y7=function(){function t(){}return t.prototype.add=function(e,n){return(e+n)%this.modulus},t.prototype.subtract=function(e,n){return(this.modulus+e-n)%this.modulus},t.prototype.exp=function(e){return this.expTable[e]},t.prototype.log=function(e){if(e===0)throw new Ge;return this.logTable[e]},t.prototype.inverse=function(e){if(e===0)throw new lb;return this.expTable[this.modulus-this.logTable[e]-1]},t.prototype.multiply=function(e,n){return e===0||n===0?0:this.expTable[(this.logTable[e]+this.logTable[n])%(this.modulus-1)]},t.prototype.getSize=function(){return this.modulus},t.prototype.equals=function(e){return e===this},t}(),v7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),b7=function(t){v7(e,t);function e(n,r){var i=t.call(this)||this;i.modulus=n,i.expTable=new Int32Array(n),i.logTable=new Int32Array(n);for(var o=1,a=0;a=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},w7=function(){function t(){this.field=b7.PDF417_GF}return t.prototype.decode=function(e,n,r){for(var i,o,a=new co(this.field,e),s=new Int32Array(n),c=!1,u=n;u>0;u--){var l=a.evaluateAt(this.field.exp(u));s[n-u]=l,l!==0&&(c=!0)}if(!c)return 0;var h=this.field.getOne();if(r!=null)try{for(var d=x7(r),f=d.next();!f.done;f=d.next()){var p=f.value,g=this.field.exp(e.length-1-p),y=new co(this.field,new Int32Array([this.field.subtract(0,g),1]));h=h.multiply(y)}}catch(M){i={error:M}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}for(var R=new co(this.field,s),m=this.runEuclideanAlgorithm(this.field.buildMonomial(n,1),R,n),v=m[0],x=m[1],O=this.findErrorLocations(v),E=this.findErrorMagnitudes(x,v,O),u=0;u=Math.round(r/2);){var u=o,l=s;if(o=a,s=c,o.isZero())throw qt.getChecksumInstance();a=u;for(var h=this.field.getZero(),d=o.getCoefficient(o.getDegree()),f=this.field.inverse(d);a.getDegree()>=o.getDegree()&&!a.isZero();){var p=a.getDegree()-o.getDegree(),g=this.field.multiply(a.getCoefficient(a.getDegree()),f);h=h.add(this.field.buildMonomial(p,g)),a=a.subtract(o.multiplyByMonomial(p,g))}c=h.multiply(s).subtract(l).negative()}var y=c.getCoefficient(0);if(y===0)throw qt.getChecksumInstance();var R=this.field.inverse(y),m=c.multiply(R),v=a.multiply(R);return[m,v]},t.prototype.findErrorLocations=function(e){for(var n=e.getDegree(),r=new Int32Array(n),i=0,o=1;o0){var c=r?this.topLeft:this.topRight,u=Math.trunc(c.getY()-e);u<0&&(u=0);var l=new Ve(c.getX(),u);r?i=l:a=l}if(n>0){var h=r?this.bottomLeft:this.bottomRight,d=Math.trunc(h.getY()+n);d>=this.image.getHeight()&&(d=this.image.getHeight()-1);var f=new Ve(h.getX(),d);r?o=f:s=f}return new t(this.image,i,o,a,s)},t.prototype.getMinX=function(){return this.minX},t.prototype.getMaxX=function(){return this.maxX},t.prototype.getMinY=function(){return this.minY},t.prototype.getMaxY=function(){return this.maxY},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getBottomRight=function(){return this.bottomRight},t}(),T7=function(){function t(e,n,r,i){this.columnCount=e,this.errorCorrectionLevel=i,this.rowCountUpperPart=n,this.rowCountLowerPart=r,this.rowCount=n+r}return t.prototype.getColumnCount=function(){return this.columnCount},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},t.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},t}(),Jp=function(){function t(){this.buffer=""}return t.form=function(e,n){var r=-1;function i(a,s,c,u,l,h){if(a==="%%")return"%";if(n[++r]!==void 0){a=u?parseInt(u.substr(1)):void 0;var d=l?parseInt(l.substr(1)):void 0,f;switch(h){case"s":f=n[r];break;case"c":f=n[r][0];break;case"f":f=parseFloat(n[r]).toFixed(a);break;case"p":f=parseFloat(n[r]).toPrecision(a);break;case"e":f=parseFloat(n[r]).toExponential(a);break;case"x":f=parseInt(n[r]).toString(d||16);break;case"d":f=parseFloat(parseInt(n[r],d||10).toPrecision(a)).toFixed(0);break}f=typeof f=="object"?JSON.stringify(f):(+f).toString(d);for(var p=parseInt(c),g=c&&c[0]+""=="0"?"0":" ";f.length=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},yb=function(){function t(e){this.boundingBox=new Qd(e),this.codewords=new Array(e.getMaxY()-e.getMinY()+1)}return t.prototype.getCodewordNearby=function(e){var n=this.getCodeword(e);if(n!=null)return n;for(var r=1;r=0&&(n=this.codewords[i],n!=null)||(i=this.imageRowToCodewordIndex(e)+r,i=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},O7=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},hs=function(){function t(){this.values=new Map}return t.prototype.setValue=function(e){e=Math.trunc(e);var n=this.values.get(e);n==null&&(n=0),n++,this.values.set(e,n)},t.prototype.getValue=function(){var e,n,r=-1,i=new Array,o=function(h,d){var f={getKey:function(){return h},getValue:function(){return d}};f.getValue()>r?(r=f.getValue(),i=[],i.push(f.getKey())):f.getValue()===r&&i.push(f.getKey())};try{for(var a=D7(this.values.entries()),s=a.next();!s.done;s=a.next()){var c=O7(s.value,2),u=c[0],l=c[1];o(u,l)}}catch(h){e={error:h}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return lt.toIntArray(i)},t.prototype.getConfidence=function(e){return this.values.get(e)},t}(),_7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ed=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},wm=function(t){_7(e,t);function e(n,r){var i=t.call(this,n)||this;return i._isLeft=r,i}return e.prototype.setRowNumbers=function(){var n,r;try{for(var i=ed(this.getCodewords()),o=i.next();!o.done;o=i.next()){var a=o.value;a!=null&&a.setRowNumberAsRowIndicatorColumn()}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.adjustCompleteIndicatorColumnRowNumbers=function(n){var r=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(r,n);for(var i=this.getBoundingBox(),o=this._isLeft?i.getTopLeft():i.getTopRight(),a=this._isLeft?i.getBottomLeft():i.getBottomRight(),s=this.imageRowToCodewordIndex(Math.trunc(o.getY())),c=this.imageRowToCodewordIndex(Math.trunc(a.getY())),u=-1,l=1,h=0,d=s;d=n.getRowCount()||p>d)r[d]=null;else{var g=void 0;l>2?g=(l-2)*p:g=p;for(var y=g>=d,R=1;R<=g&&!y;R++)y=r[d-R]!=null;y?r[d]=null:(u=f.getRowNumber(),h=1)}}},e.prototype.getRowHeights=function(){var n,r,i=this.getBarcodeMetadata();if(i==null)return null;this.adjustIncompleteIndicatorColumnRowNumbers(i);var o=new Int32Array(i.getRowCount());try{for(var a=ed(this.getCodewords()),s=a.next();!s.done;s=a.next()){var c=s.value;if(c!=null){var u=c.getRowNumber();if(u>=o.length)continue;o[u]++}}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(n){for(var r=this.getBoundingBox(),i=this._isLeft?r.getTopLeft():r.getTopRight(),o=this._isLeft?r.getBottomLeft():r.getBottomRight(),a=this.imageRowToCodewordIndex(Math.trunc(i.getY())),s=this.imageRowToCodewordIndex(Math.trunc(o.getY())),c=this.getCodewords(),u=-1,l=a;l=n.getRowCount()?c[l]=null:u=h.getRowNumber())}},e.prototype.getBarcodeMetadata=function(){var n,r,i=this.getCodewords(),o=new hs,a=new hs,s=new hs,c=new hs;try{for(var u=ed(i),l=u.next();!l.done;l=u.next()){var h=l.value;if(h!=null){h.setRowNumberAsRowIndicatorColumn();var d=h.getValue()%30,f=h.getRowNumber();switch(this._isLeft||(f+=2),f%3){case 0:a.setValue(d*3+1);break;case 1:c.setValue(d/3),s.setValue(d%3);break;case 2:o.setValue(d+1);break}}}}catch(g){n={error:g}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(o.getValue().length===0||a.getValue().length===0||s.getValue().length===0||c.getValue().length===0||o.getValue()[0]<1||a.getValue()[0]+s.getValue()[0]lt.MAX_ROWS_IN_BARCODE)return null;var p=new T7(o.getValue()[0],a.getValue()[0],s.getValue()[0],c.getValue()[0]);return this.removeIncorrectCodewords(i,p),p},e.prototype.removeIncorrectCodewords=function(n,r){for(var i=0;ir.getRowCount()){n[i]=null;continue}switch(this._isLeft||(s+=2),s%3){case 0:a*3+1!==r.getRowCountUpperPart()&&(n[i]=null);break;case 1:(Math.trunc(a/3)!==r.getErrorCorrectionLevel()||a%3!==r.getRowCountLowerPart())&&(n[i]=null);break;case 2:a+1!==r.getColumnCount()&&(n[i]=null);break}}}},e.prototype.isLeft=function(){return this._isLeft},e.prototype.toString=function(){return"IsLeft: "+this._isLeft+` `+t.prototype.toString.call(this)},e}(yb),E7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},I7=function(){function t(e,n){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=n,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return t.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var e=lt.MAX_CODEWORDS_IN_BARCODE,n;do n=e,e=this.adjustRowNumbersAndGetCount();while(e>0&&e0&&o0&&(u[0]=r[n-1],u[4]=s[n-1],u[5]=c[n-1]),n>1&&(u[8]=r[n-2],u[10]=s[n-2],u[11]=c[n-2]),n>=1;r=n&1,t.RATIOS_TABLE[e]||(t.RATIOS_TABLE[e]=new Array(lt.BARS_IN_MODULE)),t.RATIOS_TABLE[e][lt.BARS_IN_MODULE-i-1]=Math.fround(o/lt.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},t.getDecodedValue=function(e){var n=t.getDecodedCodewordValue(t.sampleBitCounts(e));return n!==-1?n:t.getClosestDecodedValue(e)},t.sampleBitCounts=function(e){for(var n=ft.sum(e),r=new Int32Array(lt.BARS_IN_MODULE),i=0,o=0,a=0;a1)for(var i=0;i=o)break}ce.length||r<0||n+r>e.length||n+r<0)throw new Qp;if(r===0)return;for(var i=0;i0&&this.grow(n)},e.prototype.grow=function(n){var r=this.buf.length,i=r<<1;if(i-n<0&&(i=n),i<0){if(n<0)throw new U7;i=$t.MAX_VALUE}this.buf=sn.copyOfUint8Array(this.buf,i)},e.prototype.write=function(n){this.ensureCapacity(this.count+1),this.buf[this.count]=n,this.count+=1},e.prototype.writeBytesOffset=function(n,r,i){if(r<0||r>n.length||i<0||r+i-n.length>0)throw new Qp;this.ensureCapacity(this.count+i),Mt.arraycopy(n,r,this.buf,this.count,i),this.count+=i},e.prototype.writeTo=function(n){n.writeBytesOffset(this.buf,0,this.count)},e.prototype.reset=function(){this.count=0},e.prototype.toByteArray=function(){return sn.copyOfUint8Array(this.buf,this.count)},e.prototype.size=function(){return this.count},e.prototype.toString=function(n){return n?typeof n=="string"?this.toString_string(n):this.toString_number(n):this.toString_void()},e.prototype.toString_void=function(){return new String(this.buf).toString()},e.prototype.toString_string=function(n){return new String(this.buf).toString()},e.prototype.toString_number=function(n){return new String(this.buf).toString()},e.prototype.close=function(){},e}(C7),Ot;(function(t){t[t.ALPHA=0]="ALPHA",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.PUNCT=3]="PUNCT",t[t.ALPHA_SHIFT=4]="ALPHA_SHIFT",t[t.PUNCT_SHIFT=5]="PUNCT_SHIFT"})(Ot||(Ot={}));function vb(){if(typeof window!="undefined")return window.BigInt||null;if(typeof global!="undefined")return global.BigInt||null;if(typeof self!="undefined")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}var Hc;function Ni(t){if(typeof Hc=="undefined"&&(Hc=vb()),Hc===null)throw new Error("BigInt is not supported!");return Hc(t)}function V7(){var t=[];t[0]=Ni(1);var e=Ni(900);t[1]=e;for(var n=2;n<16;n++)t[n]=t[n-1]*e;return t}var Y7=function(){function t(){}return t.decode=function(e,n){var r=new rt(""),i=an.ISO8859_1;r.enableDecoding(i);for(var o=1,a=e[o++],s=new P7;oe[0])throw Le.getFormatInstance();for(var i=new Int32Array(t.NUMBER_OF_SEQUENCE_CODEWORDS),o=0;o0){for(var d=0;d<6;++d)a.write(Number(Ni(c)>>Ni(8*(5-d))));c=0,s=0}break}i===n[0]&&h0){for(var d=0;d<6;++d)a.write(Number(Ni(c)>>Ni(8*(5-d))));c=0,s=0}}break}return o.append(wr.decode(a.toByteArray(),r)),i},t.numericCompaction=function(e,n,r){for(var i=0,o=!1,a=new Int32Array(t.MAX_NUMERIC_CODEWORDS);n0&&(r.append(t.decodeBase900toBase10(a,i)),i=0)}return n},t.decodeBase900toBase10=function(e,n){for(var r=Ni(0),i=0;i@[\\]_\`~!\r ,: -.$/"|*()?{}'`,t.MIXED_CHARS="0123456789&\r ,:#-.$/+%*=^",t.EXP900=vb()?V7():[],t.NUMBER_OF_SEQUENCE_CODEWORDS=2,t}(),os=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},B7=function(){function t(){}return t.decode=function(e,n,r,i,o,a,s){for(var c=new Qd(e,n,r,i,o),u=null,l=null,h,d=!0;;d=!1){if(n!=null&&(u=t.getRowIndicatorColumn(e,c,n,!0,a,s)),i!=null&&(l=t.getRowIndicatorColumn(e,c,i,!1,a,s)),h=t.merge(u,l),h==null)throw De.getNotFoundInstance();var f=h.getBoundingBox();if(d&&f!=null&&(f.getMinY()c.getMaxY()))c=f;else break}h.setBoundingBox(c);var p=h.getBarcodeColumnCount()+1;h.setDetectionResultColumn(0,u),h.setDetectionResultColumn(p,l);for(var g=u!=null,y=1;y<=p;y++){var R=g?y:p-y;if(h.getDetectionResultColumn(R)===void 0){var m=void 0;R===0||R===p?m=new wm(c,R===0):m=new yb(c),h.setDetectionResultColumn(R,m);for(var v=-1,x=v,O=c.getMinY();O<=c.getMaxY();O++){if(v=t.getStartColumn(h,R,O,g),v<0||v>c.getMaxX()){if(x===-1)continue;v=x}var E=t.detectCodeword(e,c.getMinX(),c.getMaxX(),g,v,O,a,s);E!=null&&(m.setCodeword(O,E),x=v,a=Math.min(a,E.getWidth()),s=Math.max(s,E.getWidth()))}}}return t.createDecoderResult(h)},t.merge=function(e,n){if(e==null&&n==null)return null;var r=t.getBarcodeMetadata(e,n);if(r==null)return null;var i=Qd.merge(t.adjustBoundingBox(e),t.adjustBoundingBox(n));return new I7(r,i)},t.adjustBoundingBox=function(e){var n,r;if(e==null)return null;var i=e.getRowHeights();if(i==null)return null;var o=t.getMax(i),a=0;try{for(var s=os(i),c=s.next();!c.done;c=s.next()){var u=c.value;if(a+=o-u,u>0)break}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}for(var l=e.getCodewords(),h=0;a>0&&l[h]==null;h++)a--;for(var d=0,h=i.length-1;h>=0&&(d+=o-i[h],!(i[h]>0));h--);for(var h=l.length-1;d>0&&l[h]==null;h--)d--;return e.getBoundingBox().addMissingRows(a,d,e.isLeft())},t.getMax=function(e){var n,r,i=-1;try{for(var o=os(e),a=o.next();!a.done;a=o.next()){var s=a.value;i=Math.max(i,s)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},t.getBarcodeMetadata=function(e,n){var r;if(e==null||(r=e.getBarcodeMetadata())==null)return n==null?null:n.getBarcodeMetadata();var i;return n==null||(i=n.getBarcodeMetadata())==null?r:r.getColumnCount()!==i.getColumnCount()&&r.getErrorCorrectionLevel()!==i.getErrorCorrectionLevel()&&r.getRowCount()!==i.getRowCount()?null:r},t.getRowIndicatorColumn=function(e,n,r,i,o,a){for(var s=new wm(n,i),c=0;c<2;c++)for(var u=c===0?1:-1,l=Math.trunc(Math.trunc(r.getX())),h=Math.trunc(Math.trunc(r.getY()));h<=n.getMaxY()&&h>=n.getMinY();h+=u){var d=t.detectCodeword(e,0,e.getWidth(),i,l,h,o,a);d!=null&&(s.setCodeword(h,d),i?l=d.getStartX():l=d.getEndX())}return s},t.adjustCodewordCount=function(e,n){var r=n[0][1],i=r.getValue(),o=e.getBarcodeColumnCount()*e.getBarcodeRowCount()-t.getNumberOfECCodeWords(e.getBarcodeECLevel());if(i.length===0){if(o<1||o>lt.MAX_CODEWORDS_IN_BARCODE)throw De.getNotFoundInstance();r.setValue(o)}else i[0]!==o&&r.setValue(o)},t.createDecoderResult=function(e){var n=t.createBarcodeMatrix(e);t.adjustCodewordCount(e,n);for(var r=new Array,i=new Int32Array(e.getBarcodeRowCount()*e.getBarcodeColumnCount()),o=[],a=new Array,s=0;s0;){for(var c=0;c=0){if(y>=a.length)continue;a[y][u].setValue(g.getValue())}}}}catch(R){i={error:R}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}u++}}catch(R){n={error:R}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return a},t.isValidBarcodeColumn=function(e,n){return n>=0&&n<=e.getBarcodeColumnCount()+1},t.getStartColumn=function(e,n,r,i){var o,a,s=i?1:-1,c=null;if(t.isValidBarcodeColumn(e,n-s)&&(c=e.getDetectionResultColumn(n-s).getCodeword(r)),c!=null)return i?c.getEndX():c.getStartX();if(c=e.getDetectionResultColumn(n).getCodewordNearby(r),c!=null)return i?c.getStartX():c.getEndX();if(t.isValidBarcodeColumn(e,n-s)&&(c=e.getDetectionResultColumn(n-s).getCodewordNearby(r)),c!=null)return i?c.getEndX():c.getStartX();for(var u=0;t.isValidBarcodeColumn(e,n-s);){n-=s;try{for(var l=(o=void 0,os(e.getDetectionResultColumn(n).getCodewords())),h=l.next();!h.done;h=l.next()){var d=h.value;if(d!=null)return(i?d.getEndX():d.getStartX())+s*u*(d.getEndX()-d.getStartX())}}catch(f){o={error:f}}finally{try{h&&!h.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}u++}return i?e.getBoundingBox().getMinX():e.getBoundingBox().getMaxX()},t.detectCodeword=function(e,n,r,i,o,a,s,c){o=t.adjustCodewordStartColumn(e,n,r,i,o,a);var u=t.getModuleBitCount(e,n,r,i,o,a);if(u==null)return null;var l,h=ft.sum(u);if(i)l=o+h;else{for(var d=0;d=n)&&u=n:st.CODEWORD_SKEW_SIZE)return o;s+=c}c=-c,i=!i}return s},t.checkCodewordSkew=function(e,n,r){return n-t.CODEWORD_SKEW_SIZE<=e&&e<=r+t.CODEWORD_SKEW_SIZE},t.decodeCodewords=function(e,n,r){if(e.length===0)throw Le.getFormatInstance();var i=1<r/2+t.MAX_ERRORS||r<0||r>t.MAX_EC_CODEWORDS)throw qt.getChecksumInstance();return t.errorCorrection.decode(e,r,n)},t.verifyCodewordCount=function(e,n){if(e.length<4)throw Le.getFormatInstance();var r=e[0];if(r>e.length)throw Le.getFormatInstance();if(r===0)if(n>=1;return n},t.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},t.getCodewordBucketNumber_number=function(e){return t.getCodewordBucketNumber(t.getBitCountForCodeword(e))},t.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},t.toString=function(e){for(var n=new Jp,r=0;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Nu=function(){function t(){}return t.prototype.decode=function(e,n){n===void 0&&(n=null);var r=t.decode(e,n,!1);if(r==null||r.length===0||r[0]==null)throw De.getNotFoundInstance();return r[0]},t.prototype.decodeMultiple=function(e,n){n===void 0&&(n=null);try{return t.decode(e,n,!0)}catch(r){throw r instanceof Le||r instanceof qt?De.getNotFoundInstance():r}},t.decode=function(e,n,r){var i,o,a=new Array,s=m7.detectMultiple(e,n,r);try{for(var c=Z7(s.getPoints()),u=c.next();!u.done;u=c.next()){var l=u.value,h=B7.decode(s.getBits(),l[4],l[5],l[6],l[7],t.getMinCodewordWidth(l),t.getMaxCodewordWidth(l)),d=new Cn(h.getText(),h.getRawBytes(),void 0,l,Ke.PDF_417);d.putMetadata(Tn.ERROR_CORRECTION_LEVEL,h.getECLevel());var f=h.getOther();f!=null&&d.putMetadata(Tn.PDF417_EXTRA_METADATA,f),a.push(d)}}catch(p){i={error:p}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return a.map(function(p){return p})},t.getMaxWidth=function(e,n){return e==null||n==null?0:Math.trunc(Math.abs(e.getX()-n.getX()))},t.getMinWidth=function(e,n){return e==null||n==null?$t.MAX_VALUE:Math.trunc(Math.abs(e.getX()-n.getX()))},t.getMaxCodewordWidth=function(e){return Math.floor(Math.max(Math.max(t.getMaxWidth(e[0],e[4]),t.getMaxWidth(e[6],e[2])*lt.MODULES_IN_CODEWORD/lt.MODULES_IN_STOP_PATTERN),Math.max(t.getMaxWidth(e[1],e[5]),t.getMaxWidth(e[7],e[3])*lt.MODULES_IN_CODEWORD/lt.MODULES_IN_STOP_PATTERN)))},t.getMinCodewordWidth=function(e){return Math.floor(Math.min(Math.min(t.getMinWidth(e[0],e[4]),t.getMinWidth(e[6],e[2])*lt.MODULES_IN_CODEWORD/lt.MODULES_IN_STOP_PATTERN),Math.min(t.getMinWidth(e[1],e[5]),t.getMinWidth(e[7],e[3])*lt.MODULES_IN_CODEWORD/lt.MODULES_IN_STOP_PATTERN)))},t.prototype.reset=function(){},t}(),k7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sm=function(t){k7(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ReaderException",e}(nr),Dm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},bb=function(){function t(){}return t.prototype.decode=function(e,n){return this.setHints(n),this.decodeInternal(e)},t.prototype.decodeWithState=function(e){return(this.readers===null||this.readers===void 0)&&this.setHints(null),this.decodeInternal(e)},t.prototype.setHints=function(e){this.hints=e;var n=e!=null&&e.get(Lt.TRY_HARDER)!==void 0,r=e==null?null:e.get(Lt.POSSIBLE_FORMATS),i=new Array;if(r!=null){var o=r.some(function(a){return a===Ke.UPC_A||a===Ke.UPC_E||a===Ke.EAN_13||a===Ke.EAN_8||a===Ke.CODABAR||a===Ke.CODE_39||a===Ke.CODE_93||a===Ke.CODE_128||a===Ke.ITF||a===Ke.RSS_14||a===Ke.RSS_EXPANDED});o&&!n&&i.push(new zo(e)),r.includes(Ke.QR_CODE)&&i.push(new Iu),r.includes(Ke.DATA_MATRIX)&&i.push(new Eu),r.includes(Ke.AZTEC)&&i.push(new Ou),r.includes(Ke.PDF_417)&&i.push(new Nu),o&&n&&i.push(new zo(e))}i.length===0&&(n||i.push(new zo(e)),i.push(new Iu),i.push(new Eu),i.push(new Ou),i.push(new Nu),n&&i.push(new zo(e))),this.readers=i},t.prototype.reset=function(){var e,n;if(this.readers!==null)try{for(var r=Dm(this.readers),i=r.next();!i.done;i=r.next()){var o=i.value;o.reset()}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.decodeInternal=function(e){var n,r;if(this.readers===null)throw new Sm("No readers where selected, nothing can be read.");try{for(var i=Dm(this.readers),o=i.next();!o.done;o=i.next()){var a=o.value;try{return a.decode(e,this.hints)}catch(s){if(s instanceof Sm)continue}}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}throw new De("No MultiFormat Readers were able to detect the code.")},t}(),Q7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){Q7(e,t);function e(n,r){n===void 0&&(n=null),r===void 0&&(r=500);var i=this,o=new bb;return o.setHints(n),i=t.call(this,o,r)||this,i}return e.prototype.decodeBitmap=function(n){return this.reader.decodeWithState(n)},e})(Ca);var K7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){K7(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new Nu,n)||this}return e})(Ca);var H7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){H7(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new Iu,n)||this}return e})(Ca);var Kd;(function(t){t[t.ERROR_CORRECTION=0]="ERROR_CORRECTION",t[t.CHARACTER_SET=1]="CHARACTER_SET",t[t.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",t[t.DATA_MATRIX_COMPACT=3]="DATA_MATRIX_COMPACT",t[t.MIN_SIZE=4]="MIN_SIZE",t[t.MAX_SIZE=5]="MAX_SIZE",t[t.MARGIN=6]="MARGIN",t[t.PDF417_COMPACT=7]="PDF417_COMPACT",t[t.PDF417_COMPACTION=8]="PDF417_COMPACTION",t[t.PDF417_DIMENSIONS=9]="PDF417_DIMENSIONS",t[t.AZTEC_LAYERS=10]="AZTEC_LAYERS",t[t.QR_VERSION=11]="QR_VERSION",t[t.GS1_FORMAT=12]="GS1_FORMAT",t[t.FORCE_C40=13]="FORCE_C40"})(Kd||(Kd={}));var kr=Kd,G7=function(){function t(e){this.field=e,this.cachedGenerators=[],this.cachedGenerators.push(new Wi(e,Int32Array.from([1])))}return t.prototype.buildGenerator=function(e){var n=this.cachedGenerators;if(e>=n.length)for(var r=n[n.length-1],i=this.field,o=n.length;o<=e;o++){var a=r.multiply(new Wi(i,Int32Array.from([1,i.exp(o-1+i.getGeneratorBase())])));n.push(a),r=a}return n[e]},t.prototype.encode=function(e,n){if(n===0)throw new Ge("No error correction bytes");var r=e.length-n;if(r<=0)throw new Ge("No data bytes provided");var i=this.buildGenerator(n),o=new Int32Array(r);Mt.arraycopy(e,0,o,0,r);var a=new Wi(this.field,o);a=a.multiplyByMonomial(n,1);for(var s=a.divide(i)[1],c=s.getCoefficients(),u=n-c.length,l=0;l=5&&(r+=t.N1+(c-5)),c=1,u=h)}c>=5&&(r+=t.N1+(c-5))}return r},t.N1=3,t.N2=3,t.N3=40,t.N4=10,t}(),J7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},z7=function(){function t(e,n){this.width=e,this.height=n;for(var r=new Array(n),i=0;i!==n;i++)r[i]=new Uint8Array(e);this.bytes=r}return t.prototype.getHeight=function(){return this.height},t.prototype.getWidth=function(){return this.width},t.prototype.get=function(e,n){return this.bytes[n][e]},t.prototype.getArray=function(){return this.bytes},t.prototype.setNumber=function(e,n,r){this.bytes[n][e]=r},t.prototype.setBoolean=function(e,n,r){this.bytes[n][e]=r?1:0},t.prototype.clear=function(e){var n,r;try{for(var i=J7(this.bytes),o=i.next();!o.done;o=i.next()){var a=o.value;sn.fill(a,e)}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;if(this.width!==n.width||this.height!==n.height)return!1;for(var r=0,i=this.height;r> `),e.toString()},t.prototype.setMode=function(e){this.mode=e},t.prototype.setECLevel=function(e){this.ecLevel=e},t.prototype.setVersion=function(e){this.version=e},t.prototype.setMaskPattern=function(e){this.maskPattern=e},t.prototype.setMatrix=function(e){this.matrix=e},t.isValidMaskPattern=function(e){return e>=0&&e0;){for(a===6&&(a-=1);s>=0&&s=r;)e^=n<=0)for(var c=0;c!==a;c++){var u=i[c];u>=0&&t.isEmpty(n.get(u,s))&&t.embedPositionAdjustmentPattern(u-2,s-2,n)}}},t.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),t.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),t.VERSION_INFO_POLY=7973,t.TYPE_INFO_POLY=1335,t.TYPE_INFO_MASK_PATTERN=21522,t}(),j7=function(){function t(e,n){this.dataBytes=e,this.errorCorrectionBytes=n}return t.prototype.getDataBytes=function(){return this.dataBytes},t.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},t}(),_m=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},q7=function(){function t(){}return t.calculateMaskPenalty=function(e){return ds.applyMaskPenaltyRule1(e)+ds.applyMaskPenaltyRule2(e)+ds.applyMaskPenaltyRule3(e)+ds.applyMaskPenaltyRule4(e)},t.encode=function(e,n,r){r===void 0&&(r=null);var i=t.DEFAULT_BYTE_MODE_ENCODING,o=r!==null&&r.get(kr.CHARACTER_SET)!==void 0;o&&(i=r.get(kr.CHARACTER_SET).toString());var a=this.chooseMode(e,i),s=new Jn;if(a===Ut.BYTE&&(o||t.DEFAULT_BYTE_MODE_ENCODING!==i)){var c=an.getCharacterSetECIByName(i);c!==void 0&&this.appendECI(c,s)}this.appendModeInfo(a,s);var u=new Jn;this.appendBytes(e,a,u,i);var l;if(r!==null&&r.get(kr.QR_VERSION)!==void 0){var h=Number.parseInt(r.get(kr.QR_VERSION).toString(),10);l=fo.getVersionForNumber(h);var d=this.calculateBitsNeeded(a,s,u,l);if(!this.willFit(d,l,n))throw new At("Data too big for requested version")}else l=this.recommendVersion(n,a,s,u);var f=new Jn;f.appendBitArray(s);var p=a===Ut.BYTE?u.getSizeInBytes():e.length;this.appendLengthInfo(p,l,a,f),f.appendBitArray(u);var g=l.getECBlocksForLevel(n),y=l.getTotalCodewords()-g.getTotalECCodewords();this.terminateBits(y,f);var R=this.interleaveWithECBytes(f,l.getTotalCodewords(),y,g.getNumBlocks()),m=new Hd;m.setECLevel(n),m.setMode(a),m.setVersion(l);var v=l.getDimensionForVersion(),x=new z7(v,v),O=this.chooseMaskPattern(R,n,l,x);return m.setMaskPattern(O),Om.buildMatrix(R,n,l,O,x),m.setMatrix(x),m},t.recommendVersion=function(e,n,r,i){var o=this.calculateBitsNeeded(n,r,i,fo.getVersionForNumber(1)),a=this.chooseVersion(o,e),s=this.calculateBitsNeeded(n,r,i,a);return this.chooseVersion(s,e)},t.calculateBitsNeeded=function(e,n,r,i){return n.getSize()+e.getCharacterCountBits(i)+r.getSize()},t.getAlphanumericCode=function(e){return e159)&&(o<224||o>235))return!1}return!0},t.chooseMaskPattern=function(e,n,r,i){for(var o=Number.MAX_SAFE_INTEGER,a=-1,s=0;s=c},t.terminateBits=function(e,n){var r=e*8;if(n.getSize()>r)throw new At("data bits cannot fit in the QR Code"+n.getSize()+" > "+r);for(var i=0;i<4&&n.getSize()0)for(var i=o;i<8;i++)n.appendBit(!1);for(var a=e-n.getSizeInBytes(),i=0;i=r)throw new At("Block ID too large");var s=e%r,c=r-s,u=Math.floor(e/r),l=u+1,h=Math.floor(n/r),d=h+1,f=u-h,p=l-d;if(f!==p)throw new At("EC bytes mismatch");if(r!==c+s)throw new At("RS blocks mismatch");if(e!==(h+f)*c+(d+p)*s)throw new At("Total bytes mismatch");i=1<=0&&n<=9},t.appendNumericBytes=function(e,n){for(var r=e.length,i=0;i=33088&&c<=40956?u=c-33088:c>=57408&&c<=60351&&(u=c-49472),u===-1)throw new At("Invalid byte sequence");var l=(u>>8)*192+(u&255);n.appendBits(l,13)}},t.appendECI=function(e,n){n.appendBits(Ut.ECI.getBits(),4),n.appendBits(e.getValue(),8)},t.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),t.DEFAULT_BYTE_MODE_ENCODING=an.UTF8.getName(),t}(),eV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){eV(e,t);function e(n,r,i,o,a,s,c,u){var l=t.call(this,s,c)||this;if(l.yuvData=n,l.dataWidth=r,l.dataHeight=i,l.left=o,l.top=a,o+s>r||a+c>i)throw new Ge("Crop rectangle does not fit within image data.");return u&&l.reverseHorizontal(s,c),l}return e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new Ge("Requested row is outside the image: "+n);var i=this.getWidth();(r==null||r.length>16&255,g=f>>7&510,y=f&255;h[d]=(p+g+y)/4&255}u.luminances=h}else u.luminances=n;if(o===void 0&&(u.dataWidth=r),a===void 0&&(u.dataHeight=i),s===void 0&&(u.left=0),c===void 0&&(u.top=0),u.left+r>u.dataWidth||u.top+i>u.dataHeight)throw new Ge("Crop rectangle does not fit within image data.");return u}return e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new Ge("Requested row is outside the image: "+n);var i=this.getWidth();(r==null||r.length=256&&(n^=oV);return{LOG:t,ALOG:e}};Gd=aV([],[]),Gd.LOG;Gd.ALOG;var Em;(function(t){t[t.FORCE_NONE=0]="FORCE_NONE",t[t.FORCE_SQUARE=1]="FORCE_SQUARE",t[t.FORCE_RECTANGLE=2]="FORCE_RECTANGLE"})(Em||(Em={}));var Im=129,xb=230,sV=231,cV=235,uV=236,lV=237,hV=238,dV=239,fV=240,td=254,pV=254,Nm="[)>05",Fm="[)>06",Pm="",Tt=0,vn=1,Vn=2,rn=3,dn=4,On=5,gV=function(){function t(){}return t.prototype.getEncodingMode=function(){return Tt},t.prototype.encode=function(e){var n=Er.determineConsecutiveDigitCount(e.getMessage(),e.pos);if(n>=2)e.writeCodeword(this.encodeASCIIDigits(e.getMessage().charCodeAt(e.pos),e.getMessage().charCodeAt(e.pos+1))),e.pos+=2;else{var r=e.getCurrentChar(),i=Er.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(i!==this.getEncodingMode())switch(i){case On:e.writeCodeword(sV),e.signalEncoderChange(On);return;case vn:e.writeCodeword(xb),e.signalEncoderChange(vn);return;case rn:e.writeCodeword(hV),e.signalEncoderChange(rn);break;case Vn:e.writeCodeword(dV),e.signalEncoderChange(Vn);break;case dn:e.writeCodeword(fV),e.signalEncoderChange(dn);break;default:throw new Error("Illegal mode: "+i)}else Er.isExtendedASCII(r)?(e.writeCodeword(cV),e.writeCodeword(r-128+1),e.pos++):(e.writeCodeword(r+1),e.pos++)}},t.prototype.encodeASCIIDigits=function(e,n){if(Er.isDigit(e)&&Er.isDigit(n)){var r=(e-48)*10+(n-48);return r+130}throw new Error("not digits: "+e+n)},t}(),mV=function(){function t(){}return t.prototype.getEncodingMode=function(){return On},t.prototype.encode=function(e){var n=new rt;for(n.append(0);e.hasMoreCharacters();){var r=e.getCurrentChar();n.append(r),e.pos++;var i=Er.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(i!==this.getEncodingMode()){e.signalEncoderChange(Tt);break}}var o=n.length()-1,a=1,s=e.getCodewordCount()+o+a;e.updateSymbolInfo(s);var c=e.getSymbolInfo().getDataCapacity()-s>0;if(e.hasMoreCharacters()||c)if(o<=249)n.setCharAt(0,Pt.getCharAt(o));else if(o<=1555)n.setCharAt(0,Pt.getCharAt(Math.floor(o/250)+249)),n.insert(1,Pt.getCharAt(o%250));else throw new Error("Message length not in valid ranges: "+o);for(var u=0,r=n.length();u3||u!==1))&&(e.pos=i)}n.length()>0&&e.writeCodeword(xb),this.handleEOD(e,n)},t.prototype.encode=function(e){for(var n=new rt;e.hasMoreCharacters();){var r=e.getCurrentChar();e.pos++;var i=this.encodeChar(r,n),o=Math.floor(n.length()/3)*2,a=e.getCodewordCount()+o;e.updateSymbolInfo(a);var s=e.getSymbolInfo().getDataCapacity()-a;if(!e.hasMoreCharacters()){var c=new rt;for(n.length()%3===2&&s!==2&&(i=this.backtrackOneCharacter(e,n,c,i));n.length()%3===1&&(i>3||s!==1);)i=this.backtrackOneCharacter(e,n,c,i);break}var u=n.length();if(u%3===0){var l=Er.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(l!==this.getEncodingMode()){e.signalEncoderChange(Tt);break}}}this.handleEOD(e,n)},t.prototype.backtrackOneCharacter=function(e,n,r,i){var o=n.length(),a=n.toString().substring(0,o-i);n.setLengthToZero(),n.append(a),e.pos--;var s=e.getCurrentChar();return i=this.encodeChar(s,r),e.resetSymbolInfo(),i},t.prototype.writeNextTriplet=function(e,n){e.writeCodewords(this.encodeToCodewords(n.toString()));var r=n.toString().substring(3);n.setLengthToZero(),n.append(r)},t.prototype.handleEOD=function(e,n){var r=Math.floor(n.length()/3*2),i=n.length()%3,o=e.getCodewordCount()+r;e.updateSymbolInfo(o);var a=e.getSymbolInfo().getDataCapacity()-o;if(i===2){for(n.append("\0");n.length()>=3;)this.writeNextTriplet(e,n);e.hasMoreCharacters()&&e.writeCodeword(td)}else if(a===1&&i===1){for(;n.length()>=3;)this.writeNextTriplet(e,n);e.hasMoreCharacters()&&e.writeCodeword(td),e.pos--}else if(i===0){for(;n.length()>=3;)this.writeNextTriplet(e,n);(a>0||e.hasMoreCharacters())&&e.writeCodeword(td)}else throw new Error("Unexpected case. Please report!");e.signalEncoderChange(Tt)},t.prototype.encodeChar=function(e,n){if(e===" ".charCodeAt(0))return n.append(3),1;if(e>="0".charCodeAt(0)&&e<="9".charCodeAt(0))return n.append(e-48+4),1;if(e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0))return n.append(e-65+14),1;if(e<" ".charCodeAt(0))return n.append(0),n.append(e),2;if(e<="/".charCodeAt(0))return n.append(1),n.append(e-33),2;if(e<="@".charCodeAt(0))return n.append(1),n.append(e-58+15),2;if(e<="_".charCodeAt(0))return n.append(1),n.append(e-91+22),2;if(e<=127)return n.append(2),n.append(e-96),2;n.append(1+"");var r=2;return r+=this.encodeChar(e-128,n),r},t.prototype.encodeToCodewords=function(e){var n=1600*e.charCodeAt(0)+40*e.charCodeAt(1)+e.charCodeAt(2)+1,r=n/256,i=n%256,o=new rt;return o.append(r),o.append(i),o.toString()},t}(),RV=function(){function t(){}return t.prototype.getEncodingMode=function(){return dn},t.prototype.encode=function(e){for(var n=new rt;e.hasMoreCharacters();){var r=e.getCurrentChar();this.encodeChar(r,n),e.pos++;var i=n.length();if(i>=4){e.writeCodewords(this.encodeToCodewords(n.toString()));var o=n.toString().substring(4);n.setLengthToZero(),n.append(o);var a=Er.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(a!==this.getEncodingMode()){e.signalEncoderChange(Tt);break}}}n.append(Pt.getCharAt(31)),this.handleEOD(e,n)},t.prototype.handleEOD=function(e,n){try{var r=n.length();if(r===0)return;if(r===1){e.updateSymbolInfo();var i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount(),o=e.getRemainingCharacters();if(o>i&&(e.updateSymbolInfo(e.getCodewordCount()+1),i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount()),o<=i&&i<=2)return}if(r>4)throw new Error("Count must not exceed 4");var a=r-1,s=this.encodeToCodewords(n.toString()),c=!e.hasMoreCharacters(),u=c&&a<=2;if(a<=2){e.updateSymbolInfo(e.getCodewordCount()+a);var i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount();i>=3&&(u=!1,e.updateSymbolInfo(e.getCodewordCount()+s.length))}u?(e.resetSymbolInfo(),e.pos-=a):e.writeCodewords(s)}finally{e.signalEncoderChange(Tt)}},t.prototype.encodeChar=function(e,n){e>=" ".charCodeAt(0)&&e<="?".charCodeAt(0)?n.append(e):e>="@".charCodeAt(0)&&e<="^".charCodeAt(0)?n.append(Pt.getCharAt(e-64)):Er.illegalCharacter(Pt.getCharAt(e))},t.prototype.encodeToCodewords=function(e){var n=e.length;if(n===0)throw new Error("StringBuilder must not be empty");var r=e.charAt(0).charCodeAt(0),i=n>=2?e.charAt(1).charCodeAt(0):0,o=n>=3?e.charAt(2).charCodeAt(0):0,a=n>=4?e.charAt(3).charCodeAt(0):0,s=(r<<18)+(i<<12)+(o<<6)+a,c=s>>16&255,u=s>>8&255,l=s&255,h=new rt;return h.append(c),n>=2&&h.append(u),n>=3&&h.append(l),h.toString()},t}(),yV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vV=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},gt=function(){function t(e,n,r,i,o,a,s,c){s===void 0&&(s=0),c===void 0&&(c=0),this.rectangular=e,this.dataCapacity=n,this.errorCodewords=r,this.matrixWidth=i,this.matrixHeight=o,this.dataRegions=a,this.rsBlockData=s,this.rsBlockError=c}return t.lookup=function(e,n,r,i,o){var a,s;n===void 0&&(n=0),r===void 0&&(r=null),i===void 0&&(i=null),o===void 0&&(o=!0);try{for(var c=vV(xV),u=c.next();!u.done;u=c.next()){var l=u.value;if(!(n===1&&l.rectangular)&&!(n===2&&!l.rectangular)&&!(r!=null&&(l.getSymbolWidth()i.getWidth()||l.getSymbolHeight()>i.getHeight()))&&e<=l.dataCapacity)return l}}catch(h){a={error:h}}finally{try{u&&!u.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}if(o)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+e);return null},t.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},t.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},t.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},t.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},t.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+this.getHorizontalDataRegions()*2},t.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+this.getVerticalDataRegions()*2},t.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},t.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},t.prototype.getDataCapacity=function(){return this.dataCapacity},t.prototype.getErrorCodewords=function(){return this.errorCodewords},t.prototype.getDataLengthForInterleavedBlock=function(e){return this.rsBlockData},t.prototype.getErrorLengthForInterleavedBlock=function(e){return this.rsBlockError},t}(),bV=function(t){yV(e,t);function e(){return t.call(this,!1,1558,620,22,22,36,-1,62)||this}return e.prototype.getInterleavedBlockCount=function(){return 10},e.prototype.getDataLengthForInterleavedBlock=function(n){return n<=8?156:155},e}(gt),xV=[new gt(!1,3,5,8,8,1),new gt(!1,5,7,10,10,1),new gt(!0,5,7,16,6,1),new gt(!1,8,10,12,12,1),new gt(!0,10,11,14,6,2),new gt(!1,12,12,14,14,1),new gt(!0,16,14,24,10,1),new gt(!1,18,14,16,16,1),new gt(!1,22,18,18,18,1),new gt(!0,22,18,16,10,2),new gt(!1,30,20,20,20,1),new gt(!0,32,24,16,14,2),new gt(!1,36,24,22,22,1),new gt(!1,44,28,24,24,1),new gt(!0,49,28,22,14,2),new gt(!1,62,36,14,14,4),new gt(!1,86,42,16,16,4),new gt(!1,114,48,18,18,4),new gt(!1,144,56,20,20,4),new gt(!1,174,68,22,22,4),new gt(!1,204,84,24,24,4,102,42),new gt(!1,280,112,14,14,16,140,56),new gt(!1,368,144,16,16,16,92,36),new gt(!1,456,192,18,18,16,114,48),new gt(!1,576,224,20,20,16,144,56),new gt(!1,696,272,22,22,16,174,68),new gt(!1,816,336,24,24,16,136,56),new gt(!1,1050,408,18,18,36,175,68),new gt(!1,1304,496,20,20,36,163,62),new bV],wV=function(){function t(e){this.msg=e,this.pos=0,this.skipAtEnd=0;for(var n=e.split("").map(function(s){return s.charCodeAt(0)}),r=new rt,i=0,o=n.length;ithis.symbolInfo.getDataCapacity())&&(this.symbolInfo=gt.lookup(e,this.shape,this.minSize,this.maxSize,!0))},t.prototype.resetSymbolInfo=function(){this.symbolInfo=null},t}(),TV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),SV=function(t){TV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getEncodingMode=function(){return rn},e.prototype.encode=function(n){for(var r=new rt;n.hasMoreCharacters();){var i=n.getCurrentChar();n.pos++,this.encodeChar(i,r);var o=r.length();if(o%3===0){this.writeNextTriplet(n,r);var a=Er.lookAheadTest(n.getMessage(),n.pos,this.getEncodingMode());if(a!==this.getEncodingMode()){n.signalEncoderChange(Tt);break}}}this.handleEOD(n,r)},e.prototype.encodeChar=function(n,r){switch(n){case 13:r.append(0);break;case"*".charCodeAt(0):r.append(1);break;case">".charCodeAt(0):r.append(2);break;case" ".charCodeAt(0):r.append(3);break;default:n>="0".charCodeAt(0)&&n<="9".charCodeAt(0)?r.append(n-48+4):n>="A".charCodeAt(0)&&n<="Z".charCodeAt(0)?r.append(n-65+14):Er.illegalCharacter(Pt.getCharAt(n));break}return 1},e.prototype.handleEOD=function(n,r){n.updateSymbolInfo();var i=n.getSymbolInfo().getDataCapacity()-n.getCodewordCount(),o=r.length();n.pos-=o,(n.getRemainingCharacters()>1||i>1||n.getRemainingCharacters()!==i)&&n.writeCodeword(pV),n.getNewEncoding()<0&&n.signalEncoderChange(Tt)},e}(zp),DV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),OV=function(t){DV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getEncodingMode=function(){return Vn},e.prototype.encodeChar=function(n,r){if(n===" ".charCodeAt(0))return r.append(3),1;if(n>="0".charCodeAt(0)&&n<="9".charCodeAt(0))return r.append(n-48+4),1;if(n>="a".charCodeAt(0)&&n<="z".charCodeAt(0))return r.append(n-97+14),1;if(n<" ".charCodeAt(0))return r.append(0),r.append(n),2;if(n<="/".charCodeAt(0))return r.append(1),r.append(n-33),2;if(n<="@".charCodeAt(0))return r.append(1),r.append(n-58+15),2;if(n>="[".charCodeAt(0)&&n<="_".charCodeAt(0))return r.append(1),r.append(n-91+22),2;if(n==="`".charCodeAt(0))return r.append(2),r.append(0),2;if(n<="Z".charCodeAt(0))return r.append(2),r.append(n-65+1),2;if(n<=127)return r.append(2),r.append(n-123+27),2;r.append(1+"");var i=2;return i+=this.encodeChar(n-128,r),i},e}(zp),_V=function(){function t(){}return t.randomize253State=function(e){var n=149*e%253+1,r=Im+n;return r<=254?r:r-254},t.encodeHighLevel=function(e,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=null),i===void 0&&(i=null),o===void 0&&(o=!1);var a=new zp,s=[new gV,a,new OV,new SV,new RV,new mV],c=new wV(e);c.setSymbolShape(n),c.setSizeConstraints(r,i),e.startsWith(Nm)&&e.endsWith(Pm)?(c.writeCodeword(uV),c.setSkipAtEnd(2),c.pos+=Nm.length):e.startsWith(Fm)&&e.endsWith(Pm)&&(c.writeCodeword(lV),c.setSkipAtEnd(2),c.pos+=Fm.length);var u=Tt;for(o&&(a.encodeMaximal(c),u=c.getNewEncoding(),c.resetEncoderSignal());c.hasMoreCharacters();)s[u].encode(c),c.getNewEncoding()>=0&&(u=c.getNewEncoding(),c.resetEncoderSignal());var l=c.getCodewordCount();c.updateSymbolInfo();var h=c.getSymbolInfo().getDataCapacity();l=e.length)return r;var i;r===Tt?i=[0,1,1,1,1,1.25]:(i=[1,2,2,2,2,2.25],i[r]=0);for(var o=0,a=new Uint8Array(6),s=[];;){if(n+o===e.length){sn.fill(a,0),sn.fill(s,0);var c=this.findMinimums(i,s,$t.MAX_VALUE,a),u=this.getMinimumCount(a);if(s[Tt]===c)return Tt;if(u===1){if(a[On]>0)return On;if(a[dn]>0)return dn;if(a[Vn]>0)return Vn;if(a[rn]>0)return rn}return vn}var l=e.charCodeAt(n+o);if(o++,this.isDigit(l)?i[Tt]+=.5:this.isExtendedASCII(l)?(i[Tt]=Math.ceil(i[Tt]),i[Tt]+=2):(i[Tt]=Math.ceil(i[Tt]),i[Tt]++),this.isNativeC40(l)?i[vn]+=2/3:this.isExtendedASCII(l)?i[vn]+=8/3:i[vn]+=4/3,this.isNativeText(l)?i[Vn]+=2/3:this.isExtendedASCII(l)?i[Vn]+=8/3:i[Vn]+=4/3,this.isNativeX12(l)?i[rn]+=2/3:this.isExtendedASCII(l)?i[rn]+=13/3:i[rn]+=10/3,this.isNativeEDIFACT(l)?i[dn]+=3/4:this.isExtendedASCII(l)?i[dn]+=17/4:i[dn]+=13/4,this.isSpecialB256(l)?i[On]+=4:i[On]++,o>=4){if(sn.fill(a,0),sn.fill(s,0),this.findMinimums(i,s,$t.MAX_VALUE,a),s[Tt]a&&(r=a,sn.fill(i,0)),r===a&&(i[o]=i[o]+1)}return r},t.getMinimumCount=function(e){for(var n=0,r=0;r<6;r++)n+=e[r];return n||0},t.isDigit=function(e){return e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)},t.isExtendedASCII=function(e){return e>=128&&e<=255},t.isNativeC40=function(e){return e===" ".charCodeAt(0)||e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)||e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)},t.isNativeText=function(e){return e===" ".charCodeAt(0)||e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)||e>="a".charCodeAt(0)&&e<="z".charCodeAt(0)},t.isNativeX12=function(e){return this.isX12TermSep(e)||e===" ".charCodeAt(0)||e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)||e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)},t.isX12TermSep=function(e){return e===13||e==="*".charCodeAt(0)||e===">".charCodeAt(0)},t.isNativeEDIFACT=function(e){return e>=" ".charCodeAt(0)&&e<="^".charCodeAt(0)},t.isSpecialB256=function(e){return!1},t.determineConsecutiveDigitCount=function(e,n){n===void 0&&(n=0);for(var r=e.length,i=n;i=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Mm=function(){function t(e){this.charset=e,this.name=e.name}return t.prototype.canEncode=function(e){try{return wr.encode(e,this.charset)!=null}catch{return!1}},t}(),EV=function(){function t(e,n,r){var i,o,a,s,c,u;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map(function(_){return new Mm(rV.forName(_))}),this.encoders=[];var l=[];l.push(new Mm(iV.ISO_8859_1));for(var h=n!=null&&n.name.startsWith("UTF"),d=0;d=this.bytes.length)return!1;for(var r=0;r=this.length())throw new Error(""+e);if(this.isECI(e))throw new Error("value at "+e+" is not a character but an ECI");return this.isFNC1(e)?this.fnc1:this.bytes[e]},t.prototype.subSequence=function(e,n){if(e<0||e>n||n>this.length())throw new Error(""+e);for(var r=new rt,i=e;i=this.length())throw new Error(""+e);return this.bytes[e]>255&&this.bytes[e]<=999},t.prototype.isFNC1=function(e){if(e<0||e>=this.length())throw new Error(""+e);return this.bytes[e]===1e3},t.prototype.getECIValue=function(e){if(e<0||e>=this.length())throw new Error(""+e);if(!this.isECI(e))throw new Error("value at "+e+" is not an ECI but a character");return this.bytes[e]-256},t.prototype.addEdge=function(e,n,r){(e[n][r.encoderIndex]==null||e[n][r.encoderIndex].cachedTotalSize>r.cachedTotalSize)&&(e[n][r.encoderIndex]=r)},t.prototype.addEdges=function(e,n,r,i,o,a){var s=e.charAt(i).charCodeAt(0),c=0,u=n.length();n.getPriorityEncoderIndex()>=0&&(s===a||n.canEncode(s,n.getPriorityEncoderIndex()))&&(c=n.getPriorityEncoderIndex(),u=c+1);for(var l=c;l=0;a--)h.unshift(f[a]&255);var p=d.previous===null?0:d.previous.encoderIndex;p!==d.encoderIndex&&h.unshift(256+n.getECIValue(d.encoderIndex)),d=d.previous}for(var g=[],a=0;a0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o};globalThis&&globalThis.__spread;var Cm;(function(t){t[t.ASCII=0]="ASCII",t[t.C40=1]="C40",t[t.TEXT=2]="TEXT",t[t.X12=3]="X12",t[t.EDF=4]="EDF",t[t.B256=5]="B256"})(Cm||(Cm={}));(function(t){FV(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.shape=o,s.macroId=a,s}return e.prototype.getMacroId=function(){return this.macroId},e.prototype.getShapeHint=function(){return this.shape},e})(NV);var MV=function(){function t(e){this.previous=e}return t.prototype.getPrevious=function(){return this.previous},t}(),LV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wb=function(t){LV(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.value=r,o.bitCount=i,o}return e.prototype.appendTo=function(n,r){n.appendBits(this.value,this.bitCount)},e.prototype.add=function(n,r){return new e(this,n,r)},e.prototype.addBinaryShift=function(n,r){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new e(this,n,r)},e.prototype.toString=function(){var n=this.value&(1<"},e}(MV),CV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){CV(e,t);function e(n,r,i){var o=t.call(this,n,0,0)||this;return o.binaryShiftStart=r,o.binaryShiftByteCount=i,o}return e.prototype.appendTo=function(n,r){for(var i=0;i62?n.appendBits(this.binaryShiftByteCount-31,16):i===0?n.appendBits(Math.min(this.binaryShiftByteCount,31),5):n.appendBits(this.binaryShiftByteCount-31,5)),n.appendBits(r[this.binaryShiftStart+i],8)},e.prototype.addBinaryShift=function(n,r){return new e(this,n,r)},e.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},e})(wb);var ys=0,Fu=1,jo=2,Tb=3,fs=4;new wb(null,0,0);var AV=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function UV(t){var e,n;try{for(var r=AV(t),i=r.next();!i.done;i=r.next()){var o=i.value;sn.fill(o,-1)}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return t[ys][fs]=0,t[Fu][fs]=0,t[Fu][ys]=28,t[Tb][fs]=0,t[jo][fs]=0,t[jo][ys]=15,t}UV(sn.createInt32Array(6,6));globalThis&&globalThis.__values;function WV(t){var e=Pt.getCharCode(" "),n=Pt.getCharCode("."),r=Pt.getCharCode(",");t[ys][e]=1;for(var i=Pt.getCharCode("Z"),o=Pt.getCharCode("A"),a=o;a<=i;a++)t[ys][a]=a-o+2;t[Fu][e]=1;for(var s=Pt.getCharCode("z"),c=Pt.getCharCode("a"),a=c;a<=s;a++)t[Fu][a]=a-c+2;t[jo][e]=1;for(var u=Pt.getCharCode("9"),l=Pt.getCharCode("0"),a=l;a<=u;a++)t[jo][a]=a-l+2;t[jo][r]=12,t[jo][n]=13;for(var h=["\0"," ","","","","","","","\x07","\b"," ",` `,"\v","\f","\r","\x1B","","","","","@","\\","^","_","`","|","~","\x7F"],d=0;d","?","[","]","{","}"],d=0;d0&&(t[fs][Pt.getCharCode(f[d])]=d);return t}WV(sn.createInt32Array(5,256));globalThis&&globalThis.__values;globalThis&&globalThis.__values;var XV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),VV=function(t){XV(e,t);function e(n){var r=t.call(this,n.width,n.height)||this;return r.canvas=n,r.tempCanvasElement=null,r.buffer=e.makeBufferFromCanvasImageData(n),r}return e.makeBufferFromCanvasImageData=function(n){var r;try{r=n.getContext("2d",{willReadFrequently:!0})}catch{r=n.getContext("2d")}if(!r)throw new Error("Couldn't get canvas context.");var i=r.getImageData(0,0,n.width,n.height);return e.toGrayscaleBuffer(i.data,n.width,n.height)},e.toGrayscaleBuffer=function(n,r,i){for(var o=new Uint8ClampedArray(r*i),a=0,s=0,c=n.length;a>10}o[s]=u}return o},e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new Ge("Requested row is outside the image: "+n);var i=this.getWidth(),o=n*i;return r===null?r=this.buffer.slice(o,o+i):(r.length0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ZV={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},Ua=function(){function t(e,n,r){n===void 0&&(n=new Map),r===void 0&&(r={}),this.reader=e,this.hints=n,this.options=qo(qo({},ZV),r)}return Object.defineProperty(t.prototype,"possibleFormats",{set:function(e){this.hints.set(Lt.POSSIBLE_FORMATS,e)},enumerable:!1,configurable:!0}),t.addVideoSource=function(e,n){try{e.srcObject=n}catch{console.error("got interrupted by new loading request")}},t.mediaStreamSetTorch=function(e,n){return Yt(this,void 0,void 0,function(){return Bt(this,function(r){switch(r.label){case 0:return[4,e.applyConstraints({advanced:[{fillLightMode:n?"flash":"off",torch:!!n}]})];case 1:return r.sent(),[2]}})})},t.mediaStreamIsTorchCompatible=function(e){var n,r,i=e.getVideoTracks();try{for(var o=rd(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(t.mediaStreamIsTorchCompatibleTrack(s))return!0}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1},t.mediaStreamIsTorchCompatibleTrack=function(e){try{var n=e.getCapabilities();return"torch"in n}catch(r){return console.error(r),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},t.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&e.readyState>2},t.getMediaElement=function(e,n){var r=document.getElementById(e);if(!r)throw new Jt("element with id '".concat(e,"' not found"));if(r.nodeName.toLowerCase()!==n.toLowerCase())throw new Jt("element with id '".concat(e,"' must be an ").concat(n," element"));return r},t.createVideoElement=function(e){if(e instanceof HTMLVideoElement)return e;if(typeof e=="string")return t.getMediaElement(e,"video");if(!e&&typeof document!="undefined"){var n=document.createElement("video");return n.width=200,n.height=200,n}throw new Error("Couldn't get videoElement from videoSource!")},t.prepareImageElement=function(e){if(e instanceof HTMLImageElement)return e;if(typeof e=="string")return t.getMediaElement(e,"img");if(typeof e=="undefined"){var n=document.createElement("img");return n.width=200,n.height=200,n}throw new Error("Couldn't get imageElement from imageSource!")},t.prepareVideoElement=function(e){var n=t.createVideoElement(e);return n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),n.setAttribute("playsinline","true"),n},t.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},t.createBinaryBitmapFromCanvas=function(e){var n=new VV(e),r=new ub(n);return new cb(r)},t.drawImageOnCanvas=function(e,n){e.drawImage(n,0,0)},t.getMediaElementDimensions=function(e){if(e instanceof HTMLVideoElement)return{height:e.videoHeight,width:e.videoWidth};if(e instanceof HTMLImageElement)return{height:e.naturalHeight||e.height,width:e.naturalWidth||e.width};throw new Error("Couldn't find the Source's dimensions!")},t.createCaptureCanvas=function(e){if(!e)throw new Jt("Cannot create a capture canvas without a media element.");if(typeof document=="undefined")throw new Error(`The page "Document" is undefined, make sure you're running in a browser.`);var n=document.createElement("canvas"),r=t.getMediaElementDimensions(e),i=r.width,o=r.height;return n.style.width=i+"px",n.style.height=o+"px",n.width=i,n.height=o,n},t.tryPlayVideo=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:if(e!=null&&e.ended)return console.error("Trying to play video that has ended."),[2,!1];if(t.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2,!0];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.play()];case 2:return r.sent(),[2,!0];case 3:return n=r.sent(),console.warn("It was not possible to play the video.",n),[2,!1];case 4:return[2]}})})},t.createCanvasFromMediaElement=function(e){var n=t.createCaptureCanvas(e),r=n.getContext("2d");if(!r)throw new Error("Couldn't find Canvas 2D Context.");return t.drawImageOnCanvas(r,e),n},t.createBinaryBitmapFromMediaElem=function(e){var n=t.createCanvasFromMediaElement(e);return t.createBinaryBitmapFromCanvas(n)},t.destroyImageElement=function(e){e.src="",e.removeAttribute("src"),e=void 0},t.listVideoInputDevices=function(){return Yt(this,void 0,void 0,function(){var e,n,r,i,o,a,s,c,u,l,h,d;return Bt(this,function(f){switch(f.label){case 0:if(!Sb())throw new Error("Can't enumerate devices, navigator is not present.");if(!BV())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=f.sent(),n=[];try{for(r=rd(e),i=r.next();!i.done;i=r.next())o=i.value,a=o.kind==="video"?"videoinput":o.kind,a==="videoinput"&&(s=o.deviceId||o.id,c=o.label||"Video device ".concat(n.length+1),u=o.groupId,l={deviceId:s,label:c,kind:a,groupId:u},n.push(l))}catch(p){h={error:p}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(h)throw h.error}}return[2,n]}})})},t.findDeviceById=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:return[4,t.listVideoInputDevices()];case 1:return n=r.sent(),n?[2,n.find(function(i){return i.deviceId===e})]:[2]}})})},t.cleanVideoSource=function(e){if(!!e){try{e.srcObject=null}catch{e.src=""}e&&e.removeAttribute("src")}},t.releaseAllStreams=function(){t.streamTracker.length!==0&&t.streamTracker.forEach(function(e){e.getTracks().forEach(function(n){return n.stop()})}),t.streamTracker=[]},t.playVideoOnLoadAsync=function(e,n){return Yt(this,void 0,void 0,function(){var r;return Bt(this,function(i){switch(i.label){case 0:return[4,t.tryPlayVideo(e)];case 1:return r=i.sent(),r?[2,!0]:[2,new Promise(function(o,a){var s=setTimeout(function(){t.isVideoPlaying(e)||(a(!1),e.removeEventListener("canplay",c))},n),c=function(){t.tryPlayVideo(e).then(function(u){clearTimeout(s),e.removeEventListener("canplay",c),o(u)})};e.addEventListener("canplay",c)})]}})})},t.attachStreamToVideo=function(e,n,r){return r===void 0&&(r=5e3),Yt(this,void 0,void 0,function(){var i;return Bt(this,function(o){switch(o.label){case 0:return i=t.prepareVideoElement(n),t.addVideoSource(i,e),[4,t.playVideoOnLoadAsync(i,r)];case 1:return o.sent(),[2,i]}})})},t._waitImageLoad=function(e){return new Promise(function(n,r){var i=1e4,o=setTimeout(function(){t.isImageLoaded(e)||(e.removeEventListener("load",a),r())},i),a=function(){clearTimeout(o),e.removeEventListener("load",a),n()};e.addEventListener("load",a)})},t.checkCallbackFnOrThrow=function(e){if(!e)throw new Jt("`callbackFn` is a required parameter, you cannot capture results without it.")},t.disposeMediaStream=function(e){e.getVideoTracks().forEach(function(n){return n.stop()}),e=void 0},t.prototype.decode=function(e){var n=t.createCanvasFromMediaElement(e);return this.decodeFromCanvas(n)},t.prototype.decodeBitmap=function(e){return this.reader.decode(e,this.hints)},t.prototype.decodeFromCanvas=function(e){var n=t.createBinaryBitmapFromCanvas(e);return this.decodeBitmap(n)},t.prototype.decodeFromImageElement=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:if(!e)throw new Jt("An image element must be provided.");return n=t.prepareImageElement(e),[4,this._decodeOnLoadImage(n)];case 1:return[2,r.sent()]}})})},t.prototype.decodeFromImageUrl=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:if(!e)throw new Jt("An URL must be provided.");n=t.prepareImageElement(),n.src=e,r.label=1;case 1:return r.trys.push([1,,3,4]),[4,this.decodeFromImageElement(n)];case 2:return[2,r.sent()];case 3:return t.destroyImageElement(n),[7];case 4:return[2]}})})},t.prototype.decodeFromConstraints=function(e,n,r){return Yt(this,void 0,void 0,function(){var i,o;return Bt(this,function(a){switch(a.label){case 0:return t.checkCallbackFnOrThrow(r),[4,this.getUserMedia(e)];case 1:i=a.sent(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.decodeFromStream(i,n,r)];case 3:return[2,a.sent()];case 4:throw o=a.sent(),t.disposeMediaStream(i),o;case 5:return[2]}})})},t.prototype.decodeFromStream=function(e,n,r){return Yt(this,void 0,void 0,function(){var i,o,a,s,c,u,l,h,d,f=this;return Bt(this,function(p){switch(p.label){case 0:return t.checkCallbackFnOrThrow(r),i=this.options.tryPlayVideoTimeout,[4,t.attachStreamToVideo(e,n,i)];case 1:return o=p.sent(),a=function(){t.disposeMediaStream(e),t.cleanVideoSource(o)},s=this.scan(o,r,a),c=e.getVideoTracks(),u=qo(qo({},s),{stop:function(){s.stop()},streamVideoConstraintsApply:function(g,y){return Yt(this,void 0,void 0,function(){var R,m,v,x,O,E,N;return Bt(this,function(M){switch(M.label){case 0:R=y?c.filter(y):c,M.label=1;case 1:M.trys.push([1,6,7,8]),m=rd(R),v=m.next(),M.label=2;case 2:return v.done?[3,5]:(x=v.value,[4,x.applyConstraints(g)]);case 3:M.sent(),M.label=4;case 4:return v=m.next(),[3,2];case 5:return[3,8];case 6:return O=M.sent(),E={error:O},[3,8];case 7:try{v&&!v.done&&(N=m.return)&&N.call(m)}finally{if(E)throw E.error}return[7];case 8:return[2]}})})},streamVideoConstraintsGet:function(g){return c.find(g).getConstraints()},streamVideoSettingsGet:function(g){return c.find(g).getSettings()},streamVideoCapabilitiesGet:function(g){return c.find(g).getCapabilities()}}),l=t.mediaStreamIsTorchCompatible(e),l&&(h=c==null?void 0:c.find(function(g){return t.mediaStreamIsTorchCompatibleTrack(g)}),d=function(g){return Yt(f,void 0,void 0,function(){return Bt(this,function(y){switch(y.label){case 0:return[4,t.mediaStreamSetTorch(h,g)];case 1:return y.sent(),[2]}})})},u.switchTorch=d,u.stop=function(){return Yt(f,void 0,void 0,function(){return Bt(this,function(g){switch(g.label){case 0:return s.stop(),[4,d(!1)];case 1:return g.sent(),[2]}})})}),[2,u]}})})},t.prototype.decodeFromVideoDevice=function(e,n,r){return Yt(this,void 0,void 0,function(){var i,o;return Bt(this,function(a){switch(a.label){case 0:return t.checkCallbackFnOrThrow(r),e?i={deviceId:{exact:e}}:i={facingMode:"environment"},o={video:i},[4,this.decodeFromConstraints(o,n,r)];case 1:return[2,a.sent()]}})})},t.prototype.decodeFromVideoElement=function(e,n){return Yt(this,void 0,void 0,function(){var r,i;return Bt(this,function(o){switch(o.label){case 0:if(t.checkCallbackFnOrThrow(n),!e)throw new Jt("A video element must be provided.");return r=t.prepareVideoElement(e),i=this.options.tryPlayVideoTimeout,[4,t.playVideoOnLoadAsync(r,i)];case 1:return o.sent(),[2,this.scan(r,n)]}})})},t.prototype.decodeFromVideoUrl=function(e,n){return Yt(this,void 0,void 0,function(){var r,i,o,a;return Bt(this,function(s){switch(s.label){case 0:if(t.checkCallbackFnOrThrow(n),!e)throw new Jt("An URL must be provided.");return r=t.prepareVideoElement(),r.src=e,i=function(){t.cleanVideoSource(r)},o=this.options.tryPlayVideoTimeout,[4,t.playVideoOnLoadAsync(r,o)];case 1:return s.sent(),a=this.scan(r,n,i),[2,a]}})})},t.prototype.decodeOnceFromConstraints=function(e,n){return Yt(this,void 0,void 0,function(){var r;return Bt(this,function(i){switch(i.label){case 0:return[4,this.getUserMedia(e)];case 1:return r=i.sent(),[4,this.decodeOnceFromStream(r,n)];case 2:return[2,i.sent()]}})})},t.prototype.decodeOnceFromStream=function(e,n){return Yt(this,void 0,void 0,function(){var r,i,o;return Bt(this,function(a){switch(a.label){case 0:return r=Boolean(n),[4,t.attachStreamToVideo(e,n)];case 1:i=a.sent(),a.label=2;case 2:return a.trys.push([2,,4,5]),[4,this.scanOneResult(i)];case 3:return o=a.sent(),[2,o];case 4:return r||t.cleanVideoSource(i),[7];case 5:return[2]}})})},t.prototype.decodeOnceFromVideoDevice=function(e,n){return Yt(this,void 0,void 0,function(){var r,i;return Bt(this,function(o){switch(o.label){case 0:return e?r={deviceId:{exact:e}}:r={facingMode:"environment"},i={video:r},[4,this.decodeOnceFromConstraints(i,n)];case 1:return[2,o.sent()]}})})},t.prototype.decodeOnceFromVideoElement=function(e){return Yt(this,void 0,void 0,function(){var n,r;return Bt(this,function(i){switch(i.label){case 0:if(!e)throw new Jt("A video element must be provided.");return n=t.prepareVideoElement(e),r=this.options.tryPlayVideoTimeout,[4,t.playVideoOnLoadAsync(n,r)];case 1:return i.sent(),[4,this.scanOneResult(n)];case 2:return[2,i.sent()]}})})},t.prototype.decodeOnceFromVideoUrl=function(e){return Yt(this,void 0,void 0,function(){var n,r;return Bt(this,function(i){switch(i.label){case 0:if(!e)throw new Jt("An URL must be provided.");n=t.prepareVideoElement(),n.src=e,r=this.decodeOnceFromVideoElement(n),i.label=1;case 1:return i.trys.push([1,,3,4]),[4,r];case 2:return[2,i.sent()];case 3:return t.cleanVideoSource(n),[7];case 4:return[2]}})})},t.prototype.scanOneResult=function(e,n,r,i){var o=this;return n===void 0&&(n=!0),r===void 0&&(r=!0),i===void 0&&(i=!0),new Promise(function(a,s){o.scan(e,function(c,u,l){if(c){a(c),l.stop();return}if(u){if(u instanceof De&&n||u instanceof qt&&r||u instanceof Le&&i)return;l.stop(),s(u)}})})},t.prototype.scan=function(e,n,r){var i=this;t.checkCallbackFnOrThrow(n);var o=t.createCaptureCanvas(e),a;try{a=o.getContext("2d",{willReadFrequently:!0})}catch{a=o.getContext("2d")}if(!a)throw new Error("Couldn't create canvas for visual element scan.");var s=function(){a=void 0,o=void 0},c=!1,u,l=function(){c=!0,clearTimeout(u),s(),r&&r()},h={stop:l},d=function(){if(!c)try{t.drawImageOnCanvas(a,e);var f=i.decodeFromCanvas(o);n(f,void 0,h),u=setTimeout(d,i.options.delayBetweenScanSuccess)}catch(R){n(void 0,R,h);var p=R instanceof qt,g=R instanceof Le,y=R instanceof De;if(p||g||y){u=setTimeout(d,i.options.delayBetweenScanAttempts);return}s(),r&&r(R)}};return d(),h},t.prototype._decodeOnLoadImage=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:return n=t.isImageLoaded(e),n?[3,2]:[4,t._waitImageLoad(e)];case 1:r.sent(),r.label=2;case 2:return[2,this.decode(e)]}})})},t.prototype.getUserMedia=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=r.sent(),t.streamTracker.push(n),[2,n]}})})},t.streamTracker=[],t}(),kV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){kV(e,t);function e(n,r){return t.call(this,new Ou,n,r)||this}return e})(Ua);var QV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){QV(e,t);function e(n,r){return t.call(this,new zo(n),n,r)||this}return e})(Ua);var KV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){KV(e,t);function e(n,r){return t.call(this,new Eu,n,r)||this}return e})(Ua);var HV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){HV(e,t);function e(n,r){var i=this,o=new bb;return o.setHints(n),i=t.call(this,o,n,r)||this,i.reader=o,i}return Object.defineProperty(e.prototype,"possibleFormats",{set:function(n){this.hints.set(Lt.POSSIBLE_FORMATS,n),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),e.prototype.decodeBitmap=function(n){return this.reader.decodeWithState(n)},e.prototype.setHints=function(n){this.hints=n,this.reader.setHints(this.hints)},e})(Ua);var GV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){GV(e,t);function e(n,r){return t.call(this,new Nu,n,r)||this}return e})(Ua);var JV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zV=function(t){JV(e,t);function e(n,r){return t.call(this,new Iu,n,r)||this}return e}(Ua),Am="http://www.w3.org/2000/svg",$V=function(){function t(){}return t.prototype.write=function(e,n,r,i){if(e.length===0)throw new Ge("Found empty contents");if(n<0||r<0)throw new Ge("Requested dimensions are too small: "+n+"x"+r);var o=kd.L,a=t.QUIET_ZONE_SIZE;if(i){if(i.get(kr.ERROR_CORRECTION)!==void 0){var s=i.get(kr.ERROR_CORRECTION).toString();o=kd.fromString(s)}i.get(kr.MARGIN)!==void 0&&(a=Number.parseInt(i.get(kr.MARGIN).toString(),10))}var c=q7.encode(e,o,i);return this.renderResult(c,n,r,a)},t.prototype.writeToDom=function(e,n,r,i,o){if(typeof e=="string"){var a=document.querySelector(e);if(!a)throw new Error("Could no find the target HTML element.");e=a}var s=this.write(n,r,i,o);e instanceof HTMLElement&&e.appendChild(s)},t.prototype.renderResult=function(e,n,r,i){var o=e.getMatrix();if(o===null)throw new Aa;for(var a=o.getWidth(),s=o.getHeight(),c=a+i*2,u=s+i*2,l=Math.max(n,c),h=Math.max(r,u),d=Math.min(Math.floor(l/c),Math.floor(h/u)),f=Math.floor((l-a*d)/2),p=Math.floor((h-s*d)/2),g=this.createSVGElement(l,h),y=0,R=p;y{var n;return e.startElement===e.endElement&&((n=e.startElement)==null?void 0:n.type)===fe.IMAGE},callback:async(e,n)=>{var i;const r=(i=n.startElement)==null?void 0:i.value;if(!!r)try{const s=(await new zV().decodeFromImageUrl(r)).getText();new ln({title:"\u8BC6\u522B\u7ED3\u679C",data:[{type:"textarea",label:"\u5185\u5BB9",height:100,name:"value",value:s}],onConfirm:c=>{console.log(c)}})}catch(o){console.log(o),alert("\u8BC6\u522B\u5931\u8D25")}}}])}var Jd={exports:{}},t9=new Proxy({},{get(){throw new Error('Module "" has been externalized for browser compatibility and cannot be accessed in client code.')}}),n9=Object.freeze(Object.defineProperty({__proto__:null,default:t9},Symbol.toStringTag,{value:"Module"})),Um=Wm(n9);/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.8.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2023 * @license MIT */(function(t){(function(){var e="input is invalid type",n="finalize already called",r=typeof window=="object",i=r?window:{};i.JS_MD5_NO_WINDOW&&(r=!1);var o=!r&&typeof self=="object",a=!i.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=qe:o&&(i=self);var s=!i.JS_MD5_NO_COMMON_JS&&!0&&t.exports,c=!i.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",u="0123456789abcdef".split(""),l=[128,32768,8388608,-2147483648],h=[0,8,16,24],d=["hex","array","digest","buffer","arrayBuffer","base64"],f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),p=[],g;if(c){var y=new ArrayBuffer(68);g=new Uint8Array(y),p=new Uint32Array(y)}var R=Array.isArray;(i.JS_MD5_NO_NODE_JS||!R)&&(R=function(T){return Object.prototype.toString.call(T)==="[object Array]"});var m=ArrayBuffer.isView;c&&(i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!m)&&(m=function(T){return typeof T=="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});var v=function(T){var I=typeof T;if(I==="string")return[T,!0];if(I!=="object"||T===null)throw new Error(e);if(c&&T.constructor===ArrayBuffer)return[new Uint8Array(T),!1];if(!R(T)&&!m(T))throw new Error(e);return[T,!1]},x=function(T){return function(I){return new _(!0).update(I)[T]()}},O=function(){var T=x("hex");a&&(T=E(T)),T.create=function(){return new _},T.update=function(P){return T.create().update(P)};for(var I=0;I>>6,re[X++]=128|P&63):P<55296||P>=57344?(re[X++]=224|P>>>12,re[X++]=128|P>>>6&63,re[X++]=128|P&63):(P=65536+((P&1023)<<10|T.charCodeAt(++U)&1023),re[X++]=240|P>>>18,re[X++]=128|P>>>12&63,re[X++]=128|P>>>6&63,re[X++]=128|P&63);else for(X=this.start;U>>2]|=P<>>2]|=(192|P>>>6)<>>2]|=(128|P&63)<=57344?(k[X>>>2]|=(224|P>>>12)<>>2]|=(128|P>>>6&63)<>>2]|=(128|P&63)<>>2]|=(240|P>>>18)<>>2]|=(128|P>>>12&63)<>>2]|=(128|P>>>6&63)<>>2]|=(128|P&63)<>>2]|=T[U]<=64?(this.start=X-64,this.hash(),this.hashed=!0):this.start=X}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},_.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,I=this.lastByteIndex;T[I>>>2]|=l[I&3],I>=56&&(this.hashed||this.hash(),T[0]=T[16],T[16]=T[1]=T[2]=T[3]=T[4]=T[5]=T[6]=T[7]=T[8]=T[9]=T[10]=T[11]=T[12]=T[13]=T[14]=T[15]=0),T[14]=this.bytes<<3,T[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},_.prototype.hash=function(){var T,I,b,P,U,X,V=this.blocks;this.first?(T=V[0]-680876937,T=(T<<7|T>>>25)-271733879<<0,P=(-1732584194^T&2004318071)+V[1]-117830708,P=(P<<12|P>>>20)+T<<0,b=(-271733879^P&(T^-271733879))+V[2]-1126478375,b=(b<<17|b>>>15)+P<<0,I=(T^b&(P^T))+V[3]-1316259209,I=(I<<22|I>>>10)+b<<0):(T=this.h0,I=this.h1,b=this.h2,P=this.h3,T+=(P^I&(b^P))+V[0]-680876936,T=(T<<7|T>>>25)+I<<0,P+=(b^T&(I^b))+V[1]-389564586,P=(P<<12|P>>>20)+T<<0,b+=(I^P&(T^I))+V[2]+606105819,b=(b<<17|b>>>15)+P<<0,I+=(T^b&(P^T))+V[3]-1044525330,I=(I<<22|I>>>10)+b<<0),T+=(P^I&(b^P))+V[4]-176418897,T=(T<<7|T>>>25)+I<<0,P+=(b^T&(I^b))+V[5]+1200080426,P=(P<<12|P>>>20)+T<<0,b+=(I^P&(T^I))+V[6]-1473231341,b=(b<<17|b>>>15)+P<<0,I+=(T^b&(P^T))+V[7]-45705983,I=(I<<22|I>>>10)+b<<0,T+=(P^I&(b^P))+V[8]+1770035416,T=(T<<7|T>>>25)+I<<0,P+=(b^T&(I^b))+V[9]-1958414417,P=(P<<12|P>>>20)+T<<0,b+=(I^P&(T^I))+V[10]-42063,b=(b<<17|b>>>15)+P<<0,I+=(T^b&(P^T))+V[11]-1990404162,I=(I<<22|I>>>10)+b<<0,T+=(P^I&(b^P))+V[12]+1804603682,T=(T<<7|T>>>25)+I<<0,P+=(b^T&(I^b))+V[13]-40341101,P=(P<<12|P>>>20)+T<<0,b+=(I^P&(T^I))+V[14]-1502002290,b=(b<<17|b>>>15)+P<<0,I+=(T^b&(P^T))+V[15]+1236535329,I=(I<<22|I>>>10)+b<<0,T+=(b^P&(I^b))+V[1]-165796510,T=(T<<5|T>>>27)+I<<0,P+=(I^b&(T^I))+V[6]-1069501632,P=(P<<9|P>>>23)+T<<0,b+=(T^I&(P^T))+V[11]+643717713,b=(b<<14|b>>>18)+P<<0,I+=(P^T&(b^P))+V[0]-373897302,I=(I<<20|I>>>12)+b<<0,T+=(b^P&(I^b))+V[5]-701558691,T=(T<<5|T>>>27)+I<<0,P+=(I^b&(T^I))+V[10]+38016083,P=(P<<9|P>>>23)+T<<0,b+=(T^I&(P^T))+V[15]-660478335,b=(b<<14|b>>>18)+P<<0,I+=(P^T&(b^P))+V[4]-405537848,I=(I<<20|I>>>12)+b<<0,T+=(b^P&(I^b))+V[9]+568446438,T=(T<<5|T>>>27)+I<<0,P+=(I^b&(T^I))+V[14]-1019803690,P=(P<<9|P>>>23)+T<<0,b+=(T^I&(P^T))+V[3]-187363961,b=(b<<14|b>>>18)+P<<0,I+=(P^T&(b^P))+V[8]+1163531501,I=(I<<20|I>>>12)+b<<0,T+=(b^P&(I^b))+V[13]-1444681467,T=(T<<5|T>>>27)+I<<0,P+=(I^b&(T^I))+V[2]-51403784,P=(P<<9|P>>>23)+T<<0,b+=(T^I&(P^T))+V[7]+1735328473,b=(b<<14|b>>>18)+P<<0,I+=(P^T&(b^P))+V[12]-1926607734,I=(I<<20|I>>>12)+b<<0,U=I^b,T+=(U^P)+V[5]-378558,T=(T<<4|T>>>28)+I<<0,P+=(U^T)+V[8]-2022574463,P=(P<<11|P>>>21)+T<<0,X=P^T,b+=(X^I)+V[11]+1839030562,b=(b<<16|b>>>16)+P<<0,I+=(X^b)+V[14]-35309556,I=(I<<23|I>>>9)+b<<0,U=I^b,T+=(U^P)+V[1]-1530992060,T=(T<<4|T>>>28)+I<<0,P+=(U^T)+V[4]+1272893353,P=(P<<11|P>>>21)+T<<0,X=P^T,b+=(X^I)+V[7]-155497632,b=(b<<16|b>>>16)+P<<0,I+=(X^b)+V[10]-1094730640,I=(I<<23|I>>>9)+b<<0,U=I^b,T+=(U^P)+V[13]+681279174,T=(T<<4|T>>>28)+I<<0,P+=(U^T)+V[0]-358537222,P=(P<<11|P>>>21)+T<<0,X=P^T,b+=(X^I)+V[3]-722521979,b=(b<<16|b>>>16)+P<<0,I+=(X^b)+V[6]+76029189,I=(I<<23|I>>>9)+b<<0,U=I^b,T+=(U^P)+V[9]-640364487,T=(T<<4|T>>>28)+I<<0,P+=(U^T)+V[12]-421815835,P=(P<<11|P>>>21)+T<<0,X=P^T,b+=(X^I)+V[15]+530742520,b=(b<<16|b>>>16)+P<<0,I+=(X^b)+V[2]-995338651,I=(I<<23|I>>>9)+b<<0,T+=(b^(I|~P))+V[0]-198630844,T=(T<<6|T>>>26)+I<<0,P+=(I^(T|~b))+V[7]+1126891415,P=(P<<10|P>>>22)+T<<0,b+=(T^(P|~I))+V[14]-1416354905,b=(b<<15|b>>>17)+P<<0,I+=(P^(b|~T))+V[5]-57434055,I=(I<<21|I>>>11)+b<<0,T+=(b^(I|~P))+V[12]+1700485571,T=(T<<6|T>>>26)+I<<0,P+=(I^(T|~b))+V[3]-1894986606,P=(P<<10|P>>>22)+T<<0,b+=(T^(P|~I))+V[10]-1051523,b=(b<<15|b>>>17)+P<<0,I+=(P^(b|~T))+V[1]-2054922799,I=(I<<21|I>>>11)+b<<0,T+=(b^(I|~P))+V[8]+1873313359,T=(T<<6|T>>>26)+I<<0,P+=(I^(T|~b))+V[15]-30611744,P=(P<<10|P>>>22)+T<<0,b+=(T^(P|~I))+V[6]-1560198380,b=(b<<15|b>>>17)+P<<0,I+=(P^(b|~T))+V[13]+1309151649,I=(I<<21|I>>>11)+b<<0,T+=(b^(I|~P))+V[4]-145523070,T=(T<<6|T>>>26)+I<<0,P+=(I^(T|~b))+V[11]-1120210379,P=(P<<10|P>>>22)+T<<0,b+=(T^(P|~I))+V[2]+718787259,b=(b<<15|b>>>17)+P<<0,I+=(P^(b|~T))+V[9]-343485551,I=(I<<21|I>>>11)+b<<0,this.first?(this.h0=T+1732584193<<0,this.h1=I-271733879<<0,this.h2=b-1732584194<<0,this.h3=P+271733878<<0,this.first=!1):(this.h0=this.h0+T<<0,this.h1=this.h1+I<<0,this.h2=this.h2+b<<0,this.h3=this.h3+P<<0)},_.prototype.hex=function(){this.finalize();var T=this.h0,I=this.h1,b=this.h2,P=this.h3;return u[T>>>4&15]+u[T&15]+u[T>>>12&15]+u[T>>>8&15]+u[T>>>20&15]+u[T>>>16&15]+u[T>>>28&15]+u[T>>>24&15]+u[I>>>4&15]+u[I&15]+u[I>>>12&15]+u[I>>>8&15]+u[I>>>20&15]+u[I>>>16&15]+u[I>>>28&15]+u[I>>>24&15]+u[b>>>4&15]+u[b&15]+u[b>>>12&15]+u[b>>>8&15]+u[b>>>20&15]+u[b>>>16&15]+u[b>>>28&15]+u[b>>>24&15]+u[P>>>4&15]+u[P&15]+u[P>>>12&15]+u[P>>>8&15]+u[P>>>20&15]+u[P>>>16&15]+u[P>>>28&15]+u[P>>>24&15]},_.prototype.toString=_.prototype.hex,_.prototype.digest=function(){this.finalize();var T=this.h0,I=this.h1,b=this.h2,P=this.h3;return[T&255,T>>>8&255,T>>>16&255,T>>>24&255,I&255,I>>>8&255,I>>>16&255,I>>>24&255,b&255,b>>>8&255,b>>>16&255,b>>>24&255,P&255,P>>>8&255,P>>>16&255,P>>>24&255]},_.prototype.array=_.prototype.digest,_.prototype.arrayBuffer=function(){this.finalize();var T=new ArrayBuffer(16),I=new Uint32Array(T);return I[0]=this.h0,I[1]=this.h1,I[2]=this.h2,I[3]=this.h3,T},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.base64=function(){for(var T,I,b,P="",U=this.array(),X=0;X<15;)T=U[X++],I=U[X++],b=U[X++],P+=f[T>>>2]+f[(T<<4|I>>>4)&63]+f[(I<<2|b>>>6)&63]+f[b&63];return T=U[X],P+=f[T>>>2]+f[T<<4&63]+"==",P};function B(T,I){var b,P=v(T);if(T=P[0],P[1]){var U=[],X=T.length,V=0,k;for(b=0;b>>6,U[V++]=128|k&63):k<55296||k>=57344?(U[V++]=224|k>>>12,U[V++]=128|k>>>6&63,U[V++]=128|k&63):(k=65536+((k&1023)<<10|T.charCodeAt(++b)&1023),U[V++]=240|k>>>18,U[V++]=128|k>>>12&63,U[V++]=128|k>>>6&63,U[V++]=128|k&63);T=U}T.length>64&&(T=new _(!0).update(T).array());var re=[],Z=[];for(b=0;b<64;++b){var C=T[b]||0;re[b]=92^C,Z[b]=54^C}_.call(this,I),this.update(Z),this.oKeyPad=re,this.inner=!0,this.sharedMemory=I}B.prototype=new _,B.prototype.finalize=function(){if(_.prototype.finalize.call(this),this.inner){this.inner=!1;var T=this.array();_.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(T),_.prototype.finalize.call(this)}};var q=O();q.md5=q,q.md5.hmac=M(),s?t.exports=q:i.md5=q})()})(Jd);window.onload=function(){const t=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent);let e="\u672A\u547D\u540D\u6587\u7A3F";const n=document.querySelector(".editor"),r=new dD(n,{header:[{value:"",size:16,rowFlex:at.CENTER}],main:Rx,footer:[{value:"",size:12}]},yx);Reflect.set(window,"editor",r),window.addEventListener("click",pe=>{const we=document.querySelector(".visible");!we||we.contains(pe.target)||we.classList.remove("visible")},{capture:!0});const i=document.querySelector(".menu-item__undo");i.title=`\u64A4\u9500(${t?"\u2318":"Ctrl"}+Z)`,i.onclick=function(){console.log("undo"),r.command.executeUndo()};const o=document.querySelector(".menu-item__redo");o.title=`\u91CD\u505A(${t?"\u2318":"Ctrl"}+Y)`,o.onclick=function(){console.log("redo"),r.command.executeRedo()};const a=document.querySelector(".menu-item__painter");let s=!0,c;a.onclick=function(){s?(s=!1,c=window.setTimeout(()=>{console.log("painter-click"),s=!0,r.command.executePainter({isDblclick:!1})},200)):window.clearTimeout(c)},a.ondblclick=function(){console.log("painter-dblclick"),s=!0,window.clearTimeout(c),r.command.executePainter({isDblclick:!0})},document.querySelector(".menu-item__format").onclick=function(){console.log("format"),r.command.executeFormat()};const u=document.querySelector(".menu-item__font"),l=u.querySelector(".select"),h=u.querySelector(".options");u.onclick=function(){console.log("font"),h.classList.toggle("visible")},h.onclick=function(pe){const we=pe.target;r.command.executeFont(we.dataset.family)};const d=document.querySelector(".menu-item__size"),f=d.querySelector(".select"),p=d.querySelector(".options");d.title="\u8BBE\u7F6E\u5B57\u53F7",d.onclick=function(){console.log("size"),p.classList.toggle("visible")},p.onclick=function(pe){const we=pe.target;r.command.executeSize(Number(we.dataset.size))};const g=document.querySelector(".menu-item__size-add");g.title=`\u589E\u5927\u5B57\u53F7(${t?"\u2318":"Ctrl"}+[)`,g.onclick=function(){console.log("size-add"),r.command.executeSizeAdd()};const y=document.querySelector(".menu-item__size-minus");y.title=`\u51CF\u5C0F\u5B57\u53F7(${t?"\u2318":"Ctrl"}+])`,y.onclick=function(){console.log("size-minus"),r.command.executeSizeMinus()};const R=document.querySelector(".menu-item__bold");R.title=`\u52A0\u7C97(${t?"\u2318":"Ctrl"}+B)`,R.onclick=function(){console.log("bold"),r.command.executeBold()};const m=document.querySelector(".menu-item__italic");m.title=`\u659C\u4F53(${t?"\u2318":"Ctrl"}+I)`,m.onclick=function(){console.log("italic"),r.command.executeItalic()};const v=document.querySelector(".menu-item__underline");v.title=`\u4E0B\u5212\u7EBF(${t?"\u2318":"Ctrl"}+U)`;const x=v.querySelector(".options");v.querySelector(".select").onclick=function(){x.classList.toggle("visible")},v.querySelector("i").onclick=function(){console.log("underline"),r.command.executeUnderline(),x.classList.remove("visible")},v.querySelector("ul").onmousedown=function(pe){const Ee=pe.target.dataset.decorationStyle;r.command.executeUnderline({style:Ee}),x.classList.remove("visible")};const O=document.querySelector(".menu-item__strikeout");O.onclick=function(){console.log("strikeout"),r.command.executeStrikeout()};const E=document.querySelector(".menu-item__superscript");E.title=`\u4E0A\u6807(${t?"\u2318":"Ctrl"}+Shift+,)`,E.onclick=function(){console.log("superscript"),r.command.executeSuperscript()};const N=document.querySelector(".menu-item__subscript");N.title=`\u4E0B\u6807(${t?"\u2318":"Ctrl"}+Shift+.)`,N.onclick=function(){console.log("subscript"),r.command.executeSubscript()};const M=document.querySelector("#color");M.oninput=function(){r.command.executeColor(M.value)};const _=document.querySelector(".menu-item__color"),B=_.querySelector("span");_.onclick=function(){console.log("color"),M.click()};const q=document.querySelector("#highlight");q.oninput=function(){r.command.executeHighlight(q.value)};const T=document.querySelector(".menu-item__highlight"),I=T.querySelector("span");T.onclick=function(){console.log("highlight"),q==null||q.click()};const b=document.querySelector(".menu-item__title"),P=b.querySelector(".select"),U=b.querySelector(".options");U.querySelectorAll("li").forEach((pe,we)=>{pe.title=`Ctrl+${t?"Option":"Alt"}+${we}`}),b.onclick=function(){console.log("title"),U.classList.toggle("visible")},U.onclick=function(pe){const Ee=pe.target.dataset.level;r.command.executeTitle(Ee||null)};const X=document.querySelector(".menu-item__left");X.title=`\u5DE6\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+L)`,X.onclick=function(){console.log("left"),r.command.executeRowFlex(at.LEFT)};const V=document.querySelector(".menu-item__center");V.title=`\u5C45\u4E2D\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+E)`,V.onclick=function(){console.log("center"),r.command.executeRowFlex(at.CENTER)};const k=document.querySelector(".menu-item__right");k.title=`\u53F3\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+R)`,k.onclick=function(){console.log("right"),r.command.executeRowFlex(at.RIGHT)};const re=document.querySelector(".menu-item__alignment");re.title=`\u4E24\u7AEF\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+J)`,re.onclick=function(){console.log("alignment"),r.command.executeRowFlex(at.ALIGNMENT)};const Z=document.querySelector(".menu-item__justify");Z.title=`\u5206\u6563\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+Shift+J)`,Z.onclick=function(){console.log("justify"),r.command.executeRowFlex(at.JUSTIFY)};const C=document.querySelector(".menu-item__row-margin"),ne=C.querySelector(".options");C.onclick=function(){console.log("row-margin"),ne.classList.toggle("visible")},ne.onclick=function(pe){const we=pe.target;r.command.executeRowMargin(Number(we.dataset.rowmargin))};const oe=document.querySelector(".menu-item__list");oe.title=`\u5217\u8868(${t?"\u2318":"Ctrl"}+Shift+U)`;const ue=oe.querySelector(".options");oe.onclick=function(){console.log("list"),ue.classList.toggle("visible")},ue.onclick=function(pe){const we=pe.target,Ee=we.dataset.listType||null,Fe=we.dataset.listStyle;r.command.executeList(Ee,Fe)};const ce=document.querySelector(".menu-item__table"),W=document.querySelector(".menu-item__table__collapse"),A=document.querySelector(".table-close"),Q=document.querySelector(".table-select"),z=document.querySelector(".table-panel"),H=[];for(let pe=0;pe<10;pe++){const we=document.createElement("tr");we.classList.add("table-row");const Ee=[];for(let Fe=0;Fe<10;Fe++){const Ie=document.createElement("td");Ie.classList.add("table-cel"),we.append(Ie),Ee.push(Ie)}z.append(we),H.push(Ee)}let j=0,ge=0;function D(){H.forEach(pe=>{pe.forEach(we=>we.classList.remove("active"))})}function ie(pe){Q.innerText=pe}function L(){D(),ie("\u63D2\u5165"),j=0,ge=0,W.style.display="none"}ce.onclick=function(){console.log("table"),W.style.display="block"},z.onmousemove=function(pe){const{offsetX:Ie,offsetY:Ae}=pe;D(),j=Math.ceil(Ie/(16+6))||1,ge=Math.ceil(Ae/(16+10))||1,H.forEach((Be,Je)=>{Be.forEach((tt,bt)=>{bt{var Fe,Ie;const we=(Fe=pe.find(Ae=>Ae.name==="name"))==null?void 0:Fe.value;if(!we)return;const Ee=(Ie=pe.find(Ae=>Ae.name==="url"))==null?void 0:Ie.value;!Ee||r.command.executeHyperlink({type:fe.HYPERLINK,value:"",url:Ee,valueList:vr(we).map(Ae=>({value:Ae,size:16}))})}})};const G=document.querySelector(".menu-item__separator"),ee=G.querySelector(".options");G.onclick=function(){console.log("separator"),ee.classList.toggle("visible")},ee.onmousedown=function(pe){var Ie;let we=[];const Fe=(Ie=pe.target.dataset.separator)==null?void 0:Ie.split(",").map(Number);Fe&&(Fe.every(Be=>Be===0)||(we=Fe)),r.command.executeSeparator(we)};const K=document.querySelector(".menu-item__page-break");K.onclick=function(){console.log("pageBreak"),r.command.executePageBreak()};const J=document.querySelector(".menu-item__watermark"),te=J.querySelector(".options");J.onclick=function(){console.log("watermark"),te.classList.toggle("visible")},te.onmousedown=function(pe){const Ee=pe.target.dataset.menu;te.classList.toggle("visible"),Ee==="add"?new ln({title:"\u6C34\u5370",data:[{type:"text",label:"\u5185\u5BB9",name:"data",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},{type:"color",label:"\u989C\u8272",name:"color",required:!0,value:"#AEB5C0"},{type:"number",label:"\u5B57\u4F53\u5927\u5C0F",name:"size",required:!0,value:"120"}],onConfirm:Fe=>{if(~Fe.findIndex(Be=>!Be.value))return;const Ae=Fe.reduce((Be,Je)=>(Be[Je.name]=Je.value,Be),{});r.command.executeAddWatermark({data:Ae.data,color:Ae.color,size:Number(Ae.size)})}}):r.command.executeDeleteWatermark()};const ae=document.querySelector(".menu-item__codeblock");ae.onclick=function(){console.log("codeblock"),new ln({title:"\u4EE3\u7801\u5757",data:[{type:"textarea",name:"codeblock",placeholder:"\u8BF7\u8F93\u5165\u4EE3\u7801",width:500,height:300}],onConfirm:pe=>{var Ae;const we=(Ae=pe.find(Be=>Be.name==="codeblock"))==null?void 0:Ae.value;if(!we)return;const Ee=x1.tokenize(we,x1.languages.javascript),Fe=pD(Ee),Ie=[];for(let Be=0;Be{var Be,Je;const Ie=(Be=Fe.find(tt=>tt.name==="placeholder"))==null?void 0:Be.value;if(!Ie)return;const Ae=((Je=Fe.find(tt=>tt.name==="value"))==null?void 0:Je.value)||"";r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,value:Ae?[{value:Ae}]:null,placeholder:Ie}}])}});break;case yt.SELECT:new ln({title:"\u5217\u4E3E\u63A7\u4EF6",data:[{type:"text",label:"\u5360\u4F4D\u7B26",name:"placeholder",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26"},{type:"text",label:"\u9ED8\u8BA4\u503C",name:"code",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"},{type:"textarea",label:"\u503C\u96C6",name:"valueSets",required:!0,height:100,placeholder:`\u8BF7\u8F93\u5165\u503C\u96C6JSON\uFF0C\u4F8B\uFF1A [{ "value":"\u6709", "code":"98175" }]`}],onConfirm:Fe=>{var Je,tt,bt;const Ie=(Je=Fe.find(It=>It.name==="placeholder"))==null?void 0:Je.value;if(!Ie)return;const Ae=(tt=Fe.find(It=>It.name==="valueSets"))==null?void 0:tt.value;if(!Ae)return;const Be=(bt=Fe.find(It=>It.name==="code"))==null?void 0:bt.value;r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,code:Be,value:null,placeholder:Ie,valueSets:JSON.parse(Ae)}}])}});break;case yt.CHECKBOX:new ln({title:"\u590D\u9009\u6846\u63A7\u4EF6",data:[{type:"text",label:"\u9ED8\u8BA4\u503C",name:"code",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C\uFF0C\u591A\u4E2A\u503C\u4EE5\u82F1\u6587\u9017\u53F7\u5206\u5272"},{type:"textarea",label:"\u503C\u96C6",name:"valueSets",required:!0,height:100,placeholder:`\u8BF7\u8F93\u5165\u503C\u96C6JSON\uFF0C\u4F8B\uFF1A [{ "value":"\u6709", "code":"98175" }]`}],onConfirm:Fe=>{var Be,Je;const Ie=(Be=Fe.find(tt=>tt.name==="valueSets"))==null?void 0:Be.value;if(!Ie)return;const Ae=(Je=Fe.find(tt=>tt.name==="code"))==null?void 0:Je.value;r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,code:Ae,value:null,valueSets:JSON.parse(Ie)}}])}});break;case yt.RADIO:new ln({title:"\u5355\u9009\u6846\u63A7\u4EF6",data:[{type:"text",label:"\u9ED8\u8BA4\u503C",name:"code",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"},{type:"textarea",label:"\u503C\u96C6",name:"valueSets",required:!0,height:100,placeholder:`\u8BF7\u8F93\u5165\u503C\u96C6JSON\uFF0C\u4F8B\uFF1A [{ "value":"\u6709", "code":"98175" }]`}],onConfirm:Fe=>{var Be,Je;const Ie=(Be=Fe.find(tt=>tt.name==="valueSets"))==null?void 0:Be.value;if(!Ie)return;const Ae=(Je=Fe.find(tt=>tt.name==="code"))==null?void 0:Je.value;r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,code:Ae,value:null,valueSets:JSON.parse(Ie)}}])}});break;case yt.DATE:new ln({title:"\u65E5\u671F\u63A7\u4EF6",data:[{type:"text",label:"\u5360\u4F4D\u7B26",name:"placeholder",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26"},{type:"text",label:"\u9ED8\u8BA4\u503C",name:"value",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"},{type:"select",label:"\u65E5\u671F\u683C\u5F0F",name:"dateFormat",value:"yyyy-MM-dd hh:mm:ss",required:!0,options:[{label:"yyyy-MM-dd hh:mm:ss",value:"yyyy-MM-dd hh:mm:ss"},{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}]}],onConfirm:Fe=>{var Je,tt,bt;const Ie=(Je=Fe.find(It=>It.name==="placeholder"))==null?void 0:Je.value;if(!Ie)return;const Ae=((tt=Fe.find(It=>It.name==="value"))==null?void 0:tt.value)||"",Be=((bt=Fe.find(It=>It.name==="dateFormat"))==null?void 0:bt.value)||"";r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,dateFormat:Be,value:Ae?[{value:Ae}]:null,placeholder:Ie}}])}});break}};const _e=document.querySelector(".menu-item__checkbox");_e.onclick=function(){console.log("checkbox"),r.command.executeInsertElementList([{type:fe.CHECKBOX,checkbox:{value:!1},value:""}])};const Me=document.querySelector(".menu-item__radio");Me.onclick=function(){console.log("radio"),r.command.executeInsertElementList([{type:fe.RADIO,checkbox:{value:!1},value:""}])};const Xe=document.querySelector(".menu-item__latex");Xe.onclick=function(){console.log("LaTeX"),new ln({title:"LaTeX",data:[{type:"textarea",height:100,name:"value",placeholder:"\u8BF7\u8F93\u5165LaTeX\u6587\u672C"}],onConfirm:pe=>{var Ee;const we=(Ee=pe.find(Fe=>Fe.name==="value"))==null?void 0:Ee.value;!we||r.command.executeInsertElementList([{type:fe.LATEX,value:we}])}})};const He=document.querySelector(".menu-item__date"),ze=He.querySelector(".options");He.onclick=function(){console.log("date"),ze.classList.toggle("visible");const pe=document.body.getBoundingClientRect(),we=ze.getBoundingClientRect();we.left+we.width>pe.width?(ze.style.right="0px",ze.style.left="unset"):(ze.style.right="unset",ze.style.left="0px");const Ee=new Date,Fe=Ee.getFullYear().toString(),Ie=(Ee.getMonth()+1).toString().padStart(2,"0"),Ae=Ee.getDate().toString().padStart(2,"0"),Be=Ee.getHours().toString().padStart(2,"0"),Je=Ee.getMinutes().toString().padStart(2,"0"),tt=Ee.getSeconds().toString().padStart(2,"0"),bt=`${Fe}-${Ie}-${Ae}`,It=`${bt} ${Be}:${Je}:${tt}`;ze.querySelector("li:first-child").innerText=bt,ze.querySelector("li:last-child").innerText=It},ze.onmousedown=function(pe){const we=pe.target,Ee=we.dataset.format;ze.classList.toggle("visible"),r.command.executeInsertElementList([{type:fe.DATE,value:"",dateFormat:Ee,valueList:[{value:we.innerText.trim()}]}])};const Ze=document.querySelector(".menu-item__block");Ze.onclick=function(){console.log("block"),new ln({title:"\u5185\u5BB9\u5757",data:[{type:"select",label:"\u7C7B\u578B",name:"type",value:"iframe",required:!0,options:[{label:"\u7F51\u5740",value:"iframe"},{label:"\u89C6\u9891",value:"video"}]},{type:"number",label:"\u5BBD\u5EA6",name:"width",placeholder:"\u8BF7\u8F93\u5165\u5BBD\u5EA6\uFF08\u9ED8\u8BA4\u9875\u9762\u5185\u5BBD\u5EA6\uFF09"},{type:"number",label:"\u9AD8\u5EA6",name:"height",required:!0,placeholder:"\u8BF7\u8F93\u5165\u9AD8\u5EA6"},{type:"input",label:"\u5730\u5740",name:"src",required:!1,placeholder:"\u8BF7\u8F93\u5165\u5730\u5740"},{type:"textarea",label:"HTML",height:100,name:"srcdoc",required:!1,placeholder:"\u8BF7\u8F93\u5165HTML\u4EE3\u7801\uFF08\u4EC5\u7F51\u5740\u7C7B\u578B\u6709\u6548\uFF09"}],onConfirm:pe=>{var tt,bt,It,dr,Gi;const we=(tt=pe.find(en=>en.name==="type"))==null?void 0:tt.value;if(!we)return;const Ee=(bt=pe.find(en=>en.name==="width"))==null?void 0:bt.value,Fe=(It=pe.find(en=>en.name==="height"))==null?void 0:It.value;if(!Fe)return;const Ie=(dr=pe.find(en=>en.name==="src"))==null?void 0:dr.value,Ae=(Gi=pe.find(en=>en.name==="srcdoc"))==null?void 0:Gi.value,Be={type:we};if(Be.type===xs.IFRAME){if(!Ie&&!Ae)return;Be.iframeBlock={src:Ie,srcdoc:Ae}}else if(Be.type===xs.VIDEO){if(!Ie)return;Be.videoBlock={src:Ie}}const Je={type:fe.BLOCK,value:"",height:Number(Fe),block:Be};Ee&&(Je.width=Number(Ee)),r.command.executeInsertElementList([Je])}})};const ut=document.querySelector(".menu-item__search__collapse"),Vt=document.querySelector(".menu-item__search__collapse__search input"),Dt=document.querySelector(".menu-item__search__collapse__replace input"),Zn=document.querySelector(".menu-item__search");Zn.title=`\u641C\u7D22\u4E0E\u66FF\u6362(${t?"\u2318":"Ctrl"}+F)`;const ei=ut.querySelector(".search-result");function kn(){const pe=r.command.getSearchNavigateInfo();if(pe){const{index:we,count:Ee}=pe;ei.innerText=`${we}/${Ee}`}else ei.innerText=""}Zn.onclick=function(){console.log("search"),ut.style.display="block";const pe=document.body.getBoundingClientRect(),we=Zn.getBoundingClientRect(),Ee=ut.getBoundingClientRect();we.left+Ee.width>pe.width?(ut.style.right="0px",ut.style.left="unset"):ut.style.right="unset",Vt.focus()},ut.querySelector("span").onclick=function(){ut.style.display="none",Vt.value="",Dt.value="",r.command.executeSearch(null),kn()},Vt.oninput=function(){r.command.executeSearch(Vt.value||null),kn()},Vt.onkeydown=function(pe){pe.key==="Enter"&&(r.command.executeSearch(Vt.value||null),kn())},ut.querySelector("button").onclick=function(){const pe=Vt.value,we=Dt.value;pe&&we&&pe!==we&&r.command.executeReplace(we)},ut.querySelector(".arrow-left").onclick=function(){r.command.executeSearchNavigatePre(),kn()},ut.querySelector(".arrow-right").onclick=function(){r.command.executeSearchNavigateNext(),kn()};const ti=document.querySelector(".menu-item__print");ti.title=`\u6253\u5370(${t?"\u2318":"Ctrl"}+P)`,ti.onclick=function(){console.log("print"),r.command.executePrint()};const ni=document.querySelector(".editor-option");ni.onclick=function(){const pe=r.command.getOptions();new ln({title:"\u7F16\u8F91\u5668\u914D\u7F6E",data:[{type:"textarea",name:"option",width:350,height:300,required:!0,value:JSON.stringify(pe,null,2),placeholder:"\u8BF7\u8F93\u5165\u7F16\u8F91\u5668\u914D\u7F6E"}],onConfirm:we=>{var Ie;const Ee=(Ie=we.find(Ae=>Ae.name==="option"))==null?void 0:Ie.value;if(!Ee)return;const Fe=JSON.parse(Ee);r.command.executeUpdateOptions(Fe)}})};async function Rn(){const pe=await r.command.getCatalog(),we=document.querySelector(".catalog__main");if(we.innerHTML="",pe){const Ee=(Fe,Ie)=>{for(let Ae=0;Ae{r.command.executeLocationCatalog(Be.id)},Je.append(tt),Be.subCatalog&&Be.subCatalog.length&&Ee(Je,Be.subCatalog),Fe.append(Je)}};Ee(we,pe)}}let Dn=!0;const sc=document.querySelector(".catalog"),yl=document.querySelector(".catalog-mode"),vl=document.querySelector(".catalog__header__close"),cc=()=>{Dn=!Dn,Dn?(sc.style.display="block",Rn()):sc.style.display="none"};yl.onclick=cc,vl.onclick=cc;const ri=document.querySelector(".page-mode"),So=ri.querySelector(".options");ri.onclick=function(){So.classList.toggle("visible")},So.onclick=function(pe){const we=pe.target;r.command.executePageMode(we.dataset.pageMode)},document.querySelector(".page-scale-percentage").onclick=function(){console.log("page-scale-recovery"),r.command.executePageScaleRecovery()},document.querySelector(".page-scale-minus").onclick=function(){console.log("page-scale-minus"),r.command.executePageScaleMinus()},document.querySelector(".page-scale-add").onclick=function(){console.log("page-scale-add"),r.command.executePageScaleAdd()};const Wa=document.querySelector(".paper-size"),Qi=Wa.querySelector(".options");Wa.onclick=function(){Qi.classList.toggle("visible")},Qi.onclick=function(pe){const we=pe.target,Ee=we.dataset.paperSize,[Fe,Ie]=Ee.split("*").map(Number);r.command.executePaperSize(Fe,Ie),Qi.querySelectorAll("li").forEach(Ae=>Ae.classList.remove("active")),we.classList.add("active")};const Do=document.querySelector(".paper-direction"),Oo=Do.querySelector(".options");Do.onclick=function(){Oo.classList.toggle("visible")},Oo.onclick=function(pe){const we=pe.target,Ee=we.dataset.paperDirection;r.command.executePaperDirection(Ee),Oo.querySelectorAll("li").forEach(Fe=>Fe.classList.remove("active")),we.classList.add("active")};const _o=document.querySelector(".paper-margin");_o.onclick=function(){const[pe,we,Ee,Fe]=r.command.getPaperMargin();new ln({title:"\u9875\u8FB9\u8DDD",data:[{type:"text",label:"\u4E0A\u8FB9\u8DDD",name:"top",required:!0,value:`${pe}`,placeholder:"\u8BF7\u8F93\u5165\u4E0A\u8FB9\u8DDD"},{type:"text",label:"\u4E0B\u8FB9\u8DDD",name:"bottom",required:!0,value:`${Ee}`,placeholder:"\u8BF7\u8F93\u5165\u4E0B\u8FB9\u8DDD"},{type:"text",label:"\u5DE6\u8FB9\u8DDD",name:"left",required:!0,value:`${Fe}`,placeholder:"\u8BF7\u8F93\u5165\u5DE6\u8FB9\u8DDD"},{type:"text",label:"\u53F3\u8FB9\u8DDD",name:"right",required:!0,value:`${we}`,placeholder:"\u8BF7\u8F93\u5165\u53F3\u8FB9\u8DDD"}],onConfirm:Ie=>{var bt,It,dr,Gi;const Ae=(bt=Ie.find(en=>en.name==="top"))==null?void 0:bt.value;if(!Ae)return;const Be=(It=Ie.find(en=>en.name==="bottom"))==null?void 0:It.value;if(!Be)return;const Je=(dr=Ie.find(en=>en.name==="left"))==null?void 0:dr.value;if(!Je)return;const tt=(Gi=Ie.find(en=>en.name==="right"))==null?void 0:Gi.value;!tt||r.command.executeSetPaperMargin([Number(Ae),Number(tt),Number(Be),Number(Je)])}})};const Xa=document.querySelector(".fullscreen");Xa.onclick=uc,window.addEventListener("keydown",pe=>{pe.key==="F11"&&(uc(),pe.preventDefault())}),document.addEventListener("fullscreenchange",()=>{Xa.classList.toggle("exist")});function uc(){console.log("fullscreen"),document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()}let Ki=0;const lc=[{mode:Zt.EDIT,name:"\u7F16\u8F91\u6A21\u5F0F"},{mode:Zt.CLEAN,name:"\u6E05\u6D01\u6A21\u5F0F"},{mode:Zt.READONLY,name:"\u53EA\u8BFB\u6A21\u5F0F"},{mode:Zt.FORM,name:"\u8868\u5355\u6A21\u5F0F"},{mode:Zt.PRINT,name:"\u6253\u5370\u6A21\u5F0F"}],hc=document.querySelector(".editor-mode");hc.onclick=function(){Ki===lc.length-1?Ki=0:Ki++;const{name:pe,mode:we}=lc[Ki];hc.innerText=pe,r.command.executeMode(we);const Ee=we===Zt.READONLY,Fe=["search","print"];document.querySelectorAll(".menu-item>div").forEach(Ie=>{const Ae=Ie.dataset.menu;Ee&&(!Ae||!Fe.includes(Ae))?Ie.classList.add("disable"):Ie.classList.remove("disable")})};const xi=document.querySelector(".comment");async function dc(){const pe=await r.command.getGroupIds();for(const we of b1){const Ee=xi.querySelector(`.comment-item[data-id='${we.id}']`);if(pe.includes(we.id)){if(!Ee){const Fe=document.createElement("div");Fe.classList.add("comment-item"),Fe.setAttribute("data-id",we.id),Fe.onclick=()=>{r.command.executeLocationGroup(we.id)},xi.append(Fe);const Ie=document.createElement("div");Ie.classList.add("comment-item__title"),Ie.append(document.createElement("span"));const Ae=document.createElement("span");Ae.innerText=we.rangeText,Ie.append(Ae);const Be=document.createElement("i");Be.onclick=()=>{r.command.executeDeleteGroup(we.id)},Ie.append(Be),Fe.append(Ie);const Je=document.createElement("div");Je.classList.add("comment-item__info");const tt=document.createElement("span");tt.innerText=we.userName;const bt=document.createElement("span");bt.innerText=we.createdDate,Je.append(tt),Je.append(bt),Fe.append(Je);const It=document.createElement("div");It.classList.add("comment-item__content"),It.innerText=we.content,Fe.append(It),xi.append(Fe)}}else Ee==null||Ee.remove()}}r.listener.rangeStyleChange=function(pe){if(pe.type===fe.SUBSCRIPT?N.classList.add("active"):N.classList.remove("active"),pe.type===fe.SUPERSCRIPT?E.classList.add("active"):E.classList.remove("active"),pe.type===fe.SEPARATOR?G.classList.add("active"):G.classList.remove("active"),ee.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active")),pe.type===fe.SEPARATOR){const Ie=pe.dashArray.join(",")||"0,0",Ae=ee.querySelector(`[data-separator='${Ie}']`);Ae&&Ae.classList.add("active")}h.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active"));const we=h.querySelector(`[data-family='${pe.font}']`);we&&(l.innerText=we.innerText,l.style.fontFamily=pe.font,we.classList.add("active")),p.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active"));const Ee=p.querySelector(`[data-size='${pe.size}']`);if(Ee?(f.innerText=Ee.innerText,Ee.classList.add("active")):f.innerText=`${pe.size}`,pe.bold?R.classList.add("active"):R.classList.remove("active"),pe.italic?m.classList.add("active"):m.classList.remove("active"),pe.underline?v.classList.add("active"):v.classList.remove("active"),pe.strikeout?O.classList.add("active"):O.classList.remove("active"),pe.color?(_.classList.add("active"),M.value=pe.color,B.style.backgroundColor=pe.color):(_.classList.remove("active"),M.value="#000000",B.style.backgroundColor="#000000"),pe.highlight?(T.classList.add("active"),q.value=pe.highlight,I.style.backgroundColor=pe.highlight):(T.classList.remove("active"),q.value="#ffff00",I.style.backgroundColor="#ffff00"),X.classList.remove("active"),V.classList.remove("active"),k.classList.remove("active"),re.classList.remove("active"),Z.classList.remove("active"),pe.rowFlex&&pe.rowFlex==="right"?k.classList.add("active"):pe.rowFlex&&pe.rowFlex==="center"?V.classList.add("active"):pe.rowFlex&&pe.rowFlex==="alignment"?re.classList.add("active"):pe.rowFlex&&pe.rowFlex==="justify"?Z.classList.add("active"):X.classList.add("active"),ne.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active")),ne.querySelector(`[data-rowmargin='${pe.rowMargin}']`).classList.add("active"),pe.undo?i.classList.remove("no-allow"):i.classList.add("no-allow"),pe.redo?o.classList.remove("no-allow"):o.classList.add("no-allow"),pe.painter?a.classList.add("active"):a.classList.remove("active"),U.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active")),pe.level){const Ie=U.querySelector(`[data-level='${pe.level}']`);P.innerText=Ie.innerText,Ie.classList.add("active")}else P.innerText="\u6B63\u6587",U.querySelector("li:first-child").classList.add("active");if(ue.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active")),pe.listType){oe.classList.add("active");const Ie=pe.listType,Ae=pe.listType===zr.OL?or.DECIMAL:pe.listType,Be=ue.querySelector(`[data-list-type='${Ie}'][data-list-style='${Ae}']`);Be&&Be.classList.add("active")}else oe.classList.remove("active");if(xi.querySelectorAll(".comment-item").forEach(Ie=>{Ie.classList.remove("active")}),pe.groupIds){const[Ie]=pe.groupIds,Ae=xi.querySelector(`.comment-item[data-id='${Ie}']`);Ae&&(Ae.classList.add("active"),RD(xi,Ae))}},r.listener.visiblePageNoListChange=function(pe){const we=pe.map(Ee=>Ee+1).join("\u3001");document.querySelector(".page-no-list").innerText=we},r.listener.pageSizeChange=function(pe){document.querySelector(".page-size").innerText=`${pe}`},r.listener.intersectionPageNoChange=function(pe){document.querySelector(".page-no").innerText=`${pe+1}`},r.listener.pageScaleChange=function(pe){document.querySelector(".page-scale-percentage").innerText=`${Math.floor(pe*10*10)}%`},r.listener.controlChange=function(pe){["table","hyperlink","separator","page-break","control"].forEach(Ee=>{const Fe=document.querySelector(`.menu-item__${Ee}`);pe?Fe.classList.add("disable"):Fe.classList.remove("disable")})},r.listener.pageModeChange=function(pe){const we=So.querySelector(`[data-page-mode='${pe}']`);So.querySelectorAll("li").forEach(Ee=>Ee.classList.remove("active")),we.classList.add("active")};const wi=async function(){const pe=await r.command.getWordCount();document.querySelector(".word-count").innerText=`${pe||0}`,Dn&&U1(()=>{Rn()}),U1(()=>{dc()})};r.listener.contentChange=mD(wi,200),wi();const Va=document.querySelector(".menu-item__import");Va.onclick=()=>{const pe=document.querySelector("#file-docx");pe.click(),pe.onchange=()=>{var Fe;const we=(Fe=pe==null?void 0:pe.files)==null?void 0:Fe[0];if(!we)return;const Ee=new FileReader;Ee.onload=Ie=>{var Be;const Ae=(Be=Ie==null?void 0:Ie.target)==null?void 0:Be.result;Ae instanceof ArrayBuffer&&Zh(r.command,{arrayBuffer:Ae}),e=we.name.substring(0,we.name.lastIndexOf("."))},Ee.readAsArrayBuffer(we)}};const fc=document.querySelector(".menu-item__export");fc.onclick=()=>{new ln({title:"\u8F93\u5165\u6587\u4EF6\u540D",data:[{type:"input",label:"\u6587\u4EF6\u540D",height:40,name:"value",value:e,required:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"}],onConfirm:pe=>{var Ee;const we=(Ee=pe.find(Fe=>Fe.name==="value"))==null?void 0:Ee.value;!we||$g(r.command,{fileName:we,exportType:"file"})}})};const bl=document.querySelector(".menu-item__save");bl.onclick=()=>{Eo()},r.register.contextMenuList([{name:"\u6279\u6CE8",when:pe=>!pe.isReadonly&&pe.editorHasSelection&&pe.zone===it.MAIN,callback:pe=>{new ln({title:"\u6279\u6CE8",data:[{type:"textarea",label:"\u6279\u6CE8",height:100,name:"value",required:!0,placeholder:"\u8BF7\u8F93\u5165\u6279\u6CE8"}],onConfirm:we=>{var Ie;const Ee=(Ie=we.find(Ae=>Ae.name==="value"))==null?void 0:Ie.value;if(!Ee)return;const Fe=pe.executeSetGroup();!Fe||b1.push({id:Fe,content:Ee,userName:"Hufe",rangeText:pe.getRangeText(),createdDate:new Date().toLocaleString()})}})}},{name:"\u7B7E\u540D",icon:"signature",when:pe=>!pe.isReadonly&&pe.editorTextFocus,callback:pe=>{new gD({onConfirm(we){if(!we)return;const{value:Ee,width:Fe,height:Ie}=we;!Ee||!Fe||!Ie||pe.executeInsertElementList([{value:Ee,width:Fe,height:Ie,type:fe.IMAGE}])}})}},{name:"\u63D2\u5165\u6761\u5F62\u7801",when:pe=>!pe.isReadonly&&pe.editorTextFocus,callback:pe=>{new ln({title:"\u63D2\u5165\u6761\u5F62\u7801",data:[{type:"textarea",label:"\u5185\u5BB9",height:100,name:"value",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5F62\u7801\u5185\u5BB9"}],onConfirm:we=>{var Fe;const Ee=(Fe=we.find(Ie=>Ie.name==="value"))==null?void 0:Fe.value;!Ee||uW(pe,{content:Ee,width:200,height:100})}})}},{name:"\u63D2\u5165\u4E8C\u7EF4\u7801",when:pe=>!pe.isReadonly&&pe.editorTextFocus,callback:pe=>{new ln({title:"\u63D2\u5165\u4E8C\u7EF4\u7801",data:[{type:"textarea",label:"\u5185\u5BB9",height:100,name:"value",required:!0,placeholder:"\u8BF7\u8F93\u5165\u4E8C\u7EF4\u7801\u5185\u5BB9"}],onConfirm:we=>{var Fe;const Ee=(Fe=we.find(Ie=>Ie.name==="value"))==null?void 0:Fe.value;!Ee||qV(pe,{content:Ee,width:120,height:120})}})}},{name:"\u683C\u5F0F\u6574\u7406",icon:"word-tool",when:pe=>!pe.isReadonly,callback:pe=>{pe.executeWordTool()}}]),e9(r),r.register.shortcutList([{key:Qe.P,mod:!0,isGlobal:!0,callback:pe=>{pe.executePrint()}},{key:Qe.F,mod:!0,isGlobal:!0,callback:pe=>{const we=pe.getRangeText();Zn.click(),we&&(Vt.value=we,r.command.executeSearch(we),kn())}},{key:Qe.MINUS,ctrl:!0,isGlobal:!0,callback:pe=>{pe.executePageScaleMinus()}},{key:Qe.EQUAL,ctrl:!0,isGlobal:!0,callback:pe=>{pe.executePageScaleAdd()}},{key:Qe.ZERO,ctrl:!0,isGlobal:!0,callback:pe=>{pe.executePageScaleRecovery()}}]),r.listener.saved=function(pe){console.log("elementList: ",pe),Eo()};async function Eo(){new ln({title:"\u8F93\u5165\u6587\u4EF6\u540D",data:[{type:"input",label:"\u6587\u4EF6\u540D",height:40,name:"value",value:e,required:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"}],onConfirm:async pe=>{var Ae;const we=(Ae=pe.find(Be=>Be.name==="value"))==null?void 0:Ae.value;if(!we)return;const Ee=await $g(r.command,{fileName:we,exportType:"fibase64le"}),Fe="docx_"+Jd.exports.md5(Ee);localStorage.setItem(Fe,JSON.stringify(r.command.getValue()));const Ie={data:JSON.stringify({content:Ee,title:we}),type:"exportDocx"};window.parent.postMessage(Ie,"*")}})}function Ti(pe){return pe.indexOf(".")>-1?pe.substring(0,pe.lastIndexOf(".")):pe}function Ya(pe){if(pe===""||pe.trim()==="")return!1;try{return btoa(atob(pe))==pe}catch{return!1}}function Hi(pe){pe=pe.replace(/\=+$/,"");const we=window.atob(pe),Ee=we.length,Fe=new Uint8Array(Ee);for(let Ie=0;Ie{const we=pe.data;if(we.type==="start"&&we.title&&(e=Ti(we.title)),we.type==="init"){const Ee=we.data;if(!Ee||!Ee.title)return;if(e=Ti(Ee.title),Ee.content){if(typeof Ee.content=="string"&&Ya(Ee.content)){const Fe="docx_"+Jd.exports.md5(Ee.content),Ie=localStorage.getItem(Fe);if(Ie){const Ae=JSON.parse(Ie);r.command.executeSetValue(Ae.data)}else{const Ae=Hi(Ee.content);Zh(r.command,{arrayBuffer:Ae})}}Ee.content instanceof ArrayBuffer&&Zh(r.command,{arrayBuffer:Ee.content})}}};window.parent.postMessage({type:"initSuccess"},"*"),window.addEventListener("message",Ba),window.addEventListener("unload",()=>{window.removeEventListener("message",Ba)})};