@aitmed/aitmed-document-template 1.23.0 → 1.24.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.
@@ -14312,7 +14312,7 @@ function pa() {
14312
14312
  var e = navigator.userAgent || navigator.vendor || window.opera;
14313
14313
  return !!(/android/i.test(e) || /iPad|iPhone|iPod/.test(e) && !window.MSStream);
14314
14314
  }
14315
- const il = (e) => (Ns("data-v-52329d2b"), e = e(), Us(), e), fk = { class: "RecursiveComponent" }, dk = { key: 0 }, pk = {
14315
+ const il = (e) => (Ns("data-v-6bdb7acd"), e = e(), Us(), e), fk = { class: "RecursiveComponent" }, dk = { key: 0 }, pk = {
14316
14316
  key: 0,
14317
14317
  class: "basetype"
14318
14318
  }, hk = { key: 1 }, gk = { key: 0 }, vk = { class: "label textsharp-title" }, mk = {
@@ -14399,27 +14399,27 @@ const il = (e) => (Ns("data-v-52329d2b"), e = e(), Us(), e), fk = { class: "Recu
14399
14399
  },
14400
14400
  setup(e) {
14401
14401
  ra((he) => ({
14402
- "72a29920": x(n).fullWidth,
14403
- ef134b80: x(n).defaultStyle.marginTop,
14404
- "698b579c": x(n).alignItems,
14405
- "7c83fa38": x(n).text,
14406
- "2848829c": x(n).lineHeight,
14407
- "1b3c36fa": x(n).atBlockWidth,
14408
- "493e5fba": x(n).doubleLineHeight,
14409
- "1636592b": x(n).defaultStyle.paddingTop,
14410
- "9eddfa1e": x(n).defaultStyle.paddingLeft,
14411
- e6c7f9d2: x(n).DateAndTime.width,
14412
- "1750a2f9": x(n).signature.width,
14413
- "8e167b58": x(n).signature.height,
14414
- "725799e4": x(n).signature.label.top,
14415
- "4a4ece64": x(n).signature.label.height,
14416
- "62bb153f": x(n).signature.label.width,
14417
- "13ae656e": x(n).signature.label.left,
14418
- f35db708: x(n).defaultStyle.marginLeft,
14419
- f356241c: x(n).defaultStyle.marginTop2,
14420
- "1c6c6cab": x(n).tableMinWidth,
14421
- f649c7d8: x(n).diagnosis.titleFontSize,
14422
- "4929a316": x(n).diagnosis.buttonFontSize
14402
+ bd78b384: x(n).fullWidth,
14403
+ ba9fe43c: x(n).defaultStyle.marginTop,
14404
+ "70baead4": x(n).alignItems,
14405
+ "5e94bb06": x(n).text,
14406
+ dd475558: x(n).lineHeight,
14407
+ "3a175aa5": x(n).atBlockWidth,
14408
+ "7d6b3576": x(n).doubleLineHeight,
14409
+ "433319c9": x(n).defaultStyle.paddingTop,
14410
+ "232c5613": x(n).defaultStyle.paddingLeft,
14411
+ "63e51235": x(n).DateAndTime.width,
14412
+ "25a23cd2": x(n).signature.width,
14413
+ c2435114: x(n).signature.height,
14414
+ "1fd41aa8": x(n).signature.label.top,
14415
+ "15db6720": x(n).signature.label.height,
14416
+ "428b655d": x(n).signature.label.width,
14417
+ "12a49990": x(n).signature.label.left,
14418
+ "996435cc": x(n).defaultStyle.marginLeft,
14419
+ "995ca2e0": x(n).defaultStyle.marginTop2,
14420
+ "69348a6e": x(n).tableMinWidth,
14421
+ "9c50469c": x(n).diagnosis.titleFontSize,
14422
+ 88761390: x(n).diagnosis.buttonFontSize
14423
14423
  }));
14424
14424
  let n;
14425
14425
  const r = pe(pa());
@@ -15105,7 +15105,7 @@ const il = (e) => (Ns("data-v-52329d2b"), e = e(), Us(), e), fk = { class: "Recu
15105
15105
  for (const [i, s] of n)
15106
15106
  r[i] = s;
15107
15107
  return r;
15108
- }, vc = /* @__PURE__ */ ha(lR, [["__scopeId", "data-v-52329d2b"]]), Iv = "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", uR = { class: "calendar_box" }, cR = { class: "date" }, fR = { class: "calendar_chioce" }, dR = /* @__PURE__ */ Ce({
15108
+ }, vc = /* @__PURE__ */ ha(lR, [["__scopeId", "data-v-6bdb7acd"]]), Iv = "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", uR = { class: "calendar_box" }, cR = { class: "date" }, fR = { class: "calendar_chioce" }, dR = /* @__PURE__ */ Ce({
15109
15109
  __name: "CalendarPicker",
15110
15110
  setup(e) {
15111
15111
  ra((k) => ({
@@ -48,7 +48,7 @@ function print() { __p += __j.call(arguments, '') }
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[Fp]=this[Fp]={accessors:{}}).accessors,l=this.prototype;function c(u){const f=fi(u);a[f]||(lv(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 Ll(e,r){const o=this||ui,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 zp(e){return!!(e&&e.__CANCEL__)}function xo(e,r,o){Ne.call(this,e??"canceled",Ne.ERR_CANCELED,r,o),this.name="CanceledError"}Z.inherits(xo,Ne,{__CANCEL__:!0});function Up(e,r,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?e(o):r(new Ne("Request failed with status code "+o.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function cv(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function uv(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 y=Date.now(),g=a[c];u||(u=y),o[l]=m,a[l]=y;let b=c,x=0;for(;b!==l;)x+=o[b++],b=b%e;if(l=(l+1)%e,l===c&&(c=(c+1)%e),y-u<r)return;const _=g&&y-g;return _?Math.round(x*1e3/_):void 0}}function fv(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 ba=(e,r,o=3)=>{let a=0;const l=uv(50,250);return fv(c=>{const u=c.loaded,f=c.lengthComputable?c.total:void 0,m=u-a,y=l(m),g=u<=f;a=u;const b={loaded:u,total:f,progress:f?u/f:void 0,bytes:m,rate:y||void 0,estimated:y&&f&&g?(f-u)/y:void 0,event:c,lengthComputable:f!=null};b[r?"download":"upload"]=!0,e(b)},o)},dv=xn.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}}(),pv=xn.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 hv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mv(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function Hp(e,r){return e&&!hv(r)?mv(e,r):r}const Wp=e=>e instanceof Ut?{...e}:e;function jr(e,r){r=r||{};const o={};function a(y,g,b){return Z.isPlainObject(y)&&Z.isPlainObject(g)?Z.merge.call({caseless:b},y,g):Z.isPlainObject(g)?Z.merge({},g):Z.isArray(g)?g.slice():g}function l(y,g,b){if(Z.isUndefined(g)){if(!Z.isUndefined(y))return a(void 0,y,b)}else return a(y,g,b)}function c(y,g){if(!Z.isUndefined(g))return a(void 0,g)}function u(y,g){if(Z.isUndefined(g)){if(!Z.isUndefined(y))return a(void 0,y)}else return a(void 0,g)}function f(y,g,b){if(b in r)return a(y,g);if(b in e)return a(void 0,y)}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:(y,g)=>l(Wp(y),Wp(g),!0)};return Z.forEach(Object.keys(Object.assign({},e,r)),function(g){const b=m[g]||l,x=b(e[g],r[g],g);Z.isUndefined(x)&&b!==f||(o[g]=x)}),o}const jp=e=>{const r=jr({},e);let{data:o,withXSRFToken:a,xsrfHeaderName:l,xsrfCookieName:c,headers:u,auth:f}=r;r.headers=u=Ut.from(u),r.url=Lp(Hp(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(xn.hasStandardBrowserEnv||xn.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((m=u.getContentType())!==!1){const[y,...g]=m?m.split(";").map(b=>b.trim()).filter(Boolean):[];u.setContentType([y||"multipart/form-data",...g].join("; "))}}if(xn.hasStandardBrowserEnv&&(a&&Z.isFunction(a)&&(a=a(r)),a||a!==!1&&dv(r.url))){const y=l&&c&&pv.read(c);y&&u.set(l,y)}return r},gv=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,a){const l=jp(e);let c=l.data;const u=Ut.from(l.headers).normalize();let{responseType:f}=l,m;function y(){l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let g=new XMLHttpRequest;g.open(l.method.toUpperCase(),l.url,!0),g.timeout=l.timeout;function b(){if(!g)return;const _=Ut.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),C={data:!f||f==="text"||f==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:_,config:e,request:g};Up(function(k){o(k),y()},function(k){a(k),y()},C),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(a(new Ne("Request aborted",Ne.ECONNABORTED,l,g)),g=null)},g.onerror=function(){a(new Ne("Network Error",Ne.ERR_NETWORK,l,g)),g=null},g.ontimeout=function(){let w=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const C=l.transitional||Pp;l.timeoutErrorMessage&&(w=l.timeoutErrorMessage),a(new Ne(w,C.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,l,g)),g=null},c===void 0&&u.setContentType(null),"setRequestHeader"in g&&Z.forEach(u.toJSON(),function(w,C){g.setRequestHeader(C,w)}),Z.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),f&&f!=="json"&&(g.responseType=l.responseType),typeof l.onDownloadProgress=="function"&&g.addEventListener("progress",ba(l.onDownloadProgress,!0)),typeof l.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",ba(l.onUploadProgress)),(l.cancelToken||l.signal)&&(m=_=>{g&&(a(!_||_.type?new xo(null,e,g):_),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const x=cv(l.url);if(x&&xn.protocols.indexOf(x)===-1){a(new Ne("Unsupported protocol "+x+":",Ne.ERR_BAD_REQUEST,e));return}g.send(c||null)})},yv=(e,r)=>{let o=new AbortController,a;const l=function(m){if(!a){a=!0,u();const y=m instanceof Error?m:this.reason;o.abort(y instanceof Ne?y:new xo(y instanceof Error?y.message:y))}};let c=r&&setTimeout(()=>{l(new Ne(`timeout ${r} of ms exceeded`,Ne.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}]},bv=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},wv=async function*(e,r,o){for await(const a of e)yield*bv(ArrayBuffer.isView(a)?a:await o(String(a)),r)},Kp=(e,r,o,a,l)=>{const c=wv(e,r,l);let u=0;return new ReadableStream({type:"bytes",async pull(f){const{done:m,value:y}=await c.next();if(m){f.close(),a();return}let g=y.byteLength;o&&o(u+=g),f.enqueue(new Uint8Array(y))},cancel(f){return a(f),c.return()}},{highWaterMark:2})},Gp=(e,r)=>{const o=e!=null;return a=>setTimeout(()=>r({lengthComputable:o,total:e,loaded:a}))},wa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qp=wa&&typeof ReadableStream=="function",Ml=wa&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ev=qp&&(()=>{let e=!1;const r=new Request(xn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r})(),Yp=64*1024,Pl=qp&&!!(()=>{try{return Z.isReadableStream(new Response("").body)}catch{}})(),Ea={stream:Pl&&(e=>e.body)};wa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!Ea[r]&&(Ea[r]=Z.isFunction(e[r])?o=>o[r]():(o,a)=>{throw new Ne(`Response type '${r}' is not supported`,Ne.ERR_NOT_SUPPORT,a)})})})(new Response);const Cv=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 Ml(e)).byteLength},_v=async(e,r)=>{const o=Z.toFiniteNumber(e.getContentLength());return o??Cv(r)},Vl={http:jx,xhr:gv,fetch:wa&&(async e=>{let{url:r,method:o,data:a,signal:l,cancelToken:c,timeout:u,onDownloadProgress:f,onUploadProgress:m,responseType:y,headers:g,withCredentials:b="same-origin",fetchOptions:x}=jp(e);y=y?(y+"").toLowerCase():"text";let[_,w]=l||c||u?yv([l,c],u):[],C,I;const k=()=>{!C&&setTimeout(()=>{_&&_.unsubscribe()}),C=!0};let T;try{if(m&&Ev&&o!=="get"&&o!=="head"&&(T=await _v(g,a))!==0){let G=new Request(r,{method:"POST",body:a,duplex:"half"}),W;Z.isFormData(a)&&(W=G.headers.get("content-type"))&&g.setContentType(W),G.body&&(a=Kp(G.body,Yp,Gp(T,ba(m)),null,Ml))}Z.isString(b)||(b=b?"cors":"omit"),I=new Request(r,{...x,signal:_,method:o.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",withCredentials:b});let L=await fetch(I);const K=Pl&&(y==="stream"||y==="response");if(Pl&&(f||K)){const G={};["status","statusText","headers"].forEach(te=>{G[te]=L[te]});const W=Z.toFiniteNumber(L.headers.get("content-length"));L=new Response(Kp(L.body,Yp,f&&Gp(W,ba(f,!0)),K&&k,Ml),G)}y=y||"text";let D=await Ea[Z.findKey(Ea,y)||"text"](L,e);return!K&&k(),w&&w(),await new Promise((G,W)=>{Up(G,W,{data:D,headers:Ut.from(L.headers),status:L.status,statusText:L.statusText,config:e,request:I})})}catch(L){throw k(),L&&L.name==="TypeError"&&/fetch/i.test(L.message)?Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,e,I),{cause:L.cause||L}):Ne.from(L,L&&L.code,e,I)}})};Z.forEach(Vl,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const Xp=e=>`- ${e}`,Sv=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,!Sv(o)&&(a=Vl[(u=String(o)).toLowerCase()],a===void 0))throw new Ne(`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 Ne("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return a},adapters:Vl};function Fl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xo(null,e)}function Zp(e){return Fl(e),e.headers=Ut.from(e.headers),e.data=Ll.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jp.getAdapter(e.adapter||ui.adapter)(e).then(function(a){return Fl(e),a.data=Ll.call(e,e.transformResponse,a),a.headers=Ut.from(a.headers),a},function(a){return zp(a)||(Fl(e),a&&a.response&&(a.response.data=Ll.call(e,e.transformResponse,a.response),a.response.headers=Ut.from(a.response.headers))),Promise.reject(a)})}const Qp="1.7.2",zl={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{zl[e]=function(a){return typeof a===e||"a"+(r<1?"n ":" ")+e}});const eh={};zl.transitional=function(r,o,a){function l(c,u){return"[Axios v"+Qp+"] Transitional option '"+c+"'"+u+(a?". "+a:"")}return(c,u,f)=>{if(r===!1)throw new Ne(l(u," has been removed"+(o?" in "+o:"")),Ne.ERR_DEPRECATED);return o&&!eh[u]&&(eh[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 xv(e,r,o){if(typeof e!="object")throw new Ne("options must be an object",Ne.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 Ne("option "+c+" must be "+m,Ne.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Ne("Unknown option "+c,Ne.ERR_BAD_OPTION)}}const Ul={assertOptions:xv,validators:zl},wr=Ul.validators;class Kr{constructor(r){this.defaults=r,this.interceptors={request:new Mp,response:new Mp}}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=jr(this.defaults,o);const{transitional:a,paramsSerializer:l,headers:c}=o;a!==void 0&&Ul.assertOptions(a,{silentJSONParsing:wr.transitional(wr.boolean),forcedJSONParsing:wr.transitional(wr.boolean),clarifyTimeoutError:wr.transitional(wr.boolean)},!1),l!=null&&(Z.isFunction(l)?o.paramsSerializer={serialize:l}:Ul.assertOptions(l,{encode:wr.function,serialize:wr.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"],w=>{delete c[w]}),o.headers=Ut.concat(u,c);const f=[];let m=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(o)===!1||(m=m&&C.synchronous,f.unshift(C.fulfilled,C.rejected))});const y=[];this.interceptors.response.forEach(function(C){y.push(C.fulfilled,C.rejected)});let g,b=0,x;if(!m){const w=[Zp.bind(this),void 0];for(w.unshift.apply(w,f),w.push.apply(w,y),x=w.length,g=Promise.resolve(o);b<x;)g=g.then(w[b++],w[b++]);return g}x=f.length;let _=o;for(b=0;b<x;){const w=f[b++],C=f[b++];try{_=w(_)}catch(I){C.call(this,I);break}}try{g=Zp.call(this,_)}catch(w){return Promise.reject(w)}for(b=0,x=y.length;b<x;)g=g.then(y[b++],y[b++]);return g}getUri(r){r=jr(this.defaults,r);const o=Hp(r.baseURL,r.url);return Lp(o,r.params,r.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(r){Kr.prototype[r]=function(o,a){return this.request(jr(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(jr(f||{},{method:r,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}Kr.prototype[r]=o(),Kr.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 xo(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 vv(e){return function(o){return e.apply(null,o)}}function kv(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 th(e){const r=new Kr(e),o=Ep(Kr.prototype.request,r);return Z.extend(o,Kr.prototype,r,{allOwnKeys:!0}),Z.extend(o,r,null,{allOwnKeys:!0}),o.create=function(l){return th(jr(e,l))},o}const Ct=th(ui);Ct.Axios=Kr,Ct.CanceledError=xo,Ct.CancelToken=Hl,Ct.isCancel=zp,Ct.VERSION=Qp,Ct.toFormData=ga,Ct.AxiosError=Ne,Ct.Cancel=Ct.CanceledError,Ct.all=function(r){return Promise.all(r)},Ct.spread=vv,Ct.isAxiosError=kv,Ct.mergeConfig=jr,Ct.AxiosHeaders=Ut,Ct.formToJSON=e=>Vp(Z.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=Jp.getAdapter,Ct.HttpStatusCode=Wl,Ct.default=Ct;const Bv=/#[\w*]+\|-\|((?!\|-\|).)+\|-\|((?!\|-\|).)+\|-\|/,Tv=/#[\w *\&]+\|-\|((?!\|-\|).)+\|-\|/,Av=/\|-\|/g,Iv=/\|-\|/;function di(){var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/android/i.test(e)||/iPad|iPhone|iPod/.test(e)&&!window.MSStream)}const Ca=e=>(t.pushScopeId("data-v-52329d2b"),e=e(),t.popScopeId(),e),Ov={class:"RecursiveComponent"},Nv={key:0},Rv={key:0,class:"basetype"},Dv={key:1},$v={key:0},Lv={class:"label textsharp-title"},Mv={key:0,style:{color:"red"}},Pv={key:1},Vv={class:"label choice-title"},Fv={key:0,style:{color:"red"}},zv={key:2,class:"vertical-checkbox-group"},Uv={key:3,class:"vertical-checkbox-group"},Hv={key:5,class:"dropdownbox-block"},Wv={class:"label dropdownbox-label"},jv=["onClick"],Kv={key:7,class:"date-block"},Gv={class:"label date-label"},qv={key:8,class:"time-box"},Yv={key:9,class:"time-block"},Xv={class:"label time-label"},Jv=["onClick"],Zv={class:"time-box"},Qv={key:11,class:"date-time-block"},ek={class:"label date-bolck-label"},tk=Ca(()=>t.createElementVNode("div",{class:"label date-time-blank-label"},"      ",-1)),nk={class:"label time-bolck-label"},rk={key:2},ok=["src"],ik={key:3},ak=["src"],sk={class:"signature-guardian"},lk=Ca(()=>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)),ck={key:4},uk={class:"diagnosis-title"},fk=Ca(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),dk={key:0,class:"diagnosis-editable"},pk={class:"diagnosis-searchbox"},hk={key:0,class:"diagnosis-suggestion"},mk=["onClick"],gk=Ca(()=>t.createElementVNode("br",null,null,-1)),yk={key:1,class:"diagnosis-list"},bk={class:"diagnosis-item"},wk={class:"diagnosis-item-code"},Ek={class:"diagnosis-item-comment"},Ck={key:0},_k={key:5},Sk={class:"label default-label"},xk={key:1,class:"default-textarea-block"},vk=["src","onClick"],kk={key:1},Bk={key:0,class:"text"},nh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",Tk=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},providerEditability:{type:Boolean,default:!0},patientEditability:{type:Boolean,default:!1}},setup(e){t.useCssVars(se=>({"72a29920":t.unref(r).fullWidth,ef134b80:t.unref(r).defaultStyle.marginTop,"698b579c":t.unref(r).alignItems,"7c83fa38":t.unref(r).text,"2848829c":t.unref(r).lineHeight,"1b3c36fa":t.unref(r).atBlockWidth,"493e5fba":t.unref(r).doubleLineHeight,"1636592b":t.unref(r).defaultStyle.paddingTop,"9eddfa1e":t.unref(r).defaultStyle.paddingLeft,e6c7f9d2:t.unref(r).DateAndTime.width,"1750a2f9":t.unref(r).signature.width,"8e167b58":t.unref(r).signature.height,"725799e4":t.unref(r).signature.label.top,"4a4ece64":t.unref(r).signature.label.height,"62bb153f":t.unref(r).signature.label.width,"13ae656e":t.unref(r).signature.label.left,f35db708:t.unref(r).defaultStyle.marginLeft,f356241c:t.unref(r).defaultStyle.marginTop2,"1c6c6cab":t.unref(r).tableMinWidth,f649c7d8:t.unref(r).diagnosis.titleFontSize,"4929a316":t.unref(r).diagnosis.buttonFontSize}));let r;const o=t.ref(di());o.value?r=t.reactive(sx):r=t.reactive(wp);const l=Cs().getCalendarPciker(),u=_s().getSignaturePad(),m=Ss().getImageEditor(),g=xs().getRecommendDiagnosis(),b=t.reactive({code:"",description:"",comment:"",searchResult:Array()}),x=new Set(["header1","header2","header3","header4","header5"]),_=new Set([...Array.from(x)]),w=new Set([...Array.from(x),"paragraph","divider"]),C=new Set(["table","table-row","table-cell"]),I=new Set(["atblock","sharpblock","image",...Array.from(C)]);[...Array.from(w),...Array.from(I)];const k=new Set(["DateOrDateOfService","SignersName","SignersSpecialty","SignersLicNumber","SignersNpiNumber","SignersDeaNumber","SignersEmail","FaxNumber","FacilityMainNumber","FacilityAddressInfo"]),T=se=>{se=se.replace(/#/,"");const ue=se.split(Av);return{required:ue[0].endsWith("*"),type:ue[0].replace("*","").replace("$",""),title:ue[1],placeholder:ue[2]}},L=se=>{const ue=se.split(Iv);ue.shift(),ue.pop();const Ee={};let be=ue.length;for(let Be=0;Be<be/2;Be++)Ee[ue[2*Be]]=ue[2*Be+1]==="checked";return Ee},K=e,D=t.reactive(K.formData),G=se=>Bv.test(se)?"textSharp":Tv.test(se)?"choiceSharp":se==="#Signature"||se==="#Provider Signature"?"providerSignature":se==="#Patient/Guardian Signature"?"patientSignature":"default",W=/[^\w ]/g,te=se=>{const ue=se.replace(W," ").split(/ /);let Ee="";return ue.forEach(be=>{be!==""&&(be=be.toLowerCase(),be=be.replace(be[0],be[0].toUpperCase()),Ee+=be)}),Ee},j=se=>{switch(se){case"Diagnosis":return"Diagnosis";default:return"default"}},z=(se,ue)=>{const Ee=D[se].valueList.filter(be=>be.key===ue);return(Ee==null?void 0:Ee[0])||null},Y=(se,ue)=>{var be;((be=z(se,ue))==null?void 0:be.value)===D[se].dataList[ue].value?D[se].valueList=D[se].valueList.filter(Be=>Be.key!==ue):D[se].valueList.push({key:ue,value:D[se].dataList[ue].value})},ne=se=>{l.open({formData:D,dataKey:se})},me=(se,ue,Ee,be=!1)=>{u.open({dataKey:se,formData:D,value:ue,type:Ee,isGuardian:be})},ce=se=>{ix.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:ue})=>{ue&&$n.set(D,se,ue)})},X=({isHeader:se,textAlign:ue})=>{let Ee=se?"#f5f2f0":"#ffffff",be=se?"600":"normal",Be=se?"center":"start",Pe=se?"center":"start";return Be=ue||Be,Pe=ue||Pe,`
51
+ `+c):a.stack=c}catch{}}throw a}}_request(r,o){typeof r=="string"?(o=o||{},o.url=r):o=r||{},o=jr(this.defaults,o);const{transitional:a,paramsSerializer:l,headers:c}=o;a!==void 0&&Ul.assertOptions(a,{silentJSONParsing:wr.transitional(wr.boolean),forcedJSONParsing:wr.transitional(wr.boolean),clarifyTimeoutError:wr.transitional(wr.boolean)},!1),l!=null&&(Z.isFunction(l)?o.paramsSerializer={serialize:l}:Ul.assertOptions(l,{encode:wr.function,serialize:wr.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"],w=>{delete c[w]}),o.headers=Ut.concat(u,c);const f=[];let m=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(o)===!1||(m=m&&C.synchronous,f.unshift(C.fulfilled,C.rejected))});const y=[];this.interceptors.response.forEach(function(C){y.push(C.fulfilled,C.rejected)});let g,b=0,x;if(!m){const w=[Zp.bind(this),void 0];for(w.unshift.apply(w,f),w.push.apply(w,y),x=w.length,g=Promise.resolve(o);b<x;)g=g.then(w[b++],w[b++]);return g}x=f.length;let _=o;for(b=0;b<x;){const w=f[b++],C=f[b++];try{_=w(_)}catch(I){C.call(this,I);break}}try{g=Zp.call(this,_)}catch(w){return Promise.reject(w)}for(b=0,x=y.length;b<x;)g=g.then(y[b++],y[b++]);return g}getUri(r){r=jr(this.defaults,r);const o=Hp(r.baseURL,r.url);return Lp(o,r.params,r.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(r){Kr.prototype[r]=function(o,a){return this.request(jr(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(jr(f||{},{method:r,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}Kr.prototype[r]=o(),Kr.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 xo(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 vv(e){return function(o){return e.apply(null,o)}}function kv(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 th(e){const r=new Kr(e),o=Ep(Kr.prototype.request,r);return Z.extend(o,Kr.prototype,r,{allOwnKeys:!0}),Z.extend(o,r,null,{allOwnKeys:!0}),o.create=function(l){return th(jr(e,l))},o}const Ct=th(ui);Ct.Axios=Kr,Ct.CanceledError=xo,Ct.CancelToken=Hl,Ct.isCancel=zp,Ct.VERSION=Qp,Ct.toFormData=ga,Ct.AxiosError=Ne,Ct.Cancel=Ct.CanceledError,Ct.all=function(r){return Promise.all(r)},Ct.spread=vv,Ct.isAxiosError=kv,Ct.mergeConfig=jr,Ct.AxiosHeaders=Ut,Ct.formToJSON=e=>Vp(Z.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=Jp.getAdapter,Ct.HttpStatusCode=Wl,Ct.default=Ct;const Bv=/#[\w*]+\|-\|((?!\|-\|).)+\|-\|((?!\|-\|).)+\|-\|/,Tv=/#[\w *\&]+\|-\|((?!\|-\|).)+\|-\|/,Av=/\|-\|/g,Iv=/\|-\|/;function di(){var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/android/i.test(e)||/iPad|iPhone|iPod/.test(e)&&!window.MSStream)}const Ca=e=>(t.pushScopeId("data-v-6bdb7acd"),e=e(),t.popScopeId(),e),Ov={class:"RecursiveComponent"},Nv={key:0},Rv={key:0,class:"basetype"},Dv={key:1},$v={key:0},Lv={class:"label textsharp-title"},Mv={key:0,style:{color:"red"}},Pv={key:1},Vv={class:"label choice-title"},Fv={key:0,style:{color:"red"}},zv={key:2,class:"vertical-checkbox-group"},Uv={key:3,class:"vertical-checkbox-group"},Hv={key:5,class:"dropdownbox-block"},Wv={class:"label dropdownbox-label"},jv=["onClick"],Kv={key:7,class:"date-block"},Gv={class:"label date-label"},qv={key:8,class:"time-box"},Yv={key:9,class:"time-block"},Xv={class:"label time-label"},Jv=["onClick"],Zv={class:"time-box"},Qv={key:11,class:"date-time-block"},ek={class:"label date-bolck-label"},tk=Ca(()=>t.createElementVNode("div",{class:"label date-time-blank-label"},"      ",-1)),nk={class:"label time-bolck-label"},rk={key:2},ok=["src"],ik={key:3},ak=["src"],sk={class:"signature-guardian"},lk=Ca(()=>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)),ck={key:4},uk={class:"diagnosis-title"},fk=Ca(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),dk={key:0,class:"diagnosis-editable"},pk={class:"diagnosis-searchbox"},hk={key:0,class:"diagnosis-suggestion"},mk=["onClick"],gk=Ca(()=>t.createElementVNode("br",null,null,-1)),yk={key:1,class:"diagnosis-list"},bk={class:"diagnosis-item"},wk={class:"diagnosis-item-code"},Ek={class:"diagnosis-item-comment"},Ck={key:0},_k={key:5},Sk={class:"label default-label"},xk={key:1,class:"default-textarea-block"},vk=["src","onClick"],kk={key:1},Bk={key:0,class:"text"},nh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",Tk=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},providerEditability:{type:Boolean,default:!0},patientEditability:{type:Boolean,default:!1}},setup(e){t.useCssVars(se=>({bd78b384:t.unref(r).fullWidth,ba9fe43c:t.unref(r).defaultStyle.marginTop,"70baead4":t.unref(r).alignItems,"5e94bb06":t.unref(r).text,dd475558:t.unref(r).lineHeight,"3a175aa5":t.unref(r).atBlockWidth,"7d6b3576":t.unref(r).doubleLineHeight,"433319c9":t.unref(r).defaultStyle.paddingTop,"232c5613":t.unref(r).defaultStyle.paddingLeft,"63e51235":t.unref(r).DateAndTime.width,"25a23cd2":t.unref(r).signature.width,c2435114:t.unref(r).signature.height,"1fd41aa8":t.unref(r).signature.label.top,"15db6720":t.unref(r).signature.label.height,"428b655d":t.unref(r).signature.label.width,"12a49990":t.unref(r).signature.label.left,"996435cc":t.unref(r).defaultStyle.marginLeft,"995ca2e0":t.unref(r).defaultStyle.marginTop2,"69348a6e":t.unref(r).tableMinWidth,"9c50469c":t.unref(r).diagnosis.titleFontSize,88761390:t.unref(r).diagnosis.buttonFontSize}));let r;const o=t.ref(di());o.value?r=t.reactive(sx):r=t.reactive(wp);const l=Cs().getCalendarPciker(),u=_s().getSignaturePad(),m=Ss().getImageEditor(),g=xs().getRecommendDiagnosis(),b=t.reactive({code:"",description:"",comment:"",searchResult:Array()}),x=new Set(["header1","header2","header3","header4","header5"]),_=new Set([...Array.from(x)]),w=new Set([...Array.from(x),"paragraph","divider"]),C=new Set(["table","table-row","table-cell"]),I=new Set(["atblock","sharpblock","image",...Array.from(C)]);[...Array.from(w),...Array.from(I)];const k=new Set(["DateOrDateOfService","SignersName","SignersSpecialty","SignersLicNumber","SignersNpiNumber","SignersDeaNumber","SignersEmail","FaxNumber","FacilityMainNumber","FacilityAddressInfo"]),T=se=>{se=se.replace(/#/,"");const ue=se.split(Av);return{required:ue[0].endsWith("*"),type:ue[0].replace("*","").replace("$",""),title:ue[1],placeholder:ue[2]}},L=se=>{const ue=se.split(Iv);ue.shift(),ue.pop();const Ee={};let be=ue.length;for(let Be=0;Be<be/2;Be++)Ee[ue[2*Be]]=ue[2*Be+1]==="checked";return Ee},K=e,D=t.reactive(K.formData),G=se=>Bv.test(se)?"textSharp":Tv.test(se)?"choiceSharp":se==="#Signature"||se==="#Provider Signature"?"providerSignature":se==="#Patient/Guardian Signature"?"patientSignature":"default",W=/[^\w ]/g,te=se=>{const ue=se.replace(W," ").split(/ /);let Ee="";return ue.forEach(be=>{be!==""&&(be=be.toLowerCase(),be=be.replace(be[0],be[0].toUpperCase()),Ee+=be)}),Ee},j=se=>{switch(se){case"Diagnosis":return"Diagnosis";default:return"default"}},z=(se,ue)=>{const Ee=D[se].valueList.filter(be=>be.key===ue);return(Ee==null?void 0:Ee[0])||null},Y=(se,ue)=>{var be;((be=z(se,ue))==null?void 0:be.value)===D[se].dataList[ue].value?D[se].valueList=D[se].valueList.filter(Be=>Be.key!==ue):D[se].valueList.push({key:ue,value:D[se].dataList[ue].value})},ne=se=>{l.open({formData:D,dataKey:se})},me=(se,ue,Ee,be=!1)=>{u.open({dataKey:se,formData:D,value:ue,type:Ee,isGuardian:be})},ce=se=>{ix.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:ue})=>{ue&&$n.set(D,se,ue)})},X=({isHeader:se,textAlign:ue})=>{let Ee=se?"#f5f2f0":"#ffffff",be=se?"600":"normal",Be=se?"center":"start",Pe=se?"center":"start";return Be=ue||Be,Pe=ue||Pe,`
52
52
  justify-content: ${Pe};
53
53
  background-color: ${Ee};
54
54
  text-align: ${Be};
@@ -68,7 +68,7 @@ function print() { __p += __j.call(arguments, '') }
68
68
  `)},t.toDisplayString(D[H.key][Re][Tt]),5))],6))),256))],6))),256))],6)):t.createCommentVNode("",!0),H.type==="image"?(t.openBlock(),t.createElementBlock("img",{key:5,class:t.normalizeClass(H.type),style:t.normalizeStyle(H.style?`
69
69
  width: ${H.style.width};
70
70
  height: ${H.style.height};
71
- `:""),src:e.otherData[H.alt]?e.otherData[H.alt]:H.src,onClick:he=>N(H.alt,e.otherData[H.alt]?e.otherData[H.alt]:H.src,H.href==="markable"||H.href==="markeable")},null,14,vk)):t.createCommentVNode("",!0),H.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(H.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in H?(t.openBlock(),t.createElementBlock("div",kk,[H.text?(t.openBlock(),t.createElementBlock("div",Bk,t.toDisplayString(H.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),pi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},jl=pi(Tk,[["__scopeId","data-v-52329d2b"]]),rh="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",Ak={class:"calendar_box"},Ik={class:"date"},Ok={class:"calendar_chioce"},Nk=pi(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(I=>({"0ea9945d":C.width,a68c0520:C.height,"3bf3e1ac":C.top,"42848a90":C.left}));const r=t.ref(di()),o=t.ref(null),a=t.ref(),c=Cs().getCalendarPciker(),u=I=>{a.value&&a.value.selectDate(I)},f=t.reactive({status:!1,value:new Date}),m=I=>I.startsWith("0")?parseInt(I).toString():I,y=()=>{c.close()},g=I=>{I.target===o.value&&c.close()},b=I=>{const k=I.getMonth()+1,T=I.getDate(),L=I.getFullYear(),K=k>10?`${k}`:`0${k}`,D=T>10?`${T}`:`0${T}`;return`${K}/${D}/${L}`},x=I=>{if(/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/[0-9]{4}/.test(I)){const k=I.split("/"),T=parseInt(k[0])-1,L=parseInt(k[1]),K=parseInt(k[2]);return new Date(K,T,L)}else throw Error("The string format error!")},_=()=>{$n.set(c.options.formData,c.options.dataKey,b(f.value)),y()},w=()=>{y()},C=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(()=>{if(a.value){const T=$n.get(c.options.formData,c.options.dataKey);if(T){const L=x(T);f.value=L}}const k=Ar().getDocumentTemplate();r.value?(C.top="0",C.left="0",C.width="100vw",C.height="100vh"):k.relatedDom?(C.top=`${k.relatedDom.offsetTop}px`,C.left=`${k.relatedDom.offsetLeft}px`,C.width=`${k.relatedDom.clientWidth}px`,C.height=`${k.relatedDom.clientHeight}px`):(C.top="0",C.left="0",C.width="100vw",C.height="100vh")}),(I,k)=>{const T=gr,L=Kd,K=I_;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:g},[t.createElementVNode("div",Ak,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:rh,onClick:y})]),t.createVNode(K,{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(L,null,{default:t.withCtx(()=>[t.createVNode(T,{size:"small",onClick:k[0]||(k[0]=G=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(T,{size:"small",onClick:k[1]||(k[1]=G=>u("prev-month"))},{default:t.withCtx(()=>[t.createTextVNode(" < ")]),_:1})]),_:1}),t.createElementVNode("span",null,t.toDisplayString(D),1),t.createVNode(L,null,{default:t.withCtx(()=>[t.createVNode(T,{size:"small",onClick:k[2]||(k[2]=G=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(T,{size:"small",onClick:k[3]||(k[3]=G=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(T,{size:"small",onClick:k[4]||(k[4]=G=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",Ik,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",Ok,[t.createVNode(T,{class:"calendar_chioce_button calendar_cancel",onClick:w},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(T,{class:"calendar_chioce_button calendar_confirm",onClick:_},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-f50a4082"]]);var _a={exports:{}};/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */_a.exports,function(e,r){(function(o){var a=r,l=e&&e.exports==a&&e,c=typeof Dn=="object"&&Dn;(c.global===c||c.window===c)&&(o=c);var u=function(w){this.message=w};u.prototype=new Error,u.prototype.name="InvalidCharacterError";var f=function(w){throw new u(w)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=/[\t\n\f\r ]/g,g=function(w){w=String(w).replace(y,"");var C=w.length;C%4==0&&(w=w.replace(/==?$/,""),C=w.length),(C%4==1||/[^+a-zA-Z0-9/]/.test(w))&&f("Invalid character: the string to be decoded is not correctly encoded.");for(var I=0,k,T,L="",K=-1;++K<C;)T=m.indexOf(w.charAt(K)),k=I%4?k*64+T:T,I++%4&&(L+=String.fromCharCode(255&k>>(-2*I&6)));return L},b=function(w){w=String(w),/[^\0-\xFF]/.test(w)&&f("The string to be encoded contains characters outside of the Latin1 range.");for(var C=w.length%3,I="",k=-1,T,L,K,D,G=w.length-C;++k<G;)T=w.charCodeAt(k)<<16,L=w.charCodeAt(++k)<<8,K=w.charCodeAt(++k),D=T+L+K,I+=m.charAt(D>>18&63)+m.charAt(D>>12&63)+m.charAt(D>>6&63)+m.charAt(D&63);return C==2?(T=w.charCodeAt(k)<<8,L=w.charCodeAt(++k),D=T+L,I+=m.charAt(D>>10)+m.charAt(D>>4&63)+m.charAt(D<<2&63)+"="):C==1&&(D=w.charCodeAt(k),I+=m.charAt(D>>2)+m.charAt(D<<4&63)+"=="),I},x={encode:b,decode:g,version:"1.0.0"};if(a&&!a.nodeType)if(l)l.exports=x;else for(var _ in x)x.hasOwnProperty(_)&&(a[_]=x[_]);else o.base64=x})(Dn)}(_a,_a.exports),_a.exports;var oh={},Sa={};Sa.byteLength=$k,Sa.toByteArray=Mk,Sa.fromByteArray=Fk;for(var Ln=[],sn=[],Rk=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vo=0,Dk=Kl.length;vo<Dk;++vo)Ln[vo]=Kl[vo],sn[Kl.charCodeAt(vo)]=vo;sn[45]=62,sn[95]=63;function ih(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 $k(e){var r=ih(e),o=r[0],a=r[1];return(o+a)*3/4-a}function Lk(e,r,o){return(r+o)*3/4-o}function Mk(e){var r,o=ih(e),a=o[0],l=o[1],c=new Rk(Lk(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=sn[e.charCodeAt(m)]<<18|sn[e.charCodeAt(m+1)]<<12|sn[e.charCodeAt(m+2)]<<6|sn[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=sn[e.charCodeAt(m)]<<2|sn[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=sn[e.charCodeAt(m)]<<10|sn[e.charCodeAt(m+1)]<<4|sn[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function Pk(e){return Ln[e>>18&63]+Ln[e>>12&63]+Ln[e>>6&63]+Ln[e&63]}function Vk(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(Pk(a));return l.join("")}function Fk(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(Vk(e,u,u+c>f?f:u+c));return a===1?(r=e[o-1],l.push(Ln[r>>2]+Ln[r<<4&63]+"==")):a===2&&(r=(e[o-2]<<8)+e[o-1],l.push(Ln[r>>10]+Ln[r>>4&63]+Ln[r<<2&63]+"=")),l.join("")}var Gl={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Gl.read=function(e,r,o,a,l){var c,u,f=l*8-a-1,m=(1<<f)-1,y=m>>1,g=-7,b=o?l-1:0,x=o?-1:1,_=e[r+b];for(b+=x,c=_&(1<<-g)-1,_>>=-g,g+=f;g>0;c=c*256+e[r+b],b+=x,g-=8);for(u=c&(1<<-g)-1,c>>=-g,g+=a;g>0;u=u*256+e[r+b],b+=x,g-=8);if(c===0)c=1-y;else{if(c===m)return u?NaN:(_?-1:1)*(1/0);u=u+Math.pow(2,a),c=c-y}return(_?-1:1)*u*Math.pow(2,c-a)},Gl.write=function(e,r,o,a,l,c){var u,f,m,y=c*8-l-1,g=(1<<y)-1,b=g>>1,x=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=a?0:c-1,w=a?1:-1,C=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=g):(u=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+b>=1?r+=x/m:r+=x*Math.pow(2,1-b),r*m>=2&&(u++,m/=2),u+b>=g?(f=0,u=g):u+b>=1?(f=(r*m-1)*Math.pow(2,l),u=u+b):(f=r*Math.pow(2,b-1)*Math.pow(2,l),u=0));l>=8;e[o+_]=f&255,_+=w,f/=256,l-=8);for(u=u<<l|f,y+=l;y>0;e[o+_]=u&255,_+=w,u/=256,y-=8);e[o+_-w]|=C*128};/*!
71
+ `:""),src:e.otherData[H.alt]?e.otherData[H.alt]:H.src,onClick:he=>N(H.alt,e.otherData[H.alt]?e.otherData[H.alt]:H.src,H.href==="markable"||H.href==="markeable")},null,14,vk)):t.createCommentVNode("",!0),H.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(H.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in H?(t.openBlock(),t.createElementBlock("div",kk,[H.text?(t.openBlock(),t.createElementBlock("div",Bk,t.toDisplayString(H.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),pi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},jl=pi(Tk,[["__scopeId","data-v-6bdb7acd"]]),rh="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",Ak={class:"calendar_box"},Ik={class:"date"},Ok={class:"calendar_chioce"},Nk=pi(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(I=>({"0ea9945d":C.width,a68c0520:C.height,"3bf3e1ac":C.top,"42848a90":C.left}));const r=t.ref(di()),o=t.ref(null),a=t.ref(),c=Cs().getCalendarPciker(),u=I=>{a.value&&a.value.selectDate(I)},f=t.reactive({status:!1,value:new Date}),m=I=>I.startsWith("0")?parseInt(I).toString():I,y=()=>{c.close()},g=I=>{I.target===o.value&&c.close()},b=I=>{const k=I.getMonth()+1,T=I.getDate(),L=I.getFullYear(),K=k>10?`${k}`:`0${k}`,D=T>10?`${T}`:`0${T}`;return`${K}/${D}/${L}`},x=I=>{if(/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/[0-9]{4}/.test(I)){const k=I.split("/"),T=parseInt(k[0])-1,L=parseInt(k[1]),K=parseInt(k[2]);return new Date(K,T,L)}else throw Error("The string format error!")},_=()=>{$n.set(c.options.formData,c.options.dataKey,b(f.value)),y()},w=()=>{y()},C=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(()=>{if(a.value){const T=$n.get(c.options.formData,c.options.dataKey);if(T){const L=x(T);f.value=L}}const k=Ar().getDocumentTemplate();r.value?(C.top="0",C.left="0",C.width="100vw",C.height="100vh"):k.relatedDom?(C.top=`${k.relatedDom.offsetTop}px`,C.left=`${k.relatedDom.offsetLeft}px`,C.width=`${k.relatedDom.clientWidth}px`,C.height=`${k.relatedDom.clientHeight}px`):(C.top="0",C.left="0",C.width="100vw",C.height="100vh")}),(I,k)=>{const T=gr,L=Kd,K=I_;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:g},[t.createElementVNode("div",Ak,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:rh,onClick:y})]),t.createVNode(K,{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(L,null,{default:t.withCtx(()=>[t.createVNode(T,{size:"small",onClick:k[0]||(k[0]=G=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(T,{size:"small",onClick:k[1]||(k[1]=G=>u("prev-month"))},{default:t.withCtx(()=>[t.createTextVNode(" < ")]),_:1})]),_:1}),t.createElementVNode("span",null,t.toDisplayString(D),1),t.createVNode(L,null,{default:t.withCtx(()=>[t.createVNode(T,{size:"small",onClick:k[2]||(k[2]=G=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(T,{size:"small",onClick:k[3]||(k[3]=G=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(T,{size:"small",onClick:k[4]||(k[4]=G=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",Ik,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",Ok,[t.createVNode(T,{class:"calendar_chioce_button calendar_cancel",onClick:w},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(T,{class:"calendar_chioce_button calendar_confirm",onClick:_},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-f50a4082"]]);var _a={exports:{}};/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */_a.exports,function(e,r){(function(o){var a=r,l=e&&e.exports==a&&e,c=typeof Dn=="object"&&Dn;(c.global===c||c.window===c)&&(o=c);var u=function(w){this.message=w};u.prototype=new Error,u.prototype.name="InvalidCharacterError";var f=function(w){throw new u(w)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=/[\t\n\f\r ]/g,g=function(w){w=String(w).replace(y,"");var C=w.length;C%4==0&&(w=w.replace(/==?$/,""),C=w.length),(C%4==1||/[^+a-zA-Z0-9/]/.test(w))&&f("Invalid character: the string to be decoded is not correctly encoded.");for(var I=0,k,T,L="",K=-1;++K<C;)T=m.indexOf(w.charAt(K)),k=I%4?k*64+T:T,I++%4&&(L+=String.fromCharCode(255&k>>(-2*I&6)));return L},b=function(w){w=String(w),/[^\0-\xFF]/.test(w)&&f("The string to be encoded contains characters outside of the Latin1 range.");for(var C=w.length%3,I="",k=-1,T,L,K,D,G=w.length-C;++k<G;)T=w.charCodeAt(k)<<16,L=w.charCodeAt(++k)<<8,K=w.charCodeAt(++k),D=T+L+K,I+=m.charAt(D>>18&63)+m.charAt(D>>12&63)+m.charAt(D>>6&63)+m.charAt(D&63);return C==2?(T=w.charCodeAt(k)<<8,L=w.charCodeAt(++k),D=T+L,I+=m.charAt(D>>10)+m.charAt(D>>4&63)+m.charAt(D<<2&63)+"="):C==1&&(D=w.charCodeAt(k),I+=m.charAt(D>>2)+m.charAt(D<<4&63)+"=="),I},x={encode:b,decode:g,version:"1.0.0"};if(a&&!a.nodeType)if(l)l.exports=x;else for(var _ in x)x.hasOwnProperty(_)&&(a[_]=x[_]);else o.base64=x})(Dn)}(_a,_a.exports),_a.exports;var oh={},Sa={};Sa.byteLength=$k,Sa.toByteArray=Mk,Sa.fromByteArray=Fk;for(var Ln=[],sn=[],Rk=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vo=0,Dk=Kl.length;vo<Dk;++vo)Ln[vo]=Kl[vo],sn[Kl.charCodeAt(vo)]=vo;sn[45]=62,sn[95]=63;function ih(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 $k(e){var r=ih(e),o=r[0],a=r[1];return(o+a)*3/4-a}function Lk(e,r,o){return(r+o)*3/4-o}function Mk(e){var r,o=ih(e),a=o[0],l=o[1],c=new Rk(Lk(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=sn[e.charCodeAt(m)]<<18|sn[e.charCodeAt(m+1)]<<12|sn[e.charCodeAt(m+2)]<<6|sn[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=sn[e.charCodeAt(m)]<<2|sn[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=sn[e.charCodeAt(m)]<<10|sn[e.charCodeAt(m+1)]<<4|sn[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function Pk(e){return Ln[e>>18&63]+Ln[e>>12&63]+Ln[e>>6&63]+Ln[e&63]}function Vk(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(Pk(a));return l.join("")}function Fk(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(Vk(e,u,u+c>f?f:u+c));return a===1?(r=e[o-1],l.push(Ln[r>>2]+Ln[r<<4&63]+"==")):a===2&&(r=(e[o-2]<<8)+e[o-1],l.push(Ln[r>>10]+Ln[r>>4&63]+Ln[r<<2&63]+"=")),l.join("")}var Gl={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Gl.read=function(e,r,o,a,l){var c,u,f=l*8-a-1,m=(1<<f)-1,y=m>>1,g=-7,b=o?l-1:0,x=o?-1:1,_=e[r+b];for(b+=x,c=_&(1<<-g)-1,_>>=-g,g+=f;g>0;c=c*256+e[r+b],b+=x,g-=8);for(u=c&(1<<-g)-1,c>>=-g,g+=a;g>0;u=u*256+e[r+b],b+=x,g-=8);if(c===0)c=1-y;else{if(c===m)return u?NaN:(_?-1:1)*(1/0);u=u+Math.pow(2,a),c=c-y}return(_?-1:1)*u*Math.pow(2,c-a)},Gl.write=function(e,r,o,a,l,c){var u,f,m,y=c*8-l-1,g=(1<<y)-1,b=g>>1,x=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=a?0:c-1,w=a?1:-1,C=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=g):(u=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+b>=1?r+=x/m:r+=x*Math.pow(2,1-b),r*m>=2&&(u++,m/=2),u+b>=g?(f=0,u=g):u+b>=1?(f=(r*m-1)*Math.pow(2,l),u=u+b):(f=r*Math.pow(2,b-1)*Math.pow(2,l),u=0));l>=8;e[o+_]=f&255,_+=w,f/=256,l-=8);for(u=u<<l|f,y+=l;y>0;e[o+_]=u&255,_+=w,u/=256,y-=8);e[o+_-w]|=C*128};/*!
72
72
  * The buffer module from node.js, for the browser.
73
73
  *
74
74
  * @author Feross Aboukhadijeh <https://feross.org>