@htmlbricks/hb-dialog-loader 0.20.1 → 0.20.6
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/package.json +3 -3
- package/release/manifest.json +1 -1
- package/release/release.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-dialog-loader",
|
|
3
3
|
"displayName": "Svelte-Bootstrap Downloader WebComponent",
|
|
4
4
|
"description": "Svelte-Bootstrap Downloader WebComponent",
|
|
5
|
-
"version": "0.20.
|
|
5
|
+
"version": "0.20.6",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"wc-js-utils": "^0.0.1"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@htmlbricks/hb-dialog": "^0.20.
|
|
73
|
+
"@htmlbricks/hb-dialog": "^0.20.6"
|
|
74
74
|
},
|
|
75
75
|
"keywords": [
|
|
76
76
|
"svelte",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"webcomponents"
|
|
79
79
|
],
|
|
80
80
|
"contributors": [],
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "6045fcd86f3e1e2b2dcab5122f50d3e67e36a157"
|
|
82
82
|
}
|
package/release/manifest.json
CHANGED
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function s(e,t,n){e.insertBefore(t,n||null)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e){return document.createElement(e)}function l(e){return document.createTextNode(e)}function f(){return l(" ")}function d(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function p(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:d(e,t,n)}function h(e,t){t=""+t,e.data!==t&&(e.data=t)}function m(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function g(e){const t={};for(const n of e)t[n.name]=n.value;return t}let v;function y(e){v=e}function b(){if(!v)throw new Error("Function called outside component initialization");return v}function E(){const e=b();return(t,n,{cancelable:r=!1}={})=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,r,t),o}(t,n,{cancelable:r});return o.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const w=[],O=[];let R=[];const $=[],x=Promise.resolve();let _=!1;function A(e){R.push(e)}const C=new Set;let T=0;function S(){if(0!==T)return;const e=v;do{try{for(;T<w.length;){const e=w[T];T++,y(e),N(e.$$)}}catch(e){throw w.length=0,T=0,e}for(y(null),w.length=0,T=0;O.length;)O.pop()();for(let e=0;e<R.length;e+=1){const t=R[e];C.has(t)||(C.add(t),t())}R.length=0}while(w.length);for(;$.length;)$.pop()();_=!1,C.clear(),y(e)}function N(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A)}}const j=new Set;function P(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];R.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),R=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function D(e,t){-1===e.$$.dirty[0]&&(w.push(e),_||(_=!0,x.then(S)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function L(i,a,s,c,l,f,d,p=[-1]){const h=v;y(i);const m=i.$$={fragment:null,ctx:[],props:f,update:e,not_equal:l,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(h?h.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:a.target||h.$$.root};d&&d(m.root);let g=!1;if(m.ctx=s?s(i,a.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return m.ctx&&l(m.ctx[e],m.ctx[e]=r)&&(!m.skip_bound&&m.bound[e]&&m.bound[e](r),g&&D(i,e)),t})):[],m.update(),g=!0,r(m.before_update),m.fragment=!!c&&c(m.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);m.fragment&&m.fragment.l(e),e.forEach(u)}else m.fragment&&m.fragment.c();a.intro&&((b=i.$$.fragment)&&b.i&&(j.delete(b),b.i(E))),function(e,n,i,a){const{fragment:s,after_update:u}=e.$$;s&&s.m(n,i),a||A((()=>{const n=e.$$.on_mount.map(t).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...n):r(n),e.$$.on_mount=[]})),u.forEach(A)}(i,a.target,a.anchor,a.customElement),S()}var b,E;y(h)}let k;"function"==typeof HTMLElement&&(k=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){P(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var B,U="0.20.1",F=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},M=Object.prototype.toString,q=(B=Object.create(null),function(e){var t=M.call(e);return B[t]||(B[t]=t.slice(8,-1).toLowerCase())});function I(e){return e=e.toLowerCase(),function(t){return q(t)===e}}function V(e){return Array.isArray(e)}function z(e){return void 0===e}var J=I("ArrayBuffer");function W(e){return null!==e&&"object"==typeof e}function H(e){if("object"!==q(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var K=I("Date"),X=I("File"),Q=I("Blob"),G=I("FileList");function Y(e){return"[object Function]"===M.call(e)}var Z=I("URLSearchParams");function ee(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),V(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var te,ne=(te="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return te&&e instanceof te}),re={isArray:V,isArrayBuffer:J,isBuffer:function(e){return null!==e&&!z(e)&&null!==e.constructor&&!z(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||M.call(e)===t||Y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&J(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:W,isPlainObject:H,isUndefined:z,isDate:K,isFile:X,isBlob:Q,isFunction:Y,isStream:function(e){return W(e)&&Y(e.pipe)},isURLSearchParams:Z,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:ee,merge:function e(){var t={};function n(n,r){H(t[r])&&H(n)?t[r]=e(t[r],n):H(n)?t[r]=e({},n):V(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)ee(arguments[r],n);return t},extend:function(e,t,n){return ee(t,(function(t,r){e[r]=n&&"function"==typeof t?F(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:q,kindOfTest:I,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(z(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:ne,isFileList:G};function oe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ie=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(re.isURLSearchParams(t))r=t.toString();else{var o=[];re.forEach(t,(function(e,t){null!=e&&(re.isArray(e)?t+="[]":e=[e],re.forEach(e,(function(e){re.isDate(e)?e=e.toISOString():re.isObject(e)&&(e=JSON.stringify(e)),o.push(oe(t)+"="+oe(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function ae(){this.handlers=[]}ae.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},ae.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},ae.prototype.forEach=function(e){re.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var se=ae,ue=function(e,t){re.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))};function ce(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}re.inherits(ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var le=ce.prototype,fe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){fe[e]={value:e}})),Object.defineProperties(ce,fe),Object.defineProperty(le,"isAxiosError",{value:!0}),ce.from=function(e,t,n,r,o,i){var a=Object.create(le);return re.toFlatObject(e,a,(function(e){return e!==Error.prototype})),ce.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var de=ce,pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var he=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":re.isDate(e)?e.toISOString():re.isArrayBuffer(e)||re.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,i){if(re.isPlainObject(o)||re.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+i);n.push(o),re.forEach(o,(function(n,o){if(!re.isUndefined(n)){var a,s=i?i+"."+o:o;if(n&&!i&&"object"==typeof n)if(re.endsWith(o,"{}"))n=JSON.stringify(n);else if(re.endsWith(o,"[]")&&(a=re.toArray(n)))return void a.forEach((function(e){!re.isUndefined(e)&&t.append(s,r(e))}));e(n,s)}})),n.pop()}else t.append(i,r(o))}(e),t},me=re.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),re.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),re.isString(r)&&a.push("path="+r),re.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ge=function(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},ve=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ye=re.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=re.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function be(e){de.call(this,null==e?"canceled":e,de.ERR_CANCELED),this.name="CanceledError"}re.inherits(be,de,{__CANCEL__:!0});var Ee=be,we=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}re.isFormData(o)&&re.isStandardBrowserEnv()&&delete i["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+l)}var f=ge(e.baseURL,e.url);function d(){if(u){var r,o,i,c,l,f="getAllResponseHeaders"in u?(r=u.getAllResponseHeaders(),l={},r?(re.forEach(r.split("\n"),(function(e){if(c=e.indexOf(":"),o=re.trim(e.substr(0,c)).toLowerCase(),i=re.trim(e.substr(c+1)),o){if(l[o]&&ve.indexOf(o)>=0)return;l[o]="set-cookie"===o?(l[o]?l[o]:[]).concat([i]):l[o]?l[o]+", "+i:i}})),l):l):null;!function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:f,config:e,request:u}),u=null}}if(u.open(e.method.toUpperCase(),ie(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new de("Request aborted",de.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new de("Network Error",de.ERR_NETWORK,e,u,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||pe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new de(t,r.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,u)),u=null},re.isStandardBrowserEnv()){var p=(e.withCredentials||ye(f))&&e.xsrfCookieName?me.read(e.xsrfCookieName):void 0;p&&(i[e.xsrfHeaderName]=p)}"setRequestHeader"in u&&re.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:u.setRequestHeader(t,e)})),re.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){u&&(n(!e||e&&e.type?new Ee:e),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null);var h,m=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&h[1]||"";m&&-1===["http","https","file"].indexOf(m)?n(new de("Unsupported protocol "+m+":",de.ERR_BAD_REQUEST,e)):u.send(o)}))},Oe={"Content-Type":"application/x-www-form-urlencoded"};function Re(e,t){!re.isUndefined(e)&&re.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var $e,xe={transitional:pe,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&($e=we),$e),transformRequest:[function(e,t){if(ue(t,"Accept"),ue(t,"Content-Type"),re.isFormData(e)||re.isArrayBuffer(e)||re.isBuffer(e)||re.isStream(e)||re.isFile(e)||re.isBlob(e))return e;if(re.isArrayBufferView(e))return e.buffer;if(re.isURLSearchParams(e))return Re(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=re.isObject(e),o=t&&t["Content-Type"];if((n=re.isFileList(e))||r&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return he(n?{"files[]":e}:e,i&&new i)}return r||"application/json"===o?(Re(t,"application/json"),function(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||xe.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&re.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw de.from(e,de.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],(function(e){xe.headers[e]={}})),re.forEach(["post","put","patch"],(function(e){xe.headers[e]=re.merge(Oe)}));var _e=xe,Ae=function(e,t,n){var r=this||_e;return re.forEach(n,(function(n){e=n.call(r,e,t)})),e},Ce=function(e){return!(!e||!e.__CANCEL__)};function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee}var Se=function(e){return Te(e),e.headers=e.headers||{},e.data=Ae.call(e,e.data,e.headers,e.transformRequest),e.headers=re.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),re.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||_e.adapter)(e).then((function(t){return Te(e),t.data=Ae.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Ce(t)||(Te(e),t&&t.response&&(t.response.data=Ae.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Ne=function(e,t){t=t||{};var n={};function r(e,t){return re.isPlainObject(e)&&re.isPlainObject(t)?re.merge(e,t):re.isPlainObject(t)?re.merge({},t):re.isArray(t)?t.slice():t}function o(n){return re.isUndefined(t[n])?re.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!re.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return re.isUndefined(t[n])?re.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return re.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);re.isUndefined(r)&&t!==s||(n[e]=r)})),n},je="0.27.2",Pe=je,De={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){De[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Le={};De.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Pe+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new de(r(o," has been removed"+(t?" in "+t:"")),de.ERR_DEPRECATED);return t&&!Le[o]&&(Le[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var ke={assertOptions:function(e,t,n){if("object"!=typeof e)throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new de("option "+i+" must be "+u,de.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}},validators:De},Be=ke.validators;function Ue(e){this.defaults=e,this.interceptors={request:new se,response:new se}}Ue.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Ne(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&ke.assertOptions(n,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var s=[Se,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(a),i=Promise.resolve(t);s.length;)i=i.then(s.shift(),s.shift());return i}for(var u=t;r.length;){var c=r.shift(),l=r.shift();try{u=c(u)}catch(e){l(e);break}}try{i=Se(u)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},Ue.prototype.getUri=function(e){e=Ne(this.defaults,e);var t=ge(e.baseURL,e.url);return ie(t,e.params,e.paramsSerializer)},re.forEach(["delete","get","head","options"],(function(e){Ue.prototype[e]=function(t,n){return this.request(Ne(n||{},{method:e,url:t,data:(n||{}).data}))}})),re.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ne(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ue.prototype[e]=t(),Ue.prototype[e+"Form"]=t(!0)}));var Fe=Ue;function Me(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new Ee(e),t(n.reason))}))}Me.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Me.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Me.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Me.source=function(){var e;return{token:new Me((function(t){e=t})),cancel:e}};var qe=Me;var Ie=function e(t){var n=new Fe(t),r=F(Fe.prototype.request,n);return re.extend(r,Fe.prototype,n),re.extend(r,n),r.create=function(n){return e(Ne(t,n))},r}(_e);Ie.Axios=Fe,Ie.CanceledError=Ee,Ie.CancelToken=qe,Ie.isCancel=Ce,Ie.VERSION=je,Ie.toFormData=he,Ie.AxiosError=de,Ie.Cancel=Ie.CanceledError,Ie.all=function(e){return Promise.all(e)},Ie.spread=function(e){return function(t){return e.apply(null,t)}},Ie.isAxiosError=function(e){return re.isObject(e)&&!0===e.isAxiosError};var Ve=Ie;Ie.default=Ve;var ze,Je=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,r,o="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(o+="".concat(n,":").concat(e[n],";"))},a=0,s=Object.keys(e);a<s.length;a++)i(s[a]);return o},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var r=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var o=document.createElement("script");o.id=n+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(r),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(o.src="".concat(e.local)),document.head.appendChild(o)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,r){return e.formatDate(t,n,r||this.lang)},e.getDefaultLang=function(){var e,t,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(o=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===o?void 0:o.toLowerCase()),i},e.getDictionaryWord=function(t,n,r){var o;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(o=n[r])||void 0===o?void 0:o[t]))return n[r][t];var i="",a=e.getDefaultLang();if(!r||a!==r){var s=null==n?void 0:n[a];(null==s?void 0:s[t])&&(i=s[t])}return i},e.formatDate=function(t,n,r){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(ze={exports:{}},ze.exports),ze.exports),We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,He=/\n/g,Ke=/^\s*/,Xe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Qe=/^:\s*/,Ge=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ye=/^[;\s]*/,Ze=/^\s+|\s+$/g,et="";function tt(e){return e?e.replace(Ze,et):et}var nt=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(He);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function u(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){u(Ke)}function l(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;et!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,et===e.charAt(n-1))return s("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function d(){var e=i(),t=u(Xe);if(t){if(f(),!u(Qe))return s("property missing ':'");var n=u(Ge),r=e({type:"declaration",property:tt(t[0].replace(We,et)),value:n?tt(n[0].replace(We,et)):et});return u(Ye),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(l(t);e=d();)!1!==e&&(t.push(e),l(t));return t}()}(e),s="function"==typeof t,u=0,c=a.length;u<c;u++)o=(n=a[u]).property,i=n.value,s?t(o,i,n):i&&(r||(r={}),r[o]=i);return r},rt={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"},{name:"--hb-modal-max-width",valueType:"htmlsize",defaultValue:"500px"}],parts:[{name:"modal-dialog",description:"The modal dialog"}]};function ot(t){let n,r,o,i,g,v,y,b,E,w,O,R,$,x,_,A,C=Math.round(t[0])+"";return{c(){n=c("hb-dialog"),r=c("span"),o=c("slot"),i=l(t[1]),g=f(),v=c("div"),y=c("div"),b=c("div"),E=l(C),w=l("%"),R=f(),$=c("span"),this.c=e,d(o,"name","title"),d(r,"slot","title"),d(b,"class","progress-bar"),m(b,"width",Math.round(t[0])+"%"),d(b,"role","progressbar"),d(b,"aria-valuenow",O=Math.round(t[0])),d(b,"aria-valuemin","0"),d(b,"aria-valuemax","100"),d(y,"class","progress"),d(v,"slot","body-content"),d($,"slot","modal-footer"),p(n,"style",t[2]),p(n,"show",x=t[0]?"yes":"no")},m(e,u){var c,l,f,d;s(e,n,u),a(n,r),a(r,o),a(o,i),a(n,g),a(n,v),a(v,y),a(y,b),a(b,E),a(b,w),a(n,R),a(n,$),_||(c=n,l="modalShow",f=t[8],c.addEventListener(l,f,d),A=()=>c.removeEventListener(l,f,d),_=!0)},p(e,[t]){2&t&&h(i,e[1]),1&t&&C!==(C=Math.round(e[0])+"")&&h(E,C),1&t&&m(b,"width",Math.round(e[0])+"%"),1&t&&O!==(O=Math.round(e[0]))&&d(b,"aria-valuenow",O),4&t&&p(n,"style",e[2]),1&t&&x!==(x=e[0]?"yes":"no")&&p(n,"show",x)},i:e,o:e,d(e){e&&u(n),_=!1,A()}}}function it(e,t,n){let r,o="";const i=b(),a=E();Je.addComponent({repoName:"@htmlbricks/hb-dialog",version:U});let s,{id:u}=t,{style:c}=t,{percentage:l}=t,{title:f}=t;function d(e){!function(e,t){a(e,t),i.dispatchEvent&&i.dispatchEvent(new CustomEvent(e,{detail:t}))}("modalShow",e)}return e.$$set=e=>{"id"in e&&n(4,u=e.id),"style"in e&&n(5,c=e.style),"percentage"in e&&n(0,l=e.percentage),"title"in e&&n(1,f=e.title)},e.$$.update=()=>{243&e.$$.dirty&&(l?"string"==typeof l&&n(0,l=parseInt(l)):n(0,l=0),u||n(4,u=null),f||n(1,f="loading"),c&&(n(6,r=nt(c)),n(2,o=Je.getChildStyleToPass(r,null==rt?void 0:rt.vars))),s||n(7,s=!1))},[l,f,o,d,u,c,r,s,e=>d(e.detail)]}class at extends k{constructor(e){super();const t=document.createElement("style");t.textContent='@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{display:flex;height:1rem;overflow:hidden;font-size:0.75rem;background-color:#e9ecef;border-radius:0.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:var(--bs-primary,#07689f);transition:width 0.6s ease}@media(prefers-reduced-motion: reduce){.progress-bar{transition:none}}@media(prefers-reduced-motion: reduce){}:host{font-family:"Roboto", sans-serif}',this.shadowRoot.appendChild(t),L(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},it,ot,i,{id:4,style:5,percentage:0,title:1},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["id","style","percentage","title"]}get id(){return this.$$.ctx[4]}set id(e){this.$$set({id:e}),S()}get style(){return this.$$.ctx[5]}set style(e){this.$$set({style:e}),S()}get percentage(){return this.$$.ctx[0]}set percentage(e){this.$$set({percentage:e}),S()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),S()}}return customElements.define("hb-dialog-loader",at),at}();
|
|
1
|
+
var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function s(e,t,n){e.insertBefore(t,n||null)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e){return document.createElement(e)}function l(e){return document.createTextNode(e)}function f(){return l(" ")}function d(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function p(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:d(e,t,n)}function h(e,t){t=""+t,e.data!==t&&(e.data=t)}function m(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function g(e){const t={};for(const n of e)t[n.name]=n.value;return t}let v;function y(e){v=e}function b(){if(!v)throw new Error("Function called outside component initialization");return v}function E(){const e=b();return(t,n,{cancelable:r=!1}={})=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,r,t),o}(t,n,{cancelable:r});return o.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const w=[],O=[];let R=[];const $=[],x=Promise.resolve();let _=!1;function A(e){R.push(e)}const C=new Set;let T=0;function S(){if(0!==T)return;const e=v;do{try{for(;T<w.length;){const e=w[T];T++,y(e),N(e.$$)}}catch(e){throw w.length=0,T=0,e}for(y(null),w.length=0,T=0;O.length;)O.pop()();for(let e=0;e<R.length;e+=1){const t=R[e];C.has(t)||(C.add(t),t())}R.length=0}while(w.length);for(;$.length;)$.pop()();_=!1,C.clear(),y(e)}function N(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A)}}const j=new Set;function P(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];R.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),R=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function D(e,t){-1===e.$$.dirty[0]&&(w.push(e),_||(_=!0,x.then(S)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function L(i,a,s,c,l,f,d,p=[-1]){const h=v;y(i);const m=i.$$={fragment:null,ctx:[],props:f,update:e,not_equal:l,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(h?h.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:a.target||h.$$.root};d&&d(m.root);let g=!1;if(m.ctx=s?s(i,a.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return m.ctx&&l(m.ctx[e],m.ctx[e]=r)&&(!m.skip_bound&&m.bound[e]&&m.bound[e](r),g&&D(i,e)),t})):[],m.update(),g=!0,r(m.before_update),m.fragment=!!c&&c(m.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);m.fragment&&m.fragment.l(e),e.forEach(u)}else m.fragment&&m.fragment.c();a.intro&&((b=i.$$.fragment)&&b.i&&(j.delete(b),b.i(E))),function(e,n,i,a){const{fragment:s,after_update:u}=e.$$;s&&s.m(n,i),a||A((()=>{const n=e.$$.on_mount.map(t).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...n):r(n),e.$$.on_mount=[]})),u.forEach(A)}(i,a.target,a.anchor,a.customElement),S()}var b,E;y(h)}let k;"function"==typeof HTMLElement&&(k=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){P(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var B,U="0.20.6",F=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},M=Object.prototype.toString,q=(B=Object.create(null),function(e){var t=M.call(e);return B[t]||(B[t]=t.slice(8,-1).toLowerCase())});function I(e){return e=e.toLowerCase(),function(t){return q(t)===e}}function V(e){return Array.isArray(e)}function z(e){return void 0===e}var J=I("ArrayBuffer");function W(e){return null!==e&&"object"==typeof e}function H(e){if("object"!==q(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var K=I("Date"),X=I("File"),Q=I("Blob"),G=I("FileList");function Y(e){return"[object Function]"===M.call(e)}var Z=I("URLSearchParams");function ee(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),V(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var te,ne=(te="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return te&&e instanceof te}),re={isArray:V,isArrayBuffer:J,isBuffer:function(e){return null!==e&&!z(e)&&null!==e.constructor&&!z(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||M.call(e)===t||Y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&J(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:W,isPlainObject:H,isUndefined:z,isDate:K,isFile:X,isBlob:Q,isFunction:Y,isStream:function(e){return W(e)&&Y(e.pipe)},isURLSearchParams:Z,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:ee,merge:function e(){var t={};function n(n,r){H(t[r])&&H(n)?t[r]=e(t[r],n):H(n)?t[r]=e({},n):V(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)ee(arguments[r],n);return t},extend:function(e,t,n){return ee(t,(function(t,r){e[r]=n&&"function"==typeof t?F(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:q,kindOfTest:I,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(z(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:ne,isFileList:G};function oe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ie=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(re.isURLSearchParams(t))r=t.toString();else{var o=[];re.forEach(t,(function(e,t){null!=e&&(re.isArray(e)?t+="[]":e=[e],re.forEach(e,(function(e){re.isDate(e)?e=e.toISOString():re.isObject(e)&&(e=JSON.stringify(e)),o.push(oe(t)+"="+oe(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function ae(){this.handlers=[]}ae.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},ae.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},ae.prototype.forEach=function(e){re.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var se=ae,ue=function(e,t){re.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))};function ce(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}re.inherits(ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var le=ce.prototype,fe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){fe[e]={value:e}})),Object.defineProperties(ce,fe),Object.defineProperty(le,"isAxiosError",{value:!0}),ce.from=function(e,t,n,r,o,i){var a=Object.create(le);return re.toFlatObject(e,a,(function(e){return e!==Error.prototype})),ce.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var de=ce,pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var he=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":re.isDate(e)?e.toISOString():re.isArrayBuffer(e)||re.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,i){if(re.isPlainObject(o)||re.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+i);n.push(o),re.forEach(o,(function(n,o){if(!re.isUndefined(n)){var a,s=i?i+"."+o:o;if(n&&!i&&"object"==typeof n)if(re.endsWith(o,"{}"))n=JSON.stringify(n);else if(re.endsWith(o,"[]")&&(a=re.toArray(n)))return void a.forEach((function(e){!re.isUndefined(e)&&t.append(s,r(e))}));e(n,s)}})),n.pop()}else t.append(i,r(o))}(e),t},me=re.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),re.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),re.isString(r)&&a.push("path="+r),re.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ge=function(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},ve=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ye=re.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=re.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function be(e){de.call(this,null==e?"canceled":e,de.ERR_CANCELED),this.name="CanceledError"}re.inherits(be,de,{__CANCEL__:!0});var Ee=be,we=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}re.isFormData(o)&&re.isStandardBrowserEnv()&&delete i["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+l)}var f=ge(e.baseURL,e.url);function d(){if(u){var r,o,i,c,l,f="getAllResponseHeaders"in u?(r=u.getAllResponseHeaders(),l={},r?(re.forEach(r.split("\n"),(function(e){if(c=e.indexOf(":"),o=re.trim(e.substr(0,c)).toLowerCase(),i=re.trim(e.substr(c+1)),o){if(l[o]&&ve.indexOf(o)>=0)return;l[o]="set-cookie"===o?(l[o]?l[o]:[]).concat([i]):l[o]?l[o]+", "+i:i}})),l):l):null;!function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:f,config:e,request:u}),u=null}}if(u.open(e.method.toUpperCase(),ie(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new de("Request aborted",de.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new de("Network Error",de.ERR_NETWORK,e,u,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||pe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new de(t,r.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,u)),u=null},re.isStandardBrowserEnv()){var p=(e.withCredentials||ye(f))&&e.xsrfCookieName?me.read(e.xsrfCookieName):void 0;p&&(i[e.xsrfHeaderName]=p)}"setRequestHeader"in u&&re.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:u.setRequestHeader(t,e)})),re.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){u&&(n(!e||e&&e.type?new Ee:e),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null);var h,m=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&h[1]||"";m&&-1===["http","https","file"].indexOf(m)?n(new de("Unsupported protocol "+m+":",de.ERR_BAD_REQUEST,e)):u.send(o)}))},Oe={"Content-Type":"application/x-www-form-urlencoded"};function Re(e,t){!re.isUndefined(e)&&re.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var $e,xe={transitional:pe,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&($e=we),$e),transformRequest:[function(e,t){if(ue(t,"Accept"),ue(t,"Content-Type"),re.isFormData(e)||re.isArrayBuffer(e)||re.isBuffer(e)||re.isStream(e)||re.isFile(e)||re.isBlob(e))return e;if(re.isArrayBufferView(e))return e.buffer;if(re.isURLSearchParams(e))return Re(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=re.isObject(e),o=t&&t["Content-Type"];if((n=re.isFileList(e))||r&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return he(n?{"files[]":e}:e,i&&new i)}return r||"application/json"===o?(Re(t,"application/json"),function(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||xe.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&re.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw de.from(e,de.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],(function(e){xe.headers[e]={}})),re.forEach(["post","put","patch"],(function(e){xe.headers[e]=re.merge(Oe)}));var _e=xe,Ae=function(e,t,n){var r=this||_e;return re.forEach(n,(function(n){e=n.call(r,e,t)})),e},Ce=function(e){return!(!e||!e.__CANCEL__)};function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee}var Se=function(e){return Te(e),e.headers=e.headers||{},e.data=Ae.call(e,e.data,e.headers,e.transformRequest),e.headers=re.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),re.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||_e.adapter)(e).then((function(t){return Te(e),t.data=Ae.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Ce(t)||(Te(e),t&&t.response&&(t.response.data=Ae.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Ne=function(e,t){t=t||{};var n={};function r(e,t){return re.isPlainObject(e)&&re.isPlainObject(t)?re.merge(e,t):re.isPlainObject(t)?re.merge({},t):re.isArray(t)?t.slice():t}function o(n){return re.isUndefined(t[n])?re.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!re.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return re.isUndefined(t[n])?re.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return re.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);re.isUndefined(r)&&t!==s||(n[e]=r)})),n},je="0.27.2",Pe=je,De={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){De[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Le={};De.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Pe+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new de(r(o," has been removed"+(t?" in "+t:"")),de.ERR_DEPRECATED);return t&&!Le[o]&&(Le[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var ke={assertOptions:function(e,t,n){if("object"!=typeof e)throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new de("option "+i+" must be "+u,de.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}},validators:De},Be=ke.validators;function Ue(e){this.defaults=e,this.interceptors={request:new se,response:new se}}Ue.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Ne(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&ke.assertOptions(n,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var s=[Se,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(a),i=Promise.resolve(t);s.length;)i=i.then(s.shift(),s.shift());return i}for(var u=t;r.length;){var c=r.shift(),l=r.shift();try{u=c(u)}catch(e){l(e);break}}try{i=Se(u)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},Ue.prototype.getUri=function(e){e=Ne(this.defaults,e);var t=ge(e.baseURL,e.url);return ie(t,e.params,e.paramsSerializer)},re.forEach(["delete","get","head","options"],(function(e){Ue.prototype[e]=function(t,n){return this.request(Ne(n||{},{method:e,url:t,data:(n||{}).data}))}})),re.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ne(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ue.prototype[e]=t(),Ue.prototype[e+"Form"]=t(!0)}));var Fe=Ue;function Me(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new Ee(e),t(n.reason))}))}Me.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Me.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Me.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Me.source=function(){var e;return{token:new Me((function(t){e=t})),cancel:e}};var qe=Me;var Ie=function e(t){var n=new Fe(t),r=F(Fe.prototype.request,n);return re.extend(r,Fe.prototype,n),re.extend(r,n),r.create=function(n){return e(Ne(t,n))},r}(_e);Ie.Axios=Fe,Ie.CanceledError=Ee,Ie.CancelToken=qe,Ie.isCancel=Ce,Ie.VERSION=je,Ie.toFormData=he,Ie.AxiosError=de,Ie.Cancel=Ie.CanceledError,Ie.all=function(e){return Promise.all(e)},Ie.spread=function(e){return function(t){return e.apply(null,t)}},Ie.isAxiosError=function(e){return re.isObject(e)&&!0===e.isAxiosError};var Ve=Ie;Ie.default=Ve;var ze,Je=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,r,o="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(o+="".concat(n,":").concat(e[n],";"))},a=0,s=Object.keys(e);a<s.length;a++)i(s[a]);return o},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var r=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var o=document.createElement("script");o.id=n+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(r),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(o.src="".concat(e.local)),document.head.appendChild(o)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,r){return e.formatDate(t,n,r||this.lang)},e.getDefaultLang=function(){var e,t,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(o=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===o?void 0:o.toLowerCase()),i},e.getDictionaryWord=function(t,n,r){var o;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(o=n[r])||void 0===o?void 0:o[t]))return n[r][t];var i="",a=e.getDefaultLang();if(!r||a!==r){var s=null==n?void 0:n[a];(null==s?void 0:s[t])&&(i=s[t])}return i},e.formatDate=function(t,n,r){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(ze={exports:{}},ze.exports),ze.exports),We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,He=/\n/g,Ke=/^\s*/,Xe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Qe=/^:\s*/,Ge=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ye=/^[;\s]*/,Ze=/^\s+|\s+$/g,et="";function tt(e){return e?e.replace(Ze,et):et}var nt=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(He);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function u(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){u(Ke)}function l(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;et!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,et===e.charAt(n-1))return s("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function d(){var e=i(),t=u(Xe);if(t){if(f(),!u(Qe))return s("property missing ':'");var n=u(Ge),r=e({type:"declaration",property:tt(t[0].replace(We,et)),value:n?tt(n[0].replace(We,et)):et});return u(Ye),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(l(t);e=d();)!1!==e&&(t.push(e),l(t));return t}()}(e),s="function"==typeof t,u=0,c=a.length;u<c;u++)o=(n=a[u]).property,i=n.value,s?t(o,i,n):i&&(r||(r={}),r[o]=i);return r},rt={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"},{name:"--hb-modal-max-width",valueType:"htmlsize",defaultValue:"500px"}],parts:[{name:"modal-dialog",description:"The modal dialog"}]};function ot(t){let n,r,o,i,g,v,y,b,E,w,O,R,$,x,_,A,C=Math.round(t[0])+"";return{c(){n=c("hb-dialog"),r=c("span"),o=c("slot"),i=l(t[1]),g=f(),v=c("div"),y=c("div"),b=c("div"),E=l(C),w=l("%"),R=f(),$=c("span"),this.c=e,d(o,"name","title"),d(r,"slot","title"),d(b,"class","progress-bar"),m(b,"width",Math.round(t[0])+"%"),d(b,"role","progressbar"),d(b,"aria-valuenow",O=Math.round(t[0])),d(b,"aria-valuemin","0"),d(b,"aria-valuemax","100"),d(y,"class","progress"),d(v,"slot","body-content"),d($,"slot","modal-footer"),p(n,"style",t[2]),p(n,"show",x=t[0]?"yes":"no")},m(e,u){var c,l,f,d;s(e,n,u),a(n,r),a(r,o),a(o,i),a(n,g),a(n,v),a(v,y),a(y,b),a(b,E),a(b,w),a(n,R),a(n,$),_||(c=n,l="modalShow",f=t[8],c.addEventListener(l,f,d),A=()=>c.removeEventListener(l,f,d),_=!0)},p(e,[t]){2&t&&h(i,e[1]),1&t&&C!==(C=Math.round(e[0])+"")&&h(E,C),1&t&&m(b,"width",Math.round(e[0])+"%"),1&t&&O!==(O=Math.round(e[0]))&&d(b,"aria-valuenow",O),4&t&&p(n,"style",e[2]),1&t&&x!==(x=e[0]?"yes":"no")&&p(n,"show",x)},i:e,o:e,d(e){e&&u(n),_=!1,A()}}}function it(e,t,n){let r,o="";const i=b(),a=E();Je.addComponent({repoName:"@htmlbricks/hb-dialog",version:U});let s,{id:u}=t,{style:c}=t,{percentage:l}=t,{title:f}=t;function d(e){!function(e,t){a(e,t),i.dispatchEvent&&i.dispatchEvent(new CustomEvent(e,{detail:t}))}("modalShow",e)}return e.$$set=e=>{"id"in e&&n(4,u=e.id),"style"in e&&n(5,c=e.style),"percentage"in e&&n(0,l=e.percentage),"title"in e&&n(1,f=e.title)},e.$$.update=()=>{243&e.$$.dirty&&(l?"string"==typeof l&&n(0,l=parseInt(l)):n(0,l=0),u||n(4,u=null),f||n(1,f="loading"),c&&(n(6,r=nt(c)),n(2,o=Je.getChildStyleToPass(r,null==rt?void 0:rt.vars))),s||n(7,s=!1))},[l,f,o,d,u,c,r,s,e=>d(e.detail)]}class at extends k{constructor(e){super();const t=document.createElement("style");t.textContent='@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{display:flex;height:1rem;overflow:hidden;font-size:0.75rem;background-color:#e9ecef;border-radius:0.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:var(--bs-primary,#07689f);transition:width 0.6s ease}@media(prefers-reduced-motion: reduce){.progress-bar{transition:none}}@media(prefers-reduced-motion: reduce){}:host{font-family:"Roboto", sans-serif}',this.shadowRoot.appendChild(t),L(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},it,ot,i,{id:4,style:5,percentage:0,title:1},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["id","style","percentage","title"]}get id(){return this.$$.ctx[4]}set id(e){this.$$set({id:e}),S()}get style(){return this.$$.ctx[5]}set style(e){this.$$set({style:e}),S()}get percentage(){return this.$$.ctx[0]}set percentage(e){this.$$set({percentage:e}),S()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),S()}}return customElements.define("hb-dialog-loader",at),at}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|