@aitmed/aitmed-document-template 1.65.0 → 1.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,10 +24,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,curr
24
24
  * Released under MIT license <https://lodash.com/license>
25
25
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
26
26
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
27
- */ma.exports,function(e,r){(function(){var o,a="4.17.21",l=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",g=500,y="__lodash_placeholder__",w=1,b=2,M=4,E=1,S=2,N=1,k=2,A=4,B=8,H=16,D=32,W=64,Y=128,te=256,K=512,q=30,X="...",se=800,ye=16,le=1,L=2,R=3,V=1/0,F=9007199254740991,ie=17976931348623157e292,ue=NaN,de=4294967295,ge=de-1,Ie=de>>>1,Se=[["ary",Y],["bind",N],["bindKey",k],["curry",B],["curryRight",H],["flip",K],["partial",D],["partialRight",W],["rearg",te]],Te="[object Arguments]",pe="[object Array]",ae="[object AsyncFunction]",he="[object Boolean]",Ce="[object Date]",xe="[object DOMException]",Le="[object Error]",He="[object Function]",Pe="[object GeneratorFunction]",ot="[object Map]",St="[object Number]",yt="[object Null]",j="[object Object]",fe="[object Promise]",Ge="[object Proxy]",We="[object RegExp]",Ue="[object Set]",it="[object String]",Lt="[object Symbol]",Qt="[object Undefined]",oe="[object WeakMap]",Ae="[object WeakSet]",x="[object ArrayBuffer]",p="[object DataView]",h="[object Float32Array]",T="[object Float64Array]",z="[object Int8Array]",U="[object Int16Array]",ee="[object Int32Array]",ve="[object Uint8Array]",nt="[object Uint8ClampedArray]",Xe="[object Uint16Array]",rt="[object Uint32Array]",qe=/\b__p \+= '';/g,Ql=/\b(__p \+=) '' \+/g,Zl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qr=/&(?:amp|lt|gt|quot|#39);/g,Aa=/[&<>"']/g,Xl=RegExp(Qr.source),Ta=RegExp(Aa.source),Jl=/<%-([\s\S]+?)%>/g,Na=/<%([\s\S]+?)%>/g,va=/<%=([\s\S]+?)%>/g,Zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ec=/^\w*$/,tc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yi=/[\\^$.*+?()[\]{}|]/g,Ba=RegExp(yi.source),bi=/^\s+/,nc=/\s/,rc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oc=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,me=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ke=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,zn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xn=/\w*$/,Ao=/^[-+]0x[0-9a-f]+$/i,Jn=/^0b[01]+$/i,fn=/^\[object .+?Constructor\]$/,Da=/^0o[0-7]+$/i,cM=/^(?:0|[1-9]\d*)$/,uM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,La=/($^)/,fM=/['\n\r\u2028\u2029\\]/g,Oa="\\ud800-\\udfff",dM="\\u0300-\\u036f",pM="\\ufe20-\\ufe2f",hM="\\u20d0-\\u20ff",dh=dM+pM+hM,ph="\\u2700-\\u27bf",hh="a-z\\xdf-\\xf6\\xf8-\\xff",mM="\\xac\\xb1\\xd7\\xf7",gM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yM="\\u2000-\\u206f",bM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mh="A-Z\\xc0-\\xd6\\xd8-\\xde",gh="\\ufe0e\\ufe0f",yh=mM+gM+yM+bM,ic="['’]",wM="["+Oa+"]",bh="["+yh+"]",Ra="["+dh+"]",wh="\\d+",EM="["+ph+"]",Eh="["+hh+"]",Ch="[^"+Oa+yh+wh+ph+hh+mh+"]",ac="\\ud83c[\\udffb-\\udfff]",CM="(?:"+Ra+"|"+ac+")",Sh="[^"+Oa+"]",sc="(?:\\ud83c[\\udde6-\\uddff]){2}",lc="[\\ud800-\\udbff][\\udc00-\\udfff]",To="["+mh+"]",xh="\\u200d",_h="(?:"+Eh+"|"+Ch+")",SM="(?:"+To+"|"+Ch+")",Ih="(?:"+ic+"(?:d|ll|m|re|s|t|ve))?",kh="(?:"+ic+"(?:D|LL|M|RE|S|T|VE))?",Mh=CM+"?",Ah="["+gh+"]?",xM="(?:"+xh+"(?:"+[Sh,sc,lc].join("|")+")"+Ah+Mh+")*",_M="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",IM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Th=Ah+Mh+xM,kM="(?:"+[EM,sc,lc].join("|")+")"+Th,MM="(?:"+[Sh+Ra+"?",Ra,sc,lc,wM].join("|")+")",AM=RegExp(ic,"g"),TM=RegExp(Ra,"g"),cc=RegExp(ac+"(?="+ac+")|"+MM+Th,"g"),NM=RegExp([To+"?"+Eh+"+"+Ih+"(?="+[bh,To,"$"].join("|")+")",SM+"+"+kh+"(?="+[bh,To+_h,"$"].join("|")+")",To+"?"+_h+"+"+Ih,To+"+"+kh,IM,_M,wh,kM].join("|"),"g"),vM=RegExp("["+xh+Oa+dh+gh+"]"),BM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,DM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],LM=-1,ut={};ut[h]=ut[T]=ut[z]=ut[U]=ut[ee]=ut[ve]=ut[nt]=ut[Xe]=ut[rt]=!0,ut[Te]=ut[pe]=ut[x]=ut[he]=ut[p]=ut[Ce]=ut[Le]=ut[He]=ut[ot]=ut[St]=ut[j]=ut[We]=ut[Ue]=ut[it]=ut[oe]=!1;var st={};st[Te]=st[pe]=st[x]=st[p]=st[he]=st[Ce]=st[h]=st[T]=st[z]=st[U]=st[ee]=st[ot]=st[St]=st[j]=st[We]=st[Ue]=st[it]=st[Lt]=st[ve]=st[nt]=st[Xe]=st[rt]=!0,st[Le]=st[He]=st[oe]=!1;var OM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},RM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},VM={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},zM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},PM=parseFloat,$M=parseInt,Nh=typeof On=="object"&&On&&On.Object===Object&&On,FM=typeof self=="object"&&self&&self.Object===Object&&self,Tt=Nh||FM||Function("return this")(),uc=r&&!r.nodeType&&r,Xr=uc&&!0&&e&&!e.nodeType&&e,vh=Xr&&Xr.exports===uc,fc=vh&&Nh.process,dn=function(){try{var P=Xr&&Xr.require&&Xr.require("util").types;return P||fc&&fc.binding&&fc.binding("util")}catch{}}(),Bh=dn&&dn.isArrayBuffer,Dh=dn&&dn.isDate,Lh=dn&&dn.isMap,Oh=dn&&dn.isRegExp,Rh=dn&&dn.isSet,Vh=dn&&dn.isTypedArray;function Zt(P,J,G){switch(G.length){case 0:return P.call(J);case 1:return P.call(J,G[0]);case 2:return P.call(J,G[0],G[1]);case 3:return P.call(J,G[0],G[1],G[2])}return P.apply(J,G)}function jM(P,J,G,we){for(var Ne=-1,Qe=P==null?0:P.length;++Ne<Qe;){var xt=P[Ne];J(we,xt,G(xt),P)}return we}function pn(P,J){for(var G=-1,we=P==null?0:P.length;++G<we&&J(P[G],G,P)!==!1;);return P}function UM(P,J){for(var G=P==null?0:P.length;G--&&J(P[G],G,P)!==!1;);return P}function zh(P,J){for(var G=-1,we=P==null?0:P.length;++G<we;)if(!J(P[G],G,P))return!1;return!0}function Sr(P,J){for(var G=-1,we=P==null?0:P.length,Ne=0,Qe=[];++G<we;){var xt=P[G];J(xt,G,P)&&(Qe[Ne++]=xt)}return Qe}function Va(P,J){var G=P==null?0:P.length;return!!G&&No(P,J,0)>-1}function dc(P,J,G){for(var we=-1,Ne=P==null?0:P.length;++we<Ne;)if(G(J,P[we]))return!0;return!1}function ft(P,J){for(var G=-1,we=P==null?0:P.length,Ne=Array(we);++G<we;)Ne[G]=J(P[G],G,P);return Ne}function xr(P,J){for(var G=-1,we=J.length,Ne=P.length;++G<we;)P[Ne+G]=J[G];return P}function pc(P,J,G,we){var Ne=-1,Qe=P==null?0:P.length;for(we&&Qe&&(G=P[++Ne]);++Ne<Qe;)G=J(G,P[Ne],Ne,P);return G}function HM(P,J,G,we){var Ne=P==null?0:P.length;for(we&&Ne&&(G=P[--Ne]);Ne--;)G=J(G,P[Ne],Ne,P);return G}function hc(P,J){for(var G=-1,we=P==null?0:P.length;++G<we;)if(J(P[G],G,P))return!0;return!1}var WM=mc("length");function YM(P){return P.split("")}function GM(P){return P.match(me)||[]}function Ph(P,J,G){var we;return G(P,function(Ne,Qe,xt){if(J(Ne,Qe,xt))return we=Qe,!1}),we}function za(P,J,G,we){for(var Ne=P.length,Qe=G+(we?1:-1);we?Qe--:++Qe<Ne;)if(J(P[Qe],Qe,P))return Qe;return-1}function No(P,J,G){return J===J?iA(P,J,G):za(P,$h,G)}function KM(P,J,G,we){for(var Ne=G-1,Qe=P.length;++Ne<Qe;)if(we(P[Ne],J))return Ne;return-1}function $h(P){return P!==P}function Fh(P,J){var G=P==null?0:P.length;return G?yc(P,J)/G:ue}function mc(P){return function(J){return J==null?o:J[P]}}function gc(P){return function(J){return P==null?o:P[J]}}function jh(P,J,G,we,Ne){return Ne(P,function(Qe,xt,at){G=we?(we=!1,Qe):J(G,Qe,xt,at)}),G}function qM(P,J){var G=P.length;for(P.sort(J);G--;)P[G]=P[G].value;return P}function yc(P,J){for(var G,we=-1,Ne=P.length;++we<Ne;){var Qe=J(P[we]);Qe!==o&&(G=G===o?Qe:G+Qe)}return G}function bc(P,J){for(var G=-1,we=Array(P);++G<P;)we[G]=J(G);return we}function QM(P,J){return ft(J,function(G){return[G,P[G]]})}function Uh(P){return P&&P.slice(0,Gh(P)+1).replace(bi,"")}function Xt(P){return function(J){return P(J)}}function wc(P,J){return ft(J,function(G){return P[G]})}function wi(P,J){return P.has(J)}function Hh(P,J){for(var G=-1,we=P.length;++G<we&&No(J,P[G],0)>-1;);return G}function Wh(P,J){for(var G=P.length;G--&&No(J,P[G],0)>-1;);return G}function ZM(P,J){for(var G=P.length,we=0;G--;)P[G]===J&&++we;return we}var XM=gc(OM),JM=gc(RM);function eA(P){return"\\"+zM[P]}function tA(P,J){return P==null?o:P[J]}function vo(P){return vM.test(P)}function nA(P){return BM.test(P)}function rA(P){for(var J,G=[];!(J=P.next()).done;)G.push(J.value);return G}function Ec(P){var J=-1,G=Array(P.size);return P.forEach(function(we,Ne){G[++J]=[Ne,we]}),G}function Yh(P,J){return function(G){return P(J(G))}}function _r(P,J){for(var G=-1,we=P.length,Ne=0,Qe=[];++G<we;){var xt=P[G];(xt===J||xt===y)&&(P[G]=y,Qe[Ne++]=G)}return Qe}function Pa(P){var J=-1,G=Array(P.size);return P.forEach(function(we){G[++J]=we}),G}function oA(P){var J=-1,G=Array(P.size);return P.forEach(function(we){G[++J]=[we,we]}),G}function iA(P,J,G){for(var we=G-1,Ne=P.length;++we<Ne;)if(P[we]===J)return we;return-1}function aA(P,J,G){for(var we=G+1;we--;)if(P[we]===J)return we;return we}function Bo(P){return vo(P)?lA(P):WM(P)}function kn(P){return vo(P)?cA(P):YM(P)}function Gh(P){for(var J=P.length;J--&&nc.test(P.charAt(J)););return J}var sA=gc(VM);function lA(P){for(var J=cc.lastIndex=0;cc.test(P);)++J;return J}function cA(P){return P.match(cc)||[]}function uA(P){return P.match(NM)||[]}var fA=function P(J){J=J==null?Tt:Do.defaults(Tt.Object(),J,Do.pick(Tt,DM));var G=J.Array,we=J.Date,Ne=J.Error,Qe=J.Function,xt=J.Math,at=J.Object,Cc=J.RegExp,dA=J.String,hn=J.TypeError,$a=G.prototype,pA=Qe.prototype,Lo=at.prototype,Fa=J["__core-js_shared__"],ja=pA.toString,et=Lo.hasOwnProperty,hA=0,Kh=function(){var n=/[^.]+$/.exec(Fa&&Fa.keys&&Fa.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Ua=Lo.toString,mA=ja.call(at),gA=Tt._,yA=Cc("^"+ja.call(et).replace(yi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ha=vh?J.Buffer:o,Ir=J.Symbol,Wa=J.Uint8Array,qh=Ha?Ha.allocUnsafe:o,Ya=Yh(at.getPrototypeOf,at),Qh=at.create,Zh=Lo.propertyIsEnumerable,Ga=$a.splice,Xh=Ir?Ir.isConcatSpreadable:o,Ei=Ir?Ir.iterator:o,Jr=Ir?Ir.toStringTag:o,Ka=function(){try{var n=oo(at,"defineProperty");return n({},"",{}),n}catch{}}(),bA=J.clearTimeout!==Tt.clearTimeout&&J.clearTimeout,wA=we&&we.now!==Tt.Date.now&&we.now,EA=J.setTimeout!==Tt.setTimeout&&J.setTimeout,qa=xt.ceil,Qa=xt.floor,Sc=at.getOwnPropertySymbols,CA=Ha?Ha.isBuffer:o,Jh=J.isFinite,SA=$a.join,xA=Yh(at.keys,at),_t=xt.max,Ot=xt.min,_A=we.now,IA=J.parseInt,em=xt.random,kA=$a.reverse,xc=oo(J,"DataView"),Ci=oo(J,"Map"),_c=oo(J,"Promise"),Oo=oo(J,"Set"),Si=oo(J,"WeakMap"),xi=oo(at,"create"),Za=Si&&new Si,Ro={},MA=io(xc),AA=io(Ci),TA=io(_c),NA=io(Oo),vA=io(Si),Xa=Ir?Ir.prototype:o,_i=Xa?Xa.valueOf:o,tm=Xa?Xa.toString:o;function _(n){if(mt(n)&&!Be(n)&&!(n instanceof Fe)){if(n instanceof mn)return n;if(et.call(n,"__wrapped__"))return ng(n)}return new mn(n)}var Vo=function(){function n(){}return function(i){if(!dt(i))return{};if(Qh)return Qh(i);n.prototype=i;var s=new n;return n.prototype=o,s}}();function Ja(){}function mn(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=o}_.templateSettings={escape:Jl,evaluate:Na,interpolate:va,variable:"",imports:{_}},_.prototype=Ja.prototype,_.prototype.constructor=_,mn.prototype=Vo(Ja.prototype),mn.prototype.constructor=mn;function Fe(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=de,this.__views__=[]}function BA(){var n=new Fe(this.__wrapped__);return n.__actions__=Ht(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ht(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ht(this.__views__),n}function DA(){if(this.__filtered__){var n=new Fe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function LA(){var n=this.__wrapped__.value(),i=this.__dir__,s=Be(n),d=i<0,C=s?n.length:0,I=YT(0,C,this.__views__),v=I.start,O=I.end,$=O-v,ne=d?O:v-1,re=this.__iteratees__,ce=re.length,be=0,Ee=Ot($,this.__takeCount__);if(!s||!d&&C==$&&Ee==$)return Im(n,this.__actions__);var ke=[];e:for(;$--&&be<Ee;){ne+=i;for(var Ve=-1,Me=n[ne];++Ve<ce;){var $e=re[Ve],je=$e.iteratee,tn=$e.type,$t=je(Me);if(tn==L)Me=$t;else if(!$t){if(tn==le)continue e;break e}}ke[be++]=Me}return ke}Fe.prototype=Vo(Ja.prototype),Fe.prototype.constructor=Fe;function eo(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function OA(){this.__data__=xi?xi(null):{},this.size=0}function RA(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function VA(n){var i=this.__data__;if(xi){var s=i[n];return s===m?o:s}return et.call(i,n)?i[n]:o}function zA(n){var i=this.__data__;return xi?i[n]!==o:et.call(i,n)}function PA(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=xi&&i===o?m:i,this}eo.prototype.clear=OA,eo.prototype.delete=RA,eo.prototype.get=VA,eo.prototype.has=zA,eo.prototype.set=PA;function er(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function $A(){this.__data__=[],this.size=0}function FA(n){var i=this.__data__,s=es(i,n);if(s<0)return!1;var d=i.length-1;return s==d?i.pop():Ga.call(i,s,1),--this.size,!0}function jA(n){var i=this.__data__,s=es(i,n);return s<0?o:i[s][1]}function UA(n){return es(this.__data__,n)>-1}function HA(n,i){var s=this.__data__,d=es(s,n);return d<0?(++this.size,s.push([n,i])):s[d][1]=i,this}er.prototype.clear=$A,er.prototype.delete=FA,er.prototype.get=jA,er.prototype.has=UA,er.prototype.set=HA;function tr(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function WA(){this.size=0,this.__data__={hash:new eo,map:new(Ci||er),string:new eo}}function YA(n){var i=ds(this,n).delete(n);return this.size-=i?1:0,i}function GA(n){return ds(this,n).get(n)}function KA(n){return ds(this,n).has(n)}function qA(n,i){var s=ds(this,n),d=s.size;return s.set(n,i),this.size+=s.size==d?0:1,this}tr.prototype.clear=WA,tr.prototype.delete=YA,tr.prototype.get=GA,tr.prototype.has=KA,tr.prototype.set=qA;function to(n){var i=-1,s=n==null?0:n.length;for(this.__data__=new tr;++i<s;)this.add(n[i])}function QA(n){return this.__data__.set(n,m),this}function ZA(n){return this.__data__.has(n)}to.prototype.add=to.prototype.push=QA,to.prototype.has=ZA;function Mn(n){var i=this.__data__=new er(n);this.size=i.size}function XA(){this.__data__=new er,this.size=0}function JA(n){var i=this.__data__,s=i.delete(n);return this.size=i.size,s}function eT(n){return this.__data__.get(n)}function tT(n){return this.__data__.has(n)}function nT(n,i){var s=this.__data__;if(s instanceof er){var d=s.__data__;if(!Ci||d.length<l-1)return d.push([n,i]),this.size=++s.size,this;s=this.__data__=new tr(d)}return s.set(n,i),this.size=s.size,this}Mn.prototype.clear=XA,Mn.prototype.delete=JA,Mn.prototype.get=eT,Mn.prototype.has=tT,Mn.prototype.set=nT;function nm(n,i){var s=Be(n),d=!s&&ao(n),C=!s&&!d&&Nr(n),I=!s&&!d&&!C&&Fo(n),v=s||d||C||I,O=v?bc(n.length,dA):[],$=O.length;for(var ne in n)(i||et.call(n,ne))&&!(v&&(ne=="length"||C&&(ne=="offset"||ne=="parent")||I&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||ir(ne,$)))&&O.push(ne);return O}function rm(n){var i=n.length;return i?n[Oc(0,i-1)]:o}function rT(n,i){return ps(Ht(n),no(i,0,n.length))}function oT(n){return ps(Ht(n))}function Ic(n,i,s){(s!==o&&!An(n[i],s)||s===o&&!(i in n))&&nr(n,i,s)}function Ii(n,i,s){var d=n[i];(!(et.call(n,i)&&An(d,s))||s===o&&!(i in n))&&nr(n,i,s)}function es(n,i){for(var s=n.length;s--;)if(An(n[s][0],i))return s;return-1}function iT(n,i,s,d){return kr(n,function(C,I,v){i(d,C,s(C),v)}),d}function om(n,i){return n&&$n(i,It(i),n)}function aT(n,i){return n&&$n(i,Yt(i),n)}function nr(n,i,s){i=="__proto__"&&Ka?Ka(n,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[i]=s}function kc(n,i){for(var s=-1,d=i.length,C=G(d),I=n==null;++s<d;)C[s]=I?o:au(n,i[s]);return C}function no(n,i,s){return n===n&&(s!==o&&(n=n<=s?n:s),i!==o&&(n=n>=i?n:i)),n}function gn(n,i,s,d,C,I){var v,O=i&w,$=i&b,ne=i&M;if(s&&(v=C?s(n,d,C,I):s(n)),v!==o)return v;if(!dt(n))return n;var re=Be(n);if(re){if(v=KT(n),!O)return Ht(n,v)}else{var ce=Rt(n),be=ce==He||ce==Pe;if(Nr(n))return Am(n,O);if(ce==j||ce==Te||be&&!C){if(v=$||be?{}:Gm(n),!O)return $?VT(n,aT(v,n)):RT(n,om(v,n))}else{if(!st[ce])return C?n:{};v=qT(n,ce,O)}}I||(I=new Mn);var Ee=I.get(n);if(Ee)return Ee;I.set(n,v),Sg(n)?n.forEach(function(Me){v.add(gn(Me,i,s,Me,n,I))}):Eg(n)&&n.forEach(function(Me,$e){v.set($e,gn(Me,i,s,$e,n,I))});var ke=ne?$?Yc:Wc:$?Yt:It,Ve=re?o:ke(n);return pn(Ve||n,function(Me,$e){Ve&&($e=Me,Me=n[$e]),Ii(v,$e,gn(Me,i,s,$e,n,I))}),v}function sT(n){var i=It(n);return function(s){return im(s,n,i)}}function im(n,i,s){var d=s.length;if(n==null)return!d;for(n=at(n);d--;){var C=s[d],I=i[C],v=n[C];if(v===o&&!(C in n)||!I(v))return!1}return!0}function am(n,i,s){if(typeof n!="function")throw new hn(u);return Bi(function(){n.apply(o,s)},i)}function ki(n,i,s,d){var C=-1,I=Va,v=!0,O=n.length,$=[],ne=i.length;if(!O)return $;s&&(i=ft(i,Xt(s))),d?(I=dc,v=!1):i.length>=l&&(I=wi,v=!1,i=new to(i));e:for(;++C<O;){var re=n[C],ce=s==null?re:s(re);if(re=d||re!==0?re:0,v&&ce===ce){for(var be=ne;be--;)if(i[be]===ce)continue e;$.push(re)}else I(i,ce,d)||$.push(re)}return $}var kr=Dm(Pn),sm=Dm(Ac,!0);function lT(n,i){var s=!0;return kr(n,function(d,C,I){return s=!!i(d,C,I),s}),s}function ts(n,i,s){for(var d=-1,C=n.length;++d<C;){var I=n[d],v=i(I);if(v!=null&&(O===o?v===v&&!en(v):s(v,O)))var O=v,$=I}return $}function cT(n,i,s,d){var C=n.length;for(s=Oe(s),s<0&&(s=-s>C?0:C+s),d=d===o||d>C?C:Oe(d),d<0&&(d+=C),d=s>d?0:_g(d);s<d;)n[s++]=i;return n}function lm(n,i){var s=[];return kr(n,function(d,C,I){i(d,C,I)&&s.push(d)}),s}function Nt(n,i,s,d,C){var I=-1,v=n.length;for(s||(s=ZT),C||(C=[]);++I<v;){var O=n[I];i>0&&s(O)?i>1?Nt(O,i-1,s,d,C):xr(C,O):d||(C[C.length]=O)}return C}var Mc=Lm(),cm=Lm(!0);function Pn(n,i){return n&&Mc(n,i,It)}function Ac(n,i){return n&&cm(n,i,It)}function ns(n,i){return Sr(i,function(s){return ar(n[s])})}function ro(n,i){i=Ar(i,n);for(var s=0,d=i.length;n!=null&&s<d;)n=n[Fn(i[s++])];return s&&s==d?n:o}function um(n,i,s){var d=i(n);return Be(n)?d:xr(d,s(n))}function zt(n){return n==null?n===o?Qt:yt:Jr&&Jr in at(n)?WT(n):oN(n)}function Tc(n,i){return n>i}function uT(n,i){return n!=null&&et.call(n,i)}function fT(n,i){return n!=null&&i in at(n)}function dT(n,i,s){return n>=Ot(i,s)&&n<_t(i,s)}function Nc(n,i,s){for(var d=s?dc:Va,C=n[0].length,I=n.length,v=I,O=G(I),$=1/0,ne=[];v--;){var re=n[v];v&&i&&(re=ft(re,Xt(i))),$=Ot(re.length,$),O[v]=!s&&(i||C>=120&&re.length>=120)?new to(v&&re):o}re=n[0];var ce=-1,be=O[0];e:for(;++ce<C&&ne.length<$;){var Ee=re[ce],ke=i?i(Ee):Ee;if(Ee=s||Ee!==0?Ee:0,!(be?wi(be,ke):d(ne,ke,s))){for(v=I;--v;){var Ve=O[v];if(!(Ve?wi(Ve,ke):d(n[v],ke,s)))continue e}be&&be.push(ke),ne.push(Ee)}}return ne}function pT(n,i,s,d){return Pn(n,function(C,I,v){i(d,s(C),I,v)}),d}function Mi(n,i,s){i=Ar(i,n),n=Zm(n,i);var d=n==null?n:n[Fn(bn(i))];return d==null?o:Zt(d,n,s)}function fm(n){return mt(n)&&zt(n)==Te}function hT(n){return mt(n)&&zt(n)==x}function mT(n){return mt(n)&&zt(n)==Ce}function Ai(n,i,s,d,C){return n===i?!0:n==null||i==null||!mt(n)&&!mt(i)?n!==n&&i!==i:gT(n,i,s,d,Ai,C)}function gT(n,i,s,d,C,I){var v=Be(n),O=Be(i),$=v?pe:Rt(n),ne=O?pe:Rt(i);$=$==Te?j:$,ne=ne==Te?j:ne;var re=$==j,ce=ne==j,be=$==ne;if(be&&Nr(n)){if(!Nr(i))return!1;v=!0,re=!1}if(be&&!re)return I||(I=new Mn),v||Fo(n)?Hm(n,i,s,d,C,I):UT(n,i,$,s,d,C,I);if(!(s&E)){var Ee=re&&et.call(n,"__wrapped__"),ke=ce&&et.call(i,"__wrapped__");if(Ee||ke){var Ve=Ee?n.value():n,Me=ke?i.value():i;return I||(I=new Mn),C(Ve,Me,s,d,I)}}return be?(I||(I=new Mn),HT(n,i,s,d,C,I)):!1}function yT(n){return mt(n)&&Rt(n)==ot}function vc(n,i,s,d){var C=s.length,I=C,v=!d;if(n==null)return!I;for(n=at(n);C--;){var O=s[C];if(v&&O[2]?O[1]!==n[O[0]]:!(O[0]in n))return!1}for(;++C<I;){O=s[C];var $=O[0],ne=n[$],re=O[1];if(v&&O[2]){if(ne===o&&!($ in n))return!1}else{var ce=new Mn;if(d)var be=d(ne,re,$,n,i,ce);if(!(be===o?Ai(re,ne,E|S,d,ce):be))return!1}}return!0}function dm(n){if(!dt(n)||JT(n))return!1;var i=ar(n)?yA:fn;return i.test(io(n))}function bT(n){return mt(n)&&zt(n)==We}function wT(n){return mt(n)&&Rt(n)==Ue}function ET(n){return mt(n)&&ws(n.length)&&!!ut[zt(n)]}function pm(n){return typeof n=="function"?n:n==null?Gt:typeof n=="object"?Be(n)?gm(n[0],n[1]):mm(n):Og(n)}function Bc(n){if(!vi(n))return xA(n);var i=[];for(var s in at(n))et.call(n,s)&&s!="constructor"&&i.push(s);return i}function CT(n){if(!dt(n))return rN(n);var i=vi(n),s=[];for(var d in n)d=="constructor"&&(i||!et.call(n,d))||s.push(d);return s}function Dc(n,i){return n<i}function hm(n,i){var s=-1,d=Wt(n)?G(n.length):[];return kr(n,function(C,I,v){d[++s]=i(C,I,v)}),d}function mm(n){var i=Kc(n);return i.length==1&&i[0][2]?qm(i[0][0],i[0][1]):function(s){return s===n||vc(s,n,i)}}function gm(n,i){return Qc(n)&&Km(i)?qm(Fn(n),i):function(s){var d=au(s,n);return d===o&&d===i?su(s,n):Ai(i,d,E|S)}}function rs(n,i,s,d,C){n!==i&&Mc(i,function(I,v){if(C||(C=new Mn),dt(I))ST(n,i,v,s,rs,d,C);else{var O=d?d(Xc(n,v),I,v+"",n,i,C):o;O===o&&(O=I),Ic(n,v,O)}},Yt)}function ST(n,i,s,d,C,I,v){var O=Xc(n,s),$=Xc(i,s),ne=v.get($);if(ne){Ic(n,s,ne);return}var re=I?I(O,$,s+"",n,i,v):o,ce=re===o;if(ce){var be=Be($),Ee=!be&&Nr($),ke=!be&&!Ee&&Fo($);re=$,be||Ee||ke?Be(O)?re=O:bt(O)?re=Ht(O):Ee?(ce=!1,re=Am($,!0)):ke?(ce=!1,re=Tm($,!0)):re=[]:Di($)||ao($)?(re=O,ao(O)?re=Ig(O):(!dt(O)||ar(O))&&(re=Gm($))):ce=!1}ce&&(v.set($,re),C(re,$,d,I,v),v.delete($)),Ic(n,s,re)}function ym(n,i){var s=n.length;if(s)return i+=i<0?s:0,ir(i,s)?n[i]:o}function bm(n,i,s){i.length?i=ft(i,function(I){return Be(I)?function(v){return ro(v,I.length===1?I[0]:I)}:I}):i=[Gt];var d=-1;i=ft(i,Xt(_e()));var C=hm(n,function(I,v,O){var $=ft(i,function(ne){return ne(I)});return{criteria:$,index:++d,value:I}});return qM(C,function(I,v){return OT(I,v,s)})}function xT(n,i){return wm(n,i,function(s,d){return su(n,d)})}function wm(n,i,s){for(var d=-1,C=i.length,I={};++d<C;){var v=i[d],O=ro(n,v);s(O,v)&&Ti(I,Ar(v,n),O)}return I}function _T(n){return function(i){return ro(i,n)}}function Lc(n,i,s,d){var C=d?KM:No,I=-1,v=i.length,O=n;for(n===i&&(i=Ht(i)),s&&(O=ft(n,Xt(s)));++I<v;)for(var $=0,ne=i[I],re=s?s(ne):ne;($=C(O,re,$,d))>-1;)O!==n&&Ga.call(O,$,1),Ga.call(n,$,1);return n}function Em(n,i){for(var s=n?i.length:0,d=s-1;s--;){var C=i[s];if(s==d||C!==I){var I=C;ir(C)?Ga.call(n,C,1):zc(n,C)}}return n}function Oc(n,i){return n+Qa(em()*(i-n+1))}function IT(n,i,s,d){for(var C=-1,I=_t(qa((i-n)/(s||1)),0),v=G(I);I--;)v[d?I:++C]=n,n+=s;return v}function Rc(n,i){var s="";if(!n||i<1||i>F)return s;do i%2&&(s+=n),i=Qa(i/2),i&&(n+=n);while(i);return s}function ze(n,i){return Jc(Qm(n,i,Gt),n+"")}function kT(n){return rm(jo(n))}function MT(n,i){var s=jo(n);return ps(s,no(i,0,s.length))}function Ti(n,i,s,d){if(!dt(n))return n;i=Ar(i,n);for(var C=-1,I=i.length,v=I-1,O=n;O!=null&&++C<I;){var $=Fn(i[C]),ne=s;if($==="__proto__"||$==="constructor"||$==="prototype")return n;if(C!=v){var re=O[$];ne=d?d(re,$,O):o,ne===o&&(ne=dt(re)?re:ir(i[C+1])?[]:{})}Ii(O,$,ne),O=O[$]}return n}var Cm=Za?function(n,i){return Za.set(n,i),n}:Gt,AT=Ka?function(n,i){return Ka(n,"toString",{configurable:!0,enumerable:!1,value:cu(i),writable:!0})}:Gt;function TT(n){return ps(jo(n))}function yn(n,i,s){var d=-1,C=n.length;i<0&&(i=-i>C?0:C+i),s=s>C?C:s,s<0&&(s+=C),C=i>s?0:s-i>>>0,i>>>=0;for(var I=G(C);++d<C;)I[d]=n[d+i];return I}function NT(n,i){var s;return kr(n,function(d,C,I){return s=i(d,C,I),!s}),!!s}function os(n,i,s){var d=0,C=n==null?d:n.length;if(typeof i=="number"&&i===i&&C<=Ie){for(;d<C;){var I=d+C>>>1,v=n[I];v!==null&&!en(v)&&(s?v<=i:v<i)?d=I+1:C=I}return C}return Vc(n,i,Gt,s)}function Vc(n,i,s,d){var C=0,I=n==null?0:n.length;if(I===0)return 0;i=s(i);for(var v=i!==i,O=i===null,$=en(i),ne=i===o;C<I;){var re=Qa((C+I)/2),ce=s(n[re]),be=ce!==o,Ee=ce===null,ke=ce===ce,Ve=en(ce);if(v)var Me=d||ke;else ne?Me=ke&&(d||be):O?Me=ke&&be&&(d||!Ee):$?Me=ke&&be&&!Ee&&(d||!Ve):Ee||Ve?Me=!1:Me=d?ce<=i:ce<i;Me?C=re+1:I=re}return Ot(I,ge)}function Sm(n,i){for(var s=-1,d=n.length,C=0,I=[];++s<d;){var v=n[s],O=i?i(v):v;if(!s||!An(O,$)){var $=O;I[C++]=v===0?0:v}}return I}function xm(n){return typeof n=="number"?n:en(n)?ue:+n}function Jt(n){if(typeof n=="string")return n;if(Be(n))return ft(n,Jt)+"";if(en(n))return tm?tm.call(n):"";var i=n+"";return i=="0"&&1/n==-V?"-0":i}function Mr(n,i,s){var d=-1,C=Va,I=n.length,v=!0,O=[],$=O;if(s)v=!1,C=dc;else if(I>=l){var ne=i?null:FT(n);if(ne)return Pa(ne);v=!1,C=wi,$=new to}else $=i?[]:O;e:for(;++d<I;){var re=n[d],ce=i?i(re):re;if(re=s||re!==0?re:0,v&&ce===ce){for(var be=$.length;be--;)if($[be]===ce)continue e;i&&$.push(ce),O.push(re)}else C($,ce,s)||($!==O&&$.push(ce),O.push(re))}return O}function zc(n,i){return i=Ar(i,n),n=Zm(n,i),n==null||delete n[Fn(bn(i))]}function _m(n,i,s,d){return Ti(n,i,s(ro(n,i)),d)}function is(n,i,s,d){for(var C=n.length,I=d?C:-1;(d?I--:++I<C)&&i(n[I],I,n););return s?yn(n,d?0:I,d?I+1:C):yn(n,d?I+1:0,d?C:I)}function Im(n,i){var s=n;return s instanceof Fe&&(s=s.value()),pc(i,function(d,C){return C.func.apply(C.thisArg,xr([d],C.args))},s)}function Pc(n,i,s){var d=n.length;if(d<2)return d?Mr(n[0]):[];for(var C=-1,I=G(d);++C<d;)for(var v=n[C],O=-1;++O<d;)O!=C&&(I[C]=ki(I[C]||v,n[O],i,s));return Mr(Nt(I,1),i,s)}function km(n,i,s){for(var d=-1,C=n.length,I=i.length,v={};++d<C;){var O=d<I?i[d]:o;s(v,n[d],O)}return v}function $c(n){return bt(n)?n:[]}function Fc(n){return typeof n=="function"?n:Gt}function Ar(n,i){return Be(n)?n:Qc(n,i)?[n]:tg(Je(n))}var vT=ze;function Tr(n,i,s){var d=n.length;return s=s===o?d:s,!i&&s>=d?n:yn(n,i,s)}var Mm=bA||function(n){return Tt.clearTimeout(n)};function Am(n,i){if(i)return n.slice();var s=n.length,d=qh?qh(s):new n.constructor(s);return n.copy(d),d}function jc(n){var i=new n.constructor(n.byteLength);return new Wa(i).set(new Wa(n)),i}function BT(n,i){var s=i?jc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}function DT(n){var i=new n.constructor(n.source,Xn.exec(n));return i.lastIndex=n.lastIndex,i}function LT(n){return _i?at(_i.call(n)):{}}function Tm(n,i){var s=i?jc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}function Nm(n,i){if(n!==i){var s=n!==o,d=n===null,C=n===n,I=en(n),v=i!==o,O=i===null,$=i===i,ne=en(i);if(!O&&!ne&&!I&&n>i||I&&v&&$&&!O&&!ne||d&&v&&$||!s&&$||!C)return 1;if(!d&&!I&&!ne&&n<i||ne&&s&&C&&!d&&!I||O&&s&&C||!v&&C||!$)return-1}return 0}function OT(n,i,s){for(var d=-1,C=n.criteria,I=i.criteria,v=C.length,O=s.length;++d<v;){var $=Nm(C[d],I[d]);if($){if(d>=O)return $;var ne=s[d];return $*(ne=="desc"?-1:1)}}return n.index-i.index}function vm(n,i,s,d){for(var C=-1,I=n.length,v=s.length,O=-1,$=i.length,ne=_t(I-v,0),re=G($+ne),ce=!d;++O<$;)re[O]=i[O];for(;++C<v;)(ce||C<I)&&(re[s[C]]=n[C]);for(;ne--;)re[O++]=n[C++];return re}function Bm(n,i,s,d){for(var C=-1,I=n.length,v=-1,O=s.length,$=-1,ne=i.length,re=_t(I-O,0),ce=G(re+ne),be=!d;++C<re;)ce[C]=n[C];for(var Ee=C;++$<ne;)ce[Ee+$]=i[$];for(;++v<O;)(be||C<I)&&(ce[Ee+s[v]]=n[C++]);return ce}function Ht(n,i){var s=-1,d=n.length;for(i||(i=G(d));++s<d;)i[s]=n[s];return i}function $n(n,i,s,d){var C=!s;s||(s={});for(var I=-1,v=i.length;++I<v;){var O=i[I],$=d?d(s[O],n[O],O,s,n):o;$===o&&($=n[O]),C?nr(s,O,$):Ii(s,O,$)}return s}function RT(n,i){return $n(n,qc(n),i)}function VT(n,i){return $n(n,Wm(n),i)}function as(n,i){return function(s,d){var C=Be(s)?jM:iT,I=i?i():{};return C(s,n,_e(d,2),I)}}function zo(n){return ze(function(i,s){var d=-1,C=s.length,I=C>1?s[C-1]:o,v=C>2?s[2]:o;for(I=n.length>3&&typeof I=="function"?(C--,I):o,v&&Pt(s[0],s[1],v)&&(I=C<3?o:I,C=1),i=at(i);++d<C;){var O=s[d];O&&n(i,O,d,I)}return i})}function Dm(n,i){return function(s,d){if(s==null)return s;if(!Wt(s))return n(s,d);for(var C=s.length,I=i?C:-1,v=at(s);(i?I--:++I<C)&&d(v[I],I,v)!==!1;);return s}}function Lm(n){return function(i,s,d){for(var C=-1,I=at(i),v=d(i),O=v.length;O--;){var $=v[n?O:++C];if(s(I[$],$,I)===!1)break}return i}}function zT(n,i,s){var d=i&N,C=Ni(n);function I(){var v=this&&this!==Tt&&this instanceof I?C:n;return v.apply(d?s:this,arguments)}return I}function Om(n){return function(i){i=Je(i);var s=vo(i)?kn(i):o,d=s?s[0]:i.charAt(0),C=s?Tr(s,1).join(""):i.slice(1);return d[n]()+C}}function Po(n){return function(i){return pc(Dg(Bg(i).replace(AM,"")),n,"")}}function Ni(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=Vo(n.prototype),d=n.apply(s,i);return dt(d)?d:s}}function PT(n,i,s){var d=Ni(n);function C(){for(var I=arguments.length,v=G(I),O=I,$=$o(C);O--;)v[O]=arguments[O];var ne=I<3&&v[0]!==$&&v[I-1]!==$?[]:_r(v,$);if(I-=ne.length,I<s)return $m(n,i,ss,C.placeholder,o,v,ne,o,o,s-I);var re=this&&this!==Tt&&this instanceof C?d:n;return Zt(re,this,v)}return C}function Rm(n){return function(i,s,d){var C=at(i);if(!Wt(i)){var I=_e(s,3);i=It(i),s=function(O){return I(C[O],O,C)}}var v=n(i,s,d);return v>-1?C[I?i[v]:v]:o}}function Vm(n){return or(function(i){var s=i.length,d=s,C=mn.prototype.thru;for(n&&i.reverse();d--;){var I=i[d];if(typeof I!="function")throw new hn(u);if(C&&!v&&fs(I)=="wrapper")var v=new mn([],!0)}for(d=v?d:s;++d<s;){I=i[d];var O=fs(I),$=O=="wrapper"?Gc(I):o;$&&Zc($[0])&&$[1]==(Y|B|D|te)&&!$[4].length&&$[9]==1?v=v[fs($[0])].apply(v,$[3]):v=I.length==1&&Zc(I)?v[O]():v.thru(I)}return function(){var ne=arguments,re=ne[0];if(v&&ne.length==1&&Be(re))return v.plant(re).value();for(var ce=0,be=s?i[ce].apply(this,ne):re;++ce<s;)be=i[ce].call(this,be);return be}})}function ss(n,i,s,d,C,I,v,O,$,ne){var re=i&Y,ce=i&N,be=i&k,Ee=i&(B|H),ke=i&K,Ve=be?o:Ni(n);function Me(){for(var $e=arguments.length,je=G($e),tn=$e;tn--;)je[tn]=arguments[tn];if(Ee)var $t=$o(Me),nn=ZM(je,$t);if(d&&(je=vm(je,d,C,Ee)),I&&(je=Bm(je,I,v,Ee)),$e-=nn,Ee&&$e<ne){var wt=_r(je,$t);return $m(n,i,ss,Me.placeholder,s,je,wt,O,$,ne-$e)}var Tn=ce?s:this,lr=be?Tn[n]:n;return $e=je.length,O?je=iN(je,O):ke&&$e>1&&je.reverse(),re&&$<$e&&(je.length=$),this&&this!==Tt&&this instanceof Me&&(lr=Ve||Ni(lr)),lr.apply(Tn,je)}return Me}function zm(n,i){return function(s,d){return pT(s,n,i(d),{})}}function ls(n,i){return function(s,d){var C;if(s===o&&d===o)return i;if(s!==o&&(C=s),d!==o){if(C===o)return d;typeof s=="string"||typeof d=="string"?(s=Jt(s),d=Jt(d)):(s=xm(s),d=xm(d)),C=n(s,d)}return C}}function Uc(n){return or(function(i){return i=ft(i,Xt(_e())),ze(function(s){var d=this;return n(i,function(C){return Zt(C,d,s)})})})}function cs(n,i){i=i===o?" ":Jt(i);var s=i.length;if(s<2)return s?Rc(i,n):i;var d=Rc(i,qa(n/Bo(i)));return vo(i)?Tr(kn(d),0,n).join(""):d.slice(0,n)}function $T(n,i,s,d){var C=i&N,I=Ni(n);function v(){for(var O=-1,$=arguments.length,ne=-1,re=d.length,ce=G(re+$),be=this&&this!==Tt&&this instanceof v?I:n;++ne<re;)ce[ne]=d[ne];for(;$--;)ce[ne++]=arguments[++O];return Zt(be,C?s:this,ce)}return v}function Pm(n){return function(i,s,d){return d&&typeof d!="number"&&Pt(i,s,d)&&(s=d=o),i=sr(i),s===o?(s=i,i=0):s=sr(s),d=d===o?i<s?1:-1:sr(d),IT(i,s,d,n)}}function us(n){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=wn(i),s=wn(s)),n(i,s)}}function $m(n,i,s,d,C,I,v,O,$,ne){var re=i&B,ce=re?v:o,be=re?o:v,Ee=re?I:o,ke=re?o:I;i|=re?D:W,i&=~(re?W:D),i&A||(i&=~(N|k));var Ve=[n,i,C,Ee,ce,ke,be,O,$,ne],Me=s.apply(o,Ve);return Zc(n)&&Xm(Me,Ve),Me.placeholder=d,Jm(Me,n,i)}function Hc(n){var i=xt[n];return function(s,d){if(s=wn(s),d=d==null?0:Ot(Oe(d),292),d&&Jh(s)){var C=(Je(s)+"e").split("e"),I=i(C[0]+"e"+(+C[1]+d));return C=(Je(I)+"e").split("e"),+(C[0]+"e"+(+C[1]-d))}return i(s)}}var FT=Oo&&1/Pa(new Oo([,-0]))[1]==V?function(n){return new Oo(n)}:du;function Fm(n){return function(i){var s=Rt(i);return s==ot?Ec(i):s==Ue?oA(i):QM(i,n(i))}}function rr(n,i,s,d,C,I,v,O){var $=i&k;if(!$&&typeof n!="function")throw new hn(u);var ne=d?d.length:0;if(ne||(i&=~(D|W),d=C=o),v=v===o?v:_t(Oe(v),0),O=O===o?O:Oe(O),ne-=C?C.length:0,i&W){var re=d,ce=C;d=C=o}var be=$?o:Gc(n),Ee=[n,i,s,d,C,re,ce,I,v,O];if(be&&nN(Ee,be),n=Ee[0],i=Ee[1],s=Ee[2],d=Ee[3],C=Ee[4],O=Ee[9]=Ee[9]===o?$?0:n.length:_t(Ee[9]-ne,0),!O&&i&(B|H)&&(i&=~(B|H)),!i||i==N)var ke=zT(n,i,s);else i==B||i==H?ke=PT(n,i,O):(i==D||i==(N|D))&&!C.length?ke=$T(n,i,s,d):ke=ss.apply(o,Ee);var Ve=be?Cm:Xm;return Jm(Ve(ke,Ee),n,i)}function jm(n,i,s,d){return n===o||An(n,Lo[s])&&!et.call(d,s)?i:n}function Um(n,i,s,d,C,I){return dt(n)&&dt(i)&&(I.set(i,n),rs(n,i,o,Um,I),I.delete(i)),n}function jT(n){return Di(n)?o:n}function Hm(n,i,s,d,C,I){var v=s&E,O=n.length,$=i.length;if(O!=$&&!(v&&$>O))return!1;var ne=I.get(n),re=I.get(i);if(ne&&re)return ne==i&&re==n;var ce=-1,be=!0,Ee=s&S?new to:o;for(I.set(n,i),I.set(i,n);++ce<O;){var ke=n[ce],Ve=i[ce];if(d)var Me=v?d(Ve,ke,ce,i,n,I):d(ke,Ve,ce,n,i,I);if(Me!==o){if(Me)continue;be=!1;break}if(Ee){if(!hc(i,function($e,je){if(!wi(Ee,je)&&(ke===$e||C(ke,$e,s,d,I)))return Ee.push(je)})){be=!1;break}}else if(!(ke===Ve||C(ke,Ve,s,d,I))){be=!1;break}}return I.delete(n),I.delete(i),be}function UT(n,i,s,d,C,I,v){switch(s){case p:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case x:return!(n.byteLength!=i.byteLength||!I(new Wa(n),new Wa(i)));case he:case Ce:case St:return An(+n,+i);case Le:return n.name==i.name&&n.message==i.message;case We:case it:return n==i+"";case ot:var O=Ec;case Ue:var $=d&E;if(O||(O=Pa),n.size!=i.size&&!$)return!1;var ne=v.get(n);if(ne)return ne==i;d|=S,v.set(n,i);var re=Hm(O(n),O(i),d,C,I,v);return v.delete(n),re;case Lt:if(_i)return _i.call(n)==_i.call(i)}return!1}function HT(n,i,s,d,C,I){var v=s&E,O=Wc(n),$=O.length,ne=Wc(i),re=ne.length;if($!=re&&!v)return!1;for(var ce=$;ce--;){var be=O[ce];if(!(v?be in i:et.call(i,be)))return!1}var Ee=I.get(n),ke=I.get(i);if(Ee&&ke)return Ee==i&&ke==n;var Ve=!0;I.set(n,i),I.set(i,n);for(var Me=v;++ce<$;){be=O[ce];var $e=n[be],je=i[be];if(d)var tn=v?d(je,$e,be,i,n,I):d($e,je,be,n,i,I);if(!(tn===o?$e===je||C($e,je,s,d,I):tn)){Ve=!1;break}Me||(Me=be=="constructor")}if(Ve&&!Me){var $t=n.constructor,nn=i.constructor;$t!=nn&&"constructor"in n&&"constructor"in i&&!(typeof $t=="function"&&$t instanceof $t&&typeof nn=="function"&&nn instanceof nn)&&(Ve=!1)}return I.delete(n),I.delete(i),Ve}function or(n){return Jc(Qm(n,o,ig),n+"")}function Wc(n){return um(n,It,qc)}function Yc(n){return um(n,Yt,Wm)}var Gc=Za?function(n){return Za.get(n)}:du;function fs(n){for(var i=n.name+"",s=Ro[i],d=et.call(Ro,i)?s.length:0;d--;){var C=s[d],I=C.func;if(I==null||I==n)return C.name}return i}function $o(n){var i=et.call(_,"placeholder")?_:n;return i.placeholder}function _e(){var n=_.iteratee||uu;return n=n===uu?pm:n,arguments.length?n(arguments[0],arguments[1]):n}function ds(n,i){var s=n.__data__;return XT(i)?s[typeof i=="string"?"string":"hash"]:s.map}function Kc(n){for(var i=It(n),s=i.length;s--;){var d=i[s],C=n[d];i[s]=[d,C,Km(C)]}return i}function oo(n,i){var s=tA(n,i);return dm(s)?s:o}function WT(n){var i=et.call(n,Jr),s=n[Jr];try{n[Jr]=o;var d=!0}catch{}var C=Ua.call(n);return d&&(i?n[Jr]=s:delete n[Jr]),C}var qc=Sc?function(n){return n==null?[]:(n=at(n),Sr(Sc(n),function(i){return Zh.call(n,i)}))}:pu,Wm=Sc?function(n){for(var i=[];n;)xr(i,qc(n)),n=Ya(n);return i}:pu,Rt=zt;(xc&&Rt(new xc(new ArrayBuffer(1)))!=p||Ci&&Rt(new Ci)!=ot||_c&&Rt(_c.resolve())!=fe||Oo&&Rt(new Oo)!=Ue||Si&&Rt(new Si)!=oe)&&(Rt=function(n){var i=zt(n),s=i==j?n.constructor:o,d=s?io(s):"";if(d)switch(d){case MA:return p;case AA:return ot;case TA:return fe;case NA:return Ue;case vA:return oe}return i});function YT(n,i,s){for(var d=-1,C=s.length;++d<C;){var I=s[d],v=I.size;switch(I.type){case"drop":n+=v;break;case"dropRight":i-=v;break;case"take":i=Ot(i,n+v);break;case"takeRight":n=_t(n,i-v);break}}return{start:n,end:i}}function GT(n){var i=n.match(oc);return i?i[1].split(Q):[]}function Ym(n,i,s){i=Ar(i,n);for(var d=-1,C=i.length,I=!1;++d<C;){var v=Fn(i[d]);if(!(I=n!=null&&s(n,v)))break;n=n[v]}return I||++d!=C?I:(C=n==null?0:n.length,!!C&&ws(C)&&ir(v,C)&&(Be(n)||ao(n)))}function KT(n){var i=n.length,s=new n.constructor(i);return i&&typeof n[0]=="string"&&et.call(n,"index")&&(s.index=n.index,s.input=n.input),s}function Gm(n){return typeof n.constructor=="function"&&!vi(n)?Vo(Ya(n)):{}}function qT(n,i,s){var d=n.constructor;switch(i){case x:return jc(n);case he:case Ce:return new d(+n);case p:return BT(n,s);case h:case T:case z:case U:case ee:case ve:case nt:case Xe:case rt:return Tm(n,s);case ot:return new d;case St:case it:return new d(n);case We:return DT(n);case Ue:return new d;case Lt:return LT(n)}}function QT(n,i){var s=i.length;if(!s)return n;var d=s-1;return i[d]=(s>1?"& ":"")+i[d],i=i.join(s>2?", ":" "),n.replace(rc,`{
27
+ */ma.exports,function(e,r){(function(){var o,a="4.17.21",l=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",g=500,y="__lodash_placeholder__",w=1,b=2,M=4,E=1,S=2,N=1,k=2,A=4,B=8,H=16,D=32,W=64,Y=128,te=256,K=512,q=30,X="...",se=800,ye=16,le=1,L=2,R=3,V=1/0,F=9007199254740991,ie=17976931348623157e292,ue=NaN,de=4294967295,ge=de-1,Ie=de>>>1,Se=[["ary",Y],["bind",N],["bindKey",k],["curry",B],["curryRight",H],["flip",K],["partial",D],["partialRight",W],["rearg",te]],Te="[object Arguments]",pe="[object Array]",ae="[object AsyncFunction]",he="[object Boolean]",Ce="[object Date]",xe="[object DOMException]",Le="[object Error]",He="[object Function]",Pe="[object GeneratorFunction]",ot="[object Map]",St="[object Number]",yt="[object Null]",j="[object Object]",fe="[object Promise]",Ge="[object Proxy]",We="[object RegExp]",Ue="[object Set]",it="[object String]",Lt="[object Symbol]",Qt="[object Undefined]",oe="[object WeakMap]",Ae="[object WeakSet]",x="[object ArrayBuffer]",p="[object DataView]",h="[object Float32Array]",T="[object Float64Array]",z="[object Int8Array]",U="[object Int16Array]",ee="[object Int32Array]",ve="[object Uint8Array]",nt="[object Uint8ClampedArray]",Xe="[object Uint16Array]",rt="[object Uint32Array]",qe=/\b__p \+= '';/g,Ql=/\b(__p \+=) '' \+/g,Zl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qr=/&(?:amp|lt|gt|quot|#39);/g,Aa=/[&<>"']/g,Xl=RegExp(Qr.source),Ta=RegExp(Aa.source),Jl=/<%-([\s\S]+?)%>/g,Na=/<%([\s\S]+?)%>/g,va=/<%=([\s\S]+?)%>/g,Zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ec=/^\w*$/,tc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yi=/[\\^$.*+?()[\]{}|]/g,Ba=RegExp(yi.source),bi=/^\s+/,nc=/\s/,rc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oc=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,me=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ke=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,zn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xn=/\w*$/,Ao=/^[-+]0x[0-9a-f]+$/i,Jn=/^0b[01]+$/i,fn=/^\[object .+?Constructor\]$/,Da=/^0o[0-7]+$/i,uM=/^(?:0|[1-9]\d*)$/,fM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,La=/($^)/,dM=/['\n\r\u2028\u2029\\]/g,Oa="\\ud800-\\udfff",pM="\\u0300-\\u036f",hM="\\ufe20-\\ufe2f",mM="\\u20d0-\\u20ff",dh=pM+hM+mM,ph="\\u2700-\\u27bf",hh="a-z\\xdf-\\xf6\\xf8-\\xff",gM="\\xac\\xb1\\xd7\\xf7",yM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bM="\\u2000-\\u206f",wM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mh="A-Z\\xc0-\\xd6\\xd8-\\xde",gh="\\ufe0e\\ufe0f",yh=gM+yM+bM+wM,ic="['’]",EM="["+Oa+"]",bh="["+yh+"]",Ra="["+dh+"]",wh="\\d+",CM="["+ph+"]",Eh="["+hh+"]",Ch="[^"+Oa+yh+wh+ph+hh+mh+"]",ac="\\ud83c[\\udffb-\\udfff]",SM="(?:"+Ra+"|"+ac+")",Sh="[^"+Oa+"]",sc="(?:\\ud83c[\\udde6-\\uddff]){2}",lc="[\\ud800-\\udbff][\\udc00-\\udfff]",To="["+mh+"]",xh="\\u200d",_h="(?:"+Eh+"|"+Ch+")",xM="(?:"+To+"|"+Ch+")",Ih="(?:"+ic+"(?:d|ll|m|re|s|t|ve))?",kh="(?:"+ic+"(?:D|LL|M|RE|S|T|VE))?",Mh=SM+"?",Ah="["+gh+"]?",_M="(?:"+xh+"(?:"+[Sh,sc,lc].join("|")+")"+Ah+Mh+")*",IM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Th=Ah+Mh+_M,MM="(?:"+[CM,sc,lc].join("|")+")"+Th,AM="(?:"+[Sh+Ra+"?",Ra,sc,lc,EM].join("|")+")",TM=RegExp(ic,"g"),NM=RegExp(Ra,"g"),cc=RegExp(ac+"(?="+ac+")|"+AM+Th,"g"),vM=RegExp([To+"?"+Eh+"+"+Ih+"(?="+[bh,To,"$"].join("|")+")",xM+"+"+kh+"(?="+[bh,To+_h,"$"].join("|")+")",To+"?"+_h+"+"+Ih,To+"+"+kh,kM,IM,wh,MM].join("|"),"g"),BM=RegExp("["+xh+Oa+dh+gh+"]"),DM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,LM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],OM=-1,ut={};ut[h]=ut[T]=ut[z]=ut[U]=ut[ee]=ut[ve]=ut[nt]=ut[Xe]=ut[rt]=!0,ut[Te]=ut[pe]=ut[x]=ut[he]=ut[p]=ut[Ce]=ut[Le]=ut[He]=ut[ot]=ut[St]=ut[j]=ut[We]=ut[Ue]=ut[it]=ut[oe]=!1;var st={};st[Te]=st[pe]=st[x]=st[p]=st[he]=st[Ce]=st[h]=st[T]=st[z]=st[U]=st[ee]=st[ot]=st[St]=st[j]=st[We]=st[Ue]=st[it]=st[Lt]=st[ve]=st[nt]=st[Xe]=st[rt]=!0,st[Le]=st[He]=st[oe]=!1;var RM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},VM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zM={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},PM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$M=parseFloat,FM=parseInt,Nh=typeof On=="object"&&On&&On.Object===Object&&On,jM=typeof self=="object"&&self&&self.Object===Object&&self,Tt=Nh||jM||Function("return this")(),uc=r&&!r.nodeType&&r,Xr=uc&&!0&&e&&!e.nodeType&&e,vh=Xr&&Xr.exports===uc,fc=vh&&Nh.process,dn=function(){try{var P=Xr&&Xr.require&&Xr.require("util").types;return P||fc&&fc.binding&&fc.binding("util")}catch{}}(),Bh=dn&&dn.isArrayBuffer,Dh=dn&&dn.isDate,Lh=dn&&dn.isMap,Oh=dn&&dn.isRegExp,Rh=dn&&dn.isSet,Vh=dn&&dn.isTypedArray;function Zt(P,J,G){switch(G.length){case 0:return P.call(J);case 1:return P.call(J,G[0]);case 2:return P.call(J,G[0],G[1]);case 3:return P.call(J,G[0],G[1],G[2])}return P.apply(J,G)}function UM(P,J,G,we){for(var Ne=-1,Qe=P==null?0:P.length;++Ne<Qe;){var xt=P[Ne];J(we,xt,G(xt),P)}return we}function pn(P,J){for(var G=-1,we=P==null?0:P.length;++G<we&&J(P[G],G,P)!==!1;);return P}function HM(P,J){for(var G=P==null?0:P.length;G--&&J(P[G],G,P)!==!1;);return P}function zh(P,J){for(var G=-1,we=P==null?0:P.length;++G<we;)if(!J(P[G],G,P))return!1;return!0}function Sr(P,J){for(var G=-1,we=P==null?0:P.length,Ne=0,Qe=[];++G<we;){var xt=P[G];J(xt,G,P)&&(Qe[Ne++]=xt)}return Qe}function Va(P,J){var G=P==null?0:P.length;return!!G&&No(P,J,0)>-1}function dc(P,J,G){for(var we=-1,Ne=P==null?0:P.length;++we<Ne;)if(G(J,P[we]))return!0;return!1}function ft(P,J){for(var G=-1,we=P==null?0:P.length,Ne=Array(we);++G<we;)Ne[G]=J(P[G],G,P);return Ne}function xr(P,J){for(var G=-1,we=J.length,Ne=P.length;++G<we;)P[Ne+G]=J[G];return P}function pc(P,J,G,we){var Ne=-1,Qe=P==null?0:P.length;for(we&&Qe&&(G=P[++Ne]);++Ne<Qe;)G=J(G,P[Ne],Ne,P);return G}function WM(P,J,G,we){var Ne=P==null?0:P.length;for(we&&Ne&&(G=P[--Ne]);Ne--;)G=J(G,P[Ne],Ne,P);return G}function hc(P,J){for(var G=-1,we=P==null?0:P.length;++G<we;)if(J(P[G],G,P))return!0;return!1}var YM=mc("length");function GM(P){return P.split("")}function KM(P){return P.match(me)||[]}function Ph(P,J,G){var we;return G(P,function(Ne,Qe,xt){if(J(Ne,Qe,xt))return we=Qe,!1}),we}function za(P,J,G,we){for(var Ne=P.length,Qe=G+(we?1:-1);we?Qe--:++Qe<Ne;)if(J(P[Qe],Qe,P))return Qe;return-1}function No(P,J,G){return J===J?aA(P,J,G):za(P,$h,G)}function qM(P,J,G,we){for(var Ne=G-1,Qe=P.length;++Ne<Qe;)if(we(P[Ne],J))return Ne;return-1}function $h(P){return P!==P}function Fh(P,J){var G=P==null?0:P.length;return G?yc(P,J)/G:ue}function mc(P){return function(J){return J==null?o:J[P]}}function gc(P){return function(J){return P==null?o:P[J]}}function jh(P,J,G,we,Ne){return Ne(P,function(Qe,xt,at){G=we?(we=!1,Qe):J(G,Qe,xt,at)}),G}function QM(P,J){var G=P.length;for(P.sort(J);G--;)P[G]=P[G].value;return P}function yc(P,J){for(var G,we=-1,Ne=P.length;++we<Ne;){var Qe=J(P[we]);Qe!==o&&(G=G===o?Qe:G+Qe)}return G}function bc(P,J){for(var G=-1,we=Array(P);++G<P;)we[G]=J(G);return we}function ZM(P,J){return ft(J,function(G){return[G,P[G]]})}function Uh(P){return P&&P.slice(0,Gh(P)+1).replace(bi,"")}function Xt(P){return function(J){return P(J)}}function wc(P,J){return ft(J,function(G){return P[G]})}function wi(P,J){return P.has(J)}function Hh(P,J){for(var G=-1,we=P.length;++G<we&&No(J,P[G],0)>-1;);return G}function Wh(P,J){for(var G=P.length;G--&&No(J,P[G],0)>-1;);return G}function XM(P,J){for(var G=P.length,we=0;G--;)P[G]===J&&++we;return we}var JM=gc(RM),eA=gc(VM);function tA(P){return"\\"+PM[P]}function nA(P,J){return P==null?o:P[J]}function vo(P){return BM.test(P)}function rA(P){return DM.test(P)}function oA(P){for(var J,G=[];!(J=P.next()).done;)G.push(J.value);return G}function Ec(P){var J=-1,G=Array(P.size);return P.forEach(function(we,Ne){G[++J]=[Ne,we]}),G}function Yh(P,J){return function(G){return P(J(G))}}function _r(P,J){for(var G=-1,we=P.length,Ne=0,Qe=[];++G<we;){var xt=P[G];(xt===J||xt===y)&&(P[G]=y,Qe[Ne++]=G)}return Qe}function Pa(P){var J=-1,G=Array(P.size);return P.forEach(function(we){G[++J]=we}),G}function iA(P){var J=-1,G=Array(P.size);return P.forEach(function(we){G[++J]=[we,we]}),G}function aA(P,J,G){for(var we=G-1,Ne=P.length;++we<Ne;)if(P[we]===J)return we;return-1}function sA(P,J,G){for(var we=G+1;we--;)if(P[we]===J)return we;return we}function Bo(P){return vo(P)?cA(P):YM(P)}function kn(P){return vo(P)?uA(P):GM(P)}function Gh(P){for(var J=P.length;J--&&nc.test(P.charAt(J)););return J}var lA=gc(zM);function cA(P){for(var J=cc.lastIndex=0;cc.test(P);)++J;return J}function uA(P){return P.match(cc)||[]}function fA(P){return P.match(vM)||[]}var dA=function P(J){J=J==null?Tt:Do.defaults(Tt.Object(),J,Do.pick(Tt,LM));var G=J.Array,we=J.Date,Ne=J.Error,Qe=J.Function,xt=J.Math,at=J.Object,Cc=J.RegExp,pA=J.String,hn=J.TypeError,$a=G.prototype,hA=Qe.prototype,Lo=at.prototype,Fa=J["__core-js_shared__"],ja=hA.toString,et=Lo.hasOwnProperty,mA=0,Kh=function(){var n=/[^.]+$/.exec(Fa&&Fa.keys&&Fa.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Ua=Lo.toString,gA=ja.call(at),yA=Tt._,bA=Cc("^"+ja.call(et).replace(yi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ha=vh?J.Buffer:o,Ir=J.Symbol,Wa=J.Uint8Array,qh=Ha?Ha.allocUnsafe:o,Ya=Yh(at.getPrototypeOf,at),Qh=at.create,Zh=Lo.propertyIsEnumerable,Ga=$a.splice,Xh=Ir?Ir.isConcatSpreadable:o,Ei=Ir?Ir.iterator:o,Jr=Ir?Ir.toStringTag:o,Ka=function(){try{var n=oo(at,"defineProperty");return n({},"",{}),n}catch{}}(),wA=J.clearTimeout!==Tt.clearTimeout&&J.clearTimeout,EA=we&&we.now!==Tt.Date.now&&we.now,CA=J.setTimeout!==Tt.setTimeout&&J.setTimeout,qa=xt.ceil,Qa=xt.floor,Sc=at.getOwnPropertySymbols,SA=Ha?Ha.isBuffer:o,Jh=J.isFinite,xA=$a.join,_A=Yh(at.keys,at),_t=xt.max,Ot=xt.min,IA=we.now,kA=J.parseInt,em=xt.random,MA=$a.reverse,xc=oo(J,"DataView"),Ci=oo(J,"Map"),_c=oo(J,"Promise"),Oo=oo(J,"Set"),Si=oo(J,"WeakMap"),xi=oo(at,"create"),Za=Si&&new Si,Ro={},AA=io(xc),TA=io(Ci),NA=io(_c),vA=io(Oo),BA=io(Si),Xa=Ir?Ir.prototype:o,_i=Xa?Xa.valueOf:o,tm=Xa?Xa.toString:o;function _(n){if(mt(n)&&!Be(n)&&!(n instanceof Fe)){if(n instanceof mn)return n;if(et.call(n,"__wrapped__"))return ng(n)}return new mn(n)}var Vo=function(){function n(){}return function(i){if(!dt(i))return{};if(Qh)return Qh(i);n.prototype=i;var s=new n;return n.prototype=o,s}}();function Ja(){}function mn(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=o}_.templateSettings={escape:Jl,evaluate:Na,interpolate:va,variable:"",imports:{_}},_.prototype=Ja.prototype,_.prototype.constructor=_,mn.prototype=Vo(Ja.prototype),mn.prototype.constructor=mn;function Fe(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=de,this.__views__=[]}function DA(){var n=new Fe(this.__wrapped__);return n.__actions__=Ht(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ht(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ht(this.__views__),n}function LA(){if(this.__filtered__){var n=new Fe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function OA(){var n=this.__wrapped__.value(),i=this.__dir__,s=Be(n),d=i<0,C=s?n.length:0,I=GT(0,C,this.__views__),v=I.start,O=I.end,$=O-v,ne=d?O:v-1,re=this.__iteratees__,ce=re.length,be=0,Ee=Ot($,this.__takeCount__);if(!s||!d&&C==$&&Ee==$)return Im(n,this.__actions__);var ke=[];e:for(;$--&&be<Ee;){ne+=i;for(var Ve=-1,Me=n[ne];++Ve<ce;){var $e=re[Ve],je=$e.iteratee,tn=$e.type,$t=je(Me);if(tn==L)Me=$t;else if(!$t){if(tn==le)continue e;break e}}ke[be++]=Me}return ke}Fe.prototype=Vo(Ja.prototype),Fe.prototype.constructor=Fe;function eo(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function RA(){this.__data__=xi?xi(null):{},this.size=0}function VA(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function zA(n){var i=this.__data__;if(xi){var s=i[n];return s===m?o:s}return et.call(i,n)?i[n]:o}function PA(n){var i=this.__data__;return xi?i[n]!==o:et.call(i,n)}function $A(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=xi&&i===o?m:i,this}eo.prototype.clear=RA,eo.prototype.delete=VA,eo.prototype.get=zA,eo.prototype.has=PA,eo.prototype.set=$A;function er(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function FA(){this.__data__=[],this.size=0}function jA(n){var i=this.__data__,s=es(i,n);if(s<0)return!1;var d=i.length-1;return s==d?i.pop():Ga.call(i,s,1),--this.size,!0}function UA(n){var i=this.__data__,s=es(i,n);return s<0?o:i[s][1]}function HA(n){return es(this.__data__,n)>-1}function WA(n,i){var s=this.__data__,d=es(s,n);return d<0?(++this.size,s.push([n,i])):s[d][1]=i,this}er.prototype.clear=FA,er.prototype.delete=jA,er.prototype.get=UA,er.prototype.has=HA,er.prototype.set=WA;function tr(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function YA(){this.size=0,this.__data__={hash:new eo,map:new(Ci||er),string:new eo}}function GA(n){var i=ds(this,n).delete(n);return this.size-=i?1:0,i}function KA(n){return ds(this,n).get(n)}function qA(n){return ds(this,n).has(n)}function QA(n,i){var s=ds(this,n),d=s.size;return s.set(n,i),this.size+=s.size==d?0:1,this}tr.prototype.clear=YA,tr.prototype.delete=GA,tr.prototype.get=KA,tr.prototype.has=qA,tr.prototype.set=QA;function to(n){var i=-1,s=n==null?0:n.length;for(this.__data__=new tr;++i<s;)this.add(n[i])}function ZA(n){return this.__data__.set(n,m),this}function XA(n){return this.__data__.has(n)}to.prototype.add=to.prototype.push=ZA,to.prototype.has=XA;function Mn(n){var i=this.__data__=new er(n);this.size=i.size}function JA(){this.__data__=new er,this.size=0}function eT(n){var i=this.__data__,s=i.delete(n);return this.size=i.size,s}function tT(n){return this.__data__.get(n)}function nT(n){return this.__data__.has(n)}function rT(n,i){var s=this.__data__;if(s instanceof er){var d=s.__data__;if(!Ci||d.length<l-1)return d.push([n,i]),this.size=++s.size,this;s=this.__data__=new tr(d)}return s.set(n,i),this.size=s.size,this}Mn.prototype.clear=JA,Mn.prototype.delete=eT,Mn.prototype.get=tT,Mn.prototype.has=nT,Mn.prototype.set=rT;function nm(n,i){var s=Be(n),d=!s&&ao(n),C=!s&&!d&&Nr(n),I=!s&&!d&&!C&&Fo(n),v=s||d||C||I,O=v?bc(n.length,pA):[],$=O.length;for(var ne in n)(i||et.call(n,ne))&&!(v&&(ne=="length"||C&&(ne=="offset"||ne=="parent")||I&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||ir(ne,$)))&&O.push(ne);return O}function rm(n){var i=n.length;return i?n[Oc(0,i-1)]:o}function oT(n,i){return ps(Ht(n),no(i,0,n.length))}function iT(n){return ps(Ht(n))}function Ic(n,i,s){(s!==o&&!An(n[i],s)||s===o&&!(i in n))&&nr(n,i,s)}function Ii(n,i,s){var d=n[i];(!(et.call(n,i)&&An(d,s))||s===o&&!(i in n))&&nr(n,i,s)}function es(n,i){for(var s=n.length;s--;)if(An(n[s][0],i))return s;return-1}function aT(n,i,s,d){return kr(n,function(C,I,v){i(d,C,s(C),v)}),d}function om(n,i){return n&&$n(i,It(i),n)}function sT(n,i){return n&&$n(i,Yt(i),n)}function nr(n,i,s){i=="__proto__"&&Ka?Ka(n,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[i]=s}function kc(n,i){for(var s=-1,d=i.length,C=G(d),I=n==null;++s<d;)C[s]=I?o:au(n,i[s]);return C}function no(n,i,s){return n===n&&(s!==o&&(n=n<=s?n:s),i!==o&&(n=n>=i?n:i)),n}function gn(n,i,s,d,C,I){var v,O=i&w,$=i&b,ne=i&M;if(s&&(v=C?s(n,d,C,I):s(n)),v!==o)return v;if(!dt(n))return n;var re=Be(n);if(re){if(v=qT(n),!O)return Ht(n,v)}else{var ce=Rt(n),be=ce==He||ce==Pe;if(Nr(n))return Am(n,O);if(ce==j||ce==Te||be&&!C){if(v=$||be?{}:Gm(n),!O)return $?zT(n,sT(v,n)):VT(n,om(v,n))}else{if(!st[ce])return C?n:{};v=QT(n,ce,O)}}I||(I=new Mn);var Ee=I.get(n);if(Ee)return Ee;I.set(n,v),Sg(n)?n.forEach(function(Me){v.add(gn(Me,i,s,Me,n,I))}):Eg(n)&&n.forEach(function(Me,$e){v.set($e,gn(Me,i,s,$e,n,I))});var ke=ne?$?Yc:Wc:$?Yt:It,Ve=re?o:ke(n);return pn(Ve||n,function(Me,$e){Ve&&($e=Me,Me=n[$e]),Ii(v,$e,gn(Me,i,s,$e,n,I))}),v}function lT(n){var i=It(n);return function(s){return im(s,n,i)}}function im(n,i,s){var d=s.length;if(n==null)return!d;for(n=at(n);d--;){var C=s[d],I=i[C],v=n[C];if(v===o&&!(C in n)||!I(v))return!1}return!0}function am(n,i,s){if(typeof n!="function")throw new hn(u);return Bi(function(){n.apply(o,s)},i)}function ki(n,i,s,d){var C=-1,I=Va,v=!0,O=n.length,$=[],ne=i.length;if(!O)return $;s&&(i=ft(i,Xt(s))),d?(I=dc,v=!1):i.length>=l&&(I=wi,v=!1,i=new to(i));e:for(;++C<O;){var re=n[C],ce=s==null?re:s(re);if(re=d||re!==0?re:0,v&&ce===ce){for(var be=ne;be--;)if(i[be]===ce)continue e;$.push(re)}else I(i,ce,d)||$.push(re)}return $}var kr=Dm(Pn),sm=Dm(Ac,!0);function cT(n,i){var s=!0;return kr(n,function(d,C,I){return s=!!i(d,C,I),s}),s}function ts(n,i,s){for(var d=-1,C=n.length;++d<C;){var I=n[d],v=i(I);if(v!=null&&(O===o?v===v&&!en(v):s(v,O)))var O=v,$=I}return $}function uT(n,i,s,d){var C=n.length;for(s=Oe(s),s<0&&(s=-s>C?0:C+s),d=d===o||d>C?C:Oe(d),d<0&&(d+=C),d=s>d?0:_g(d);s<d;)n[s++]=i;return n}function lm(n,i){var s=[];return kr(n,function(d,C,I){i(d,C,I)&&s.push(d)}),s}function Nt(n,i,s,d,C){var I=-1,v=n.length;for(s||(s=XT),C||(C=[]);++I<v;){var O=n[I];i>0&&s(O)?i>1?Nt(O,i-1,s,d,C):xr(C,O):d||(C[C.length]=O)}return C}var Mc=Lm(),cm=Lm(!0);function Pn(n,i){return n&&Mc(n,i,It)}function Ac(n,i){return n&&cm(n,i,It)}function ns(n,i){return Sr(i,function(s){return ar(n[s])})}function ro(n,i){i=Ar(i,n);for(var s=0,d=i.length;n!=null&&s<d;)n=n[Fn(i[s++])];return s&&s==d?n:o}function um(n,i,s){var d=i(n);return Be(n)?d:xr(d,s(n))}function zt(n){return n==null?n===o?Qt:yt:Jr&&Jr in at(n)?YT(n):iN(n)}function Tc(n,i){return n>i}function fT(n,i){return n!=null&&et.call(n,i)}function dT(n,i){return n!=null&&i in at(n)}function pT(n,i,s){return n>=Ot(i,s)&&n<_t(i,s)}function Nc(n,i,s){for(var d=s?dc:Va,C=n[0].length,I=n.length,v=I,O=G(I),$=1/0,ne=[];v--;){var re=n[v];v&&i&&(re=ft(re,Xt(i))),$=Ot(re.length,$),O[v]=!s&&(i||C>=120&&re.length>=120)?new to(v&&re):o}re=n[0];var ce=-1,be=O[0];e:for(;++ce<C&&ne.length<$;){var Ee=re[ce],ke=i?i(Ee):Ee;if(Ee=s||Ee!==0?Ee:0,!(be?wi(be,ke):d(ne,ke,s))){for(v=I;--v;){var Ve=O[v];if(!(Ve?wi(Ve,ke):d(n[v],ke,s)))continue e}be&&be.push(ke),ne.push(Ee)}}return ne}function hT(n,i,s,d){return Pn(n,function(C,I,v){i(d,s(C),I,v)}),d}function Mi(n,i,s){i=Ar(i,n),n=Zm(n,i);var d=n==null?n:n[Fn(bn(i))];return d==null?o:Zt(d,n,s)}function fm(n){return mt(n)&&zt(n)==Te}function mT(n){return mt(n)&&zt(n)==x}function gT(n){return mt(n)&&zt(n)==Ce}function Ai(n,i,s,d,C){return n===i?!0:n==null||i==null||!mt(n)&&!mt(i)?n!==n&&i!==i:yT(n,i,s,d,Ai,C)}function yT(n,i,s,d,C,I){var v=Be(n),O=Be(i),$=v?pe:Rt(n),ne=O?pe:Rt(i);$=$==Te?j:$,ne=ne==Te?j:ne;var re=$==j,ce=ne==j,be=$==ne;if(be&&Nr(n)){if(!Nr(i))return!1;v=!0,re=!1}if(be&&!re)return I||(I=new Mn),v||Fo(n)?Hm(n,i,s,d,C,I):HT(n,i,$,s,d,C,I);if(!(s&E)){var Ee=re&&et.call(n,"__wrapped__"),ke=ce&&et.call(i,"__wrapped__");if(Ee||ke){var Ve=Ee?n.value():n,Me=ke?i.value():i;return I||(I=new Mn),C(Ve,Me,s,d,I)}}return be?(I||(I=new Mn),WT(n,i,s,d,C,I)):!1}function bT(n){return mt(n)&&Rt(n)==ot}function vc(n,i,s,d){var C=s.length,I=C,v=!d;if(n==null)return!I;for(n=at(n);C--;){var O=s[C];if(v&&O[2]?O[1]!==n[O[0]]:!(O[0]in n))return!1}for(;++C<I;){O=s[C];var $=O[0],ne=n[$],re=O[1];if(v&&O[2]){if(ne===o&&!($ in n))return!1}else{var ce=new Mn;if(d)var be=d(ne,re,$,n,i,ce);if(!(be===o?Ai(re,ne,E|S,d,ce):be))return!1}}return!0}function dm(n){if(!dt(n)||eN(n))return!1;var i=ar(n)?bA:fn;return i.test(io(n))}function wT(n){return mt(n)&&zt(n)==We}function ET(n){return mt(n)&&Rt(n)==Ue}function CT(n){return mt(n)&&ws(n.length)&&!!ut[zt(n)]}function pm(n){return typeof n=="function"?n:n==null?Gt:typeof n=="object"?Be(n)?gm(n[0],n[1]):mm(n):Og(n)}function Bc(n){if(!vi(n))return _A(n);var i=[];for(var s in at(n))et.call(n,s)&&s!="constructor"&&i.push(s);return i}function ST(n){if(!dt(n))return oN(n);var i=vi(n),s=[];for(var d in n)d=="constructor"&&(i||!et.call(n,d))||s.push(d);return s}function Dc(n,i){return n<i}function hm(n,i){var s=-1,d=Wt(n)?G(n.length):[];return kr(n,function(C,I,v){d[++s]=i(C,I,v)}),d}function mm(n){var i=Kc(n);return i.length==1&&i[0][2]?qm(i[0][0],i[0][1]):function(s){return s===n||vc(s,n,i)}}function gm(n,i){return Qc(n)&&Km(i)?qm(Fn(n),i):function(s){var d=au(s,n);return d===o&&d===i?su(s,n):Ai(i,d,E|S)}}function rs(n,i,s,d,C){n!==i&&Mc(i,function(I,v){if(C||(C=new Mn),dt(I))xT(n,i,v,s,rs,d,C);else{var O=d?d(Xc(n,v),I,v+"",n,i,C):o;O===o&&(O=I),Ic(n,v,O)}},Yt)}function xT(n,i,s,d,C,I,v){var O=Xc(n,s),$=Xc(i,s),ne=v.get($);if(ne){Ic(n,s,ne);return}var re=I?I(O,$,s+"",n,i,v):o,ce=re===o;if(ce){var be=Be($),Ee=!be&&Nr($),ke=!be&&!Ee&&Fo($);re=$,be||Ee||ke?Be(O)?re=O:bt(O)?re=Ht(O):Ee?(ce=!1,re=Am($,!0)):ke?(ce=!1,re=Tm($,!0)):re=[]:Di($)||ao($)?(re=O,ao(O)?re=Ig(O):(!dt(O)||ar(O))&&(re=Gm($))):ce=!1}ce&&(v.set($,re),C(re,$,d,I,v),v.delete($)),Ic(n,s,re)}function ym(n,i){var s=n.length;if(s)return i+=i<0?s:0,ir(i,s)?n[i]:o}function bm(n,i,s){i.length?i=ft(i,function(I){return Be(I)?function(v){return ro(v,I.length===1?I[0]:I)}:I}):i=[Gt];var d=-1;i=ft(i,Xt(_e()));var C=hm(n,function(I,v,O){var $=ft(i,function(ne){return ne(I)});return{criteria:$,index:++d,value:I}});return QM(C,function(I,v){return RT(I,v,s)})}function _T(n,i){return wm(n,i,function(s,d){return su(n,d)})}function wm(n,i,s){for(var d=-1,C=i.length,I={};++d<C;){var v=i[d],O=ro(n,v);s(O,v)&&Ti(I,Ar(v,n),O)}return I}function IT(n){return function(i){return ro(i,n)}}function Lc(n,i,s,d){var C=d?qM:No,I=-1,v=i.length,O=n;for(n===i&&(i=Ht(i)),s&&(O=ft(n,Xt(s)));++I<v;)for(var $=0,ne=i[I],re=s?s(ne):ne;($=C(O,re,$,d))>-1;)O!==n&&Ga.call(O,$,1),Ga.call(n,$,1);return n}function Em(n,i){for(var s=n?i.length:0,d=s-1;s--;){var C=i[s];if(s==d||C!==I){var I=C;ir(C)?Ga.call(n,C,1):zc(n,C)}}return n}function Oc(n,i){return n+Qa(em()*(i-n+1))}function kT(n,i,s,d){for(var C=-1,I=_t(qa((i-n)/(s||1)),0),v=G(I);I--;)v[d?I:++C]=n,n+=s;return v}function Rc(n,i){var s="";if(!n||i<1||i>F)return s;do i%2&&(s+=n),i=Qa(i/2),i&&(n+=n);while(i);return s}function ze(n,i){return Jc(Qm(n,i,Gt),n+"")}function MT(n){return rm(jo(n))}function AT(n,i){var s=jo(n);return ps(s,no(i,0,s.length))}function Ti(n,i,s,d){if(!dt(n))return n;i=Ar(i,n);for(var C=-1,I=i.length,v=I-1,O=n;O!=null&&++C<I;){var $=Fn(i[C]),ne=s;if($==="__proto__"||$==="constructor"||$==="prototype")return n;if(C!=v){var re=O[$];ne=d?d(re,$,O):o,ne===o&&(ne=dt(re)?re:ir(i[C+1])?[]:{})}Ii(O,$,ne),O=O[$]}return n}var Cm=Za?function(n,i){return Za.set(n,i),n}:Gt,TT=Ka?function(n,i){return Ka(n,"toString",{configurable:!0,enumerable:!1,value:cu(i),writable:!0})}:Gt;function NT(n){return ps(jo(n))}function yn(n,i,s){var d=-1,C=n.length;i<0&&(i=-i>C?0:C+i),s=s>C?C:s,s<0&&(s+=C),C=i>s?0:s-i>>>0,i>>>=0;for(var I=G(C);++d<C;)I[d]=n[d+i];return I}function vT(n,i){var s;return kr(n,function(d,C,I){return s=i(d,C,I),!s}),!!s}function os(n,i,s){var d=0,C=n==null?d:n.length;if(typeof i=="number"&&i===i&&C<=Ie){for(;d<C;){var I=d+C>>>1,v=n[I];v!==null&&!en(v)&&(s?v<=i:v<i)?d=I+1:C=I}return C}return Vc(n,i,Gt,s)}function Vc(n,i,s,d){var C=0,I=n==null?0:n.length;if(I===0)return 0;i=s(i);for(var v=i!==i,O=i===null,$=en(i),ne=i===o;C<I;){var re=Qa((C+I)/2),ce=s(n[re]),be=ce!==o,Ee=ce===null,ke=ce===ce,Ve=en(ce);if(v)var Me=d||ke;else ne?Me=ke&&(d||be):O?Me=ke&&be&&(d||!Ee):$?Me=ke&&be&&!Ee&&(d||!Ve):Ee||Ve?Me=!1:Me=d?ce<=i:ce<i;Me?C=re+1:I=re}return Ot(I,ge)}function Sm(n,i){for(var s=-1,d=n.length,C=0,I=[];++s<d;){var v=n[s],O=i?i(v):v;if(!s||!An(O,$)){var $=O;I[C++]=v===0?0:v}}return I}function xm(n){return typeof n=="number"?n:en(n)?ue:+n}function Jt(n){if(typeof n=="string")return n;if(Be(n))return ft(n,Jt)+"";if(en(n))return tm?tm.call(n):"";var i=n+"";return i=="0"&&1/n==-V?"-0":i}function Mr(n,i,s){var d=-1,C=Va,I=n.length,v=!0,O=[],$=O;if(s)v=!1,C=dc;else if(I>=l){var ne=i?null:jT(n);if(ne)return Pa(ne);v=!1,C=wi,$=new to}else $=i?[]:O;e:for(;++d<I;){var re=n[d],ce=i?i(re):re;if(re=s||re!==0?re:0,v&&ce===ce){for(var be=$.length;be--;)if($[be]===ce)continue e;i&&$.push(ce),O.push(re)}else C($,ce,s)||($!==O&&$.push(ce),O.push(re))}return O}function zc(n,i){return i=Ar(i,n),n=Zm(n,i),n==null||delete n[Fn(bn(i))]}function _m(n,i,s,d){return Ti(n,i,s(ro(n,i)),d)}function is(n,i,s,d){for(var C=n.length,I=d?C:-1;(d?I--:++I<C)&&i(n[I],I,n););return s?yn(n,d?0:I,d?I+1:C):yn(n,d?I+1:0,d?C:I)}function Im(n,i){var s=n;return s instanceof Fe&&(s=s.value()),pc(i,function(d,C){return C.func.apply(C.thisArg,xr([d],C.args))},s)}function Pc(n,i,s){var d=n.length;if(d<2)return d?Mr(n[0]):[];for(var C=-1,I=G(d);++C<d;)for(var v=n[C],O=-1;++O<d;)O!=C&&(I[C]=ki(I[C]||v,n[O],i,s));return Mr(Nt(I,1),i,s)}function km(n,i,s){for(var d=-1,C=n.length,I=i.length,v={};++d<C;){var O=d<I?i[d]:o;s(v,n[d],O)}return v}function $c(n){return bt(n)?n:[]}function Fc(n){return typeof n=="function"?n:Gt}function Ar(n,i){return Be(n)?n:Qc(n,i)?[n]:tg(Je(n))}var BT=ze;function Tr(n,i,s){var d=n.length;return s=s===o?d:s,!i&&s>=d?n:yn(n,i,s)}var Mm=wA||function(n){return Tt.clearTimeout(n)};function Am(n,i){if(i)return n.slice();var s=n.length,d=qh?qh(s):new n.constructor(s);return n.copy(d),d}function jc(n){var i=new n.constructor(n.byteLength);return new Wa(i).set(new Wa(n)),i}function DT(n,i){var s=i?jc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}function LT(n){var i=new n.constructor(n.source,Xn.exec(n));return i.lastIndex=n.lastIndex,i}function OT(n){return _i?at(_i.call(n)):{}}function Tm(n,i){var s=i?jc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}function Nm(n,i){if(n!==i){var s=n!==o,d=n===null,C=n===n,I=en(n),v=i!==o,O=i===null,$=i===i,ne=en(i);if(!O&&!ne&&!I&&n>i||I&&v&&$&&!O&&!ne||d&&v&&$||!s&&$||!C)return 1;if(!d&&!I&&!ne&&n<i||ne&&s&&C&&!d&&!I||O&&s&&C||!v&&C||!$)return-1}return 0}function RT(n,i,s){for(var d=-1,C=n.criteria,I=i.criteria,v=C.length,O=s.length;++d<v;){var $=Nm(C[d],I[d]);if($){if(d>=O)return $;var ne=s[d];return $*(ne=="desc"?-1:1)}}return n.index-i.index}function vm(n,i,s,d){for(var C=-1,I=n.length,v=s.length,O=-1,$=i.length,ne=_t(I-v,0),re=G($+ne),ce=!d;++O<$;)re[O]=i[O];for(;++C<v;)(ce||C<I)&&(re[s[C]]=n[C]);for(;ne--;)re[O++]=n[C++];return re}function Bm(n,i,s,d){for(var C=-1,I=n.length,v=-1,O=s.length,$=-1,ne=i.length,re=_t(I-O,0),ce=G(re+ne),be=!d;++C<re;)ce[C]=n[C];for(var Ee=C;++$<ne;)ce[Ee+$]=i[$];for(;++v<O;)(be||C<I)&&(ce[Ee+s[v]]=n[C++]);return ce}function Ht(n,i){var s=-1,d=n.length;for(i||(i=G(d));++s<d;)i[s]=n[s];return i}function $n(n,i,s,d){var C=!s;s||(s={});for(var I=-1,v=i.length;++I<v;){var O=i[I],$=d?d(s[O],n[O],O,s,n):o;$===o&&($=n[O]),C?nr(s,O,$):Ii(s,O,$)}return s}function VT(n,i){return $n(n,qc(n),i)}function zT(n,i){return $n(n,Wm(n),i)}function as(n,i){return function(s,d){var C=Be(s)?UM:aT,I=i?i():{};return C(s,n,_e(d,2),I)}}function zo(n){return ze(function(i,s){var d=-1,C=s.length,I=C>1?s[C-1]:o,v=C>2?s[2]:o;for(I=n.length>3&&typeof I=="function"?(C--,I):o,v&&Pt(s[0],s[1],v)&&(I=C<3?o:I,C=1),i=at(i);++d<C;){var O=s[d];O&&n(i,O,d,I)}return i})}function Dm(n,i){return function(s,d){if(s==null)return s;if(!Wt(s))return n(s,d);for(var C=s.length,I=i?C:-1,v=at(s);(i?I--:++I<C)&&d(v[I],I,v)!==!1;);return s}}function Lm(n){return function(i,s,d){for(var C=-1,I=at(i),v=d(i),O=v.length;O--;){var $=v[n?O:++C];if(s(I[$],$,I)===!1)break}return i}}function PT(n,i,s){var d=i&N,C=Ni(n);function I(){var v=this&&this!==Tt&&this instanceof I?C:n;return v.apply(d?s:this,arguments)}return I}function Om(n){return function(i){i=Je(i);var s=vo(i)?kn(i):o,d=s?s[0]:i.charAt(0),C=s?Tr(s,1).join(""):i.slice(1);return d[n]()+C}}function Po(n){return function(i){return pc(Dg(Bg(i).replace(TM,"")),n,"")}}function Ni(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=Vo(n.prototype),d=n.apply(s,i);return dt(d)?d:s}}function $T(n,i,s){var d=Ni(n);function C(){for(var I=arguments.length,v=G(I),O=I,$=$o(C);O--;)v[O]=arguments[O];var ne=I<3&&v[0]!==$&&v[I-1]!==$?[]:_r(v,$);if(I-=ne.length,I<s)return $m(n,i,ss,C.placeholder,o,v,ne,o,o,s-I);var re=this&&this!==Tt&&this instanceof C?d:n;return Zt(re,this,v)}return C}function Rm(n){return function(i,s,d){var C=at(i);if(!Wt(i)){var I=_e(s,3);i=It(i),s=function(O){return I(C[O],O,C)}}var v=n(i,s,d);return v>-1?C[I?i[v]:v]:o}}function Vm(n){return or(function(i){var s=i.length,d=s,C=mn.prototype.thru;for(n&&i.reverse();d--;){var I=i[d];if(typeof I!="function")throw new hn(u);if(C&&!v&&fs(I)=="wrapper")var v=new mn([],!0)}for(d=v?d:s;++d<s;){I=i[d];var O=fs(I),$=O=="wrapper"?Gc(I):o;$&&Zc($[0])&&$[1]==(Y|B|D|te)&&!$[4].length&&$[9]==1?v=v[fs($[0])].apply(v,$[3]):v=I.length==1&&Zc(I)?v[O]():v.thru(I)}return function(){var ne=arguments,re=ne[0];if(v&&ne.length==1&&Be(re))return v.plant(re).value();for(var ce=0,be=s?i[ce].apply(this,ne):re;++ce<s;)be=i[ce].call(this,be);return be}})}function ss(n,i,s,d,C,I,v,O,$,ne){var re=i&Y,ce=i&N,be=i&k,Ee=i&(B|H),ke=i&K,Ve=be?o:Ni(n);function Me(){for(var $e=arguments.length,je=G($e),tn=$e;tn--;)je[tn]=arguments[tn];if(Ee)var $t=$o(Me),nn=XM(je,$t);if(d&&(je=vm(je,d,C,Ee)),I&&(je=Bm(je,I,v,Ee)),$e-=nn,Ee&&$e<ne){var wt=_r(je,$t);return $m(n,i,ss,Me.placeholder,s,je,wt,O,$,ne-$e)}var Tn=ce?s:this,lr=be?Tn[n]:n;return $e=je.length,O?je=aN(je,O):ke&&$e>1&&je.reverse(),re&&$<$e&&(je.length=$),this&&this!==Tt&&this instanceof Me&&(lr=Ve||Ni(lr)),lr.apply(Tn,je)}return Me}function zm(n,i){return function(s,d){return hT(s,n,i(d),{})}}function ls(n,i){return function(s,d){var C;if(s===o&&d===o)return i;if(s!==o&&(C=s),d!==o){if(C===o)return d;typeof s=="string"||typeof d=="string"?(s=Jt(s),d=Jt(d)):(s=xm(s),d=xm(d)),C=n(s,d)}return C}}function Uc(n){return or(function(i){return i=ft(i,Xt(_e())),ze(function(s){var d=this;return n(i,function(C){return Zt(C,d,s)})})})}function cs(n,i){i=i===o?" ":Jt(i);var s=i.length;if(s<2)return s?Rc(i,n):i;var d=Rc(i,qa(n/Bo(i)));return vo(i)?Tr(kn(d),0,n).join(""):d.slice(0,n)}function FT(n,i,s,d){var C=i&N,I=Ni(n);function v(){for(var O=-1,$=arguments.length,ne=-1,re=d.length,ce=G(re+$),be=this&&this!==Tt&&this instanceof v?I:n;++ne<re;)ce[ne]=d[ne];for(;$--;)ce[ne++]=arguments[++O];return Zt(be,C?s:this,ce)}return v}function Pm(n){return function(i,s,d){return d&&typeof d!="number"&&Pt(i,s,d)&&(s=d=o),i=sr(i),s===o?(s=i,i=0):s=sr(s),d=d===o?i<s?1:-1:sr(d),kT(i,s,d,n)}}function us(n){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=wn(i),s=wn(s)),n(i,s)}}function $m(n,i,s,d,C,I,v,O,$,ne){var re=i&B,ce=re?v:o,be=re?o:v,Ee=re?I:o,ke=re?o:I;i|=re?D:W,i&=~(re?W:D),i&A||(i&=~(N|k));var Ve=[n,i,C,Ee,ce,ke,be,O,$,ne],Me=s.apply(o,Ve);return Zc(n)&&Xm(Me,Ve),Me.placeholder=d,Jm(Me,n,i)}function Hc(n){var i=xt[n];return function(s,d){if(s=wn(s),d=d==null?0:Ot(Oe(d),292),d&&Jh(s)){var C=(Je(s)+"e").split("e"),I=i(C[0]+"e"+(+C[1]+d));return C=(Je(I)+"e").split("e"),+(C[0]+"e"+(+C[1]-d))}return i(s)}}var jT=Oo&&1/Pa(new Oo([,-0]))[1]==V?function(n){return new Oo(n)}:du;function Fm(n){return function(i){var s=Rt(i);return s==ot?Ec(i):s==Ue?iA(i):ZM(i,n(i))}}function rr(n,i,s,d,C,I,v,O){var $=i&k;if(!$&&typeof n!="function")throw new hn(u);var ne=d?d.length:0;if(ne||(i&=~(D|W),d=C=o),v=v===o?v:_t(Oe(v),0),O=O===o?O:Oe(O),ne-=C?C.length:0,i&W){var re=d,ce=C;d=C=o}var be=$?o:Gc(n),Ee=[n,i,s,d,C,re,ce,I,v,O];if(be&&rN(Ee,be),n=Ee[0],i=Ee[1],s=Ee[2],d=Ee[3],C=Ee[4],O=Ee[9]=Ee[9]===o?$?0:n.length:_t(Ee[9]-ne,0),!O&&i&(B|H)&&(i&=~(B|H)),!i||i==N)var ke=PT(n,i,s);else i==B||i==H?ke=$T(n,i,O):(i==D||i==(N|D))&&!C.length?ke=FT(n,i,s,d):ke=ss.apply(o,Ee);var Ve=be?Cm:Xm;return Jm(Ve(ke,Ee),n,i)}function jm(n,i,s,d){return n===o||An(n,Lo[s])&&!et.call(d,s)?i:n}function Um(n,i,s,d,C,I){return dt(n)&&dt(i)&&(I.set(i,n),rs(n,i,o,Um,I),I.delete(i)),n}function UT(n){return Di(n)?o:n}function Hm(n,i,s,d,C,I){var v=s&E,O=n.length,$=i.length;if(O!=$&&!(v&&$>O))return!1;var ne=I.get(n),re=I.get(i);if(ne&&re)return ne==i&&re==n;var ce=-1,be=!0,Ee=s&S?new to:o;for(I.set(n,i),I.set(i,n);++ce<O;){var ke=n[ce],Ve=i[ce];if(d)var Me=v?d(Ve,ke,ce,i,n,I):d(ke,Ve,ce,n,i,I);if(Me!==o){if(Me)continue;be=!1;break}if(Ee){if(!hc(i,function($e,je){if(!wi(Ee,je)&&(ke===$e||C(ke,$e,s,d,I)))return Ee.push(je)})){be=!1;break}}else if(!(ke===Ve||C(ke,Ve,s,d,I))){be=!1;break}}return I.delete(n),I.delete(i),be}function HT(n,i,s,d,C,I,v){switch(s){case p:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case x:return!(n.byteLength!=i.byteLength||!I(new Wa(n),new Wa(i)));case he:case Ce:case St:return An(+n,+i);case Le:return n.name==i.name&&n.message==i.message;case We:case it:return n==i+"";case ot:var O=Ec;case Ue:var $=d&E;if(O||(O=Pa),n.size!=i.size&&!$)return!1;var ne=v.get(n);if(ne)return ne==i;d|=S,v.set(n,i);var re=Hm(O(n),O(i),d,C,I,v);return v.delete(n),re;case Lt:if(_i)return _i.call(n)==_i.call(i)}return!1}function WT(n,i,s,d,C,I){var v=s&E,O=Wc(n),$=O.length,ne=Wc(i),re=ne.length;if($!=re&&!v)return!1;for(var ce=$;ce--;){var be=O[ce];if(!(v?be in i:et.call(i,be)))return!1}var Ee=I.get(n),ke=I.get(i);if(Ee&&ke)return Ee==i&&ke==n;var Ve=!0;I.set(n,i),I.set(i,n);for(var Me=v;++ce<$;){be=O[ce];var $e=n[be],je=i[be];if(d)var tn=v?d(je,$e,be,i,n,I):d($e,je,be,n,i,I);if(!(tn===o?$e===je||C($e,je,s,d,I):tn)){Ve=!1;break}Me||(Me=be=="constructor")}if(Ve&&!Me){var $t=n.constructor,nn=i.constructor;$t!=nn&&"constructor"in n&&"constructor"in i&&!(typeof $t=="function"&&$t instanceof $t&&typeof nn=="function"&&nn instanceof nn)&&(Ve=!1)}return I.delete(n),I.delete(i),Ve}function or(n){return Jc(Qm(n,o,ig),n+"")}function Wc(n){return um(n,It,qc)}function Yc(n){return um(n,Yt,Wm)}var Gc=Za?function(n){return Za.get(n)}:du;function fs(n){for(var i=n.name+"",s=Ro[i],d=et.call(Ro,i)?s.length:0;d--;){var C=s[d],I=C.func;if(I==null||I==n)return C.name}return i}function $o(n){var i=et.call(_,"placeholder")?_:n;return i.placeholder}function _e(){var n=_.iteratee||uu;return n=n===uu?pm:n,arguments.length?n(arguments[0],arguments[1]):n}function ds(n,i){var s=n.__data__;return JT(i)?s[typeof i=="string"?"string":"hash"]:s.map}function Kc(n){for(var i=It(n),s=i.length;s--;){var d=i[s],C=n[d];i[s]=[d,C,Km(C)]}return i}function oo(n,i){var s=nA(n,i);return dm(s)?s:o}function YT(n){var i=et.call(n,Jr),s=n[Jr];try{n[Jr]=o;var d=!0}catch{}var C=Ua.call(n);return d&&(i?n[Jr]=s:delete n[Jr]),C}var qc=Sc?function(n){return n==null?[]:(n=at(n),Sr(Sc(n),function(i){return Zh.call(n,i)}))}:pu,Wm=Sc?function(n){for(var i=[];n;)xr(i,qc(n)),n=Ya(n);return i}:pu,Rt=zt;(xc&&Rt(new xc(new ArrayBuffer(1)))!=p||Ci&&Rt(new Ci)!=ot||_c&&Rt(_c.resolve())!=fe||Oo&&Rt(new Oo)!=Ue||Si&&Rt(new Si)!=oe)&&(Rt=function(n){var i=zt(n),s=i==j?n.constructor:o,d=s?io(s):"";if(d)switch(d){case AA:return p;case TA:return ot;case NA:return fe;case vA:return Ue;case BA:return oe}return i});function GT(n,i,s){for(var d=-1,C=s.length;++d<C;){var I=s[d],v=I.size;switch(I.type){case"drop":n+=v;break;case"dropRight":i-=v;break;case"take":i=Ot(i,n+v);break;case"takeRight":n=_t(n,i-v);break}}return{start:n,end:i}}function KT(n){var i=n.match(oc);return i?i[1].split(Q):[]}function Ym(n,i,s){i=Ar(i,n);for(var d=-1,C=i.length,I=!1;++d<C;){var v=Fn(i[d]);if(!(I=n!=null&&s(n,v)))break;n=n[v]}return I||++d!=C?I:(C=n==null?0:n.length,!!C&&ws(C)&&ir(v,C)&&(Be(n)||ao(n)))}function qT(n){var i=n.length,s=new n.constructor(i);return i&&typeof n[0]=="string"&&et.call(n,"index")&&(s.index=n.index,s.input=n.input),s}function Gm(n){return typeof n.constructor=="function"&&!vi(n)?Vo(Ya(n)):{}}function QT(n,i,s){var d=n.constructor;switch(i){case x:return jc(n);case he:case Ce:return new d(+n);case p:return DT(n,s);case h:case T:case z:case U:case ee:case ve:case nt:case Xe:case rt:return Tm(n,s);case ot:return new d;case St:case it:return new d(n);case We:return LT(n);case Ue:return new d;case Lt:return OT(n)}}function ZT(n,i){var s=i.length;if(!s)return n;var d=s-1;return i[d]=(s>1?"& ":"")+i[d],i=i.join(s>2?", ":" "),n.replace(rc,`{
28
28
  /* [wrapped with `+i+`] */
29
- `)}function ZT(n){return Be(n)||ao(n)||!!(Xh&&n&&n[Xh])}function ir(n,i){var s=typeof n;return i=i??F,!!i&&(s=="number"||s!="symbol"&&cM.test(n))&&n>-1&&n%1==0&&n<i}function Pt(n,i,s){if(!dt(s))return!1;var d=typeof i;return(d=="number"?Wt(s)&&ir(i,s.length):d=="string"&&i in s)?An(s[i],n):!1}function Qc(n,i){if(Be(n))return!1;var s=typeof n;return s=="number"||s=="symbol"||s=="boolean"||n==null||en(n)?!0:ec.test(n)||!Zr.test(n)||i!=null&&n in at(i)}function XT(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function Zc(n){var i=fs(n),s=_[i];if(typeof s!="function"||!(i in Fe.prototype))return!1;if(n===s)return!0;var d=Gc(s);return!!d&&n===d[0]}function JT(n){return!!Kh&&Kh in n}var eN=Fa?ar:hu;function vi(n){var i=n&&n.constructor,s=typeof i=="function"&&i.prototype||Lo;return n===s}function Km(n){return n===n&&!dt(n)}function qm(n,i){return function(s){return s==null?!1:s[n]===i&&(i!==o||n in at(s))}}function tN(n){var i=ys(n,function(d){return s.size===g&&s.clear(),d}),s=i.cache;return i}function nN(n,i){var s=n[1],d=i[1],C=s|d,I=C<(N|k|Y),v=d==Y&&s==B||d==Y&&s==te&&n[7].length<=i[8]||d==(Y|te)&&i[7].length<=i[8]&&s==B;if(!(I||v))return n;d&N&&(n[2]=i[2],C|=s&N?0:A);var O=i[3];if(O){var $=n[3];n[3]=$?vm($,O,i[4]):O,n[4]=$?_r(n[3],y):i[4]}return O=i[5],O&&($=n[5],n[5]=$?Bm($,O,i[6]):O,n[6]=$?_r(n[5],y):i[6]),O=i[7],O&&(n[7]=O),d&Y&&(n[8]=n[8]==null?i[8]:Ot(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=C,n}function rN(n){var i=[];if(n!=null)for(var s in at(n))i.push(s);return i}function oN(n){return Ua.call(n)}function Qm(n,i,s){return i=_t(i===o?n.length-1:i,0),function(){for(var d=arguments,C=-1,I=_t(d.length-i,0),v=G(I);++C<I;)v[C]=d[i+C];C=-1;for(var O=G(i+1);++C<i;)O[C]=d[C];return O[i]=s(v),Zt(n,this,O)}}function Zm(n,i){return i.length<2?n:ro(n,yn(i,0,-1))}function iN(n,i){for(var s=n.length,d=Ot(i.length,s),C=Ht(n);d--;){var I=i[d];n[d]=ir(I,s)?C[I]:o}return n}function Xc(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var Xm=eg(Cm),Bi=EA||function(n,i){return Tt.setTimeout(n,i)},Jc=eg(AT);function Jm(n,i,s){var d=i+"";return Jc(n,QT(d,aN(GT(d),s)))}function eg(n){var i=0,s=0;return function(){var d=_A(),C=ye-(d-s);if(s=d,C>0){if(++i>=se)return arguments[0]}else i=0;return n.apply(o,arguments)}}function ps(n,i){var s=-1,d=n.length,C=d-1;for(i=i===o?d:i;++s<i;){var I=Oc(s,C),v=n[I];n[I]=n[s],n[s]=v}return n.length=i,n}var tg=tN(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(tc,function(s,d,C,I){i.push(C?I.replace(ct,"$1"):d||s)}),i});function Fn(n){if(typeof n=="string"||en(n))return n;var i=n+"";return i=="0"&&1/n==-V?"-0":i}function io(n){if(n!=null){try{return ja.call(n)}catch{}try{return n+""}catch{}}return""}function aN(n,i){return pn(Se,function(s){var d="_."+s[0];i&s[1]&&!Va(n,d)&&n.push(d)}),n.sort()}function ng(n){if(n instanceof Fe)return n.clone();var i=new mn(n.__wrapped__,n.__chain__);return i.__actions__=Ht(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function sN(n,i,s){(s?Pt(n,i,s):i===o)?i=1:i=_t(Oe(i),0);var d=n==null?0:n.length;if(!d||i<1)return[];for(var C=0,I=0,v=G(qa(d/i));C<d;)v[I++]=yn(n,C,C+=i);return v}function lN(n){for(var i=-1,s=n==null?0:n.length,d=0,C=[];++i<s;){var I=n[i];I&&(C[d++]=I)}return C}function cN(){var n=arguments.length;if(!n)return[];for(var i=G(n-1),s=arguments[0],d=n;d--;)i[d-1]=arguments[d];return xr(Be(s)?Ht(s):[s],Nt(i,1))}var uN=ze(function(n,i){return bt(n)?ki(n,Nt(i,1,bt,!0)):[]}),fN=ze(function(n,i){var s=bn(i);return bt(s)&&(s=o),bt(n)?ki(n,Nt(i,1,bt,!0),_e(s,2)):[]}),dN=ze(function(n,i){var s=bn(i);return bt(s)&&(s=o),bt(n)?ki(n,Nt(i,1,bt,!0),o,s):[]});function pN(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===o?1:Oe(i),yn(n,i<0?0:i,d)):[]}function hN(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===o?1:Oe(i),i=d-i,yn(n,0,i<0?0:i)):[]}function mN(n,i){return n&&n.length?is(n,_e(i,3),!0,!0):[]}function gN(n,i){return n&&n.length?is(n,_e(i,3),!0):[]}function yN(n,i,s,d){var C=n==null?0:n.length;return C?(s&&typeof s!="number"&&Pt(n,i,s)&&(s=0,d=C),cT(n,i,s,d)):[]}function rg(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var C=s==null?0:Oe(s);return C<0&&(C=_t(d+C,0)),za(n,_e(i,3),C)}function og(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var C=d-1;return s!==o&&(C=Oe(s),C=s<0?_t(d+C,0):Ot(C,d-1)),za(n,_e(i,3),C,!0)}function ig(n){var i=n==null?0:n.length;return i?Nt(n,1):[]}function bN(n){var i=n==null?0:n.length;return i?Nt(n,V):[]}function wN(n,i){var s=n==null?0:n.length;return s?(i=i===o?1:Oe(i),Nt(n,i)):[]}function EN(n){for(var i=-1,s=n==null?0:n.length,d={};++i<s;){var C=n[i];d[C[0]]=C[1]}return d}function ag(n){return n&&n.length?n[0]:o}function CN(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var C=s==null?0:Oe(s);return C<0&&(C=_t(d+C,0)),No(n,i,C)}function SN(n){var i=n==null?0:n.length;return i?yn(n,0,-1):[]}var xN=ze(function(n){var i=ft(n,$c);return i.length&&i[0]===n[0]?Nc(i):[]}),_N=ze(function(n){var i=bn(n),s=ft(n,$c);return i===bn(s)?i=o:s.pop(),s.length&&s[0]===n[0]?Nc(s,_e(i,2)):[]}),IN=ze(function(n){var i=bn(n),s=ft(n,$c);return i=typeof i=="function"?i:o,i&&s.pop(),s.length&&s[0]===n[0]?Nc(s,o,i):[]});function kN(n,i){return n==null?"":SA.call(n,i)}function bn(n){var i=n==null?0:n.length;return i?n[i-1]:o}function MN(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var C=d;return s!==o&&(C=Oe(s),C=C<0?_t(d+C,0):Ot(C,d-1)),i===i?aA(n,i,C):za(n,$h,C,!0)}function AN(n,i){return n&&n.length?ym(n,Oe(i)):o}var TN=ze(sg);function sg(n,i){return n&&n.length&&i&&i.length?Lc(n,i):n}function NN(n,i,s){return n&&n.length&&i&&i.length?Lc(n,i,_e(s,2)):n}function vN(n,i,s){return n&&n.length&&i&&i.length?Lc(n,i,o,s):n}var BN=or(function(n,i){var s=n==null?0:n.length,d=kc(n,i);return Em(n,ft(i,function(C){return ir(C,s)?+C:C}).sort(Nm)),d});function DN(n,i){var s=[];if(!(n&&n.length))return s;var d=-1,C=[],I=n.length;for(i=_e(i,3);++d<I;){var v=n[d];i(v,d,n)&&(s.push(v),C.push(d))}return Em(n,C),s}function eu(n){return n==null?n:kA.call(n)}function LN(n,i,s){var d=n==null?0:n.length;return d?(s&&typeof s!="number"&&Pt(n,i,s)?(i=0,s=d):(i=i==null?0:Oe(i),s=s===o?d:Oe(s)),yn(n,i,s)):[]}function ON(n,i){return os(n,i)}function RN(n,i,s){return Vc(n,i,_e(s,2))}function VN(n,i){var s=n==null?0:n.length;if(s){var d=os(n,i);if(d<s&&An(n[d],i))return d}return-1}function zN(n,i){return os(n,i,!0)}function PN(n,i,s){return Vc(n,i,_e(s,2),!0)}function $N(n,i){var s=n==null?0:n.length;if(s){var d=os(n,i,!0)-1;if(An(n[d],i))return d}return-1}function FN(n){return n&&n.length?Sm(n):[]}function jN(n,i){return n&&n.length?Sm(n,_e(i,2)):[]}function UN(n){var i=n==null?0:n.length;return i?yn(n,1,i):[]}function HN(n,i,s){return n&&n.length?(i=s||i===o?1:Oe(i),yn(n,0,i<0?0:i)):[]}function WN(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===o?1:Oe(i),i=d-i,yn(n,i<0?0:i,d)):[]}function YN(n,i){return n&&n.length?is(n,_e(i,3),!1,!0):[]}function GN(n,i){return n&&n.length?is(n,_e(i,3)):[]}var KN=ze(function(n){return Mr(Nt(n,1,bt,!0))}),qN=ze(function(n){var i=bn(n);return bt(i)&&(i=o),Mr(Nt(n,1,bt,!0),_e(i,2))}),QN=ze(function(n){var i=bn(n);return i=typeof i=="function"?i:o,Mr(Nt(n,1,bt,!0),o,i)});function ZN(n){return n&&n.length?Mr(n):[]}function XN(n,i){return n&&n.length?Mr(n,_e(i,2)):[]}function JN(n,i){return i=typeof i=="function"?i:o,n&&n.length?Mr(n,o,i):[]}function tu(n){if(!(n&&n.length))return[];var i=0;return n=Sr(n,function(s){if(bt(s))return i=_t(s.length,i),!0}),bc(i,function(s){return ft(n,mc(s))})}function lg(n,i){if(!(n&&n.length))return[];var s=tu(n);return i==null?s:ft(s,function(d){return Zt(i,o,d)})}var ev=ze(function(n,i){return bt(n)?ki(n,i):[]}),tv=ze(function(n){return Pc(Sr(n,bt))}),nv=ze(function(n){var i=bn(n);return bt(i)&&(i=o),Pc(Sr(n,bt),_e(i,2))}),rv=ze(function(n){var i=bn(n);return i=typeof i=="function"?i:o,Pc(Sr(n,bt),o,i)}),ov=ze(tu);function iv(n,i){return km(n||[],i||[],Ii)}function av(n,i){return km(n||[],i||[],Ti)}var sv=ze(function(n){var i=n.length,s=i>1?n[i-1]:o;return s=typeof s=="function"?(n.pop(),s):o,lg(n,s)});function cg(n){var i=_(n);return i.__chain__=!0,i}function lv(n,i){return i(n),n}function hs(n,i){return i(n)}var cv=or(function(n){var i=n.length,s=i?n[0]:0,d=this.__wrapped__,C=function(I){return kc(I,n)};return i>1||this.__actions__.length||!(d instanceof Fe)||!ir(s)?this.thru(C):(d=d.slice(s,+s+(i?1:0)),d.__actions__.push({func:hs,args:[C],thisArg:o}),new mn(d,this.__chain__).thru(function(I){return i&&!I.length&&I.push(o),I}))});function uv(){return cg(this)}function fv(){return new mn(this.value(),this.__chain__)}function dv(){this.__values__===o&&(this.__values__=xg(this.value()));var n=this.__index__>=this.__values__.length,i=n?o:this.__values__[this.__index__++];return{done:n,value:i}}function pv(){return this}function hv(n){for(var i,s=this;s instanceof Ja;){var d=ng(s);d.__index__=0,d.__values__=o,i?C.__wrapped__=d:i=d;var C=d;s=s.__wrapped__}return C.__wrapped__=n,i}function mv(){var n=this.__wrapped__;if(n instanceof Fe){var i=n;return this.__actions__.length&&(i=new Fe(this)),i=i.reverse(),i.__actions__.push({func:hs,args:[eu],thisArg:o}),new mn(i,this.__chain__)}return this.thru(eu)}function gv(){return Im(this.__wrapped__,this.__actions__)}var yv=as(function(n,i,s){et.call(n,s)?++n[s]:nr(n,s,1)});function bv(n,i,s){var d=Be(n)?zh:lT;return s&&Pt(n,i,s)&&(i=o),d(n,_e(i,3))}function wv(n,i){var s=Be(n)?Sr:lm;return s(n,_e(i,3))}var Ev=Rm(rg),Cv=Rm(og);function Sv(n,i){return Nt(ms(n,i),1)}function xv(n,i){return Nt(ms(n,i),V)}function _v(n,i,s){return s=s===o?1:Oe(s),Nt(ms(n,i),s)}function ug(n,i){var s=Be(n)?pn:kr;return s(n,_e(i,3))}function fg(n,i){var s=Be(n)?UM:sm;return s(n,_e(i,3))}var Iv=as(function(n,i,s){et.call(n,s)?n[s].push(i):nr(n,s,[i])});function kv(n,i,s,d){n=Wt(n)?n:jo(n),s=s&&!d?Oe(s):0;var C=n.length;return s<0&&(s=_t(C+s,0)),Es(n)?s<=C&&n.indexOf(i,s)>-1:!!C&&No(n,i,s)>-1}var Mv=ze(function(n,i,s){var d=-1,C=typeof i=="function",I=Wt(n)?G(n.length):[];return kr(n,function(v){I[++d]=C?Zt(i,v,s):Mi(v,i,s)}),I}),Av=as(function(n,i,s){nr(n,s,i)});function ms(n,i){var s=Be(n)?ft:hm;return s(n,_e(i,3))}function Tv(n,i,s,d){return n==null?[]:(Be(i)||(i=i==null?[]:[i]),s=d?o:s,Be(s)||(s=s==null?[]:[s]),bm(n,i,s))}var Nv=as(function(n,i,s){n[s?0:1].push(i)},function(){return[[],[]]});function vv(n,i,s){var d=Be(n)?pc:jh,C=arguments.length<3;return d(n,_e(i,4),s,C,kr)}function Bv(n,i,s){var d=Be(n)?HM:jh,C=arguments.length<3;return d(n,_e(i,4),s,C,sm)}function Dv(n,i){var s=Be(n)?Sr:lm;return s(n,bs(_e(i,3)))}function Lv(n){var i=Be(n)?rm:kT;return i(n)}function Ov(n,i,s){(s?Pt(n,i,s):i===o)?i=1:i=Oe(i);var d=Be(n)?rT:MT;return d(n,i)}function Rv(n){var i=Be(n)?oT:TT;return i(n)}function Vv(n){if(n==null)return 0;if(Wt(n))return Es(n)?Bo(n):n.length;var i=Rt(n);return i==ot||i==Ue?n.size:Bc(n).length}function zv(n,i,s){var d=Be(n)?hc:NT;return s&&Pt(n,i,s)&&(i=o),d(n,_e(i,3))}var Pv=ze(function(n,i){if(n==null)return[];var s=i.length;return s>1&&Pt(n,i[0],i[1])?i=[]:s>2&&Pt(i[0],i[1],i[2])&&(i=[i[0]]),bm(n,Nt(i,1),[])}),gs=wA||function(){return Tt.Date.now()};function $v(n,i){if(typeof i!="function")throw new hn(u);return n=Oe(n),function(){if(--n<1)return i.apply(this,arguments)}}function dg(n,i,s){return i=s?o:i,i=n&&i==null?n.length:i,rr(n,Y,o,o,o,o,i)}function pg(n,i){var s;if(typeof i!="function")throw new hn(u);return n=Oe(n),function(){return--n>0&&(s=i.apply(this,arguments)),n<=1&&(i=o),s}}var nu=ze(function(n,i,s){var d=N;if(s.length){var C=_r(s,$o(nu));d|=D}return rr(n,d,i,s,C)}),hg=ze(function(n,i,s){var d=N|k;if(s.length){var C=_r(s,$o(hg));d|=D}return rr(i,d,n,s,C)});function mg(n,i,s){i=s?o:i;var d=rr(n,B,o,o,o,o,o,i);return d.placeholder=mg.placeholder,d}function gg(n,i,s){i=s?o:i;var d=rr(n,H,o,o,o,o,o,i);return d.placeholder=gg.placeholder,d}function yg(n,i,s){var d,C,I,v,O,$,ne=0,re=!1,ce=!1,be=!0;if(typeof n!="function")throw new hn(u);i=wn(i)||0,dt(s)&&(re=!!s.leading,ce="maxWait"in s,I=ce?_t(wn(s.maxWait)||0,i):I,be="trailing"in s?!!s.trailing:be);function Ee(wt){var Tn=d,lr=C;return d=C=o,ne=wt,v=n.apply(lr,Tn),v}function ke(wt){return ne=wt,O=Bi($e,i),re?Ee(wt):v}function Ve(wt){var Tn=wt-$,lr=wt-ne,Rg=i-Tn;return ce?Ot(Rg,I-lr):Rg}function Me(wt){var Tn=wt-$,lr=wt-ne;return $===o||Tn>=i||Tn<0||ce&&lr>=I}function $e(){var wt=gs();if(Me(wt))return je(wt);O=Bi($e,Ve(wt))}function je(wt){return O=o,be&&d?Ee(wt):(d=C=o,v)}function tn(){O!==o&&Mm(O),ne=0,d=$=C=O=o}function $t(){return O===o?v:je(gs())}function nn(){var wt=gs(),Tn=Me(wt);if(d=arguments,C=this,$=wt,Tn){if(O===o)return ke($);if(ce)return Mm(O),O=Bi($e,i),Ee($)}return O===o&&(O=Bi($e,i)),v}return nn.cancel=tn,nn.flush=$t,nn}var Fv=ze(function(n,i){return am(n,1,i)}),jv=ze(function(n,i,s){return am(n,wn(i)||0,s)});function Uv(n){return rr(n,K)}function ys(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new hn(u);var s=function(){var d=arguments,C=i?i.apply(this,d):d[0],I=s.cache;if(I.has(C))return I.get(C);var v=n.apply(this,d);return s.cache=I.set(C,v)||I,v};return s.cache=new(ys.Cache||tr),s}ys.Cache=tr;function bs(n){if(typeof n!="function")throw new hn(u);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function Hv(n){return pg(2,n)}var Wv=vT(function(n,i){i=i.length==1&&Be(i[0])?ft(i[0],Xt(_e())):ft(Nt(i,1),Xt(_e()));var s=i.length;return ze(function(d){for(var C=-1,I=Ot(d.length,s);++C<I;)d[C]=i[C].call(this,d[C]);return Zt(n,this,d)})}),ru=ze(function(n,i){var s=_r(i,$o(ru));return rr(n,D,o,i,s)}),bg=ze(function(n,i){var s=_r(i,$o(bg));return rr(n,W,o,i,s)}),Yv=or(function(n,i){return rr(n,te,o,o,o,i)});function Gv(n,i){if(typeof n!="function")throw new hn(u);return i=i===o?i:Oe(i),ze(n,i)}function Kv(n,i){if(typeof n!="function")throw new hn(u);return i=i==null?0:_t(Oe(i),0),ze(function(s){var d=s[i],C=Tr(s,0,i);return d&&xr(C,d),Zt(n,this,C)})}function qv(n,i,s){var d=!0,C=!0;if(typeof n!="function")throw new hn(u);return dt(s)&&(d="leading"in s?!!s.leading:d,C="trailing"in s?!!s.trailing:C),yg(n,i,{leading:d,maxWait:i,trailing:C})}function Qv(n){return dg(n,1)}function Zv(n,i){return ru(Fc(i),n)}function Xv(){if(!arguments.length)return[];var n=arguments[0];return Be(n)?n:[n]}function Jv(n){return gn(n,M)}function e3(n,i){return i=typeof i=="function"?i:o,gn(n,M,i)}function t3(n){return gn(n,w|M)}function n3(n,i){return i=typeof i=="function"?i:o,gn(n,w|M,i)}function r3(n,i){return i==null||im(n,i,It(i))}function An(n,i){return n===i||n!==n&&i!==i}var o3=us(Tc),i3=us(function(n,i){return n>=i}),ao=fm(function(){return arguments}())?fm:function(n){return mt(n)&&et.call(n,"callee")&&!Zh.call(n,"callee")},Be=G.isArray,a3=Bh?Xt(Bh):hT;function Wt(n){return n!=null&&ws(n.length)&&!ar(n)}function bt(n){return mt(n)&&Wt(n)}function s3(n){return n===!0||n===!1||mt(n)&&zt(n)==he}var Nr=CA||hu,l3=Dh?Xt(Dh):mT;function c3(n){return mt(n)&&n.nodeType===1&&!Di(n)}function u3(n){if(n==null)return!0;if(Wt(n)&&(Be(n)||typeof n=="string"||typeof n.splice=="function"||Nr(n)||Fo(n)||ao(n)))return!n.length;var i=Rt(n);if(i==ot||i==Ue)return!n.size;if(vi(n))return!Bc(n).length;for(var s in n)if(et.call(n,s))return!1;return!0}function f3(n,i){return Ai(n,i)}function d3(n,i,s){s=typeof s=="function"?s:o;var d=s?s(n,i):o;return d===o?Ai(n,i,o,s):!!d}function ou(n){if(!mt(n))return!1;var i=zt(n);return i==Le||i==xe||typeof n.message=="string"&&typeof n.name=="string"&&!Di(n)}function p3(n){return typeof n=="number"&&Jh(n)}function ar(n){if(!dt(n))return!1;var i=zt(n);return i==He||i==Pe||i==ae||i==Ge}function wg(n){return typeof n=="number"&&n==Oe(n)}function ws(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=F}function dt(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function mt(n){return n!=null&&typeof n=="object"}var Eg=Lh?Xt(Lh):yT;function h3(n,i){return n===i||vc(n,i,Kc(i))}function m3(n,i,s){return s=typeof s=="function"?s:o,vc(n,i,Kc(i),s)}function g3(n){return Cg(n)&&n!=+n}function y3(n){if(eN(n))throw new Ne(c);return dm(n)}function b3(n){return n===null}function w3(n){return n==null}function Cg(n){return typeof n=="number"||mt(n)&&zt(n)==St}function Di(n){if(!mt(n)||zt(n)!=j)return!1;var i=Ya(n);if(i===null)return!0;var s=et.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&ja.call(s)==mA}var iu=Oh?Xt(Oh):bT;function E3(n){return wg(n)&&n>=-F&&n<=F}var Sg=Rh?Xt(Rh):wT;function Es(n){return typeof n=="string"||!Be(n)&&mt(n)&&zt(n)==it}function en(n){return typeof n=="symbol"||mt(n)&&zt(n)==Lt}var Fo=Vh?Xt(Vh):ET;function C3(n){return n===o}function S3(n){return mt(n)&&Rt(n)==oe}function x3(n){return mt(n)&&zt(n)==Ae}var _3=us(Dc),I3=us(function(n,i){return n<=i});function xg(n){if(!n)return[];if(Wt(n))return Es(n)?kn(n):Ht(n);if(Ei&&n[Ei])return rA(n[Ei]());var i=Rt(n),s=i==ot?Ec:i==Ue?Pa:jo;return s(n)}function sr(n){if(!n)return n===0?n:0;if(n=wn(n),n===V||n===-V){var i=n<0?-1:1;return i*ie}return n===n?n:0}function Oe(n){var i=sr(n),s=i%1;return i===i?s?i-s:i:0}function _g(n){return n?no(Oe(n),0,de):0}function wn(n){if(typeof n=="number")return n;if(en(n))return ue;if(dt(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=dt(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=Uh(n);var s=Jn.test(n);return s||Da.test(n)?$M(n.slice(2),s?2:8):Ao.test(n)?ue:+n}function Ig(n){return $n(n,Yt(n))}function k3(n){return n?no(Oe(n),-F,F):n===0?n:0}function Je(n){return n==null?"":Jt(n)}var M3=zo(function(n,i){if(vi(i)||Wt(i)){$n(i,It(i),n);return}for(var s in i)et.call(i,s)&&Ii(n,s,i[s])}),kg=zo(function(n,i){$n(i,Yt(i),n)}),Cs=zo(function(n,i,s,d){$n(i,Yt(i),n,d)}),A3=zo(function(n,i,s,d){$n(i,It(i),n,d)}),T3=or(kc);function N3(n,i){var s=Vo(n);return i==null?s:om(s,i)}var v3=ze(function(n,i){n=at(n);var s=-1,d=i.length,C=d>2?i[2]:o;for(C&&Pt(i[0],i[1],C)&&(d=1);++s<d;)for(var I=i[s],v=Yt(I),O=-1,$=v.length;++O<$;){var ne=v[O],re=n[ne];(re===o||An(re,Lo[ne])&&!et.call(n,ne))&&(n[ne]=I[ne])}return n}),B3=ze(function(n){return n.push(o,Um),Zt(Mg,o,n)});function D3(n,i){return Ph(n,_e(i,3),Pn)}function L3(n,i){return Ph(n,_e(i,3),Ac)}function O3(n,i){return n==null?n:Mc(n,_e(i,3),Yt)}function R3(n,i){return n==null?n:cm(n,_e(i,3),Yt)}function V3(n,i){return n&&Pn(n,_e(i,3))}function z3(n,i){return n&&Ac(n,_e(i,3))}function P3(n){return n==null?[]:ns(n,It(n))}function $3(n){return n==null?[]:ns(n,Yt(n))}function au(n,i,s){var d=n==null?o:ro(n,i);return d===o?s:d}function F3(n,i){return n!=null&&Ym(n,i,uT)}function su(n,i){return n!=null&&Ym(n,i,fT)}var j3=zm(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=Ua.call(i)),n[i]=s},cu(Gt)),U3=zm(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=Ua.call(i)),et.call(n,i)?n[i].push(s):n[i]=[s]},_e),H3=ze(Mi);function It(n){return Wt(n)?nm(n):Bc(n)}function Yt(n){return Wt(n)?nm(n,!0):CT(n)}function W3(n,i){var s={};return i=_e(i,3),Pn(n,function(d,C,I){nr(s,i(d,C,I),d)}),s}function Y3(n,i){var s={};return i=_e(i,3),Pn(n,function(d,C,I){nr(s,C,i(d,C,I))}),s}var G3=zo(function(n,i,s){rs(n,i,s)}),Mg=zo(function(n,i,s,d){rs(n,i,s,d)}),K3=or(function(n,i){var s={};if(n==null)return s;var d=!1;i=ft(i,function(I){return I=Ar(I,n),d||(d=I.length>1),I}),$n(n,Yc(n),s),d&&(s=gn(s,w|b|M,jT));for(var C=i.length;C--;)zc(s,i[C]);return s});function q3(n,i){return Ag(n,bs(_e(i)))}var Q3=or(function(n,i){return n==null?{}:xT(n,i)});function Ag(n,i){if(n==null)return{};var s=ft(Yc(n),function(d){return[d]});return i=_e(i),wm(n,s,function(d,C){return i(d,C[0])})}function Z3(n,i,s){i=Ar(i,n);var d=-1,C=i.length;for(C||(C=1,n=o);++d<C;){var I=n==null?o:n[Fn(i[d])];I===o&&(d=C,I=s),n=ar(I)?I.call(n):I}return n}function X3(n,i,s){return n==null?n:Ti(n,i,s)}function J3(n,i,s,d){return d=typeof d=="function"?d:o,n==null?n:Ti(n,i,s,d)}var Tg=Fm(It),Ng=Fm(Yt);function eB(n,i,s){var d=Be(n),C=d||Nr(n)||Fo(n);if(i=_e(i,4),s==null){var I=n&&n.constructor;C?s=d?new I:[]:dt(n)?s=ar(I)?Vo(Ya(n)):{}:s={}}return(C?pn:Pn)(n,function(v,O,$){return i(s,v,O,$)}),s}function tB(n,i){return n==null?!0:zc(n,i)}function nB(n,i,s){return n==null?n:_m(n,i,Fc(s))}function rB(n,i,s,d){return d=typeof d=="function"?d:o,n==null?n:_m(n,i,Fc(s),d)}function jo(n){return n==null?[]:wc(n,It(n))}function oB(n){return n==null?[]:wc(n,Yt(n))}function iB(n,i,s){return s===o&&(s=i,i=o),s!==o&&(s=wn(s),s=s===s?s:0),i!==o&&(i=wn(i),i=i===i?i:0),no(wn(n),i,s)}function aB(n,i,s){return i=sr(i),s===o?(s=i,i=0):s=sr(s),n=wn(n),dT(n,i,s)}function sB(n,i,s){if(s&&typeof s!="boolean"&&Pt(n,i,s)&&(i=s=o),s===o&&(typeof i=="boolean"?(s=i,i=o):typeof n=="boolean"&&(s=n,n=o)),n===o&&i===o?(n=0,i=1):(n=sr(n),i===o?(i=n,n=0):i=sr(i)),n>i){var d=n;n=i,i=d}if(s||n%1||i%1){var C=em();return Ot(n+C*(i-n+PM("1e-"+((C+"").length-1))),i)}return Oc(n,i)}var lB=Po(function(n,i,s){return i=i.toLowerCase(),n+(s?vg(i):i)});function vg(n){return lu(Je(n).toLowerCase())}function Bg(n){return n=Je(n),n&&n.replace(uM,XM).replace(TM,"")}function cB(n,i,s){n=Je(n),i=Jt(i);var d=n.length;s=s===o?d:no(Oe(s),0,d);var C=s;return s-=i.length,s>=0&&n.slice(s,C)==i}function uB(n){return n=Je(n),n&&Ta.test(n)?n.replace(Aa,JM):n}function fB(n){return n=Je(n),n&&Ba.test(n)?n.replace(yi,"\\$&"):n}var dB=Po(function(n,i,s){return n+(s?"-":"")+i.toLowerCase()}),pB=Po(function(n,i,s){return n+(s?" ":"")+i.toLowerCase()}),hB=Om("toLowerCase");function mB(n,i,s){n=Je(n),i=Oe(i);var d=i?Bo(n):0;if(!i||d>=i)return n;var C=(i-d)/2;return cs(Qa(C),s)+n+cs(qa(C),s)}function gB(n,i,s){n=Je(n),i=Oe(i);var d=i?Bo(n):0;return i&&d<i?n+cs(i-d,s):n}function yB(n,i,s){n=Je(n),i=Oe(i);var d=i?Bo(n):0;return i&&d<i?cs(i-d,s)+n:n}function bB(n,i,s){return s||i==null?i=0:i&&(i=+i),IA(Je(n).replace(bi,""),i||0)}function wB(n,i,s){return(s?Pt(n,i,s):i===o)?i=1:i=Oe(i),Rc(Je(n),i)}function EB(){var n=arguments,i=Je(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var CB=Po(function(n,i,s){return n+(s?"_":"")+i.toLowerCase()});function SB(n,i,s){return s&&typeof s!="number"&&Pt(n,i,s)&&(i=s=o),s=s===o?de:s>>>0,s?(n=Je(n),n&&(typeof i=="string"||i!=null&&!iu(i))&&(i=Jt(i),!i&&vo(n))?Tr(kn(n),0,s):n.split(i,s)):[]}var xB=Po(function(n,i,s){return n+(s?" ":"")+lu(i)});function _B(n,i,s){return n=Je(n),s=s==null?0:no(Oe(s),0,n.length),i=Jt(i),n.slice(s,s+i.length)==i}function IB(n,i,s){var d=_.templateSettings;s&&Pt(n,i,s)&&(i=o),n=Je(n),i=Cs({},i,d,jm);var C=Cs({},i.imports,d.imports,jm),I=It(C),v=wc(C,I),O,$,ne=0,re=i.interpolate||La,ce="__p += '",be=Cc((i.escape||La).source+"|"+re.source+"|"+(re===va?zn:La).source+"|"+(i.evaluate||La).source+"|$","g"),Ee="//# sourceURL="+(et.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++LM+"]")+`
30
- `;n.replace(be,function(Me,$e,je,tn,$t,nn){return je||(je=tn),ce+=n.slice(ne,nn).replace(fM,eA),$e&&(O=!0,ce+=`' +
29
+ `)}function XT(n){return Be(n)||ao(n)||!!(Xh&&n&&n[Xh])}function ir(n,i){var s=typeof n;return i=i??F,!!i&&(s=="number"||s!="symbol"&&uM.test(n))&&n>-1&&n%1==0&&n<i}function Pt(n,i,s){if(!dt(s))return!1;var d=typeof i;return(d=="number"?Wt(s)&&ir(i,s.length):d=="string"&&i in s)?An(s[i],n):!1}function Qc(n,i){if(Be(n))return!1;var s=typeof n;return s=="number"||s=="symbol"||s=="boolean"||n==null||en(n)?!0:ec.test(n)||!Zr.test(n)||i!=null&&n in at(i)}function JT(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function Zc(n){var i=fs(n),s=_[i];if(typeof s!="function"||!(i in Fe.prototype))return!1;if(n===s)return!0;var d=Gc(s);return!!d&&n===d[0]}function eN(n){return!!Kh&&Kh in n}var tN=Fa?ar:hu;function vi(n){var i=n&&n.constructor,s=typeof i=="function"&&i.prototype||Lo;return n===s}function Km(n){return n===n&&!dt(n)}function qm(n,i){return function(s){return s==null?!1:s[n]===i&&(i!==o||n in at(s))}}function nN(n){var i=ys(n,function(d){return s.size===g&&s.clear(),d}),s=i.cache;return i}function rN(n,i){var s=n[1],d=i[1],C=s|d,I=C<(N|k|Y),v=d==Y&&s==B||d==Y&&s==te&&n[7].length<=i[8]||d==(Y|te)&&i[7].length<=i[8]&&s==B;if(!(I||v))return n;d&N&&(n[2]=i[2],C|=s&N?0:A);var O=i[3];if(O){var $=n[3];n[3]=$?vm($,O,i[4]):O,n[4]=$?_r(n[3],y):i[4]}return O=i[5],O&&($=n[5],n[5]=$?Bm($,O,i[6]):O,n[6]=$?_r(n[5],y):i[6]),O=i[7],O&&(n[7]=O),d&Y&&(n[8]=n[8]==null?i[8]:Ot(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=C,n}function oN(n){var i=[];if(n!=null)for(var s in at(n))i.push(s);return i}function iN(n){return Ua.call(n)}function Qm(n,i,s){return i=_t(i===o?n.length-1:i,0),function(){for(var d=arguments,C=-1,I=_t(d.length-i,0),v=G(I);++C<I;)v[C]=d[i+C];C=-1;for(var O=G(i+1);++C<i;)O[C]=d[C];return O[i]=s(v),Zt(n,this,O)}}function Zm(n,i){return i.length<2?n:ro(n,yn(i,0,-1))}function aN(n,i){for(var s=n.length,d=Ot(i.length,s),C=Ht(n);d--;){var I=i[d];n[d]=ir(I,s)?C[I]:o}return n}function Xc(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var Xm=eg(Cm),Bi=CA||function(n,i){return Tt.setTimeout(n,i)},Jc=eg(TT);function Jm(n,i,s){var d=i+"";return Jc(n,ZT(d,sN(KT(d),s)))}function eg(n){var i=0,s=0;return function(){var d=IA(),C=ye-(d-s);if(s=d,C>0){if(++i>=se)return arguments[0]}else i=0;return n.apply(o,arguments)}}function ps(n,i){var s=-1,d=n.length,C=d-1;for(i=i===o?d:i;++s<i;){var I=Oc(s,C),v=n[I];n[I]=n[s],n[s]=v}return n.length=i,n}var tg=nN(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(tc,function(s,d,C,I){i.push(C?I.replace(ct,"$1"):d||s)}),i});function Fn(n){if(typeof n=="string"||en(n))return n;var i=n+"";return i=="0"&&1/n==-V?"-0":i}function io(n){if(n!=null){try{return ja.call(n)}catch{}try{return n+""}catch{}}return""}function sN(n,i){return pn(Se,function(s){var d="_."+s[0];i&s[1]&&!Va(n,d)&&n.push(d)}),n.sort()}function ng(n){if(n instanceof Fe)return n.clone();var i=new mn(n.__wrapped__,n.__chain__);return i.__actions__=Ht(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function lN(n,i,s){(s?Pt(n,i,s):i===o)?i=1:i=_t(Oe(i),0);var d=n==null?0:n.length;if(!d||i<1)return[];for(var C=0,I=0,v=G(qa(d/i));C<d;)v[I++]=yn(n,C,C+=i);return v}function cN(n){for(var i=-1,s=n==null?0:n.length,d=0,C=[];++i<s;){var I=n[i];I&&(C[d++]=I)}return C}function uN(){var n=arguments.length;if(!n)return[];for(var i=G(n-1),s=arguments[0],d=n;d--;)i[d-1]=arguments[d];return xr(Be(s)?Ht(s):[s],Nt(i,1))}var fN=ze(function(n,i){return bt(n)?ki(n,Nt(i,1,bt,!0)):[]}),dN=ze(function(n,i){var s=bn(i);return bt(s)&&(s=o),bt(n)?ki(n,Nt(i,1,bt,!0),_e(s,2)):[]}),pN=ze(function(n,i){var s=bn(i);return bt(s)&&(s=o),bt(n)?ki(n,Nt(i,1,bt,!0),o,s):[]});function hN(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===o?1:Oe(i),yn(n,i<0?0:i,d)):[]}function mN(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===o?1:Oe(i),i=d-i,yn(n,0,i<0?0:i)):[]}function gN(n,i){return n&&n.length?is(n,_e(i,3),!0,!0):[]}function yN(n,i){return n&&n.length?is(n,_e(i,3),!0):[]}function bN(n,i,s,d){var C=n==null?0:n.length;return C?(s&&typeof s!="number"&&Pt(n,i,s)&&(s=0,d=C),uT(n,i,s,d)):[]}function rg(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var C=s==null?0:Oe(s);return C<0&&(C=_t(d+C,0)),za(n,_e(i,3),C)}function og(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var C=d-1;return s!==o&&(C=Oe(s),C=s<0?_t(d+C,0):Ot(C,d-1)),za(n,_e(i,3),C,!0)}function ig(n){var i=n==null?0:n.length;return i?Nt(n,1):[]}function wN(n){var i=n==null?0:n.length;return i?Nt(n,V):[]}function EN(n,i){var s=n==null?0:n.length;return s?(i=i===o?1:Oe(i),Nt(n,i)):[]}function CN(n){for(var i=-1,s=n==null?0:n.length,d={};++i<s;){var C=n[i];d[C[0]]=C[1]}return d}function ag(n){return n&&n.length?n[0]:o}function SN(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var C=s==null?0:Oe(s);return C<0&&(C=_t(d+C,0)),No(n,i,C)}function xN(n){var i=n==null?0:n.length;return i?yn(n,0,-1):[]}var _N=ze(function(n){var i=ft(n,$c);return i.length&&i[0]===n[0]?Nc(i):[]}),IN=ze(function(n){var i=bn(n),s=ft(n,$c);return i===bn(s)?i=o:s.pop(),s.length&&s[0]===n[0]?Nc(s,_e(i,2)):[]}),kN=ze(function(n){var i=bn(n),s=ft(n,$c);return i=typeof i=="function"?i:o,i&&s.pop(),s.length&&s[0]===n[0]?Nc(s,o,i):[]});function MN(n,i){return n==null?"":xA.call(n,i)}function bn(n){var i=n==null?0:n.length;return i?n[i-1]:o}function AN(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var C=d;return s!==o&&(C=Oe(s),C=C<0?_t(d+C,0):Ot(C,d-1)),i===i?sA(n,i,C):za(n,$h,C,!0)}function TN(n,i){return n&&n.length?ym(n,Oe(i)):o}var NN=ze(sg);function sg(n,i){return n&&n.length&&i&&i.length?Lc(n,i):n}function vN(n,i,s){return n&&n.length&&i&&i.length?Lc(n,i,_e(s,2)):n}function BN(n,i,s){return n&&n.length&&i&&i.length?Lc(n,i,o,s):n}var DN=or(function(n,i){var s=n==null?0:n.length,d=kc(n,i);return Em(n,ft(i,function(C){return ir(C,s)?+C:C}).sort(Nm)),d});function LN(n,i){var s=[];if(!(n&&n.length))return s;var d=-1,C=[],I=n.length;for(i=_e(i,3);++d<I;){var v=n[d];i(v,d,n)&&(s.push(v),C.push(d))}return Em(n,C),s}function eu(n){return n==null?n:MA.call(n)}function ON(n,i,s){var d=n==null?0:n.length;return d?(s&&typeof s!="number"&&Pt(n,i,s)?(i=0,s=d):(i=i==null?0:Oe(i),s=s===o?d:Oe(s)),yn(n,i,s)):[]}function RN(n,i){return os(n,i)}function VN(n,i,s){return Vc(n,i,_e(s,2))}function zN(n,i){var s=n==null?0:n.length;if(s){var d=os(n,i);if(d<s&&An(n[d],i))return d}return-1}function PN(n,i){return os(n,i,!0)}function $N(n,i,s){return Vc(n,i,_e(s,2),!0)}function FN(n,i){var s=n==null?0:n.length;if(s){var d=os(n,i,!0)-1;if(An(n[d],i))return d}return-1}function jN(n){return n&&n.length?Sm(n):[]}function UN(n,i){return n&&n.length?Sm(n,_e(i,2)):[]}function HN(n){var i=n==null?0:n.length;return i?yn(n,1,i):[]}function WN(n,i,s){return n&&n.length?(i=s||i===o?1:Oe(i),yn(n,0,i<0?0:i)):[]}function YN(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===o?1:Oe(i),i=d-i,yn(n,i<0?0:i,d)):[]}function GN(n,i){return n&&n.length?is(n,_e(i,3),!1,!0):[]}function KN(n,i){return n&&n.length?is(n,_e(i,3)):[]}var qN=ze(function(n){return Mr(Nt(n,1,bt,!0))}),QN=ze(function(n){var i=bn(n);return bt(i)&&(i=o),Mr(Nt(n,1,bt,!0),_e(i,2))}),ZN=ze(function(n){var i=bn(n);return i=typeof i=="function"?i:o,Mr(Nt(n,1,bt,!0),o,i)});function XN(n){return n&&n.length?Mr(n):[]}function JN(n,i){return n&&n.length?Mr(n,_e(i,2)):[]}function ev(n,i){return i=typeof i=="function"?i:o,n&&n.length?Mr(n,o,i):[]}function tu(n){if(!(n&&n.length))return[];var i=0;return n=Sr(n,function(s){if(bt(s))return i=_t(s.length,i),!0}),bc(i,function(s){return ft(n,mc(s))})}function lg(n,i){if(!(n&&n.length))return[];var s=tu(n);return i==null?s:ft(s,function(d){return Zt(i,o,d)})}var tv=ze(function(n,i){return bt(n)?ki(n,i):[]}),nv=ze(function(n){return Pc(Sr(n,bt))}),rv=ze(function(n){var i=bn(n);return bt(i)&&(i=o),Pc(Sr(n,bt),_e(i,2))}),ov=ze(function(n){var i=bn(n);return i=typeof i=="function"?i:o,Pc(Sr(n,bt),o,i)}),iv=ze(tu);function av(n,i){return km(n||[],i||[],Ii)}function sv(n,i){return km(n||[],i||[],Ti)}var lv=ze(function(n){var i=n.length,s=i>1?n[i-1]:o;return s=typeof s=="function"?(n.pop(),s):o,lg(n,s)});function cg(n){var i=_(n);return i.__chain__=!0,i}function cv(n,i){return i(n),n}function hs(n,i){return i(n)}var uv=or(function(n){var i=n.length,s=i?n[0]:0,d=this.__wrapped__,C=function(I){return kc(I,n)};return i>1||this.__actions__.length||!(d instanceof Fe)||!ir(s)?this.thru(C):(d=d.slice(s,+s+(i?1:0)),d.__actions__.push({func:hs,args:[C],thisArg:o}),new mn(d,this.__chain__).thru(function(I){return i&&!I.length&&I.push(o),I}))});function fv(){return cg(this)}function dv(){return new mn(this.value(),this.__chain__)}function pv(){this.__values__===o&&(this.__values__=xg(this.value()));var n=this.__index__>=this.__values__.length,i=n?o:this.__values__[this.__index__++];return{done:n,value:i}}function hv(){return this}function mv(n){for(var i,s=this;s instanceof Ja;){var d=ng(s);d.__index__=0,d.__values__=o,i?C.__wrapped__=d:i=d;var C=d;s=s.__wrapped__}return C.__wrapped__=n,i}function gv(){var n=this.__wrapped__;if(n instanceof Fe){var i=n;return this.__actions__.length&&(i=new Fe(this)),i=i.reverse(),i.__actions__.push({func:hs,args:[eu],thisArg:o}),new mn(i,this.__chain__)}return this.thru(eu)}function yv(){return Im(this.__wrapped__,this.__actions__)}var bv=as(function(n,i,s){et.call(n,s)?++n[s]:nr(n,s,1)});function wv(n,i,s){var d=Be(n)?zh:cT;return s&&Pt(n,i,s)&&(i=o),d(n,_e(i,3))}function Ev(n,i){var s=Be(n)?Sr:lm;return s(n,_e(i,3))}var Cv=Rm(rg),Sv=Rm(og);function xv(n,i){return Nt(ms(n,i),1)}function _v(n,i){return Nt(ms(n,i),V)}function Iv(n,i,s){return s=s===o?1:Oe(s),Nt(ms(n,i),s)}function ug(n,i){var s=Be(n)?pn:kr;return s(n,_e(i,3))}function fg(n,i){var s=Be(n)?HM:sm;return s(n,_e(i,3))}var kv=as(function(n,i,s){et.call(n,s)?n[s].push(i):nr(n,s,[i])});function Mv(n,i,s,d){n=Wt(n)?n:jo(n),s=s&&!d?Oe(s):0;var C=n.length;return s<0&&(s=_t(C+s,0)),Es(n)?s<=C&&n.indexOf(i,s)>-1:!!C&&No(n,i,s)>-1}var Av=ze(function(n,i,s){var d=-1,C=typeof i=="function",I=Wt(n)?G(n.length):[];return kr(n,function(v){I[++d]=C?Zt(i,v,s):Mi(v,i,s)}),I}),Tv=as(function(n,i,s){nr(n,s,i)});function ms(n,i){var s=Be(n)?ft:hm;return s(n,_e(i,3))}function Nv(n,i,s,d){return n==null?[]:(Be(i)||(i=i==null?[]:[i]),s=d?o:s,Be(s)||(s=s==null?[]:[s]),bm(n,i,s))}var vv=as(function(n,i,s){n[s?0:1].push(i)},function(){return[[],[]]});function Bv(n,i,s){var d=Be(n)?pc:jh,C=arguments.length<3;return d(n,_e(i,4),s,C,kr)}function Dv(n,i,s){var d=Be(n)?WM:jh,C=arguments.length<3;return d(n,_e(i,4),s,C,sm)}function Lv(n,i){var s=Be(n)?Sr:lm;return s(n,bs(_e(i,3)))}function Ov(n){var i=Be(n)?rm:MT;return i(n)}function Rv(n,i,s){(s?Pt(n,i,s):i===o)?i=1:i=Oe(i);var d=Be(n)?oT:AT;return d(n,i)}function Vv(n){var i=Be(n)?iT:NT;return i(n)}function zv(n){if(n==null)return 0;if(Wt(n))return Es(n)?Bo(n):n.length;var i=Rt(n);return i==ot||i==Ue?n.size:Bc(n).length}function Pv(n,i,s){var d=Be(n)?hc:vT;return s&&Pt(n,i,s)&&(i=o),d(n,_e(i,3))}var $v=ze(function(n,i){if(n==null)return[];var s=i.length;return s>1&&Pt(n,i[0],i[1])?i=[]:s>2&&Pt(i[0],i[1],i[2])&&(i=[i[0]]),bm(n,Nt(i,1),[])}),gs=EA||function(){return Tt.Date.now()};function Fv(n,i){if(typeof i!="function")throw new hn(u);return n=Oe(n),function(){if(--n<1)return i.apply(this,arguments)}}function dg(n,i,s){return i=s?o:i,i=n&&i==null?n.length:i,rr(n,Y,o,o,o,o,i)}function pg(n,i){var s;if(typeof i!="function")throw new hn(u);return n=Oe(n),function(){return--n>0&&(s=i.apply(this,arguments)),n<=1&&(i=o),s}}var nu=ze(function(n,i,s){var d=N;if(s.length){var C=_r(s,$o(nu));d|=D}return rr(n,d,i,s,C)}),hg=ze(function(n,i,s){var d=N|k;if(s.length){var C=_r(s,$o(hg));d|=D}return rr(i,d,n,s,C)});function mg(n,i,s){i=s?o:i;var d=rr(n,B,o,o,o,o,o,i);return d.placeholder=mg.placeholder,d}function gg(n,i,s){i=s?o:i;var d=rr(n,H,o,o,o,o,o,i);return d.placeholder=gg.placeholder,d}function yg(n,i,s){var d,C,I,v,O,$,ne=0,re=!1,ce=!1,be=!0;if(typeof n!="function")throw new hn(u);i=wn(i)||0,dt(s)&&(re=!!s.leading,ce="maxWait"in s,I=ce?_t(wn(s.maxWait)||0,i):I,be="trailing"in s?!!s.trailing:be);function Ee(wt){var Tn=d,lr=C;return d=C=o,ne=wt,v=n.apply(lr,Tn),v}function ke(wt){return ne=wt,O=Bi($e,i),re?Ee(wt):v}function Ve(wt){var Tn=wt-$,lr=wt-ne,Rg=i-Tn;return ce?Ot(Rg,I-lr):Rg}function Me(wt){var Tn=wt-$,lr=wt-ne;return $===o||Tn>=i||Tn<0||ce&&lr>=I}function $e(){var wt=gs();if(Me(wt))return je(wt);O=Bi($e,Ve(wt))}function je(wt){return O=o,be&&d?Ee(wt):(d=C=o,v)}function tn(){O!==o&&Mm(O),ne=0,d=$=C=O=o}function $t(){return O===o?v:je(gs())}function nn(){var wt=gs(),Tn=Me(wt);if(d=arguments,C=this,$=wt,Tn){if(O===o)return ke($);if(ce)return Mm(O),O=Bi($e,i),Ee($)}return O===o&&(O=Bi($e,i)),v}return nn.cancel=tn,nn.flush=$t,nn}var jv=ze(function(n,i){return am(n,1,i)}),Uv=ze(function(n,i,s){return am(n,wn(i)||0,s)});function Hv(n){return rr(n,K)}function ys(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new hn(u);var s=function(){var d=arguments,C=i?i.apply(this,d):d[0],I=s.cache;if(I.has(C))return I.get(C);var v=n.apply(this,d);return s.cache=I.set(C,v)||I,v};return s.cache=new(ys.Cache||tr),s}ys.Cache=tr;function bs(n){if(typeof n!="function")throw new hn(u);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function Wv(n){return pg(2,n)}var Yv=BT(function(n,i){i=i.length==1&&Be(i[0])?ft(i[0],Xt(_e())):ft(Nt(i,1),Xt(_e()));var s=i.length;return ze(function(d){for(var C=-1,I=Ot(d.length,s);++C<I;)d[C]=i[C].call(this,d[C]);return Zt(n,this,d)})}),ru=ze(function(n,i){var s=_r(i,$o(ru));return rr(n,D,o,i,s)}),bg=ze(function(n,i){var s=_r(i,$o(bg));return rr(n,W,o,i,s)}),Gv=or(function(n,i){return rr(n,te,o,o,o,i)});function Kv(n,i){if(typeof n!="function")throw new hn(u);return i=i===o?i:Oe(i),ze(n,i)}function qv(n,i){if(typeof n!="function")throw new hn(u);return i=i==null?0:_t(Oe(i),0),ze(function(s){var d=s[i],C=Tr(s,0,i);return d&&xr(C,d),Zt(n,this,C)})}function Qv(n,i,s){var d=!0,C=!0;if(typeof n!="function")throw new hn(u);return dt(s)&&(d="leading"in s?!!s.leading:d,C="trailing"in s?!!s.trailing:C),yg(n,i,{leading:d,maxWait:i,trailing:C})}function Zv(n){return dg(n,1)}function Xv(n,i){return ru(Fc(i),n)}function Jv(){if(!arguments.length)return[];var n=arguments[0];return Be(n)?n:[n]}function e3(n){return gn(n,M)}function t3(n,i){return i=typeof i=="function"?i:o,gn(n,M,i)}function n3(n){return gn(n,w|M)}function r3(n,i){return i=typeof i=="function"?i:o,gn(n,w|M,i)}function o3(n,i){return i==null||im(n,i,It(i))}function An(n,i){return n===i||n!==n&&i!==i}var i3=us(Tc),a3=us(function(n,i){return n>=i}),ao=fm(function(){return arguments}())?fm:function(n){return mt(n)&&et.call(n,"callee")&&!Zh.call(n,"callee")},Be=G.isArray,s3=Bh?Xt(Bh):mT;function Wt(n){return n!=null&&ws(n.length)&&!ar(n)}function bt(n){return mt(n)&&Wt(n)}function l3(n){return n===!0||n===!1||mt(n)&&zt(n)==he}var Nr=SA||hu,c3=Dh?Xt(Dh):gT;function u3(n){return mt(n)&&n.nodeType===1&&!Di(n)}function f3(n){if(n==null)return!0;if(Wt(n)&&(Be(n)||typeof n=="string"||typeof n.splice=="function"||Nr(n)||Fo(n)||ao(n)))return!n.length;var i=Rt(n);if(i==ot||i==Ue)return!n.size;if(vi(n))return!Bc(n).length;for(var s in n)if(et.call(n,s))return!1;return!0}function d3(n,i){return Ai(n,i)}function p3(n,i,s){s=typeof s=="function"?s:o;var d=s?s(n,i):o;return d===o?Ai(n,i,o,s):!!d}function ou(n){if(!mt(n))return!1;var i=zt(n);return i==Le||i==xe||typeof n.message=="string"&&typeof n.name=="string"&&!Di(n)}function h3(n){return typeof n=="number"&&Jh(n)}function ar(n){if(!dt(n))return!1;var i=zt(n);return i==He||i==Pe||i==ae||i==Ge}function wg(n){return typeof n=="number"&&n==Oe(n)}function ws(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=F}function dt(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function mt(n){return n!=null&&typeof n=="object"}var Eg=Lh?Xt(Lh):bT;function m3(n,i){return n===i||vc(n,i,Kc(i))}function g3(n,i,s){return s=typeof s=="function"?s:o,vc(n,i,Kc(i),s)}function y3(n){return Cg(n)&&n!=+n}function b3(n){if(tN(n))throw new Ne(c);return dm(n)}function w3(n){return n===null}function E3(n){return n==null}function Cg(n){return typeof n=="number"||mt(n)&&zt(n)==St}function Di(n){if(!mt(n)||zt(n)!=j)return!1;var i=Ya(n);if(i===null)return!0;var s=et.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&ja.call(s)==gA}var iu=Oh?Xt(Oh):wT;function C3(n){return wg(n)&&n>=-F&&n<=F}var Sg=Rh?Xt(Rh):ET;function Es(n){return typeof n=="string"||!Be(n)&&mt(n)&&zt(n)==it}function en(n){return typeof n=="symbol"||mt(n)&&zt(n)==Lt}var Fo=Vh?Xt(Vh):CT;function S3(n){return n===o}function x3(n){return mt(n)&&Rt(n)==oe}function _3(n){return mt(n)&&zt(n)==Ae}var I3=us(Dc),k3=us(function(n,i){return n<=i});function xg(n){if(!n)return[];if(Wt(n))return Es(n)?kn(n):Ht(n);if(Ei&&n[Ei])return oA(n[Ei]());var i=Rt(n),s=i==ot?Ec:i==Ue?Pa:jo;return s(n)}function sr(n){if(!n)return n===0?n:0;if(n=wn(n),n===V||n===-V){var i=n<0?-1:1;return i*ie}return n===n?n:0}function Oe(n){var i=sr(n),s=i%1;return i===i?s?i-s:i:0}function _g(n){return n?no(Oe(n),0,de):0}function wn(n){if(typeof n=="number")return n;if(en(n))return ue;if(dt(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=dt(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=Uh(n);var s=Jn.test(n);return s||Da.test(n)?FM(n.slice(2),s?2:8):Ao.test(n)?ue:+n}function Ig(n){return $n(n,Yt(n))}function M3(n){return n?no(Oe(n),-F,F):n===0?n:0}function Je(n){return n==null?"":Jt(n)}var A3=zo(function(n,i){if(vi(i)||Wt(i)){$n(i,It(i),n);return}for(var s in i)et.call(i,s)&&Ii(n,s,i[s])}),kg=zo(function(n,i){$n(i,Yt(i),n)}),Cs=zo(function(n,i,s,d){$n(i,Yt(i),n,d)}),T3=zo(function(n,i,s,d){$n(i,It(i),n,d)}),N3=or(kc);function v3(n,i){var s=Vo(n);return i==null?s:om(s,i)}var B3=ze(function(n,i){n=at(n);var s=-1,d=i.length,C=d>2?i[2]:o;for(C&&Pt(i[0],i[1],C)&&(d=1);++s<d;)for(var I=i[s],v=Yt(I),O=-1,$=v.length;++O<$;){var ne=v[O],re=n[ne];(re===o||An(re,Lo[ne])&&!et.call(n,ne))&&(n[ne]=I[ne])}return n}),D3=ze(function(n){return n.push(o,Um),Zt(Mg,o,n)});function L3(n,i){return Ph(n,_e(i,3),Pn)}function O3(n,i){return Ph(n,_e(i,3),Ac)}function R3(n,i){return n==null?n:Mc(n,_e(i,3),Yt)}function V3(n,i){return n==null?n:cm(n,_e(i,3),Yt)}function z3(n,i){return n&&Pn(n,_e(i,3))}function P3(n,i){return n&&Ac(n,_e(i,3))}function $3(n){return n==null?[]:ns(n,It(n))}function F3(n){return n==null?[]:ns(n,Yt(n))}function au(n,i,s){var d=n==null?o:ro(n,i);return d===o?s:d}function j3(n,i){return n!=null&&Ym(n,i,fT)}function su(n,i){return n!=null&&Ym(n,i,dT)}var U3=zm(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=Ua.call(i)),n[i]=s},cu(Gt)),H3=zm(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=Ua.call(i)),et.call(n,i)?n[i].push(s):n[i]=[s]},_e),W3=ze(Mi);function It(n){return Wt(n)?nm(n):Bc(n)}function Yt(n){return Wt(n)?nm(n,!0):ST(n)}function Y3(n,i){var s={};return i=_e(i,3),Pn(n,function(d,C,I){nr(s,i(d,C,I),d)}),s}function G3(n,i){var s={};return i=_e(i,3),Pn(n,function(d,C,I){nr(s,C,i(d,C,I))}),s}var K3=zo(function(n,i,s){rs(n,i,s)}),Mg=zo(function(n,i,s,d){rs(n,i,s,d)}),q3=or(function(n,i){var s={};if(n==null)return s;var d=!1;i=ft(i,function(I){return I=Ar(I,n),d||(d=I.length>1),I}),$n(n,Yc(n),s),d&&(s=gn(s,w|b|M,UT));for(var C=i.length;C--;)zc(s,i[C]);return s});function Q3(n,i){return Ag(n,bs(_e(i)))}var Z3=or(function(n,i){return n==null?{}:_T(n,i)});function Ag(n,i){if(n==null)return{};var s=ft(Yc(n),function(d){return[d]});return i=_e(i),wm(n,s,function(d,C){return i(d,C[0])})}function X3(n,i,s){i=Ar(i,n);var d=-1,C=i.length;for(C||(C=1,n=o);++d<C;){var I=n==null?o:n[Fn(i[d])];I===o&&(d=C,I=s),n=ar(I)?I.call(n):I}return n}function J3(n,i,s){return n==null?n:Ti(n,i,s)}function eB(n,i,s,d){return d=typeof d=="function"?d:o,n==null?n:Ti(n,i,s,d)}var Tg=Fm(It),Ng=Fm(Yt);function tB(n,i,s){var d=Be(n),C=d||Nr(n)||Fo(n);if(i=_e(i,4),s==null){var I=n&&n.constructor;C?s=d?new I:[]:dt(n)?s=ar(I)?Vo(Ya(n)):{}:s={}}return(C?pn:Pn)(n,function(v,O,$){return i(s,v,O,$)}),s}function nB(n,i){return n==null?!0:zc(n,i)}function rB(n,i,s){return n==null?n:_m(n,i,Fc(s))}function oB(n,i,s,d){return d=typeof d=="function"?d:o,n==null?n:_m(n,i,Fc(s),d)}function jo(n){return n==null?[]:wc(n,It(n))}function iB(n){return n==null?[]:wc(n,Yt(n))}function aB(n,i,s){return s===o&&(s=i,i=o),s!==o&&(s=wn(s),s=s===s?s:0),i!==o&&(i=wn(i),i=i===i?i:0),no(wn(n),i,s)}function sB(n,i,s){return i=sr(i),s===o?(s=i,i=0):s=sr(s),n=wn(n),pT(n,i,s)}function lB(n,i,s){if(s&&typeof s!="boolean"&&Pt(n,i,s)&&(i=s=o),s===o&&(typeof i=="boolean"?(s=i,i=o):typeof n=="boolean"&&(s=n,n=o)),n===o&&i===o?(n=0,i=1):(n=sr(n),i===o?(i=n,n=0):i=sr(i)),n>i){var d=n;n=i,i=d}if(s||n%1||i%1){var C=em();return Ot(n+C*(i-n+$M("1e-"+((C+"").length-1))),i)}return Oc(n,i)}var cB=Po(function(n,i,s){return i=i.toLowerCase(),n+(s?vg(i):i)});function vg(n){return lu(Je(n).toLowerCase())}function Bg(n){return n=Je(n),n&&n.replace(fM,JM).replace(NM,"")}function uB(n,i,s){n=Je(n),i=Jt(i);var d=n.length;s=s===o?d:no(Oe(s),0,d);var C=s;return s-=i.length,s>=0&&n.slice(s,C)==i}function fB(n){return n=Je(n),n&&Ta.test(n)?n.replace(Aa,eA):n}function dB(n){return n=Je(n),n&&Ba.test(n)?n.replace(yi,"\\$&"):n}var pB=Po(function(n,i,s){return n+(s?"-":"")+i.toLowerCase()}),hB=Po(function(n,i,s){return n+(s?" ":"")+i.toLowerCase()}),mB=Om("toLowerCase");function gB(n,i,s){n=Je(n),i=Oe(i);var d=i?Bo(n):0;if(!i||d>=i)return n;var C=(i-d)/2;return cs(Qa(C),s)+n+cs(qa(C),s)}function yB(n,i,s){n=Je(n),i=Oe(i);var d=i?Bo(n):0;return i&&d<i?n+cs(i-d,s):n}function bB(n,i,s){n=Je(n),i=Oe(i);var d=i?Bo(n):0;return i&&d<i?cs(i-d,s)+n:n}function wB(n,i,s){return s||i==null?i=0:i&&(i=+i),kA(Je(n).replace(bi,""),i||0)}function EB(n,i,s){return(s?Pt(n,i,s):i===o)?i=1:i=Oe(i),Rc(Je(n),i)}function CB(){var n=arguments,i=Je(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var SB=Po(function(n,i,s){return n+(s?"_":"")+i.toLowerCase()});function xB(n,i,s){return s&&typeof s!="number"&&Pt(n,i,s)&&(i=s=o),s=s===o?de:s>>>0,s?(n=Je(n),n&&(typeof i=="string"||i!=null&&!iu(i))&&(i=Jt(i),!i&&vo(n))?Tr(kn(n),0,s):n.split(i,s)):[]}var _B=Po(function(n,i,s){return n+(s?" ":"")+lu(i)});function IB(n,i,s){return n=Je(n),s=s==null?0:no(Oe(s),0,n.length),i=Jt(i),n.slice(s,s+i.length)==i}function kB(n,i,s){var d=_.templateSettings;s&&Pt(n,i,s)&&(i=o),n=Je(n),i=Cs({},i,d,jm);var C=Cs({},i.imports,d.imports,jm),I=It(C),v=wc(C,I),O,$,ne=0,re=i.interpolate||La,ce="__p += '",be=Cc((i.escape||La).source+"|"+re.source+"|"+(re===va?zn:La).source+"|"+(i.evaluate||La).source+"|$","g"),Ee="//# sourceURL="+(et.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++OM+"]")+`
30
+ `;n.replace(be,function(Me,$e,je,tn,$t,nn){return je||(je=tn),ce+=n.slice(ne,nn).replace(dM,tA),$e&&(O=!0,ce+=`' +
31
31
  __e(`+$e+`) +
32
32
  '`),$t&&($=!0,ce+=`';
33
33
  `+$t+`;
@@ -43,12 +43,12 @@ __p += '`),je&&(ce+=`' +
43
43
  function print() { __p += __j.call(arguments, '') }
44
44
  `:`;
45
45
  `)+ce+`return __p
46
- }`;var Ve=Lg(function(){return Qe(I,Ee+"return "+ce).apply(o,v)});if(Ve.source=ce,ou(Ve))throw Ve;return Ve}function kB(n){return Je(n).toLowerCase()}function MB(n){return Je(n).toUpperCase()}function AB(n,i,s){if(n=Je(n),n&&(s||i===o))return Uh(n);if(!n||!(i=Jt(i)))return n;var d=kn(n),C=kn(i),I=Hh(d,C),v=Wh(d,C)+1;return Tr(d,I,v).join("")}function TB(n,i,s){if(n=Je(n),n&&(s||i===o))return n.slice(0,Gh(n)+1);if(!n||!(i=Jt(i)))return n;var d=kn(n),C=Wh(d,kn(i))+1;return Tr(d,0,C).join("")}function NB(n,i,s){if(n=Je(n),n&&(s||i===o))return n.replace(bi,"");if(!n||!(i=Jt(i)))return n;var d=kn(n),C=Hh(d,kn(i));return Tr(d,C).join("")}function vB(n,i){var s=q,d=X;if(dt(i)){var C="separator"in i?i.separator:C;s="length"in i?Oe(i.length):s,d="omission"in i?Jt(i.omission):d}n=Je(n);var I=n.length;if(vo(n)){var v=kn(n);I=v.length}if(s>=I)return n;var O=s-Bo(d);if(O<1)return d;var $=v?Tr(v,0,O).join(""):n.slice(0,O);if(C===o)return $+d;if(v&&(O+=$.length-O),iu(C)){if(n.slice(O).search(C)){var ne,re=$;for(C.global||(C=Cc(C.source,Je(Xn.exec(C))+"g")),C.lastIndex=0;ne=C.exec(re);)var ce=ne.index;$=$.slice(0,ce===o?O:ce)}}else if(n.indexOf(Jt(C),O)!=O){var be=$.lastIndexOf(C);be>-1&&($=$.slice(0,be))}return $+d}function BB(n){return n=Je(n),n&&Xl.test(n)?n.replace(Qr,sA):n}var DB=Po(function(n,i,s){return n+(s?" ":"")+i.toUpperCase()}),lu=Om("toUpperCase");function Dg(n,i,s){return n=Je(n),i=s?o:i,i===o?nA(n)?uA(n):GM(n):n.match(i)||[]}var Lg=ze(function(n,i){try{return Zt(n,o,i)}catch(s){return ou(s)?s:new Ne(s)}}),LB=or(function(n,i){return pn(i,function(s){s=Fn(s),nr(n,s,nu(n[s],n))}),n});function OB(n){var i=n==null?0:n.length,s=_e();return n=i?ft(n,function(d){if(typeof d[1]!="function")throw new hn(u);return[s(d[0]),d[1]]}):[],ze(function(d){for(var C=-1;++C<i;){var I=n[C];if(Zt(I[0],this,d))return Zt(I[1],this,d)}})}function RB(n){return sT(gn(n,w))}function cu(n){return function(){return n}}function VB(n,i){return n==null||n!==n?i:n}var zB=Vm(),PB=Vm(!0);function Gt(n){return n}function uu(n){return pm(typeof n=="function"?n:gn(n,w))}function $B(n){return mm(gn(n,w))}function FB(n,i){return gm(n,gn(i,w))}var jB=ze(function(n,i){return function(s){return Mi(s,n,i)}}),UB=ze(function(n,i){return function(s){return Mi(n,s,i)}});function fu(n,i,s){var d=It(i),C=ns(i,d);s==null&&!(dt(i)&&(C.length||!d.length))&&(s=i,i=n,n=this,C=ns(i,It(i)));var I=!(dt(s)&&"chain"in s)||!!s.chain,v=ar(n);return pn(C,function(O){var $=i[O];n[O]=$,v&&(n.prototype[O]=function(){var ne=this.__chain__;if(I||ne){var re=n(this.__wrapped__),ce=re.__actions__=Ht(this.__actions__);return ce.push({func:$,args:arguments,thisArg:n}),re.__chain__=ne,re}return $.apply(n,xr([this.value()],arguments))})}),n}function HB(){return Tt._===this&&(Tt._=gA),this}function du(){}function WB(n){return n=Oe(n),ze(function(i){return ym(i,n)})}var YB=Uc(ft),GB=Uc(zh),KB=Uc(hc);function Og(n){return Qc(n)?mc(Fn(n)):_T(n)}function qB(n){return function(i){return n==null?o:ro(n,i)}}var QB=Pm(),ZB=Pm(!0);function pu(){return[]}function hu(){return!1}function XB(){return{}}function JB(){return""}function eD(){return!0}function tD(n,i){if(n=Oe(n),n<1||n>F)return[];var s=de,d=Ot(n,de);i=_e(i),n-=de;for(var C=bc(d,i);++s<n;)i(s);return C}function nD(n){return Be(n)?ft(n,Fn):en(n)?[n]:Ht(tg(Je(n)))}function rD(n){var i=++hA;return Je(n)+i}var oD=ls(function(n,i){return n+i},0),iD=Hc("ceil"),aD=ls(function(n,i){return n/i},1),sD=Hc("floor");function lD(n){return n&&n.length?ts(n,Gt,Tc):o}function cD(n,i){return n&&n.length?ts(n,_e(i,2),Tc):o}function uD(n){return Fh(n,Gt)}function fD(n,i){return Fh(n,_e(i,2))}function dD(n){return n&&n.length?ts(n,Gt,Dc):o}function pD(n,i){return n&&n.length?ts(n,_e(i,2),Dc):o}var hD=ls(function(n,i){return n*i},1),mD=Hc("round"),gD=ls(function(n,i){return n-i},0);function yD(n){return n&&n.length?yc(n,Gt):0}function bD(n,i){return n&&n.length?yc(n,_e(i,2)):0}return _.after=$v,_.ary=dg,_.assign=M3,_.assignIn=kg,_.assignInWith=Cs,_.assignWith=A3,_.at=T3,_.before=pg,_.bind=nu,_.bindAll=LB,_.bindKey=hg,_.castArray=Xv,_.chain=cg,_.chunk=sN,_.compact=lN,_.concat=cN,_.cond=OB,_.conforms=RB,_.constant=cu,_.countBy=yv,_.create=N3,_.curry=mg,_.curryRight=gg,_.debounce=yg,_.defaults=v3,_.defaultsDeep=B3,_.defer=Fv,_.delay=jv,_.difference=uN,_.differenceBy=fN,_.differenceWith=dN,_.drop=pN,_.dropRight=hN,_.dropRightWhile=mN,_.dropWhile=gN,_.fill=yN,_.filter=wv,_.flatMap=Sv,_.flatMapDeep=xv,_.flatMapDepth=_v,_.flatten=ig,_.flattenDeep=bN,_.flattenDepth=wN,_.flip=Uv,_.flow=zB,_.flowRight=PB,_.fromPairs=EN,_.functions=P3,_.functionsIn=$3,_.groupBy=Iv,_.initial=SN,_.intersection=xN,_.intersectionBy=_N,_.intersectionWith=IN,_.invert=j3,_.invertBy=U3,_.invokeMap=Mv,_.iteratee=uu,_.keyBy=Av,_.keys=It,_.keysIn=Yt,_.map=ms,_.mapKeys=W3,_.mapValues=Y3,_.matches=$B,_.matchesProperty=FB,_.memoize=ys,_.merge=G3,_.mergeWith=Mg,_.method=jB,_.methodOf=UB,_.mixin=fu,_.negate=bs,_.nthArg=WB,_.omit=K3,_.omitBy=q3,_.once=Hv,_.orderBy=Tv,_.over=YB,_.overArgs=Wv,_.overEvery=GB,_.overSome=KB,_.partial=ru,_.partialRight=bg,_.partition=Nv,_.pick=Q3,_.pickBy=Ag,_.property=Og,_.propertyOf=qB,_.pull=TN,_.pullAll=sg,_.pullAllBy=NN,_.pullAllWith=vN,_.pullAt=BN,_.range=QB,_.rangeRight=ZB,_.rearg=Yv,_.reject=Dv,_.remove=DN,_.rest=Gv,_.reverse=eu,_.sampleSize=Ov,_.set=X3,_.setWith=J3,_.shuffle=Rv,_.slice=LN,_.sortBy=Pv,_.sortedUniq=FN,_.sortedUniqBy=jN,_.split=SB,_.spread=Kv,_.tail=UN,_.take=HN,_.takeRight=WN,_.takeRightWhile=YN,_.takeWhile=GN,_.tap=lv,_.throttle=qv,_.thru=hs,_.toArray=xg,_.toPairs=Tg,_.toPairsIn=Ng,_.toPath=nD,_.toPlainObject=Ig,_.transform=eB,_.unary=Qv,_.union=KN,_.unionBy=qN,_.unionWith=QN,_.uniq=ZN,_.uniqBy=XN,_.uniqWith=JN,_.unset=tB,_.unzip=tu,_.unzipWith=lg,_.update=nB,_.updateWith=rB,_.values=jo,_.valuesIn=oB,_.without=ev,_.words=Dg,_.wrap=Zv,_.xor=tv,_.xorBy=nv,_.xorWith=rv,_.zip=ov,_.zipObject=iv,_.zipObjectDeep=av,_.zipWith=sv,_.entries=Tg,_.entriesIn=Ng,_.extend=kg,_.extendWith=Cs,fu(_,_),_.add=oD,_.attempt=Lg,_.camelCase=lB,_.capitalize=vg,_.ceil=iD,_.clamp=iB,_.clone=Jv,_.cloneDeep=t3,_.cloneDeepWith=n3,_.cloneWith=e3,_.conformsTo=r3,_.deburr=Bg,_.defaultTo=VB,_.divide=aD,_.endsWith=cB,_.eq=An,_.escape=uB,_.escapeRegExp=fB,_.every=bv,_.find=Ev,_.findIndex=rg,_.findKey=D3,_.findLast=Cv,_.findLastIndex=og,_.findLastKey=L3,_.floor=sD,_.forEach=ug,_.forEachRight=fg,_.forIn=O3,_.forInRight=R3,_.forOwn=V3,_.forOwnRight=z3,_.get=au,_.gt=o3,_.gte=i3,_.has=F3,_.hasIn=su,_.head=ag,_.identity=Gt,_.includes=kv,_.indexOf=CN,_.inRange=aB,_.invoke=H3,_.isArguments=ao,_.isArray=Be,_.isArrayBuffer=a3,_.isArrayLike=Wt,_.isArrayLikeObject=bt,_.isBoolean=s3,_.isBuffer=Nr,_.isDate=l3,_.isElement=c3,_.isEmpty=u3,_.isEqual=f3,_.isEqualWith=d3,_.isError=ou,_.isFinite=p3,_.isFunction=ar,_.isInteger=wg,_.isLength=ws,_.isMap=Eg,_.isMatch=h3,_.isMatchWith=m3,_.isNaN=g3,_.isNative=y3,_.isNil=w3,_.isNull=b3,_.isNumber=Cg,_.isObject=dt,_.isObjectLike=mt,_.isPlainObject=Di,_.isRegExp=iu,_.isSafeInteger=E3,_.isSet=Sg,_.isString=Es,_.isSymbol=en,_.isTypedArray=Fo,_.isUndefined=C3,_.isWeakMap=S3,_.isWeakSet=x3,_.join=kN,_.kebabCase=dB,_.last=bn,_.lastIndexOf=MN,_.lowerCase=pB,_.lowerFirst=hB,_.lt=_3,_.lte=I3,_.max=lD,_.maxBy=cD,_.mean=uD,_.meanBy=fD,_.min=dD,_.minBy=pD,_.stubArray=pu,_.stubFalse=hu,_.stubObject=XB,_.stubString=JB,_.stubTrue=eD,_.multiply=hD,_.nth=AN,_.noConflict=HB,_.noop=du,_.now=gs,_.pad=mB,_.padEnd=gB,_.padStart=yB,_.parseInt=bB,_.random=sB,_.reduce=vv,_.reduceRight=Bv,_.repeat=wB,_.replace=EB,_.result=Z3,_.round=mD,_.runInContext=P,_.sample=Lv,_.size=Vv,_.snakeCase=CB,_.some=zv,_.sortedIndex=ON,_.sortedIndexBy=RN,_.sortedIndexOf=VN,_.sortedLastIndex=zN,_.sortedLastIndexBy=PN,_.sortedLastIndexOf=$N,_.startCase=xB,_.startsWith=_B,_.subtract=gD,_.sum=yD,_.sumBy=bD,_.template=IB,_.times=tD,_.toFinite=sr,_.toInteger=Oe,_.toLength=_g,_.toLower=kB,_.toNumber=wn,_.toSafeInteger=k3,_.toString=Je,_.toUpper=MB,_.trim=AB,_.trimEnd=TB,_.trimStart=NB,_.truncate=vB,_.unescape=BB,_.uniqueId=rD,_.upperCase=DB,_.upperFirst=lu,_.each=ug,_.eachRight=fg,_.first=ag,fu(_,function(){var n={};return Pn(_,function(i,s){et.call(_.prototype,s)||(n[s]=i)}),n}(),{chain:!1}),_.VERSION=a,pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){_[n].placeholder=_}),pn(["drop","take"],function(n,i){Fe.prototype[n]=function(s){s=s===o?1:_t(Oe(s),0);var d=this.__filtered__&&!i?new Fe(this):this.clone();return d.__filtered__?d.__takeCount__=Ot(s,d.__takeCount__):d.__views__.push({size:Ot(s,de),type:n+(d.__dir__<0?"Right":"")}),d},Fe.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),pn(["filter","map","takeWhile"],function(n,i){var s=i+1,d=s==le||s==R;Fe.prototype[n]=function(C){var I=this.clone();return I.__iteratees__.push({iteratee:_e(C,3),type:s}),I.__filtered__=I.__filtered__||d,I}}),pn(["head","last"],function(n,i){var s="take"+(i?"Right":"");Fe.prototype[n]=function(){return this[s](1).value()[0]}}),pn(["initial","tail"],function(n,i){var s="drop"+(i?"":"Right");Fe.prototype[n]=function(){return this.__filtered__?new Fe(this):this[s](1)}}),Fe.prototype.compact=function(){return this.filter(Gt)},Fe.prototype.find=function(n){return this.filter(n).head()},Fe.prototype.findLast=function(n){return this.reverse().find(n)},Fe.prototype.invokeMap=ze(function(n,i){return typeof n=="function"?new Fe(this):this.map(function(s){return Mi(s,n,i)})}),Fe.prototype.reject=function(n){return this.filter(bs(_e(n)))},Fe.prototype.slice=function(n,i){n=Oe(n);var s=this;return s.__filtered__&&(n>0||i<0)?new Fe(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),i!==o&&(i=Oe(i),s=i<0?s.dropRight(-i):s.take(i-n)),s)},Fe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Fe.prototype.toArray=function(){return this.take(de)},Pn(Fe.prototype,function(n,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),d=/^(?:head|last)$/.test(i),C=_[d?"take"+(i=="last"?"Right":""):i],I=d||/^find/.test(i);C&&(_.prototype[i]=function(){var v=this.__wrapped__,O=d?[1]:arguments,$=v instanceof Fe,ne=O[0],re=$||Be(v),ce=function($e){var je=C.apply(_,xr([$e],O));return d&&be?je[0]:je};re&&s&&typeof ne=="function"&&ne.length!=1&&($=re=!1);var be=this.__chain__,Ee=!!this.__actions__.length,ke=I&&!be,Ve=$&&!Ee;if(!I&&re){v=Ve?v:new Fe(this);var Me=n.apply(v,O);return Me.__actions__.push({func:hs,args:[ce],thisArg:o}),new mn(Me,be)}return ke&&Ve?n.apply(this,O):(Me=this.thru(ce),ke?d?Me.value()[0]:Me.value():Me)})}),pn(["pop","push","shift","sort","splice","unshift"],function(n){var i=$a[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",d=/^(?:pop|shift)$/.test(n);_.prototype[n]=function(){var C=arguments;if(d&&!this.__chain__){var I=this.value();return i.apply(Be(I)?I:[],C)}return this[s](function(v){return i.apply(Be(v)?v:[],C)})}}),Pn(Fe.prototype,function(n,i){var s=_[i];if(s){var d=s.name+"";et.call(Ro,d)||(Ro[d]=[]),Ro[d].push({name:i,func:s})}}),Ro[ss(o,k).name]=[{name:"wrapper",func:o}],Fe.prototype.clone=BA,Fe.prototype.reverse=DA,Fe.prototype.value=LA,_.prototype.at=cv,_.prototype.chain=uv,_.prototype.commit=fv,_.prototype.next=dv,_.prototype.plant=hv,_.prototype.reverse=mv,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=gv,_.prototype.first=_.prototype.head,Ei&&(_.prototype[Ei]=pv),_},Do=fA();Xr?((Xr.exports=Do)._=Do,uc._=Do):Tt._=Do}).call(On)}(ma,ma.exports);var Rn=ma.exports;const _o=kl(Rn);function Sp(e,r){return function(){return e.apply(r,arguments)}}const{toString:h_}=Object.prototype,{getPrototypeOf:Nl}=Object,ga=(e=>r=>{const o=h_.call(r);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),_n=e=>(e=e.toLowerCase(),r=>ga(r)===e),ya=e=>r=>typeof r===e,{isArray:Io}=Array,ui=ya("undefined");function m_(e){return e!==null&&!ui(e)&&e.constructor!==null&&!ui(e.constructor)&&cn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xp=_n("ArrayBuffer");function g_(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&xp(e.buffer),r}const y_=ya("string"),cn=ya("function"),_p=ya("number"),ba=e=>e!==null&&typeof e=="object",b_=e=>e===!0||e===!1,wa=e=>{if(ga(e)!=="object")return!1;const r=Nl(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},w_=_n("Date"),E_=_n("File"),C_=_n("Blob"),S_=_n("FileList"),x_=e=>ba(e)&&cn(e.pipe),__=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||cn(e.append)&&((r=ga(e))==="formdata"||r==="object"&&cn(e.toString)&&e.toString()==="[object FormData]"))},I_=_n("URLSearchParams"),[k_,M_,A_,T_]=["ReadableStream","Request","Response","Headers"].map(_n),N_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fi(e,r,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let a,l;if(typeof e!="object"&&(e=[e]),Io(e))for(a=0,l=e.length;a<l;a++)r.call(null,e[a],a,e);else{const c=o?Object.getOwnPropertyNames(e):Object.keys(e),u=c.length;let f;for(a=0;a<u;a++)f=c[a],r.call(null,e[f],f,e)}}function Ip(e,r){r=r.toLowerCase();const o=Object.keys(e);let a=o.length,l;for(;a-- >0;)if(l=o[a],r===l.toLowerCase())return l;return null}const kp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mp=e=>!ui(e)&&e!==kp;function vl(){const{caseless:e}=Mp(this)&&this||{},r={},o=(a,l)=>{const c=e&&Ip(r,l)||l;wa(r[c])&&wa(a)?r[c]=vl(r[c],a):wa(a)?r[c]=vl({},a):Io(a)?r[c]=a.slice():r[c]=a};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&fi(arguments[a],o);return r}const v_=(e,r,o,{allOwnKeys:a}={})=>(fi(r,(l,c)=>{o&&cn(l)?e[c]=Sp(l,o):e[c]=l},{allOwnKeys:a}),e),B_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),D_=(e,r,o,a)=>{e.prototype=Object.create(r.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),o&&Object.assign(e.prototype,o)},L_=(e,r,o,a)=>{let l,c,u;const f={};if(r=r||{},e==null)return r;do{for(l=Object.getOwnPropertyNames(e),c=l.length;c-- >0;)u=l[c],(!a||a(u,e,r))&&!f[u]&&(r[u]=e[u],f[u]=!0);e=o!==!1&&Nl(e)}while(e&&(!o||o(e,r))&&e!==Object.prototype);return r},O_=(e,r,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=r.length;const a=e.indexOf(r,o);return a!==-1&&a===o},R_=e=>{if(!e)return null;if(Io(e))return e;let r=e.length;if(!_p(r))return null;const o=new Array(r);for(;r-- >0;)o[r]=e[r];return o},V_=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&Nl(Uint8Array)),z_=(e,r)=>{const a=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=a.next())&&!l.done;){const c=l.value;r.call(e,c[0],c[1])}},P_=(e,r)=>{let o;const a=[];for(;(o=e.exec(r))!==null;)a.push(o);return a},$_=_n("HTMLFormElement"),F_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,l){return a.toUpperCase()+l}),Ap=(({hasOwnProperty:e})=>(r,o)=>e.call(r,o))(Object.prototype),j_=_n("RegExp"),Tp=(e,r)=>{const o=Object.getOwnPropertyDescriptors(e),a={};fi(o,(l,c)=>{let u;(u=r(l,c,e))!==!1&&(a[c]=u||l)}),Object.defineProperties(e,a)},U_=e=>{Tp(e,(r,o)=>{if(cn(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const a=e[o];if(cn(a)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},H_=(e,r)=>{const o={},a=l=>{l.forEach(c=>{o[c]=!0})};return Io(e)?a(e):a(String(e).split(r)),o},W_=()=>{},Y_=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,Bl="abcdefghijklmnopqrstuvwxyz",Np="0123456789",vp={DIGIT:Np,ALPHA:Bl,ALPHA_DIGIT:Bl+Bl.toUpperCase()+Np},G_=(e=16,r=vp.ALPHA_DIGIT)=>{let o="";const{length:a}=r;for(;e--;)o+=r[Math.random()*a|0];return o};function K_(e){return!!(e&&cn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const q_=e=>{const r=new Array(10),o=(a,l)=>{if(ba(a)){if(r.indexOf(a)>=0)return;if(!("toJSON"in a)){r[l]=a;const c=Io(a)?[]:{};return fi(a,(u,f)=>{const m=o(u,l+1);!ui(m)&&(c[f]=m)}),r[l]=void 0,c}}return a};return o(e,0)},Q_=_n("AsyncFunction"),Z={isArray:Io,isArrayBuffer:xp,isBuffer:m_,isFormData:__,isArrayBufferView:g_,isString:y_,isNumber:_p,isBoolean:b_,isObject:ba,isPlainObject:wa,isReadableStream:k_,isRequest:M_,isResponse:A_,isHeaders:T_,isUndefined:ui,isDate:w_,isFile:E_,isBlob:C_,isRegExp:j_,isFunction:cn,isStream:x_,isURLSearchParams:I_,isTypedArray:V_,isFileList:S_,forEach:fi,merge:vl,extend:v_,trim:N_,stripBOM:B_,inherits:D_,toFlatObject:L_,kindOf:ga,kindOfTest:_n,endsWith:O_,toArray:R_,forEachEntry:z_,matchAll:P_,isHTMLForm:$_,hasOwnProperty:Ap,hasOwnProp:Ap,reduceDescriptors:Tp,freezeMethods:U_,toObjectSet:H_,toCamelCase:F_,noop:W_,toFiniteNumber:Y_,findKey:Ip,global:kp,isContextDefined:Mp,ALPHABET:vp,generateString:G_,isSpecCompliantForm:K_,toJSONObject:q_,isAsyncFn:Q_,isThenable:e=>e&&(ba(e)||cn(e))&&cn(e.then)&&cn(e.catch)};function De(e,r,o,a,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),o&&(this.config=o),a&&(this.request=a),l&&(this.response=l)}Z.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Bp=De.prototype,Dp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Dp[e]={value:e}}),Object.defineProperties(De,Dp),Object.defineProperty(Bp,"isAxiosError",{value:!0}),De.from=(e,r,o,a,l,c)=>{const u=Object.create(Bp);return Z.toFlatObject(e,u,function(m){return m!==Error.prototype},f=>f!=="isAxiosError"),De.call(u,e.message,r,o,a,l),u.cause=e,u.name=e.name,c&&Object.assign(u,c),u};const Z_=null;function Dl(e){return Z.isPlainObject(e)||Z.isArray(e)}function Lp(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function Op(e,r,o){return e?e.concat(r).map(function(l,c){return l=Lp(l),!o&&c?"["+l+"]":l}).join(o?".":""):r}function X_(e){return Z.isArray(e)&&!e.some(Dl)}const J_=Z.toFlatObject(Z,{},null,function(r){return/^is[A-Z]/.test(r)});function Ea(e,r,o){if(!Z.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,o=Z.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,N){return!Z.isUndefined(N[S])});const a=o.metaTokens,l=o.visitor||y,c=o.dots,u=o.indexes,m=(o.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(r);if(!Z.isFunction(l))throw new TypeError("visitor must be a function");function g(E){if(E===null)return"";if(Z.isDate(E))return E.toISOString();if(!m&&Z.isBlob(E))throw new De("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(E)||Z.isTypedArray(E)?m&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function y(E,S,N){let k=E;if(E&&!N&&typeof E=="object"){if(Z.endsWith(S,"{}"))S=a?S:S.slice(0,-2),E=JSON.stringify(E);else if(Z.isArray(E)&&X_(E)||(Z.isFileList(E)||Z.endsWith(S,"[]"))&&(k=Z.toArray(E)))return S=Lp(S),k.forEach(function(B,H){!(Z.isUndefined(B)||B===null)&&r.append(u===!0?Op([S],H,c):u===null?S:S+"[]",g(B))}),!1}return Dl(E)?!0:(r.append(Op(N,S,c),g(E)),!1)}const w=[],b=Object.assign(J_,{defaultVisitor:y,convertValue:g,isVisitable:Dl});function M(E,S){if(!Z.isUndefined(E)){if(w.indexOf(E)!==-1)throw Error("Circular reference detected in "+S.join("."));w.push(E),Z.forEach(E,function(k,A){(!(Z.isUndefined(k)||k===null)&&l.call(r,k,Z.isString(A)?A.trim():A,S,b))===!0&&M(k,S?S.concat(A):[A])}),w.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return M(e),r}function Rp(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return r[a]})}function Ll(e,r){this._pairs=[],e&&Ea(e,this,r)}const Vp=Ll.prototype;Vp.append=function(r,o){this._pairs.push([r,o])},Vp.toString=function(r){const o=r?function(a){return r.call(this,a,Rp)}:Rp;return this._pairs.map(function(l){return o(l[0])+"="+o(l[1])},"").join("&")};function eI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zp(e,r,o){if(!r)return e;const a=o&&o.encode||eI,l=o&&o.serialize;let c;if(l?c=l(r,o):c=Z.isURLSearchParams(r)?r.toString():new Ll(r,o).toString(a),c){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class Pp{constructor(){this.handlers=[]}use(r,o,a){return this.handlers.push({fulfilled:r,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Z.forEach(this.handlers,function(a){a!==null&&r(a)})}}const $p={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tI={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ll,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ol=typeof window<"u"&&typeof document<"u",nI=(e=>Ol&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),rI=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oI=Ol&&window.location.href||"http://localhost",In={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ol,hasStandardBrowserEnv:nI,hasStandardBrowserWebWorkerEnv:rI,origin:oI},Symbol.toStringTag,{value:"Module"})),...tI};function iI(e,r){return Ea(e,new In.classes.URLSearchParams,Object.assign({visitor:function(o,a,l,c){return In.isNode&&Z.isBuffer(o)?(this.append(a,o.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function aI(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function sI(e){const r={},o=Object.keys(e);let a;const l=o.length;let c;for(a=0;a<l;a++)c=o[a],r[c]=e[c];return r}function Fp(e){function r(o,a,l,c){let u=o[c++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),m=c>=o.length;return u=!u&&Z.isArray(l)?l.length:u,m?(Z.hasOwnProp(l,u)?l[u]=[l[u],a]:l[u]=a,!f):((!l[u]||!Z.isObject(l[u]))&&(l[u]=[]),r(o,a,l[u],c)&&Z.isArray(l[u])&&(l[u]=sI(l[u])),!f)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const o={};return Z.forEachEntry(e,(a,l)=>{r(aI(a),l,o,0)}),o}return null}function lI(e,r,o){if(Z.isString(e))try{return(r||JSON.parse)(e),Z.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(o||JSON.stringify)(e)}const di={transitional:$p,adapter:["xhr","http","fetch"],transformRequest:[function(r,o){const a=o.getContentType()||"",l=a.indexOf("application/json")>-1,c=Z.isObject(r);if(c&&Z.isHTMLForm(r)&&(r=new FormData(r)),Z.isFormData(r))return l?JSON.stringify(Fp(r)):r;if(Z.isArrayBuffer(r)||Z.isBuffer(r)||Z.isStream(r)||Z.isFile(r)||Z.isBlob(r)||Z.isReadableStream(r))return r;if(Z.isArrayBufferView(r))return r.buffer;if(Z.isURLSearchParams(r))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let f;if(c){if(a.indexOf("application/x-www-form-urlencoded")>-1)return iI(r,this.formSerializer).toString();if((f=Z.isFileList(r))||a.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Ea(f?{"files[]":r}:r,m&&new m,this.formSerializer)}}return c||l?(o.setContentType("application/json",!1),lI(r)):r}],transformResponse:[function(r){const o=this.transitional||di.transitional,a=o&&o.forcedJSONParsing,l=this.responseType==="json";if(Z.isResponse(r)||Z.isReadableStream(r))return r;if(r&&Z.isString(r)&&(a&&!this.responseType||l)){const u=!(o&&o.silentJSONParsing)&&l;try{return JSON.parse(r)}catch(f){if(u)throw f.name==="SyntaxError"?De.from(f,De.ERR_BAD_RESPONSE,this,null,this.response):f}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:In.classes.FormData,Blob:In.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{di.headers[e]={}});const cI=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uI=e=>{const r={};let o,a,l;return e&&e.split(`
46
+ }`;var Ve=Lg(function(){return Qe(I,Ee+"return "+ce).apply(o,v)});if(Ve.source=ce,ou(Ve))throw Ve;return Ve}function MB(n){return Je(n).toLowerCase()}function AB(n){return Je(n).toUpperCase()}function TB(n,i,s){if(n=Je(n),n&&(s||i===o))return Uh(n);if(!n||!(i=Jt(i)))return n;var d=kn(n),C=kn(i),I=Hh(d,C),v=Wh(d,C)+1;return Tr(d,I,v).join("")}function NB(n,i,s){if(n=Je(n),n&&(s||i===o))return n.slice(0,Gh(n)+1);if(!n||!(i=Jt(i)))return n;var d=kn(n),C=Wh(d,kn(i))+1;return Tr(d,0,C).join("")}function vB(n,i,s){if(n=Je(n),n&&(s||i===o))return n.replace(bi,"");if(!n||!(i=Jt(i)))return n;var d=kn(n),C=Hh(d,kn(i));return Tr(d,C).join("")}function BB(n,i){var s=q,d=X;if(dt(i)){var C="separator"in i?i.separator:C;s="length"in i?Oe(i.length):s,d="omission"in i?Jt(i.omission):d}n=Je(n);var I=n.length;if(vo(n)){var v=kn(n);I=v.length}if(s>=I)return n;var O=s-Bo(d);if(O<1)return d;var $=v?Tr(v,0,O).join(""):n.slice(0,O);if(C===o)return $+d;if(v&&(O+=$.length-O),iu(C)){if(n.slice(O).search(C)){var ne,re=$;for(C.global||(C=Cc(C.source,Je(Xn.exec(C))+"g")),C.lastIndex=0;ne=C.exec(re);)var ce=ne.index;$=$.slice(0,ce===o?O:ce)}}else if(n.indexOf(Jt(C),O)!=O){var be=$.lastIndexOf(C);be>-1&&($=$.slice(0,be))}return $+d}function DB(n){return n=Je(n),n&&Xl.test(n)?n.replace(Qr,lA):n}var LB=Po(function(n,i,s){return n+(s?" ":"")+i.toUpperCase()}),lu=Om("toUpperCase");function Dg(n,i,s){return n=Je(n),i=s?o:i,i===o?rA(n)?fA(n):KM(n):n.match(i)||[]}var Lg=ze(function(n,i){try{return Zt(n,o,i)}catch(s){return ou(s)?s:new Ne(s)}}),OB=or(function(n,i){return pn(i,function(s){s=Fn(s),nr(n,s,nu(n[s],n))}),n});function RB(n){var i=n==null?0:n.length,s=_e();return n=i?ft(n,function(d){if(typeof d[1]!="function")throw new hn(u);return[s(d[0]),d[1]]}):[],ze(function(d){for(var C=-1;++C<i;){var I=n[C];if(Zt(I[0],this,d))return Zt(I[1],this,d)}})}function VB(n){return lT(gn(n,w))}function cu(n){return function(){return n}}function zB(n,i){return n==null||n!==n?i:n}var PB=Vm(),$B=Vm(!0);function Gt(n){return n}function uu(n){return pm(typeof n=="function"?n:gn(n,w))}function FB(n){return mm(gn(n,w))}function jB(n,i){return gm(n,gn(i,w))}var UB=ze(function(n,i){return function(s){return Mi(s,n,i)}}),HB=ze(function(n,i){return function(s){return Mi(n,s,i)}});function fu(n,i,s){var d=It(i),C=ns(i,d);s==null&&!(dt(i)&&(C.length||!d.length))&&(s=i,i=n,n=this,C=ns(i,It(i)));var I=!(dt(s)&&"chain"in s)||!!s.chain,v=ar(n);return pn(C,function(O){var $=i[O];n[O]=$,v&&(n.prototype[O]=function(){var ne=this.__chain__;if(I||ne){var re=n(this.__wrapped__),ce=re.__actions__=Ht(this.__actions__);return ce.push({func:$,args:arguments,thisArg:n}),re.__chain__=ne,re}return $.apply(n,xr([this.value()],arguments))})}),n}function WB(){return Tt._===this&&(Tt._=yA),this}function du(){}function YB(n){return n=Oe(n),ze(function(i){return ym(i,n)})}var GB=Uc(ft),KB=Uc(zh),qB=Uc(hc);function Og(n){return Qc(n)?mc(Fn(n)):IT(n)}function QB(n){return function(i){return n==null?o:ro(n,i)}}var ZB=Pm(),XB=Pm(!0);function pu(){return[]}function hu(){return!1}function JB(){return{}}function eD(){return""}function tD(){return!0}function nD(n,i){if(n=Oe(n),n<1||n>F)return[];var s=de,d=Ot(n,de);i=_e(i),n-=de;for(var C=bc(d,i);++s<n;)i(s);return C}function rD(n){return Be(n)?ft(n,Fn):en(n)?[n]:Ht(tg(Je(n)))}function oD(n){var i=++mA;return Je(n)+i}var iD=ls(function(n,i){return n+i},0),aD=Hc("ceil"),sD=ls(function(n,i){return n/i},1),lD=Hc("floor");function cD(n){return n&&n.length?ts(n,Gt,Tc):o}function uD(n,i){return n&&n.length?ts(n,_e(i,2),Tc):o}function fD(n){return Fh(n,Gt)}function dD(n,i){return Fh(n,_e(i,2))}function pD(n){return n&&n.length?ts(n,Gt,Dc):o}function hD(n,i){return n&&n.length?ts(n,_e(i,2),Dc):o}var mD=ls(function(n,i){return n*i},1),gD=Hc("round"),yD=ls(function(n,i){return n-i},0);function bD(n){return n&&n.length?yc(n,Gt):0}function wD(n,i){return n&&n.length?yc(n,_e(i,2)):0}return _.after=Fv,_.ary=dg,_.assign=A3,_.assignIn=kg,_.assignInWith=Cs,_.assignWith=T3,_.at=N3,_.before=pg,_.bind=nu,_.bindAll=OB,_.bindKey=hg,_.castArray=Jv,_.chain=cg,_.chunk=lN,_.compact=cN,_.concat=uN,_.cond=RB,_.conforms=VB,_.constant=cu,_.countBy=bv,_.create=v3,_.curry=mg,_.curryRight=gg,_.debounce=yg,_.defaults=B3,_.defaultsDeep=D3,_.defer=jv,_.delay=Uv,_.difference=fN,_.differenceBy=dN,_.differenceWith=pN,_.drop=hN,_.dropRight=mN,_.dropRightWhile=gN,_.dropWhile=yN,_.fill=bN,_.filter=Ev,_.flatMap=xv,_.flatMapDeep=_v,_.flatMapDepth=Iv,_.flatten=ig,_.flattenDeep=wN,_.flattenDepth=EN,_.flip=Hv,_.flow=PB,_.flowRight=$B,_.fromPairs=CN,_.functions=$3,_.functionsIn=F3,_.groupBy=kv,_.initial=xN,_.intersection=_N,_.intersectionBy=IN,_.intersectionWith=kN,_.invert=U3,_.invertBy=H3,_.invokeMap=Av,_.iteratee=uu,_.keyBy=Tv,_.keys=It,_.keysIn=Yt,_.map=ms,_.mapKeys=Y3,_.mapValues=G3,_.matches=FB,_.matchesProperty=jB,_.memoize=ys,_.merge=K3,_.mergeWith=Mg,_.method=UB,_.methodOf=HB,_.mixin=fu,_.negate=bs,_.nthArg=YB,_.omit=q3,_.omitBy=Q3,_.once=Wv,_.orderBy=Nv,_.over=GB,_.overArgs=Yv,_.overEvery=KB,_.overSome=qB,_.partial=ru,_.partialRight=bg,_.partition=vv,_.pick=Z3,_.pickBy=Ag,_.property=Og,_.propertyOf=QB,_.pull=NN,_.pullAll=sg,_.pullAllBy=vN,_.pullAllWith=BN,_.pullAt=DN,_.range=ZB,_.rangeRight=XB,_.rearg=Gv,_.reject=Lv,_.remove=LN,_.rest=Kv,_.reverse=eu,_.sampleSize=Rv,_.set=J3,_.setWith=eB,_.shuffle=Vv,_.slice=ON,_.sortBy=$v,_.sortedUniq=jN,_.sortedUniqBy=UN,_.split=xB,_.spread=qv,_.tail=HN,_.take=WN,_.takeRight=YN,_.takeRightWhile=GN,_.takeWhile=KN,_.tap=cv,_.throttle=Qv,_.thru=hs,_.toArray=xg,_.toPairs=Tg,_.toPairsIn=Ng,_.toPath=rD,_.toPlainObject=Ig,_.transform=tB,_.unary=Zv,_.union=qN,_.unionBy=QN,_.unionWith=ZN,_.uniq=XN,_.uniqBy=JN,_.uniqWith=ev,_.unset=nB,_.unzip=tu,_.unzipWith=lg,_.update=rB,_.updateWith=oB,_.values=jo,_.valuesIn=iB,_.without=tv,_.words=Dg,_.wrap=Xv,_.xor=nv,_.xorBy=rv,_.xorWith=ov,_.zip=iv,_.zipObject=av,_.zipObjectDeep=sv,_.zipWith=lv,_.entries=Tg,_.entriesIn=Ng,_.extend=kg,_.extendWith=Cs,fu(_,_),_.add=iD,_.attempt=Lg,_.camelCase=cB,_.capitalize=vg,_.ceil=aD,_.clamp=aB,_.clone=e3,_.cloneDeep=n3,_.cloneDeepWith=r3,_.cloneWith=t3,_.conformsTo=o3,_.deburr=Bg,_.defaultTo=zB,_.divide=sD,_.endsWith=uB,_.eq=An,_.escape=fB,_.escapeRegExp=dB,_.every=wv,_.find=Cv,_.findIndex=rg,_.findKey=L3,_.findLast=Sv,_.findLastIndex=og,_.findLastKey=O3,_.floor=lD,_.forEach=ug,_.forEachRight=fg,_.forIn=R3,_.forInRight=V3,_.forOwn=z3,_.forOwnRight=P3,_.get=au,_.gt=i3,_.gte=a3,_.has=j3,_.hasIn=su,_.head=ag,_.identity=Gt,_.includes=Mv,_.indexOf=SN,_.inRange=sB,_.invoke=W3,_.isArguments=ao,_.isArray=Be,_.isArrayBuffer=s3,_.isArrayLike=Wt,_.isArrayLikeObject=bt,_.isBoolean=l3,_.isBuffer=Nr,_.isDate=c3,_.isElement=u3,_.isEmpty=f3,_.isEqual=d3,_.isEqualWith=p3,_.isError=ou,_.isFinite=h3,_.isFunction=ar,_.isInteger=wg,_.isLength=ws,_.isMap=Eg,_.isMatch=m3,_.isMatchWith=g3,_.isNaN=y3,_.isNative=b3,_.isNil=E3,_.isNull=w3,_.isNumber=Cg,_.isObject=dt,_.isObjectLike=mt,_.isPlainObject=Di,_.isRegExp=iu,_.isSafeInteger=C3,_.isSet=Sg,_.isString=Es,_.isSymbol=en,_.isTypedArray=Fo,_.isUndefined=S3,_.isWeakMap=x3,_.isWeakSet=_3,_.join=MN,_.kebabCase=pB,_.last=bn,_.lastIndexOf=AN,_.lowerCase=hB,_.lowerFirst=mB,_.lt=I3,_.lte=k3,_.max=cD,_.maxBy=uD,_.mean=fD,_.meanBy=dD,_.min=pD,_.minBy=hD,_.stubArray=pu,_.stubFalse=hu,_.stubObject=JB,_.stubString=eD,_.stubTrue=tD,_.multiply=mD,_.nth=TN,_.noConflict=WB,_.noop=du,_.now=gs,_.pad=gB,_.padEnd=yB,_.padStart=bB,_.parseInt=wB,_.random=lB,_.reduce=Bv,_.reduceRight=Dv,_.repeat=EB,_.replace=CB,_.result=X3,_.round=gD,_.runInContext=P,_.sample=Ov,_.size=zv,_.snakeCase=SB,_.some=Pv,_.sortedIndex=RN,_.sortedIndexBy=VN,_.sortedIndexOf=zN,_.sortedLastIndex=PN,_.sortedLastIndexBy=$N,_.sortedLastIndexOf=FN,_.startCase=_B,_.startsWith=IB,_.subtract=yD,_.sum=bD,_.sumBy=wD,_.template=kB,_.times=nD,_.toFinite=sr,_.toInteger=Oe,_.toLength=_g,_.toLower=MB,_.toNumber=wn,_.toSafeInteger=M3,_.toString=Je,_.toUpper=AB,_.trim=TB,_.trimEnd=NB,_.trimStart=vB,_.truncate=BB,_.unescape=DB,_.uniqueId=oD,_.upperCase=LB,_.upperFirst=lu,_.each=ug,_.eachRight=fg,_.first=ag,fu(_,function(){var n={};return Pn(_,function(i,s){et.call(_.prototype,s)||(n[s]=i)}),n}(),{chain:!1}),_.VERSION=a,pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){_[n].placeholder=_}),pn(["drop","take"],function(n,i){Fe.prototype[n]=function(s){s=s===o?1:_t(Oe(s),0);var d=this.__filtered__&&!i?new Fe(this):this.clone();return d.__filtered__?d.__takeCount__=Ot(s,d.__takeCount__):d.__views__.push({size:Ot(s,de),type:n+(d.__dir__<0?"Right":"")}),d},Fe.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),pn(["filter","map","takeWhile"],function(n,i){var s=i+1,d=s==le||s==R;Fe.prototype[n]=function(C){var I=this.clone();return I.__iteratees__.push({iteratee:_e(C,3),type:s}),I.__filtered__=I.__filtered__||d,I}}),pn(["head","last"],function(n,i){var s="take"+(i?"Right":"");Fe.prototype[n]=function(){return this[s](1).value()[0]}}),pn(["initial","tail"],function(n,i){var s="drop"+(i?"":"Right");Fe.prototype[n]=function(){return this.__filtered__?new Fe(this):this[s](1)}}),Fe.prototype.compact=function(){return this.filter(Gt)},Fe.prototype.find=function(n){return this.filter(n).head()},Fe.prototype.findLast=function(n){return this.reverse().find(n)},Fe.prototype.invokeMap=ze(function(n,i){return typeof n=="function"?new Fe(this):this.map(function(s){return Mi(s,n,i)})}),Fe.prototype.reject=function(n){return this.filter(bs(_e(n)))},Fe.prototype.slice=function(n,i){n=Oe(n);var s=this;return s.__filtered__&&(n>0||i<0)?new Fe(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),i!==o&&(i=Oe(i),s=i<0?s.dropRight(-i):s.take(i-n)),s)},Fe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Fe.prototype.toArray=function(){return this.take(de)},Pn(Fe.prototype,function(n,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),d=/^(?:head|last)$/.test(i),C=_[d?"take"+(i=="last"?"Right":""):i],I=d||/^find/.test(i);C&&(_.prototype[i]=function(){var v=this.__wrapped__,O=d?[1]:arguments,$=v instanceof Fe,ne=O[0],re=$||Be(v),ce=function($e){var je=C.apply(_,xr([$e],O));return d&&be?je[0]:je};re&&s&&typeof ne=="function"&&ne.length!=1&&($=re=!1);var be=this.__chain__,Ee=!!this.__actions__.length,ke=I&&!be,Ve=$&&!Ee;if(!I&&re){v=Ve?v:new Fe(this);var Me=n.apply(v,O);return Me.__actions__.push({func:hs,args:[ce],thisArg:o}),new mn(Me,be)}return ke&&Ve?n.apply(this,O):(Me=this.thru(ce),ke?d?Me.value()[0]:Me.value():Me)})}),pn(["pop","push","shift","sort","splice","unshift"],function(n){var i=$a[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",d=/^(?:pop|shift)$/.test(n);_.prototype[n]=function(){var C=arguments;if(d&&!this.__chain__){var I=this.value();return i.apply(Be(I)?I:[],C)}return this[s](function(v){return i.apply(Be(v)?v:[],C)})}}),Pn(Fe.prototype,function(n,i){var s=_[i];if(s){var d=s.name+"";et.call(Ro,d)||(Ro[d]=[]),Ro[d].push({name:i,func:s})}}),Ro[ss(o,k).name]=[{name:"wrapper",func:o}],Fe.prototype.clone=DA,Fe.prototype.reverse=LA,Fe.prototype.value=OA,_.prototype.at=uv,_.prototype.chain=fv,_.prototype.commit=dv,_.prototype.next=pv,_.prototype.plant=mv,_.prototype.reverse=gv,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=yv,_.prototype.first=_.prototype.head,Ei&&(_.prototype[Ei]=hv),_},Do=dA();Xr?((Xr.exports=Do)._=Do,uc._=Do):Tt._=Do}).call(On)}(ma,ma.exports);var Rn=ma.exports;const _o=kl(Rn);function Sp(e,r){return function(){return e.apply(r,arguments)}}const{toString:h_}=Object.prototype,{getPrototypeOf:Nl}=Object,ga=(e=>r=>{const o=h_.call(r);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),_n=e=>(e=e.toLowerCase(),r=>ga(r)===e),ya=e=>r=>typeof r===e,{isArray:Io}=Array,ui=ya("undefined");function m_(e){return e!==null&&!ui(e)&&e.constructor!==null&&!ui(e.constructor)&&cn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xp=_n("ArrayBuffer");function g_(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&xp(e.buffer),r}const y_=ya("string"),cn=ya("function"),_p=ya("number"),ba=e=>e!==null&&typeof e=="object",b_=e=>e===!0||e===!1,wa=e=>{if(ga(e)!=="object")return!1;const r=Nl(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},w_=_n("Date"),E_=_n("File"),C_=_n("Blob"),S_=_n("FileList"),x_=e=>ba(e)&&cn(e.pipe),__=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||cn(e.append)&&((r=ga(e))==="formdata"||r==="object"&&cn(e.toString)&&e.toString()==="[object FormData]"))},I_=_n("URLSearchParams"),[k_,M_,A_,T_]=["ReadableStream","Request","Response","Headers"].map(_n),N_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fi(e,r,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let a,l;if(typeof e!="object"&&(e=[e]),Io(e))for(a=0,l=e.length;a<l;a++)r.call(null,e[a],a,e);else{const c=o?Object.getOwnPropertyNames(e):Object.keys(e),u=c.length;let f;for(a=0;a<u;a++)f=c[a],r.call(null,e[f],f,e)}}function Ip(e,r){r=r.toLowerCase();const o=Object.keys(e);let a=o.length,l;for(;a-- >0;)if(l=o[a],r===l.toLowerCase())return l;return null}const kp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mp=e=>!ui(e)&&e!==kp;function vl(){const{caseless:e}=Mp(this)&&this||{},r={},o=(a,l)=>{const c=e&&Ip(r,l)||l;wa(r[c])&&wa(a)?r[c]=vl(r[c],a):wa(a)?r[c]=vl({},a):Io(a)?r[c]=a.slice():r[c]=a};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&fi(arguments[a],o);return r}const v_=(e,r,o,{allOwnKeys:a}={})=>(fi(r,(l,c)=>{o&&cn(l)?e[c]=Sp(l,o):e[c]=l},{allOwnKeys:a}),e),B_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),D_=(e,r,o,a)=>{e.prototype=Object.create(r.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),o&&Object.assign(e.prototype,o)},L_=(e,r,o,a)=>{let l,c,u;const f={};if(r=r||{},e==null)return r;do{for(l=Object.getOwnPropertyNames(e),c=l.length;c-- >0;)u=l[c],(!a||a(u,e,r))&&!f[u]&&(r[u]=e[u],f[u]=!0);e=o!==!1&&Nl(e)}while(e&&(!o||o(e,r))&&e!==Object.prototype);return r},O_=(e,r,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=r.length;const a=e.indexOf(r,o);return a!==-1&&a===o},R_=e=>{if(!e)return null;if(Io(e))return e;let r=e.length;if(!_p(r))return null;const o=new Array(r);for(;r-- >0;)o[r]=e[r];return o},V_=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&Nl(Uint8Array)),z_=(e,r)=>{const a=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=a.next())&&!l.done;){const c=l.value;r.call(e,c[0],c[1])}},P_=(e,r)=>{let o;const a=[];for(;(o=e.exec(r))!==null;)a.push(o);return a},$_=_n("HTMLFormElement"),F_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,l){return a.toUpperCase()+l}),Ap=(({hasOwnProperty:e})=>(r,o)=>e.call(r,o))(Object.prototype),j_=_n("RegExp"),Tp=(e,r)=>{const o=Object.getOwnPropertyDescriptors(e),a={};fi(o,(l,c)=>{let u;(u=r(l,c,e))!==!1&&(a[c]=u||l)}),Object.defineProperties(e,a)},U_=e=>{Tp(e,(r,o)=>{if(cn(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const a=e[o];if(cn(a)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},H_=(e,r)=>{const o={},a=l=>{l.forEach(c=>{o[c]=!0})};return Io(e)?a(e):a(String(e).split(r)),o},W_=()=>{},Y_=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,Bl="abcdefghijklmnopqrstuvwxyz",Np="0123456789",vp={DIGIT:Np,ALPHA:Bl,ALPHA_DIGIT:Bl+Bl.toUpperCase()+Np},G_=(e=16,r=vp.ALPHA_DIGIT)=>{let o="";const{length:a}=r;for(;e--;)o+=r[Math.random()*a|0];return o};function K_(e){return!!(e&&cn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const q_=e=>{const r=new Array(10),o=(a,l)=>{if(ba(a)){if(r.indexOf(a)>=0)return;if(!("toJSON"in a)){r[l]=a;const c=Io(a)?[]:{};return fi(a,(u,f)=>{const m=o(u,l+1);!ui(m)&&(c[f]=m)}),r[l]=void 0,c}}return a};return o(e,0)},Q_=_n("AsyncFunction"),Z={isArray:Io,isArrayBuffer:xp,isBuffer:m_,isFormData:__,isArrayBufferView:g_,isString:y_,isNumber:_p,isBoolean:b_,isObject:ba,isPlainObject:wa,isReadableStream:k_,isRequest:M_,isResponse:A_,isHeaders:T_,isUndefined:ui,isDate:w_,isFile:E_,isBlob:C_,isRegExp:j_,isFunction:cn,isStream:x_,isURLSearchParams:I_,isTypedArray:V_,isFileList:S_,forEach:fi,merge:vl,extend:v_,trim:N_,stripBOM:B_,inherits:D_,toFlatObject:L_,kindOf:ga,kindOfTest:_n,endsWith:O_,toArray:R_,forEachEntry:z_,matchAll:P_,isHTMLForm:$_,hasOwnProperty:Ap,hasOwnProp:Ap,reduceDescriptors:Tp,freezeMethods:U_,toObjectSet:H_,toCamelCase:F_,noop:W_,toFiniteNumber:Y_,findKey:Ip,global:kp,isContextDefined:Mp,ALPHABET:vp,generateString:G_,isSpecCompliantForm:K_,toJSONObject:q_,isAsyncFn:Q_,isThenable:e=>e&&(ba(e)||cn(e))&&cn(e.then)&&cn(e.catch)};function De(e,r,o,a,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),o&&(this.config=o),a&&(this.request=a),l&&(this.response=l)}Z.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Bp=De.prototype,Dp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Dp[e]={value:e}}),Object.defineProperties(De,Dp),Object.defineProperty(Bp,"isAxiosError",{value:!0}),De.from=(e,r,o,a,l,c)=>{const u=Object.create(Bp);return Z.toFlatObject(e,u,function(m){return m!==Error.prototype},f=>f!=="isAxiosError"),De.call(u,e.message,r,o,a,l),u.cause=e,u.name=e.name,c&&Object.assign(u,c),u};const Z_=null;function Dl(e){return Z.isPlainObject(e)||Z.isArray(e)}function Lp(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function Op(e,r,o){return e?e.concat(r).map(function(l,c){return l=Lp(l),!o&&c?"["+l+"]":l}).join(o?".":""):r}function X_(e){return Z.isArray(e)&&!e.some(Dl)}const J_=Z.toFlatObject(Z,{},null,function(r){return/^is[A-Z]/.test(r)});function Ea(e,r,o){if(!Z.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,o=Z.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,N){return!Z.isUndefined(N[S])});const a=o.metaTokens,l=o.visitor||y,c=o.dots,u=o.indexes,m=(o.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(r);if(!Z.isFunction(l))throw new TypeError("visitor must be a function");function g(E){if(E===null)return"";if(Z.isDate(E))return E.toISOString();if(!m&&Z.isBlob(E))throw new De("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(E)||Z.isTypedArray(E)?m&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function y(E,S,N){let k=E;if(E&&!N&&typeof E=="object"){if(Z.endsWith(S,"{}"))S=a?S:S.slice(0,-2),E=JSON.stringify(E);else if(Z.isArray(E)&&X_(E)||(Z.isFileList(E)||Z.endsWith(S,"[]"))&&(k=Z.toArray(E)))return S=Lp(S),k.forEach(function(B,H){!(Z.isUndefined(B)||B===null)&&r.append(u===!0?Op([S],H,c):u===null?S:S+"[]",g(B))}),!1}return Dl(E)?!0:(r.append(Op(N,S,c),g(E)),!1)}const w=[],b=Object.assign(J_,{defaultVisitor:y,convertValue:g,isVisitable:Dl});function M(E,S){if(!Z.isUndefined(E)){if(w.indexOf(E)!==-1)throw Error("Circular reference detected in "+S.join("."));w.push(E),Z.forEach(E,function(k,A){(!(Z.isUndefined(k)||k===null)&&l.call(r,k,Z.isString(A)?A.trim():A,S,b))===!0&&M(k,S?S.concat(A):[A])}),w.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return M(e),r}function Rp(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return r[a]})}function Ll(e,r){this._pairs=[],e&&Ea(e,this,r)}const Vp=Ll.prototype;Vp.append=function(r,o){this._pairs.push([r,o])},Vp.toString=function(r){const o=r?function(a){return r.call(this,a,Rp)}:Rp;return this._pairs.map(function(l){return o(l[0])+"="+o(l[1])},"").join("&")};function eI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zp(e,r,o){if(!r)return e;const a=o&&o.encode||eI,l=o&&o.serialize;let c;if(l?c=l(r,o):c=Z.isURLSearchParams(r)?r.toString():new Ll(r,o).toString(a),c){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class Pp{constructor(){this.handlers=[]}use(r,o,a){return this.handlers.push({fulfilled:r,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Z.forEach(this.handlers,function(a){a!==null&&r(a)})}}const $p={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tI={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ll,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ol=typeof window<"u"&&typeof document<"u",nI=(e=>Ol&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),rI=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oI=Ol&&window.location.href||"http://localhost",In={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ol,hasStandardBrowserEnv:nI,hasStandardBrowserWebWorkerEnv:rI,origin:oI},Symbol.toStringTag,{value:"Module"})),...tI};function iI(e,r){return Ea(e,new In.classes.URLSearchParams,Object.assign({visitor:function(o,a,l,c){return In.isNode&&Z.isBuffer(o)?(this.append(a,o.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function aI(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function sI(e){const r={},o=Object.keys(e);let a;const l=o.length;let c;for(a=0;a<l;a++)c=o[a],r[c]=e[c];return r}function Fp(e){function r(o,a,l,c){let u=o[c++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),m=c>=o.length;return u=!u&&Z.isArray(l)?l.length:u,m?(Z.hasOwnProp(l,u)?l[u]=[l[u],a]:l[u]=a,!f):((!l[u]||!Z.isObject(l[u]))&&(l[u]=[]),r(o,a,l[u],c)&&Z.isArray(l[u])&&(l[u]=sI(l[u])),!f)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const o={};return Z.forEachEntry(e,(a,l)=>{r(aI(a),l,o,0)}),o}return null}function lI(e,r,o){if(Z.isString(e))try{return(r||JSON.parse)(e),Z.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(o||JSON.stringify)(e)}const di={transitional:$p,adapter:["xhr","http","fetch"],transformRequest:[function(r,o){const a=o.getContentType()||"",l=a.indexOf("application/json")>-1,c=Z.isObject(r);if(c&&Z.isHTMLForm(r)&&(r=new FormData(r)),Z.isFormData(r))return l?JSON.stringify(Fp(r)):r;if(Z.isArrayBuffer(r)||Z.isBuffer(r)||Z.isStream(r)||Z.isFile(r)||Z.isBlob(r)||Z.isReadableStream(r))return r;if(Z.isArrayBufferView(r))return r.buffer;if(Z.isURLSearchParams(r))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let f;if(c){if(a.indexOf("application/x-www-form-urlencoded")>-1)return iI(r,this.formSerializer).toString();if((f=Z.isFileList(r))||a.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Ea(f?{"files[]":r}:r,m&&new m,this.formSerializer)}}return c||l?(o.setContentType("application/json",!1),lI(r)):r}],transformResponse:[function(r){const o=this.transitional||di.transitional,a=o&&o.forcedJSONParsing,l=this.responseType==="json";if(Z.isResponse(r)||Z.isReadableStream(r))return r;if(r&&Z.isString(r)&&(a&&!this.responseType||l)){const u=!(o&&o.silentJSONParsing)&&l;try{return JSON.parse(r)}catch(f){if(u)throw f.name==="SyntaxError"?De.from(f,De.ERR_BAD_RESPONSE,this,null,this.response):f}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:In.classes.FormData,Blob:In.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{di.headers[e]={}});const cI=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uI=e=>{const r={};let o,a,l;return e&&e.split(`
47
47
  `).forEach(function(u){l=u.indexOf(":"),o=u.substring(0,l).trim().toLowerCase(),a=u.substring(l+1).trim(),!(!o||r[o]&&cI[o])&&(o==="set-cookie"?r[o]?r[o].push(a):r[o]=[a]:r[o]=r[o]?r[o]+", "+a:a)}),r},jp=Symbol("internals");function pi(e){return e&&String(e).trim().toLowerCase()}function Ca(e){return e===!1||e==null?e:Z.isArray(e)?e.map(Ca):String(e)}function fI(e){const r=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=o.exec(e);)r[a[1]]=a[2];return r}const dI=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rl(e,r,o,a,l){if(Z.isFunction(a))return a.call(this,r,o);if(l&&(r=o),!!Z.isString(r)){if(Z.isString(a))return r.indexOf(a)!==-1;if(Z.isRegExp(a))return a.test(r)}}function pI(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,o,a)=>o.toUpperCase()+a)}function hI(e,r){const o=Z.toCamelCase(" "+r);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+o,{value:function(l,c,u){return this[a].call(this,r,l,c,u)},configurable:!0})})}class Ut{constructor(r){r&&this.set(r)}set(r,o,a){const l=this;function c(f,m,g){const y=pi(m);if(!y)throw new Error("header name must be a non-empty string");const w=Z.findKey(l,y);(!w||l[w]===void 0||g===!0||g===void 0&&l[w]!==!1)&&(l[w||m]=Ca(f))}const u=(f,m)=>Z.forEach(f,(g,y)=>c(g,y,m));if(Z.isPlainObject(r)||r instanceof this.constructor)u(r,o);else if(Z.isString(r)&&(r=r.trim())&&!dI(r))u(uI(r),o);else if(Z.isHeaders(r))for(const[f,m]of r.entries())c(m,f,a);else r!=null&&c(o,r,a);return this}get(r,o){if(r=pi(r),r){const a=Z.findKey(this,r);if(a){const l=this[a];if(!o)return l;if(o===!0)return fI(l);if(Z.isFunction(o))return o.call(this,l,a);if(Z.isRegExp(o))return o.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,o){if(r=pi(r),r){const a=Z.findKey(this,r);return!!(a&&this[a]!==void 0&&(!o||Rl(this,this[a],a,o)))}return!1}delete(r,o){const a=this;let l=!1;function c(u){if(u=pi(u),u){const f=Z.findKey(a,u);f&&(!o||Rl(a,a[f],f,o))&&(delete a[f],l=!0)}}return Z.isArray(r)?r.forEach(c):c(r),l}clear(r){const o=Object.keys(this);let a=o.length,l=!1;for(;a--;){const c=o[a];(!r||Rl(this,this[c],c,r,!0))&&(delete this[c],l=!0)}return l}normalize(r){const o=this,a={};return Z.forEach(this,(l,c)=>{const u=Z.findKey(a,c);if(u){o[u]=Ca(l),delete o[c];return}const f=r?pI(c):String(c).trim();f!==c&&delete o[c],o[f]=Ca(l),a[f]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const o=Object.create(null);return Z.forEach(this,(a,l)=>{a!=null&&a!==!1&&(o[l]=r&&Z.isArray(a)?a.join(", "):a)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,o])=>r+": "+o).join(`
48
48
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...o){const a=new this(r);return o.forEach(l=>a.set(l)),a}static accessor(r){const a=(this[jp]=this[jp]={accessors:{}}).accessors,l=this.prototype;function c(u){const f=pi(u);a[f]||(hI(l,u),a[f]=!0)}return Z.isArray(r)?r.forEach(c):c(r),this}}Ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(Ut.prototype,({value:e},r)=>{let o=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(a){this[o]=a}}}),Z.freezeMethods(Ut);function Vl(e,r){const o=this||di,a=r||o,l=Ut.from(a.headers);let c=a.data;return Z.forEach(e,function(f){c=f.call(o,c,l.normalize(),r?r.status:void 0)}),l.normalize(),c}function Up(e){return!!(e&&e.__CANCEL__)}function ko(e,r,o){De.call(this,e??"canceled",De.ERR_CANCELED,r,o),this.name="CanceledError"}Z.inherits(ko,De,{__CANCEL__:!0});function Hp(e,r,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?e(o):r(new De("Request failed with status code "+o.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function mI(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function gI(e,r){e=e||10;const o=new Array(e),a=new Array(e);let l=0,c=0,u;return r=r!==void 0?r:1e3,function(m){const g=Date.now(),y=a[c];u||(u=g),o[l]=m,a[l]=g;let w=c,b=0;for(;w!==l;)b+=o[w++],w=w%e;if(l=(l+1)%e,l===c&&(c=(c+1)%e),g-u<r)return;const M=y&&g-y;return M?Math.round(b*1e3/M):void 0}}function yI(e,r){let o=0;const a=1e3/r;let l=null;return function(){const u=this===!0,f=Date.now();if(u||f-o>a)return l&&(clearTimeout(l),l=null),o=f,e.apply(null,arguments);l||(l=setTimeout(()=>(l=null,o=Date.now(),e.apply(null,arguments)),a-(f-o)))}}const Sa=(e,r,o=3)=>{let a=0;const l=gI(50,250);return yI(c=>{const u=c.loaded,f=c.lengthComputable?c.total:void 0,m=u-a,g=l(m),y=u<=f;a=u;const w={loaded:u,total:f,progress:f?u/f:void 0,bytes:m,rate:g||void 0,estimated:g&&f&&y?(f-u)/g:void 0,event:c,lengthComputable:f!=null};w[r?"download":"upload"]=!0,e(w)},o)},bI=In.hasStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let a;function l(c){let u=c;return r&&(o.setAttribute("href",u),u=o.href),o.setAttribute("href",u),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return a=l(window.location.href),function(u){const f=Z.isString(u)?l(u):u;return f.protocol===a.protocol&&f.host===a.host}}():function(){return function(){return!0}}(),wI=In.hasStandardBrowserEnv?{write(e,r,o,a,l,c){const u=[e+"="+encodeURIComponent(r)];Z.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),Z.isString(a)&&u.push("path="+a),Z.isString(l)&&u.push("domain="+l),c===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function EI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function CI(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function Wp(e,r){return e&&!EI(r)?CI(e,r):r}const Yp=e=>e instanceof Ut?{...e}:e;function Kr(e,r){r=r||{};const o={};function a(g,y,w){return Z.isPlainObject(g)&&Z.isPlainObject(y)?Z.merge.call({caseless:w},g,y):Z.isPlainObject(y)?Z.merge({},y):Z.isArray(y)?y.slice():y}function l(g,y,w){if(Z.isUndefined(y)){if(!Z.isUndefined(g))return a(void 0,g,w)}else return a(g,y,w)}function c(g,y){if(!Z.isUndefined(y))return a(void 0,y)}function u(g,y){if(Z.isUndefined(y)){if(!Z.isUndefined(g))return a(void 0,g)}else return a(void 0,y)}function f(g,y,w){if(w in r)return a(g,y);if(w in e)return a(void 0,g)}const m={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(g,y)=>l(Yp(g),Yp(y),!0)};return Z.forEach(Object.keys(Object.assign({},e,r)),function(y){const w=m[y]||l,b=w(e[y],r[y],y);Z.isUndefined(b)&&w!==f||(o[y]=b)}),o}const Gp=e=>{const r=Kr({},e);let{data:o,withXSRFToken:a,xsrfHeaderName:l,xsrfCookieName:c,headers:u,auth:f}=r;r.headers=u=Ut.from(u),r.url=zp(Wp(r.baseURL,r.url),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let m;if(Z.isFormData(o)){if(In.hasStandardBrowserEnv||In.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((m=u.getContentType())!==!1){const[g,...y]=m?m.split(";").map(w=>w.trim()).filter(Boolean):[];u.setContentType([g||"multipart/form-data",...y].join("; "))}}if(In.hasStandardBrowserEnv&&(a&&Z.isFunction(a)&&(a=a(r)),a||a!==!1&&bI(r.url))){const g=l&&c&&wI.read(c);g&&u.set(l,g)}return r},SI=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,a){const l=Gp(e);let c=l.data;const u=Ut.from(l.headers).normalize();let{responseType:f}=l,m;function g(){l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let y=new XMLHttpRequest;y.open(l.method.toUpperCase(),l.url,!0),y.timeout=l.timeout;function w(){if(!y)return;const M=Ut.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!f||f==="text"||f==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:M,config:e,request:y};Hp(function(k){o(k),g()},function(k){a(k),g()},S),y=null}"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(w)},y.onabort=function(){y&&(a(new De("Request aborted",De.ECONNABORTED,l,y)),y=null)},y.onerror=function(){a(new De("Network Error",De.ERR_NETWORK,l,y)),y=null},y.ontimeout=function(){let E=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const S=l.transitional||$p;l.timeoutErrorMessage&&(E=l.timeoutErrorMessage),a(new De(E,S.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,l,y)),y=null},c===void 0&&u.setContentType(null),"setRequestHeader"in y&&Z.forEach(u.toJSON(),function(E,S){y.setRequestHeader(S,E)}),Z.isUndefined(l.withCredentials)||(y.withCredentials=!!l.withCredentials),f&&f!=="json"&&(y.responseType=l.responseType),typeof l.onDownloadProgress=="function"&&y.addEventListener("progress",Sa(l.onDownloadProgress,!0)),typeof l.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",Sa(l.onUploadProgress)),(l.cancelToken||l.signal)&&(m=M=>{y&&(a(!M||M.type?new ko(null,e,y):M),y.abort(),y=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const b=mI(l.url);if(b&&In.protocols.indexOf(b)===-1){a(new De("Unsupported protocol "+b+":",De.ERR_BAD_REQUEST,e));return}y.send(c||null)})},xI=(e,r)=>{let o=new AbortController,a;const l=function(m){if(!a){a=!0,u();const g=m instanceof Error?m:this.reason;o.abort(g instanceof De?g:new ko(g instanceof Error?g.message:g))}};let c=r&&setTimeout(()=>{l(new De(`timeout ${r} of ms exceeded`,De.ETIMEDOUT))},r);const u=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(m=>{m&&(m.removeEventListener?m.removeEventListener("abort",l):m.unsubscribe(l))}),e=null)};e.forEach(m=>m&&m.addEventListener&&m.addEventListener("abort",l));const{signal:f}=o;return f.unsubscribe=u,[f,()=>{c&&clearTimeout(c),c=null}]},_I=function*(e,r){let o=e.byteLength;if(!r||o<r){yield e;return}let a=0,l;for(;a<o;)l=a+r,yield e.slice(a,l),a=l},II=async function*(e,r,o){for await(const a of e)yield*_I(ArrayBuffer.isView(a)?a:await o(String(a)),r)},Kp=(e,r,o,a,l)=>{const c=II(e,r,l);let u=0;return new ReadableStream({type:"bytes",async pull(f){const{done:m,value:g}=await c.next();if(m){f.close(),a();return}let y=g.byteLength;o&&o(u+=y),f.enqueue(new Uint8Array(g))},cancel(f){return a(f),c.return()}},{highWaterMark:2})},qp=(e,r)=>{const o=e!=null;return a=>setTimeout(()=>r({lengthComputable:o,total:e,loaded:a}))},xa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Qp=xa&&typeof ReadableStream=="function",zl=xa&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),kI=Qp&&(()=>{let e=!1;const r=new Request(In.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r})(),Zp=64*1024,Pl=Qp&&!!(()=>{try{return Z.isReadableStream(new Response("").body)}catch{}})(),_a={stream:Pl&&(e=>e.body)};xa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!_a[r]&&(_a[r]=Z.isFunction(e[r])?o=>o[r]():(o,a)=>{throw new De(`Response type '${r}' is not supported`,De.ERR_NOT_SUPPORT,a)})})})(new Response);const MI=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await zl(e)).byteLength},AI=async(e,r)=>{const o=Z.toFiniteNumber(e.getContentLength());return o??MI(r)},$l={http:Z_,xhr:SI,fetch:xa&&(async e=>{let{url:r,method:o,data:a,signal:l,cancelToken:c,timeout:u,onDownloadProgress:f,onUploadProgress:m,responseType:g,headers:y,withCredentials:w="same-origin",fetchOptions:b}=Gp(e);g=g?(g+"").toLowerCase():"text";let[M,E]=l||c||u?xI([l,c],u):[],S,N;const k=()=>{!S&&setTimeout(()=>{M&&M.unsubscribe()}),S=!0};let A;try{if(m&&kI&&o!=="get"&&o!=="head"&&(A=await AI(y,a))!==0){let W=new Request(r,{method:"POST",body:a,duplex:"half"}),Y;Z.isFormData(a)&&(Y=W.headers.get("content-type"))&&y.setContentType(Y),W.body&&(a=Kp(W.body,Zp,qp(A,Sa(m)),null,zl))}Z.isString(w)||(w=w?"cors":"omit"),N=new Request(r,{...b,signal:M,method:o.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",withCredentials:w});let B=await fetch(N);const H=Pl&&(g==="stream"||g==="response");if(Pl&&(f||H)){const W={};["status","statusText","headers"].forEach(te=>{W[te]=B[te]});const Y=Z.toFiniteNumber(B.headers.get("content-length"));B=new Response(Kp(B.body,Zp,f&&qp(Y,Sa(f,!0)),H&&k,zl),W)}g=g||"text";let D=await _a[Z.findKey(_a,g)||"text"](B,e);return!H&&k(),E&&E(),await new Promise((W,Y)=>{Hp(W,Y,{data:D,headers:Ut.from(B.headers),status:B.status,statusText:B.statusText,config:e,request:N})})}catch(B){throw k(),B&&B.name==="TypeError"&&/fetch/i.test(B.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,N),{cause:B.cause||B}):De.from(B,B&&B.code,e,N)}})};Z.forEach($l,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const Xp=e=>`- ${e}`,TI=e=>Z.isFunction(e)||e===null||e===!1,Jp={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:r}=e;let o,a;const l={};for(let c=0;c<r;c++){o=e[c];let u;if(a=o,!TI(o)&&(a=$l[(u=String(o)).toLowerCase()],a===void 0))throw new De(`Unknown adapter '${u}'`);if(a)break;l[u||"#"+c]=a}if(!a){const c=Object.entries(l).map(([f,m])=>`adapter ${f} `+(m===!1?"is not supported by the environment":"is not available in the build"));let u=r?c.length>1?`since :
49
49
  `+c.map(Xp).join(`
50
50
  `):" "+Xp(c[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return a},adapters:$l};function Fl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ko(null,e)}function eh(e){return Fl(e),e.headers=Ut.from(e.headers),e.data=Vl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jp.getAdapter(e.adapter||di.adapter)(e).then(function(a){return Fl(e),a.data=Vl.call(e,e.transformResponse,a),a.headers=Ut.from(a.headers),a},function(a){return Up(a)||(Fl(e),a&&a.response&&(a.response.data=Vl.call(e,e.transformResponse,a.response),a.response.headers=Ut.from(a.response.headers))),Promise.reject(a)})}const th="1.7.2",jl={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{jl[e]=function(a){return typeof a===e||"a"+(r<1?"n ":" ")+e}});const nh={};jl.transitional=function(r,o,a){function l(c,u){return"[Axios v"+th+"] Transitional option '"+c+"'"+u+(a?". "+a:"")}return(c,u,f)=>{if(r===!1)throw new De(l(u," has been removed"+(o?" in "+o:"")),De.ERR_DEPRECATED);return o&&!nh[u]&&(nh[u]=!0,console.warn(l(u," has been deprecated since v"+o+" and will be removed in the near future"))),r?r(c,u,f):!0}};function NI(e,r,o){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let l=a.length;for(;l-- >0;){const c=a[l],u=r[c];if(u){const f=e[c],m=f===void 0||u(f,c,e);if(m!==!0)throw new De("option "+c+" must be "+m,De.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new De("Unknown option "+c,De.ERR_BAD_OPTION)}}const Ul={assertOptions:NI,validators:jl},Cr=Ul.validators;class qr{constructor(r){this.defaults=r,this.interceptors={request:new Pp,response:new Pp}}async request(r,o){try{return await this._request(r,o)}catch(a){if(a instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const c=l.stack?l.stack.replace(/^.+\n/,""):"";try{a.stack?c&&!String(a.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(a.stack+=`
51
- `+c):a.stack=c}catch{}}throw a}}_request(r,o){typeof r=="string"?(o=o||{},o.url=r):o=r||{},o=Kr(this.defaults,o);const{transitional:a,paramsSerializer:l,headers:c}=o;a!==void 0&&Ul.assertOptions(a,{silentJSONParsing:Cr.transitional(Cr.boolean),forcedJSONParsing:Cr.transitional(Cr.boolean),clarifyTimeoutError:Cr.transitional(Cr.boolean)},!1),l!=null&&(Z.isFunction(l)?o.paramsSerializer={serialize:l}:Ul.assertOptions(l,{encode:Cr.function,serialize:Cr.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let u=c&&Z.merge(c.common,c[o.method]);c&&Z.forEach(["delete","get","head","post","put","patch","common"],E=>{delete c[E]}),o.headers=Ut.concat(u,c);const f=[];let m=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(o)===!1||(m=m&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const g=[];this.interceptors.response.forEach(function(S){g.push(S.fulfilled,S.rejected)});let y,w=0,b;if(!m){const E=[eh.bind(this),void 0];for(E.unshift.apply(E,f),E.push.apply(E,g),b=E.length,y=Promise.resolve(o);w<b;)y=y.then(E[w++],E[w++]);return y}b=f.length;let M=o;for(w=0;w<b;){const E=f[w++],S=f[w++];try{M=E(M)}catch(N){S.call(this,N);break}}try{y=eh.call(this,M)}catch(E){return Promise.reject(E)}for(w=0,b=g.length;w<b;)y=y.then(g[w++],g[w++]);return y}getUri(r){r=Kr(this.defaults,r);const o=Wp(r.baseURL,r.url);return zp(o,r.params,r.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(r){qr.prototype[r]=function(o,a){return this.request(Kr(a||{},{method:r,url:o,data:(a||{}).data}))}}),Z.forEach(["post","put","patch"],function(r){function o(a){return function(c,u,f){return this.request(Kr(f||{},{method:r,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}qr.prototype[r]=o(),qr.prototype[r+"Form"]=o(!0)});class Hl{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(c){o=c});const a=this;this.promise.then(l=>{if(!a._listeners)return;let c=a._listeners.length;for(;c-- >0;)a._listeners[c](l);a._listeners=null}),this.promise.then=l=>{let c;const u=new Promise(f=>{a.subscribe(f),c=f}).then(l);return u.cancel=function(){a.unsubscribe(c)},u},r(function(c,u,f){a.reason||(a.reason=new ko(c,u,f),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}static source(){let r;return{token:new Hl(function(l){r=l}),cancel:r}}}function vI(e){return function(o){return e.apply(null,o)}}function BI(e){return Z.isObject(e)&&e.isAxiosError===!0}const Wl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wl).forEach(([e,r])=>{Wl[r]=e});function rh(e){const r=new qr(e),o=Sp(qr.prototype.request,r);return Z.extend(o,qr.prototype,r,{allOwnKeys:!0}),Z.extend(o,r,null,{allOwnKeys:!0}),o.create=function(l){return rh(Kr(e,l))},o}const Ct=rh(di);Ct.Axios=qr,Ct.CanceledError=ko,Ct.CancelToken=Hl,Ct.isCancel=Up,Ct.VERSION=th,Ct.toFormData=Ea,Ct.AxiosError=De,Ct.Cancel=Ct.CanceledError,Ct.all=function(r){return Promise.all(r)},Ct.spread=vI,Ct.isAxiosError=BI,Ct.mergeConfig=Kr,Ct.AxiosHeaders=Ut,Ct.formToJSON=e=>Fp(Z.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=Jp.getAdapter,Ct.HttpStatusCode=Wl,Ct.default=Ct;const DI=/#[\w*]+\|-\|((?!\|-\|).)+\|-\|((?!\|-\|).)+\|-\|/,LI=/#[\w *\&]+\|-\|((?!\|-\|).)+\|-\|/,OI=/\|-\|/g,RI=/\|-\|/;function hi(){var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/android/i.test(e)||/iPad|iPhone|iPod/.test(e)&&!window.MSStream)}const VI=e=>e?Yr(e*1e3).format("MM/DD/YYYY, hh:mm A"):"--/--/---- --:-- --",mi=e=>(t.pushScopeId("data-v-c2b5e6ed"),e=e(),t.popScopeId(),e),zI={class:"RecursiveComponent"},PI={key:0},$I={key:1},FI={key:0},jI={class:"label textsharp-title"},UI={key:0,style:{color:"red"}},HI={key:1},WI={class:"label choice-title"},YI={key:0,style:{color:"red"}},GI={key:2,class:"vertical-checkbox-group"},KI={key:3,class:"vertical-checkbox-group"},qI={key:5,class:"dropdownbox-block"},QI={class:"label dropdownbox-label"},ZI=["onClick"],XI={key:7,class:"date-block"},JI={class:"label date-label"},e4={key:8,class:"time-box"},t4={key:9,class:"time-block"},n4={class:"label time-label"},r4=["onClick"],o4={class:"time-box"},i4={key:11,class:"date-time-block"},a4={class:"label date-bolck-label"},s4=mi(()=>t.createElementVNode("div",{class:"label date-time-blank-label"},"      ",-1)),l4={class:"label time-bolck-label"},c4={key:2},u4=["src"],f4={key:3},d4=["src"],p4={class:"signature-guardian"},h4=mi(()=>t.createElementVNode("div",{class:"label signature-check-label"}," Click here if you are a parent or legal guardian or caregiver on behalf of the patient(you need to give your own signature). ",-1)),m4={key:4},g4=["src"],y4={key:5},b4={class:"diagnosis-title"},w4=mi(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),E4={key:0,class:"diagnosis-editable"},C4={class:"diagnosis-searchbox"},S4={key:0,class:"diagnosis-suggestion"},x4=["onClick"],_4=mi(()=>t.createElementVNode("br",null,null,-1)),I4={key:1,class:"diagnosis-list"},k4={class:"diagnosis-item"},M4={class:"diagnosis-item-code"},A4={class:"diagnosis-item-comment"},T4={key:0},N4={key:6},v4=mi(()=>t.createElementVNode("div",{class:"vital-sign-title"},[t.createElementVNode("div",{class:"label vital-sign-title-label"},"Vital Signs")],-1)),B4={class:"vital-sign-box"},D4={class:"vital-sign-block"},L4={class:"vital-sign-item"},O4={class:"vital-sign-item-title"},R4={key:0},V4={class:"vital-sign-item"},z4={class:"vital-sign-item-title"},P4={key:0},$4={class:"vital-sign-block"},F4={class:"vital-sign-item"},j4={class:"vital-sign-item-title"},U4={key:0},H4={class:"vital-sign-item"},W4={class:"vital-sign-item-title"},Y4={key:0},G4={class:"vital-sign-box"},K4={class:"vital-sign-block"},q4={class:"vital-sign-item"},Q4={class:"vital-sign-item-title"},Z4={key:0},X4={class:"vital-sign-item"},J4={class:"vital-sign-item-title"},ek={key:0},tk={class:"vital-sign-block"},nk={class:"vital-sign-item"},rk={class:"vital-sign-item-title"},ok={key:0},ik={class:"vital-sign-item"},ak={class:"vital-sign-item-title"},sk={key:0},lk={key:7},ck={class:"label default-label"},uk={key:1,class:"default-textarea-block"},fk=["src","onClick"],dk={key:1},pk={key:0,class:"text"},Yl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",hk=t.defineComponent({__name:"RecursiveComponent",props:{formData:{type:Object,require:!0},node:{type:Array,required:!0},otherData:{type:Object,required:!0},otherTableInfo:{type:Object,required:!0},isEditable:{type:Boolean,default:!0},editability:{type:Object,default:{provider:!0,patient:!0,attorney:!0}}},setup(e){t.useCssVars(pe=>({"7cb2a37b":t.unref(r).fullWidth,"4c1d3bc5":t.unref(r).defaultStyle.marginTop,"032b9537":t.unref(r).alignItems,d83ca8ae:t.unref(r).text,"23ccffb7":t.unref(r).lineHeight,"19f20f70":t.unref(r).atBlockWidth,"181c7968":t.unref(r).doubleLineHeight,"7128af74":t.unref(r).defaultStyle.paddingTop,26059736:t.unref(r).defaultStyle.paddingLeft,"3154fb1c":t.unref(r).DateAndTime.width,"21883d14":t.unref(r).signature.width,"149f28ce":t.unref(r).signature.height,"592b47a9":t.unref(r).signature.label.top,c3010b5a:t.unref(r).signature.label.height,"88c121cc":t.unref(r).signature.label.width,"678c379a":t.unref(r).signature.label.left,37867397:t.unref(r).defaultStyle.marginLeft,"378a3d0d":t.unref(r).defaultStyle.marginTop2,"3069d186":t.unref(r).tableMinWidth,"36106b2f":t.unref(r).diagnosis.titleFontSize,"82c3914a":t.unref(r).diagnosis.buttonFontSize,"28c36a27":t.unref(r).vitalSign.titleFontSize,bb47824c:t.unref(r).vitalSign.blockWidth,"389e1dea":t.unref(r).vitalSign.title2FontSize,"52782bf5":t.unref(r).vitalSign.unitFontSize}));let r;const o=t.ref(hi());o.value?r=t.reactive(p_):r=t.reactive(Cp);const l=_s().getCalendarPciker(),u=Is().getSignaturePad(),m=ks().getImageEditor(),y=Ms().getRecommendDiagnosis(),w=t.reactive({code:"",description:"",comment:"",searchResult:Array()}),b=new Set(["header1","header2","header3","header4","header5"]),M=new Set([...Array.from(b)]),E=new Set([...Array.from(b),"paragraph","divider"]),S=new Set(["table","table-row","table-cell"]),N=new Set(["atblock","sharpblock","image",...Array.from(S)]);[...Array.from(E),...Array.from(N)];const k=new Set(["DateOrDateOfService","SignersName","SignersSpecialty","SignersLicNumber","SignersNpiNumber","SignersDeaNumber","SignersEmail","FaxNumber","FacilityMainNumber","FacilityAddressInfo"]),A=pe=>{pe=pe.replace(/#/,"");const ae=pe.split(OI);return{required:ae[0].endsWith("*"),type:ae[0].replace("*","").replace("$",""),title:ae[1],placeholder:ae[2]}},B=pe=>{const ae=pe.split(RI);ae.shift(),ae.pop();const he={};let Ce=ae.length;for(let xe=0;xe<Ce/2;xe++)he[ae[2*xe]]=ae[2*xe+1]==="checked";return he},H=e,D=t.reactive(H.formData),W=pe=>DI.test(pe)?"textSharp":LI.test(pe)?"choiceSharp":pe==="#Signature"||pe==="#Provider Signature"?"providerSignature":pe==="#Patient/Guardian Signature"?"patientSignature":pe==="#Attorney Signature"?"attorneySignature":"default",Y=/[^\w ]/g,te=pe=>{const ae=pe.replace(Y," ").split(/ /);let he="";return ae.forEach(Ce=>{Ce!==""&&(Ce=Ce.toLowerCase(),Ce=Ce.replace(Ce[0],Ce[0].toUpperCase()),he+=Ce)}),he},K=pe=>{switch(pe){case"Diagnosis":return"Diagnosis";case"Vital Sign":return"Vital Sign";default:return"default"}},q=(pe,ae)=>{const he=D[pe].valueList.filter(Ce=>Ce.key===ae);return(he==null?void 0:he[0])||null},X=(pe,ae)=>{var Ce;((Ce=q(pe,ae))==null?void 0:Ce.value)===D[pe].dataList[ae].value?D[pe].valueList=D[pe].valueList.filter(xe=>xe.key!==ae):D[pe].valueList.push({key:ae,value:D[pe].dataList[ae].value})},se=pe=>{l.open({formData:D,dataKey:pe})},ye=(pe,ae,he,Ce=!1)=>{u.open({dataKey:pe,formData:D,value:ae,type:he,isGuardian:Ce})},le=pe=>{f_.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:ae})=>{ae&&Rn.set(D,pe,ae)})},L=({isHeader:pe,textAlign:ae})=>{let he=pe?"#f5f2f0":"#ffffff",Ce=pe?"600":"normal",xe=pe?"center":"start",Le=pe?"center":"start";return xe=ae||xe,Le=ae||Le,`
51
+ `+c):a.stack=c}catch{}}throw a}}_request(r,o){typeof r=="string"?(o=o||{},o.url=r):o=r||{},o=Kr(this.defaults,o);const{transitional:a,paramsSerializer:l,headers:c}=o;a!==void 0&&Ul.assertOptions(a,{silentJSONParsing:Cr.transitional(Cr.boolean),forcedJSONParsing:Cr.transitional(Cr.boolean),clarifyTimeoutError:Cr.transitional(Cr.boolean)},!1),l!=null&&(Z.isFunction(l)?o.paramsSerializer={serialize:l}:Ul.assertOptions(l,{encode:Cr.function,serialize:Cr.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let u=c&&Z.merge(c.common,c[o.method]);c&&Z.forEach(["delete","get","head","post","put","patch","common"],E=>{delete c[E]}),o.headers=Ut.concat(u,c);const f=[];let m=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(o)===!1||(m=m&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const g=[];this.interceptors.response.forEach(function(S){g.push(S.fulfilled,S.rejected)});let y,w=0,b;if(!m){const E=[eh.bind(this),void 0];for(E.unshift.apply(E,f),E.push.apply(E,g),b=E.length,y=Promise.resolve(o);w<b;)y=y.then(E[w++],E[w++]);return y}b=f.length;let M=o;for(w=0;w<b;){const E=f[w++],S=f[w++];try{M=E(M)}catch(N){S.call(this,N);break}}try{y=eh.call(this,M)}catch(E){return Promise.reject(E)}for(w=0,b=g.length;w<b;)y=y.then(g[w++],g[w++]);return y}getUri(r){r=Kr(this.defaults,r);const o=Wp(r.baseURL,r.url);return zp(o,r.params,r.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(r){qr.prototype[r]=function(o,a){return this.request(Kr(a||{},{method:r,url:o,data:(a||{}).data}))}}),Z.forEach(["post","put","patch"],function(r){function o(a){return function(c,u,f){return this.request(Kr(f||{},{method:r,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}qr.prototype[r]=o(),qr.prototype[r+"Form"]=o(!0)});class Hl{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(c){o=c});const a=this;this.promise.then(l=>{if(!a._listeners)return;let c=a._listeners.length;for(;c-- >0;)a._listeners[c](l);a._listeners=null}),this.promise.then=l=>{let c;const u=new Promise(f=>{a.subscribe(f),c=f}).then(l);return u.cancel=function(){a.unsubscribe(c)},u},r(function(c,u,f){a.reason||(a.reason=new ko(c,u,f),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}static source(){let r;return{token:new Hl(function(l){r=l}),cancel:r}}}function vI(e){return function(o){return e.apply(null,o)}}function BI(e){return Z.isObject(e)&&e.isAxiosError===!0}const Wl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wl).forEach(([e,r])=>{Wl[r]=e});function rh(e){const r=new qr(e),o=Sp(qr.prototype.request,r);return Z.extend(o,qr.prototype,r,{allOwnKeys:!0}),Z.extend(o,r,null,{allOwnKeys:!0}),o.create=function(l){return rh(Kr(e,l))},o}const Ct=rh(di);Ct.Axios=qr,Ct.CanceledError=ko,Ct.CancelToken=Hl,Ct.isCancel=Up,Ct.VERSION=th,Ct.toFormData=Ea,Ct.AxiosError=De,Ct.Cancel=Ct.CanceledError,Ct.all=function(r){return Promise.all(r)},Ct.spread=vI,Ct.isAxiosError=BI,Ct.mergeConfig=Kr,Ct.AxiosHeaders=Ut,Ct.formToJSON=e=>Fp(Z.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=Jp.getAdapter,Ct.HttpStatusCode=Wl,Ct.default=Ct;const DI=/#[\w*]+\|-\|((?!\|-\|).)+\|-\|((?!\|-\|).)+\|-\|/,LI=/#[\w *\&]+\|-\|((?!\|-\|).)+\|-\|/,OI=/\|-\|/g,RI=/\|-\|/;function hi(){var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/android/i.test(e)||/iPad|iPhone|iPod/.test(e)&&!window.MSStream)}const VI=e=>e?Yr(e*1e3).format("MM/DD/YYYY, hh:mm A"):"--/--/---- --:-- --",mi=e=>(t.pushScopeId("data-v-03827b59"),e=e(),t.popScopeId(),e),zI={class:"RecursiveComponent"},PI={key:0},$I={key:1},FI={key:0},jI={class:"label textsharp-title"},UI={key:0,style:{color:"red"}},HI={key:1},WI={class:"label choice-title"},YI={key:0,style:{color:"red"}},GI={key:2,class:"vertical-checkbox-group"},KI={key:3,class:"vertical-checkbox-group"},qI={key:5,class:"dropdownbox-block"},QI={class:"label dropdownbox-label"},ZI=["onClick"],XI={key:7,class:"date-block"},JI={class:"label date-label"},e4={key:8,class:"time-box"},t4={key:9,class:"time-block"},n4={class:"label time-label"},r4=["onClick"],o4={class:"time-box"},i4={key:11,class:"date-time-block"},a4={class:"label date-bolck-label"},s4=mi(()=>t.createElementVNode("div",{class:"label date-time-blank-label"},"      ",-1)),l4={class:"label time-bolck-label"},c4={key:2},u4=["src"],f4={class:"signature-time"},d4={key:3},p4=["src"],h4={class:"signature-guardian"},m4=mi(()=>t.createElementVNode("div",{class:"label signature-check-label"}," Click here if you are a parent or legal guardian or caregiver on behalf of the patient(you need to give your own signature). ",-1)),g4={key:4},y4=["src"],b4={key:5},w4={class:"diagnosis-title"},E4=mi(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),C4={key:0,class:"diagnosis-editable"},S4={class:"diagnosis-searchbox"},x4={key:0,class:"diagnosis-suggestion"},_4=["onClick"],I4=mi(()=>t.createElementVNode("br",null,null,-1)),k4={key:1,class:"diagnosis-list"},M4={class:"diagnosis-item"},A4={class:"diagnosis-item-code"},T4={class:"diagnosis-item-comment"},N4={key:0},v4={key:6},B4=mi(()=>t.createElementVNode("div",{class:"vital-sign-title"},[t.createElementVNode("div",{class:"label vital-sign-title-label"},"Vital Signs")],-1)),D4={class:"vital-sign-box"},L4={class:"vital-sign-block"},O4={class:"vital-sign-item"},R4={class:"vital-sign-item-title"},V4={key:0},z4={class:"vital-sign-item"},P4={class:"vital-sign-item-title"},$4={key:0},F4={class:"vital-sign-block"},j4={class:"vital-sign-item"},U4={class:"vital-sign-item-title"},H4={key:0},W4={class:"vital-sign-item"},Y4={class:"vital-sign-item-title"},G4={key:0},K4={class:"vital-sign-box"},q4={class:"vital-sign-block"},Q4={class:"vital-sign-item"},Z4={class:"vital-sign-item-title"},X4={key:0},J4={class:"vital-sign-item"},ek={class:"vital-sign-item-title"},tk={key:0},nk={class:"vital-sign-block"},rk={class:"vital-sign-item"},ok={class:"vital-sign-item-title"},ik={key:0},ak={class:"vital-sign-item"},sk={class:"vital-sign-item-title"},lk={key:0},ck={key:7},uk={class:"label default-label"},fk={key:1,class:"default-textarea-block"},dk=["src","onClick"],pk={key:1},hk={key:0,class:"text"},Yl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",mk=t.defineComponent({__name:"RecursiveComponent",props:{formData:{type:Object,require:!0},node:{type:Array,required:!0},otherData:{type:Object,required:!0},otherTableInfo:{type:Object,required:!0},isEditable:{type:Boolean,default:!0},editability:{type:Object,default:{provider:!0,patient:!0,attorney:!0}}},setup(e){t.useCssVars(pe=>({"7ae22e55":t.unref(r).fullWidth,"1048b9aa":t.unref(r).defaultStyle.marginTop,"6a2534c6":t.unref(r).alignItems,f86d7ee2:t.unref(r).text,"28e25fc6":t.unref(r).lineHeight,"5cd371a4":t.unref(r).atBlockWidth,"6efde54e":t.unref(r).doubleLineHeight,d90ba4c0:t.unref(r).defaultStyle.paddingTop,"487085c8":t.unref(r).defaultStyle.paddingLeft,"6ca1934c":t.unref(r).DateAndTime.width,af128724:t.unref(r).signature.width,"4c91d77f":t.unref(r).signature.height,"8892ebfa":t.unref(r).signature.label.top,"4a3de1b9":t.unref(r).signature.label.height,af38fa18:t.unref(r).signature.label.width,"89d225ce":t.unref(r).signature.label.left,"0394f8f1":t.unref(r).defaultStyle.marginLeft,"0398c267":t.unref(r).defaultStyle.marginTop2,"23c45f60":t.unref(r).tableMinWidth,"021ef089":t.unref(r).diagnosis.titleFontSize,"74605d41":t.unref(r).diagnosis.buttonFontSize,"165c20fe":t.unref(r).vitalSign.titleFontSize,dd8d7080:t.unref(r).vitalSign.blockWidth,cd19d21e:t.unref(r).vitalSign.title2FontSize,"0392d94a":t.unref(r).vitalSign.unitFontSize}));let r;const o=t.ref(hi());o.value?r=t.reactive(p_):r=t.reactive(Cp);const l=_s().getCalendarPciker(),u=Is().getSignaturePad(),m=ks().getImageEditor(),y=Ms().getRecommendDiagnosis(),w=t.reactive({code:"",description:"",comment:"",searchResult:Array()}),b=new Set(["header1","header2","header3","header4","header5"]),M=new Set([...Array.from(b)]),E=new Set([...Array.from(b),"paragraph","divider"]),S=new Set(["table","table-row","table-cell"]),N=new Set(["atblock","sharpblock","image",...Array.from(S)]);[...Array.from(E),...Array.from(N)];const k=new Set(["DateOrDateOfService","SignersName","SignersSpecialty","SignersLicNumber","SignersNpiNumber","SignersDeaNumber","SignersEmail","FaxNumber","FacilityMainNumber","FacilityAddressInfo"]),A=pe=>{pe=pe.replace(/#/,"");const ae=pe.split(OI);return{required:ae[0].endsWith("*"),type:ae[0].replace("*","").replace("$",""),title:ae[1],placeholder:ae[2]}},B=pe=>{const ae=pe.split(RI);ae.shift(),ae.pop();const he={};let Ce=ae.length;for(let xe=0;xe<Ce/2;xe++)he[ae[2*xe]]=ae[2*xe+1]==="checked";return he},H=e,D=t.reactive(H.formData),W=pe=>DI.test(pe)?"textSharp":LI.test(pe)?"choiceSharp":pe==="#Signature"||pe==="#Provider Signature"?"providerSignature":pe==="#Patient/Guardian Signature"?"patientSignature":pe==="#Attorney Signature"?"attorneySignature":"default",Y=/[^\w ]/g,te=pe=>{const ae=pe.replace(Y," ").split(/ /);let he="";return ae.forEach(Ce=>{Ce!==""&&(Ce=Ce.toLowerCase(),Ce=Ce.replace(Ce[0],Ce[0].toUpperCase()),he+=Ce)}),he},K=pe=>{switch(pe){case"Diagnosis":return"Diagnosis";case"Vital Sign":return"Vital Sign";default:return"default"}},q=(pe,ae)=>{const he=D[pe].valueList.filter(Ce=>Ce.key===ae);return(he==null?void 0:he[0])||null},X=(pe,ae)=>{var Ce;((Ce=q(pe,ae))==null?void 0:Ce.value)===D[pe].dataList[ae].value?D[pe].valueList=D[pe].valueList.filter(xe=>xe.key!==ae):D[pe].valueList.push({key:ae,value:D[pe].dataList[ae].value})},se=pe=>{l.open({formData:D,dataKey:pe})},ye=(pe,ae,he,Ce=!1)=>{u.open({dataKey:pe,formData:D,value:ae,type:he,isGuardian:Ce})},le=pe=>{f_.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:ae})=>{ae&&Rn.set(D,pe,ae)})},L=({isHeader:pe,textAlign:ae})=>{let he=pe?"#f5f2f0":"#ffffff",Ce=pe?"600":"normal",xe=pe?"center":"start",Le=pe?"center":"start";return xe=ae||xe,Le=ae||Le,`
52
52
  justify-content: ${Le};
53
53
  background-color: ${he};
54
54
  text-align: ${xe};
@@ -56,13 +56,13 @@ function print() { __p += __j.call(arguments, '') }
56
56
  `},R=(pe,ae,he)=>{m.open({dataKey:pe,formData:D,src:ae,markable:he})},V=pe=>new Promise((he,Ce)=>{let xe="/api/icd10cm/v3/search?sf=code,name&df=code,name&maxList=20&terms="+pe,Le={host:"clinicaltables.nlm.nih.gov",path:xe};Ct.get(`https://${Le.host}${xe}`).then(He=>he({center:He.data})).catch(Ce)}),F=async pe=>{let ae=[],he=[];return pe?(await V(pe).then(Ce=>{ae[0]=Ce.center[3];for(let xe=0;xe<ae[0].length;xe++)he.push([]);for(let xe=0;xe<ae[0].length;xe++){let Le=ae[0][xe][0]+ae[0][xe][1],He=Rn.concat(ae[0][xe],Le);he[xe].push(He)}},Ce=>{console.error("query error",Ce instanceof Error?Ce:new Error(String(Ce)))}),he):[]},ie=async()=>{const pe=await F(w.code);w.searchResult=[],pe.forEach(ae=>{const he=ae[0];w.searchResult.push({code:he[0],description:he[1],codeAndDescription:he[2]})})},ue=pe=>{w.code=pe.code,w.description=pe.description,w.searchResult=[]},de=({diagnosisList:pe,diagnosis:ae})=>{let he=!1;return pe.forEach(Ce=>{Ce.code===ae.code&&(he=!0)}),he},ge=()=>{if(w.code&&w.description){const pe=D.Diagnosis,ae={code:w.code,description:w.description,comment:w.comment};de({diagnosisList:pe,diagnosis:ae})||(pe.push(ae),w.code="",w.description="",w.comment="")}},Ie=pe=>{D.Diagnosis.splice(pe,1)},Se=async()=>{y.open({formData:D})},Te=pe=>{switch(!0){case _o.isArray(pe):return pe.join(", ");case _o.isObject(pe):return JSON.stringify(pe);case _o.isString(pe):return pe;default:return""}};return(pe,ae)=>{const he=ul,Ce=cx,xe=ux,Le=sp,He=jx,Pe=Fx,ot=br,St=ln,yt=Gx;return t.openBlock(),t.createElementBlock("div",zI,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.node,j=>(t.openBlock(),t.createElementBlock("div",null,["type"in j?(t.openBlock(),t.createElementBlock("div",PI,[t.unref(M).has(j.type)&&j.children&&j.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("basetype "+j.textAlign||"")},[t.createVNode(Gl,{node:j.children,formData:D,otherData:e.otherData,isEditable:e.isEditable,providerEditability:e.editability.provider,patientEditability:e.editability.patient,otherTableInfo:e.otherTableInfo},null,8,["node","formData","otherData","isEditable","providerEditability","patientEditability","otherTableInfo"])],2)):t.createCommentVNode("",!0),j.type==="paragraph"&&j.children&&j.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(j.type+" "+j.textAlign||"")},[t.createVNode(Gl,{node:j.children,formData:D,otherData:e.otherData,isEditable:e.isEditable,providerEditability:e.editability.provider,patientEditability:e.editability.patient,otherTableInfo:e.otherTableInfo},null,8,["node","formData","otherData","isEditable","providerEditability","patientEditability","otherTableInfo"])],2)):t.createCommentVNode("",!0),j.type==="atblock"?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(j.type)},[t.unref(k).has(j.key)?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(`label ${j.type}-label`)},t.toDisplayString(Te(D[j.key])),3)):t.createCommentVNode("",!0),t.unref(k).has(j.key)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",$I,[e.isEditable?(t.openBlock(),t.createBlock(he,{key:0,class:t.normalizeClass(`${j.type}-input`),placeholder:"Enter here",modelValue:D[j.key],"onUpdate:modelValue":fe=>D[j.key]=fe},null,8,["class","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),e.isEditable?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(`label ${j.type}-label`)},t.toDisplayString(Te(D[j.key])),3))]))],2)):t.createCommentVNode("",!0),j.type==="sharpblock"?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(j.type)},[W(j.value)==="textSharp"?(t.openBlock(),t.createElementBlock("div",FI,[t.createElementVNode("div",jI,[t.createTextVNode(t.toDisplayString(A(j.value).title),1),A(j.value).required?(t.openBlock(),t.createElementBlock("span",UI," *")):t.createCommentVNode("",!0)]),e.isEditable&&A(j.value).type==="TextField"?(t.openBlock(),t.createBlock(he,{key:0,class:t.normalizeClass(`${j.type}-input`),placeholder:A(j.value).placeholder||"Enter here",modelValue:D[j.key],"onUpdate:modelValue":fe=>D[j.key]=fe},null,8,["class","placeholder","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),e.isEditable&&A(j.value).type==="TextView"?(t.openBlock(),t.createBlock(he,{key:1,class:t.normalizeClass(`${j.type}-textarea`),placeholder:A(j.value).placeholder||"Enter here",modelValue:D[j.key],"onUpdate:modelValue":fe=>D[j.key]=fe,resize:"none",autosize:{minRows:2,maxRows:5},type:"textarea"},null,8,["class","placeholder","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),e.isEditable?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(A(j.value).type==="TextField"?"sharpblock-textfield-block":"sharpblock-textview-block")},t.toDisplayString(D[j.key]||"No Content"),3))])):t.createCommentVNode("",!0),W(j.value)==="choiceSharp"?(t.openBlock(),t.createElementBlock("div",HI,[t.createElementVNode("div",WI,[t.createTextVNode(t.toDisplayString(A(j.value).title),1),A(j.value).required?(t.openBlock(),t.createElementBlock("span",YI," *")):t.createCommentVNode("",!0)]),e.isEditable&&A(j.value).type==="Radio"?(t.openBlock(),t.createBlock(xe,{key:0,modelValue:D[j.key].value,"onUpdate:modelValue":fe=>D[j.key].value=fe,class:"vertical-radio-group"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B(j.choiceStr),(fe,Ge)=>(t.openBlock(),t.createBlock(Ce,{value:Ge},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(Ge),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),!e.isEditable&&A(j.value).type==="Radio"?(t.openBlock(),t.createBlock(xe,{key:1,modelValue:D[j.key].value,"onUpdate:modelValue":fe=>D[j.key].value=fe,disabled:"",class:"vertical-radio-group"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D[j.key].dataList,fe=>(t.openBlock(),t.createBlock(Ce,{value:fe},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(fe),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),e.isEditable&&A(j.value).type==="Checkbox"?(t.openBlock(),t.createElementBlock("div",GI,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D[j.key].dataList,fe=>{var Ge;return t.openBlock(),t.createBlock(Le,{checked:((Ge=q(j.key,fe.index))==null?void 0:Ge.value)===fe.value,onClick:We=>X(j.key,fe.index)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(fe.value),1)]),_:2},1032,["checked","onClick"])}),256))])):t.createCommentVNode("",!0),!e.isEditable&&A(j.value).type==="Checkbox"?(t.openBlock(),t.createElementBlock("div",KI,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D[j.key].dataList,fe=>{var Ge;return t.openBlock(),t.createBlock(Le,{checked:((Ge=q(j.key,fe.index))==null?void 0:Ge.value)===fe.value,onClick:We=>X(j.key,fe.index),disabled:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(fe.value),1)]),_:2},1032,["checked","onClick"])}),256))])):t.createCommentVNode("",!0),e.isEditable&&A(j.value).type==="Drop Down Box"?(t.openBlock(),t.createBlock(Pe,{key:4,class:"dropdown-select",modelValue:D[j.key].value,"onUpdate:modelValue":fe=>D[j.key].value=fe,clearable:"",placeholder:"Select"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D[j.key].dataList,(fe,Ge)=>(t.openBlock(),t.createBlock(He,{key:Ge,label:fe.value,value:fe.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),!e.isEditable&&A(j.value).type==="Drop Down Box"?(t.openBlock(),t.createElementBlock("div",qI,[t.createElementVNode("div",QI,t.toDisplayString(D[j.key].value||"No Content"),1)])):t.createCommentVNode("",!0),e.isEditable&&A(j.value).type==="Date"?(t.openBlock(),t.createElementBlock("div",{key:6,class:"date-box",style:t.normalizeStyle(`width: ${t.unref(r).DateAndTime.width}`),onClick:fe=>se(`${j.key}.Date`)},[t.createVNode(he,{class:"date-input","suffix-icon":t.unref(_f),modelValue:D[j.key].Date,"onUpdate:modelValue":fe=>D[j.key].Date=fe,placeholder:"Select"},null,8,["suffix-icon","modelValue","onUpdate:modelValue"])],12,ZI)):t.createCommentVNode("",!0),!e.isEditable&&A(j.value).type==="Date"?(t.openBlock(),t.createElementBlock("div",XI,[t.createElementVNode("div",JI,t.toDisplayString(D[j.key].Date||"No Content"),1)])):t.createCommentVNode("",!0),e.isEditable&&A(j.value).type==="Time"?(t.openBlock(),t.createElementBlock("div",e4,[t.createVNode(Pe,{class:"aitmed-editor-custom-select time-select","suffix-icon":t.unref(If),size:"large",modelValue:D[j.key].Time,"onUpdate:modelValue":fe=>D[j.key].Time=fe,clearable:""},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D[j.key].list,(fe,Ge)=>(t.openBlock(),t.createBlock(He,{key:Ge,label:fe.value,value:fe.value},null,8,["label","value"]))),128))]),_:2},1032,["suffix-icon","modelValue","onUpdate:modelValue"])])):t.createCommentVNode("",!0),!e.isEditable&&A(j.value).type==="Time"?(t.openBlock(),t.createElementBlock("div",t4,[t.createElementVNode("div",n4,t.toDisplayString(D[j.key].Tate||"No Content"),1)])):t.createCommentVNode("",!0),e.isEditable&&A(j.value).type==="Date&Time"?(t.openBlock(),t.createElementBlock("div",{key:10,class:"date-time-box",style:t.normalizeStyle(`${o.value?"flex-direction: column; gap: 0;":""}`)},[t.createElementVNode("div",{class:"date-box",style:t.normalizeStyle(`${o.value?"":"width: "+t.unref(r).DateAndTime.width}`),onClick:fe=>se(`${j.key}.Date`)},[t.createVNode(he,{class:"date-input","suffix-icon":t.unref(_f),modelValue:D[j.key].Date,"onUpdate:modelValue":fe=>D[j.key].Date=fe,placeholder:"Select"},null,8,["suffix-icon","modelValue","onUpdate:modelValue"])],12,r4),t.createElementVNode("div",o4,[t.createVNode(Pe,{class:"aitmed-editor-custom-select time-select","suffix-icon":t.unref(If),size:"large",modelValue:D[j.key].Time,"onUpdate:modelValue":fe=>D[j.key].Time=fe,clearable:""},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D[j.key].list,(fe,Ge)=>(t.openBlock(),t.createBlock(He,{key:Ge,label:fe.value,value:fe.value},null,8,["label","value"]))),128))]),_:2},1032,["suffix-icon","modelValue","onUpdate:modelValue"])])],4)):t.createCommentVNode("",!0),!e.isEditable&&A(j.value).type==="Date&Time"?(t.openBlock(),t.createElementBlock("div",i4,[t.createElementVNode("div",a4,t.toDisplayString(D[j.key].Date||"--"),1),s4,t.createElementVNode("div",l4,t.toDisplayString(D[j.key].Time||"--"),1)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),W(j.value)==="providerSignature"?(t.openBlock(),t.createElementBlock("div",c4,[t.createElementVNode("div",{class:"label signature-title-label",style:t.normalizeStyle(`${o.value?"font-size: 1.98vh":""}`)},[t.createTextVNode(t.toDisplayString(D.signatureProviderName||"Signature")+" ",1),e.editability.provider?(t.openBlock(),t.createElementBlock("img",{key:0,class:"signature-edit",src:d_,onClick:ae[0]||(ae[0]=fe=>le("signatureProviderName"))})):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(`
57
57
  signature-view
58
58
  ${e.editability.provider?"signature-editable":"signature-diseditable"}
59
- `),onClick:ae[1]||(ae[1]=fe=>e.editability.provider&&ye("signatureId",e.otherData.providerSignature,t.unref(Vt).provider,!1))},[t.createElementVNode("img",{class:"signature-img",src:e.otherData.providerSignature||Yl},null,8,u4),t.createElementVNode("div",{class:"signature-x",style:t.normalizeStyle(`${o.value?"font-size: 2.98vh":""}`)},"X",4)],2),t.createElementVNode("div",null,t.toDisplayString(t.unref(VI)(D==null?void 0:D.signatureTime))+" Digitally Signed",1)])):t.createCommentVNode("",!0),W(j.value)==="patientSignature"?(t.openBlock(),t.createElementBlock("div",f4,[t.createElementVNode("div",{class:"label signature-title-label",style:t.normalizeStyle(`${o.value?"font-size: 1.98vh":""}`)}," Patient/Guardian Signature ",4),t.createElementVNode("div",{class:t.normalizeClass(`
59
+ `),onClick:ae[1]||(ae[1]=fe=>e.editability.provider&&ye("signatureId",e.otherData.providerSignature,t.unref(Vt).provider,!1))},[t.createElementVNode("img",{class:"signature-img",src:e.otherData.providerSignature||Yl},null,8,u4),t.createElementVNode("div",{class:"signature-x",style:t.normalizeStyle(`${o.value?"font-size: 2.98vh":""}`)},"X",4)],2),t.createElementVNode("div",f4,t.toDisplayString(t.unref(VI)(D==null?void 0:D.signatureTime))+" Digitally Signed",1)])):t.createCommentVNode("",!0),W(j.value)==="patientSignature"?(t.openBlock(),t.createElementBlock("div",d4,[t.createElementVNode("div",{class:"label signature-title-label",style:t.normalizeStyle(`${o.value?"font-size: 1.98vh":""}`)}," Patient/Guardian Signature ",4),t.createElementVNode("div",{class:t.normalizeClass(`
60
60
  signature-view
61
61
  ${e.editability.patient?"signature-editable":"signature-diseditable"}
62
- `),onClick:ae[2]||(ae[2]=fe=>e.editability.patient&&ye("patdSignatureId",e.otherData.patientSignature,t.unref(Vt).patient,D.needGuardianSignature))},[t.createElementVNode("img",{class:"signature-img",src:e.otherData.patientSignature||Yl},null,8,d4),t.createElementVNode("div",{class:"signature-x",style:t.normalizeStyle(`${o.value?"font-size: 2.98vh":""}`)},"X",4)],2),t.createElementVNode("div",p4,[t.createVNode(Le,{modelValue:D.needGuardianSignature,"onUpdate:modelValue":ae[3]||(ae[3]=fe=>D.needGuardianSignature=fe),disabled:!e.editability.patient},null,8,["modelValue","disabled"]),h4])])):t.createCommentVNode("",!0),W(j.value)==="attorneySignature"?(t.openBlock(),t.createElementBlock("div",m4,[t.createElementVNode("div",{class:"label signature-title-label",style:t.normalizeStyle(`${o.value?"font-size: 1.98vh":""}`)}," Attorney Signature ",4),t.createElementVNode("div",{class:t.normalizeClass(`
62
+ `),onClick:ae[2]||(ae[2]=fe=>e.editability.patient&&ye("patdSignatureId",e.otherData.patientSignature,t.unref(Vt).patient,D.needGuardianSignature))},[t.createElementVNode("img",{class:"signature-img",src:e.otherData.patientSignature||Yl},null,8,p4),t.createElementVNode("div",{class:"signature-x",style:t.normalizeStyle(`${o.value?"font-size: 2.98vh":""}`)},"X",4)],2),t.createElementVNode("div",h4,[t.createVNode(Le,{modelValue:D.needGuardianSignature,"onUpdate:modelValue":ae[3]||(ae[3]=fe=>D.needGuardianSignature=fe),disabled:!e.editability.patient},null,8,["modelValue","disabled"]),m4])])):t.createCommentVNode("",!0),W(j.value)==="attorneySignature"?(t.openBlock(),t.createElementBlock("div",g4,[t.createElementVNode("div",{class:"label signature-title-label",style:t.normalizeStyle(`${o.value?"font-size: 1.98vh":""}`)}," Attorney Signature ",4),t.createElementVNode("div",{class:t.normalizeClass(`
63
63
  signature-view
64
64
  ${e.editability.attorney?"signature-editable":"signature-diseditable"}
65
- `),onClick:ae[4]||(ae[4]=fe=>e.editability.attorney&&ye("attSignatureId",e.otherData.attorneySignature,t.unref(Vt).attorney,!1))},[t.createElementVNode("img",{class:"signature-img",src:e.otherData.attorneySignature||Yl},null,8,g4),t.createElementVNode("div",{class:"signature-x",style:t.normalizeStyle(`${o.value?"font-size: 2.98vh":""}`)},"X",4)],2)])):t.createCommentVNode("",!0),W(j.value)==="default"&&K(j.value.replace(/#/,""))==="Diagnosis"?(t.openBlock(),t.createElementBlock("div",y4,[t.createElementVNode("div",b4,[w4,e.isEditable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"label diagnosis-recommend-label",onClick:Se},"Recommend Diagnoses")):t.createCommentVNode("",!0)]),e.isEditable?(t.openBlock(),t.createElementBlock("div",E4,[t.createElementVNode("div",C4,[t.createVNode(he,{class:"diagnosis-search","suffix-icon":t.unref(Sw),placeholder:"Search",modelValue:w.code,"onUpdate:modelValue":ae[5]||(ae[5]=fe=>w.code=fe),onInput:ie},null,8,["suffix-icon","modelValue"]),w.searchResult.length>0?(t.openBlock(),t.createElementBlock("div",S4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.searchResult,fe=>(t.openBlock(),t.createElementBlock("div",{class:"diagnosis-suggestion-item",onClick:Ge=>ue(fe)},t.toDisplayString(fe.codeAndDescription),9,x4))),256))])):t.createCommentVNode("",!0),t.createVNode(he,{class:"diagnosis-description",placeholder:"Description",modelValue:w.description,"onUpdate:modelValue":ae[6]||(ae[6]=fe=>w.description=fe)},null,8,["modelValue"])]),t.createVNode(he,{class:"diagnosis-comment",placeholder:"Enter here",resize:"none",autosize:{minRows:2,maxRows:5},type:"textarea",modelValue:w.comment,"onUpdate:modelValue":ae[7]||(ae[7]=fe=>w.comment=fe)},null,8,["modelValue"]),_4,t.createVNode(ot,{class:"diagnosis-button",icon:t.unref(hw),onClick:ge},{default:t.withCtx(()=>[t.createTextVNode("Add More")]),_:1},8,["icon"])])):t.createCommentVNode("",!0),e.isEditable&&D.Diagnosis.length||!e.isEditable?(t.openBlock(),t.createElementBlock("div",I4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.Diagnosis,(fe,Ge)=>(t.openBlock(),t.createElementBlock("div",k4,[t.createElementVNode("div",M4,[e.isEditable?(t.openBlock(),t.createBlock(St,{key:0,class:"diagnosis-delete",size:"16px",color:"#d81e06",onClick:We=>Ie(Ge)},{default:t.withCtx(()=>[t.createVNode(t.unref(Gs))]),_:2},1032,["onClick"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(fe.code)+" - "+t.toDisplayString(fe.description),1)]),t.createElementVNode("div",A4,t.toDisplayString(fe.comment),1)]))),256)),!e.isEditable&&!D.Diagnosis.length?(t.openBlock(),t.createElementBlock("span",T4,"No Content")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),W(j.value)==="default"&&K(j.value.replace(/#/,""))==="Vital Sign"?(t.openBlock(),t.createElementBlock("div",N4,[v4,t.createElementVNode("div",B4,[t.createElementVNode("div",D4,[t.createElementVNode("div",L4,[t.createElementVNode("div",O4,[t.createTextVNode("Blood Pressure"),o.value?(t.openBlock(),t.createElementBlock("span",R4," (mmHg)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.BloodPressure,"onUpdate:modelValue":ae[8]||(ae[8]=fe=>D.BloodPressure=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("mmHg")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",V4,[t.createElementVNode("div",z4,[t.createTextVNode("Heart Rate"),o.value?(t.openBlock(),t.createElementBlock("span",P4," (bpm)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.HeartRate,"onUpdate:modelValue":ae[9]||(ae[9]=fe=>D.HeartRate=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("bpm")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])]),t.createElementVNode("div",$4,[t.createElementVNode("div",F4,[t.createElementVNode("div",j4,[t.createTextVNode("Respiratory Rate"),o.value?(t.openBlock(),t.createElementBlock("span",U4," (breaths/min)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.RespiratoryRate,"onUpdate:modelValue":ae[10]||(ae[10]=fe=>D.RespiratoryRate=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",H4,[t.createElementVNode("div",W4,[t.createTextVNode("Pulse Oximetry"),o.value?(t.openBlock(),t.createElementBlock("span",Y4," (O₂ %)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.PulseOximetry,"onUpdate:modelValue":ae[11]||(ae[11]=fe=>D.PulseOximetry=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("O₂ %")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])])]),t.createElementVNode("div",G4,[t.createElementVNode("div",K4,[t.createElementVNode("div",q4,[t.createElementVNode("div",Q4,[t.createTextVNode("Temperature"),o.value?(t.openBlock(),t.createElementBlock("span",Z4," (°F/°C)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.Temperature,"onUpdate:modelValue":ae[12]||(ae[12]=fe=>D.Temperature=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("°F/°C")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",X4,[t.createElementVNode("div",J4,[t.createTextVNode("Height"),o.value?(t.openBlock(),t.createElementBlock("span",ek," (ft/in)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.Height,"onUpdate:modelValue":ae[13]||(ae[13]=fe=>D.Height=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("ft/in")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])]),t.createElementVNode("div",tk,[t.createElementVNode("div",nk,[t.createElementVNode("div",rk,[t.createTextVNode("Weight"),o.value?(t.openBlock(),t.createElementBlock("span",ok," (lb)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.Weight,"onUpdate:modelValue":ae[14]||(ae[14]=fe=>D.Weight=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("lb")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",ik,[t.createElementVNode("div",ak,[t.createTextVNode("BMI"),o.value?(t.openBlock(),t.createElementBlock("span",sk," (kg/m²)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.BodyMassIndexBmi,"onUpdate:modelValue":ae[15]||(ae[15]=fe=>D.BodyMassIndexBmi=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("kg/m²")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])])])])):t.createCommentVNode("",!0),W(j.value)==="default"&&K(j.value.replace(/#/,""))==="default"?(t.openBlock(),t.createElementBlock("div",lk,[t.createElementVNode("div",ck,t.toDisplayString(j.value.replace(/#/,"")),1),e.isEditable?(t.openBlock(),t.createBlock(he,{key:0,class:"default-textarea",placeholder:A(j.value).placeholder||"Enter here",modelValue:D[te(j.value.replace(/#/,""))],"onUpdate:modelValue":fe=>D[te(j.value.replace(/#/,""))]=fe,resize:"none",autosize:{minRows:2,maxRows:5},type:"textarea"},null,8,["placeholder","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),e.isEditable?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",uk,t.toDisplayString(D[te(j.value.replace(/#/,""))]||"No Content"),1))])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),j.type==="table"?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(j.type),style:t.normalizeStyle(j.width==="auto"?`width: ${j.width};`:`width: ${t.unref(r).fullWidth}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(j.children,(fe,Ge)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(fe.type),style:t.normalizeStyle(j.width==="auto"?`width: ${j.width};`:`width: ${t.unref(r).fullWidth}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(fe.children,(We,Ue)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(We.type),style:t.normalizeStyle(L({isHeader:We.isHeader,textAlign:We.textAlign,key:j.key,index:Ue})+`
65
+ `),onClick:ae[4]||(ae[4]=fe=>e.editability.attorney&&ye("attSignatureId",e.otherData.attorneySignature,t.unref(Vt).attorney,!1))},[t.createElementVNode("img",{class:"signature-img",src:e.otherData.attorneySignature||Yl},null,8,y4),t.createElementVNode("div",{class:"signature-x",style:t.normalizeStyle(`${o.value?"font-size: 2.98vh":""}`)},"X",4)],2)])):t.createCommentVNode("",!0),W(j.value)==="default"&&K(j.value.replace(/#/,""))==="Diagnosis"?(t.openBlock(),t.createElementBlock("div",b4,[t.createElementVNode("div",w4,[E4,e.isEditable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"label diagnosis-recommend-label",onClick:Se},"Recommend Diagnoses")):t.createCommentVNode("",!0)]),e.isEditable?(t.openBlock(),t.createElementBlock("div",C4,[t.createElementVNode("div",S4,[t.createVNode(he,{class:"diagnosis-search","suffix-icon":t.unref(Sw),placeholder:"Search",modelValue:w.code,"onUpdate:modelValue":ae[5]||(ae[5]=fe=>w.code=fe),onInput:ie},null,8,["suffix-icon","modelValue"]),w.searchResult.length>0?(t.openBlock(),t.createElementBlock("div",x4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.searchResult,fe=>(t.openBlock(),t.createElementBlock("div",{class:"diagnosis-suggestion-item",onClick:Ge=>ue(fe)},t.toDisplayString(fe.codeAndDescription),9,_4))),256))])):t.createCommentVNode("",!0),t.createVNode(he,{class:"diagnosis-description",placeholder:"Description",modelValue:w.description,"onUpdate:modelValue":ae[6]||(ae[6]=fe=>w.description=fe)},null,8,["modelValue"])]),t.createVNode(he,{class:"diagnosis-comment",placeholder:"Enter here",resize:"none",autosize:{minRows:2,maxRows:5},type:"textarea",modelValue:w.comment,"onUpdate:modelValue":ae[7]||(ae[7]=fe=>w.comment=fe)},null,8,["modelValue"]),I4,t.createVNode(ot,{class:"diagnosis-button",icon:t.unref(hw),onClick:ge},{default:t.withCtx(()=>[t.createTextVNode("Add More")]),_:1},8,["icon"])])):t.createCommentVNode("",!0),e.isEditable&&D.Diagnosis.length||!e.isEditable?(t.openBlock(),t.createElementBlock("div",k4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.Diagnosis,(fe,Ge)=>(t.openBlock(),t.createElementBlock("div",M4,[t.createElementVNode("div",A4,[e.isEditable?(t.openBlock(),t.createBlock(St,{key:0,class:"diagnosis-delete",size:"16px",color:"#d81e06",onClick:We=>Ie(Ge)},{default:t.withCtx(()=>[t.createVNode(t.unref(Gs))]),_:2},1032,["onClick"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(fe.code)+" - "+t.toDisplayString(fe.description),1)]),t.createElementVNode("div",T4,t.toDisplayString(fe.comment),1)]))),256)),!e.isEditable&&!D.Diagnosis.length?(t.openBlock(),t.createElementBlock("span",N4,"No Content")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),W(j.value)==="default"&&K(j.value.replace(/#/,""))==="Vital Sign"?(t.openBlock(),t.createElementBlock("div",v4,[B4,t.createElementVNode("div",D4,[t.createElementVNode("div",L4,[t.createElementVNode("div",O4,[t.createElementVNode("div",R4,[t.createTextVNode("Blood Pressure"),o.value?(t.openBlock(),t.createElementBlock("span",V4," (mmHg)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.BloodPressure,"onUpdate:modelValue":ae[8]||(ae[8]=fe=>D.BloodPressure=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("mmHg")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",z4,[t.createElementVNode("div",P4,[t.createTextVNode("Heart Rate"),o.value?(t.openBlock(),t.createElementBlock("span",$4," (bpm)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.HeartRate,"onUpdate:modelValue":ae[9]||(ae[9]=fe=>D.HeartRate=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("bpm")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])]),t.createElementVNode("div",F4,[t.createElementVNode("div",j4,[t.createElementVNode("div",U4,[t.createTextVNode("Respiratory Rate"),o.value?(t.openBlock(),t.createElementBlock("span",H4," (breaths/min)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.RespiratoryRate,"onUpdate:modelValue":ae[10]||(ae[10]=fe=>D.RespiratoryRate=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",W4,[t.createElementVNode("div",Y4,[t.createTextVNode("Pulse Oximetry"),o.value?(t.openBlock(),t.createElementBlock("span",G4," (O₂ %)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.PulseOximetry,"onUpdate:modelValue":ae[11]||(ae[11]=fe=>D.PulseOximetry=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("O₂ %")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])])]),t.createElementVNode("div",K4,[t.createElementVNode("div",q4,[t.createElementVNode("div",Q4,[t.createElementVNode("div",Z4,[t.createTextVNode("Temperature"),o.value?(t.openBlock(),t.createElementBlock("span",X4," (°F/°C)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.Temperature,"onUpdate:modelValue":ae[12]||(ae[12]=fe=>D.Temperature=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("°F/°C")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",J4,[t.createElementVNode("div",ek,[t.createTextVNode("Height"),o.value?(t.openBlock(),t.createElementBlock("span",tk," (ft/in)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.Height,"onUpdate:modelValue":ae[13]||(ae[13]=fe=>D.Height=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("ft/in")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])]),t.createElementVNode("div",nk,[t.createElementVNode("div",rk,[t.createElementVNode("div",ok,[t.createTextVNode("Weight"),o.value?(t.openBlock(),t.createElementBlock("span",ik," (lb)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.Weight,"onUpdate:modelValue":ae[14]||(ae[14]=fe=>D.Weight=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("lb")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",ak,[t.createElementVNode("div",sk,[t.createTextVNode("BMI"),o.value?(t.openBlock(),t.createElementBlock("span",lk," (kg/m²)")):t.createCommentVNode("",!0)]),t.createVNode(he,{modelValue:D.BodyMassIndexBmi,"onUpdate:modelValue":ae[15]||(ae[15]=fe=>D.BodyMassIndexBmi=fe),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(yt,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("kg/m²")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])])])])):t.createCommentVNode("",!0),W(j.value)==="default"&&K(j.value.replace(/#/,""))==="default"?(t.openBlock(),t.createElementBlock("div",ck,[t.createElementVNode("div",uk,t.toDisplayString(j.value.replace(/#/,"")),1),e.isEditable?(t.openBlock(),t.createBlock(he,{key:0,class:"default-textarea",placeholder:A(j.value).placeholder||"Enter here",modelValue:D[te(j.value.replace(/#/,""))],"onUpdate:modelValue":fe=>D[te(j.value.replace(/#/,""))]=fe,resize:"none",autosize:{minRows:2,maxRows:5},type:"textarea"},null,8,["placeholder","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),e.isEditable?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",fk,t.toDisplayString(D[te(j.value.replace(/#/,""))]||"No Content"),1))])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),j.type==="table"?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(j.type),style:t.normalizeStyle(j.width==="auto"?`width: ${j.width};`:`width: ${t.unref(r).fullWidth}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(j.children,(fe,Ge)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(fe.type),style:t.normalizeStyle(j.width==="auto"?`width: ${j.width};`:`width: ${t.unref(r).fullWidth}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(fe.children,(We,Ue)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(We.type),style:t.normalizeStyle(L({isHeader:We.isHeader,textAlign:We.textAlign,key:j.key,index:Ue})+`
66
66
  width: ${H.otherTableInfo[j.key].tableWidthArray[Ue]};
67
67
  flex-shrink: ${H.otherTableInfo[j.key].flexShrinks[Ue]};
68
68
  `)},[e.isEditable?(t.openBlock(),t.createBlock(he,{key:0,class:"table-input aitmed-editor-custom-input",style:t.normalizeStyle(L({isHeader:We.isHeader,textAlign:We.textAlign})+"box-shadow: none;"),"input-style":L({isHeader:We.isHeader,textAlign:We.textAlign})+"box-shadow: none;",modelValue:D[j.key][Ge][Ue],"onUpdate:modelValue":it=>D[j.key][Ge][Ue]=it,type:"textarea",resize:"none",autosize:{minRows:1},placeholder:""},null,8,["style","input-style","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),e.isEditable?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:"label table-label",style:t.normalizeStyle(`
@@ -71,12 +71,12 @@ function print() { __p += __j.call(arguments, '') }
71
71
  `)},t.toDisplayString(D[j.key][Ge][Ue]),5))],6))),256))],6))),256))],6)):t.createCommentVNode("",!0),j.type==="image"?(t.openBlock(),t.createElementBlock("img",{key:5,class:t.normalizeClass(j.type),style:t.normalizeStyle(j.style?`
72
72
  width: ${j.style.width};
73
73
  height: ${j.style.height};
74
- `:""),src:e.otherData[j.alt]?e.otherData[j.alt]:j.src,onClick:fe=>R(j.alt,e.otherData[j.alt]?e.otherData[j.alt]:j.src,j.href==="markable"||j.href==="markeable")},null,14,fk)):t.createCommentVNode("",!0),j.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(j.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in j?(t.openBlock(),t.createElementBlock("div",dk,[j.text?(t.openBlock(),t.createElementBlock("div",pk,t.toDisplayString(j.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),gi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},Gl=gi(hk,[["__scopeId","data-v-c2b5e6ed"]]),oh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%3e%3cpath%20id='calendarCancel'%20d='M28.5,9.615,26.385,7.5,18,15.885,9.615,7.5,7.5,9.615,15.885,18,7.5,26.385,9.615,28.5,18,20.115,26.385,28.5,28.5,26.385,20.115,18Z'%20transform='translate(-7.5%20-7.5)'/%3e%3c/svg%3e",mk={class:"calendar_box"},gk={class:"date"},yk={class:"calendar_chioce"},bk=gi(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(N=>({"97c49548":S.width,"946c075e":S.height,"75aa366b":S.top,"3f98cdb1":S.left}));const r=t.ref(hi()),o=t.ref(null),a=t.ref(),c=_s().getCalendarPciker(),u=N=>{a.value&&a.value.selectDate(N)},f=t.reactive({status:!1,value:new Date}),m=N=>N.startsWith("0")?parseInt(N).toString():N,g=()=>{c.close()},y=N=>{N.target===o.value&&c.close()},w=N=>{const k=N.getMonth()+1,A=N.getDate(),B=N.getFullYear(),H=k>=10?`${k}`:`0${k}`,D=A>=10?`${A}`:`0${A}`;return`${H}/${D}/${B}`},b=N=>{if(/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/[0-9]{4}/.test(N)){const k=N.split("/"),A=parseInt(k[0])-1,B=parseInt(k[1]),H=parseInt(k[2]);return new Date(H,A,B)}else throw Error("The string format error!")},M=()=>{Rn.set(c.options.formData,c.options.dataKey,w(f.value)),g()},E=()=>{g()},S=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(()=>{if(a.value){const A=Rn.get(c.options.formData,c.options.dataKey);if(A){const B=b(A);f.value=B}}const k=vr().getDocumentTemplate();r.value?(S.top="0",S.left="0",S.width="100vw",S.height="100vh"):k.relatedDom?(S.top=`${k.relatedDom.offsetTop}px`,S.left=`${k.relatedDom.offsetLeft}px`,S.width=`${k.relatedDom.clientWidth}px`,S.height=`${k.relatedDom.clientHeight}px`):(S.top="0",S.left="0",S.width="100vw",S.height="100vh")}),(N,k)=>{const A=br,B=Kd,H=vS;return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref_key:"pickerView",ref:o,class:t.normalizeClass(r.value?"calendar_view calendar_view-mobile":"calendar_view calendar_view-ps"),onClick:y},[t.createElementVNode("div",mk,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:oh,onClick:g})]),t.createVNode(H,{ref_key:"calendar",ref:a,modelValue:f.value,"onUpdate:modelValue":k[5]||(k[5]=D=>f.value=D),class:"calendar"},{header:t.withCtx(({date:D})=>[t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(A,{size:"small",onClick:k[0]||(k[0]=W=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[1]||(k[1]=W=>u("prev-month"))},{default:t.withCtx(()=>[t.createTextVNode(" < ")]),_:1})]),_:1}),t.createElementVNode("span",null,t.toDisplayString(D),1),t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(A,{size:"small",onClick:k[2]||(k[2]=W=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(A,{size:"small",onClick:k[3]||(k[3]=W=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[4]||(k[4]=W=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",gk,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",yk,[t.createVNode(A,{class:"calendar_chioce_button calendar_cancel",onClick:E},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(A,{class:"calendar_chioce_button calendar_confirm",onClick:M},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-31c0f145"]]);var Ia={exports:{}};/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */Ia.exports,function(e,r){(function(o){var a=r,l=e&&e.exports==a&&e,c=typeof On=="object"&&On;(c.global===c||c.window===c)&&(o=c);var u=function(E){this.message=E};u.prototype=new Error,u.prototype.name="InvalidCharacterError";var f=function(E){throw new u(E)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=/[\t\n\f\r ]/g,y=function(E){E=String(E).replace(g,"");var S=E.length;S%4==0&&(E=E.replace(/==?$/,""),S=E.length),(S%4==1||/[^+a-zA-Z0-9/]/.test(E))&&f("Invalid character: the string to be decoded is not correctly encoded.");for(var N=0,k,A,B="",H=-1;++H<S;)A=m.indexOf(E.charAt(H)),k=N%4?k*64+A:A,N++%4&&(B+=String.fromCharCode(255&k>>(-2*N&6)));return B},w=function(E){E=String(E),/[^\0-\xFF]/.test(E)&&f("The string to be encoded contains characters outside of the Latin1 range.");for(var S=E.length%3,N="",k=-1,A,B,H,D,W=E.length-S;++k<W;)A=E.charCodeAt(k)<<16,B=E.charCodeAt(++k)<<8,H=E.charCodeAt(++k),D=A+B+H,N+=m.charAt(D>>18&63)+m.charAt(D>>12&63)+m.charAt(D>>6&63)+m.charAt(D&63);return S==2?(A=E.charCodeAt(k)<<8,B=E.charCodeAt(++k),D=A+B,N+=m.charAt(D>>10)+m.charAt(D>>4&63)+m.charAt(D<<2&63)+"="):S==1&&(D=E.charCodeAt(k),N+=m.charAt(D>>2)+m.charAt(D<<4&63)+"=="),N},b={encode:w,decode:y,version:"1.0.0"};if(a&&!a.nodeType)if(l)l.exports=b;else for(var M in b)b.hasOwnProperty(M)&&(a[M]=b[M]);else o.base64=b})(On)}(Ia,Ia.exports),Ia.exports;var ih={},ka={};ka.byteLength=Ck,ka.toByteArray=xk,ka.fromByteArray=kk;for(var Vn=[],un=[],wk=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mo=0,Ek=Kl.length;Mo<Ek;++Mo)Vn[Mo]=Kl[Mo],un[Kl.charCodeAt(Mo)]=Mo;un[45]=62,un[95]=63;function ah(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");o===-1&&(o=r);var a=o===r?0:4-o%4;return[o,a]}function Ck(e){var r=ah(e),o=r[0],a=r[1];return(o+a)*3/4-a}function Sk(e,r,o){return(r+o)*3/4-o}function xk(e){var r,o=ah(e),a=o[0],l=o[1],c=new wk(Sk(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=un[e.charCodeAt(m)]<<18|un[e.charCodeAt(m+1)]<<12|un[e.charCodeAt(m+2)]<<6|un[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=un[e.charCodeAt(m)]<<2|un[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=un[e.charCodeAt(m)]<<10|un[e.charCodeAt(m+1)]<<4|un[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function _k(e){return Vn[e>>18&63]+Vn[e>>12&63]+Vn[e>>6&63]+Vn[e&63]}function Ik(e,r,o){for(var a,l=[],c=r;c<o;c+=3)a=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(e[c+2]&255),l.push(_k(a));return l.join("")}function kk(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(Ik(e,u,u+c>f?f:u+c));return a===1?(r=e[o-1],l.push(Vn[r>>2]+Vn[r<<4&63]+"==")):a===2&&(r=(e[o-2]<<8)+e[o-1],l.push(Vn[r>>10]+Vn[r>>4&63]+Vn[r<<2&63]+"=")),l.join("")}var ql={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ql.read=function(e,r,o,a,l){var c,u,f=l*8-a-1,m=(1<<f)-1,g=m>>1,y=-7,w=o?l-1:0,b=o?-1:1,M=e[r+w];for(w+=b,c=M&(1<<-y)-1,M>>=-y,y+=f;y>0;c=c*256+e[r+w],w+=b,y-=8);for(u=c&(1<<-y)-1,c>>=-y,y+=a;y>0;u=u*256+e[r+w],w+=b,y-=8);if(c===0)c=1-g;else{if(c===m)return u?NaN:(M?-1:1)*(1/0);u=u+Math.pow(2,a),c=c-g}return(M?-1:1)*u*Math.pow(2,c-a)},ql.write=function(e,r,o,a,l,c){var u,f,m,g=c*8-l-1,y=(1<<g)-1,w=y>>1,b=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=a?0:c-1,E=a?1:-1,S=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=y):(u=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+w>=1?r+=b/m:r+=b*Math.pow(2,1-w),r*m>=2&&(u++,m/=2),u+w>=y?(f=0,u=y):u+w>=1?(f=(r*m-1)*Math.pow(2,l),u=u+w):(f=r*Math.pow(2,w-1)*Math.pow(2,l),u=0));l>=8;e[o+M]=f&255,M+=E,f/=256,l-=8);for(u=u<<l|f,g+=l;g>0;e[o+M]=u&255,M+=E,u/=256,g-=8);e[o+M-E]|=S*128};/*!
74
+ `:""),src:e.otherData[j.alt]?e.otherData[j.alt]:j.src,onClick:fe=>R(j.alt,e.otherData[j.alt]?e.otherData[j.alt]:j.src,j.href==="markable"||j.href==="markeable")},null,14,dk)):t.createCommentVNode("",!0),j.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(j.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in j?(t.openBlock(),t.createElementBlock("div",pk,[j.text?(t.openBlock(),t.createElementBlock("div",hk,t.toDisplayString(j.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),gi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},Gl=gi(mk,[["__scopeId","data-v-03827b59"]]),oh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%3e%3cpath%20id='calendarCancel'%20d='M28.5,9.615,26.385,7.5,18,15.885,9.615,7.5,7.5,9.615,15.885,18,7.5,26.385,9.615,28.5,18,20.115,26.385,28.5,28.5,26.385,20.115,18Z'%20transform='translate(-7.5%20-7.5)'/%3e%3c/svg%3e",gk={class:"calendar_box"},yk={class:"date"},bk={class:"calendar_chioce"},wk=gi(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(N=>({"97c49548":S.width,"946c075e":S.height,"75aa366b":S.top,"3f98cdb1":S.left}));const r=t.ref(hi()),o=t.ref(null),a=t.ref(),c=_s().getCalendarPciker(),u=N=>{a.value&&a.value.selectDate(N)},f=t.reactive({status:!1,value:new Date}),m=N=>N.startsWith("0")?parseInt(N).toString():N,g=()=>{c.close()},y=N=>{N.target===o.value&&c.close()},w=N=>{const k=N.getMonth()+1,A=N.getDate(),B=N.getFullYear(),H=k>=10?`${k}`:`0${k}`,D=A>=10?`${A}`:`0${A}`;return`${H}/${D}/${B}`},b=N=>{if(/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/[0-9]{4}/.test(N)){const k=N.split("/"),A=parseInt(k[0])-1,B=parseInt(k[1]),H=parseInt(k[2]);return new Date(H,A,B)}else throw Error("The string format error!")},M=()=>{Rn.set(c.options.formData,c.options.dataKey,w(f.value)),g()},E=()=>{g()},S=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(()=>{if(a.value){const A=Rn.get(c.options.formData,c.options.dataKey);if(A){const B=b(A);f.value=B}}const k=vr().getDocumentTemplate();r.value?(S.top="0",S.left="0",S.width="100vw",S.height="100vh"):k.relatedDom?(S.top=`${k.relatedDom.offsetTop}px`,S.left=`${k.relatedDom.offsetLeft}px`,S.width=`${k.relatedDom.clientWidth}px`,S.height=`${k.relatedDom.clientHeight}px`):(S.top="0",S.left="0",S.width="100vw",S.height="100vh")}),(N,k)=>{const A=br,B=Kd,H=vS;return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref_key:"pickerView",ref:o,class:t.normalizeClass(r.value?"calendar_view calendar_view-mobile":"calendar_view calendar_view-ps"),onClick:y},[t.createElementVNode("div",gk,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:oh,onClick:g})]),t.createVNode(H,{ref_key:"calendar",ref:a,modelValue:f.value,"onUpdate:modelValue":k[5]||(k[5]=D=>f.value=D),class:"calendar"},{header:t.withCtx(({date:D})=>[t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(A,{size:"small",onClick:k[0]||(k[0]=W=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[1]||(k[1]=W=>u("prev-month"))},{default:t.withCtx(()=>[t.createTextVNode(" < ")]),_:1})]),_:1}),t.createElementVNode("span",null,t.toDisplayString(D),1),t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(A,{size:"small",onClick:k[2]||(k[2]=W=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(A,{size:"small",onClick:k[3]||(k[3]=W=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[4]||(k[4]=W=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",yk,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",bk,[t.createVNode(A,{class:"calendar_chioce_button calendar_cancel",onClick:E},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(A,{class:"calendar_chioce_button calendar_confirm",onClick:M},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-31c0f145"]]);var Ia={exports:{}};/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */Ia.exports,function(e,r){(function(o){var a=r,l=e&&e.exports==a&&e,c=typeof On=="object"&&On;(c.global===c||c.window===c)&&(o=c);var u=function(E){this.message=E};u.prototype=new Error,u.prototype.name="InvalidCharacterError";var f=function(E){throw new u(E)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=/[\t\n\f\r ]/g,y=function(E){E=String(E).replace(g,"");var S=E.length;S%4==0&&(E=E.replace(/==?$/,""),S=E.length),(S%4==1||/[^+a-zA-Z0-9/]/.test(E))&&f("Invalid character: the string to be decoded is not correctly encoded.");for(var N=0,k,A,B="",H=-1;++H<S;)A=m.indexOf(E.charAt(H)),k=N%4?k*64+A:A,N++%4&&(B+=String.fromCharCode(255&k>>(-2*N&6)));return B},w=function(E){E=String(E),/[^\0-\xFF]/.test(E)&&f("The string to be encoded contains characters outside of the Latin1 range.");for(var S=E.length%3,N="",k=-1,A,B,H,D,W=E.length-S;++k<W;)A=E.charCodeAt(k)<<16,B=E.charCodeAt(++k)<<8,H=E.charCodeAt(++k),D=A+B+H,N+=m.charAt(D>>18&63)+m.charAt(D>>12&63)+m.charAt(D>>6&63)+m.charAt(D&63);return S==2?(A=E.charCodeAt(k)<<8,B=E.charCodeAt(++k),D=A+B,N+=m.charAt(D>>10)+m.charAt(D>>4&63)+m.charAt(D<<2&63)+"="):S==1&&(D=E.charCodeAt(k),N+=m.charAt(D>>2)+m.charAt(D<<4&63)+"=="),N},b={encode:w,decode:y,version:"1.0.0"};if(a&&!a.nodeType)if(l)l.exports=b;else for(var M in b)b.hasOwnProperty(M)&&(a[M]=b[M]);else o.base64=b})(On)}(Ia,Ia.exports),Ia.exports;var ih={},ka={};ka.byteLength=Sk,ka.toByteArray=_k,ka.fromByteArray=Mk;for(var Vn=[],un=[],Ek=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mo=0,Ck=Kl.length;Mo<Ck;++Mo)Vn[Mo]=Kl[Mo],un[Kl.charCodeAt(Mo)]=Mo;un[45]=62,un[95]=63;function ah(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");o===-1&&(o=r);var a=o===r?0:4-o%4;return[o,a]}function Sk(e){var r=ah(e),o=r[0],a=r[1];return(o+a)*3/4-a}function xk(e,r,o){return(r+o)*3/4-o}function _k(e){var r,o=ah(e),a=o[0],l=o[1],c=new Ek(xk(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=un[e.charCodeAt(m)]<<18|un[e.charCodeAt(m+1)]<<12|un[e.charCodeAt(m+2)]<<6|un[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=un[e.charCodeAt(m)]<<2|un[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=un[e.charCodeAt(m)]<<10|un[e.charCodeAt(m+1)]<<4|un[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function Ik(e){return Vn[e>>18&63]+Vn[e>>12&63]+Vn[e>>6&63]+Vn[e&63]}function kk(e,r,o){for(var a,l=[],c=r;c<o;c+=3)a=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(e[c+2]&255),l.push(Ik(a));return l.join("")}function Mk(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(kk(e,u,u+c>f?f:u+c));return a===1?(r=e[o-1],l.push(Vn[r>>2]+Vn[r<<4&63]+"==")):a===2&&(r=(e[o-2]<<8)+e[o-1],l.push(Vn[r>>10]+Vn[r>>4&63]+Vn[r<<2&63]+"=")),l.join("")}var ql={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ql.read=function(e,r,o,a,l){var c,u,f=l*8-a-1,m=(1<<f)-1,g=m>>1,y=-7,w=o?l-1:0,b=o?-1:1,M=e[r+w];for(w+=b,c=M&(1<<-y)-1,M>>=-y,y+=f;y>0;c=c*256+e[r+w],w+=b,y-=8);for(u=c&(1<<-y)-1,c>>=-y,y+=a;y>0;u=u*256+e[r+w],w+=b,y-=8);if(c===0)c=1-g;else{if(c===m)return u?NaN:(M?-1:1)*(1/0);u=u+Math.pow(2,a),c=c-g}return(M?-1:1)*u*Math.pow(2,c-a)},ql.write=function(e,r,o,a,l,c){var u,f,m,g=c*8-l-1,y=(1<<g)-1,w=y>>1,b=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=a?0:c-1,E=a?1:-1,S=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=y):(u=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+w>=1?r+=b/m:r+=b*Math.pow(2,1-w),r*m>=2&&(u++,m/=2),u+w>=y?(f=0,u=y):u+w>=1?(f=(r*m-1)*Math.pow(2,l),u=u+w):(f=r*Math.pow(2,w-1)*Math.pow(2,l),u=0));l>=8;e[o+M]=f&255,M+=E,f/=256,l-=8);for(u=u<<l|f,g+=l;g>0;e[o+M]=u&255,M+=E,u/=256,g-=8);e[o+M-E]|=S*128};/*!
75
75
  * The buffer module from node.js, for the browser.
76
76
  *
77
77
  * @author Feross Aboukhadijeh <https://feross.org>
78
78
  * @license MIT
79
- */(function(e){const r=ka,o=ql,a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=A,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l,f.TYPED_ARRAY_SUPPORT=c(),!f.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const x=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(x,p),x.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function u(x){if(x>l)throw new RangeError('The value "'+x+'" is invalid for option "size"');const p=new Uint8Array(x);return Object.setPrototypeOf(p,f.prototype),p}function f(x,p,h){if(typeof x=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(x)}return m(x,p,h)}f.poolSize=8192;function m(x,p,h){if(typeof x=="string")return b(x,p);if(ArrayBuffer.isView(x))return E(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(it(x,ArrayBuffer)||x&&it(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(it(x,SharedArrayBuffer)||x&&it(x.buffer,SharedArrayBuffer)))return S(x,p,h);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=x.valueOf&&x.valueOf();if(T!=null&&T!==x)return f.from(T,p,h);const z=N(x);if(z)return z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return f.from(x[Symbol.toPrimitive]("string"),p,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}f.from=function(x,p,h){return m(x,p,h)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function g(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function y(x,p,h){return g(x),x<=0?u(x):p!==void 0?typeof h=="string"?u(x).fill(p,h):u(x).fill(p):u(x)}f.alloc=function(x,p,h){return y(x,p,h)};function w(x){return g(x),u(x<0?0:k(x)|0)}f.allocUnsafe=function(x){return w(x)},f.allocUnsafeSlow=function(x){return w(x)};function b(x,p){if((typeof p!="string"||p==="")&&(p="utf8"),!f.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const h=B(x,p)|0;let T=u(h);const z=T.write(x,p);return z!==h&&(T=T.slice(0,z)),T}function M(x){const p=x.length<0?0:k(x.length)|0,h=u(p);for(let T=0;T<p;T+=1)h[T]=x[T]&255;return h}function E(x){if(it(x,Uint8Array)){const p=new Uint8Array(x);return S(p.buffer,p.byteOffset,p.byteLength)}return M(x)}function S(x,p,h){if(p<0||x.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<p+(h||0))throw new RangeError('"length" is outside of buffer bounds');let T;return p===void 0&&h===void 0?T=new Uint8Array(x):h===void 0?T=new Uint8Array(x,p):T=new Uint8Array(x,p,h),Object.setPrototypeOf(T,f.prototype),T}function N(x){if(f.isBuffer(x)){const p=k(x.length)|0,h=u(p);return h.length===0||x.copy(h,0,0,p),h}if(x.length!==void 0)return typeof x.length!="number"||Lt(x.length)?u(0):M(x);if(x.type==="Buffer"&&Array.isArray(x.data))return M(x.data)}function k(x){if(x>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return x|0}function A(x){return+x!=x&&(x=0),f.alloc(+x)}f.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==f.prototype},f.compare=function(p,h){if(it(p,Uint8Array)&&(p=f.from(p,p.offset,p.byteLength)),it(h,Uint8Array)&&(h=f.from(h,h.offset,h.byteLength)),!f.isBuffer(p)||!f.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===h)return 0;let T=p.length,z=h.length;for(let U=0,ee=Math.min(T,z);U<ee;++U)if(p[U]!==h[U]){T=p[U],z=h[U];break}return T<z?-1:z<T?1:0},f.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(p,h){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return f.alloc(0);let T;if(h===void 0)for(h=0,T=0;T<p.length;++T)h+=p[T].length;const z=f.allocUnsafe(h);let U=0;for(T=0;T<p.length;++T){let ee=p[T];if(it(ee,Uint8Array))U+ee.length>z.length?(f.isBuffer(ee)||(ee=f.from(ee)),ee.copy(z,U)):Uint8Array.prototype.set.call(z,ee,U);else if(f.isBuffer(ee))ee.copy(z,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=ee.length}return z};function B(x,p){if(f.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||it(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);const h=x.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&h===0)return 0;let z=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return j(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return We(x).length;default:if(z)return T?-1:j(x).length;p=(""+p).toLowerCase(),z=!0}}f.byteLength=B;function H(x,p,h){let T=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,p>>>=0,h<=p))return"";for(x||(x="utf8");;)switch(x){case"hex":return ie(this,p,h);case"utf8":case"utf-8":return le(this,p,h);case"ascii":return V(this,p,h);case"latin1":case"binary":return F(this,p,h);case"base64":return ye(this,p,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,p,h);default:if(T)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),T=!0}}f.prototype._isBuffer=!0;function D(x,p,h){const T=x[p];x[p]=x[h],x[h]=T}f.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;h<p;h+=2)D(this,h,h+1);return this},f.prototype.swap32=function(){const p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let h=0;h<p;h+=4)D(this,h,h+3),D(this,h+1,h+2);return this},f.prototype.swap64=function(){const p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let h=0;h<p;h+=8)D(this,h,h+7),D(this,h+1,h+6),D(this,h+2,h+5),D(this,h+3,h+4);return this},f.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?le(this,0,p):H.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(p){if(!f.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:f.compare(this,p)===0},f.prototype.inspect=function(){let p="";const h=e.INSPECT_MAX_BYTES;return p=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(p+=" ... "),"<Buffer "+p+">"},a&&(f.prototype[a]=f.prototype.inspect),f.prototype.compare=function(p,h,T,z,U){if(it(p,Uint8Array)&&(p=f.from(p,p.offset,p.byteLength)),!f.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(h===void 0&&(h=0),T===void 0&&(T=p?p.length:0),z===void 0&&(z=0),U===void 0&&(U=this.length),h<0||T>p.length||z<0||U>this.length)throw new RangeError("out of range index");if(z>=U&&h>=T)return 0;if(z>=U)return-1;if(h>=T)return 1;if(h>>>=0,T>>>=0,z>>>=0,U>>>=0,this===p)return 0;let ee=U-z,ve=T-h;const nt=Math.min(ee,ve),Xe=this.slice(z,U),rt=p.slice(h,T);for(let qe=0;qe<nt;++qe)if(Xe[qe]!==rt[qe]){ee=Xe[qe],ve=rt[qe];break}return ee<ve?-1:ve<ee?1:0};function W(x,p,h,T,z){if(x.length===0)return-1;if(typeof h=="string"?(T=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Lt(h)&&(h=z?0:x.length-1),h<0&&(h=x.length+h),h>=x.length){if(z)return-1;h=x.length-1}else if(h<0)if(z)h=0;else return-1;if(typeof p=="string"&&(p=f.from(p,T)),f.isBuffer(p))return p.length===0?-1:Y(x,p,h,T,z);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(x,p,h):Uint8Array.prototype.lastIndexOf.call(x,p,h):Y(x,[p],h,T,z);throw new TypeError("val must be string, number or Buffer")}function Y(x,p,h,T,z){let U=1,ee=x.length,ve=p.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(x.length<2||p.length<2)return-1;U=2,ee/=2,ve/=2,h/=2}function nt(rt,qe){return U===1?rt[qe]:rt.readUInt16BE(qe*U)}let Xe;if(z){let rt=-1;for(Xe=h;Xe<ee;Xe++)if(nt(x,Xe)===nt(p,rt===-1?0:Xe-rt)){if(rt===-1&&(rt=Xe),Xe-rt+1===ve)return rt*U}else rt!==-1&&(Xe-=Xe-rt),rt=-1}else for(h+ve>ee&&(h=ee-ve),Xe=h;Xe>=0;Xe--){let rt=!0;for(let qe=0;qe<ve;qe++)if(nt(x,Xe+qe)!==nt(p,qe)){rt=!1;break}if(rt)return Xe}return-1}f.prototype.includes=function(p,h,T){return this.indexOf(p,h,T)!==-1},f.prototype.indexOf=function(p,h,T){return W(this,p,h,T,!0)},f.prototype.lastIndexOf=function(p,h,T){return W(this,p,h,T,!1)};function te(x,p,h,T){h=Number(h)||0;const z=x.length-h;T?(T=Number(T),T>z&&(T=z)):T=z;const U=p.length;T>U/2&&(T=U/2);let ee;for(ee=0;ee<T;++ee){const ve=parseInt(p.substr(ee*2,2),16);if(Lt(ve))return ee;x[h+ee]=ve}return ee}function K(x,p,h,T){return Ue(j(p,x.length-h),x,h,T)}function q(x,p,h,T){return Ue(fe(p),x,h,T)}function X(x,p,h,T){return Ue(We(p),x,h,T)}function se(x,p,h,T){return Ue(Ge(p,x.length-h),x,h,T)}f.prototype.write=function(p,h,T,z){if(h===void 0)z="utf8",T=this.length,h=0;else if(T===void 0&&typeof h=="string")z=h,T=this.length,h=0;else if(isFinite(h))h=h>>>0,isFinite(T)?(T=T>>>0,z===void 0&&(z="utf8")):(z=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const U=this.length-h;if((T===void 0||T>U)&&(T=U),p.length>0&&(T<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let ee=!1;for(;;)switch(z){case"hex":return te(this,p,h,T);case"utf8":case"utf-8":return K(this,p,h,T);case"ascii":case"latin1":case"binary":return q(this,p,h,T);case"base64":return X(this,p,h,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,p,h,T);default:if(ee)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),ee=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ye(x,p,h){return p===0&&h===x.length?r.fromByteArray(x):r.fromByteArray(x.slice(p,h))}function le(x,p,h){h=Math.min(x.length,h);const T=[];let z=p;for(;z<h;){const U=x[z];let ee=null,ve=U>239?4:U>223?3:U>191?2:1;if(z+ve<=h){let nt,Xe,rt,qe;switch(ve){case 1:U<128&&(ee=U);break;case 2:nt=x[z+1],(nt&192)===128&&(qe=(U&31)<<6|nt&63,qe>127&&(ee=qe));break;case 3:nt=x[z+1],Xe=x[z+2],(nt&192)===128&&(Xe&192)===128&&(qe=(U&15)<<12|(nt&63)<<6|Xe&63,qe>2047&&(qe<55296||qe>57343)&&(ee=qe));break;case 4:nt=x[z+1],Xe=x[z+2],rt=x[z+3],(nt&192)===128&&(Xe&192)===128&&(rt&192)===128&&(qe=(U&15)<<18|(nt&63)<<12|(Xe&63)<<6|rt&63,qe>65535&&qe<1114112&&(ee=qe))}}ee===null?(ee=65533,ve=1):ee>65535&&(ee-=65536,T.push(ee>>>10&1023|55296),ee=56320|ee&1023),T.push(ee),z+=ve}return R(T)}const L=4096;function R(x){const p=x.length;if(p<=L)return String.fromCharCode.apply(String,x);let h="",T=0;for(;T<p;)h+=String.fromCharCode.apply(String,x.slice(T,T+=L));return h}function V(x,p,h){let T="";h=Math.min(x.length,h);for(let z=p;z<h;++z)T+=String.fromCharCode(x[z]&127);return T}function F(x,p,h){let T="";h=Math.min(x.length,h);for(let z=p;z<h;++z)T+=String.fromCharCode(x[z]);return T}function ie(x,p,h){const T=x.length;(!p||p<0)&&(p=0),(!h||h<0||h>T)&&(h=T);let z="";for(let U=p;U<h;++U)z+=Qt[x[U]];return z}function ue(x,p,h){const T=x.slice(p,h);let z="";for(let U=0;U<T.length-1;U+=2)z+=String.fromCharCode(T[U]+T[U+1]*256);return z}f.prototype.slice=function(p,h){const T=this.length;p=~~p,h=h===void 0?T:~~h,p<0?(p+=T,p<0&&(p=0)):p>T&&(p=T),h<0?(h+=T,h<0&&(h=0)):h>T&&(h=T),h<p&&(h=p);const z=this.subarray(p,h);return Object.setPrototypeOf(z,f.prototype),z};function de(x,p,h){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+p>h)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(p,h,T){p=p>>>0,h=h>>>0,T||de(p,h,this.length);let z=this[p],U=1,ee=0;for(;++ee<h&&(U*=256);)z+=this[p+ee]*U;return z},f.prototype.readUintBE=f.prototype.readUIntBE=function(p,h,T){p=p>>>0,h=h>>>0,T||de(p,h,this.length);let z=this[p+--h],U=1;for(;h>0&&(U*=256);)z+=this[p+--h]*U;return z},f.prototype.readUint8=f.prototype.readUInt8=function(p,h){return p=p>>>0,h||de(p,1,this.length),this[p]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(p,h){return p=p>>>0,h||de(p,2,this.length),this[p]|this[p+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(p,h){return p=p>>>0,h||de(p,2,this.length),this[p]<<8|this[p+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(p,h){return p=p>>>0,h||de(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(p,h){return p=p>>>0,h||de(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},f.prototype.readBigUInt64LE=oe(function(p){p=p>>>0,Pe(p,"offset");const h=this[p],T=this[p+7];(h===void 0||T===void 0)&&ot(p,this.length-8);const z=h+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,U=this[++p]+this[++p]*2**8+this[++p]*2**16+T*2**24;return BigInt(z)+(BigInt(U)<<BigInt(32))}),f.prototype.readBigUInt64BE=oe(function(p){p=p>>>0,Pe(p,"offset");const h=this[p],T=this[p+7];(h===void 0||T===void 0)&&ot(p,this.length-8);const z=h*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],U=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+T;return(BigInt(z)<<BigInt(32))+BigInt(U)}),f.prototype.readIntLE=function(p,h,T){p=p>>>0,h=h>>>0,T||de(p,h,this.length);let z=this[p],U=1,ee=0;for(;++ee<h&&(U*=256);)z+=this[p+ee]*U;return U*=128,z>=U&&(z-=Math.pow(2,8*h)),z},f.prototype.readIntBE=function(p,h,T){p=p>>>0,h=h>>>0,T||de(p,h,this.length);let z=h,U=1,ee=this[p+--z];for(;z>0&&(U*=256);)ee+=this[p+--z]*U;return U*=128,ee>=U&&(ee-=Math.pow(2,8*h)),ee},f.prototype.readInt8=function(p,h){return p=p>>>0,h||de(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},f.prototype.readInt16LE=function(p,h){p=p>>>0,h||de(p,2,this.length);const T=this[p]|this[p+1]<<8;return T&32768?T|4294901760:T},f.prototype.readInt16BE=function(p,h){p=p>>>0,h||de(p,2,this.length);const T=this[p+1]|this[p]<<8;return T&32768?T|4294901760:T},f.prototype.readInt32LE=function(p,h){return p=p>>>0,h||de(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},f.prototype.readInt32BE=function(p,h){return p=p>>>0,h||de(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},f.prototype.readBigInt64LE=oe(function(p){p=p>>>0,Pe(p,"offset");const h=this[p],T=this[p+7];(h===void 0||T===void 0)&&ot(p,this.length-8);const z=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(T<<24);return(BigInt(z)<<BigInt(32))+BigInt(h+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),f.prototype.readBigInt64BE=oe(function(p){p=p>>>0,Pe(p,"offset");const h=this[p],T=this[p+7];(h===void 0||T===void 0)&&ot(p,this.length-8);const z=(h<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(z)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+T)}),f.prototype.readFloatLE=function(p,h){return p=p>>>0,h||de(p,4,this.length),o.read(this,p,!0,23,4)},f.prototype.readFloatBE=function(p,h){return p=p>>>0,h||de(p,4,this.length),o.read(this,p,!1,23,4)},f.prototype.readDoubleLE=function(p,h){return p=p>>>0,h||de(p,8,this.length),o.read(this,p,!0,52,8)},f.prototype.readDoubleBE=function(p,h){return p=p>>>0,h||de(p,8,this.length),o.read(this,p,!1,52,8)};function ge(x,p,h,T,z,U){if(!f.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>z||p<U)throw new RangeError('"value" argument is out of bounds');if(h+T>x.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(p,h,T,z){if(p=+p,h=h>>>0,T=T>>>0,!z){const ve=Math.pow(2,8*T)-1;ge(this,p,h,T,ve,0)}let U=1,ee=0;for(this[h]=p&255;++ee<T&&(U*=256);)this[h+ee]=p/U&255;return h+T},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(p,h,T,z){if(p=+p,h=h>>>0,T=T>>>0,!z){const ve=Math.pow(2,8*T)-1;ge(this,p,h,T,ve,0)}let U=T-1,ee=1;for(this[h+U]=p&255;--U>=0&&(ee*=256);)this[h+U]=p/ee&255;return h+T},f.prototype.writeUint8=f.prototype.writeUInt8=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,1,255,0),this[h]=p&255,h+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,2,65535,0),this[h]=p&255,this[h+1]=p>>>8,h+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,2,65535,0),this[h]=p>>>8,this[h+1]=p&255,h+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,4,4294967295,0),this[h+3]=p>>>24,this[h+2]=p>>>16,this[h+1]=p>>>8,this[h]=p&255,h+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,4,4294967295,0),this[h]=p>>>24,this[h+1]=p>>>16,this[h+2]=p>>>8,this[h+3]=p&255,h+4};function Ie(x,p,h,T,z){He(p,T,z,x,h,7);let U=Number(p&BigInt(4294967295));x[h++]=U,U=U>>8,x[h++]=U,U=U>>8,x[h++]=U,U=U>>8,x[h++]=U;let ee=Number(p>>BigInt(32)&BigInt(4294967295));return x[h++]=ee,ee=ee>>8,x[h++]=ee,ee=ee>>8,x[h++]=ee,ee=ee>>8,x[h++]=ee,h}function Se(x,p,h,T,z){He(p,T,z,x,h,7);let U=Number(p&BigInt(4294967295));x[h+7]=U,U=U>>8,x[h+6]=U,U=U>>8,x[h+5]=U,U=U>>8,x[h+4]=U;let ee=Number(p>>BigInt(32)&BigInt(4294967295));return x[h+3]=ee,ee=ee>>8,x[h+2]=ee,ee=ee>>8,x[h+1]=ee,ee=ee>>8,x[h]=ee,h+8}f.prototype.writeBigUInt64LE=oe(function(p,h=0){return Ie(this,p,h,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=oe(function(p,h=0){return Se(this,p,h,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(p,h,T,z){if(p=+p,h=h>>>0,!z){const nt=Math.pow(2,8*T-1);ge(this,p,h,T,nt-1,-nt)}let U=0,ee=1,ve=0;for(this[h]=p&255;++U<T&&(ee*=256);)p<0&&ve===0&&this[h+U-1]!==0&&(ve=1),this[h+U]=(p/ee>>0)-ve&255;return h+T},f.prototype.writeIntBE=function(p,h,T,z){if(p=+p,h=h>>>0,!z){const nt=Math.pow(2,8*T-1);ge(this,p,h,T,nt-1,-nt)}let U=T-1,ee=1,ve=0;for(this[h+U]=p&255;--U>=0&&(ee*=256);)p<0&&ve===0&&this[h+U+1]!==0&&(ve=1),this[h+U]=(p/ee>>0)-ve&255;return h+T},f.prototype.writeInt8=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,1,127,-128),p<0&&(p=255+p+1),this[h]=p&255,h+1},f.prototype.writeInt16LE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,2,32767,-32768),this[h]=p&255,this[h+1]=p>>>8,h+2},f.prototype.writeInt16BE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,2,32767,-32768),this[h]=p>>>8,this[h+1]=p&255,h+2},f.prototype.writeInt32LE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,4,2147483647,-2147483648),this[h]=p&255,this[h+1]=p>>>8,this[h+2]=p>>>16,this[h+3]=p>>>24,h+4},f.prototype.writeInt32BE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[h]=p>>>24,this[h+1]=p>>>16,this[h+2]=p>>>8,this[h+3]=p&255,h+4},f.prototype.writeBigInt64LE=oe(function(p,h=0){return Ie(this,p,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=oe(function(p,h=0){return Se(this,p,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Te(x,p,h,T,z,U){if(h+T>x.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function pe(x,p,h,T,z){return p=+p,h=h>>>0,z||Te(x,p,h,4),o.write(x,p,h,T,23,4),h+4}f.prototype.writeFloatLE=function(p,h,T){return pe(this,p,h,!0,T)},f.prototype.writeFloatBE=function(p,h,T){return pe(this,p,h,!1,T)};function ae(x,p,h,T,z){return p=+p,h=h>>>0,z||Te(x,p,h,8),o.write(x,p,h,T,52,8),h+8}f.prototype.writeDoubleLE=function(p,h,T){return ae(this,p,h,!0,T)},f.prototype.writeDoubleBE=function(p,h,T){return ae(this,p,h,!1,T)},f.prototype.copy=function(p,h,T,z){if(!f.isBuffer(p))throw new TypeError("argument should be a Buffer");if(T||(T=0),!z&&z!==0&&(z=this.length),h>=p.length&&(h=p.length),h||(h=0),z>0&&z<T&&(z=T),z===T||p.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),p.length-h<z-T&&(z=p.length-h+T);const U=z-T;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(h,T,z):Uint8Array.prototype.set.call(p,this.subarray(T,z),h),U},f.prototype.fill=function(p,h,T,z){if(typeof p=="string"){if(typeof h=="string"?(z=h,h=0,T=this.length):typeof T=="string"&&(z=T,T=this.length),z!==void 0&&typeof z!="string")throw new TypeError("encoding must be a string");if(typeof z=="string"&&!f.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(p.length===1){const ee=p.charCodeAt(0);(z==="utf8"&&ee<128||z==="latin1")&&(p=ee)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(h<0||this.length<h||this.length<T)throw new RangeError("Out of range index");if(T<=h)return this;h=h>>>0,T=T===void 0?this.length:T>>>0,p||(p=0);let U;if(typeof p=="number")for(U=h;U<T;++U)this[U]=p;else{const ee=f.isBuffer(p)?p:f.from(p,z),ve=ee.length;if(ve===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(U=0;U<T-h;++U)this[U+h]=ee[U%ve]}return this};const he={};function Ce(x,p,h){he[x]=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${x}]`,this.stack,delete this.name}get code(){return x}set code(z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:z,writable:!0})}toString(){return`${this.name} [${x}]: ${this.message}`}}}Ce("ERR_BUFFER_OUT_OF_BOUNDS",function(x){return x?`${x} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ce("ERR_INVALID_ARG_TYPE",function(x,p){return`The "${x}" argument must be of type number. Received type ${typeof p}`},TypeError),Ce("ERR_OUT_OF_RANGE",function(x,p,h){let T=`The value of "${x}" is out of range.`,z=h;return Number.isInteger(h)&&Math.abs(h)>2**32?z=xe(String(h)):typeof h=="bigint"&&(z=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(z=xe(z)),z+="n"),T+=` It must be ${p}. Received ${z}`,T},RangeError);function xe(x){let p="",h=x.length;const T=x[0]==="-"?1:0;for(;h>=T+4;h-=3)p=`_${x.slice(h-3,h)}${p}`;return`${x.slice(0,h)}${p}`}function Le(x,p,h){Pe(p,"offset"),(x[p]===void 0||x[p+h]===void 0)&&ot(p,x.length-(h+1))}function He(x,p,h,T,z,U){if(x>h||x<p){const ee=typeof p=="bigint"?"n":"";let ve;throw p===0||p===BigInt(0)?ve=`>= 0${ee} and < 2${ee} ** ${(U+1)*8}${ee}`:ve=`>= -(2${ee} ** ${(U+1)*8-1}${ee}) and < 2 ** ${(U+1)*8-1}${ee}`,new he.ERR_OUT_OF_RANGE("value",ve,x)}Le(T,z,U)}function Pe(x,p){if(typeof x!="number")throw new he.ERR_INVALID_ARG_TYPE(p,"number",x)}function ot(x,p,h){throw Math.floor(x)!==x?(Pe(x,h),new he.ERR_OUT_OF_RANGE("offset","an integer",x)):p<0?new he.ERR_BUFFER_OUT_OF_BOUNDS:new he.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,x)}const St=/[^+/0-9A-Za-z-_]/g;function yt(x){if(x=x.split("=")[0],x=x.trim().replace(St,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function j(x,p){p=p||1/0;let h;const T=x.length;let z=null;const U=[];for(let ee=0;ee<T;++ee){if(h=x.charCodeAt(ee),h>55295&&h<57344){if(!z){if(h>56319){(p-=3)>-1&&U.push(239,191,189);continue}else if(ee+1===T){(p-=3)>-1&&U.push(239,191,189);continue}z=h;continue}if(h<56320){(p-=3)>-1&&U.push(239,191,189),z=h;continue}h=(z-55296<<10|h-56320)+65536}else z&&(p-=3)>-1&&U.push(239,191,189);if(z=null,h<128){if((p-=1)<0)break;U.push(h)}else if(h<2048){if((p-=2)<0)break;U.push(h>>6|192,h&63|128)}else if(h<65536){if((p-=3)<0)break;U.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((p-=4)<0)break;U.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return U}function fe(x){const p=[];for(let h=0;h<x.length;++h)p.push(x.charCodeAt(h)&255);return p}function Ge(x,p){let h,T,z;const U=[];for(let ee=0;ee<x.length&&!((p-=2)<0);++ee)h=x.charCodeAt(ee),T=h>>8,z=h%256,U.push(z),U.push(T);return U}function We(x){return r.toByteArray(yt(x))}function Ue(x,p,h,T){let z;for(z=0;z<T&&!(z+h>=p.length||z>=x.length);++z)p[z+h]=x[z];return z}function it(x,p){return x instanceof p||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===p.name}function Lt(x){return x!==x}const Qt=function(){const x="0123456789abcdef",p=new Array(256);for(let h=0;h<16;++h){const T=h*16;for(let z=0;z<16;++z)p[T+z]=x[h]+x[z]}return p}();function oe(x){return typeof BigInt>"u"?Ae:x}function Ae(){throw new Error("BigInt not supported")}})(ih);const Mk=e=>{const r=atob(e),o=r.length,a=new Uint8Array(o);for(let l=0;l<o;l++)a[l]=r.charCodeAt(l);return a},Ak=({type:e,data:r})=>`data:${e};base64,${r}`,Tk=e=>Mk(e),sh=(e,r)=>{const o=Tk(e),a=ih.Buffer.from(o.buffer);return new Blob([a.buffer],{type:r})},lh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16.828'%20height='16.828'%20viewBox='0%200%2016.828%2016.828'%3e%3cg%20id='组_10025'%20data-name='组%2010025'%20transform='translate(0.914%201.414)'%3e%3cline%20id='直线_1370'%20data-name='直线%201370'%20x2='14'%20y2='14'%20transform='translate(0.5)'%20fill='none'%20stroke='%23c1c1c1'%20stroke-linecap='round'%20stroke-width='2'/%3e%3cline%20id='直线_1371'%20data-name='直线%201371'%20x1='14'%20y2='14'%20transform='translate(0.5)'%20fill='none'%20stroke='%23c1c1c1'%20stroke-linecap='round'%20stroke-width='2'/%3e%3c/g%3e%3c/svg%3e",Nk="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cg%20id='组_11460'%20data-name='组%2011460'%20transform='translate(-1070%20-577)'%3e%3cpath%20id='路径_9629'%20data-name='路径%209629'%20d='M8,14.625A6.625,6.625,0,1,0,1.375,8,6.625,6.625,0,0,0,8,14.625ZM8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16Z'%20transform='translate(1070%20577)'%20fill='%23999'/%3e%3cpath%20id='路径_9630'%20data-name='路径%209630'%20d='M449.688,212.688a.687.687,0,1,0-1.375,0v5.3a.687.687,0,1,0,1.375,0ZM449,219.375a1,1,0,1,0,1,1A1,1,0,0,0,449,219.375Z'%20transform='translate(629%20368.313)'%20fill='%23999'/%3e%3c/g%3e%3c/svg%3e",Ma=e=>(t.pushScopeId("data-v-180f3c2e"),e=e(),t.popScopeId(),e),vk={class:"signature_box"},Bk=Ma(()=>t.createElementVNode("div",{class:"signature_tilte"},"Signature",-1)),Dk=Ma(()=>t.createElementVNode("div",{class:"subtitle"},"Please use the box below to add electronic signature.",-1)),Lk=Ma(()=>t.createElementVNode("div",{class:"label"},"X",-1)),Ok=Ma(()=>t.createElementVNode("div",{class:"signature_tips"},[t.createElementVNode("img",{class:"signature_icon",src:Nk}),t.createElementVNode("div",{class:"tips"},"The signature is saved for later use.")],-1)),Rk={class:"signature_operate"},Vk=gi(t.defineComponent({__name:"SignaturePad",setup(e){t.useCssVars(K=>({"72d0431a":te.width,"1ad613cc":te.height,"5df9b942":te.top,"6139a5ba":te.left}));const r=t.ref(hi()),a=vr().getDocumentTemplate(),l=t.ref(null),c=t.ref(null),u=t.ref(null),m=Is().getSignaturePad(),g=m.confirm,y=t.reactive({status:!1,ctx:null,originSignature:"",saveSignature:"",points:new Array,beginPoint:null}),w=t.reactive({x:0,y:0}),b=K=>{let[q,X]=[K.offsetLeft,K.offsetTop];const se=ye=>{X+=ye.offsetTop,q+=ye.offsetLeft,ye.offsetParent&&se(ye.offsetParent)};return K.offsetParent&&se(K.offsetParent),{left:q,top:X}},M=K=>{let{left:q,top:X}=K.getBoundingClientRect();return{left:q,top:X}},E=K=>{const q=document.createElement("canvas");q.width=K.width,q.height=K.height;const X=q.getContext("2d");return X==null||X.putImageData(K,0,0),q.toDataURL().split(",")[1]},S=K=>{if(c.value)if(K.preventDefault(),K.stopPropagation(),y.status=!0,r.value){const{left:q,top:X}=M(c.value);K=K,w.x=K.targetTouches[0].clientX-q,w.y=K.targetTouches[0].clientY-X,y.points.push({x:w.x,y:w.y})}else{const{left:q,top:X}=b(c.value);K=K,w.x=K.clientX-q,w.y=K.clientY-X,y.points.push({x:w.x,y:w.y})}},N=(K,q,X)=>{const se=y.ctx;se.beginPath(),se.moveTo(K.x,K.y),se.quadraticCurveTo(q.x,q.y,X.x,X.y),se.stroke(),se.closePath()},k=K=>{if(c.value&&(K.preventDefault(),K.stopPropagation(),y.status&&y.ctx)){if(r.value){const{left:q,top:X}=M(c.value);K=K;const se=K.targetTouches[0].clientX-q,ye=K.targetTouches[0].clientY-X;y.points.push({x:se,y:ye})}else{const{left:q,top:X}=b(c.value);K=K;const se=K.clientX-q,ye=K.clientY-X;y.points.push({x:se,y:ye})}if(y.points.length>3){const q=y.points.slice(-2),X=q[0],se={x:(q[0].x+q[1].x)/2,y:(q[0].y+q[1].y)/2};y.beginPoint&&N(y.beginPoint,X,se),y.beginPoint=se}}},A=K=>{if(c.value){K.preventDefault(),K.stopPropagation();const q=c.value;if(q.style.cursor="auto",y.status){if(r.value){const{left:ye,top:le}=M(c.value);K=K;const L=K.changedTouches[0].clientX-ye,R=K.changedTouches[0].clientY-le;y.points.push({x:L,y:R})}else{const{left:ye,top:le}=b(c.value);K=K;const L=K.clientX-ye,R=K.clientY-le;y.points.push({x:L,y:R})}if(y.points.length>3){const ye=y.points.slice(-2),le=ye[0],L=ye[1];y.beginPoint&&N(y.beginPoint,le,L)}y.beginPoint=null,y.points=[];const X=y.ctx;X==null||X.closePath();const se=X==null?void 0:X.getImageData(0,0,q.width,q.height);y.saveSignature=E(se)}}y.status=!1},B=()=>{m.close()},H=()=>{y.ctx&&(r.value?y.ctx.clearRect(0,0,y.ctx.canvas.height,y.ctx.canvas.width):y.ctx.clearRect(0,0,y.ctx.canvas.width,y.ctx.canvas.height),y.saveSignature="")},D=K=>{K.target===u.value&&m.close()},W=async()=>{if(y.saveSignature!==y.originSignature){const K=ha.service({target:a.relatedDom||document.body});await g(m.options.dataKey,y.saveSignature,m.options.isGuardian?465921:345601,m.options.type),K.close(),m.close()}},Y=()=>{B()},te=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(async()=>{var q;r.value?(te.top="calc((100vh - 100vw) / 2)",te.left="calc((100vw - 100vh) / 2)",te.width="100vh",te.height="100vw"):a.relatedDom?(te.top=`${a.relatedDom.offsetTop}px`,te.left=`${a.relatedDom.offsetLeft}px`,te.width=`${a.relatedDom.clientWidth}px`,te.height=`${a.relatedDom.clientHeight}px`):(te.top="0",te.left="0",te.width="100vw",te.height="100vh");const K=ha.service({target:a.relatedDom||document.body});if(c.value&&l.value){const X=c.value,se=X.getContext("2d",{willReadFrequently:!0});y.ctx=se,r.value?t.nextTick(()=>{var le,L;X.width=((le=l.value)==null?void 0:le.clientWidth)||0,X.height=((L=l.value)==null?void 0:L.clientHeight)||0,se.translate(X.width/2,X.height/2),se.rotate(-Math.PI/2),se.translate(-X.height/2,-X.width/2),se.lineWidth=5}):(X.width=l.value.clientWidth,X.height=l.value.clientHeight,se.lineWidth=3),se.lineJoin="round",se.lineCap="round";const ye=m.options;if(ye.dataKey)if(Rn.get(ye.formData,ye.dataKey)){const L=((q=m.options)==null?void 0:q.value)||"";if(L){const R=new Image;R.src=L,R.onload=()=>{se.drawImage(R,0,0,R.width,R.height);const V=se==null?void 0:se.getImageData(0,0,X.width,X.height);y.originSignature=E(V),y.saveSignature=y.originSignature}}else y.originSignature="",y.saveSignature=""}else y.originSignature="",y.saveSignature=""}K.close()}),(K,q)=>{const X=br;return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref_key:"signatureView",ref:u,class:t.normalizeClass(r.value?"signature_view signature_view_mobile":"signature_view signature_view_ps"),onClick:D},[t.createElementVNode("div",vk,[t.createElementVNode("img",{class:"signature_close",src:lh,onClick:B}),Bk,t.createElementVNode("div",{class:"signature_subtitle"},[Dk,t.createElementVNode("div",{class:"signature_clear",onClick:H},"Clear")]),t.createElementVNode("div",{class:"signature_pad",ref_key:"signatureBox",ref:l},[t.createElementVNode("canvas",{class:"pad",ref_key:"signaturePad",ref:c,onMousedown:q[0]||(q[0]=se=>!r.value&&S(se)),onMouseup:q[1]||(q[1]=se=>!r.value&&A(se)),onMousemoveCapture:q[2]||(q[2]=se=>!r.value&&k(se)),onMouseleave:q[3]||(q[3]=se=>!r.value&&A(se)),onTouchstart:q[4]||(q[4]=se=>S(se)),onTouchend:q[5]||(q[5]=se=>A(se)),onTouchmoveCapture:q[6]||(q[6]=se=>k(se)),onTouchcancel:q[7]||(q[7]=se=>A(se))},null,544),Lk],512),Ok,t.createElementVNode("div",Rk,[t.createVNode(X,{class:"signature_chioce_button signature_cancel",onClick:Y},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(X,{class:"signature_chioce_button signature_confirm",onClick:W},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-180f3c2e"]]),zk="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20.002'%20viewBox='0%200%2020%2020.002'%3e%3cg%20id='组_22313'%20data-name='组%2022313'%20transform='translate(-106.404%20-80.254)'%3e%3cpath%20id='路径_23519'%20data-name='路径%2023519'%20d='M209.607,82.221a1.53,1.53,0,0,1,2.154.006l1.077,1.077a1.533,1.533,0,0,1,.006,2.154L201.509,96.794h1.079l-4.316-4.316v1.079l11.335-11.335Zm-1.079-1.079L197.193,92.477a.763.763,0,0,0,0,1.079l4.316,4.316a.763.763,0,0,0,1.079,0l11.335-11.335a3.059,3.059,0,0,0-.006-4.312l-1.077-1.077a3.056,3.056,0,0,0-4.312-.006Zm-1.623,2.7,4.316,4.316,1.079-1.079-4.316-4.316L206.9,83.845Z'%20transform='translate(-88.406)'%20fill='%23333'/%3e%3cpath%20id='路径_23520'%20data-name='路径%2023520'%20d='M108.6,583.993l-2.158,6.475a.763.763,0,0,0,.965.965l6.474-2.158a.763.763,0,0,0,.3-1.263l-4.316-4.316a.763.763,0,0,0-1.263.3Zm1.448.483-1.263.3,4.316,4.316.3-1.263-6.474,2.158.965.965,2.158-6.474Z'%20transform='translate(0%20-491.217)'%20fill='%23333'/%3e%3c/g%3e%3c/svg%3e",Pk={clearIcon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMC4yMDEiIHZpZXdCb3g9IjAgMCAyMCAyMC4yMDEiPjxnIGRhdGEtbmFtZT0i57uEIDIyMzYzIj48ZyBkYXRhLW5hbWU9Iue7hCAyMjM2MiIgZmlsbD0iIzMzMyIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9Ii40Ij48cGF0aCBkYXRhLW5hbWU9Iui3r+W+hCAyMzUzNyIgZD0iTTE4LjM4NCAxMC45MDRoLS4zNTd2NS40NDFhMTIuOTUyIDEyLjk1MiAwIDAgMCAuMzU3IDIuOTQzLjcxNi43MTYgMCAwIDEtLjcxNC43MTRIMi4zM2EuNzE2LjcxNiAwIDAgMS0uNzEzLS43MTQgMTIuMTI4IDEyLjEyOCAwIDAgMCAuMzU3LTIuODcydi01LjUxMmgtLjM1N2EuNzE2LjcxNiAwIDAgMS0uNzE0LS43MTRWNi42MjNhLjcxNi43MTYgMCAwIDEgLjcxNC0uNzE0aDYuMDY1VjEuOTg1QTEuNzg5IDEuNzg5IDAgMCAxIDkuNDY2LjIwMWgxLjA3YTEuNzg5IDEuNzg5IDAgMCAxIDEuNzg0IDEuNzg0djMuOTI0aDYuMDY1YS43MTYuNzE2IDAgMCAxIC43MTQuNzE0djMuNTY4YS43MTYuNzE2IDAgMCAxLS43MTQuNzE0em0tMTIuMzEgOC4zODR2LTQuNzI3YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNzI3SDkuODJ2LTQuNzI3YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNzI3aDIuODU0di00LjcyN2EuMjc0LjI3NCAwIDAgMSAuMjY4LS4yNjdoLjE3OGEuMjc0LjI3NCAwIDAgMSAuMjY4LjI2N3Y0LjcyN2gzLjU3MmExMS45NCAxMS45NCAwIDAgMS0uMzU3LTIuODcydi01LjUxMkgyLjY4NnY1LjUxMmExMS45MzUgMTEuOTM1IDAgMCAxLS4zNTcgMi44NzJ6bTEyLjMxLTEyLjMwOWEuMzU4LjM1OCAwIDAgMC0uMzU3LS4zNTdoLTYuNDIydi00LjQ2QTEuMjQxIDEuMjQxIDAgMCAwIDEwLjM1Ni45MTNoLS43MTNhMS4yNDEgMS4yNDEgMCAwIDAtMS4yNDkgMS4yNDl2NC40NmgtNi40MmEuMzU4LjM1OCAwIDAgMC0uMzU3LjM1N3YyLjg1NGEuMzU4LjM1OCAwIDAgMCAuMzU3LjM1N2gxNi4wNTVhLjM1OC4zNTggMCAwIDAgLjM1Ny0uMzU3VjYuOTc5em0wIDAiLz48cGF0aCBkYXRhLW5hbWU9Iui3r+W+hCAyMzUzOCIgZD0iTTE4LjM4NCAxMC45MDRoLS4zNTd2NS40NDFhMTIuOTUyIDEyLjk1MiAwIDAgMCAuMzU3IDIuOTQzLjcxNi43MTYgMCAwIDEtLjcxNC43MTRIMi4zM2EuNzE2LjcxNiAwIDAgMS0uNzEzLS43MTQgMTIuMTI4IDEyLjEyOCAwIDAgMCAuMzU3LTIuODcydi01LjUxMmgtLjM1N2EuNzE2LjcxNiAwIDAgMS0uNzE0LS43MTRWNi42MjNhLjcxNi43MTYgMCAwIDEgLjcxNC0uNzE0aDYuMDY1VjEuOTg1QTEuNzg5IDEuNzg5IDAgMCAxIDkuNDY2LjIwMWgxLjA3YTEuNzg5IDEuNzg5IDAgMCAxIDEuNzg0IDEuNzg0djMuOTI0aDYuMDY1YS43MTYuNzE2IDAgMCAxIC43MTQuNzE0djMuNTY4YS43MTYuNzE2IDAgMCAxLS43MTQuNzE0em0tMTIuMzEgOC4xNTV2LTQuNWEuMjc0LjI3NCAwIDAgMSAuMjY4LS4yNjdoLjE3OGEuMjc0LjI3NCAwIDAgMSAuMjY4LjI2N3Y0LjVIOS44MnYtNC41YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNWgyLjg1NHYtNC41YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNWgzLjMzOWE5LjAzOCA5LjAzOCAwIDAgMS0uMzU3LTIuNjQzdi01LjUxMkgyLjkxNHY1LjUxMmE5LjAzNSA5LjAzNSAwIDAgMS0uMzU3IDIuNjQzaDMuNTE3em0xMi4wOC0xMS44NTFhLjM1OC4zNTggMCAwIDAtLjM1Ny0uMzU3aC02LjQyM1YyLjE2M2MwLS43LS41NTMtMS4wMi0xLjI0OS0xLjAyaC0uMjUxYy0uNyAwLTEuMjQ5LjMyNC0xLjI0OSAxLjAydjQuNjg5SDIuMjAzYS4zNTguMzU4IDAgMCAwLS4zNTcuMzU3djIuNGEuMzU4LjM1OCAwIDAgMCAuMzU3LjM1N2gxNS42YS4zNTguMzU4IDAgMCAwIC4zNTctLjM1N3YtMi40em0uMjI5LS4yMjkiLz48L2c+PHBhdGggZGF0YS1uYW1lPSLnn6nlvaIgMjMxNzUiIGZpbGw9Im5vbmUiIGQ9Ik0wIC4xMDFoMjB2MjBIMHoiLz48L2c+PC9zdmc+",clearDisableIcon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMC4yMDEiIHZpZXdCb3g9IjAgMCAyMCAyMC4yMDEiPjxnIGRhdGEtbmFtZT0i57uEIDIyMzYzIj48ZyBkYXRhLW5hbWU9Iue7hCAyMjM2MiIgZmlsbD0iI2MxYzFjMSIgc3Ryb2tlPSIjYzFjMWMxIiBzdHJva2Utd2lkdGg9Ii40Ij48cGF0aCBkYXRhLW5hbWU9Iui3r+W+hCAyMzUzNyIgZD0iTTE4LjM4NCAxMC45MDRoLS4zNTd2NS40NDFhMTIuOTUyIDEyLjk1MiAwIDAgMCAuMzU3IDIuOTQzLjcxNi43MTYgMCAwIDEtLjcxNC43MTRIMi4zM2EuNzE2LjcxNiAwIDAgMS0uNzEzLS43MTQgMTIuMTI4IDEyLjEyOCAwIDAgMCAuMzU3LTIuODcydi01LjUxMmgtLjM1N2EuNzE2LjcxNiAwIDAgMS0uNzE0LS43MTRWNi42MjNhLjcxNi43MTYgMCAwIDEgLjcxNC0uNzE0aDYuMDY1VjEuOTg1QTEuNzg5IDEuNzg5IDAgMCAxIDkuNDY2LjIwMWgxLjA3YTEuNzg5IDEuNzg5IDAgMCAxIDEuNzg0IDEuNzg0djMuOTI0aDYuMDY1YS43MTYuNzE2IDAgMCAxIC43MTQuNzE0djMuNTY4YS43MTYuNzE2IDAgMCAxLS43MTQuNzE0em0tMTIuMzEgOC4zODR2LTQuNzI3YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNzI3SDkuODJ2LTQuNzI3YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNzI3aDIuODU0di00LjcyN2EuMjc0LjI3NCAwIDAgMSAuMjY4LS4yNjdoLjE3OGEuMjc0LjI3NCAwIDAgMSAuMjY4LjI2N3Y0LjcyN2gzLjU3MmExMS45NCAxMS45NCAwIDAgMS0uMzU3LTIuODcydi01LjUxMkgyLjY4NnY1LjUxMmExMS45MzUgMTEuOTM1IDAgMCAxLS4zNTcgMi44NzJ6bTEyLjMxLTEyLjMwOWEuMzU4LjM1OCAwIDAgMC0uMzU3LS4zNTdoLTYuNDIydi00LjQ2QTEuMjQxIDEuMjQxIDAgMCAwIDEwLjM1Ni45MTNoLS43MTNhMS4yNDEgMS4yNDEgMCAwIDAtMS4yNDkgMS4yNDl2NC40NmgtNi40MmEuMzU4LjM1OCAwIDAgMC0uMzU3LjM1N3YyLjg1NGEuMzU4LjM1OCAwIDAgMCAuMzU3LjM1N2gxNi4wNTVhLjM1OC4zNTggMCAwIDAgLjM1Ny0uMzU3VjYuOTc5em0wIDAiLz48cGF0aCBkYXRhLW5hbWU9Iui3r+W+hCAyMzUzOCIgZD0iTTE4LjM4NCAxMC45MDRoLS4zNTd2NS40NDFhMTIuOTUyIDEyLjk1MiAwIDAgMCAuMzU3IDIuOTQzLjcxNi43MTYgMCAwIDEtLjcxNC43MTRIMi4zM2EuNzE2LjcxNiAwIDAgMS0uNzEzLS43MTQgMTIuMTI4IDEyLjEyOCAwIDAgMCAuMzU3LTIuODcydi01LjUxMmgtLjM1N2EuNzE2LjcxNiAwIDAgMS0uNzE0LS43MTRWNi42MjNhLjcxNi43MTYgMCAwIDEgLjcxNC0uNzE0aDYuMDY1VjEuOTg1QTEuNzg5IDEuNzg5IDAgMCAxIDkuNDY2LjIwMWgxLjA3YTEuNzg5IDEuNzg5IDAgMCAxIDEuNzg0IDEuNzg0djMuOTI0aDYuMDY1YS43MTYuNzE2IDAgMCAxIC43MTQuNzE0djMuNTY4YS43MTYuNzE2IDAgMCAxLS43MTQuNzE0em0tMTIuMzEgOC4xNTV2LTQuNWEuMjc0LjI3NCAwIDAgMSAuMjY4LS4yNjdoLjE3OGEuMjc0LjI3NCAwIDAgMSAuMjY4LjI2N3Y0LjVIOS44MnYtNC41YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNWgyLjg1NHYtNC41YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNWgzLjMzOWE5LjAzOCA5LjAzOCAwIDAgMS0uMzU3LTIuNjQzdi01LjUxMkgyLjkxNHY1LjUxMmE5LjAzNSA5LjAzNSAwIDAgMS0uMzU3IDIuNjQzaDMuNTE3em0xMi4wOC0xMS44NTFhLjM1OC4zNTggMCAwIDAtLjM1Ny0uMzU3aC02LjQyM1YyLjE2M2MwLS43LS41NTMtMS4wMi0xLjI0OS0xLjAyaC0uMjUxYy0uNyAwLTEuMjQ5LjMyNC0xLjI0OSAxLjAydjQuNjg5SDIuMjAzYS4zNTguMzU4IDAgMCAwLS4zNTcuMzU3djIuNGEuMzU4LjM1OCAwIDAgMCAuMzU3LjM1N2gxNS42YS4zNTguMzU4IDAgMCAwIC4zNTctLjM1N3YtMi40em0uMjI5LS4yMjkiLz48L2c+PHBhdGggZGF0YS1uYW1lPSLnn6nlvaIgMjMxNzUiIGZpbGw9Im5vbmUiIGQ9Ik0wIC4xMDFoMjB2MjBIMHoiLz48L2c+PC9zdmc+",undoIcon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48ZyBkYXRhLW5hbWU9Iue7hCAyMjM2MSI+PHBhdGggZGF0YS1uYW1lPSLot6/lvoQgMjM1MjYiIGQ9Ik0xMy4xIDQuNDM0SDUuNzIxbDIuMjA3LTEuNDU4YS42ODYuNjg2IDAgMCAwIC4yMDctLjk3Mi42NzYuNjc2IDAgMCAwLS45NjUtLjIwOEwzLjAzMiA0LjU3NGEuNjMzLjYzMyAwIDAgMC0uMjc2LjU1Ni44Ni44NiAwIDAgMCAuMjc2LjU1Nkw3LjE3IDguNDY0Yy4wNjkuMTM5LjIwNy4xMzkuMzQ1LjEzOWEuODQ5Ljg0OSAwIDAgMCAuNTUyLS4yNzguNjg2LjY4NiAwIDAgMC0uMjA3LS45NzJMNS41ODQgNS44MjVIMTMuMWE1LjU1NiA1LjU1NiAwIDAgMSAwIDExLjExMkguNjlhLjY5NS42OTUgMCAwIDAgMCAxLjM4OUgxMy4xYTYuOTQ1IDYuOTQ1IDAgMCAwIDAtMTMuODl6IiBmaWxsPSIjMzMzIi8+PHBhdGggZGF0YS1uYW1lPSLnn6nlvaIgMjMxNDkiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2c+PC9zdmc+",undoDisableIcon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48ZyBkYXRhLW5hbWU9Iue7hCAyMjM2MSI+PHBhdGggZGF0YS1uYW1lPSLot6/lvoQgMjM1MjYiIGQ9Ik0xMy4xIDQuNDM0SDUuNzIxbDIuMjA3LTEuNDU4YS42ODYuNjg2IDAgMCAwIC4yMDctLjk3Mi42NzYuNjc2IDAgMCAwLS45NjUtLjIwOEwzLjAzMiA0LjU3NGEuNjMzLjYzMyAwIDAgMC0uMjc2LjU1Ni44Ni44NiAwIDAgMCAuMjc2LjU1Nkw3LjE3IDguNDY0Yy4wNjkuMTM5LjIwNy4xMzkuMzQ1LjEzOWEuODQ5Ljg0OSAwIDAgMCAuNTUyLS4yNzguNjg2LjY4NiAwIDAgMC0uMjA3LS45NzJMNS41ODQgNS44MjVIMTMuMWE1LjU1NiA1LjU1NiAwIDAgMSAwIDExLjExMkguNjlhLjY5NS42OTUgMCAwIDAgMCAxLjM4OUgxMy4xYTYuOTQ1IDYuOTQ1IDAgMCAwIDAtMTMuODl6IiBmaWxsPSIjYzFjMWMxIi8+PHBhdGggZGF0YS1uYW1lPSLnn6nlvaIgMjMxNDkiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2c+PC9zdmc+",redoIcon:"data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9Iue7hCAyMjM2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZGF0YS1uYW1lPSLot6/lvoQgMjM1MjYiIGQ9Ik02LjkgNC40MzRoNy4zNzlsLTIuMjA3LTEuNDU4YS42ODYuNjg2IDAgMCAxLS4yMDctLjk3Mi42NzYuNjc2IDAgMCAxIC45NjUtLjIwOGw0LjEzOCAyLjc3OGEuNjMzLjYzMyAwIDAgMSAuMjc2LjU1Ni44Ni44NiAwIDAgMS0uMjc2LjU1NkwxMi44MyA4LjQ2NGMtLjA2OS4xMzktLjIwNy4xMzktLjM0NS4xMzlhLjg0OS44NDkgMCAwIDEtLjU1Mi0uMjc4LjY4Ni42ODYgMCAwIDEgLjIwNy0uOTcybDIuMjc2LTEuNTI4SDYuOWE1LjU1NiA1LjU1NiAwIDAgMCAwIDExLjExMmgxMi40MWEuNjk1LjY5NSAwIDAgMSAwIDEuMzg5SDYuOWE2Ljk0NSA2Ljk0NSAwIDAgMSAwLTEzLjg5eiIgZmlsbD0iIzMzMyIvPjxwYXRoIGRhdGEtbmFtZT0i55+p5b2iIDIzMTQ5IiBmaWxsPSJub25lIiBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9zdmc+",redoDisableIcon:"data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9Iue7hCAyMjM2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZGF0YS1uYW1lPSLot6/lvoQgMjM1MjYiIGQ9Ik02LjkgNC40MzRoNy4zNzlsLTIuMjA3LTEuNDU4YS42ODYuNjg2IDAgMCAxLS4yMDctLjk3Mi42NzYuNjc2IDAgMCAxIC45NjUtLjIwOGw0LjEzOCAyLjc3OGEuNjMzLjYzMyAwIDAgMSAuMjc2LjU1Ni44Ni44NiAwIDAgMS0uMjc2LjU1NkwxMi44MyA4LjQ2NGMtLjA2OS4xMzktLjIwNy4xMzktLjM0NS4xMzlhLjg0OS44NDkgMCAwIDEtLjU1Mi0uMjc4LjY4Ni42ODYgMCAwIDEgLjIwNy0uOTcybDIuMjc2LTEuNTI4SDYuOWE1LjU1NiA1LjU1NiAwIDAgMCAwIDExLjExMmgxMi40MWEuNjk1LjY5NSAwIDAgMSAwIDEuMzg5SDYuOWE2Ljk0NSA2Ljk0NSAwIDAgMSAwLTEzLjg5eiIgZmlsbD0iI2MxYzFjMSIvPjxwYXRoIGRhdGEtbmFtZT0i55+p5b2iIDIzMTQ5IiBmaWxsPSJub25lIiBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9zdmc+"},qt=e=>Pk[e],$k=e=>(t.pushScopeId("data-v-516516a5"),e=e(),t.popScopeId(),e),Fk={class:"image-editor-box"},jk={key:0,class:"image-editor-controler"},Uk={key:0,class:"image-editor-no_edit"},Hk={key:1,class:"image-editor-editing"},Wk={class:"left"},Yk=["src"],Gk=["src"],Kk=["src"],qk=[$k(()=>t.createElementVNode("div",null,"Confirm",-1))],Qk=gi(t.defineComponent({__name:"ImageEditor",setup(e){t.useCssVars(L=>({"455fdd5f":N.width,"4cccd4ae":N.height,b366f9a4:N.top,"2340194e":N.left}));const r=t.ref(hi()),a=ks().getImageEditor(),c=vr().getDocumentTemplate(),u=a.confirm,f=t.ref(null),m=t.ref(null),g=t.ref(null),y=t.reactive({x:0,y:0,width:0,height:0}),w=t.reactive({x:0,y:0}),b=t.reactive({isEditable:!1,clearIcon:qt("clearDisableIcon"),undoIcon:qt("undoDisableIcon"),redoIcon:qt("redoDisableIcon"),ctx:null,isDrawing:!1,color:"#ff0000",stroke:"2",originImg:void 0,index:0,operateList:new Array,redoList:new Array,originImage:"",currentImage:"",saveImage:"",type:"",points:new Array,beginPoint:null}),M=L=>{let[R,V]=[L.offsetLeft,L.offsetTop];const F=ie=>{V+=ie.offsetTop,R+=ie.offsetLeft,ie.offsetParent&&F(ie.offsetParent)};return L.offsetParent&&F(L.offsetParent),{left:R,top:V}},E=L=>{let{left:R,top:V}=L.getBoundingClientRect();return{left:R,top:V}},S=({i_width:L,i_height:R,c_width:V,c_height:F})=>{const ie=L/R,ue=V/F;switch(!0){case ie>ue:L=V,R=L/ie;break;case ie<ue:R=F,L=R*ie;break;case ie==ue:L=V,R=F;break}return{width:L,height:R}},N=t.reactive({top:"",left:"",width:"",height:""});t.onMounted(async()=>{let L=a.options.src;const R=L.split(/[:;]/);if(R.length===3?b.type=R[1]:b.type="image/png",r.value?(N.top="0",N.left="0",N.width="100vw",N.height="100vh"):c.relatedDom?(N.top=`${c.relatedDom.offsetTop}px`,N.left=`${c.relatedDom.offsetLeft}px`,N.width=`${c.relatedDom.clientWidth}px`,N.height=`${c.relatedDom.clientHeight}px`):(N.top="0",N.left="0",N.width="100vw",N.height="100vh"),f.value&&g.value){const V=f.value,F=V.getContext("2d",{willReadFrequently:!0});b.ctx=F,V.width=g.value.clientWidth,V.height=g.value.clientHeight;const ie=V.width,ue=V.height,de=new Image;de.src=L,de.onload=()=>{F.clearRect(0,0,V.width,V.height);const ge=de.width,Ie=de.height,Se=S({i_width:ge,i_height:Ie,c_width:ie,c_height:ue});y.width=Se.width,y.height=Se.height,V.width=y.width,V.height=y.height,y.x=(V.width-y.width)/2,y.y=(V.height-y.height)/2,F==null||F.drawImage(de,y.x,y.y,y.width,y.height);const Te=F==null?void 0:F.getImageData(0,0,V.width,V.height);Te&&(b.originImg=Te,b.operateList.push(Te),b.originImage=D(Te),b.currentImage=b.originImage,b.saveImage=b.originImage)}}});const k=async()=>{if(b.saveImage!==b.originImage){const L=ha.service({target:c.relatedDom||document.body});await u(a.options.dataKey,b.saveImage,b.type),L.close()}a.close()},A=L=>{L.target===m.value&&a.close()},B=()=>{b.operateList[b.index]!==b.originImg?b.clearIcon=qt("clearIcon"):b.clearIcon=qt("clearDisableIcon"),b.index>0?b.undoIcon=qt("undoIcon"):b.undoIcon=qt("undoDisableIcon"),b.redoList.length>0?b.redoIcon=qt("redoIcon"):b.redoIcon=qt("redoDisableIcon")},H=()=>{var R;const L=(R=b.ctx)==null?void 0:R.getImageData(y.x,y.y,y.width,y.height);b.currentImage=D(L),B()},D=L=>{const R=document.createElement("canvas");R.width=L.width,R.height=L.height;const V=R.getContext("2d");return V==null||V.putImageData(L,0,0),R.toDataURL().split(",")[1]},W=L=>{if(f.value){L.preventDefault(),L.stopPropagation();const R=b.ctx;if(R.strokeStyle=b.color,R.lineWidth=parseInt(b.stroke),b.isDrawing=!0,r.value){const{left:V,top:F}=E(f.value);L=L,w.x=L.targetTouches[0].clientX-V,w.y=L.targetTouches[0].clientY-F,b.points.push({x:w.x,y:w.y})}else{const{left:V,top:F}=M(f.value);L=L,w.x=L.clientX-V,w.y=L.clientY-F,b.points.push({x:w.x,y:w.y})}}},Y=(L,R,V)=>{const F=b.ctx;F.beginPath(),F.moveTo(L.x,L.y),F.quadraticCurveTo(R.x,R.y,V.x,V.y),F.stroke(),F.closePath()},te=L=>{var R;if(f.value&&(L.preventDefault(),L.stopPropagation(),f.value.style.cursor="auto",b.isDrawing)){if(r.value){const{left:ie,top:ue}=E(f.value);L=L;const de=L.changedTouches[0].clientX-ie,ge=L.changedTouches[0].clientY-ue;b.points.push({x:de,y:ge})}else{const{left:ie,top:ue}=M(f.value);L=L;const de=L.clientX-ie,ge=L.clientY-ue;b.points.push({x:de,y:ge})}if(b.points.length>3){const ie=b.points.slice(-2),ue=ie[0],de=ie[1];b.beginPoint&&Y(b.beginPoint,ue,de)}b.beginPoint=null,b.points=[];const V=b.ctx;V==null||V.closePath();const F=(R=b.ctx)==null?void 0:R.getImageData(y.x,y.y,y.width,y.height);b.operateList.push(F),b.redoList=new Array,b.index++}b.isDrawing=!1,H()},K=L=>{if(f.value&&(L.preventDefault(),L.stopPropagation(),b.isDrawing)){if(r.value){const{left:R,top:V}=E(f.value);L=L;const F=L.targetTouches[0].clientX-R,ie=L.targetTouches[0].clientY-V;b.points.push({x:F,y:ie})}else{const{left:R,top:V}=M(f.value);L=L;const F=L.clientX-R,ie=L.clientY-V;b.points.push({x:F,y:ie})}if(b.points.length>3){const R=b.points.slice(-2),V=R[0],F={x:(R[0].x+R[1].x)/2,y:(R[0].y+R[1].y)/2};b.beginPoint&&Y(b.beginPoint,V,F),b.beginPoint=F}}},q=()=>{if(f.value){const L=f.value;r.value?(L.addEventListener("touchstart",W),L.addEventListener("touchend",te),L.addEventListener("touchcancel",te),L.addEventListener("touchmove",K)):(L.addEventListener("mousedown",W),L.addEventListener("mouseup",te),L.addEventListener("mouseleave",te),L.addEventListener("mousemove",K)),b.isEditable=!0}},X=()=>{if(f.value){const L=f.value;L.removeEventListener("mousedown",W),L.removeEventListener("mouseup",te),L.removeEventListener("mouseleave",te),L.removeEventListener("mousemove",K),b.isEditable=!1,b.saveImage=b.currentImage}},se=()=>{const L=b.ctx;L&&b.originImg&&(b.index++,b.operateList.push(b.originImg),b.redoList=new Array,L.putImageData(b.originImg,y.x,y.y),H())},ye=()=>{var R;const L=b.operateList.pop();b.redoList.push(L),b.index--,b.redoIcon=qt("redoIcon"),(R=b.ctx)==null||R.putImageData(b.operateList[b.index],y.x,y.y),H()},le=()=>{var R;const L=b.redoList.pop();b.operateList.push(L),b.index++,(R=b.ctx)==null||R.putImageData(L,y.x,y.y),H()};return(L,R)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref_key:"editorView",ref:m,class:t.normalizeClass(r.value?"image-editor-view image-editor-view-mobile":"image-editor-view image-editor-view-ps"),onClick:A},[t.createElementVNode("div",Fk,[t.createElementVNode("img",{class:"image-editor-close_icon",src:oh,onClick:k}),t.createElementVNode("div",{ref_key:"editorBox",ref:g,class:"image-editor-console-box"},[t.createElementVNode("canvas",{class:"image-editor-console",ref_key:"editorDom",ref:f},null,512)],512),t.unref(a).options.markable?(t.openBlock(),t.createElementBlock("div",jk,[b.isEditable?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Uk,[t.createElementVNode("img",{src:zk,class:"image-editor-editImg",onClick:q})])),b.isEditable?(t.openBlock(),t.createElementBlock("div",Hk,[t.createElementVNode("div",Wk,[t.withDirectives(t.createElementVNode("input",{class:"image-editor-color",type:"color","onUpdate:modelValue":R[0]||(R[0]=V=>b.color=V)},null,512),[[t.vModelText,b.color]]),t.withDirectives(t.createElementVNode("input",{class:"image-editor-stroke",type:"range",min:"1",max:"15","onUpdate:modelValue":R[1]||(R[1]=V=>b.stroke=V)},null,512),[[t.vModelText,b.stroke]]),t.createElementVNode("img",{class:"image-editor-clear",src:b.clearIcon,onClick:R[2]||(R[2]=V=>b.clearIcon==t.unref(qt)("clearIcon")&&se())},null,8,Yk),t.createElementVNode("img",{class:"image-editor-undo",src:b.undoIcon,onClick:R[3]||(R[3]=V=>b.undoIcon==t.unref(qt)("undoIcon")&&ye())},null,8,Gk),t.createElementVNode("img",{class:"image-editor-redo",src:b.redoIcon,onClick:R[4]||(R[4]=V=>b.redoIcon==t.unref(qt)("redoIcon")&&le())},null,8,Kk)]),t.createElementVNode("div",{class:"right"},[t.createElementVNode("div",{class:"image-editor-comfirm",onClick:X},qk)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)]))}}),[["__scopeId","data-v-516516a5"]]),Zk="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='6'%20height='6'%20viewBox='0%200%206%206'%3e%3ccircle%20id='椭圆_711'%20data-name='椭圆%20711'%20cx='3'%20cy='3'%20r='3'%20fill='%23005795'/%3e%3c/svg%3e",ch=e=>(t.pushScopeId("data-v-efcb65b1"),e=e(),t.popScopeId(),e),Xk={class:"recommend-diagnoses"},Jk=ch(()=>t.createElementVNode("div",{class:"header"},null,-1)),eM=ch(()=>t.createElementVNode("div",{class:"recommend-diagnoses-title"},[t.createElementVNode("img",{class:"recommend-diagnoses-title_icon",src:Zk}),t.createElementVNode("span",{class:"recommend-diagnoses-title_text"},"Recommend Diagnoses")],-1)),tM={class:"recommend-diagnoses-list"},nM={class:"recommend-diagnoses-item"},rM={class:"recommend-diagnoses-item-code"},oM={class:"recommend-diagnosis-item-comment"},iM={class:"recommend-diagnoses-confirm"},aM=gi(t.defineComponent({__name:"RecommendDiagnosis",setup(e){t.useCssVars(A=>({"0b2dc305":E.width,"40bba3c8":E.height,"5d839a54":E.top,"52ebe6e8":E.left}));const r=t.ref(hi()),a=vr().getDocumentTemplate(),l=a.ecos,c=a.info,f=Ms().getRecommendDiagnosis(),m=t.reactive([]),g=t.reactive(f.options.formData),y=t.ref(!1),w=t.ref(null),b=f.cache;let M="";const E=t.reactive({top:"",left:"",width:"",height:""});t.onMounted(async()=>{const B=vr().getDocumentTemplate();B.relatedDom?(E.top=`${B.relatedDom.offsetTop}px`,E.left=`${B.relatedDom.offsetLeft}px`,E.width=`${B.relatedDom.clientWidth}px`,E.height=`${B.relatedDom.clientHeight}px`):(E.top="0",E.left="0",E.width="100vw",E.height="100vh");const H=ha.service({target:B.relatedDom||document.body}),D=g.Diagnosis,W=new Set(D.map(K=>K.code));let Y=[];if(b.hasCache)Y=b.list;else{const K=await l.retrieveDocument({idList:[c==null?void 0:c.facilityId,...(c==null?void 0:c.locationIds)||[],c==null?void 0:c.patientId],options:{ObjType:28,sfname:'{"result":"D.*", "join": "INNER JOIN Edge E on E.id=D.reid INNER JOIN Edge E2 on E.refid=E2.id"}',xfname:"(E.bvid,E2.Bvid) | (E.evid,E2.Bvid)",scondition:"E.type=40000 AND E.subtype&0xff=6 AND E2.type=40000 AND E2.subtype&0xff in(1,9) AND D.type=186881",asc:!1,obfname:"D.ctime",maxcount:100}});if(K.code===0){let q=[];K.document.forEach(X=>{const se=X.name.data.diagnosis.descriptiveList;q=q.concat(se)}),b.hasCache=!0,b.list=Rn.cloneDeep(q),Y=q}else b.hasCache=!0,b.list=[],Y=[]}Y.forEach(K=>{W.has(K.code)?K.isChecked=!0:K.isChecked=!1});let te=new Set;Y=Y.filter(K=>te.has(K.code)?!1:(te.add(K.code),!0)),Y.forEach(K=>{K.isChecked?M+="1":M+="0",m.push(K)}),H.close()}),t.watch(m,()=>{let A="";m.forEach(B=>{B.isChecked?A+="1":A+="0"}),y.value=M!==A});const S=()=>{f.close()},N=A=>{A.target===w.value&&f.close()},k=async()=>{const A=m.filter(D=>D.isChecked).map(({isChecked:D,...W})=>W),B=new Set(g.Diagnosis.map(D=>D.code)),H=A.filter(D=>!B.has(D.code));g.Diagnosis=[...g.Diagnosis,...H],f.close()};return(A,B)=>{const H=sp,D=br;return t.openBlock(),t.createElementBlock("div",{ref_key:"diagnosisView",ref:w,class:t.normalizeClass(r.value?"recommend-diagnoses-view recommend-diagnoses-mobile":"recommend-diagnoses-view"),onClick:N},[t.createElementVNode("div",Xk,[Jk,t.createElementVNode("div",{class:"recommend-diagnoses-close"},[t.createElementVNode("img",{class:"recommend-diagnoses-close_icon",src:lh,onClick:S})]),eM,t.createElementVNode("div",tM,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m,W=>(t.openBlock(),t.createElementBlock("div",nM,[t.createElementVNode("div",rM,[t.createVNode(H,{modelValue:W.isChecked,"onUpdate:modelValue":Y=>W.isChecked=Y},null,8,["modelValue","onUpdate:modelValue"]),t.createTextVNode(" "+t.toDisplayString(W.code)+" - "+t.toDisplayString(W.description),1)]),t.createElementVNode("div",oM,t.toDisplayString(W.comment),1)]))),256))]),t.createElementVNode("div",iM,[t.createVNode(D,{class:t.normalizeClass(`
79
+ */(function(e){const r=ka,o=ql,a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=A,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l,f.TYPED_ARRAY_SUPPORT=c(),!f.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const x=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(x,p),x.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function u(x){if(x>l)throw new RangeError('The value "'+x+'" is invalid for option "size"');const p=new Uint8Array(x);return Object.setPrototypeOf(p,f.prototype),p}function f(x,p,h){if(typeof x=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(x)}return m(x,p,h)}f.poolSize=8192;function m(x,p,h){if(typeof x=="string")return b(x,p);if(ArrayBuffer.isView(x))return E(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(it(x,ArrayBuffer)||x&&it(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(it(x,SharedArrayBuffer)||x&&it(x.buffer,SharedArrayBuffer)))return S(x,p,h);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=x.valueOf&&x.valueOf();if(T!=null&&T!==x)return f.from(T,p,h);const z=N(x);if(z)return z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return f.from(x[Symbol.toPrimitive]("string"),p,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}f.from=function(x,p,h){return m(x,p,h)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function g(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function y(x,p,h){return g(x),x<=0?u(x):p!==void 0?typeof h=="string"?u(x).fill(p,h):u(x).fill(p):u(x)}f.alloc=function(x,p,h){return y(x,p,h)};function w(x){return g(x),u(x<0?0:k(x)|0)}f.allocUnsafe=function(x){return w(x)},f.allocUnsafeSlow=function(x){return w(x)};function b(x,p){if((typeof p!="string"||p==="")&&(p="utf8"),!f.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const h=B(x,p)|0;let T=u(h);const z=T.write(x,p);return z!==h&&(T=T.slice(0,z)),T}function M(x){const p=x.length<0?0:k(x.length)|0,h=u(p);for(let T=0;T<p;T+=1)h[T]=x[T]&255;return h}function E(x){if(it(x,Uint8Array)){const p=new Uint8Array(x);return S(p.buffer,p.byteOffset,p.byteLength)}return M(x)}function S(x,p,h){if(p<0||x.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<p+(h||0))throw new RangeError('"length" is outside of buffer bounds');let T;return p===void 0&&h===void 0?T=new Uint8Array(x):h===void 0?T=new Uint8Array(x,p):T=new Uint8Array(x,p,h),Object.setPrototypeOf(T,f.prototype),T}function N(x){if(f.isBuffer(x)){const p=k(x.length)|0,h=u(p);return h.length===0||x.copy(h,0,0,p),h}if(x.length!==void 0)return typeof x.length!="number"||Lt(x.length)?u(0):M(x);if(x.type==="Buffer"&&Array.isArray(x.data))return M(x.data)}function k(x){if(x>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return x|0}function A(x){return+x!=x&&(x=0),f.alloc(+x)}f.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==f.prototype},f.compare=function(p,h){if(it(p,Uint8Array)&&(p=f.from(p,p.offset,p.byteLength)),it(h,Uint8Array)&&(h=f.from(h,h.offset,h.byteLength)),!f.isBuffer(p)||!f.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===h)return 0;let T=p.length,z=h.length;for(let U=0,ee=Math.min(T,z);U<ee;++U)if(p[U]!==h[U]){T=p[U],z=h[U];break}return T<z?-1:z<T?1:0},f.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(p,h){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return f.alloc(0);let T;if(h===void 0)for(h=0,T=0;T<p.length;++T)h+=p[T].length;const z=f.allocUnsafe(h);let U=0;for(T=0;T<p.length;++T){let ee=p[T];if(it(ee,Uint8Array))U+ee.length>z.length?(f.isBuffer(ee)||(ee=f.from(ee)),ee.copy(z,U)):Uint8Array.prototype.set.call(z,ee,U);else if(f.isBuffer(ee))ee.copy(z,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=ee.length}return z};function B(x,p){if(f.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||it(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);const h=x.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&h===0)return 0;let z=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return j(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return We(x).length;default:if(z)return T?-1:j(x).length;p=(""+p).toLowerCase(),z=!0}}f.byteLength=B;function H(x,p,h){let T=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,p>>>=0,h<=p))return"";for(x||(x="utf8");;)switch(x){case"hex":return ie(this,p,h);case"utf8":case"utf-8":return le(this,p,h);case"ascii":return V(this,p,h);case"latin1":case"binary":return F(this,p,h);case"base64":return ye(this,p,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,p,h);default:if(T)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),T=!0}}f.prototype._isBuffer=!0;function D(x,p,h){const T=x[p];x[p]=x[h],x[h]=T}f.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;h<p;h+=2)D(this,h,h+1);return this},f.prototype.swap32=function(){const p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let h=0;h<p;h+=4)D(this,h,h+3),D(this,h+1,h+2);return this},f.prototype.swap64=function(){const p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let h=0;h<p;h+=8)D(this,h,h+7),D(this,h+1,h+6),D(this,h+2,h+5),D(this,h+3,h+4);return this},f.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?le(this,0,p):H.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(p){if(!f.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:f.compare(this,p)===0},f.prototype.inspect=function(){let p="";const h=e.INSPECT_MAX_BYTES;return p=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(p+=" ... "),"<Buffer "+p+">"},a&&(f.prototype[a]=f.prototype.inspect),f.prototype.compare=function(p,h,T,z,U){if(it(p,Uint8Array)&&(p=f.from(p,p.offset,p.byteLength)),!f.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(h===void 0&&(h=0),T===void 0&&(T=p?p.length:0),z===void 0&&(z=0),U===void 0&&(U=this.length),h<0||T>p.length||z<0||U>this.length)throw new RangeError("out of range index");if(z>=U&&h>=T)return 0;if(z>=U)return-1;if(h>=T)return 1;if(h>>>=0,T>>>=0,z>>>=0,U>>>=0,this===p)return 0;let ee=U-z,ve=T-h;const nt=Math.min(ee,ve),Xe=this.slice(z,U),rt=p.slice(h,T);for(let qe=0;qe<nt;++qe)if(Xe[qe]!==rt[qe]){ee=Xe[qe],ve=rt[qe];break}return ee<ve?-1:ve<ee?1:0};function W(x,p,h,T,z){if(x.length===0)return-1;if(typeof h=="string"?(T=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Lt(h)&&(h=z?0:x.length-1),h<0&&(h=x.length+h),h>=x.length){if(z)return-1;h=x.length-1}else if(h<0)if(z)h=0;else return-1;if(typeof p=="string"&&(p=f.from(p,T)),f.isBuffer(p))return p.length===0?-1:Y(x,p,h,T,z);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(x,p,h):Uint8Array.prototype.lastIndexOf.call(x,p,h):Y(x,[p],h,T,z);throw new TypeError("val must be string, number or Buffer")}function Y(x,p,h,T,z){let U=1,ee=x.length,ve=p.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(x.length<2||p.length<2)return-1;U=2,ee/=2,ve/=2,h/=2}function nt(rt,qe){return U===1?rt[qe]:rt.readUInt16BE(qe*U)}let Xe;if(z){let rt=-1;for(Xe=h;Xe<ee;Xe++)if(nt(x,Xe)===nt(p,rt===-1?0:Xe-rt)){if(rt===-1&&(rt=Xe),Xe-rt+1===ve)return rt*U}else rt!==-1&&(Xe-=Xe-rt),rt=-1}else for(h+ve>ee&&(h=ee-ve),Xe=h;Xe>=0;Xe--){let rt=!0;for(let qe=0;qe<ve;qe++)if(nt(x,Xe+qe)!==nt(p,qe)){rt=!1;break}if(rt)return Xe}return-1}f.prototype.includes=function(p,h,T){return this.indexOf(p,h,T)!==-1},f.prototype.indexOf=function(p,h,T){return W(this,p,h,T,!0)},f.prototype.lastIndexOf=function(p,h,T){return W(this,p,h,T,!1)};function te(x,p,h,T){h=Number(h)||0;const z=x.length-h;T?(T=Number(T),T>z&&(T=z)):T=z;const U=p.length;T>U/2&&(T=U/2);let ee;for(ee=0;ee<T;++ee){const ve=parseInt(p.substr(ee*2,2),16);if(Lt(ve))return ee;x[h+ee]=ve}return ee}function K(x,p,h,T){return Ue(j(p,x.length-h),x,h,T)}function q(x,p,h,T){return Ue(fe(p),x,h,T)}function X(x,p,h,T){return Ue(We(p),x,h,T)}function se(x,p,h,T){return Ue(Ge(p,x.length-h),x,h,T)}f.prototype.write=function(p,h,T,z){if(h===void 0)z="utf8",T=this.length,h=0;else if(T===void 0&&typeof h=="string")z=h,T=this.length,h=0;else if(isFinite(h))h=h>>>0,isFinite(T)?(T=T>>>0,z===void 0&&(z="utf8")):(z=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const U=this.length-h;if((T===void 0||T>U)&&(T=U),p.length>0&&(T<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let ee=!1;for(;;)switch(z){case"hex":return te(this,p,h,T);case"utf8":case"utf-8":return K(this,p,h,T);case"ascii":case"latin1":case"binary":return q(this,p,h,T);case"base64":return X(this,p,h,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,p,h,T);default:if(ee)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),ee=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ye(x,p,h){return p===0&&h===x.length?r.fromByteArray(x):r.fromByteArray(x.slice(p,h))}function le(x,p,h){h=Math.min(x.length,h);const T=[];let z=p;for(;z<h;){const U=x[z];let ee=null,ve=U>239?4:U>223?3:U>191?2:1;if(z+ve<=h){let nt,Xe,rt,qe;switch(ve){case 1:U<128&&(ee=U);break;case 2:nt=x[z+1],(nt&192)===128&&(qe=(U&31)<<6|nt&63,qe>127&&(ee=qe));break;case 3:nt=x[z+1],Xe=x[z+2],(nt&192)===128&&(Xe&192)===128&&(qe=(U&15)<<12|(nt&63)<<6|Xe&63,qe>2047&&(qe<55296||qe>57343)&&(ee=qe));break;case 4:nt=x[z+1],Xe=x[z+2],rt=x[z+3],(nt&192)===128&&(Xe&192)===128&&(rt&192)===128&&(qe=(U&15)<<18|(nt&63)<<12|(Xe&63)<<6|rt&63,qe>65535&&qe<1114112&&(ee=qe))}}ee===null?(ee=65533,ve=1):ee>65535&&(ee-=65536,T.push(ee>>>10&1023|55296),ee=56320|ee&1023),T.push(ee),z+=ve}return R(T)}const L=4096;function R(x){const p=x.length;if(p<=L)return String.fromCharCode.apply(String,x);let h="",T=0;for(;T<p;)h+=String.fromCharCode.apply(String,x.slice(T,T+=L));return h}function V(x,p,h){let T="";h=Math.min(x.length,h);for(let z=p;z<h;++z)T+=String.fromCharCode(x[z]&127);return T}function F(x,p,h){let T="";h=Math.min(x.length,h);for(let z=p;z<h;++z)T+=String.fromCharCode(x[z]);return T}function ie(x,p,h){const T=x.length;(!p||p<0)&&(p=0),(!h||h<0||h>T)&&(h=T);let z="";for(let U=p;U<h;++U)z+=Qt[x[U]];return z}function ue(x,p,h){const T=x.slice(p,h);let z="";for(let U=0;U<T.length-1;U+=2)z+=String.fromCharCode(T[U]+T[U+1]*256);return z}f.prototype.slice=function(p,h){const T=this.length;p=~~p,h=h===void 0?T:~~h,p<0?(p+=T,p<0&&(p=0)):p>T&&(p=T),h<0?(h+=T,h<0&&(h=0)):h>T&&(h=T),h<p&&(h=p);const z=this.subarray(p,h);return Object.setPrototypeOf(z,f.prototype),z};function de(x,p,h){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+p>h)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(p,h,T){p=p>>>0,h=h>>>0,T||de(p,h,this.length);let z=this[p],U=1,ee=0;for(;++ee<h&&(U*=256);)z+=this[p+ee]*U;return z},f.prototype.readUintBE=f.prototype.readUIntBE=function(p,h,T){p=p>>>0,h=h>>>0,T||de(p,h,this.length);let z=this[p+--h],U=1;for(;h>0&&(U*=256);)z+=this[p+--h]*U;return z},f.prototype.readUint8=f.prototype.readUInt8=function(p,h){return p=p>>>0,h||de(p,1,this.length),this[p]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(p,h){return p=p>>>0,h||de(p,2,this.length),this[p]|this[p+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(p,h){return p=p>>>0,h||de(p,2,this.length),this[p]<<8|this[p+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(p,h){return p=p>>>0,h||de(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(p,h){return p=p>>>0,h||de(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},f.prototype.readBigUInt64LE=oe(function(p){p=p>>>0,Pe(p,"offset");const h=this[p],T=this[p+7];(h===void 0||T===void 0)&&ot(p,this.length-8);const z=h+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,U=this[++p]+this[++p]*2**8+this[++p]*2**16+T*2**24;return BigInt(z)+(BigInt(U)<<BigInt(32))}),f.prototype.readBigUInt64BE=oe(function(p){p=p>>>0,Pe(p,"offset");const h=this[p],T=this[p+7];(h===void 0||T===void 0)&&ot(p,this.length-8);const z=h*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],U=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+T;return(BigInt(z)<<BigInt(32))+BigInt(U)}),f.prototype.readIntLE=function(p,h,T){p=p>>>0,h=h>>>0,T||de(p,h,this.length);let z=this[p],U=1,ee=0;for(;++ee<h&&(U*=256);)z+=this[p+ee]*U;return U*=128,z>=U&&(z-=Math.pow(2,8*h)),z},f.prototype.readIntBE=function(p,h,T){p=p>>>0,h=h>>>0,T||de(p,h,this.length);let z=h,U=1,ee=this[p+--z];for(;z>0&&(U*=256);)ee+=this[p+--z]*U;return U*=128,ee>=U&&(ee-=Math.pow(2,8*h)),ee},f.prototype.readInt8=function(p,h){return p=p>>>0,h||de(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},f.prototype.readInt16LE=function(p,h){p=p>>>0,h||de(p,2,this.length);const T=this[p]|this[p+1]<<8;return T&32768?T|4294901760:T},f.prototype.readInt16BE=function(p,h){p=p>>>0,h||de(p,2,this.length);const T=this[p+1]|this[p]<<8;return T&32768?T|4294901760:T},f.prototype.readInt32LE=function(p,h){return p=p>>>0,h||de(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},f.prototype.readInt32BE=function(p,h){return p=p>>>0,h||de(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},f.prototype.readBigInt64LE=oe(function(p){p=p>>>0,Pe(p,"offset");const h=this[p],T=this[p+7];(h===void 0||T===void 0)&&ot(p,this.length-8);const z=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(T<<24);return(BigInt(z)<<BigInt(32))+BigInt(h+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),f.prototype.readBigInt64BE=oe(function(p){p=p>>>0,Pe(p,"offset");const h=this[p],T=this[p+7];(h===void 0||T===void 0)&&ot(p,this.length-8);const z=(h<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(z)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+T)}),f.prototype.readFloatLE=function(p,h){return p=p>>>0,h||de(p,4,this.length),o.read(this,p,!0,23,4)},f.prototype.readFloatBE=function(p,h){return p=p>>>0,h||de(p,4,this.length),o.read(this,p,!1,23,4)},f.prototype.readDoubleLE=function(p,h){return p=p>>>0,h||de(p,8,this.length),o.read(this,p,!0,52,8)},f.prototype.readDoubleBE=function(p,h){return p=p>>>0,h||de(p,8,this.length),o.read(this,p,!1,52,8)};function ge(x,p,h,T,z,U){if(!f.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>z||p<U)throw new RangeError('"value" argument is out of bounds');if(h+T>x.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(p,h,T,z){if(p=+p,h=h>>>0,T=T>>>0,!z){const ve=Math.pow(2,8*T)-1;ge(this,p,h,T,ve,0)}let U=1,ee=0;for(this[h]=p&255;++ee<T&&(U*=256);)this[h+ee]=p/U&255;return h+T},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(p,h,T,z){if(p=+p,h=h>>>0,T=T>>>0,!z){const ve=Math.pow(2,8*T)-1;ge(this,p,h,T,ve,0)}let U=T-1,ee=1;for(this[h+U]=p&255;--U>=0&&(ee*=256);)this[h+U]=p/ee&255;return h+T},f.prototype.writeUint8=f.prototype.writeUInt8=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,1,255,0),this[h]=p&255,h+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,2,65535,0),this[h]=p&255,this[h+1]=p>>>8,h+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,2,65535,0),this[h]=p>>>8,this[h+1]=p&255,h+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,4,4294967295,0),this[h+3]=p>>>24,this[h+2]=p>>>16,this[h+1]=p>>>8,this[h]=p&255,h+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,4,4294967295,0),this[h]=p>>>24,this[h+1]=p>>>16,this[h+2]=p>>>8,this[h+3]=p&255,h+4};function Ie(x,p,h,T,z){He(p,T,z,x,h,7);let U=Number(p&BigInt(4294967295));x[h++]=U,U=U>>8,x[h++]=U,U=U>>8,x[h++]=U,U=U>>8,x[h++]=U;let ee=Number(p>>BigInt(32)&BigInt(4294967295));return x[h++]=ee,ee=ee>>8,x[h++]=ee,ee=ee>>8,x[h++]=ee,ee=ee>>8,x[h++]=ee,h}function Se(x,p,h,T,z){He(p,T,z,x,h,7);let U=Number(p&BigInt(4294967295));x[h+7]=U,U=U>>8,x[h+6]=U,U=U>>8,x[h+5]=U,U=U>>8,x[h+4]=U;let ee=Number(p>>BigInt(32)&BigInt(4294967295));return x[h+3]=ee,ee=ee>>8,x[h+2]=ee,ee=ee>>8,x[h+1]=ee,ee=ee>>8,x[h]=ee,h+8}f.prototype.writeBigUInt64LE=oe(function(p,h=0){return Ie(this,p,h,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=oe(function(p,h=0){return Se(this,p,h,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(p,h,T,z){if(p=+p,h=h>>>0,!z){const nt=Math.pow(2,8*T-1);ge(this,p,h,T,nt-1,-nt)}let U=0,ee=1,ve=0;for(this[h]=p&255;++U<T&&(ee*=256);)p<0&&ve===0&&this[h+U-1]!==0&&(ve=1),this[h+U]=(p/ee>>0)-ve&255;return h+T},f.prototype.writeIntBE=function(p,h,T,z){if(p=+p,h=h>>>0,!z){const nt=Math.pow(2,8*T-1);ge(this,p,h,T,nt-1,-nt)}let U=T-1,ee=1,ve=0;for(this[h+U]=p&255;--U>=0&&(ee*=256);)p<0&&ve===0&&this[h+U+1]!==0&&(ve=1),this[h+U]=(p/ee>>0)-ve&255;return h+T},f.prototype.writeInt8=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,1,127,-128),p<0&&(p=255+p+1),this[h]=p&255,h+1},f.prototype.writeInt16LE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,2,32767,-32768),this[h]=p&255,this[h+1]=p>>>8,h+2},f.prototype.writeInt16BE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,2,32767,-32768),this[h]=p>>>8,this[h+1]=p&255,h+2},f.prototype.writeInt32LE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,4,2147483647,-2147483648),this[h]=p&255,this[h+1]=p>>>8,this[h+2]=p>>>16,this[h+3]=p>>>24,h+4},f.prototype.writeInt32BE=function(p,h,T){return p=+p,h=h>>>0,T||ge(this,p,h,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[h]=p>>>24,this[h+1]=p>>>16,this[h+2]=p>>>8,this[h+3]=p&255,h+4},f.prototype.writeBigInt64LE=oe(function(p,h=0){return Ie(this,p,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=oe(function(p,h=0){return Se(this,p,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Te(x,p,h,T,z,U){if(h+T>x.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function pe(x,p,h,T,z){return p=+p,h=h>>>0,z||Te(x,p,h,4),o.write(x,p,h,T,23,4),h+4}f.prototype.writeFloatLE=function(p,h,T){return pe(this,p,h,!0,T)},f.prototype.writeFloatBE=function(p,h,T){return pe(this,p,h,!1,T)};function ae(x,p,h,T,z){return p=+p,h=h>>>0,z||Te(x,p,h,8),o.write(x,p,h,T,52,8),h+8}f.prototype.writeDoubleLE=function(p,h,T){return ae(this,p,h,!0,T)},f.prototype.writeDoubleBE=function(p,h,T){return ae(this,p,h,!1,T)},f.prototype.copy=function(p,h,T,z){if(!f.isBuffer(p))throw new TypeError("argument should be a Buffer");if(T||(T=0),!z&&z!==0&&(z=this.length),h>=p.length&&(h=p.length),h||(h=0),z>0&&z<T&&(z=T),z===T||p.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),p.length-h<z-T&&(z=p.length-h+T);const U=z-T;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(h,T,z):Uint8Array.prototype.set.call(p,this.subarray(T,z),h),U},f.prototype.fill=function(p,h,T,z){if(typeof p=="string"){if(typeof h=="string"?(z=h,h=0,T=this.length):typeof T=="string"&&(z=T,T=this.length),z!==void 0&&typeof z!="string")throw new TypeError("encoding must be a string");if(typeof z=="string"&&!f.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(p.length===1){const ee=p.charCodeAt(0);(z==="utf8"&&ee<128||z==="latin1")&&(p=ee)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(h<0||this.length<h||this.length<T)throw new RangeError("Out of range index");if(T<=h)return this;h=h>>>0,T=T===void 0?this.length:T>>>0,p||(p=0);let U;if(typeof p=="number")for(U=h;U<T;++U)this[U]=p;else{const ee=f.isBuffer(p)?p:f.from(p,z),ve=ee.length;if(ve===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(U=0;U<T-h;++U)this[U+h]=ee[U%ve]}return this};const he={};function Ce(x,p,h){he[x]=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${x}]`,this.stack,delete this.name}get code(){return x}set code(z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:z,writable:!0})}toString(){return`${this.name} [${x}]: ${this.message}`}}}Ce("ERR_BUFFER_OUT_OF_BOUNDS",function(x){return x?`${x} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ce("ERR_INVALID_ARG_TYPE",function(x,p){return`The "${x}" argument must be of type number. Received type ${typeof p}`},TypeError),Ce("ERR_OUT_OF_RANGE",function(x,p,h){let T=`The value of "${x}" is out of range.`,z=h;return Number.isInteger(h)&&Math.abs(h)>2**32?z=xe(String(h)):typeof h=="bigint"&&(z=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(z=xe(z)),z+="n"),T+=` It must be ${p}. Received ${z}`,T},RangeError);function xe(x){let p="",h=x.length;const T=x[0]==="-"?1:0;for(;h>=T+4;h-=3)p=`_${x.slice(h-3,h)}${p}`;return`${x.slice(0,h)}${p}`}function Le(x,p,h){Pe(p,"offset"),(x[p]===void 0||x[p+h]===void 0)&&ot(p,x.length-(h+1))}function He(x,p,h,T,z,U){if(x>h||x<p){const ee=typeof p=="bigint"?"n":"";let ve;throw p===0||p===BigInt(0)?ve=`>= 0${ee} and < 2${ee} ** ${(U+1)*8}${ee}`:ve=`>= -(2${ee} ** ${(U+1)*8-1}${ee}) and < 2 ** ${(U+1)*8-1}${ee}`,new he.ERR_OUT_OF_RANGE("value",ve,x)}Le(T,z,U)}function Pe(x,p){if(typeof x!="number")throw new he.ERR_INVALID_ARG_TYPE(p,"number",x)}function ot(x,p,h){throw Math.floor(x)!==x?(Pe(x,h),new he.ERR_OUT_OF_RANGE("offset","an integer",x)):p<0?new he.ERR_BUFFER_OUT_OF_BOUNDS:new he.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,x)}const St=/[^+/0-9A-Za-z-_]/g;function yt(x){if(x=x.split("=")[0],x=x.trim().replace(St,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function j(x,p){p=p||1/0;let h;const T=x.length;let z=null;const U=[];for(let ee=0;ee<T;++ee){if(h=x.charCodeAt(ee),h>55295&&h<57344){if(!z){if(h>56319){(p-=3)>-1&&U.push(239,191,189);continue}else if(ee+1===T){(p-=3)>-1&&U.push(239,191,189);continue}z=h;continue}if(h<56320){(p-=3)>-1&&U.push(239,191,189),z=h;continue}h=(z-55296<<10|h-56320)+65536}else z&&(p-=3)>-1&&U.push(239,191,189);if(z=null,h<128){if((p-=1)<0)break;U.push(h)}else if(h<2048){if((p-=2)<0)break;U.push(h>>6|192,h&63|128)}else if(h<65536){if((p-=3)<0)break;U.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((p-=4)<0)break;U.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return U}function fe(x){const p=[];for(let h=0;h<x.length;++h)p.push(x.charCodeAt(h)&255);return p}function Ge(x,p){let h,T,z;const U=[];for(let ee=0;ee<x.length&&!((p-=2)<0);++ee)h=x.charCodeAt(ee),T=h>>8,z=h%256,U.push(z),U.push(T);return U}function We(x){return r.toByteArray(yt(x))}function Ue(x,p,h,T){let z;for(z=0;z<T&&!(z+h>=p.length||z>=x.length);++z)p[z+h]=x[z];return z}function it(x,p){return x instanceof p||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===p.name}function Lt(x){return x!==x}const Qt=function(){const x="0123456789abcdef",p=new Array(256);for(let h=0;h<16;++h){const T=h*16;for(let z=0;z<16;++z)p[T+z]=x[h]+x[z]}return p}();function oe(x){return typeof BigInt>"u"?Ae:x}function Ae(){throw new Error("BigInt not supported")}})(ih);const Ak=e=>{const r=atob(e),o=r.length,a=new Uint8Array(o);for(let l=0;l<o;l++)a[l]=r.charCodeAt(l);return a},Tk=({type:e,data:r})=>`data:${e};base64,${r}`,Nk=e=>Ak(e),sh=(e,r)=>{const o=Nk(e),a=ih.Buffer.from(o.buffer);return new Blob([a.buffer],{type:r})},lh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16.828'%20height='16.828'%20viewBox='0%200%2016.828%2016.828'%3e%3cg%20id='组_10025'%20data-name='组%2010025'%20transform='translate(0.914%201.414)'%3e%3cline%20id='直线_1370'%20data-name='直线%201370'%20x2='14'%20y2='14'%20transform='translate(0.5)'%20fill='none'%20stroke='%23c1c1c1'%20stroke-linecap='round'%20stroke-width='2'/%3e%3cline%20id='直线_1371'%20data-name='直线%201371'%20x1='14'%20y2='14'%20transform='translate(0.5)'%20fill='none'%20stroke='%23c1c1c1'%20stroke-linecap='round'%20stroke-width='2'/%3e%3c/g%3e%3c/svg%3e",vk="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cg%20id='组_11460'%20data-name='组%2011460'%20transform='translate(-1070%20-577)'%3e%3cpath%20id='路径_9629'%20data-name='路径%209629'%20d='M8,14.625A6.625,6.625,0,1,0,1.375,8,6.625,6.625,0,0,0,8,14.625ZM8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16Z'%20transform='translate(1070%20577)'%20fill='%23999'/%3e%3cpath%20id='路径_9630'%20data-name='路径%209630'%20d='M449.688,212.688a.687.687,0,1,0-1.375,0v5.3a.687.687,0,1,0,1.375,0ZM449,219.375a1,1,0,1,0,1,1A1,1,0,0,0,449,219.375Z'%20transform='translate(629%20368.313)'%20fill='%23999'/%3e%3c/g%3e%3c/svg%3e",Ma=e=>(t.pushScopeId("data-v-180f3c2e"),e=e(),t.popScopeId(),e),Bk={class:"signature_box"},Dk=Ma(()=>t.createElementVNode("div",{class:"signature_tilte"},"Signature",-1)),Lk=Ma(()=>t.createElementVNode("div",{class:"subtitle"},"Please use the box below to add electronic signature.",-1)),Ok=Ma(()=>t.createElementVNode("div",{class:"label"},"X",-1)),Rk=Ma(()=>t.createElementVNode("div",{class:"signature_tips"},[t.createElementVNode("img",{class:"signature_icon",src:vk}),t.createElementVNode("div",{class:"tips"},"The signature is saved for later use.")],-1)),Vk={class:"signature_operate"},zk=gi(t.defineComponent({__name:"SignaturePad",setup(e){t.useCssVars(K=>({"72d0431a":te.width,"1ad613cc":te.height,"5df9b942":te.top,"6139a5ba":te.left}));const r=t.ref(hi()),a=vr().getDocumentTemplate(),l=t.ref(null),c=t.ref(null),u=t.ref(null),m=Is().getSignaturePad(),g=m.confirm,y=t.reactive({status:!1,ctx:null,originSignature:"",saveSignature:"",points:new Array,beginPoint:null}),w=t.reactive({x:0,y:0}),b=K=>{let[q,X]=[K.offsetLeft,K.offsetTop];const se=ye=>{X+=ye.offsetTop,q+=ye.offsetLeft,ye.offsetParent&&se(ye.offsetParent)};return K.offsetParent&&se(K.offsetParent),{left:q,top:X}},M=K=>{let{left:q,top:X}=K.getBoundingClientRect();return{left:q,top:X}},E=K=>{const q=document.createElement("canvas");q.width=K.width,q.height=K.height;const X=q.getContext("2d");return X==null||X.putImageData(K,0,0),q.toDataURL().split(",")[1]},S=K=>{if(c.value)if(K.preventDefault(),K.stopPropagation(),y.status=!0,r.value){const{left:q,top:X}=M(c.value);K=K,w.x=K.targetTouches[0].clientX-q,w.y=K.targetTouches[0].clientY-X,y.points.push({x:w.x,y:w.y})}else{const{left:q,top:X}=b(c.value);K=K,w.x=K.clientX-q,w.y=K.clientY-X,y.points.push({x:w.x,y:w.y})}},N=(K,q,X)=>{const se=y.ctx;se.beginPath(),se.moveTo(K.x,K.y),se.quadraticCurveTo(q.x,q.y,X.x,X.y),se.stroke(),se.closePath()},k=K=>{if(c.value&&(K.preventDefault(),K.stopPropagation(),y.status&&y.ctx)){if(r.value){const{left:q,top:X}=M(c.value);K=K;const se=K.targetTouches[0].clientX-q,ye=K.targetTouches[0].clientY-X;y.points.push({x:se,y:ye})}else{const{left:q,top:X}=b(c.value);K=K;const se=K.clientX-q,ye=K.clientY-X;y.points.push({x:se,y:ye})}if(y.points.length>3){const q=y.points.slice(-2),X=q[0],se={x:(q[0].x+q[1].x)/2,y:(q[0].y+q[1].y)/2};y.beginPoint&&N(y.beginPoint,X,se),y.beginPoint=se}}},A=K=>{if(c.value){K.preventDefault(),K.stopPropagation();const q=c.value;if(q.style.cursor="auto",y.status){if(r.value){const{left:ye,top:le}=M(c.value);K=K;const L=K.changedTouches[0].clientX-ye,R=K.changedTouches[0].clientY-le;y.points.push({x:L,y:R})}else{const{left:ye,top:le}=b(c.value);K=K;const L=K.clientX-ye,R=K.clientY-le;y.points.push({x:L,y:R})}if(y.points.length>3){const ye=y.points.slice(-2),le=ye[0],L=ye[1];y.beginPoint&&N(y.beginPoint,le,L)}y.beginPoint=null,y.points=[];const X=y.ctx;X==null||X.closePath();const se=X==null?void 0:X.getImageData(0,0,q.width,q.height);y.saveSignature=E(se)}}y.status=!1},B=()=>{m.close()},H=()=>{y.ctx&&(r.value?y.ctx.clearRect(0,0,y.ctx.canvas.height,y.ctx.canvas.width):y.ctx.clearRect(0,0,y.ctx.canvas.width,y.ctx.canvas.height),y.saveSignature="")},D=K=>{K.target===u.value&&m.close()},W=async()=>{if(y.saveSignature!==y.originSignature){const K=ha.service({target:a.relatedDom||document.body});await g(m.options.dataKey,y.saveSignature,m.options.isGuardian?465921:345601,m.options.type),K.close(),m.close()}},Y=()=>{B()},te=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(async()=>{var q;r.value?(te.top="calc((100vh - 100vw) / 2)",te.left="calc((100vw - 100vh) / 2)",te.width="100vh",te.height="100vw"):a.relatedDom?(te.top=`${a.relatedDom.offsetTop}px`,te.left=`${a.relatedDom.offsetLeft}px`,te.width=`${a.relatedDom.clientWidth}px`,te.height=`${a.relatedDom.clientHeight}px`):(te.top="0",te.left="0",te.width="100vw",te.height="100vh");const K=ha.service({target:a.relatedDom||document.body});if(c.value&&l.value){const X=c.value,se=X.getContext("2d",{willReadFrequently:!0});y.ctx=se,r.value?t.nextTick(()=>{var le,L;X.width=((le=l.value)==null?void 0:le.clientWidth)||0,X.height=((L=l.value)==null?void 0:L.clientHeight)||0,se.translate(X.width/2,X.height/2),se.rotate(-Math.PI/2),se.translate(-X.height/2,-X.width/2),se.lineWidth=5}):(X.width=l.value.clientWidth,X.height=l.value.clientHeight,se.lineWidth=3),se.lineJoin="round",se.lineCap="round";const ye=m.options;if(ye.dataKey)if(Rn.get(ye.formData,ye.dataKey)){const L=((q=m.options)==null?void 0:q.value)||"";if(L){const R=new Image;R.src=L,R.onload=()=>{se.drawImage(R,0,0,R.width,R.height);const V=se==null?void 0:se.getImageData(0,0,X.width,X.height);y.originSignature=E(V),y.saveSignature=y.originSignature}}else y.originSignature="",y.saveSignature=""}else y.originSignature="",y.saveSignature=""}K.close()}),(K,q)=>{const X=br;return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref_key:"signatureView",ref:u,class:t.normalizeClass(r.value?"signature_view signature_view_mobile":"signature_view signature_view_ps"),onClick:D},[t.createElementVNode("div",Bk,[t.createElementVNode("img",{class:"signature_close",src:lh,onClick:B}),Dk,t.createElementVNode("div",{class:"signature_subtitle"},[Lk,t.createElementVNode("div",{class:"signature_clear",onClick:H},"Clear")]),t.createElementVNode("div",{class:"signature_pad",ref_key:"signatureBox",ref:l},[t.createElementVNode("canvas",{class:"pad",ref_key:"signaturePad",ref:c,onMousedown:q[0]||(q[0]=se=>!r.value&&S(se)),onMouseup:q[1]||(q[1]=se=>!r.value&&A(se)),onMousemoveCapture:q[2]||(q[2]=se=>!r.value&&k(se)),onMouseleave:q[3]||(q[3]=se=>!r.value&&A(se)),onTouchstart:q[4]||(q[4]=se=>S(se)),onTouchend:q[5]||(q[5]=se=>A(se)),onTouchmoveCapture:q[6]||(q[6]=se=>k(se)),onTouchcancel:q[7]||(q[7]=se=>A(se))},null,544),Ok],512),Rk,t.createElementVNode("div",Vk,[t.createVNode(X,{class:"signature_chioce_button signature_cancel",onClick:Y},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(X,{class:"signature_chioce_button signature_confirm",onClick:W},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-180f3c2e"]]),Pk="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20.002'%20viewBox='0%200%2020%2020.002'%3e%3cg%20id='组_22313'%20data-name='组%2022313'%20transform='translate(-106.404%20-80.254)'%3e%3cpath%20id='路径_23519'%20data-name='路径%2023519'%20d='M209.607,82.221a1.53,1.53,0,0,1,2.154.006l1.077,1.077a1.533,1.533,0,0,1,.006,2.154L201.509,96.794h1.079l-4.316-4.316v1.079l11.335-11.335Zm-1.079-1.079L197.193,92.477a.763.763,0,0,0,0,1.079l4.316,4.316a.763.763,0,0,0,1.079,0l11.335-11.335a3.059,3.059,0,0,0-.006-4.312l-1.077-1.077a3.056,3.056,0,0,0-4.312-.006Zm-1.623,2.7,4.316,4.316,1.079-1.079-4.316-4.316L206.9,83.845Z'%20transform='translate(-88.406)'%20fill='%23333'/%3e%3cpath%20id='路径_23520'%20data-name='路径%2023520'%20d='M108.6,583.993l-2.158,6.475a.763.763,0,0,0,.965.965l6.474-2.158a.763.763,0,0,0,.3-1.263l-4.316-4.316a.763.763,0,0,0-1.263.3Zm1.448.483-1.263.3,4.316,4.316.3-1.263-6.474,2.158.965.965,2.158-6.474Z'%20transform='translate(0%20-491.217)'%20fill='%23333'/%3e%3c/g%3e%3c/svg%3e",$k={clearIcon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMC4yMDEiIHZpZXdCb3g9IjAgMCAyMCAyMC4yMDEiPjxnIGRhdGEtbmFtZT0i57uEIDIyMzYzIj48ZyBkYXRhLW5hbWU9Iue7hCAyMjM2MiIgZmlsbD0iIzMzMyIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9Ii40Ij48cGF0aCBkYXRhLW5hbWU9Iui3r+W+hCAyMzUzNyIgZD0iTTE4LjM4NCAxMC45MDRoLS4zNTd2NS40NDFhMTIuOTUyIDEyLjk1MiAwIDAgMCAuMzU3IDIuOTQzLjcxNi43MTYgMCAwIDEtLjcxNC43MTRIMi4zM2EuNzE2LjcxNiAwIDAgMS0uNzEzLS43MTQgMTIuMTI4IDEyLjEyOCAwIDAgMCAuMzU3LTIuODcydi01LjUxMmgtLjM1N2EuNzE2LjcxNiAwIDAgMS0uNzE0LS43MTRWNi42MjNhLjcxNi43MTYgMCAwIDEgLjcxNC0uNzE0aDYuMDY1VjEuOTg1QTEuNzg5IDEuNzg5IDAgMCAxIDkuNDY2LjIwMWgxLjA3YTEuNzg5IDEuNzg5IDAgMCAxIDEuNzg0IDEuNzg0djMuOTI0aDYuMDY1YS43MTYuNzE2IDAgMCAxIC43MTQuNzE0djMuNTY4YS43MTYuNzE2IDAgMCAxLS43MTQuNzE0em0tMTIuMzEgOC4zODR2LTQuNzI3YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNzI3SDkuODJ2LTQuNzI3YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNzI3aDIuODU0di00LjcyN2EuMjc0LjI3NCAwIDAgMSAuMjY4LS4yNjdoLjE3OGEuMjc0LjI3NCAwIDAgMSAuMjY4LjI2N3Y0LjcyN2gzLjU3MmExMS45NCAxMS45NCAwIDAgMS0uMzU3LTIuODcydi01LjUxMkgyLjY4NnY1LjUxMmExMS45MzUgMTEuOTM1IDAgMCAxLS4zNTcgMi44NzJ6bTEyLjMxLTEyLjMwOWEuMzU4LjM1OCAwIDAgMC0uMzU3LS4zNTdoLTYuNDIydi00LjQ2QTEuMjQxIDEuMjQxIDAgMCAwIDEwLjM1Ni45MTNoLS43MTNhMS4yNDEgMS4yNDEgMCAwIDAtMS4yNDkgMS4yNDl2NC40NmgtNi40MmEuMzU4LjM1OCAwIDAgMC0uMzU3LjM1N3YyLjg1NGEuMzU4LjM1OCAwIDAgMCAuMzU3LjM1N2gxNi4wNTVhLjM1OC4zNTggMCAwIDAgLjM1Ny0uMzU3VjYuOTc5em0wIDAiLz48cGF0aCBkYXRhLW5hbWU9Iui3r+W+hCAyMzUzOCIgZD0iTTE4LjM4NCAxMC45MDRoLS4zNTd2NS40NDFhMTIuOTUyIDEyLjk1MiAwIDAgMCAuMzU3IDIuOTQzLjcxNi43MTYgMCAwIDEtLjcxNC43MTRIMi4zM2EuNzE2LjcxNiAwIDAgMS0uNzEzLS43MTQgMTIuMTI4IDEyLjEyOCAwIDAgMCAuMzU3LTIuODcydi01LjUxMmgtLjM1N2EuNzE2LjcxNiAwIDAgMS0uNzE0LS43MTRWNi42MjNhLjcxNi43MTYgMCAwIDEgLjcxNC0uNzE0aDYuMDY1VjEuOTg1QTEuNzg5IDEuNzg5IDAgMCAxIDkuNDY2LjIwMWgxLjA3YTEuNzg5IDEuNzg5IDAgMCAxIDEuNzg0IDEuNzg0djMuOTI0aDYuMDY1YS43MTYuNzE2IDAgMCAxIC43MTQuNzE0djMuNTY4YS43MTYuNzE2IDAgMCAxLS43MTQuNzE0em0tMTIuMzEgOC4xNTV2LTQuNWEuMjc0LjI3NCAwIDAgMSAuMjY4LS4yNjdoLjE3OGEuMjc0LjI3NCAwIDAgMSAuMjY4LjI2N3Y0LjVIOS44MnYtNC41YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNWgyLjg1NHYtNC41YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNWgzLjMzOWE5LjAzOCA5LjAzOCAwIDAgMS0uMzU3LTIuNjQzdi01LjUxMkgyLjkxNHY1LjUxMmE5LjAzNSA5LjAzNSAwIDAgMS0uMzU3IDIuNjQzaDMuNTE3em0xMi4wOC0xMS44NTFhLjM1OC4zNTggMCAwIDAtLjM1Ny0uMzU3aC02LjQyM1YyLjE2M2MwLS43LS41NTMtMS4wMi0xLjI0OS0xLjAyaC0uMjUxYy0uNyAwLTEuMjQ5LjMyNC0xLjI0OSAxLjAydjQuNjg5SDIuMjAzYS4zNTguMzU4IDAgMCAwLS4zNTcuMzU3djIuNGEuMzU4LjM1OCAwIDAgMCAuMzU3LjM1N2gxNS42YS4zNTguMzU4IDAgMCAwIC4zNTctLjM1N3YtMi40em0uMjI5LS4yMjkiLz48L2c+PHBhdGggZGF0YS1uYW1lPSLnn6nlvaIgMjMxNzUiIGZpbGw9Im5vbmUiIGQ9Ik0wIC4xMDFoMjB2MjBIMHoiLz48L2c+PC9zdmc+",clearDisableIcon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMC4yMDEiIHZpZXdCb3g9IjAgMCAyMCAyMC4yMDEiPjxnIGRhdGEtbmFtZT0i57uEIDIyMzYzIj48ZyBkYXRhLW5hbWU9Iue7hCAyMjM2MiIgZmlsbD0iI2MxYzFjMSIgc3Ryb2tlPSIjYzFjMWMxIiBzdHJva2Utd2lkdGg9Ii40Ij48cGF0aCBkYXRhLW5hbWU9Iui3r+W+hCAyMzUzNyIgZD0iTTE4LjM4NCAxMC45MDRoLS4zNTd2NS40NDFhMTIuOTUyIDEyLjk1MiAwIDAgMCAuMzU3IDIuOTQzLjcxNi43MTYgMCAwIDEtLjcxNC43MTRIMi4zM2EuNzE2LjcxNiAwIDAgMS0uNzEzLS43MTQgMTIuMTI4IDEyLjEyOCAwIDAgMCAuMzU3LTIuODcydi01LjUxMmgtLjM1N2EuNzE2LjcxNiAwIDAgMS0uNzE0LS43MTRWNi42MjNhLjcxNi43MTYgMCAwIDEgLjcxNC0uNzE0aDYuMDY1VjEuOTg1QTEuNzg5IDEuNzg5IDAgMCAxIDkuNDY2LjIwMWgxLjA3YTEuNzg5IDEuNzg5IDAgMCAxIDEuNzg0IDEuNzg0djMuOTI0aDYuMDY1YS43MTYuNzE2IDAgMCAxIC43MTQuNzE0djMuNTY4YS43MTYuNzE2IDAgMCAxLS43MTQuNzE0em0tMTIuMzEgOC4zODR2LTQuNzI3YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNzI3SDkuODJ2LTQuNzI3YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNzI3aDIuODU0di00LjcyN2EuMjc0LjI3NCAwIDAgMSAuMjY4LS4yNjdoLjE3OGEuMjc0LjI3NCAwIDAgMSAuMjY4LjI2N3Y0LjcyN2gzLjU3MmExMS45NCAxMS45NCAwIDAgMS0uMzU3LTIuODcydi01LjUxMkgyLjY4NnY1LjUxMmExMS45MzUgMTEuOTM1IDAgMCAxLS4zNTcgMi44NzJ6bTEyLjMxLTEyLjMwOWEuMzU4LjM1OCAwIDAgMC0uMzU3LS4zNTdoLTYuNDIydi00LjQ2QTEuMjQxIDEuMjQxIDAgMCAwIDEwLjM1Ni45MTNoLS43MTNhMS4yNDEgMS4yNDEgMCAwIDAtMS4yNDkgMS4yNDl2NC40NmgtNi40MmEuMzU4LjM1OCAwIDAgMC0uMzU3LjM1N3YyLjg1NGEuMzU4LjM1OCAwIDAgMCAuMzU3LjM1N2gxNi4wNTVhLjM1OC4zNTggMCAwIDAgLjM1Ny0uMzU3VjYuOTc5em0wIDAiLz48cGF0aCBkYXRhLW5hbWU9Iui3r+W+hCAyMzUzOCIgZD0iTTE4LjM4NCAxMC45MDRoLS4zNTd2NS40NDFhMTIuOTUyIDEyLjk1MiAwIDAgMCAuMzU3IDIuOTQzLjcxNi43MTYgMCAwIDEtLjcxNC43MTRIMi4zM2EuNzE2LjcxNiAwIDAgMS0uNzEzLS43MTQgMTIuMTI4IDEyLjEyOCAwIDAgMCAuMzU3LTIuODcydi01LjUxMmgtLjM1N2EuNzE2LjcxNiAwIDAgMS0uNzE0LS43MTRWNi42MjNhLjcxNi43MTYgMCAwIDEgLjcxNC0uNzE0aDYuMDY1VjEuOTg1QTEuNzg5IDEuNzg5IDAgMCAxIDkuNDY2LjIwMWgxLjA3YTEuNzg5IDEuNzg5IDAgMCAxIDEuNzg0IDEuNzg0djMuOTI0aDYuMDY1YS43MTYuNzE2IDAgMCAxIC43MTQuNzE0djMuNTY4YS43MTYuNzE2IDAgMCAxLS43MTQuNzE0em0tMTIuMzEgOC4xNTV2LTQuNWEuMjc0LjI3NCAwIDAgMSAuMjY4LS4yNjdoLjE3OGEuMjc0LjI3NCAwIDAgMSAuMjY4LjI2N3Y0LjVIOS44MnYtNC41YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNWgyLjg1NHYtNC41YS4yNzQuMjc0IDAgMCAxIC4yNjgtLjI2N2guMTc4YS4yNzQuMjc0IDAgMCAxIC4yNjguMjY3djQuNWgzLjMzOWE5LjAzOCA5LjAzOCAwIDAgMS0uMzU3LTIuNjQzdi01LjUxMkgyLjkxNHY1LjUxMmE5LjAzNSA5LjAzNSAwIDAgMS0uMzU3IDIuNjQzaDMuNTE3em0xMi4wOC0xMS44NTFhLjM1OC4zNTggMCAwIDAtLjM1Ny0uMzU3aC02LjQyM1YyLjE2M2MwLS43LS41NTMtMS4wMi0xLjI0OS0xLjAyaC0uMjUxYy0uNyAwLTEuMjQ5LjMyNC0xLjI0OSAxLjAydjQuNjg5SDIuMjAzYS4zNTguMzU4IDAgMCAwLS4zNTcuMzU3djIuNGEuMzU4LjM1OCAwIDAgMCAuMzU3LjM1N2gxNS42YS4zNTguMzU4IDAgMCAwIC4zNTctLjM1N3YtMi40em0uMjI5LS4yMjkiLz48L2c+PHBhdGggZGF0YS1uYW1lPSLnn6nlvaIgMjMxNzUiIGZpbGw9Im5vbmUiIGQ9Ik0wIC4xMDFoMjB2MjBIMHoiLz48L2c+PC9zdmc+",undoIcon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48ZyBkYXRhLW5hbWU9Iue7hCAyMjM2MSI+PHBhdGggZGF0YS1uYW1lPSLot6/lvoQgMjM1MjYiIGQ9Ik0xMy4xIDQuNDM0SDUuNzIxbDIuMjA3LTEuNDU4YS42ODYuNjg2IDAgMCAwIC4yMDctLjk3Mi42NzYuNjc2IDAgMCAwLS45NjUtLjIwOEwzLjAzMiA0LjU3NGEuNjMzLjYzMyAwIDAgMC0uMjc2LjU1Ni44Ni44NiAwIDAgMCAuMjc2LjU1Nkw3LjE3IDguNDY0Yy4wNjkuMTM5LjIwNy4xMzkuMzQ1LjEzOWEuODQ5Ljg0OSAwIDAgMCAuNTUyLS4yNzguNjg2LjY4NiAwIDAgMC0uMjA3LS45NzJMNS41ODQgNS44MjVIMTMuMWE1LjU1NiA1LjU1NiAwIDAgMSAwIDExLjExMkguNjlhLjY5NS42OTUgMCAwIDAgMCAxLjM4OUgxMy4xYTYuOTQ1IDYuOTQ1IDAgMCAwIDAtMTMuODl6IiBmaWxsPSIjMzMzIi8+PHBhdGggZGF0YS1uYW1lPSLnn6nlvaIgMjMxNDkiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2c+PC9zdmc+",undoDisableIcon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48ZyBkYXRhLW5hbWU9Iue7hCAyMjM2MSI+PHBhdGggZGF0YS1uYW1lPSLot6/lvoQgMjM1MjYiIGQ9Ik0xMy4xIDQuNDM0SDUuNzIxbDIuMjA3LTEuNDU4YS42ODYuNjg2IDAgMCAwIC4yMDctLjk3Mi42NzYuNjc2IDAgMCAwLS45NjUtLjIwOEwzLjAzMiA0LjU3NGEuNjMzLjYzMyAwIDAgMC0uMjc2LjU1Ni44Ni44NiAwIDAgMCAuMjc2LjU1Nkw3LjE3IDguNDY0Yy4wNjkuMTM5LjIwNy4xMzkuMzQ1LjEzOWEuODQ5Ljg0OSAwIDAgMCAuNTUyLS4yNzguNjg2LjY4NiAwIDAgMC0uMjA3LS45NzJMNS41ODQgNS44MjVIMTMuMWE1LjU1NiA1LjU1NiAwIDAgMSAwIDExLjExMkguNjlhLjY5NS42OTUgMCAwIDAgMCAxLjM4OUgxMy4xYTYuOTQ1IDYuOTQ1IDAgMCAwIDAtMTMuODl6IiBmaWxsPSIjYzFjMWMxIi8+PHBhdGggZGF0YS1uYW1lPSLnn6nlvaIgMjMxNDkiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2c+PC9zdmc+",redoIcon:"data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9Iue7hCAyMjM2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZGF0YS1uYW1lPSLot6/lvoQgMjM1MjYiIGQ9Ik02LjkgNC40MzRoNy4zNzlsLTIuMjA3LTEuNDU4YS42ODYuNjg2IDAgMCAxLS4yMDctLjk3Mi42NzYuNjc2IDAgMCAxIC45NjUtLjIwOGw0LjEzOCAyLjc3OGEuNjMzLjYzMyAwIDAgMSAuMjc2LjU1Ni44Ni44NiAwIDAgMS0uMjc2LjU1NkwxMi44MyA4LjQ2NGMtLjA2OS4xMzktLjIwNy4xMzktLjM0NS4xMzlhLjg0OS44NDkgMCAwIDEtLjU1Mi0uMjc4LjY4Ni42ODYgMCAwIDEgLjIwNy0uOTcybDIuMjc2LTEuNTI4SDYuOWE1LjU1NiA1LjU1NiAwIDAgMCAwIDExLjExMmgxMi40MWEuNjk1LjY5NSAwIDAgMSAwIDEuMzg5SDYuOWE2Ljk0NSA2Ljk0NSAwIDAgMSAwLTEzLjg5eiIgZmlsbD0iIzMzMyIvPjxwYXRoIGRhdGEtbmFtZT0i55+p5b2iIDIzMTQ5IiBmaWxsPSJub25lIiBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9zdmc+",redoDisableIcon:"data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9Iue7hCAyMjM2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZGF0YS1uYW1lPSLot6/lvoQgMjM1MjYiIGQ9Ik02LjkgNC40MzRoNy4zNzlsLTIuMjA3LTEuNDU4YS42ODYuNjg2IDAgMCAxLS4yMDctLjk3Mi42NzYuNjc2IDAgMCAxIC45NjUtLjIwOGw0LjEzOCAyLjc3OGEuNjMzLjYzMyAwIDAgMSAuMjc2LjU1Ni44Ni44NiAwIDAgMS0uMjc2LjU1NkwxMi44MyA4LjQ2NGMtLjA2OS4xMzktLjIwNy4xMzktLjM0NS4xMzlhLjg0OS44NDkgMCAwIDEtLjU1Mi0uMjc4LjY4Ni42ODYgMCAwIDEgLjIwNy0uOTcybDIuMjc2LTEuNTI4SDYuOWE1LjU1NiA1LjU1NiAwIDAgMCAwIDExLjExMmgxMi40MWEuNjk1LjY5NSAwIDAgMSAwIDEuMzg5SDYuOWE2Ljk0NSA2Ljk0NSAwIDAgMSAwLTEzLjg5eiIgZmlsbD0iI2MxYzFjMSIvPjxwYXRoIGRhdGEtbmFtZT0i55+p5b2iIDIzMTQ5IiBmaWxsPSJub25lIiBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9zdmc+"},qt=e=>$k[e],Fk=e=>(t.pushScopeId("data-v-516516a5"),e=e(),t.popScopeId(),e),jk={class:"image-editor-box"},Uk={key:0,class:"image-editor-controler"},Hk={key:0,class:"image-editor-no_edit"},Wk={key:1,class:"image-editor-editing"},Yk={class:"left"},Gk=["src"],Kk=["src"],qk=["src"],Qk=[Fk(()=>t.createElementVNode("div",null,"Confirm",-1))],Zk=gi(t.defineComponent({__name:"ImageEditor",setup(e){t.useCssVars(L=>({"455fdd5f":N.width,"4cccd4ae":N.height,b366f9a4:N.top,"2340194e":N.left}));const r=t.ref(hi()),a=ks().getImageEditor(),c=vr().getDocumentTemplate(),u=a.confirm,f=t.ref(null),m=t.ref(null),g=t.ref(null),y=t.reactive({x:0,y:0,width:0,height:0}),w=t.reactive({x:0,y:0}),b=t.reactive({isEditable:!1,clearIcon:qt("clearDisableIcon"),undoIcon:qt("undoDisableIcon"),redoIcon:qt("redoDisableIcon"),ctx:null,isDrawing:!1,color:"#ff0000",stroke:"2",originImg:void 0,index:0,operateList:new Array,redoList:new Array,originImage:"",currentImage:"",saveImage:"",type:"",points:new Array,beginPoint:null}),M=L=>{let[R,V]=[L.offsetLeft,L.offsetTop];const F=ie=>{V+=ie.offsetTop,R+=ie.offsetLeft,ie.offsetParent&&F(ie.offsetParent)};return L.offsetParent&&F(L.offsetParent),{left:R,top:V}},E=L=>{let{left:R,top:V}=L.getBoundingClientRect();return{left:R,top:V}},S=({i_width:L,i_height:R,c_width:V,c_height:F})=>{const ie=L/R,ue=V/F;switch(!0){case ie>ue:L=V,R=L/ie;break;case ie<ue:R=F,L=R*ie;break;case ie==ue:L=V,R=F;break}return{width:L,height:R}},N=t.reactive({top:"",left:"",width:"",height:""});t.onMounted(async()=>{let L=a.options.src;const R=L.split(/[:;]/);if(R.length===3?b.type=R[1]:b.type="image/png",r.value?(N.top="0",N.left="0",N.width="100vw",N.height="100vh"):c.relatedDom?(N.top=`${c.relatedDom.offsetTop}px`,N.left=`${c.relatedDom.offsetLeft}px`,N.width=`${c.relatedDom.clientWidth}px`,N.height=`${c.relatedDom.clientHeight}px`):(N.top="0",N.left="0",N.width="100vw",N.height="100vh"),f.value&&g.value){const V=f.value,F=V.getContext("2d",{willReadFrequently:!0});b.ctx=F,V.width=g.value.clientWidth,V.height=g.value.clientHeight;const ie=V.width,ue=V.height,de=new Image;de.src=L,de.onload=()=>{F.clearRect(0,0,V.width,V.height);const ge=de.width,Ie=de.height,Se=S({i_width:ge,i_height:Ie,c_width:ie,c_height:ue});y.width=Se.width,y.height=Se.height,V.width=y.width,V.height=y.height,y.x=(V.width-y.width)/2,y.y=(V.height-y.height)/2,F==null||F.drawImage(de,y.x,y.y,y.width,y.height);const Te=F==null?void 0:F.getImageData(0,0,V.width,V.height);Te&&(b.originImg=Te,b.operateList.push(Te),b.originImage=D(Te),b.currentImage=b.originImage,b.saveImage=b.originImage)}}});const k=async()=>{if(b.saveImage!==b.originImage){const L=ha.service({target:c.relatedDom||document.body});await u(a.options.dataKey,b.saveImage,b.type),L.close()}a.close()},A=L=>{L.target===m.value&&a.close()},B=()=>{b.operateList[b.index]!==b.originImg?b.clearIcon=qt("clearIcon"):b.clearIcon=qt("clearDisableIcon"),b.index>0?b.undoIcon=qt("undoIcon"):b.undoIcon=qt("undoDisableIcon"),b.redoList.length>0?b.redoIcon=qt("redoIcon"):b.redoIcon=qt("redoDisableIcon")},H=()=>{var R;const L=(R=b.ctx)==null?void 0:R.getImageData(y.x,y.y,y.width,y.height);b.currentImage=D(L),B()},D=L=>{const R=document.createElement("canvas");R.width=L.width,R.height=L.height;const V=R.getContext("2d");return V==null||V.putImageData(L,0,0),R.toDataURL().split(",")[1]},W=L=>{if(f.value){L.preventDefault(),L.stopPropagation();const R=b.ctx;if(R.strokeStyle=b.color,R.lineWidth=parseInt(b.stroke),b.isDrawing=!0,r.value){const{left:V,top:F}=E(f.value);L=L,w.x=L.targetTouches[0].clientX-V,w.y=L.targetTouches[0].clientY-F,b.points.push({x:w.x,y:w.y})}else{const{left:V,top:F}=M(f.value);L=L,w.x=L.clientX-V,w.y=L.clientY-F,b.points.push({x:w.x,y:w.y})}}},Y=(L,R,V)=>{const F=b.ctx;F.beginPath(),F.moveTo(L.x,L.y),F.quadraticCurveTo(R.x,R.y,V.x,V.y),F.stroke(),F.closePath()},te=L=>{var R;if(f.value&&(L.preventDefault(),L.stopPropagation(),f.value.style.cursor="auto",b.isDrawing)){if(r.value){const{left:ie,top:ue}=E(f.value);L=L;const de=L.changedTouches[0].clientX-ie,ge=L.changedTouches[0].clientY-ue;b.points.push({x:de,y:ge})}else{const{left:ie,top:ue}=M(f.value);L=L;const de=L.clientX-ie,ge=L.clientY-ue;b.points.push({x:de,y:ge})}if(b.points.length>3){const ie=b.points.slice(-2),ue=ie[0],de=ie[1];b.beginPoint&&Y(b.beginPoint,ue,de)}b.beginPoint=null,b.points=[];const V=b.ctx;V==null||V.closePath();const F=(R=b.ctx)==null?void 0:R.getImageData(y.x,y.y,y.width,y.height);b.operateList.push(F),b.redoList=new Array,b.index++}b.isDrawing=!1,H()},K=L=>{if(f.value&&(L.preventDefault(),L.stopPropagation(),b.isDrawing)){if(r.value){const{left:R,top:V}=E(f.value);L=L;const F=L.targetTouches[0].clientX-R,ie=L.targetTouches[0].clientY-V;b.points.push({x:F,y:ie})}else{const{left:R,top:V}=M(f.value);L=L;const F=L.clientX-R,ie=L.clientY-V;b.points.push({x:F,y:ie})}if(b.points.length>3){const R=b.points.slice(-2),V=R[0],F={x:(R[0].x+R[1].x)/2,y:(R[0].y+R[1].y)/2};b.beginPoint&&Y(b.beginPoint,V,F),b.beginPoint=F}}},q=()=>{if(f.value){const L=f.value;r.value?(L.addEventListener("touchstart",W),L.addEventListener("touchend",te),L.addEventListener("touchcancel",te),L.addEventListener("touchmove",K)):(L.addEventListener("mousedown",W),L.addEventListener("mouseup",te),L.addEventListener("mouseleave",te),L.addEventListener("mousemove",K)),b.isEditable=!0}},X=()=>{if(f.value){const L=f.value;L.removeEventListener("mousedown",W),L.removeEventListener("mouseup",te),L.removeEventListener("mouseleave",te),L.removeEventListener("mousemove",K),b.isEditable=!1,b.saveImage=b.currentImage}},se=()=>{const L=b.ctx;L&&b.originImg&&(b.index++,b.operateList.push(b.originImg),b.redoList=new Array,L.putImageData(b.originImg,y.x,y.y),H())},ye=()=>{var R;const L=b.operateList.pop();b.redoList.push(L),b.index--,b.redoIcon=qt("redoIcon"),(R=b.ctx)==null||R.putImageData(b.operateList[b.index],y.x,y.y),H()},le=()=>{var R;const L=b.redoList.pop();b.operateList.push(L),b.index++,(R=b.ctx)==null||R.putImageData(L,y.x,y.y),H()};return(L,R)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref_key:"editorView",ref:m,class:t.normalizeClass(r.value?"image-editor-view image-editor-view-mobile":"image-editor-view image-editor-view-ps"),onClick:A},[t.createElementVNode("div",jk,[t.createElementVNode("img",{class:"image-editor-close_icon",src:oh,onClick:k}),t.createElementVNode("div",{ref_key:"editorBox",ref:g,class:"image-editor-console-box"},[t.createElementVNode("canvas",{class:"image-editor-console",ref_key:"editorDom",ref:f},null,512)],512),t.unref(a).options.markable?(t.openBlock(),t.createElementBlock("div",Uk,[b.isEditable?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Hk,[t.createElementVNode("img",{src:Pk,class:"image-editor-editImg",onClick:q})])),b.isEditable?(t.openBlock(),t.createElementBlock("div",Wk,[t.createElementVNode("div",Yk,[t.withDirectives(t.createElementVNode("input",{class:"image-editor-color",type:"color","onUpdate:modelValue":R[0]||(R[0]=V=>b.color=V)},null,512),[[t.vModelText,b.color]]),t.withDirectives(t.createElementVNode("input",{class:"image-editor-stroke",type:"range",min:"1",max:"15","onUpdate:modelValue":R[1]||(R[1]=V=>b.stroke=V)},null,512),[[t.vModelText,b.stroke]]),t.createElementVNode("img",{class:"image-editor-clear",src:b.clearIcon,onClick:R[2]||(R[2]=V=>b.clearIcon==t.unref(qt)("clearIcon")&&se())},null,8,Gk),t.createElementVNode("img",{class:"image-editor-undo",src:b.undoIcon,onClick:R[3]||(R[3]=V=>b.undoIcon==t.unref(qt)("undoIcon")&&ye())},null,8,Kk),t.createElementVNode("img",{class:"image-editor-redo",src:b.redoIcon,onClick:R[4]||(R[4]=V=>b.redoIcon==t.unref(qt)("redoIcon")&&le())},null,8,qk)]),t.createElementVNode("div",{class:"right"},[t.createElementVNode("div",{class:"image-editor-comfirm",onClick:X},Qk)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)]))}}),[["__scopeId","data-v-516516a5"]]),Xk="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='6'%20height='6'%20viewBox='0%200%206%206'%3e%3ccircle%20id='椭圆_711'%20data-name='椭圆%20711'%20cx='3'%20cy='3'%20r='3'%20fill='%23005795'/%3e%3c/svg%3e",ch=e=>(t.pushScopeId("data-v-efcb65b1"),e=e(),t.popScopeId(),e),Jk={class:"recommend-diagnoses"},eM=ch(()=>t.createElementVNode("div",{class:"header"},null,-1)),tM=ch(()=>t.createElementVNode("div",{class:"recommend-diagnoses-title"},[t.createElementVNode("img",{class:"recommend-diagnoses-title_icon",src:Xk}),t.createElementVNode("span",{class:"recommend-diagnoses-title_text"},"Recommend Diagnoses")],-1)),nM={class:"recommend-diagnoses-list"},rM={class:"recommend-diagnoses-item"},oM={class:"recommend-diagnoses-item-code"},iM={class:"recommend-diagnosis-item-comment"},aM={class:"recommend-diagnoses-confirm"},sM=gi(t.defineComponent({__name:"RecommendDiagnosis",setup(e){t.useCssVars(A=>({"0b2dc305":E.width,"40bba3c8":E.height,"5d839a54":E.top,"52ebe6e8":E.left}));const r=t.ref(hi()),a=vr().getDocumentTemplate(),l=a.ecos,c=a.info,f=Ms().getRecommendDiagnosis(),m=t.reactive([]),g=t.reactive(f.options.formData),y=t.ref(!1),w=t.ref(null),b=f.cache;let M="";const E=t.reactive({top:"",left:"",width:"",height:""});t.onMounted(async()=>{const B=vr().getDocumentTemplate();B.relatedDom?(E.top=`${B.relatedDom.offsetTop}px`,E.left=`${B.relatedDom.offsetLeft}px`,E.width=`${B.relatedDom.clientWidth}px`,E.height=`${B.relatedDom.clientHeight}px`):(E.top="0",E.left="0",E.width="100vw",E.height="100vh");const H=ha.service({target:B.relatedDom||document.body}),D=g.Diagnosis,W=new Set(D.map(K=>K.code));let Y=[];if(b.hasCache)Y=b.list;else{const K=await l.retrieveDocument({idList:[c==null?void 0:c.facilityId,...(c==null?void 0:c.locationIds)||[],c==null?void 0:c.patientId],options:{ObjType:28,sfname:'{"result":"D.*", "join": "INNER JOIN Edge E on E.id=D.reid INNER JOIN Edge E2 on E.refid=E2.id"}',xfname:"(E.bvid,E2.Bvid) | (E.evid,E2.Bvid)",scondition:"E.type=40000 AND E.subtype&0xff=6 AND E2.type=40000 AND E2.subtype&0xff in(1,9) AND D.type=186881",asc:!1,obfname:"D.ctime",maxcount:100}});if(K.code===0){let q=[];K.document.forEach(X=>{const se=X.name.data.diagnosis.descriptiveList;q=q.concat(se)}),b.hasCache=!0,b.list=Rn.cloneDeep(q),Y=q}else b.hasCache=!0,b.list=[],Y=[]}Y.forEach(K=>{W.has(K.code)?K.isChecked=!0:K.isChecked=!1});let te=new Set;Y=Y.filter(K=>te.has(K.code)?!1:(te.add(K.code),!0)),Y.forEach(K=>{K.isChecked?M+="1":M+="0",m.push(K)}),H.close()}),t.watch(m,()=>{let A="";m.forEach(B=>{B.isChecked?A+="1":A+="0"}),y.value=M!==A});const S=()=>{f.close()},N=A=>{A.target===w.value&&f.close()},k=async()=>{const A=m.filter(D=>D.isChecked).map(({isChecked:D,...W})=>W),B=new Set(g.Diagnosis.map(D=>D.code)),H=A.filter(D=>!B.has(D.code));g.Diagnosis=[...g.Diagnosis,...H],f.close()};return(A,B)=>{const H=sp,D=br;return t.openBlock(),t.createElementBlock("div",{ref_key:"diagnosisView",ref:w,class:t.normalizeClass(r.value?"recommend-diagnoses-view recommend-diagnoses-mobile":"recommend-diagnoses-view"),onClick:N},[t.createElementVNode("div",Jk,[eM,t.createElementVNode("div",{class:"recommend-diagnoses-close"},[t.createElementVNode("img",{class:"recommend-diagnoses-close_icon",src:lh,onClick:S})]),tM,t.createElementVNode("div",nM,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m,W=>(t.openBlock(),t.createElementBlock("div",rM,[t.createElementVNode("div",oM,[t.createVNode(H,{modelValue:W.isChecked,"onUpdate:modelValue":Y=>W.isChecked=Y},null,8,["modelValue","onUpdate:modelValue"]),t.createTextVNode(" "+t.toDisplayString(W.code)+" - "+t.toDisplayString(W.description),1)]),t.createElementVNode("div",iM,t.toDisplayString(W.comment),1)]))),256))]),t.createElementVNode("div",aM,[t.createVNode(D,{class:t.normalizeClass(`
80
80
  recommend-diagnoses-button
81
81
  ${y.value?"recommend-diagnoses-button-able":"recommend-diagnoses-button-disable"}
82
- `),onClick:k},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1},8,["class"])])])],2)}}}),[["__scopeId","data-v-efcb65b1"]]),uh=t.defineComponent({__name:"DocumentTemplate",props:{json:{type:Array,required:!0,default:{}},formData:{type:Object,require:!0,default:{}},isEditable:{type:Boolean,default:!0,required:!0}},setup(e){var X,se;const r=vr(),o=r.getDocumentTemplate(),l=_s().getCalendarPciker(),u=Is().getSignaturePad(),m=ks().getImageEditor(),y=Ms().getRecommendDiagnosis(),w=e,b=w.formData,M=w.json,E=w.isEditable,S=o.ecos,N=o.role,k=o.docType,A=o.info;u.confirm=async(ye,le,L=345601,R)=>{var Se,Te,pe,ae,he,Ce,xe,Le,He;const F=sh(le,"image/png");let ie="",ue="",de="",ge="";switch(R){case Vt.provider:{ie=((Se=A==null?void 0:A.providerSignatureInfo)==null?void 0:Se.eid)||"",de=((Te=A==null?void 0:A.providerSignatureInfo)==null?void 0:Te.fid)||"",ue=Rn.get(b,ye);const Pe=await S.retrieveDocument({idList:[ue]});Pe.code===0&&Pe.document.length&&(ge=Pe.document[0].name.title),await S.createEdge({bvid:(pe=A==null?void 0:A.providerSignatureInfo)==null?void 0:pe.vid,type:1030});break}case Vt.patient:{ie=((ae=A==null?void 0:A.patientSignatureInfo)==null?void 0:ae.eid)||"",de=((he=A==null?void 0:A.patientSignatureInfo)==null?void 0:he.fid)||"",await S.createEdge({bvid:(Ce=A==null?void 0:A.patientSignatureInfo)==null?void 0:Ce.vid,type:1030});break}case Vt.attorney:{ie=((xe=A==null?void 0:A.attorneySignatureInfo)==null?void 0:xe.eid)||"",de=((Le=A==null?void 0:A.attorneySignatureInfo)==null?void 0:Le.fid)||"",await S.createEdge({bvid:(He=A==null?void 0:A.attorneySignatureInfo)==null?void 0:He.vid,type:1030});break}}const Ie=await S.createDocument({atimes:-10,id:ue,eid:ie,type:L,name:{data:F,title:ge}});if(Ie.code===0){const Pe=Ie.document;switch(Rn.set(b,ye,Pe.id),R){case Vt.provider:await S.createEdge({bvid:de,type:1030}),B.otherData.providerSignature=await K(Pe.id);break;case Vt.patient:B.otherData.patientSignature=await K(Pe.id);break;case Vt.attorney:B.otherData.attorneySignature=await K(Pe.id);break}}},m.confirm=async(ye,le,L)=>{const R=sh(le,L),V=await S.createDocument({atimes:-10,eid:A==null?void 0:A.rootNotebookID,type:430081,name:{data:R,type:L},subtype:{isEditable:!0}});if(V.code===0){const F=V.document;Rn.set(b,ye,F.id)}};const B=t.reactive({formData:b,json:M,isEditable:E,role:N,docType:k,otherData:{providerSignature:"",patientSignature:"",attorneySignature:""},otherTableInfo:{}});r.setFormData(B.formData);const H=t.ref(((X=B.role)==null?void 0:X.toString())===((se=B.docType)==null?void 0:se.toString())),D=t.ref(B.role===Vt.provider),W=t.ref(B.role===Vt.patient),Y=t.ref(B.role===Vt.attorney),te=t.reactive({provider:B.isEditable&&D,patient:B.isEditable&&W,attorney:B.isEditable&&Y}),K=async ye=>{if(S&&ye){const le=await S.retrieveDocument({idList:[ye]});if(le.code===0&&le.document.length>0){const L=le.document[0];return Ak({type:L.name.type,data:L.name.data})}else return""}else return""},q=(ye,le)=>{const L=new Array,R=V=>{if(_o.isArray(V))V.forEach(F=>{R(F)});else if(_o.isObject(V)&&"type"in V){switch(V.type){case"atblock":case"sharpblock":case"table":case"image":break;case"paragraph":default:R(V.children)}V.type===le&&L.push(V)}};return R(ye),L};return t.onBeforeMount(()=>{q(B.json,"image").forEach(async L=>{B.otherData[L.alt]=await K(B.formData[L.alt]),t.watch(()=>B.formData[L.alt],async R=>{B.otherData[L.alt]=await K(R)})}),q(B.json,"table").forEach(L=>{const V=(L.width==="auto"?L.width:Cp.fullWidth)==="auto"?0:100,F=new Array,ie=L.children[0].children;if(B.otherTableInfo[L.key]={tableWidthArray:new Array,flexShrinks:new Array},ie.forEach(ue=>{V===0?F.push(ue!=null&&ue.width&&(ue==null?void 0:ue.width)!=="auto"?parseFloat(ue.width):30):F.push(ue!=null&&ue.width&&(ue==null?void 0:ue.width)!=="auto"?parseFloat(ue.width):Math.floor(1e4/ie.length)/100)}),V===0){let ue=0;F.forEach(de=>{ue+=de}),F.forEach((de,ge)=>{de===30?(B.otherTableInfo[L.key].tableWidthArray[ge]=`${b.atrribute.noodl_font.tableMinWidth}`,B.otherTableInfo[L.key].flexShrinks[ge]=0):(B.otherTableInfo[L.key].tableWidthArray[ge]=`${100*Math.floor(100*de/ue)/100}%`,B.otherTableInfo[L.key].flexShrinks[ge]=1)})}else{let ue=0,de=1;F.forEach(ge=>{ge===Math.floor(1e4/ie.length)/100?de-=ge/100:ue+=ge}),F.forEach((ge,Ie)=>{ge===Math.floor(1e4/ie.length)/100?(B.otherTableInfo[L.key].tableWidthArray[Ie]=`calc(${ge}%)`,B.otherTableInfo[L.key].flexShrinks[Ie]=0):(B.otherTableInfo[L.key].tableWidthArray[Ie]=`calc(${Math.floor(1e4*de*ge/ue)/100}%)`,B.otherTableInfo[L.key].flexShrinks[Ie]=1)})}}),_o.isArray(B.formData.Diagnosis)||(B.formData.Diagnosis=[])}),t.onMounted(async()=>{B.otherData.providerSignature=await K(B.formData.signatureId),B.otherData.patientSignature=await K(B.formData.patdSignatureId),B.otherData.attorneySignature=await K(B.formData.attSignatureId)}),(ye,le)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(Gl,{node:t.unref(M),formData:t.unref(b),isEditable:B.isEditable&&H.value,editability:te,otherData:B.otherData,otherTableInfo:B.otherTableInfo},null,8,["node","formData","isEditable","editability","otherData","otherTableInfo"]),t.unref(l).status?(t.openBlock(),t.createBlock(bk,{key:0})):t.createCommentVNode("",!0),t.unref(u).status?(t.openBlock(),t.createBlock(Vk,{key:1})):t.createCommentVNode("",!0),t.unref(m).status?(t.openBlock(),t.createBlock(Qk,{key:2})):t.createCommentVNode("",!0),t.unref(y).status?(t.openBlock(),t.createBlock(aM,{key:3})):t.createCommentVNode("",!0)]))}}),sM=Nn.createPinia(),fh=e=>{e.use(sM),e.component("DocumentTemplate",uh)},lM={install:fh};gt.DocumentTemplate=uh,gt.aitmedTemplateRole=Vt,gt.aitmedTemplateType=mu,gt.default=lM,gt.install=fh,gt.useDocumentTemplateStore=vr,Object.defineProperties(gt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
82
+ `),onClick:k},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1},8,["class"])])])],2)}}}),[["__scopeId","data-v-efcb65b1"]]),uh=t.defineComponent({__name:"DocumentTemplate",props:{json:{type:Array,required:!0,default:{}},formData:{type:Object,require:!0,default:{}},isEditable:{type:Boolean,default:!0,required:!0}},setup(e){var X,se;const r=vr(),o=r.getDocumentTemplate(),l=_s().getCalendarPciker(),u=Is().getSignaturePad(),m=ks().getImageEditor(),y=Ms().getRecommendDiagnosis(),w=e,b=w.formData,M=w.json,E=w.isEditable,S=o.ecos,N=o.role,k=o.docType,A=o.info;u.confirm=async(ye,le,L=345601,R)=>{var Se,Te,pe,ae,he,Ce,xe,Le,He;const F=sh(le,"image/png");let ie="",ue="",de="",ge="";switch(R){case Vt.provider:{ie=((Se=A==null?void 0:A.providerSignatureInfo)==null?void 0:Se.eid)||"",de=((Te=A==null?void 0:A.providerSignatureInfo)==null?void 0:Te.fid)||"",ue=Rn.get(b,ye);const Pe=await S.retrieveDocument({idList:[ue]});Pe.code===0&&Pe.document.length&&(ge=Pe.document[0].name.title),await S.createEdge({bvid:(pe=A==null?void 0:A.providerSignatureInfo)==null?void 0:pe.vid,type:1030});break}case Vt.patient:{ie=((ae=A==null?void 0:A.patientSignatureInfo)==null?void 0:ae.eid)||"",de=((he=A==null?void 0:A.patientSignatureInfo)==null?void 0:he.fid)||"",await S.createEdge({bvid:(Ce=A==null?void 0:A.patientSignatureInfo)==null?void 0:Ce.vid,type:1030});break}case Vt.attorney:{ie=((xe=A==null?void 0:A.attorneySignatureInfo)==null?void 0:xe.eid)||"",de=((Le=A==null?void 0:A.attorneySignatureInfo)==null?void 0:Le.fid)||"",await S.createEdge({bvid:(He=A==null?void 0:A.attorneySignatureInfo)==null?void 0:He.vid,type:1030});break}}const Ie=await S.createDocument({atimes:-10,id:ue,eid:ie,type:L,name:{data:F,title:ge}});if(Ie.code===0){const Pe=Ie.document;switch(Rn.set(b,ye,Pe.id),R){case Vt.provider:await S.createEdge({bvid:de,type:1030}),B.otherData.providerSignature=await K(Pe.id);break;case Vt.patient:B.otherData.patientSignature=await K(Pe.id);break;case Vt.attorney:B.otherData.attorneySignature=await K(Pe.id);break}}},m.confirm=async(ye,le,L)=>{const R=sh(le,L),V=await S.createDocument({atimes:-10,eid:A==null?void 0:A.rootNotebookID,type:430081,name:{data:R,type:L},subtype:{isEditable:!0}});if(V.code===0){const F=V.document;Rn.set(b,ye,F.id)}};const B=t.reactive({formData:b,json:M,isEditable:E,role:N,docType:k,otherData:{providerSignature:"",patientSignature:"",attorneySignature:""},otherTableInfo:{}});r.setFormData(B.formData);const H=t.ref(((X=B.role)==null?void 0:X.toString())===((se=B.docType)==null?void 0:se.toString())),D=t.ref(B.role===Vt.provider),W=t.ref(B.role===Vt.patient),Y=t.ref(B.role===Vt.attorney),te=t.reactive({provider:B.isEditable&&D,patient:B.isEditable&&W,attorney:B.isEditable&&Y}),K=async ye=>{if(S&&ye){const le=await S.retrieveDocument({idList:[ye]});if(le.code===0&&le.document.length>0){const L=le.document[0];return Tk({type:L.name.type,data:L.name.data})}else return""}else return""},q=(ye,le)=>{const L=new Array,R=V=>{if(_o.isArray(V))V.forEach(F=>{R(F)});else if(_o.isObject(V)&&"type"in V){switch(V.type){case"atblock":case"sharpblock":case"table":case"image":break;case"paragraph":default:R(V.children)}V.type===le&&L.push(V)}};return R(ye),L};return t.onBeforeMount(()=>{q(B.json,"image").forEach(async L=>{B.otherData[L.alt]=await K(B.formData[L.alt]),t.watch(()=>B.formData[L.alt],async R=>{B.otherData[L.alt]=await K(R)})}),q(B.json,"table").forEach(L=>{const V=(L.width==="auto"?L.width:Cp.fullWidth)==="auto"?0:100,F=new Array,ie=L.children[0].children;if(B.otherTableInfo[L.key]={tableWidthArray:new Array,flexShrinks:new Array},ie.forEach(ue=>{V===0?F.push(ue!=null&&ue.width&&(ue==null?void 0:ue.width)!=="auto"?parseFloat(ue.width):30):F.push(ue!=null&&ue.width&&(ue==null?void 0:ue.width)!=="auto"?parseFloat(ue.width):Math.floor(1e4/ie.length)/100)}),V===0){let ue=0;F.forEach(de=>{ue+=de}),F.forEach((de,ge)=>{de===30?(B.otherTableInfo[L.key].tableWidthArray[ge]=`${b.atrribute.noodl_font.tableMinWidth}`,B.otherTableInfo[L.key].flexShrinks[ge]=0):(B.otherTableInfo[L.key].tableWidthArray[ge]=`${100*Math.floor(100*de/ue)/100}%`,B.otherTableInfo[L.key].flexShrinks[ge]=1)})}else{let ue=0,de=1;F.forEach(ge=>{ge===Math.floor(1e4/ie.length)/100?de-=ge/100:ue+=ge}),F.forEach((ge,Ie)=>{ge===Math.floor(1e4/ie.length)/100?(B.otherTableInfo[L.key].tableWidthArray[Ie]=`calc(${ge}%)`,B.otherTableInfo[L.key].flexShrinks[Ie]=0):(B.otherTableInfo[L.key].tableWidthArray[Ie]=`calc(${Math.floor(1e4*de*ge/ue)/100}%)`,B.otherTableInfo[L.key].flexShrinks[Ie]=1)})}}),_o.isArray(B.formData.Diagnosis)||(B.formData.Diagnosis=[])}),t.onMounted(async()=>{B.otherData.providerSignature=await K(B.formData.signatureId),B.otherData.patientSignature=await K(B.formData.patdSignatureId),B.otherData.attorneySignature=await K(B.formData.attSignatureId)}),(ye,le)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(Gl,{node:t.unref(M),formData:t.unref(b),isEditable:B.isEditable&&H.value,editability:te,otherData:B.otherData,otherTableInfo:B.otherTableInfo},null,8,["node","formData","isEditable","editability","otherData","otherTableInfo"]),t.unref(l).status?(t.openBlock(),t.createBlock(wk,{key:0})):t.createCommentVNode("",!0),t.unref(u).status?(t.openBlock(),t.createBlock(zk,{key:1})):t.createCommentVNode("",!0),t.unref(m).status?(t.openBlock(),t.createBlock(Zk,{key:2})):t.createCommentVNode("",!0),t.unref(y).status?(t.openBlock(),t.createBlock(sM,{key:3})):t.createCommentVNode("",!0)]))}}),lM=Nn.createPinia(),fh=e=>{e.use(lM),e.component("DocumentTemplate",uh)},cM={install:fh};gt.DocumentTemplate=uh,gt.aitmedTemplateRole=Vt,gt.aitmedTemplateType=mu,gt.default=cM,gt.install=fh,gt.useDocumentTemplateStore=vr,Object.defineProperties(gt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});