@htmlbricks/hb-editor-video 0.19.30 → 0.19.31
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 +4 -4
- 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-editor-video",
|
|
3
3
|
"displayName": "Svelte Boostrap Video Card WebComponent",
|
|
4
4
|
"description": "Svelte Boostrap Video Card WebComponent",
|
|
5
|
-
"version": "0.19.
|
|
5
|
+
"version": "0.19.31",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"prepublish": "npm run build:release"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@htmlbricks/hb-form": "^0.19.
|
|
34
|
-
"@htmlbricks/hb-range-slider": "^0.19.
|
|
33
|
+
"@htmlbricks/hb-form": "^0.19.31",
|
|
34
|
+
"@htmlbricks/hb-range-slider": "^0.19.31",
|
|
35
35
|
"dayjs": "^1.10.7"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"webcomponents"
|
|
81
81
|
],
|
|
82
82
|
"contributors": [],
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "57eedc8258265f728220d11ea55a90c3ff493e42"
|
|
84
84
|
}
|
package/release/manifest.json
CHANGED
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function u(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function l(t,e){t.appendChild(e)}function c(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function m(t){return document.createTextNode(t)}function h(){return m(" ")}function p(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function g(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:b(t,e,n)}function v(t){return""===t?null:+t}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $(t,e){t.value=null==e?"":e}function w(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function x(t){const e={};for(const n of t)e[n.name]=n.value;return e}function k(t){a=t}function V(){if(!a)throw new Error("Function called outside component initialization");return a}function S(){const t=V();return(e,n,{cancelable:r=!1}={})=>{const o=t.$$.callbacks[e];if(o){const i=function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}const M=[],D=[],C=[],_=[],T=Promise.resolve();let E=!1;function O(t){C.push(t)}const j=new Set;let N=0;function Y(){if(0!==N)return;const t=a;do{try{for(;N<M.length;){const t=M[N];N++,k(t),H(t.$$)}}catch(t){throw M.length=0,N=0,t}for(k(null),M.length=0,N=0;D.length;)D.pop()();for(let t=0;t<C.length;t+=1){const e=C[t];j.has(e)||(j.add(e),e())}C.length=0}while(M.length);for(;_.length;)_.pop()();E=!1,j.clear(),k(t)}function H(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}const L=new Set;function I(t,e){-1===t.$$.dirty[0]&&(M.push(t),E||(E=!0,T.then(Y)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(i,s,u,l,c,f,m,h=[-1]){const p=a;k(i);const b=i.$$={fragment:null,ctx:[],props:f,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(p?p.$$.context:[])),callbacks:n(),dirty:h,skip_bound:!1,root:s.target||p.$$.root};m&&m(b.root);let g=!1;if(b.ctx=u?u(i,s.props||{},((t,e,...n)=>{const r=n.length?n[0]:e;return b.ctx&&c(b.ctx[t],b.ctx[t]=r)&&(!b.skip_bound&&b.bound[t]&&b.bound[t](r),g&&I(i,t)),e})):[],b.update(),g=!0,r(b.before_update),b.fragment=!!l&&l(b.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);b.fragment&&b.fragment.l(t),t.forEach(d)}else b.fragment&&b.fragment.c();s.intro&&((v=i.$$.fragment)&&v.i&&(L.delete(v),v.i(y))),function(t,n,i,s){const{fragment:a,after_update:u}=t.$$;a&&a.m(n,i),s||O((()=>{const n=t.$$.on_mount.map(e).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...n):r(n),t.$$.on_mount=[]})),u.forEach(O)}(i,s.target,s.anchor,s.customElement),Y()}var v,y;k(p)}let P;"function"==typeof HTMLElement&&(P=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(e,n){if(!o(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function W(t){var e={exports:{}};return t(e,e.exports),e.exports}var z=W((function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",o="second",i="minute",s="hour",a="day",u="week",l="month",c="quarter",d="year",f="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,l),i=n-o<0,s=e.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:d,w:u,d:a,D:f,h:s,m:i,s:o,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",$={};$[y]=b;var w=function(t){return t instanceof S},x=function t(e,n,r){var o;if(!e)return y;if("string"==typeof e){var i=e.toLowerCase();$[i]&&(o=i),n&&($[i]=n,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var a=e.name;$[a]=e,o=a}return!r&&o&&(y=o),o||!r&&y},k=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},V=v;V.l=x,V.i=w,V.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function b(t){this.$L=x(t.locale,null,!0),this.parse(t)}var g=b.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(V.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return V},g.isValid=function(){return!(this.$d.toString()===m)},g.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return k(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<k(t)},g.$g=function(t,e,n){return V.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!V.u(e)||e,c=V.p(t),m=function(t,e){var o=V.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?o:o.endOf(a)},h=function(t,e){return V.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,b=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case d:return r?m(1,0):m(31,11);case l:return r?m(1,b):m(0,b+1);case u:var y=this.$locale().weekStart||0,$=(p<y?p+7:p)-y;return m(r?g-$:g+(6-$),b);case a:case f:return h(v+"Hours",0);case s:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case o:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=V.p(t),c="set"+(this.$u?"UTC":""),m=(n={},n[a]=c+"Date",n[f]=c+"Date",n[l]=c+"Month",n[d]=c+"FullYear",n[s]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],h=u===a?this.$D+(e-this.$W):e;if(u===l||u===d){var p=this.clone().set(f,1);p.$d[m](h),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[V.p(t)]()},g.add=function(r,c){var f,m=this;r=Number(r);var h=V.p(c),p=function(t){var e=k(m);return V.w(e.date(e.date()+Math.round(t*r)),m)};if(h===l)return this.set(l,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===a)return p(1);if(h===u)return p(7);var b=(f={},f[i]=e,f[s]=n,f[o]=t,f)[h]||1,g=this.$d.getTime()+r*b;return V.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=V.z(this),i=this.$H,s=this.$m,a=this.$M,u=n.weekdays,l=n.months,c=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},d=function(t){return V.s(i%12||12,t,"0")},f=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:V.s(a+1,2,"0"),MMM:c(n.monthsShort,a,l,3),MMMM:c(l,a),D:this.$D,DD:V.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,u,2),ddd:c(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:V.s(i,2,"0"),h:d(1),hh:d(2),a:f(i,s,!0),A:f(i,s,!1),m:String(s),mm:V.s(s,2,"0"),s:String(this.$s),ss:V.s(this.$s,2,"0"),SSS:V.s(this.$ms,3,"0"),Z:o};return r.replace(p,(function(t,e){return e||h[t]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,m){var h,p=V.p(f),b=k(r),g=(b.utcOffset()-this.utcOffset())*e,v=this-b,y=V.m(this,b);return y=(h={},h[d]=y/12,h[l]=y,h[c]=y/3,h[u]=(v-g)/6048e5,h[a]=(v-g)/864e5,h[s]=v/n,h[i]=v/e,h[o]=v/t,h)[p]||v,m?y:V.a(y)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return $[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=x(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return V.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},b}(),M=S.prototype;return k.prototype=M,[["$ms",r],["$s",o],["$m",i],["$H",s],["$W",a],["$M",l],["$y",d],["$D",f]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),k.extend=function(t,e){return t.$i||(t(e,S,k),t.$i=!0),k},k.locale=x,k.isDayjs=w,k.unix=function(t){return k(1e3*t)},k.en=$[y],k.Ls=$,k.p={},k}()})),R={name:"@htmlbricks/hb-editor-video",displayName:"Svelte Boostrap Video Card WebComponent",description:"Svelte Boostrap Video Card WebComponent",version:"0.19.30",main:"release/release.js",publishConfig:{access:"public"},author:"Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",authorUrl:"https://dariocaruso.info",license:"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0",engines:{node:">=16.0.0"},scripts:{start:"sirv dist",dev:"rm -rf ./dist && rollup -c -w",build:"rm -rf ./dist && rollup -c","generate-manifest":"npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD","generate-component-schema":"ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json","generate-events-schema":"ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json","generate-schemes":"npm run generate-events-schema && npm run generate-component-schema",copydest:"rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/","build-extra":"tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*","build:release":"PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",prepublish:"npm run build:release"},dependencies:{"@htmlbricks/hb-form":"^0.19.30","@htmlbricks/hb-range-slider":"^0.19.30",dayjs:"^1.10.7"},devDependencies:{"@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^4.0.0","@rollup/plugin-typescript":"^8.2.1","@tsconfig/svelte":"^1.0.10","@types/node":"^16.7.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0",eslint:"^7.25.0","eslint-plugin-jsdoc":"^33.0.0","eslint-plugin-svelte3":"^3.2.0","monorepo-wc-packages-manifester":"^0.0.3","node-sass":"^6.0.1",postcss:"^8.2.13","postcss-load-config":"^3.0.1",prettier:"^2.8.4",rollup:"^2.46.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-css-only":"^3.1.0","rollup-plugin-livereload":"^2.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-ts-paths":"^1.0.5","rollup-plugin-typescript2":"^0.31.1",sass:"^1.32.12","sirv-cli":"^1.0.11",svelte:"^3.46.2","svelte-check":"^1.5.2","svelte-preprocess":"^4.7.2","ts-json-schema-generator":"^0.98.0","ts-node":"^9.1.1",tslib:"^2.2.0",ttypescript:"^1.5.12",typescript:"^4.2.4","typescript-transform-paths":"^2.2.3","wc-js-utils":"^0.0.1"},keywords:["svelte","svelte-webcomponents","webcomponents"],contributors:[],gitHead:"7e404e6aab454c97ee17c670715a482623d450a9"},F=W((function(t,e){var n,r,o,i,s,a,u,l,c,d,f,m,h,p,b,g,v,y,$;t.exports=(u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:l=31536e6,months:c=2592e6,days:a=864e5,hours:s=36e5,minutes:i=6e4,seconds:o=1e3,milliseconds:1,weeks:6048e5},m=function(t){return t instanceof $},h=function(t,e,n){return new $(t,n,e.$l)},p=function(t){return r.p(t)+"s"},b=function(t){return t<0},g=function(t){return b(t)?Math.ceil(t):Math.floor(t)},v=function(t){return Math.abs(t)},y=function(t,e){return t?b(t)?{negative:!0,format:""+v(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},$=function(){function t(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*f[p(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){r.$d[p(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var o=t.match(d);if(o){var i=o.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var e=t.prototype;return e.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,n){return e+(t.$d[n]||0)*f[n]}),0)},e.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=g(t/l),t%=l,this.$d.months=g(t/c),t%=c,this.$d.days=g(t/a),t%=a,this.$d.hours=g(t/s),t%=s,this.$d.minutes=g(t/i),t%=i,this.$d.seconds=g(t/o),t%=o,this.$d.milliseconds=t},e.toISOString=function(){var t=y(this.$d.years,"Y"),e=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=y(n,"D"),o=y(this.$d.hours,"H"),i=y(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3);var a=y(s,"S"),u=t.negative||e.negative||r.negative||o.negative||i.negative||a.negative,l=o.format||i.format||a.format?"T":"",c=(u?"-":"")+"P"+t.format+e.format+r.format+l+o.format+i.format+a.format;return"P"===c||"-P"===c?"P0D":c},e.toJSON=function(){return this.toISOString()},e.format=function(t){var e=t||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return e.replace(u,(function(t,e){return e||String(n[t])}))},e.as=function(t){return this.$ms/f[p(t)]},e.get=function(t){var e=this.$ms,n=p(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?g(e/f[n]):this.$d[n],0===e?0:e},e.add=function(t,e,n){var r;return r=e?t*f[p(e)]:m(t)?t.$ms:h(t,this).$ms,h(this.$ms+r*(n?-1:1),this)},e.subtract=function(t,e){return this.add(t,e,!0)},e.locale=function(t){var e=this.clone();return e.$l=t,e},e.clone=function(){return h(this.$ms,this)},e.humanize=function(t){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},e.milliseconds=function(){return this.get("milliseconds")},e.asMilliseconds=function(){return this.as("milliseconds")},e.seconds=function(){return this.get("seconds")},e.asSeconds=function(){return this.as("seconds")},e.minutes=function(){return this.get("minutes")},e.asMinutes=function(){return this.as("minutes")},e.hours=function(){return this.get("hours")},e.asHours=function(){return this.as("hours")},e.days=function(){return this.get("days")},e.asDays=function(){return this.as("days")},e.weeks=function(){return this.get("weeks")},e.asWeeks=function(){return this.as("weeks")},e.months=function(){return this.get("months")},e.asMonths=function(){return this.as("months")},e.years=function(){return this.get("years")},e.asYears=function(){return this.as("years")},t}(),function(t,e,o){n=o,r=o().$utils(),o.duration=function(t,e){var n=o.locale();return h(t,{$l:n},e)},o.isDuration=m;var i=e.prototype.add,s=e.prototype.subtract;e.prototype.add=function(t,e){return m(t)&&(t=t.asMilliseconds()),i.bind(this)(t,e)},e.prototype.subtract=function(t,e){return m(t)&&(t=t.asMilliseconds()),s.bind(this)(t,e)}})})),U=W((function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,r,o="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(r=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(o+="".concat(n,":").concat(t[n],";"))},s=0,a=Object.keys(t);s<a.length;s++){i(a[s])}return o},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var r=(null==t?void 0:t.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(t.repoName,"@").concat(t.version,"/").concat(r),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(o.src="".concat(t.local)),document.head.appendChild(o)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,r){return t.formatDate(e,n,r||this.lang)},t.getDefaultLang=function(){var t,e,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.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},t.getDictionaryWord=function(e,n,r){var o;if(!e)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[e]))return n[r][e];var i="",s=t.getDefaultLang();if(!r||s!==r){var a=null==n?void 0:n[s];(null==a?void 0:a[e])&&(i=a[e])}return i},t.formatDate=function(e,n,r){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n})),B=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,J=/\n/g,Z=/^\s*/,q=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,K=/^:\s*/,Q=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,G=/^[;\s]*/,X=/^\s+|\s+$/g,tt="\n",et="/",nt="*",rt="",ot="comment",it="declaration",st=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function o(t){var e=t.match(J);e&&(n+=e.length);var o=t.lastIndexOf(tt);r=~o?t.length-o:r+t.length}function i(){var t={line:n,column:r};return function(e){return e.position=new s(t),l(),e}}function s(t){this.start=t,this.end={line:n,column:r},this.source=e.source}function a(o){var i=new Error(e.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=e.source,i.line=n,i.column=r,i.source=t,!e.silent)throw i}function u(e){var n=e.exec(t);if(n){var r=n[0];return o(r),t=t.slice(r.length),n}}function l(){u(Z)}function c(t){var e;for(t=t||[];e=d();)!1!==e&&t.push(e);return t}function d(){var e=i();if(et==t.charAt(0)&&nt==t.charAt(1)){for(var n=2;rt!=t.charAt(n)&&(nt!=t.charAt(n)||et!=t.charAt(n+1));)++n;if(n+=2,rt===t.charAt(n-1))return a("End of comment missing");var s=t.slice(2,n-2);return r+=2,o(s),t=t.slice(n),r+=2,e({type:ot,comment:s})}}function f(){var t=i(),e=u(q);if(e){if(d(),!u(K))return a("property missing ':'");var n=u(Q),r=t({type:it,property:at(e[0].replace(B,rt)),value:n?at(n[0].replace(B,rt)):rt});return u(G),r}}return s.prototype.content=t,l(),function(){var t,e=[];for(c(e);t=f();)!1!==t&&(e.push(t),c(e));return e}()};function at(t){return t?t.replace(X,rt):rt}var ut=function(t,e){var n,r=null;if(!t||"string"!=typeof t)return r;for(var o,i,s=st(t),a="function"==typeof e,u=0,l=s.length;u<l;u++)o=(n=s[u]).property,i=n.value,a?e(o,i,n):i&&(r||(r={}),r[o]=i);return r},lt={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"}],parts:[{name:"invalid-feedback",description:""},{name:"main_button",description:""},{name:"button_container",description:""}]},ct={vars:[{name:"--hb-slider-background-color",defaultValue:"#1abc9c",valueType:"color"}],parts:[{name:"inverse",description:""},{name:"the-range",description:""},{name:"the-thumb",description:""},{name:"sign",description:""}]};function dt(t){let e,n,r,o,i,s,a,u,m,b,v,y,$=t[16]&&ft(t);return{c(){e=f("div"),n=f("div"),$&&$.c(),r=h(),o=f("div"),i=f("hb-range-slider"),w(n,"display","inline-block"),w(n,"width","50px"),g(i,"style",s=t[6]+";--hb-slider-background-color: red;"),g(i,"max",a=t[7].toString()),g(i,"min",$t.toString()),g(i,"maxval",u=t[2].maxValue.toString()),g(i,"minval",m=t[2].minValue.toString()),g(i,"position_value",b=t[4].toString()),w(o,"display","inline-block"),w(o,"width","calc(100% - 60px)"),w(o,"position","relative"),w(e,"width","100%"),w(e,"margin-bottom","15px")},m(s,a){c(s,e,a),l(e,n),$&&$.m(n,null),l(e,r),l(e,o),l(o,i),v||(y=p(i,"changeRangeValues",t[35]),v=!0)},p(t,e){t[16]?$?$.p(t,e):($=ft(t),$.c(),$.m(n,null)):$&&($.d(1),$=null),64&e[0]&&s!==(s=t[6]+";--hb-slider-background-color: red;")&&g(i,"style",s),128&e[0]&&a!==(a=t[7].toString())&&g(i,"max",a),4&e[0]&&u!==(u=t[2].maxValue.toString())&&g(i,"maxval",u),4&e[0]&&m!==(m=t[2].minValue.toString())&&g(i,"minval",m),16&e[0]&&b!==(b=t[4].toString())&&g(i,"position_value",b)},d(t){t&&d(e),$&&$.d(),v=!1,y()}}}function ft(t){let e,n,r;function o(t,e){return t[17]?ht:mt}let i=o(t),s=i(t);return{c(){e=f("button"),s.c(),b(e,"class","btn btn-outline-dark")},m(o,i){c(o,e,i),s.m(e,null),n||(r=p(e,"click",t[34]),n=!0)},p(t,n){i!==(i=o(t))&&(s.d(1),s=i(t),s&&(s.c(),s.m(e,null)))},d(t){t&&d(e),s.d(),n=!1,r()}}}function mt(t){let e;return{c(){e=f("i"),b(e,"class","bi bi-pause-fill")},m(t,n){c(t,e,n)},d(t){t&&d(e)}}}function ht(t){let e;return{c(){e=f("i"),b(e,"class","bi bi-play-fill")},m(t,n){c(t,e,n)},d(t){t&&d(e)}}}function pt(t){let e,n,o,i;return{c(){e=f("hb-form"),g(e,"hide_submit","yes"),g(e,"style",n=t[5]+"margin:40px auto 20px auto; display:block"),g(e,"submitted",t[14]),g(e,"schema",t[1])},m(n,r){c(n,e,r),o||(i=[p(e,"submit",t[36]),p(e,"change",t[37])],o=!0)},p(t,r){32&r[0]&&n!==(n=t[5]+"margin:40px auto 20px auto; display:block")&&g(e,"style",n),16384&r[0]&&g(e,"submitted",t[14]),2&r[0]&&g(e,"schema",t[1])},d(t){t&&d(e),o=!1,r(i)}}}function bt(t){let e,n,r,o,i,s,a=z.duration(1e3*(t[2].maxValue-t[2].minValue)).hours()?z.duration(1e3*(t[2].maxValue-t[2].minValue)).format("H")+" hours":"",u=z.duration(1e3*(t[2].maxValue-t[2].minValue)).minutes()?z.duration(1e3*(t[2].maxValue-t[2].minValue)).format("m")+" minutes":"",l=z.duration(parseInt((1e3*(t[2].maxValue-t[2].minValue)).toString())).format("s.SSS")+" seconds";return{c(){e=m("duration:\n\t\t\t\t"),n=m(a),r=h(),o=m(u),i=h(),s=m(l)},m(t,a){c(t,e,a),c(t,n,a),c(t,r,a),c(t,o,a),c(t,i,a),c(t,s,a)},p(t,e){4&e[0]&&a!==(a=z.duration(1e3*(t[2].maxValue-t[2].minValue)).hours()?z.duration(1e3*(t[2].maxValue-t[2].minValue)).format("H")+" hours":"")&&y(n,a),4&e[0]&&u!==(u=z.duration(1e3*(t[2].maxValue-t[2].minValue)).minutes()?z.duration(1e3*(t[2].maxValue-t[2].minValue)).format("m")+" minutes":"")&&y(o,u),4&e[0]&&l!==(l=z.duration(parseInt((1e3*(t[2].maxValue-t[2].minValue)).toString())).format("s.SSS")+" seconds")&&y(s,l)},d(t){t&&d(e),t&&d(n),t&&d(r),t&&d(o),t&&d(i),t&&d(s)}}}function gt(e){let n,r,o;return{c(){n=f("button"),n.textContent="send",b(n,"class","btn btn-sm btn-primary"),n.disabled=!0},m(t,i){c(t,n,i),r||(o=p(n,"click",e[21]),r=!0)},p:t,d(t){t&&d(n),r=!1,o()}}}function vt(e){let n,r,o;return{c(){n=f("button"),n.textContent="send",b(n,"class","btn btn-sm btn-primary")},m(t,i){c(t,n,i),r||(o=p(n,"click",e[21]),r=!0)},p:t,d(t){t&&d(n),r=!1,o()}}}function yt(e){let n,o,i,s,a,g,y,x,k,V,S,M,D,C,_,T,E,O,j,N,Y,H,L,I,A,P,W,z,R,F,U,B,J,Z,q,K,Q,G,X,tt,et,nt,rt,ot,it=e[3]&&e[2]&&dt(e),st=e[1]&&pt(e),at=e[2]?.maxValue&&bt(e);function ut(t,e){return t[15]?vt:gt}let lt=ut(e),ct=lt(e);return{c(){n=f("link"),o=h(),i=f("div"),s=f("div"),a=f("video"),g=f("source"),x=m("\n\t\t\tYour browser does not support the video tag."),k=h(),V=f("div"),it&&it.c(),S=h(),st&&st.c(),M=h(),D=f("div"),C=f("div"),_=f("button"),_.textContent="▼",T=h(),E=f("button"),E.textContent="▲",O=h(),j=f("input"),N=m("h\n\t\t\t\t"),Y=f("input"),H=m("m\n\t\t\t\t"),L=f("input"),I=m("s"),A=h(),P=f("div"),W=h(),z=f("div"),R=f("input"),F=m("h\n\t\t\t\t"),U=f("input"),B=m("m\n\t\t\t\t"),J=f("input"),Z=m("s\n\n\t\t\t\t"),q=f("button"),q.textContent="▲",K=h(),Q=f("button"),Q.textContent="▼",G=h(),X=f("div"),tt=f("span"),at&&at.c(),et=h(),nt=f("span"),ct.c(),this.c=t,b(n,"rel","stylesheet"),b(n,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),u(g.src,y=e[0])||b(g,"src",y),b(g,"type","video/mp4"),b(a,"id","video"),b(a,"class","ratio ratio-16x9"),b(s,"class","ratio ratio-16x9"),w(s,"background-color","black"),b(_,"class","btn btn-sm btn-secondary"),b(E,"class","btn btn-sm btn-secondary"),b(j,"type","number"),b(j,"class","form-control form-custom-control-numbers"),b(Y,"class","form-control form-custom-control-numbers"),b(Y,"type","number"),b(L,"type","number"),b(L,"class","form-control form-custom-control-numbers"),w(C,"flex-grow","2"),w(P,"flex-grow","2"),w(P,"text-align","center"),b(R,"type","number"),b(R,"class","form-control form-custom-control-numbers"),b(U,"class","form-control form-custom-control-numbers"),b(U,"type","number"),b(J,"type","number"),b(J,"class","form-control form-custom-control-numbers"),b(q,"class","btn btn-sm btn-secondary"),b(Q,"class","btn btn-sm btn-secondary"),w(z,"flex-grow","2"),w(z,"text-align","right"),b(D,"id","controls"),b(V,"class","card-body"),w(tt,"float","left"),w(tt,"height","30px"),w(tt,"line-height","30px"),w(nt,"float","right"),w(nt,"height","30px"),w(nt,"line-height","30px"),b(X,"class","card-footer"),b(i,"id","card"),b(i,"class","card h-100")},m(t,r){l(document.head,n),c(t,o,r),c(t,i,r),l(i,s),l(s,a),l(a,g),l(a,x),l(i,k),l(i,V),it&&it.m(V,null),l(V,S),st&&st.m(V,null),l(V,M),l(V,D),l(D,C),l(C,_),l(C,T),l(C,E),l(C,O),l(C,j),$(j,e[9]),l(C,N),l(C,Y),$(Y,e[11]),l(C,H),l(C,L),$(L,e[13]),l(C,I),l(D,A),l(D,P),l(D,W),l(D,z),l(z,R),$(R,e[8]),l(z,F),l(z,U),$(U,e[10]),l(z,B),l(z,J),$(J,e[12]),l(z,Z),l(z,q),l(z,K),l(z,Q),l(i,G),l(i,X),l(X,tt),at&&at.m(tt,null),l(X,et),l(X,nt),ct.m(nt,null),rt||(ot=[p(a,"play",e[30]),p(a,"pause",e[31]),p(a,"timeupdate",e[32]),p(a,"loadedmetadata",e[33]),p(_,"click",e[38]),p(E,"click",e[39]),p(j,"input",e[40]),p(j,"change",e[18]),p(Y,"input",e[41]),p(Y,"change",e[18]),p(L,"input",e[42]),p(L,"change",e[18]),p(R,"input",e[43]),p(R,"change",e[18]),p(U,"input",e[44]),p(U,"change",e[18]),p(J,"input",e[45]),p(J,"change",e[18]),p(q,"click",e[46]),p(Q,"click",e[47])],rt=!0)},p(t,e){1&e[0]&&!u(g.src,y=t[0])&&b(g,"src",y),t[3]&&t[2]?it?it.p(t,e):(it=dt(t),it.c(),it.m(V,S)):it&&(it.d(1),it=null),t[1]?st?st.p(t,e):(st=pt(t),st.c(),st.m(V,M)):st&&(st.d(1),st=null),512&e[0]&&v(j.value)!==t[9]&&$(j,t[9]),2048&e[0]&&v(Y.value)!==t[11]&&$(Y,t[11]),8192&e[0]&&v(L.value)!==t[13]&&$(L,t[13]),256&e[0]&&v(R.value)!==t[8]&&$(R,t[8]),1024&e[0]&&v(U.value)!==t[10]&&$(U,t[10]),4096&e[0]&&v(J.value)!==t[12]&&$(J,t[12]),t[2]?.maxValue?at?at.p(t,e):(at=bt(t),at.c(),at.m(tt,null)):at&&(at.d(1),at=null),lt===(lt=ut(t))&&ct?ct.p(t,e):(ct.d(1),ct=lt(t),ct&&(ct.c(),ct.m(nt,null)))},i:t,o:t,d(t){d(n),t&&d(o),t&&d(i),it&&it.d(),st&&st.d(),at&&at.d(),ct.d(),rt=!1,r(ot)}}}let $t=0;function wt(t,e,n){let r,{style:o}=e,i="",s="";z.extend(F);const a=V(),u=S();let l,c,d,f,m,h,p,b,g,y,$,{id:w}=e,{src:x}=e,{form:k}=e,{track:M}=e,D="no",C=!0;function _(t,e){u(t,e),a.dispatchEvent&&a.dispatchEvent(new CustomEvent(t,{detail:e}))}function T(t){n(16,y.currentTime=t,y)}function E(t){n(2,M.minValue=t.minValue,M),n(2,M.maxValue=t.maxValue,M),n(16,y.currentTime=t.positionValReal,y),n(4,$=t.positionValReal),O(),y.currentTime<M.minValue&&T(M.minValue),y.currentTime>M.maxValue&&T(M.maxValue),_("changeTrackValues",{minVaule:M.minValue,maxValue:M.maxValue})}function O(){n(8,c=parseInt((M.maxValue/3600).toString())),n(9,d=parseInt((M.maxValue/3600).toString())),n(10,f=parseInt(((M.maxValue-60*Number(c))/60).toString())),n(11,m=parseInt(((M.minValue-60*Number(d))/60).toString())),n(12,h=M.maxValue-3600*Number(c)-60*Number(f)),n(13,p=M.minValue-3600*Number(d)-60*Number(m))}function j(t){n(3,b=t.target.duration),n(7,l=b),(!M.maxValue||M.maxValue>l)&&n(2,M.maxValue=l,M),(!M.minValue||M.minValue<$t)&&n(2,M.minValue=$t,M),n(16,y=a.shadowRoot.getElementById("video")),O(),console.log("videoElement",y)}function N(t){switch(t){case"start":y.currentTime<M.maxValue&&n(2,M.minValue=y.currentTime,M);break;case"end":y.currentTime>M.minValue&&n(2,M.maxValue=y.currentTime,M);break;default:return console.error("no vaild point for cue")}O(),_("changeTrackValues",{minVaule:M.minValue,maxValue:M.maxValue})}function Y(t){console.log("formSubmit",t._valid),n(15,g=t._valid),"yes"===D&&(t._valid&&M&&(M.minValue||0===M.minValue)&&(M.maxValue||0===M.maxValue)&&_("dispatchTrack",Object.assign(M,t)),console.log(M)),"no"!==D&&n(14,D="no")}function H(t){n(15,g=t._valid)}function L(t){y.currentTime>M.maxValue?(y.pause(),T(M.maxValue)):y.currentTime<M.minValue-.01&&(y.pause(),T(M.minValue)),n(4,$=y.currentTime)}U.addComponent({repoName:"@htmlbricks/hb-range-slider",version:R.version}),U.addComponent({repoName:"@htmlbricks/hb-form",version:R.version});return t.$$set=t=>{"style"in t&&n(28,o=t.style),"id"in t&&n(27,w=t.id),"src"in t&&n(0,x=t.src),"form"in t&&n(1,k=t.form),"track"in t&&n(2,M=t.track)},t.$$.update=()=>{939524127&t.$$.dirty[0]&&(o&&(n(29,r=ut(o)),n(5,i=U.getChildStyleToPass(r,null==lt?void 0:lt.vars)),n(6,s=U.getChildStyleToPass(r,null==ct?void 0:ct.vars))),w||n(27,w=""),k?n(15,g=!1):(n(1,k=null),n(15,g=!0)),b||n(3,b=0),x||n(0,x=""),M&&"string"==typeof M?n(2,M=JSON.parse(M)):M||n(2,M={maxValue:null,minValue:null}),console.log("reload all"),console.log($,"log",$t),M&&n(4,$=M.minValue<($||0)?$||0:M.minValue),console.log($,"log2"))},[x,k,M,b,$,i,s,l,c,d,f,m,h,p,D,g,y,C,function(){n(2,M.maxValue=3600*c+60*f+h,M),n(2,M.minValue=3600*d+60*m+p,M)},T,E,function(){!M||!M.minValue&&0!==M.minValue||!M.maxValue&&0!==M.maxValue||(k?n(14,D="yes"):(_("dispatchTrack",M),console.log(M)))},j,N,Y,H,L,w,o,r,()=>n(17,C=!1),()=>n(17,C=!0),t=>L(),t=>j(t),()=>y.paused?y.play():y.pause(),t=>{E(t.detail)},t=>Y(t.detail),t=>H(t.detail),()=>{N("start")},()=>{T(M.minValue)},function(){d=v(this.value),n(9,d)},function(){m=v(this.value),n(11,m)},function(){p=v(this.value),n(13,p)},function(){c=v(this.value),n(8,c)},function(){f=v(this.value),n(10,f)},function(){h=v(this.value),n(12,h)},()=>{T(M.maxValue)},()=>{N("end")}]}class xt extends P{constructor(t){super(),this.shadowRoot.innerHTML='<style>@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");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button{-webkit-appearance:button}button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0, 0, 0, 0.125);border-radius:0.25rem}.card-body{flex:1 1 auto;padding:1rem 1rem}.card-footer{padding:0.5rem 1rem;background-color:rgba(0, 0, 0, 0.03);border-top:1px solid rgba(0, 0, 0, 0.125)}.card-footer:last-child{border-radius:0 0 calc(0.25rem - 1px) calc(0.25rem - 1px)}@media(min-width: 576px){.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.btn{display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:#212529}.btn:focus{outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.btn:disabled{pointer-events:none;opacity:0.65}.btn-primary{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-primary:hover{color:#fff;background-color:#0b5ed7;border-color:#0a58ca}.btn-primary:focus{color:#fff;background-color:#0b5ed7;border-color:#0a58ca;box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:active{color:#fff;background-color:#0a58ca;border-color:#0a53be}.btn-primary:active:focus{box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:disabled{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-secondary{color:#fff;background-color:var(--bs-secondary,#c9d6df);border-color:var(--bs-secondary,#c9d6df)}.btn-secondary:hover{color:#fff;background-color:#5c636a;border-color:#565e64}.btn-secondary:focus{color:#fff;background-color:#5c636a;border-color:#565e64;box-shadow:0 0 0 0.25rem rgba(130, 138, 145, 0.5)}.btn-secondary:active{color:#fff;background-color:#565e64;border-color:#51585e}.btn-secondary:active:focus{box-shadow:0 0 0 0.25rem rgba(130, 138, 145, 0.5)}.btn-secondary:disabled{color:#fff;background-color:var(--bs-secondary,#c9d6df);border-color:var(--bs-secondary,#c9d6df)}.btn-outline-dark{color:#212529;border-color:#212529}.btn-outline-dark:hover{color:#fff;background-color:#212529;border-color:#212529}.btn-outline-dark:focus{box-shadow:0 0 0 0.25rem rgba(33, 37, 41, 0.5)}.btn-outline-dark:active{color:#fff;background-color:#212529;border-color:#212529}.btn-outline-dark:active:focus{box-shadow:0 0 0 0.25rem rgba(33, 37, 41, 0.5)}.btn-outline-dark:disabled{color:#212529;background-color:transparent}.btn-sm{padding:0.25rem 0.5rem;font-size:0.875rem;border-radius:0.2rem}.form-control{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:var(--bs-secondary,#c9d6df);opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control::-webkit-file-upload-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-16x9{--bs-aspect-ratio:56.25%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}:host{font-family:"Roboto", sans-serif}.form-custom-control-numbers{width:40px;display:inline-block;padding:0px}#controls{display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch}</style>',A(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},wt,yt,i,{style:28,id:27,src:0,form:1,track:2},null,[-1,-1]),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),Y()))}static get observedAttributes(){return["style","id","src","form","track"]}get style(){return this.$$.ctx[28]}set style(t){this.$$set({style:t}),Y()}get id(){return this.$$.ctx[27]}set id(t){this.$$set({id:t}),Y()}get src(){return this.$$.ctx[0]}set src(t){this.$$set({src:t}),Y()}get form(){return this.$$.ctx[1]}set form(t){this.$$set({form:t}),Y()}get track(){return this.$$.ctx[2]}set track(t){this.$$set({track:t}),Y()}}return customElements.define("hb-editor-video",xt),xt}();
|
|
1
|
+
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function u(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function l(t,e){t.appendChild(e)}function c(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function m(t){return document.createTextNode(t)}function h(){return m(" ")}function p(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function g(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:b(t,e,n)}function v(t){return""===t?null:+t}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $(t,e){t.value=null==e?"":e}function w(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function x(t){const e={};for(const n of t)e[n.name]=n.value;return e}function k(t){a=t}function V(){if(!a)throw new Error("Function called outside component initialization");return a}function S(){const t=V();return(e,n,{cancelable:r=!1}={})=>{const o=t.$$.callbacks[e];if(o){const i=function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}const M=[],D=[],C=[],_=[],T=Promise.resolve();let E=!1;function O(t){C.push(t)}const j=new Set;let N=0;function Y(){if(0!==N)return;const t=a;do{try{for(;N<M.length;){const t=M[N];N++,k(t),H(t.$$)}}catch(t){throw M.length=0,N=0,t}for(k(null),M.length=0,N=0;D.length;)D.pop()();for(let t=0;t<C.length;t+=1){const e=C[t];j.has(e)||(j.add(e),e())}C.length=0}while(M.length);for(;_.length;)_.pop()();E=!1,j.clear(),k(t)}function H(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}const L=new Set;function I(t,e){-1===t.$$.dirty[0]&&(M.push(t),E||(E=!0,T.then(Y)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(i,s,u,l,c,f,m,h=[-1]){const p=a;k(i);const b=i.$$={fragment:null,ctx:[],props:f,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(p?p.$$.context:[])),callbacks:n(),dirty:h,skip_bound:!1,root:s.target||p.$$.root};m&&m(b.root);let g=!1;if(b.ctx=u?u(i,s.props||{},((t,e,...n)=>{const r=n.length?n[0]:e;return b.ctx&&c(b.ctx[t],b.ctx[t]=r)&&(!b.skip_bound&&b.bound[t]&&b.bound[t](r),g&&I(i,t)),e})):[],b.update(),g=!0,r(b.before_update),b.fragment=!!l&&l(b.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);b.fragment&&b.fragment.l(t),t.forEach(d)}else b.fragment&&b.fragment.c();s.intro&&((v=i.$$.fragment)&&v.i&&(L.delete(v),v.i(y))),function(t,n,i,s){const{fragment:a,after_update:u}=t.$$;a&&a.m(n,i),s||O((()=>{const n=t.$$.on_mount.map(e).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...n):r(n),t.$$.on_mount=[]})),u.forEach(O)}(i,s.target,s.anchor,s.customElement),Y()}var v,y;k(p)}let P;"function"==typeof HTMLElement&&(P=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(e,n){if(!o(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function W(t){var e={exports:{}};return t(e,e.exports),e.exports}var z=W((function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",o="second",i="minute",s="hour",a="day",u="week",l="month",c="quarter",d="year",f="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,l),i=n-o<0,s=e.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:d,w:u,d:a,D:f,h:s,m:i,s:o,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",$={};$[y]=b;var w=function(t){return t instanceof S},x=function t(e,n,r){var o;if(!e)return y;if("string"==typeof e){var i=e.toLowerCase();$[i]&&(o=i),n&&($[i]=n,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var a=e.name;$[a]=e,o=a}return!r&&o&&(y=o),o||!r&&y},k=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},V=v;V.l=x,V.i=w,V.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function b(t){this.$L=x(t.locale,null,!0),this.parse(t)}var g=b.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(V.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return V},g.isValid=function(){return!(this.$d.toString()===m)},g.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return k(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<k(t)},g.$g=function(t,e,n){return V.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!V.u(e)||e,c=V.p(t),m=function(t,e){var o=V.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?o:o.endOf(a)},h=function(t,e){return V.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,b=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case d:return r?m(1,0):m(31,11);case l:return r?m(1,b):m(0,b+1);case u:var y=this.$locale().weekStart||0,$=(p<y?p+7:p)-y;return m(r?g-$:g+(6-$),b);case a:case f:return h(v+"Hours",0);case s:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case o:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=V.p(t),c="set"+(this.$u?"UTC":""),m=(n={},n[a]=c+"Date",n[f]=c+"Date",n[l]=c+"Month",n[d]=c+"FullYear",n[s]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],h=u===a?this.$D+(e-this.$W):e;if(u===l||u===d){var p=this.clone().set(f,1);p.$d[m](h),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[V.p(t)]()},g.add=function(r,c){var f,m=this;r=Number(r);var h=V.p(c),p=function(t){var e=k(m);return V.w(e.date(e.date()+Math.round(t*r)),m)};if(h===l)return this.set(l,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===a)return p(1);if(h===u)return p(7);var b=(f={},f[i]=e,f[s]=n,f[o]=t,f)[h]||1,g=this.$d.getTime()+r*b;return V.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=V.z(this),i=this.$H,s=this.$m,a=this.$M,u=n.weekdays,l=n.months,c=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},d=function(t){return V.s(i%12||12,t,"0")},f=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:V.s(a+1,2,"0"),MMM:c(n.monthsShort,a,l,3),MMMM:c(l,a),D:this.$D,DD:V.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,u,2),ddd:c(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:V.s(i,2,"0"),h:d(1),hh:d(2),a:f(i,s,!0),A:f(i,s,!1),m:String(s),mm:V.s(s,2,"0"),s:String(this.$s),ss:V.s(this.$s,2,"0"),SSS:V.s(this.$ms,3,"0"),Z:o};return r.replace(p,(function(t,e){return e||h[t]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,m){var h,p=V.p(f),b=k(r),g=(b.utcOffset()-this.utcOffset())*e,v=this-b,y=V.m(this,b);return y=(h={},h[d]=y/12,h[l]=y,h[c]=y/3,h[u]=(v-g)/6048e5,h[a]=(v-g)/864e5,h[s]=v/n,h[i]=v/e,h[o]=v/t,h)[p]||v,m?y:V.a(y)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return $[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=x(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return V.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},b}(),M=S.prototype;return k.prototype=M,[["$ms",r],["$s",o],["$m",i],["$H",s],["$W",a],["$M",l],["$y",d],["$D",f]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),k.extend=function(t,e){return t.$i||(t(e,S,k),t.$i=!0),k},k.locale=x,k.isDayjs=w,k.unix=function(t){return k(1e3*t)},k.en=$[y],k.Ls=$,k.p={},k}()})),R={name:"@htmlbricks/hb-editor-video",displayName:"Svelte Boostrap Video Card WebComponent",description:"Svelte Boostrap Video Card WebComponent",version:"0.19.31",main:"release/release.js",publishConfig:{access:"public"},author:"Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",authorUrl:"https://dariocaruso.info",license:"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0",engines:{node:">=16.0.0"},scripts:{start:"sirv dist",dev:"rm -rf ./dist && rollup -c -w",build:"rm -rf ./dist && rollup -c","generate-manifest":"npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD","generate-component-schema":"ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json","generate-events-schema":"ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json","generate-schemes":"npm run generate-events-schema && npm run generate-component-schema",copydest:"rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/","build-extra":"tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*","build:release":"PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",prepublish:"npm run build:release"},dependencies:{"@htmlbricks/hb-form":"^0.19.31","@htmlbricks/hb-range-slider":"^0.19.31",dayjs:"^1.10.7"},devDependencies:{"@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^4.0.0","@rollup/plugin-typescript":"^8.2.1","@tsconfig/svelte":"^1.0.10","@types/node":"^16.7.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0",eslint:"^7.25.0","eslint-plugin-jsdoc":"^33.0.0","eslint-plugin-svelte3":"^3.2.0","monorepo-wc-packages-manifester":"^0.0.3","node-sass":"^6.0.1",postcss:"^8.2.13","postcss-load-config":"^3.0.1",prettier:"^2.8.4",rollup:"^2.46.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-css-only":"^3.1.0","rollup-plugin-livereload":"^2.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-ts-paths":"^1.0.5","rollup-plugin-typescript2":"^0.31.1",sass:"^1.32.12","sirv-cli":"^1.0.11",svelte:"^3.46.2","svelte-check":"^1.5.2","svelte-preprocess":"^4.7.2","ts-json-schema-generator":"^0.98.0","ts-node":"^9.1.1",tslib:"^2.2.0",ttypescript:"^1.5.12",typescript:"^4.2.4","typescript-transform-paths":"^2.2.3","wc-js-utils":"^0.0.1"},keywords:["svelte","svelte-webcomponents","webcomponents"],contributors:[],gitHead:"57eedc8258265f728220d11ea55a90c3ff493e42"},F=W((function(t,e){var n,r,o,i,s,a,u,l,c,d,f,m,h,p,b,g,v,y,$;t.exports=(u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:l=31536e6,months:c=2592e6,days:a=864e5,hours:s=36e5,minutes:i=6e4,seconds:o=1e3,milliseconds:1,weeks:6048e5},m=function(t){return t instanceof $},h=function(t,e,n){return new $(t,n,e.$l)},p=function(t){return r.p(t)+"s"},b=function(t){return t<0},g=function(t){return b(t)?Math.ceil(t):Math.floor(t)},v=function(t){return Math.abs(t)},y=function(t,e){return t?b(t)?{negative:!0,format:""+v(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},$=function(){function t(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*f[p(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){r.$d[p(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var o=t.match(d);if(o){var i=o.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var e=t.prototype;return e.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,n){return e+(t.$d[n]||0)*f[n]}),0)},e.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=g(t/l),t%=l,this.$d.months=g(t/c),t%=c,this.$d.days=g(t/a),t%=a,this.$d.hours=g(t/s),t%=s,this.$d.minutes=g(t/i),t%=i,this.$d.seconds=g(t/o),t%=o,this.$d.milliseconds=t},e.toISOString=function(){var t=y(this.$d.years,"Y"),e=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=y(n,"D"),o=y(this.$d.hours,"H"),i=y(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3);var a=y(s,"S"),u=t.negative||e.negative||r.negative||o.negative||i.negative||a.negative,l=o.format||i.format||a.format?"T":"",c=(u?"-":"")+"P"+t.format+e.format+r.format+l+o.format+i.format+a.format;return"P"===c||"-P"===c?"P0D":c},e.toJSON=function(){return this.toISOString()},e.format=function(t){var e=t||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return e.replace(u,(function(t,e){return e||String(n[t])}))},e.as=function(t){return this.$ms/f[p(t)]},e.get=function(t){var e=this.$ms,n=p(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?g(e/f[n]):this.$d[n],0===e?0:e},e.add=function(t,e,n){var r;return r=e?t*f[p(e)]:m(t)?t.$ms:h(t,this).$ms,h(this.$ms+r*(n?-1:1),this)},e.subtract=function(t,e){return this.add(t,e,!0)},e.locale=function(t){var e=this.clone();return e.$l=t,e},e.clone=function(){return h(this.$ms,this)},e.humanize=function(t){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},e.milliseconds=function(){return this.get("milliseconds")},e.asMilliseconds=function(){return this.as("milliseconds")},e.seconds=function(){return this.get("seconds")},e.asSeconds=function(){return this.as("seconds")},e.minutes=function(){return this.get("minutes")},e.asMinutes=function(){return this.as("minutes")},e.hours=function(){return this.get("hours")},e.asHours=function(){return this.as("hours")},e.days=function(){return this.get("days")},e.asDays=function(){return this.as("days")},e.weeks=function(){return this.get("weeks")},e.asWeeks=function(){return this.as("weeks")},e.months=function(){return this.get("months")},e.asMonths=function(){return this.as("months")},e.years=function(){return this.get("years")},e.asYears=function(){return this.as("years")},t}(),function(t,e,o){n=o,r=o().$utils(),o.duration=function(t,e){var n=o.locale();return h(t,{$l:n},e)},o.isDuration=m;var i=e.prototype.add,s=e.prototype.subtract;e.prototype.add=function(t,e){return m(t)&&(t=t.asMilliseconds()),i.bind(this)(t,e)},e.prototype.subtract=function(t,e){return m(t)&&(t=t.asMilliseconds()),s.bind(this)(t,e)}})})),U=W((function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,r,o="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(r=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(o+="".concat(n,":").concat(t[n],";"))},s=0,a=Object.keys(t);s<a.length;s++){i(a[s])}return o},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var r=(null==t?void 0:t.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(t.repoName,"@").concat(t.version,"/").concat(r),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(o.src="".concat(t.local)),document.head.appendChild(o)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,r){return t.formatDate(e,n,r||this.lang)},t.getDefaultLang=function(){var t,e,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.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},t.getDictionaryWord=function(e,n,r){var o;if(!e)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[e]))return n[r][e];var i="",s=t.getDefaultLang();if(!r||s!==r){var a=null==n?void 0:n[s];(null==a?void 0:a[e])&&(i=a[e])}return i},t.formatDate=function(e,n,r){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n})),B=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,J=/\n/g,Z=/^\s*/,q=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,K=/^:\s*/,Q=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,G=/^[;\s]*/,X=/^\s+|\s+$/g,tt="\n",et="/",nt="*",rt="",ot="comment",it="declaration",st=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function o(t){var e=t.match(J);e&&(n+=e.length);var o=t.lastIndexOf(tt);r=~o?t.length-o:r+t.length}function i(){var t={line:n,column:r};return function(e){return e.position=new s(t),l(),e}}function s(t){this.start=t,this.end={line:n,column:r},this.source=e.source}function a(o){var i=new Error(e.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=e.source,i.line=n,i.column=r,i.source=t,!e.silent)throw i}function u(e){var n=e.exec(t);if(n){var r=n[0];return o(r),t=t.slice(r.length),n}}function l(){u(Z)}function c(t){var e;for(t=t||[];e=d();)!1!==e&&t.push(e);return t}function d(){var e=i();if(et==t.charAt(0)&&nt==t.charAt(1)){for(var n=2;rt!=t.charAt(n)&&(nt!=t.charAt(n)||et!=t.charAt(n+1));)++n;if(n+=2,rt===t.charAt(n-1))return a("End of comment missing");var s=t.slice(2,n-2);return r+=2,o(s),t=t.slice(n),r+=2,e({type:ot,comment:s})}}function f(){var t=i(),e=u(q);if(e){if(d(),!u(K))return a("property missing ':'");var n=u(Q),r=t({type:it,property:at(e[0].replace(B,rt)),value:n?at(n[0].replace(B,rt)):rt});return u(G),r}}return s.prototype.content=t,l(),function(){var t,e=[];for(c(e);t=f();)!1!==t&&(e.push(t),c(e));return e}()};function at(t){return t?t.replace(X,rt):rt}var ut=function(t,e){var n,r=null;if(!t||"string"!=typeof t)return r;for(var o,i,s=st(t),a="function"==typeof e,u=0,l=s.length;u<l;u++)o=(n=s[u]).property,i=n.value,a?e(o,i,n):i&&(r||(r={}),r[o]=i);return r},lt={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"}],parts:[{name:"invalid-feedback",description:""},{name:"main_button",description:""},{name:"button_container",description:""}]},ct={vars:[{name:"--hb-slider-background-color",defaultValue:"#1abc9c",valueType:"color"}],parts:[{name:"inverse",description:""},{name:"the-range",description:""},{name:"the-thumb",description:""},{name:"sign",description:""}]};function dt(t){let e,n,r,o,i,s,a,u,m,b,v,y,$=t[16]&&ft(t);return{c(){e=f("div"),n=f("div"),$&&$.c(),r=h(),o=f("div"),i=f("hb-range-slider"),w(n,"display","inline-block"),w(n,"width","50px"),g(i,"style",s=t[6]+";--hb-slider-background-color: red;"),g(i,"max",a=t[7].toString()),g(i,"min",$t.toString()),g(i,"maxval",u=t[2].maxValue.toString()),g(i,"minval",m=t[2].minValue.toString()),g(i,"position_value",b=t[4].toString()),w(o,"display","inline-block"),w(o,"width","calc(100% - 60px)"),w(o,"position","relative"),w(e,"width","100%"),w(e,"margin-bottom","15px")},m(s,a){c(s,e,a),l(e,n),$&&$.m(n,null),l(e,r),l(e,o),l(o,i),v||(y=p(i,"changeRangeValues",t[35]),v=!0)},p(t,e){t[16]?$?$.p(t,e):($=ft(t),$.c(),$.m(n,null)):$&&($.d(1),$=null),64&e[0]&&s!==(s=t[6]+";--hb-slider-background-color: red;")&&g(i,"style",s),128&e[0]&&a!==(a=t[7].toString())&&g(i,"max",a),4&e[0]&&u!==(u=t[2].maxValue.toString())&&g(i,"maxval",u),4&e[0]&&m!==(m=t[2].minValue.toString())&&g(i,"minval",m),16&e[0]&&b!==(b=t[4].toString())&&g(i,"position_value",b)},d(t){t&&d(e),$&&$.d(),v=!1,y()}}}function ft(t){let e,n,r;function o(t,e){return t[17]?ht:mt}let i=o(t),s=i(t);return{c(){e=f("button"),s.c(),b(e,"class","btn btn-outline-dark")},m(o,i){c(o,e,i),s.m(e,null),n||(r=p(e,"click",t[34]),n=!0)},p(t,n){i!==(i=o(t))&&(s.d(1),s=i(t),s&&(s.c(),s.m(e,null)))},d(t){t&&d(e),s.d(),n=!1,r()}}}function mt(t){let e;return{c(){e=f("i"),b(e,"class","bi bi-pause-fill")},m(t,n){c(t,e,n)},d(t){t&&d(e)}}}function ht(t){let e;return{c(){e=f("i"),b(e,"class","bi bi-play-fill")},m(t,n){c(t,e,n)},d(t){t&&d(e)}}}function pt(t){let e,n,o,i;return{c(){e=f("hb-form"),g(e,"hide_submit","yes"),g(e,"style",n=t[5]+"margin:40px auto 20px auto; display:block"),g(e,"submitted",t[14]),g(e,"schema",t[1])},m(n,r){c(n,e,r),o||(i=[p(e,"submit",t[36]),p(e,"change",t[37])],o=!0)},p(t,r){32&r[0]&&n!==(n=t[5]+"margin:40px auto 20px auto; display:block")&&g(e,"style",n),16384&r[0]&&g(e,"submitted",t[14]),2&r[0]&&g(e,"schema",t[1])},d(t){t&&d(e),o=!1,r(i)}}}function bt(t){let e,n,r,o,i,s,a=z.duration(1e3*(t[2].maxValue-t[2].minValue)).hours()?z.duration(1e3*(t[2].maxValue-t[2].minValue)).format("H")+" hours":"",u=z.duration(1e3*(t[2].maxValue-t[2].minValue)).minutes()?z.duration(1e3*(t[2].maxValue-t[2].minValue)).format("m")+" minutes":"",l=z.duration(parseInt((1e3*(t[2].maxValue-t[2].minValue)).toString())).format("s.SSS")+" seconds";return{c(){e=m("duration:\n\t\t\t\t"),n=m(a),r=h(),o=m(u),i=h(),s=m(l)},m(t,a){c(t,e,a),c(t,n,a),c(t,r,a),c(t,o,a),c(t,i,a),c(t,s,a)},p(t,e){4&e[0]&&a!==(a=z.duration(1e3*(t[2].maxValue-t[2].minValue)).hours()?z.duration(1e3*(t[2].maxValue-t[2].minValue)).format("H")+" hours":"")&&y(n,a),4&e[0]&&u!==(u=z.duration(1e3*(t[2].maxValue-t[2].minValue)).minutes()?z.duration(1e3*(t[2].maxValue-t[2].minValue)).format("m")+" minutes":"")&&y(o,u),4&e[0]&&l!==(l=z.duration(parseInt((1e3*(t[2].maxValue-t[2].minValue)).toString())).format("s.SSS")+" seconds")&&y(s,l)},d(t){t&&d(e),t&&d(n),t&&d(r),t&&d(o),t&&d(i),t&&d(s)}}}function gt(e){let n,r,o;return{c(){n=f("button"),n.textContent="send",b(n,"class","btn btn-sm btn-primary"),n.disabled=!0},m(t,i){c(t,n,i),r||(o=p(n,"click",e[21]),r=!0)},p:t,d(t){t&&d(n),r=!1,o()}}}function vt(e){let n,r,o;return{c(){n=f("button"),n.textContent="send",b(n,"class","btn btn-sm btn-primary")},m(t,i){c(t,n,i),r||(o=p(n,"click",e[21]),r=!0)},p:t,d(t){t&&d(n),r=!1,o()}}}function yt(e){let n,o,i,s,a,g,y,x,k,V,S,M,D,C,_,T,E,O,j,N,Y,H,L,I,A,P,W,z,R,F,U,B,J,Z,q,K,Q,G,X,tt,et,nt,rt,ot,it=e[3]&&e[2]&&dt(e),st=e[1]&&pt(e),at=e[2]?.maxValue&&bt(e);function ut(t,e){return t[15]?vt:gt}let lt=ut(e),ct=lt(e);return{c(){n=f("link"),o=h(),i=f("div"),s=f("div"),a=f("video"),g=f("source"),x=m("\n\t\t\tYour browser does not support the video tag."),k=h(),V=f("div"),it&&it.c(),S=h(),st&&st.c(),M=h(),D=f("div"),C=f("div"),_=f("button"),_.textContent="▼",T=h(),E=f("button"),E.textContent="▲",O=h(),j=f("input"),N=m("h\n\t\t\t\t"),Y=f("input"),H=m("m\n\t\t\t\t"),L=f("input"),I=m("s"),A=h(),P=f("div"),W=h(),z=f("div"),R=f("input"),F=m("h\n\t\t\t\t"),U=f("input"),B=m("m\n\t\t\t\t"),J=f("input"),Z=m("s\n\n\t\t\t\t"),q=f("button"),q.textContent="▲",K=h(),Q=f("button"),Q.textContent="▼",G=h(),X=f("div"),tt=f("span"),at&&at.c(),et=h(),nt=f("span"),ct.c(),this.c=t,b(n,"rel","stylesheet"),b(n,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),u(g.src,y=e[0])||b(g,"src",y),b(g,"type","video/mp4"),b(a,"id","video"),b(a,"class","ratio ratio-16x9"),b(s,"class","ratio ratio-16x9"),w(s,"background-color","black"),b(_,"class","btn btn-sm btn-secondary"),b(E,"class","btn btn-sm btn-secondary"),b(j,"type","number"),b(j,"class","form-control form-custom-control-numbers"),b(Y,"class","form-control form-custom-control-numbers"),b(Y,"type","number"),b(L,"type","number"),b(L,"class","form-control form-custom-control-numbers"),w(C,"flex-grow","2"),w(P,"flex-grow","2"),w(P,"text-align","center"),b(R,"type","number"),b(R,"class","form-control form-custom-control-numbers"),b(U,"class","form-control form-custom-control-numbers"),b(U,"type","number"),b(J,"type","number"),b(J,"class","form-control form-custom-control-numbers"),b(q,"class","btn btn-sm btn-secondary"),b(Q,"class","btn btn-sm btn-secondary"),w(z,"flex-grow","2"),w(z,"text-align","right"),b(D,"id","controls"),b(V,"class","card-body"),w(tt,"float","left"),w(tt,"height","30px"),w(tt,"line-height","30px"),w(nt,"float","right"),w(nt,"height","30px"),w(nt,"line-height","30px"),b(X,"class","card-footer"),b(i,"id","card"),b(i,"class","card h-100")},m(t,r){l(document.head,n),c(t,o,r),c(t,i,r),l(i,s),l(s,a),l(a,g),l(a,x),l(i,k),l(i,V),it&&it.m(V,null),l(V,S),st&&st.m(V,null),l(V,M),l(V,D),l(D,C),l(C,_),l(C,T),l(C,E),l(C,O),l(C,j),$(j,e[9]),l(C,N),l(C,Y),$(Y,e[11]),l(C,H),l(C,L),$(L,e[13]),l(C,I),l(D,A),l(D,P),l(D,W),l(D,z),l(z,R),$(R,e[8]),l(z,F),l(z,U),$(U,e[10]),l(z,B),l(z,J),$(J,e[12]),l(z,Z),l(z,q),l(z,K),l(z,Q),l(i,G),l(i,X),l(X,tt),at&&at.m(tt,null),l(X,et),l(X,nt),ct.m(nt,null),rt||(ot=[p(a,"play",e[30]),p(a,"pause",e[31]),p(a,"timeupdate",e[32]),p(a,"loadedmetadata",e[33]),p(_,"click",e[38]),p(E,"click",e[39]),p(j,"input",e[40]),p(j,"change",e[18]),p(Y,"input",e[41]),p(Y,"change",e[18]),p(L,"input",e[42]),p(L,"change",e[18]),p(R,"input",e[43]),p(R,"change",e[18]),p(U,"input",e[44]),p(U,"change",e[18]),p(J,"input",e[45]),p(J,"change",e[18]),p(q,"click",e[46]),p(Q,"click",e[47])],rt=!0)},p(t,e){1&e[0]&&!u(g.src,y=t[0])&&b(g,"src",y),t[3]&&t[2]?it?it.p(t,e):(it=dt(t),it.c(),it.m(V,S)):it&&(it.d(1),it=null),t[1]?st?st.p(t,e):(st=pt(t),st.c(),st.m(V,M)):st&&(st.d(1),st=null),512&e[0]&&v(j.value)!==t[9]&&$(j,t[9]),2048&e[0]&&v(Y.value)!==t[11]&&$(Y,t[11]),8192&e[0]&&v(L.value)!==t[13]&&$(L,t[13]),256&e[0]&&v(R.value)!==t[8]&&$(R,t[8]),1024&e[0]&&v(U.value)!==t[10]&&$(U,t[10]),4096&e[0]&&v(J.value)!==t[12]&&$(J,t[12]),t[2]?.maxValue?at?at.p(t,e):(at=bt(t),at.c(),at.m(tt,null)):at&&(at.d(1),at=null),lt===(lt=ut(t))&&ct?ct.p(t,e):(ct.d(1),ct=lt(t),ct&&(ct.c(),ct.m(nt,null)))},i:t,o:t,d(t){d(n),t&&d(o),t&&d(i),it&&it.d(),st&&st.d(),at&&at.d(),ct.d(),rt=!1,r(ot)}}}let $t=0;function wt(t,e,n){let r,{style:o}=e,i="",s="";z.extend(F);const a=V(),u=S();let l,c,d,f,m,h,p,b,g,y,$,{id:w}=e,{src:x}=e,{form:k}=e,{track:M}=e,D="no",C=!0;function _(t,e){u(t,e),a.dispatchEvent&&a.dispatchEvent(new CustomEvent(t,{detail:e}))}function T(t){n(16,y.currentTime=t,y)}function E(t){n(2,M.minValue=t.minValue,M),n(2,M.maxValue=t.maxValue,M),n(16,y.currentTime=t.positionValReal,y),n(4,$=t.positionValReal),O(),y.currentTime<M.minValue&&T(M.minValue),y.currentTime>M.maxValue&&T(M.maxValue),_("changeTrackValues",{minVaule:M.minValue,maxValue:M.maxValue})}function O(){n(8,c=parseInt((M.maxValue/3600).toString())),n(9,d=parseInt((M.maxValue/3600).toString())),n(10,f=parseInt(((M.maxValue-60*Number(c))/60).toString())),n(11,m=parseInt(((M.minValue-60*Number(d))/60).toString())),n(12,h=M.maxValue-3600*Number(c)-60*Number(f)),n(13,p=M.minValue-3600*Number(d)-60*Number(m))}function j(t){n(3,b=t.target.duration),n(7,l=b),(!M.maxValue||M.maxValue>l)&&n(2,M.maxValue=l,M),(!M.minValue||M.minValue<$t)&&n(2,M.minValue=$t,M),n(16,y=a.shadowRoot.getElementById("video")),O(),console.log("videoElement",y)}function N(t){switch(t){case"start":y.currentTime<M.maxValue&&n(2,M.minValue=y.currentTime,M);break;case"end":y.currentTime>M.minValue&&n(2,M.maxValue=y.currentTime,M);break;default:return console.error("no vaild point for cue")}O(),_("changeTrackValues",{minVaule:M.minValue,maxValue:M.maxValue})}function Y(t){console.log("formSubmit",t._valid),n(15,g=t._valid),"yes"===D&&(t._valid&&M&&(M.minValue||0===M.minValue)&&(M.maxValue||0===M.maxValue)&&_("dispatchTrack",Object.assign(M,t)),console.log(M)),"no"!==D&&n(14,D="no")}function H(t){n(15,g=t._valid)}function L(t){y.currentTime>M.maxValue?(y.pause(),T(M.maxValue)):y.currentTime<M.minValue-.01&&(y.pause(),T(M.minValue)),n(4,$=y.currentTime)}U.addComponent({repoName:"@htmlbricks/hb-range-slider",version:R.version}),U.addComponent({repoName:"@htmlbricks/hb-form",version:R.version});return t.$$set=t=>{"style"in t&&n(28,o=t.style),"id"in t&&n(27,w=t.id),"src"in t&&n(0,x=t.src),"form"in t&&n(1,k=t.form),"track"in t&&n(2,M=t.track)},t.$$.update=()=>{939524127&t.$$.dirty[0]&&(o&&(n(29,r=ut(o)),n(5,i=U.getChildStyleToPass(r,null==lt?void 0:lt.vars)),n(6,s=U.getChildStyleToPass(r,null==ct?void 0:ct.vars))),w||n(27,w=""),k?n(15,g=!1):(n(1,k=null),n(15,g=!0)),b||n(3,b=0),x||n(0,x=""),M&&"string"==typeof M?n(2,M=JSON.parse(M)):M||n(2,M={maxValue:null,minValue:null}),console.log("reload all"),console.log($,"log",$t),M&&n(4,$=M.minValue<($||0)?$||0:M.minValue),console.log($,"log2"))},[x,k,M,b,$,i,s,l,c,d,f,m,h,p,D,g,y,C,function(){n(2,M.maxValue=3600*c+60*f+h,M),n(2,M.minValue=3600*d+60*m+p,M)},T,E,function(){!M||!M.minValue&&0!==M.minValue||!M.maxValue&&0!==M.maxValue||(k?n(14,D="yes"):(_("dispatchTrack",M),console.log(M)))},j,N,Y,H,L,w,o,r,()=>n(17,C=!1),()=>n(17,C=!0),t=>L(),t=>j(t),()=>y.paused?y.play():y.pause(),t=>{E(t.detail)},t=>Y(t.detail),t=>H(t.detail),()=>{N("start")},()=>{T(M.minValue)},function(){d=v(this.value),n(9,d)},function(){m=v(this.value),n(11,m)},function(){p=v(this.value),n(13,p)},function(){c=v(this.value),n(8,c)},function(){f=v(this.value),n(10,f)},function(){h=v(this.value),n(12,h)},()=>{T(M.maxValue)},()=>{N("end")}]}class xt extends P{constructor(t){super(),this.shadowRoot.innerHTML='<style>@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");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button{-webkit-appearance:button}button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0, 0, 0, 0.125);border-radius:0.25rem}.card-body{flex:1 1 auto;padding:1rem 1rem}.card-footer{padding:0.5rem 1rem;background-color:rgba(0, 0, 0, 0.03);border-top:1px solid rgba(0, 0, 0, 0.125)}.card-footer:last-child{border-radius:0 0 calc(0.25rem - 1px) calc(0.25rem - 1px)}@media(min-width: 576px){.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.btn{display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:#212529}.btn:focus{outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.btn:disabled{pointer-events:none;opacity:0.65}.btn-primary{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-primary:hover{color:#fff;background-color:#0b5ed7;border-color:#0a58ca}.btn-primary:focus{color:#fff;background-color:#0b5ed7;border-color:#0a58ca;box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:active{color:#fff;background-color:#0a58ca;border-color:#0a53be}.btn-primary:active:focus{box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:disabled{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-secondary{color:#fff;background-color:var(--bs-secondary,#c9d6df);border-color:var(--bs-secondary,#c9d6df)}.btn-secondary:hover{color:#fff;background-color:#5c636a;border-color:#565e64}.btn-secondary:focus{color:#fff;background-color:#5c636a;border-color:#565e64;box-shadow:0 0 0 0.25rem rgba(130, 138, 145, 0.5)}.btn-secondary:active{color:#fff;background-color:#565e64;border-color:#51585e}.btn-secondary:active:focus{box-shadow:0 0 0 0.25rem rgba(130, 138, 145, 0.5)}.btn-secondary:disabled{color:#fff;background-color:var(--bs-secondary,#c9d6df);border-color:var(--bs-secondary,#c9d6df)}.btn-outline-dark{color:#212529;border-color:#212529}.btn-outline-dark:hover{color:#fff;background-color:#212529;border-color:#212529}.btn-outline-dark:focus{box-shadow:0 0 0 0.25rem rgba(33, 37, 41, 0.5)}.btn-outline-dark:active{color:#fff;background-color:#212529;border-color:#212529}.btn-outline-dark:active:focus{box-shadow:0 0 0 0.25rem rgba(33, 37, 41, 0.5)}.btn-outline-dark:disabled{color:#212529;background-color:transparent}.btn-sm{padding:0.25rem 0.5rem;font-size:0.875rem;border-radius:0.2rem}.form-control{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:var(--bs-secondary,#c9d6df);opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control::-webkit-file-upload-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-16x9{--bs-aspect-ratio:56.25%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}:host{font-family:"Roboto", sans-serif}.form-custom-control-numbers{width:40px;display:inline-block;padding:0px}#controls{display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch}</style>',A(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},wt,yt,i,{style:28,id:27,src:0,form:1,track:2},null,[-1,-1]),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),Y()))}static get observedAttributes(){return["style","id","src","form","track"]}get style(){return this.$$.ctx[28]}set style(t){this.$$set({style:t}),Y()}get id(){return this.$$.ctx[27]}set id(t){this.$$set({id:t}),Y()}get src(){return this.$$.ctx[0]}set src(t){this.$$set({src:t}),Y()}get form(){return this.$$.ctx[1]}set form(t){this.$$set({form:t}),Y()}get track(){return this.$$.ctx[2]}set track(t){this.$$set({track:t}),Y()}}return customElements.define("hb-editor-video",xt),xt}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|