@eluvio/elv-player-js 1.0.124 → 1.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/514.bundle.js +2 -0
- package/dist/514.bundle.js.LICENSE.txt +66 -0
- package/dist/5897e28fa3e8ac0a2fae.png +0 -0
- package/dist/bundle.333.56cecff855c747d06da1.js +2 -0
- package/dist/bundle.333.56cecff855c747d06da1.js.LICENSE.txt +1 -0
- package/dist/bundle.552.f55e941d82c928e09395.js +1 -0
- package/dist/bundle.688.deaafcaddb0a963835f3.js +1 -0
- package/dist/bundle.978.5b37f5b0d74481e4be10.js +1 -0
- package/dist/main.bundle.js +2 -0
- package/dist/main.bundle.js.LICENSE.txt +1 -0
- package/package.json +28 -55
- package/src/index.js +4 -5
- package/webpack.config.js +47 -44
- package/dist/0.bundle.js +0 -10
- package/dist/3.bundle.js +0 -18
- package/dist/4.bundle.js +0 -1
- package/dist/5.bundle.js +0 -1
- package/dist/6.bundle.js +0 -289
- package/dist/82039b3023d7b2c52c275b57ce7bbc42.png +0 -0
- package/dist/index.js +0 -1
- package/dist/vendors~main.bundle.js +0 -39
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_eluvio_elv_player_js=self.webpackChunk_eluvio_elv_player_js||[]).push([[978],{522:()=>{},6882:()=>{}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see main.bundle.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e,t,o,r,i,n={6887:(e,t,o)=>{"use strict";var r=o(3379),i=o.n(r),n=o(7795),l=o.n(n),a=o(569),p=o.n(a),u=o(3565),s=o.n(u),c=o(9216),_=o.n(c),y=o(4589),v=o.n(y),h=o(9290),d={};d.styleTagTransform=v(),d.setAttributes=s(),d.insert=p().bind(null,"head"),d.domAPI=l(),d.insertStyleElement=_(),i()(h.Z,d),h.Z&&h.Z.locals&&h.Z.locals,o(2875),o(9250),o(6609),o(2542),o.p;var g=o(9328);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function m(){m=function(){return t};var e,t={},o=Object.prototype,r=o.hasOwnProperty,i=Object.defineProperty||function(e,t,o){e[t]=o.value},n="function"==typeof Symbol?Symbol:{},l=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",p=n.toStringTag||"@@toStringTag";function u(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,o){return e[t]=o}}function s(e,t,o,r){var n=t&&t.prototype instanceof g?t:g,l=Object.create(n.prototype),a=new N(r||[]);return i(l,"_invoke",{value:z(e,o,a)}),l}function c(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var _="suspendedStart",y="suspendedYield",v="executing",h="completed",d={};function g(){}function b(){}function x(){}var w={};u(w,l,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(T([])));O&&O!==o&&r.call(O,l)&&(w=O);var E=x.prototype=g.prototype=Object.create(w);function L(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function o(i,n,l,a){var p=c(e[i],e,n);if("throw"!==p.type){var u=p.arg,s=u.value;return s&&"object"==f(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,l,a)}),(function(e){o("throw",e,l,a)})):t.resolve(s).then((function(e){u.value=e,l(u)}),(function(e){return o("throw",e,l,a)}))}a(p.arg)}var n;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){o(e,r,t,i)}))}return n=n?n.then(i,i):i()}})}function z(t,o,r){var i=_;return function(n,l){if(i===v)throw new Error("Generator is already running");if(i===h){if("throw"===n)throw l;return{value:e,done:!0}}for(r.method=n,r.arg=l;;){var a=r.delegate;if(a){var p=F(a,r);if(p){if(p===d)continue;return p}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===_)throw i=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=c(t,o,r);if("normal"===u.type){if(i=r.done?h:y,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=h,r.method="throw",r.arg=u.arg)}}}function F(t,o){var r=o.method,i=t.iterator[r];if(i===e)return o.delegate=null,"throw"===r&&t.iterator.return&&(o.method="return",o.arg=e,F(t,o),"throw"===o.method)||"return"!==r&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=c(i,t.iterator,o.arg);if("throw"===n.type)return o.method="throw",o.arg=n.arg,o.delegate=null,d;var l=n.arg;return l?l.done?(o[t.resultName]=l.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=e),o.delegate=null,d):l:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(t){if(t||""===t){var o=t[l];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function o(){for(;++i<t.length;)if(r.call(t,i))return o.value=t[i],o.done=!1,o;return o.value=e,o.done=!0,o};return n.next=n}}throw new TypeError(f(t)+" is not iterable")}return b.prototype=x,i(E,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=u(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,p,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},L(j.prototype),u(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,o,r,i,n){void 0===n&&(n=Promise);var l=new j(s(e,o,r,i),n);return t.isGeneratorFunction(o)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},L(E),u(E,p,"Generator"),u(E,l,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var r in t)o.push(r);return o.reverse(),function e(){for(;o.length;){var r=o.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var o in this)"t"===o.charAt(0)&&r.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var o=this;function i(r,i){return a.type="throw",a.arg=t,o.next=r,i&&(o.method="next",o.arg=e),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var l=this.tryEntries[n],a=l.completion;if("root"===l.tryLoc)return i("end");if(l.tryLoc<=this.prev){var p=r.call(l,"catchLoc"),u=r.call(l,"finallyLoc");if(p&&u){if(this.prev<l.catchLoc)return i(l.catchLoc,!0);if(this.prev<l.finallyLoc)return i(l.finallyLoc)}else if(p){if(this.prev<l.catchLoc)return i(l.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return i(l.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var l=n?n.completion:{};return l.type=e,l.arg=t,n?(this.method="next",this.next=n.finallyLoc,d):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),A(o),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var r=o.completion;if("throw"===r.type){var i=r.arg;A(o)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,r){return this.delegate={iterator:T(t),resultName:o,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}function b(e,t,o,r,i,n,l){try{var a=e[n](l),p=a.value}catch(e){return void o(e)}a.done?t(p):Promise.resolve(p).then(r,i)}var x,w={DEFAULT:"default",LOW_LATENCY:"low_latency"},k={FAIRPLAY:"fairplay",SAMPLE_AES:"sample-aes",AES128:"aes-128",WIDEVINE:"widevine",CLEAR:"clear"},O={HLS:"hls",DASH:"dash"},E={OFF:!1,WHEN_VISIBLE:"when visible",ON:!0},L={OFF:!1,OFF_WITH_VOLUME_TOGGLE:"off_with_volume_toggle",AUTO_HIDE:"autohide",ON:!0,DEFAULT:"default"},j={OFF:!1,ON:!0},z={OFF:!1,WHEN_NOT_VISIBLE:"when_not_visible",OFF_IF_POSSIBLE:"off_if_possible",ON:!0},F={OFF:!1,ON:!0},S={OFF:!1,ON:!0};O.HLS,O.DASH,k.FAIRPLAY,k.SAMPLE_AES,k.AES128,k.WIDEVINE,k.CLEAR,L.AUTO_HIDE,E.OFF,z.OFF,j.OFF,F.ON,S.OFF,w.DEFAULT,x=m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),g.Utils.LiveHLSJSSettings({lowLatency:!0})},9290:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(8515),i=o.n(r),n=o(2616),l=o.n(n)()(i());l.push([e.id,'@keyframes fade-out{0%{opacity:1}100%{opacity:0}}.eluvio-player{align-items:center;display:flex;height:100%;justify-content:center;max-height:100%;max-width:100%;object-fit:contain;position:relative;width:100%}.eluvio-player--error .eluvio-player__controls,.eluvio-player--error .eluvio-player__big-play-button{display:none}.eluvio-player__error-message{align-items:center;display:flex;height:100%;justify-content:center;padding:20px;position:absolute;width:100%;z-index:1000}.eluvio-player__error-message__text{color:#a32;font-size:24px;max-width:600px;text-align:center}.eluvio-player--seek-left::after,.eluvio-player--seek-right::after{animation:fade-out .5s ease;content:"";height:100%;opacity:0;pointer-events:none;position:absolute;transition:background-color 1s ease;width:100%;z-index:100}.eluvio-player--seek-left::after{background:linear-gradient(90deg, rgba(100, 100, 100, 0.15), transparent 15%)}.eluvio-player--seek-right::after{background:linear-gradient(90deg, transparent 85%, rgba(100, 100, 100, 0.15))}.eluvio-player.eluvio-player-restarted .eluvio-player__big-play-button{display:none}.eluvio-player *{box-sizing:border-box;font-family:"Helvetica Neue",Helvetica,sans-serif;overscroll-behavior-y:contain}.eluvio-player input[type=range],.eluvio-player button{background:rgba(0,0,0,0);border:0;cursor:pointer;justify-content:center;transition:opacity .1s linear}.eluvio-player input[type=range]:hover,.eluvio-player button:hover{opacity:1}.eluvio-player input[type=range]:focus,.eluvio-player button:focus{outline:0}.eluvio-player input[type=range].focus-visible,.eluvio-player button.focus-visible{box-shadow:0 0 2px rgba(225,225,255,.7);outline:0}.eluvio-player input[type=range]{-webkit-tap-highlight-color:rgba(0,0,0,0);appearance:none;background:rgba(0,0,0,0);border-radius:3px;height:3px;margin:0;padding:15px 0;z-index:100}.eluvio-player input[type=range]::-webkit-slider-thumb{appearance:none;height:15px;opacity:0;width:15px}.eluvio-player input[type=range]::-moz-range-thumb{appearance:none;height:15px;opacity:0;width:15px}.eluvio-player input[type=range]::-webkit-slider-runnable-track{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0);height:3px}.eluvio-player input[type=range]::-moz-range-track{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0);height:3px}.eluvio-player progress{appearance:none;background-color:rgba(0,0,0,0);border:0;border-radius:3px;height:3px}.eluvio-player ::-webkit-progress-value{background-color:#0885fb}.eluvio-player ::-webkit-progress-bar{background-color:rgba(0,0,0,0)}.eluvio-player ::-moz-progress-bar{background-color:#0885fb}.eluvio-player__poster-image{cursor:pointer;height:100%;left:0;object-fit:contain;object-position:center;position:absolute;top:0;width:100%}.eluvio-player__video{background:#000;height:100%;margin:auto;object-fit:contain;object-position:center;width:100%;z-index:1}.eluvio-player__watermark{height:15px;left:15px;pointer-events:none;position:absolute;top:15px;width:auto;z-index:10}.eluvio-player__account-watermark{color:#fff;font-size:8px;opacity:.5;pointer-events:none;position:absolute;right:15px;top:15px;z-index:10}.eluvio-player__hidden-audio-controls{bottom:10px;height:max-content;left:10px;opacity:1;position:absolute;transition:opacity .25s linear;width:max-content;z-index:10}.eluvio-player__hidden-audio-controls button{background:rgba(0,0,0,.8);border-radius:100%;padding:6px}.eluvio-player__controls{align-items:center;background:rgba(0,0,0,.8);bottom:0;display:flex;height:max-content;padding:5px;position:absolute;transition:opacity .25s linear;width:100%;z-index:10}.eluvio-player__controls__button{-webkit-tap-highlight-color:rgba(0,0,0,0);height:35px;max-height:35px;max-width:35px;min-height:35px;min-width:35px;overflow:visible;padding:6px;transition:opacity .25s linear;width:35px}.eluvio-player__controls__button:not(:last-child){margin-right:2px}.eluvio-player__controls__button-volume{padding-right:0}.eluvio-player__controls__button svg{height:100%;max-height:100%;max-width:100%;overflow:visible;width:100%}.eluvio-player__controls__button-multiview-spinning svg{animation:spin 1s ease-in-out infinite}.eluvio-player__controls__volume-container{flex:1 1 auto;max-width:75px;min-width:0}.eluvio-player__controls__volume{background-color:rgba(113,113,113,.5) !important}.eluvio-player__controls__volume::-webkit-progress-value{background-color:#fff}.eluvio-player__controls__volume::-moz-progress-bar{background-color:#fff}.eluvio-player__controls__slider-container{align-items:center;display:flex;flex:1 1 auto;height:100%;justify-content:center;min-width:0;position:relative}.eluvio-player__controls__slider-container__input,.eluvio-player__controls__slider-container__progress{flex:1 1 auto;left:0;margin:0 5px;min-width:0;position:absolute;width:calc(100% - 10px)}.eluvio-player__controls__slider-container__input{width:100%;z-index:0}.eluvio-player__controls__slider-container__progress{pointer-events:none;z-index:2}.eluvio-player__controls__progress-buffer{background-color:rgba(113,113,113,.5) !important;z-index:1}.eluvio-player__controls__progress-buffer::-webkit-progress-value{background-color:rgba(113,113,113,.5)}.eluvio-player__controls__progress-buffer::-moz-progress-bar{background-color:rgba(113,113,113,.5)}.eluvio-player__controls__time{color:#fff;font-size:11px;text-align:center;width:55px}.eluvio-player__controls__right-buttons{align-items:center;display:flex;flex-wrap:nowrap;height:100%}.eluvio-player__controls.eluvio-player__controls-no-progress .eluvio-player__controls__time,.eluvio-player__controls.eluvio-player__controls-no-progress .eluvio-player__controls__progress-slider{visibility:hidden}.eluvio-player__controls__tooltip{background:rgba(0,0,0,.8);border-radius:3px;bottom:45px;color:#fff;font-size:14px;font-weight:300;max-height:calc(100% - 54px);max-width:225px;min-height:20px;opacity:1;padding:10px 5px;pointer-events:none;position:absolute;right:10px;text-align:center;transition:opacity .1s linear;user-select:none;z-index:100}.eluvio-player__controls__tooltip *{line-height:1.2em}.eluvio-player__controls__tooltip:empty{display:none;opacity:0}.eluvio-player__controls__tooltip svg{height:20px;margin-bottom:5px;width:auto}.eluvio-player__controls__settings-menu{background:rgba(0,0,0,.8);border-radius:3px 0 0;bottom:calc(35px + 5px + 5px);color:#fff;max-height:min(90%,100% - (25px + 35px + 5px + 5px));min-height:20px;overflow-y:auto;position:absolute;right:0;width:250px;z-index:100}.eluvio-player__controls__settings-menu-hidden{display:none}.eluvio-player__controls__settings-menu button{border:1px solid rgba(0,0,0,0)}.eluvio-player__controls__settings-menu button.eluvio-player__controls__settings-menu__close{border:1.5px solid #fff;border-radius:100%}.eluvio-player__controls__settings-menu__close{display:none;position:absolute;right:20px;top:20px}.eluvio-player__controls__settings-menu__close *{color:#fff}.eluvio-player__controls__settings-menu__option{border:1px solid rgba(0,0,0,0);color:rgba(255,255,255,.7);cursor:pointer;display:block;font-size:14px;height:max-content;line-height:1.4;padding:9px 20px;text-align:left;width:100%}.eluvio-player__controls__settings-menu__option-back{align-items:center;display:flex;position:relative;width:100%}.eluvio-player__controls__settings-menu__option-back__icon{height:15px;left:20px;margin-right:5px;position:absolute;width:15px}.eluvio-player__controls__settings-menu__option-back__icon svg{height:100%;width:100%}.eluvio-player__controls__settings-menu__option-back__text{padding-inline:25px;width:100%}.eluvio-player__controls__settings-menu__option-selected{color:#fff;font-weight:500}.eluvio-player__controls__settings-menu__option:hover{background:rgba(255,255,255,.1);color:#fff}.eluvio-player__controls__settings-menu__option.focus-visible{border:1px solid rgba(225,225,255,.7)}.eluvio-player__big-play-button{max-height:100px;max-width:100px;min-height:100px;min-width:100px;position:absolute;z-index:10}.eluvio-player__big-play-button svg{height:100%;opacity:.7;overflow:visible;padding:2px;transition:opacity .1s linear;width:100%;z-index:11}.eluvio-player__big-play-button:hover svg{opacity:1}.eluvio-player:fullscreen{margin:0;padding:0}.eluvio-player__ticket-modal{align-items:center;background:#000;display:flex;height:100%;justify-content:center;position:absolute;width:100%}.eluvio-player__ticket-modal__form{align-items:center;background:#121212;border:2px solid #252525;border-radius:3px;display:flex;flex-direction:column;justify-content:center;padding:20px 30px;width:300px}.eluvio-player__ticket-modal__form__text,.eluvio-player__ticket-modal__form__error-text,.eluvio-player__ticket-modal__form__input{margin-bottom:10px}.eluvio-player__ticket-modal__form__text{color:#fff;font-size:16px;font-weight:300;letter-spacing:.05em}.eluvio-player__ticket-modal__form__error-text{color:#a32;font-size:16px}.eluvio-player__ticket-modal__form__error-text:empty{display:none}.eluvio-player__ticket-modal__form__input{background:#fff;border:0;border-radius:3px;font-size:18px;font-weight:bold;letter-spacing:.16em;margin:5px 0 15px;min-height:36px;padding:0 10px;text-align:center;width:100%}.eluvio-player__ticket-modal__form__submit{border-radius:3px;color:#fff;font-size:14px;font-weight:500;height:40px;letter-spacing:.1em;text-transform:uppercase;width:100%}.eluvio-player__ticket-modal__form__submit:disabled{color:rgba(113,113,113,.5)}.eluvio-player__ticket-modal__form button.eluvio-player__ticket-modal__form__submit{background:#252525;margin:0}.eluvio-player__hotspot-overlay{bottom:0;left:0;position:absolute;right:0;top:0;z-index:5}.eluvio-player__hotspot-overlay__target{align-items:center;cursor:pointer;display:flex;justify-content:center;position:absolute;transition:background-color .3s}.eluvio-player__hotspot-overlay__target__title{color:#fff;display:none;font-size:24px;font-weight:300;letter-spacing:.08em;transition:letter-spacing 5s}.eluvio-player__hotspot-overlay__target:hover{background-color:rgba(113,113,113,.3)}.eluvio-player__hotspot-overlay__target:hover .eluvio-player__hotspot-overlay__target__title{display:block;text-shadow:1px 1px #717171}.eluvio-player__hotspot-overlay__target-switching{animation:hotspot-select 1s ease-out}.eluvio-player__hotspot-overlay-visible .eluvio-player__hotspot-overlay__target{background-color:rgba(113,113,113,.3)}.eluvio-player__hotspot-overlay-visible .eluvio-player__hotspot-overlay__target__title{display:block;text-shadow:1px 1px #717171}.eluvio-player.eluvio-player-xl .eluvio-player__controls{padding:calc(5px*1.5)}.eluvio-player.eluvio-player-xl .eluvio-player__controls__tooltip{bottom:65px}.eluvio-player.eluvio-player-xl .eluvio-player__controls__settings-menu{bottom:calc(5px + 35px + 5px + 5px)}.eluvio-player.eluvio-player-m .eluvio-player__error-message__text,.eluvio-player.eluvio-player-s .eluvio-player__error-message__text{font-size:18px}.eluvio-player.eluvio-player-m .eluvio-player__watermark,.eluvio-player.eluvio-player-s .eluvio-player__watermark{height:10px;top:10px}.eluvio-player.eluvio-player-m .eluvio-player__controls,.eluvio-player.eluvio-player-s .eluvio-player__controls{padding:calc(5px*.5)}.eluvio-player.eluvio-player-m .eluvio-player__controls__button:not(.eluvio-player__big-play-button),.eluvio-player.eluvio-player-s .eluvio-player__controls__button:not(.eluvio-player__big-play-button){height:calc(35px*.9);max-height:calc(35px*.9);max-width:calc(35px*.9);min-height:calc(35px*.9);min-width:calc(35px*.9)}.eluvio-player.eluvio-player-m .eluvio-player__controls__settings-menu,.eluvio-player.eluvio-player-s .eluvio-player__controls__settings-menu{bottom:calc(31.5px + 5px);max-height:min(90%,100% - (25px + 31.5px + 5px));right:0}.eluvio-player.eluvio-player-m .eluvio-player__controls__volume-container,.eluvio-player.eluvio-player-s .eluvio-player__controls__volume-container{display:none}.eluvio-player.eluvio-player-m .eluvio-player__big-play-button,.eluvio-player.eluvio-player-s .eluvio-player__big-play-button{max-height:55px;max-width:55px;min-height:55px;min-width:55px}.eluvio-player.eluvio-player-m .eluvio-player__ticket-modal__form,.eluvio-player.eluvio-player-s .eluvio-player__ticket-modal__form{max-height:70%;max-width:70%}.eluvio-player.eluvio-player-m .eluvio-player__hotspot-overlay .eluvio-player__hotspot-overlay__target .eluvio-player__hotspot-overlay__target__title,.eluvio-player.eluvio-player-s .eluvio-player__hotspot-overlay .eluvio-player__hotspot-overlay__target .eluvio-player__hotspot-overlay__target__title{font-size:16px}.eluvio-player.eluvio-player-s .eluvio-player__error-message__text{font-size:14px}.eluvio-player.eluvio-player-s .eluvio-player__controls__time{display:none}.eluvio-player.eluvio-player-s .eluvio-player__controls__tooltip{font-size:10px;max-width:180px}.eluvio-player.eluvio-player-s .eluvio-player__controls__tooltip svg{height:15px;width:15px}.eluvio-player.eluvio-player-s .eluvio-player__controls__settings-menu{align-items:center;height:100%;max-height:100%;padding:80px 0 100px;right:0;top:0;width:100%}.eluvio-player.eluvio-player-s .eluvio-player__controls__settings-menu__option{font-size:20px;margin-bottom:5px;text-align:center}.eluvio-player.eluvio-player-s .eluvio-player__controls__settings-menu__option-back{font-size:24px;margin-bottom:20px}.eluvio-player.eluvio-player-s .eluvio-player__controls__settings-menu__close{display:unset;z-index:100}.eluvio-player.eluvio-player-s.eluvio-player-landscape .eluvio-player__controls__settings-menu{padding:20px 0 50px}.eluvio-player.eluvio-player-s.eluvio-player-landscape .eluvio-player__controls__settings-menu__option{font-size:14px;margin-bottom:5px;text-align:center}.eluvio-player.eluvio-player-s.eluvio-player-landscape .eluvio-player__controls__settings-menu__option-back{font-size:24px;margin-bottom:20px}.eluvio-player.eluvio-player-s.eluvio-player-landscape .eluvio-player__controls__settings-menu__close{display:unset}.eluvio-player.eluvio-player-s .eluvio-player__hotspot-overlay .eluvio-player__hotspot-overlay__target .eluvio-player__hotspot-overlay__target__title{font-size:14px}.-elv-fade-in,.-elv-fade-out{transition:opacity .25s linear}.-elv-fade-out{opacity:0 !important;pointer-events:none !important}.-elv-fade-in{opacity:1}.-elv-no-cursor{cursor:none !important}.-elv-no-cursor *{cursor:none !important}@keyframes hotspot-select{0%{background-color:rgba(255,255,255,.2);opacity:1}50%{background-color:rgba(255,255,255,.7);opacity:.7}100%{background-color:rgba(255,255,255,0);opacity:0}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',""]);const a=l},5876:e=>{"use strict";e.exports=crypto},3904:()=>{},6601:()=>{},9657:()=>{},4654:()=>{},9862:()=>{},964:()=>{}},l={};function a(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.m=n,a.amdO={},e=[],a.O=(t,o,r,i)=>{if(!o){var n=1/0;for(s=0;s<e.length;s++){for(var[o,r,i]=e[s],l=!0,p=0;p<o.length;p++)(!1&i||n>=i)&&Object.keys(a.O).every((e=>a.O[e](o[p])))?o.splice(p--,1):(l=!1,i<n&&(n=i));if(l){e.splice(s--,1);var u=r();void 0!==u&&(t=u)}}return t}i=i||0;for(var s=e.length;s>0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[o,r,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);a.r(i);var n={};t=t||[null,o({}),o([]),o(o)];for(var l=2&r&&e;"object"==typeof l&&!~t.indexOf(l);l=o(l))Object.getOwnPropertyNames(l).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,a.d(i,n),i},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,o)=>(a.f[o](e,t),t)),[])),a.u=e=>"bundle."+e+"."+{333:"56cecff855c747d06da1",552:"f55e941d82c928e09395",688:"deaafcaddb0a963835f3",978:"5b37f5b0d74481e4be10"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},i="@eluvio/elv-player-js:",a.l=(e,t,o,n)=>{if(r[e])r[e].push(t);else{var l,p;if(void 0!==o)for(var u=document.getElementsByTagName("script"),s=0;s<u.length;s++){var c=u[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==i+o){l=c;break}}l||(p=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",i+o),l.src=e),r[e]=[t];var _=(t,o)=>{l.onerror=l.onload=null,clearTimeout(y);var i=r[e];if(delete r[e],l.parentNode&&l.parentNode.removeChild(l),i&&i.forEach((e=>e(o))),t)return t(o)},y=setTimeout(_.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=_.bind(null,l.onerror),l.onload=_.bind(null,l.onload),p&&document.head.appendChild(l)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="/",(()=>{var e={179:0};a.f.j=(t,o)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var i=new Promise(((o,i)=>r=e[t]=[o,i]));o.push(r[2]=i);var n=a.p+a.u(t),l=new Error;a.l(n,(o=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+n+")",l.name="ChunkLoadError",l.type=i,l.request=n,r[1](l)}}),"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,o)=>{var r,i,[n,l,p]=o,u=0;if(n.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(p)var s=p(a)}for(t&&t(o);u<n.length;u++)i=n[u],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(s)},o=self.webpackChunk_eluvio_elv_player_js=self.webpackChunk_eluvio_elv_player_js||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),a.nc=void 0;var p=a.O(void 0,[514],(()=>a(6887)));p=a.O(p)})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
package/package.json
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eluvio/elv-player-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.125",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/eluv-io/elv-player-js",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"bump-version": "npm --git-tag-version --no-commit-hooks version patch",
|
|
10
|
-
"serve": "TEST_PAGE=true webpack-dev-server --hot --port 8089 --host=0.0.0.0
|
|
11
|
-
"serve-example": "EXAMPLE_PAGE=true webpack-dev-server --hot --port 8089 --host=0.0.0.0
|
|
12
|
-
"build": "
|
|
10
|
+
"serve": "TEST_PAGE=true webpack-dev-server --hot --port 8089 --host=0.0.0.0",
|
|
11
|
+
"serve-example": "EXAMPLE_PAGE=true webpack-dev-server --hot --port 8089 --host=0.0.0.0",
|
|
12
|
+
"build": "node ./node_modules/webpack-cli/bin/cli.js --mode=production --devtool false",
|
|
13
|
+
"build-test": "TEST_PAGE=true node ./node_modules/webpack-cli/bin/cli.js --mode=production --devtool false",
|
|
14
|
+
"build-example": "EXAMPLE_PAGE=true node ./node_modules/webpack-cli/bin/cli.js --mode=production --devtool false",
|
|
15
|
+
"build-analyze": "ANALYZE_BUNDLE=true node ./node_modules/webpack-cli/bin/cli.js --mode=production --devtool false",
|
|
13
16
|
"build-icons": "node src/BuildIcons.js",
|
|
14
|
-
"build-analyze": "rm -rf dist/* && NODE_ENV=production ANALYZE_BUNDLE=true node ./node_modules/webpack-cli/bin/cli.js -p --progress --colors --devtool none",
|
|
15
|
-
"build-test": " rm -rf test/dist/* && TEST_PAGE=true NODE_ENV=production node ./node_modules/webpack-cli/bin/cli.js -p --progress --colors --devtool none",
|
|
16
|
-
"build-example": " rm -rf examples/dist/* && EXAMPLE_PAGE=true NODE_ENV=production node ./node_modules/webpack-cli/bin/cli.js -p --progress --colors --devtool none",
|
|
17
|
-
"add-build": "COMMIT=`git rev-parse HEAD` ; echo $COMMIT > dist/version.txt ; git add dist",
|
|
18
17
|
"lint": "npm run fix-scss ; npm run lint-scss ; npm run fix-js",
|
|
19
18
|
"lint-show": "npm run lint-scss ; npm run lint-js",
|
|
20
19
|
"lint-js": "eslint \"src/**/*.js\"",
|
|
@@ -40,68 +39,42 @@
|
|
|
40
39
|
"@eluvio/elv-client-js": "^4.0.9",
|
|
41
40
|
"dashjs": "^4.7.0",
|
|
42
41
|
"focus-visible": "^5.2.0",
|
|
43
|
-
"hls.js": "^1.
|
|
42
|
+
"hls.js": "^1.4.12",
|
|
44
43
|
"lodash": "^4.17.21",
|
|
45
44
|
"resize-observer-polyfill": "^1.5.1",
|
|
46
|
-
"urijs": "^1.19.11",
|
|
47
45
|
"url-join": "^4.0.1"
|
|
48
46
|
},
|
|
49
47
|
"devDependencies": {
|
|
50
|
-
"@babel/core": "^7.
|
|
51
|
-
"@babel/
|
|
52
|
-
"@babel/
|
|
53
|
-
"@babel/
|
|
54
|
-
"
|
|
55
|
-
"@babel/plugin-transform-react-jsx": "^7.3.0",
|
|
56
|
-
"@babel/plugin-transform-regenerator": "^7.4.3",
|
|
57
|
-
"@babel/plugin-transform-runtime": "^7.4.3",
|
|
58
|
-
"@babel/preset-env": "^7.4.3",
|
|
59
|
-
"@babel/preset-react": "^7.0.0",
|
|
60
|
-
"@babel/runtime": "^7.4.3",
|
|
61
|
-
"autoprefixer": "^9.5.0",
|
|
48
|
+
"@babel/core": "^7.23.0",
|
|
49
|
+
"@babel/preset-env": "^7.22.20",
|
|
50
|
+
"@babel/preset-react": "^7.22.15",
|
|
51
|
+
"@babel/runtime": "^7.23.1",
|
|
52
|
+
"autoprefixer": "^10.4.16",
|
|
62
53
|
"babel-cli": "^6.26.0",
|
|
63
54
|
"babel-core": "^7.0.0-bridge.0",
|
|
64
55
|
"babel-eslint": "^10.0.1",
|
|
65
|
-
"babel-loader": "^
|
|
66
|
-
"
|
|
67
|
-
"babel-preset-mobx": "^2.0.0",
|
|
68
|
-
"css-loader": "^1.0.1",
|
|
56
|
+
"babel-loader": "^9.1.3",
|
|
57
|
+
"css-loader": "^6.8.1",
|
|
69
58
|
"eslint": "^5.16.0",
|
|
70
59
|
"eslint-plugin-react": "^7.12.4",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"html-webpack-plugin": "^3.2.0",
|
|
74
|
-
"image-webpack-loader": "^4.6.0",
|
|
75
|
-
"postcss-loader": "^3.0.0",
|
|
76
|
-
"pre-commit": "^1.2.2",
|
|
77
|
-
"raw-loader": "^0.5.1",
|
|
60
|
+
"html-webpack-plugin": "^5.5.3",
|
|
61
|
+
"postcss-loader": "^7.3.3",
|
|
78
62
|
"regenerator-runtime": "^0.12.1",
|
|
79
|
-
"sass": "^1.
|
|
80
|
-
"sass-lint": "^1.
|
|
63
|
+
"sass": "^1.69.2",
|
|
64
|
+
"sass-lint": "^1.13.1",
|
|
81
65
|
"sass-lint-auto-fix": "^0.21.0",
|
|
82
|
-
"sass-loader": "^
|
|
83
|
-
"
|
|
84
|
-
"style-loader": "^
|
|
66
|
+
"sass-loader": "^13.3.2",
|
|
67
|
+
"stream-browserify": "^3.0.0",
|
|
68
|
+
"style-loader": "^3.3.3",
|
|
85
69
|
"svg-inline-loader": "^0.8.0",
|
|
86
70
|
"svg-inline-react": "^3.1.0",
|
|
71
|
+
"url": "^0.11.3",
|
|
87
72
|
"uuid": "^7.0.2",
|
|
88
|
-
"webpack": "^
|
|
89
|
-
"webpack-bundle-analyzer": "^
|
|
90
|
-
"webpack-cli": "^
|
|
91
|
-
"webpack-dev-server": "^
|
|
92
|
-
|
|
93
|
-
"babel": {
|
|
94
|
-
"comments": true,
|
|
95
|
-
"presets": [
|
|
96
|
-
"@babel/preset-env"
|
|
97
|
-
],
|
|
98
|
-
"plugins": [
|
|
99
|
-
"syntax-async-functions",
|
|
100
|
-
"@babel/plugin-syntax-dynamic-import",
|
|
101
|
-
"@babel/plugin-syntax-object-rest-spread",
|
|
102
|
-
"@babel/plugin-proposal-object-rest-spread",
|
|
103
|
-
"@babel/plugin-transform-regenerator"
|
|
104
|
-
]
|
|
73
|
+
"webpack": "^5.88.2",
|
|
74
|
+
"webpack-bundle-analyzer": "^4.9.1",
|
|
75
|
+
"webpack-cli": "^5.1.4",
|
|
76
|
+
"webpack-dev-server": "^4.15.1",
|
|
77
|
+
"yaml-loader": "^0.8.0"
|
|
105
78
|
},
|
|
106
79
|
"directories": {
|
|
107
80
|
"test": "test"
|
package/src/index.js
CHANGED
|
@@ -5,7 +5,6 @@ import "focus-visible";
|
|
|
5
5
|
import MergeWith from "lodash/mergeWith";
|
|
6
6
|
import Clone from "lodash/cloneDeep";
|
|
7
7
|
|
|
8
|
-
import URI from "urijs";
|
|
9
8
|
import ResizeObserver from "resize-observer-polyfill";
|
|
10
9
|
|
|
11
10
|
import {InitializeFairPlayStream} from "./FairPlay";
|
|
@@ -643,10 +642,10 @@ export class EluvioPlayer {
|
|
|
643
642
|
|
|
644
643
|
multiviewOptions.target = this.target;
|
|
645
644
|
|
|
646
|
-
playoutUrl =
|
|
645
|
+
playoutUrl = new URL(playoutUrl);
|
|
647
646
|
const authorizationToken =
|
|
648
647
|
this.sourceOptions.playoutParameters.authorizationToken ||
|
|
649
|
-
playoutUrl.
|
|
648
|
+
playoutUrl.searchParams.get("authorization");
|
|
650
649
|
|
|
651
650
|
if(protocol === "hls") {
|
|
652
651
|
await this.InitializeHLS({playoutUrl, authorizationToken, drm, drms, multiviewOptions});
|
|
@@ -796,7 +795,7 @@ export class EluvioPlayer {
|
|
|
796
795
|
}
|
|
797
796
|
} else {
|
|
798
797
|
// HLS JS
|
|
799
|
-
playoutUrl.
|
|
798
|
+
playoutUrl.searchParams.delete("authorization");
|
|
800
799
|
|
|
801
800
|
const profileSettings = (PlayerProfiles[this.playerOptions.playerProfile] || {}).hlsSettings || {};
|
|
802
801
|
|
|
@@ -993,7 +992,7 @@ export class EluvioPlayer {
|
|
|
993
992
|
});
|
|
994
993
|
}
|
|
995
994
|
|
|
996
|
-
playoutUrl.
|
|
995
|
+
playoutUrl.searchParams.delete("authorization");
|
|
997
996
|
dashPlayer.extend("RequestModifier", function () {
|
|
998
997
|
return {
|
|
999
998
|
modifyRequestHeader: xhr => {
|
package/webpack.config.js
CHANGED
|
@@ -9,6 +9,9 @@ let plugins = [];
|
|
|
9
9
|
let entry = "./src/index.js";
|
|
10
10
|
let path = Path.resolve(__dirname, "dist");
|
|
11
11
|
|
|
12
|
+
const testTemplate = Path.join(__dirname, "test", "index.html");
|
|
13
|
+
const exampleTemplate = Path.join(__dirname, "examples", "index.html");
|
|
14
|
+
|
|
12
15
|
if(process.env.ANALYZE_BUNDLE) {
|
|
13
16
|
plugins.push(new BundleAnalyzerPlugin());
|
|
14
17
|
}
|
|
@@ -20,11 +23,10 @@ if(process.env.TEST_PAGE) {
|
|
|
20
23
|
plugins.push(
|
|
21
24
|
new HtmlWebpackPlugin({
|
|
22
25
|
title: "Eluvio Player Test",
|
|
23
|
-
template:
|
|
26
|
+
template: testTemplate,
|
|
24
27
|
inject: "body",
|
|
25
28
|
cache: false,
|
|
26
|
-
filename: "index.html"
|
|
27
|
-
inlineSource: ".(js|css)$"
|
|
29
|
+
filename: "index.html"
|
|
28
30
|
})
|
|
29
31
|
);
|
|
30
32
|
}
|
|
@@ -36,11 +38,10 @@ if(process.env.EXAMPLE_PAGE) {
|
|
|
36
38
|
plugins.push(
|
|
37
39
|
new HtmlWebpackPlugin({
|
|
38
40
|
title: "Eluvio Player Example",
|
|
39
|
-
template:
|
|
41
|
+
template: exampleTemplate,
|
|
40
42
|
inject: "body",
|
|
41
43
|
cache: false,
|
|
42
|
-
filename: "index.html"
|
|
43
|
-
inlineSource: ".(js|css)$"
|
|
44
|
+
filename: "index.html"
|
|
44
45
|
})
|
|
45
46
|
);
|
|
46
47
|
}
|
|
@@ -50,35 +51,41 @@ module.exports = {
|
|
|
50
51
|
target: "web",
|
|
51
52
|
output: {
|
|
52
53
|
path,
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
clean: true,
|
|
55
|
+
filename: "[name].bundle.js",
|
|
56
|
+
publicPath: "/",
|
|
57
|
+
chunkFilename: "bundle.[id].[chunkhash].js"
|
|
55
58
|
},
|
|
56
59
|
devServer: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
hot: true,
|
|
61
|
+
historyApiFallback: true,
|
|
62
|
+
allowedHosts: "all",
|
|
60
63
|
port: 8089,
|
|
61
64
|
headers: {
|
|
62
65
|
"Access-Control-Allow-Origin": "*",
|
|
63
66
|
"Access-Control-Allow-Headers": "Content-Type, Accept",
|
|
64
67
|
"Access-Control-Allow-Methods": "POST"
|
|
68
|
+
},
|
|
69
|
+
// This is to allow configuration.js to be accessed
|
|
70
|
+
static: {
|
|
71
|
+
directory: Path.resolve(__dirname, "./config"),
|
|
72
|
+
publicPath: "/"
|
|
65
73
|
}
|
|
66
74
|
},
|
|
67
75
|
optimization: {
|
|
68
|
-
minimizer: [
|
|
69
|
-
new TerserPlugin({
|
|
70
|
-
terserOptions: {
|
|
71
|
-
keep_classnames: true,
|
|
72
|
-
keep_fnames: true
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
],
|
|
76
76
|
splitChunks: {
|
|
77
|
-
chunks: "all"
|
|
78
|
-
}
|
|
77
|
+
chunks: "all",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
resolve: {
|
|
81
|
+
fallback: {
|
|
82
|
+
stream: require.resolve("stream-browserify"),
|
|
83
|
+
url: require.resolve("url")
|
|
84
|
+
},
|
|
85
|
+
extensions: [".js", ".jsx", ".mjs", ".scss", ".png", ".svg"],
|
|
79
86
|
},
|
|
80
|
-
|
|
81
|
-
|
|
87
|
+
externals: {
|
|
88
|
+
crypto: "crypto"
|
|
82
89
|
},
|
|
83
90
|
mode: "development",
|
|
84
91
|
devtool: "eval-source-map",
|
|
@@ -87,6 +94,7 @@ module.exports = {
|
|
|
87
94
|
rules: [
|
|
88
95
|
{
|
|
89
96
|
test: /\.(css|scss)$/,
|
|
97
|
+
exclude: /\.(theme|font)\.(css|scss)$/i,
|
|
90
98
|
use: [
|
|
91
99
|
"style-loader",
|
|
92
100
|
{
|
|
@@ -95,25 +103,17 @@ module.exports = {
|
|
|
95
103
|
importLoaders: 2
|
|
96
104
|
}
|
|
97
105
|
},
|
|
98
|
-
|
|
99
|
-
loader: "postcss-loader",
|
|
100
|
-
options: {
|
|
101
|
-
plugins: () => [autoprefixer({})]
|
|
102
|
-
}
|
|
103
|
-
},
|
|
106
|
+
"postcss-loader",
|
|
104
107
|
"sass-loader"
|
|
105
108
|
]
|
|
106
109
|
},
|
|
107
110
|
{
|
|
108
|
-
test: /\.(js|mjs)$/,
|
|
109
|
-
exclude: /node_modules\/(?!elv-components-js)/,
|
|
111
|
+
test: /\.(js|mjs|jsx)$/,
|
|
110
112
|
loader: "babel-loader",
|
|
111
113
|
options: {
|
|
112
|
-
presets: [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
require("@babel/plugin-transform-regenerator"),
|
|
116
|
-
require("@babel/plugin-transform-runtime")
|
|
114
|
+
presets: [
|
|
115
|
+
"@babel/preset-env",
|
|
116
|
+
"@babel/preset-react",
|
|
117
117
|
]
|
|
118
118
|
}
|
|
119
119
|
},
|
|
@@ -122,17 +122,20 @@ module.exports = {
|
|
|
122
122
|
loader: "svg-inline-loader"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
test: /\.(gif|png|jpe?g)$/i,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
test: /\.(gif|png|jpe?g|otf|woff2?|ttf)$/i,
|
|
126
|
+
include: [ Path.resolve(__dirname, "src/static/public")],
|
|
127
|
+
type: "asset/inline",
|
|
128
|
+
generator: {
|
|
129
|
+
filename: "public/[name][ext]"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
test: /\.(gif|png|jpe?g|otf|woff2?|ttf)$/i,
|
|
134
|
+
type: "asset/resource",
|
|
132
135
|
},
|
|
133
136
|
{
|
|
134
137
|
test: /\.(txt|bin|abi)$/i,
|
|
135
|
-
|
|
138
|
+
type: "asset/source"
|
|
136
139
|
}
|
|
137
140
|
]
|
|
138
141
|
}
|
package/dist/0.bundle.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{162:function(t,e,r){"use strict";(function(t){
|
|
2
|
-
/*!
|
|
3
|
-
* The buffer module from node.js, for the browser.
|
|
4
|
-
*
|
|
5
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/
|
|
8
|
-
var n=r(229),i=r(230),f=r(202);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(t,e){if(kMaxLength()<e)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Buffer.prototype:(null===t&&(t=new Buffer(e)),t.length=e),t}function Buffer(t,e,r){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,t)}return from(this,t,e,r)}function from(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function fromArrayBuffer(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);Buffer.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Buffer.prototype:t=fromArrayLike(t,e);return t}(t,e,r,n):"string"==typeof e?function fromString(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!Buffer.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|byteLength(e,r),i=(t=createBuffer(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function fromObject(t,e){if(Buffer.isBuffer(e)){var r=0|checked(e.length);return 0===(t=createBuffer(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function isnan(t){return t!=t}(e.length)?createBuffer(t,0):fromArrayLike(t,e);if("Buffer"===e.type&&f(e.data))return fromArrayLike(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function assertSize(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function allocUnsafe(t,e){if(assertSize(e),t=createBuffer(t,e<0?0:0|checked(e)),!Buffer.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function fromArrayLike(t,e){var r=e.length<0?0:0|checked(e.length);t=createBuffer(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function checked(t){if(t>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|t}function byteLength(t,e){if(Buffer.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(t).length;default:if(n)return utf8ToBytes(t).length;e=(""+e).toLowerCase(),n=!0}}function slowToString(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return hexSlice(this,e,r);case"utf8":case"utf-8":return utf8Slice(this,e,r);case"ascii":return asciiSlice(this,e,r);case"latin1":case"binary":return latin1Slice(this,e,r);case"base64":return base64Slice(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function swap(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function bidirectionalIndexOf(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=Buffer.from(e,n)),Buffer.isBuffer(e))return 0===e.length?-1:arrayIndexOf(t,e,r,n,i);if("number"==typeof e)return e&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):arrayIndexOf(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(t,e,r,n,i){var f,o=1,u=t.length,a=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,u/=2,a/=2,r/=2}function read(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var s=-1;for(f=r;f<u;f++)if(read(t,f)===read(e,-1===s?0:f-s)){if(-1===s&&(s=f),f-s+1===a)return s*o}else-1!==s&&(f-=f-s),s=-1}else for(r+a>u&&(r=u-a),f=r;f>=0;f--){for(var h=!0,c=0;c<a;c++)if(read(t,f+c)!==read(e,c)){h=!1;break}if(h)return f}return-1}function hexWrite(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var f=e.length;if(f%2!=0)throw new TypeError("Invalid hex string");n>f/2&&(n=f/2);for(var o=0;o<n;++o){var u=parseInt(e.substr(2*o,2),16);if(isNaN(u))return o;t[r+o]=u}return o}function utf8Write(t,e,r,n){return blitBuffer(utf8ToBytes(e,t.length-r),t,r,n)}function asciiWrite(t,e,r,n){return blitBuffer(function asciiToBytes(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function latin1Write(t,e,r,n){return asciiWrite(t,e,r,n)}function base64Write(t,e,r,n){return blitBuffer(base64ToBytes(e),t,r,n)}function ucs2Write(t,e,r,n){return blitBuffer(function utf16leToBytes(t,e){for(var r,n,i,f=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,f.push(i),f.push(n);return f}(e,t.length-r),t,r,n)}function base64Slice(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function utf8Slice(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var f,o,u,a,s=t[i],h=null,c=s>239?4:s>223?3:s>191?2:1;if(i+c<=r)switch(c){case 1:s<128&&(h=s);break;case 2:128==(192&(f=t[i+1]))&&(a=(31&s)<<6|63&f)>127&&(h=a);break;case 3:f=t[i+1],o=t[i+2],128==(192&f)&&128==(192&o)&&(a=(15&s)<<12|(63&f)<<6|63&o)>2047&&(a<55296||a>57343)&&(h=a);break;case 4:f=t[i+1],o=t[i+2],u=t[i+3],128==(192&f)&&128==(192&o)&&128==(192&u)&&(a=(15&s)<<18|(63&f)<<12|(63&o)<<6|63&u)>65535&&a<1114112&&(h=a)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function decodeCodePointsArray(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}e.Buffer=Buffer,e.SlowBuffer=function SlowBuffer(t){+t!=t&&(t=0);return Buffer.alloc(+t)},e.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(t){return t.__proto__=Buffer.prototype,t},Buffer.from=function(t,e,r){return from(null,t,e,r)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(t,e,r){return function alloc(t,e,r,n){return assertSize(e),e<=0?createBuffer(t,e):void 0!==r?"string"==typeof n?createBuffer(t,e).fill(r,n):createBuffer(t,e).fill(r):createBuffer(t,e)}(null,t,e,r)},Buffer.allocUnsafe=function(t){return allocUnsafe(null,t)},Buffer.allocUnsafeSlow=function(t){return allocUnsafe(null,t)},Buffer.isBuffer=function isBuffer(t){return!(null==t||!t._isBuffer)},Buffer.compare=function compare(t,e){if(!Buffer.isBuffer(t)||!Buffer.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,f=Math.min(r,n);i<f;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},Buffer.isEncoding=function isEncoding(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function concat(t,e){if(!f(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Buffer.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=Buffer.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!Buffer.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function swap16(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)swap(this,e,e+1);return this},Buffer.prototype.swap32=function swap32(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)swap(this,e,e+3),swap(this,e+1,e+2);return this},Buffer.prototype.swap64=function swap64(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)swap(this,e,e+7),swap(this,e+1,e+6),swap(this,e+2,e+5),swap(this,e+3,e+4);return this},Buffer.prototype.toString=function toString(){var t=0|this.length;return 0===t?"":0===arguments.length?utf8Slice(this,0,t):slowToString.apply(this,arguments)},Buffer.prototype.equals=function equals(t){if(!Buffer.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Buffer.compare(this,t)},Buffer.prototype.inspect=function inspect(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},Buffer.prototype.compare=function compare(t,e,r,n,i){if(!Buffer.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var f=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),u=Math.min(f,o),a=this.slice(n,i),s=t.slice(e,r),h=0;h<u;++h)if(a[h]!==s[h]){f=a[h],o=s[h];break}return f<o?-1:o<f?1:0},Buffer.prototype.includes=function includes(t,e,r){return-1!==this.indexOf(t,e,r)},Buffer.prototype.indexOf=function indexOf(t,e,r){return bidirectionalIndexOf(this,t,e,r,!0)},Buffer.prototype.lastIndexOf=function lastIndexOf(t,e,r){return bidirectionalIndexOf(this,t,e,r,!1)},Buffer.prototype.write=function write(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return hexWrite(this,t,e,r);case"utf8":case"utf-8":return utf8Write(this,t,e,r);case"ascii":return asciiWrite(this,t,e,r);case"latin1":case"binary":return latin1Write(this,t,e,r);case"base64":return base64Write(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,t,e,r);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function asciiSlice(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function latin1Slice(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function hexSlice(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",f=e;f<r;++f)i+=toHex(t[f]);return i}function utf16leSlice(t,e,r){for(var n=t.slice(e,r),i="",f=0;f<n.length;f+=2)i+=String.fromCharCode(n[f]+256*n[f+1]);return i}function checkOffset(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function checkInt(t,e,r,n,i,f){if(!Buffer.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<f)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function objectWriteUInt16(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,f=Math.min(t.length-r,2);i<f;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function objectWriteUInt32(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,f=Math.min(t.length-r,4);i<f;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function checkIEEE754(t,e,r,n,i,f){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function writeFloat(t,e,r,n,f){return f||checkIEEE754(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function writeDouble(t,e,r,n,f){return f||checkIEEE754(t,0,r,8),i.write(t,e,r,n,52,8),r+8}Buffer.prototype.slice=function slice(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),Buffer.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=Buffer.prototype;else{var i=e-t;r=new Buffer(i,void 0);for(var f=0;f<i;++f)r[f]=this[f+t]}return r},Buffer.prototype.readUIntLE=function readUIntLE(t,e,r){t|=0,e|=0,r||checkOffset(t,e,this.length);for(var n=this[t],i=1,f=0;++f<e&&(i*=256);)n+=this[t+f]*i;return n},Buffer.prototype.readUIntBE=function readUIntBE(t,e,r){t|=0,e|=0,r||checkOffset(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},Buffer.prototype.readUInt8=function readUInt8(t,e){return e||checkOffset(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function readUInt16LE(t,e){return e||checkOffset(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(t,e){return e||checkOffset(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(t,e){return e||checkOffset(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(t,e){return e||checkOffset(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function readIntLE(t,e,r){t|=0,e|=0,r||checkOffset(t,e,this.length);for(var n=this[t],i=1,f=0;++f<e&&(i*=256);)n+=this[t+f]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},Buffer.prototype.readIntBE=function readIntBE(t,e,r){t|=0,e|=0,r||checkOffset(t,e,this.length);for(var n=e,i=1,f=this[t+--n];n>0&&(i*=256);)f+=this[t+--n]*i;return f>=(i*=128)&&(f-=Math.pow(2,8*e)),f},Buffer.prototype.readInt8=function readInt8(t,e){return e||checkOffset(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Buffer.prototype.readInt16LE=function readInt16LE(t,e){e||checkOffset(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function readInt16BE(t,e){e||checkOffset(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function readInt32LE(t,e){return e||checkOffset(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(t,e){return e||checkOffset(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function readFloatLE(t,e){return e||checkOffset(t,4,this.length),i.read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(t,e){return e||checkOffset(t,4,this.length),i.read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(t,e){return e||checkOffset(t,8,this.length),i.read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(t,e){return e||checkOffset(t,8,this.length),i.read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(t,e,r,n){(t=+t,e|=0,r|=0,n)||checkInt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,f=0;for(this[e]=255&t;++f<r&&(i*=256);)this[e+f]=t/i&255;return e+r},Buffer.prototype.writeUIntBE=function writeUIntBE(t,e,r,n){(t=+t,e|=0,r|=0,n)||checkInt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,f=1;for(this[e+i]=255&t;--i>=0&&(f*=256);)this[e+i]=t/f&255;return e+r},Buffer.prototype.writeUInt8=function writeUInt8(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):objectWriteUInt16(this,t,e,!0),e+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):objectWriteUInt16(this,t,e,!1),e+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):objectWriteUInt32(this,t,e,!0),e+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):objectWriteUInt32(this,t,e,!1),e+4},Buffer.prototype.writeIntLE=function writeIntLE(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,t,e,r,i-1,-i)}var f=0,o=1,u=0;for(this[e]=255&t;++f<r&&(o*=256);)t<0&&0===u&&0!==this[e+f-1]&&(u=1),this[e+f]=(t/o>>0)-u&255;return e+r},Buffer.prototype.writeIntBE=function writeIntBE(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,t,e,r,i-1,-i)}var f=r-1,o=1,u=0;for(this[e+f]=255&t;--f>=0&&(o*=256);)t<0&&0===u&&0!==this[e+f+1]&&(u=1),this[e+f]=(t/o>>0)-u&255;return e+r},Buffer.prototype.writeInt8=function writeInt8(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Buffer.prototype.writeInt16LE=function writeInt16LE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):objectWriteUInt16(this,t,e,!0),e+2},Buffer.prototype.writeInt16BE=function writeInt16BE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):objectWriteUInt16(this,t,e,!1),e+2},Buffer.prototype.writeInt32LE=function writeInt32LE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):objectWriteUInt32(this,t,e,!0),e+4},Buffer.prototype.writeInt32BE=function writeInt32BE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):objectWriteUInt32(this,t,e,!1),e+4},Buffer.prototype.writeFloatLE=function writeFloatLE(t,e,r){return writeFloat(this,t,e,!0,r)},Buffer.prototype.writeFloatBE=function writeFloatBE(t,e,r){return writeFloat(this,t,e,!1,r)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(t,e,r){return writeDouble(this,t,e,!0,r)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(t,e,r){return writeDouble(this,t,e,!1,r)},Buffer.prototype.copy=function copy(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,f=n-r;if(this===t&&r<e&&e<n)for(i=f-1;i>=0;--i)t[i+e]=this[i+r];else if(f<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i<f;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+f),e);return f},Buffer.prototype.fill=function fill(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Buffer.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var f;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(f=e;f<r;++f)this[f]=t;else{var o=Buffer.isBuffer(t)?t:utf8ToBytes(new Buffer(t,n).toString()),u=o.length;for(f=0;f<r-e;++f)this[f+e]=o[f%u]}return this};var o=/[^+\/0-9A-Za-z-_]/g;function toHex(t){return t<16?"0"+t.toString(16):t.toString(16)}function utf8ToBytes(t,e){var r;e=e||1/0;for(var n=t.length,i=null,f=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&f.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&f.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&f.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&f.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;f.push(r)}else if(r<2048){if((e-=2)<0)break;f.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;f.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;f.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return f}function base64ToBytes(t){return n.toByteArray(function base64clean(t){if((t=function stringtrim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(o,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function blitBuffer(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(21))},163:function(t,e){var r,n,i=t.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(t){if(r===setTimeout)return setTimeout(t,0);if((r===defaultSetTimout||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(t){r=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(t){n=defaultClearTimeout}}();var f,o=[],u=!1,a=-1;function cleanUpNextTick(){u&&f&&(u=!1,f.length?o=f.concat(o):a=-1,o.length&&drainQueue())}function drainQueue(){if(!u){var t=runTimeout(cleanUpNextTick);u=!0;for(var e=o.length;e;){for(f=o,o=[];++a<e;)f&&f[a].run();a=-1,e=o.length}f=null,u=!1,function runClearTimeout(t){if(n===clearTimeout)return clearTimeout(t);if((n===defaultClearTimeout||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function Item(t,e){this.fun=t,this.array=e}function noop(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];o.push(new Item(t,e)),1!==o.length||u||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=noop,i.addListener=noop,i.once=noop,i.off=noop,i.removeListener=noop,i.removeAllListeners=noop,i.emit=noop,i.prependListener=noop,i.prependOnceListener=noop,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},202:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},229:function(t,e,r){"use strict";e.byteLength=function byteLength(t){var e=getLens(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function toByteArray(t){var e,r,n=getLens(t),o=n[0],u=n[1],a=new f(function _byteLength(t,e,r){return 3*(e+r)/4-r}(0,o,u)),s=0,h=u>0?o-4:o;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=255&e;2===u&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,a[s++]=255&e);1===u&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e);return a},e.fromByteArray=function fromByteArray(t){for(var e,r=t.length,i=r%3,f=[],o=0,u=r-i;o<u;o+=16383)f.push(encodeChunk(t,o,o+16383>u?u:o+16383));1===i?(e=t[r-1],f.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],f.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return f.join("")};for(var n=[],i=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=o.length;u<a;++u)n[u]=o[u],i[o.charCodeAt(u)]=u;function getLens(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function encodeChunk(t,e,r){for(var i,f,o=[],u=e;u<r;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),o.push(n[(f=i)>>18&63]+n[f>>12&63]+n[f>>6&63]+n[63&f]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},230:function(t,e){
|
|
9
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
-
e.read=function(t,e,r,n,i){var f,o,u=8*i-n-1,a=(1<<u)-1,s=a>>1,h=-7,c=r?i-1:0,l=r?-1:1,p=t[e+c];for(c+=l,f=p&(1<<-h)-1,p>>=-h,h+=u;h>0;f=256*f+t[e+c],c+=l,h-=8);for(o=f&(1<<-h)-1,f>>=-h,h+=n;h>0;o=256*o+t[e+c],c+=l,h-=8);if(0===f)f=1-s;else{if(f===a)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),f-=s}return(p?-1:1)*o*Math.pow(2,f-n)},e.write=function(t,e,r,n,i,f){var o,u,a,s=8*f-i-1,h=(1<<s)-1,c=h>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:f-1,g=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-o))<1&&(o--,a*=2),(e+=o+c>=1?l/a:l*Math.pow(2,1-c))*a>=2&&(o++,a/=2),o+c>=h?(u=0,o=h):o+c>=1?(u=(e*a-1)*Math.pow(2,i),o+=c):(u=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&u,p+=g,u/=256,i-=8);for(o=o<<i|u,s+=i;s>0;t[r+p]=255&o,p+=g,o/=256,s-=8);t[r+p-g]|=128*y}}}]);
|