@emailmaker/emailmaker 1.1.27 → 1.1.30
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/{emailmaker-core.06547314.js → emailmaker-core.2378a16e.js} +1 -1
- package/emailmaker-esm.js +4 -4
- package/emailmaker.d.ts +9 -3
- package/emailmaker.js +12 -12
- package/iframe/js/amp.BLBsfH3J.js +1 -0
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.CNqvmp_P.js +1 -1
- package/package.json +1 -1
- package/runtime/@ant-design/cssinjs/index.js +1 -1
- package/runtime/@ant-design/icons/index.js +1 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +536 -665
- package/runtime/antd/index.js +1 -1
- package/runtime/dayjs/index.js +1 -1
- package/runtime/react-router-dom/index.js +1 -1
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/1a531120.js +1 -0
- package/static/core/1c4f1288.js +1 -0
- package/static/core/24359c2b2.js +1 -0
- package/static/core/25d26369.js +506 -0
- package/static/core/2a386d94.js +1 -0
- package/static/core/2c8c1708.js +1 -0
- package/static/core/{d5fdc4a4.js → 3509b8fe.js} +1 -1
- package/static/core/3c4d8253.js +3 -0
- package/static/core/4030e367.js +1 -0
- package/static/core/{4da0e58b.js → 4685dd44.js} +2 -2
- package/static/core/4a9d6b60.js +20 -0
- package/static/core/4d479101.js +1 -0
- package/static/core/4d7a8040.js +51 -0
- package/static/core/{ca5b168d.js → 50b3488f.js} +4 -4
- package/static/core/558afaa1.js +1 -0
- package/static/core/5ef557ea.js +895 -0
- package/static/core/{8bfabb4b.js → 6301b88d.js} +3 -3
- package/static/core/6684fd2f.js +1 -0
- package/static/core/69624945.js +1 -0
- package/static/core/69be5772.js +4 -0
- package/static/core/816e810f.js +1 -0
- package/static/core/81b54c02.js +1 -0
- package/static/core/872f2250.js +1 -0
- package/static/core/8d43cba9.js +1 -0
- package/static/core/{3ba2a2df.js → 91634ef3.js} +1 -1
- package/static/core/94c870c4.js +1 -0
- package/static/core/a7e4541a2.js +1 -0
- package/static/core/b15cf28a.js +1 -0
- package/static/core/b17207dd.js +1 -0
- package/static/core/b7559974.js +1 -0
- package/static/core/b8fdbfee.js +1 -0
- package/static/core/c229e862.js +1 -0
- package/static/core/{b949d092.js → ca58f6cf.js} +2 -2
- package/static/core/dd3de504.js +1 -0
- package/static/core/{2834aa992.js → e462ce36.js} +1 -1
- package/static/core/e4ba0190.js +1 -0
- package/static/core/e52ae9f3.js +1 -0
- package/static/core/ed6c0f8c.js +78 -0
- package/static/core/f7436c59.js +1 -0
- package/static/esm/{e2baef14.js → cce60606.js} +1 -1
- package/static/esm/{b9d66884.js → fd91741d.js} +1 -1
- package/static/runtime/DownloadOutlined-C-5Yi5xA.js +76 -0
- package/static/runtime/dayjs.min-7qDGpCH7.js +1 -0
- package/static/runtime/defineProperty-DxTQfsxO.js +1 -0
- package/static/runtime/dist-C0p5hVla.js +2 -0
- package/static/runtime/es-DhckSY88.js +315 -0
- package/static/runtime/es-jkBfKdP4.js +2 -0
- package/static/runtime/es-rvjSIqny.js +1 -0
- package/two_step_headless_plugin.html +1 -1
- package/ui-kit/index.js +2041 -1934
- package/iframe/js/amp.BbapYQ7c.js +0 -1
- package/static/core/17465e1c.js +0 -1
- package/static/core/18a6d849.js +0 -1
- package/static/core/22b69a93.js +0 -1
- package/static/core/265a0618.js +0 -51
- package/static/core/3534defe.js +0 -1
- package/static/core/3cb2fef0.js +0 -1
- package/static/core/3dfe5446.js +0 -1
- package/static/core/4cddd021.js +0 -1
- package/static/core/59092da8.js +0 -1
- package/static/core/5dd75b49.js +0 -1
- package/static/core/6722afef.js +0 -3
- package/static/core/6c2b8cb5.js +0 -471
- package/static/core/74011820.js +0 -1
- package/static/core/79109d5b.js +0 -78
- package/static/core/7aa95ea1.js +0 -1
- package/static/core/7eebfbce.js +0 -1
- package/static/core/837725bd.js +0 -1
- package/static/core/85496899.js +0 -1
- package/static/core/92ad1565.js +0 -596
- package/static/core/94e76300.js +0 -1
- package/static/core/986fd329.js +0 -1
- package/static/core/a3e9b2eb.js +0 -20
- package/static/core/b33fb533.js +0 -1
- package/static/core/bb856264.js +0 -1
- package/static/core/c00287f4.js +0 -1
- package/static/core/cab85799.js +0 -1
- package/static/core/cb2faa14.js +0 -1
- package/static/core/d80716fa.js +0 -1
- package/static/core/e46bb831.js +0 -1
- package/static/core/e7ac5f93.js +0 -1
- package/static/core/eba78550.js +0 -1
- package/static/core/ed4a83c82.js +0 -1
- package/static/core/f6e0d03e.js +0 -1
- package/static/core/f89f369f.js +0 -833
- package/static/runtime/DownloadOutlined-Czug__JA.js +0 -1
- package/static/runtime/dayjs.min-BktkwxcQ.js +0 -1
- package/static/runtime/dist-B1ZrbBVP.js +0 -2
- package/static/runtime/es-Dt0MDtMm.js +0 -5
- package/static/runtime/es-LbCQ86AJ.js +0 -444
- package/static/runtime/es-n8SS20ln.js +0 -55
- /package/iframe/{iframe-eblock.06547314.html → iframe-eblock.2378a16e.html} +0 -0
- /package/iframe/{iframe.06547314.html → iframe.2378a16e.html} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__emailmaker__.define(`static/core/6684fd2f.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/ef36d7f9.js`],function(e,t,n){e("./354bf8a9.js");let r=e("./ef36d7f9.js");var i={items_per_page:`/ pagina`,jump_to:`vai a`,jump_to_confirm:`Conferma`,page:`Pagina`,prev_page:`Pagina precedente`,next_page:`Pagina successiva`,prev_5:`Precedente 5 pagine`,next_5:`Prossime 5 pagine`,prev_3:`Precedente 3 pagine`,next_3:`Prossime 3 pagine`,page_size:`dimensioni della pagina`};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t=l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,`string`);return a(t)==`symbol`?t:String(t)}function u(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var d=s(s({},r.t),{},{locale:`it_IT`,today:`Oggi`,now:`Adesso`,backToToday:`Torna ad oggi`,ok:`OK`,clear:`Cancella`,week:`Settimana`,month:`Mese`,year:`Anno`,timeSelect:`Seleziona l'ora`,dateSelect:`Seleziona la data`,monthSelect:`Seleziona il mese`,yearSelect:`Seleziona l'anno`,decadeSelect:`Seleziona il decennio`,previousMonth:`Il mese scorso (PageUp)`,nextMonth:`Il prossimo mese (PageDown)`,previousYear:`L'anno scorso (Control + sinistra)`,nextYear:`L'anno prossimo (Control + destra)`,previousDecade:`Ultimo decennio`,nextDecade:`Prossimo decennio`,previousCentury:`Secolo precedente`,nextCentury:`Prossimo secolo`,shortWeekDays:[`Dom`,`Lun`,`Mar`,`Mer`,`Gio`,`Ven`,`Sab`],shortMonths:[`Gen`,`Feb`,`Mar`,`Apr`,`Mag`,`Giu`,`Lug`,`Ago`,`Set`,`Ott`,`Nov`,`Dic`]}),f={placeholder:`Selezionare l'orario`,rangePlaceholder:[`Inizio orario`,`Fine orario`]},p={lang:{placeholder:`Selezionare la data`,rangePlaceholder:[`Data d'inizio`,`Data di fine`],...d},timePickerLocale:{...f}},m=p,h=" ${label} non è un ${type} valido";t.default={locale:`it`,Pagination:i,DatePicker:p,TimePicker:f,Calendar:m,global:{placeholder:`Selezionare`,close:`Chiudi`,show:`Mostra`,hide:`Nascondi`},Table:{filterTitle:`Menù Filtro`,filterConfirm:`OK`,filterReset:`Reset`,filterEmptyText:`Senza filtri`,filterCheckAll:`Seleziona tutti`,filterSearchPlaceholder:`Cerca nei filtri`,emptyText:`Senza dati`,selectAll:`Seleziona pagina corrente`,selectInvert:`Inverti selezione nella pagina corrente`,selectNone:`Deseleziona tutto`,selectionAll:`Seleziona tutto`,sortTitle:`Ordina`,expand:`Espandi riga`,collapse:`Comprimi riga `,triggerDesc:`Clicca per ordinare in modo discendente`,triggerAsc:`Clicca per ordinare in modo ascendente`,cancelSort:`Clicca per eliminare l'ordinamento`},Tour:{Next:`Successivo`,Previous:`Precedente`,Finish:`Termina`},Modal:{okText:`OK`,cancelText:`Annulla`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Annulla`},Transfer:{titles:[``,``],searchPlaceholder:`Cerca qui`,itemUnit:`elemento`,itemsUnit:`elementi`,remove:`Elimina`,selectCurrent:`Seleziona la pagina corrente`,removeCurrent:`Rimuovi la pagina corrente`,selectAll:`Seleziona tutti i dati`,removeAll:`Rimuovi tutti i dati`,selectInvert:`Inverti la pagina corrente`},Upload:{uploading:`Caricamento...`,removeFile:`Rimuovi il file`,uploadError:`Errore di caricamento`,previewFile:`Anteprima file`,downloadFile:`Scarica file`},Empty:{description:`Nessun dato`},Icon:{icon:`icona`},Text:{edit:`modifica`,copy:`copia`,copied:`copia effettuata`,expand:`espandi`},Form:{optional:`(opzionale)`,defaultValidateMessages:{default:"Errore di convalida del campo ${label}",required:"Si prega di inserire ${label}",enum:"${label} deve essere uno di [${enum}]",whitespace:"${label} non può essere un carattere vuoto",date:{format:"Il formato della data ${label} non è valido",parse:"${label} non può essere convertito in una data",invalid:"${label} non è una data valida"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label} deve avere ${len} caratteri",min:"${label} deve contenere almeno ${min} caratteri",max:"${label} deve contenere fino a ${max} caratteri",range:"${label} deve contenere tra ${min}-${max} caratteri"},number:{len:"${label} deve essere uguale a ${len}",min:"${label} valore minimo è ${min}",max:"${label} valor e massimo è ${max}",range:"${label} deve essere compreso tra ${min}-${max}"},array:{len:"Deve essere ${len} ${label}",min:"Almeno ${min} ${label}",max:"Massimo ${max} ${label}",range:"Il totale di ${label} deve essere compreso tra ${min}-${max}"},pattern:{mismatch:"${label} non corrisponde al modello ${pattern}"}}},QRCode:{expired:`Codice QR scaduto`,refresh:`Ricarica`,scanned:`Scansionato`},ColorPicker:{presetEmpty:`Vuoto`,transparent:`Trasparente`,singleColor:`Tinta unita`,gradientColor:`Gradiente`}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__emailmaker__.define(`static/core/69624945.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/ef36d7f9.js`],function(e,t,n){e("./354bf8a9.js");let r=e("./ef36d7f9.js");var i={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t=l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,`string`);return a(t)==`symbol`?t:String(t)}function u(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var d=s(s({},r.t),{},{locale:`zh_CN`,today:`今天`,now:`此刻`,backToToday:`返回今天`,ok:`确定`,timeSelect:`选择时间`,dateSelect:`选择日期`,weekSelect:`选择周`,clear:`清除`,week:`周`,month:`月`,year:`年`,previousMonth:`上个月 (翻页上键)`,nextMonth:`下个月 (翻页下键)`,monthSelect:`选择月份`,yearSelect:`选择年份`,decadeSelect:`选择年代`,previousYear:`上一年 (Control键加左方向键)`,nextYear:`下一年 (Control键加右方向键)`,previousDecade:`上一年代`,nextDecade:`下一年代`,previousCentury:`上一世纪`,nextCentury:`下一世纪`,yearFormat:`YYYY年`,cellDateFormat:`D`,monthBeforeYear:!1}),f={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]},p={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...d},timePickerLocale:{...f}};p.lang.ok=`确定`;var m=p,h="${label}不是一个有效的${type}";t.default={locale:`zh-cn`,Pagination:i,DatePicker:p,TimePicker:f,Calendar:m,global:{placeholder:`请选择`,close:`关闭`,sortable:`可排序`,show:`显示`,hide:`隐藏`},Table:{filterTitle:`筛选`,filterConfirm:`确定`,filterReset:`重置`,filterEmptyText:`无筛选项`,filterCheckAll:`全选`,filterSearchPlaceholder:`在筛选项中搜索`,emptyText:`暂无数据`,selectAll:`全选当页`,selectInvert:`反选当页`,selectNone:`清空所有`,selectionAll:`全选所有`,sortTitle:`排序`,expand:`展开行`,collapse:`关闭行`,triggerDesc:`点击降序`,triggerAsc:`点击升序`,cancelSort:`取消排序`},Modal:{okText:`确定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`结束导览`},Popconfirm:{cancelText:`取消`,okText:`确定`},Transfer:{titles:[``,``],searchPlaceholder:`请输入搜索内容`,itemUnit:`项`,itemsUnit:`项`,remove:`删除`,selectCurrent:`全选当页`,removeCurrent:`删除当页`,selectAll:`全选所有`,deselectAll:`取消全选`,removeAll:`删除全部`,selectInvert:`反选当页`},Upload:{uploading:`文件上传中`,removeFile:`删除文件`,uploadError:`上传错误`,previewFile:`预览文件`,downloadFile:`下载文件`},Empty:{description:`暂无数据`},Icon:{icon:`图标`},Text:{edit:`编辑`,copy:`复制`,copied:`复制成功`,expand:`展开`,collapse:`收起`},Form:{optional:`(可选)`,defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:`二维码过期`,refresh:`点击刷新`,scanned:`已扫描`},ColorPicker:{presetEmpty:`暂无`,transparent:`无色`,singleColor:`单色`,gradientColor:`渐变色`}}});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-emailmaker`,`true`),e.appendChild(document.createTextNode(`.blocks-app .image-preview{text-align:center;min-height:100px;position:relative}.blocks-app .image-preview .image-editor-modal{border:1px solid red}.blocks-app .image-preview__edit-button{position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-preview img{border:1px solid var(--colorBorder);border-radius:6px;max-width:100%;max-height:500px}.blocks-app .image-editor-modal .ant-modal-container{flex-direction:column;min-height:100vh;display:flex;border-radius:0!important}.blocks-app .image-editor-modal .ant-modal-body{flex-grow:1;display:flex}.blocks-app .image-editor-modal .ant-modal-body #pixie-editor{flex-grow:1;height:calc(100vh - 70px);min-height:calc(100vh - 70px);overflow:hidden}.blocks-app .image-editor-modal .pi .text-on-primary{background:var(--colorPrimary);border-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary:hover{background:var(--colorPrimaryHover);border-color:var(--colorPrimaryHover)}.blocks-app .image-editor-modal .pi .text-on-primary.rounded-full{border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .image-editor-modal .pi .shadow-xl{box-shadow:none}.blocks-app .image-editor-modal .w-\\[4ch\\].text-sm.text-center{width:5ch}.blocks-app .image-editor-modal .pi .border-white{border-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .bg-white\\/50{background-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary{color:var(--colorWhite)}.blocks-app .serach-results .ant-row{align-items:center}.blocks-app .serach-results .blocks-search__divider-wrapper{margin-top:12px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{border-top:1px solid var(--colorBorderSecondary);background:0 0;width:100%;height:1px;min-height:0;margin:0;position:static}.blocks-app .slideshow-container{width:524px;height:350px;margin:auto;position:relative;overflow:hidden}.blocks-app .slideshow-image{opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .image-ai .slideshow-image{width:auto;height:auto}.blocks-app .image-ai__image-item{text-align:center;border-radius:6px;justify-content:center;align-items:center;min-height:100px;display:flex;position:relative}.blocks-app .image-ai__image-item .buttons{justify-content:space-between;display:flex;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-ai .text-area-input-hybrid{border:none;outline:none;min-height:0;padding:0 0 0 1px}.blocks-app .image-ai .text-area-input-hybrid textarea{height:32px;min-height:32px;padding:3px 11px;line-height:26px}.blocks-app .image-ai__loading{justify-content:center;align-items:center;min-height:150px;display:flex}.blocks-app .image-ai__loading .spin{flex-direction:column;justify-content:center;align-items:center;height:150px;display:flex}.blocks-app .image-ai__loading .status{margin:3px 0 0}.blocks-app .image-ai__preview{border-radius:6px;margin-top:24px;overflow:hidden}.blocks-app .image-ai__preview .image-ai__image-item img{border-radius:calc(var(--borderRadius) * 1px);object-fit:contain;max-height:100%;transition:height 1s;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.blocks-app .image-ai .small{width:302px;height:202px}.blocks-app .image-ai .large{width:524px;height:350px}.blocks-app .image-ai .image-ai__row{padding:0 2px}.blocks-app .image-ai .image-ai__input-affix-wrapper{border-style:solid;border-width:calc(var(--borderWidth) * 1px);border-color:var(--colorFillSecondaryDarken);border-radius:calc(var(--borderRadius) * 1px);width:100%;padding-left:0;display:inline-flex}.blocks-app .image-ai .image-ai__input-affix-wrapper:hover{border-color:var(--borderColorHover)}.blocks-app .image-ai .image-ai__input-affix-wrapper.ant-input-affix-wrapper-focused{border-color:var(--colorPrimaryBorder)}.blocks-app .image-ai .image-ai__textarea{font-size:16px}.blocks-app .image-ai .image-ai__input-icon{font-size:16px;top:0;right:0}.dark .blocks-app .image-ai .image-ai__preview .image-ai__image-item img{background:#2b2b2b;border:1px solid #434343}.dark .blocks-app .image-ai .ant-btn{background:#1f1f1f}.dark .blocks-app .image-ai .ant-btn:hover{color:var(--colorPrimary)}.blocks-app .stock-tab img{border-radius:0;max-width:none;max-height:none}.blocks-app .stock-tab .stock-search-input{padding:0 2px}.blocks-app .stock-tab .my-masonry-grid{text-align:center;width:auto;display:flex}.blocks-app .stock-tab .my-masonry-grid_column{background-clip:padding-box}.blocks-app .stock-tab .list-item{cursor:pointer;background:#f0f2f5;border:1px solid #f0f2f5;border-radius:6px;min-height:100px;max-height:100px;margin-bottom:20px;transition:all .3s;display:inline-block;position:relative;overflow:hidden}.blocks-app .stock-tab .list-item .overlay-image{opacity:0;background-size:cover;width:110px;height:40px;transition:opacity .5s;position:absolute;bottom:10px;right:10px}.blocks-app .stock-tab .list-item .ant-spin{color:#f0f2f5;font-size:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.blocks-app .stock-tab .list-item img{object-fit:cover;opacity:0;border-radius:6px;height:auto;transition:opacity .5s ease-in-out;display:block}.blocks-app .stock-tab .list-item.loaded{border:1px solid #d9d9d9;max-height:1000px}.blocks-app .stock-tab .list-item.loaded img{opacity:1;height:100%}.blocks-app .stock-tab .list-item.loaded .loaded-image{opacity:.5}.blocks-app .stock-tab .list-item:hover{box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017}.blocks-app .stock-tab .list-item:hover p.creator-info,.blocks-app .stock-tab .list-item:hover .overlay-image{opacity:1}.blocks-app .stock-tab .list-item p.creator-info{color:#fff;opacity:0;background-color:#00000080;border-radius:0 0 6px;margin:0;padding:5px;font-size:10px;line-height:1.2;position:absolute;bottom:0;right:0}.blocks-app .stock-tab .list-item p.creator-info:hover a{color:#fff;text-decoration:underline}.blocks-app .stock-tab .list-item p.creator-info a{color:#fff;text-decoration:none}.blocks-app .stock-color-filter{display:flex}.blocks-app .stock-color-filter label{border-width:1px;width:24px;height:24px;margin:4px;padding:0;font-size:0;border-radius:6px!important}.blocks-app .stock-color-filter label.all-colors{background-image:linear-gradient(135deg,red,#ff7f00,#ff0,#0f0,#00f,#8b00ff)}.blocks-app .stock-color-filter label.black-color{background:#222}.blocks-app .stock-color-filter label.bw-color{background-image:linear-gradient(135deg,#222 50%,#fff 50%)}.blocks-app .stock-color-filter label.white-color{background:#fff}.blocks-app .stock-color-filter label.orange-color{background:#fa8c16}.blocks-app .stock-color-filter label.red-color{background:#f5222d}.blocks-app .stock-color-filter label.purple-color{background:#722ed1}.blocks-app .stock-color-filter label.magenta-color{background:#eb2f96}.blocks-app .stock-color-filter label.green-color{background:#52c41a}.blocks-app .stock-color-filter label.teal-color{background:#43c3c3}.blocks-app .stock-color-filter label.blue-color{background:#1677ff}.blocks-app .stock-color-filter .ant-radio-button-wrapper:not(:first-child):before{display:none}.blocks-app .serach-results{padding-top:6px}.blocks-app .serach-results .stock-search-input{width:322px;padding:0 2px}.blocks-app .serach-results .blocks-search__divider-wrapper{width:calc(100% + 48px);margin-top:12px;margin-left:-24px;margin-right:-24px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{pointer-events:none;border-top:1px solid var(--colorBorderSecondary);background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-bottom:none;width:100%;height:20px;min-height:20px;margin:0;position:relative;bottom:auto;left:auto;right:auto}.dark .blocks-app .image-center .stock-tab .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.dark .blocks-app .stock-tab .list-item{background:#2b2b2b;border:1px solid #2b2b2b}.dark .blocks-app .stock-tab .list-item.loaded{border:1px solid #434343}.blocks-app .image-center .image-center-image-preview{justify-content:center;align-items:center;display:flex}.blocks-app .image-center .ant-divider-horizontal{pointer-events:none;z-index:1;background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);width:calc(100% + 48px);height:20px;margin:24px -24px 0;position:absolute;bottom:-19px}.dark .blocks-app .image-center .ant-divider-horizontal{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.blocks-app .image-center .ant-divider-horizontal.ant-divider-with-text{background:0 0;width:calc(100% + 38px);margin:0 -24px 20px;position:relative;top:0}.blocks-app .image-center img{border-radius:4px;max-width:524px;max-height:352px}.blocks-app .image-center .image-size{justify-content:center;margin-top:6px;font-size:14px;line-height:22px;display:flex}.blocks-app .image-center .ant-upload.ant-upload-drag{border-radius:6px}.blocks-app .image-center .ant-modal-body .stock-search-input{margin-bottom:0}.blocks-app .image-center .ant-modal-body .serach-results .stock-search-input{margin-bottom:10px}.blocks-app .image-center .ant-modal-body .ant-form:not(.serach-results) .ant-form-item:last-child{margin-bottom:0}.blocks-app .image-center .ant-modal-body .ant-tabs{transition:all .7s cubic-bezier(.075,.82,.165,1)}.blocks-app .image-center .ant-modal-body .ant-tabs .ant-tabs-content-holder{overflow-y:clip}.blocks-app .ant-modal{transition:width .7s ease-in-out}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();__emailmaker__.define(`static/core/69be5772.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/4d7a8040.js`,`static/core/25d26369.js`,`static/core/24359c2b2.js`,`static/core/3c4d8253.js`,`static/core/4a9d6b60.js`,`static/core/4685dd44.js`,`react`,`prop-types`,`react-router-dom`,`react/jsx-runtime`],function(e,t,n){let r=e("./354bf8a9.js"),i=e("./4d7a8040.js"),a=e("./4685dd44.js"),o=e("./3c4d8253.js"),s=e("./25d26369.js"),c=e("./24359c2b2.js"),l=e("./4a9d6b60.js"),u=e("react");u=r.l(u);let d=e("prop-types");d=r.l(d);let f=e("react-router-dom"),p=e("react/jsx-runtime");function m(e,t){return{[e]:{Filter:t(`Filter`),filter:t(`filter`),Resize:t(`Resize`),resize:t(`resize`),Crop:t(`Crop`),Width:t(`Width`),width:t(`width`),Height:t(`Height`),height:t(`height`),"Background color":t(`Background color`),Cancel:t(`Cancel`),Create:t(`Create`),Objects:t(`Objects`),Quality:t(`Quality`),Save:t(`Save`),"Loading Canvas":t(`Loading Canvas`),"Loading Image":t(`Loading Image`),"Loading State":t(`Loading State`),"Processing Image":t(`Processing Image`),Close:t(`Close`),Apply:t(`Apply`),Font:t(`Font`),Color:t(`Color`),Background:t(`Background`),Image:t(`Image`),Opacity:t(`Opacity`),Outline:t(`Outline`),Shadow:t(`Shadow`),Gradient:t(`Gradient`),Texture:t(`Texture`),"Replace Image":t(`Replace Image`),"Outline Color":t(`Outline Color`),"Shadow Color":t(`Shadow Color`),"Font Size":t(`Font Size`),Radius:t(`Radius`),"Brush Color":t(`Brush Color`),"Brush Type":t(`Brush Type`),"Brush Size":t(`Brush Size`),History:t(`History`),"Maintain aspect ratio":t(`Maintain aspect ratio`),"New Text":t(`New Text`),Size:t(`Size`),Draw:t(`Draw`),Text:t(`Text`),Stickers:t(`Stickers`),Frame:t(`Frame`),Shapes:t(`Shapes`),Corners:t(`Corners`),corners:t(`corners`),Done:t(`Done`),"Applied Filters":t(`Applied Filters`),"Resized Image":t(`Resized Image`),"Cropped Image":t(`Cropped Image`),"Added Drawing":t(`Added Drawing`),"Added Text":t(`Added Text`),"Added Shape":t(`Added Shape`),"Added Sticker":t(`Added Sticker`),"Added Frame":t(`Added Frame`),"Merged Objects":t(`Merged Objects`),"Rounded Corner":t(`Rounded Corner`),"Replaced Background Image":t(`Replaced Background Image`),"Added Image":t(`Added Image`),Initial:t(`Initial`),"Loaded State":t(`Loaded State`),"Changed Style":t(`Changed Style`),"Deleted object":t(`Deleted object`),Merge:t(`Merge`),Emoticons:t(`Emoticons`),Doodles:t(`Doodles`),Landmarks:t(`Landmarks`),Bubbles:t(`Bubbles`),Transportation:t(`Transportation`),Beach:t(`Beach`),PencilBrush:t(`PencilBrush`),SprayBrush:t(`SprayBrush`),CircleBrush:t(`CircleBrush`),DiamondBrush:t(`DiamondBrush`),VLineBrush:t(`VLineBrush`),HLineBrush:t(`HLineBrush`),SquareBrush:t(`SquareBrush`),Square:t(`Square`),square:t(`square`)}}}var h={text:{replaceDefault:!0,defaultCategory:`handwriting`,items:[{family:`Montserrat Light`,src:`customFonts/Montserrat-Light.woff2`},{family:`Montserrat Regular`,src:`customFonts/Montserrat-Regular.woff2`},{family:`Montserrat Bold`,src:`customFonts/Montserrat-Bold.woff2`},{family:`Montserrat Black`,src:`customFonts/Montserrat-Black.woff2`},{family:`Roboto Light`,src:`customFonts/Roboto-Light.woff2`},{family:`Roboto Regular`,src:`customFonts/Roboto-Regular.woff2`},{family:`Roboto Bold`,src:`customFonts/Roboto-Bold.woff2`},{family:`Roboto Black`,src:`customFonts/Roboto-Black.woff2`},{family:`Lato Light`,src:`customFonts/Lato-Light.woff2`},{family:`Lato Regular`,src:`customFonts/Lato-Regular.woff2`},{family:`Lato Bold`,src:`customFonts/Lato-Bold.woff2`},{family:`Lato Black`,src:`customFonts/Lato-Black.woff2`},{family:`Rubik Light`,src:`customFonts/Rubik-Light.woff2`},{family:`Rubik Regular`,src:`customFonts/Rubik-Regular.woff2`},{family:`Rubik Bold`,src:`customFonts/Rubik-Bold.woff2`},{family:`Rubik Black`,src:`customFonts/Rubik-Black.woff2`},{family:`Bebas Neue Light`,src:`customFonts/BebasNeueLight.woff2`},{family:`Bebas Neue Regular`,src:`customFonts/BebasNeueRegular.woff2`},{family:`Bebas Neue Book`,src:`customFonts/BebasNeueBook.woff2`},{family:`Bebas Neue Bold`,src:`customFonts/BebasNeueBold.woff2`},{family:`Arial`,src:`customFonts/ArialMT.woff2`},{family:`Arial Bold`,src:`customFonts/Arial-BoldMT.woff2`}]}},g=(e,t=`application/octet-stream`)=>fetch(`data:${t};base64,${e}`).then(e=>e.blob());function _(e,t){if(e===`json`)return new Blob([t],{type:`application/json`});if(e===`svg`)return new Blob([t],{type:`image/svg+xml`});let n=`image/${e}`;return t=t.replace(/data:image\/([a-z]*)?;base64,/,``),g(t,n)}var v=({currentImageLink:e,prefetchedBlobUrl:t,newLink:n,onSave:r,uploadImageResultIsLoading:d})=>{let f=l.h(),[g,v]=(0,u.useState)(),[y,b]=(0,u.useState)(),{__:x}=o.h(),S=i.wi(),C=i.Ti(),w=i.on(),T=i.Ci(i.n),E=i.Ci(a.u),D=i.Ci(i.ct),O=(0,u.useMemo)(()=>{if(!w?.icons)return;let e={};for(let[t,n]of Object.entries(w.icons))typeof n==`string`&&(e[t]=c.h(n));return Object.keys(e).length>0?e:void 0},[w?.icons]),k=(0,u.useRef)(!1),[A,j]=(0,u.useState)(),M=i.q(i.yo.FILE_PROXY_EVENT_ID);(0,u.useEffect)(()=>{(async()=>{let n=e;if(!n&&!t)return;let r;if(t)try{let e=await fetch(t);e.ok&&(r=await e.blob())}catch{r=void 0}if(!r&&n)try{r=await(await fetch(n)).blob()}catch{if(r=await M.fire({url:n,project:D}).filter(e=>e instanceof Blob)[0],!r){let e=f.get(i.Li.em_token)||await i.vi.getInstance(C,a.D);r=await(await fetch(`https://app.emailmaker.ru/api/wp-json/cors-proxy/v1/get?url=${encodeURIComponent(n)}`,{headers:{authorization:`Bearer ${e}`}})).blob()}}if(r){let e=new FileReader;e.onload=()=>{A?.tools.import.openBackgroundImage(g),e.result!==g&&(v(e.result),b(r.type))},e.readAsDataURL(r)}})().catch(e=>void 0)},[e,t,n,v,f,g,A,M,D,C]);let N=(0,u.useCallback)(()=>{v(null),b(null),S(a.n()),S(a.t(i.ga.UPLOAD_IMAGE_MODAL))},[S]),P=(0,u.useRef)();P.current=async function(e,t,n){let i=await _(n,e);r&&r(new File([i],t,{lastModified:new Date().getTime(),type:i.type}))};let F=(0,u.useCallback)(e=>{if(e&&!(k.current&&A)){k.current=!0;let e=T.locale?T.locale.replace(`_`,`-`):`ru-RU`,t=T.theme===`system`?matchMedia(`(prefers-color-scheme: dark)`).matches?i.qi:i.ua:T.theme;s.O.init({selector:`#pixie-editor`,baseUrl:o.t(`assets/pixie`),image:g,activeLanguage:e,languages:m(e,x),tools:h,ui:{menubar:{replaceDefaultItems:!0,items:[{type:`undoWidget`,align:`left`},{type:`zoomWidget`,align:`center`,desktopOnly:!0},{type:`button`,icon:(0,p.jsx)(o.Lt,{icon:`HistoryOutlined`,configIcons:O,style:{fontSize:20}}),align:`right`,desktopOnly:!0,action:e=>{e.togglePanel(`history`)}},{type:`button`,icon:(0,p.jsx)(o.Lt,{icon:`CloseOutlined`,configIcons:O,style:{fontSize:20}}),align:`right`,desktopOnly:!0,action:()=>N()}]},nav:{position:`top`},activeTheme:t,mode:`inline`,forceOverlayModeOnMobile:!1},onSave:async function(e,t,n){P.current(e,t,n)}}).then(e=>{j(e)}).catch(e=>void 0)}},[T.theme,g,A,j,T.locale,x,N,O]),I=(0,u.useCallback)(()=>{A?.tools.export.save(e?.split(`/`).pop().split(`.`)[0],y?.split(`/`)[1])},[A,e,y]);return(0,p.jsxs)(o.Y,{afterOpenChange:F,width:`100%`,style:{maxWidth:`100%`,minHeight:`100vh`},className:`image-editor-modal`,centered:!0,closable:!1,zIndex:1100,mask:!1,open:E,footer:[(0,p.jsx)(o.Rt,{className:`em-analytics__profile-cancel`,onClick:N,children:x(`Cancel`)},`Cancel`),(0,p.jsx)(o.Rt,{className:`em-analytics__profile-updapixiete`,id:`save`,type:`primary`,onClick:I,children:x(`Update`)},`Ok`)],children:[d&&(0,p.jsx)(`div`,{style:{position:`absolute`,height:`100%`,width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`var(--colorBgLayout)`,zIndex:10,opacity:.7},children:(0,p.jsx)(o.K,{size:`large`})}),(0,p.jsx)(`div`,{id:`pixie-editor`})]})},y=({currentImageLink:e,newLink:t,previewDisplayUrl:n,resolvedPreviewObjectUrl:r,onSave:i,uploadImageResultIsLoading:a})=>{let s=n||r;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{children:(0,p.jsxs)(`div`,{className:`image-preview`,children:[a&&(0,p.jsx)(`div`,{style:{position:`absolute`,height:`100%`,width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`var(--colorBgLayout)`,zIndex:10,opacity:.7},children:(0,p.jsx)(o.K,{size:`large`})}),s&&(0,p.jsx)(`img`,{alt:`uploadedImage`,src:s})]})}),(0,p.jsx)(v,{currentImageLink:e,prefetchedBlobUrl:r,newLink:t,onSave:i,uploadImageResultIsLoading:a})]})},b=function(e,t){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},b(e,t)};function x(e,t){b(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)};function C(e,t,n,r){var i,a=!1,o=0;function s(){i&&clearTimeout(i)}function c(){s(),a=!0}typeof t!=`boolean`&&(r=n,n=t,t=void 0);function l(){var c=this,l=Date.now()-o,u=arguments;if(a)return;function d(){o=Date.now(),n.apply(c,u)}function f(){i=void 0}r&&!i&&d(),s(),r===void 0&&l>e?d():t!==!0&&(i=setTimeout(r?f:d,r===void 0?e-l:e))}return l.cancel=c,l}var w={Pixel:`Pixel`,Percent:`Percent`},T={unit:w.Percent,value:.8};function E(e){return typeof e==`number`?{unit:w.Percent,value:e*100}:typeof e==`string`?e.match(/^(\d*(\.\d+)?)px$/)?{unit:w.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:w.Percent,value:parseFloat(e)}:T:T}var D=function(e){x(t,e);function t(t){var n=e.call(this,t)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:typeof n.props.scrollableTarget==`string`?document.getElementById(n.props.scrollableTarget):(n.props.scrollableTarget,null)},n.onStart=function(e){n.lastScrollTop||(n.dragging=!0,e instanceof MouseEvent?n.startY=e.pageY:e instanceof TouchEvent&&(n.startY=e.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange=`transform`,n._infScroll.style.transition=`transform 0.2s cubic-bezier(0,0,0.31,1)`))},n.onMove=function(e){n.dragging&&(e instanceof MouseEvent?n.currentY=e.pageY:e instanceof TouchEvent&&(n.currentY=e.touches[0].pageY),!(n.currentY<n.startY)&&(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),!(n.currentY-n.startY>n.maxPullDownDistance*1.5)&&n._infScroll&&(n._infScroll.style.overflow=`visible`,n._infScroll.style.transform=`translate3d(0px, `+(n.currentY-n.startY)+`px, 0px)`)))},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){n._infScroll&&(n._infScroll.style.overflow=`auto`,n._infScroll.style.transform=`none`,n._infScroll.style.willChange=`unset`)})},n.onScrollListener=function(e){typeof n.props.onScroll==`function`&&setTimeout(function(){return n.props.onScroll&&n.props.onScroll(e)},0);var t=n.props.height||n._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;n.actionTriggered||((n.props.inverse?n.isElementAtTop(t,n.props.scrollThreshold):n.isElementAtBottom(t,n.props.scrollThreshold))&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=t.scrollTop)},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},n.throttledOnScrollListener=C(150,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n}return t.prototype.componentDidMount=function(){if(this.props.dataLength===void 0)throw Error(`mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage`);if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener(`scroll`,this.throttledOnScrollListener),typeof this.props.initialScrollY==`number`&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener(`touchstart`,this.onStart),this.el.addEventListener(`touchmove`,this.onMove),this.el.addEventListener(`touchend`,this.onEnd),this.el.addEventListener(`mousedown`,this.onStart),this.el.addEventListener(`mousemove`,this.onMove),this.el.addEventListener(`mouseup`,this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!=`function`))throw Error(`Mandatory prop "refreshFunction" missing.
|
|
2
|
+
Pull Down To Refresh functionality will not work
|
|
3
|
+
as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener(`scroll`,this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener(`touchstart`,this.onStart),this.el.removeEventListener(`touchmove`,this.onMove),this.el.removeEventListener(`touchend`,this.onEnd),this.el.removeEventListener(`mousedown`,this.onStart),this.el.removeEventListener(`mousemove`,this.onMove),this.el.removeEventListener(`mouseup`,this.onEnd)))},t.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(e,t){return e.dataLength===t.prevDataLength?null:S(S({},t),{prevDataLength:e.dataLength})},t.prototype.isElementAtTop=function(e,t){t===void 0&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=E(t);return r.unit===w.Pixel?e.scrollTop<=r.value+n-e.scrollHeight+1:e.scrollTop<=r.value/100+n-e.scrollHeight+1},t.prototype.isElementAtBottom=function(e,t){t===void 0&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=E(t);return r.unit===w.Pixel?e.scrollTop+n>=e.scrollHeight-r.value:e.scrollTop+n>=r.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=S({height:this.props.height||`auto`,overflow:`auto`,WebkitOverflowScrolling:`touch`},this.props.style),n=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),r=this.props.pullDownToRefresh&&this.props.height?{overflow:`auto`}:{};return u.default.createElement(`div`,{style:r,className:`infinite-scroll-component__outerdiv`},u.default.createElement(`div`,{className:`infinite-scroll-component `+(this.props.className||``),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&u.default.createElement(`div`,{style:{position:`relative`},ref:function(t){return e._pullDown=t}},u.default.createElement(`div`,{style:{position:`absolute`,left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!n&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(u.Component);function O(e,t){if(e==null)return{};var n=k(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function k(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function A(){return A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?j(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0},F=2,I=class extends u.default.Component{constructor(e){super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this);let t;t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||F,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener(`resize`,this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener(`resize`,this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){if(!window||!window.requestAnimationFrame){this.reCalculateColumnCount();return}window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(()=>{this.reCalculateColumnCount()})}reCalculateColumnCount(){let e=window&&window.innerWidth||1/0,t=this.props.breakpointCols;typeof t!=`object`&&(t={default:parseInt(t)||F});let n=1/0,r=t.default||F;for(let i in t){let a=parseInt(i);a>0&&e<=a&&a<n&&(n=a,r=t[i])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){let e=this.state.columnCount,t=Array(e),n=u.default.Children.toArray(this.props.children);for(let r=0;r<n.length;r++){let i=r%e;t[i]||(t[i]=[]),t[i].push(n[r])}return t}renderColumns(){let{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),i=`${100/r.length}%`,a=n;a&&typeof a!=`string`&&(this.logDeprecated(`The property "columnClassName" requires a string`),a===void 0&&(a=`my-masonry-grid_column`));let o=M(M(M({},e),t),{},{style:M(M({},t.style),{},{width:i}),className:a});return r.map((e,t)=>u.default.createElement(`div`,A({},o,{key:t}),e))}logDeprecated(e){}render(){let e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:i,column:a,className:o}=e,s=O(e,[`children`,`breakpointCols`,`columnClassName`,`columnAttrs`,`column`,`className`]),c=o;return typeof o!=`string`&&(this.logDeprecated(`The property "className" requires a string`),o===void 0&&(c=`my-masonry-grid`)),u.default.createElement(`div`,A({},s,{className:c}),this.renderColumns())}};I.defaultProps=P;function L(e,t){return e?e.exhausted?{...e,src:null}:{...e,src:e.src||t||null}:null}function R({items:e,getItemId:t,getRequestUrl:n,createController:r}){let[i,a]=(0,u.useState)({}),o=(0,u.useRef)(new Map),s=(0,u.useCallback)(e=>{let i=t(e),a=n(e),s=`${i}:${a}`;if(o.current.has(s))return{itemId:i,requestUrl:a,cacheKey:s,controller:o.current.get(s)};let c=r(a);return o.current.set(s,c),{itemId:i,requestUrl:a,cacheKey:s,controller:c}},[r,t,n]);return(0,u.useEffect)(()=>{let t=new Set,n={},r=e.map(e=>{let{itemId:r,cacheKey:i,controller:o}=s(e);t.add(i),n[r]=o.src;let c=L(o.handleChangeSrc?.(),o.src);return c?.changed&&c.src&&(n[r]=c.src),o.subscribeToSrcChange?.(e=>{let t=L(e,o.src);!t?.changed||!t.src||a(e=>e[r]===t.src?e:{...e,[r]:t.src})})}).filter(Boolean);return o.current.forEach((e,n)=>{t.has(n)||o.current.delete(n)}),a(n),()=>{r.forEach(e=>e?.())}},[s,e]),{getDisplaySrc:(0,u.useCallback)(e=>{let{itemId:t,requestUrl:n,controller:r}=s(e);return i[t]||r.src||n},[i,s]),handleLoad:(0,u.useCallback)(e=>{s(e).controller.handleSuccess()},[s]),handleError:(0,u.useCallback)(e=>{let{itemId:t,controller:n}=s(e),r=L(n.handleError(),n.src);r?.changed&&r.src&&a(e=>({...e,[t]:r.src}))},[s])}}var z=`blocks`,B=({setCurrentImageLink:e,setModalHeight:t,setModalWidth:n,setImageStockList:r,imageStockList:s,currentReq:l,setCurrentReq:d,inputRef:f,setStockLink:m,customRequest:h})=>{let g=i.on(),_=c.t(),[v,y]=(0,u.useState)(!1),[b,x]=(0,u.useState)(2),{__:S}=o.h(),C=o.o(),[w]=a.S(),[T]=a.x(),E=(0,u.useCallback)(e=>e instanceof Error||typeof e?.message==`string`&&e.message?e.message:typeof e?.error?.message==`string`&&e.error.message?e.error.message:S(`Failed to load stock images through the configured proxy chain.`),[S]),O=(0,u.useCallback)(e=>{C.error({id:`STOCK_IMAGES_SEARCH_FAILED`,title:S(`Failed to load stock images`),description:E(e)})},[S,E,C]),k=async()=>{v||(y(!0),T({query:l,page:b}).then(e=>{if(e?.error){O(e.error),y(!1);return}let t=e?.data?.results||[];r(e=>[...e,...t]),y(!1),x(e=>e+1)}).catch(()=>{y(!1)}))};(0,u.useEffect)(()=>{l.keywords!==``&&A()},[l.color,l.orientation]);let A=async()=>{let e=await T({query:l,page:1});if(e?.error){O(e.error),r([]);return}let i=e?.data?.results||[];i.length>0?(r(i),setTimeout(()=>{n(1060),t(`84vh`)},0)):r([])},[j,M]=(0,u.useState)(null),N=(0,u.useCallback)((e,t,n)=>`${e}${e.includes(`?`)?`&`:`?`}w=${t}&q=${n}`,[]),P=(0,u.useCallback)(e=>i.Qa(e,{config:g,standalone:_,resourceType:`stockImages`,intent:`display`}),[g,_]),{getDisplaySrc:F,handleLoad:L,handleError:B}=R({items:s,getItemId:(0,u.useCallback)(e=>e.id,[]),getRequestUrl:(0,u.useCallback)(e=>N(e.urls.raw,644,96),[N]),createController:P}),V=e=>t=>{L(e),t.target.parentNode.classList.add(`loaded`)},ee=e=>()=>{B(e)},te=(t,n,r)=>{w(n.download_location),M(r),setTimeout(()=>M(null),2e3),m(`${t.raw}&w=1200&q=96`),e(`${t.raw}&w=1200&q=96`),h(`${t.raw}&w=1200&q=96`)};return(0,p.jsxs)(`div`,{className:`stock-tab`,children:[(0,p.jsxs)(o.Ft,{onValuesChange:A,className:s.length>0?`serach-results`:``,children:[(0,p.jsxs)(o.Ot,{gutter:24,children:[(0,p.jsx)(o.Dt,{span:s.length>0?``:24,children:(0,p.jsx)(o.Ft.Item,{className:`stock-search-input`,children:(0,p.jsx)(o.St,{onSearch:A,allowClear:!0,size:s.length>0?`medium`:`large`,placeholder:S(`Search image`),value:l.keywords,onChange:e=>d(t=>({...t,keywords:e.target.value})),ref:f,spellCheck:`false`,enterButton:!1})})}),s.length>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(o.Dt,{children:(0,p.jsxs)(o._t.Group,{defaultValue:``,onChange:e=>d(t=>({...t,orientation:e.target.value})),children:[(0,p.jsx)(o.U,{title:S(`All`),placement:`top`,children:(0,p.jsx)(o._t.Button,{value:``,children:(0,p.jsx)(c.m,{icon:`MixedView`})})}),(0,p.jsx)(o.U,{title:S(`Landscape`),placement:`top`,children:(0,p.jsx)(o._t.Button,{value:`landscape`,children:(0,p.jsx)(c.m,{icon:`LandscapeView`})})}),(0,p.jsx)(o.U,{title:S(`Portrait`),placement:`top`,children:(0,p.jsx)(o._t.Button,{value:`portrait`,children:(0,p.jsx)(c.m,{icon:`PortraitView`})})}),(0,p.jsx)(o.U,{title:S(`Squarish`),placement:`top`,children:(0,p.jsx)(o._t.Button,{value:`squarish`,children:(0,p.jsx)(c.m,{icon:`SquareView`})})})]})}),(0,p.jsx)(o.Dt,{children:(0,p.jsx)(o.A,{defaultValue:``,onChange:e=>d(t=>({...t,color:e.target.value})),options:[{value:``,colorClass:`all-colors`,label:S(`All`)},{value:`black`,colorClass:`black-color`,label:S(`Black`)},{value:`black_and_white`,colorClass:`bw-color`,label:S(`Black and White`)},{value:`white`,colorClass:`white-color`,label:S(`White`)},{value:`orange`,colorClass:`orange-color`,label:S(`Orange`)},{value:`red`,colorClass:`red-color`,label:S(`Red`)},{value:`purple`,colorClass:`purple-color`,label:S(`Purple`)},{value:`magenta`,colorClass:`magenta-color`,label:S(`Magenta`)},{value:`green`,colorClass:`green-color`,label:S(`Green`)},{value:`teal`,colorClass:`teal-color`,label:S(`Teal`)},{value:`blue`,colorClass:`blue-color`,label:S(`Blue`)}],tooltipPlacement:`top`})})]})]}),s.length>0&&(0,p.jsx)(`div`,{className:`blocks-search__divider-wrapper`,children:(0,p.jsx)(`div`,{className:`ant-divider ant-divider-horizontal`,role:`separator`})})]}),(0,p.jsx)(`div`,{className:`serach-output-wrapper`,style:{marginRight:-10},children:s.length>0&&(0,p.jsx)(`div`,{id:`scrollableDiv`,style:{width:`100%`,height:`calc(84vh - 148px)`,overflow:`auto`,paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:`0`,boxSizing:`unset`},children:(0,p.jsx)(D,{dataLength:s&&s.length,next:k,hasMore:s,endMessage:(0,p.jsxs)(o.jt,{plain:!0,children:[S("That`s all we could find."),` 🤐`]}),scrollableTarget:`scrollableDiv`,style:{overflow:`visible`},loader:null,children:(0,p.jsx)(I,{breakpointCols:{default:3},className:`my-masonry-grid`,columnClassName:`my-masonry-grid_column`,children:s.map(e=>(0,p.jsxs)(`div`,{className:`list-item`,onClick:()=>te(e.urls,e.links,e.id),children:[(0,p.jsx)(`img`,{className:j===e.id?`loaded-image`:``,width:`322px`,src:F(e),alt:e.description,onLoad:V(e),onError:ee(e)}),(0,p.jsxs)(`p`,{className:`creator-info`,onClick:e=>e.stopPropagation(),children:[`Photo by`,` `,(0,p.jsx)(`a`,{target:`_blank`,href:`${e.user.links.html}?utm_source=${z}&utm_medium=referral`,rel:`noreferrer`,children:e.user.name}),` `,`on`,` `,(0,p.jsx)(`a`,{target:`_blank`,href:`https://unsplash.com/?utm_source=${z}&utm_medium=referral`,rel:`noreferrer`,children:`Unsplash`})]}),j===e.id&&(0,p.jsx)(o.K,{className:`ant-spin`,size:`small`})]},e.id))})})})})]})},V=({images:e,transitionDuration:t=1e3})=>{let[n,r]=(0,u.useState)([]);return(0,u.useEffect)(()=>{if(e.length>0){let t=e[e.length-1];r(e=>[...e,{src:t,opacity:0}]),setTimeout(()=>{r(e=>e.map((t,n)=>n===e.length-1?{...t,opacity:1}:t))},1e3)}},[e]),(0,p.jsx)(`div`,{className:`slideshow-container`,children:n.map((e,n)=>(0,p.jsx)(`img`,{src:`data:image/jpeg;base64, ${e.src}`,alt:`Slide ${n+1}`,className:`slideshow-image`,style:{opacity:e.opacity,transition:`opacity ${t}ms linear`}},n))})};function ee({setModalHeight:e,customRequest:t,aiTabRef:n,isImageUploaded:r,setIsImageUploaded:s,aiImageRequest:l,imageAiList:d,setImageAiList:p,isLoadingAi:m,setIsLoadingAi:h,onPluginAiImageLimitExceeded:g,onImageGenerateLimitExceeded:_}){let{__:v}=o.h(),y=i.on(),b=o.o(),x=i.wt(),{emailId:S,blockId:C,projectId:w}=(0,f.useParams)(),[T]=a.C(),[E,{data:D=[]}]=a.v(),[O]=a.g(),k=y?.sendAIImageRequest||T,A=y?.trigger||E,j=y?.handleLimitUsageEmitter||i.q(i.yo.ON_LIMIT_ID),[M,N]=(0,u.useState)(0),[P,F]=(0,u.useState)(null),[I,L]=(0,u.useState)(!1),[R,z]=(0,u.useState)(v(`Evaluating the task`)),[B,V]=(0,u.useState)(!1),ee=S||C,{limits:te}=y?.limits?y:{limits:{ai_img_limit:0}},{ai_img_limit:H}=te,U=H>0&&M>=H,W=!!(y.limits&&y.counters)&&i.xa.isPlugin,G=(0,u.useCallback)(()=>{j.fire({name:`AiImgCount`,count:M+1})},[j,M]),K=(0,u.useMemo)(()=>!U&&(!W||H===0||M<H),[U,W,M,H]),ne=(0,u.useCallback)(async()=>{z(v(`Evaluating the task`)),l!==``&&!m&&(h(!0),V(!0),p([]),x({event:`submit_form`,action:`ai_image_generation`,entity_id:S,project_id:w}),k({body:{project_id:w,request:`create-image`,connection:`midjourney`,message:l}}).then(({data:e,error:t})=>{if(t)throw t;if(e.data.status===401)throw Error(i.aa);e?.data.status===200?(e?.data.task.id&&(z(e.data.task.message),F(e.data.task.id)),e.message&&b.success({id:`AI_IMAGE_SEND_SUCCESS`,title:e.message,placement:`bottomRight`,data:l}),A({task_id:e?.data.task.id,entity_id:ee})):(h(!1),V(!1),b.error({id:`AI_IMAGE_SEND_ERROR`,title:e?.message||v(`Something went wrong, please try again`),placement:`bottomRight`,data:l,innerException:e}))}).catch(e=>{h(!1),V(!1),(e?.error||e?.data)&&b.fromError(`AI_IMAGE_SEND_ERROR`,l,e.error||e)}))},[l,m,h,V,p,x,S,w,k,b,A,ee,v]),re=(0,u.useCallback)(async()=>{if(K){if(!W){let e=c.l(`image_generate`,(await O(`image_generate`)).data?.stats);if(e){_?.(e);return}}W&&(N(e=>e+1),G()),ne()}else W&&(g?g():b.error({title:v(`The usage limit has been exceeded`),description:v(`The maximum number of requests for the current subscription period has been reached.
|
|
4
|
+
Select the appropriate plan to fulfil more requests`),placement:`bottomRight`}))},[K,W,O,_,N,G,ne,b,v,g]);(0,u.useEffect)(()=>{W&&N(y?.counters?.ai_img_counter||0)},[y,W]);let ie=(0,u.useCallback)(e=>{if(!r){s(!0);let n=e.match(/^data:image\/([A-Za-z-+/]+);base64,(.+)$/);if(!n)return;let r=n[1],i=n[2],a=atob(i),o=Array(a.length);for(let e=0;e<a.length;e++)o[e]=a.charCodeAt(e);let c=new Uint8Array(o),l=new Blob([c],{type:`image/${r}`});t({file:new File([l],`image.jpeg`,{type:l.type})})}},[r,s,t]),ae=(0,u.useCallback)(e=>{e.status!==`error`&&e.status!==`Canceled`?e.images?(z(e.status),e.progress===100&&(p(e.images),z(v(`Evaluating the task`)),F(null),V(!1))):(p([e.data]),h(!1)):(h(!1),V(!1),b.error({id:`AI_IMAGE_GET_ERROR`,title:v(`Something went wrong, please try again`),placement:`bottomRight`,data:P}))},[p,z,v,h,e,P,b,V]);return(0,u.useEffect)(()=>{D.length>1&&ae(D[D.length-1])},[D,ae]),(0,u.useEffect)(()=>{(m||d.length>0)&&setTimeout(()=>{let t=550;n.current&&(t=n.current.offsetHeight+68),e(t)},0)},[n,D,d.length,m,e]),{aiImageCounter:M,setAiImageCounter:N,currentAiImgLimits:H,isFieldsDisabled:U,canGenerateImage:K,aiImageRequest:l,imageAiList:d,setImageAiList:p,isLoadingAi:m,setIsLoadingAi:h,loadingDuringGeneration:B,setLoadingDuringGeneration:V,requestStatus:R,setRequestStatus:z,handleGenerate:re,handleLimitAiImgCount:G,convertBase64ToFile:ie,isShiftPressed:I,setIsShiftPressed:L,currentReqId:P,setCurrentReqId:F,limitsInPlugin:W}}var te=({setModalHeight:e,customRequest:t,aiTabRef:n,inputAiRef:r,isImageUploaded:s,setIsImageUploaded:d,aiImageRequest:m,setAiImageRequest:h,imageAiList:g,setImageAiList:_,isLoadingAi:v,setIsLoadingAi:y})=>{let b=(0,f.useNavigate)(),x=i.wi(),{__:S,_n:C}=o.h(),w=i.on(),[T,E]=(0,u.useState)(!1),[D,O]=(0,u.useState)(null),{aiImageCounter:k,currentAiImgLimits:A,loadingDuringGeneration:j,requestStatus:M,handleGenerate:N,convertBase64ToFile:P,isShiftPressed:F,setIsShiftPressed:I,limitsInPlugin:L}=ee({setModalHeight:e,customRequest:t,aiTabRef:n,isImageUploaded:s,setIsImageUploaded:d,aiImageRequest:m,imageAiList:g,setImageAiList:_,isLoadingAi:v,setIsLoadingAi:y,onPluginAiImageLimitExceeded:()=>E(!0),onImageGenerateLimitExceeded:O}),R=T&&A>0?l.p(A):null,z=R?c.u(R.presetId):null,B=D?c.u(D.presetId):null,[te,H]=(0,u.useState)(!1),U=(0,u.useCallback)(()=>H(!0),[]),W=(0,u.useCallback)(()=>H(!1),[]),G=(0,u.useCallback)(e=>h(e.target.value),[h]),K=(0,u.useCallback)(e=>{e.key===`Shift`?I(!0):e.key===`Enter`&&!F&&(e.preventDefault(),N())},[F,N,I]),ne=(0,u.useCallback)(e=>{e.key===`Shift`&&I(!1)},[I]),re=g[g.length-1];return(0,p.jsxs)(`div`,{className:`image-ai`,children:[z&&R?(0,p.jsx)(c.f,{open:!0,onClose:()=>E(!1),title:S(z.titleKey),subtitle:S(z.subtitleKey),usageResource:z.usageResource,previousDisplay:c.d(R.previousLimit),nextDisplay:c.d(R.nextLimit),onChangePlan:()=>{E(!1),document.body.classList.remove(`editor`),b(`/billing`),x(a.r(i.ga.SWITCH_TO_PLAN_MODAL))}}):null,B&&D?(0,p.jsx)(c.f,{open:!0,onClose:()=>O(null),title:S(B.titleKey),subtitle:S(B.subtitleKey),usageResource:B.usageResource,previousDisplay:c.d(D.previousLimit),nextDisplay:c.d(D.nextLimit),onChangePlan:()=>{O(null),document.body.classList.remove(`editor`),b(`/billing`),x(a.r(i.ga.SWITCH_TO_PLAN_MODAL))}}):null,L&&(0,p.jsx)(o.P,{text:`${k} ${S(`of`)} ${A>0?A:`∞`} images ${C(`was used`,`were used`,k)}`,exceeded:A>0&&k>=A,style:{marginTop:-25},extra:(0,p.jsx)(`span`,{style:{textDecoration:`underline`,cursor:`pointer`},onClick:()=>b(w.billingPageUrl||i.Ri.billing),children:S(`Need more?`)})}),(0,p.jsx)(o.Ot,{gutter:24,className:`image-ai__row`,children:(0,p.jsx)(o.Dt,{span:24,children:(0,p.jsx)(o.Ft.Item,{style:{margin:0},children:(0,p.jsxs)(`span`,{className:`ant-input-affix-wrapper ant-input-affix-wrapper-lg image-ai__input-affix-wrapper${te?` ant-input-affix-wrapper-focused`:``}`,children:[(0,p.jsx)(o.xt,{ref:r,onKeyDown:K,onKeyUp:ne,onFocus:U,onBlur:W,autoSize:!0,allowClear:!0,className:`text-area-input-hybrid image-ai__textarea`,placeholder:S(`Generate image`),value:m,onChange:G,spellCheck:`false`}),(0,p.jsx)(`span`,{className:`ant-input-suffix image-ai__input-suffix`,children:v||j?(0,p.jsx)(c.m,{icon:`LoadingOutlined`,className:`input-icon image-ai__input-icon`,spin:!0}):(0,p.jsx)(c.m,{icon:`AI`,className:`input-icon image-ai__input-icon`,onClick:N})})]})})})}),(v||g.length>0)&&(0,p.jsxs)(`div`,{className:`image-ai__preview`,children:[v&&g.length===0&&(0,p.jsx)(`div`,{className:`image-ai__loading`,children:(0,p.jsxs)(`div`,{className:`spin`,children:[(0,p.jsx)(c.m,{icon:`LoadingOutlined`,style:{fontSize:48},spin:!0}),(0,p.jsx)(`p`,{className:`status`,children:M})]})}),g.length>0&&(0,p.jsxs)(`div`,{className:`image-ai__image-item`,children:[(0,p.jsx)(V,{images:g}),(0,p.jsx)(`div`,{className:`buttons`,children:(0,p.jsx)(o.Rt,{onClick:()=>P(`data:image/jpeg;base64, ${re}`),icon:(0,p.jsx)(c.m,{icon:`CheckOutlined`}),children:S(`Use this one`)})})]})]})]})},H=({setNewLink:e,setCurrentImageLink:t,setModalHeight:n,setModalWidth:r,setImageGifList:s,imageGifList:l,currentReqGif:d,setCurrentReqGif:f,inputRef:m,setStockLink:h,customRequest:g})=>{let{__:_}=o.h(),v=i.on(),y=c.t(),b=o.o(),[x,S]=(0,u.useState)(null),[C,w]=(0,u.useState)(!1),[T,E]=(0,u.useState)(25),[O]=a.b(),k=(0,u.useCallback)(e=>e instanceof Error||typeof e?.message==`string`&&e.message?e.message:typeof e?.error?.message==`string`&&e.error.message?e.error.message:_(`Failed to load GIFs through the configured proxy chain.`),[_]),A=(0,u.useCallback)(e=>{b.error({id:`STOCK_GIFS_SEARCH_FAILED`,title:_(`Failed to load GIFs`),description:k(e)})},[_,k,b]),j=async()=>{C||(w(!0),O({query:d,page:T}).then(e=>{if(e?.error){A(e.error),w(!1);return}s(t=>[...t,...e.data.data]),w(!1),E(e=>e+25)}).catch(()=>{w(!1)}))},M=async()=>{let e=await O({query:d,page:0});if(e?.error){A(e.error),s([]);return}e?.data?.data?.length>0&&(s(e.data.data),setTimeout(()=>{n(`84vh`),r(1060)},0))},N=(e,n)=>{S(n),setTimeout(()=>{S(null)},2e3),h(`${e}`),t(`${e}`),g(`${e}`)},P={default:3},F=(0,u.useCallback)(e=>i.Qa(e,{config:v,standalone:y,resourceType:`generic`,intent:`display`}),[v,y]),{getDisplaySrc:L,handleLoad:z,handleError:B}=R({items:l,getItemId:(0,u.useCallback)(e=>e.id,[]),getRequestUrl:(0,u.useCallback)(e=>e.images.downsized.url,[]),createController:F}),V=e=>t=>{z(e),t.target.parentNode.classList.add(`loaded`)},ee=e=>()=>{B(e)};return(0,p.jsxs)(`div`,{className:`stock-tab`,children:[(0,p.jsxs)(o.Ft,{onValuesChange:M,className:l.length>0?`serach-results`:``,children:[(0,p.jsx)(o.Ot,{gutter:24,children:(0,p.jsx)(o.Dt,{span:l.length>0?``:24,children:(0,p.jsx)(o.Ft.Item,{className:`stock-search-input`,children:(0,p.jsx)(o.St,{onSearch:M,allowClear:!0,size:l.length>0?`medium`:`large`,placeholder:_(`Search GIFs`),value:d.keywords,onChange:e=>f(t=>({...t,keywords:e.target.value})),ref:m,spellCheck:`false`,enterButton:!1})})})}),l.length>0&&(0,p.jsx)(`div`,{className:`blocks-search__divider-wrapper`,children:(0,p.jsx)(`div`,{className:`ant-divider ant-divider-horizontal`,role:`separator`})})]}),(0,p.jsx)(`div`,{className:`serach-output-wrapper`,style:{marginRight:-10},children:l.length>0&&(0,p.jsx)(`div`,{id:`scrollableDiv`,style:{width:`100%`,height:`calc(84vh - 148px)`,overflow:`auto`,paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:`0`,boxSizing:`unset`},children:(0,p.jsx)(D,{dataLength:l&&l.length,next:j,hasMore:l,endMessage:(0,p.jsxs)(o.jt,{plain:!0,children:[_("That`s all we could find."),` 🤐`]}),scrollableTarget:`scrollableDiv`,style:{overflow:`visible`},loader:(0,p.jsx)(o.K,{size:`small`}),children:(0,p.jsx)(I,{breakpointCols:P,className:`my-masonry-grid`,columnClassName:`my-masonry-grid_column`,children:l.map((e,t)=>(0,p.jsxs)(`div`,{className:`list-item`,onClick:()=>N(e.images.downsized.url,e.id),children:[(0,p.jsx)(`img`,{className:x===e.id?`loaded-image`:``,width:`322px`,src:L(e),alt:e.title,onLoad:V(e),onError:ee(e)}),(0,p.jsx)(`a`,{rel:`noreferrer`,href:`https://giphy.com/`,target:`_blank`,onClick:e=>e.stopPropagation(),children:(0,p.jsx)(`div`,{className:`overlay-image`,style:{backgroundImage:`url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII=)`}})}),x===e.id&&(0,p.jsx)(o.K,{className:`ant-spin`,size:`small`})]},e.id+t))})})})})]})};function U(e){if(!(e==null||e===``))return e}async function W(e,t){if(e){if(e.url)return e.url;if(typeof t.getFileById==`function`&&e.id){let n=await t.getFileById(e.id);if(n?.url)return n.url;if(n?.thumbnailUrl)return n.thumbnailUrl;if(n?.thumbnail)return n.thumbnail}if(typeof t.getFileUrl==`function`&&e.folderId!==void 0&&e.name){let n=await t.getFileUrl(e.folderId||``,e.name);if(n)return n}if(typeof t.getUrl==`function`&&e.name){let n=await t.getUrl(e);if(n)return n}return e.thumbnail||e.thumbnailUrl}}function G(e){if(!(!e?.success||!Array.isArray(e.detailed)))return e.detailed.find(e=>e?.success&&e.data)?.data}function K(e,t,n){if(e)return{id:e.id,name:e.name||t.name,size:e.size??t.size,type:e.type||t.type,folderId:e.folderId??n??``,url:e.url,thumbnail:e.thumbnail,thumbnailUrl:e.thumbnailUrl,date:e.date,dimensions:e.dimensions,aspectRatio:e.aspectRatio,extension:e.extension,selected:e.selected,isFolder:e.isFolder,lastEdited:e.lastEdited,childrenCount:e.childrenCount}}async function ne(e,t,n){if(!t)return;let r=U(n??t.rootId),i;typeof t.uploadFiles==`function`?i=G(await t.uploadFiles({folderId:r,items:[{name:e.name,size:e.size,type:e.type,folderId:r,data:e}]})):typeof t.uploadFile==`function`&&(i=K(await t.uploadFile({name:e.name,size:e.size,type:e.type,folderId:r,data:e}),e,r));let a=await W(i,t);return a?{item:i,url:a}:void 0}var re=`IMG`,ie=`BACKGROUND`,ae=`GALLERY`,oe=`EDITOR`,q=`UPLOAD`,se=`STOCK`,ce=`GIF`,le=`AI`,{Dragger:ue}=o.gt,de=(e,t=`image`)=>{try{let n=new URL(e).pathname.split(`/`).pop();return n&&decodeURIComponent(n)||t}catch{return t}},fe=l.f,pe=(e,t)=>{let n=fe(t);return!n||e.includes(`.`)?e:`${e}.${n}`},me=(e,t)=>new File([e],pe(de(t),e.type),{type:e.type||`application/octet-stream`}),he=({dataProvider:e})=>{let t=i.on(),n=c.t(),{__:r}=o.h(),s=i.wi(),{projectId:d}=(0,f.useParams)(),[m]=a.y(),{modal:h}=o.Wt.useApp(),g=o.o(),_=i.Ci(i.r),v=i.Ci(i.n),b=i.Ci(a.s),{request:x,resolveImagePicker:S}=c.r(),[C,w]=(0,u.useState)(``),[T,E]=(0,u.useState)(``),[D,O]=(0,u.useState)(``),[k,A]=(0,u.useState)(``),[j,M]=(0,u.useState)(q),[N,P]=(0,u.useState)({width:``,height:``,size:``,format:``}),[F,I]=(0,u.useState)(`success`),[L,R]=(0,u.useState)(!1),z=u.default.useRef(null),V=u.default.useRef(null),ee=u.default.useRef(null),U=u.default.useRef(null),W=u.default.useRef(null),G=u.default.useRef(null),K=u.default.useRef(null),de=u.default.useRef(null),pe=u.default.useRef(null),[he,J]=(0,u.useState)(`auto`),[ge,Y]=(0,u.useState)(572),[_e,ve]=(0,u.useState)(!1),[ye,be]=(0,u.useState)({keywords:``,color:``,orientation:``}),[xe,Se]=(0,u.useState)({keywords:``}),[Ce,we]=(0,u.useState)([]),[Te,Ee]=(0,u.useState)([]),[De,Oe]=(0,u.useState)([]),[ke,Ae]=(0,u.useState)(!1),[je,Me]=(0,u.useState)(``),[Ne,Pe]=(0,u.useState)(!1),[Fe,Ie]=(0,u.useState)(0),Le=i.Ci(i.ct),Re=Le?.id===void 0?d||``:String(Le.id),ze=i.q(i.yo.UPLOAD_EVENT_ID),Be=u.default.useRef(l.u()),Ve=u.default.useRef(``),He=u.default.useRef(0),X=u.default.useRef(``),[Ue,We]=(0,u.useState)(``),[Ge,Ke]=(0,u.useState)(``),Z=(0,u.useCallback)(()=>{X.current&&=(URL.revokeObjectURL(X.current),``),We(``)},[]),Q=(0,u.useCallback)(()=>{Ke(``)},[]),$=!(_||v.id?.toString()!==Le?.members?.owner.ID),qe=e=>{E(e.target.value)},Je=(0,u.useCallback)((e,t,n=r(`The image could not be uploaded.`))=>{let i=t instanceof Error?t.message:n;g.error({id:`IMAGE_UPLOAD_ERROR`,data:e,title:r(`Upload failed`),description:i})},[r,g]),Ye=(0,u.useCallback)(async e=>c.o(await ze.fire({file:e,project:Re})),[Re,ze]),Xe=l.t(),Ze=async e=>{if(e)try{let t=await $e(e);t&&it(t)?await at({file:t}):t||Je({url:e},null,r(`Failed to download image from URL.`))}catch(t){Je({url:e},t,r(`Failed to process image URL.`))}},Qe=u.default.useRef(Ze);Qe.current=Ze,u.default.useEffect(()=>{if(j!==q||!k)return;let e=T.trim();if(!e||!e.toLowerCase().startsWith(`http`))return;let t=setTimeout(()=>{Qe.current(e)},1e3);return()=>{clearTimeout(t)}},[T,j,k]);let $e=async e=>{try{let t=l.l(e);return me(await Be.current.resolve(t,void 0,Xe),t)}catch{}};document.onpaste=function(e){let n=e.clipboardData?.items?.[0];if(j===q&&k){if(n?.type?.indexOf(`image`)===0&&t.imageCenterLocalUploadEnabled!==!1){let e=n.getAsFile();it(e);let t={file:e};E(``),at(t);return}let r=e.clipboardData?.getData(`text/plain`);if(r&&r.trim().toLowerCase().startsWith(`http`)){e.preventDefault(),e.stopPropagation(),E(r.trim());return}n?.type?.indexOf(`text`)===0&&n.getAsString(e=>{if(e.trim().toLowerCase().startsWith(`http`))E(e.trim());else if(e.toString().slice(1,5)===`meta`){let t=e.toString().split(`"`)[1];t&&E(t)}})}},(0,u.useEffect)(()=>{let e=e=>{let t=null;x?.kind===`background`?(t=ie,A(ie)):x?.kind===`img`&&(A(re),t=re),x?.currentUrl&&t&&(w(x.currentUrl),M(e))};b===i.ga.UPLOAD_IMAGE_MODAL||b===i.ga.UPLOAD_BACKGROUND_MODAL?e(oe):b===i.ga.UPLOAD_IMAGE_MODAL_AI||b===i.ga.UPLOAD_BACKGROUND_MODAL_AI?($?(Pe(!0),Ie(2)):e(le),setTimeout(()=>pe.current?.focus({cursor:`start`}),100)):b===i.ga.UPLOAD_IMAGE_MODAL_UPLOAD||b===i.ga.UPLOAD_BACKGROUND_MODAL_UPLOAD?(e(q),setTimeout(()=>G.current?.focus({cursor:`start`}),100)):b===i.ga.UPLOAD_IMAGE_MODAL_STOCK||b===i.ga.UPLOAD_BACKGROUND_MODAL_STOCK?($?(Pe(!0),Ie(3)):e(se),setTimeout(()=>de.current?.focus({cursor:`start`}),100)):b===i.ga.UPLOAD_IMAGE_MODAL_GIF||b===i.ga.UPLOAD_BACKGROUND_MODAL_GIF?($?(Pe(!0),Ie(3)):e(ce),setTimeout(()=>K.current?.focus({cursor:`start`}),100)):b===i.ga.UPLOAD_IMAGE_MODAL_EDIT||b===i.ga.UPLOAD_BACKGROUND_MODAL_EDIT?($?(Pe(!0),Ie(5)):e(oe),s(a.i(i.ga.IMAGE_EDITOR_MODAL))):A(``)},[b,s,$,x]);let et=(0,u.useCallback)(({url:e=C||``})=>{w(e),S({url:e,meta:{mode:`select`}}),setTimeout(()=>{Q(),Z(),be({keywords:``,color:``,orientation:``}),Se({keywords:``}),Ee([]),we([]),A(``),Me(``),Ae(!1),O(``),E(``),M(q)},200),s(a.t()),s(a.n())},[C,Q,s,S,Z]),tt=(0,u.useCallback)((e,t)=>(J(`auto`),R(!1),et({url:e}),g.success({id:`IMAGE_UPLOAD_SUCCESS`,data:t,title:r(`The image was successfully uploaded.`)}),e),[r,et,g]);(0,u.useEffect)(()=>{let t=T||D,r=l.l(t);if(!t||!r){I(``),Ve.current=``,Q(),Z(),Be.current.invalidateAll();return}let i=Ve.current;i&&i!==r&&(Be.current.abandonKey(i),Q(),Z()),Ve.current=r;let a=new AbortController,o=T?800:0,s=++He.current,c=setTimeout(async()=>{try{let i=async()=>{let e=await Be.current.resolve(r,a.signal,Xe);if(s!==He.current)return;let{width:t,height:n}=await l.d(e);if(s!==He.current)return;P({width:t,height:n,size:(e.size/1024).toFixed(2),format:fe(e.type)}),Q(),X.current&&URL.revokeObjectURL(X.current);let i=URL.createObjectURL(e);X.current=i,We(i)};if(n)await i();else{let t=await l.n(e,r);if(t?.previewUrl&&s===He.current){Ke(t.previewUrl),Z();try{let{data:e}=await m(r);if(s!==He.current)return;e?P({width:e?.width,height:e?.height,size:e?.fileSize==null?``:(e.fileSize/1024).toFixed(2),format:fe(e?.format)}):await i()}catch{await i()}}else await i()}if(s!==He.current)return;I(`success`),w(t),Y(572),setTimeout(()=>{let e=0;V.current&&(e=V.current.offsetHeight+62),J(e)},0)}catch(e){if(e?.name===`AbortError`||a.signal.aborted||s!==He.current)return;Q(),Z(),I(`error`)}},o);return()=>{clearTimeout(c),a.abort()}},[T,D,n,Q,Xe,m,Z,e]),(0,u.useEffect)(()=>{if(!C||T||D)return;let t=l.l(C),r=new AbortController,i=!1,a=async()=>{let e=await Be.current.resolve(t,r.signal,Xe);if(i)return;let{width:n,height:a}=await l.d(e);if(i)return;Q(),X.current&&URL.revokeObjectURL(X.current);let o=URL.createObjectURL(e);X.current=o,We(o),P({width:n,height:a,size:(e.size/1024).toFixed(2),format:fe(e.type)})};return(async()=>{try{if(!n){let n=await l.n(e,t);if(n?.previewUrl&&!i){Ke(n.previewUrl),Z();try{let{data:e}=await m(t);if(i)return;e?P({width:e?.width,height:e?.height,size:e?.fileSize==null?``:(e.fileSize/1024).toFixed(2),format:fe(e?.format)}):await a();return}catch{await a()}}}await a()}catch{i||Q()}})(),()=>{i=!0,r.abort()}},[n,Q,C,Xe,m,e,T,D]);let nt=()=>{s(a.t()),setTimeout(()=>{Q(),Z(),w(``),E(``),Ee([]),Ee([]),be({keywords:``,color:``,orientation:``}),Se({keywords:``}),J(`auto`),!ke&&Me(``),Y(572),M(q)},200)},rt=e=>{e===ae?h.success({mask:{closable:!0},centered:!0,title:r(`Coming soon`),content:r(`The feature is under development.`),okText:r(`Ok. I'll be waiting`),onOk:()=>{}}):e===oe&&C===``?h.warning({mask:{closable:!0},centered:!0,title:r(``),content:r(`To preview and edit the uploaded image`),okText:r(`Upload Image`),onOk:()=>{M(q)}}):(setTimeout(()=>{let t=0,n=0;e===q&&z.current?(ye.keywords===``&&G.current?.focus({cursor:`start`}),t=300,n=572):e===oe&&V.current?(t=V.current.offsetHeight+62,n=572):e===se&&ee.current?(ye.keywords===``&&de.current?.focus({cursor:`start`}),t=130,n=572,Te.length>0&&(n=1060,t=`84vh`)):e===ce&&U.current?(ye.keywords===``&&K.current?.focus({cursor:`start`}),t=130,n=572,Ce.length>0&&(n=1060,t=`84vh`)):e===le&&W.current&&(je===``&&De.length===0?(pe.current?.focus({cursor:`start`}),t=130):t=W.current.offsetHeight+82,n=572),J(t),Y(n)},0),M(e))};(0,u.useEffect)(()=>{ye.keywords===``&&(G?.current?.focus({cursor:`start`}),Ee([]),setTimeout(()=>{J(`auto`),Y(572)},0))},[ye,Ee,J,Y]);let it=e=>{let t=e.type===`image/jpeg`||e.type===`image/png`||e.type===`image/jpg`||e.type===`image/webp`||e.type===`image/gif`||e.type===`image/svg+xml`;return t||g.error({id:`IMAGE_UPLOAD_WRONG_FORMAT`,data:e,title:`Upload`,description:`You can only upload JPG/JPEG/PNG/WEBP/GIF/SVG file!`}),t},at=async({file:n})=>{try{ve(!0);let r=await l.i(n,t),i=await Ye(r);if(i)return tt(i,r),i;let a=await ne(r,e);if(a?.url)return tt(a.url,r),a.url;Je(r,null);return}catch(e){Je(n,e);return}finally{ve(!1)}},ot=e=>at({file:e}),st=[{label:r(`Upload`),key:q,children:(0,p.jsxs)(`div`,{ref:z,style:{paddingBottom:24},children:[t.imageCenterLocalUploadEnabled!==!1&&(0,p.jsxs)(ue,{showUploadList:!1,name:`Image`,beforeUpload:it,customRequest:at,style:{marginBottom:10},multiple:!1,accept:`image/png, image/jpeg, image/jpg, image/webp, image/gif, image/svg+xml`,children:[(0,p.jsx)(`p`,{className:`ant-upload-drag-icon`,children:(0,p.jsx)(c.m,{icon:`InboxOutlined`})}),(0,p.jsx)(`p`,{className:`ant-upload-text`,children:r(`Click to select, paste from the clipboard, or drag and drop`)}),(0,p.jsx)(`p`,{className:`ant-upload-hint`,children:r(`Accepted formats: PNG, JPG, WEBP, SVG or GIF.`)})]}),(0,p.jsx)(o.Ft,{style:{padding:`0 2px 0 2px`},children:(0,p.jsx)(o.Ft.Item,{validateStatus:F,children:(0,p.jsx)(o.kt,{ref:G,allowClear:!0,size:`large`,placeholder:r(`Paste image URL here`),value:T,onChange:qe,spellCheck:`false`})})})]})}];return t.imageCenterStockEnabled&&!$&&st.push({label:r(`Stock`),key:se,children:(0,p.jsx)(`div`,{ref:ee,style:{paddingBottom:24},children:(0,p.jsx)(B,{currentReq:ye,setCurrentReq:be,imageStockList:Te,setImageStockList:Ee,setModalWidth:Y,setModalHeight:J,setStockLink:O,setCurrentImageLink:w,inputRef:de,customRequest:Ze})})}),t.imageCenterGifEnabled&&!$&&st.push({label:r(`GIF`),key:ce,children:(0,p.jsx)(`div`,{ref:U,style:{paddingBottom:24},children:(0,p.jsx)(H,{currentReqGif:xe,setCurrentReqGif:Se,imageGifList:Ce,setImageGifList:we,setModalWidth:Y,setModalHeight:J,setStockLink:O,setCurrentImageLink:w,inputRef:K,customRequest:Ze})})}),t.elementAIimageEnabled&&!$&&st.push({label:r(`AI`),key:le,children:(0,p.jsx)(`div`,{ref:W,style:{paddingBottom:24},children:(0,p.jsx)(te,{setModalHeight:J,customRequest:at,aiImageRequest:je,setAiImageRequest:Me,imageAiList:De,setImageAiList:Oe,isLoadingAi:ke,setIsLoadingAi:Ae,aiTabRef:W,inputAiRef:pe,isImageUploaded:L,setIsImageUploaded:R})})}),t.imageCenterEditorEnabled&&st.push({label:``,key:oe,children:(0,p.jsx)(`div`,{ref:V,children:(0,p.jsx)(y,{currentImageLink:C,newLink:T,previewDisplayUrl:Ge,resolvedPreviewObjectUrl:Ue,imageSize:N,onSave:ot,uploadImageResultIsLoading:_e||!1})})}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(o.Y,{width:ge,className:`image-center`,title:r(`Image Center`),style:{minHeight:390},open:!!k,onOk:et,onCancel:nt,footer:j===oe?(0,p.jsx)(p.Fragment,{}):null,children:(0,p.jsx)(o.K,{spinning:_e,children:(0,p.jsx)(o.Z,{activeKey:j,onChange:rt,items:st,className:`modal-tabs`,style:{height:he,minHeight:130}})})}),(0,p.jsx)(c.g,{open:Ne,onCancel:()=>Pe(!1),initialSlide:Fe})]})};he.propTypes={dataProvider:d.default.object},t.default=he});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__emailmaker__.define(`static/core/816e810f.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/ef36d7f9.js`],function(e,t,n){e("./354bf8a9.js");let r=e("./ef36d7f9.js");var i={items_per_page:`/ page`,jump_to:`Aller à`,jump_to_confirm:`confirmer`,page:`Page`,prev_page:`Page précédente`,next_page:`Page suivante`,prev_5:`5 Pages précédentes`,next_5:`5 Pages suivantes`,prev_3:`3 Pages précédentes`,next_3:`3 Pages suivantes`,page_size:`taille de la page`};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t=l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,`string`);return a(t)==`symbol`?t:String(t)}function u(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var d=s(s({},r.t),{},{locale:`fr_FR`,today:`Aujourd'hui`,now:`Maintenant`,backToToday:`Aujourd'hui`,ok:`OK`,clear:`Rétablir`,week:`Semaine`,month:`Mois`,year:`Année`,timeSelect:`Sélectionner l'heure`,dateSelect:`Sélectionner la date`,monthSelect:`Choisissez un mois`,yearSelect:`Choisissez une année`,decadeSelect:`Choisissez une décennie`,dayFormat:`DD`,previousMonth:`Mois précédent (PageUp)`,nextMonth:`Mois suivant (PageDown)`,previousYear:`Année précédente (Ctrl + gauche)`,nextYear:`Année prochaine (Ctrl + droite)`,previousDecade:`Décennie précédente`,nextDecade:`Décennie suivante`,previousCentury:`Siècle précédent`,nextCentury:`Siècle suivant`}),f={placeholder:`Sélectionner l'heure`,rangePlaceholder:[`Heure de début`,`Heure de fin`]},p={lang:{placeholder:`Sélectionner une date`,yearPlaceholder:`Sélectionner une année`,quarterPlaceholder:`Sélectionner un trimestre`,monthPlaceholder:`Sélectionner un mois`,weekPlaceholder:`Sélectionner une semaine`,rangePlaceholder:[`Date de début`,`Date de fin`],rangeYearPlaceholder:[`Année de début`,`Année de fin`],rangeMonthPlaceholder:[`Mois de début`,`Mois de fin`],rangeWeekPlaceholder:[`Semaine de début`,`Semaine de fin`],...d},timePickerLocale:{...f}},m=p,h="La valeur du champ ${label} n'est pas valide pour le type ${type}";t.default={locale:`fr`,Pagination:i,DatePicker:p,TimePicker:f,Calendar:m,global:{close:`Fermer`,show:`Afficher`,hide:`Masquer`},Table:{filterTitle:`Filtrer`,filterConfirm:`OK`,filterReset:`Réinitialiser`,filterEmptyText:`Aucun filtre`,filterCheckAll:`Tout sélectionner`,filterSearchPlaceholder:`Chercher dans les filtres`,emptyText:`Aucune donnée`,selectAll:`Sélectionner la page actuelle`,selectInvert:`Inverser la sélection de la page actuelle`,selectNone:`Désélectionner toutes les données`,selectionAll:`Sélectionner toutes les données`,sortTitle:`Trier`,expand:`Développer la ligne`,collapse:`Réduire la ligne`,triggerDesc:`Trier par ordre décroissant`,triggerAsc:`Trier par ordre croissant`,cancelSort:`Annuler le tri`},Tour:{Next:`Étape suivante`,Previous:`Étape précédente`,Finish:`Fin de la visite guidée`},Modal:{okText:`OK`,cancelText:`Annuler`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Annuler`},Transfer:{titles:[``,``],searchPlaceholder:`Rechercher`,itemUnit:`élément`,itemsUnit:`éléments`,remove:`Désélectionner`,selectCurrent:`Sélectionner la page actuelle`,removeCurrent:`Désélectionner la page actuelle`,selectAll:`Sélectionner toutes les données`,removeAll:`Désélectionner toutes les données`,selectInvert:`Inverser la sélection de la page actuelle`},Upload:{uploading:`Téléchargement...`,removeFile:`Effacer le fichier`,uploadError:`Erreur de téléchargement`,previewFile:`Fichier de prévisualisation`,downloadFile:`Télécharger un fichier`},Empty:{description:`Aucune donnée`},Icon:{icon:`icône`},Text:{edit:`Éditer`,copy:`Copier`,copied:`Copie effectuée`,expand:`Développer`},Form:{optional:`(optionnel)`,defaultValidateMessages:{default:"Erreur de validation pour le champ ${label}",required:"Le champ ${label} est obligatoire",enum:"La valeur du champ ${label} doit être parmi [${enum}]",whitespace:"La valeur du champ ${label} ne peut pas être vide",date:{format:"La valeur du champ ${label} n'est pas au format date",parse:"La valeur du champ ${label} ne peut pas être convertie vers une date",invalid:"La valeur du champ ${label} n'est pas une date valide"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"La taille du champ ${label} doit être de ${len} caractères",min:"La taille du champ ${label} doit être au minimum de ${min} caractères",max:"La taille du champ ${label} doit être au maximum de ${max} caractères",range:"La taille du champ ${label} doit être entre ${min} et ${max} caractères"},number:{len:"La valeur du champ ${label} doit être égale à ${len}",min:"La valeur du champ ${label} doit être plus grande que ${min}",max:"La valeur du champ ${label} doit être plus petit que ${max}",range:"La valeur du champ ${label} doit être entre ${min} et ${max}"},array:{len:"La taille du tableau ${label} doit être de ${len}",min:"La taille du tableau ${label} doit être au minimum de ${min}",max:"La taille du tableau ${label} doit être au maximum de ${max}",range:"La taille du tableau ${label} doit être entre ${min}-${max}"},pattern:{mismatch:"La valeur du champ ${label} ne correspond pas au modèle ${pattern}"}}}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__emailmaker__.define(`static/core/81b54c02.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/ef36d7f9.js`],function(e,t,n){e("./354bf8a9.js");let r=e("./ef36d7f9.js");var i={items_per_page:`件 / ページ`,jump_to:`移動`,jump_to_confirm:`確認する`,page:`ページ`,prev_page:`前のページ`,next_page:`次のページ`,prev_5:`前 5ページ`,next_5:`次 5ページ`,prev_3:`前 3ページ`,next_3:`次 3ページ`,page_size:`ページサイズ`};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t=l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,`string`);return a(t)==`symbol`?t:String(t)}function u(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var d=s(s({},r.t),{},{locale:`ja_JP`,today:`今日`,now:`現在時刻`,backToToday:`今日に戻る`,ok:`確定`,timeSelect:`時間を選択`,dateSelect:`日時を選択`,weekSelect:`週を選択`,clear:`クリア`,week:`週`,month:`月`,year:`年`,previousMonth:`前月 (ページアップキー)`,nextMonth:`翌月 (ページダウンキー)`,monthSelect:`月を選択`,yearSelect:`年を選択`,decadeSelect:`年代を選択`,yearFormat:`YYYY年`,previousYear:`前年 (Controlを押しながら左キー)`,nextYear:`翌年 (Controlを押しながら右キー)`,previousDecade:`前の年代`,nextDecade:`次の年代`,previousCentury:`前の世紀`,nextCentury:`次の世紀`,monthBeforeYear:!1}),f={placeholder:`時間を選択`,rangePlaceholder:[`開始時間`,`終了時間`]},p={lang:{placeholder:`日付を選択`,yearPlaceholder:`年を選択`,quarterPlaceholder:`四半期を選択`,monthPlaceholder:`月を選択`,weekPlaceholder:`週を選択`,rangePlaceholder:[`開始日付`,`終了日付`],rangeYearPlaceholder:[`開始年`,`終了年`],rangeMonthPlaceholder:[`開始月`,`終了月`],rangeQuarterPlaceholder:[`開始四半期`,`終了四半期`],rangeWeekPlaceholder:[`開始週`,`終了週`],shortWeekDays:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],shortMonths:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],...d},timePickerLocale:{...f}},m=p,h="${label}は有効な${type}ではありません";t.default={locale:`ja`,Pagination:i,DatePicker:p,TimePicker:f,Calendar:m,global:{placeholder:`選んでください`,close:`閉じる`,show:`表示`,hide:`非表示`},Table:{filterTitle:`フィルター`,filterConfirm:`OK`,filterReset:`リセット`,filterEmptyText:`フィルターなし`,filterCheckAll:`すべてを選択`,filterSearchPlaceholder:`フィルターで検索`,emptyText:`データなし`,selectAll:`ページ単位で選択`,selectInvert:`ページ単位で反転`,selectNone:`クリア`,selectionAll:`すべてを選択`,sortTitle:`ソート`,expand:`展開する`,collapse:`折り畳む`,triggerDesc:`クリックで降順にソート`,triggerAsc:`クリックで昇順にソート`,cancelSort:`ソートをキャンセル`},Tour:{Next:`次`,Previous:`前の`,Finish:`仕上げる`},Modal:{okText:`OK`,cancelText:`キャンセル`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`キャンセル`},Transfer:{titles:[``,``],searchPlaceholder:`ここを検索`,itemUnit:`アイテム`,itemsUnit:`アイテム`,remove:`削除`,selectCurrent:`現在のページを選択`,removeCurrent:`現在のページを削除`,selectAll:`ページ単位で選択`,deselectAll:`すべてのデータの選択を解除する`,removeAll:`ページ単位で削除`,selectInvert:`ページ単位で反転`},Upload:{uploading:`アップロード中...`,removeFile:`ファイルを削除`,uploadError:`アップロードエラー`,previewFile:`ファイルをプレビュー`,downloadFile:`ダウンロードファイル`},Empty:{description:`データがありません`},Icon:{icon:`アイコン`},Text:{edit:`編集`,copy:`コピー`,copied:`コピーされました`,expand:`拡大する`,collapse:`崩壊`},Form:{optional:`(オプション)`,defaultValidateMessages:{default:"${label}のフィールド検証エラー",required:"${label}を入力してください",enum:"${label}は[${enum}]のいずれかである必要があります",whitespace:"${label}は空白文字にすることはできません",date:{format:"${label}の日付形式は不正です",parse:"${label}は日付に変換できません",invalid:"${label}は不正な日付です"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label}は${len}文字である必要があります",min:"${label}は${min}文字以上である必要があります",max:"${label}は${max}文字以下である必要があります",range:"${label}は${min}-${max}文字の範囲である必要があります"},number:{len:"${label}は${len}と等しい必要があります",min:"${label}の最小値は${min}です",max:"${label}の最大値は${max}です",range:"${label}は${min}-${max}の範囲である必要があります"},array:{len:"${label}は${len}である必要があります",min:"${label}の最小は${min}です",max:"${label}の最大は${max}です",range:"${label}の合計は${min}-${max}の範囲である必要があります"},pattern:{mismatch:"${label}はパターン${pattern}と一致しません"}}},QRCode:{expired:`QRコードの有効期限が切れました`,refresh:`リフレッシュ`,scanned:`スキャン済み`},ColorPicker:{presetEmpty:`空の`,transparent:`透明`,singleColor:`単色`,gradientColor:`グラデーション`}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__emailmaker__.define(`static/core/872f2250.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/ef36d7f9.js`],function(e,t,n){e("./354bf8a9.js");let r=e("./ef36d7f9.js");var i={items_per_page:`條/頁`,jump_to:`跳至`,jump_to_confirm:`確定`,page:`頁`,prev_page:`上一頁`,next_page:`下一頁`,prev_5:`向前 5 頁`,next_5:`向後 5 頁`,prev_3:`向前 3 頁`,next_3:`向後 3 頁`,page_size:`頁碼`};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t=l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,`string`);return a(t)==`symbol`?t:String(t)}function u(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var d=s(s({},r.t),{},{locale:`zh_TW`,today:`今天`,now:`此刻`,backToToday:`返回今天`,ok:`確定`,timeSelect:`選擇時間`,dateSelect:`選擇日期`,weekSelect:`選擇周`,clear:`清除`,week:`週`,month:`月`,year:`年`,previousMonth:`上個月 (翻頁上鍵)`,nextMonth:`下個月 (翻頁下鍵)`,monthSelect:`選擇月份`,yearSelect:`選擇年份`,decadeSelect:`選擇年代`,yearFormat:`YYYY年`,previousYear:`上一年 (Control鍵加左方向鍵)`,nextYear:`下一年 (Control鍵加右方向鍵)`,previousDecade:`上一年代`,nextDecade:`下一年代`,previousCentury:`上一世紀`,nextCentury:`下一世紀`,cellDateFormat:`D`,monthBeforeYear:!1}),f={placeholder:`請選擇時間`,rangePlaceholder:[`開始時間`,`結束時間`]},p={lang:{placeholder:`請選擇日期`,yearPlaceholder:`請選擇年份`,quarterPlaceholder:`請選擇季度`,monthPlaceholder:`請選擇月份`,weekPlaceholder:`請選擇周`,rangePlaceholder:[`開始日期`,`結束日期`],rangeYearPlaceholder:[`開始年份`,`結束年份`],rangeMonthPlaceholder:[`開始月份`,`結束月份`],rangeQuarterPlaceholder:[`開始季度`,`結束季度`],rangeWeekPlaceholder:[`開始周`,`結束周`],...d},timePickerLocale:{...f}};p.lang.ok=`確 定`;var m=p,h="${label}不是一個有效的${type}";t.default={locale:`zh-tw`,Pagination:i,DatePicker:p,TimePicker:f,Calendar:m,global:{placeholder:`請選擇`,close:`關閉`,show:`顯示`,hide:`隱藏`},Table:{filterTitle:`篩選器`,filterConfirm:`確定`,filterReset:`重置`,filterEmptyText:`無篩選項`,filterCheckAll:`全選`,filterSearchPlaceholder:`在篩選項中搜尋`,emptyText:`暫無數據`,selectAll:`全部選取`,selectInvert:`反向選取`,selectNone:`清空所有`,selectionAll:`全選所有`,sortTitle:`排序`,expand:`展開行`,collapse:`關閉行`,triggerDesc:`點擊降序`,triggerAsc:`點擊升序`,cancelSort:`取消排序`},Modal:{okText:`確定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`結束導覽`},Popconfirm:{okText:`確定`,cancelText:`取消`},Transfer:{titles:[``,``],searchPlaceholder:`搜尋資料`,itemUnit:`項目`,itemsUnit:`項目`,remove:`删除`,selectCurrent:`全選當頁`,removeCurrent:`删除當頁`,selectAll:`全選所有`,removeAll:`删除全部`,selectInvert:`反選當頁`},Upload:{uploading:`正在上傳...`,removeFile:`刪除檔案`,uploadError:`上傳失敗`,previewFile:`檔案預覽`,downloadFile:`下载文件`},Empty:{description:`無此資料`},Icon:{icon:`圖標`},Text:{edit:`編輯`,copy:`複製`,copied:`複製成功`,expand:`展開`,collapse:`收起`},Form:{optional:`(可選)`,defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},QRCode:{expired:`二維碼過期`,refresh:`點擊刷新`,scanned:`已掃描`},ColorPicker:{presetEmpty:`暫無`,transparent:`透明`,singleColor:`單色`,gradientColor:`漸變色`}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__emailmaker__.define(`static/core/8d43cba9.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/ef36d7f9.js`],function(e,t,n){e("./354bf8a9.js");let r=e("./ef36d7f9.js");var i={items_per_page:`na stronę`,jump_to:`Idź do`,jump_to_confirm:`potwierdź`,page:``,prev_page:`Poprzednia strona`,next_page:`Następna strona`,prev_5:`Poprzednie 5 stron`,next_5:`Następne 5 stron`,prev_3:`Poprzednie 3 strony`,next_3:`Następne 3 strony`,page_size:`rozmiar strony`};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t=l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,`string`);return a(t)==`symbol`?t:String(t)}function u(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var d=s(s({},r.t),{},{locale:`pl_PL`,today:`Dzisiaj`,now:`Teraz`,backToToday:`Ustaw dzisiaj`,ok:`OK`,clear:`Wyczyść`,week:`Tydzień`,month:`Miesiąc`,year:`Rok`,timeSelect:`Ustaw czas`,dateSelect:`Ustaw datę`,monthSelect:`Wybierz miesiąc`,yearSelect:`Wybierz rok`,decadeSelect:`Wybierz dekadę`,previousMonth:`Poprzedni miesiąc (PageUp)`,nextMonth:`Następny miesiąc (PageDown)`,previousYear:`Ostatni rok (Ctrl + left)`,nextYear:`Następny rok (Ctrl + right)`,previousDecade:`Ostatnia dekada`,nextDecade:`Następna dekada`,previousCentury:`Ostatni wiek`,nextCentury:`Następny wiek`}),f={placeholder:`Wybierz godzinę`,rangePlaceholder:[`Czas rozpoczęcia`,`Czas zakończenia`]},p={lang:{placeholder:`Wybierz datę`,rangePlaceholder:[`Data początkowa`,`Data końcowa`],yearFormat:`YYYY`,monthFormat:`MMMM`,monthBeforeYear:!0,shortWeekDays:[`Niedz`,`Pon`,`Wt`,`Śr`,`Czw`,`Pt`,`Sob`],shortMonths:[`Sty`,`Lut`,`Mar`,`Kwi`,`Maj`,`Cze`,`Lip`,`Sie`,`Wrz`,`Paź`,`Lis`,`Gru`],...d},timePickerLocale:{...f}},m=p,h="${label} nie posiada poprawnej wartości dla typu ${type}";t.default={locale:`pl`,Pagination:i,DatePicker:p,TimePicker:f,Calendar:m,global:{placeholder:`Wybierz`,close:`Zamknij`,show:`Pokaż`,hide:`Ukryj`},Table:{filterTitle:`Menu filtra`,filterConfirm:`OK`,filterReset:`Usuń filtry`,filterEmptyText:`Brak filtrów`,filterCheckAll:`Wybierz wszystkie elementy`,filterSearchPlaceholder:`Szukaj w filtrach`,emptyText:`Brak danych`,selectAll:`Zaznacz bieżącą stronę`,selectInvert:`Odwróć zaznaczenie`,selectNone:`Wyczyść`,selectionAll:`Wybierz wszystkie`,sortTitle:`Sortowanie`,expand:`Rozwiń wiersz`,collapse:`Zwiń wiersz`,triggerDesc:`Sortuj malejąco`,triggerAsc:`Sortuj rosnąco`,cancelSort:`Usuń sortowanie`},Tour:{Next:`Dalej`,Previous:`Wróć`,Finish:`Zakończ`},Modal:{okText:`OK`,cancelText:`Anuluj`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Anuluj`},Transfer:{titles:[``,``],searchPlaceholder:`Szukaj`,itemUnit:`obiekt`,itemsUnit:`obiekty`,remove:`Usuń`,selectCurrent:`Wybierz aktualną stronę`,removeCurrent:`Usuń aktualną stronę`,selectAll:`Wybierz wszystkie`,removeAll:`Usuń wszystkie`,selectInvert:`Odwróć wybór`},Upload:{uploading:`Wysyłanie...`,removeFile:`Usuń plik`,uploadError:`Błąd wysyłania`,previewFile:`Podejrzyj plik`,downloadFile:`Pobieranie pliku`},Empty:{description:`Brak danych`},Icon:{icon:`Ikona`},Text:{edit:`Edytuj`,copy:`Kopiuj`,copied:`Skopiowany`,expand:`Rozwiń`},Form:{optional:`(opcjonalne)`,defaultValidateMessages:{default:"Błąd walidacji dla pola ${label}",required:"Pole ${label} jest wymagane",enum:"Pole ${label} musi posiadać wartość z listy: [${enum}]",whitespace:"Pole ${label} nie może być puste",date:{format:"${label} posiada zły format daty",parse:"${label} nie może zostać zinterpretowane jako data",invalid:"${label} jest niepoprawną datą"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label} musi posiadać ${len} znaków",min:"${label} musi posiadać co namniej ${min} znaków",max:"${label} musi posiadać maksymalnie ${max} znaków",range:"${label} musi posiadać między ${min} a ${max} znaków"},number:{len:"${label} musi mieć wartość o długości ${len}",min:"${label} musi mieć wartość większą lub równą ${min}",max:"${label} musi mieć wartość mniejszą lub równą ${max}",range:"${label} musi mieć wartość pomiędzy ${min} a ${max}"},array:{len:"${label} musi posiadać ${len} elementów",min:"${label} musi posiadać co najmniej ${min} elementów",max:"${label} musi posiadać maksymalnie ${max} elementów",range:"${label} musi posiadać między ${min} a ${max} elementów"},pattern:{mismatch:"${label} nie posiada wartości zgodnej ze wzorem ${pattern}"}}}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define(`static/core/3ba2a2df.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/92ad1565.js`],function(e,t,n){e("./354bf8a9.js");let r=e("./92ad1565.js");var i,a,o={},s={},c={};function l(){return i?c:(i=1,Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t,n){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.data=t,this.text=n.text||t,this.options=n},c)}function u(){if(a)return s;a=1,Object.defineProperty(s,"__esModule",{value:!0}),s.CODE39=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),e=e.toUpperCase(),t.mod43&&(e+=function(e){return r[e]}(function(e){for(var t=0,n=0;n<e.length;n++)t+=c(e[n]);return t%=43}(e))),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=o(`*`),t=0;t<this.data.length;t++)e+=o(this.data[t])+`0`;return{data:e+=o(`*`),text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*`.split(``),i=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function o(e){return function(e){return i[e].toString(2)}(c(e))}function c(e){return r.indexOf(e)}return s.CODE39=n,s}var d,ee,f={},p={},m={},h={};function g(){if(d)return h;var e;function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}d=1,Object.defineProperty(h,"__esModule",{value:!0});var n=h.SET_A=0,r=h.SET_B=1,i=h.SET_C=2;h.SHIFT=98;var a=h.START_A=103,o=h.START_B=104,s=h.START_C=105;return h.MODULO=103,h.STOP=106,h.FNC1=207,h.SET_BY_CODE=(t(e={},a,n),t(e,o,r),t(e,s,i),e),h.SWAP={101:n,100:r,99:i},h.A_START_CHAR=`Ð`,h.B_START_CHAR=`Ñ`,h.C_START_CHAR=`Ò`,h.A_CHARS=`[\0-_È-Ï]`,h.B_CHARS=`[ -È-Ï]`,h.C_CHARS=`(Ï*[0-9]{2}Ï*)`,h.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],h}function _(){if(ee)return m;ee=1,Object.defineProperty(m,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=l())&&e.__esModule?e:{default:e},r=g();return m.default=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.substring(1),t));return r.bytes=e.split(``).map(function(e){return e.charCodeAt(0)}),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.bytes,t=e.shift()-105,i=r.SET_BY_CODE[t];if(i===void 0)throw RangeError(`The encoding does not start with a start character.`);!0===this.shouldEncodeAsEan128()&&e.unshift(r.FNC1);var a=n.next(e,1,i);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,``):this.text,data:n.getBar(t)+a.result+n.getBar((a.checksum+t)%r.MODULO)+n.getBar(r.STOP)}}},{key:`shouldEncodeAsEan128`,value:function(){var e=this.options.ean128||!1;return typeof e==`string`&&(e=e.toLowerCase()===`true`),e}}],[{key:`getBar`,value:function(e){return r.BARS[e]?r.BARS[e].toString():``}},{key:`correctIndex`,value:function(e,t){if(t===r.SET_A){var n=e.shift();return n<32?n+64:n-32}return t===r.SET_B?e.shift()-32:10*(e.shift()-48)+e.shift()-48}},{key:`next`,value:function(e,t,i){if(!e.length)return{result:``,checksum:0};var a=void 0,o=void 0;if(e[0]>=200){o=e.shift()-105;var s=r.SWAP[o];s===void 0?(i!==r.SET_A&&i!==r.SET_B||o!==r.SHIFT||(e[0]=i===r.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),a=n.next(e,t+1,i)):a=n.next(e,t+1,s)}else o=n.correctIndex(e,i),a=n.next(e,t+1,i);var c=o*t;return{result:n.getBar(o)+a.result,checksum:c+a.checksum}}}]),n}(n.default),m}var te,ne,v={};function re(){if(ne)return p;ne=1,Object.defineProperty(p,"__esModule",{value:!0});var e=n(_()),t=n(function(){if(te)return v;te=1,Object.defineProperty(v,"__esModule",{value:!0});var e=g(),t=function(t){return t.match(RegExp(`^`+e.A_CHARS+`*`))[0].length},n=function(t){return t.match(RegExp(`^`+e.B_CHARS+`*`))[0].length},r=function(t){return t.match(RegExp(`^`+e.C_CHARS+`*`))[0]};function i(t,n){var r=n?e.A_CHARS:e.B_CHARS,o=t.match(RegExp(`^(`+r+`+?)(([0-9]{2}){2,})([^0-9]|$)`));if(o)return o[1]+`Ì`+a(t.substring(o[1].length));var s=t.match(RegExp(`^`+r+`+`))[0];return s.length===t.length?t:s+String.fromCharCode(n?205:206)+i(t.substring(s.length),!n)}function a(e){var a=r(e),o=a.length;if(o===e.length)return e;e=e.substring(o);var s=t(e)>=n(e);return a+String.fromCharCode(s?206:205)+i(e,s)}return v.default=function(o){var s=void 0;if(r(o).length>=2)s=e.C_START_CHAR+a(o);else{var c=t(o)>n(o);s=(c?e.A_START_CHAR:e.B_START_CHAR)+i(o,c)}return s.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(e,t){return`Ë`+t})},v}());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}return p.default=function(e){function n(e,i){if(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var a=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,(0,t.default)(e),i));else a=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,i));return r(a)}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),n}(e.default),p}var ie,y={};function ae(){if(ie)return y;ie=1,Object.defineProperty(y,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return y.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.A_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.A_CHARS+`+$`).test(this.data)}}]),n}(n.default),y}var oe,b={};function se(){if(oe)return b;oe=1,Object.defineProperty(b,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return b.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.B_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.B_CHARS+`+$`).test(this.data)}}]),n}(n.default),b}var ce,le,ue={};function de(){if(ce)return ue;ce=1,Object.defineProperty(ue,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return ue.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.C_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.C_CHARS+`+$`).test(this.data)}}]),n}(n.default),ue}var fe,x={},pe={},S={};function C(){return fe||(fe=1,Object.defineProperty(S,"__esModule",{value:!0}),S.SIDE_BIN=`101`,S.MIDDLE_BIN=`01010`,S.BINARIES={L:[`0001101`,`0011001`,`0010011`,`0111101`,`0100011`,`0110001`,`0101111`,`0111011`,`0110111`,`0001011`],G:[`0100111`,`0110011`,`0011011`,`0100001`,`0011101`,`0111001`,`0000101`,`0010001`,`0001001`,`0010111`],R:[`1110010`,`1100110`,`1101100`,`1000010`,`1011100`,`1001110`,`1010000`,`1000100`,`1001000`,`1110100`],O:[`0001101`,`0011001`,`0010011`,`0111101`,`0100011`,`0110001`,`0101111`,`0111011`,`0110111`,`0001011`],E:[`0100111`,`0110011`,`0011011`,`0100001`,`0011101`,`0111001`,`0000101`,`0010001`,`0001001`,`0010111`]},S.EAN2_STRUCTURE=[`LL`,`LG`,`GL`,`GG`],S.EAN5_STRUCTURE=[`GGLLL`,`GLGLL`,`GLLGL`,`GLLLG`,`LGGLL`,`LLGGL`,`LLLGG`,`LGLGL`,`LGLLG`,`LLGLG`],S.EAN13_STRUCTURE=[`LLLLLL`,`LLGLGG`,`LLGGLG`,`LLGGGL`,`LGLLGG`,`LGGLLG`,`LGGGLL`,`LGLGLG`,`LGLGGL`,`LGGLGL`]),S}var me,he,ge,w={},T={};function E(){if(me)return T;me=1,Object.defineProperty(T,"__esModule",{value:!0});var e=C();return T.default=function(t,n,r){var i=t.split(``).map(function(t,r){return e.BINARIES[n[r]]}).map(function(e,n){return e?e[t[n]]:``});if(r){var a=t.length-1;i=i.map(function(e,t){return t<a?e+r:e})}return i.join(``)},T}function _e(){if(he)return w;he=1,Object.defineProperty(w,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=r(E());function r(e){return e&&e.__esModule?e:{default:e}}return w.default=function(r){function i(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,i);var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.fontSize=!t.flat&&t.fontSize>10*t.width?10*t.width:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`encode`,value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:`leftText`,value:function(e,t){return this.text.substr(e,t)}},{key:`leftEncode`,value:function(e,t){return(0,n.default)(e,t)}},{key:`rightText`,value:function(e,t){return this.text.substr(e,t)}},{key:`rightEncode`,value:function(e,t){return(0,n.default)(e,t)}},{key:`encodeGuarded`,value:function(){var e={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:t.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:e},{data:t.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:e},{data:t.SIDE_BIN,options:n}]}},{key:`encodeFlat`,value:function(){return{data:[t.SIDE_BIN,this.leftEncode(),t.MIDDLE_BIN,this.rightEncode(),t.SIDE_BIN].join(``),text:this.text}}}]),i}(r(l()).default),w}function ve(){if(ge)return pe;ge=1,Object.defineProperty(pe,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=C(),i=(e=_e())&&e.__esModule?e:{default:e},a=function(e){return(10-e.substr(0,12).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+3*t:e+t},0)%10)%10};return pe.default=function(e){function i(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,i),e.search(/^[0-9]{12}$/)!==-1&&(e+=a(e));var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.lastChar=t.lastChar,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===a(this.data)}},{key:`leftText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftText`,this).call(this,1,6)}},{key:`leftEncode`,value:function(){var e=this.data.substr(1,6),t=r.EAN13_STRUCTURE[this.data[0]];return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftEncode`,this).call(this,e,t)}},{key:`rightText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightText`,this).call(this,7,6)}},{key:`rightEncode`,value:function(){var e=this.data.substr(7,6);return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightEncode`,this).call(this,e,`RRRRRR`)}},{key:`encodeGuarded`,value:function(){var e=n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`encodeGuarded`,this).call(this);return this.options.displayValue&&(e.unshift({data:`000000000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:`00`}),e.push({data:`00000`,text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),i}(i.default),pe}var ye,D={};function be(){if(ye)return D;ye=1,Object.defineProperty(D,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=(e=_e())&&e.__esModule?e:{default:e},i=function(e){return(10-e.substr(0,7).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t:e+3*t},0)%10)%10};return D.default=function(e){function r(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),e.search(/^[0-9]{7}$/)!==-1&&(e+=i(e)),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===i(this.data)}},{key:`leftText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftText`,this).call(this,0,4)}},{key:`leftEncode`,value:function(){var e=this.data.substr(0,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftEncode`,this).call(this,e,`LLLL`)}},{key:`rightText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightText`,this).call(this,4,4)}},{key:`rightEncode`,value:function(){var e=this.data.substr(4,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightEncode`,this).call(this,e,`RRRR`)}}]),r}(r.default),D}var xe,O={};function Se(){if(xe)return O;xe=1,Object.defineProperty(O,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=i(E()),r=i(l());function i(e){return e&&e.__esModule?e:{default:e}}return O.default=function(r){function i(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:`encode`,value:function(){var e,r=t.EAN5_STRUCTURE[e=this.data,e.split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+9*t:e+3*t},0)%10];return{data:`1011`+(0,n.default)(this.data,r,`01`),text:this.text}}}]),i}(r.default),O}var Ce,k={};function we(){if(Ce)return k;Ce=1,Object.defineProperty(k,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=r(E());function r(e){return e&&e.__esModule?e:{default:e}}return k.default=function(r){function i(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:`encode`,value:function(){var e=t.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:`1011`+(0,n.default)(this.data,e,`01`),text:this.text}}}]),i}(r(l()).default),k}var Te,A={};function Ee(){if(Te)return A;Te=1,Object.defineProperty(A,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();A.checksum=i;var t=n(E());function n(e){return e&&e.__esModule?e:{default:e}}var r=function(n){function r(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,r),e.search(/^[0-9]{11}$/)!==-1&&(e+=i(e));var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),e(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==i(this.data)}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=(0,t.default)(this.data.substr(0,6),`LLLLLL`),e+=`01010`,e+=(0,t.default)(this.data.substr(6,6),`RRRRRR`),{data:e+=`101`,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`+(0,t.default)(this.data[0],`L`),options:{height:this.guardHeight}}),e.push({data:(0,t.default)(this.data.substr(1,5),`LLLLL`),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:`01010`,options:{height:this.guardHeight}}),e.push({data:(0,t.default)(this.data.substr(6,5),`RRRRR`),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,t.default)(this.data[11],`R`)+`101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text.substr(11,1),options:{textAlign:`right`,fontSize:this.fontSize}}),e}}]),r}(n(l()).default);function i(e){var t,n=0;for(t=1;t<11;t+=2)n+=parseInt(e[t]);for(t=0;t<11;t+=2)n+=3*parseInt(e[t]);return(10-n%10)%10}return A.default=r,A}var De,Oe,j={};function ke(){if(De)return j;De=1,Object.defineProperty(j,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=i(E()),n=i(l()),r=Ee();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}var o=[`XX00000XXX`,`XX10000XXX`,`XX20000XXX`,`XXX00000XX`,`XXXX00000X`,`XXXXX00005`,`XXXXX00006`,`XXXXX00007`,`XXXXX00008`,`XXXXX00009`],s=[[`EEEOOO`,`OOOEEE`],[`EEOEOO`,`OOEOEE`],[`EEOOEO`,`OOEEOE`],[`EEOOOE`,`OOEEEO`],[`EOEEOO`,`OEOOEE`],[`EOOEEO`,`OEEOOE`],[`EOOOEE`,`OEEEOO`],[`EOEOEO`,`OEOEOE`],[`EOEOOE`,`OEOEEO`],[`EOOEOE`,`OEEOEO`]],c=function(n){function r(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,r);var n=a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(n.isValid=!1,e.search(/^[0-9]{6}$/)!==-1)n.middleDigits=e,n.upcA=u(e,`0`),n.text=t.text||``+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(e.search(/^[01][0-9]{7}$/)===-1||(n.middleDigits=e.substring(1,e.length-1),n.upcA=u(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]!==e[e.length-1]))return a(n);n.isValid=!0}return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),e(r,[{key:`valid`,value:function(){return this.isValid}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=this.encodeMiddleDigits(),{data:e+=`010101`,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text[0],options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`,options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:`010101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text[7],options:{textAlign:`right`,fontSize:this.fontSize}}),e}},{key:`encodeMiddleDigits`,value:function(){var e=this.upcA[0],n=this.upcA[this.upcA.length-1],r=s[parseInt(n)][parseInt(e)];return(0,t.default)(this.middleDigits,r)}}]),r}(n.default);function u(e,t){for(var n=o[parseInt(e[e.length-1])],i=``,a=0,s=0;s<n.length;s++){var c=n[s];i+=c===`X`?e[a++]:c}return(i=``+t+i)+(0,r.checksum)(i)}return j.default=c,j}var Ae,je,M={},N={},P={};function Me(){if(je)return N;je=1,Object.defineProperty(N,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(Ae||(Ae=1,Object.defineProperty(P,"__esModule",{value:!0}),P.START_BIN=`1010`,P.END_BIN=`11101`,P.BINARIES=[`00110`,`10001`,`01001`,`11000`,`00101`,`10100`,`01100`,`00011`,`10010`,`01010`]),P);return N.default=function(e){function r(){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:`encode`,value:function(){var e=this,t=this.data.match(/.{2}/g).map(function(t){return e.encodePair(t)}).join(``);return{data:n.START_BIN+t+n.END_BIN,text:this.text}}},{key:`encodePair`,value:function(e){var t=n.BINARIES[e[1]];return n.BINARIES[e[0]].split(``).map(function(e,n){return(e===`1`?`111`:`1`)+(t[n]===`1`?`000`:`0`)}).join(``)}}]),r}(((e=l())&&e.__esModule?e:{default:e}).default),N}var Ne,Pe,F={};function Fe(){if(Ne)return F;Ne=1,Object.defineProperty(F,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=Me())&&e.__esModule?e:{default:e},r=function(e){var t=e.substr(0,13).split(``).map(function(e){return parseInt(e,10)}).reduce(function(e,t,n){return e+t*(3-n%2*2)},0);return 10*Math.ceil(t/10)-t};return F.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),e.search(/^[0-9]{13}$/)!==-1&&(e+=r(e)),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===r(this.data)}}]),n}(n.default),F}var Ie,I={},L={};function R(){if(Ie)return L;Ie=1,Object.defineProperty(L,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=`110`,t=0;t<this.data.length;t++){var n=parseInt(this.data[t]).toString(2);n=r(n,4-n.length);for(var i=0;i<n.length;i++)e+=n[i]==`0`?`100`:`110`}return{data:e+=`1001`,text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default);function r(e,t){for(var n=0;n<t;n++)e=`0`+e;return e}return L.default=n,L}var Le,Re,z={},B={};function V(){return Le?B:(Le=1,Object.defineProperty(B,"__esModule",{value:!0}),B.mod10=function(e){for(var t=0,n=0;n<e.length;n++){var r=parseInt(e[n]);(n+e.length)%2==0?t+=r:t+=2*r%10+Math.floor(2*r/10)}return(10-t%10)%10},B.mod11=function(e){for(var t=0,n=[2,3,4,5,6,7],r=0;r<e.length;r++){var i=parseInt(e[e.length-1-r]);t+=n[r%n.length]*i}return(11-t%11)%11},B)}function ze(){if(Re)return z;Re=1,Object.defineProperty(z,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return z.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod10)(e),r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),z}var Be,H={};function Ve(){if(Be)return H;Be=1,Object.defineProperty(H,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return H.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod11)(e),r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),H}var He,U={};function Ue(){if(He)return U;He=1,Object.defineProperty(U,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return U.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),e+=(0,n.mod10)(e),e+=(0,n.mod10)(e),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),U}var We,Ge,Ke={};function qe(){if(We)return Ke;We=1,Object.defineProperty(Ke,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return Ke.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),e+=(0,n.mod11)(e),e+=(0,n.mod10)(e),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),Ke}var Je,W={};function Ye(){if(Je)return W;Je=1,Object.defineProperty(W,"__esModule",{value:!0}),W.pharmacode=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return W.pharmacode=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return r.number=parseInt(e,10),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=this.number,t=``;!isNaN(e)&&e!=0;)e%2==0?(t=`11100`+t,e=(e-2)/2):(t=`100`+t,e=(e-1)/2);return{data:t=t.slice(0,-2),text:this.text}}},{key:`valid`,value:function(){return this.number>=3&&this.number<=131070}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),W}var Xe,G={};function Ze(){if(Xe)return G;Xe=1,Object.defineProperty(G,"__esModule",{value:!0}),G.codabar=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return G.codabar=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n),e.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(e=`A`+e+`A`);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.toUpperCase(),t));return r.text=r.options.text||r.text.replace(/[A-D]/g,``),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:`encode`,value:function(){for(var e=[],t=this.getEncodings(),n=0;n<this.data.length;n++)e.push(t[this.data.charAt(n)]),n!==this.data.length-1&&e.push(`0`);return{text:this.text,data:e.join(``)}}},{key:`getEncodings`,value:function(){return{0:`101010011`,1:`101011001`,2:`101001011`,3:`110010101`,4:`101101001`,5:`110101001`,6:`100101011`,7:`100101101`,8:`100110101`,9:`110100101`,"-":`101001101`,$:`101100101`,":":`1101011011`,"/":`1101101011`,".":`1101101101`,"+":`1011011011`,A:`1011001001`,B:`1001001011`,C:`1010010011`,D:`1010011001`}}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),G}var Qe,$e,K={},q={},J={};function et(){if($e)return q;$e=1,Object.defineProperty(q,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(Qe||(Qe=1,Object.defineProperty(J,"__esModule",{value:!0}),J.SYMBOLS=`0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,-,., ,$,/,+,%,($),(%),(/),(+),ÿ`.split(`,`),J.BINARIES=`100010100.101001000.101000100.101000010.100101000.100100100.100100010.101010000.100010010.100001010.110101000.110100100.110100010.110010100.110010010.110001010.101101000.101100100.101100010.100110100.100011010.101011000.101001100.101000110.100101100.100010110.110110100.110110010.110101100.110100110.110010110.110011010.101101100.101100110.100110110.100111010.100101110.111010100.111010010.111001010.101101110.101110110.110101110.100100110.111011010.111010110.100110010.101011110`.split(`.`),J.MULTI_SYMBOLS={"\0":[`(%)`,`U`],"":[`($)`,`A`],"":[`($)`,`B`],"":[`($)`,`C`],"":[`($)`,`D`],"":[`($)`,`E`],"":[`($)`,`F`],"\x07":[`($)`,`G`],"\b":[`($)`,`H`]," ":[`($)`,`I`],"\n":[`($)`,`J`],"\v":[`($)`,`K`],"\f":[`($)`,`L`],"\r":[`($)`,`M`],"":[`($)`,`N`],"":[`($)`,`O`],"":[`($)`,`P`],"":[`($)`,`Q`],"":[`($)`,`R`],"":[`($)`,`S`],"":[`($)`,`T`],"":[`($)`,`U`],"":[`($)`,`V`],"":[`($)`,`W`],"":[`($)`,`X`],"":[`($)`,`Y`],"":[`($)`,`Z`],"\x1B":[`(%)`,`A`],"":[`(%)`,`B`],"":[`(%)`,`C`],"":[`(%)`,`D`],"":[`(%)`,`E`],"!":[`(/)`,`A`],'"':[`(/)`,`B`],"#":[`(/)`,`C`],"&":[`(/)`,`F`],"'":[`(/)`,`G`],"(":[`(/)`,`H`],")":[`(/)`,`I`],"*":[`(/)`,`J`],",":[`(/)`,`L`],":":[`(/)`,`Z`],";":[`(%)`,`F`],"<":[`(%)`,`G`],"=":[`(%)`,`H`],">":[`(%)`,`I`],"?":[`(%)`,`J`],"@":[`(%)`,`V`],"[":[`(%)`,`K`],"\\":[`(%)`,`L`],"]":[`(%)`,`M`],"^":[`(%)`,`N`],_:[`(%)`,`O`],"`":[`(%)`,`W`],a:[`(+)`,`A`],b:[`(+)`,`B`],c:[`(+)`,`C`],d:[`(+)`,`D`],e:[`(+)`,`E`],f:[`(+)`,`F`],g:[`(+)`,`G`],h:[`(+)`,`H`],i:[`(+)`,`I`],j:[`(+)`,`J`],k:[`(+)`,`K`],l:[`(+)`,`L`],m:[`(+)`,`M`],n:[`(+)`,`N`],o:[`(+)`,`O`],p:[`(+)`,`P`],q:[`(+)`,`Q`],r:[`(+)`,`R`],s:[`(+)`,`S`],t:[`(+)`,`T`],u:[`(+)`,`U`],v:[`(+)`,`V`],w:[`(+)`,`W`],x:[`(+)`,`X`],y:[`(+)`,`Y`],z:[`(+)`,`Z`],"{":[`(%)`,`P`],"|":[`(%)`,`Q`],"}":[`(%)`,`R`],"~":[`(%)`,`S`],"":[`(%)`,`T`]}),J);return q.default=function(e){function r(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.data.split(``).flatMap(function(e){return n.MULTI_SYMBOLS[e]||e}),t=e.map(function(e){return r.getEncoding(e)}).join(``),i=r.checksum(e,20),a=r.checksum(e.concat(i),15);return{text:this.text,data:r.getEncoding(`ÿ`)+t+r.getEncoding(i)+r.getEncoding(a)+r.getEncoding(`ÿ`)+`1`}}}],[{key:`getEncoding`,value:function(e){return n.BINARIES[r.symbolValue(e)]}},{key:`getSymbol`,value:function(e){return n.SYMBOLS[e]}},{key:`symbolValue`,value:function(e){return n.SYMBOLS.indexOf(e)}},{key:`checksum`,value:function(e,t){var n=e.slice().reverse().reduce(function(e,n,i){var a=i%t+1;return e+r.symbolValue(n)*a},0);return r.getSymbol(n%47)}}]),r}(((e=l())&&e.__esModule?e:{default:e}).default),q}var tt,nt,Y={};function rt(){if(tt)return Y;tt=1,Object.defineProperty(Y,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Y.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),n}(((e=et())&&e.__esModule?e:{default:e}).default),Y}var it,at,X={};function ot(){if(it)return X;it=1,Object.defineProperty(X,"__esModule",{value:!0}),X.GenericBarcode=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return X.GenericBarcode=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){return{data:`10101010101010101010101010101010101010101`,text:this.text}}},{key:`valid`,value:function(){return!0}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),X}function st(){if(at)return o;at=1,Object.defineProperty(o,"__esModule",{value:!0});var e=u(),t=function(){if(le)return f;le=1,Object.defineProperty(f,"__esModule",{value:!0}),f.CODE128C=f.CODE128B=f.CODE128A=f.CODE128=void 0;var e=i(re()),t=i(ae()),n=i(se()),r=i(de());function i(e){return e&&e.__esModule?e:{default:e}}return f.CODE128=e.default,f.CODE128A=t.default,f.CODE128B=n.default,f.CODE128C=r.default,f}(),n=function(){if(Oe)return x;Oe=1,Object.defineProperty(x,"__esModule",{value:!0}),x.UPCE=x.UPC=x.EAN2=x.EAN5=x.EAN8=x.EAN13=void 0;var e=o(ve()),t=o(be()),n=o(Se()),r=o(we()),i=o(Ee()),a=o(ke());function o(e){return e&&e.__esModule?e:{default:e}}return x.EAN13=e.default,x.EAN8=t.default,x.EAN5=n.default,x.EAN2=r.default,x.UPC=i.default,x.UPCE=a.default,x}(),r=function(){if(Pe)return M;Pe=1,Object.defineProperty(M,"__esModule",{value:!0}),M.ITF14=M.ITF=void 0;var e=n(Me()),t=n(Fe());function n(e){return e&&e.__esModule?e:{default:e}}return M.ITF=e.default,M.ITF14=t.default,M}(),i=function(){if(Ge)return I;Ge=1,Object.defineProperty(I,"__esModule",{value:!0}),I.MSI1110=I.MSI1010=I.MSI11=I.MSI10=I.MSI=void 0;var e=a(R()),t=a(ze()),n=a(Ve()),r=a(Ue()),i=a(qe());function a(e){return e&&e.__esModule?e:{default:e}}return I.MSI=e.default,I.MSI10=t.default,I.MSI11=n.default,I.MSI1010=r.default,I.MSI1110=i.default,I}(),a=Ye(),s=Ze(),c=function(){if(nt)return K;nt=1,Object.defineProperty(K,"__esModule",{value:!0}),K.CODE93FullASCII=K.CODE93=void 0;var e=n(et()),t=n(rt());function n(e){return e&&e.__esModule?e:{default:e}}return K.CODE93=e.default,K.CODE93FullASCII=t.default,K}(),l=ot();return o.default={CODE39:e.CODE39,CODE128:t.CODE128,CODE128A:t.CODE128A,CODE128B:t.CODE128B,CODE128C:t.CODE128C,EAN13:n.EAN13,EAN8:n.EAN8,EAN5:n.EAN5,EAN2:n.EAN2,UPC:n.UPC,UPCE:n.UPCE,ITF14:r.ITF14,ITF:r.ITF,MSI:i.MSI,MSI10:i.MSI10,MSI11:i.MSI11,MSI1010:i.MSI1010,MSI1110:i.MSI1110,pharmacode:a.pharmacode,codabar:s.codabar,CODE93:c.CODE93,CODE93FullASCII:c.CODE93FullASCII,GenericBarcode:l.GenericBarcode},o}var ct,lt={};function ut(){if(ct)return lt;ct=1,Object.defineProperty(lt,"__esModule",{value:!0});var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};return lt.default=function(t,n){return e({},t,n)},lt}var dt,ft={},pt,mt={},ht,gt={},_t={},vt={};function yt(){return ht?vt:(ht=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.default=function(e){var t=[`width`,`height`,`textMargin`,`fontSize`,`margin`,`marginTop`,`marginBottom`,`marginLeft`,`marginRight`];for(var n in t)t.hasOwnProperty(n)&&typeof e[n=t[n]]==`string`&&(e[n]=parseInt(e[n],10));return typeof e.displayValue==`string`&&(e.displayValue=e.displayValue!=`false`),e},vt)}var bt,xt,St={};function Ct(){return bt?St:(bt=1,Object.defineProperty(St,"__esModule",{value:!0}),St.default={width:2,height:100,format:`auto`,displayValue:!0,fontOptions:``,font:`monospace`,text:void 0,textAlign:`center`,textPosition:`bottom`,textMargin:2,fontSize:20,background:`#ffffff`,lineColor:`#000000`,margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}},St)}var wt,Tt,Et={},Dt={},Z={};function Ot(){if(wt)return Z;wt=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.getTotalWidthOfEncodings=Z.calculateEncodingAttributes=Z.getBarcodePadding=Z.getEncodingHeight=Z.getMaximumHeightOfEncodings=void 0;var e,t=(e=ut())&&e.__esModule?e:{default:e};function n(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function r(e,t,n){if(n.displayValue&&t<e){if(n.textAlign==`center`)return Math.floor((e-t)/2);if(n.textAlign==`left`)return 0;if(n.textAlign==`right`)return Math.floor(e-t)}return 0}function i(e,t,n){var r;if(n)r=n;else{if(typeof document>`u`)return 0;r=document.createElement(`canvas`).getContext(`2d`)}r.font=t.fontOptions+` `+t.fontSize+`px `+t.font;var i=r.measureText(e);return i?i.width:0}return Z.getMaximumHeightOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)e[n].height>t&&(t=e[n].height);return t},Z.getEncodingHeight=n,Z.getBarcodePadding=r,Z.calculateEncodingAttributes=function(e,a,o){for(var s=0;s<e.length;s++){var c,l=e[s],u=(0,t.default)(a,l.options);c=u.displayValue?i(l.text,u,o):0;var d=l.data.length*u.width;l.width=Math.ceil(Math.max(c,d)),l.height=n(l,u),l.barcodePadding=r(c,d,u)}},Z.getTotalWidthOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].width;return t},Z}function kt(){if(Tt)return Dt;Tt=1,Object.defineProperty(Dt,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=ut())&&e.__esModule?e:{default:e},r=Ot();return Dt.default=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.canvas=t,this.encodings=n,this.options=r}return t(e,[{key:`render`,value:function(){if(!this.canvas.getContext)throw Error(`The browser does not support canvas.`);this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,n.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:`prepareCanvas`,value:function(){var e=this.canvas.getContext(`2d`);e.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,r.getTotalWidthOfEncodings)(this.encodings),n=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:`drawCanvasBarcode`,value:function(e,t){var n,r=this.canvas.getContext(`2d`),i=t.data;n=e.textPosition==`top`?e.marginTop+e.fontSize+e.textMargin:e.marginTop,r.fillStyle=e.lineColor;for(var a=0;a<i.length;a++){var o=a*e.width+t.barcodePadding;i[a]===`1`?r.fillRect(o,n,e.width,e.height):i[a]&&r.fillRect(o,n,e.width,e.height*i[a])}}},{key:`drawCanvasText`,value:function(e,t){var n,r,i=this.canvas.getContext(`2d`),a=e.fontOptions+` `+e.fontSize+`px `+e.font;e.displayValue&&(r=e.textPosition==`top`?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize,i.font=a,e.textAlign==`left`||t.barcodePadding>0?(n=0,i.textAlign=`left`):e.textAlign==`right`?(n=t.width-1,i.textAlign=`right`):(n=t.width/2,i.textAlign=`center`),i.fillText(t.text,n,r))}},{key:`moveCanvasDrawing`,value:function(e){this.canvas.getContext(`2d`).translate(e.width,0)}},{key:`restoreCanvas`,value:function(){this.canvas.getContext(`2d`).restore()}}]),e}(),Dt}var At,jt={};function Mt(){if(At)return jt;At=1,Object.defineProperty(jt,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=ut())&&e.__esModule?e:{default:e},r=Ot(),i=`http://www.w3.org/2000/svg`;return jt.default=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.svg=t,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return t(e,[{key:`render`,value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var r=this.encodings[t],i=(0,n.default)(this.options,r.options),a=this.createGroup(e,i.marginTop,this.svg);this.setGroupOptions(a,i),this.drawSvgBarcode(a,i,r),this.drawSVGText(a,i,r),e+=r.width}}},{key:`prepareSVG`,value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,r.getTotalWidthOfEncodings)(this.encodings),t=(0,r.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute(`fill`,this.options.background)}},{key:`drawSvgBarcode`,value:function(e,t,n){var r,i=n.data;r=t.textPosition==`top`?t.fontSize+t.textMargin:0;for(var a=0,o=0,s=0;s<i.length;s++)o=s*t.width+n.barcodePadding,i[s]===`1`?a++:a>0&&(this.drawRect(o-t.width*a,r,t.width*a,t.height,e),a=0);a>0&&this.drawRect(o-t.width*(a-1),r,t.width*a,t.height,e)}},{key:`drawSVGText`,value:function(e,t,n){var r,a,o=this.document.createElementNS(i,`text`);t.displayValue&&(o.setAttribute(`font-family`,t.font),o.setAttribute(`font-size`,t.fontSize),t.fontOptions.includes(`bold`)&&o.setAttribute(`font-weight`,`bold`),t.fontOptions.includes(`italic`)&&o.setAttribute(`font-style`,`italic`),a=t.textPosition==`top`?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,t.textAlign==`left`||n.barcodePadding>0?(r=0,o.setAttribute(`text-anchor`,`start`)):t.textAlign==`right`?(r=n.width-1,o.setAttribute(`text-anchor`,`end`)):(r=n.width/2,o.setAttribute(`text-anchor`,`middle`)),o.setAttribute(`x`,r),o.setAttribute(`y`,a),o.appendChild(this.document.createTextNode(n.text)),e.appendChild(o))}},{key:`setSvgAttributes`,value:function(e,t){var n=this.svg;n.setAttribute(`width`,e+`px`),n.setAttribute(`height`,t+`px`),n.setAttribute(`x`,`0px`),n.setAttribute(`y`,`0px`),n.setAttribute(`viewBox`,`0 0 `+e+` `+t),n.setAttribute(`xmlns`,i),n.setAttribute(`version`,`1.1`)}},{key:`createGroup`,value:function(e,t,n){var r=this.document.createElementNS(i,`g`);return r.setAttribute(`transform`,`translate(`+e+`, `+t+`)`),n.appendChild(r),r}},{key:`setGroupOptions`,value:function(e,t){e.setAttribute(`fill`,t.lineColor)}},{key:`drawRect`,value:function(e,t,n,r,a){var o=this.document.createElementNS(i,`rect`);return o.setAttribute(`x`,e),o.setAttribute(`y`,t),o.setAttribute(`width`,n),o.setAttribute(`height`,r),a.appendChild(o),o}}]),e}(),jt}var Nt,Pt,Q={};function Ft(){if(Nt)return Q;Nt=1,Object.defineProperty(Q,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Q.default=function(){function t(e,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,t),this.object=e,this.encodings=n,this.options=r}return e(t,[{key:`render`,value:function(){this.object.encodings=this.encodings}}]),t}(),Q}var It,Lt,$={};function Rt(){if(It)return $;function e(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function t(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}function n(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}It=1,Object.defineProperty($,"__esModule",{value:!0});var r=function(){function r(n,i){e(this,r);var a=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return a.name=`InvalidInputException`,a.symbology=n,a.input=i,a.message=`"`+a.input+`" is not a valid input for `+a.symbology,a}return n(r,Error),r}(),i=function(){function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.name=`InvalidElementException`,n.message=`Not supported type to render on`,n}return n(r,Error),r}(),a=function(){function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.name=`NoElementException`,n.message=`No element to render on.`,n}return n(r,Error),r}();return $.InvalidInputException=r,$.InvalidElementException=i,$.NoElementException=a,$}function zt(){if(Lt)return gt;Lt=1,Object.defineProperty(gt,"__esModule",{value:!0});var e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t=i(function(){if(xt)return _t;xt=1,Object.defineProperty(_t,"__esModule",{value:!0});var e=n(yt()),t=n(Ct());function n(e){return e&&e.__esModule?e:{default:e}}return _t.default=function(n){var r={};for(var i in t.default)t.default.hasOwnProperty(i)&&(n.hasAttribute(`jsbarcode-`+i.toLowerCase())&&(r[i]=n.getAttribute(`jsbarcode-`+i.toLowerCase())),n.hasAttribute(`data-`+i.toLowerCase())&&(r[i]=n.getAttribute(`data-`+i.toLowerCase())));return r.value=n.getAttribute(`jsbarcode-value`)||n.getAttribute(`data-value`),(0,e.default)(r)},_t}()),n=i(function(){if(Pt)return Et;Pt=1,Object.defineProperty(Et,"__esModule",{value:!0});var e=r(kt()),t=r(Mt()),n=r(Ft());function r(e){return e&&e.__esModule?e:{default:e}}return Et.default={CanvasRenderer:e.default,SVGRenderer:t.default,ObjectRenderer:n.default},Et}()),r=Rt();function i(e){return e&&e.__esModule?e:{default:e}}function a(i){if(typeof i==`string`)return function(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var n=[],r=0;r<t.length;r++)n.push(a(t[r]));return n}}(i);if(Array.isArray(i)){for(var o=[],s=0;s<i.length;s++)o.push(a(i[s]));return o}if(typeof HTMLCanvasElement<`u`&&i instanceof HTMLImageElement)return function(e){var r=document.createElement(`canvas`);return{element:r,options:(0,t.default)(e),renderer:n.default.CanvasRenderer,afterRender:function(){e.setAttribute(`src`,r.toDataURL())}}}(i);if(i&&i.nodeName&&i.nodeName.toLowerCase()===`svg`||typeof SVGElement<`u`&&i instanceof SVGElement)return{element:i,options:(0,t.default)(i),renderer:n.default.SVGRenderer};if(typeof HTMLCanvasElement<`u`&&i instanceof HTMLCanvasElement)return{element:i,options:(0,t.default)(i),renderer:n.default.CanvasRenderer};if(i&&i.getContext)return{element:i,renderer:n.default.CanvasRenderer};if(i&&(i===void 0?`undefined`:e(i))===`object`&&!i.nodeName)return{element:i,renderer:n.default.ObjectRenderer};throw new r.InvalidElementException}return gt.default=a,gt}var Bt,Vt,Ht,Ut={};function Wt(){if(Bt)return Ut;Bt=1,Object.defineProperty(Ut,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Ut.default=function(){function t(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,t),this.api=e}return e(t,[{key:`handleCatch`,value:function(e){if(e.name!==`InvalidInputException`)throw e;if(this.api._options.valid===this.api._defaults.valid)throw e.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:`wrapBarcodeCall`,value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(e){return this.handleCatch(e),this.api}}}]),t}(),Ut}var Gt=r.D(function(){if(Ht)return Vt;Ht=1;var e=l(st()),t=l(ut()),n=l((dt||(dt=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=function(e){var t=[];return function e(n){if(Array.isArray(n))for(var r=0;r<n.length;r++)e(n[r]);else n.text=n.text||``,n.data=n.data||``,t.push(n)}(e),t}),ft)),r=l((pt||(pt=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=function(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}),mt)),i=l(zt()),a=l(yt()),o=l(Wt()),s=Rt(),c=l(Ct());function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){},d=function(e,t,n){var r=new u;if(e===void 0)throw Error(`No element to render on was provided.`);return r._renderProperties=(0,i.default)(e),r._encodings=[],r._options=c.default,r._errorHandler=new o.default(r),t!==void 0&&((n||={}).format||(n.format=m()),r.options(n)[n.format](t,n).render()),r};for(var ee in d.getModule=function(t){return e.default[t]},e.default)e.default.hasOwnProperty(ee)&&f(e.default,ee);function f(e,n){u.prototype[n]=u.prototype[n.toUpperCase()]=u.prototype[n.toLowerCase()]=function(r,i){var o=this;return o._errorHandler.wrapBarcodeCall(function(){i.text=i.text===void 0?void 0:``+i.text;var s=(0,t.default)(o._options,i);s=(0,a.default)(s);var c=e[n],l=p(r,c,s);return o._encodings.push(l),o})}}function p(e,r,i){var a=new r(e=``+e,i);if(!a.valid())throw new s.InvalidInputException(a.constructor.name,e);var o=a.encode();o=(0,n.default)(o);for(var c=0;c<o.length;c++)o[c].options=(0,t.default)(i,o[c].options);return o}function m(){return e.default.CODE128?`CODE128`:Object.keys(e.default)[0]}function h(e,i,a){i=(0,n.default)(i);for(var o=0;o<i.length;o++)i[o].options=(0,t.default)(a,i[o].options),(0,r.default)(i[o].options);(0,r.default)(a),new e.renderer(e.element,i,a).render(),e.afterRender&&e.afterRender()}return u.prototype.options=function(e){return this._options=(0,t.default)(this._options,e),this},u.prototype.blank=function(e){var t=Array(e+1).join(`0`);return this._encodings.push({data:t}),this},u.prototype.init=function(){var n;if(this._renderProperties)for(var r in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){n=this._renderProperties[r];var i=(0,t.default)(this._options,n.options);i.format==`auto`&&(i.format=m()),this._errorHandler.wrapBarcodeCall(function(){var t=p(i.value,e.default[i.format.toUpperCase()],i);h(n,t,i)})}},u.prototype.render=function(){if(!this._renderProperties)throw new s.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)h(this._renderProperties[e],this._encodings,this._options);else h(this._renderProperties,this._encodings,this._options);return this},u.prototype._defaults=c.default,typeof window<`u`&&(window.JsBarcode=d),typeof jQuery<`u`&&(jQuery.fn.JsBarcode=function(e,t){var n=[];return jQuery(this).each(function(){n.push(this)}),d(n,e,t)}),Vt=d}());t.J=Object.freeze({__proto__:null,default:Gt})});
|
|
1
|
+
__emailmaker__.define(`static/core/91634ef3.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/25d26369.js`],function(e,t,n){e("./354bf8a9.js");let r=e("./25d26369.js");var i,a,o={},s={},c={};function l(){return i?c:(i=1,Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t,n){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.data=t,this.text=n.text||t,this.options=n},c)}function u(){if(a)return s;a=1,Object.defineProperty(s,"__esModule",{value:!0}),s.CODE39=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),e=e.toUpperCase(),t.mod43&&(e+=function(e){return r[e]}(function(e){for(var t=0,n=0;n<e.length;n++)t+=c(e[n]);return t%=43}(e))),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=o(`*`),t=0;t<this.data.length;t++)e+=o(this.data[t])+`0`;return{data:e+=o(`*`),text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*`.split(``),i=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function o(e){return function(e){return i[e].toString(2)}(c(e))}function c(e){return r.indexOf(e)}return s.CODE39=n,s}var d,ee,f={},p={},m={},h={};function g(){if(d)return h;var e;function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}d=1,Object.defineProperty(h,"__esModule",{value:!0});var n=h.SET_A=0,r=h.SET_B=1,i=h.SET_C=2;h.SHIFT=98;var a=h.START_A=103,o=h.START_B=104,s=h.START_C=105;return h.MODULO=103,h.STOP=106,h.FNC1=207,h.SET_BY_CODE=(t(e={},a,n),t(e,o,r),t(e,s,i),e),h.SWAP={101:n,100:r,99:i},h.A_START_CHAR=`Ð`,h.B_START_CHAR=`Ñ`,h.C_START_CHAR=`Ò`,h.A_CHARS=`[\0-_È-Ï]`,h.B_CHARS=`[ -È-Ï]`,h.C_CHARS=`(Ï*[0-9]{2}Ï*)`,h.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],h}function _(){if(ee)return m;ee=1,Object.defineProperty(m,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=l())&&e.__esModule?e:{default:e},r=g();return m.default=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.substring(1),t));return r.bytes=e.split(``).map(function(e){return e.charCodeAt(0)}),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.bytes,t=e.shift()-105,i=r.SET_BY_CODE[t];if(i===void 0)throw RangeError(`The encoding does not start with a start character.`);!0===this.shouldEncodeAsEan128()&&e.unshift(r.FNC1);var a=n.next(e,1,i);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,``):this.text,data:n.getBar(t)+a.result+n.getBar((a.checksum+t)%r.MODULO)+n.getBar(r.STOP)}}},{key:`shouldEncodeAsEan128`,value:function(){var e=this.options.ean128||!1;return typeof e==`string`&&(e=e.toLowerCase()===`true`),e}}],[{key:`getBar`,value:function(e){return r.BARS[e]?r.BARS[e].toString():``}},{key:`correctIndex`,value:function(e,t){if(t===r.SET_A){var n=e.shift();return n<32?n+64:n-32}return t===r.SET_B?e.shift()-32:10*(e.shift()-48)+e.shift()-48}},{key:`next`,value:function(e,t,i){if(!e.length)return{result:``,checksum:0};var a=void 0,o=void 0;if(e[0]>=200){o=e.shift()-105;var s=r.SWAP[o];s===void 0?(i!==r.SET_A&&i!==r.SET_B||o!==r.SHIFT||(e[0]=i===r.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),a=n.next(e,t+1,i)):a=n.next(e,t+1,s)}else o=n.correctIndex(e,i),a=n.next(e,t+1,i);var c=o*t;return{result:n.getBar(o)+a.result,checksum:c+a.checksum}}}]),n}(n.default),m}var te,ne,v={};function re(){if(ne)return p;ne=1,Object.defineProperty(p,"__esModule",{value:!0});var e=n(_()),t=n(function(){if(te)return v;te=1,Object.defineProperty(v,"__esModule",{value:!0});var e=g(),t=function(t){return t.match(RegExp(`^`+e.A_CHARS+`*`))[0].length},n=function(t){return t.match(RegExp(`^`+e.B_CHARS+`*`))[0].length},r=function(t){return t.match(RegExp(`^`+e.C_CHARS+`*`))[0]};function i(t,n){var r=n?e.A_CHARS:e.B_CHARS,o=t.match(RegExp(`^(`+r+`+?)(([0-9]{2}){2,})([^0-9]|$)`));if(o)return o[1]+`Ì`+a(t.substring(o[1].length));var s=t.match(RegExp(`^`+r+`+`))[0];return s.length===t.length?t:s+String.fromCharCode(n?205:206)+i(t.substring(s.length),!n)}function a(e){var a=r(e),o=a.length;if(o===e.length)return e;e=e.substring(o);var s=t(e)>=n(e);return a+String.fromCharCode(s?206:205)+i(e,s)}return v.default=function(o){var s=void 0;if(r(o).length>=2)s=e.C_START_CHAR+a(o);else{var c=t(o)>n(o);s=(c?e.A_START_CHAR:e.B_START_CHAR)+i(o,c)}return s.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(e,t){return`Ë`+t})},v}());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}return p.default=function(e){function n(e,i){if(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var a=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,(0,t.default)(e),i));else a=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,i));return r(a)}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),n}(e.default),p}var ie,y={};function ae(){if(ie)return y;ie=1,Object.defineProperty(y,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return y.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.A_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.A_CHARS+`+$`).test(this.data)}}]),n}(n.default),y}var oe,b={};function se(){if(oe)return b;oe=1,Object.defineProperty(b,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return b.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.B_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.B_CHARS+`+$`).test(this.data)}}]),n}(n.default),b}var ce,le,ue={};function de(){if(ce)return ue;ce=1,Object.defineProperty(ue,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return ue.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.C_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.C_CHARS+`+$`).test(this.data)}}]),n}(n.default),ue}var fe,x={},pe={},S={};function C(){return fe||(fe=1,Object.defineProperty(S,"__esModule",{value:!0}),S.SIDE_BIN=`101`,S.MIDDLE_BIN=`01010`,S.BINARIES={L:[`0001101`,`0011001`,`0010011`,`0111101`,`0100011`,`0110001`,`0101111`,`0111011`,`0110111`,`0001011`],G:[`0100111`,`0110011`,`0011011`,`0100001`,`0011101`,`0111001`,`0000101`,`0010001`,`0001001`,`0010111`],R:[`1110010`,`1100110`,`1101100`,`1000010`,`1011100`,`1001110`,`1010000`,`1000100`,`1001000`,`1110100`],O:[`0001101`,`0011001`,`0010011`,`0111101`,`0100011`,`0110001`,`0101111`,`0111011`,`0110111`,`0001011`],E:[`0100111`,`0110011`,`0011011`,`0100001`,`0011101`,`0111001`,`0000101`,`0010001`,`0001001`,`0010111`]},S.EAN2_STRUCTURE=[`LL`,`LG`,`GL`,`GG`],S.EAN5_STRUCTURE=[`GGLLL`,`GLGLL`,`GLLGL`,`GLLLG`,`LGGLL`,`LLGGL`,`LLLGG`,`LGLGL`,`LGLLG`,`LLGLG`],S.EAN13_STRUCTURE=[`LLLLLL`,`LLGLGG`,`LLGGLG`,`LLGGGL`,`LGLLGG`,`LGGLLG`,`LGGGLL`,`LGLGLG`,`LGLGGL`,`LGGLGL`]),S}var me,he,ge,w={},T={};function E(){if(me)return T;me=1,Object.defineProperty(T,"__esModule",{value:!0});var e=C();return T.default=function(t,n,r){var i=t.split(``).map(function(t,r){return e.BINARIES[n[r]]}).map(function(e,n){return e?e[t[n]]:``});if(r){var a=t.length-1;i=i.map(function(e,t){return t<a?e+r:e})}return i.join(``)},T}function _e(){if(he)return w;he=1,Object.defineProperty(w,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=r(E());function r(e){return e&&e.__esModule?e:{default:e}}return w.default=function(r){function i(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,i);var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.fontSize=!t.flat&&t.fontSize>10*t.width?10*t.width:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`encode`,value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:`leftText`,value:function(e,t){return this.text.substr(e,t)}},{key:`leftEncode`,value:function(e,t){return(0,n.default)(e,t)}},{key:`rightText`,value:function(e,t){return this.text.substr(e,t)}},{key:`rightEncode`,value:function(e,t){return(0,n.default)(e,t)}},{key:`encodeGuarded`,value:function(){var e={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:t.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:e},{data:t.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:e},{data:t.SIDE_BIN,options:n}]}},{key:`encodeFlat`,value:function(){return{data:[t.SIDE_BIN,this.leftEncode(),t.MIDDLE_BIN,this.rightEncode(),t.SIDE_BIN].join(``),text:this.text}}}]),i}(r(l()).default),w}function ve(){if(ge)return pe;ge=1,Object.defineProperty(pe,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=C(),i=(e=_e())&&e.__esModule?e:{default:e},a=function(e){return(10-e.substr(0,12).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+3*t:e+t},0)%10)%10};return pe.default=function(e){function i(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,i),e.search(/^[0-9]{12}$/)!==-1&&(e+=a(e));var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.lastChar=t.lastChar,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===a(this.data)}},{key:`leftText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftText`,this).call(this,1,6)}},{key:`leftEncode`,value:function(){var e=this.data.substr(1,6),t=r.EAN13_STRUCTURE[this.data[0]];return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftEncode`,this).call(this,e,t)}},{key:`rightText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightText`,this).call(this,7,6)}},{key:`rightEncode`,value:function(){var e=this.data.substr(7,6);return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightEncode`,this).call(this,e,`RRRRRR`)}},{key:`encodeGuarded`,value:function(){var e=n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`encodeGuarded`,this).call(this);return this.options.displayValue&&(e.unshift({data:`000000000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:`00`}),e.push({data:`00000`,text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),i}(i.default),pe}var ye,D={};function be(){if(ye)return D;ye=1,Object.defineProperty(D,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=(e=_e())&&e.__esModule?e:{default:e},i=function(e){return(10-e.substr(0,7).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t:e+3*t},0)%10)%10};return D.default=function(e){function r(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),e.search(/^[0-9]{7}$/)!==-1&&(e+=i(e)),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===i(this.data)}},{key:`leftText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftText`,this).call(this,0,4)}},{key:`leftEncode`,value:function(){var e=this.data.substr(0,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftEncode`,this).call(this,e,`LLLL`)}},{key:`rightText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightText`,this).call(this,4,4)}},{key:`rightEncode`,value:function(){var e=this.data.substr(4,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightEncode`,this).call(this,e,`RRRR`)}}]),r}(r.default),D}var xe,O={};function Se(){if(xe)return O;xe=1,Object.defineProperty(O,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=i(E()),r=i(l());function i(e){return e&&e.__esModule?e:{default:e}}return O.default=function(r){function i(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:`encode`,value:function(){var e,r=t.EAN5_STRUCTURE[e=this.data,e.split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+9*t:e+3*t},0)%10];return{data:`1011`+(0,n.default)(this.data,r,`01`),text:this.text}}}]),i}(r.default),O}var Ce,k={};function we(){if(Ce)return k;Ce=1,Object.defineProperty(k,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=r(E());function r(e){return e&&e.__esModule?e:{default:e}}return k.default=function(r){function i(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:`encode`,value:function(){var e=t.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:`1011`+(0,n.default)(this.data,e,`01`),text:this.text}}}]),i}(r(l()).default),k}var Te,A={};function Ee(){if(Te)return A;Te=1,Object.defineProperty(A,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();A.checksum=i;var t=n(E());function n(e){return e&&e.__esModule?e:{default:e}}var r=function(n){function r(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,r),e.search(/^[0-9]{11}$/)!==-1&&(e+=i(e));var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),e(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==i(this.data)}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=(0,t.default)(this.data.substr(0,6),`LLLLLL`),e+=`01010`,e+=(0,t.default)(this.data.substr(6,6),`RRRRRR`),{data:e+=`101`,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`+(0,t.default)(this.data[0],`L`),options:{height:this.guardHeight}}),e.push({data:(0,t.default)(this.data.substr(1,5),`LLLLL`),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:`01010`,options:{height:this.guardHeight}}),e.push({data:(0,t.default)(this.data.substr(6,5),`RRRRR`),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,t.default)(this.data[11],`R`)+`101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text.substr(11,1),options:{textAlign:`right`,fontSize:this.fontSize}}),e}}]),r}(n(l()).default);function i(e){var t,n=0;for(t=1;t<11;t+=2)n+=parseInt(e[t]);for(t=0;t<11;t+=2)n+=3*parseInt(e[t]);return(10-n%10)%10}return A.default=r,A}var De,Oe,j={};function ke(){if(De)return j;De=1,Object.defineProperty(j,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=i(E()),n=i(l()),r=Ee();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}var o=[`XX00000XXX`,`XX10000XXX`,`XX20000XXX`,`XXX00000XX`,`XXXX00000X`,`XXXXX00005`,`XXXXX00006`,`XXXXX00007`,`XXXXX00008`,`XXXXX00009`],s=[[`EEEOOO`,`OOOEEE`],[`EEOEOO`,`OOEOEE`],[`EEOOEO`,`OOEEOE`],[`EEOOOE`,`OOEEEO`],[`EOEEOO`,`OEOOEE`],[`EOOEEO`,`OEEOOE`],[`EOOOEE`,`OEEEOO`],[`EOEOEO`,`OEOEOE`],[`EOEOOE`,`OEOEEO`],[`EOOEOE`,`OEEOEO`]],c=function(n){function r(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,r);var n=a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(n.isValid=!1,e.search(/^[0-9]{6}$/)!==-1)n.middleDigits=e,n.upcA=u(e,`0`),n.text=t.text||``+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(e.search(/^[01][0-9]{7}$/)===-1||(n.middleDigits=e.substring(1,e.length-1),n.upcA=u(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]!==e[e.length-1]))return a(n);n.isValid=!0}return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),e(r,[{key:`valid`,value:function(){return this.isValid}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=this.encodeMiddleDigits(),{data:e+=`010101`,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text[0],options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`,options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:`010101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text[7],options:{textAlign:`right`,fontSize:this.fontSize}}),e}},{key:`encodeMiddleDigits`,value:function(){var e=this.upcA[0],n=this.upcA[this.upcA.length-1],r=s[parseInt(n)][parseInt(e)];return(0,t.default)(this.middleDigits,r)}}]),r}(n.default);function u(e,t){for(var n=o[parseInt(e[e.length-1])],i=``,a=0,s=0;s<n.length;s++){var c=n[s];i+=c===`X`?e[a++]:c}return(i=``+t+i)+(0,r.checksum)(i)}return j.default=c,j}var Ae,je,M={},N={},P={};function Me(){if(je)return N;je=1,Object.defineProperty(N,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(Ae||(Ae=1,Object.defineProperty(P,"__esModule",{value:!0}),P.START_BIN=`1010`,P.END_BIN=`11101`,P.BINARIES=[`00110`,`10001`,`01001`,`11000`,`00101`,`10100`,`01100`,`00011`,`10010`,`01010`]),P);return N.default=function(e){function r(){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:`encode`,value:function(){var e=this,t=this.data.match(/.{2}/g).map(function(t){return e.encodePair(t)}).join(``);return{data:n.START_BIN+t+n.END_BIN,text:this.text}}},{key:`encodePair`,value:function(e){var t=n.BINARIES[e[1]];return n.BINARIES[e[0]].split(``).map(function(e,n){return(e===`1`?`111`:`1`)+(t[n]===`1`?`000`:`0`)}).join(``)}}]),r}(((e=l())&&e.__esModule?e:{default:e}).default),N}var Ne,Pe,F={};function Fe(){if(Ne)return F;Ne=1,Object.defineProperty(F,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=Me())&&e.__esModule?e:{default:e},r=function(e){var t=e.substr(0,13).split(``).map(function(e){return parseInt(e,10)}).reduce(function(e,t,n){return e+t*(3-n%2*2)},0);return 10*Math.ceil(t/10)-t};return F.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),e.search(/^[0-9]{13}$/)!==-1&&(e+=r(e)),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===r(this.data)}}]),n}(n.default),F}var Ie,I={},L={};function R(){if(Ie)return L;Ie=1,Object.defineProperty(L,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=`110`,t=0;t<this.data.length;t++){var n=parseInt(this.data[t]).toString(2);n=r(n,4-n.length);for(var i=0;i<n.length;i++)e+=n[i]==`0`?`100`:`110`}return{data:e+=`1001`,text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default);function r(e,t){for(var n=0;n<t;n++)e=`0`+e;return e}return L.default=n,L}var Le,Re,z={},B={};function V(){return Le?B:(Le=1,Object.defineProperty(B,"__esModule",{value:!0}),B.mod10=function(e){for(var t=0,n=0;n<e.length;n++){var r=parseInt(e[n]);(n+e.length)%2==0?t+=r:t+=2*r%10+Math.floor(2*r/10)}return(10-t%10)%10},B.mod11=function(e){for(var t=0,n=[2,3,4,5,6,7],r=0;r<e.length;r++){var i=parseInt(e[e.length-1-r]);t+=n[r%n.length]*i}return(11-t%11)%11},B)}function ze(){if(Re)return z;Re=1,Object.defineProperty(z,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return z.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod10)(e),r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),z}var Be,H={};function Ve(){if(Be)return H;Be=1,Object.defineProperty(H,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return H.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod11)(e),r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),H}var He,U={};function Ue(){if(He)return U;He=1,Object.defineProperty(U,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return U.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),e+=(0,n.mod10)(e),e+=(0,n.mod10)(e),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),U}var We,Ge,Ke={};function qe(){if(We)return Ke;We=1,Object.defineProperty(Ke,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return Ke.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),e+=(0,n.mod11)(e),e+=(0,n.mod10)(e),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),Ke}var Je,W={};function Ye(){if(Je)return W;Je=1,Object.defineProperty(W,"__esModule",{value:!0}),W.pharmacode=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return W.pharmacode=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return r.number=parseInt(e,10),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=this.number,t=``;!isNaN(e)&&e!=0;)e%2==0?(t=`11100`+t,e=(e-2)/2):(t=`100`+t,e=(e-1)/2);return{data:t=t.slice(0,-2),text:this.text}}},{key:`valid`,value:function(){return this.number>=3&&this.number<=131070}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),W}var Xe,G={};function Ze(){if(Xe)return G;Xe=1,Object.defineProperty(G,"__esModule",{value:!0}),G.codabar=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return G.codabar=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n),e.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(e=`A`+e+`A`);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.toUpperCase(),t));return r.text=r.options.text||r.text.replace(/[A-D]/g,``),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:`encode`,value:function(){for(var e=[],t=this.getEncodings(),n=0;n<this.data.length;n++)e.push(t[this.data.charAt(n)]),n!==this.data.length-1&&e.push(`0`);return{text:this.text,data:e.join(``)}}},{key:`getEncodings`,value:function(){return{0:`101010011`,1:`101011001`,2:`101001011`,3:`110010101`,4:`101101001`,5:`110101001`,6:`100101011`,7:`100101101`,8:`100110101`,9:`110100101`,"-":`101001101`,$:`101100101`,":":`1101011011`,"/":`1101101011`,".":`1101101101`,"+":`1011011011`,A:`1011001001`,B:`1001001011`,C:`1010010011`,D:`1010011001`}}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),G}var Qe,$e,K={},q={},J={};function et(){if($e)return q;$e=1,Object.defineProperty(q,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(Qe||(Qe=1,Object.defineProperty(J,"__esModule",{value:!0}),J.SYMBOLS=`0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,-,., ,$,/,+,%,($),(%),(/),(+),ÿ`.split(`,`),J.BINARIES=`100010100.101001000.101000100.101000010.100101000.100100100.100100010.101010000.100010010.100001010.110101000.110100100.110100010.110010100.110010010.110001010.101101000.101100100.101100010.100110100.100011010.101011000.101001100.101000110.100101100.100010110.110110100.110110010.110101100.110100110.110010110.110011010.101101100.101100110.100110110.100111010.100101110.111010100.111010010.111001010.101101110.101110110.110101110.100100110.111011010.111010110.100110010.101011110`.split(`.`),J.MULTI_SYMBOLS={"\0":[`(%)`,`U`],"":[`($)`,`A`],"":[`($)`,`B`],"":[`($)`,`C`],"":[`($)`,`D`],"":[`($)`,`E`],"":[`($)`,`F`],"\x07":[`($)`,`G`],"\b":[`($)`,`H`]," ":[`($)`,`I`],"\n":[`($)`,`J`],"\v":[`($)`,`K`],"\f":[`($)`,`L`],"\r":[`($)`,`M`],"":[`($)`,`N`],"":[`($)`,`O`],"":[`($)`,`P`],"":[`($)`,`Q`],"":[`($)`,`R`],"":[`($)`,`S`],"":[`($)`,`T`],"":[`($)`,`U`],"":[`($)`,`V`],"":[`($)`,`W`],"":[`($)`,`X`],"":[`($)`,`Y`],"":[`($)`,`Z`],"\x1B":[`(%)`,`A`],"":[`(%)`,`B`],"":[`(%)`,`C`],"":[`(%)`,`D`],"":[`(%)`,`E`],"!":[`(/)`,`A`],'"':[`(/)`,`B`],"#":[`(/)`,`C`],"&":[`(/)`,`F`],"'":[`(/)`,`G`],"(":[`(/)`,`H`],")":[`(/)`,`I`],"*":[`(/)`,`J`],",":[`(/)`,`L`],":":[`(/)`,`Z`],";":[`(%)`,`F`],"<":[`(%)`,`G`],"=":[`(%)`,`H`],">":[`(%)`,`I`],"?":[`(%)`,`J`],"@":[`(%)`,`V`],"[":[`(%)`,`K`],"\\":[`(%)`,`L`],"]":[`(%)`,`M`],"^":[`(%)`,`N`],_:[`(%)`,`O`],"`":[`(%)`,`W`],a:[`(+)`,`A`],b:[`(+)`,`B`],c:[`(+)`,`C`],d:[`(+)`,`D`],e:[`(+)`,`E`],f:[`(+)`,`F`],g:[`(+)`,`G`],h:[`(+)`,`H`],i:[`(+)`,`I`],j:[`(+)`,`J`],k:[`(+)`,`K`],l:[`(+)`,`L`],m:[`(+)`,`M`],n:[`(+)`,`N`],o:[`(+)`,`O`],p:[`(+)`,`P`],q:[`(+)`,`Q`],r:[`(+)`,`R`],s:[`(+)`,`S`],t:[`(+)`,`T`],u:[`(+)`,`U`],v:[`(+)`,`V`],w:[`(+)`,`W`],x:[`(+)`,`X`],y:[`(+)`,`Y`],z:[`(+)`,`Z`],"{":[`(%)`,`P`],"|":[`(%)`,`Q`],"}":[`(%)`,`R`],"~":[`(%)`,`S`],"":[`(%)`,`T`]}),J);return q.default=function(e){function r(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.data.split(``).flatMap(function(e){return n.MULTI_SYMBOLS[e]||e}),t=e.map(function(e){return r.getEncoding(e)}).join(``),i=r.checksum(e,20),a=r.checksum(e.concat(i),15);return{text:this.text,data:r.getEncoding(`ÿ`)+t+r.getEncoding(i)+r.getEncoding(a)+r.getEncoding(`ÿ`)+`1`}}}],[{key:`getEncoding`,value:function(e){return n.BINARIES[r.symbolValue(e)]}},{key:`getSymbol`,value:function(e){return n.SYMBOLS[e]}},{key:`symbolValue`,value:function(e){return n.SYMBOLS.indexOf(e)}},{key:`checksum`,value:function(e,t){var n=e.slice().reverse().reduce(function(e,n,i){var a=i%t+1;return e+r.symbolValue(n)*a},0);return r.getSymbol(n%47)}}]),r}(((e=l())&&e.__esModule?e:{default:e}).default),q}var tt,nt,Y={};function rt(){if(tt)return Y;tt=1,Object.defineProperty(Y,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Y.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),n}(((e=et())&&e.__esModule?e:{default:e}).default),Y}var it,at,X={};function ot(){if(it)return X;it=1,Object.defineProperty(X,"__esModule",{value:!0}),X.GenericBarcode=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return X.GenericBarcode=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){return{data:`10101010101010101010101010101010101010101`,text:this.text}}},{key:`valid`,value:function(){return!0}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),X}function st(){if(at)return o;at=1,Object.defineProperty(o,"__esModule",{value:!0});var e=u(),t=function(){if(le)return f;le=1,Object.defineProperty(f,"__esModule",{value:!0}),f.CODE128C=f.CODE128B=f.CODE128A=f.CODE128=void 0;var e=i(re()),t=i(ae()),n=i(se()),r=i(de());function i(e){return e&&e.__esModule?e:{default:e}}return f.CODE128=e.default,f.CODE128A=t.default,f.CODE128B=n.default,f.CODE128C=r.default,f}(),n=function(){if(Oe)return x;Oe=1,Object.defineProperty(x,"__esModule",{value:!0}),x.UPCE=x.UPC=x.EAN2=x.EAN5=x.EAN8=x.EAN13=void 0;var e=o(ve()),t=o(be()),n=o(Se()),r=o(we()),i=o(Ee()),a=o(ke());function o(e){return e&&e.__esModule?e:{default:e}}return x.EAN13=e.default,x.EAN8=t.default,x.EAN5=n.default,x.EAN2=r.default,x.UPC=i.default,x.UPCE=a.default,x}(),r=function(){if(Pe)return M;Pe=1,Object.defineProperty(M,"__esModule",{value:!0}),M.ITF14=M.ITF=void 0;var e=n(Me()),t=n(Fe());function n(e){return e&&e.__esModule?e:{default:e}}return M.ITF=e.default,M.ITF14=t.default,M}(),i=function(){if(Ge)return I;Ge=1,Object.defineProperty(I,"__esModule",{value:!0}),I.MSI1110=I.MSI1010=I.MSI11=I.MSI10=I.MSI=void 0;var e=a(R()),t=a(ze()),n=a(Ve()),r=a(Ue()),i=a(qe());function a(e){return e&&e.__esModule?e:{default:e}}return I.MSI=e.default,I.MSI10=t.default,I.MSI11=n.default,I.MSI1010=r.default,I.MSI1110=i.default,I}(),a=Ye(),s=Ze(),c=function(){if(nt)return K;nt=1,Object.defineProperty(K,"__esModule",{value:!0}),K.CODE93FullASCII=K.CODE93=void 0;var e=n(et()),t=n(rt());function n(e){return e&&e.__esModule?e:{default:e}}return K.CODE93=e.default,K.CODE93FullASCII=t.default,K}(),l=ot();return o.default={CODE39:e.CODE39,CODE128:t.CODE128,CODE128A:t.CODE128A,CODE128B:t.CODE128B,CODE128C:t.CODE128C,EAN13:n.EAN13,EAN8:n.EAN8,EAN5:n.EAN5,EAN2:n.EAN2,UPC:n.UPC,UPCE:n.UPCE,ITF14:r.ITF14,ITF:r.ITF,MSI:i.MSI,MSI10:i.MSI10,MSI11:i.MSI11,MSI1010:i.MSI1010,MSI1110:i.MSI1110,pharmacode:a.pharmacode,codabar:s.codabar,CODE93:c.CODE93,CODE93FullASCII:c.CODE93FullASCII,GenericBarcode:l.GenericBarcode},o}var ct,lt={};function ut(){if(ct)return lt;ct=1,Object.defineProperty(lt,"__esModule",{value:!0});var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};return lt.default=function(t,n){return e({},t,n)},lt}var dt,ft={},pt,mt={},ht,gt={},_t={},vt={};function yt(){return ht?vt:(ht=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.default=function(e){var t=[`width`,`height`,`textMargin`,`fontSize`,`margin`,`marginTop`,`marginBottom`,`marginLeft`,`marginRight`];for(var n in t)t.hasOwnProperty(n)&&typeof e[n=t[n]]==`string`&&(e[n]=parseInt(e[n],10));return typeof e.displayValue==`string`&&(e.displayValue=e.displayValue!=`false`),e},vt)}var bt,xt,St={};function Ct(){return bt?St:(bt=1,Object.defineProperty(St,"__esModule",{value:!0}),St.default={width:2,height:100,format:`auto`,displayValue:!0,fontOptions:``,font:`monospace`,text:void 0,textAlign:`center`,textPosition:`bottom`,textMargin:2,fontSize:20,background:`#ffffff`,lineColor:`#000000`,margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}},St)}var wt,Tt,Et={},Dt={},Z={};function Ot(){if(wt)return Z;wt=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.getTotalWidthOfEncodings=Z.calculateEncodingAttributes=Z.getBarcodePadding=Z.getEncodingHeight=Z.getMaximumHeightOfEncodings=void 0;var e,t=(e=ut())&&e.__esModule?e:{default:e};function n(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function r(e,t,n){if(n.displayValue&&t<e){if(n.textAlign==`center`)return Math.floor((e-t)/2);if(n.textAlign==`left`)return 0;if(n.textAlign==`right`)return Math.floor(e-t)}return 0}function i(e,t,n){var r;if(n)r=n;else{if(typeof document>`u`)return 0;r=document.createElement(`canvas`).getContext(`2d`)}r.font=t.fontOptions+` `+t.fontSize+`px `+t.font;var i=r.measureText(e);return i?i.width:0}return Z.getMaximumHeightOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)e[n].height>t&&(t=e[n].height);return t},Z.getEncodingHeight=n,Z.getBarcodePadding=r,Z.calculateEncodingAttributes=function(e,a,o){for(var s=0;s<e.length;s++){var c,l=e[s],u=(0,t.default)(a,l.options);c=u.displayValue?i(l.text,u,o):0;var d=l.data.length*u.width;l.width=Math.ceil(Math.max(c,d)),l.height=n(l,u),l.barcodePadding=r(c,d,u)}},Z.getTotalWidthOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].width;return t},Z}function kt(){if(Tt)return Dt;Tt=1,Object.defineProperty(Dt,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=ut())&&e.__esModule?e:{default:e},r=Ot();return Dt.default=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.canvas=t,this.encodings=n,this.options=r}return t(e,[{key:`render`,value:function(){if(!this.canvas.getContext)throw Error(`The browser does not support canvas.`);this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,n.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:`prepareCanvas`,value:function(){var e=this.canvas.getContext(`2d`);e.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,r.getTotalWidthOfEncodings)(this.encodings),n=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:`drawCanvasBarcode`,value:function(e,t){var n,r=this.canvas.getContext(`2d`),i=t.data;n=e.textPosition==`top`?e.marginTop+e.fontSize+e.textMargin:e.marginTop,r.fillStyle=e.lineColor;for(var a=0;a<i.length;a++){var o=a*e.width+t.barcodePadding;i[a]===`1`?r.fillRect(o,n,e.width,e.height):i[a]&&r.fillRect(o,n,e.width,e.height*i[a])}}},{key:`drawCanvasText`,value:function(e,t){var n,r,i=this.canvas.getContext(`2d`),a=e.fontOptions+` `+e.fontSize+`px `+e.font;e.displayValue&&(r=e.textPosition==`top`?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize,i.font=a,e.textAlign==`left`||t.barcodePadding>0?(n=0,i.textAlign=`left`):e.textAlign==`right`?(n=t.width-1,i.textAlign=`right`):(n=t.width/2,i.textAlign=`center`),i.fillText(t.text,n,r))}},{key:`moveCanvasDrawing`,value:function(e){this.canvas.getContext(`2d`).translate(e.width,0)}},{key:`restoreCanvas`,value:function(){this.canvas.getContext(`2d`).restore()}}]),e}(),Dt}var At,jt={};function Mt(){if(At)return jt;At=1,Object.defineProperty(jt,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=ut())&&e.__esModule?e:{default:e},r=Ot(),i=`http://www.w3.org/2000/svg`;return jt.default=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.svg=t,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return t(e,[{key:`render`,value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var r=this.encodings[t],i=(0,n.default)(this.options,r.options),a=this.createGroup(e,i.marginTop,this.svg);this.setGroupOptions(a,i),this.drawSvgBarcode(a,i,r),this.drawSVGText(a,i,r),e+=r.width}}},{key:`prepareSVG`,value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,r.getTotalWidthOfEncodings)(this.encodings),t=(0,r.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute(`fill`,this.options.background)}},{key:`drawSvgBarcode`,value:function(e,t,n){var r,i=n.data;r=t.textPosition==`top`?t.fontSize+t.textMargin:0;for(var a=0,o=0,s=0;s<i.length;s++)o=s*t.width+n.barcodePadding,i[s]===`1`?a++:a>0&&(this.drawRect(o-t.width*a,r,t.width*a,t.height,e),a=0);a>0&&this.drawRect(o-t.width*(a-1),r,t.width*a,t.height,e)}},{key:`drawSVGText`,value:function(e,t,n){var r,a,o=this.document.createElementNS(i,`text`);t.displayValue&&(o.setAttribute(`font-family`,t.font),o.setAttribute(`font-size`,t.fontSize),t.fontOptions.includes(`bold`)&&o.setAttribute(`font-weight`,`bold`),t.fontOptions.includes(`italic`)&&o.setAttribute(`font-style`,`italic`),a=t.textPosition==`top`?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,t.textAlign==`left`||n.barcodePadding>0?(r=0,o.setAttribute(`text-anchor`,`start`)):t.textAlign==`right`?(r=n.width-1,o.setAttribute(`text-anchor`,`end`)):(r=n.width/2,o.setAttribute(`text-anchor`,`middle`)),o.setAttribute(`x`,r),o.setAttribute(`y`,a),o.appendChild(this.document.createTextNode(n.text)),e.appendChild(o))}},{key:`setSvgAttributes`,value:function(e,t){var n=this.svg;n.setAttribute(`width`,e+`px`),n.setAttribute(`height`,t+`px`),n.setAttribute(`x`,`0px`),n.setAttribute(`y`,`0px`),n.setAttribute(`viewBox`,`0 0 `+e+` `+t),n.setAttribute(`xmlns`,i),n.setAttribute(`version`,`1.1`)}},{key:`createGroup`,value:function(e,t,n){var r=this.document.createElementNS(i,`g`);return r.setAttribute(`transform`,`translate(`+e+`, `+t+`)`),n.appendChild(r),r}},{key:`setGroupOptions`,value:function(e,t){e.setAttribute(`fill`,t.lineColor)}},{key:`drawRect`,value:function(e,t,n,r,a){var o=this.document.createElementNS(i,`rect`);return o.setAttribute(`x`,e),o.setAttribute(`y`,t),o.setAttribute(`width`,n),o.setAttribute(`height`,r),a.appendChild(o),o}}]),e}(),jt}var Nt,Pt,Q={};function Ft(){if(Nt)return Q;Nt=1,Object.defineProperty(Q,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Q.default=function(){function t(e,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,t),this.object=e,this.encodings=n,this.options=r}return e(t,[{key:`render`,value:function(){this.object.encodings=this.encodings}}]),t}(),Q}var It,Lt,$={};function Rt(){if(It)return $;function e(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function t(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}function n(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}It=1,Object.defineProperty($,"__esModule",{value:!0});var r=function(){function r(n,i){e(this,r);var a=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return a.name=`InvalidInputException`,a.symbology=n,a.input=i,a.message=`"`+a.input+`" is not a valid input for `+a.symbology,a}return n(r,Error),r}(),i=function(){function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.name=`InvalidElementException`,n.message=`Not supported type to render on`,n}return n(r,Error),r}(),a=function(){function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.name=`NoElementException`,n.message=`No element to render on.`,n}return n(r,Error),r}();return $.InvalidInputException=r,$.InvalidElementException=i,$.NoElementException=a,$}function zt(){if(Lt)return gt;Lt=1,Object.defineProperty(gt,"__esModule",{value:!0});var e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t=i(function(){if(xt)return _t;xt=1,Object.defineProperty(_t,"__esModule",{value:!0});var e=n(yt()),t=n(Ct());function n(e){return e&&e.__esModule?e:{default:e}}return _t.default=function(n){var r={};for(var i in t.default)t.default.hasOwnProperty(i)&&(n.hasAttribute(`jsbarcode-`+i.toLowerCase())&&(r[i]=n.getAttribute(`jsbarcode-`+i.toLowerCase())),n.hasAttribute(`data-`+i.toLowerCase())&&(r[i]=n.getAttribute(`data-`+i.toLowerCase())));return r.value=n.getAttribute(`jsbarcode-value`)||n.getAttribute(`data-value`),(0,e.default)(r)},_t}()),n=i(function(){if(Pt)return Et;Pt=1,Object.defineProperty(Et,"__esModule",{value:!0});var e=r(kt()),t=r(Mt()),n=r(Ft());function r(e){return e&&e.__esModule?e:{default:e}}return Et.default={CanvasRenderer:e.default,SVGRenderer:t.default,ObjectRenderer:n.default},Et}()),r=Rt();function i(e){return e&&e.__esModule?e:{default:e}}function a(i){if(typeof i==`string`)return function(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var n=[],r=0;r<t.length;r++)n.push(a(t[r]));return n}}(i);if(Array.isArray(i)){for(var o=[],s=0;s<i.length;s++)o.push(a(i[s]));return o}if(typeof HTMLCanvasElement<`u`&&i instanceof HTMLImageElement)return function(e){var r=document.createElement(`canvas`);return{element:r,options:(0,t.default)(e),renderer:n.default.CanvasRenderer,afterRender:function(){e.setAttribute(`src`,r.toDataURL())}}}(i);if(i&&i.nodeName&&i.nodeName.toLowerCase()===`svg`||typeof SVGElement<`u`&&i instanceof SVGElement)return{element:i,options:(0,t.default)(i),renderer:n.default.SVGRenderer};if(typeof HTMLCanvasElement<`u`&&i instanceof HTMLCanvasElement)return{element:i,options:(0,t.default)(i),renderer:n.default.CanvasRenderer};if(i&&i.getContext)return{element:i,renderer:n.default.CanvasRenderer};if(i&&(i===void 0?`undefined`:e(i))===`object`&&!i.nodeName)return{element:i,renderer:n.default.ObjectRenderer};throw new r.InvalidElementException}return gt.default=a,gt}var Bt,Vt,Ht,Ut={};function Wt(){if(Bt)return Ut;Bt=1,Object.defineProperty(Ut,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Ut.default=function(){function t(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,t),this.api=e}return e(t,[{key:`handleCatch`,value:function(e){if(e.name!==`InvalidInputException`)throw e;if(this.api._options.valid===this.api._defaults.valid)throw e.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:`wrapBarcodeCall`,value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(e){return this.handleCatch(e),this.api}}}]),t}(),Ut}var Gt=r.i(function(){if(Ht)return Vt;Ht=1;var e=l(st()),t=l(ut()),n=l((dt||(dt=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=function(e){var t=[];return function e(n){if(Array.isArray(n))for(var r=0;r<n.length;r++)e(n[r]);else n.text=n.text||``,n.data=n.data||``,t.push(n)}(e),t}),ft)),r=l((pt||(pt=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=function(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}),mt)),i=l(zt()),a=l(yt()),o=l(Wt()),s=Rt(),c=l(Ct());function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){},d=function(e,t,n){var r=new u;if(e===void 0)throw Error(`No element to render on was provided.`);return r._renderProperties=(0,i.default)(e),r._encodings=[],r._options=c.default,r._errorHandler=new o.default(r),t!==void 0&&((n||={}).format||(n.format=m()),r.options(n)[n.format](t,n).render()),r};for(var ee in d.getModule=function(t){return e.default[t]},e.default)e.default.hasOwnProperty(ee)&&f(e.default,ee);function f(e,n){u.prototype[n]=u.prototype[n.toUpperCase()]=u.prototype[n.toLowerCase()]=function(r,i){var o=this;return o._errorHandler.wrapBarcodeCall(function(){i.text=i.text===void 0?void 0:``+i.text;var s=(0,t.default)(o._options,i);s=(0,a.default)(s);var c=e[n],l=p(r,c,s);return o._encodings.push(l),o})}}function p(e,r,i){var a=new r(e=``+e,i);if(!a.valid())throw new s.InvalidInputException(a.constructor.name,e);var o=a.encode();o=(0,n.default)(o);for(var c=0;c<o.length;c++)o[c].options=(0,t.default)(i,o[c].options);return o}function m(){return e.default.CODE128?`CODE128`:Object.keys(e.default)[0]}function h(e,i,a){i=(0,n.default)(i);for(var o=0;o<i.length;o++)i[o].options=(0,t.default)(a,i[o].options),(0,r.default)(i[o].options);(0,r.default)(a),new e.renderer(e.element,i,a).render(),e.afterRender&&e.afterRender()}return u.prototype.options=function(e){return this._options=(0,t.default)(this._options,e),this},u.prototype.blank=function(e){var t=Array(e+1).join(`0`);return this._encodings.push({data:t}),this},u.prototype.init=function(){var n;if(this._renderProperties)for(var r in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){n=this._renderProperties[r];var i=(0,t.default)(this._options,n.options);i.format==`auto`&&(i.format=m()),this._errorHandler.wrapBarcodeCall(function(){var t=p(i.value,e.default[i.format.toUpperCase()],i);h(n,t,i)})}},u.prototype.render=function(){if(!this._renderProperties)throw new s.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)h(this._renderProperties[e],this._encodings,this._options);else h(this._renderProperties,this._encodings,this._options);return this},u.prototype._defaults=c.default,typeof window<`u`&&(window.JsBarcode=d),typeof jQuery<`u`&&(jQuery.fn.JsBarcode=function(e,t){var n=[];return jQuery(this).each(function(){n.push(this)}),d(n,e,t)}),Vt=d}());t.J=Object.freeze({__proto__:null,default:Gt})});
|