streaming-availability
Version:
Streaming Availability API allows getting streaming availability information of movies and series; and querying the list of available shows on streaming services such as Netflix, Disney+, Apple TV, Max and Hulu across 59 countries!
1 lines • 50.2 kB
JavaScript
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).streamingAvailability=e()}}((function(){return function e(n,t,r){function o(s,a){if(!t[s]){if(!n[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=t[s]={exports:{}};n[s][0].call(l.exports,(function(e){return o(n[s][1][e]||e)}),l,l.exports,e,n,t,r)}return t[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,n,t){"use strict";var r,o=this&&this.__extends||(r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},r(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,a)}u((r=r.apply(e,n||[])).next())}))},s=this&&this.__generator||function(e,n){var t,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=n.call(e,s)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchByTitleOutputLanguageEnum=t.SearchByTitleSeriesGranularityEnum=t.SearchByTitleShowTypeEnum=t.SearchByFiltersOrderByEnum=t.SearchByFiltersGenresRelationEnum=t.SearchByFiltersSeriesGranularityEnum=t.SearchByFiltersShowTypeEnum=t.SearchByFiltersOutputLanguageEnum=t.LeavingOutputLanguageEnum=t.LeavingTargetTypeEnum=t.GetByIdOutputLanguageEnum=t.GetByIdSeriesGranularityEnum=t.ChangesOutputLanguageEnum=t.ChangesTargetTypeEnum=t.ChangesChangeTypeEnum=t.DefaultApi=void 0;var a=e("../runtime"),u=e("../models/index"),c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.changesRaw=function(e,n){return i(this,void 0,void 0,(function(){var t,r,o;return s(this,(function(i){switch(i.label){case 0:if(null===e.country||void 0===e.country)throw new a.RequiredError("country","Required parameter requestParameters.country was null or undefined when calling changes.");if(null===e.services||void 0===e.services)throw new a.RequiredError("services","Required parameter requestParameters.services was null or undefined when calling changes.");if(null===e.changeType||void 0===e.changeType)throw new a.RequiredError("changeType","Required parameter requestParameters.changeType was null or undefined when calling changes.");if(null===e.targetType||void 0===e.targetType)throw new a.RequiredError("targetType","Required parameter requestParameters.targetType was null or undefined when calling changes.");return t={},void 0!==e.country&&(t.country=e.country),void 0!==e.services&&(t.services=e.services),void 0!==e.changeType&&(t.change_type=e.changeType),void 0!==e.targetType&&(t.target_type=e.targetType),void 0!==e.since&&(t.since=e.since),void 0!==e.cursor&&(t.cursor=e.cursor),void 0!==e.desc&&(t.desc=e.desc),void 0!==e.outputLanguage&&(t.output_language=e.outputLanguage),r={},this.configuration&&this.configuration.apiKey&&(r["X-RapidAPI-Key"]=this.configuration.apiKey("X-RapidAPI-Key")),[4,this.request({path:"/changes",method:"GET",headers:r,query:t},n)];case 1:return o=i.sent(),[2,new a.JSONApiResponse(o,(function(e){return(0,u.ChangesResponseSchemaFromJSON)(e)}))]}}))}))},n.prototype.changes=function(e,n){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.changesRaw(e,n)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},n.prototype.countriesRaw=function(e){return i(this,void 0,void 0,(function(){var n,t,r;return s(this,(function(o){switch(o.label){case 0:return n={},t={},this.configuration&&this.configuration.apiKey&&(t["X-RapidAPI-Key"]=this.configuration.apiKey("X-RapidAPI-Key")),[4,this.request({path:"/countries",method:"GET",headers:t,query:n},e)];case 1:return r=o.sent(),[2,new a.JSONApiResponse(r,(function(e){return(0,u.CountriesResponseSchemaFromJSON)(e)}))]}}))}))},n.prototype.countries=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,this.countriesRaw(e)];case 1:return[4,n.sent().value()];case 2:return[2,n.sent()]}}))}))},n.prototype.genresRaw=function(e){return i(this,void 0,void 0,(function(){var n,t,r;return s(this,(function(o){switch(o.label){case 0:return n={},t={},this.configuration&&this.configuration.apiKey&&(t["X-RapidAPI-Key"]=this.configuration.apiKey("X-RapidAPI-Key")),[4,this.request({path:"/genres",method:"GET",headers:t,query:n},e)];case 1:return r=o.sent(),[2,new a.JSONApiResponse(r,(function(e){return(0,u.GenresResponseSchemaFromJSON)(e)}))]}}))}))},n.prototype.genres=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,this.genresRaw(e)];case 1:return[4,n.sent().value()];case 2:return[2,n.sent()]}}))}))},n.prototype.getByIdRaw=function(e,n){return i(this,void 0,void 0,(function(){var t,r,o;return s(this,(function(i){switch(i.label){case 0:return t={},void 0!==e.imdbId&&(t.imdb_id=e.imdbId),void 0!==e.tmdbId&&(t.tmdb_id=e.tmdbId),void 0!==e.seriesGranularity&&(t.series_granularity=e.seriesGranularity),void 0!==e.outputLanguage&&(t.output_language=e.outputLanguage),r={},this.configuration&&this.configuration.apiKey&&(r["X-RapidAPI-Key"]=this.configuration.apiKey("X-RapidAPI-Key")),[4,this.request({path:"/get",method:"GET",headers:r,query:t},n)];case 1:return o=i.sent(),[2,new a.JSONApiResponse(o,(function(e){return(0,u.GetResponseSchemaFromJSON)(e)}))]}}))}))},n.prototype.getById=function(e,n){return void 0===e&&(e={}),i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.getByIdRaw(e,n)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},n.prototype.leavingRaw=function(e,n){return i(this,void 0,void 0,(function(){var t,r,o;return s(this,(function(i){switch(i.label){case 0:if(null===e.country||void 0===e.country)throw new a.RequiredError("country","Required parameter requestParameters.country was null or undefined when calling leaving.");if(null===e.services||void 0===e.services)throw new a.RequiredError("services","Required parameter requestParameters.services was null or undefined when calling leaving.");if(null===e.targetType||void 0===e.targetType)throw new a.RequiredError("targetType","Required parameter requestParameters.targetType was null or undefined when calling leaving.");return t={},void 0!==e.country&&(t.country=e.country),void 0!==e.services&&(t.services=e.services),void 0!==e.targetType&&(t.target_type=e.targetType),void 0!==e.cursor&&(t.cursor=e.cursor),void 0!==e.outputLanguage&&(t.output_language=e.outputLanguage),r={},this.configuration&&this.configuration.apiKey&&(r["X-RapidAPI-Key"]=this.configuration.apiKey("X-RapidAPI-Key")),[4,this.request({path:"/leaving",method:"GET",headers:r,query:t},n)];case 1:return o=i.sent(),[2,new a.JSONApiResponse(o,(function(e){return(0,u.UpcomingChangesResponseSchemaFromJSON)(e)}))]}}))}))},n.prototype.leaving=function(e,n){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.leavingRaw(e,n)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},n.prototype.searchByFiltersRaw=function(e,n){return i(this,void 0,void 0,(function(){var t,r,o;return s(this,(function(i){switch(i.label){case 0:if(null===e.country||void 0===e.country)throw new a.RequiredError("country","Required parameter requestParameters.country was null or undefined when calling searchByFilters.");if(null===e.services||void 0===e.services)throw new a.RequiredError("services","Required parameter requestParameters.services was null or undefined when calling searchByFilters.");return t={},void 0!==e.country&&(t.country=e.country),void 0!==e.services&&(t.services=e.services),void 0!==e.outputLanguage&&(t.output_language=e.outputLanguage),void 0!==e.showType&&(t.show_type=e.showType),void 0!==e.seriesGranularity&&(t.series_granularity=e.seriesGranularity),void 0!==e.genres&&(t.genres=e.genres),void 0!==e.genresRelation&&(t.genres_relation=e.genresRelation),void 0!==e.showOriginalLanguage&&(t.show_original_language=e.showOriginalLanguage),void 0!==e.yearMin&&(t.year_min=e.yearMin),void 0!==e.yearMax&&(t.year_max=e.yearMax),void 0!==e.keyword&&(t.keyword=e.keyword),void 0!==e.orderBy&&(t.order_by=e.orderBy),void 0!==e.desc&&(t.desc=e.desc),void 0!==e.cursor&&(t.cursor=e.cursor),r={},this.configuration&&this.configuration.apiKey&&(r["X-RapidAPI-Key"]=this.configuration.apiKey("X-RapidAPI-Key")),[4,this.request({path:"/search/filters",method:"GET",headers:r,query:t},n)];case 1:return o=i.sent(),[2,new a.JSONApiResponse(o,(function(e){return(0,u.SearchFiltersResponseSchemaFromJSON)(e)}))]}}))}))},n.prototype.searchByFilters=function(e,n){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.searchByFiltersRaw(e,n)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},n.prototype.searchByTitleRaw=function(e,n){return i(this,void 0,void 0,(function(){var t,r,o;return s(this,(function(i){switch(i.label){case 0:if(null===e.title||void 0===e.title)throw new a.RequiredError("title","Required parameter requestParameters.title was null or undefined when calling searchByTitle.");if(null===e.country||void 0===e.country)throw new a.RequiredError("country","Required parameter requestParameters.country was null or undefined when calling searchByTitle.");return t={},void 0!==e.title&&(t.title=e.title),void 0!==e.showType&&(t.show_type=e.showType),void 0!==e.country&&(t.country=e.country),void 0!==e.seriesGranularity&&(t.series_granularity=e.seriesGranularity),void 0!==e.outputLanguage&&(t.output_language=e.outputLanguage),r={},this.configuration&&this.configuration.apiKey&&(r["X-RapidAPI-Key"]=this.configuration.apiKey("X-RapidAPI-Key")),[4,this.request({path:"/search/title",method:"GET",headers:r,query:t},n)];case 1:return o=i.sent(),[2,new a.JSONApiResponse(o,(function(e){return(0,u.SearchTitleResponseSchemaFromJSON)(e)}))]}}))}))},n.prototype.searchByTitle=function(e,n){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.searchByTitleRaw(e,n)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},n.prototype.servicesRaw=function(e){return i(this,void 0,void 0,(function(){var n,t,r;return s(this,(function(o){switch(o.label){case 0:return n={},t={},this.configuration&&this.configuration.apiKey&&(t["X-RapidAPI-Key"]=this.configuration.apiKey("X-RapidAPI-Key")),[4,this.request({path:"/services",method:"GET",headers:t,query:n},e)];case 1:return r=o.sent(),[2,new a.JSONApiResponse(r,(function(e){return(0,u.ServicesResponseSchemaFromJSON)(e)}))]}}))}))},n.prototype.services=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,this.servicesRaw(e)];case 1:return[4,n.sent().value()];case 2:return[2,n.sent()]}}))}))},n}(a.BaseAPI);t.DefaultApi=c,t.ChangesChangeTypeEnum={New:"new",Removed:"removed",Updated:"updated"},t.ChangesTargetTypeEnum={Show:"show",Movie:"movie",Series:"series",Season:"season",Episode:"episode"},t.ChangesOutputLanguageEnum={En:"en",Es:"es",Tr:"tr",Fr:"fr"},t.GetByIdSeriesGranularityEnum={Show:"show",Season:"season",Episode:"episode"},t.GetByIdOutputLanguageEnum={En:"en",Es:"es",Tr:"tr",Fr:"fr"},t.LeavingTargetTypeEnum={Show:"show",Movie:"movie",Series:"series",Season:"season",Episode:"episode"},t.LeavingOutputLanguageEnum={En:"en",Es:"es",Tr:"tr",Fr:"fr"},t.SearchByFiltersOutputLanguageEnum={En:"en",Es:"es",Tr:"tr",Fr:"fr"},t.SearchByFiltersShowTypeEnum={Movie:"movie",Series:"series",All:"all"},t.SearchByFiltersSeriesGranularityEnum={Show:"show",Season:"season",Episode:"episode"},t.SearchByFiltersGenresRelationEnum={And:"and",Or:"or"},t.SearchByFiltersOrderByEnum={OriginalTitle:"original_title",Year:"year",PopularityAlltime:"popularity_alltime",Popularity1year:"popularity_1year",Popularity1month:"popularity_1month",Popularity1week:"popularity_1week"},t.SearchByTitleShowTypeEnum={Movie:"movie",Series:"series",All:"all"},t.SearchByTitleSeriesGranularityEnum={Show:"show",Season:"season",Episode:"episode"},t.SearchByTitleOutputLanguageEnum={En:"en",Es:"es",Tr:"tr",Fr:"fr"}},{"../models/index":33,"../runtime":34}],2:[function(e,n,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t);var o=Object.getOwnPropertyDescriptor(n,t);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,o)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),o=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||r(n,e,t)};Object.defineProperty(t,"__esModule",{value:!0}),o(e("./DefaultApi"),t)},{"./DefaultApi":1}],3:[function(e,n,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t);var o=Object.getOwnPropertyDescriptor(n,t);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,o)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),o=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||r(n,e,t)};Object.defineProperty(t,"__esModule",{value:!0}),o(e("./runtime"),t),o(e("./apis/index"),t),o(e("./models/index"),t)},{"./apis/index":2,"./models/index":33,"./runtime":34}],4:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddonToJSON=t.AddonFromJSONTyped=t.AddonFromJSON=t.instanceOfAddon=void 0;var r=e("./ImageSet");function o(e,n){return null==e?e:{id:e.id,displayName:e.displayName,homePage:e.homePage,themeColorCode:e.themeColorCode,image:e.image,images:(0,r.ImageSetFromJSON)(e.images)}}t.instanceOfAddon=function(e){var n=!0;return n=(n=(n=(n=(n=(n=n&&"id"in e)&&"displayName"in e)&&"homePage"in e)&&"themeColorCode"in e)&&"image"in e)&&"images"in e},t.AddonFromJSON=function(e){return o(e,!1)},t.AddonFromJSONTyped=o,t.AddonToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,displayName:e.displayName,homePage:e.homePage,themeColorCode:e.themeColorCode,image:e.image,images:(0,r.ImageSetToJSON)(e.images)}}},{"./ImageSet":15}],5:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeToJSON=t.ChangeFromJSONTyped=t.ChangeFromJSON=t.instanceOfChange=void 0;var r=e("../runtime"),o=e("./StreamingType");function i(e,n){return null==e?e:{season:(0,r.exists)(e,"season")?e.season:void 0,episode:(0,r.exists)(e,"episode")?e.episode:void 0,service:e.service,streamingType:(0,o.StreamingTypeFromJSON)(e.streamingType),addon:(0,r.exists)(e,"addon")?e.addon:void 0,time:e.time}}t.instanceOfChange=function(e){var n=!0;return n=(n=(n=n&&"service"in e)&&"streamingType"in e)&&"time"in e},t.ChangeFromJSON=function(e){return i(e,!1)},t.ChangeFromJSONTyped=i,t.ChangeToJSON=function(e){if(void 0!==e)return null===e?null:{season:e.season,episode:e.episode,service:e.service,streamingType:(0,o.StreamingTypeToJSON)(e.streamingType),addon:e.addon,time:e.time}}},{"../runtime":34,"./StreamingType":28}],6:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeSetToJSON=t.ChangeSetFromJSONTyped=t.ChangeSetFromJSON=t.instanceOfChangeSet=void 0;var r=e("./Change"),o=e("./Show");function i(e,n){return null==e?e:{changes:e.changes.map(r.ChangeFromJSON),show:(0,o.ShowFromJSON)(e.show)}}t.instanceOfChangeSet=function(e){var n=!0;return n=(n=n&&"changes"in e)&&"show"in e},t.ChangeSetFromJSON=function(e){return i(e,!1)},t.ChangeSetFromJSONTyped=i,t.ChangeSetToJSON=function(e){if(void 0!==e)return null===e?null:{changes:e.changes.map(r.ChangeToJSON),show:(0,o.ShowToJSON)(e.show)}}},{"./Change":5,"./Show":26}],7:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChangesResponseSchemaToJSON=t.ChangesResponseSchemaFromJSONTyped=t.ChangesResponseSchemaFromJSON=t.instanceOfChangesResponseSchema=void 0;var r=e("./ChangeSet");function o(e,n){return null==e?e:{result:e.result.map(r.ChangeSetFromJSON),hasMore:e.hasMore,nextCursor:e.nextCursor}}t.instanceOfChangesResponseSchema=function(e){var n=!0;return n=(n=(n=n&&"result"in e)&&"hasMore"in e)&&"nextCursor"in e},t.ChangesResponseSchemaFromJSON=function(e){return o(e,!1)},t.ChangesResponseSchemaFromJSONTyped=o,t.ChangesResponseSchemaToJSON=function(e){if(void 0!==e)return null===e?null:{result:e.result.map(r.ChangeSetToJSON),hasMore:e.hasMore,nextCursor:e.nextCursor}}},{"./ChangeSet":6}],8:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountriesResponseSchemaToJSON=t.CountriesResponseSchemaFromJSONTyped=t.CountriesResponseSchemaFromJSON=t.instanceOfCountriesResponseSchema=void 0;var r=e("../runtime"),o=e("./Country");function i(e,n){return null==e?e:{result:(0,r.mapValues)(e.result,o.CountryFromJSON)}}t.instanceOfCountriesResponseSchema=function(e){var n=!0;return n=n&&"result"in e},t.CountriesResponseSchemaFromJSON=function(e){return i(e,!1)},t.CountriesResponseSchemaFromJSONTyped=i,t.CountriesResponseSchemaToJSON=function(e){if(void 0!==e)return null===e?null:{result:(0,r.mapValues)(e.result,o.CountryToJSON)}}},{"../runtime":34,"./Country":9}],9:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountryToJSON=t.CountryFromJSONTyped=t.CountryFromJSON=t.instanceOfCountry=void 0;var r=e("../runtime"),o=e("./Service");function i(e,n){return null==e?e:{countryCode:e.countryCode,name:e.name,services:(0,r.mapValues)(e.services,o.ServiceFromJSON)}}t.instanceOfCountry=function(e){var n=!0;return n=(n=(n=n&&"countryCode"in e)&&"name"in e)&&"services"in e},t.CountryFromJSON=function(e){return i(e,!1)},t.CountryFromJSONTyped=i,t.CountryToJSON=function(e){if(void 0!==e)return null===e?null:{countryCode:e.countryCode,name:e.name,services:(0,r.mapValues)(e.services,o.ServiceToJSON)}}},{"../runtime":34,"./Service":23}],10:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeprecatedServiceInfoToJSON=t.DeprecatedServiceInfoFromJSONTyped=t.DeprecatedServiceInfoFromJSON=t.instanceOfDeprecatedServiceInfo=void 0;var r=e("../runtime"),o=e("./ServiceCountryInfo");function i(e,n){return null==e?e:{id:e.id,countries:(0,r.mapValues)(e.countries,o.ServiceCountryInfoFromJSON)}}t.instanceOfDeprecatedServiceInfo=function(e){var n=!0;return n=(n=n&&"id"in e)&&"countries"in e},t.DeprecatedServiceInfoFromJSON=function(e){return i(e,!1)},t.DeprecatedServiceInfoFromJSONTyped=i,t.DeprecatedServiceInfoToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,countries:(0,r.mapValues)(e.countries,o.ServiceCountryInfoToJSON)}}},{"../runtime":34,"./ServiceCountryInfo":24}],11:[function(e,n,t){"use strict";function r(e,n){return null==e?e:{type:e.type,title:e.title,year:e.year,streamingInfo:e.streamingInfo}}Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeToJSON=t.EpisodeFromJSONTyped=t.EpisodeFromJSON=t.instanceOfEpisode=t.EpisodeTypeEnum=void 0,t.EpisodeTypeEnum={Episode:"episode"},t.instanceOfEpisode=function(e){var n=!0;return n=(n=(n=(n=n&&"type"in e)&&"title"in e)&&"year"in e)&&"streamingInfo"in e},t.EpisodeFromJSON=function(e){return r(e,!1)},t.EpisodeFromJSONTyped=r,t.EpisodeToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type,title:e.title,year:e.year,streamingInfo:e.streamingInfo}}},{}],12:[function(e,n,t){"use strict";function r(e,n){return null==e?e:{id:e.id,name:e.name}}Object.defineProperty(t,"__esModule",{value:!0}),t.GenreToJSON=t.GenreFromJSONTyped=t.GenreFromJSON=t.instanceOfGenre=void 0,t.instanceOfGenre=function(e){var n=!0;return n=(n=n&&"id"in e)&&"name"in e},t.GenreFromJSON=function(e){return r(e,!1)},t.GenreFromJSONTyped=r,t.GenreToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,name:e.name}}},{}],13:[function(e,n,t){"use strict";function r(e,n){return null==e?e:{result:e.result}}Object.defineProperty(t,"__esModule",{value:!0}),t.GenresResponseSchemaToJSON=t.GenresResponseSchemaFromJSONTyped=t.GenresResponseSchemaFromJSON=t.instanceOfGenresResponseSchema=void 0,t.instanceOfGenresResponseSchema=function(e){var n=!0;return n=n&&"result"in e},t.GenresResponseSchemaFromJSON=function(e){return r(e,!1)},t.GenresResponseSchemaFromJSONTyped=r,t.GenresResponseSchemaToJSON=function(e){if(void 0!==e)return null===e?null:{result:e.result}}},{}],14:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetResponseSchemaToJSON=t.GetResponseSchemaFromJSONTyped=t.GetResponseSchemaFromJSON=t.instanceOfGetResponseSchema=void 0;var r=e("./Show");function o(e,n){return null==e?e:{result:(0,r.ShowFromJSON)(e.result)}}t.instanceOfGetResponseSchema=function(e){var n=!0;return n=n&&"result"in e},t.GetResponseSchemaFromJSON=function(e){return o(e,!1)},t.GetResponseSchemaFromJSONTyped=o,t.GetResponseSchemaToJSON=function(e){if(void 0!==e)return null===e?null:{result:(0,r.ShowToJSON)(e.result)}}},{"./Show":26}],15:[function(e,n,t){"use strict";function r(e,n){return null==e?e:{lightThemeImage:e.lightThemeImage,darkThemeImage:e.darkThemeImage,whiteImage:e.whiteImage}}Object.defineProperty(t,"__esModule",{value:!0}),t.ImageSetToJSON=t.ImageSetFromJSONTyped=t.ImageSetFromJSON=t.instanceOfImageSet=void 0,t.instanceOfImageSet=function(e){var n=!0;return n=(n=(n=n&&"lightThemeImage"in e)&&"darkThemeImage"in e)&&"whiteImage"in e},t.ImageSetFromJSON=function(e){return r(e,!1)},t.ImageSetFromJSONTyped=r,t.ImageSetToJSON=function(e){if(void 0!==e)return null===e?null:{lightThemeImage:e.lightThemeImage,darkThemeImage:e.darkThemeImage,whiteImage:e.whiteImage}}},{}],16:[function(e,n,t){"use strict";function r(e,n){return null==e?e:{language:e.language,region:e.region}}Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleToJSON=t.LocaleFromJSONTyped=t.LocaleFromJSON=t.instanceOfLocale=void 0,t.instanceOfLocale=function(e){var n=!0;return n=(n=n&&"language"in e)&&"region"in e},t.LocaleFromJSON=function(e){return r(e,!1)},t.LocaleFromJSONTyped=r,t.LocaleToJSON=function(e){if(void 0!==e)return null===e?null:{language:e.language,region:e.region}}},{}],17:[function(e,n,t){"use strict";function r(e,n){return null==e?e:{message:e.message}}Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundResponseSchemaToJSON=t.NotFoundResponseSchemaFromJSONTyped=t.NotFoundResponseSchemaFromJSON=t.instanceOfNotFoundResponseSchema=void 0,t.instanceOfNotFoundResponseSchema=function(e){var n=!0;return n=n&&"message"in e},t.NotFoundResponseSchemaFromJSON=function(e){return r(e,!1)},t.NotFoundResponseSchemaFromJSONTyped=r,t.NotFoundResponseSchemaToJSON=function(e){if(void 0!==e)return null===e?null:{message:e.message}}},{}],18:[function(e,n,t){"use strict";function r(e,n){return null==e?e:{amount:e.amount,currency:e.currency,formatted:e.formatted}}Object.defineProperty(t,"__esModule",{value:!0}),t.PriceToJSON=t.PriceFromJSONTyped=t.PriceFromJSON=t.instanceOfPrice=void 0,t.instanceOfPrice=function(e){var n=!0;return n=(n=(n=n&&"amount"in e)&&"currency"in e)&&"formatted"in e},t.PriceFromJSON=function(e){return r(e,!1)},t.PriceFromJSONTyped=r,t.PriceToJSON=function(e){if(void 0!==e)return null===e?null:{amount:e.amount,currency:e.currency,formatted:e.formatted}}},{}],19:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchFiltersResponseSchemaToJSON=t.SearchFiltersResponseSchemaFromJSONTyped=t.SearchFiltersResponseSchemaFromJSON=t.instanceOfSearchFiltersResponseSchema=void 0;var r=e("./Show");function o(e,n){return null==e?e:{result:e.result.map(r.ShowFromJSON),hasMore:e.hasMore,nextCursor:e.nextCursor}}t.instanceOfSearchFiltersResponseSchema=function(e){var n=!0;return n=(n=(n=n&&"result"in e)&&"hasMore"in e)&&"nextCursor"in e},t.SearchFiltersResponseSchemaFromJSON=function(e){return o(e,!1)},t.SearchFiltersResponseSchemaFromJSONTyped=o,t.SearchFiltersResponseSchemaToJSON=function(e){if(void 0!==e)return null===e?null:{result:e.result.map(r.ShowToJSON),hasMore:e.hasMore,nextCursor:e.nextCursor}}},{"./Show":26}],20:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchTitleResponseSchemaToJSON=t.SearchTitleResponseSchemaFromJSONTyped=t.SearchTitleResponseSchemaFromJSON=t.instanceOfSearchTitleResponseSchema=void 0;var r=e("./Show");function o(e,n){return null==e?e:{result:e.result.map(r.ShowFromJSON)}}t.instanceOfSearchTitleResponseSchema=function(e){var n=!0;return n=n&&"result"in e},t.SearchTitleResponseSchemaFromJSON=function(e){return o(e,!1)},t.SearchTitleResponseSchemaFromJSONTyped=o,t.SearchTitleResponseSchemaToJSON=function(e){if(void 0!==e)return null===e?null:{result:e.result.map(r.ShowToJSON)}}},{"./Show":26}],21:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeasonToJSON=t.SeasonFromJSONTyped=t.SeasonFromJSON=t.instanceOfSeason=t.SeasonTypeEnum=void 0;var r=e("./Episode");function o(e,n){return null==e?e:{type:e.type,title:e.title,firstAirYear:e.firstAirYear,lastAirYear:e.lastAirYear,streamingInfo:e.streamingInfo,episodes:e.episodes.map(r.EpisodeFromJSON)}}t.SeasonTypeEnum={Season:"season"},t.instanceOfSeason=function(e){var n=!0;return n=(n=(n=(n=(n=(n=n&&"type"in e)&&"title"in e)&&"firstAirYear"in e)&&"lastAirYear"in e)&&"streamingInfo"in e)&&"episodes"in e},t.SeasonFromJSON=function(e){return o(e,!1)},t.SeasonFromJSONTyped=o,t.SeasonToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type,title:e.title,firstAirYear:e.firstAirYear,lastAirYear:e.lastAirYear,streamingInfo:e.streamingInfo,episodes:e.episodes.map(r.EpisodeToJSON)}}},{"./Episode":11}],22:[function(e,n,t){"use strict";function r(e,n){return null==e?e:{statusCode:e.statusCode,statusText:e.statusText}}Object.defineProperty(t,"__esModule",{value:!0}),t.SeriesStatusToJSON=t.SeriesStatusFromJSONTyped=t.SeriesStatusFromJSON=t.instanceOfSeriesStatus=t.SeriesStatusStatusTextEnum=void 0,t.SeriesStatusStatusTextEnum={ReturningSeries:"Returning Series",Planned:"Planned",InProduction:"In Production",Ended:"Ended",Cancelled:"Cancelled",Pilot:"Pilot"},t.instanceOfSeriesStatus=function(e){var n=!0;return n=(n=n&&"statusCode"in e)&&"statusText"in e},t.SeriesStatusFromJSON=function(e){return r(e,!1)},t.SeriesStatusFromJSONTyped=r,t.SeriesStatusToJSON=function(e){if(void 0!==e)return null===e?null:{statusCode:e.statusCode,statusText:e.statusText}}},{}],23:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceToJSON=t.ServiceFromJSONTyped=t.ServiceFromJSON=t.instanceOfService=void 0;var r=e("../runtime"),o=e("./Addon"),i=e("./ImageSet"),s=e("./SupportedStreamingTypes");function a(e,n){return null==e?e:{id:e.id,name:e.name,homePage:e.homePage,themeColorCode:e.themeColorCode,images:(0,i.ImageSetFromJSON)(e.images),supportedStreamingTypes:(0,s.SupportedStreamingTypesFromJSON)(e.supportedStreamingTypes),addons:(0,r.mapValues)(e.addons,o.AddonFromJSON)}}t.instanceOfService=function(e){var n=!0;return n=(n=(n=(n=(n=(n=(n=n&&"id"in e)&&"name"in e)&&"homePage"in e)&&"themeColorCode"in e)&&"images"in e)&&"supportedStreamingTypes"in e)&&"addons"in e},t.ServiceFromJSON=function(e){return a(e,!1)},t.ServiceFromJSONTyped=a,t.ServiceToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,name:e.name,homePage:e.homePage,themeColorCode:e.themeColorCode,images:(0,i.ImageSetToJSON)(e.images),supportedStreamingTypes:(0,s.SupportedStreamingTypesToJSON)(e.supportedStreamingTypes),addons:(0,r.mapValues)(e.addons,o.AddonToJSON)}}},{"../runtime":34,"./Addon":4,"./ImageSet":15,"./SupportedStreamingTypes":30}],24:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceCountryInfoToJSON=t.ServiceCountryInfoFromJSONTyped=t.ServiceCountryInfoFromJSON=t.instanceOfServiceCountryInfo=void 0;var r=e("../runtime"),o=e("./Addon"),i=e("./SupportedStreamingTypes");function s(e,n){return null==e?e:{supportedStreamingTypes:(0,i.SupportedStreamingTypesFromJSON)(e.supportedStreamingTypes),addons:(0,r.mapValues)(e.addons,o.AddonFromJSON)}}t.instanceOfServiceCountryInfo=function(e){var n=!0;return n=(n=n&&"supportedStreamingTypes"in e)&&"addons"in e},t.ServiceCountryInfoFromJSON=function(e){return s(e,!1)},t.ServiceCountryInfoFromJSONTyped=s,t.ServiceCountryInfoToJSON=function(e){if(void 0!==e)return null===e?null:{supportedStreamingTypes:(0,i.SupportedStreamingTypesToJSON)(e.supportedStreamingTypes),addons:(0,r.mapValues)(e.addons,o.AddonToJSON)}}},{"../runtime":34,"./Addon":4,"./SupportedStreamingTypes":30}],25:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServicesResponseSchemaToJSON=t.ServicesResponseSchemaFromJSONTyped=t.ServicesResponseSchemaFromJSON=t.instanceOfServicesResponseSchema=void 0;var r=e("../runtime"),o=e("./DeprecatedServiceInfo");function i(e,n){return null==e?e:{result:(0,r.mapValues)(e.result,o.DeprecatedServiceInfoFromJSON)}}t.instanceOfServicesResponseSchema=function(e){var n=!0;return n=n&&"result"in e},t.ServicesResponseSchemaFromJSON=function(e){return i(e,!1)},t.ServicesResponseSchemaFromJSONTyped=i,t.ServicesResponseSchemaToJSON=function(e){if(void 0!==e)return null===e?null:{result:(0,r.mapValues)(e.result,o.DeprecatedServiceInfoToJSON)}}},{"../runtime":34,"./DeprecatedServiceInfo":10}],26:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowToJSON=t.ShowFromJSONTyped=t.ShowFromJSON=t.instanceOfShow=t.ShowTypeEnum=void 0;var r=e("../runtime"),o=e("./Genre"),i=e("./Season"),s=e("./SeriesStatus");function a(e,n){return null==e?e:{type:e.type,title:e.title,year:(0,r.exists)(e,"year")?e.year:void 0,firstAirYear:(0,r.exists)(e,"firstAirYear")?e.firstAirYear:void 0,lastAirYear:(0,r.exists)(e,"lastAirYear")?e.lastAirYear:void 0,imdbId:e.imdbId,tmdbId:e.tmdbId,originalTitle:e.originalTitle,genres:e.genres.map(o.GenreFromJSON),directors:(0,r.exists)(e,"directors")?e.directors:void 0,creators:(0,r.exists)(e,"creators")?e.creators:void 0,status:(0,r.exists)(e,"status")?(0,s.SeriesStatusFromJSON)(e.status):void 0,seasonCount:(0,r.exists)(e,"seasonCount")?e.seasonCount:void 0,episodeCount:(0,r.exists)(e,"episodeCount")?e.episodeCount:void 0,streamingInfo:e.streamingInfo,seasons:(0,r.exists)(e,"seasons")?e.seasons.map(i.SeasonFromJSON):void 0}}t.ShowTypeEnum={Movie:"movie",Series:"series"},t.instanceOfShow=function(e){var n=!0;return n=(n=(n=(n=(n=(n=(n=n&&"type"in e)&&"title"in e)&&"imdbId"in e)&&"tmdbId"in e)&&"originalTitle"in e)&&"genres"in e)&&"streamingInfo"in e},t.ShowFromJSON=function(e){return a(e,!1)},t.ShowFromJSONTyped=a,t.ShowToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type,title:e.title,year:e.year,firstAirYear:e.firstAirYear,lastAirYear:e.lastAirYear,imdbId:e.imdbId,tmdbId:e.tmdbId,originalTitle:e.originalTitle,genres:e.genres.map(o.GenreToJSON),directors:e.directors,creators:e.creators,status:(0,s.SeriesStatusToJSON)(e.status),seasonCount:e.seasonCount,episodeCount:e.episodeCount,streamingInfo:e.streamingInfo,seasons:void 0===e.seasons?void 0:e.seasons.map(i.SeasonToJSON)}}},{"../runtime":34,"./Genre":12,"./Season":21,"./SeriesStatus":22}],27:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamingOptionToJSON=t.StreamingOptionFromJSONTyped=t.StreamingOptionFromJSON=t.instanceOfStreamingOption=t.StreamingOptionQualityEnum=void 0;var r=e("../runtime"),o=e("./Locale"),i=e("./Price"),s=e("./StreamingType"),a=e("./Subtitle");function u(e,n){return null==e?e:{service:e.service,streamingType:(0,s.StreamingTypeFromJSON)(e.streamingType),addon:(0,r.exists)(e,"addon")?e.addon:void 0,link:e.link,videoLink:(0,r.exists)(e,"videoLink")?e.videoLink:void 0,quality:(0,r.exists)(e,"quality")?e.quality:void 0,audios:e.audios.map(o.LocaleFromJSON),subtitles:e.subtitles.map(a.SubtitleFromJSON),price:(0,r.exists)(e,"price")?(0,i.PriceFromJSON)(e.price):void 0,leaving:(0,r.exists)(e,"leaving")?e.leaving:void 0,availableSince:e.availableSince}}t.StreamingOptionQualityEnum={Sd:"sd",Hd:"hd",Qhd:"qhd",Uhd:"uhd"},t.instanceOfStreamingOption=function(e){var n=!0;return n=(n=(n=(n=(n=(n=n&&"service"in e)&&"streamingType"in e)&&"link"in e)&&"audios"in e)&&"subtitles"in e)&&"availableSince"in e},t.StreamingOptionFromJSON=function(e){return u(e,!1)},t.StreamingOptionFromJSONTyped=u,t.StreamingOptionToJSON=function(e){if(void 0!==e)return null===e?null:{service:e.service,streamingType:(0,s.StreamingTypeToJSON)(e.streamingType),addon:e.addon,link:e.link,videoLink:e.videoLink,quality:e.quality,audios:e.audios.map(o.LocaleToJSON),subtitles:e.subtitles.map(a.SubtitleToJSON),price:(0,i.PriceToJSON)(e.price),leaving:e.leaving,availableSince:e.availableSince}}},{"../runtime":34,"./Locale":16,"./Price":18,"./StreamingType":28,"./Subtitle":29}],28:[function(e,n,t){"use strict";function r(e,n){return e}Object.defineProperty(t,"__esModule",{value:!0}),t.StreamingTypeToJSON=t.StreamingTypeFromJSONTyped=t.StreamingTypeFromJSON=t.StreamingType=void 0,t.StreamingType={Free:"free",Subscription:"subscription",Buy:"buy",Rent:"rent",Addon:"addon"},t.StreamingTypeFromJSON=function(e){return r(e,!1)},t.StreamingTypeFromJSONTyped=r,t.StreamingTypeToJSON=function(e){return e}},{}],29:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleToJSON=t.SubtitleFromJSONTyped=t.SubtitleFromJSON=t.instanceOfSubtitle=void 0;var r=e("../runtime"),o=e("./Locale");function i(e,n){return null==e?e:{closedCaptions:(0,r.exists)(e,"closedCaptions")?e.closedCaptions:void 0,locale:(0,r.exists)(e,"locale")?(0,o.LocaleFromJSON)(e.locale):void 0}}t.instanceOfSubtitle=function(e){return!0},t.SubtitleFromJSON=function(e){return i(e,!1)},t.SubtitleFromJSONTyped=i,t.SubtitleToJSON=function(e){if(void 0!==e)return null===e?null:{closedCaptions:e.closedCaptions,locale:(0,o.LocaleToJSON)(e.locale)}}},{"../runtime":34,"./Locale":16}],30:[function(e,n,t){"use strict";function r(e,n){return null==e?e:{addon:e.addon,buy:e.buy,rent:e.rent,free:e.free,subscription:e.subscription}}Object.defineProperty(t,"__esModule",{value:!0}),t.SupportedStreamingTypesToJSON=t.SupportedStreamingTypesFromJSONTyped=t.SupportedStreamingTypesFromJSON=t.instanceOfSupportedStreamingTypes=void 0,t.instanceOfSupportedStreamingTypes=function(e){var n=!0;return n=(n=(n=(n=(n=n&&"addon"in e)&&"buy"in e)&&"rent"in e)&&"free"in e)&&"subscription"in e},t.SupportedStreamingTypesFromJSON=function(e){return r(e,!1)},t.SupportedStreamingTypesFromJSONTyped=r,t.SupportedStreamingTypesToJSON=function(e){if(void 0!==e)return null===e?null:{addon:e.addon,buy:e.buy,rent:e.rent,free:e.free,subscription:e.subscription}}},{}],31:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpcomingChangeSetToJSON=t.UpcomingChangeSetFromJSONTyped=t.UpcomingChangeSetFromJSON=t.instanceOfUpcomingChangeSet=void 0;var r=e("./Change"),o=e("./Show");function i(e,n){return null==e?e:{upcomingChanges:e.upcomingChanges.map(r.ChangeFromJSON),show:(0,o.ShowFromJSON)(e.show)}}t.instanceOfUpcomingChangeSet=function(e){var n=!0;return n=(n=n&&"upcomingChanges"in e)&&"show"in e},t.UpcomingChangeSetFromJSON=function(e){return i(e,!1)},t.UpcomingChangeSetFromJSONTyped=i,t.UpcomingChangeSetToJSON=function(e){if(void 0!==e)return null===e?null:{upcomingChanges:e.upcomingChanges.map(r.ChangeToJSON),show:(0,o.ShowToJSON)(e.show)}}},{"./Change":5,"./Show":26}],32:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpcomingChangesResponseSchemaToJSON=t.UpcomingChangesResponseSchemaFromJSONTyped=t.UpcomingChangesResponseSchemaFromJSON=t.instanceOfUpcomingChangesResponseSchema=void 0;var r=e("./UpcomingChangeSet");function o(e,n){return null==e?e:{result:e.result.map(r.UpcomingChangeSetFromJSON),hasMore:e.hasMore,nextCursor:e.nextCursor}}t.instanceOfUpcomingChangesResponseSchema=function(e){var n=!0;return n=(n=(n=n&&"result"in e)&&"hasMore"in e)&&"nextCursor"in e},t.UpcomingChangesResponseSchemaFromJSON=function(e){return o(e,!1)},t.UpcomingChangesResponseSchemaFromJSONTyped=o,t.UpcomingChangesResponseSchemaToJSON=function(e){if(void 0!==e)return null===e?null:{result:e.result.map(r.UpcomingChangeSetToJSON),hasMore:e.hasMore,nextCursor:e.nextCursor}}},{"./UpcomingChangeSet":31}],33:[function(e,n,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t);var o=Object.getOwnPropertyDescriptor(n,t);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,o)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),o=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||r(n,e,t)};Object.defineProperty(t,"__esModule",{value:!0}),o(e("./Addon"),t),o(e("./Change"),t),o(e("./ChangeSet"),t),o(e("./ChangesResponseSchema"),t),o(e("./CountriesResponseSchema"),t),o(e("./Country"),t),o(e("./DeprecatedServiceInfo"),t),o(e("./Episode"),t),o(e("./Genre"),t),o(e("./GenresResponseSchema"),t),o(e("./GetResponseSchema"),t),o(e("./ImageSet"),t),o(e("./Locale"),t),o(e("./NotFoundResponseSchema"),t),o(e("./Price"),t),o(e("./SearchFiltersResponseSchema"),t),o(e("./SearchTitleResponseSchema"),t),o(e("./Season"),t),o(e("./SeriesStatus"),t),o(e("./Service"),t),o(e("./ServiceCountryInfo"),t),o(e("./ServicesResponseSchema"),t),o(e("./Show"),t),o(e("./StreamingOption"),t),o(e("./StreamingType"),t),o(e("./Subtitle"),t),o(e("./SupportedStreamingTypes"),t),o(e("./UpcomingChangeSet"),t),o(e("./UpcomingChangesResponseSchema"),t)},{"./Addon":4,"./Change":5,"./ChangeSet":6,"./ChangesResponseSchema":7,"./CountriesResponseSchema":8,"./Country":9,"./DeprecatedServiceInfo":10,"./Episode":11,"./Genre":12,"./GenresResponseSchema":13,"./GetResponseSchema":14,"./ImageSet":15,"./Locale":16,"./NotFoundResponseSchema":17,"./Price":18,"./SearchFiltersResponseSchema":19,"./SearchTitleResponseSchema":20,"./Season":21,"./SeriesStatus":22,"./Service":23,"./ServiceCountryInfo":24,"./ServicesResponseSchema":25,"./Show":26,"./StreamingOption":27,"./StreamingType":28,"./Subtitle":29,"./SupportedStreamingTypes":30,"./UpcomingChangeSet":31,"./UpcomingChangesResponseSchema":32}],34:[function(e,n,t){"use strict";var r,o=this&&this.__extends||(r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},r(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},i.apply(this,arguments)},s=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,a)}u((r=r.apply(e,n||[])).next())}))},a=this&&this.__generator||function(e,n){var t,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=n.call(e,s)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextApiResponse=t.BlobApiResponse=t.VoidApiResponse=t.JSONApiResponse=t.canConsumeForm=t.mapValues=t.querystring=t.exists=t.COLLECTION_FORMATS=t.RequiredError=t.FetchError=t.ResponseError=t.BaseAPI=t.DefaultConfig=t.Configuration=t.BASE_PATH=void 0,t.BASE_PATH="https://streaming-availability.p.rapidapi.com".replace(/\/+$/,"");var u=function(){function e(e){void 0===e&&(e={}),this.configuration=e}return Object.defineProperty(e.prototype,"config",{set:function(e){this.configuration=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"basePath",{get:function(){return null!=this.configuration.basePath?this.configuration.basePath:t.BASE_PATH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fetchApi",{get:function(){return this.configuration.fetchApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"middleware",{get:function(){return this.configuration.middleware||[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"queryParamsStringify",{get:function(){return this.configuration.queryParamsStringify||f},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"username",{get:function(){return this.configuration.username},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"password",{get:function(){return this.configuration.password},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"apiKey",{get:function(){var e=this.configuration.apiKey;if(e)return"function"==typeof e?e:function(){return e}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accessToken",{get:function(){var e=this,n=this.configuration.accessToken;if(n)return"function"==typeof n?n:function(){return s(e,void 0,void 0,(function(){return a(this,(function(e){return[2,n]}))}))}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){return this.configuration.headers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"credentials",{get:function(){return this.configuration.credentials},enumerable:!1,configurable:!0}),e}();t.Configuration=u,t.DefaultConfig=new u;var c=function(){function e(e){void 0===e&&(e=t.DefaultConfig);var n=this;this.configuration=e,this.fetchApi=function(e,t){return s(n,void 0,void 0,(function(){var n,r,o,s,u,c,l,d,f,m;return a(this,(function(a){switch(a.label){case 0:n={url:e,init:t},r=0,o=this.middleware,a.label=1;case 1:return r<o.length?(m=o[r]).pre?[4,m.pre(i({fetch:this.fetchApi},n))]:[3,3]:[3,4];case 2:n=a.sent()||n,a.label=3;case 3:return r++,[3,1];case 4:s=void 0,a.label=5;case 5:return a.trys.push([5,7,,12]),[4,(this.configuration.fetchApi||fetch)(n.url,n.init)];case 6:return s=a.sent(),[3,12];case 7:u=a.sent(),c=0,l=this.middleware,a.label=8;case 8:return c<l.length?(m=l[c]).onError?[4,m.onError({fetch:this.fetchApi,url:n.url,init:n.init,error:u,response:s?s.clone():void 0})]:[3,10]:[3,11];case 9:s=a.sent()||s,a.label=10;case 10:return c++,[3,8];case 11:if(void 0===s)throw u instanceof Error?new p(u,"The request failed and the interceptors did not return an alternative response"):u;return[3,12];case 12:d=0,f=this.middleware,a.label=13;case 13:return d<f.length?(m=f[d]).post?[4,m.post({fetch:this.fetchApi,url:n.url,init:n.init,response:s.clone()})]:[3,15]:[3,16];case 14:s=a.sent()||s,a.label=15;case 15:return d++,[3,13];case 16:return[2,s]}}))}))},this.middleware=e.middleware}return e.prototype.withMiddleware=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this.clone();return r.middleware=(e=r.middleware).concat.apply(e,n),r},e.prototype.withPreMiddleware=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e.map((function(e){return{pre:e}}));return this.withMiddleware.apply(this,t)},e.prototype.withPostMiddleware=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e.map((function(e){return{post:e}}));return this.withMiddleware.apply(this,t)},e.prototype.isJsonMime=function(n){return!!n&&e.jsonRegex.test(n)},e.prototype.request=function(e,n){return s(this,void 0,void 0,(function(){var t,r,o,i;return a(this,(function(s){switch(s.label){case 0:return[4,this.createFetchParams(e,n)];case 1:return t=s.sent(),r=t.url,o=t.init,[4,this.fetchApi(r,o)];case 2:if((i=s.sent())&&i.status>=200&&i.status<300)return[2,i];throw new l(i,"Response returned an error code")}}))}))},e.prototype.createFetchParams=function(e,n){return s(this,void 0,void 0,(function(){var t,r,o,u,c,l,p,d,f=this;return a(this,(function(m){switch(m.label){case 0:return t=this.configuration.basePath+e.path,void 0!==e.query&&0!==Object.keys(e.query).length&&(t+="?"+this.configuration.queryParamsStringify(e.query)),r=Object.assign({},this.configuration.headers,e.headers),Object.keys(r).forEach((function(e){return void 0===r[e]?delete r[e]:{}})),o="function"==typeof n?n:function(){return s(f,void 0,void 0,(function(){return a(this,(function(e){return[2,n]}))}))},u={method:e.method,headers:r,body:e.body,credentials:this.configuration.credentials},l=[i({},u)],[4,o({init:u,context:e})];case 1:return c=i.apply(void 0,l.concat([m.sent()])),S=c.body,p="undefined"!=typeof FormData&&S instanceof FormData||c.body instanceof URLSearchParams||function(e){return"undefined"!=typeof Blob&&e instanceof Blob}(c.body)?c.body:this.isJsonMime(r["Content-Type"])?JSON.stringify(c.body):c.body,d=i(i({},c),{body:p}),[2,{url:t,init:d}]}var S}))}))},e.prototype.clone=function(){var e=new(0,this.constructor)(this.configuration);return e.middleware=this.middleware.slice(),e},e.jsonRegex=new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$","i"),e}();t.BaseAPI=c;var l=function(e){function n(n,t){var r=e.call(this,t)||this;return r.response=n,r.name="ResponseError",r}return o(n,e),n}(Error);t.ResponseError=l;var p=function(e){function n(n,t){var r=e.call(this,t)||this;return r.cause=n,r.name="FetchError",r}return o(n,e),n}(Error);t.FetchError=p;var d=function(e){function n(n,t){var r=e.call(this,t)||this;return r.field=n,r.name="RequiredError",r}return o(n,e),n}(Error);function f(e,n){return void 0===n&&(n=""),Object.keys(e).map((function(t){return m(t,e[t],n)})).filter((function(e){return e.length>0})).join("&")}function m(e,n,t){void 0===t&&(t="");var r=t+(t.length?"[".concat(e,"]"):e);if(n instanceof Array){var o=n.map((function(e){return encodeURIComponent(String(e))})).join("&".concat(encodeURIComponent(r),"="));return"".concat(encodeURIComponent(r),"=").concat(o)}return n instanceof Set?m(e,Array.from(n),t):n instanceof Date?"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n.toISOString())):n instanceof Object?f(n,r):"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(String(n)))}t.RequiredError=d,t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},t.exists=function(e,n){var t=e[n];return null!=t},t.querystring=f,t.mapValues=function(e,n){return Object.keys(e).reduce((function(t,r){var o;return i(i({},t),((o={})[r]=n(e[r]),o))}),{})},t.canConsumeForm=function(e){for(var n=0,t=e;n<t.length;n++){if("multipart/form-data"===t[n].contentType)return!0}return!1};var S=function(){function e(e,n){void 0===n&&(n=function(e){return e}),this.raw=e,this.transformer=n}return e.prototype.value=function(){return s(this,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return e=this.transformer,[4,this.raw.json()];case 1:return[2,e.apply(this,[n.sent()])]}}))}))},e}();t.JSONApiResponse=S;var h=function(){function e(e){this.raw=e}return e.prototype.value=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){return[2,void 0]}))}))},e}();t.VoidApiResponse=h;var y=function(){function e(e){this.raw=e}return e.prototype.value=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.raw.blob()];case 1:return[2,e.sent()]}}))}))},e}();t.BlobApiResponse=y;var g=function(){function e(e){this.raw=e}return e.prototype.value=function(){return s(this,void 0,void 0,(functi