@pdfme/ui 3.4.2-dev.1 → 3.4.3-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -9237,7 +9237,7 @@ ieee754.write = function(a, s, $, _, _e, tt) {
9237
9237
  throw new Error("BigInt not supported");
9238
9238
  }
9239
9239
  })(buffer$1);
9240
- const langs = ["en", "ja", "ar", "th", "pl", "it", "de"], Lang = z.enum(langs);
9240
+ const langs = ["en", "ja", "ar", "th", "pl", "it", "de", "es"], Lang = z.enum(langs);
9241
9241
  z.object({
9242
9242
  // -----------------used in ui-----------------
9243
9243
  cancel: z.string(),
@@ -131967,6 +131967,54 @@ const _Upload = Upload, dictEn = {
131967
131967
  "schemas.text.dynamicFontSize": "Dynamische Schriftgröße",
131968
131968
  "schemas.barcodes.barColor": "Strichcodefarbe",
131969
131969
  "schemas.barcodes.includetext": "Text anzeigen"
131970
+ }, dictEs = {
131971
+ cancel: "Cancelar",
131972
+ field: "campo",
131973
+ fieldName: "Nombre",
131974
+ align: "Alinear",
131975
+ width: "Anchura",
131976
+ height: "Altura",
131977
+ opacity: "Opacidad",
131978
+ rotate: "Rotar",
131979
+ edit: "Editar",
131980
+ plsInputName: "Introduce el nombre",
131981
+ fieldMustUniq: "El nombre del campo no es único",
131982
+ notUniq: "(Nombre no único)",
131983
+ noKeyName: "Sin nombre",
131984
+ fieldsList: "Lista de campos",
131985
+ addNewField: "Añadir un nuevo campo",
131986
+ editField: "Editar campo",
131987
+ type: "Tipo",
131988
+ errorOccurred: "Ocurrió un error",
131989
+ errorBulkUpdateFieldName: "No se puede confirmar el cambio porque el número de elementos ha cambiado.",
131990
+ commitBulkUpdateFieldName: "Confirmar cambios",
131991
+ bulkUpdateFieldName: "Actualizar en bloque el nombre de los campos",
131992
+ hexColorPrompt: "Introduce un código de color hexadecimal válido.",
131993
+ "schemas.color": "Color",
131994
+ "schemas.borderWidth": "Ancho del borde",
131995
+ "schemas.borderColor": "Color del borde",
131996
+ "schemas.textColor": "Color del texto",
131997
+ "schemas.bgColor": "Color del fondo",
131998
+ "schemas.horizontal": "Horizontal",
131999
+ "schemas.vertical": "Vertical",
132000
+ "schemas.left": "Izquierda",
132001
+ "schemas.center": "Centro",
132002
+ "schemas.right": "Derecha",
132003
+ "schemas.top": "Arriba",
132004
+ "schemas.middle": "Medio",
132005
+ "schemas.bottom": "Abajo",
132006
+ "schemas.text.fontName": "Nombre de la fuente",
132007
+ "schemas.text.size": "Tamaño",
132008
+ "schemas.text.spacing": "Espaciado",
132009
+ "schemas.text.textAlign": "Alineación del texto",
132010
+ "schemas.text.verticalAlign": "Alineación vertical",
132011
+ "schemas.text.lineHeight": "Altura de línea",
132012
+ "schemas.text.min": "Mín",
132013
+ "schemas.text.max": "Máx",
132014
+ "schemas.text.fit": "Ajustar",
132015
+ "schemas.text.dynamicFontSize": "Tamaño de fuente dinámico",
132016
+ "schemas.barcodes.barColor": "Color de la barra",
132017
+ "schemas.barcodes.includetext": "Incluir texto"
131970
132018
  }, dictionaries = {
131971
132019
  en: dictEn,
131972
132020
  ja: dictJa,
@@ -131974,7 +132022,8 @@ const _Upload = Upload, dictEn = {
131974
132022
  th: dictTh,
131975
132023
  it: dictIt,
131976
132024
  pl: dictPl,
131977
- de: dictDe
132025
+ de: dictDe,
132026
+ es: dictEs
131978
132027
  }, getDict = (a) => dictionaries[a] || dictionaries[DEFAULT_LANG], i18n = (a, s) => (s || getDict(DEFAULT_LANG))[a], I18nContext = reactExports.createContext(i18n), FontContext = reactExports.createContext(getDefaultFont()), PluginsRegistry = reactExports.createContext(builtInPlugins), OptionsContext = reactExports.createContext({});
131979
132028
  var ArrowLeftOutlined$2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "arrow-left", theme: "outlined" };
131980
132029
  const ArrowLeftOutlinedSvg = ArrowLeftOutlined$2;
package/dist/index.umd.js CHANGED
@@ -39,7 +39,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
39
39
  *
40
40
  * @author Feross Aboukhadijeh <https://feross.org>
41
41
  * @license MIT
42
- */(function(a){const s=base64Js,$=ieee754,_=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=at,a.SlowBuffer=gt,a.INSPECT_MAX_BYTES=50;const _e=2147483647;a.kMaxLength=_e,at.TYPED_ARRAY_SUPPORT=tt(),!at.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 tt(){try{const Xt=new Uint8Array(1),Gt={foo:function(){return 42}};return Object.setPrototypeOf(Gt,Uint8Array.prototype),Object.setPrototypeOf(Xt,Gt),Xt.foo()===42}catch{return!1}}Object.defineProperty(at.prototype,"parent",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.buffer}}),Object.defineProperty(at.prototype,"offset",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.byteOffset}});function nt(Xt){if(Xt>_e)throw new RangeError('The value "'+Xt+'" is invalid for option "size"');const Gt=new Uint8Array(Xt);return Object.setPrototypeOf(Gt,at.prototype),Gt}function at(Xt,Gt,Wt){if(typeof Xt=="number"){if(typeof Gt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return lt(Xt)}return ot(Xt,Gt,Wt)}at.poolSize=8192;function ot(Xt,Gt,Wt){if(typeof Xt=="string")return et(Xt,Gt);if(ArrayBuffer.isView(Xt))return ut(Xt);if(Xt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Xt);if(tr(Xt,ArrayBuffer)||Xt&&tr(Xt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(tr(Xt,SharedArrayBuffer)||Xt&&tr(Xt.buffer,SharedArrayBuffer)))return ft(Xt,Gt,Wt);if(typeof Xt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const er=Xt.valueOf&&Xt.valueOf();if(er!=null&&er!==Xt)return at.from(er,Gt,Wt);const lr=ht(Xt);if(lr)return lr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Xt[Symbol.toPrimitive]=="function")return at.from(Xt[Symbol.toPrimitive]("string"),Gt,Wt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Xt)}at.from=function(Xt,Gt,Wt){return ot(Xt,Gt,Wt)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function rt(Xt){if(typeof Xt!="number")throw new TypeError('"size" argument must be of type number');if(Xt<0)throw new RangeError('The value "'+Xt+'" is invalid for option "size"')}function st(Xt,Gt,Wt){return rt(Xt),Xt<=0?nt(Xt):Gt!==void 0?typeof Wt=="string"?nt(Xt).fill(Gt,Wt):nt(Xt).fill(Gt):nt(Xt)}at.alloc=function(Xt,Gt,Wt){return st(Xt,Gt,Wt)};function lt(Xt){return rt(Xt),nt(Xt<0?0:dt(Xt)|0)}at.allocUnsafe=function(Xt){return lt(Xt)},at.allocUnsafeSlow=function(Xt){return lt(Xt)};function et(Xt,Gt){if((typeof Gt!="string"||Gt==="")&&(Gt="utf8"),!at.isEncoding(Gt))throw new TypeError("Unknown encoding: "+Gt);const Wt=pt(Xt,Gt)|0;let er=nt(Wt);const lr=er.write(Xt,Gt);return lr!==Wt&&(er=er.slice(0,lr)),er}function it(Xt){const Gt=Xt.length<0?0:dt(Xt.length)|0,Wt=nt(Gt);for(let er=0;er<Gt;er+=1)Wt[er]=Xt[er]&255;return Wt}function ut(Xt){if(tr(Xt,Uint8Array)){const Gt=new Uint8Array(Xt);return ft(Gt.buffer,Gt.byteOffset,Gt.byteLength)}return it(Xt)}function ft(Xt,Gt,Wt){if(Gt<0||Xt.byteLength<Gt)throw new RangeError('"offset" is outside of buffer bounds');if(Xt.byteLength<Gt+(Wt||0))throw new RangeError('"length" is outside of buffer bounds');let er;return Gt===void 0&&Wt===void 0?er=new Uint8Array(Xt):Wt===void 0?er=new Uint8Array(Xt,Gt):er=new Uint8Array(Xt,Gt,Wt),Object.setPrototypeOf(er,at.prototype),er}function ht(Xt){if(at.isBuffer(Xt)){const Gt=dt(Xt.length)|0,Wt=nt(Gt);return Wt.length===0||Xt.copy(Wt,0,0,Gt),Wt}if(Xt.length!==void 0)return typeof Xt.length!="number"||ar(Xt.length)?nt(0):it(Xt);if(Xt.type==="Buffer"&&Array.isArray(Xt.data))return it(Xt.data)}function dt(Xt){if(Xt>=_e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e.toString(16)+" bytes");return Xt|0}function gt(Xt){return+Xt!=Xt&&(Xt=0),at.alloc(+Xt)}at.isBuffer=function(Gt){return Gt!=null&&Gt._isBuffer===!0&&Gt!==at.prototype},at.compare=function(Gt,Wt){if(tr(Gt,Uint8Array)&&(Gt=at.from(Gt,Gt.offset,Gt.byteLength)),tr(Wt,Uint8Array)&&(Wt=at.from(Wt,Wt.offset,Wt.byteLength)),!at.isBuffer(Gt)||!at.isBuffer(Wt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Gt===Wt)return 0;let er=Gt.length,lr=Wt.length;for(let ur=0,pr=Math.min(er,lr);ur<pr;++ur)if(Gt[ur]!==Wt[ur]){er=Gt[ur],lr=Wt[ur];break}return er<lr?-1:lr<er?1:0},at.isEncoding=function(Gt){switch(String(Gt).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}},at.concat=function(Gt,Wt){if(!Array.isArray(Gt))throw new TypeError('"list" argument must be an Array of Buffers');if(Gt.length===0)return at.alloc(0);let er;if(Wt===void 0)for(Wt=0,er=0;er<Gt.length;++er)Wt+=Gt[er].length;const lr=at.allocUnsafe(Wt);let ur=0;for(er=0;er<Gt.length;++er){let pr=Gt[er];if(tr(pr,Uint8Array))ur+pr.length>lr.length?(at.isBuffer(pr)||(pr=at.from(pr)),pr.copy(lr,ur)):Uint8Array.prototype.set.call(lr,pr,ur);else if(at.isBuffer(pr))pr.copy(lr,ur);else throw new TypeError('"list" argument must be an Array of Buffers');ur+=pr.length}return lr};function pt(Xt,Gt){if(at.isBuffer(Xt))return Xt.length;if(ArrayBuffer.isView(Xt)||tr(Xt,ArrayBuffer))return Xt.byteLength;if(typeof Xt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Xt);const Wt=Xt.length,er=arguments.length>2&&arguments[2]===!0;if(!er&&Wt===0)return 0;let lr=!1;for(;;)switch(Gt){case"ascii":case"latin1":case"binary":return Wt;case"utf8":case"utf-8":return Jt(Xt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt*2;case"hex":return Wt>>>1;case"base64":return Kt(Xt).length;default:if(lr)return er?-1:Jt(Xt).length;Gt=(""+Gt).toLowerCase(),lr=!0}}at.byteLength=pt;function mt(Xt,Gt,Wt){let er=!1;if((Gt===void 0||Gt<0)&&(Gt=0),Gt>this.length||((Wt===void 0||Wt>this.length)&&(Wt=this.length),Wt<=0)||(Wt>>>=0,Gt>>>=0,Wt<=Gt))return"";for(Xt||(Xt="utf8");;)switch(Xt){case"hex":return Pt(this,Gt,Wt);case"utf8":case"utf-8":return Tt(this,Gt,Wt);case"ascii":return $t(this,Gt,Wt);case"latin1":case"binary":return yt(this,Gt,Wt);case"base64":return Ot(this,Gt,Wt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,Gt,Wt);default:if(er)throw new TypeError("Unknown encoding: "+Xt);Xt=(Xt+"").toLowerCase(),er=!0}}at.prototype._isBuffer=!0;function ct(Xt,Gt,Wt){const er=Xt[Gt];Xt[Gt]=Xt[Wt],Xt[Wt]=er}at.prototype.swap16=function(){const Gt=this.length;if(Gt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Wt=0;Wt<Gt;Wt+=2)ct(this,Wt,Wt+1);return this},at.prototype.swap32=function(){const Gt=this.length;if(Gt%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Wt=0;Wt<Gt;Wt+=4)ct(this,Wt,Wt+3),ct(this,Wt+1,Wt+2);return this},at.prototype.swap64=function(){const Gt=this.length;if(Gt%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Wt=0;Wt<Gt;Wt+=8)ct(this,Wt,Wt+7),ct(this,Wt+1,Wt+6),ct(this,Wt+2,Wt+5),ct(this,Wt+3,Wt+4);return this},at.prototype.toString=function(){const Gt=this.length;return Gt===0?"":arguments.length===0?Tt(this,0,Gt):mt.apply(this,arguments)},at.prototype.toLocaleString=at.prototype.toString,at.prototype.equals=function(Gt){if(!at.isBuffer(Gt))throw new TypeError("Argument must be a Buffer");return this===Gt?!0:at.compare(this,Gt)===0},at.prototype.inspect=function(){let Gt="";const Wt=a.INSPECT_MAX_BYTES;return Gt=this.toString("hex",0,Wt).replace(/(.{2})/g,"$1 ").trim(),this.length>Wt&&(Gt+=" ... "),"<Buffer "+Gt+">"},_&&(at.prototype[_]=at.prototype.inspect),at.prototype.compare=function(Gt,Wt,er,lr,ur){if(tr(Gt,Uint8Array)&&(Gt=at.from(Gt,Gt.offset,Gt.byteLength)),!at.isBuffer(Gt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Gt);if(Wt===void 0&&(Wt=0),er===void 0&&(er=Gt?Gt.length:0),lr===void 0&&(lr=0),ur===void 0&&(ur=this.length),Wt<0||er>Gt.length||lr<0||ur>this.length)throw new RangeError("out of range index");if(lr>=ur&&Wt>=er)return 0;if(lr>=ur)return-1;if(Wt>=er)return 1;if(Wt>>>=0,er>>>=0,lr>>>=0,ur>>>=0,this===Gt)return 0;let pr=ur-lr,yr=er-Wt;const Er=Math.min(pr,yr),br=this.slice(lr,ur),gr=Gt.slice(Wt,er);for(let Ar=0;Ar<Er;++Ar)if(br[Ar]!==gr[Ar]){pr=br[Ar],yr=gr[Ar];break}return pr<yr?-1:yr<pr?1:0};function vt(Xt,Gt,Wt,er,lr){if(Xt.length===0)return-1;if(typeof Wt=="string"?(er=Wt,Wt=0):Wt>2147483647?Wt=2147483647:Wt<-2147483648&&(Wt=-2147483648),Wt=+Wt,ar(Wt)&&(Wt=lr?0:Xt.length-1),Wt<0&&(Wt=Xt.length+Wt),Wt>=Xt.length){if(lr)return-1;Wt=Xt.length-1}else if(Wt<0)if(lr)Wt=0;else return-1;if(typeof Gt=="string"&&(Gt=at.from(Gt,er)),at.isBuffer(Gt))return Gt.length===0?-1:At(Xt,Gt,Wt,er,lr);if(typeof Gt=="number")return Gt=Gt&255,typeof Uint8Array.prototype.indexOf=="function"?lr?Uint8Array.prototype.indexOf.call(Xt,Gt,Wt):Uint8Array.prototype.lastIndexOf.call(Xt,Gt,Wt):At(Xt,[Gt],Wt,er,lr);throw new TypeError("val must be string, number or Buffer")}function At(Xt,Gt,Wt,er,lr){let ur=1,pr=Xt.length,yr=Gt.length;if(er!==void 0&&(er=String(er).toLowerCase(),er==="ucs2"||er==="ucs-2"||er==="utf16le"||er==="utf-16le")){if(Xt.length<2||Gt.length<2)return-1;ur=2,pr/=2,yr/=2,Wt/=2}function Er(gr,Ar){return ur===1?gr[Ar]:gr.readUInt16BE(Ar*ur)}let br;if(lr){let gr=-1;for(br=Wt;br<pr;br++)if(Er(Xt,br)===Er(Gt,gr===-1?0:br-gr)){if(gr===-1&&(gr=br),br-gr+1===yr)return gr*ur}else gr!==-1&&(br-=br-gr),gr=-1}else for(Wt+yr>pr&&(Wt=pr-yr),br=Wt;br>=0;br--){let gr=!0;for(let Ar=0;Ar<yr;Ar++)if(Er(Xt,br+Ar)!==Er(Gt,Ar)){gr=!1;break}if(gr)return br}return-1}at.prototype.includes=function(Gt,Wt,er){return this.indexOf(Gt,Wt,er)!==-1},at.prototype.indexOf=function(Gt,Wt,er){return vt(this,Gt,Wt,er,!0)},at.prototype.lastIndexOf=function(Gt,Wt,er){return vt(this,Gt,Wt,er,!1)};function xt(Xt,Gt,Wt,er){Wt=Number(Wt)||0;const lr=Xt.length-Wt;er?(er=Number(er),er>lr&&(er=lr)):er=lr;const ur=Gt.length;er>ur/2&&(er=ur/2);let pr;for(pr=0;pr<er;++pr){const yr=parseInt(Gt.substr(pr*2,2),16);if(ar(yr))return pr;Xt[Wt+pr]=yr}return pr}function bt(Xt,Gt,Wt,er){return nr(Jt(Gt,Xt.length-Wt),Xt,Wt,er)}function Et(Xt,Gt,Wt,er){return nr(rr(Gt),Xt,Wt,er)}function St(Xt,Gt,Wt,er){return nr(Kt(Gt),Xt,Wt,er)}function Dt(Xt,Gt,Wt,er){return nr(Yt(Gt,Xt.length-Wt),Xt,Wt,er)}at.prototype.write=function(Gt,Wt,er,lr){if(Wt===void 0)lr="utf8",er=this.length,Wt=0;else if(er===void 0&&typeof Wt=="string")lr=Wt,er=this.length,Wt=0;else if(isFinite(Wt))Wt=Wt>>>0,isFinite(er)?(er=er>>>0,lr===void 0&&(lr="utf8")):(lr=er,er=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ur=this.length-Wt;if((er===void 0||er>ur)&&(er=ur),Gt.length>0&&(er<0||Wt<0)||Wt>this.length)throw new RangeError("Attempt to write outside buffer bounds");lr||(lr="utf8");let pr=!1;for(;;)switch(lr){case"hex":return xt(this,Gt,Wt,er);case"utf8":case"utf-8":return bt(this,Gt,Wt,er);case"ascii":case"latin1":case"binary":return Et(this,Gt,Wt,er);case"base64":return St(this,Gt,Wt,er);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dt(this,Gt,Wt,er);default:if(pr)throw new TypeError("Unknown encoding: "+lr);lr=(""+lr).toLowerCase(),pr=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ot(Xt,Gt,Wt){return Gt===0&&Wt===Xt.length?s.fromByteArray(Xt):s.fromByteArray(Xt.slice(Gt,Wt))}function Tt(Xt,Gt,Wt){Wt=Math.min(Xt.length,Wt);const er=[];let lr=Gt;for(;lr<Wt;){const ur=Xt[lr];let pr=null,yr=ur>239?4:ur>223?3:ur>191?2:1;if(lr+yr<=Wt){let Er,br,gr,Ar;switch(yr){case 1:ur<128&&(pr=ur);break;case 2:Er=Xt[lr+1],(Er&192)===128&&(Ar=(ur&31)<<6|Er&63,Ar>127&&(pr=Ar));break;case 3:Er=Xt[lr+1],br=Xt[lr+2],(Er&192)===128&&(br&192)===128&&(Ar=(ur&15)<<12|(Er&63)<<6|br&63,Ar>2047&&(Ar<55296||Ar>57343)&&(pr=Ar));break;case 4:Er=Xt[lr+1],br=Xt[lr+2],gr=Xt[lr+3],(Er&192)===128&&(br&192)===128&&(gr&192)===128&&(Ar=(ur&15)<<18|(Er&63)<<12|(br&63)<<6|gr&63,Ar>65535&&Ar<1114112&&(pr=Ar))}}pr===null?(pr=65533,yr=1):pr>65535&&(pr-=65536,er.push(pr>>>10&1023|55296),pr=56320|pr&1023),er.push(pr),lr+=yr}return Ct(er)}const wt=4096;function Ct(Xt){const Gt=Xt.length;if(Gt<=wt)return String.fromCharCode.apply(String,Xt);let Wt="",er=0;for(;er<Gt;)Wt+=String.fromCharCode.apply(String,Xt.slice(er,er+=wt));return Wt}function $t(Xt,Gt,Wt){let er="";Wt=Math.min(Xt.length,Wt);for(let lr=Gt;lr<Wt;++lr)er+=String.fromCharCode(Xt[lr]&127);return er}function yt(Xt,Gt,Wt){let er="";Wt=Math.min(Xt.length,Wt);for(let lr=Gt;lr<Wt;++lr)er+=String.fromCharCode(Xt[lr]);return er}function Pt(Xt,Gt,Wt){const er=Xt.length;(!Gt||Gt<0)&&(Gt=0),(!Wt||Wt<0||Wt>er)&&(Wt=er);let lr="";for(let ur=Gt;ur<Wt;++ur)lr+=sr[Xt[ur]];return lr}function kt(Xt,Gt,Wt){const er=Xt.slice(Gt,Wt);let lr="";for(let ur=0;ur<er.length-1;ur+=2)lr+=String.fromCharCode(er[ur]+er[ur+1]*256);return lr}at.prototype.slice=function(Gt,Wt){const er=this.length;Gt=~~Gt,Wt=Wt===void 0?er:~~Wt,Gt<0?(Gt+=er,Gt<0&&(Gt=0)):Gt>er&&(Gt=er),Wt<0?(Wt+=er,Wt<0&&(Wt=0)):Wt>er&&(Wt=er),Wt<Gt&&(Wt=Gt);const lr=this.subarray(Gt,Wt);return Object.setPrototypeOf(lr,at.prototype),lr};function jt(Xt,Gt,Wt){if(Xt%1!==0||Xt<0)throw new RangeError("offset is not uint");if(Xt+Gt>Wt)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(Gt,Wt,er){Gt=Gt>>>0,Wt=Wt>>>0,er||jt(Gt,Wt,this.length);let lr=this[Gt],ur=1,pr=0;for(;++pr<Wt&&(ur*=256);)lr+=this[Gt+pr]*ur;return lr},at.prototype.readUintBE=at.prototype.readUIntBE=function(Gt,Wt,er){Gt=Gt>>>0,Wt=Wt>>>0,er||jt(Gt,Wt,this.length);let lr=this[Gt+--Wt],ur=1;for(;Wt>0&&(ur*=256);)lr+=this[Gt+--Wt]*ur;return lr},at.prototype.readUint8=at.prototype.readUInt8=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,1,this.length),this[Gt]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,2,this.length),this[Gt]|this[Gt+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,2,this.length),this[Gt]<<8|this[Gt+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),(this[Gt]|this[Gt+1]<<8|this[Gt+2]<<16)+this[Gt+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),this[Gt]*16777216+(this[Gt+1]<<16|this[Gt+2]<<8|this[Gt+3])},at.prototype.readBigUInt64LE=cr(function(Gt){Gt=Gt>>>0,Qt(Gt,"offset");const Wt=this[Gt],er=this[Gt+7];(Wt===void 0||er===void 0)&&qt(Gt,this.length-8);const lr=Wt+this[++Gt]*2**8+this[++Gt]*2**16+this[++Gt]*2**24,ur=this[++Gt]+this[++Gt]*2**8+this[++Gt]*2**16+er*2**24;return BigInt(lr)+(BigInt(ur)<<BigInt(32))}),at.prototype.readBigUInt64BE=cr(function(Gt){Gt=Gt>>>0,Qt(Gt,"offset");const Wt=this[Gt],er=this[Gt+7];(Wt===void 0||er===void 0)&&qt(Gt,this.length-8);const lr=Wt*2**24+this[++Gt]*2**16+this[++Gt]*2**8+this[++Gt],ur=this[++Gt]*2**24+this[++Gt]*2**16+this[++Gt]*2**8+er;return(BigInt(lr)<<BigInt(32))+BigInt(ur)}),at.prototype.readIntLE=function(Gt,Wt,er){Gt=Gt>>>0,Wt=Wt>>>0,er||jt(Gt,Wt,this.length);let lr=this[Gt],ur=1,pr=0;for(;++pr<Wt&&(ur*=256);)lr+=this[Gt+pr]*ur;return ur*=128,lr>=ur&&(lr-=Math.pow(2,8*Wt)),lr},at.prototype.readIntBE=function(Gt,Wt,er){Gt=Gt>>>0,Wt=Wt>>>0,er||jt(Gt,Wt,this.length);let lr=Wt,ur=1,pr=this[Gt+--lr];for(;lr>0&&(ur*=256);)pr+=this[Gt+--lr]*ur;return ur*=128,pr>=ur&&(pr-=Math.pow(2,8*Wt)),pr},at.prototype.readInt8=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,1,this.length),this[Gt]&128?(255-this[Gt]+1)*-1:this[Gt]},at.prototype.readInt16LE=function(Gt,Wt){Gt=Gt>>>0,Wt||jt(Gt,2,this.length);const er=this[Gt]|this[Gt+1]<<8;return er&32768?er|4294901760:er},at.prototype.readInt16BE=function(Gt,Wt){Gt=Gt>>>0,Wt||jt(Gt,2,this.length);const er=this[Gt+1]|this[Gt]<<8;return er&32768?er|4294901760:er},at.prototype.readInt32LE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),this[Gt]|this[Gt+1]<<8|this[Gt+2]<<16|this[Gt+3]<<24},at.prototype.readInt32BE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),this[Gt]<<24|this[Gt+1]<<16|this[Gt+2]<<8|this[Gt+3]},at.prototype.readBigInt64LE=cr(function(Gt){Gt=Gt>>>0,Qt(Gt,"offset");const Wt=this[Gt],er=this[Gt+7];(Wt===void 0||er===void 0)&&qt(Gt,this.length-8);const lr=this[Gt+4]+this[Gt+5]*2**8+this[Gt+6]*2**16+(er<<24);return(BigInt(lr)<<BigInt(32))+BigInt(Wt+this[++Gt]*2**8+this[++Gt]*2**16+this[++Gt]*2**24)}),at.prototype.readBigInt64BE=cr(function(Gt){Gt=Gt>>>0,Qt(Gt,"offset");const Wt=this[Gt],er=this[Gt+7];(Wt===void 0||er===void 0)&&qt(Gt,this.length-8);const lr=(Wt<<24)+this[++Gt]*2**16+this[++Gt]*2**8+this[++Gt];return(BigInt(lr)<<BigInt(32))+BigInt(this[++Gt]*2**24+this[++Gt]*2**16+this[++Gt]*2**8+er)}),at.prototype.readFloatLE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),$.read(this,Gt,!0,23,4)},at.prototype.readFloatBE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),$.read(this,Gt,!1,23,4)},at.prototype.readDoubleLE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,8,this.length),$.read(this,Gt,!0,52,8)},at.prototype.readDoubleBE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,8,this.length),$.read(this,Gt,!1,52,8)};function Ht(Xt,Gt,Wt,er,lr,ur){if(!at.isBuffer(Xt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Gt>lr||Gt<ur)throw new RangeError('"value" argument is out of bounds');if(Wt+er>Xt.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(Gt,Wt,er,lr){if(Gt=+Gt,Wt=Wt>>>0,er=er>>>0,!lr){const yr=Math.pow(2,8*er)-1;Ht(this,Gt,Wt,er,yr,0)}let ur=1,pr=0;for(this[Wt]=Gt&255;++pr<er&&(ur*=256);)this[Wt+pr]=Gt/ur&255;return Wt+er},at.prototype.writeUintBE=at.prototype.writeUIntBE=function(Gt,Wt,er,lr){if(Gt=+Gt,Wt=Wt>>>0,er=er>>>0,!lr){const yr=Math.pow(2,8*er)-1;Ht(this,Gt,Wt,er,yr,0)}let ur=er-1,pr=1;for(this[Wt+ur]=Gt&255;--ur>=0&&(pr*=256);)this[Wt+ur]=Gt/pr&255;return Wt+er},at.prototype.writeUint8=at.prototype.writeUInt8=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,1,255,0),this[Wt]=Gt&255,Wt+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,2,65535,0),this[Wt]=Gt&255,this[Wt+1]=Gt>>>8,Wt+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,2,65535,0),this[Wt]=Gt>>>8,this[Wt+1]=Gt&255,Wt+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,4,4294967295,0),this[Wt+3]=Gt>>>24,this[Wt+2]=Gt>>>16,this[Wt+1]=Gt>>>8,this[Wt]=Gt&255,Wt+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,4,4294967295,0),this[Wt]=Gt>>>24,this[Wt+1]=Gt>>>16,this[Wt+2]=Gt>>>8,this[Wt+3]=Gt&255,Wt+4};function Ft(Xt,Gt,Wt,er,lr){Vt(Gt,er,lr,Xt,Wt,7);let ur=Number(Gt&BigInt(4294967295));Xt[Wt++]=ur,ur=ur>>8,Xt[Wt++]=ur,ur=ur>>8,Xt[Wt++]=ur,ur=ur>>8,Xt[Wt++]=ur;let pr=Number(Gt>>BigInt(32)&BigInt(4294967295));return Xt[Wt++]=pr,pr=pr>>8,Xt[Wt++]=pr,pr=pr>>8,Xt[Wt++]=pr,pr=pr>>8,Xt[Wt++]=pr,Wt}function Lt(Xt,Gt,Wt,er,lr){Vt(Gt,er,lr,Xt,Wt,7);let ur=Number(Gt&BigInt(4294967295));Xt[Wt+7]=ur,ur=ur>>8,Xt[Wt+6]=ur,ur=ur>>8,Xt[Wt+5]=ur,ur=ur>>8,Xt[Wt+4]=ur;let pr=Number(Gt>>BigInt(32)&BigInt(4294967295));return Xt[Wt+3]=pr,pr=pr>>8,Xt[Wt+2]=pr,pr=pr>>8,Xt[Wt+1]=pr,pr=pr>>8,Xt[Wt]=pr,Wt+8}at.prototype.writeBigUInt64LE=cr(function(Gt,Wt=0){return Ft(this,Gt,Wt,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeBigUInt64BE=cr(function(Gt,Wt=0){return Lt(this,Gt,Wt,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeIntLE=function(Gt,Wt,er,lr){if(Gt=+Gt,Wt=Wt>>>0,!lr){const Er=Math.pow(2,8*er-1);Ht(this,Gt,Wt,er,Er-1,-Er)}let ur=0,pr=1,yr=0;for(this[Wt]=Gt&255;++ur<er&&(pr*=256);)Gt<0&&yr===0&&this[Wt+ur-1]!==0&&(yr=1),this[Wt+ur]=(Gt/pr>>0)-yr&255;return Wt+er},at.prototype.writeIntBE=function(Gt,Wt,er,lr){if(Gt=+Gt,Wt=Wt>>>0,!lr){const Er=Math.pow(2,8*er-1);Ht(this,Gt,Wt,er,Er-1,-Er)}let ur=er-1,pr=1,yr=0;for(this[Wt+ur]=Gt&255;--ur>=0&&(pr*=256);)Gt<0&&yr===0&&this[Wt+ur+1]!==0&&(yr=1),this[Wt+ur]=(Gt/pr>>0)-yr&255;return Wt+er},at.prototype.writeInt8=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,1,127,-128),Gt<0&&(Gt=255+Gt+1),this[Wt]=Gt&255,Wt+1},at.prototype.writeInt16LE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,2,32767,-32768),this[Wt]=Gt&255,this[Wt+1]=Gt>>>8,Wt+2},at.prototype.writeInt16BE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,2,32767,-32768),this[Wt]=Gt>>>8,this[Wt+1]=Gt&255,Wt+2},at.prototype.writeInt32LE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,4,2147483647,-2147483648),this[Wt]=Gt&255,this[Wt+1]=Gt>>>8,this[Wt+2]=Gt>>>16,this[Wt+3]=Gt>>>24,Wt+4},at.prototype.writeInt32BE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,4,2147483647,-2147483648),Gt<0&&(Gt=4294967295+Gt+1),this[Wt]=Gt>>>24,this[Wt+1]=Gt>>>16,this[Wt+2]=Gt>>>8,this[Wt+3]=Gt&255,Wt+4},at.prototype.writeBigInt64LE=cr(function(Gt,Wt=0){return Ft(this,Gt,Wt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),at.prototype.writeBigInt64BE=cr(function(Gt,Wt=0){return Lt(this,Gt,Wt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Nt(Xt,Gt,Wt,er,lr,ur){if(Wt+er>Xt.length)throw new RangeError("Index out of range");if(Wt<0)throw new RangeError("Index out of range")}function Bt(Xt,Gt,Wt,er,lr){return Gt=+Gt,Wt=Wt>>>0,lr||Nt(Xt,Gt,Wt,4),$.write(Xt,Gt,Wt,er,23,4),Wt+4}at.prototype.writeFloatLE=function(Gt,Wt,er){return Bt(this,Gt,Wt,!0,er)},at.prototype.writeFloatBE=function(Gt,Wt,er){return Bt(this,Gt,Wt,!1,er)};function _t(Xt,Gt,Wt,er,lr){return Gt=+Gt,Wt=Wt>>>0,lr||Nt(Xt,Gt,Wt,8),$.write(Xt,Gt,Wt,er,52,8),Wt+8}at.prototype.writeDoubleLE=function(Gt,Wt,er){return _t(this,Gt,Wt,!0,er)},at.prototype.writeDoubleBE=function(Gt,Wt,er){return _t(this,Gt,Wt,!1,er)},at.prototype.copy=function(Gt,Wt,er,lr){if(!at.isBuffer(Gt))throw new TypeError("argument should be a Buffer");if(er||(er=0),!lr&&lr!==0&&(lr=this.length),Wt>=Gt.length&&(Wt=Gt.length),Wt||(Wt=0),lr>0&&lr<er&&(lr=er),lr===er||Gt.length===0||this.length===0)return 0;if(Wt<0)throw new RangeError("targetStart out of bounds");if(er<0||er>=this.length)throw new RangeError("Index out of range");if(lr<0)throw new RangeError("sourceEnd out of bounds");lr>this.length&&(lr=this.length),Gt.length-Wt<lr-er&&(lr=Gt.length-Wt+er);const ur=lr-er;return this===Gt&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Wt,er,lr):Uint8Array.prototype.set.call(Gt,this.subarray(er,lr),Wt),ur},at.prototype.fill=function(Gt,Wt,er,lr){if(typeof Gt=="string"){if(typeof Wt=="string"?(lr=Wt,Wt=0,er=this.length):typeof er=="string"&&(lr=er,er=this.length),lr!==void 0&&typeof lr!="string")throw new TypeError("encoding must be a string");if(typeof lr=="string"&&!at.isEncoding(lr))throw new TypeError("Unknown encoding: "+lr);if(Gt.length===1){const pr=Gt.charCodeAt(0);(lr==="utf8"&&pr<128||lr==="latin1")&&(Gt=pr)}}else typeof Gt=="number"?Gt=Gt&255:typeof Gt=="boolean"&&(Gt=Number(Gt));if(Wt<0||this.length<Wt||this.length<er)throw new RangeError("Out of range index");if(er<=Wt)return this;Wt=Wt>>>0,er=er===void 0?this.length:er>>>0,Gt||(Gt=0);let ur;if(typeof Gt=="number")for(ur=Wt;ur<er;++ur)this[ur]=Gt;else{const pr=at.isBuffer(Gt)?Gt:at.from(Gt,lr),yr=pr.length;if(yr===0)throw new TypeError('The value "'+Gt+'" is invalid for argument "value"');for(ur=0;ur<er-Wt;++ur)this[ur+Wt]=pr[ur%yr]}return this};const It={};function Rt(Xt,Gt,Wt){It[Xt]=class extends Wt{constructor(){super(),Object.defineProperty(this,"message",{value:Gt.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Xt}]`,this.stack,delete this.name}get code(){return Xt}set code(lr){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:lr,writable:!0})}toString(){return`${this.name} [${Xt}]: ${this.message}`}}}Rt("ERR_BUFFER_OUT_OF_BOUNDS",function(Xt){return Xt?`${Xt} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Rt("ERR_INVALID_ARG_TYPE",function(Xt,Gt){return`The "${Xt}" argument must be of type number. Received type ${typeof Gt}`},TypeError),Rt("ERR_OUT_OF_RANGE",function(Xt,Gt,Wt){let er=`The value of "${Xt}" is out of range.`,lr=Wt;return Number.isInteger(Wt)&&Math.abs(Wt)>2**32?lr=Mt(String(Wt)):typeof Wt=="bigint"&&(lr=String(Wt),(Wt>BigInt(2)**BigInt(32)||Wt<-(BigInt(2)**BigInt(32)))&&(lr=Mt(lr)),lr+="n"),er+=` It must be ${Gt}. Received ${lr}`,er},RangeError);function Mt(Xt){let Gt="",Wt=Xt.length;const er=Xt[0]==="-"?1:0;for(;Wt>=er+4;Wt-=3)Gt=`_${Xt.slice(Wt-3,Wt)}${Gt}`;return`${Xt.slice(0,Wt)}${Gt}`}function Ut(Xt,Gt,Wt){Qt(Gt,"offset"),(Xt[Gt]===void 0||Xt[Gt+Wt]===void 0)&&qt(Gt,Xt.length-(Wt+1))}function Vt(Xt,Gt,Wt,er,lr,ur){if(Xt>Wt||Xt<Gt){const pr=typeof Gt=="bigint"?"n":"";let yr;throw ur>3?Gt===0||Gt===BigInt(0)?yr=`>= 0${pr} and < 2${pr} ** ${(ur+1)*8}${pr}`:yr=`>= -(2${pr} ** ${(ur+1)*8-1}${pr}) and < 2 ** ${(ur+1)*8-1}${pr}`:yr=`>= ${Gt}${pr} and <= ${Wt}${pr}`,new It.ERR_OUT_OF_RANGE("value",yr,Xt)}Ut(er,lr,ur)}function Qt(Xt,Gt){if(typeof Xt!="number")throw new It.ERR_INVALID_ARG_TYPE(Gt,"number",Xt)}function qt(Xt,Gt,Wt){throw Math.floor(Xt)!==Xt?(Qt(Xt,Wt),new It.ERR_OUT_OF_RANGE(Wt||"offset","an integer",Xt)):Gt<0?new It.ERR_BUFFER_OUT_OF_BOUNDS:new It.ERR_OUT_OF_RANGE(Wt||"offset",`>= ${Wt?1:0} and <= ${Gt}`,Xt)}const Zt=/[^+/0-9A-Za-z-_]/g;function ir(Xt){if(Xt=Xt.split("=")[0],Xt=Xt.trim().replace(Zt,""),Xt.length<2)return"";for(;Xt.length%4!==0;)Xt=Xt+"=";return Xt}function Jt(Xt,Gt){Gt=Gt||1/0;let Wt;const er=Xt.length;let lr=null;const ur=[];for(let pr=0;pr<er;++pr){if(Wt=Xt.charCodeAt(pr),Wt>55295&&Wt<57344){if(!lr){if(Wt>56319){(Gt-=3)>-1&&ur.push(239,191,189);continue}else if(pr+1===er){(Gt-=3)>-1&&ur.push(239,191,189);continue}lr=Wt;continue}if(Wt<56320){(Gt-=3)>-1&&ur.push(239,191,189),lr=Wt;continue}Wt=(lr-55296<<10|Wt-56320)+65536}else lr&&(Gt-=3)>-1&&ur.push(239,191,189);if(lr=null,Wt<128){if((Gt-=1)<0)break;ur.push(Wt)}else if(Wt<2048){if((Gt-=2)<0)break;ur.push(Wt>>6|192,Wt&63|128)}else if(Wt<65536){if((Gt-=3)<0)break;ur.push(Wt>>12|224,Wt>>6&63|128,Wt&63|128)}else if(Wt<1114112){if((Gt-=4)<0)break;ur.push(Wt>>18|240,Wt>>12&63|128,Wt>>6&63|128,Wt&63|128)}else throw new Error("Invalid code point")}return ur}function rr(Xt){const Gt=[];for(let Wt=0;Wt<Xt.length;++Wt)Gt.push(Xt.charCodeAt(Wt)&255);return Gt}function Yt(Xt,Gt){let Wt,er,lr;const ur=[];for(let pr=0;pr<Xt.length&&!((Gt-=2)<0);++pr)Wt=Xt.charCodeAt(pr),er=Wt>>8,lr=Wt%256,ur.push(lr),ur.push(er);return ur}function Kt(Xt){return s.toByteArray(ir(Xt))}function nr(Xt,Gt,Wt,er){let lr;for(lr=0;lr<er&&!(lr+Wt>=Gt.length||lr>=Xt.length);++lr)Gt[lr+Wt]=Xt[lr];return lr}function tr(Xt,Gt){return Xt instanceof Gt||Xt!=null&&Xt.constructor!=null&&Xt.constructor.name!=null&&Xt.constructor.name===Gt.name}function ar(Xt){return Xt!==Xt}const sr=function(){const Xt="0123456789abcdef",Gt=new Array(256);for(let Wt=0;Wt<16;++Wt){const er=Wt*16;for(let lr=0;lr<16;++lr)Gt[er+lr]=Xt[Wt]+Xt[lr]}return Gt}();function cr(Xt){return typeof BigInt>"u"?or:Xt}function or(){throw new Error("BigInt not supported")}})(buffer$1);const langs=["en","ja","ar","th","pl","it","de"],Lang=z.enum(langs);z.object({cancel:z.string(),field:z.string(),fieldName:z.string(),align:z.string(),width:z.string(),opacity:z.string(),height:z.string(),rotate:z.string(),edit:z.string(),plsInputName:z.string(),fieldMustUniq:z.string(),notUniq:z.string(),noKeyName:z.string(),fieldsList:z.string(),addNewField:z.string(),editField:z.string(),type:z.string(),errorOccurred:z.string(),errorBulkUpdateFieldName:z.string(),commitBulkUpdateFieldName:z.string(),bulkUpdateFieldName:z.string(),hexColorPrompt:z.string(),"schemas.color":z.string(),"schemas.borderWidth":z.string(),"schemas.borderColor":z.string(),"schemas.textColor":z.string(),"schemas.bgColor":z.string(),"schemas.horizontal":z.string(),"schemas.vertical":z.string(),"schemas.left":z.string(),"schemas.center":z.string(),"schemas.right":z.string(),"schemas.top":z.string(),"schemas.middle":z.string(),"schemas.bottom":z.string(),"schemas.text.fontName":z.string(),"schemas.text.size":z.string(),"schemas.text.spacing":z.string(),"schemas.text.textAlign":z.string(),"schemas.text.verticalAlign":z.string(),"schemas.text.lineHeight":z.string(),"schemas.text.min":z.string(),"schemas.text.max":z.string(),"schemas.text.fit":z.string(),"schemas.text.dynamicFontSize":z.string(),"schemas.barcodes.barColor":z.string(),"schemas.barcodes.includetext":z.string()}),z.enum(["viewer","form","designer"]);const ColorType=z.enum(["rgb","cmyk"]).optional();z.object({height:z.number(),width:z.number()});const Schema$1=z.object({type:z.string(),readOnly:z.boolean().optional(),readOnlyValue:z.string().optional(),position:z.object({x:z.number(),y:z.number()}),width:z.number(),height:z.number(),rotate:z.number().optional(),opacity:z.number().optional()}).passthrough(),SchemaForUIAdditionalInfo=z.object({id:z.string(),key:z.string(),data:z.string()});Schema$1.merge(SchemaForUIAdditionalInfo);const ArrayBufferSchema=z.any().refine(a=>a instanceof ArrayBuffer),Uint8ArraySchema=z.any().refine(a=>a instanceof Uint8Array),Font=z.record(z.object({data:z.union([z.string(),ArrayBufferSchema,Uint8ArraySchema]),fallback:z.boolean().optional(),subset:z.boolean().optional()})),BasePdf=z.union([z.string(),ArrayBufferSchema,Uint8ArraySchema]),Template=z.object({schemas:z.array(z.record(Schema$1)),basePdf:BasePdf,sampledata:z.array(z.record(z.string())).length(1).optional(),columns:z.array(z.string()).optional()}),Inputs=z.array(z.record(z.string())).min(1),CommonOptions=z.object({font:Font.optional()}).passthrough(),CommonProps=z.object({template:Template,options:CommonOptions.optional(),plugins:z.record(z.object({ui:z.any(),pdf:z.any(),propPanel:z.any()})).optional()}),GeneratorOptions=CommonOptions.extend({colorType:ColorType,author:z.string().optional(),creationDate:z.date().optional(),creator:z.string().optional(),keywords:z.array(z.string()).optional(),language:z.string().optional(),modificationDate:z.date().optional(),producer:z.string().optional(),subject:z.string().optional(),title:z.string().optional()});CommonProps.extend({inputs:Inputs,options:GeneratorOptions.optional()}).strict();const UIOptions=CommonOptions.extend({lang:Lang.optional(),labels:z.record(z.string(),z.string()).optional(),theme:z.record(z.string(),z.unknown()).optional()}),HTMLElementSchema=z.any().refine(a=>a instanceof HTMLElement),UIProps=CommonProps.extend({domContainer:HTMLElementSchema,options:UIOptions.optional()}),PreviewProps=UIProps.extend({inputs:Inputs}).strict(),DesignerProps=UIProps.extend({}).strict(),uniq=a=>Array.from(new Set(a)),getFallbackFontName=a=>{const s="",$=Object.entries(a).reduce((_,_e)=>{const[tt,nt]=_e;return!_&&nt.fallback?tt:_},s);if($===s)throw Error("[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.");return $},getDefaultFont=()=>({[DEFAULT_FONT_NAME]:{data:b64toUint8Array(DEFAULT_FONT_VALUE),fallback:!0}}),mm2pt=a=>parseFloat(String(a))*MM_TO_PT_RATIO,pt2mm=a=>a*PT_TO_MM_RATIO,pt2px=a=>a*PT_TO_PX_RATIO,blob2Base64Pdf=a=>new Promise((s,$)=>{const _=new FileReader;_.onloadend=()=>{_.result.startsWith("data:application/pdf;")?s(_.result):$(Error("[@pdfme/common] template.basePdf must be pdf data."))},_.readAsDataURL(a)}),isHexValid=a=>/^#(?:[A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/i.test(a),getB64BasePdf=a=>typeof a=="string"&&!a.startsWith("data:application/pdf;")&&typeof window<"u"?fetch(a).then($=>$.blob()).then(blob2Base64Pdf).catch($=>{throw $}):a,getByteString=a=>buffer$1.Buffer.from(a,"base64").toString("binary"),b64toUint8Array=a=>{const s=a.split(";base64,")[1]?a.split(";base64,")[1]:a,$=getByteString(s),_=new Uint8Array($.length);for(let _e=0;_e<$.length;_e+=1)_[_e]=$.charCodeAt(_e);return _},getFontNamesInSchemas=a=>uniq(a.map(s=>Object.values(s).map($=>$.fontName??"")).reduce((s,$)=>s.concat($),[]).filter(Boolean)),checkFont=a=>{const{font:s,template:{schemas:$}}=a,_e=Object.values(s).reduce((at,ot)=>ot.fallback?at+1:at,0);if(_e===0)throw Error(`[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.
42
+ */(function(a){const s=base64Js,$=ieee754,_=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=at,a.SlowBuffer=gt,a.INSPECT_MAX_BYTES=50;const _e=2147483647;a.kMaxLength=_e,at.TYPED_ARRAY_SUPPORT=tt(),!at.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 tt(){try{const Xt=new Uint8Array(1),Gt={foo:function(){return 42}};return Object.setPrototypeOf(Gt,Uint8Array.prototype),Object.setPrototypeOf(Xt,Gt),Xt.foo()===42}catch{return!1}}Object.defineProperty(at.prototype,"parent",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.buffer}}),Object.defineProperty(at.prototype,"offset",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.byteOffset}});function nt(Xt){if(Xt>_e)throw new RangeError('The value "'+Xt+'" is invalid for option "size"');const Gt=new Uint8Array(Xt);return Object.setPrototypeOf(Gt,at.prototype),Gt}function at(Xt,Gt,Wt){if(typeof Xt=="number"){if(typeof Gt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return lt(Xt)}return ot(Xt,Gt,Wt)}at.poolSize=8192;function ot(Xt,Gt,Wt){if(typeof Xt=="string")return et(Xt,Gt);if(ArrayBuffer.isView(Xt))return ut(Xt);if(Xt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Xt);if(tr(Xt,ArrayBuffer)||Xt&&tr(Xt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(tr(Xt,SharedArrayBuffer)||Xt&&tr(Xt.buffer,SharedArrayBuffer)))return ft(Xt,Gt,Wt);if(typeof Xt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const er=Xt.valueOf&&Xt.valueOf();if(er!=null&&er!==Xt)return at.from(er,Gt,Wt);const lr=ht(Xt);if(lr)return lr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Xt[Symbol.toPrimitive]=="function")return at.from(Xt[Symbol.toPrimitive]("string"),Gt,Wt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Xt)}at.from=function(Xt,Gt,Wt){return ot(Xt,Gt,Wt)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function rt(Xt){if(typeof Xt!="number")throw new TypeError('"size" argument must be of type number');if(Xt<0)throw new RangeError('The value "'+Xt+'" is invalid for option "size"')}function st(Xt,Gt,Wt){return rt(Xt),Xt<=0?nt(Xt):Gt!==void 0?typeof Wt=="string"?nt(Xt).fill(Gt,Wt):nt(Xt).fill(Gt):nt(Xt)}at.alloc=function(Xt,Gt,Wt){return st(Xt,Gt,Wt)};function lt(Xt){return rt(Xt),nt(Xt<0?0:dt(Xt)|0)}at.allocUnsafe=function(Xt){return lt(Xt)},at.allocUnsafeSlow=function(Xt){return lt(Xt)};function et(Xt,Gt){if((typeof Gt!="string"||Gt==="")&&(Gt="utf8"),!at.isEncoding(Gt))throw new TypeError("Unknown encoding: "+Gt);const Wt=pt(Xt,Gt)|0;let er=nt(Wt);const lr=er.write(Xt,Gt);return lr!==Wt&&(er=er.slice(0,lr)),er}function it(Xt){const Gt=Xt.length<0?0:dt(Xt.length)|0,Wt=nt(Gt);for(let er=0;er<Gt;er+=1)Wt[er]=Xt[er]&255;return Wt}function ut(Xt){if(tr(Xt,Uint8Array)){const Gt=new Uint8Array(Xt);return ft(Gt.buffer,Gt.byteOffset,Gt.byteLength)}return it(Xt)}function ft(Xt,Gt,Wt){if(Gt<0||Xt.byteLength<Gt)throw new RangeError('"offset" is outside of buffer bounds');if(Xt.byteLength<Gt+(Wt||0))throw new RangeError('"length" is outside of buffer bounds');let er;return Gt===void 0&&Wt===void 0?er=new Uint8Array(Xt):Wt===void 0?er=new Uint8Array(Xt,Gt):er=new Uint8Array(Xt,Gt,Wt),Object.setPrototypeOf(er,at.prototype),er}function ht(Xt){if(at.isBuffer(Xt)){const Gt=dt(Xt.length)|0,Wt=nt(Gt);return Wt.length===0||Xt.copy(Wt,0,0,Gt),Wt}if(Xt.length!==void 0)return typeof Xt.length!="number"||ar(Xt.length)?nt(0):it(Xt);if(Xt.type==="Buffer"&&Array.isArray(Xt.data))return it(Xt.data)}function dt(Xt){if(Xt>=_e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e.toString(16)+" bytes");return Xt|0}function gt(Xt){return+Xt!=Xt&&(Xt=0),at.alloc(+Xt)}at.isBuffer=function(Gt){return Gt!=null&&Gt._isBuffer===!0&&Gt!==at.prototype},at.compare=function(Gt,Wt){if(tr(Gt,Uint8Array)&&(Gt=at.from(Gt,Gt.offset,Gt.byteLength)),tr(Wt,Uint8Array)&&(Wt=at.from(Wt,Wt.offset,Wt.byteLength)),!at.isBuffer(Gt)||!at.isBuffer(Wt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Gt===Wt)return 0;let er=Gt.length,lr=Wt.length;for(let ur=0,pr=Math.min(er,lr);ur<pr;++ur)if(Gt[ur]!==Wt[ur]){er=Gt[ur],lr=Wt[ur];break}return er<lr?-1:lr<er?1:0},at.isEncoding=function(Gt){switch(String(Gt).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}},at.concat=function(Gt,Wt){if(!Array.isArray(Gt))throw new TypeError('"list" argument must be an Array of Buffers');if(Gt.length===0)return at.alloc(0);let er;if(Wt===void 0)for(Wt=0,er=0;er<Gt.length;++er)Wt+=Gt[er].length;const lr=at.allocUnsafe(Wt);let ur=0;for(er=0;er<Gt.length;++er){let pr=Gt[er];if(tr(pr,Uint8Array))ur+pr.length>lr.length?(at.isBuffer(pr)||(pr=at.from(pr)),pr.copy(lr,ur)):Uint8Array.prototype.set.call(lr,pr,ur);else if(at.isBuffer(pr))pr.copy(lr,ur);else throw new TypeError('"list" argument must be an Array of Buffers');ur+=pr.length}return lr};function pt(Xt,Gt){if(at.isBuffer(Xt))return Xt.length;if(ArrayBuffer.isView(Xt)||tr(Xt,ArrayBuffer))return Xt.byteLength;if(typeof Xt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Xt);const Wt=Xt.length,er=arguments.length>2&&arguments[2]===!0;if(!er&&Wt===0)return 0;let lr=!1;for(;;)switch(Gt){case"ascii":case"latin1":case"binary":return Wt;case"utf8":case"utf-8":return Jt(Xt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt*2;case"hex":return Wt>>>1;case"base64":return Kt(Xt).length;default:if(lr)return er?-1:Jt(Xt).length;Gt=(""+Gt).toLowerCase(),lr=!0}}at.byteLength=pt;function mt(Xt,Gt,Wt){let er=!1;if((Gt===void 0||Gt<0)&&(Gt=0),Gt>this.length||((Wt===void 0||Wt>this.length)&&(Wt=this.length),Wt<=0)||(Wt>>>=0,Gt>>>=0,Wt<=Gt))return"";for(Xt||(Xt="utf8");;)switch(Xt){case"hex":return Pt(this,Gt,Wt);case"utf8":case"utf-8":return Tt(this,Gt,Wt);case"ascii":return $t(this,Gt,Wt);case"latin1":case"binary":return yt(this,Gt,Wt);case"base64":return Ot(this,Gt,Wt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,Gt,Wt);default:if(er)throw new TypeError("Unknown encoding: "+Xt);Xt=(Xt+"").toLowerCase(),er=!0}}at.prototype._isBuffer=!0;function ct(Xt,Gt,Wt){const er=Xt[Gt];Xt[Gt]=Xt[Wt],Xt[Wt]=er}at.prototype.swap16=function(){const Gt=this.length;if(Gt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Wt=0;Wt<Gt;Wt+=2)ct(this,Wt,Wt+1);return this},at.prototype.swap32=function(){const Gt=this.length;if(Gt%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Wt=0;Wt<Gt;Wt+=4)ct(this,Wt,Wt+3),ct(this,Wt+1,Wt+2);return this},at.prototype.swap64=function(){const Gt=this.length;if(Gt%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Wt=0;Wt<Gt;Wt+=8)ct(this,Wt,Wt+7),ct(this,Wt+1,Wt+6),ct(this,Wt+2,Wt+5),ct(this,Wt+3,Wt+4);return this},at.prototype.toString=function(){const Gt=this.length;return Gt===0?"":arguments.length===0?Tt(this,0,Gt):mt.apply(this,arguments)},at.prototype.toLocaleString=at.prototype.toString,at.prototype.equals=function(Gt){if(!at.isBuffer(Gt))throw new TypeError("Argument must be a Buffer");return this===Gt?!0:at.compare(this,Gt)===0},at.prototype.inspect=function(){let Gt="";const Wt=a.INSPECT_MAX_BYTES;return Gt=this.toString("hex",0,Wt).replace(/(.{2})/g,"$1 ").trim(),this.length>Wt&&(Gt+=" ... "),"<Buffer "+Gt+">"},_&&(at.prototype[_]=at.prototype.inspect),at.prototype.compare=function(Gt,Wt,er,lr,ur){if(tr(Gt,Uint8Array)&&(Gt=at.from(Gt,Gt.offset,Gt.byteLength)),!at.isBuffer(Gt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Gt);if(Wt===void 0&&(Wt=0),er===void 0&&(er=Gt?Gt.length:0),lr===void 0&&(lr=0),ur===void 0&&(ur=this.length),Wt<0||er>Gt.length||lr<0||ur>this.length)throw new RangeError("out of range index");if(lr>=ur&&Wt>=er)return 0;if(lr>=ur)return-1;if(Wt>=er)return 1;if(Wt>>>=0,er>>>=0,lr>>>=0,ur>>>=0,this===Gt)return 0;let pr=ur-lr,yr=er-Wt;const Er=Math.min(pr,yr),br=this.slice(lr,ur),gr=Gt.slice(Wt,er);for(let Ar=0;Ar<Er;++Ar)if(br[Ar]!==gr[Ar]){pr=br[Ar],yr=gr[Ar];break}return pr<yr?-1:yr<pr?1:0};function vt(Xt,Gt,Wt,er,lr){if(Xt.length===0)return-1;if(typeof Wt=="string"?(er=Wt,Wt=0):Wt>2147483647?Wt=2147483647:Wt<-2147483648&&(Wt=-2147483648),Wt=+Wt,ar(Wt)&&(Wt=lr?0:Xt.length-1),Wt<0&&(Wt=Xt.length+Wt),Wt>=Xt.length){if(lr)return-1;Wt=Xt.length-1}else if(Wt<0)if(lr)Wt=0;else return-1;if(typeof Gt=="string"&&(Gt=at.from(Gt,er)),at.isBuffer(Gt))return Gt.length===0?-1:At(Xt,Gt,Wt,er,lr);if(typeof Gt=="number")return Gt=Gt&255,typeof Uint8Array.prototype.indexOf=="function"?lr?Uint8Array.prototype.indexOf.call(Xt,Gt,Wt):Uint8Array.prototype.lastIndexOf.call(Xt,Gt,Wt):At(Xt,[Gt],Wt,er,lr);throw new TypeError("val must be string, number or Buffer")}function At(Xt,Gt,Wt,er,lr){let ur=1,pr=Xt.length,yr=Gt.length;if(er!==void 0&&(er=String(er).toLowerCase(),er==="ucs2"||er==="ucs-2"||er==="utf16le"||er==="utf-16le")){if(Xt.length<2||Gt.length<2)return-1;ur=2,pr/=2,yr/=2,Wt/=2}function Er(gr,Ar){return ur===1?gr[Ar]:gr.readUInt16BE(Ar*ur)}let br;if(lr){let gr=-1;for(br=Wt;br<pr;br++)if(Er(Xt,br)===Er(Gt,gr===-1?0:br-gr)){if(gr===-1&&(gr=br),br-gr+1===yr)return gr*ur}else gr!==-1&&(br-=br-gr),gr=-1}else for(Wt+yr>pr&&(Wt=pr-yr),br=Wt;br>=0;br--){let gr=!0;for(let Ar=0;Ar<yr;Ar++)if(Er(Xt,br+Ar)!==Er(Gt,Ar)){gr=!1;break}if(gr)return br}return-1}at.prototype.includes=function(Gt,Wt,er){return this.indexOf(Gt,Wt,er)!==-1},at.prototype.indexOf=function(Gt,Wt,er){return vt(this,Gt,Wt,er,!0)},at.prototype.lastIndexOf=function(Gt,Wt,er){return vt(this,Gt,Wt,er,!1)};function xt(Xt,Gt,Wt,er){Wt=Number(Wt)||0;const lr=Xt.length-Wt;er?(er=Number(er),er>lr&&(er=lr)):er=lr;const ur=Gt.length;er>ur/2&&(er=ur/2);let pr;for(pr=0;pr<er;++pr){const yr=parseInt(Gt.substr(pr*2,2),16);if(ar(yr))return pr;Xt[Wt+pr]=yr}return pr}function bt(Xt,Gt,Wt,er){return nr(Jt(Gt,Xt.length-Wt),Xt,Wt,er)}function Et(Xt,Gt,Wt,er){return nr(rr(Gt),Xt,Wt,er)}function St(Xt,Gt,Wt,er){return nr(Kt(Gt),Xt,Wt,er)}function Dt(Xt,Gt,Wt,er){return nr(Yt(Gt,Xt.length-Wt),Xt,Wt,er)}at.prototype.write=function(Gt,Wt,er,lr){if(Wt===void 0)lr="utf8",er=this.length,Wt=0;else if(er===void 0&&typeof Wt=="string")lr=Wt,er=this.length,Wt=0;else if(isFinite(Wt))Wt=Wt>>>0,isFinite(er)?(er=er>>>0,lr===void 0&&(lr="utf8")):(lr=er,er=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ur=this.length-Wt;if((er===void 0||er>ur)&&(er=ur),Gt.length>0&&(er<0||Wt<0)||Wt>this.length)throw new RangeError("Attempt to write outside buffer bounds");lr||(lr="utf8");let pr=!1;for(;;)switch(lr){case"hex":return xt(this,Gt,Wt,er);case"utf8":case"utf-8":return bt(this,Gt,Wt,er);case"ascii":case"latin1":case"binary":return Et(this,Gt,Wt,er);case"base64":return St(this,Gt,Wt,er);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dt(this,Gt,Wt,er);default:if(pr)throw new TypeError("Unknown encoding: "+lr);lr=(""+lr).toLowerCase(),pr=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ot(Xt,Gt,Wt){return Gt===0&&Wt===Xt.length?s.fromByteArray(Xt):s.fromByteArray(Xt.slice(Gt,Wt))}function Tt(Xt,Gt,Wt){Wt=Math.min(Xt.length,Wt);const er=[];let lr=Gt;for(;lr<Wt;){const ur=Xt[lr];let pr=null,yr=ur>239?4:ur>223?3:ur>191?2:1;if(lr+yr<=Wt){let Er,br,gr,Ar;switch(yr){case 1:ur<128&&(pr=ur);break;case 2:Er=Xt[lr+1],(Er&192)===128&&(Ar=(ur&31)<<6|Er&63,Ar>127&&(pr=Ar));break;case 3:Er=Xt[lr+1],br=Xt[lr+2],(Er&192)===128&&(br&192)===128&&(Ar=(ur&15)<<12|(Er&63)<<6|br&63,Ar>2047&&(Ar<55296||Ar>57343)&&(pr=Ar));break;case 4:Er=Xt[lr+1],br=Xt[lr+2],gr=Xt[lr+3],(Er&192)===128&&(br&192)===128&&(gr&192)===128&&(Ar=(ur&15)<<18|(Er&63)<<12|(br&63)<<6|gr&63,Ar>65535&&Ar<1114112&&(pr=Ar))}}pr===null?(pr=65533,yr=1):pr>65535&&(pr-=65536,er.push(pr>>>10&1023|55296),pr=56320|pr&1023),er.push(pr),lr+=yr}return Ct(er)}const wt=4096;function Ct(Xt){const Gt=Xt.length;if(Gt<=wt)return String.fromCharCode.apply(String,Xt);let Wt="",er=0;for(;er<Gt;)Wt+=String.fromCharCode.apply(String,Xt.slice(er,er+=wt));return Wt}function $t(Xt,Gt,Wt){let er="";Wt=Math.min(Xt.length,Wt);for(let lr=Gt;lr<Wt;++lr)er+=String.fromCharCode(Xt[lr]&127);return er}function yt(Xt,Gt,Wt){let er="";Wt=Math.min(Xt.length,Wt);for(let lr=Gt;lr<Wt;++lr)er+=String.fromCharCode(Xt[lr]);return er}function Pt(Xt,Gt,Wt){const er=Xt.length;(!Gt||Gt<0)&&(Gt=0),(!Wt||Wt<0||Wt>er)&&(Wt=er);let lr="";for(let ur=Gt;ur<Wt;++ur)lr+=sr[Xt[ur]];return lr}function kt(Xt,Gt,Wt){const er=Xt.slice(Gt,Wt);let lr="";for(let ur=0;ur<er.length-1;ur+=2)lr+=String.fromCharCode(er[ur]+er[ur+1]*256);return lr}at.prototype.slice=function(Gt,Wt){const er=this.length;Gt=~~Gt,Wt=Wt===void 0?er:~~Wt,Gt<0?(Gt+=er,Gt<0&&(Gt=0)):Gt>er&&(Gt=er),Wt<0?(Wt+=er,Wt<0&&(Wt=0)):Wt>er&&(Wt=er),Wt<Gt&&(Wt=Gt);const lr=this.subarray(Gt,Wt);return Object.setPrototypeOf(lr,at.prototype),lr};function jt(Xt,Gt,Wt){if(Xt%1!==0||Xt<0)throw new RangeError("offset is not uint");if(Xt+Gt>Wt)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(Gt,Wt,er){Gt=Gt>>>0,Wt=Wt>>>0,er||jt(Gt,Wt,this.length);let lr=this[Gt],ur=1,pr=0;for(;++pr<Wt&&(ur*=256);)lr+=this[Gt+pr]*ur;return lr},at.prototype.readUintBE=at.prototype.readUIntBE=function(Gt,Wt,er){Gt=Gt>>>0,Wt=Wt>>>0,er||jt(Gt,Wt,this.length);let lr=this[Gt+--Wt],ur=1;for(;Wt>0&&(ur*=256);)lr+=this[Gt+--Wt]*ur;return lr},at.prototype.readUint8=at.prototype.readUInt8=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,1,this.length),this[Gt]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,2,this.length),this[Gt]|this[Gt+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,2,this.length),this[Gt]<<8|this[Gt+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),(this[Gt]|this[Gt+1]<<8|this[Gt+2]<<16)+this[Gt+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),this[Gt]*16777216+(this[Gt+1]<<16|this[Gt+2]<<8|this[Gt+3])},at.prototype.readBigUInt64LE=cr(function(Gt){Gt=Gt>>>0,Qt(Gt,"offset");const Wt=this[Gt],er=this[Gt+7];(Wt===void 0||er===void 0)&&qt(Gt,this.length-8);const lr=Wt+this[++Gt]*2**8+this[++Gt]*2**16+this[++Gt]*2**24,ur=this[++Gt]+this[++Gt]*2**8+this[++Gt]*2**16+er*2**24;return BigInt(lr)+(BigInt(ur)<<BigInt(32))}),at.prototype.readBigUInt64BE=cr(function(Gt){Gt=Gt>>>0,Qt(Gt,"offset");const Wt=this[Gt],er=this[Gt+7];(Wt===void 0||er===void 0)&&qt(Gt,this.length-8);const lr=Wt*2**24+this[++Gt]*2**16+this[++Gt]*2**8+this[++Gt],ur=this[++Gt]*2**24+this[++Gt]*2**16+this[++Gt]*2**8+er;return(BigInt(lr)<<BigInt(32))+BigInt(ur)}),at.prototype.readIntLE=function(Gt,Wt,er){Gt=Gt>>>0,Wt=Wt>>>0,er||jt(Gt,Wt,this.length);let lr=this[Gt],ur=1,pr=0;for(;++pr<Wt&&(ur*=256);)lr+=this[Gt+pr]*ur;return ur*=128,lr>=ur&&(lr-=Math.pow(2,8*Wt)),lr},at.prototype.readIntBE=function(Gt,Wt,er){Gt=Gt>>>0,Wt=Wt>>>0,er||jt(Gt,Wt,this.length);let lr=Wt,ur=1,pr=this[Gt+--lr];for(;lr>0&&(ur*=256);)pr+=this[Gt+--lr]*ur;return ur*=128,pr>=ur&&(pr-=Math.pow(2,8*Wt)),pr},at.prototype.readInt8=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,1,this.length),this[Gt]&128?(255-this[Gt]+1)*-1:this[Gt]},at.prototype.readInt16LE=function(Gt,Wt){Gt=Gt>>>0,Wt||jt(Gt,2,this.length);const er=this[Gt]|this[Gt+1]<<8;return er&32768?er|4294901760:er},at.prototype.readInt16BE=function(Gt,Wt){Gt=Gt>>>0,Wt||jt(Gt,2,this.length);const er=this[Gt+1]|this[Gt]<<8;return er&32768?er|4294901760:er},at.prototype.readInt32LE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),this[Gt]|this[Gt+1]<<8|this[Gt+2]<<16|this[Gt+3]<<24},at.prototype.readInt32BE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),this[Gt]<<24|this[Gt+1]<<16|this[Gt+2]<<8|this[Gt+3]},at.prototype.readBigInt64LE=cr(function(Gt){Gt=Gt>>>0,Qt(Gt,"offset");const Wt=this[Gt],er=this[Gt+7];(Wt===void 0||er===void 0)&&qt(Gt,this.length-8);const lr=this[Gt+4]+this[Gt+5]*2**8+this[Gt+6]*2**16+(er<<24);return(BigInt(lr)<<BigInt(32))+BigInt(Wt+this[++Gt]*2**8+this[++Gt]*2**16+this[++Gt]*2**24)}),at.prototype.readBigInt64BE=cr(function(Gt){Gt=Gt>>>0,Qt(Gt,"offset");const Wt=this[Gt],er=this[Gt+7];(Wt===void 0||er===void 0)&&qt(Gt,this.length-8);const lr=(Wt<<24)+this[++Gt]*2**16+this[++Gt]*2**8+this[++Gt];return(BigInt(lr)<<BigInt(32))+BigInt(this[++Gt]*2**24+this[++Gt]*2**16+this[++Gt]*2**8+er)}),at.prototype.readFloatLE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),$.read(this,Gt,!0,23,4)},at.prototype.readFloatBE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,4,this.length),$.read(this,Gt,!1,23,4)},at.prototype.readDoubleLE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,8,this.length),$.read(this,Gt,!0,52,8)},at.prototype.readDoubleBE=function(Gt,Wt){return Gt=Gt>>>0,Wt||jt(Gt,8,this.length),$.read(this,Gt,!1,52,8)};function Ht(Xt,Gt,Wt,er,lr,ur){if(!at.isBuffer(Xt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Gt>lr||Gt<ur)throw new RangeError('"value" argument is out of bounds');if(Wt+er>Xt.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(Gt,Wt,er,lr){if(Gt=+Gt,Wt=Wt>>>0,er=er>>>0,!lr){const yr=Math.pow(2,8*er)-1;Ht(this,Gt,Wt,er,yr,0)}let ur=1,pr=0;for(this[Wt]=Gt&255;++pr<er&&(ur*=256);)this[Wt+pr]=Gt/ur&255;return Wt+er},at.prototype.writeUintBE=at.prototype.writeUIntBE=function(Gt,Wt,er,lr){if(Gt=+Gt,Wt=Wt>>>0,er=er>>>0,!lr){const yr=Math.pow(2,8*er)-1;Ht(this,Gt,Wt,er,yr,0)}let ur=er-1,pr=1;for(this[Wt+ur]=Gt&255;--ur>=0&&(pr*=256);)this[Wt+ur]=Gt/pr&255;return Wt+er},at.prototype.writeUint8=at.prototype.writeUInt8=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,1,255,0),this[Wt]=Gt&255,Wt+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,2,65535,0),this[Wt]=Gt&255,this[Wt+1]=Gt>>>8,Wt+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,2,65535,0),this[Wt]=Gt>>>8,this[Wt+1]=Gt&255,Wt+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,4,4294967295,0),this[Wt+3]=Gt>>>24,this[Wt+2]=Gt>>>16,this[Wt+1]=Gt>>>8,this[Wt]=Gt&255,Wt+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,4,4294967295,0),this[Wt]=Gt>>>24,this[Wt+1]=Gt>>>16,this[Wt+2]=Gt>>>8,this[Wt+3]=Gt&255,Wt+4};function Ft(Xt,Gt,Wt,er,lr){Vt(Gt,er,lr,Xt,Wt,7);let ur=Number(Gt&BigInt(4294967295));Xt[Wt++]=ur,ur=ur>>8,Xt[Wt++]=ur,ur=ur>>8,Xt[Wt++]=ur,ur=ur>>8,Xt[Wt++]=ur;let pr=Number(Gt>>BigInt(32)&BigInt(4294967295));return Xt[Wt++]=pr,pr=pr>>8,Xt[Wt++]=pr,pr=pr>>8,Xt[Wt++]=pr,pr=pr>>8,Xt[Wt++]=pr,Wt}function Lt(Xt,Gt,Wt,er,lr){Vt(Gt,er,lr,Xt,Wt,7);let ur=Number(Gt&BigInt(4294967295));Xt[Wt+7]=ur,ur=ur>>8,Xt[Wt+6]=ur,ur=ur>>8,Xt[Wt+5]=ur,ur=ur>>8,Xt[Wt+4]=ur;let pr=Number(Gt>>BigInt(32)&BigInt(4294967295));return Xt[Wt+3]=pr,pr=pr>>8,Xt[Wt+2]=pr,pr=pr>>8,Xt[Wt+1]=pr,pr=pr>>8,Xt[Wt]=pr,Wt+8}at.prototype.writeBigUInt64LE=cr(function(Gt,Wt=0){return Ft(this,Gt,Wt,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeBigUInt64BE=cr(function(Gt,Wt=0){return Lt(this,Gt,Wt,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeIntLE=function(Gt,Wt,er,lr){if(Gt=+Gt,Wt=Wt>>>0,!lr){const Er=Math.pow(2,8*er-1);Ht(this,Gt,Wt,er,Er-1,-Er)}let ur=0,pr=1,yr=0;for(this[Wt]=Gt&255;++ur<er&&(pr*=256);)Gt<0&&yr===0&&this[Wt+ur-1]!==0&&(yr=1),this[Wt+ur]=(Gt/pr>>0)-yr&255;return Wt+er},at.prototype.writeIntBE=function(Gt,Wt,er,lr){if(Gt=+Gt,Wt=Wt>>>0,!lr){const Er=Math.pow(2,8*er-1);Ht(this,Gt,Wt,er,Er-1,-Er)}let ur=er-1,pr=1,yr=0;for(this[Wt+ur]=Gt&255;--ur>=0&&(pr*=256);)Gt<0&&yr===0&&this[Wt+ur+1]!==0&&(yr=1),this[Wt+ur]=(Gt/pr>>0)-yr&255;return Wt+er},at.prototype.writeInt8=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,1,127,-128),Gt<0&&(Gt=255+Gt+1),this[Wt]=Gt&255,Wt+1},at.prototype.writeInt16LE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,2,32767,-32768),this[Wt]=Gt&255,this[Wt+1]=Gt>>>8,Wt+2},at.prototype.writeInt16BE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,2,32767,-32768),this[Wt]=Gt>>>8,this[Wt+1]=Gt&255,Wt+2},at.prototype.writeInt32LE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,4,2147483647,-2147483648),this[Wt]=Gt&255,this[Wt+1]=Gt>>>8,this[Wt+2]=Gt>>>16,this[Wt+3]=Gt>>>24,Wt+4},at.prototype.writeInt32BE=function(Gt,Wt,er){return Gt=+Gt,Wt=Wt>>>0,er||Ht(this,Gt,Wt,4,2147483647,-2147483648),Gt<0&&(Gt=4294967295+Gt+1),this[Wt]=Gt>>>24,this[Wt+1]=Gt>>>16,this[Wt+2]=Gt>>>8,this[Wt+3]=Gt&255,Wt+4},at.prototype.writeBigInt64LE=cr(function(Gt,Wt=0){return Ft(this,Gt,Wt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),at.prototype.writeBigInt64BE=cr(function(Gt,Wt=0){return Lt(this,Gt,Wt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Nt(Xt,Gt,Wt,er,lr,ur){if(Wt+er>Xt.length)throw new RangeError("Index out of range");if(Wt<0)throw new RangeError("Index out of range")}function Bt(Xt,Gt,Wt,er,lr){return Gt=+Gt,Wt=Wt>>>0,lr||Nt(Xt,Gt,Wt,4),$.write(Xt,Gt,Wt,er,23,4),Wt+4}at.prototype.writeFloatLE=function(Gt,Wt,er){return Bt(this,Gt,Wt,!0,er)},at.prototype.writeFloatBE=function(Gt,Wt,er){return Bt(this,Gt,Wt,!1,er)};function _t(Xt,Gt,Wt,er,lr){return Gt=+Gt,Wt=Wt>>>0,lr||Nt(Xt,Gt,Wt,8),$.write(Xt,Gt,Wt,er,52,8),Wt+8}at.prototype.writeDoubleLE=function(Gt,Wt,er){return _t(this,Gt,Wt,!0,er)},at.prototype.writeDoubleBE=function(Gt,Wt,er){return _t(this,Gt,Wt,!1,er)},at.prototype.copy=function(Gt,Wt,er,lr){if(!at.isBuffer(Gt))throw new TypeError("argument should be a Buffer");if(er||(er=0),!lr&&lr!==0&&(lr=this.length),Wt>=Gt.length&&(Wt=Gt.length),Wt||(Wt=0),lr>0&&lr<er&&(lr=er),lr===er||Gt.length===0||this.length===0)return 0;if(Wt<0)throw new RangeError("targetStart out of bounds");if(er<0||er>=this.length)throw new RangeError("Index out of range");if(lr<0)throw new RangeError("sourceEnd out of bounds");lr>this.length&&(lr=this.length),Gt.length-Wt<lr-er&&(lr=Gt.length-Wt+er);const ur=lr-er;return this===Gt&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Wt,er,lr):Uint8Array.prototype.set.call(Gt,this.subarray(er,lr),Wt),ur},at.prototype.fill=function(Gt,Wt,er,lr){if(typeof Gt=="string"){if(typeof Wt=="string"?(lr=Wt,Wt=0,er=this.length):typeof er=="string"&&(lr=er,er=this.length),lr!==void 0&&typeof lr!="string")throw new TypeError("encoding must be a string");if(typeof lr=="string"&&!at.isEncoding(lr))throw new TypeError("Unknown encoding: "+lr);if(Gt.length===1){const pr=Gt.charCodeAt(0);(lr==="utf8"&&pr<128||lr==="latin1")&&(Gt=pr)}}else typeof Gt=="number"?Gt=Gt&255:typeof Gt=="boolean"&&(Gt=Number(Gt));if(Wt<0||this.length<Wt||this.length<er)throw new RangeError("Out of range index");if(er<=Wt)return this;Wt=Wt>>>0,er=er===void 0?this.length:er>>>0,Gt||(Gt=0);let ur;if(typeof Gt=="number")for(ur=Wt;ur<er;++ur)this[ur]=Gt;else{const pr=at.isBuffer(Gt)?Gt:at.from(Gt,lr),yr=pr.length;if(yr===0)throw new TypeError('The value "'+Gt+'" is invalid for argument "value"');for(ur=0;ur<er-Wt;++ur)this[ur+Wt]=pr[ur%yr]}return this};const It={};function Rt(Xt,Gt,Wt){It[Xt]=class extends Wt{constructor(){super(),Object.defineProperty(this,"message",{value:Gt.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Xt}]`,this.stack,delete this.name}get code(){return Xt}set code(lr){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:lr,writable:!0})}toString(){return`${this.name} [${Xt}]: ${this.message}`}}}Rt("ERR_BUFFER_OUT_OF_BOUNDS",function(Xt){return Xt?`${Xt} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Rt("ERR_INVALID_ARG_TYPE",function(Xt,Gt){return`The "${Xt}" argument must be of type number. Received type ${typeof Gt}`},TypeError),Rt("ERR_OUT_OF_RANGE",function(Xt,Gt,Wt){let er=`The value of "${Xt}" is out of range.`,lr=Wt;return Number.isInteger(Wt)&&Math.abs(Wt)>2**32?lr=Mt(String(Wt)):typeof Wt=="bigint"&&(lr=String(Wt),(Wt>BigInt(2)**BigInt(32)||Wt<-(BigInt(2)**BigInt(32)))&&(lr=Mt(lr)),lr+="n"),er+=` It must be ${Gt}. Received ${lr}`,er},RangeError);function Mt(Xt){let Gt="",Wt=Xt.length;const er=Xt[0]==="-"?1:0;for(;Wt>=er+4;Wt-=3)Gt=`_${Xt.slice(Wt-3,Wt)}${Gt}`;return`${Xt.slice(0,Wt)}${Gt}`}function Ut(Xt,Gt,Wt){Qt(Gt,"offset"),(Xt[Gt]===void 0||Xt[Gt+Wt]===void 0)&&qt(Gt,Xt.length-(Wt+1))}function Vt(Xt,Gt,Wt,er,lr,ur){if(Xt>Wt||Xt<Gt){const pr=typeof Gt=="bigint"?"n":"";let yr;throw ur>3?Gt===0||Gt===BigInt(0)?yr=`>= 0${pr} and < 2${pr} ** ${(ur+1)*8}${pr}`:yr=`>= -(2${pr} ** ${(ur+1)*8-1}${pr}) and < 2 ** ${(ur+1)*8-1}${pr}`:yr=`>= ${Gt}${pr} and <= ${Wt}${pr}`,new It.ERR_OUT_OF_RANGE("value",yr,Xt)}Ut(er,lr,ur)}function Qt(Xt,Gt){if(typeof Xt!="number")throw new It.ERR_INVALID_ARG_TYPE(Gt,"number",Xt)}function qt(Xt,Gt,Wt){throw Math.floor(Xt)!==Xt?(Qt(Xt,Wt),new It.ERR_OUT_OF_RANGE(Wt||"offset","an integer",Xt)):Gt<0?new It.ERR_BUFFER_OUT_OF_BOUNDS:new It.ERR_OUT_OF_RANGE(Wt||"offset",`>= ${Wt?1:0} and <= ${Gt}`,Xt)}const Zt=/[^+/0-9A-Za-z-_]/g;function ir(Xt){if(Xt=Xt.split("=")[0],Xt=Xt.trim().replace(Zt,""),Xt.length<2)return"";for(;Xt.length%4!==0;)Xt=Xt+"=";return Xt}function Jt(Xt,Gt){Gt=Gt||1/0;let Wt;const er=Xt.length;let lr=null;const ur=[];for(let pr=0;pr<er;++pr){if(Wt=Xt.charCodeAt(pr),Wt>55295&&Wt<57344){if(!lr){if(Wt>56319){(Gt-=3)>-1&&ur.push(239,191,189);continue}else if(pr+1===er){(Gt-=3)>-1&&ur.push(239,191,189);continue}lr=Wt;continue}if(Wt<56320){(Gt-=3)>-1&&ur.push(239,191,189),lr=Wt;continue}Wt=(lr-55296<<10|Wt-56320)+65536}else lr&&(Gt-=3)>-1&&ur.push(239,191,189);if(lr=null,Wt<128){if((Gt-=1)<0)break;ur.push(Wt)}else if(Wt<2048){if((Gt-=2)<0)break;ur.push(Wt>>6|192,Wt&63|128)}else if(Wt<65536){if((Gt-=3)<0)break;ur.push(Wt>>12|224,Wt>>6&63|128,Wt&63|128)}else if(Wt<1114112){if((Gt-=4)<0)break;ur.push(Wt>>18|240,Wt>>12&63|128,Wt>>6&63|128,Wt&63|128)}else throw new Error("Invalid code point")}return ur}function rr(Xt){const Gt=[];for(let Wt=0;Wt<Xt.length;++Wt)Gt.push(Xt.charCodeAt(Wt)&255);return Gt}function Yt(Xt,Gt){let Wt,er,lr;const ur=[];for(let pr=0;pr<Xt.length&&!((Gt-=2)<0);++pr)Wt=Xt.charCodeAt(pr),er=Wt>>8,lr=Wt%256,ur.push(lr),ur.push(er);return ur}function Kt(Xt){return s.toByteArray(ir(Xt))}function nr(Xt,Gt,Wt,er){let lr;for(lr=0;lr<er&&!(lr+Wt>=Gt.length||lr>=Xt.length);++lr)Gt[lr+Wt]=Xt[lr];return lr}function tr(Xt,Gt){return Xt instanceof Gt||Xt!=null&&Xt.constructor!=null&&Xt.constructor.name!=null&&Xt.constructor.name===Gt.name}function ar(Xt){return Xt!==Xt}const sr=function(){const Xt="0123456789abcdef",Gt=new Array(256);for(let Wt=0;Wt<16;++Wt){const er=Wt*16;for(let lr=0;lr<16;++lr)Gt[er+lr]=Xt[Wt]+Xt[lr]}return Gt}();function cr(Xt){return typeof BigInt>"u"?or:Xt}function or(){throw new Error("BigInt not supported")}})(buffer$1);const langs=["en","ja","ar","th","pl","it","de","es"],Lang=z.enum(langs);z.object({cancel:z.string(),field:z.string(),fieldName:z.string(),align:z.string(),width:z.string(),opacity:z.string(),height:z.string(),rotate:z.string(),edit:z.string(),plsInputName:z.string(),fieldMustUniq:z.string(),notUniq:z.string(),noKeyName:z.string(),fieldsList:z.string(),addNewField:z.string(),editField:z.string(),type:z.string(),errorOccurred:z.string(),errorBulkUpdateFieldName:z.string(),commitBulkUpdateFieldName:z.string(),bulkUpdateFieldName:z.string(),hexColorPrompt:z.string(),"schemas.color":z.string(),"schemas.borderWidth":z.string(),"schemas.borderColor":z.string(),"schemas.textColor":z.string(),"schemas.bgColor":z.string(),"schemas.horizontal":z.string(),"schemas.vertical":z.string(),"schemas.left":z.string(),"schemas.center":z.string(),"schemas.right":z.string(),"schemas.top":z.string(),"schemas.middle":z.string(),"schemas.bottom":z.string(),"schemas.text.fontName":z.string(),"schemas.text.size":z.string(),"schemas.text.spacing":z.string(),"schemas.text.textAlign":z.string(),"schemas.text.verticalAlign":z.string(),"schemas.text.lineHeight":z.string(),"schemas.text.min":z.string(),"schemas.text.max":z.string(),"schemas.text.fit":z.string(),"schemas.text.dynamicFontSize":z.string(),"schemas.barcodes.barColor":z.string(),"schemas.barcodes.includetext":z.string()}),z.enum(["viewer","form","designer"]);const ColorType=z.enum(["rgb","cmyk"]).optional();z.object({height:z.number(),width:z.number()});const Schema$1=z.object({type:z.string(),readOnly:z.boolean().optional(),readOnlyValue:z.string().optional(),position:z.object({x:z.number(),y:z.number()}),width:z.number(),height:z.number(),rotate:z.number().optional(),opacity:z.number().optional()}).passthrough(),SchemaForUIAdditionalInfo=z.object({id:z.string(),key:z.string(),data:z.string()});Schema$1.merge(SchemaForUIAdditionalInfo);const ArrayBufferSchema=z.any().refine(a=>a instanceof ArrayBuffer),Uint8ArraySchema=z.any().refine(a=>a instanceof Uint8Array),Font=z.record(z.object({data:z.union([z.string(),ArrayBufferSchema,Uint8ArraySchema]),fallback:z.boolean().optional(),subset:z.boolean().optional()})),BasePdf=z.union([z.string(),ArrayBufferSchema,Uint8ArraySchema]),Template=z.object({schemas:z.array(z.record(Schema$1)),basePdf:BasePdf,sampledata:z.array(z.record(z.string())).length(1).optional(),columns:z.array(z.string()).optional()}),Inputs=z.array(z.record(z.string())).min(1),CommonOptions=z.object({font:Font.optional()}).passthrough(),CommonProps=z.object({template:Template,options:CommonOptions.optional(),plugins:z.record(z.object({ui:z.any(),pdf:z.any(),propPanel:z.any()})).optional()}),GeneratorOptions=CommonOptions.extend({colorType:ColorType,author:z.string().optional(),creationDate:z.date().optional(),creator:z.string().optional(),keywords:z.array(z.string()).optional(),language:z.string().optional(),modificationDate:z.date().optional(),producer:z.string().optional(),subject:z.string().optional(),title:z.string().optional()});CommonProps.extend({inputs:Inputs,options:GeneratorOptions.optional()}).strict();const UIOptions=CommonOptions.extend({lang:Lang.optional(),labels:z.record(z.string(),z.string()).optional(),theme:z.record(z.string(),z.unknown()).optional()}),HTMLElementSchema=z.any().refine(a=>a instanceof HTMLElement),UIProps=CommonProps.extend({domContainer:HTMLElementSchema,options:UIOptions.optional()}),PreviewProps=UIProps.extend({inputs:Inputs}).strict(),DesignerProps=UIProps.extend({}).strict(),uniq=a=>Array.from(new Set(a)),getFallbackFontName=a=>{const s="",$=Object.entries(a).reduce((_,_e)=>{const[tt,nt]=_e;return!_&&nt.fallback?tt:_},s);if($===s)throw Error("[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.");return $},getDefaultFont=()=>({[DEFAULT_FONT_NAME]:{data:b64toUint8Array(DEFAULT_FONT_VALUE),fallback:!0}}),mm2pt=a=>parseFloat(String(a))*MM_TO_PT_RATIO,pt2mm=a=>a*PT_TO_MM_RATIO,pt2px=a=>a*PT_TO_PX_RATIO,blob2Base64Pdf=a=>new Promise((s,$)=>{const _=new FileReader;_.onloadend=()=>{_.result.startsWith("data:application/pdf;")?s(_.result):$(Error("[@pdfme/common] template.basePdf must be pdf data."))},_.readAsDataURL(a)}),isHexValid=a=>/^#(?:[A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/i.test(a),getB64BasePdf=a=>typeof a=="string"&&!a.startsWith("data:application/pdf;")&&typeof window<"u"?fetch(a).then($=>$.blob()).then(blob2Base64Pdf).catch($=>{throw $}):a,getByteString=a=>buffer$1.Buffer.from(a,"base64").toString("binary"),b64toUint8Array=a=>{const s=a.split(";base64,")[1]?a.split(";base64,")[1]:a,$=getByteString(s),_=new Uint8Array($.length);for(let _e=0;_e<$.length;_e+=1)_[_e]=$.charCodeAt(_e);return _},getFontNamesInSchemas=a=>uniq(a.map(s=>Object.values(s).map($=>$.fontName??"")).reduce((s,$)=>s.concat($),[]).filter(Boolean)),checkFont=a=>{const{font:s,template:{schemas:$}}=a,_e=Object.values(s).reduce((at,ot)=>ot.fallback?at+1:at,0);if(_e===0)throw Error(`[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.
43
43
  Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);if(_e>1)throw Error(`[@pdfme/common] ${_e} fallback flags found in font. true fallback flag must be only one.
44
44
  Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);const tt=getFontNamesInSchemas($),nt=Object.keys(s);if(tt.some(at=>!nt.includes(at)))throw Error(`[@pdfme/common] ${tt.filter(at=>!nt.includes(at)).join()} of template.schemas is not found in font.
45
45
  Check this document: https://pdfme.com/docs/custom-fonts`)},checkPlugins=a=>{const{plugins:s,template:{schemas:$}}=a,_=uniq($.map(tt=>Object.values(tt).map(nt=>nt.type)).flat()),_e=Object.values(s).map(tt=>tt==null?void 0:tt.propPanel.defaultSchema.type);if(_.some(tt=>!_e.includes(tt)))throw Error(`[@pdfme/common] ${_.filter(tt=>!_e.includes(tt)).join()} of template.schemas is not found in plugins.`)},checkProps=(a,s)=>{try{s.parse(a)}catch($){if($ instanceof z.ZodError){const _e=$.issues.map(tt=>`ERROR POSITION: ${tt.path.join(".")}
@@ -582,7 +582,7 @@ html body {
582
582
  ${$}-eye,
583
583
  ${$}-download,
584
584
  ${$}-delete
585
- `]:{zIndex:10,width:_,margin:`0 ${unit$1(a.marginXXS)}`,fontSize:_,cursor:"pointer",transition:`all ${a.motionDurationSlow}`,color:_e,"&:hover":{color:_e},svg:{verticalAlign:"baseline"}}},[`${at}-thumbnail, ${at}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${at}-name`]:{display:"none",textAlign:"center"},[`${at}-file + ${at}-name`]:{position:"absolute",bottom:a.margin,display:"block",width:`calc(100% - ${unit$1(tt(a.paddingXS).mul(2).equal())})`},[`${at}-uploading`]:{[`&${at}`]:{backgroundColor:a.colorFillAlter},[`&::before, ${$}-eye, ${$}-download, ${$}-delete`]:{display:"none"}},[`${at}-progress`]:{bottom:a.marginXL,width:`calc(100% - ${unit$1(tt(a.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${s}-wrapper${s}-picture-circle-wrapper`]:{[`${s}${s}-select`]:{borderRadius:"50%"}}}},genRtlStyle=a=>{const{componentCls:s}=a;return{[`${s}-rtl`]:{direction:"rtl"}}},genRtlStyle$1=genRtlStyle,genBaseStyle=a=>{const{componentCls:s,colorTextDisabled:$}=a;return{[`${s}-wrapper`]:Object.assign(Object.assign({},resetComponent(a)),{[s]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${s}-select`]:{display:"inline-block"},[`${s}-disabled`]:{color:$,cursor:"not-allowed"}})}},prepareComponentToken=a=>({actionsColor:a.colorTextDescription}),useStyle=genStyleHooks("Upload",a=>{const{fontSizeHeading3:s,fontHeight:$,lineWidth:_,controlHeightLG:_e,calc:tt}=a,nt=merge(a,{uploadThumbnailSize:tt(s).mul(2).equal(),uploadProgressOffset:tt(tt($).div(2)).add(_).equal(),uploadPicCardSize:tt(_e).mul(2.55).equal()});return[genBaseStyle(nt),genDraggerStyle$1(nt),genPictureStyle(nt),genPictureCardStyle(nt),genListStyle$1(nt),genMotionStyle$1(nt),genRtlStyle$1(nt),genCollapseMotion$1(nt)]},prepareComponentToken);var FileTwoTone$2={icon:function a(s,$){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:s}}]}},name:"file",theme:"twotone"};const FileTwoToneSvg=FileTwoTone$2;var FileTwoTone=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:FileTwoToneSvg}))};const FileTwoTone$1=reactExports.forwardRef(FileTwoTone);var PaperClipOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const PaperClipOutlinedSvg=PaperClipOutlined$2;var PaperClipOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:PaperClipOutlinedSvg}))};const PaperClipOutlined$1=reactExports.forwardRef(PaperClipOutlined);var PictureTwoTone$2={icon:function a(s,$){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:s}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:$}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:s}}]}},name:"picture",theme:"twotone"};const PictureTwoToneSvg=PictureTwoTone$2;var PictureTwoTone=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:PictureTwoToneSvg}))};const PictureTwoTone$1=reactExports.forwardRef(PictureTwoTone);function file2Obj(a){return Object.assign(Object.assign({},a),{lastModified:a.lastModified,lastModifiedDate:a.lastModifiedDate,name:a.name,size:a.size,type:a.type,uid:a.uid,percent:0,originFileObj:a})}function updateFileList(a,s){const $=_toConsumableArray$d(s),_=$.findIndex(_e=>{let{uid:tt}=_e;return tt===a.uid});return _===-1?$.push(a):$[_]=a,$}function getFileItem(a,s){const $=a.uid!==void 0?"uid":"name";return s.filter(_=>_[$]===a[$])[0]}function removeFileItem(a,s){const $=a.uid!==void 0?"uid":"name",_=s.filter(_e=>_e[$]!==a[$]);return _.length===s.length?null:_}const extname=function(){const s=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),_=s[s.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(_)||[""])[0]},isImageFileType=a=>a.indexOf("image/")===0,isImageUrl=a=>{if(a.type&&!a.thumbUrl)return isImageFileType(a.type);const s=a.thumbUrl||a.url||"",$=extname(s);return/^data:image\//.test(s)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($)?!0:!(/^data:/.test(s)||$)},MEASURE_SIZE=200;function previewImage(a){return new Promise(s=>{if(!a.type||!isImageFileType(a.type)){s("");return}const $=document.createElement("canvas");$.width=MEASURE_SIZE,$.height=MEASURE_SIZE,$.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild($);const _=$.getContext("2d"),_e=new Image;if(_e.onload=()=>{const{width:tt,height:nt}=_e;let at=MEASURE_SIZE,ot=MEASURE_SIZE,rt=0,st=0;tt>nt?(ot=nt*(MEASURE_SIZE/tt),st=-(ot-at)/2):(at=tt*(MEASURE_SIZE/nt),rt=-(at-ot)/2),_.drawImage(_e,rt,st,at,ot);const lt=$.toDataURL();document.body.removeChild($),window.URL.revokeObjectURL(_e.src),s(lt)},_e.crossOrigin="anonymous",a.type.startsWith("image/svg+xml")){const tt=new FileReader;tt.onload=()=>{tt.result&&(_e.src=tt.result)},tt.readAsDataURL(a)}else if(a.type.startsWith("image/gif")){const tt=new FileReader;tt.onload=()=>{tt.result&&s(tt.result)},tt.readAsDataURL(a)}else _e.src=window.URL.createObjectURL(a)})}var DownloadOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const DownloadOutlinedSvg=DownloadOutlined$2;var DownloadOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:DownloadOutlinedSvg}))};const DownloadOutlined$1=reactExports.forwardRef(DownloadOutlined),ListItem=reactExports.forwardRef((a,s)=>{let{prefixCls:$,className:_,style:_e,locale:tt,listType:nt,file:at,items:ot,progress:rt,iconRender:st,actionIconRender:lt,itemRender:et,isImgUrl:it,showPreviewIcon:ut,showRemoveIcon:ft,showDownloadIcon:ht,previewIcon:dt,removeIcon:gt,downloadIcon:pt,onPreview:mt,onDownload:ct,onClose:vt}=a;var At,xt;const{status:bt}=at,[Et,St]=reactExports.useState(bt);reactExports.useEffect(()=>{bt!=="removed"&&St(bt)},[bt]);const[Dt,Ot]=reactExports.useState(!1);reactExports.useEffect(()=>{const Mt=setTimeout(()=>{Ot(!0)},300);return()=>{clearTimeout(Mt)}},[]);const Tt=st(at);let wt=reactExports.createElement("div",{className:`${$}-icon`},Tt);if(nt==="picture"||nt==="picture-card"||nt==="picture-circle")if(Et==="uploading"||!at.thumbUrl&&!at.url){const Mt=classnames(`${$}-list-item-thumbnail`,{[`${$}-list-item-file`]:Et!=="uploading"});wt=reactExports.createElement("div",{className:Mt},Tt)}else{const Mt=it!=null&&it(at)?reactExports.createElement("img",{src:at.thumbUrl||at.url,alt:at.name,className:`${$}-list-item-image`,crossOrigin:at.crossOrigin}):Tt,Ut=classnames(`${$}-list-item-thumbnail`,{[`${$}-list-item-file`]:it&&!it(at)});wt=reactExports.createElement("a",{className:Ut,onClick:Vt=>mt(at,Vt),href:at.url||at.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mt)}const Ct=classnames(`${$}-list-item`,`${$}-list-item-${Et}`),$t=typeof at.linkProps=="string"?JSON.parse(at.linkProps):at.linkProps,yt=ft?lt((typeof gt=="function"?gt(at):gt)||reactExports.createElement(DeleteOutlined$1,null),()=>vt(at),$,tt.removeFile,!0):null,Pt=ht&&Et==="done"?lt((typeof pt=="function"?pt(at):pt)||reactExports.createElement(DownloadOutlined$1,null),()=>ct(at),$,tt.downloadFile):null,kt=nt!=="picture-card"&&nt!=="picture-circle"&&reactExports.createElement("span",{key:"download-delete",className:classnames(`${$}-list-item-actions`,{picture:nt==="picture"})},Pt,yt),jt=classnames(`${$}-list-item-name`),Ht=at.url?[reactExports.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:jt,title:at.name},$t,{href:at.url,onClick:Mt=>mt(at,Mt)}),at.name),kt]:[reactExports.createElement("span",{key:"view",className:jt,onClick:Mt=>mt(at,Mt),title:at.name},at.name),kt],Ft=ut&&(at.url||at.thumbUrl)?reactExports.createElement("a",{href:at.url||at.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Mt=>mt(at,Mt),title:tt.previewFile},typeof dt=="function"?dt(at):dt||reactExports.createElement(EyeOutlined$1,null)):null,Lt=(nt==="picture-card"||nt==="picture-circle")&&Et!=="uploading"&&reactExports.createElement("span",{className:`${$}-list-item-actions`},Ft,Et==="done"&&Pt,yt),{getPrefixCls:Nt}=reactExports.useContext(ConfigContext$1),Bt=Nt(),_t=reactExports.createElement("div",{className:Ct},wt,Ht,Lt,Dt&&reactExports.createElement(CSSMotion,{motionName:`${Bt}-fade`,visible:Et==="uploading",motionDeadline:2e3},Mt=>{let{className:Ut}=Mt;const Vt="percent"in at?reactExports.createElement(Progress$1,Object.assign({},rt,{type:"line",percent:at.percent,"aria-label":at["aria-label"],"aria-labelledby":at["aria-labelledby"]})):null;return reactExports.createElement("div",{className:classnames(`${$}-list-item-progress`,Ut)},Vt)})),It=at.response&&typeof at.response=="string"?at.response:((At=at.error)===null||At===void 0?void 0:At.statusText)||((xt=at.error)===null||xt===void 0?void 0:xt.message)||tt.uploadError,Rt=Et==="error"?reactExports.createElement(_Tooltip,{title:It,getPopupContainer:Mt=>Mt.parentNode},_t):_t;return reactExports.createElement("div",{className:classnames(`${$}-list-item-container`,_),style:_e,ref:s},et?et(Rt,at,ot,{download:ct.bind(null,at),preview:mt.bind(null,at),remove:vt.bind(null,at)}):Rt)}),ListItem$1=ListItem,InternalUploadList=(a,s)=>{const{listType:$="text",previewFile:_=previewImage,onPreview:_e,onDownload:tt,onRemove:nt,locale:at,iconRender:ot,isImageUrl:rt=isImageUrl,prefixCls:st,items:lt=[],showPreviewIcon:et=!0,showRemoveIcon:it=!0,showDownloadIcon:ut=!1,removeIcon:ft,previewIcon:ht,downloadIcon:dt,progress:gt={size:[-1,2],showInfo:!1},appendAction:pt,appendActionVisible:mt=!0,itemRender:ct,disabled:vt}=a,At=useForceUpdate(),[xt,bt]=reactExports.useState(!1);reactExports.useEffect(()=>{$!=="picture"&&$!=="picture-card"&&$!=="picture-circle"||(lt||[]).forEach(Ft=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Ft.originFileObj instanceof File||Ft.originFileObj instanceof Blob)||Ft.thumbUrl!==void 0||(Ft.thumbUrl="",_&&_(Ft.originFileObj).then(Lt=>{Ft.thumbUrl=Lt||"",At()}))})},[$,lt,_]),reactExports.useEffect(()=>{bt(!0)},[]);const Et=(Ft,Lt)=>{if(_e)return Lt==null||Lt.preventDefault(),_e(Ft)},St=Ft=>{typeof tt=="function"?tt(Ft):Ft.url&&window.open(Ft.url)},Dt=Ft=>{nt==null||nt(Ft)},Ot=Ft=>{if(ot)return ot(Ft,$);const Lt=Ft.status==="uploading",Nt=rt&&rt(Ft)?reactExports.createElement(PictureTwoTone$1,null):reactExports.createElement(FileTwoTone$1,null);let Bt=Lt?reactExports.createElement(LoadingOutlined$1,null):reactExports.createElement(PaperClipOutlined$1,null);return $==="picture"?Bt=Lt?reactExports.createElement(LoadingOutlined$1,null):Nt:($==="picture-card"||$==="picture-circle")&&(Bt=Lt?at.uploading:Nt),Bt},Tt=(Ft,Lt,Nt,Bt,_t)=>{const It={type:"text",size:"small",title:Bt,onClick:Rt=>{Lt(),isValidElement(Ft)&&Ft.props.onClick&&Ft.props.onClick(Rt)},className:`${Nt}-list-item-action`};if(_t&&(It.disabled=vt),isValidElement(Ft)){const Rt=cloneElement(Ft,Object.assign(Object.assign({},Ft.props),{onClick:()=>{}}));return reactExports.createElement(Button$2,Object.assign({},It,{icon:Rt}))}return reactExports.createElement(Button$2,Object.assign({},It),reactExports.createElement("span",null,Ft))};reactExports.useImperativeHandle(s,()=>({handlePreview:Et,handleDownload:St}));const{getPrefixCls:wt}=reactExports.useContext(ConfigContext$1),Ct=wt("upload",st),$t=wt(),yt=classnames(`${Ct}-list`,`${Ct}-list-${$}`),Pt=_toConsumableArray$d(lt.map(Ft=>({key:Ft.uid,file:Ft})));let jt={motionDeadline:2e3,motionName:`${Ct}-${$==="picture-card"||$==="picture-circle"?"animate-inline":"animate"}`,keys:Pt,motionAppear:xt};const Ht=reactExports.useMemo(()=>{const Ft=Object.assign({},initCollapseMotion$1($t));return delete Ft.onAppearEnd,delete Ft.onEnterEnd,delete Ft.onLeaveEnd,Ft},[$t]);return $!=="picture-card"&&$!=="picture-circle"&&(jt=Object.assign(Object.assign({},Ht),jt)),reactExports.createElement("div",{className:yt},reactExports.createElement(CSSMotionList,Object.assign({},jt,{component:!1}),Ft=>{let{key:Lt,file:Nt,className:Bt,style:_t}=Ft;return reactExports.createElement(ListItem$1,{key:Lt,locale:at,prefixCls:Ct,className:Bt,style:_t,file:Nt,items:lt,progress:gt,listType:$,isImgUrl:rt,showPreviewIcon:et,showRemoveIcon:it,showDownloadIcon:ut,removeIcon:ft,previewIcon:ht,downloadIcon:dt,iconRender:Ot,actionIconRender:Tt,itemRender:ct,onPreview:Et,onDownload:St,onClose:Dt})}),pt&&reactExports.createElement(CSSMotion,Object.assign({},jt,{visible:mt,forceRender:!0}),Ft=>{let{className:Lt,style:Nt}=Ft;return cloneElement(pt,Bt=>({className:classnames(Bt.className,Lt),style:Object.assign(Object.assign(Object.assign({},Nt),{pointerEvents:Lt?"none":void 0}),Bt.style)}))}))},UploadList=reactExports.forwardRef(InternalUploadList),UploadList$1=UploadList;var __awaiter$1=function(a,s,$,_){function _e(tt){return tt instanceof $?tt:new $(function(nt){nt(tt)})}return new($||($=Promise))(function(tt,nt){function at(st){try{rt(_.next(st))}catch(lt){nt(lt)}}function ot(st){try{rt(_.throw(st))}catch(lt){nt(lt)}}function rt(st){st.done?tt(st.value):_e(st.value).then(at,ot)}rt((_=_.apply(a,s||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(a,s)=>{const{fileList:$,defaultFileList:_,onRemove:_e,showUploadList:tt=!0,listType:nt="text",onPreview:at,onDownload:ot,onChange:rt,onDrop:st,previewFile:lt,disabled:et,locale:it,iconRender:ut,isImageUrl:ft,progress:ht,prefixCls:dt,className:gt,type:pt="select",children:mt,style:ct,itemRender:vt,maxCount:At,data:xt={},multiple:bt=!1,action:Et="",accept:St="",supportServerRender:Dt=!0,rootClassName:Ot}=a,Tt=reactExports.useContext(DisabledContext$1),wt=et??Tt,[Ct,$t]=useMergedState(_||[],{value:$,postState:ur=>ur??[]}),[yt,Pt]=reactExports.useState("drop"),kt=reactExports.useRef(null);reactExports.useMemo(()=>{const ur=Date.now();($||[]).forEach((pr,yr)=>{!pr.uid&&!Object.isFrozen(pr)&&(pr.uid=`__AUTO__${ur}_${yr}__`)})},[$]);const jt=(ur,pr,yr)=>{let Er=_toConsumableArray$d(pr),br=!1;At===1?Er=Er.slice(-1):At&&(br=Er.length>At,Er=Er.slice(0,At)),reactDomExports.flushSync(()=>{$t(Er)});const gr={file:ur,fileList:Er};yr&&(gr.event=yr),(!br||Er.some(Ar=>Ar.uid===ur.uid))&&reactDomExports.flushSync(()=>{rt==null||rt(gr)})},Ht=(ur,pr)=>__awaiter$1(void 0,void 0,void 0,function*(){const{beforeUpload:yr,transformFile:Er}=a;let br=ur;if(yr){const gr=yield yr(ur,pr);if(gr===!1)return!1;if(delete ur[LIST_IGNORE],gr===LIST_IGNORE)return Object.defineProperty(ur,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof gr=="object"&&gr&&(br=gr)}return Er&&(br=yield Er(br)),br}),Ft=ur=>{const pr=ur.filter(br=>!br.file[LIST_IGNORE]);if(!pr.length)return;const yr=pr.map(br=>file2Obj(br.file));let Er=_toConsumableArray$d(Ct);yr.forEach(br=>{Er=updateFileList(br,Er)}),yr.forEach((br,gr)=>{let Ar=br;if(pr[gr].parsedFile)br.status="uploading";else{const{originFileObj:Sr}=br;let Br;try{Br=new File([Sr],Sr.name,{type:Sr.type})}catch{Br=new Blob([Sr],{type:Sr.type}),Br.name=Sr.name,Br.lastModifiedDate=new Date,Br.lastModified=new Date().getTime()}Br.uid=br.uid,Ar=Br}jt(Ar,Er)})},Lt=(ur,pr,yr)=>{try{typeof ur=="string"&&(ur=JSON.parse(ur))}catch{}if(!getFileItem(pr,Ct))return;const Er=file2Obj(pr);Er.status="done",Er.percent=100,Er.response=ur,Er.xhr=yr;const br=updateFileList(Er,Ct);jt(Er,br)},Nt=(ur,pr)=>{if(!getFileItem(pr,Ct))return;const yr=file2Obj(pr);yr.status="uploading",yr.percent=ur.percent;const Er=updateFileList(yr,Ct);jt(yr,Er,ur)},Bt=(ur,pr,yr)=>{if(!getFileItem(yr,Ct))return;const Er=file2Obj(yr);Er.error=ur,Er.response=pr,Er.status="error";const br=updateFileList(Er,Ct);jt(Er,br)},_t=ur=>{let pr;Promise.resolve(typeof _e=="function"?_e(ur):_e).then(yr=>{var Er;if(yr===!1)return;const br=removeFileItem(ur,Ct);br&&(pr=Object.assign(Object.assign({},ur),{status:"removed"}),Ct==null||Ct.forEach(gr=>{const Ar=pr.uid!==void 0?"uid":"name";gr[Ar]===pr[Ar]&&!Object.isFrozen(gr)&&(gr.status="removed")}),(Er=kt.current)===null||Er===void 0||Er.abort(pr),jt(pr,br))})},It=ur=>{Pt(ur.type),ur.type==="drop"&&(st==null||st(ur))};reactExports.useImperativeHandle(s,()=>({onBatchStart:Ft,onSuccess:Lt,onProgress:Nt,onError:Bt,fileList:Ct,upload:kt.current}));const{getPrefixCls:Rt,direction:Mt,upload:Ut}=reactExports.useContext(ConfigContext$1),Vt=Rt("upload",dt),Qt=Object.assign(Object.assign({onBatchStart:Ft,onError:Bt,onProgress:Nt,onSuccess:Lt},a),{data:xt,multiple:bt,action:Et,accept:St,supportServerRender:Dt,prefixCls:Vt,disabled:wt,beforeUpload:Ht,onChange:void 0});delete Qt.className,delete Qt.style,(!mt||wt)&&delete Qt.id;const qt=`${Vt}-wrapper`,[Zt,ir,Jt]=useStyle(Vt,qt),[rr]=useLocale$1("Upload",defaultLocale.Upload),{showRemoveIcon:Yt,showPreviewIcon:Kt,showDownloadIcon:nr,removeIcon:tr,previewIcon:ar,downloadIcon:sr}=typeof tt=="boolean"?{}:tt,cr=typeof Yt>"u"?!wt:!!Yt,or=(ur,pr)=>tt?reactExports.createElement(UploadList$1,{prefixCls:Vt,listType:nt,items:Ct,previewFile:lt,onPreview:at,onDownload:ot,onRemove:_t,showRemoveIcon:cr,showPreviewIcon:Kt,showDownloadIcon:nr,removeIcon:tr,previewIcon:ar,downloadIcon:sr,iconRender:ut,locale:Object.assign(Object.assign({},rr),it),isImageUrl:ft,progress:ht,appendAction:ur,appendActionVisible:pr,itemRender:vt,disabled:wt}):ur,Xt=classnames(qt,gt,Ot,ir,Jt,Ut==null?void 0:Ut.className,{[`${Vt}-rtl`]:Mt==="rtl",[`${Vt}-picture-card-wrapper`]:nt==="picture-card",[`${Vt}-picture-circle-wrapper`]:nt==="picture-circle"}),Gt=Object.assign(Object.assign({},Ut==null?void 0:Ut.style),ct);if(pt==="drag"){const ur=classnames(ir,Vt,`${Vt}-drag`,{[`${Vt}-drag-uploading`]:Ct.some(pr=>pr.status==="uploading"),[`${Vt}-drag-hover`]:yt==="dragover",[`${Vt}-disabled`]:wt,[`${Vt}-rtl`]:Mt==="rtl"});return Zt(reactExports.createElement("span",{className:Xt},reactExports.createElement("div",{className:ur,style:Gt,onDrop:It,onDragOver:It,onDragLeave:It},reactExports.createElement(Upload$2,Object.assign({},Qt,{ref:kt,className:`${Vt}-btn`}),reactExports.createElement("div",{className:`${Vt}-drag-container`},mt))),or()))}const Wt=classnames(Vt,`${Vt}-select`,{[`${Vt}-disabled`]:wt}),lr=(ur=>reactExports.createElement("div",{className:Wt,style:ur},reactExports.createElement(Upload$2,Object.assign({},Qt,{ref:kt}))))(mt?void 0:{display:"none"});return Zt(nt==="picture-card"||nt==="picture-circle"?reactExports.createElement("span",{className:Xt},or(lr,!!mt)):reactExports.createElement("span",{className:Xt},lr,or()))},Upload$1=reactExports.forwardRef(InternalUpload),InternalUpload$1=Upload$1;var __rest$4=function(a,s){var $={};for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&s.indexOf(_)<0&&($[_]=a[_]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,_=Object.getOwnPropertySymbols(a);_e<_.length;_e++)s.indexOf(_[_e])<0&&Object.prototype.propertyIsEnumerable.call(a,_[_e])&&($[_[_e]]=a[_[_e]]);return $};const Dragger=reactExports.forwardRef((a,s)=>{var{style:$,height:_}=a,_e=__rest$4(a,["style","height"]);return reactExports.createElement(InternalUpload$1,Object.assign({ref:s},_e,{type:"drag",style:Object.assign(Object.assign({},$),{height:_})}))}),Dragger$1=Dragger,Upload=InternalUpload$1;Upload.Dragger=Dragger$1,Upload.LIST_IGNORE=LIST_IGNORE;const _Upload=Upload,dictEn={cancel:"Cancel",field:"field",fieldName:"Name",align:"Align",width:"Width",height:"Height",opacity:"Opacity",rotate:"Rotate",edit:"Edit",plsInputName:"Please input name",fieldMustUniq:"Name of field is not unique",notUniq:"(Not unique name)",noKeyName:"No name",fieldsList:"Field List",addNewField:"Add new field",editField:"Edit Field",type:"Type",errorOccurred:"An error occurred",errorBulkUpdateFieldName:"Cannot commit the change because the number of items has been changed.",commitBulkUpdateFieldName:"Commit Changes",bulkUpdateFieldName:"Bulk update field names",hexColorPrompt:"Please enter a valid hex color code.","schemas.color":"Color","schemas.borderWidth":"Border Width","schemas.borderColor":"Border Color","schemas.textColor":"Text Color","schemas.bgColor":"Background Color","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Left","schemas.center":"Center","schemas.right":"Right","schemas.top":"Top","schemas.middle":"Middle","schemas.bottom":"Bottom","schemas.text.fontName":"Font Name","schemas.text.size":"Size","schemas.text.spacing":"Spacing","schemas.text.textAlign":"Text Align","schemas.text.verticalAlign":"Vertical Align","schemas.text.lineHeight":"Line Height","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Fit","schemas.text.dynamicFontSize":"Dynamic Font Size","schemas.barcodes.barColor":"Bar Color","schemas.barcodes.includetext":"Include Text"},dictJa={cancel:"キャンセル",field:"入力項目",fieldName:"項目名",align:"整列",width:"幅",height:"高さ",opacity:"不透明度",rotate:"回転",edit:"編集する",plsInputName:"項目名を入力してください",fieldMustUniq:"他の入力項目名と被っています",notUniq:"(他の項目名と重複しています)",noKeyName:"項目名なし",fieldsList:"入力項目一覧",addNewField:"入力項目を追加",editField:"入力項目を編集",type:"タイプ",errorOccurred:"エラーが発生しました",errorBulkUpdateFieldName:"項目数が変更されているため変更をコミットできません。",commitBulkUpdateFieldName:"変更を反映",bulkUpdateFieldName:"項目名を一括変更",hexColorPrompt:"有効な16進数のカラーコードを入力してください。","schemas.color":"色","schemas.borderWidth":"枠線の太さ","schemas.borderColor":"枠線の色","schemas.textColor":"テキストの色","schemas.bgColor":"背景色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中央","schemas.right":"右","schemas.top":"上","schemas.middle":"中間","schemas.bottom":"下","schemas.text.fontName":"フォント名","schemas.text.size":"サイズ","schemas.text.spacing":"間隔","schemas.text.textAlign":"テキストの揃え","schemas.text.verticalAlign":"垂直方向の揃え","schemas.text.lineHeight":"行の高さ","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"フィット","schemas.text.dynamicFontSize":"動的フォントサイズ","schemas.barcodes.barColor":"バーの色","schemas.barcodes.includetext":"テキストを含める"},dictAr={cancel:"إلغاء",field:"الحقل",fieldName:"اسم الحقل",align:"محاذاة",width:"العرض",height:"الارتفاع",opacity:"الشفافية",rotate:"تدوير",edit:"تعديل",plsInputName:"الرجاء إدخال الاسم",fieldMustUniq:"يجب أن يكون الحقل فريداً",notUniq:"(غير فريد)",noKeyName:"لا يوجد اسم للحقل",fieldsList:"قائمة الحقول",addNewField:"إضافة حقل جديد",editField:"تعديل الحقل",type:"النوع",errorOccurred:"حدث خطأ",errorBulkUpdateFieldName:"لا يمكن تنفيذ التغيير لأنه تم تغيير عدد العناصر.",commitBulkUpdateFieldName:"تنفيذ التغييرات",bulkUpdateFieldName:"تغيير الأسماء",hexColorPrompt:"الرجاء إدخال رمز لون سداسي عشري صالح.","schemas.color":"اللون","schemas.borderWidth":"عرض الحدود","schemas.borderColor":"لون الحدود","schemas.textColor":"لون الخط","schemas.bgColor":"لون الخلفية","schemas.horizontal":"أفقي","schemas.vertical":"عمودي","schemas.left":"يسار","schemas.center":"مركز","schemas.right":"يمين","schemas.top":"أعلى","schemas.middle":"وسط","schemas.bottom":"أسفل","schemas.text.fontName":"اسم الخط","schemas.text.size":"الحجم","schemas.text.spacing":"التباعد","schemas.text.textAlign":"محاذاة النص","schemas.text.verticalAlign":"محاذاة عمودية","schemas.text.lineHeight":"ارتفاع السطر","schemas.text.min":"الحد الأدنى","schemas.text.max":"الحد الأقصى","schemas.text.fit":"ملاءمة","schemas.text.dynamicFontSize":"حجم الخط الديناميكي","schemas.barcodes.barColor":"لون الشريط","schemas.barcodes.includetext":"تضمين النص"},dictTh={cancel:"ยกเลิก",field:"ฟิลด์",fieldName:"ชื่อฟิลด์",align:"จัดเรียง",width:"ความกว้าง",height:"ความสูง",opacity:"ความทึบ",rotate:"หมุน",edit:"แก้ไข",plsInputName:"กรุณาใส่ชื่อ",fieldMustUniq:"ชื่อฟิลด์ต้องไม่ซ้ำกัน",notUniq:"(ชื่อฟิลด์ซ้ำกัน)",noKeyName:"ไม่มีชื่อ",fieldsList:"รายการฟิลด์ทั้งหมด",addNewField:"เพิ่มฟิลด์ใหม่",editField:"แก้ไขฟิลด์",type:"ประเภท",errorOccurred:"เกิดข้อผิดพลาด",errorBulkUpdateFieldName:"ไม่สามารถยืนยันการแก้ไขได้เนื่องจากจำนวนรายการมีการเปลี่ยนแปลง",commitBulkUpdateFieldName:"ยืนยันการแก้ไข",bulkUpdateFieldName:"แก้ไขชื่อฟิลด์เป็นชุด",hexColorPrompt:"กรุณาใส่รหัสสีแบบฐานสิบหกที่ถูกต้อง","schemas.color":"สี","schemas.borderWidth":"ความกว้างของเส้นขอบ","schemas.borderColor":"สีขอบ","schemas.textColor":"สีข้อความ","schemas.bgColor":"สีพื้นหลัง","schemas.horizontal":"แนวนอน","schemas.vertical":"แนวตั้ง","schemas.left":"ซ้าย","schemas.center":"ตรงกลาง","schemas.right":"ขวา","schemas.top":"ด้านบน","schemas.middle":"ตรงกลาง","schemas.bottom":"ด้านล่าง","schemas.text.fontName":"ชื่อแบบอักษร","schemas.text.size":"ขนาด","schemas.text.spacing":"ระยะห่าง","schemas.text.textAlign":"จัดแนวข้อความ","schemas.text.verticalAlign":"จัดแนวแนวตั้ง","schemas.text.lineHeight":"ความสูงของบรรทัด","schemas.text.min":"ต่ำสุด","schemas.text.max":"สูงสุด","schemas.text.fit":"พอดี","schemas.text.dynamicFontSize":"ขนาดตัวอักษรแบบไดนามิก","schemas.barcodes.barColor":"สีบาร์","schemas.barcodes.includetext":"รวมข้อความ"},dictIt={cancel:"Annulla",field:"Campo",fieldName:"Nome",align:"Allinea",width:"Larghezza",height:"Altezza",opacity:"Opacità",rotate:"Ruota",edit:"Modifica",plsInputName:"Inserisci il nome per favore",fieldMustUniq:"Il nome del campo non è univoco",notUniq:"(Nome non univoco)",noKeyName:"Nessun nome",fieldsList:"Lista campi",addNewField:"Aggiungi un campo",editField:"Modifica campo",type:"Tipo",errorOccurred:"Riscontrato errore",errorBulkUpdateFieldName:"Non è possibile salvare le modifiche perché il numero di elementi è cambiato.",commitBulkUpdateFieldName:"Salva cambiamenti",bulkUpdateFieldName:"Modifica nomi campi in blocco",hexColorPrompt:"Inserisci un codice colore esadecimale valido.","schemas.color":"Colore","schemas.borderWidth":"Spessore bordo","schemas.borderColor":"Colore bordo","schemas.textColor":"Colore testo","schemas.bgColor":"Colore sfondo","schemas.horizontal":"Orizzontale","schemas.vertical":"Verticale","schemas.left":"Sinistra","schemas.center":"Centro","schemas.right":"Destra","schemas.top":"Sopra","schemas.middle":"Medio","schemas.bottom":"Sotto","schemas.text.fontName":"Nome del font","schemas.text.size":"Dimensione","schemas.text.spacing":"Spaziatura","schemas.text.textAlign":"Allineamento testo","schemas.text.verticalAlign":"Allineamento verticale","schemas.text.lineHeight":"Altezza della linea","schemas.text.min":"Minimo","schemas.text.max":"Massimo","schemas.text.fit":"Adatta","schemas.text.dynamicFontSize":"Dimensione font dinamica","schemas.barcodes.barColor":"Colore barra","schemas.barcodes.includetext":"Includi testo"},dictPl={cancel:"Anuluj",field:"pole",fieldName:"Klucz pola",align:"Wyrównanie",width:"Szerokość",height:"Wysokość",opacity:"przezroczystość",rotate:"Obrót",edit:"Edytuj",plsInputName:"Wymagane wprowadzenie klucza pola",fieldMustUniq:"Klucz pola nie jest unikalny",notUniq:"(Klucz pola nie jest unikalny)",noKeyName:"Brak nazwy klucza pola",fieldsList:"Lista pól",addNewField:"Dodaj nowe pole",editField:"Edytuj pole",type:"Typ pola",errorOccurred:"Wystąpił błąd",errorBulkUpdateFieldName:"Nie można wprowadzić zmian ponieważ liczba elementów uległa zmianie.",commitBulkUpdateFieldName:"Zaakceptuj zmiany",bulkUpdateFieldName:"Masowo aktualizuj klucze pól",hexColorPrompt:"Wprowadź poprawny kod koloru szesnastkowego.","schemas.color":"Kolor","schemas.borderWidth":"Szerokość obramowania","schemas.borderColor":"Kolor obramowania","schemas.textColor":"Kolor tekstu","schemas.bgColor":"Kolor tła","schemas.horizontal":"Poziomo","schemas.vertical":"Pionowo","schemas.left":"Lewo","schemas.center":"Centrum","schemas.right":"Prawo","schemas.top":"Góra","schemas.middle":"Środek","schemas.bottom":"Dół","schemas.text.fontName":"Nazwa czcionki","schemas.text.size":"Rozmiar","schemas.text.spacing":"Odstępy","schemas.text.textAlign":"Wyrównanie tekstu","schemas.text.verticalAlign":"Wyrównanie pionowe","schemas.text.lineHeight":"Wysokość linii","schemas.text.min":"Minimum","schemas.text.max":"Maksimum","schemas.text.fit":"Dopasowanie","schemas.text.dynamicFontSize":"Dynamiczny rozmiar czcionki","schemas.barcodes.barColor":"Kolor paska","schemas.barcodes.includetext":"Dołącz tekst"},dictDe={cancel:"Abbrechen",field:"Feld",fieldName:"Name",align:"Ausrichten",width:"Breite",height:"Höhe",opacity:"Opazität",rotate:"Drehen",edit:"Bearbeiten",plsInputName:"Bitte geben Sie einen Namen ein",fieldMustUniq:"Feldname ist nicht eindeutig",notUniq:"(Nicht eindeutiger Name)",noKeyName:"Kein Name",fieldsList:"Feldliste",addNewField:"Neues Feld hinzufügen",editField:"Feld bearbeiten",type:"Typ",errorOccurred:"Ein Fehler ist aufgetreten",errorBulkUpdateFieldName:"Die Änderung kann nicht übernommen werden, weil die Anzahl der Elemente geändert wurde.",commitBulkUpdateFieldName:"Änderungen übernehmen",bulkUpdateFieldName:"Mehrfachaktualisierung der Feldnamen",hexColorPrompt:"Bitte geben Sie einen gültigen Hex-Farbcode ein.","schemas.color":"Farbe","schemas.borderWidth":"Rahmenbreite","schemas.borderColor":"Rahmenfarbe","schemas.textColor":"Textfarbe","schemas.bgColor":"Hintergrundfarbe","schemas.horizontal":"Horizontal","schemas.vertical":"Vertikal","schemas.left":"Links","schemas.center":"Zentriert","schemas.right":"Rechts","schemas.top":"Oben","schemas.middle":"Mitte","schemas.bottom":"Unten","schemas.text.fontName":"Schriftart","schemas.text.size":"Größe","schemas.text.spacing":"Abstand","schemas.text.textAlign":"Ausrichtung","schemas.text.verticalAlign":"vert. Ausr.","schemas.text.lineHeight":"Zeilenhöhe","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Anpassen","schemas.text.dynamicFontSize":"Dynamische Schriftgröße","schemas.barcodes.barColor":"Strichcodefarbe","schemas.barcodes.includetext":"Text anzeigen"},dictionaries={en:dictEn,ja:dictJa,ar:dictAr,th:dictTh,it:dictIt,pl:dictPl,de:dictDe},getDict=a=>dictionaries[a]||dictionaries[DEFAULT_LANG],i18n=(a,s)=>(s||getDict(DEFAULT_LANG))[a],I18nContext=reactExports.createContext(i18n),FontContext=reactExports.createContext(getDefaultFont()),PluginsRegistry=reactExports.createContext(builtInPlugins),OptionsContext=reactExports.createContext({});var ArrowLeftOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ArrowLeftOutlinedSvg=ArrowLeftOutlined$2;var ArrowLeftOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ArrowLeftOutlinedSvg}))};const ArrowLeftOutlined$1=reactExports.forwardRef(ArrowLeftOutlined);var ArrowRightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const ArrowRightOutlinedSvg=ArrowRightOutlined$2;var ArrowRightOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ArrowRightOutlinedSvg}))};const ArrowRightOutlined$1=reactExports.forwardRef(ArrowRightOutlined);var ExclamationCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const ExclamationCircleOutlinedSvg=ExclamationCircleOutlined$2;var ExclamationCircleOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ExclamationCircleOutlinedSvg}))};const ExclamationCircleOutlined$1=reactExports.forwardRef(ExclamationCircleOutlined);var MenuOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const MenuOutlinedSvg=MenuOutlined$2;var MenuOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:MenuOutlinedSvg}))};const MenuOutlined$1=reactExports.forwardRef(MenuOutlined);var MinusOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};const MinusOutlinedSvg=MinusOutlined$2;var MinusOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:MinusOutlinedSvg}))};const MinusOutlined$1=reactExports.forwardRef(MinusOutlined);function useCombinedRefs(){for(var a=arguments.length,s=new Array(a),$=0;$<a;$++)s[$]=arguments[$];return reactExports.useMemo(()=>_=>{s.forEach(_e=>_e(_))},s)}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function isWindow$3(a){const s=Object.prototype.toString.call(a);return s==="[object Window]"||s==="[object global]"}function isNode$1(a){return"nodeType"in a}function getWindow$1(a){var s,$;return a?isWindow$3(a)?a:isNode$1(a)&&(s=($=a.ownerDocument)==null?void 0:$.defaultView)!=null?s:window:window}function isDocument(a){const{Document:s}=getWindow$1(a);return a instanceof s}function isHTMLElement(a){return isWindow$3(a)?!1:a instanceof getWindow$1(a).HTMLElement}function isSVGElement(a){return a instanceof getWindow$1(a).SVGElement}function getOwnerDocument(a){return a?isWindow$3(a)?a.document:isNode$1(a)?isDocument(a)?a:isHTMLElement(a)||isSVGElement(a)?a.ownerDocument:document:document:document}const useIsomorphicLayoutEffect=canUseDOM?reactExports.useLayoutEffect:reactExports.useEffect;function useEvent(a){const s=reactExports.useRef(a);return useIsomorphicLayoutEffect(()=>{s.current=a}),reactExports.useCallback(function(){for(var $=arguments.length,_=new Array($),_e=0;_e<$;_e++)_[_e]=arguments[_e];return s.current==null?void 0:s.current(..._)},[])}function useInterval(){const a=reactExports.useRef(null),s=reactExports.useCallback((_,_e)=>{a.current=setInterval(_,_e)},[]),$=reactExports.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]);return[s,$]}function useLatestValue(a,s){s===void 0&&(s=[a]);const $=reactExports.useRef(a);return useIsomorphicLayoutEffect(()=>{$.current!==a&&($.current=a)},s),$}function useLazyMemo(a,s){const $=reactExports.useRef();return reactExports.useMemo(()=>{const _=a($.current);return $.current=_,_},[...s])}function useNodeRef(a){const s=useEvent(a),$=reactExports.useRef(null),_=reactExports.useCallback(_e=>{_e!==$.current&&(s==null||s(_e,$.current)),$.current=_e},[]);return[$,_]}function usePrevious$1(a){const s=reactExports.useRef();return reactExports.useEffect(()=>{s.current=a},[a]),s.current}let ids={};function useUniqueId(a,s){return reactExports.useMemo(()=>{if(s)return s;const $=ids[a]==null?0:ids[a]+1;return ids[a]=$,a+"-"+$},[a,s])}function createAdjustmentFn(a){return function(s){for(var $=arguments.length,_=new Array($>1?$-1:0),_e=1;_e<$;_e++)_[_e-1]=arguments[_e];return _.reduce((tt,nt)=>{const at=Object.entries(nt);for(const[ot,rt]of at){const st=tt[ot];st!=null&&(tt[ot]=st+a*rt)}return tt},{...s})}}const add$1=createAdjustmentFn(1),subtract=createAdjustmentFn(-1);function hasViewportRelativeCoordinates(a){return"clientX"in a&&"clientY"in a}function isKeyboardEvent(a){if(!a)return!1;const{KeyboardEvent:s}=getWindow$1(a.target);return s&&a instanceof s}function isTouchEvent(a){if(!a)return!1;const{TouchEvent:s}=getWindow$1(a.target);return s&&a instanceof s}function getEventCoordinates(a){if(isTouchEvent(a)){if(a.touches&&a.touches.length){const{clientX:s,clientY:$}=a.touches[0];return{x:s,y:$}}else if(a.changedTouches&&a.changedTouches.length){const{clientX:s,clientY:$}=a.changedTouches[0];return{x:s,y:$}}}return hasViewportRelativeCoordinates(a)?{x:a.clientX,y:a.clientY}:null}const CSS$1=Object.freeze({Translate:{toString(a){if(!a)return;const{x:s,y:$}=a;return"translate3d("+(s?Math.round(s):0)+"px, "+($?Math.round($):0)+"px, 0)"}},Scale:{toString(a){if(!a)return;const{scaleX:s,scaleY:$}=a;return"scaleX("+s+") scaleY("+$+")"}},Transform:{toString(a){if(a)return[CSS$1.Translate.toString(a),CSS$1.Scale.toString(a)].join(" ")}},Transition:{toString(a){let{property:s,duration:$,easing:_}=a;return s+" "+$+"ms "+_}}}),SELECTOR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function findFirstFocusableNode(a){return a.matches(SELECTOR)?a:a.querySelector(SELECTOR)}const hiddenStyles={display:"none"};function HiddenText(a){let{id:s,value:$}=a;return React$a.createElement("div",{id:s,style:hiddenStyles},$)}function LiveRegion(a){let{id:s,announcement:$,ariaLiveType:_="assertive"}=a;const _e={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return React$a.createElement("div",{id:s,style:_e,role:"status","aria-live":_,"aria-atomic":!0},$)}function useAnnouncement(){const[a,s]=reactExports.useState("");return{announce:reactExports.useCallback(_=>{_!=null&&s(_)},[]),announcement:a}}const DndMonitorContext=reactExports.createContext(null);function useDndMonitor(a){const s=reactExports.useContext(DndMonitorContext);reactExports.useEffect(()=>{if(!s)throw new Error("useDndMonitor must be used within a children of <DndContext>");return s(a)},[a,s])}function useDndMonitorProvider(){const[a]=reactExports.useState(()=>new Set),s=reactExports.useCallback(_=>(a.add(_),()=>a.delete(_)),[a]);return[reactExports.useCallback(_=>{let{type:_e,event:tt}=_;a.forEach(nt=>{var at;return(at=nt[_e])==null?void 0:at.call(nt,tt)})},[a]),s]}const defaultScreenReaderInstructions={draggable:`
585
+ `]:{zIndex:10,width:_,margin:`0 ${unit$1(a.marginXXS)}`,fontSize:_,cursor:"pointer",transition:`all ${a.motionDurationSlow}`,color:_e,"&:hover":{color:_e},svg:{verticalAlign:"baseline"}}},[`${at}-thumbnail, ${at}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${at}-name`]:{display:"none",textAlign:"center"},[`${at}-file + ${at}-name`]:{position:"absolute",bottom:a.margin,display:"block",width:`calc(100% - ${unit$1(tt(a.paddingXS).mul(2).equal())})`},[`${at}-uploading`]:{[`&${at}`]:{backgroundColor:a.colorFillAlter},[`&::before, ${$}-eye, ${$}-download, ${$}-delete`]:{display:"none"}},[`${at}-progress`]:{bottom:a.marginXL,width:`calc(100% - ${unit$1(tt(a.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${s}-wrapper${s}-picture-circle-wrapper`]:{[`${s}${s}-select`]:{borderRadius:"50%"}}}},genRtlStyle=a=>{const{componentCls:s}=a;return{[`${s}-rtl`]:{direction:"rtl"}}},genRtlStyle$1=genRtlStyle,genBaseStyle=a=>{const{componentCls:s,colorTextDisabled:$}=a;return{[`${s}-wrapper`]:Object.assign(Object.assign({},resetComponent(a)),{[s]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${s}-select`]:{display:"inline-block"},[`${s}-disabled`]:{color:$,cursor:"not-allowed"}})}},prepareComponentToken=a=>({actionsColor:a.colorTextDescription}),useStyle=genStyleHooks("Upload",a=>{const{fontSizeHeading3:s,fontHeight:$,lineWidth:_,controlHeightLG:_e,calc:tt}=a,nt=merge(a,{uploadThumbnailSize:tt(s).mul(2).equal(),uploadProgressOffset:tt(tt($).div(2)).add(_).equal(),uploadPicCardSize:tt(_e).mul(2.55).equal()});return[genBaseStyle(nt),genDraggerStyle$1(nt),genPictureStyle(nt),genPictureCardStyle(nt),genListStyle$1(nt),genMotionStyle$1(nt),genRtlStyle$1(nt),genCollapseMotion$1(nt)]},prepareComponentToken);var FileTwoTone$2={icon:function a(s,$){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:s}}]}},name:"file",theme:"twotone"};const FileTwoToneSvg=FileTwoTone$2;var FileTwoTone=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:FileTwoToneSvg}))};const FileTwoTone$1=reactExports.forwardRef(FileTwoTone);var PaperClipOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const PaperClipOutlinedSvg=PaperClipOutlined$2;var PaperClipOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:PaperClipOutlinedSvg}))};const PaperClipOutlined$1=reactExports.forwardRef(PaperClipOutlined);var PictureTwoTone$2={icon:function a(s,$){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:s}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:$}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:s}}]}},name:"picture",theme:"twotone"};const PictureTwoToneSvg=PictureTwoTone$2;var PictureTwoTone=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:PictureTwoToneSvg}))};const PictureTwoTone$1=reactExports.forwardRef(PictureTwoTone);function file2Obj(a){return Object.assign(Object.assign({},a),{lastModified:a.lastModified,lastModifiedDate:a.lastModifiedDate,name:a.name,size:a.size,type:a.type,uid:a.uid,percent:0,originFileObj:a})}function updateFileList(a,s){const $=_toConsumableArray$d(s),_=$.findIndex(_e=>{let{uid:tt}=_e;return tt===a.uid});return _===-1?$.push(a):$[_]=a,$}function getFileItem(a,s){const $=a.uid!==void 0?"uid":"name";return s.filter(_=>_[$]===a[$])[0]}function removeFileItem(a,s){const $=a.uid!==void 0?"uid":"name",_=s.filter(_e=>_e[$]!==a[$]);return _.length===s.length?null:_}const extname=function(){const s=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),_=s[s.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(_)||[""])[0]},isImageFileType=a=>a.indexOf("image/")===0,isImageUrl=a=>{if(a.type&&!a.thumbUrl)return isImageFileType(a.type);const s=a.thumbUrl||a.url||"",$=extname(s);return/^data:image\//.test(s)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($)?!0:!(/^data:/.test(s)||$)},MEASURE_SIZE=200;function previewImage(a){return new Promise(s=>{if(!a.type||!isImageFileType(a.type)){s("");return}const $=document.createElement("canvas");$.width=MEASURE_SIZE,$.height=MEASURE_SIZE,$.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild($);const _=$.getContext("2d"),_e=new Image;if(_e.onload=()=>{const{width:tt,height:nt}=_e;let at=MEASURE_SIZE,ot=MEASURE_SIZE,rt=0,st=0;tt>nt?(ot=nt*(MEASURE_SIZE/tt),st=-(ot-at)/2):(at=tt*(MEASURE_SIZE/nt),rt=-(at-ot)/2),_.drawImage(_e,rt,st,at,ot);const lt=$.toDataURL();document.body.removeChild($),window.URL.revokeObjectURL(_e.src),s(lt)},_e.crossOrigin="anonymous",a.type.startsWith("image/svg+xml")){const tt=new FileReader;tt.onload=()=>{tt.result&&(_e.src=tt.result)},tt.readAsDataURL(a)}else if(a.type.startsWith("image/gif")){const tt=new FileReader;tt.onload=()=>{tt.result&&s(tt.result)},tt.readAsDataURL(a)}else _e.src=window.URL.createObjectURL(a)})}var DownloadOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const DownloadOutlinedSvg=DownloadOutlined$2;var DownloadOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:DownloadOutlinedSvg}))};const DownloadOutlined$1=reactExports.forwardRef(DownloadOutlined),ListItem=reactExports.forwardRef((a,s)=>{let{prefixCls:$,className:_,style:_e,locale:tt,listType:nt,file:at,items:ot,progress:rt,iconRender:st,actionIconRender:lt,itemRender:et,isImgUrl:it,showPreviewIcon:ut,showRemoveIcon:ft,showDownloadIcon:ht,previewIcon:dt,removeIcon:gt,downloadIcon:pt,onPreview:mt,onDownload:ct,onClose:vt}=a;var At,xt;const{status:bt}=at,[Et,St]=reactExports.useState(bt);reactExports.useEffect(()=>{bt!=="removed"&&St(bt)},[bt]);const[Dt,Ot]=reactExports.useState(!1);reactExports.useEffect(()=>{const Mt=setTimeout(()=>{Ot(!0)},300);return()=>{clearTimeout(Mt)}},[]);const Tt=st(at);let wt=reactExports.createElement("div",{className:`${$}-icon`},Tt);if(nt==="picture"||nt==="picture-card"||nt==="picture-circle")if(Et==="uploading"||!at.thumbUrl&&!at.url){const Mt=classnames(`${$}-list-item-thumbnail`,{[`${$}-list-item-file`]:Et!=="uploading"});wt=reactExports.createElement("div",{className:Mt},Tt)}else{const Mt=it!=null&&it(at)?reactExports.createElement("img",{src:at.thumbUrl||at.url,alt:at.name,className:`${$}-list-item-image`,crossOrigin:at.crossOrigin}):Tt,Ut=classnames(`${$}-list-item-thumbnail`,{[`${$}-list-item-file`]:it&&!it(at)});wt=reactExports.createElement("a",{className:Ut,onClick:Vt=>mt(at,Vt),href:at.url||at.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mt)}const Ct=classnames(`${$}-list-item`,`${$}-list-item-${Et}`),$t=typeof at.linkProps=="string"?JSON.parse(at.linkProps):at.linkProps,yt=ft?lt((typeof gt=="function"?gt(at):gt)||reactExports.createElement(DeleteOutlined$1,null),()=>vt(at),$,tt.removeFile,!0):null,Pt=ht&&Et==="done"?lt((typeof pt=="function"?pt(at):pt)||reactExports.createElement(DownloadOutlined$1,null),()=>ct(at),$,tt.downloadFile):null,kt=nt!=="picture-card"&&nt!=="picture-circle"&&reactExports.createElement("span",{key:"download-delete",className:classnames(`${$}-list-item-actions`,{picture:nt==="picture"})},Pt,yt),jt=classnames(`${$}-list-item-name`),Ht=at.url?[reactExports.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:jt,title:at.name},$t,{href:at.url,onClick:Mt=>mt(at,Mt)}),at.name),kt]:[reactExports.createElement("span",{key:"view",className:jt,onClick:Mt=>mt(at,Mt),title:at.name},at.name),kt],Ft=ut&&(at.url||at.thumbUrl)?reactExports.createElement("a",{href:at.url||at.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Mt=>mt(at,Mt),title:tt.previewFile},typeof dt=="function"?dt(at):dt||reactExports.createElement(EyeOutlined$1,null)):null,Lt=(nt==="picture-card"||nt==="picture-circle")&&Et!=="uploading"&&reactExports.createElement("span",{className:`${$}-list-item-actions`},Ft,Et==="done"&&Pt,yt),{getPrefixCls:Nt}=reactExports.useContext(ConfigContext$1),Bt=Nt(),_t=reactExports.createElement("div",{className:Ct},wt,Ht,Lt,Dt&&reactExports.createElement(CSSMotion,{motionName:`${Bt}-fade`,visible:Et==="uploading",motionDeadline:2e3},Mt=>{let{className:Ut}=Mt;const Vt="percent"in at?reactExports.createElement(Progress$1,Object.assign({},rt,{type:"line",percent:at.percent,"aria-label":at["aria-label"],"aria-labelledby":at["aria-labelledby"]})):null;return reactExports.createElement("div",{className:classnames(`${$}-list-item-progress`,Ut)},Vt)})),It=at.response&&typeof at.response=="string"?at.response:((At=at.error)===null||At===void 0?void 0:At.statusText)||((xt=at.error)===null||xt===void 0?void 0:xt.message)||tt.uploadError,Rt=Et==="error"?reactExports.createElement(_Tooltip,{title:It,getPopupContainer:Mt=>Mt.parentNode},_t):_t;return reactExports.createElement("div",{className:classnames(`${$}-list-item-container`,_),style:_e,ref:s},et?et(Rt,at,ot,{download:ct.bind(null,at),preview:mt.bind(null,at),remove:vt.bind(null,at)}):Rt)}),ListItem$1=ListItem,InternalUploadList=(a,s)=>{const{listType:$="text",previewFile:_=previewImage,onPreview:_e,onDownload:tt,onRemove:nt,locale:at,iconRender:ot,isImageUrl:rt=isImageUrl,prefixCls:st,items:lt=[],showPreviewIcon:et=!0,showRemoveIcon:it=!0,showDownloadIcon:ut=!1,removeIcon:ft,previewIcon:ht,downloadIcon:dt,progress:gt={size:[-1,2],showInfo:!1},appendAction:pt,appendActionVisible:mt=!0,itemRender:ct,disabled:vt}=a,At=useForceUpdate(),[xt,bt]=reactExports.useState(!1);reactExports.useEffect(()=>{$!=="picture"&&$!=="picture-card"&&$!=="picture-circle"||(lt||[]).forEach(Ft=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Ft.originFileObj instanceof File||Ft.originFileObj instanceof Blob)||Ft.thumbUrl!==void 0||(Ft.thumbUrl="",_&&_(Ft.originFileObj).then(Lt=>{Ft.thumbUrl=Lt||"",At()}))})},[$,lt,_]),reactExports.useEffect(()=>{bt(!0)},[]);const Et=(Ft,Lt)=>{if(_e)return Lt==null||Lt.preventDefault(),_e(Ft)},St=Ft=>{typeof tt=="function"?tt(Ft):Ft.url&&window.open(Ft.url)},Dt=Ft=>{nt==null||nt(Ft)},Ot=Ft=>{if(ot)return ot(Ft,$);const Lt=Ft.status==="uploading",Nt=rt&&rt(Ft)?reactExports.createElement(PictureTwoTone$1,null):reactExports.createElement(FileTwoTone$1,null);let Bt=Lt?reactExports.createElement(LoadingOutlined$1,null):reactExports.createElement(PaperClipOutlined$1,null);return $==="picture"?Bt=Lt?reactExports.createElement(LoadingOutlined$1,null):Nt:($==="picture-card"||$==="picture-circle")&&(Bt=Lt?at.uploading:Nt),Bt},Tt=(Ft,Lt,Nt,Bt,_t)=>{const It={type:"text",size:"small",title:Bt,onClick:Rt=>{Lt(),isValidElement(Ft)&&Ft.props.onClick&&Ft.props.onClick(Rt)},className:`${Nt}-list-item-action`};if(_t&&(It.disabled=vt),isValidElement(Ft)){const Rt=cloneElement(Ft,Object.assign(Object.assign({},Ft.props),{onClick:()=>{}}));return reactExports.createElement(Button$2,Object.assign({},It,{icon:Rt}))}return reactExports.createElement(Button$2,Object.assign({},It),reactExports.createElement("span",null,Ft))};reactExports.useImperativeHandle(s,()=>({handlePreview:Et,handleDownload:St}));const{getPrefixCls:wt}=reactExports.useContext(ConfigContext$1),Ct=wt("upload",st),$t=wt(),yt=classnames(`${Ct}-list`,`${Ct}-list-${$}`),Pt=_toConsumableArray$d(lt.map(Ft=>({key:Ft.uid,file:Ft})));let jt={motionDeadline:2e3,motionName:`${Ct}-${$==="picture-card"||$==="picture-circle"?"animate-inline":"animate"}`,keys:Pt,motionAppear:xt};const Ht=reactExports.useMemo(()=>{const Ft=Object.assign({},initCollapseMotion$1($t));return delete Ft.onAppearEnd,delete Ft.onEnterEnd,delete Ft.onLeaveEnd,Ft},[$t]);return $!=="picture-card"&&$!=="picture-circle"&&(jt=Object.assign(Object.assign({},Ht),jt)),reactExports.createElement("div",{className:yt},reactExports.createElement(CSSMotionList,Object.assign({},jt,{component:!1}),Ft=>{let{key:Lt,file:Nt,className:Bt,style:_t}=Ft;return reactExports.createElement(ListItem$1,{key:Lt,locale:at,prefixCls:Ct,className:Bt,style:_t,file:Nt,items:lt,progress:gt,listType:$,isImgUrl:rt,showPreviewIcon:et,showRemoveIcon:it,showDownloadIcon:ut,removeIcon:ft,previewIcon:ht,downloadIcon:dt,iconRender:Ot,actionIconRender:Tt,itemRender:ct,onPreview:Et,onDownload:St,onClose:Dt})}),pt&&reactExports.createElement(CSSMotion,Object.assign({},jt,{visible:mt,forceRender:!0}),Ft=>{let{className:Lt,style:Nt}=Ft;return cloneElement(pt,Bt=>({className:classnames(Bt.className,Lt),style:Object.assign(Object.assign(Object.assign({},Nt),{pointerEvents:Lt?"none":void 0}),Bt.style)}))}))},UploadList=reactExports.forwardRef(InternalUploadList),UploadList$1=UploadList;var __awaiter$1=function(a,s,$,_){function _e(tt){return tt instanceof $?tt:new $(function(nt){nt(tt)})}return new($||($=Promise))(function(tt,nt){function at(st){try{rt(_.next(st))}catch(lt){nt(lt)}}function ot(st){try{rt(_.throw(st))}catch(lt){nt(lt)}}function rt(st){st.done?tt(st.value):_e(st.value).then(at,ot)}rt((_=_.apply(a,s||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(a,s)=>{const{fileList:$,defaultFileList:_,onRemove:_e,showUploadList:tt=!0,listType:nt="text",onPreview:at,onDownload:ot,onChange:rt,onDrop:st,previewFile:lt,disabled:et,locale:it,iconRender:ut,isImageUrl:ft,progress:ht,prefixCls:dt,className:gt,type:pt="select",children:mt,style:ct,itemRender:vt,maxCount:At,data:xt={},multiple:bt=!1,action:Et="",accept:St="",supportServerRender:Dt=!0,rootClassName:Ot}=a,Tt=reactExports.useContext(DisabledContext$1),wt=et??Tt,[Ct,$t]=useMergedState(_||[],{value:$,postState:ur=>ur??[]}),[yt,Pt]=reactExports.useState("drop"),kt=reactExports.useRef(null);reactExports.useMemo(()=>{const ur=Date.now();($||[]).forEach((pr,yr)=>{!pr.uid&&!Object.isFrozen(pr)&&(pr.uid=`__AUTO__${ur}_${yr}__`)})},[$]);const jt=(ur,pr,yr)=>{let Er=_toConsumableArray$d(pr),br=!1;At===1?Er=Er.slice(-1):At&&(br=Er.length>At,Er=Er.slice(0,At)),reactDomExports.flushSync(()=>{$t(Er)});const gr={file:ur,fileList:Er};yr&&(gr.event=yr),(!br||Er.some(Ar=>Ar.uid===ur.uid))&&reactDomExports.flushSync(()=>{rt==null||rt(gr)})},Ht=(ur,pr)=>__awaiter$1(void 0,void 0,void 0,function*(){const{beforeUpload:yr,transformFile:Er}=a;let br=ur;if(yr){const gr=yield yr(ur,pr);if(gr===!1)return!1;if(delete ur[LIST_IGNORE],gr===LIST_IGNORE)return Object.defineProperty(ur,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof gr=="object"&&gr&&(br=gr)}return Er&&(br=yield Er(br)),br}),Ft=ur=>{const pr=ur.filter(br=>!br.file[LIST_IGNORE]);if(!pr.length)return;const yr=pr.map(br=>file2Obj(br.file));let Er=_toConsumableArray$d(Ct);yr.forEach(br=>{Er=updateFileList(br,Er)}),yr.forEach((br,gr)=>{let Ar=br;if(pr[gr].parsedFile)br.status="uploading";else{const{originFileObj:Sr}=br;let Br;try{Br=new File([Sr],Sr.name,{type:Sr.type})}catch{Br=new Blob([Sr],{type:Sr.type}),Br.name=Sr.name,Br.lastModifiedDate=new Date,Br.lastModified=new Date().getTime()}Br.uid=br.uid,Ar=Br}jt(Ar,Er)})},Lt=(ur,pr,yr)=>{try{typeof ur=="string"&&(ur=JSON.parse(ur))}catch{}if(!getFileItem(pr,Ct))return;const Er=file2Obj(pr);Er.status="done",Er.percent=100,Er.response=ur,Er.xhr=yr;const br=updateFileList(Er,Ct);jt(Er,br)},Nt=(ur,pr)=>{if(!getFileItem(pr,Ct))return;const yr=file2Obj(pr);yr.status="uploading",yr.percent=ur.percent;const Er=updateFileList(yr,Ct);jt(yr,Er,ur)},Bt=(ur,pr,yr)=>{if(!getFileItem(yr,Ct))return;const Er=file2Obj(yr);Er.error=ur,Er.response=pr,Er.status="error";const br=updateFileList(Er,Ct);jt(Er,br)},_t=ur=>{let pr;Promise.resolve(typeof _e=="function"?_e(ur):_e).then(yr=>{var Er;if(yr===!1)return;const br=removeFileItem(ur,Ct);br&&(pr=Object.assign(Object.assign({},ur),{status:"removed"}),Ct==null||Ct.forEach(gr=>{const Ar=pr.uid!==void 0?"uid":"name";gr[Ar]===pr[Ar]&&!Object.isFrozen(gr)&&(gr.status="removed")}),(Er=kt.current)===null||Er===void 0||Er.abort(pr),jt(pr,br))})},It=ur=>{Pt(ur.type),ur.type==="drop"&&(st==null||st(ur))};reactExports.useImperativeHandle(s,()=>({onBatchStart:Ft,onSuccess:Lt,onProgress:Nt,onError:Bt,fileList:Ct,upload:kt.current}));const{getPrefixCls:Rt,direction:Mt,upload:Ut}=reactExports.useContext(ConfigContext$1),Vt=Rt("upload",dt),Qt=Object.assign(Object.assign({onBatchStart:Ft,onError:Bt,onProgress:Nt,onSuccess:Lt},a),{data:xt,multiple:bt,action:Et,accept:St,supportServerRender:Dt,prefixCls:Vt,disabled:wt,beforeUpload:Ht,onChange:void 0});delete Qt.className,delete Qt.style,(!mt||wt)&&delete Qt.id;const qt=`${Vt}-wrapper`,[Zt,ir,Jt]=useStyle(Vt,qt),[rr]=useLocale$1("Upload",defaultLocale.Upload),{showRemoveIcon:Yt,showPreviewIcon:Kt,showDownloadIcon:nr,removeIcon:tr,previewIcon:ar,downloadIcon:sr}=typeof tt=="boolean"?{}:tt,cr=typeof Yt>"u"?!wt:!!Yt,or=(ur,pr)=>tt?reactExports.createElement(UploadList$1,{prefixCls:Vt,listType:nt,items:Ct,previewFile:lt,onPreview:at,onDownload:ot,onRemove:_t,showRemoveIcon:cr,showPreviewIcon:Kt,showDownloadIcon:nr,removeIcon:tr,previewIcon:ar,downloadIcon:sr,iconRender:ut,locale:Object.assign(Object.assign({},rr),it),isImageUrl:ft,progress:ht,appendAction:ur,appendActionVisible:pr,itemRender:vt,disabled:wt}):ur,Xt=classnames(qt,gt,Ot,ir,Jt,Ut==null?void 0:Ut.className,{[`${Vt}-rtl`]:Mt==="rtl",[`${Vt}-picture-card-wrapper`]:nt==="picture-card",[`${Vt}-picture-circle-wrapper`]:nt==="picture-circle"}),Gt=Object.assign(Object.assign({},Ut==null?void 0:Ut.style),ct);if(pt==="drag"){const ur=classnames(ir,Vt,`${Vt}-drag`,{[`${Vt}-drag-uploading`]:Ct.some(pr=>pr.status==="uploading"),[`${Vt}-drag-hover`]:yt==="dragover",[`${Vt}-disabled`]:wt,[`${Vt}-rtl`]:Mt==="rtl"});return Zt(reactExports.createElement("span",{className:Xt},reactExports.createElement("div",{className:ur,style:Gt,onDrop:It,onDragOver:It,onDragLeave:It},reactExports.createElement(Upload$2,Object.assign({},Qt,{ref:kt,className:`${Vt}-btn`}),reactExports.createElement("div",{className:`${Vt}-drag-container`},mt))),or()))}const Wt=classnames(Vt,`${Vt}-select`,{[`${Vt}-disabled`]:wt}),lr=(ur=>reactExports.createElement("div",{className:Wt,style:ur},reactExports.createElement(Upload$2,Object.assign({},Qt,{ref:kt}))))(mt?void 0:{display:"none"});return Zt(nt==="picture-card"||nt==="picture-circle"?reactExports.createElement("span",{className:Xt},or(lr,!!mt)):reactExports.createElement("span",{className:Xt},lr,or()))},Upload$1=reactExports.forwardRef(InternalUpload),InternalUpload$1=Upload$1;var __rest$4=function(a,s){var $={};for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&s.indexOf(_)<0&&($[_]=a[_]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,_=Object.getOwnPropertySymbols(a);_e<_.length;_e++)s.indexOf(_[_e])<0&&Object.prototype.propertyIsEnumerable.call(a,_[_e])&&($[_[_e]]=a[_[_e]]);return $};const Dragger=reactExports.forwardRef((a,s)=>{var{style:$,height:_}=a,_e=__rest$4(a,["style","height"]);return reactExports.createElement(InternalUpload$1,Object.assign({ref:s},_e,{type:"drag",style:Object.assign(Object.assign({},$),{height:_})}))}),Dragger$1=Dragger,Upload=InternalUpload$1;Upload.Dragger=Dragger$1,Upload.LIST_IGNORE=LIST_IGNORE;const _Upload=Upload,dictEn={cancel:"Cancel",field:"field",fieldName:"Name",align:"Align",width:"Width",height:"Height",opacity:"Opacity",rotate:"Rotate",edit:"Edit",plsInputName:"Please input name",fieldMustUniq:"Name of field is not unique",notUniq:"(Not unique name)",noKeyName:"No name",fieldsList:"Field List",addNewField:"Add new field",editField:"Edit Field",type:"Type",errorOccurred:"An error occurred",errorBulkUpdateFieldName:"Cannot commit the change because the number of items has been changed.",commitBulkUpdateFieldName:"Commit Changes",bulkUpdateFieldName:"Bulk update field names",hexColorPrompt:"Please enter a valid hex color code.","schemas.color":"Color","schemas.borderWidth":"Border Width","schemas.borderColor":"Border Color","schemas.textColor":"Text Color","schemas.bgColor":"Background Color","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Left","schemas.center":"Center","schemas.right":"Right","schemas.top":"Top","schemas.middle":"Middle","schemas.bottom":"Bottom","schemas.text.fontName":"Font Name","schemas.text.size":"Size","schemas.text.spacing":"Spacing","schemas.text.textAlign":"Text Align","schemas.text.verticalAlign":"Vertical Align","schemas.text.lineHeight":"Line Height","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Fit","schemas.text.dynamicFontSize":"Dynamic Font Size","schemas.barcodes.barColor":"Bar Color","schemas.barcodes.includetext":"Include Text"},dictJa={cancel:"キャンセル",field:"入力項目",fieldName:"項目名",align:"整列",width:"幅",height:"高さ",opacity:"不透明度",rotate:"回転",edit:"編集する",plsInputName:"項目名を入力してください",fieldMustUniq:"他の入力項目名と被っています",notUniq:"(他の項目名と重複しています)",noKeyName:"項目名なし",fieldsList:"入力項目一覧",addNewField:"入力項目を追加",editField:"入力項目を編集",type:"タイプ",errorOccurred:"エラーが発生しました",errorBulkUpdateFieldName:"項目数が変更されているため変更をコミットできません。",commitBulkUpdateFieldName:"変更を反映",bulkUpdateFieldName:"項目名を一括変更",hexColorPrompt:"有効な16進数のカラーコードを入力してください。","schemas.color":"色","schemas.borderWidth":"枠線の太さ","schemas.borderColor":"枠線の色","schemas.textColor":"テキストの色","schemas.bgColor":"背景色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中央","schemas.right":"右","schemas.top":"上","schemas.middle":"中間","schemas.bottom":"下","schemas.text.fontName":"フォント名","schemas.text.size":"サイズ","schemas.text.spacing":"間隔","schemas.text.textAlign":"テキストの揃え","schemas.text.verticalAlign":"垂直方向の揃え","schemas.text.lineHeight":"行の高さ","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"フィット","schemas.text.dynamicFontSize":"動的フォントサイズ","schemas.barcodes.barColor":"バーの色","schemas.barcodes.includetext":"テキストを含める"},dictAr={cancel:"إلغاء",field:"الحقل",fieldName:"اسم الحقل",align:"محاذاة",width:"العرض",height:"الارتفاع",opacity:"الشفافية",rotate:"تدوير",edit:"تعديل",plsInputName:"الرجاء إدخال الاسم",fieldMustUniq:"يجب أن يكون الحقل فريداً",notUniq:"(غير فريد)",noKeyName:"لا يوجد اسم للحقل",fieldsList:"قائمة الحقول",addNewField:"إضافة حقل جديد",editField:"تعديل الحقل",type:"النوع",errorOccurred:"حدث خطأ",errorBulkUpdateFieldName:"لا يمكن تنفيذ التغيير لأنه تم تغيير عدد العناصر.",commitBulkUpdateFieldName:"تنفيذ التغييرات",bulkUpdateFieldName:"تغيير الأسماء",hexColorPrompt:"الرجاء إدخال رمز لون سداسي عشري صالح.","schemas.color":"اللون","schemas.borderWidth":"عرض الحدود","schemas.borderColor":"لون الحدود","schemas.textColor":"لون الخط","schemas.bgColor":"لون الخلفية","schemas.horizontal":"أفقي","schemas.vertical":"عمودي","schemas.left":"يسار","schemas.center":"مركز","schemas.right":"يمين","schemas.top":"أعلى","schemas.middle":"وسط","schemas.bottom":"أسفل","schemas.text.fontName":"اسم الخط","schemas.text.size":"الحجم","schemas.text.spacing":"التباعد","schemas.text.textAlign":"محاذاة النص","schemas.text.verticalAlign":"محاذاة عمودية","schemas.text.lineHeight":"ارتفاع السطر","schemas.text.min":"الحد الأدنى","schemas.text.max":"الحد الأقصى","schemas.text.fit":"ملاءمة","schemas.text.dynamicFontSize":"حجم الخط الديناميكي","schemas.barcodes.barColor":"لون الشريط","schemas.barcodes.includetext":"تضمين النص"},dictTh={cancel:"ยกเลิก",field:"ฟิลด์",fieldName:"ชื่อฟิลด์",align:"จัดเรียง",width:"ความกว้าง",height:"ความสูง",opacity:"ความทึบ",rotate:"หมุน",edit:"แก้ไข",plsInputName:"กรุณาใส่ชื่อ",fieldMustUniq:"ชื่อฟิลด์ต้องไม่ซ้ำกัน",notUniq:"(ชื่อฟิลด์ซ้ำกัน)",noKeyName:"ไม่มีชื่อ",fieldsList:"รายการฟิลด์ทั้งหมด",addNewField:"เพิ่มฟิลด์ใหม่",editField:"แก้ไขฟิลด์",type:"ประเภท",errorOccurred:"เกิดข้อผิดพลาด",errorBulkUpdateFieldName:"ไม่สามารถยืนยันการแก้ไขได้เนื่องจากจำนวนรายการมีการเปลี่ยนแปลง",commitBulkUpdateFieldName:"ยืนยันการแก้ไข",bulkUpdateFieldName:"แก้ไขชื่อฟิลด์เป็นชุด",hexColorPrompt:"กรุณาใส่รหัสสีแบบฐานสิบหกที่ถูกต้อง","schemas.color":"สี","schemas.borderWidth":"ความกว้างของเส้นขอบ","schemas.borderColor":"สีขอบ","schemas.textColor":"สีข้อความ","schemas.bgColor":"สีพื้นหลัง","schemas.horizontal":"แนวนอน","schemas.vertical":"แนวตั้ง","schemas.left":"ซ้าย","schemas.center":"ตรงกลาง","schemas.right":"ขวา","schemas.top":"ด้านบน","schemas.middle":"ตรงกลาง","schemas.bottom":"ด้านล่าง","schemas.text.fontName":"ชื่อแบบอักษร","schemas.text.size":"ขนาด","schemas.text.spacing":"ระยะห่าง","schemas.text.textAlign":"จัดแนวข้อความ","schemas.text.verticalAlign":"จัดแนวแนวตั้ง","schemas.text.lineHeight":"ความสูงของบรรทัด","schemas.text.min":"ต่ำสุด","schemas.text.max":"สูงสุด","schemas.text.fit":"พอดี","schemas.text.dynamicFontSize":"ขนาดตัวอักษรแบบไดนามิก","schemas.barcodes.barColor":"สีบาร์","schemas.barcodes.includetext":"รวมข้อความ"},dictIt={cancel:"Annulla",field:"Campo",fieldName:"Nome",align:"Allinea",width:"Larghezza",height:"Altezza",opacity:"Opacità",rotate:"Ruota",edit:"Modifica",plsInputName:"Inserisci il nome per favore",fieldMustUniq:"Il nome del campo non è univoco",notUniq:"(Nome non univoco)",noKeyName:"Nessun nome",fieldsList:"Lista campi",addNewField:"Aggiungi un campo",editField:"Modifica campo",type:"Tipo",errorOccurred:"Riscontrato errore",errorBulkUpdateFieldName:"Non è possibile salvare le modifiche perché il numero di elementi è cambiato.",commitBulkUpdateFieldName:"Salva cambiamenti",bulkUpdateFieldName:"Modifica nomi campi in blocco",hexColorPrompt:"Inserisci un codice colore esadecimale valido.","schemas.color":"Colore","schemas.borderWidth":"Spessore bordo","schemas.borderColor":"Colore bordo","schemas.textColor":"Colore testo","schemas.bgColor":"Colore sfondo","schemas.horizontal":"Orizzontale","schemas.vertical":"Verticale","schemas.left":"Sinistra","schemas.center":"Centro","schemas.right":"Destra","schemas.top":"Sopra","schemas.middle":"Medio","schemas.bottom":"Sotto","schemas.text.fontName":"Nome del font","schemas.text.size":"Dimensione","schemas.text.spacing":"Spaziatura","schemas.text.textAlign":"Allineamento testo","schemas.text.verticalAlign":"Allineamento verticale","schemas.text.lineHeight":"Altezza della linea","schemas.text.min":"Minimo","schemas.text.max":"Massimo","schemas.text.fit":"Adatta","schemas.text.dynamicFontSize":"Dimensione font dinamica","schemas.barcodes.barColor":"Colore barra","schemas.barcodes.includetext":"Includi testo"},dictPl={cancel:"Anuluj",field:"pole",fieldName:"Klucz pola",align:"Wyrównanie",width:"Szerokość",height:"Wysokość",opacity:"przezroczystość",rotate:"Obrót",edit:"Edytuj",plsInputName:"Wymagane wprowadzenie klucza pola",fieldMustUniq:"Klucz pola nie jest unikalny",notUniq:"(Klucz pola nie jest unikalny)",noKeyName:"Brak nazwy klucza pola",fieldsList:"Lista pól",addNewField:"Dodaj nowe pole",editField:"Edytuj pole",type:"Typ pola",errorOccurred:"Wystąpił błąd",errorBulkUpdateFieldName:"Nie można wprowadzić zmian ponieważ liczba elementów uległa zmianie.",commitBulkUpdateFieldName:"Zaakceptuj zmiany",bulkUpdateFieldName:"Masowo aktualizuj klucze pól",hexColorPrompt:"Wprowadź poprawny kod koloru szesnastkowego.","schemas.color":"Kolor","schemas.borderWidth":"Szerokość obramowania","schemas.borderColor":"Kolor obramowania","schemas.textColor":"Kolor tekstu","schemas.bgColor":"Kolor tła","schemas.horizontal":"Poziomo","schemas.vertical":"Pionowo","schemas.left":"Lewo","schemas.center":"Centrum","schemas.right":"Prawo","schemas.top":"Góra","schemas.middle":"Środek","schemas.bottom":"Dół","schemas.text.fontName":"Nazwa czcionki","schemas.text.size":"Rozmiar","schemas.text.spacing":"Odstępy","schemas.text.textAlign":"Wyrównanie tekstu","schemas.text.verticalAlign":"Wyrównanie pionowe","schemas.text.lineHeight":"Wysokość linii","schemas.text.min":"Minimum","schemas.text.max":"Maksimum","schemas.text.fit":"Dopasowanie","schemas.text.dynamicFontSize":"Dynamiczny rozmiar czcionki","schemas.barcodes.barColor":"Kolor paska","schemas.barcodes.includetext":"Dołącz tekst"},dictDe={cancel:"Abbrechen",field:"Feld",fieldName:"Name",align:"Ausrichten",width:"Breite",height:"Höhe",opacity:"Opazität",rotate:"Drehen",edit:"Bearbeiten",plsInputName:"Bitte geben Sie einen Namen ein",fieldMustUniq:"Feldname ist nicht eindeutig",notUniq:"(Nicht eindeutiger Name)",noKeyName:"Kein Name",fieldsList:"Feldliste",addNewField:"Neues Feld hinzufügen",editField:"Feld bearbeiten",type:"Typ",errorOccurred:"Ein Fehler ist aufgetreten",errorBulkUpdateFieldName:"Die Änderung kann nicht übernommen werden, weil die Anzahl der Elemente geändert wurde.",commitBulkUpdateFieldName:"Änderungen übernehmen",bulkUpdateFieldName:"Mehrfachaktualisierung der Feldnamen",hexColorPrompt:"Bitte geben Sie einen gültigen Hex-Farbcode ein.","schemas.color":"Farbe","schemas.borderWidth":"Rahmenbreite","schemas.borderColor":"Rahmenfarbe","schemas.textColor":"Textfarbe","schemas.bgColor":"Hintergrundfarbe","schemas.horizontal":"Horizontal","schemas.vertical":"Vertikal","schemas.left":"Links","schemas.center":"Zentriert","schemas.right":"Rechts","schemas.top":"Oben","schemas.middle":"Mitte","schemas.bottom":"Unten","schemas.text.fontName":"Schriftart","schemas.text.size":"Größe","schemas.text.spacing":"Abstand","schemas.text.textAlign":"Ausrichtung","schemas.text.verticalAlign":"vert. Ausr.","schemas.text.lineHeight":"Zeilenhöhe","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Anpassen","schemas.text.dynamicFontSize":"Dynamische Schriftgröße","schemas.barcodes.barColor":"Strichcodefarbe","schemas.barcodes.includetext":"Text anzeigen"},dictEs={cancel:"Cancelar",field:"campo",fieldName:"Nombre",align:"Alinear",width:"Anchura",height:"Altura",opacity:"Opacidad",rotate:"Rotar",edit:"Editar",plsInputName:"Introduce el nombre",fieldMustUniq:"El nombre del campo no es único",notUniq:"(Nombre no único)",noKeyName:"Sin nombre",fieldsList:"Lista de campos",addNewField:"Añadir un nuevo campo",editField:"Editar campo",type:"Tipo",errorOccurred:"Ocurrió un error",errorBulkUpdateFieldName:"No se puede confirmar el cambio porque el número de elementos ha cambiado.",commitBulkUpdateFieldName:"Confirmar cambios",bulkUpdateFieldName:"Actualizar en bloque el nombre de los campos",hexColorPrompt:"Introduce un código de color hexadecimal válido.","schemas.color":"Color","schemas.borderWidth":"Ancho del borde","schemas.borderColor":"Color del borde","schemas.textColor":"Color del texto","schemas.bgColor":"Color del fondo","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Izquierda","schemas.center":"Centro","schemas.right":"Derecha","schemas.top":"Arriba","schemas.middle":"Medio","schemas.bottom":"Abajo","schemas.text.fontName":"Nombre de la fuente","schemas.text.size":"Tamaño","schemas.text.spacing":"Espaciado","schemas.text.textAlign":"Alineación del texto","schemas.text.verticalAlign":"Alineación vertical","schemas.text.lineHeight":"Altura de línea","schemas.text.min":"Mín","schemas.text.max":"Máx","schemas.text.fit":"Ajustar","schemas.text.dynamicFontSize":"Tamaño de fuente dinámico","schemas.barcodes.barColor":"Color de la barra","schemas.barcodes.includetext":"Incluir texto"},dictionaries={en:dictEn,ja:dictJa,ar:dictAr,th:dictTh,it:dictIt,pl:dictPl,de:dictDe,es:dictEs},getDict=a=>dictionaries[a]||dictionaries[DEFAULT_LANG],i18n=(a,s)=>(s||getDict(DEFAULT_LANG))[a],I18nContext=reactExports.createContext(i18n),FontContext=reactExports.createContext(getDefaultFont()),PluginsRegistry=reactExports.createContext(builtInPlugins),OptionsContext=reactExports.createContext({});var ArrowLeftOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ArrowLeftOutlinedSvg=ArrowLeftOutlined$2;var ArrowLeftOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ArrowLeftOutlinedSvg}))};const ArrowLeftOutlined$1=reactExports.forwardRef(ArrowLeftOutlined);var ArrowRightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const ArrowRightOutlinedSvg=ArrowRightOutlined$2;var ArrowRightOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ArrowRightOutlinedSvg}))};const ArrowRightOutlined$1=reactExports.forwardRef(ArrowRightOutlined);var ExclamationCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const ExclamationCircleOutlinedSvg=ExclamationCircleOutlined$2;var ExclamationCircleOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ExclamationCircleOutlinedSvg}))};const ExclamationCircleOutlined$1=reactExports.forwardRef(ExclamationCircleOutlined);var MenuOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const MenuOutlinedSvg=MenuOutlined$2;var MenuOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:MenuOutlinedSvg}))};const MenuOutlined$1=reactExports.forwardRef(MenuOutlined);var MinusOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};const MinusOutlinedSvg=MinusOutlined$2;var MinusOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:MinusOutlinedSvg}))};const MinusOutlined$1=reactExports.forwardRef(MinusOutlined);function useCombinedRefs(){for(var a=arguments.length,s=new Array(a),$=0;$<a;$++)s[$]=arguments[$];return reactExports.useMemo(()=>_=>{s.forEach(_e=>_e(_))},s)}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function isWindow$3(a){const s=Object.prototype.toString.call(a);return s==="[object Window]"||s==="[object global]"}function isNode$1(a){return"nodeType"in a}function getWindow$1(a){var s,$;return a?isWindow$3(a)?a:isNode$1(a)&&(s=($=a.ownerDocument)==null?void 0:$.defaultView)!=null?s:window:window}function isDocument(a){const{Document:s}=getWindow$1(a);return a instanceof s}function isHTMLElement(a){return isWindow$3(a)?!1:a instanceof getWindow$1(a).HTMLElement}function isSVGElement(a){return a instanceof getWindow$1(a).SVGElement}function getOwnerDocument(a){return a?isWindow$3(a)?a.document:isNode$1(a)?isDocument(a)?a:isHTMLElement(a)||isSVGElement(a)?a.ownerDocument:document:document:document}const useIsomorphicLayoutEffect=canUseDOM?reactExports.useLayoutEffect:reactExports.useEffect;function useEvent(a){const s=reactExports.useRef(a);return useIsomorphicLayoutEffect(()=>{s.current=a}),reactExports.useCallback(function(){for(var $=arguments.length,_=new Array($),_e=0;_e<$;_e++)_[_e]=arguments[_e];return s.current==null?void 0:s.current(..._)},[])}function useInterval(){const a=reactExports.useRef(null),s=reactExports.useCallback((_,_e)=>{a.current=setInterval(_,_e)},[]),$=reactExports.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]);return[s,$]}function useLatestValue(a,s){s===void 0&&(s=[a]);const $=reactExports.useRef(a);return useIsomorphicLayoutEffect(()=>{$.current!==a&&($.current=a)},s),$}function useLazyMemo(a,s){const $=reactExports.useRef();return reactExports.useMemo(()=>{const _=a($.current);return $.current=_,_},[...s])}function useNodeRef(a){const s=useEvent(a),$=reactExports.useRef(null),_=reactExports.useCallback(_e=>{_e!==$.current&&(s==null||s(_e,$.current)),$.current=_e},[]);return[$,_]}function usePrevious$1(a){const s=reactExports.useRef();return reactExports.useEffect(()=>{s.current=a},[a]),s.current}let ids={};function useUniqueId(a,s){return reactExports.useMemo(()=>{if(s)return s;const $=ids[a]==null?0:ids[a]+1;return ids[a]=$,a+"-"+$},[a,s])}function createAdjustmentFn(a){return function(s){for(var $=arguments.length,_=new Array($>1?$-1:0),_e=1;_e<$;_e++)_[_e-1]=arguments[_e];return _.reduce((tt,nt)=>{const at=Object.entries(nt);for(const[ot,rt]of at){const st=tt[ot];st!=null&&(tt[ot]=st+a*rt)}return tt},{...s})}}const add$1=createAdjustmentFn(1),subtract=createAdjustmentFn(-1);function hasViewportRelativeCoordinates(a){return"clientX"in a&&"clientY"in a}function isKeyboardEvent(a){if(!a)return!1;const{KeyboardEvent:s}=getWindow$1(a.target);return s&&a instanceof s}function isTouchEvent(a){if(!a)return!1;const{TouchEvent:s}=getWindow$1(a.target);return s&&a instanceof s}function getEventCoordinates(a){if(isTouchEvent(a)){if(a.touches&&a.touches.length){const{clientX:s,clientY:$}=a.touches[0];return{x:s,y:$}}else if(a.changedTouches&&a.changedTouches.length){const{clientX:s,clientY:$}=a.changedTouches[0];return{x:s,y:$}}}return hasViewportRelativeCoordinates(a)?{x:a.clientX,y:a.clientY}:null}const CSS$1=Object.freeze({Translate:{toString(a){if(!a)return;const{x:s,y:$}=a;return"translate3d("+(s?Math.round(s):0)+"px, "+($?Math.round($):0)+"px, 0)"}},Scale:{toString(a){if(!a)return;const{scaleX:s,scaleY:$}=a;return"scaleX("+s+") scaleY("+$+")"}},Transform:{toString(a){if(a)return[CSS$1.Translate.toString(a),CSS$1.Scale.toString(a)].join(" ")}},Transition:{toString(a){let{property:s,duration:$,easing:_}=a;return s+" "+$+"ms "+_}}}),SELECTOR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function findFirstFocusableNode(a){return a.matches(SELECTOR)?a:a.querySelector(SELECTOR)}const hiddenStyles={display:"none"};function HiddenText(a){let{id:s,value:$}=a;return React$a.createElement("div",{id:s,style:hiddenStyles},$)}function LiveRegion(a){let{id:s,announcement:$,ariaLiveType:_="assertive"}=a;const _e={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return React$a.createElement("div",{id:s,style:_e,role:"status","aria-live":_,"aria-atomic":!0},$)}function useAnnouncement(){const[a,s]=reactExports.useState("");return{announce:reactExports.useCallback(_=>{_!=null&&s(_)},[]),announcement:a}}const DndMonitorContext=reactExports.createContext(null);function useDndMonitor(a){const s=reactExports.useContext(DndMonitorContext);reactExports.useEffect(()=>{if(!s)throw new Error("useDndMonitor must be used within a children of <DndContext>");return s(a)},[a,s])}function useDndMonitorProvider(){const[a]=reactExports.useState(()=>new Set),s=reactExports.useCallback(_=>(a.add(_),()=>a.delete(_)),[a]);return[reactExports.useCallback(_=>{let{type:_e,event:tt}=_;a.forEach(nt=>{var at;return(at=nt[_e])==null?void 0:at.call(nt,tt)})},[a]),s]}const defaultScreenReaderInstructions={draggable:`
586
586
  To pick up a draggable item, press the space bar.
587
587
  While dragging, use the arrow keys to move the item.
588
588
  Press space again to drop the item in its new position, or press escape to cancel.
@@ -10,7 +10,7 @@ export declare abstract class BaseUIClass {
10
10
  private readonly setSize;
11
11
  resizeObserver: ResizeObserver;
12
12
  constructor(props: UIProps);
13
- protected getLang(): "en" | "th" | "ja" | "ar" | "pl" | "it" | "de";
13
+ protected getLang(): "en" | "th" | "ja" | "ar" | "pl" | "it" | "de" | "es";
14
14
  protected getFont(): Record<string, {
15
15
  data: (string | Uint8Array | ArrayBuffer) & (string | Uint8Array | ArrayBuffer | undefined);
16
16
  fallback?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/ui",
3
- "version": "3.4.2-dev.1",
3
+ "version": "3.4.3-dev.1",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
package/src/i18n.ts CHANGED
@@ -354,6 +354,57 @@ const dictDe: { [key in keyof Dict]: string } = {
354
354
  'schemas.barcodes.includetext': 'Text anzeigen',
355
355
  };
356
356
 
357
+ const dictEs: { [key in keyof Dict]: string } = {
358
+ cancel: 'Cancelar',
359
+ field: 'campo',
360
+ fieldName: 'Nombre',
361
+ align: 'Alinear',
362
+ width: 'Anchura',
363
+ height: 'Altura',
364
+ opacity: 'Opacidad',
365
+ rotate: 'Rotar',
366
+ edit: 'Editar',
367
+ plsInputName: 'Introduce el nombre',
368
+ fieldMustUniq: 'El nombre del campo no es único',
369
+ notUniq: '(Nombre no único)',
370
+ noKeyName: 'Sin nombre',
371
+ fieldsList: 'Lista de campos',
372
+ addNewField: 'Añadir un nuevo campo',
373
+ editField: 'Editar campo',
374
+ type: 'Tipo',
375
+ errorOccurred: 'Ocurrió un error',
376
+ errorBulkUpdateFieldName:
377
+ 'No se puede confirmar el cambio porque el número de elementos ha cambiado.',
378
+ commitBulkUpdateFieldName: 'Confirmar cambios',
379
+ bulkUpdateFieldName: 'Actualizar en bloque el nombre de los campos',
380
+ hexColorPrompt: 'Introduce un código de color hexadecimal válido.',
381
+ 'schemas.color': 'Color',
382
+ 'schemas.borderWidth': 'Ancho del borde',
383
+ 'schemas.borderColor': 'Color del borde',
384
+ 'schemas.textColor': 'Color del texto',
385
+ 'schemas.bgColor': 'Color del fondo',
386
+ 'schemas.horizontal': 'Horizontal',
387
+ 'schemas.vertical': 'Vertical',
388
+ 'schemas.left': 'Izquierda',
389
+ 'schemas.center': 'Centro',
390
+ 'schemas.right': 'Derecha',
391
+ 'schemas.top': 'Arriba',
392
+ 'schemas.middle': 'Medio',
393
+ 'schemas.bottom': 'Abajo',
394
+ 'schemas.text.fontName': 'Nombre de la fuente',
395
+ 'schemas.text.size': 'Tamaño',
396
+ 'schemas.text.spacing': 'Espaciado',
397
+ 'schemas.text.textAlign': 'Alineación del texto',
398
+ 'schemas.text.verticalAlign': 'Alineación vertical',
399
+ 'schemas.text.lineHeight': 'Altura de línea',
400
+ 'schemas.text.min': 'Mín',
401
+ 'schemas.text.max': 'Máx',
402
+ 'schemas.text.fit': 'Ajustar',
403
+ 'schemas.text.dynamicFontSize': 'Tamaño de fuente dinámico',
404
+ 'schemas.barcodes.barColor': 'Color de la barra',
405
+ 'schemas.barcodes.includetext': 'Incluir texto',
406
+ };
407
+
357
408
  const dictionaries: { [key in Lang]: Dict } = {
358
409
  en: dictEn,
359
410
  ja: dictJa,
@@ -362,6 +413,7 @@ const dictionaries: { [key in Lang]: Dict } = {
362
413
  it: dictIt,
363
414
  pl: dictPl,
364
415
  de: dictDe,
416
+ es: dictEs,
365
417
  };
366
418
 
367
419
  export const getDict = (lang: Lang): Dict => dictionaries[lang] || dictionaries[DEFAULT_LANG];