/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[4],{11:function(t,e,n){"use strict";n.r(e);n(16),n(46),n(30);var r=n(0),o=n.n(r),i=n(37),u=n.n(i),a=n(38),s=n.n(a),c=function(){function t(e){u()(this,t),this._id=e._id,this.civility=e.metaData?e.metaData.civility:null,this.firstname=e.firstname,this.lastname=e.lastname,this.birthday=e.metaData?e.metaData.birthday:null,this.pseudo=e.metaData?e.metaData.pseudo:null,this.email=e.email,this.isDemo="demo"===e.roles}return s()(t,null,[{key:"updateExobankUser",value:function(t,e){e.metaData||(e.metaData={}),e.metaData.civility=t.civility,e.firstname=t.firstname,e.lastname=t.lastname,e.metaData.birthday=t.birthday,e.metaData.pseudo=t.pseudo,e.email=t.email}}]),t}();n.d(e,"SdkHub",function(){return f}),n.d(e,"SdkPublic",function(){return p}),n.d(e,"SdkExoAuth",function(){return h}),n.d(e,"state",function(){return v}),n.d(e,"getters",function(){return m}),n.d(e,"actions",function(){return g}),n.d(e,"mutations",function(){return _});var l=n(158),d=void 0,f=(n(229),n(280),window.SdkHub(l.get("hubToken"),"https://api.edu.hachette-livre.fr/hub","v1","d7e358b52e814c6fa496cbe53a9f60c5","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJIVUIiLCJhdWQiOiJIVUIifQ.nN5k3CudawbWJdkabI4XII0vG6h19GQvSwYyyZgX7Q4")),p=window.SdkPublic,h=window.SdkExoAuth;window.sdkHub=f;var v=function(){return{auth:null,isSdkInit:!1,summary:null}},m={auth:function(t){return t.auth},isSdkInit:function(t){return t.isSdkInit}},g={nuxtServerInit:function(t,e){return o()(regeneratorRuntime.mark(function n(){var r,o,i,u;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,t.dispatch,o=e.req,i=null,o.headers.cookie){u=d.parse(o.headers.cookie);try{i=u.auth?JSON.parse(u.auth):null,f.token=u.hubToken}catch(t){console.log(t)}}else f.token=null;r("SET_AUTH",i);case 5:case"end":return n.stop()}},n)}))()},login:function(t,e){return o()(regeneratorRuntime.mark(function n(){var r,o,i,u,a,s;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.email,u=e.password,a=e.cb,s=e.cbError,n.next=4,f.user.auth.post({login:i,password:u}).then(function(t){r("SET_HUB_USER",t.data.user),o("products/getUserProducts"),a&&a(t.data.user)}).catch(function(t){s&&s(t)});case 4:case"end":return n.stop()}},n)}))()},loginWithToken:function(t,e){return o()(regeneratorRuntime.mark(function n(){var r,o,i,u;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=e.token,i=e.cb,u=e.cbError,o&&(f.token=o),n.next=5,f.user.auth.get().then(function(t){r("SET_HUB_USER",t.data.user),dispatch("products/getUserProducts"),i&&i(t.data.user)}).catch(function(t){u&&u(t)});case 5:case"end":return n.stop()}},n)}))()},initUser:function(t){return o()(regeneratorRuntime.mark(function e(){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.commit,r=t.rootState,t.state,null!==r.users.userHub||!f.token){e.next=4;break}return e.next=4,f.user.auth.get().then(function(){var t=o()(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n("SET_HUB_USER",e.data.user);case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(t){console.error(t)});case 4:case"end":return e.stop()}},e)}))()},setTechnicalUser:function(t,e){return o()(regeneratorRuntime.mark(function n(){var r,i,u,a;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,i=t.state,u=e.cb,a=e.cbError,!i.isSdkInit&&!p.util.sdkExoAuth){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,p.init("https://exobank.hachette-livre.fr","api/init","2.0.0").then(function(){var t=o()(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=Object.assign({},{consumerToken:"a2V5MTIzOnNlY3JldDEyMw=="},{username:"hubViewerUser",password:"Hn6kNs3jZ2KNyX9B",appId:"Hachette.ENE.1.0"}),p.setCurrentProfile(n),t.next=4,p.util.sdkExoAuth.createAndUpdateAuth().then(function(t){r("SET_SDK_INIT",!0),r("SET_USER",new c(h.util.user)),u&&u()}).catch(function(t){r("SET_USER",null),a&&a(t)});case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());case 6:case"end":return n.stop()}},n)}))()},resetTechnicalUserAndTryAgain:function(t,e){return o()(regeneratorRuntime.mark(function n(){var r,i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,i=t.dispatch,e.cb,e.param,r("SET_SDK_INIT",!1),p.util.sdkExoAuth=null,n.abrupt("return",new Promise(function(){var t=o()(regeneratorRuntime.mark(function t(e,n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,console.log("ACTION - RESET TECHNICAL USER : OK"),t.next=4,i("setTechnicalUser",{});case 4:e(),t.next=12;break;case 7:t.prev=7,t.t0=t.catch(0),console.error("ACTION - RESET TECHNICAL USER : KO"),console.error(t.t0),n(t.t0.response);case 12:case"end":return t.stop()}},t,null,[[0,7]])}));return function(e,n){return t.apply(this,arguments)}}()));case 5:case"end":return n.stop()}},n)}))()},logout:function(t){var e=t.commit;l.remove("auth"),e("SET_AUTH",null),e("SET_USER",null),e("SET_HUB_USER",null),f.user.auth.delete()},resetStore:function(t){return o()(regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.commit,console.log("MUTATION - RESET STORE"),n("products/RESET_STORE",null,{root:!0}),n("users/RESET_STORE",null,{root:!0}),n("wordpress/RESET_STORE",null,{root:!0});case 5:case"end":return e.stop()}},e)}))()}},_={SET_AUTH:function(t,e){console.log("MUTATION - SET AUTH"),t.auth=e},SET_USER:function(t,e){console.log("MUTATION - SET USER"),t.users.user=e},SET_HUB_USER:function(t,e){console.log("MUTATION - SET HUB USER"),t.users.userHub=e},SET_SDK_INIT:function(t,e){console.log("MUTATION - SET SDK INIT"),t.isSdkInit=e}}},12:function(t,e,n){"use strict";var r=n(37),o=n.n(r),i=n(38),u=n.n(i),a=n(185),s=n.n(a),c=function(){function t(){o()(this,t),this.emitter=new s.a}return u()(t,[{key:"emit",value:function(t,e){this.emitter.emit(t,e)}},{key:"on",value:function(t,e,n){this.emitter.on(t,e,n)}},{key:"removeListener",value:function(t,e,n){this.emitter.removeListener(t,e,n)}}]),t}();e.a=new c},126:function(t,e){"serviceWorker"in navigator?navigator.serviceWorker.register("/sw.js",{scope:"/"}).then(function(t){window.$sw=t}).catch(function(t){console.error("Service worker registration failed:",t)}):console.warn("Service workers are not supported.")},127:function(t,e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"gtm.js","gtm.start":(new Date).getTime()})},128:function(t,e,n){"use strict";(function(t){n(46),n(16),n(42),n(43),n(25);for(var r=n(187),o=n.n(r),i={setHeader:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=!0,o=!1,i=void 0;try{for(var u,a=(Array.isArray(n)?n:[n])[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var s=u.value;if(!e)return void delete this.defaults.headers[s][t];this.defaults.headers[s][t]=e}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use(function(e){return t(e)||e})},onResponse:function(t){this.interceptors.response.use(function(e){return t(e)||e})},onRequestError:function(t){this.interceptors.request.use(void 0,function(e){return t(e)||Promise.reject(e)})},onResponseError:function(t){this.interceptors.response.use(void 0,function(e){return t(e)||Promise.reject(e)})},onError:function(t){this.onRequestError(t),this.onResponseError(t)}},u=function(){var t=s[a];i["$"+t]=function(){return this[t].apply(this,arguments).then(function(t){return t&&t.data})}},a=0,s=["request","delete","get","head","options","post","put","patch"];a0?e(r?{bankId:o.data.data[0]._id,ean:o.data.data[0].ean}:o.data.data[0]):n(null)}).catch(function(e){t.SdkPublic.util.log.err("getBankIDFromEAN — BankID receive error",e),n(e)})})})},"getBankIDFromEAN")}(u,Promise),function(t,e){t.exportModule("SdkPublic",{FOCUS:"FOCUS",GRADED:"GRADED",UNGRADED:"UNGRADED",FOLLOWRECO:"FOLLOWRECO"},"EventType");function n(t,e,n,r,o,i,u,a,s,c,l){var d={eventType:n};return null!=i&&(d.linear=!!i),null!=a&&(d.isKnewton=!!a),t&&(d.userGoalId=t),e&&(d.userId=e),o&&(d.moduleId=o),r&&(d.value=r),u&&(d.ean=u),s&&(d.goalTemplateId=s),c&&(d.stats=c),l&&(d.learningObjective=l),d}function r(e,r,o,i,u,a,s,c,l,d,f){return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(p,h){var v=n(e,r,o,i,u,a,s,c,l,d,f);t.SdkPublic.util.log.info("sendEvent — Creating Event",v),t.SdkActions.execute(t.SdkPublic.actions.EVENT_CREATE,null,v,null,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){e.data&&e.data.data?(t.SdkPublic.util.log.info("sendEvent — New Event created",e.data.data._id),p(e.data.data)):p(e)}).catch(function(e){t.SdkPublic.util.log.err("sendEvent — New Event error",e),h(e)})})})}t.exportModule("SdkPublic",{LINEAR:"linear",LINEAR_KNEWTON:"linear-knewton",KNEWTON:"knewton"},"EventTargetType"),t.exportModule("SdkPublic",n,"Event"),t.exportModule("SdkPublic",r,"sendEvent"),t.exportModule("SdkPublic",function(t,e,n,o,i,u,a,s,c){return r(void 0,t,e,n,o,a,i,!1,u,s,c)},"sendLinearEvent"),t.exportModule("SdkPublic",function(t,e,n,o,i,u,a,s){return r(void 0,t,e,n,o,null,i,null,u,a,s)},"sendLinearEventV2"),t.exportModule("SdkPublic",function(e,n,r,o,i,u,a,s){return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(c,l){var d={ean:e};n&&(d.userId=n),r&&(d.type=r),o&&(d.events=o.join(",")),i&&(d.goalTemplateId=i),u&&(d.limit=u),a&&(d.iteration=a),s&&(d.userGoalId=s),t.SdkPublic.util.log.info("getEvents — Getting Events",d),t.SdkActions.execute(t.SdkPublic.actions.EVENTS_GET,null,null,d,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("getEvents — Events received",e.data.data),c(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("getEvents — Get Event error",e),l(e)})})})},"getEvents")}(u),function(t){t.exportModule("SdkPublic",function(e,n,r,o,i){console.log("SdkPublic - start init");var u=t.SdkActions.init(e,n||"init",r),a=t.SdkPublic.interceptors;return t.SdkPublic.util.debugMode=o,t.SdkPublic.util.customInterceptors=i,t.SdkActions.debugMode=o,a(),u},"init"),t.exportModule("SdkPublic",function(e){var n=t.SdkExoAuth.auth.init(e);t.SdkPublic.util.log.info("SdkPublic - obj Auth from Sdk-ExoAuth",n),t.SdkExoAuth.util.debugMode=t.SdkPublic.util.debugMode,t.SdkPublic.util.sdkExoAuth=n},"setCurrentProfile"),t.exportModule("SdkPublic",function(e,n){return t.SdkPublic.util.switchUser(e,n)},"switchUser"),t.exportModule("SdkPublic",function(e){return t.SdkPublic.util.switchUserLocally(e)},"switchUserLocally"),t.exportModule("SdkPublic",function(e){var n=t.SdkPublic.util.transformQueryToString(e.query);return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,o){t.SdkActions.execute(e.action,e.obj,e.body,n,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader(),e.isFormData).then(function(t){r(t)}).catch(function(t){o(t)})})})},"callAction")}(u),function(t){var e={get:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("BANK — Getting banks",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.EAN_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("BANK — Banks received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("BANK — Banks receive error",e),o(e)})})})},getFullBank:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("BANK — Getting Bank",e),t.SdkActions.execute(t.SdkPublic.actions.BANK_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("BANK — Bank received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("BANK — Bank receive error",e),o(e)})})})}};t.exportModule("SdkPublic",e,"Bank")}(u,Promise),function(t){function e(e){t.SdkPublic.util.extend(this,{_id:null,creationDate:null,updateDate:null,graphId:null,knewtonData:{id:null,description:null,modules:[],postreqConcepts:[],prereqConcepts:[]},metaData:{bankData:[]},actions:[]},e),this.serialize=function(e){return t.SdkPublic.util.serialize(["_id",{name:"creationDate",type:"date"},{name:"updateDate",type:"date"},"knewtonData","metaData","graphId","actions"],n,e)},this.set=function(e){t.SdkPublic.util.extend(n,e)};var n=this}var n={new:function(t){return new e(t)},get:function(n,r){var o=t.SdkPublic.util.transformQueryToString(n);return r&&(o=o||{},t.SdkPublic.util.extend(o,r)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,i){t.SdkPublic.util.log.info("CONCEPT — Getting concepts",n),t.SdkActions.execute(t.SdkPublic.actions.CONCEPT_GET,null,null,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("CONCEPT — Concepts received",n.data.data);var o=[];for(var i in n.data.data)o.push(new e(n.data.data[i]));r(o)}).catch(function(e){t.SdkPublic.util.log.err("CONCEPT — Concepts receive error",e),i(e)})})})}};t.exportModule("SdkPublic",n,"Concept")}(u,Promise),function(t){t.exportModule("SdkPublic",{INIT:"INIT",BANK_GET:"BANK.GET",GOALTEMPLATE_GET:"GOALS.GET",GOALTEMPLATE_CREATE:"GOAL.CREATE",USERGOAL_CREATE:"USERGOAL.CREATE",USERGOAL_GET:"USERGOAL.GET",USER_CREATE:"USER.CREATE",USER_UPDATE:"USER.UPDATE",USER_GET:"USER.GET",USERGOALEVENT_CREATE:"USERGOALEVENT.CREATE",USERGOALRECO_GET:"USERGOALRECO.GET",USERGOALMETRIC_GET:"USERGOALMETRIC.GET",SUMMARY_GET:"SUMMARY.GET",EVENT_CREATE:"EVENT.CREATE",MODULE_GET:"MODULE.GET",LINEAR_HISTORY_STATS_GET:"LINEAR.HISTORY.STATS.GET",KNEWTON_STATS_GET:"KNEWTON.STATS.GET",LINEAR_STATS_GET:"LINEAR.STATS.GET",LINEAR_TOUR_STATS_GET:"LINEAR.TOUR.STATS.GET",EAN_GET:"EAN.GET",EVENTS_GET:"EVENTS.GET",CONCEPT_GET:"CONCEPT.GET",USER_STATS_GET:"USER.STATS.GET",GOAL_STATS_GET:"GOAL.STATS.GET",LO_STATS_GET:"LO.STATS.GET",CLASS_STATS_GET:"CLASS.STATS.GET",EVENT_STATS_GET:"EVENT.STATS.GET",BANK_USER_GET:"BANK.USER.GET",RESOURCE_GET:"RESOURCE.GET",USERSPACE_GET:"USERSPACE.GET",USERSPACE_GET_FULL:"USERSPACE.GET_FULL",USERSPACE_CREATE:"USERSPACE.CREATE",USERDOCUMENT_GET_FULL:"USERDOCUMENT.GET_FULL",USERDOCUMENT_CREATE:"USERDOCUMENT.CREATE",USERDOCUMENT_PUT:"USERDOCUMENT.PUT",USERDOCUMENT_DELETE:"USERDOCUMENT.DELETE",DOCUMENTEVENT_GET_FULL:"DOCUMENTEVENT.GET_FULL",DOCUMENTEVENT_CREATE:"DOCUMENTEVENT.CREATE",GROUP_GET:"GROUP.GET"},"actions")}(u),function(t){function e(e){t.SdkPublic.util.extend(this,{_id:null,creationDate:null,updateDate:null,bankId:null,graphId:null,active:null,valid:null,metaData:{name:null,description:null},params:{targets:{conceptIds:[],moduleIds:[]},configuration:{targetDateRule:10,targetScore:50,analyticsEnabled:!0,completionBehavior:"all",remediationDepth:"maximum",itemMin:0},scope:{include:{taxonIds:[],moduleIds:[]},exclude:{taxonIds:[],moduleIds:[]}},linearModules:{moduleIds:[]}},actions:[]},e),this.serialize=function(e){return t.SdkPublic.util.serialize(["_id",{name:"creationDate",type:"date"},{name:"updateDate",type:"date"},"bankId","graphId","valid","active","metaData","params","actions"],n,e)},this.isValid=function(){if(!n.metaData)return!1;if(!n.metaData.name||0===n.metaData.name.length)return!1;if(!n.bankId)return!1;if(!n.graphId)return!1;return!0},this.create=function(){return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(e,o){t.SdkPublic.util.log.info("GOALTEMPLATE — Creating goalTemplate"),n.isValid()?t.SdkActions.execute(t.SdkPublic.actions.GOALTEMPLATE_CREATE,n,n.serialize(r),null,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(r){t.SdkPublic.util.log.info("GOALTEMPLATE — New goalTemplate created",r.data.data._id),t.SdkPublic.util.extend(n,r.data.data),e(n)}).catch(function(e){t.SdkPublic.util.log.err("GOALTEMPLATE — New goalTemplate error",e),o(e)}):(t.SdkPublic.util.log.warn("GOALTEMPLATE — GoalTemplate not valid"),o("GoalTemplate not valid"))})})},this.set=function(e){t.SdkPublic.util.extend(n,e)};var n=this,r=["_id","creationDate","updateDate","actions","active","valid"]}var n={new:function(t){return new e(t)},get:function(n,r){var o=t.SdkPublic.util.transformQueryToString(n);return r&&(o=o||{},t.SdkPublic.util.extend(o,r)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,i){t.SdkPublic.util.log.info("GOALTEMPLATE — Getting goalTemplates",n),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.GOALTEMPLATE_GET,null,null,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("GOALTEMPLATE — GoalTemplates received",n.data.data);var o=[];for(var i in n.data.data)o.push(new e(n.data.data[i]));r(o)}).catch(function(e){t.SdkPublic.util.log.err("GOALTEMPLATE — GoalTemplates receive error",e),i(e)})})})}};t.exportModule("SdkPublic",n,"GoalTemplate")}(u,Promise),function(t){function e(e){t.SdkPublic.util.extend(this,e);var n=this;this.create=function(e,r){var o=t.SdkPublic.util.transformQueryToString(r);return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,i){t.SdkPublic.util.log.info("DOCUMENTEVENT — Creating DocumentEvent"),n.isValid()?t.SdkActions.execute(t.SdkPublic.actions.DOCUMENTEVENT_CREATE,e,n,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("DOCUMENTEVENT — New DocumentEvent created",e.data.data._id),t.SdkPublic.util.extend(n,e.data.data),r(n)}).catch(function(e){t.SdkPublic.util.log.err("DOCUMENTEVENT — New DocumentEvent error",e),i(e)}):(t.SdkPublic.util.log.warn("DOCUMENTEVENT — DocumentEvent not valid"),i("DocumentEvent not valid"))})})},this.isValid=function(){return!0}}var n={new:function(t){return new e(t)},get:function(n,r){var o=t.SdkPublic.util.transformQueryToString(n);return r&&(o=o||{},t.SdkPublic.util.extend(o,r)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,i){t.SdkPublic.util.log.info("DOCUMENTEVENTS — Getting goalTemplates",n),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.DOCUMENTEVENT_GET_FULL,null,null,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("DOCUMENTEVENTS — received",n.data.data);var o=[];for(var i in n.data.data)o.push(new e(n.data.data[i]));r(o)}).catch(function(e){t.SdkPublic.util.log.err("DOCUMENTEVENTS — receive error",e),i(e)})})})}};t.exportModule("SdkPublic",n,"DocumentEvent")}(u,Promise),function(t){function e(e){t.SdkPublic.util.extend(this,e)}var n={new:function(t){return new e(t)},get:function(n,r,o){var i=t.SdkPublic.util.transformQueryToString(n);return r&&(i=i||{},t.SdkPublic.util.extend(i,r)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,u){t.SdkPublic.util.log.info("GROUP — Getting Groups",n),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.GROUP_GET,o,null,i,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("GROUP — Groups received",n.data.data);var o=[];for(var i in n.data.data)o.push(new e(n.data.data[i]));r(o)}).catch(function(e){t.SdkPublic.util.log.err("GROUP — Groups receive error",e),u(e)})})})}};t.exportModule("SdkPublic",n,"Group")}(u,Promise),function(t){var e={getLinearHistory:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("metric — Getting metrics",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.LINEAR_HISTORY_STATS_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("metric — linear history received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("metric — linear history error",e),o(e)})})})},getKnewtonScore:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("metric — Getting knewton metrics",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.KNEWTON_STATS_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("metric — knewton metrics received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("metric — knewton metrics error",e),o(e)})})})},getLinearStatsForGoals:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("metric — Getting metrics stats goals",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.LINEAR_STATS_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){var r,o;t.SdkPublic.util.log.info("metric — linear stats goals received",e.data.data),n((r=e.data.data,o={},r.map(function(t){o[t.userId]={overallAvg:t.overallAvg,goals:t.goals}}),o))}).catch(function(e){t.SdkPublic.util.log.err("metric — linear stats goals error",e),o(e)})})})},getLinearStatsForConcepts:function(e,n,r){var o=t.SdkPublic.util.transformQueryToString(e);return n&&(o=o||{},t.SdkPublic.util.extend(o,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,i){t.SdkPublic.util.log.info("metric — Getting metrics stats concepts",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.LINEAR_STATS_GET,null,null,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("metric — linear stats concepts received",e.data.data),n(function(t,e){var n={};return t.map(function(t){n[t.userId+"-"+e]=t.concepts}),n}(e.data.data,r))}).catch(function(e){t.SdkPublic.util.log.err("metric — linear stats concepts error",e),i(e)})})})},getLinearTour:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("metric — Getting metrics linear tour",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.LINEAR_TOUR_STATS_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("metric — linear tour stats received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("metric — linear stats goals error",e),o(e)})})})},getUserStats:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("metric — user stats",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.USER_STATS_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("metric — user stats received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("metric — user stats error",e),o(e)})})})},getLoStats:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("metric — lo stats",e),t.SdkActions.execute(t.SdkPublic.actions.LO_STATS_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("metric — lo stats received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("metric — lo stats error",e),o(e)})})})},getGoalStats:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("metric — goal stats",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.GOAL_STATS_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("metric — goal stats received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("metric — goal stats error",e),o(e)})})})},getClassStats:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("metric — class stats",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.CLASS_STATS_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("metric — class stats received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("metric — class stats error",e),o(e)})})})},getEventStats:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("metric — event stats",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.EVENT_STATS_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("metric — event stats received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("metric — event stats error",e),o(e)})})})}};t.exportModule("SdkPublic",e,"Metric")}(u,Promise),function(t){function e(e){t.SdkPublic.util.extend(this,{summaryEntries:{}},e)}var n={get:function(n,r){var o=t.SdkPublic.util.transformQueryToString(n);return r&&(o=o||{},t.SdkPublic.util.extend(o,r)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,i){t.SdkPublic.util.log.info("SUMMARY — Getting summary",n),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.SUMMARY_GET,null,null,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("SUMMARY — Summary received",n.data.data);var o,i,u=new e({summaryEntries:(o=n.data.data,i={},o.map(function(t){i[t.section]=t}),i)});r(u)}).catch(function(e){t.SdkPublic.util.log.err("SUMMARY — Summary receive error",e),i(e)})})})}};t.exportModule("SdkPublic",n,"Summary")}(u,Promise),function(t){function e(e){t.SdkPublic.util.extend(this,{_id:null,creationDate:null,updateDate:null,graphId:null,partnerId:null,urlLookup:null,urlPreview:null,name:null,knewtonData:{id:null,taxonRecommendable:null,poolSize:null,learningObjective:null,notion:null,moduleType:null,moduleType2:null,correctAnswer:null,class:null,typology:null,difficultyLevel:null,taxons:[],componentModules:[]},metaData:{bankData:[]},actions:[]},e),this.serialize=function(e){return t.SdkPublic.util.serialize(["_id",{name:"creationDate",type:"date"},{name:"updateDate",type:"date"},"knewtonData","metaData","graphId","partnerId","urlLookup","urlPreview","name","actions"],n,e)},this.isValid=function(){if(!n.metaData)return!1;if(0===n.metaData.bankData.length||!n.metaData.bankData[0].value||!n.metaData.bankData[0].value.name||0===n.metaData.bankData[0].value.name.length)return!1;return!0},this.set=function(e){t.SdkPublic.util.extend(n,e)};var n=this}var n={new:function(t){return new e(t)},get:function(n,r){var o=t.SdkPublic.util.transformQueryToString(n);return r&&(o=o||{},t.SdkPublic.util.extend(o,r)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,i){t.SdkPublic.util.log.info("MODULE — Getting modules",n),t.SdkActions.execute(t.SdkPublic.actions.MODULE_GET,null,null,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("MODULE — Modules received",n.data.data);var o=[];for(var i in n.data.data)o.push(new e(n.data.data[i]));r(o)}).catch(function(e){t.SdkPublic.util.log.err("MODULE — Modules receive error",e),i(e)})})})},search:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("MODULE — Getting modules",e),t.SdkActions.execute(t.SdkPublic.actions.RESOURCE_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("MODULE — Modules received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("MODULE — Modules receive error",e),o(e)})})})}};t.exportModule("SdkPublic",n,"Module")}(u,Promise),function(t){function e(e){t.SdkPublic.util.extend(this,e);var n=this;this.create=function(e,o){return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(i,u){t.SdkPublic.util.log.info("USERDOCUMENT — Creating UserDocument"),n.isValid()?t.SdkActions.execute(t.SdkPublic.actions.USERDOCUMENT_CREATE,e,n.serialize(r),null,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader(),o).then(function(e){t.SdkPublic.util.log.info("USERDOCUMENT — New UserDocument created",e.data.data._id),t.SdkPublic.util.extend(n,e.data.data),i(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("USERDOCUMENT — New UserDocument error",e),u(e)}):(t.SdkPublic.util.log.warn("USERDOCUMENT — UserDocument not valid"),u("UserDocument not valid"))})})},this.update=function(e,o,i){var u=t.SdkPublic.util.transformQueryToString(e);o&&(u=u||{},t.SdkPublic.util.extend(u,o));return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(o,a){t.SdkPublic.util.log.info("USERDOCUMENT — Update UserDocument",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.USERDOCUMENT_PUT,n,n.serialize(r),u,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader(),i).then(function(e){t.SdkPublic.util.log.info("USERDOCUMENT — UserDocuments received",e.data.data),e.data.data.actions||(e.data.data.actions=n.actions),o(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("USERDOCUMENT — UserDocuments receive error",e),a(e)})})})},this.delete=function(e,o){var i=t.SdkPublic.util.transformQueryToString(e);o&&(i=i||{},t.SdkPublic.util.extend(i,o));return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(o,u){t.SdkPublic.util.log.info("USERDOCUMENT — DELETE UserDocument",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.USERDOCUMENT_DELETE,n,n.serialize(r),i,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("USERDOCUMENT — DELETE - success",e.data.data),e.data.data.actions||(e.data.data.actions=n.actions),o(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("USERDOCUMENT — DELETE - receive error",e),u(e)})})})},this.isValid=function(){return!0},this.serialize=function(e){return t.SdkPublic.util.serialize(Object.keys(n),n,e)};var r=["_id","creationDate","updateDate","createdAt","updatedAt","actions","create","update","delete","isValid","serialize"]}var n={new:function(t){return new e(t)},search:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("USERDOCUMENT — Getting UserDocuments",e),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.USERDOCUMENT_GET_FULL,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("USERDOCUMENT — UserDocuments received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("USERDOCUMENT — UserDocuments receive error",e),o(e)})})})}};t.exportModule("SdkPublic",n,"UserDocument")}(u,Promise),function(t){function e(e){t.SdkPublic.util.extend(this,{_id:null,login:null,password:null,username:null,firstname:null,lastname:null,email:null,jsonContainer:null,knewtonData:null,metaData:null,authMethod:null,actions:[]},e),this.isValid=function(){return!0},this.create=function(){return new Promise(function(e,r){t.SdkPublic.util.log.info("USER — Creating USER"),n.isValid()?t.SdkActions.execute(t.SdkPublic.actions.USER_CREATE,n,n.serialize(o),null,null).then(function(r){t.SdkPublic.util.log.info("USER — New User created",r.data.data._id),t.SdkPublic.util.extend(n,r.data.data),e(n)}).catch(function(e){t.SdkPublic.util.log.err("USER — New User error",e),r(e)}):(t.SdkPublic.util.log.warn("USER — user not valid"),r("User not valid"))})},this.update=function(e){return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(o,i){if(t.SdkPublic.util.log.info("USER — Updating user"),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),n.isValid()){var u=n.serialize(r);e&&(u.newPassword=e),t.SdkActions.execute(t.SdkPublic.actions.USER_UPDATE,n,u,null,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("USER — User updated",e.data.data._id),t.SdkPublic.util.extend(n,e.data.data),t.SdkExoAuth&&t.SdkExoAuth.util&&(t.SdkExoAuth.util.user=n),o(n)}).catch(function(e){t.SdkPublic.util.log.err("USER — User update error",e),i(e)})}else t.SdkPublic.util.log.warn("USER — User not valid"),i("User not valid")})})},this.delete=function(){return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(e,r){t.SdkPublic.util.log.info("USER — Deleting user"),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),n.isValid()?t.SdkActions.execute("USER.DELETE",n,n.serialize(),null,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(r){t.SdkPublic.util.log.info("USER — User Deleted",r.data.data._id),e(n)}).catch(function(e){t.SdkPublic.util.log.err("USER — User delete error",e),r(e)}):(t.SdkPublic.util.log.warn("USER — User not valid"),r("User not valid"))})})},this.set=function(e){t.SdkPublic.util.extend(n,e)},this.serialize=function(e){return t.SdkPublic.util.serialize(["_id","login","password","username","firstname","lastname","email","jsonContainer","knewtonData","actions","metaData","authMethod"],n,e)};var n=this,r=["_id","jsonContainer","knewtonData","actions"],o=["_id","actions"]}var n={new:function(t){return new e(t)},get:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("USER — Getting User",e),t.SdkActions.execute(t.SdkPublic.actions.BANK_USER_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("USER — User received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("USER — User receive error",e),o(e)})})})},getUserProfile:function(e,n){var r=t.SdkPublic.util.transformQueryToString(e);return n&&(r=r||{},t.SdkPublic.util.extend(r,n)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(n,o){t.SdkPublic.util.log.info("USER — Getting User",e),t.SdkActions.execute(t.SdkPublic.actions.USER_GET,null,null,r,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("USER — User received",e.data.data),n(e.data.data)}).catch(function(e){t.SdkPublic.util.log.err("USER — User receive error",e),o(e)})})})}};t.exportModule("SdkPublic",n,"User")}(u,Promise),function(t,e){function n(n){t.SdkPublic.util.extend(this,{_id:null,ean:null,creationDate:new Date,updateDate:new Date,createdAt:null,updatedAt:null,userId:null,goalTemplateId:null,status:null,recommendations:[],lessons:[],metrics:null,userGoalType:null,knewtonMetrics:{},knewtonData:{goalId:null,learningInstanceId:null,registrationId:null,recommendation:null},tags:[],executionMode:null,isRemed:null,level:null,currentIndex:null,actions:[],stats:{},losStats:[],userLos:null},n),this.serialize=function(e){return t.SdkPublic.util.serialize(["_id","ean",{name:"creationDate",type:"date"},{name:"updateDate",type:"date"},{name:"createdAt",type:"date"},{name:"updatedAt",type:"date"},{name:"userId",type:"obj2id"},"goalTemplateId","status","recommendations","metrics","knewtonMetrics","knewtonData","actions","userGoalType","lessons","isRemed","level","currentIndex","stats","losStats","userLos","tags","executionMode"],r,e)},this.isValid=function(){if(!r.goalTemplateId)return!1;return!0},this.create=function(){return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new e(function(e,n){t.SdkPublic.util.log.info("USERGOAL — Creating UserGoal"),r.isValid()?t.SdkActions.execute(t.SdkPublic.actions.USERGOAL_CREATE,r,r.serialize(o),null,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("USERGOAL — New UserGoal created",n.data.data._id),t.SdkPublic.util.extend(r,n.data.data),e(r)}).catch(function(e){t.SdkPublic.util.log.err("USERGOAL — New UserGoal error",e),n(e)}):(t.SdkPublic.util.log.warn("USERGOAL — UserGoal not valid"),n("UserGoal not valid"))})})},this.event=function(e,n,o,i,u,a,s){var c=r.serialize();return t.SdkPublic.sendEvent(c._id,c.userId,e,n,o,i,u,!0,c.goalTemplateId,a,s).then(function(e){return t.SdkPublic.util.log.info("USERGOAL — New Event created, UserGoal returned",e),t.SdkPublic.util.extend(r,e),r})},this.eventV2=function(e,n,o,i,u,a){var s=r.serialize();return t.SdkPublic.sendEvent(s._id,s.userId,e,n,o,null,i,null,s.goalTemplateId,u,a).then(function(t){return t})},this.set=function(e){t.SdkPublic.util.extend(r,e)},this.getRecommendations=function(n){var o=t.SdkPublic.util.transformQueryToString(n);return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new e(function(e,n){t.SdkPublic.util.log.info("USERGOAL — Getting recos"),t.SdkActions.execute(t.SdkPublic.actions.USERGOALRECO_GET,r,null,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("USERGOAL — Got UserGoal",n.data.data._id),t.SdkPublic.util.extend(r,n.data.data),e(r)}).catch(function(e){t.SdkPublic.util.log.err("USERGOAL — Get recos error",e),n(e)})})})},this.getMetrics=function(n){var o=t.SdkPublic.util.transformQueryToString(n);return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new e(function(e,n){t.SdkPublic.util.log.info("USERGOAL — Getting metrics"),t.SdkActions.execute(t.SdkPublic.actions.USERGOALMETRIC_GET,r,null,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("USERGOAL — Got UserGoal",n.data.data._id),t.SdkPublic.util.extend(r,n.data.data),e(r)}).catch(function(e){t.SdkPublic.util.log.err("USERGOAL — Get metrics error",e),n(e)})})})};var r=this,o=["_id","creationDate","updateDate","createdAt","updatedAt","actions","status","recommendations","metrics","knewtonMetrics","knewtonData","lessons","stats","losStats","userLos"]}var r={new:function(t){return new n(t)},get:function(r,o){var i=t.SdkPublic.util.transformQueryToString(r);return o&&(i=i||{},t.SdkPublic.util.extend(i,o)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new e(function(e,o){t.SdkPublic.util.log.info("USERGOAL — Getting UserGoal",r),t.SdkActions.execute(t.SdkPublic.actions.USERGOAL_GET,null,null,i,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(r){t.SdkPublic.util.log.info("USERGOAL — UserGoals received",r.data.data);var o=[];for(var i in r.data.data)o.push(new n(r.data.data[i]));e(o)}).catch(function(e){t.SdkPublic.util.log.err("USERGOAL — UserGoals receive error",e),o(e)})})})}};t.exportModule("SdkPublic",r,"UserGoal")}(u,Promise),function(t){function e(e){t.SdkPublic.util.extend(this,e),this.create=function(e){return t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(o,i){t.SdkPublic.util.log.info("USERSPACE — Creating UserSpace"),n.isValid()?t.SdkActions.execute(t.SdkPublic.actions.USERSPACE_CREATE,e,n.serialize(r),null,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(e){t.SdkPublic.util.log.info("USERSPACE — New UserSpace created",e.data.data._id),t.SdkPublic.util.extend(n,e.data.data),o(n)}).catch(function(e){t.SdkPublic.util.log.err("USERSPACE — New UserSpace error",e),i(e)}):(t.SdkPublic.util.log.warn("USERSPACE — UserSpace not valid"),i("UserGoal not valid"))})})},this.isValid=function(){if(!n.userId)return!1;return!0},this.serialize=function(e){return t.SdkPublic.util.serialize(Object.keys(n),n,e)};var n=this,r=["_id","creationDate","updateDate","createdAt","updatedAt","actions","create","update","isValid","serialize"]}var n={new:function(t){return new e(t)},get:function(n,r,o){var i=t.SdkPublic.util.transformQueryToString(n);return r&&(i=i||{},t.SdkPublic.util.extend(i,r)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,u){t.SdkPublic.util.log.info("USERSPACE — Getting UserSpaces",n),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.USERSPACE_GET,o,null,i,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("USERSPACE — UserSpaces received",n.data.data);var o=[];for(var i in n.data.data)o.push(new e(n.data.data[i]));r(o)}).catch(function(e){t.SdkPublic.util.log.err("USERSPACE — UserSpaces receive error",e),u(e)})})})},search:function(n,r){var o=t.SdkPublic.util.transformQueryToString(n);return r&&(o=o||{},t.SdkPublic.util.extend(o,r)),t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return new Promise(function(r,i){t.SdkPublic.util.log.info("USERSPACE — Getting UserSpaces",n),t.SdkPublic.util.log.info("SDK_PUBLIC - getAuthorizationHeader",t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()),t.SdkActions.execute(t.SdkPublic.actions.USERSPACE_GET_FULL,null,null,o,t.SdkPublic.util.sdkExoAuth.getAuthorizationHeader()).then(function(n){t.SdkPublic.util.log.info("USERSPACE — UserSpaces received",n.data.data);var o=[];for(var i in n.data.data)o.push(new e(n.data.data[i]));r(o)}).catch(function(e){t.SdkPublic.util.log.err("USERSPACE — UserSpaces receive error",e),i(e)})})})}};t.exportModule("SdkPublic",n,"UserSpace")}(u,Promise),function(t){var e=n(279),r=new function(){this.emitter=new e,this.emit=function(e,n){t.SdkPublic.util.log.info("Event emitted",e,n),this.emitter.emit(e,n)},this.on=function(e,n,r){t.SdkPublic.util.log.info("Event listening",e,r),this.emitter.on(e,n,r)},this.removeListener=function(e,n,r){t.SdkPublic.util.log.info("Event removed",e),this.emitter.removeListener(e,n,r)}};t.exportModule("SdkPublic",r,"eventCustom")}(u),function(t){t.exportModule("SdkPublic",{DISPLAY_ERROR:"app.modal.error",SHOW_LOADER:"app.loader.show",HIDE_LOADER:"app.loader.hide",LOADING_PROGRESS_CHANGE:"app.loading.progress.change"},"eventConst")}(u),function(t){var e=t.SdkActions,n=t.SdkPublic.eventCustom,r=t.SdkPublic.eventConst;t.exportModule("SdkPublic",function(){e.interceptors.push({request:function(e){t.SdkPublic.util.log.info("[Request send]",e),t.SdkPublic.util.axiosInterceptors.request.apply(null,arguments);var o=!0;e&&e.params&&e.params.ids&&(o=!1);var i=t.SdkPublic.util.bankId;return o&&i&&(e.params=e.params||{},e.params.bankId=i),(e.params||{}).noLoader||n.emit(r.SHOW_LOADER,"main-loader"),e},requestError:function(e){return t.SdkPublic.util.log.info("[Request error]",e),t.SdkPublic.util.axiosInterceptors.requestError.apply(null,arguments),((e.config||{}).params||{}).noLoader||n.emit(r.HIDE_LOADER,"main-loader"),e},response:function(e){return t.SdkPublic.util.log.info("[Response received]",e),t.SdkPublic.util.axiosInterceptors.response.apply(null,arguments),e&&e.data&&e.data.display&&e.data.message&&n.emit(r.DISPLAY_ERROR,{title:e.data.message,message:e.data.errorDebug}),((e.config||{}).params||{}).noLoader||n.emit(r.HIDE_LOADER,"main-loader"),e},responseError:function(e){if(t.SdkPublic.util.axiosInterceptors.responseError.apply(null,arguments),e&&e.request&&e.request.responseURL&&t.SdkActions.url&&!e.request.responseURL.startsWith(t.SdkActions.url))return e;((e.config||{}).params||{}).noLoader||n.emit(r.HIDE_LOADER,"main-loader");var o,i=null;return e.data&&e.data.message&&(i=e.data.message),401===e.status||e.data&&e.data.statusCode&&401===e.data.statusCode?e:(e.status?o=e.status:e.response&&e.response.status&&(o=e.response.status),i||(i=o>=500?"Une erreur est survenue sur le serveur, veuillez réessayer dans quelques instants":o>=400?401===o?"Vous devez être authentifié pour accéder à cette page, vous allez être redirigé vers la page de connexion":"La demande semble invalide, veuillez réessayer dans quelques instants":"Le serveur ne répond pas, veuillez réessayer dans quelques instants"),n.emit(r.DISPLAY_ERROR,{title:"Erreur",message:i,status:o,error:e}),e)},progress:function(e){t.SdkPublic.util.axiosInterceptors.progress.apply(null,arguments);var o=e.loaded/e.total*100;t.SdkPublic.util.log.info("[Progress] "+o.toString()+"%"),n.emit(r.LOADING_PROGRESS_CHANGE,e)}})},"interceptors")}(u),function(t,e,n){var o={debugMode:!1,sdkExoAuth:null,getUser:function(){return t.SdkExoAuth.util.user?n.resolve(t.SdkExoAuth.util.user):t.SdkPublic.util.sdkExoAuth?t.SdkPublic.util.sdkExoAuth.executePromiseAndUpdateTokenIfNeeded(function(){return n.resolve(t.SdkExoAuth.util.user)}):new n(function(e){setTimeout(function(){e(t.SdkPublic.util.getUser())},200)})},cleanSdkExoAuth:function(){t.SdkExoAuth.util.user=null,t.SdkPublic.util.sdkExoAuth.authToken=null,t.SdkPublic.util.sdkExoAuth.userToken=null,t.SdkPublic.util.sdkExoAuth.username=null,t.SdkPublic.util.sdkExoAuth.password=null},getUserToken:function(){return t.SdkPublic.util.sdkExoAuth.userToken},setUserToken:function(e){t.SdkPublic.util.sdkExoAuth.userToken=e},extend:function(){for(var t=arguments[0],e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n={};return n["Content-Type"]=t.contentType?t.contentType:"application/json",n["Ocp-Apim-Subscription-Key"]=e.instance.ocpApimSubscriptionKey,n.ApiKey=e.instance.apiKey,e.instance.token&&(n.Authorization=e.instance.token),n}},{key:"updateToken",value:function(n){e.instance&&(e.instance.token=n),t.browser&&a.set("hubToken",n,{secure:!0})}},{key:"deleteToken",value:function(){e.instance&&(e.instance.token=null),t.browser&&a.remove("hubToken"),o.info("TOKEN - DELETED")}},{key:"get",value:function(t){var n=this;return o.info("GET - ",this.endpoints.get),new Promise(function(r,i){return e.instance.client.get(n.endpoints.get,{headers:e.getHeaders(),params:t}).then(function(t){o.success("GET - ",n.endpoints.get,": OK"),o.debug(t),e.updateToken(t.headers.authorization),n.getCallback&&n.getCallback(e.instance,t),r(t.data)}).catch(function(t){t.response&&401===t.response.status&&e.deleteToken(),o.error("GET -",n.endpoints.get,": KO"),i(t)})})}},{key:"post",value:function(t){var n=this;return o.info("POST -",this.endpoints.post),new Promise(function(r,i){return e.instance.client.post(n.endpoints.post,t,{headers:e.getHeaders()}).then(function(t){o.success("POST -",n.endpoints.post,": OK"),o.debug(t),e.updateToken(t.headers.authorization),n.postCallback&&n.postCallback(e.instance,t),r(t.data)}).catch(function(t){t.response&&401===t.response.status&&e.deleteToken(),o.error("POST -",n.endpoints.post,": KO"),i(t)})})}},{key:"postFile",value:function(t){var n=this;return o.info("POST FILE - ",this.endpoints.postFile),new Promise(function(r,i){var u=new FormData;return u.append("file",t),e.instance.client.post(n.endpoints.postFile,u,{headers:e.getHeaders({contentType:"multipart/form-data"})}).then(function(t){o.success("POST FILE - ",n.endpoints.postFile,": OK"),o.debug(t),n.postFileCallback&&n.postFileCallback(e.instance,t),r(t.data)}).catch(function(t){t.response&&401===t.response.status&&e.deleteToken(),o.error("POST FILE - ",n.endpoints.postFile,": OK"),i(t)})})}},{key:"delete",value:function(){var t=this;return o.info("DELETE - ",this.endpoints.delete),new Promise(function(n,r){return e.instance.client.delete(t.endpoints.delete,{headers:e.getHeaders()}).then(function(r){o.success("DELETE - ",t.endpoints.delete,": OK"),o.debug(r),t.deleteCallback&&t.deleteCallback(e.instance,r),n(r.data)}).catch(function(e){o.error("DELETE -",t.endpoints.delete,": KO"),r(e)})})}}],null&&r(n.prototype,null),s&&r(n,s),e}()}).call(this,n(2))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var s,c=[],l=!1,d=-1;function f(){l&&s&&(l=!1,s.length?c=s.concat(c):d=-1,c.length&&p())}function p(){if(!l){var t=a(f);l=!0;for(var e=c.length;e;){for(s=c,c=[];++d1)for(var n=1;n=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(t){s.headers[t]={}}),r.forEach(["post","put","patch"],function(t){s.headers[t]=r.merge(i)}),t.exports=s}).call(this,n(2))},function(t,e,n){t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r0&&void 0!==arguments[0]?arguments[0]:t.browser?a.get("hubToken"):null,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https://api-edu.rece.hachette-livre.fr/hub",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"v1",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"5166288953fe49069d00576ccb7ad1ad",d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJIVUItTlAiLCJhdWQiOiJIVUItTlAifQ.JyoRoTNZzW3xBHQbCG9778MpDsfX8fq8i9edxI3gQbI",f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"https://monespace-edu.com",p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2e4,h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"debug";(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,n),this.version=c,this.hostName=s,this.ocpApimSubscriptionKey=l,this.apiKey=d,this.origin=f,this.timeout=p,this.logLevel=h,this.user=e.a,this.product=r.a,this.upload=o.a,i.a.initialize(u,this,[this.user,this.product,this.upload])}var s,c;return s=n,(c=[{key:"token",get:function(){return i.a.instance?i.a.instance.token:null},set:function(t){null!==t?i.a.updateToken(t):i.a.deleteToken()}}])&&u(s.prototype,c),n}();"undefined"!=typeof window&&(window.SdkHub=function(t,e,n,r,o,i,u,a){return new s(t,e,n,r,o,i,u,a)});try{exports.SdkHub=function(t,e,n,r,o,i,u,a){return new s(t,e,n,r,o,i,u,a)}}catch(t){}}.call(this,n(2))},function(t,e,n){t.exports=function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};for(var r in t(this,e),this._reporters=n.reporters||[],this._types=n.types||u,this._level=null!=n.level?n.level:3,this._defaults=n.defaults||{},this._async=void 0!==n.async?n.async:null,this._stdout=n.stdout,this._stderr=n.stderr,this._mockFn=n.mockFn,this._throttle=n.throttle||2e3,this._types)this[r]=this._wrapLogFn(Object.assign({type:r},this._types[r],this._defaults));this._mockFn&&this.mockTypes(),this._lastLogSerialized=null,this._lastLog=null,this._lastLogTime=null,this._lastLogCount=0,this._throttleTimeout=null}return n(e,[{key:"create",value:function(t){return new e(Object.assign({reporters:this._reporters,level:this._level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},t))}},{key:"withDefaults",value:function(t){return this.create({defaults:Object.assign({},this._defaults,t)})}},{key:"withTag",value:function(t){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+t:t})}},{key:"addReporter",value:function(t){return this._reporters.push(t),this}},{key:"removeReporter",value:function(t){if(t){var e=this._reporters.indexOf(t);if(e>=0)return this._reporters.splice(e,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(t){return this._reporters=Array.isArray(t)?t:[t],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var t in this._types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t]}},{key:"restoreConsole",value:function(){for(var t in this._types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(t,e){var n=this;t&&(t.__write||(t.__write=t.write),t.write=function(t){n[e](String(t).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}},{key:"pauseLogs",value:function(){a=!0}},{key:"resumeLogs",value:function(){a=!1;var t=s.splice(0),e=!0,n=!1,r=void 0;try{for(var o,i=t[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var u=o.value;u[0]._logFn(u[1],u[2])}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}},{key:"mockTypes",value:function(t){if(this._mockFn=t||this._mockFn,"function"==typeof this._mockFn)for(var e in this._types)this[e]=this._mockFn(e,this._types[e])||this[e]}},{key:"_wrapLogFn",value:function(t){return function(){if(!a)return this._logFn(t,arguments);s.push([this,t,arguments])}.bind(this)}},{key:"_logFn",value:function(t,e){var n=this;if(t.level>this._level)return!!this._async&&Promise.resolve(!1);var u=Object.assign({date:new Date,args:[]},t);1===e.length&&function(t){return e=t,!("[object Object]"!==Object.prototype.toString.call(e)||!t.message&&!t.args||t.stack);var e}(e[0])?Object.assign(u,e[0]):u.args=Array.from(e),u.message&&(u.args.unshift(u.message),delete u.message),u.additional&&(Array.isArray(u.additional)||(u.additional=u.additional.split("\n")),u.args.push("\n"+u.additional.join("\n")),delete u.additional),u.type="string"==typeof u.type?u.type.toLowerCase():"",u.tag="string"==typeof u.tag?u.tag.toLowerCase():"";var a=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n._lastLogCount&&(n._log(function(t){for(var e=1;en?n=o.level:o.level=0)return;u[e]="set-cookie"===e?(u[e]?u[e]:[]).concat([n]):u[e]?u[e]+", "+n:n}}),u):u}},function(t,e,n){var r=n(0);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){var r=n(0);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,u){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===u&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){var r=n(0);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},function(t,e,n){var r=n(0),o=n(28),i=n(7),u=n(3),a=n(29),s=n(30);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!a(t.url)&&(t.url=s(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||u.adapter)(t).then(function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){var r=n(0);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){var r=n(8);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},function(t,e,n){t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){(function(t,r){var i;(function(){var u="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",l="[object Array]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",v="[object GeneratorFunction]",m="[object Map]",g="[object Number]",_="[object Object]",k="[object RegExp]",b="[object Set]",S="[object String]",y="[object Symbol]",E="[object WeakMap]",A="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",P="[object Float64Array]",T="[object Int8Array]",C="[object Int16Array]",R="[object Int32Array]",U="[object Uint8Array]",O="[object Uint16Array]",D="[object Uint32Array]",I=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,M=/&(?:amp|lt|gt|quot|#39);/g,j=/[&<>"']/g,H=RegExp(M.source),B=RegExp(j.source),G=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,W=RegExp(V.source),J=/^\s+|\s+$/g,Q=/^\s+/,Y=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,tt=/,? & /,et=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ut=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dt=/($^)/,ft=/['\n\r\u2028\u2029\\]/g,pt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ht="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vt="["+ht+"]",mt="["+pt+"]",gt="\\d+",_t="[a-z\\xdf-\\xf6\\xf8-\\xff]",kt="[^\\ud800-\\udfff"+ht+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",bt="\\ud83c[\\udffb-\\udfff]",St="[^\\ud800-\\udfff]",yt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",At="[A-Z\\xc0-\\xd6\\xd8-\\xde]",wt="(?:"+_t+"|"+kt+")",xt="(?:"+At+"|"+kt+")",Pt="(?:"+mt+"|"+bt+")?",Tt="[\\ufe0e\\ufe0f]?"+Pt+"(?:\\u200d(?:"+[St,yt,Et].join("|")+")[\\ufe0e\\ufe0f]?"+Pt+")*",Ct="(?:"+["[\\u2700-\\u27bf]",yt,Et].join("|")+")"+Tt,Rt="(?:"+[St+mt+"?",mt,yt,Et,"[\\ud800-\\udfff]"].join("|")+")",Ut=RegExp("['’]","g"),Ot=RegExp(mt,"g"),Dt=RegExp(bt+"(?="+bt+")|"+Rt+Tt,"g"),It=RegExp([At+"?"+_t+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,At,"$"].join("|")+")",xt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,At+wt,"$"].join("|")+")",At+"?"+wt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",At+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Ct].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+pt+"\\ufe0e\\ufe0f]"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,Ht={};Ht[x]=Ht[P]=Ht[T]=Ht[C]=Ht[R]=Ht[U]=Ht["[object Uint8ClampedArray]"]=Ht[O]=Ht[D]=!0,Ht[c]=Ht[l]=Ht[A]=Ht[d]=Ht[w]=Ht[f]=Ht[p]=Ht[h]=Ht[m]=Ht[g]=Ht[_]=Ht[k]=Ht[b]=Ht[S]=Ht[E]=!1;var Bt={};Bt[c]=Bt[l]=Bt[A]=Bt[w]=Bt[d]=Bt[f]=Bt[x]=Bt[P]=Bt[T]=Bt[C]=Bt[R]=Bt[m]=Bt[g]=Bt[_]=Bt[k]=Bt[b]=Bt[S]=Bt[y]=Bt[U]=Bt["[object Uint8ClampedArray]"]=Bt[O]=Bt[D]=!0,Bt[p]=Bt[h]=Bt[E]=!1;var Gt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ft=parseFloat,zt=parseInt,Kt="object"==o()(t)&&t&&t.Object===Object&&t,qt="object"==("undefined"==typeof self?"undefined":o()(self))&&self&&self.Object===Object&&self,$t=Kt||qt||Function("return this")(),Vt=e&&!e.nodeType&&e,Wt=Vt&&"object"==o()(r)&&r&&!r.nodeType&&r,Jt=Wt&&Wt.exports===Vt,Qt=Jt&&Kt.process,Yt=function(){try{return Wt&&Wt.require&&Wt.require("util").types||Qt&&Qt.binding&&Qt.binding("util")}catch(t){}}(),Xt=Yt&&Yt.isArrayBuffer,Zt=Yt&&Yt.isDate,te=Yt&&Yt.isMap,ee=Yt&&Yt.isRegExp,ne=Yt&&Yt.isSet,re=Yt&&Yt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ie(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function le(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function Oe(t,e){for(var n=t.length;n--&&ke(e,t[n],0)>-1;);return n}var De=Ae({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ie=Ae({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ne(t){return"\\"+Gt[t]}function Le(t){return Nt.test(t)}function Me(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function je(t,e){return function(n){return t(e(n))}}function He(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"}),Ke=function t(e){var n,r=(e=null==e?$t:Ke.defaults($t.Object(),e,Ke.pick($t,Mt))).Array,i=e.Date,pt=e.Error,ht=e.Function,vt=e.Math,mt=e.Object,gt=e.RegExp,_t=e.String,kt=e.TypeError,bt=r.prototype,St=ht.prototype,yt=mt.prototype,Et=e["__core-js_shared__"],At=St.toString,wt=yt.hasOwnProperty,xt=0,Pt=(n=/[^.]+$/.exec(Et&&Et.keys&&Et.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Tt=yt.toString,Ct=At.call(mt),Rt=$t._,Dt=gt("^"+At.call(wt).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nt=Jt?e.Buffer:void 0,Gt=e.Symbol,Kt=e.Uint8Array,qt=Nt?Nt.allocUnsafe:void 0,Vt=je(mt.getPrototypeOf,mt),Wt=mt.create,Qt=yt.propertyIsEnumerable,Yt=bt.splice,me=Gt?Gt.isConcatSpreadable:void 0,Ae=Gt?Gt.iterator:void 0,qe=Gt?Gt.toStringTag:void 0,$e=function(){try{var t=$o(mt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ve=e.clearTimeout!==$t.clearTimeout&&e.clearTimeout,We=i&&i.now!==$t.Date.now&&i.now,Je=e.setTimeout!==$t.setTimeout&&e.setTimeout,Qe=vt.ceil,Ye=vt.floor,Xe=mt.getOwnPropertySymbols,Ze=Nt?Nt.isBuffer:void 0,tn=e.isFinite,en=bt.join,nn=je(mt.keys,mt),rn=vt.max,on=vt.min,un=i.now,an=e.parseInt,sn=vt.random,cn=bt.reverse,ln=$o(e,"DataView"),dn=$o(e,"Map"),fn=$o(e,"Promise"),pn=$o(e,"Set"),hn=$o(e,"WeakMap"),vn=$o(mt,"create"),mn=hn&&new hn,gn={},_n=_i(ln),kn=_i(dn),bn=_i(fn),Sn=_i(pn),yn=_i(hn),En=Gt?Gt.prototype:void 0,An=En?En.valueOf:void 0,wn=En?En.toString:void 0;function xn(t){if(Nu(t)&&!Au(t)&&!(t instanceof Rn)){if(t instanceof Cn)return t;if(wt.call(t,"__wrapped__"))return ki(t)}return new Cn(t)}var Pn=function(){function t(){}return function(e){if(!Iu(e))return{};if(Wt)return Wt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Tn(){}function Cn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Rn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function $n(t,e,n,r,o,i){var u,a=1&e,s=2&e,l=4&e;if(n&&(u=o?n(t,r,o,i):n(t)),void 0!==u)return u;if(!Iu(t))return t;var p=Au(t);if(p){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&wt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return co(t,u)}else{var E=Jo(t),I=E==h||E==v;if(Tu(t))return ro(t,a);if(E==_||E==c||I&&!o){if(u=s||I?{}:Yo(t),!a)return s?function(t,e){return lo(t,Wo(t),e)}(t,function(t,e){return t&&lo(e,fa(e),t)}(u,t)):function(t,e){return lo(t,Vo(t),e)}(t,Fn(u,t))}else{if(!Bt[E])return o?t:{};u=function(t,e,n){var r,o=t.constructor;switch(e){case A:return oo(t);case d:case f:return new o(+t);case w:return function(t,e){var n=e?oo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case x:case P:case T:case C:case R:case U:case"[object Uint8ClampedArray]":case O:case D:return io(t,n);case m:return new o;case g:case S:return new o(t);case k:return function(t){var e=new t.constructor(t.source,ot.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new o;case y:return r=t,An?mt(An.call(r)):{}}}(t,E,a)}}i||(i=new Nn);var N=i.get(t);if(N)return N;i.set(t,u),Bu(t)?t.forEach(function(r){u.add($n(r,e,n,r,t,i))}):Lu(t)&&t.forEach(function(r,o){u.set(o,$n(r,e,n,o,t,i))});var L=p?void 0:(l?s?Ho:jo:s?fa:da)(t);return ue(L||t,function(r,o){L&&(r=t[o=r]),Hn(u,o,$n(r,e,n,o,t,i))}),u}function Vn(t,e,n){var r=n.length;if(null==t)return!r;for(t=mt(t);r--;){var o=n[r],i=e[o],u=t[o];if(void 0===u&&!(o in t)||!i(u))return!1}return!0}function Wn(t,e,n){if("function"!=typeof t)throw new kt(u);return di(function(){t.apply(void 0,n)},e)}function Jn(t,e,n,r){var o=-1,i=ce,u=!0,a=t.length,s=[],c=e.length;if(!a)return s;n&&(e=de(e,Te(n))),r?(i=le,u=!1):e.length>=200&&(i=Re,u=!1,e=new In(e));t:for(;++o-1},On.prototype.set=function(t,e){var n=this.__data__,r=Bn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(dn||On),string:new Un}},Dn.prototype.delete=function(t){var e=Ko(this,t).delete(t);return this.size-=e?1:0,e},Dn.prototype.get=function(t){return Ko(this,t).get(t)},Dn.prototype.has=function(t){return Ko(this,t).has(t)},Dn.prototype.set=function(t,e){var n=Ko(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},In.prototype.add=In.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},In.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.clear=function(){this.__data__=new On,this.size=0},Nn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Nn.prototype.get=function(t){return this.__data__.get(t)},Nn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof On){var r=n.__data__;if(!dn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(t,e),this.size=n.size,this};var Qn=ho(or),Yn=ho(ir,!0);function Xn(t,e){var n=!0;return Qn(t,function(t,r,o){return n=!!e(t,r,o)}),n}function Zn(t,e,n){for(var r=-1,o=t.length;++r0&&n(a)?e>1?er(a,e-1,n,r,o):fe(o,a):r||(o[o.length]=a)}return o}var nr=vo(),rr=vo(!0);function or(t,e){return t&&nr(t,e,da)}function ir(t,e){return t&&rr(t,e,da)}function ur(t,e){return se(e,function(e){return Uu(t[e])})}function ar(t,e){for(var n=0,r=(e=Zr(e,t)).length;null!=t&&ne}function dr(t,e){return null!=t&&wt.call(t,e)}function fr(t,e){return null!=t&&e in mt(t)}function pr(t,e,n){for(var o=n?le:ce,i=t[0].length,u=t.length,a=u,s=r(u),c=1/0,l=[];a--;){var d=t[a];a&&e&&(d=de(d,Te(e))),c=on(d.length,c),s[a]=!n&&(e||i>=120&&d.length>=120)?new In(a&&d):void 0}d=t[0];var f=-1,p=s[0];t:for(;++f=a?s:s*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})}function Tr(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)a!==t&&Yt.call(a,s,1),Yt.call(t,s,1);return t}function Rr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Zo(o)?Yt.call(t,o,1):qr(t,o)}}return t}function Ur(t,e){return t+Ye(sn()*(e-t+1))}function Or(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Ye(e/2))&&(t+=t)}while(e);return n}function Dr(t,e){return fi(ai(t,e,Ma),t+"")}function Ir(t,e,n,r){if(!Iu(t))return t;for(var o=-1,i=(e=Zr(e,t)).length,u=i-1,a=t;null!=a&&++oi?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var u=r(i);++o>>1,u=t[i];null!==u&&!Fu(u)&&(n?u<=e:u=200){var c=e?null:Ro(t);if(c)return Be(c);u=!1,o=Re,s=new In}else s=e?[]:a;t:for(;++r=r?t:Mr(t,e,n)}var no=Ve||function(t){return $t.clearTimeout(t)};function ro(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function oo(t){var e=new t.constructor(t.byteLength);return new Kt(e).set(new Kt(t)),e}function io(t,e){var n=e?oo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function uo(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,i=Fu(t),u=void 0!==e,a=null===e,s=e==e,c=Fu(e);if(!a&&!c&&!i&&t>e||i&&u&&s&&!a&&!c||r&&u&&s||!n&&s||!o)return 1;if(!r&&!i&&!c&&t1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&ti(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=mt(e);++r-1?o[i?e[u]:u]:void 0}}function bo(t){return Mo(function(e){var n=e.length,r=n,o=Cn.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if("function"!=typeof i)throw new kt(u);if(o&&!a&&"wrapper"==Go(i))var a=new Cn([],!0)}for(r=a?r:n;++r1&&k.reverse(),d&&c<_&&(k.length=c),this&&this!==$t&&this instanceof g&&(w=m||_o(w)),w.apply(A,k)}}function yo(t,e){return function(n,r){return function(t,e,n,r){return or(t,function(t,o,i){e(r,n(t),o,i)}),r}(n,t,e(r),{})}}function Eo(t,e){return function(n,r){var o;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=zr(n),r=zr(r)):(n=Fr(n),r=Fr(r)),o=t(n,r)}return o}}function Ao(t){return Mo(function(e){return e=de(e,Te(zo())),Dr(function(n){var r=this;return t(e,function(t){return oe(t,r,n)})})})}function wo(t,e){var n=(e=void 0===e?" ":zr(e)).length;if(n<2)return n?Or(e,t):e;var r=Or(e,Qe(t/Ge(e)));return Le(e)?eo(Fe(r),0,t).join(""):r.slice(0,t)}function xo(t){return function(e,n,o){return o&&"number"!=typeof o&&ti(e,n,o)&&(n=o=void 0),e=Vu(e),void 0===n?(n=e,e=0):n=Vu(n),function(t,e,n,o){for(var i=-1,u=rn(Qe((e-t)/(n||1)),0),a=r(u);u--;)a[o?u:++i]=t,t+=n;return a}(e,n,o=void 0===o?ea))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var l=-1,d=!0,f=2&n?new In:void 0;for(i.set(t,e),i.set(e,t);++l-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(X,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ue(s,function(n){var r="_."+n[0];e&n[1]&&!ce(t,r)&&t.push(r)}),t.sort()}(function(t){var e=r.match(Z);return e?e[1].split(tt):[]}(),n)))}function hi(t){var e=0,n=0;return function(){var r=un(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function vi(t,e){var n=-1,r=t.length,o=r-1;for(e=void 0===e?r:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Hi(t,n)});function $i(t){var e=xn(t);return e.__chain__=!0,e}function Vi(t,e){return e(t)}var Wi=Mo(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Kn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Rn&&Zo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Vi,args:[o],thisArg:void 0}),new Cn(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(void 0),t})):this.thru(o)}),Ji=fo(function(t,e,n){wt.call(t,n)?++t[n]:zn(t,n,1)}),Qi=ko(Ei),Yi=ko(Ai);function Xi(t,e){return(Au(t)?ue:Qn)(t,zo(e,3))}function Zi(t,e){return(Au(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:Yn)(t,zo(e,3))}var tu=fo(function(t,e,n){wt.call(t,n)?t[n].push(e):zn(t,n,[e])}),eu=Dr(function(t,e,n){var o=-1,i="function"==typeof e,u=xu(t)?r(t.length):[];return Qn(t,function(t){u[++o]=i?oe(e,t,n):hr(t,e,n)}),u}),nu=fo(function(t,e,n){zn(t,n,e)});function ru(t,e){return(Au(t)?de:yr)(t,zo(e,3))}var ou=fo(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),iu=Dr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&ti(t,e[0],e[1])?e=[]:n>2&&ti(e[0],e[1],e[2])&&(e=[e[0]]),Pr(t,er(e,1),[])}),uu=We||function(){return $t.Date.now()};function au(t,e,n){return e=n?void 0:e,Oo(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function su(t,e){var n;if("function"!=typeof e)throw new kt(u);return t=Wu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var cu=Dr(function(t,e,n){var r=1;if(n.length){var o=He(n,Fo(cu));r|=32}return Oo(t,r,e,n,o)}),lu=Dr(function(t,e,n){var r=3;if(n.length){var o=He(n,Fo(lu));r|=32}return Oo(e,r,t,n,o)});function du(t,e,n){var r,o,i,a,s,c,l=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new kt(u);function h(e){var n=r,i=o;return r=o=void 0,l=e,a=t.apply(i,n)}function v(t){var n=t-c;return void 0===c||n>=e||n<0||f&&t-l>=i}function m(){var t=uu();if(v(t))return g(t);s=di(m,function(t){var n=e-(t-c);return f?on(n,i-(t-l)):n}(t))}function g(t){return s=void 0,p&&r?h(t):(r=o=void 0,a)}function _(){var t=uu(),n=v(t);if(r=arguments,o=this,c=t,n){if(void 0===s)return function(t){return l=t,s=di(m,e),d?h(t):a}(c);if(f)return no(s),s=di(m,e),h(c)}return void 0===s&&(s=di(m,e)),a}return e=Qu(e)||0,Iu(n)&&(d=!!n.leading,i=(f="maxWait"in n)?rn(Qu(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==s&&no(s),l=0,r=c=o=s=void 0},_.flush=function(){return void 0===s?a:g(uu())},_}var fu=Dr(function(t,e){return Wn(t,1,e)}),pu=Dr(function(t,e,n){return Wn(t,Qu(e)||0,n)});function hu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new kt(u);var n=function n(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(hu.Cache||Dn),n}function vu(t){if("function"!=typeof t)throw new kt(u);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}hu.Cache=Dn;var mu=to(function(t,e){var n=(e=1==e.length&&Au(e[0])?de(e[0],Te(zo())):de(er(e,1),Te(zo()))).length;return Dr(function(r){for(var o=-1,i=on(r.length,n);++o=e}),Eu=vr(function(){return arguments}())?vr:function(t){return Nu(t)&&wt.call(t,"callee")&&!Qt.call(t,"callee")},Au=r.isArray,wu=Xt?Te(Xt):function(t){return Nu(t)&&cr(t)==A};function xu(t){return null!=t&&Du(t.length)&&!Uu(t)}function Pu(t){return Nu(t)&&xu(t)}var Tu=Ze||Qa,Cu=Zt?Te(Zt):function(t){return Nu(t)&&cr(t)==f};function Ru(t){if(!Nu(t))return!1;var e=cr(t);return e==p||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ju(t)}function Uu(t){if(!Iu(t))return!1;var e=cr(t);return e==h||e==v||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ou(t){return"number"==typeof t&&t==Wu(t)}function Du(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Iu(t){var e=o()(t);return null!=t&&("object"==e||"function"==e)}function Nu(t){return null!=t&&"object"==o()(t)}var Lu=te?Te(te):function(t){return Nu(t)&&Jo(t)==m};function Mu(t){return"number"==typeof t||Nu(t)&&cr(t)==g}function ju(t){if(!Nu(t)||cr(t)!=_)return!1;var e=Vt(t);if(null===e)return!0;var n=wt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&At.call(n)==Ct}var Hu=ee?Te(ee):function(t){return Nu(t)&&cr(t)==k},Bu=ne?Te(ne):function(t){return Nu(t)&&Jo(t)==b};function Gu(t){return"string"==typeof t||!Au(t)&&Nu(t)&&cr(t)==S}function Fu(t){return"symbol"==o()(t)||Nu(t)&&cr(t)==y}var zu=re?Te(re):function(t){return Nu(t)&&Du(t.length)&&!!Ht[cr(t)]},Ku=Po(Sr),qu=Po(function(t,e){return t<=e});function $u(t){if(!t)return[];if(xu(t))return Gu(t)?Fe(t):co(t);if(Ae&&t[Ae])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Ae]());var e=Jo(t);return(e==m?Me:e==b?Be:ba)(t)}function Vu(t){return t?(t=Qu(t))===1/0||t===-1/0?1.7976931348623157e308*(t<0?-1:1):t==t?t:0:0===t?t:0}function Wu(t){var e=Vu(t),n=e%1;return e==e?n?e-n:e:0}function Ju(t){return t?qn(Wu(t),0,4294967295):0}function Qu(t){if("number"==typeof t)return t;if(Fu(t))return NaN;if(Iu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Iu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(J,"");var n=ut.test(t);return n||st.test(t)?zt(t.slice(2),n?2:8):it.test(t)?NaN:+t}function Yu(t){return lo(t,fa(t))}function Xu(t){return null==t?"":zr(t)}var Zu=po(function(t,e){if(oi(e)||xu(e))lo(e,da(e),t);else for(var n in e)wt.call(e,n)&&Hn(t,n,e[n])}),ta=po(function(t,e){lo(e,fa(e),t)}),ea=po(function(t,e,n,r){lo(e,fa(e),t,r)}),na=po(function(t,e,n,r){lo(e,da(e),t,r)}),ra=Mo(Kn),oa=Dr(function(t,e){t=mt(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&ti(e[0],e[1],o)&&(r=1);++n1),e}),lo(t,Ho(t),n),r&&(n=$n(n,7,No));for(var o=e.length;o--;)qr(n,e[o]);return n}),ma=Mo(function(t,e){return null==t?{}:function(t,e){return Tr(t,e,function(e,n){return aa(t,n)})}(t,e)});function ga(t,e){if(null==t)return{};var n=de(Ho(t),function(t){return[t]});return e=zo(e),Tr(t,n,function(t,n){return e(t,n[0])})}var _a=Uo(da),ka=Uo(fa);function ba(t){return null==t?[]:Ce(t,da(t))}var Sa=go(function(t,e,n){return e=e.toLowerCase(),t+(n?ya(e):e)});function ya(t){return Ra(Xu(t).toLowerCase())}function Ea(t){return(t=Xu(t))&&t.replace(lt,De).replace(Ot,"")}var Aa=go(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),wa=go(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),xa=mo("toLowerCase"),Pa=go(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Ta=go(function(t,e,n){return t+(n?" ":"")+Ra(e)}),Ca=go(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Ra=mo("toUpperCase");function Ua(t,e,n){return t=Xu(t),void 0===(e=n?void 0:e)?function(t){return Lt.test(t)}(t)?function(t){return t.match(It)||[]}(t):function(t){return t.match(et)||[]}(t):t.match(e)||[]}var Oa=Dr(function(t,e){try{return oe(t,void 0,e)}catch(t){return Ru(t)?t:new pt(t)}}),Da=Mo(function(t,e){return ue(e,function(e){e=gi(e),zn(t,e,cu(t[e],t))}),t});function Ia(t){return function(){return t}}var Na=bo(),La=bo(!0);function Ma(t){return t}function ja(t){return kr("function"==typeof t?t:$n(t,1))}var Ha=Dr(function(t,e){return function(n){return hr(n,t,e)}}),Ba=Dr(function(t,e){return function(n){return hr(t,n,e)}});function Ga(t,e,n){var r=da(e),o=ur(e,r);null!=n||Iu(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=ur(e,da(e)));var i=!(Iu(n)&&"chain"in n&&!n.chain),u=Uu(t);return ue(o,function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=co(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,fe([this.value()],arguments))})}),t}function Fa(){}var za=Ao(de),Ka=Ao(ae),qa=Ao(ve);function $a(t){return ei(t)?Ee(gi(t)):function(t){return function(e){return ar(e,t)}}(t)}var Va=xo(),Wa=xo(!0);function Ja(){return[]}function Qa(){return!1}var Ya,Xa=Eo(function(t,e){return t+e},0),Za=Co("ceil"),ts=Eo(function(t,e){return t/e},1),es=Co("floor"),ns=Eo(function(t,e){return t*e},1),rs=Co("round"),os=Eo(function(t,e){return t-e},0);return xn.after=function(t,e){if("function"!=typeof e)throw new kt(u);return t=Wu(t),function(){if(--t<1)return e.apply(this,arguments)}},xn.ary=au,xn.assign=Zu,xn.assignIn=ta,xn.assignInWith=ea,xn.assignWith=na,xn.at=ra,xn.before=su,xn.bind=cu,xn.bindAll=Da,xn.bindKey=lu,xn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Au(t)?t:[t]},xn.chain=$i,xn.chunk=function(t,e,n){e=(n?ti(t,e,n):void 0===e)?1:rn(Wu(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var i=0,u=0,a=r(Qe(o/e));io?0:o+n),(r=void 0===r||r>o?o:Wu(r))<0&&(r+=o),r=n>r?0:Ju(r);n>>0)?(t=Xu(t))&&("string"==typeof e||null!=e&&!Hu(e))&&!(e=zr(e))&&Le(t)?eo(Fe(t),0,n):t.split(e,n):[]},xn.spread=function(t,e){if("function"!=typeof t)throw new kt(u);return e=null==e?0:rn(Wu(e),0),Dr(function(n){var r=n[e],o=eo(n,0,e);return r&&fe(o,r),oe(t,this,o)})},xn.tail=function(t){var e=null==t?0:t.length;return e?Mr(t,1,e):[]},xn.take=function(t,e,n){return t&&t.length?Mr(t,0,(e=n||void 0===e?1:Wu(e))<0?0:e):[]},xn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Mr(t,(e=r-(e=n||void 0===e?1:Wu(e)))<0?0:e,r):[]},xn.takeRightWhile=function(t,e){return t&&t.length?Vr(t,zo(e,3),!1,!0):[]},xn.takeWhile=function(t,e){return t&&t.length?Vr(t,zo(e,3)):[]},xn.tap=function(t,e){return e(t),t},xn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new kt(u);return Iu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),du(t,e,{leading:r,maxWait:e,trailing:o})},xn.thru=Vi,xn.toArray=$u,xn.toPairs=_a,xn.toPairsIn=ka,xn.toPath=function(t){return Au(t)?de(t,gi):Fu(t)?[t]:co(mi(Xu(t)))},xn.toPlainObject=Yu,xn.transform=function(t,e,n){var r=Au(t),o=r||Tu(t)||zu(t);if(e=zo(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Iu(t)&&Uu(i)?Pn(Vt(t)):{}}return(o?ue:or)(t,function(t,r,o){return e(n,t,r,o)}),n},xn.unary=function(t){return au(t,1)},xn.union=Ni,xn.unionBy=Li,xn.unionWith=Mi,xn.uniq=function(t){return t&&t.length?Kr(t):[]},xn.uniqBy=function(t,e){return t&&t.length?Kr(t,zo(e,2)):[]},xn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Kr(t,void 0,e):[]},xn.unset=function(t,e){return null==t||qr(t,e)},xn.unzip=ji,xn.unzipWith=Hi,xn.update=function(t,e,n){return null==t?t:$r(t,e,Xr(n))},xn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:$r(t,e,Xr(n),r)},xn.values=ba,xn.valuesIn=function(t){return null==t?[]:Ce(t,fa(t))},xn.without=Bi,xn.words=Ua,xn.wrap=function(t,e){return gu(Xr(e),t)},xn.xor=Gi,xn.xorBy=Fi,xn.xorWith=zi,xn.zip=Ki,xn.zipObject=function(t,e){return Qr(t||[],e||[],Hn)},xn.zipObjectDeep=function(t,e){return Qr(t||[],e||[],Ir)},xn.zipWith=qi,xn.entries=_a,xn.entriesIn=ka,xn.extend=ta,xn.extendWith=ea,Ga(xn,xn),xn.add=Xa,xn.attempt=Oa,xn.camelCase=Sa,xn.capitalize=ya,xn.ceil=Za,xn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=Qu(n))==n?n:0),void 0!==e&&(e=(e=Qu(e))==e?e:0),qn(Qu(t),e,n)},xn.clone=function(t){return $n(t,4)},xn.cloneDeep=function(t){return $n(t,5)},xn.cloneDeepWith=function(t,e){return $n(t,5,e="function"==typeof e?e:void 0)},xn.cloneWith=function(t,e){return $n(t,4,e="function"==typeof e?e:void 0)},xn.conformsTo=function(t,e){return null==e||Vn(t,e,da(e))},xn.deburr=Ea,xn.defaultTo=function(t,e){return null==t||t!=t?e:t},xn.divide=ts,xn.endsWith=function(t,e,n){t=Xu(t),e=zr(e);var r=t.length,o=n=void 0===n?r:qn(Wu(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},xn.eq=bu,xn.escape=function(t){return(t=Xu(t))&&B.test(t)?t.replace(j,Ie):t},xn.escapeRegExp=function(t){return(t=Xu(t))&&W.test(t)?t.replace(V,"\\$&"):t},xn.every=function(t,e,n){var r=Au(t)?ae:Xn;return n&&ti(t,e,n)&&(e=void 0),r(t,zo(e,3))},xn.find=Qi,xn.findIndex=Ei,xn.findKey=function(t,e){return ge(t,zo(e,3),or)},xn.findLast=Yi,xn.findLastIndex=Ai,xn.findLastKey=function(t,e){return ge(t,zo(e,3),ir)},xn.floor=es,xn.forEach=Xi,xn.forEachRight=Zi,xn.forIn=function(t,e){return null==t?t:nr(t,zo(e,3),fa)},xn.forInRight=function(t,e){return null==t?t:rr(t,zo(e,3),fa)},xn.forOwn=function(t,e){return t&&or(t,zo(e,3))},xn.forOwnRight=function(t,e){return t&&ir(t,zo(e,3))},xn.get=ua,xn.gt=Su,xn.gte=yu,xn.has=function(t,e){return null!=t&&Qo(t,e,dr)},xn.hasIn=aa,xn.head=xi,xn.identity=Ma,xn.includes=function(t,e,n,r){t=xu(t)?t:ba(t),n=n&&!r?Wu(n):0;var o=t.length;return n<0&&(n=rn(o+n,0)),Gu(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&ke(t,e,n)>-1},xn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Wu(n);return o<0&&(o=rn(r+o,0)),ke(t,e,o)},xn.inRange=function(t,e,n){return e=Vu(e),void 0===n?(n=e,e=0):n=Vu(n),function(t,e,n){return t>=on(e,n)&&t=-9007199254740991&&t<=9007199254740991},xn.isSet=Bu,xn.isString=Gu,xn.isSymbol=Fu,xn.isTypedArray=zu,xn.isUndefined=function(t){return void 0===t},xn.isWeakMap=function(t){return Nu(t)&&Jo(t)==E},xn.isWeakSet=function(t){return Nu(t)&&"[object WeakSet]"==cr(t)},xn.join=function(t,e){return null==t?"":en.call(t,e)},xn.kebabCase=Aa,xn.last=Ri,xn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=Wu(n))<0?rn(r+o,0):on(o,r-1)),e==e?function(t,e,n){for(var r=o+1;r--;)if(t[r]===e)return r;return r}(t,e):_e(t,Se,o,!0)},xn.lowerCase=wa,xn.lowerFirst=xa,xn.lt=Ku,xn.lte=qu,xn.max=function(t){return t&&t.length?Zn(t,Ma,lr):void 0},xn.maxBy=function(t,e){return t&&t.length?Zn(t,zo(e,2),lr):void 0},xn.mean=function(t){return ye(t,Ma)},xn.meanBy=function(t,e){return ye(t,zo(e,2))},xn.min=function(t){return t&&t.length?Zn(t,Ma,Sr):void 0},xn.minBy=function(t,e){return t&&t.length?Zn(t,zo(e,2),Sr):void 0},xn.stubArray=Ja,xn.stubFalse=Qa,xn.stubObject=function(){return{}},xn.stubString=function(){return""},xn.stubTrue=function(){return!0},xn.multiply=ns,xn.nth=function(t,e){return t&&t.length?xr(t,Wu(e)):void 0},xn.noConflict=function(){return $t._===this&&($t._=Rt),this},xn.noop=Fa,xn.now=uu,xn.pad=function(t,e,n){t=Xu(t);var r=(e=Wu(e))?Ge(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return wo(Ye(o),n)+t+wo(Qe(o),n)},xn.padEnd=function(t,e,n){t=Xu(t);var r=(e=Wu(e))?Ge(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=sn();return on(t+o*(e-t+Ft("1e-"+((o+"").length-1))),e)}return Ur(t,e)},xn.reduce=function(t,e,n){var r=Au(t)?pe:we,o=arguments.length<3;return r(t,zo(e,4),n,o,Qn)},xn.reduceRight=function(t,e,n){var r=Au(t)?he:we,o=arguments.length<3;return r(t,zo(e,4),n,o,Yn)},xn.repeat=function(t,e,n){return e=(n?ti(t,e,n):void 0===e)?1:Wu(e),Or(Xu(t),e)},xn.replace=function(){var t=arguments,e=Xu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},xn.result=function(t,e,n){var r=-1,o=(e=Zr(e,t)).length;for(o||(o=1,t=void 0);++r9007199254740991)return[];var n=4294967295,r=on(t,4294967295);t-=4294967295;for(var o=Pe(r,e=zo(e));++n=i)return t;var a=n-Ge(r);if(a<1)return r;var s=u?eo(u,0,a).join(""):t.slice(0,a);if(void 0===o)return s+r;if(u&&(a+=s.length-a),Hu(o)){if(t.slice(a).search(o)){var c,l=s;for(o.global||(o=gt(o.source,Xu(ot.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var d=c.index;s=s.slice(0,void 0===d?a:d)}}else if(t.indexOf(zr(o),a)!=a){var f=s.lastIndexOf(o);f>-1&&(s=s.slice(0,f))}return s+r},xn.unescape=function(t){return(t=Xu(t))&&H.test(t)?t.replace(M,ze):t},xn.uniqueId=function(t){var e=++xt;return Xu(t)+e},xn.upperCase=Ca,xn.upperFirst=Ra,xn.each=Xi,xn.eachRight=Zi,xn.first=xi,Ga(xn,(Ya={},or(xn,function(t,e){wt.call(xn.prototype,e)||(Ya[e]=t)}),Ya),{chain:!1}),xn.VERSION="4.17.15",ue(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){xn[t].placeholder=xn}),ue(["drop","take"],function(t,e){Rn.prototype[t]=function(n){n=void 0===n?1:rn(Wu(n),0);var r=this.__filtered__&&!e?new Rn(this):this.clone();return r.__filtered__?r.__takeCount__=on(n,r.__takeCount__):r.__views__.push({size:on(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Rn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ue(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;Rn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:zo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),ue(["head","last"],function(t,e){var n="take"+(e?"Right":"");Rn.prototype[t]=function(){return this[n](1).value()[0]}}),ue(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Rn.prototype[t]=function(){return this.__filtered__?new Rn(this):this[n](1)}}),Rn.prototype.compact=function(){return this.filter(Ma)},Rn.prototype.find=function(t){return this.filter(t).head()},Rn.prototype.findLast=function(t){return this.reverse().find(t)},Rn.prototype.invokeMap=Dr(function(t,e){return"function"==typeof t?new Rn(this):this.map(function(n){return hr(n,t,e)})}),Rn.prototype.reject=function(t){return this.filter(vu(zo(t)))},Rn.prototype.slice=function(t,e){t=Wu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Rn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=Wu(e))<0?n.dropRight(-e):n.take(e-t)),n)},Rn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Rn.prototype.toArray=function(){return this.take(4294967295)},or(Rn.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=xn[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(xn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,a=e instanceof Rn,s=u[0],c=a||Au(e),l=function(t){var e=o.apply(xn,fe([t],u));return r&&d?e[0]:e};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var d=this.__chain__,f=!!this.__actions__.length,p=i&&!d,h=a&&!f;if(!i&&c){e=h?e:new Rn(this);var v=t.apply(e,u);return v.__actions__.push({func:Vi,args:[l],thisArg:void 0}),new Cn(v,d)}return p&&h?t.apply(this,u):(v=this.thru(l),p?r?v.value()[0]:v.value():v)})}),ue(["pop","push","shift","sort","splice","unshift"],function(t){var e=bt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);xn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Au(o)?o:[],t)}return this[n](function(n){return e.apply(Au(n)?n:[],t)})}}),or(Rn.prototype,function(t,e){var n=xn[e];if(n){var r=n.name+"";wt.call(gn,r)||(gn[r]=[]),gn[r].push({name:e,func:n})}}),gn[So(void 0,2).name]=[{name:"wrapper",func:void 0}],Rn.prototype.clone=function(){var t=new Rn(this.__wrapped__);return t.__actions__=co(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=co(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=co(this.__views__),t},Rn.prototype.reverse=function(){if(this.__filtered__){var t=new Rn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Rn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Au(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},xn.prototype.plant=function(t){for(var e,n=this;n instanceof Tn;){var r=ki(n);r.__index__=0,r.__values__=void 0,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},xn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Rn){var e=t;return this.__actions__.length&&(e=new Rn(this)),(e=e.reverse()).__actions__.push({func:Vi,args:[Ii],thisArg:void 0}),new Cn(e,this.__chain__)}return this.thru(Ii)},xn.prototype.toJSON=xn.prototype.valueOf=xn.prototype.value=function(){return Wr(this.__wrapped__,this.__actions__)},xn.prototype.first=xn.prototype.head,Ae&&(xn.prototype[Ae]=function(){return this}),xn}();$t._=Ke,void 0===(i=function(){return Ke}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(34),n(35)(t))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==("undefined"==typeof window?"undefined":o()(window))&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}}])},29:function(t,e,n){"use strict";n.d(e,"o",function(){return l}),n.d(e,"b",function(){return d}),n.d(e,"j",function(){return f}),n.d(e,"g",function(){return p}),n.d(e,"e",function(){return h}),n.d(e,"l",function(){return v}),n.d(e,"h",function(){return m}),n.d(e,"c",function(){return g}),n.d(e,"a",function(){return _}),n.d(e,"f",function(){return k}),n.d(e,"i",function(){return b}),n.d(e,"d",function(){return S}),n.d(e,"k",function(){return y}),n.d(e,"m",function(){return E}),n.d(e,"p",function(){return A}),n.d(e,"q",function(){return w}),n.d(e,"n",function(){return x});n(25),n(16),n(31),n(32);var r=n(37),o=n.n(r),i=n(38),u=n.n(i),a=n(4),s=n(134),c=n.n(s),l="recherche",d="editeur",f="discipline",p="niveau",h="classe",v="version",m="nouveautes",g="none",_="knewtonData.editeur",k="knewtonData.niveau",b="knewtonData.discipline",S="knewtonData.classe",y="FILTER_VERSION_KEY",E=[{key:"knewtonData.visible",value:"1",fullFilter:"knewtonData.visible=1",name:"Je suis enseignant",query:"premium"},{key:"knewtonData.accesLibreVisible",value:"1",fullFilter:"knewtonData.accesLibreVisible=1",name:"Je suis élève",query:"acces-libre"}],A=["-knewtonData.annee","knewtonData.title"],w=["knewtonData.title"],x=["knewtonData.title","knewtonData.ean","knewtonData.nuart"],P=(new Date).getFullYear(),T=function(){function t(){o()(this,t)}return u()(t,[{key:"getCurrentFilters",value:function(t,e,n,r,o,i,u){var s,c=[];("demo"===u?(c.push("knewtonData.visible=1|knewtonData.accesLibreVisible=1"),c.push(a.a.getDefautFilterTypeProduct()),c.push("".concat("knewtonData.public","=enseignant"))):"formulaire"===u?(c.push("".concat("knewtonData.offrePrescripteur","=1|").concat("knewtonData.offrePrescripteur","=2")),c.push(a.a.getDefautFilterTypeProduct()),c.push("".concat("knewtonData.public","=enseignant"))):"feuilleter"===u&&(c.push("knewtonData.visible=1"),c.push("knewtonData.type=feuilletable"),c.push("".concat("knewtonData.public","=enseignant"))),t&&t!==g&&c.push(_+"="+t),e&&e!==g&&c.push(b+"="+e),n&&n!==g&&c.push(k+"="+n),r&&r!==g&&c.push(S+"="+r),o&&o!==g)&&(E.map(function(t){t.query===o&&(s=t)}),c.push(s.fullFilter));return i&&i!==g&&c.push("knewtonData.annee="+P),c}},{key:"transformFiltersForVselect",value:function(t,e,n){var r=[];r.push({text:"Tous",value:g});var o=!1;return a.a.isEmpty(e)||e.map(function(e){n&&n!==g&&n===e&&(o=!0),r.push({text:e.key,value:e.value,filter:t+"="+e.value})}),o||a.a.isEmpty(n)||r.push({text:n,value:n,filter:t+"="+n}),r}},{key:"transformCustomFiltersForVselect",value:function(t,e,n){var r=[];r.push({text:"Tous",value:g});var o=!1;if(a.a.isEmpty(e)||e.map(function(t){n&&n!==g&&n===t&&(o=!0),r.push({text:t.key,value:t.value,filter:t.value})}),!o&&!a.a.isEmpty(n)){var i;t.map(function(t){t.query===n&&(i=t)});var u=n;i&&(u=i.name),r.push({text:u,value:n,filter:n})}return r}},{key:"productIsNew",value:function(t){if(t)return c.a.get(t,"knewtonData.annee")==P}},{key:"getFilterKeyForSearchFilterMetadata",value:function(t){var e;switch(t){case"editor":e=_;break;case"level":e=k;break;case"grade":e=S;break;case"version":e=y;break;case"schoolSubject":e=b}return e}},{key:"configFilter",value:function(t,e){var n=[],r=[];if(t&&t.filters){t.filters.some(function(t){e.some(function(e){t.values[0]!==e||r.push({key:t.name,value:t.values[0]})})});var o=[];e.some(function(t){var e=!0;r.some(function(n){n.value!==t||(e=!1)}),e&&o.push({key:t,value:t})}),n=[].concat(r,o)}else e.some(function(t){n.push({key:t,value:t})});return n}}]),t}();e.r=new T},295:function(t,e,n){t.exports=n.p+"img/24aaab6.png"},296:function(t,e,n){t.exports=n.p+"img/87d0eb0.png"},297:function(t,e,n){t.exports=n.p+"img/c6552eb.png"},298:function(t,e,n){"use strict";var r=n(78);n.n(r).a},299:function(t,e,n){"use strict";var r=n(79);n.n(r).a},3:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"d",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"g",function(){return u}),n.d(e,"f",function(){return a}),n.d(e,"h",function(){return s}),n.d(e,"e",function(){return c}),n.d(e,"i",function(){return l}),n.d(e,"j",function(){return d}),n.d(e,"a",function(){return f});var r="app.close.modale.iframe",o="app.modal.error",i="app.modal.default",u="app.modal.product",a="app.modal.product.action",s="app.modal.signin",c="app.modal.iframe",l="app.hide.header",d="app.show.header",f="app.block.scroll"},300:function(t,e,n){"use strict";var r=n(80);n.n(r).a},301:function(t,e,n){"use strict";var r=n(81);n.n(r).a},302:function(t,e,n){"use strict";var r=n(82);n.n(r).a},303:function(t,e,n){"use strict";var r=n(83);n.n(r).a},304:function(t,e,n){"use strict";var r=n(84);n.n(r).a},305:function(t,e,n){"use strict";var r=n(85);n.n(r).a},306:function(t,e,n){"use strict";var r=n(86);n.n(r).a},307:function(t,e,n){"use strict";var r=n(87);n.n(r).a},308:function(t,e,n){"use strict";var r=n(88);n.n(r).a},309:function(t,e,n){var r={"./index.js":11,"./products.js":310,"./summary.js":314,"./users.js":315,"./wordpress.js":316};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=309},310:function(t,e,n){"use strict";n.r(e),n.d(e,"state",function(){return d}),n.d(e,"getters",function(){return f}),n.d(e,"actions",function(){return p}),n.d(e,"mutations",function(){return h});var r=n(125),o=n.n(r),i=(n(50),n(122),n(57),n(94),n(32),n(42),n(43),n(25),n(16),n(30),n(0)),u=n.n(i),a=n(11),s=n(4),c=n(29),l=window.performance,d=function(){return{currentProduct:null,productsSearched:null,userProducts:[]}},f={productsSearched:function(t){return t.productsSearched},currentProduct:function(t){return t.currentProduct},userProducts:function(t){return t.userProducts}},p={createProductPrescription:function(t,e){return u()(regeneratorRuntime.mark(function n(){var r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.commit,t.state,r=e.params,n.abrupt("return",new Promise(function(){var t=u()(regeneratorRuntime.mark(function t(e,n){var o,i,s,c,d,f,p,h,v,m,g,_,k;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log("ACTION - CREATE PRODUCT PRESCRIPTION"),o=l.now(),!r.mainOffers||!r.mainOffers[0]||4!==r.mainOffers[0].type){t.next=6;break}a.SdkHub.upload.proof.postFile(r.file).then(function(){var t=u()(regeneratorRuntime.mark(function t(i){var u,s,c,d,f,p,h,v,m,g,_,k,b;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:u=l.now(),console.log("ACTION - CREATE PRODUCT PRESCRIPTION : UPLOAD OK - ".concat(u-o,"' ms")),s=!0,c=!1,d=void 0,t.prev=5,f=r.mainOffers[Symbol.iterator]();case 7:if(s=(p=f.next()).done){t.next=15;break}return(h=p.value).filename=i.uploadedFile,t.next=12,a.SdkHub.user.prescription.post(h).catch(function(t){console.error("ACTION - CREATE PRODUCT PRESCRIPTION : MAIN OFFER KO"),console.error(t),n(t.response)});case 12:s=!0,t.next=7;break;case 15:t.next=21;break;case 17:t.prev=17,t.t0=t.catch(5),c=!0,d=t.t0;case 21:t.prev=21,t.prev=22,s||null==f.return||f.return();case 24:if(t.prev=24,!c){t.next=27;break}throw d;case 27:return t.finish(24);case 28:return t.finish(21);case 29:if(console.log("ACTION - CREATE PRODUCT PRESCRIPTION : MAIN OFFER OK"),!r.linkedOffers){t.next=59;break}v=!0,m=!1,g=void 0,t.prev=34,_=r.linkedOffers[Symbol.iterator]();case 36:if(v=(k=_.next()).done){t.next=44;break}return(b=k.value).filename=r.mainOffers[0].filename,t.next=41,a.SdkHub.user.prescription.post(b).catch(function(t){console.error("ACTION - CREATE PRODUCT PRESCRIPTION : LINKED OFFER KO"),console.error(t),n(t.response)});case 41:v=!0,t.next=36;break;case 44:t.next=50;break;case 46:t.prev=46,t.t1=t.catch(34),m=!0,g=t.t1;case 50:t.prev=50,t.prev=51,v||null==_.return||_.return();case 53:if(t.prev=53,!m){t.next=56;break}throw g;case 56:return t.finish(53);case 57:return t.finish(50);case 58:console.log("ACTION - CREATE PRODUCT PRESCRIPTION : LINKED OFFER OK");case 59:e();case 60:case"end":return t.stop()}},t,null,[[5,17,21,29],[22,,24,28],[34,46,50,58],[51,,53,57]])}));return function(e){return t.apply(this,arguments)}}()).catch(function(t){console.error("ACTION - CREATE PRODUCT PRESCRIPTION : UPLOAD KO"),console.error(t),n(t.response)}),t.next=64;break;case 6:i=!0,s=!1,c=void 0,t.prev=9,d=r.mainOffers[Symbol.iterator]();case 11:if(i=(f=d.next()).done){t.next=19;break}return delete(p=f.value).uai,t.next=16,a.SdkHub.user.prescription.post(p).catch(function(t){console.error("ACTION - CREATE PRODUCT PRESCRIPTION : MAIN OFFER KO"),console.error(t),n(t.response)});case 16:i=!0,t.next=11;break;case 19:t.next=25;break;case 21:t.prev=21,t.t0=t.catch(9),s=!0,c=t.t0;case 25:t.prev=25,t.prev=26,i||null==d.return||d.return();case 28:if(t.prev=28,!s){t.next=31;break}throw c;case 31:return t.finish(28);case 32:return t.finish(25);case 33:if(console.log("ACTION - CREATE PRODUCT PRESCRIPTION : MAIN OFFER OK"),!r.linkedOffers){t.next=63;break}h=!0,v=!1,m=void 0,t.prev=38,g=r.linkedOffers[Symbol.iterator]();case 40:if(h=(_=g.next()).done){t.next=48;break}return delete(k=_.value).uai,t.next=45,a.SdkHub.user.prescription.post(k).catch(function(t){console.error("ACTION - CREATE PRODUCT PRESCRIPTION : LINKED OFFER KO"),console.error(t),n(t.response)});case 45:h=!0,t.next=40;break;case 48:t.next=54;break;case 50:t.prev=50,t.t1=t.catch(38),v=!0,m=t.t1;case 54:t.prev=54,t.prev=55,h||null==g.return||g.return();case 57:if(t.prev=57,!v){t.next=60;break}throw m;case 60:return t.finish(57);case 61:return t.finish(54);case 62:console.log("ACTION - CREATE PRODUCT PRESCRIPTION : LINKED OFFER OK");case 63:e();case 64:case"end":return t.stop()}},t,null,[[9,21,25,33],[26,,28,32],[38,50,54,62],[55,,57,61]])}));return function(e,n){return t.apply(this,arguments)}}()));case 3:case"end":return n.stop()}},n)}))()},searchProducts:function(t,e){return u()(regeneratorRuntime.mark(function n(){var r,o,i,d,f,p,h,v,m,g;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,o=t.state,i=t.dispatch,d=e.params,f=e.callback,p=e.otherParams,console.log("ACTION - SEARCH PRODUCTS"),null===o.auth){n.next=12;break}return h=d,s.a.isNullOrUndefined(h.skip)&&(h.skip=0),s.a.isNullOrUndefined(h.limit)&&(h.limit=25),h.skip>0?v=!0:(h.customFilters=[c.a,c.f,c.i,c.d],m=c.m.map(function(t){return t.key}),h.customFilters=h.customFilters.concat(m)),h.filtersMatch="strict",g=l.now(),n.next=12,a.SdkPublic.Module.search(h).then(function(){var t=u()(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=l.now(),console.log("ACTION - SEARCH PRODUCTS OK - ".concat(n-g,"' ms")),p&&p.searchFiltersMetadata&&Object.keys(p.searchFiltersMetadata).forEach(function(t,n){var r=p.searchFiltersMetadata[t],o=c.r.getFilterKeyForSearchFilterMetadata(t),i=s.a.clone(e.customFilters[o]),u=c.r.configFilter(r,i);e.customFilters[o]=u}),r(v?"ADD_PRODUCTS_SEARCHED":"SET_PRODUCTS_SEARCHED",e),f&&f(e,null);case 5:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(){var t=u()(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(e),401!==e.response.status){t.next=4;break}return t.next=4,i("resetTechnicalUserAndTryAgain",{},{root:!0}).then(u()(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i("searchProducts",{params:d,callback:f,otherParams:p});case 2:case"end":return t.stop()}},t)})));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());case 12:case"end":return n.stop()}},n)}))()},getCurrentProduct:function(t,e){return u()(regeneratorRuntime.mark(function n(){var r,o,i,c,d,f,p,h,v,m,g,k,b;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,o=t.state,i=t.dispatch,c=e.params,d=e.from,f=e.otherParams,null===o.auth){n.next=16;break}return p=c,s.a.isNullOrUndefined(p.skip)&&(p.skip=0),v=l.now(),n.next=8,a.SdkPublic.Module.search(p).then(function(){var t=u()(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=l.now(),console.log("ACTION - GET PRODUCT OK - ".concat(n-v,"' ms")),e&&e.resources&&e.resources.length>0&&(e.resources.some(function(t){if("acces-libre"===d){if("1"===t.knewtonData.accesLibre)return void(h=t)}else{if("complet-extrait"===t.knewtonData.type&&"1"===t.knewtonData.demo)return void(h=t);if("extrait"===t.knewtonData.type&&"1"===t.knewtonData.demo)return void(h=t)}}),h||"demo"===d&&(h=_.find(e.resources,function(t){return"complet"===t.knewtonData.type&&"1"===t.knewtonData.demo})),h||"demo"===d&&(h=_.find(e.resources,function(t){return"1"===t.knewtonData.visible})),h||(h=e.resources[0])),r("ADD_CURRENT_PRODUCT",h);case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(){var t=u()(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(e),401!==e.response.status){t.next=4;break}return t.next=4,i("resetTechnicalUserAndTryAgain",{},{root:!0}).then(u()(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i("getCurrentProduct",{params:c,from:d,otherParams:f});case 2:case"end":return t.stop()}},t)})));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());case 8:if(!f){n.next=16;break}if(!(f.loadOffers&&h&&h.knewtonData)||s.a.isEmpty(h.knewtonData.offres)){n.next=16;break}for(m=h.knewtonData.offres.split(","),g=0;g0&&(o=h.knewtonData.offres.split(","),i={},o.map(function(t){e.resources.map(function(e){e.knewtonData.ean===t&&(i[t]?"extrait"!==i[t].knewtonData.type&&"extrait"===e.knewtonData.type&&(i[t]=e):i[t]=e)})}),u=[],e.resources.map(function(t){i[t.knewtonData.ean]&&i[t.knewtonData.ean]._id===t._id&&u.push(t)}),n=u,h.populateOffers=n),r("ADD_CURRENT_PRODUCT",h);case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(){var t=u()(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(e),401!==e.response.status){t.next=4;break}return t.next=4,i("resetTechnicalUserAndTryAgain",{},{root:!0}).then(u()(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i("getCurrentProduct",{params:c,from:d,otherParams:f});case 2:case"end":return t.stop()}},t)})));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());case 16:case"end":return n.stop()}},n)}))()},removeCurrentProduct:function(t){return u()(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(0,t.commit)("ADD_CURRENT_PRODUCT",null);case 2:case"end":return e.stop()}},e)}))()},getUserProducts:function(t){return u()(regeneratorRuntime.mark(function e(){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,e.abrupt("return",new Promise(function(t,e){a.SdkHub.user.product.get({device:"online"}).then(function(e){n("SET_USER_PRODUCTS",e.data.products),t(e.data.products)}).catch(function(o){401===o.response.status?(r("resetStore",null,{root:!0}),t([])):404===o.response.status&&(n("SET_USER_PRODUCTS",[]),t([])),e(o)})}));case 2:case"end":return e.stop()}},e)}))()},activateProduct:function(t,e){return u()(regeneratorRuntime.mark(function n(){var r,o;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.dispatch,o=e.params,n.abrupt("return",new Promise(function(t,e){a.SdkHub.product.activation.post(o).then(function(e){t(e.data)}).catch(function(n){401===n.response.status&&(r("resetStore",null,{root:!0}),t([])),e(n.response)})}));case 3:case"end":return n.stop()}},n)}))()}},h={SET_PRODUCTS_SEARCHED:function(t,e){console.log("MUTATION - PRODUCTS - SET_SEARCH_PRODUCTS"),t.productsSearched=e},SET_USER_PRODUCTS:function(t,e){console.log("MUTATION - PRODUCTS - SET_USER_PRODUCTS"),t.userProducts=e},ADD_PRODUCTS_SEARCHED:function(t,e){console.log("MUTATION - PRODUCTS - ADD_SEARCH_PRODUCTS");var n=[].concat(o()(t.productsSearched.resources),o()(e.resources));e.resources=n,e.customFilters=t.productsSearched.customFilters,e.count=t.productsSearched.count,t.productsSearched=e},ADD_CURRENT_PRODUCT:function(t,e){console.log("MUTATION - PRODUCTS - ADD_CURRENT_PRODUCT"),t.currentProduct=e},RESET_STORE:function(t){console.log("MUTATION - PRODUCTS - RESET STORE"),t.userProducts=[]}}},314:function(t,e,n){"use strict";n.r(e),n.d(e,"state",function(){return u}),n.d(e,"getters",function(){return a}),n.d(e,"actions",function(){return s}),n.d(e,"mutations",function(){return c});n(30);var r=n(0),o=n.n(r),i=n(11),u=function(){return{allSummary:null}},a={allSummary:function(t){return t.allSummary}},s={getSummary:function(t){return o()(regeneratorRuntime.mark(function e(){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,e.next=3,i.SdkPublic.Summary.get({bankId:"5bf814832f16be3577e55ca1"}).then(function(){var t=o()(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n("ADD_SUMMARY",e);case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(){var t=o()(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(e),401!==e.response.status){t.next=4;break}return t.next=4,r("resetTechnicalUserAndTryAgain",{},{root:!0}).then(o()(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r("getSummary",{});case 2:case"end":return t.stop()}},t)})));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return e.stop()}},e)}))()}},c={ADD_SUMMARY:function(t,e){console.log("MUTATION - ADD_SUMMARY"),t.allSummary=e.summaryEntries}}},315:function(t,e,n){"use strict";n.r(e),n.d(e,"state",function(){return r}),n.d(e,"getters",function(){return o}),n.d(e,"actions",function(){return i}),n.d(e,"mutations",function(){return u});var r=function(){return{user:null,userHub:null}},o={user:function(t){return t.user},userHub:function(t){return t.userHub}},i={},u={RESET_STORE:function(t){console.log("MUTATION - PRODUCTS - RESET STORE"),t.userHub=null}}},316:function(t,e,n){"use strict";n.r(e),n.d(e,"state",function(){return r}),n.d(e,"getters",function(){return o}),n.d(e,"actions",function(){return i}),n.d(e,"mutations",function(){return u});var r=function(){return{page:null,title:null}},o={page:function(t){return t.page},title:function(t){return t.title}},i={},u={RESET_STORE:function(t){console.log("MUTATION - WORDPRESS - RESET STORE"),t.page=null,t.title=null},SET_PAGE:function(t,e){t.page=e},SET_TITLE:function(t,e){t.title=e}}},337:function(t,e,n){"use strict";n.r(e);n(95),n(42),n(43);var r=n(2),o=n.n(r),i=(n(30),n(103),n(0)),u=n.n(i),a=(n(91),n(92),n(25),n(16),n(57),n(93),n(32),n(46),n(142),n(206),n(213),n(1)),s=(n(26),n(214)),c=s.keys();function l(t){var e=s(t);return e.default||e}var d={},f=!0,p=!1,h=void 0;try{for(var v,m=c[Symbol.iterator]();!(f=(v=m.next()).done);f=!0){var g=v.value;d[g.replace(/^\.\//,"").replace(/\.(js|mjs)$/,"")]=l(g)}}catch(t){p=!0,h=t}finally{try{f||null==m.return||m.return()}finally{if(p)throw h}}var _=d,k=n(5),b=n.n(k),S=(n(31),n(183)),y=n.n(S),E=n(124),A=function(){return n.e(8).then(n.bind(null,458)).then(function(t){return t.default||t})},w=function(){return n.e(30).then(n.bind(null,468)).then(function(t){return t.default||t})},x=function(){return n.e(24).then(n.bind(null,466)).then(function(t){return t.default||t})},P=function(){return n.e(21).then(n.bind(null,465)).then(function(t){return t.default||t})},T=function(){return n.e(19).then(n.bind(null,463)).then(function(t){return t.default||t})},C=function(){return Promise.all([n.e(1),n.e(0),n.e(27)]).then(n.bind(null,457)).then(function(t){return t.default||t})},R=function(){return n.e(10).then(n.bind(null,471)).then(function(t){return t.default||t})},U=function(){return n.e(9).then(n.bind(null,479)).then(function(t){return t.default||t})},O=function(){return n.e(16).then(n.bind(null,477)).then(function(t){return t.default||t})},D=function(){return Promise.all([n.e(1),n.e(0),n.e(2),n.e(18)]).then(n.bind(null,467)).then(function(t){return t.default||t})},I=function(){return n.e(25).then(n.bind(null,476)).then(function(t){return t.default||t})},N=function(){return n.e(15).then(n.bind(null,462)).then(function(t){return t.default||t})},L=function(){return n.e(11).then(n.bind(null,478)).then(function(t){return t.default||t})},M=function(){return Promise.all([n.e(3),n.e(29)]).then(n.bind(null,459)).then(function(t){return t.default||t})},j=function(){return n.e(13).then(n.bind(null,461)).then(function(t){return t.default||t})},H=function(){return n.e(12).then(n.bind(null,473)).then(function(t){return t.default||t})},B=function(){return n.e(23).then(n.bind(null,474)).then(function(t){return t.default||t})},G=function(){return n.e(6).then(n.bind(null,475)).then(function(t){return t.default||t})},F=function(){return n.e(26).then(n.bind(null,472)).then(function(t){return t.default||t})},z=function(){return n.e(20).then(n.bind(null,456)).then(function(t){return t.default||t})},K=function(){return Promise.all([n.e(3),n.e(28)]).then(n.bind(null,470)).then(function(t){return t.default||t})},q=function(){return n.e(14).then(n.bind(null,480)).then(function(t){return t.default||t})},$=function(){return n.e(7).then(n.bind(null,464)).then(function(t){return t.default||t})},V=function(){return n.e(17).then(n.bind(null,460)).then(function(t){return t.default||t})},W=function(){return Promise.all([n.e(1),n.e(0),n.e(2),n.e(22)]).then(n.bind(null,469)).then(function(t){return t.default||t})};a.default.use(E.a),window.history.scrollRestoration="manual";var J=function(t,e,n){var r=!1;return t.matched.length<2?r={x:0,y:0}:t.matched.some(function(t){return t.components.default.options.scrollToTop})&&(r={x:0,y:0}),n&&(r=n),new Promise(function(e){window.$nuxt.$once("triggerScroll",function(){if(t.hash){var n=t.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(t){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}e(r)})})};var Q=n(184),Y=n.n(Q).a,X={name:"nuxt-child",functional:!0,props:["keepAlive","keepAliveProps"],render:function(t,e){var n=e.parent,r=e.data,o=e.props;r.nuxtChild=!0;for(var i=n,u=n.$nuxt.nuxt.transitions,a=n.$nuxt.nuxt.defaultTransition,s=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&s++,n=n.$parent;r.nuxtChildDepth=s;var c=u[s]||a,l={};Z.forEach(function(t){void 0!==c[t]&&(l[t]=c[t])});var d={};tt.forEach(function(t){"function"==typeof c[t]&&(d[t]=c[t].bind(i))});var f=d.beforeEnter;d.beforeEnter=function(t){if(window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")}),f)return f.call(i,t)};var p=[t("router-view",r)];return void 0!==o.keepAlive&&(p=[t("keep-alive",{props:o.keepAliveProps},p)]),t("transition",{props:l,on:d},p)}},Z=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],tt=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],et={name:"nuxt-link",functional:!0,render:function(t,e){return t("router-link",e.data,e.children)}},nt={name:"ErrorLayout",props:{error:{type:Object,default:null}},layout:"error",mounted:function(){console.log("Error : ",this.error)}},rt=(n(220),n(7)),ot=Object(rt.a)(nt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"error-display"}},[404===t.error.statusCode?n("h1",[t._v(" Oups ! Cette page n'existe pas ")]):"PRODUIT_INTROUVABLE"===t.error.errorType?n("h1",[t._v(" Oups ! Cette page est introuvable")]):n("h1",[t._v(" Oups ! Nous rencontrons un problème. Veuillez réessayer plus tard ")]),t._v(" "),n("nuxt-link",{attrs:{to:"/"}},[t._v(" \n "+t._s("Retour vers l'accueil")+"\n ")])],1)},[],!1,null,"5c207a7a",null).exports,it=(n(50),n(153),n(154),n(111),n(156),n(112),n(94),n(157),function(){return{}});function ut(t,e){var n=t.options.data||it;!e&&t.options.hasAsyncData||(t.options.hasAsyncData=!0,t.options.data=function(){var r=n.call(this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),b()(b()({},r),e)},t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data))}function at(t){return t.options&&t._Ctor===t?t:(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=a.default.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file),t)}function st(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.components).map(function(r){return e&&e.push(n),t.components[r]})}))}function ct(t,e){return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.components).reduce(function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r},[])}))}function lt(t){return Promise.all(ct(t,function(){var t=u()(regeneratorRuntime.mark(function t(e,n,r,o){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=4;break}return t.next=3,e();case 3:e=t.sent;case 4:return t.abrupt("return",r.components[o]=at(e));case 5:case"end":return t.stop()}},t)}));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function dt(t){return ft.apply(this,arguments)}function ft(){return(ft=u()(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lt(e);case 2:return t.abrupt("return",b()(b()({},e),{},{meta:st(e).map(function(t){return t.options.meta||{}})}));case 3:case"end":return t.stop()}},t)}))).apply(this,arguments)}function pt(t,e){return ht.apply(this,arguments)}function ht(){return(ht=u()(regeneratorRuntime.mark(function t(e,n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.to?n.to:n.route,e.context||(e.context={isStatic:!1,isDev:!1,isHMR:!1,app:e,store:e.store,payload:n.payload,error:n.error,base:"/",env:{CONSUMER_TOKEN:"a2V5MTIzOnNlY3JldDEyMw==",APP_ID:"Hachette.ENE.1.0",API_VERSION:"2.0.0",API_URL:"https://exobank.hachette-livre.fr",CONTENT_BASE_URL:"/contents/final/",MODULE_BASE_URL:"https://exobank.hachette-livre.fr/contents/final/",BANK_EAN:"BIBLIODEMO",BANK_ID:"5bf814832f16be3577e55ca1",EXOBANK_URL:"https://exobank.hachette-livre.fr/",EDUCADHOC_ONLINE_URL:"https://educadhoc.fr/",HERMIONE_URL:"https://demo.educadhoc.fr/",URL_HE:"https://www.hachette-education.com/",URL_HATIER:"https://www.editions-hatier.fr/",URL_DIDIER:"https://www.editionsdidier.com/fr",URL_FOUCHER:"https://www.editions-foucher.fr/",URL_ISTRA:"https://www.editions-istra.com/",NODE_TLS_REJECT_UNAUTHORIZED:"0",WORDPRESS_URL:"https://wordpress.monespace-educ.fr",SDK_PUBLIC_USER:"hubViewerUser",SDK_PUBLIC_PW:"Hn6kNs3jZ2KNyX9B",SDK_HUB_HOSTNAME:"https://api.edu.hachette-livre.fr/hub",SDK_HUB_VERSION:"v1",SDK_HUB_APIKEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJIVUIiLCJhdWQiOiJIVUIifQ.nN5k3CudawbWJdkabI4XII0vG6h19GQvSwYyyZgX7Q4",SDK_HUB_SUBSCRIPTION_KEY:"d7e358b52e814c6fa496cbe53a9f60c5",SUMMARY_METADATA_SEARCH_FILTERS_KEY:"search-filters",SUMMARY_METADATA_PUBLISHERS_KEY:"publishers",URL_COVER_BASE:"https://www.images.hachette-livre.fr/media/imgArticle",URL_SIGN_UP_SED:"https://ws-pne.kiosque-edu.com/sed/api/html/customers/inscription/?step=0",URL_UPDATE_SED:"https://ws-pne.kiosque-edu.com/sed/api/html/customers/modification",URL_PASSWORD_FORGOT_SED:"https://ws-pne.kiosque-edu.com/sed/api/html/customers/password/forgot",URL_PASSWORD_RESET_SED:"https://ws-pne.kiosque-edu.com/sed/api/html/customers/password/reinitialization",URL_ARTICLE_KNE:"https://kiosque-edu.com/article/"}},n.req&&(e.context.req=n.req),n.res&&(e.context.res=n.res),e.context.redirect=function(t,n,r){if(t){e.context._redirected=!0;var i=o()(n);if("number"==typeof t||"undefined"!==i&&"object"!==i||(r=n||{},n=t,i=o()(n),t=302),"object"===i&&(n=e.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=Et(n,r),window.location.replace(n),new Error("ERR_REDIRECT");e.context.next({path:n,query:r,status:t})}},e.context.nuxtState=window.__NUXT__),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=!!n.isHMR,!n.route){t.next=10;break}return t.next=9,dt(n.route);case 9:e.context.route=t.sent;case 10:if(e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{},!n.from){t.next=16;break}return t.next=15,dt(n.from);case 15:e.context.from=t.sent;case 16:case"end":return t.stop()}},t)}))).apply(this,arguments)}function vt(t,e){var n;return(n=2===t.length?new Promise(function(n){t(e,function(t,r){t&&e.error(t),n(r=r||{})})}):t(e))&&(n instanceof Promise||"function"==typeof n.then)||(n=Promise.resolve(n)),n}function mt(t,e){var n=window.location.pathname;return"hash"===e?window.location.hash.replace(/^#\//,""):(t&&0===n.indexOf(t)&&(n=n.slice(t.length)),(n||"/")+window.location.search+window.location.hash)}function gt(t,e){return function(t){for(var e=new Array(t.length),n=0;n1)return this.nuxtChildKey||gt(this.$route.matched[0].path)(this.$route.params);var t=this.$route.matched[0]&&this.$route.matched[0].components.default;return t&&t.options&&t.options.key?"function"==typeof t.options.key?t.options.key(this.$route):t.options.key:this.$route.path}},components:{NuxtChild:X,NuxtError:ot}},wt={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,throttle:200,duration:5e3,height:"2px",color:"#F62D66",failedColor:"red"}},methods:{start:function(){var t=this;return this.canSuccess=!0,this._throttle&&clearTimeout(this._throttle),this._timer&&(clearInterval(this._timer),this._timer=null,this.percent=0),this._throttle=setTimeout(function(){t.show=!0,t._cut=1e4/Math.floor(t.duration),t._timer=setInterval(function(){t.increase(t._cut*Math.random()),t.percent>95&&t.finish()},100)},this.throttle),this},set:function(t){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(t),this},get:function(){return Math.floor(this.percent)},increase:function(t){return this.percent=this.percent+Math.floor(t),this},decrease:function(t){return this.percent=this.percent-Math.floor(t),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var t=this;return clearInterval(this._timer),this._timer=null,clearTimeout(this._throttle),this._throttle=null,setTimeout(function(){t.show=!1,a.default.nextTick(function(){setTimeout(function(){t.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}},xt=(n(224),Object(rt.a)(wt,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},[],!1,null,null,null).exports),Pt=(n(225),n(226),n(227),n(17)),Tt=n(9),Ct=n(21),Rt=n(3),Ut=n(186),Ot={mixins:[Tt.a],data:function(){return{isOpen:!1}},computed:{isResponsiveHeader:function(){return this.vuetifyBreakpointClassValue("smAndDown")}},watch:{userHub:function(t){this.isOpen=!1}},methods:{onLogoutClick:function(){this.$emit("logout")},onProfileClick:function(){this.$emit("profileClick")},onUpdateAccountClick:function(){this.$emit("updateAccountClick")},gotoMySpace:function(){this.$router.push("/mon-espace")}}},Dt=(n(298),Object(rt.a)(Ot,function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.userHub?r("v-layout",{attrs:{"align-center":""}},[r("v-menu",{attrs:{"open-on-hover":"","open-on-click":"","close-delay":"500","content-class":"profile-menu",left:"",bottom:"","offset-y":"","nudge-top":"-10"},scopedSlots:t._u([{key:"activator",fn:function(e){var o=e.on;return[t.isResponsiveHeader?r("v-btn",t._g({staticClass:"user-btn-responsive",attrs:{"h-header":"user-btn-responsive",icon:""}},o),[r("img",{staticClass:"icon",attrs:{alt:"icon-user",src:t.isOpen?"/img/common/profile-icon-pink.png":"/img/common/profile-icon-pink-light.png"}})]):r("v-btn",t._g({staticClass:"user-btn mb-4 flat-round-btn pink-btn",attrs:{"h-header":"user-btn"}},o),[r("img",{staticClass:"icon",attrs:{alt:"icon-user",src:n(297)}}),t._v("\n Mon espace\n ")])]}}]),model:{value:t.isOpen,callback:function(e){t.isOpen=e},expression:"isOpen"}},[t._v(" "),r("v-list",{attrs:{dense:""}},[r("v-list-tile",[r("v-list-tile-title",[r("b",{staticClass:"user-btn-firstname"},[t._v("\n "+t._s("Bonjour "+t.userHub.firstName)+"\n ")])])],1),t._v(" "),r("v-divider"),t._v(" "),r("v-list-tile",{on:{click:function(e){return t.gotoMySpace()}}},[r("v-list-tile-title",[r("b",{staticClass:"t-pink"},[t._v("\n Mes ressources\n ")])])],1),t._v(" "),r("v-list-tile",{on:{click:function(e){return t.onUpdateAccountClick()}}},[r("v-list-tile-title",[r("b",{staticClass:"t-pink"},[t._v("\n Mon compte\n ")])])],1),t._v(" "),r("v-divider"),t._v(" "),r("v-list-tile",{on:{click:function(e){return t.onLogoutClick()}}},[r("v-list-tile-title",[r("b",{staticClass:"t-pink"},[t._v("\n Me déconnecter\n ")])])],1)],1)],1)],1):r("v-layout",{attrs:{"align-center":""}},[t.isResponsiveHeader?r("v-btn",{staticClass:"user-btn-responsive",attrs:{"h-header":"user-btn-responsive",icon:""},on:{click:t.onProfileClick}},[r("img",{staticClass:"icon",attrs:{alt:"icon-user",src:n(295)}})]):t._e(),t._v(" "),t.isResponsiveHeader?t._e():r("v-btn",{staticClass:"user-btn mb-4 flat-round-btn grey-btn",attrs:{"h-header":"user-btn"},on:{click:t.onProfileClick}},[r("img",{staticClass:"icon",attrs:{alt:"icon-user",src:n(296)}}),t._v("\n Mon espace\n ")])],1)},[],!1,null,"f0da54a0",null).exports),It=n(4),Nt={name:"HHeader",components:{hHeaderProfileMenu:Dt},mixins:[Ut.mixin,Tt.a,Ct.a],props:{user:{type:Object,default:null}},data:function(){return It.a.isGlobalBrowseMode=this.isBrowsePage(),{isBrowseMode:It.a.isGlobalBrowseMode,showHeader:!0}},computed:{logoLink:function(){return"/"},logoLinkBrowseMode:function(){return"/feuilleter"},isResponsiveHeader:function(){return this.vuetifyBreakpointClassValue("smAndDown")}},created:function(){var t=this;this.registerEvent(Rt.i,function(){t.showHeader=!1}),this.registerEvent(Rt.j,function(){t.showHeader=!0})},methods:{isBrowsePage:function(){return"feuilleter"===this.$route.name||"feuilleter-ean"===this.$route.name},go:function(t){this.$emit("showHeaderMenu",!1),this.goto(t)},showMenu:function(){this.$emit("showHeaderMenu",!0)},onLogoutClick:function(){this.$emit("logout")},onProfileClick:function(){this.$emit("profileClick")},onUpdateAccountClick:function(){this.$emit("updateAccountClick")},showHeaderMenu:function(t){this.$emit("showHeaderMenu",t)}}},Lt=(n(299),Object(rt.a)(Nt,function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.showHeader?r("div",{staticClass:"h-header",class:{authentificated:t.isAuthentificated,isBrowseMode:t.isBrowseMode}},[t.isResponsiveHeader?r("div",{staticClass:"h-header__responsive",attrs:{id:"h-header-responsive"}},[r("v-layout",{staticClass:"h-header__responsive__top-container",attrs:{"align-center":"","justify-start":"",row:"","fill-height":""}},[t.isBrowseMode?r("nuxt-link",{staticClass:"h-header__responsive__logo-container",attrs:{to:t.logoLinkBrowseMode}},[r("img",{staticClass:"h-header__responsive__logo-container__logo",attrs:{alt:"logo mon-espace-edu",src:n(71)}})]):r("nuxt-link",{staticClass:"h-header__responsive__logo-container",attrs:{to:t.logoLink}},[r("img",{staticClass:"h-header__responsive__logo-container__logo",attrs:{alt:"logo mon-espace-edu",src:n(71)}})]),t._v(" "),t.isBrowseMode?t._e():r("h-header-profile-menu",{on:{logout:t.onLogoutClick,profileClick:t.onProfileClick,updateAccountClick:t.onUpdateAccountClick}}),t._v(" "),r("v-spacer")],1),t._v(" "),r("div",{staticClass:"h-header__responsive__bottom-container"},[r("div",{staticClass:"h-header__responsive__bottom-container__editors-container__editors"},[r("a",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor hachette-education",attrs:{href:t.urlHachetteEducation,target:"_blank"}},[r("img",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions hachette éducaton",src:n(159)}})]),t._v(" "),r("a",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor hatier",attrs:{href:t.urlHatier,target:"_blank"}},[r("img",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions hatier",src:n(160)}})]),t._v(" "),r("a",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor didier",attrs:{href:t.urlDidier,target:"_blank"}},[r("img",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions didier",src:n(161)}})]),t._v(" "),r("a",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor foucher",attrs:{href:t.urlFoucher,target:"_blank"}},[r("img",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions foucher",src:n(162)}})]),t._v(" "),r("a",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor istra",attrs:{href:t.urlIstra,target:"_blank"}},[r("img",{staticClass:"h-header__responsive__bottom-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions istra",src:n(163)}})])])])],1):r("div",{staticClass:"h-header__ordinary"},[r("v-layout",{staticClass:"h-header__ordinary__top-container",attrs:{"align-center":"","justify-start":"",row:"","fill-height":""}},[t.isBrowseMode?r("nuxt-link",{staticClass:"h-header__ordinary__top-container__logo-container",attrs:{to:t.logoLinkBrowseMode}},[r("img",{staticClass:"h-header__ordinary__top-container__logo-container__logo",attrs:{alt:"logo mon-espace-edu",src:n(71)}})]):r("nuxt-link",{staticClass:"h-header__ordinary__top-container__logo-container",attrs:{to:t.logoLink}},[r("img",{staticClass:"h-header__ordinary__top-container__logo-container__logo",attrs:{alt:"logo mon-espace-edu",src:n(71)}})]),t._v(" "),r("div",{staticClass:"h-header__ordinary__top-container__editors-container"},[r("div",{staticClass:"h-header__ordinary__top-container__editors-container__editors"},[r("a",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor hachette-education",attrs:{href:t.urlHachetteEducation,target:"_blank"}},[r("img",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions hachette éducaton",src:n(159)}})]),t._v(" "),r("a",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor hatier",attrs:{href:t.urlHatier,target:"_blank"}},[r("img",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions hatier",src:n(160)}})]),t._v(" "),r("a",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor didier",attrs:{href:t.urlDidier,target:"_blank"}},[r("img",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions didier",src:n(161)}})]),t._v(" "),r("a",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor foucher",attrs:{href:t.urlFoucher,target:"_blank"}},[r("img",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions foucher",src:n(162)}})]),t._v(" "),r("a",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor istra",attrs:{href:t.urlIstra,target:"_blank"}},[r("img",{staticClass:"h-header__ordinary__top-container__editors-container__editors__editor__logo",attrs:{alt:"logo éditions istra",src:n(163)}})])])]),t._v(" "),t.isBrowseMode?t._e():r("div",{staticClass:"h-header__ordinary__top-container__right-container"},[r("h-header-profile-menu",{on:{logout:t.onLogoutClick,profileClick:t.onProfileClick,updateAccountClick:t.onUpdateAccountClick}})],1)],1)],1)]):t._e()},[],!1,null,"dd002bd2",null).exports),Mt={name:"HFooter",mixins:[Tt.a],data:function(){return{isBrowseMode:this.isBrowsePage}},computed:{isResponsive:function(){return this.vuetifyBreakpointClassValue("smAndDown")},isBrowsePage:function(){return"feuilleter"===this.$route.name||"feuilleter-ean"===this.$route.name}},mounted:function(){this.isBrowsePage&&(this.isBrowseMode=!0)},serverCacheKey:function(t){return!0}},jt=(n(300),Object(rt.a)(Mt,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"footer",attrs:{id:"h-footer"}},[t.isResponsive?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 10",preserveAspectRatio:"none"}},[r("polygon",{attrs:{points:"100 0 100 10 0 10"}})]):t._e(),t._v(" "),t.isResponsive?r("div",{staticClass:"footer__container"},[r("v-layout",{attrs:{"align-center":"","justify-center":"",column:"","fill-height":""}},[t.isBrowseMode?r("nuxt-link",{attrs:{to:"/feuilleter"}},[r("img",{staticClass:"footer__container__logo",attrs:{alt:"logo hub",src:n(74)}})]):r("nuxt-link",{attrs:{to:"/"}},[r("img",{staticClass:"footer__container__logo",attrs:{alt:"logo hub",src:n(74)}})]),t._v(" "),r("div",{staticClass:"footer__container__links"},[r("v-divider"),t._v(" "),r("div",{staticClass:"footer__container__links__link"},[r("nuxt-link",{attrs:{to:"/cgu"}},[t._v("Conditions générales d’utilisation")])],1),t._v(" "),r("div",{staticClass:"footer__container__links__link"},[r("nuxt-link",{attrs:{to:"/mentions-legales"}},[t._v("Mentions légales")])],1),t._v(" "),r("div",{staticClass:"footer__container__links__link"},[r("nuxt-link",{attrs:{to:"/charte-donnees-personnelles"}},[t._v("Charte données personnelles")])],1),t._v(" "),r("div",{staticClass:"footer__container__links__link"},[r("nuxt-link",{attrs:{to:"/charte-cookies"}},[t._v("Gestion des cookies")])],1),t._v(" "),r("div",{staticClass:"footer__container__links__link"},[r("nuxt-link",{attrs:{to:"/faq"}},[t._v("Aide en ligne")])],1)],1)],1)],1):r("div",{staticClass:"footer__container"},[r("v-layout",{attrs:{"align-center":"","justify-center":"",column:"","fill-height":""}},[r("div",{staticClass:"footer__container__all-blocks"},[r("div",{staticClass:"footer__container__all-blocks__logo-block block"},[t.isBrowseMode?r("nuxt-link",{attrs:{to:"/feuilleter"}},[r("img",{staticClass:"footer__container__all-blocks__logo-block__logo",attrs:{alt:"logo hub",src:n(74)}})]):r("nuxt-link",{attrs:{to:"/"}},[r("img",{staticClass:"footer__container__all-blocks__logo-block__logo",attrs:{alt:"logo hub",src:n(74)}})]),t._v(" "),r("div",{staticClass:"footer__container__all-blocks__logo-block__description"},[t._v("\n Découvrez, consultez et testez sur mesmanuels.fr les ressources numériques des\n éditions Hachette Education, Istra, Hatier, Didier et Foucher.\n ")])],1),t._v(" "),r("div",{staticClass:"footer__container__all-blocks__products-block block"},[r("div",{staticClass:"title-block"},[t._v("NOS PRODUITS")]),t._v(" "),r("div",{staticClass:"links-block"},[r("div",{staticClass:"link-block"},[r("nuxt-link",{attrs:{to:"/fonctionnalites?page=fonctionnalites-manuels&title=Les%20manuels%20numériques"}},[t._v("Les manuels numériques")])],1),t._v(" "),r("div",{staticClass:"link-block"},[r("nuxt-link",{attrs:{to:"/fonctionnalites?page=fonctionnalites-banques&title=Les%20banques%20des%20ressources"}},[t._v("Les banques de ressources")])],1),t._v(" "),r("div",{staticClass:"link-block"},[r("nuxt-link",{attrs:{to:"/fonctionnalites?page=fonctionnalites-parcours&title=Les%20parcours%20d%27exercices"}},[t._v("Les parcours d'exercices")])],1),t._v(" "),r("div",{staticClass:"link-block"},[r("nuxt-link",{attrs:{to:"/fonctionnalites?page=fonctionnalites-plateformes&title=Les%20plateformes%20d%27entrainement"}},[t._v("Les plateformes d'entrainement")])],1)])]),t._v(" "),r("div",{staticClass:"footer__container__all-blocks__about-block block"},[r("div",{staticClass:"title-block"},[t._v("À PROPOS")]),t._v(" "),r("div",{staticClass:"links-block"},[r("div",{staticClass:"link-block"},[r("nuxt-link",{attrs:{to:"/cgu"}},[t._v("CGU")])],1),t._v(" "),r("div",{staticClass:"link-block"},[r("nuxt-link",{attrs:{to:"/mentions-legales"}},[t._v("Mentions légales")])],1),t._v(" "),r("div",{staticClass:"link-block"},[r("nuxt-link",{attrs:{to:"/charte-donnees-personnelles"}},[t._v("Charte données personnelles")])],1),t._v(" "),r("div",{staticClass:"link-block"},[r("nuxt-link",{attrs:{to:"/charte-cookies"}},[t._v("Gestion des cookies")])],1),t._v(" "),r("div",{staticClass:"link-block"},[r("nuxt-link",{attrs:{to:"/faq"}},[t._v("Aide en ligne")])],1)])])])])],1)])},[],!1,null,"6465931c",null).exports),Ht={mixins:[Tt.a,Ct.a],data:function(){return{canShowModal:!1,title:null,description:null}},created:function(){var t=this;this.registerEvent(Rt.c,function(e){t.resetData(),e&&(e.title&&(t.title=e.title),e.description&&(t.description=e.description)),t.showModal()})},methods:{showModal:function(){this.canShowModal=!0},hideModal:function(){this.canShowModal=!1},resetData:function(){this.canShowModal=!1,this.title=null,this.description=null}}},Bt=(n(301),Object(rt.a)(Ht,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-dialog",{staticClass:"default-modal",attrs:{width:"500"},model:{value:t.canShowModal,callback:function(e){t.canShowModal=e},expression:"canShowModal"}},[r("div",{staticClass:"default-modal__main-container"},[r("v-btn",{staticClass:"default-modal__main-container__close-button",attrs:{icon:"",flat:""},on:{click:t.hideModal}},[r("img",{staticClass:"default-modal__main-container__close-button__icon",attrs:{alt:"icon-close",src:n(60)}})]),t._v(" "),r("div",{staticClass:"default-modal__main-container__title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),r("div",{staticClass:"default-modal__main-container__message"},[r("div",{domProps:{innerHTML:t._s(t.description)}})])],1)])},[],!1,null,"5d4bb59a",null).exports),Gt=n(12),Ft={mixins:[Tt.a,Ct.a],data:function(){return{canShowModal:!1,isLoaded:!1,url:null,fullscreen:!1}},created:function(){var t=this;this.registerEvent(Rt.e,function(e){t.resetData(),e&&(t.url=e.url,t.fullscreen=e.fullscreen),t.$refs.iframe.src=t.url,t.showModal()}),this.registerEvent(Rt.b,function(){t.hideModal()})},methods:{hideModal:function(){this.canShowModal=!1,Gt.a.emit(Rt.a,{blockScroll:!1}),this.resetData()},load:function(){this.isLoaded=!0},resetData:function(){this.canShowModal=!1,this.height=null,this.width=null,this.url=null},showModal:function(){this.canShowModal=!0,Gt.a.emit(Rt.a,{blockScroll:!0})}}},zt=(n(302),n(303),Object(rt.a)(Ft,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-dialog",{attrs:{persistent:"",fullscreen:t.fullscreen,"content-class":"iframe-modal elevation-0"},model:{value:t.canShowModal,callback:function(e){t.canShowModal=e},expression:"canShowModal"}},[n("v-card",{staticClass:"main-container"},[n("div",{staticClass:"iframe"},[t.isLoaded?t._e():n("v-layout",{attrs:{"fill-height":"","justify-center":"","align-center":"",column:""}},[n("v-progress-circular",{attrs:{indeterminate:"",color:"pink",size:"200",width:"20"}})],1),t._v(" "),n("iframe",{directives:[{name:"show",rawName:"v-show",value:t.isLoaded,expression:"isLoaded"}],ref:"iframe",attrs:{src:t.url},on:{load:t.load}})],1)])],1)},[],!1,null,"dac017b6",null).exports),Kt={mixins:[Tt.a,Ct.a],data:function(){return{canShowModal:!1,product:null,productItems:null}},computed:b()(b()({},Object(Pt.c)({allSummary:"summary/allSummary"})),{},{name:function(){return this.product&&this.product.knewtonData?this.product.knewtonData.title:null},ean:function(){return this.product&&this.product.knewtonData?this.product.knewtonData.ean:null}}),created:function(){var t=this;this.registerEvent(Rt.g,function(e){t.resetData(),e&&e.product&&(t.product=e.product,t.productItems=[],t.product&&t.product.knewtonData&&(t.product.knewtonData.ean&&t.productItems.push({key:"EAN",value:t.product.knewtonData.ean}),t.product.knewtonData.editeur&&t.productItems.push({key:"Editeur",value:It.a.getEditorFullName(t.allSummary,t.product.knewtonData.editeur)}),t.product.knewtonData.niveau&&t.productItems.push({key:"Niveau",value:It.a.getLevelName(t.allSummary,t.product.knewtonData.niveau)}),t.product.knewtonData.classe&&t.productItems.push({key:"Classe",value:It.a.getGradeName(t.allSummary,t.product.knewtonData.classe)}),t.product.knewtonData.discipline&&t.productItems.push({key:"Discipline",value:It.a.getSchoolSubjectName(t.allSummary,t.product.knewtonData.discipline)}))),t.showModal()})},methods:{showModal:function(){this.canShowModal=!0},hideModal:function(){this.canShowModal=!1},resetData:function(){this.product=null,this.productItems=null}}},qt=(n(304),Object(rt.a)(Kt,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-dialog",{staticClass:"product-modal",attrs:{width:"500"},model:{value:t.canShowModal,callback:function(e){t.canShowModal=e},expression:"canShowModal"}},[r("div",{staticClass:"product-modal__main-container"},[r("v-btn",{staticClass:"product-modal__main-container__close-button",attrs:{icon:"",flat:""},on:{click:t.hideModal}},[r("img",{staticClass:"product-modal__main-container__close-button__icon",attrs:{alt:"icon-close",src:n(60)}})]),t._v(" "),r("div",{staticClass:"product-modal__main-container__title"},[t._v("\n "+t._s(t.name)+"\n ")]),t._v(" "),r("div",{staticClass:"product-modal__main-container__contents"},t._l(t.productItems,function(e,n){return r("div",{key:n,staticClass:"product-modal__main-container__contents__item",attrs:{"data-index":n}},[r("div",{staticClass:"product-modal__main-container__contents__item__key"},[t._v("\n "+t._s(e.key)+"\n ")]),t._v(" "),r("div",{staticClass:"product-modal__main-container__contents__item__value"},[t._v("\n "+t._s(e.value)+"\n ")])])}),0)],1)])},[],!1,null,"5381625e",null).exports),$t={mixins:[Tt.a,Ct.a],data:function(){return{canShowModal:!1,product:null}},computed:b()(b()({},Object(Pt.c)({allSummary:"summary/allSummary"})),{},{name:function(){return this.product&&this.product.knewtonData?this.product.knewtonData.title:null},ean:function(){return this.product&&this.product.knewtonData?this.product.knewtonData.ean:null}}),created:function(){var t=this;this.registerEvent(Rt.f,function(e){t.resetData(),e&&e.product&&(t.product=e.product),t.showModal()})},methods:{goToDemo:function(){this.goto(this.productDemoUrl(this.product.knewtonData.ean)),this.hideModal()},goToFreeAccess:function(){this.goto(this.productFreeAccessUrl(this.product.knewtonData.eanAccesLibre)),this.hideModal()},showModal:function(){this.canShowModal=!0},hideModal:function(){this.canShowModal=!1},resetData:function(){this.product=null}}},Vt=(n(305),n(306),Object(rt.a)($t,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-dialog",{staticClass:"product-action-modal",attrs:{width:"500"},model:{value:t.canShowModal,callback:function(e){t.canShowModal=e},expression:"canShowModal"}},[r("div",{staticClass:"product-action-modal__main-container"},[r("v-btn",{staticClass:"product-action-modal__main-container__close-button",attrs:{icon:"",flat:""},on:{click:t.hideModal}},[r("img",{staticClass:"product-action-modal__main-container__close-button__icon",attrs:{alt:"icon-close",src:n(60)}})]),t._v(" "),r("div",{staticClass:"product-action-modal__main-container__title"},[t._v("\n "+t._s(t.name)+"\n ")]),t._v(" "),r("div",{staticClass:"product-action-modal__main-container__contents"},[r("v-btn",{directives:[{name:"touch",rawName:"v-touch",value:t.goToDemo,expression:"goToDemo"}],staticClass:"product-action-modal__main-container__contents__v-btn demo-btn flat-round-btn pink-btn"},[t._v("\n Démo enseignant\n "),r("img",{staticClass:"product-action-modal__main-container__contents__v-btn__arrow-picto",attrs:{alt:"icon-arrow",src:n(131)}})]),t._v(" "),r("v-btn",{directives:[{name:"touch",rawName:"v-touch",value:t.goToFreeAccess,expression:"goToFreeAccess"}],staticClass:"product-action-modal__main-container__contents__v-btn free-access-btn flat-round-btn pink-btn"},[t._v("\n Accès-libre élève\n "),r("img",{staticClass:"product-action-modal__main-container__contents__v-btn__arrow-picto",attrs:{alt:"icon-arrow",src:n(131)}})])],1)],1)])},[],!1,null,"21acb932",null).exports),Wt=n(176),Jt={name:"HSignIn",mixins:[Tt.a,Wt.a],props:{loading:{type:Boolean,default:!0},errorMsg:{type:String,default:""}},data:function(){return{valid:!0,email:"",password:"",emailRules:[function(t){return!!t||"Veuillez remplir ce champ svp"}]}},methods:{closeCB:function(){this.$refs.signinform&&this.$refs.signinform.reset()},signIn:function(){this.$refs.signinform.validate()&&this.$emit("signIn",this.email,this.password)},switchDialog:function(){this.$emit("switch")},switchPassDialog:function(){this.$emit("switch-password")}},serverCacheKey:function(t){return!0}},Qt=(n(307),{components:{hHeader:Lt,hFooter:jt,hDefaultModal:Bt,hIframeModal:zt,hProductModal:qt,hProductActionsModal:Vt,hSignIn:Object(rt.a)(Jt,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-dialog",{attrs:{"content-class":[t.vuetifyBreakpointClass],persistent:"","max-width":"635"},model:{value:t.isOpen,callback:function(e){t.isOpen=e},expression:"isOpen"}},[r("v-card",{staticClass:"c-dialog",class:[t.vuetifyBreakpointClass]},[r("v-layout",{attrs:{column:"","fill-height":""}},[r("v-layout",{attrs:{column:"","align-end":""}},[r("v-btn",{staticClass:"close-button ma-2",attrs:{icon:"",flat:""},on:{click:function(e){return t.close()}}},[r("img",{staticClass:"close-button-icon",attrs:{alt:"icon-close",src:n(60)}})])],1),t._v(" "),r("h1",{staticClass:"mb-5"},[t._v("\n Connexion\n ")]),t._v(" "),r("v-layout",{staticClass:"sign-in-content",attrs:{column:""}},[r("v-form",{ref:"signinform",attrs:{autocomplete:"off","lazy-validation":""},model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[r("v-layout",{attrs:{row:""}},[r("v-text-field",{staticClass:"round-text-field",attrs:{rules:t.emailRules,autocomplete:"off",flat:"",box:"",solo:"",type:"email",label:"E-mail",required:""},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})],1),t._v(" "),r("v-text-field",{staticClass:"round-text-field",attrs:{rules:[function(t){return!!t||"Veuillez remplir ce champ svp"}],autocomplete:"off",flat:"",box:"",solo:"",type:"password",label:"Mot de passe",required:""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.signIn(e)}},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),r("v-btn",{staticClass:"px-5 sign-in-btn flat-round-btn-fill pink-btn",attrs:{disabled:!t.valid},on:{click:t.signIn}},[t.loading?r("v-progress-circular",{attrs:{indeterminate:"",color:"white"}}):r("span",[t._v("Je me connecte")])],1),t._v(" "),t.errorMsg?r("p",{staticClass:"error-txt"},[t._v("\n "+t._s(t.errorMsg)+"\n ")]):t._e(),t._v(" "),r("small",{staticClass:"pink--text forgot-pass",on:{click:t.switchPassDialog}},[t._v("\n Mot de passe oublié ?\n ")]),t._v(" "),r("v-divider",{staticClass:"my-4"}),t._v(" "),r("h2",{staticClass:"switch-txt"},[r("b",[t._v("\n Pas encore de compte ?\n ")])]),t._v(" "),r("v-btn",{staticClass:"sign-up-btn flat-round-btn pink-btn",on:{click:t.switchDialog}},[r("b",[t._v("Je m'inscris")])])],1)],1)],1)],1)},[],!1,null,"8acb5438",null).exports},mixins:[Tt.a,Ct.a],data:function(){return{loginErrorMsg:null,signupErrorMsg:null,isMounted:!1,headerMenuIsOpen:!1,isSignInOpen:!1,signInLoading:!1,blockScroll:!1}},computed:b()(b()({},Object(Pt.c)({auth:"auth",user:"users/user"})),{},{blockScrollClass:function(){return this.blockScroll?"block-scroll":null},isResponsiveClass:function(){return this.isResponsiveMode()?"responsive":null},showResponsiveHeaderEditorPictos:function(){return!this.isResponsiveMode()||"index"!==this.$route.name&&"feuilleter"!==this.$route.name?null:"showResponsiveHeaderEditorPictos"}}),created:function(){var t=this;return u()(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.registerEvent(Rt.d,function(t){}),t.registerEvent(Rt.a,function(e){t.blockScroll=e.blockScroll}),t.registerEvent(Rt.h,function(e){t.isSignInOpen=!0}),t.$store.dispatch("setTechnicalUser",{}),window.addEventListener("message",t.handleMessage,!1);case 4:case"end":return e.stop()}},e)}))()},methods:b()(b()({},Object(Pt.b)({login:"login",logout:"logout",loginWithToken:"loginWithToken"})),{},{handleMessage:function(t){"form_sedv2_creation"===t.data.eventType?!0===t.data.params.success&&(console.log(t.data),this.loginWithToken({token:"Bearer ".concat(t.data.params.bearer)}),Gt.a.emit(Rt.b,{})):"form_sedv2_update"===t.data.eventType?(this.loginWithToken({}),Gt.a.emit(Rt.b,{})):"form_sedv2_lostpassword"===t.data.eventType?!0===t.data.params.success&&Gt.a.emit(Rt.b,{}):"form_sedv2_delete"===t.data.eventType?!0===t.data.params.success&&(this.logout(),Gt.a.emit(Rt.b,{})):"form_sedv2_closed"===t.data.eventType&&Gt.a.emit(Rt.b,{})},onSignIn:function(t,e){var n=this;n.signInLoading=!0,this.login({email:t,password:e,cb:function(){null!==n.userHub&&(n.loginErrorMsg=null,n.isSignInOpen=!1,n.signInLoading=!1,n.isHeaderExpanded=!1)},cbError:function(t){n.signInLoading=!1,t&&(n.loginErrorMsg="Email ou Mot de passe incorrect")}})},onCloseSignIn:function(){this.loginErrorMsg=null,this.isSignInOpen=!1},onLogout:function(){this.logout()},onProfileClick:function(){this.isSignInOpen=!0},openSignUp:function(){this.onCloseSignIn(),Gt.a.emit(Rt.e,{url:"https://ws-pne.kiosque-edu.com/sed/api/html/customers/inscription/?step=0"})},onUpdateAccountClick:function(){Gt.a.emit(Rt.e,{url:"".concat("https://ws-pne.kiosque-edu.com/sed/api/html/customers/modification").concat(sdkHub&&sdkHub.token?"?token=".concat(sdkHub.token.replace("Bearer ","")):"")})},onPasswordForgotClick:function(){this.onCloseSignIn(),Gt.a.emit(Rt.e,{url:"https://ws-pne.kiosque-edu.com/sed/api/html/customers/password/forgot"})},showHeaderMenu:function(t){this.headerMenuIsOpen=t,Gt.a.emit(Rt.a,{blockScroll:t})}})}),Yt=(n(308),{_default:Object(rt.a)(Qt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",{staticClass:"content",class:[t.vuetifyBreakpointClass,t.blockScrollClass,t.isResponsiveClass,t.showResponsiveHeaderEditorPictos],attrs:{id:"inspire",light:""}},[n("h-product-actions-modal"),t._v(" "),n("h-product-modal"),t._v(" "),n("h-default-modal"),t._v(" "),n("h-iframe-modal"),t._v(" "),n("h-header",{attrs:{"menu-is-open":t.headerMenuIsOpen,user:t.user},on:{showHeaderMenu:t.showHeaderMenu,logout:t.onLogout,updateAccountClick:t.onUpdateAccountClick,profileClick:t.onProfileClick}}),t._v(" "),n("div",{staticClass:"main-container"},[n("nuxt")],1),t._v(" "),n("h-footer"),t._v(" "),n("h-sign-in",{attrs:{"error-msg":t.loginErrorMsg,"is-open":t.isSignInOpen,loading:t.signInLoading},on:{switch:t.openSignUp,"switch-password":t.onPasswordForgotClick,signIn:t.onSignIn,close:t.onCloseSignIn}})],1)},[],!1,null,null,null).exports}),Xt={head:{htmlAttrs:{lang:"fr"},title:"mon espace e-education",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{name:"google-site-verification",content:"LDU-tuORuMgQgMY4Wgtw6lvAYR1v0PkS9ZTi0wM_T7M"},{hid:"theme-color",name:"theme-color",content:"#4C4A4A"},{hid:"description",name:"description",content:"mon espace e-education"},{hid:"mobile-web-app-capable",name:"mobile-web-app-capable",content:"yes"},{hid:"apple-mobile-web-app-title",name:"apple-mobile-web-app-title",content:"mon-espace-e-education"},{hid:"og:type",name:"og:type",property:"og:type",content:"website"},{hid:"og:title",name:"og:title",property:"og:title",content:"mon-espace-e-education"},{hid:"og:site_name",name:"og:site_name",property:"og:site_name",content:"mon-espace-e-education"},{hid:"og:description",name:"og:description",property:"og:description",content:"Mes manuels"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons"},{rel:"manifest",href:"/_nuxt/manifest.5a40a198.json"},{rel:"shortcut icon",href:"/_nuxt/icons/icon_64.8og6Ixw3y50.png"},{rel:"apple-touch-icon",href:"/_nuxt/icons/icon_512.8og6Ixw3y50.png",sizes:"512x512"}],script:[{src:"https://polyfill.io/v3/polyfill.min.js?flags=gated&features=default%2CMath.cbrt%2CArray.prototype.includes%2CString.prototype.includes%2CArray.prototype.values%2CObject.values%2CPromise%2CArray.from%2CArray.isArray%2CArray.of%2CArray.prototype.some%2CArray.prototype.reduceRight%2CArray.prototype.reduce%2CArray.prototype.map%2CArray.prototype.lastIndexOf%2CArray.prototype.keys%2CArray.prototype.indexOf%2CArray.prototype.forEach%2CArray.prototype.findIndex%2CArray.prototype.find%2CArray.prototype.filter%2CArray.prototype.fill%2CArray.prototype.every%2CArray.prototype.entries%2CArray.prototype.copyWithin%2CArray.prototype.%40%40iterator"},{src:"/js/myfeelback.js"},{src:"//www.googletagmanager.com/gtm.js?id=GTM-WQZ265F&l=dataLayer",async:!0}],style:[]},render:function(t,e){var n=t("nuxt-loading",{ref:"loading"}),r=t(this.layout||"nuxt"),o=t("div",{domProps:{id:"__layout"},key:this.layoutName},[r]),i=t("transition",{props:{name:"layout",mode:"out-in"}},[o]);return t("div",{domProps:{id:"__nuxt"}},[n,i])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.default.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.default.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(t){return t&&Yt["_"+t]||(t="default"),this.layoutName=t,this.layout=Yt["_"+t],this.layout},loadLayout:function(t){return t&&Yt["_"+t]||(t="default"),Promise.resolve(Yt["_"+t])}},components:{NuxtLoading:xt}};n(122);a.default.use(Pt.a);var Zt=n(309),te=Zt.keys(),ee={},ne=te.find(function(t){return t.includes("./index.")});if(ne&&(ee=ye(ne)),"function"!=typeof ee){ee.modules||(ee.modules={});var re=!0,oe=!1,ie=void 0;try{for(var ue,ae=te[Symbol.iterator]();!(re=(ue=ae.next()).done);re=!0){var se=ue.value,ce=se.replace(/^\.\//,"").replace(/\.(js|mjs)$/,"");if("index"!==ce){var le=ce.split(/\//);if(ce=le[le.length-1],["state","getters","actions","mutations"].includes(ce)){Ae(Ee(ee,le,!0),se,ce)}else{var de="index"===ce;de&&le.pop();var fe=Ee(ee,le),pe=ye(se);if(fe[ce=le.pop()]=fe[ce]||{},de){var he={};if(fe[ce].appends){he.appends=fe[ce].appends;var ve=!0,me=!1,ge=void 0;try{for(var _e,ke=fe[ce].appends[Symbol.iterator]();!(ve=(_e=ke.next()).done);ve=!0){var be=_e.value;he[be]=fe[ce][be]}}catch(t){me=!0,ge=t}finally{try{ve||null==ke.return||ke.return()}finally{if(me)throw ge}}}fe[ce]=Object.assign({},fe[ce],pe,he),fe[ce].namespaced=!0}else fe[ce]=Object.assign({},pe,fe[ce]),fe[ce].namespaced=!0}}}}catch(t){oe=!0,ie=t}finally{try{re||null==ae.return||ae.return()}finally{if(oe)throw ie}}}var Se=ee instanceof Function?ee:function(){return new Pt.a.Store(Object.assign({strict:!1},ee,{state:ee.state instanceof Function?ee.state():{}}))};function ye(t){var e=Zt(t),n=e.default||e;if(n.commit)throw new Error("[nuxt] store/"+t.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+t.replace("./",""));return n}function Ee(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(1===e.length)return n?t:t.modules;var r=e.shift();return t.modules[r]=t.modules[r]||{},t.modules[r].namespaced=!0,t.modules[r].modules=t.modules[r].modules||{},Ee(t.modules[r],e,n)}function Ae(t,e,n){var r=Zt(e);t.appends=t.appends||[],t.appends.push(n),t[n]=r.default||r}var we=n(126),xe=n.n(we),Pe=function(t,e){return Te.apply(this,arguments)};function Te(){return(Te=u()(regeneratorRuntime.mark(function t(e,n){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n((r={accessibleIcons:!0,iconProperty:"$icon",icons:{64:"/_nuxt/icons/icon_64.8og6Ixw3y50.png",120:"/_nuxt/icons/icon_120.8og6Ixw3y50.png",144:"/_nuxt/icons/icon_144.8og6Ixw3y50.png",152:"/_nuxt/icons/icon_152.8og6Ixw3y50.png",192:"/_nuxt/icons/icon_192.8og6Ixw3y50.png",384:"/_nuxt/icons/icon_384.8og6Ixw3y50.png",512:"/_nuxt/icons/icon_512.8og6Ixw3y50.png"}}).iconProperty.replace("$",""),Ce(r.icons));case 2:case"end":return t.stop()}},t)}))).apply(this,arguments)}var Ce=function(t){return function(e){return t[e]||""}},Re=n(127),Ue=n.n(Re),Oe=n(177),De=n.n(Oe);a.default.prototype.hasOwnProperty("$moment")||Object.defineProperty(a.default.prototype,"$moment",{get:function(){return De.a}});var Ie=n(128),Ne=n(188),Le=n.n(Ne),Me=null,je={minifyTheme:function(t){return t.replace(/[\r\n|\r|\n]/g,"")}};if(Me){var He=new Me({max:10,maxAge:36e5});je.themeCache=He}a.default.use(Le.a,{options:je,theme:{primary:"#4C4A4A",secondary:"#F62D66"}});var Be=n(189),Ge=n.n(Be);a.default.use(Ge.a,{disableClick:!1,touchClass:"",tapTolerance:10,swipeTolerance:30,longTapTimeInterval:400});var Fe=n(190),ze=n.n(Fe);a.default.use(ze.a),a.default.component(Y.name,Y),a.default.component(X.name,X),a.default.component(et.name,et),a.default.component(At.name,At),a.default.use(y.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var Ke={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};function qe(){return(qe=u()(regeneratorRuntime.mark(function t(e){var n,r,o,i,u,s,c,l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new E.a({mode:"history",base:"/",linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:J,routes:[{path:"/acces-libre",component:A,name:"acces-libre"},{path:"/plateforme-entrainement",component:w,name:"plateforme-entrainement"},{path:"/info-numerique",component:x,name:"info-numerique"},{path:"/formulaire",component:P,name:"formulaire"},{path:"/fonctionnalites",component:T,name:"fonctionnalites"},{path:"/mon-espace",component:C,name:"mon-espace"},{path:"/cgu",component:R,name:"cgu"},{path:"/bureau",component:U,name:"bureau"},{path:"/faq",component:O,name:"faq"},{path:"/feuilleter",component:D,name:"feuilleter"},{path:"/manuel-numerique",component:I,name:"manuel-numerique"},{path:"/demo",component:N,name:"demo"},{path:"/charte-cookies",component:L,name:"charte-cookies"},{path:"/offres",component:M,name:"offres"},{path:"/contact",component:j,name:"contact"},{path:"/charte-donnees-personnelles",component:H,name:"charte-donnees-personnelles"},{path:"/info-alamaison",component:B,name:"info-alamaison"},{path:"/acces",component:G,name:"acces"},{path:"/mentions-legales",component:F,name:"mentions-legales"},{path:"/formulaire/:ean",component:z,name:"formulaire-ean"},{path:"/offres/:ean",component:K,name:"offres-ean"},{path:"/demo/:ean",component:q,name:"demo-ean"},{path:"/acces-libre/:ean?",component:$,name:"acces-libre-ean"},{path:"/feuilleter/:ean",component:V,name:"feuilleter-ean"},{path:"/",component:W,name:"index"}],fallback:!1});case 2:return n=t.sent,(r=Se(e)).$router=n,o=r.registerModule,r.registerModule=function(t,e,n){return o.call(r,t,e,Object.assign({preserveState:!0},n))},i=b()({router:n,store:r,nuxt:{defaultTransition:Ke,transitions:[Ke],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map(function(t){return t=t?"string"==typeof t?Object.assign({},Ke,{name:t}):Object.assign({},Ke,t):Ke}),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,i.context._errored=!!t,"string"==typeof t&&(t={statusCode:500,message:t});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},Xt),r.app=i,u=e?e.next:function(t){return i.router.push(t)},e?s=n.resolve(e.url).route:(c=mt(n.options.base),s=n.resolve(c).route),t.next=13,pt(i,{route:s,next:u,error:i.nuxt.error.bind(i),store:r,payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0});case 13:if(l=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(!e)throw new Error("inject(key, value) has no value provided");i[t="$"+t]=e,r[t]=i[t];var n="__nuxt_"+t+"_installed__";a.default[n]||(a.default[n]=!0,a.default.use(function(){a.default.prototype.hasOwnProperty(t)||Object.defineProperty(a.default.prototype,t,{get:function(){return this.$root.$options[t]}})}))},window.__NUXT__&&window.__NUXT__.state&&r.replaceState(window.__NUXT__.state),"function"!=typeof Pe){t.next=18;break}return t.next=18,Pe(i.context,l);case 18:t.next=21;break;case 21:if("function"!=typeof Ie.a){t.next=24;break}return t.next=24,Object(Ie.a)(i.context,l);case 24:t.next=27;break;case 27:t.next=30;break;case 30:if("function"!=typeof xe.a){t.next=34;break}return t.next=34,xe()(i.context,l);case 34:if("function"!=typeof Ue.a){t.next=37;break}return t.next=37,Ue()(i.context,l);case 37:t.next=40;break;case 40:t.next=43;break;case 43:return t.abrupt("return",{app:i,router:n,store:r});case 44:case"end":return t.stop()}},t)}))).apply(this,arguments)}var $e,Ve,We=[],Je=window.__NUXT__||{};function Qe(t,e,n){var r=function(t){var r=function(t,e){if(!t||!t.options||!t.options[e])return{};var n=t.options[e];if("function"==typeof n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.instances).map(function(r){return e&&e.push(n),t.instances[r]})}))}(t,e),o=st(t,e);r.forEach(function(t,e){if(t&&t.constructor._dataRefresh&&o[e]===t.constructor&&"function"==typeof t.constructor.options.data){var n=t.constructor.options.data.call(t);for(var r in n)a.default.set(t.$data,r,n[r])}}),on.call(n,t)})}function an(t){window.onNuxtReadyCbs.forEach(function(e){"function"==typeof e&&e(t)}),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(t),Ve.afterEach(function(e,n){a.default.nextTick(function(){return t.$nuxt.$emit("routeChanged",e,n)})})}function sn(){return(sn=u()(regeneratorRuntime.mark(function t(e){var n,r,o,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return $e=e.app,Ve=e.router,e.store,t.next=5,Promise.all((c=void 0,c=mt((s=Ve).options.base,s.options.mode),ct(s.match(c),function(){var t=u()(regeneratorRuntime.mark(function t(e,n,r,o,i){var u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=4;break}return t.next=3,e();case 3:e=t.sent;case 4:return u=Ze(at(e),Je.data?Je.data[i]:null),r.components[o]=u,t.abrupt("return",u);case 7:case"end":return t.stop()}},t)}));return function(e,n,r,o,i){return t.apply(this,arguments)}}())));case 5:return n=t.sent,r=new a.default($e),o=Je.layout||"default",t.next=10,r.loadLayout(o);case 10:if(r.setLayout(o),i=function(){r.$mount("#__nuxt"),a.default.nextTick(function(){an(r)})},r.setTransitions=r.$options.nuxt.setTransitions.bind(r),n.length&&(r.setTransitions(Qe(n,Ve.currentRoute)),We=Ve.currentRoute.matched.map(function(t){return gt(t.path)(Ve.currentRoute.params)})),r.$loading={},Je.error&&r.error(Je.error),Ve.beforeEach(Ye.bind(r)),Ve.beforeEach(en.bind(r)),Ve.afterEach(rn),Ve.afterEach(un.bind(r)),!Je.serverRendered){t.next=23;break}return i(),t.abrupt("return");case 23:en.call(r,Ve.currentRoute,Ve.currentRoute,function(t){if(!t)return rn(Ve.currentRoute,Ve.currentRoute),on.call(r,Ve.currentRoute),void i();Ve.push(t,function(){return i()},function(t){if(!t)return i();console.error(t)})});case 24:case"end":return t.stop()}var s,c},t)}))).apply(this,arguments)}Object.assign(a.default.config,{silent:!0,performance:!1}),function(t){return qe.apply(this,arguments)}().then(function(t){return sn.apply(this,arguments)}).catch(function(t){console.error("[nuxt] Error while initializing app",t)})},4:function(t,e,n){"use strict";n(31),n(50),n(32),n(26),n(103),n(112),n(25),n(16),n(57);var r=n(37),o=n.n(r),i=n(38),u=n.n(i),a=n(129),s=n.n(a),c=n(158),l=function(){function t(){o()(this,t),this.isFirstLoad=!0,this.isGlobalBrowseMode=!1}return u()(t,[{key:"clone",value:function(t){return t?JSON.parse(JSON.stringify(t)):t}},{key:"isEmpty",value:function(t){return!t||0===Object.keys(t).length}},{key:"isNullOrUndefined",value:function(t){return null==t}},{key:"getCookie",value:function(t){return c?c.get(t):null}},{key:"setCookie",value:function(t,e){return c?c.set(t,e):null}},{key:"getType",value:function(t){var e;switch(t){case"complet":e="Version complète";break;case"extrait":e="Version de démonstration"}return e}},{key:"getTypeAndPublic",value:function(t,e){var n,r=-1!==e.indexOf("enseignant"),o=-1!==e.indexOf("eleve");switch(t){case"complet":r&&o?n="Version enseignant et élève - Complet":r?n="Version enseignant - Complet":o&&(n="Version élève - Complet");break;case"extrait":r&&o?n="Version enseignant et élève - Extrait":r?n="Version enseignant - Extrait":o&&(n="Version élève - Extrait")}return n}},{key:"getProductType",value:function(t){var e;switch(t){case"banque-de-ressources":e="Banque de ressources";break;case"manuel-numerique":case"manuel-numerique-mixte":case"manuel-numerique-web":e="Manuel numérique";break;case"parcours-exercices":e="Parcours d'exercices";break;case"plateforme-entrainement":e="Plateforme d'entraînement"}return e}},{key:"getEditorFullName",value:function(t,e){return"Éditions "+this.getEditorName(t,e)}},{key:"getFrontHubSection",value:function(t){return t&&t["FRONT-HUB"]?t["FRONT-HUB"]:null}},{key:"getProductUrl",value:function(t){var e,n="complet-extrait"===t.knewtonData.type&&"complet"===t.knewtonData.demoMode||"complet"===t.knewtonData.type?"complete":"extract";return n=n.toLowerCase(),this.isEmpty(t.knewtonData.url)?e="parcours-exercices"===t.knewtonData.productType||"banque-de-ressources"===t.knewtonData.productType?"https://demo.educadhoc.fr/reader/textbook/"+t.knewtonData.ean+"/player?feature=demo":"https://demo.educadhoc.fr/reader/textbook/"+t.knewtonData.ean+"/fxl?feature=demo&demoMode="+n:-1!==(e=t.knewtonData.url).indexOf("educadhoc")&&(e=this.updateQueryStringParameter(e,"hideBtn",!0)),e}},{key:"getFreeAccessProductUrl",value:function(t){this.isEmpty(t.knewtonData.modeAccesLibre)||t.knewtonData.modeAccesLibre;return"https://demo.educadhoc.fr/reader/textbook/"+(t.knewtonData.eanAccesLibre?t.knewtonData.eanAccesLibre:t.knewtonData.ean)+"/fxl?feature=freemium"}},{key:"updateQueryStringParameter",value:function(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n}},{key:"getConfigurationSummaryEntry",value:function(t){var e=this.getFrontHubSection(t);return e&&!this.isEmpty(e.children)?e.children[0]:null}},{key:"getConfigurationMetadataForKey",value:function(t,e,n){var r,o=this.getConfigurationSummaryEntry(t);return o&&o.metaData&&o.metaData.map(function(t){t.key===e&&(r=t.value)},this),r&&n&&(r=JSON.parse(r)),r}},{key:"getDefautFilterTypeProduct",value:function(){return"knewtonData.type=extrait|knewtonData.type=complet|knewtonData.type=complet-extrait"}},{key:"getNameForFilter",value:function(t,e,n){var r=this,o="",i=e.split(","),u=-1;return i.map(function(e){u++;var a=e,s=r.getConfigurationMetadataForKey(t,"search-filters",!0);s&&s[n]&&s[n].filters&&s[n].filters.some(function(t){t.values[0]!==e||(a=t.name)}),o+=a,u-1)return!0;var e=t.indexOf("Edge/");return e>0&&parseInt(t.substring(e+5,t.indexOf(".",e)),10)}},{key:"getEditorSite",value:function(t){var e;if(t&&t.knewtonData)if(this.isEmpty(t.knewtonData.urlSiteEditeur))switch(t.knewtonData.editeur){case"didier":break;case"foucher":e="https://editions-foucher.fr/livre/"+t.knewtonData.ean;break;case"hachette-education":e="https://enseignants.hachette-education.com/ean/"+t.knewtonData.ean;break;case"hatier":e="https://editions-hatier.fr/livre/"+t.knewtonData.ean}else e=t.knewtonData.urlSiteEditeur;return e}}]),t}();e.a=new l},60:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAAAi5JREFUaAXN2T1OwzAUAGA7NKhSWRiYOEc6UYkRRhY4QalAQoz0AEiUM3Rn6MbSHqKsHKE3aAdIiMlLZDc/beOf58QeEjtVnr+4TpTnEJKUsD96CYPhBOouFnb5eBIG9/Ow/zDgPg/QLI4njBEn8YCONuGcMXZN4j+B9wiLT/lVuIbfogkfaT/x9sBLYQPTBNBQh0IpefeX03HWamdbRlNCfyhhN52v6SI1cpZL+Dp0AQ4NF/Ay6Aq8bbwseie8LbwKei+8abwq+iC8KbwOuhZuG6+LloLbwpugpeHYeFO0EhwLj4FWhpvisdBacF08JlobrorHRhvBZfE20MbwOrwtNAp8H77T81+zzCVLAsrv03CeSUkTCZMA/NzqKzFdJenWOfyOjc5i8p4R9mV81kExc0HoJg3hYQWCODA9KKWrfExG2SdPt/LHTeto8O2NmE0PAWPkFv4J0UaqoMBT9DpaJAl3mo3DnE4m9owbbaweGMPFSBN2AVB+Ix4vp3ewWmALb/RUEejcSOeXEABdvmGxlj604TJoPto28FpwFbQtvDJcB20DrwQ3QWPjpeEYaEy8FBwTjYWvhdtAY+APwm2iTfF74U2gTfA74U2idfEVeBtoHXwB3iZaFS/gLqBV8CncJbQsnrqIlsF70Saa5TOX8vs0D9LGHj5ZlpOR32D4DBaP0KO3JGtZ88zFRmJrctEFPCXffrf7IeLBN/IwGF2JAw5WYKTZ4OnMQZoa6R+GtgszIyosZwAAAABJRU5ErkJggg=="},71:function(t,e,n){t.exports=n.p+"img/3ffe8ac.png"},74:function(t,e,n){t.exports=n.p+"img/44302eb.png"},75:function(t,e,n){},76:function(t,e,n){},77:function(t,e,n){},78:function(t,e,n){},79:function(t,e,n){},80:function(t,e,n){},81:function(t,e,n){},82:function(t,e,n){},83:function(t,e,n){},84:function(t,e,n){},85:function(t,e,n){},86:function(t,e,n){},87:function(t,e,n){},88:function(t,e,n){},9:function(t,e,n){"use strict";n.d(e,"a",function(){return a});n(26);var r=n(5),o=n.n(r),i=n(17),u=n(4),a={mounted:function(){this.isMounted=!0,u.a.isFirstLoad=!1},components:{hSubHeader:n(130).a},computed:o()(o()({},Object(i.c)({auth:"auth",userHub:"users/userHub"})),{},{isAuthentificated:function(){return null!==this.auth&&null!==this.user&&!this.user.isDemo},vuetifyBreakpointClass:function(){var t="";return this.isMounted&&this.$vuetify.breakpoint.xs?t="xs":this.isMounted&&this.$vuetify.breakpoint.sm?t="sm":this.isMounted&&this.$vuetify.breakpoint.md?t="md":this.isMounted&&this.$vuetify.breakpoint.lg?t="lg":this.isMounted&&this.$vuetify.breakpoint.xl&&(t="xl"),t},urlHachetteEducation:function(){return"https://www.hachette-education.com/"},urlHatier:function(){return"https://www.editions-hatier.fr/"},urlDidier:function(){return"https://www.editionsdidier.com/fr"},urlFoucher:function(){return"https://www.editions-foucher.fr/"},urlIstra:function(){return"https://www.editions-istra.com/"}}),data:function(){return{isMounted:!1}},methods:{goto:function(t){this.$router.push(t)},productFreeAccessUrl:function(t){return"/acces-libre/".concat(t)},productDemoUrl:function(t){return"/demo/".concat(t)},offersUrl:function(t){return"/offres/".concat(t)},productFormulaireUrl:function(t,e){var n="";return"decouverte"===e?n="?offre=decouverte":"prescripteur"===e&&(n="?offre=prescripteur"),"/formulaire/".concat(t+n)},productFeuilleterUrl:function(t){return"/feuilleter/".concat(t)},addQueryString:function(t,e){var n={};n[t]=e,this.$router.replace({query:o()(o()({},this.$route.query),n)})},removeQueryString:function(t){var e=u.a.clone(this.$route.query);e[t]&&delete e[t],this.$router.replace({query:o()({},e)})},vuetifyBreakpointClassValue:function(t){return!!t&&(this.isMounted&&this.$vuetify.breakpoint[t])},isResponsiveMode:function(){return this.vuetifyBreakpointClassValue("smAndDown")}}}}},[[193,31,5,32]]]);